@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.
- package/CHANGELOG.md +12 -0
- package/dist/components/elements/ProgressIndicator.d.ts +19 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/legacy-support.cjs +688 -159
- package/dist/legacy-support.mjs +688 -159
- package/dist/nami/flow/NamiFlowManager.d.ts +23 -0
- package/dist/nami-web.cjs +25 -16
- package/dist/nami-web.mjs +25 -16
- package/dist/nami-web.umd.js +26 -17
- package/dist/polyfills.cjs +688 -159
- package/dist/polyfills.js +688 -159
- package/dist/types/components/elements.d.ts +13 -0
- package/dist/types/components/index.d.ts +2 -2
- package/dist/utils/parsers.d.ts +17 -0
- package/package.json +1 -1
|
@@ -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
|
}
|