@lookit/surveys 4.0.0 → 4.0.1

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.
@@ -77990,7 +77990,7 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
77990
77990
 
77991
77991
  var surveyKnockoutUiExports = surveyKnockoutUi.exports;
77992
77992
 
77993
- var _package = {
77993
+ var _package$1 = {
77994
77994
  name: "@jspsych/plugin-survey",
77995
77995
  version: "2.0.0",
77996
77996
  description: "A jsPsych plugin for complex surveys",
@@ -78049,7 +78049,7 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
78049
78049
 
78050
78050
  const info$2 = {
78051
78051
  name: "survey",
78052
- version: _package.version,
78052
+ version: _package$1.version,
78053
78053
  parameters: {
78054
78054
  survey_json: {
78055
78055
  type: jspsych.ParameterType.OBJECT,
@@ -78167,6 +78167,49 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
78167
78167
  }
78168
78168
  SurveyPlugin.info = info$2;
78169
78169
 
78170
+ var _package = {
78171
+ name: "@lookit/surveys",
78172
+ version: "4.0.1",
78173
+ description: "A survey plugin for lookit studies.",
78174
+ homepage: "https://github.com/lookit/lookit-jspsych#readme",
78175
+ bugs: {
78176
+ url: "https://github.com/lookit/lookit-jspsych/issues"
78177
+ },
78178
+ repository: {
78179
+ type: "git",
78180
+ url: "git+https://github.com/lookit/lookit-jspsych.git"
78181
+ },
78182
+ license: "ISC",
78183
+ author: "Christopher J Green <okaycj@mit.edu> (https://github.com/okaycj)",
78184
+ main: "dist/index.js",
78185
+ unpkg: "dist/index.browser.min.js",
78186
+ types: "./dist/index.d.ts",
78187
+ files: [
78188
+ "src",
78189
+ "dist"
78190
+ ],
78191
+ scripts: {
78192
+ build: "rollup --config",
78193
+ dev: "rollup --config rollup.config.dev.mjs --watch",
78194
+ test: "jest --coverage"
78195
+ },
78196
+ dependencies: {
78197
+ "@jspsych/plugin-survey": "^2.0.0",
78198
+ dompurify: "^3.0.11",
78199
+ marked: "^12.0.1",
78200
+ "survey-core": "^1.12.8"
78201
+ },
78202
+ devDependencies: {
78203
+ "@jspsych/config": "^3.0.1",
78204
+ "@types/dompurify": "^3.0.5"
78205
+ },
78206
+ peerDependencies: {
78207
+ "@lookit/data": "^0.2.0",
78208
+ "@lookit/templates": "^2.1.0",
78209
+ jspsych: "^8.0.3"
78210
+ }
78211
+ };
78212
+
78170
78213
  /*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE */
78171
78214
 
78172
78215
  const {
@@ -90215,6 +90258,12 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
90215
90258
  type: jspsych.ParameterType.STRING,
90216
90259
  default: "en-us"
90217
90260
  }
90261
+ },
90262
+ data: {
90263
+ ...SurveyPlugin.info.data,
90264
+ chs_type: {
90265
+ type: jspsych.ParameterType.STRING
90266
+ }
90218
90267
  }
90219
90268
  };
90220
90269
  class ConsentSurveyPlugin extends SurveyPlugin {
@@ -90226,7 +90275,7 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
90226
90275
  });
90227
90276
  }
90228
90277
  static chsData() {
90229
- return { chs_type: "consent" };
90278
+ return { chs_type: "consent", chs_version: _package.version };
90230
90279
  }
90231
90280
  }
90232
90281
 
@@ -90258,6 +90307,12 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
90258
90307
  default: "",
90259
90308
  pretty_name: "Additional video privacy text"
90260
90309
  }
90310
+ },
90311
+ data: {
90312
+ ...SurveyPlugin.info.data,
90313
+ chs_type: {
90314
+ type: jspsych.ParameterType.STRING
90315
+ }
90261
90316
  }
90262
90317
  };
90263
90318
  class ExitSurveyPlugin extends SurveyPlugin {
@@ -90270,7 +90325,7 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
90270
90325
  });
90271
90326
  }
90272
90327
  static chsData() {
90273
- return { chs_type: "exit" };
90328
+ return { chs_type: "exit", chs_version: _package.version };
90274
90329
  }
90275
90330
  }
90276
90331
 
@@ -90279,4 +90334,4 @@ var chsSurvey = (function (jspsych, Data, chsTemplates) {
90279
90334
  return index;
90280
90335
 
90281
90336
  })(jsPsychModule, chsData, chsTemplates);
90282
- //# sourceMappingURL=https://unpkg.com/@lookit/surveys@4.0.0/dist/index.browser.js.map
90337
+ //# sourceMappingURL=https://unpkg.com/@lookit/surveys@4.0.1/dist/index.browser.js.map