jspsych-tangram 0.0.19 → 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.
package/dist/index.js CHANGED
@@ -4966,6 +4966,7 @@ function GridView({ params }) {
4966
4966
  primitiveColorIndices = [0, 1, 2, 3, 4],
4967
4967
  onTrialEnd
4968
4968
  } = params;
4969
+ const { onTrialEnd: _, ...trialParams } = params;
4969
4970
  const trialStartTime = useRef(Date.now());
4970
4971
  const [response, setResponse] = useState("");
4971
4972
  const [cellSize, setCellSize] = useState(100);
@@ -5078,12 +5079,10 @@ function GridView({ params }) {
5078
5079
  const trialData = {
5079
5080
  response,
5080
5081
  rt,
5081
- n_rows,
5082
- n_cols,
5083
- tangram_ids: processedTangrams.map((t) => t.tangramId),
5084
- show_tangram_decomposition,
5085
- use_primitive_colors: usePrimitiveColors,
5086
- primitive_color_indices: primitiveColorIndices
5082
+ trialParams: {
5083
+ ...trialParams,
5084
+ tangramIDs: processedTangrams.map((t) => t.tangramId)
5085
+ }
5087
5086
  };
5088
5087
  if (onTrialEnd) {
5089
5088
  onTrialEnd(trialData);