Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix COMPLEX type metadata syntax #3432

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/ten-walls-double.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions packages/plugin-animation/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const info = <const>{
animation_sequence: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
stimulus: {
type: ParameterType.STRING,
},
Expand All @@ -83,7 +83,7 @@ const info = <const>{
response: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
stimulus: {
type: ParameterType.STRING,
},
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-free-sort/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const info = <const>{
moves: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
src: {
type: ParameterType.STRING,
},
Expand All @@ -150,7 +150,7 @@ const info = <const>{
final_locations: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
src: {
type: ParameterType.STRING,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-instructions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const info = <const>{
view_history: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
page_index: {
type: ParameterType.INT,
},
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-maxdiff/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -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,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-sketchpad/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const info = <const>{
strokes: {
type: ParameterType.COMPLEX,
array: true,
parameters: {
nested: {
action: {
type: ParameterType.STRING,
},
Expand Down
Loading