@namiml/web-sdk 1.7.4 → 1.7.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.
@@ -8,6 +8,7 @@ export declare class NamiFlowManager {
8
8
  static get instance(): NamiFlowManager;
9
9
  currentFlow?: NamiFlow;
10
10
  flowOpen: boolean;
11
+ private lastAnimatedFlowProgress;
11
12
  private constructor();
12
13
  handoffStepHandler?: NamiFlowHandoffStepHandler;
13
14
  static registerStepHandoff(handoffStepHandler?: NamiFlowHandoffStepHandler): void;
@@ -19,4 +20,26 @@ export declare class NamiFlowManager {
19
20
  static isFlowOpen(): boolean;
20
21
  presentFlow(campaign: NamiFlowCampaign, paywall: PaywallComponent, context?: NamiPaywallLaunchContext): NamiFlow;
21
22
  finishFlow(): void;
23
+ /**
24
+ * Gets the last animated progress for a component by ID
25
+ * @param key Component ID
26
+ * @returns Last animated progress value (0-1), or 0 if not found
27
+ */
28
+ getLastAnimatedFlowProgress(key: string): number;
29
+ /**
30
+ * Sets the last animated progress for a component by ID
31
+ * Only stores if there's an active flow
32
+ * @param key Component ID
33
+ * @param value Progress value (0-1)
34
+ */
35
+ setLastAnimatedFlowProgress(key: string, value: number): void;
36
+ /**
37
+ * Gets the current flow progress based on screen steps
38
+ * @param key Component ID (for compatibility)
39
+ * @returns Progress as a percentage (0-100)
40
+ */
41
+ getCurrentFlowProgress(key?: string): number;
42
+ static getLastAnimatedFlowProgress(key: string): number;
43
+ static setLastAnimatedFlowProgress(key: string, value: number): void;
44
+ static getCurrentFlowProgress(key?: string): number;
22
45
  }