saltfish 0.2.66 → 0.2.67

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.
@@ -7836,28 +7836,38 @@ class TransitionManager {
7836
7836
  * Handles URL changes by checking active URL path transitions and playlist triggers
7837
7837
  */
7838
7838
  __publicField(this, "handleURLChange", () => {
7839
- const isValidUrl = this.validateCurrentStepUrl();
7840
- if (!isValidUrl) {
7841
- return;
7842
- }
7843
- if (this.triggerManager) {
7844
- this.triggerManager.evaluateAllTriggers();
7845
- }
7846
7839
  const urlPathTransitions = Array.from(this.activeTransitions.entries()).filter(([_, transition]) => {
7847
7840
  var _a;
7848
7841
  return ((_a = transition.data) == null ? void 0 : _a.type) === "url-path";
7849
7842
  });
7850
- if (urlPathTransitions.length === 0) {
7851
- return;
7843
+ let hasValidTransition = false;
7844
+ if (urlPathTransitions.length > 0) {
7845
+ for (const [_, transition] of urlPathTransitions) {
7846
+ if (transition.data && this.isURLPathMatch(transition.data.pattern)) {
7847
+ hasValidTransition = true;
7848
+ break;
7849
+ }
7850
+ }
7852
7851
  }
7853
- for (const [_, transition] of urlPathTransitions) {
7854
- if (!transition.data) {
7855
- continue;
7852
+ if (!hasValidTransition) {
7853
+ const isValidUrl = this.validateCurrentStepUrl();
7854
+ if (!isValidUrl) {
7855
+ return;
7856
7856
  }
7857
- const { pattern, nextStepId } = transition.data;
7858
- if (this.isURLPathMatch(pattern)) {
7859
- this.triggerTransition(nextStepId);
7860
- break;
7857
+ }
7858
+ if (this.triggerManager) {
7859
+ this.triggerManager.evaluateAllTriggers();
7860
+ }
7861
+ if (hasValidTransition) {
7862
+ for (const [_, transition] of urlPathTransitions) {
7863
+ if (!transition.data) {
7864
+ continue;
7865
+ }
7866
+ const { pattern, nextStepId } = transition.data;
7867
+ if (this.isURLPathMatch(pattern)) {
7868
+ this.triggerTransition(nextStepId);
7869
+ break;
7870
+ }
7861
7871
  }
7862
7872
  }
7863
7873
  });
@@ -10676,7 +10686,7 @@ const SaltfishPlayer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
10676
10686
  __proto__: null,
10677
10687
  SaltfishPlayer
10678
10688
  }, Symbol.toStringTag, { value: "Module" }));
10679
- const version = "0.2.66";
10689
+ const version = "0.2.67";
10680
10690
  const packageJson = {
10681
10691
  version
10682
10692
  };