add survey dist (for temp access until package is published)

This commit is contained in:
Becky Gilbert 2024-03-18 22:54:43 -07:00
parent d6fa734423
commit d1c48b45d1
9 changed files with 424696 additions and 0 deletions

115307
packages/plugin-survey/dist/index.browser.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

114436
packages/plugin-survey/dist/index.cjs vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

83
packages/plugin-survey/dist/index.d.ts vendored Normal file
View File

@ -0,0 +1,83 @@
import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych";
declare const info: {
readonly name: "survey";
readonly parameters: {
/**
* A SurveyJS survey model defined in JSON.
* See: https://surveyjs.io/form-library/documentation/design-survey/create-a-simple-survey#define-a-static-survey-model-in-json
*/
readonly survey_json: {
readonly type: ParameterType.STRING;
readonly default: "{}";
readonly pretty_name: "Survey JSON";
};
/**
* A SurveyJS survey model defined as a function. The function receives an empty SurveyJS survey object as an argument.
* See: https://surveyjs.io/form-library/documentation/design-survey/create-a-simple-survey#create-or-change-a-survey-model-dynamically
*/
readonly survey_function: {
readonly type: ParameterType.FUNCTION;
readonly default: any;
readonly pretty_name: "Survey function";
};
/**
* A function that can be used to validate responses. This function is called whenever the SurveyJS onValidateQuestion event occurs.
* See: https://surveyjs.io/form-library/documentation/data-validation#implement-custom-client-side-validation
*/
readonly validation_function: {
readonly type: ParameterType.FUNCTION;
readonly default: any;
readonly pretty_name: "Validation function";
};
};
};
type Info = typeof info;
/**
* **survey**
*
* jsPsych plugin for presenting complex questionnaires using the SurveyJS library
*
* @author Becky Gilbert
* @see {@link https://www.jspsych.org/plugins/survey/ survey plugin documentation on jspsych.org}
*/
declare class SurveyPlugin implements JsPsychPlugin<Info> {
private jsPsych;
static info: {
readonly name: "survey";
readonly parameters: {
/**
* A SurveyJS survey model defined in JSON.
* See: https://surveyjs.io/form-library/documentation/design-survey/create-a-simple-survey#define-a-static-survey-model-in-json
*/
readonly survey_json: {
readonly type: ParameterType.STRING;
readonly default: "{}";
readonly pretty_name: "Survey JSON";
};
/**
* A SurveyJS survey model defined as a function. The function receives an empty SurveyJS survey object as an argument.
* See: https://surveyjs.io/form-library/documentation/design-survey/create-a-simple-survey#create-or-change-a-survey-model-dynamically
*/
readonly survey_function: {
readonly type: ParameterType.FUNCTION;
readonly default: any;
readonly pretty_name: "Survey function";
};
/**
* A function that can be used to validate responses. This function is called whenever the SurveyJS onValidateQuestion event occurs.
* See: https://surveyjs.io/form-library/documentation/data-validation#implement-custom-client-side-validation
*/
readonly validation_function: {
readonly type: ParameterType.FUNCTION;
readonly default: any;
readonly pretty_name: "Validation function";
};
};
};
private survey;
private start_time;
constructor(jsPsych: JsPsych);
applyStyles(survey: any): void;
trial(display_element: HTMLElement, trial: TrialType<Info>): void;
}
export default SurveyPlugin;

114434
packages/plugin-survey/dist/index.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long