saltfish 0.2.4 → 0.2.6
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/core/SaltfishPlayer.d.ts.map +1 -1
- package/dist/managers/StepTimeoutManager.d.ts +4 -0
- package/dist/managers/StepTimeoutManager.d.ts.map +1 -1
- package/dist/player.js +2 -2
- package/dist/player.min.js +2 -2
- package/dist/saltfish-playlist-player.es.js +8 -1
- package/dist/saltfish-playlist-player.umd.js +1 -1
- package/package.json +1 -1
|
@@ -2873,7 +2873,7 @@ class StateMachineActionHandler {
|
|
|
2873
2873
|
this.managers.cursorManager.setShouldShowCursor(false);
|
|
2874
2874
|
}
|
|
2875
2875
|
const hasSpecialTransitions = context.currentStep.buttons && context.currentStep.buttons.length > 0 || context.currentStep.transitions.some(
|
|
2876
|
-
(t) => t.type === "dom-click" || t.type === "url-path"
|
|
2876
|
+
(t) => t.type === "dom-click" || t.type === "url-path" || t.type === "dom-element-visible"
|
|
2877
2877
|
);
|
|
2878
2878
|
const completionPolicy = hasSpecialTransitions ? "manual" : "auto";
|
|
2879
2879
|
if (hasSpecialTransitions) {
|
|
@@ -9846,6 +9846,12 @@ const _StepTimeoutManager = class _StepTimeoutManager {
|
|
|
9846
9846
|
this.stepTimeoutId = null;
|
|
9847
9847
|
}
|
|
9848
9848
|
}
|
|
9849
|
+
/**
|
|
9850
|
+
* Set the destroy callback
|
|
9851
|
+
*/
|
|
9852
|
+
setDestroyCallback(callback) {
|
|
9853
|
+
this.destroyCallback = callback;
|
|
9854
|
+
}
|
|
9849
9855
|
/**
|
|
9850
9856
|
* Destroys the player safely
|
|
9851
9857
|
*/
|
|
@@ -9994,6 +10000,7 @@ const _SaltfishPlayer = class _SaltfishPlayer {
|
|
|
9994
10000
|
this.playlistOrchestrator.setPlayerInitializationService(this.playerInitializationService);
|
|
9995
10001
|
this.playlistOrchestrator.setStateMachineActionHandler(this.stateMachineActionHandler);
|
|
9996
10002
|
this.stateMachineActionHandler.setDestroyCallback(() => this.destroy());
|
|
10003
|
+
managers.stepTimeoutManager.setDestroyCallback(() => this.destroy());
|
|
9997
10004
|
useSaltfishStore.subscribe(() => this.managerOrchestrator.handleStoreChanges());
|
|
9998
10005
|
this.stateMachineActionHandler.registerStateMachineActions();
|
|
9999
10006
|
}
|