@lookit/templates 1.0.0 → 1.1.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.
@@ -0,0 +1,95 @@
1
+ import { PluginInfo, TrialType } from "jspsych";
2
+ /**
3
+ * Translate survey text to desired locale.
4
+ *
5
+ * @param trial - Trial data including user supplied parameters.
6
+ * @returns Survey json
7
+ */
8
+ export declare const exitSurvey: (trial: TrialType<PluginInfo>) => {
9
+ pages: {
10
+ elements: ({
11
+ description: string;
12
+ inputType: string;
13
+ isRequired: boolean;
14
+ maxValueExpression: string;
15
+ name: "birthDate";
16
+ title: string;
17
+ type: string;
18
+ enableIf?: undefined;
19
+ valueFalse?: undefined;
20
+ valueTrue?: undefined;
21
+ choices?: undefined;
22
+ defaultValue?: undefined;
23
+ autoGrow?: undefined;
24
+ rows?: undefined;
25
+ } | {
26
+ description: string;
27
+ enableIf: string;
28
+ isRequired: boolean;
29
+ name: "databraryShare";
30
+ title: string;
31
+ type: string;
32
+ valueFalse: string;
33
+ valueTrue: string;
34
+ inputType?: undefined;
35
+ maxValueExpression?: undefined;
36
+ choices?: undefined;
37
+ defaultValue?: undefined;
38
+ autoGrow?: undefined;
39
+ rows?: undefined;
40
+ } | {
41
+ choices: {
42
+ text: string;
43
+ value: string;
44
+ }[];
45
+ description: string;
46
+ enableIf: string;
47
+ isRequired: boolean;
48
+ name: "useOfMedia";
49
+ title: string;
50
+ type: string;
51
+ inputType?: undefined;
52
+ maxValueExpression?: undefined;
53
+ valueFalse?: undefined;
54
+ valueTrue?: undefined;
55
+ defaultValue?: undefined;
56
+ autoGrow?: undefined;
57
+ rows?: undefined;
58
+ } | {
59
+ choices: {
60
+ text: string;
61
+ value: boolean;
62
+ }[];
63
+ defaultValue: never[];
64
+ isRequired: boolean;
65
+ name: "withdrawal";
66
+ title: string;
67
+ type: string;
68
+ description?: undefined;
69
+ inputType?: undefined;
70
+ maxValueExpression?: undefined;
71
+ enableIf?: undefined;
72
+ valueFalse?: undefined;
73
+ valueTrue?: undefined;
74
+ autoGrow?: undefined;
75
+ rows?: undefined;
76
+ } | {
77
+ autoGrow: boolean;
78
+ name: "feedback";
79
+ rows: number;
80
+ title: string;
81
+ type: string;
82
+ description?: undefined;
83
+ inputType?: undefined;
84
+ isRequired?: undefined;
85
+ maxValueExpression?: undefined;
86
+ enableIf?: undefined;
87
+ valueFalse?: undefined;
88
+ valueTrue?: undefined;
89
+ choices?: undefined;
90
+ defaultValue?: undefined;
91
+ })[];
92
+ name: string;
93
+ }[];
94
+ showQuestionNumbers: string;
95
+ };