@lookit/record 5.0.0 → 6.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/README.md +76 -5
- package/dist/index.browser.js +14 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.min.js +7 -7
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +30 -2
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/consentVideo.ts +19 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookit/record",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Recording extensions and plugins for CHS studies.",
|
|
5
5
|
"homepage": "https://github.com/lookit/lookit-jspsych#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@lookit/data": "^0.3.0",
|
|
45
|
-
"@lookit/templates": "^3.
|
|
45
|
+
"@lookit/templates": "^3.1.0",
|
|
46
46
|
"jspsych": "^8.0.3"
|
|
47
47
|
}
|
|
48
48
|
}
|
package/src/consentVideo.ts
CHANGED
|
@@ -12,7 +12,15 @@ const info = <const>{
|
|
|
12
12
|
name: "consent-video",
|
|
13
13
|
version,
|
|
14
14
|
parameters: {
|
|
15
|
-
template: {
|
|
15
|
+
template: {
|
|
16
|
+
type: ParameterType.SELECT,
|
|
17
|
+
options: [
|
|
18
|
+
"consent-template-5",
|
|
19
|
+
"consent-garden",
|
|
20
|
+
"consent-recording-only",
|
|
21
|
+
],
|
|
22
|
+
default: "consent-template-5",
|
|
23
|
+
},
|
|
16
24
|
locale: { type: ParameterType.STRING, default: "en-us" },
|
|
17
25
|
additional_video_privacy_statement: {
|
|
18
26
|
type: ParameterType.STRING,
|
|
@@ -58,6 +66,16 @@ const info = <const>{
|
|
|
58
66
|
prompt_only_adults: { type: ParameterType.BOOL, default: false },
|
|
59
67
|
consent_statement_text: { type: ParameterType.STRING, default: "" },
|
|
60
68
|
omit_injury_phrase: { type: ParameterType.BOOL, default: false },
|
|
69
|
+
/**
|
|
70
|
+
* This parameter is only relevant for the consent-recording-only template.
|
|
71
|
+
* If a different template is used, this parameter will be ignored. Whether
|
|
72
|
+
* or not the consent trial is the only data being collected on CHS (i.e.
|
|
73
|
+
* the study redirects to an external URL immediately after the consent
|
|
74
|
+
* trial). If false (the default), the consent template contains information
|
|
75
|
+
* about how CHS handles data/responses. If true, any statements about
|
|
76
|
+
* session data/responses are omitted.
|
|
77
|
+
*/
|
|
78
|
+
only_consent_on_chs: { type: ParameterType.BOOL, default: false },
|
|
61
79
|
},
|
|
62
80
|
data: {
|
|
63
81
|
chs_type: {
|