saltfish 0.3.53 → 0.3.54

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.
@@ -3263,8 +3263,15 @@ class StateMachineActionHandler {
3263
3263
  var _a;
3264
3264
  const store = getSaltfishStore();
3265
3265
  if (!hasSpecialTransitions) {
3266
- log("StateMachineActionHandler: Setting up transitions after video ended");
3267
- this.managers.transitionManager.setupTransitions(currentStep, true);
3266
+ const timeoutTransition = currentStep.transitions.find((t) => t.type === "timeout");
3267
+ const hasNonZeroTimeout = timeoutTransition && timeoutTransition.timeout && timeoutTransition.timeout > 0;
3268
+ if (hasNonZeroTimeout) {
3269
+ log(`StateMachineActionHandler: Setting up transitions after video ended with ${timeoutTransition.timeout}ms delay`);
3270
+ this.managers.transitionManager.setupTransitions(currentStep, false);
3271
+ } else {
3272
+ log("StateMachineActionHandler: Setting up transitions after video ended (immediate)");
3273
+ this.managers.transitionManager.setupTransitions(currentStep, true);
3274
+ }
3268
3275
  const hasValidNextSteps = currentStep.transitions.some((transition) => {
3269
3276
  return store.manifest.steps.some((s) => s.id === transition.nextStep);
3270
3277
  });
@@ -12053,7 +12060,7 @@ const SaltfishPlayer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
12053
12060
  __proto__: null,
12054
12061
  SaltfishPlayer
12055
12062
  }, Symbol.toStringTag, { value: "Module" }));
12056
- const version = "0.3.53";
12063
+ const version = "0.3.54";
12057
12064
  const packageJson = {
12058
12065
  version
12059
12066
  };