@fiddle-digital/string-tune 1.1.42-fix.2 → 1.1.43

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.d.mts CHANGED
@@ -2030,42 +2030,38 @@ interface ScrollMarkRule {
2030
2030
  };
2031
2031
  }
2032
2032
 
2033
- /**
2034
- * Module that manages sequence states for elements based on slider step events.
2035
- * Updates element classes (ACTIVE, HIDE, DISABLE) according to the current sequence position.
2036
- */
2037
2033
  declare class StringSequence extends StringModule {
2038
- /**
2039
- * Stores the current active step index for each slider.
2040
- */
2041
- private activeStepForSlides;
2042
- /**
2043
- * Stores the last active step index for each slider to hide the previous element.
2044
- */
2045
- private hideStepForSlides;
2046
- /**
2047
- * @param context StringContext instance for dependency injection.
2048
- */
2034
+ private activeStep;
2035
+ private leavingStep;
2036
+ private transitions;
2037
+ private elementIndex;
2038
+ private triggerElements;
2039
+ private globalSettings;
2040
+ private defaultDuration;
2041
+ private initialized;
2042
+ private static readonly ALL_STATES;
2049
2043
  constructor(context: StringContext);
2050
- /**
2051
- * Subscribes to slider step events and updates element states:
2052
- * - Sets ACTIVE for the current element.
2053
- * - Sets HIDE for the previously active element.
2054
- * - Sets DISABLE for all others.
2055
- */
2056
2044
  onInit(): void;
2057
- /**
2058
- * Sets initial state DISABLE for a newly connected element.
2059
- * @param object The connected StringObject.
2060
- */
2045
+ private scanStandaloneTriggers;
2046
+ private scanGlobalSettings;
2047
+ private parseGlobalSetting;
2048
+ private initializeSliders;
2049
+ canConnect(object: StringObject): boolean;
2061
2050
  onObjectConnected(object: StringObject): void;
2062
- /**
2063
- * Updates the element's class according to the given SequenceState.
2064
- * Removes all possible sequence state classes before applying the new one.
2065
- * @param object The target StringObject.
2066
- * @param state The state to set (ACTIVE, HIDE, DISABLE).
2067
- */
2068
- private setSequenceState;
2051
+ private parseTriggerKey;
2052
+ private resolveDuration;
2053
+ private resolveEasings;
2054
+ onObjectDisconnected(object: StringObject): void;
2055
+ private parseSequenceKey;
2056
+ private onTriggerClick;
2057
+ private onSequenceEvent;
2058
+ private startTransition;
2059
+ private handleScrub;
2060
+ private switchInstant;
2061
+ private applyProgress;
2062
+ private setStepState;
2063
+ private setState;
2064
+ onFrame(data: StringData): void;
2069
2065
  }
2070
2066
 
2071
2067
  type FormField = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
package/dist/index.d.ts CHANGED
@@ -2030,42 +2030,38 @@ interface ScrollMarkRule {
2030
2030
  };
2031
2031
  }
2032
2032
 
2033
- /**
2034
- * Module that manages sequence states for elements based on slider step events.
2035
- * Updates element classes (ACTIVE, HIDE, DISABLE) according to the current sequence position.
2036
- */
2037
2033
  declare class StringSequence extends StringModule {
2038
- /**
2039
- * Stores the current active step index for each slider.
2040
- */
2041
- private activeStepForSlides;
2042
- /**
2043
- * Stores the last active step index for each slider to hide the previous element.
2044
- */
2045
- private hideStepForSlides;
2046
- /**
2047
- * @param context StringContext instance for dependency injection.
2048
- */
2034
+ private activeStep;
2035
+ private leavingStep;
2036
+ private transitions;
2037
+ private elementIndex;
2038
+ private triggerElements;
2039
+ private globalSettings;
2040
+ private defaultDuration;
2041
+ private initialized;
2042
+ private static readonly ALL_STATES;
2049
2043
  constructor(context: StringContext);
2050
- /**
2051
- * Subscribes to slider step events and updates element states:
2052
- * - Sets ACTIVE for the current element.
2053
- * - Sets HIDE for the previously active element.
2054
- * - Sets DISABLE for all others.
2055
- */
2056
2044
  onInit(): void;
2057
- /**
2058
- * Sets initial state DISABLE for a newly connected element.
2059
- * @param object The connected StringObject.
2060
- */
2045
+ private scanStandaloneTriggers;
2046
+ private scanGlobalSettings;
2047
+ private parseGlobalSetting;
2048
+ private initializeSliders;
2049
+ canConnect(object: StringObject): boolean;
2061
2050
  onObjectConnected(object: StringObject): void;
2062
- /**
2063
- * Updates the element's class according to the given SequenceState.
2064
- * Removes all possible sequence state classes before applying the new one.
2065
- * @param object The target StringObject.
2066
- * @param state The state to set (ACTIVE, HIDE, DISABLE).
2067
- */
2068
- private setSequenceState;
2051
+ private parseTriggerKey;
2052
+ private resolveDuration;
2053
+ private resolveEasings;
2054
+ onObjectDisconnected(object: StringObject): void;
2055
+ private parseSequenceKey;
2056
+ private onTriggerClick;
2057
+ private onSequenceEvent;
2058
+ private startTransition;
2059
+ private handleScrub;
2060
+ private switchInstant;
2061
+ private applyProgress;
2062
+ private setStepState;
2063
+ private setState;
2064
+ onFrame(data: StringData): void;
2069
2065
  }
2070
2066
 
2071
2067
  type FormField = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;