@lookit/templates 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.js +1346 -7555
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.min.js +6361 -2
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +239 -24861
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +118 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +239 -24861
- package/dist/index.js.map +1 -1
- package/package.json +13 -6
- package/src/exitSurveyTemplate.ts +180 -0
- package/src/index.spec.ts +56 -1
- package/src/index.ts +4 -1
- package/src/uploadingVideoTemplate.ts +16 -0
- package/src/videoConfigTemplate.ts +47 -0
- package/dist/consentVideoTemplate.d.ts +0 -8
- package/dist/errors.d.ts +0 -18
- package/dist/utils.d.ts +0 -14
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,120 @@
|
|
|
1
|
+
import * as jspsych from 'jspsych';
|
|
2
|
+
|
|
1
3
|
declare const _default: {
|
|
2
|
-
consentVideo: (trial:
|
|
4
|
+
consentVideo: (trial: jspsych.TrialType<jspsych.PluginInfo>) => string;
|
|
5
|
+
videoConfig: (trial: jspsych.TrialType<jspsych.PluginInfo>, html_params: {
|
|
6
|
+
webcam_container_id: string;
|
|
7
|
+
reload_button_id_cam: string;
|
|
8
|
+
camera_selection_id: string;
|
|
9
|
+
mic_selection_id: string;
|
|
10
|
+
step1_id: string;
|
|
11
|
+
step2_id: string;
|
|
12
|
+
step3_id: string;
|
|
13
|
+
step_complete_class: string;
|
|
14
|
+
reload_button_id_text: string;
|
|
15
|
+
next_button_id: string;
|
|
16
|
+
waiting_for_access_msg_id: string;
|
|
17
|
+
checking_mic_msg_id: string;
|
|
18
|
+
access_problem_msg_id: string;
|
|
19
|
+
setup_problem_msg_id: string;
|
|
20
|
+
chromeInitialPrompt: string;
|
|
21
|
+
chromeAlwaysAllow: string;
|
|
22
|
+
chromePermissions: string;
|
|
23
|
+
firefoxInitialPrompt: string;
|
|
24
|
+
firefoxChooseDevice: string;
|
|
25
|
+
firefoxDevicesBlocked: string;
|
|
26
|
+
checkmarkIcon: string;
|
|
27
|
+
}) => string;
|
|
28
|
+
uploadingVideo: (trial: jspsych.TrialType<jspsych.PluginInfo>) => string;
|
|
29
|
+
exitSurvey: (trial: jspsych.TrialType<jspsych.PluginInfo>) => {
|
|
30
|
+
pages: {
|
|
31
|
+
elements: ({
|
|
32
|
+
description: string;
|
|
33
|
+
inputType: string;
|
|
34
|
+
isRequired: boolean;
|
|
35
|
+
maxValueExpression: string;
|
|
36
|
+
name: "birthDate";
|
|
37
|
+
title: string;
|
|
38
|
+
type: string;
|
|
39
|
+
enableIf?: undefined;
|
|
40
|
+
valueFalse?: undefined;
|
|
41
|
+
valueTrue?: undefined;
|
|
42
|
+
choices?: undefined;
|
|
43
|
+
defaultValue?: undefined;
|
|
44
|
+
autoGrow?: undefined;
|
|
45
|
+
rows?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
description: string;
|
|
48
|
+
enableIf: string;
|
|
49
|
+
isRequired: boolean;
|
|
50
|
+
name: "databraryShare";
|
|
51
|
+
title: string;
|
|
52
|
+
type: string;
|
|
53
|
+
valueFalse: string;
|
|
54
|
+
valueTrue: string;
|
|
55
|
+
inputType?: undefined;
|
|
56
|
+
maxValueExpression?: undefined;
|
|
57
|
+
choices?: undefined;
|
|
58
|
+
defaultValue?: undefined;
|
|
59
|
+
autoGrow?: undefined;
|
|
60
|
+
rows?: undefined;
|
|
61
|
+
} | {
|
|
62
|
+
choices: {
|
|
63
|
+
text: string;
|
|
64
|
+
value: string;
|
|
65
|
+
}[];
|
|
66
|
+
description: string;
|
|
67
|
+
enableIf: string;
|
|
68
|
+
isRequired: boolean;
|
|
69
|
+
name: "useOfMedia";
|
|
70
|
+
title: string;
|
|
71
|
+
type: string;
|
|
72
|
+
inputType?: undefined;
|
|
73
|
+
maxValueExpression?: undefined;
|
|
74
|
+
valueFalse?: undefined;
|
|
75
|
+
valueTrue?: undefined;
|
|
76
|
+
defaultValue?: undefined;
|
|
77
|
+
autoGrow?: undefined;
|
|
78
|
+
rows?: undefined;
|
|
79
|
+
} | {
|
|
80
|
+
choices: {
|
|
81
|
+
text: string;
|
|
82
|
+
value: boolean;
|
|
83
|
+
}[];
|
|
84
|
+
defaultValue: never[];
|
|
85
|
+
isRequired: boolean;
|
|
86
|
+
name: "withdrawal";
|
|
87
|
+
title: string;
|
|
88
|
+
type: string;
|
|
89
|
+
description?: undefined;
|
|
90
|
+
inputType?: undefined;
|
|
91
|
+
maxValueExpression?: undefined;
|
|
92
|
+
enableIf?: undefined;
|
|
93
|
+
valueFalse?: undefined;
|
|
94
|
+
valueTrue?: undefined;
|
|
95
|
+
autoGrow?: undefined;
|
|
96
|
+
rows?: undefined;
|
|
97
|
+
} | {
|
|
98
|
+
autoGrow: boolean;
|
|
99
|
+
name: "feedback";
|
|
100
|
+
rows: number;
|
|
101
|
+
title: string;
|
|
102
|
+
type: string;
|
|
103
|
+
description?: undefined;
|
|
104
|
+
inputType?: undefined;
|
|
105
|
+
isRequired?: undefined;
|
|
106
|
+
maxValueExpression?: undefined;
|
|
107
|
+
enableIf?: undefined;
|
|
108
|
+
valueFalse?: undefined;
|
|
109
|
+
valueTrue?: undefined;
|
|
110
|
+
choices?: undefined;
|
|
111
|
+
defaultValue?: undefined;
|
|
112
|
+
})[];
|
|
113
|
+
name: string;
|
|
114
|
+
}[];
|
|
115
|
+
showQuestionNumbers: string;
|
|
116
|
+
};
|
|
3
117
|
};
|
|
4
|
-
|
|
118
|
+
|
|
119
|
+
export { _default as default };
|
|
120
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|