Skip to content

Commit 484300c

Browse files
committed
fix COMPLEX type metadata syntax
1 parent 8ae8ac3 commit 484300c

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

.changeset/ten-walls-double.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@jspsych/plugin-animation": patch
3+
"@jspsych/plugin-free-sort": patch
4+
"@jspsych/plugin-instructions": patch
5+
"@jspsych/plugin-maxdiff": patch
6+
"@jspsych/plugin-sketchpad": patch
7+
---
8+
9+
fix data values with `COMPLEX` type to use proper metadata syntax

packages/plugin-animation/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const info = <const>{
6565
animation_sequence: {
6666
type: ParameterType.COMPLEX,
6767
array: true,
68-
parameters: {
68+
nested: {
6969
stimulus: {
7070
type: ParameterType.STRING,
7171
},
@@ -83,7 +83,7 @@ const info = <const>{
8383
response: {
8484
type: ParameterType.COMPLEX,
8585
array: true,
86-
parameters: {
86+
nested: {
8787
stimulus: {
8888
type: ParameterType.STRING,
8989
},

packages/plugin-free-sort/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const info = <const>{
134134
moves: {
135135
type: ParameterType.COMPLEX,
136136
array: true,
137-
parameters: {
137+
nested: {
138138
src: {
139139
type: ParameterType.STRING,
140140
},
@@ -150,7 +150,7 @@ const info = <const>{
150150
final_locations: {
151151
type: ParameterType.COMPLEX,
152152
array: true,
153-
parameters: {
153+
nested: {
154154
src: {
155155
type: ParameterType.STRING,
156156
},

packages/plugin-instructions/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const info = <const>{
7878
view_history: {
7979
type: ParameterType.COMPLEX,
8080
array: true,
81-
parameters: {
81+
nested: {
8282
page_index: {
8383
type: ParameterType.INT,
8484
},

packages/plugin-maxdiff/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const info = <const>{
5252
* columns. This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. */
5353
labels: {
5454
type: ParameterType.COMPLEX,
55-
parameters: {
55+
nested: {
5656
left: {
5757
type: ParameterType.STRING,
5858
},
@@ -65,7 +65,7 @@ const info = <const>{
6565
* This will be encoded as a JSON string when data is saved using the `.json()` or `.csv()` functions. */
6666
response: {
6767
type: ParameterType.COMPLEX,
68-
parameters: {
68+
nested: {
6969
left: {
7070
type: ParameterType.STRING,
7171
},

packages/plugin-sketchpad/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ const info = <const>{
232232
strokes: {
233233
type: ParameterType.COMPLEX,
234234
array: true,
235-
parameters: {
235+
nested: {
236236
action: {
237237
type: ParameterType.STRING,
238238
},

0 commit comments

Comments
 (0)