@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/dist/index.d.ts CHANGED
@@ -5,7 +5,8 @@ declare const info$3: {
5
5
  readonly version: string;
6
6
  readonly parameters: {
7
7
  readonly template: {
8
- readonly type: ParameterType.STRING;
8
+ readonly type: ParameterType.SELECT;
9
+ readonly options: readonly ["consent-template-5", "consent-garden", "consent-recording-only"];
9
10
  readonly default: "consent-template-5";
10
11
  };
11
12
  readonly locale: {
@@ -131,6 +132,19 @@ declare const info$3: {
131
132
  readonly type: ParameterType.BOOL;
132
133
  readonly default: false;
133
134
  };
135
+ /**
136
+ * This parameter is only relevant for the consent-recording-only template.
137
+ * If a different template is used, this parameter will be ignored. Whether
138
+ * or not the consent trial is the only data being collected on CHS (i.e.
139
+ * the study redirects to an external URL immediately after the consent
140
+ * trial). If false (the default), the consent template contains information
141
+ * about how CHS handles data/responses. If true, any statements about
142
+ * session data/responses are omitted.
143
+ */
144
+ readonly only_consent_on_chs: {
145
+ readonly type: ParameterType.BOOL;
146
+ readonly default: false;
147
+ };
134
148
  };
135
149
  readonly data: {
136
150
  readonly chs_type: {
@@ -147,7 +161,8 @@ declare class VideoConsentPlugin implements JsPsychPlugin<Info$3> {
147
161
  readonly version: string;
148
162
  readonly parameters: {
149
163
  readonly template: {
150
- readonly type: ParameterType.STRING;
164
+ readonly type: ParameterType.SELECT;
165
+ readonly options: readonly ["consent-template-5", "consent-garden", "consent-recording-only"];
151
166
  readonly default: "consent-template-5";
152
167
  };
153
168
  readonly locale: {
@@ -273,6 +288,19 @@ declare class VideoConsentPlugin implements JsPsychPlugin<Info$3> {
273
288
  readonly type: ParameterType.BOOL;
274
289
  readonly default: false;
275
290
  };
291
+ /**
292
+ * This parameter is only relevant for the consent-recording-only template.
293
+ * If a different template is used, this parameter will be ignored. Whether
294
+ * or not the consent trial is the only data being collected on CHS (i.e.
295
+ * the study redirects to an external URL immediately after the consent
296
+ * trial). If false (the default), the consent template contains information
297
+ * about how CHS handles data/responses. If true, any statements about
298
+ * session data/responses are omitted.
299
+ */
300
+ readonly only_consent_on_chs: {
301
+ readonly type: ParameterType.BOOL;
302
+ readonly default: false;
303
+ };
276
304
  };
277
305
  readonly data: {
278
306
  readonly chs_type: {
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import Handlebars from 'handlebars';
6
6
 
7
7
  var _package = {
8
8
  name: "@lookit/record",
9
- version: "5.0.0",
9
+ version: "6.0.0",
10
10
  description: "Recording extensions and plugins for CHS studies.",
11
11
  homepage: "https://github.com/lookit/lookit-jspsych#readme",
12
12
  bugs: {
@@ -48,7 +48,7 @@ var _package = {
48
48
  },
49
49
  peerDependencies: {
50
50
  "@lookit/data": "^0.3.0",
51
- "@lookit/templates": "^3.0.0",
51
+ "@lookit/templates": "^3.1.0",
52
52
  jspsych: "^8.0.3"
53
53
  }
54
54
  };
@@ -453,7 +453,15 @@ const info$3 = {
453
453
  name: "consent-video",
454
454
  version: _package.version,
455
455
  parameters: {
456
- template: { type: ParameterType.STRING, default: "consent-template-5" },
456
+ template: {
457
+ type: ParameterType.SELECT,
458
+ options: [
459
+ "consent-template-5",
460
+ "consent-garden",
461
+ "consent-recording-only"
462
+ ],
463
+ default: "consent-template-5"
464
+ },
457
465
  locale: { type: ParameterType.STRING, default: "en-us" },
458
466
  additional_video_privacy_statement: {
459
467
  type: ParameterType.STRING,
@@ -498,7 +506,8 @@ const info$3 = {
498
506
  prompt_all_adults: { type: ParameterType.BOOL, default: false },
499
507
  prompt_only_adults: { type: ParameterType.BOOL, default: false },
500
508
  consent_statement_text: { type: ParameterType.STRING, default: "" },
501
- omit_injury_phrase: { type: ParameterType.BOOL, default: false }
509
+ omit_injury_phrase: { type: ParameterType.BOOL, default: false },
510
+ only_consent_on_chs: { type: ParameterType.BOOL, default: false }
502
511
  },
503
512
  data: {
504
513
  chs_type: {