jspsych-tangram 0.0.4 → 0.0.5

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.
@@ -16840,7 +16840,6 @@ var TangramPrepPlugin = (function (jspsych) {
16840
16840
  const allDone = Object.values(this.state.sectors).every((s) => !!s.completedAt);
16841
16841
  if (allDone && !this.state.endedAt) {
16842
16842
  this.state.endedAt = NOW();
16843
- console.log("[BaseGameController] all sectors complete");
16844
16843
  }
16845
16844
  }
16846
16845
  // ===== Piece Operations =====
@@ -19864,7 +19863,9 @@ var TangramPrepPlugin = (function (jspsych) {
19864
19863
  if (allSectorsComplete && !gameCompleted) {
19865
19864
  setGameCompleted(true);
19866
19865
  if (tracker) {
19867
- tracker.finalizeTrial("auto_complete");
19866
+ setTimeout(() => {
19867
+ tracker.finalizeTrial("auto_complete");
19868
+ }, 0);
19868
19869
  }
19869
19870
  }
19870
19871
  };
@@ -20435,7 +20436,7 @@ var TangramPrepPlugin = (function (jspsych) {
20435
20436
  this.jsPsych.finishTrial(data);
20436
20437
  };
20437
20438
  const params = {
20438
- numQuickstashSlots: trial.num_quickstash_slots || 4,
20439
+ numQuickstashSlots: trial.num_quickstash_slots,
20439
20440
  maxPiecesPerMacro: trial.max_pieces_per_macro,
20440
20441
  minPiecesPerMacro: trial.min_pieces_per_macro,
20441
20442
  inputMode: trial.input,