@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/README.md
CHANGED
|
@@ -140,11 +140,23 @@ whether babies love cats because of their soft fur or their twitchy tails.”
|
|
|
140
140
|
|
|
141
141
|
#### Optional
|
|
142
142
|
|
|
143
|
-
**`template` [String | "consent-template-5"]**
|
|
143
|
+
**`template` [String option | "consent-template-5"]**
|
|
144
144
|
|
|
145
|
-
Which consent document template to use.
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
Which consent document template to use. Options: `consent-template-5`,
|
|
146
|
+
`consent-garden`, `consent-recording-only`.
|
|
147
|
+
|
|
148
|
+
Most studies should use `consent-template-5` (the default).
|
|
149
|
+
|
|
150
|
+
If you are running a study that ONLY uses webcam recording for the consent
|
|
151
|
+
statement (nothing else is recording during the session), then you should use
|
|
152
|
+
the `consent-recording-only` template. This version removes/modifies some text
|
|
153
|
+
that references additional webcam recordings during the session.
|
|
154
|
+
|
|
155
|
+
By default, the `consent-recording-only` plugin assumes that, in addition to a
|
|
156
|
+
consent trial, you are using CHS to collect other data/responses. If you are not
|
|
157
|
+
collecting any other data on CHS (for instance, because the rest of the study
|
|
158
|
+
takes place on a different platform), then you should change this using the
|
|
159
|
+
`only_consent_on_chs` parameter (see below).
|
|
148
160
|
|
|
149
161
|
**`additional_video_privacy_statement` [String | ""]**
|
|
150
162
|
|
|
@@ -220,6 +232,18 @@ Optional additional text for under header “Participation is voluntary”. E.g.
|
|
|
220
232
|
“There are two sessions in this study; you will be invited to complete another
|
|
221
233
|
session next month. It is okay not to do both sessions!”
|
|
222
234
|
|
|
235
|
+
**`only_consent_on_chs` [Boolean | false]**
|
|
236
|
+
|
|
237
|
+
This parameter is only relevant to the `consent-recording-only` template. If a
|
|
238
|
+
different template is used, this parameter will be ignored.
|
|
239
|
+
|
|
240
|
+
Whether or not the consent trial is the ONLY data being collected about the
|
|
241
|
+
participant on CHS (e.g. the study redirects to an external URL after the
|
|
242
|
+
consent trial). If `false` (the default), then the consent template will contain
|
|
243
|
+
information about how CHS handles data/responses. If `true`, then the template
|
|
244
|
+
will only reference the consent recording, and any statements about CHS access
|
|
245
|
+
to data/responses are omitted.
|
|
246
|
+
|
|
223
247
|
#### Additional customization available if REQUIRED by your IRB
|
|
224
248
|
|
|
225
249
|
To accommodate a variety of idiosyncratic IRB requirements, various other fields
|
|
@@ -297,7 +321,9 @@ Replace the default spoken consent statement with your custom text.
|
|
|
297
321
|
Whether to omit the phrase “or in the very unlikely event of a research-related
|
|
298
322
|
injury” from the contact section. (This was required by the Northwestern IRB.)
|
|
299
323
|
|
|
300
|
-
###
|
|
324
|
+
### Examples
|
|
325
|
+
|
|
326
|
+
**Standard use case**
|
|
301
327
|
|
|
302
328
|
```javascript
|
|
303
329
|
const videoConsent = {
|
|
@@ -332,6 +358,51 @@ const videoConsent = {
|
|
|
332
358
|
};
|
|
333
359
|
```
|
|
334
360
|
|
|
361
|
+
**Study only uses webcam recording for consent**
|
|
362
|
+
|
|
363
|
+
Use the `"consent-recording-only"` template when the study collects (some or
|
|
364
|
+
all) data/responses on CHS, but webcam recording is only used for the consent
|
|
365
|
+
statement (nothing else is recorded).
|
|
366
|
+
|
|
367
|
+
```javascript
|
|
368
|
+
const videoConsentRecOnly = {
|
|
369
|
+
type: chsRecord.VideoConsentPlugin,
|
|
370
|
+
template: "consent-recording-only",
|
|
371
|
+
PIName: "Jane Smith",
|
|
372
|
+
institution: "Science University",
|
|
373
|
+
PIContact: "Jane Smith at 123 456 7890",
|
|
374
|
+
purpose:
|
|
375
|
+
"Why do babies love cats? This study will help us find out whether babies love cats because of their soft fur or their twitchy tails.",
|
|
376
|
+
procedures:
|
|
377
|
+
"Your child will be shown pictures of lots of different cats, along with noises that cats make like meowing and purring. We are interested in which pictures and sounds make your child smile. We will ask you (the parent) to turn around to avoid influencing your child's responses.",
|
|
378
|
+
payment:
|
|
379
|
+
"After you finish the study, we will email you a $5 BabyStore gift card within approximately three days. To be eligible for the gift card your child must be in the age range for this study, you need to submit a valid consent statement, and we need to see that there is a child with you. But we will send a gift card even if you do not finish the whole study or we are not able to use your child's data! There are no other direct benefits to you or your child from participating, but we hope you will enjoy the experience.",
|
|
380
|
+
};
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
**CHS study is only used for a consent recording**
|
|
384
|
+
|
|
385
|
+
Use the `"consent-recording-only"` template with `only_consent_on_chs: true`
|
|
386
|
+
when webcam recording is only used for the consent statement and no other
|
|
387
|
+
data/responses are collected on CHS.
|
|
388
|
+
|
|
389
|
+
```javascript
|
|
390
|
+
const videoConsentRecOnly = {
|
|
391
|
+
type: chsRecord.VideoConsentPlugin,
|
|
392
|
+
template: "consent-recording-only",
|
|
393
|
+
only_consent_on_chs: true, // set this to true
|
|
394
|
+
PIName: "Jane Smith",
|
|
395
|
+
institution: "Science University",
|
|
396
|
+
PIContact: "Jane Smith at 123 456 7890",
|
|
397
|
+
purpose:
|
|
398
|
+
"Why do babies love cats? This study will help us find out whether babies love cats because of their soft fur or their twitchy tails.",
|
|
399
|
+
procedures:
|
|
400
|
+
"Your child will be shown pictures of lots of different cats, along with noises that cats make like meowing and purring. We are interested in which pictures and sounds make your child smile. We will ask you (the parent) to turn around to avoid influencing your child's responses.",
|
|
401
|
+
payment:
|
|
402
|
+
"After you finish the study, we will email you a $5 BabyStore gift card within approximately three days. To be eligible for the gift card your child must be in the age range for this study, you need to submit a valid consent statement, and we need to see that there is a child with you. But we will send a gift card even if you do not finish the whole study or we are not able to use your child's data! There are no other direct benefits to you or your child from participating, but we hope you will enjoy the experience.",
|
|
403
|
+
};
|
|
404
|
+
```
|
|
405
|
+
|
|
335
406
|
## Trial Recording Extension
|
|
336
407
|
|
|
337
408
|
Trial recording can be added to most jsPsych trials. This is a jsPsych extension
|
package/dist/index.browser.js
CHANGED
|
@@ -32,7 +32,7 @@ var chsRecord = (function (Data, chsTemplates, jspsych) {
|
|
|
32
32
|
|
|
33
33
|
var _package = {
|
|
34
34
|
name: "@lookit/record",
|
|
35
|
-
version: "
|
|
35
|
+
version: "6.0.0",
|
|
36
36
|
description: "Recording extensions and plugins for CHS studies.",
|
|
37
37
|
homepage: "https://github.com/lookit/lookit-jspsych#readme",
|
|
38
38
|
bugs: {
|
|
@@ -74,7 +74,7 @@ var chsRecord = (function (Data, chsTemplates, jspsych) {
|
|
|
74
74
|
},
|
|
75
75
|
peerDependencies: {
|
|
76
76
|
"@lookit/data": "^0.3.0",
|
|
77
|
-
"@lookit/templates": "^3.
|
|
77
|
+
"@lookit/templates": "^3.1.0",
|
|
78
78
|
jspsych: "^8.0.3"
|
|
79
79
|
}
|
|
80
80
|
};
|
|
@@ -8765,7 +8765,15 @@ var chsRecord = (function (Data, chsTemplates, jspsych) {
|
|
|
8765
8765
|
name: "consent-video",
|
|
8766
8766
|
version: _package.version,
|
|
8767
8767
|
parameters: {
|
|
8768
|
-
template: {
|
|
8768
|
+
template: {
|
|
8769
|
+
type: jspsych.ParameterType.SELECT,
|
|
8770
|
+
options: [
|
|
8771
|
+
"consent-template-5",
|
|
8772
|
+
"consent-garden",
|
|
8773
|
+
"consent-recording-only"
|
|
8774
|
+
],
|
|
8775
|
+
default: "consent-template-5"
|
|
8776
|
+
},
|
|
8769
8777
|
locale: { type: jspsych.ParameterType.STRING, default: "en-us" },
|
|
8770
8778
|
additional_video_privacy_statement: {
|
|
8771
8779
|
type: jspsych.ParameterType.STRING,
|
|
@@ -8810,7 +8818,8 @@ var chsRecord = (function (Data, chsTemplates, jspsych) {
|
|
|
8810
8818
|
prompt_all_adults: { type: jspsych.ParameterType.BOOL, default: false },
|
|
8811
8819
|
prompt_only_adults: { type: jspsych.ParameterType.BOOL, default: false },
|
|
8812
8820
|
consent_statement_text: { type: jspsych.ParameterType.STRING, default: "" },
|
|
8813
|
-
omit_injury_phrase: { type: jspsych.ParameterType.BOOL, default: false }
|
|
8821
|
+
omit_injury_phrase: { type: jspsych.ParameterType.BOOL, default: false },
|
|
8822
|
+
only_consent_on_chs: { type: jspsych.ParameterType.BOOL, default: false }
|
|
8814
8823
|
},
|
|
8815
8824
|
data: {
|
|
8816
8825
|
chs_type: {
|
|
@@ -9543,4 +9552,4 @@ var chsRecord = (function (Data, chsTemplates, jspsych) {
|
|
|
9543
9552
|
return index;
|
|
9544
9553
|
|
|
9545
9554
|
})(chsData, chsTemplates, jsPsychModule);
|
|
9546
|
-
//# sourceMappingURL=https://unpkg.com/@lookit/record@
|
|
9555
|
+
//# sourceMappingURL=https://unpkg.com/@lookit/record@6.0.0/dist/index.browser.js.map
|