jspsych-tangram 0.0.18 → 0.0.20

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.
@@ -17362,6 +17362,7 @@ var TangramGridPlugin = (function (jspsych) {
17362
17362
  primitiveColorIndices = [0, 1, 2, 3, 4],
17363
17363
  onTrialEnd
17364
17364
  } = params;
17365
+ const { onTrialEnd: _, ...trialParams } = params;
17365
17366
  const trialStartTime = reactExports.useRef(Date.now());
17366
17367
  const [response, setResponse] = reactExports.useState("");
17367
17368
  const [cellSize, setCellSize] = reactExports.useState(100);
@@ -17474,12 +17475,10 @@ var TangramGridPlugin = (function (jspsych) {
17474
17475
  const trialData = {
17475
17476
  response,
17476
17477
  rt,
17477
- n_rows,
17478
- n_cols,
17479
- tangram_ids: processedTangrams.map((t) => t.tangramId),
17480
- show_tangram_decomposition,
17481
- use_primitive_colors: usePrimitiveColors,
17482
- primitive_color_indices: primitiveColorIndices
17478
+ trialParams: {
17479
+ ...trialParams,
17480
+ tangramIDs: processedTangrams.map((t) => t.tangramId)
17481
+ }
17483
17482
  };
17484
17483
  if (onTrialEnd) {
17485
17484
  onTrialEnd(trialData);