diff --git a/.changeset/ten-walls-double.md b/.changeset/ten-walls-double.md new file mode 100644 index 0000000000..5c31cc668e --- /dev/null +++ b/.changeset/ten-walls-double.md @@ -0,0 +1,9 @@ +--- +"@jspsych/plugin-animation": patch +"@jspsych/plugin-free-sort": patch +"@jspsych/plugin-instructions": patch +"@jspsych/plugin-maxdiff": patch +"@jspsych/plugin-sketchpad": patch +--- + +fix data values with `COMPLEX` type to use proper metadata syntax diff --git a/packages/plugin-animation/src/index.ts b/packages/plugin-animation/src/index.ts index 405f4eb382..1a8a1e5cea 100644 --- a/packages/plugin-animation/src/index.ts +++ b/packages/plugin-animation/src/index.ts @@ -65,7 +65,7 @@ const info = { animation_sequence: { type: ParameterType.COMPLEX, array: true, - parameters: { + nested: { stimulus: { type: ParameterType.STRING, }, @@ -83,7 +83,7 @@ const info = { response: { type: ParameterType.COMPLEX, array: true, - parameters: { + nested: { stimulus: { type: ParameterType.STRING, }, diff --git a/packages/plugin-free-sort/src/index.ts b/packages/plugin-free-sort/src/index.ts index 9deaba5dac..2aa5151462 100644 --- a/packages/plugin-free-sort/src/index.ts +++ b/packages/plugin-free-sort/src/index.ts @@ -134,7 +134,7 @@ const info = { moves: { type: ParameterType.COMPLEX, array: true, - parameters: { + nested: { src: { type: ParameterType.STRING, }, @@ -150,7 +150,7 @@ const info = { final_locations: { type: ParameterType.COMPLEX, array: true, - parameters: { + nested: { src: { type: ParameterType.STRING, }, diff --git a/packages/plugin-instructions/src/index.ts b/packages/plugin-instructions/src/index.ts index 248ea53789..898675cc80 100644 --- a/packages/plugin-instructions/src/index.ts +++ b/packages/plugin-instructions/src/index.ts @@ -78,7 +78,7 @@ const info = { view_history: { type: ParameterType.COMPLEX, array: true, - parameters: { + nested: { page_index: { type: ParameterType.INT, }, diff --git a/packages/plugin-maxdiff/src/index.ts b/packages/plugin-maxdiff/src/index.ts index 1455952955..bfa3060886 100644 --- a/packages/plugin-maxdiff/src/index.ts +++ b/packages/plugin-maxdiff/src/index.ts @@ -52,7 +52,7 @@ const info = { * columns. This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. */ labels: { type: ParameterType.COMPLEX, - parameters: { + nested: { left: { type: ParameterType.STRING, }, @@ -65,7 +65,7 @@ const info = { * This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. */ response: { type: ParameterType.COMPLEX, - parameters: { + nested: { left: { type: ParameterType.STRING, }, diff --git a/packages/plugin-sketchpad/src/index.ts b/packages/plugin-sketchpad/src/index.ts index 33e4e8ecbc..4fe49e5df3 100644 --- a/packages/plugin-sketchpad/src/index.ts +++ b/packages/plugin-sketchpad/src/index.ts @@ -232,7 +232,7 @@ const info = { strokes: { type: ParameterType.COMPLEX, array: true, - parameters: { + nested: { action: { type: ParameterType.STRING, },