jspsych-tangram 0.0.7 → 0.0.9

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.
Files changed (40) hide show
  1. package/dist/construct/index.browser.js +187 -214
  2. package/dist/construct/index.browser.js.map +1 -1
  3. package/dist/construct/index.browser.min.js +13 -10
  4. package/dist/construct/index.browser.min.js.map +1 -1
  5. package/dist/construct/index.cjs +187 -214
  6. package/dist/construct/index.cjs.map +1 -1
  7. package/dist/construct/index.d.ts +24 -0
  8. package/dist/construct/index.js +187 -214
  9. package/dist/construct/index.js.map +1 -1
  10. package/dist/index.cjs +198 -215
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.ts +36 -0
  13. package/dist/index.js +198 -215
  14. package/dist/index.js.map +1 -1
  15. package/dist/prep/index.browser.js +173 -213
  16. package/dist/prep/index.browser.js.map +1 -1
  17. package/dist/prep/index.browser.min.js +14 -11
  18. package/dist/prep/index.browser.min.js.map +1 -1
  19. package/dist/prep/index.cjs +173 -213
  20. package/dist/prep/index.cjs.map +1 -1
  21. package/dist/prep/index.d.ts +12 -0
  22. package/dist/prep/index.js +173 -213
  23. package/dist/prep/index.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/assets/README.md +6 -0
  26. package/src/assets/images.d.ts +19 -0
  27. package/src/assets/locked.png +0 -0
  28. package/src/assets/unlocked.png +0 -0
  29. package/src/core/components/board/BoardView.tsx +121 -39
  30. package/src/core/components/board/GameBoard.tsx +123 -7
  31. package/src/core/config/config.ts +8 -4
  32. package/src/core/domain/types.ts +1 -0
  33. package/src/core/io/InteractionTracker.ts +23 -24
  34. package/src/core/io/data-tracking.ts +6 -7
  35. package/src/plugins/tangram-construct/ConstructionApp.tsx +16 -1
  36. package/src/plugins/tangram-construct/index.ts +14 -0
  37. package/src/plugins/tangram-prep/PrepApp.tsx +6 -0
  38. package/src/plugins/tangram-prep/index.ts +7 -0
  39. package/tangram-construct.min.js +13 -10
  40. package/tangram-prep.min.js +14 -11
@@ -55,6 +55,18 @@ declare const info: {
55
55
  default: number;
56
56
  description: string;
57
57
  };
58
+ /** Whether to show tangram target shapes decomposed into individual primitives with borders */
59
+ show_tangram_decomposition: {
60
+ type: ParameterType;
61
+ default: boolean;
62
+ description: string;
63
+ };
64
+ /** HTML content to display above the gameboard as instructions */
65
+ instructions: {
66
+ type: ParameterType;
67
+ default: string;
68
+ description: string;
69
+ };
58
70
  /** Callback fired after each interaction (piece pickup + placedown) */
59
71
  onInteraction: {
60
72
  type: ParameterType;
@@ -163,6 +175,18 @@ declare class TangramConstructPlugin implements JsPsychPlugin<Info> {
163
175
  default: number;
164
176
  description: string;
165
177
  };
178
+ /** Whether to show tangram target shapes decomposed into individual primitives with borders */
179
+ show_tangram_decomposition: {
180
+ type: ParameterType;
181
+ default: boolean;
182
+ description: string;
183
+ };
184
+ /** HTML content to display above the gameboard as instructions */
185
+ instructions: {
186
+ type: ParameterType;
187
+ default: string;
188
+ description: string;
189
+ };
166
190
  /** Callback fired after each interaction (piece pickup + placedown) */
167
191
  onInteraction: {
168
192
  type: ParameterType;