fix COMPLEX type metadata syntax

This commit is contained in:
jade 2024-11-12 15:33:29 -05:00
parent 8ae8ac3d92
commit 484300c49a
6 changed files with 17 additions and 8 deletions

View File

@ -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

View File

@ -65,7 +65,7 @@ const info = <const>{
animation_sequence: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
stimulus: {
type: ParameterType.STRING,
},
@ -83,7 +83,7 @@ const info = <const>{
response: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
stimulus: {
type: ParameterType.STRING,
},

View File

@ -134,7 +134,7 @@ const info = <const>{
moves: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
src: {
type: ParameterType.STRING,
},
@ -150,7 +150,7 @@ const info = <const>{
final_locations: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
src: {
type: ParameterType.STRING,
},

View File

@ -78,7 +78,7 @@ const info = <const>{
view_history: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
page_index: {
type: ParameterType.INT,
},

View File

@ -52,7 +52,7 @@ const info = <const>{
* 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 = <const>{
* 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,
},

View File

@ -232,7 +232,7 @@ const info = <const>{
strokes: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
action: {
type: ParameterType.STRING,
},