@namiml/sdk-core 3.4.3-dev.202606182025 → 3.4.3-dev.202606190101
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.cjs +12 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +12 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ const {
|
|
|
98
98
|
// version — stamped by scripts/version.sh
|
|
99
99
|
NAMI_SDK_VERSION: exports.NAMI_SDK_VERSION = "3.4.3",
|
|
100
100
|
// full package version including dev suffix — stamped by scripts/version.sh
|
|
101
|
-
NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.3-dev.
|
|
101
|
+
NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.3-dev.202606190101",
|
|
102
102
|
// environments
|
|
103
103
|
PRODUCTION: exports.PRODUCTION = "production", DEVELOPMENT: exports.DEVELOPMENT = "development",
|
|
104
104
|
// error messages
|
|
@@ -12618,6 +12618,7 @@ exports.NamiFlowActionFunction = void 0;
|
|
|
12618
12618
|
NamiFlowActionFunction["PAUSE"] = "flowPause";
|
|
12619
12619
|
NamiFlowActionFunction["RESUME"] = "flowResume";
|
|
12620
12620
|
NamiFlowActionFunction["SET_LAUNCH_CONTEXT"] = "setLaunchContext";
|
|
12621
|
+
NamiFlowActionFunction["SET_FLOW_PATH"] = "setFlowPath";
|
|
12621
12622
|
})(exports.NamiFlowActionFunction || (exports.NamiFlowActionFunction = {}));
|
|
12622
12623
|
const HandoffTag = {
|
|
12623
12624
|
SEQUENCE: '__handoff_sequence__',
|
|
@@ -13259,6 +13260,8 @@ class FlowLiquidResolver {
|
|
|
13259
13260
|
const s = PaywallState.currentProvider?.state;
|
|
13260
13261
|
return s?.groups?.find(g => g.id === s.currentGroupId)?.ref ?? undefined;
|
|
13261
13262
|
}
|
|
13263
|
+
case "flowPath":
|
|
13264
|
+
return flow?.flowPath;
|
|
13262
13265
|
default:
|
|
13263
13266
|
return undefined;
|
|
13264
13267
|
}
|
|
@@ -14291,6 +14294,7 @@ class NamiFlow extends BasicNamiFlow {
|
|
|
14291
14294
|
this.activeHandoffSequence = null;
|
|
14292
14295
|
this.currentScreenState = null;
|
|
14293
14296
|
this.isPaused = false;
|
|
14297
|
+
this.flowPath = "";
|
|
14294
14298
|
this.timerStates = {};
|
|
14295
14299
|
this.campaign = campaign;
|
|
14296
14300
|
this.component = paywall;
|
|
@@ -14771,6 +14775,13 @@ class NamiFlow extends BasicNamiFlow {
|
|
|
14771
14775
|
}
|
|
14772
14776
|
break;
|
|
14773
14777
|
}
|
|
14778
|
+
case exports.NamiFlowActionFunction.SET_FLOW_PATH: {
|
|
14779
|
+
const flowPath = action.parameters?.flowPath;
|
|
14780
|
+
if (typeof flowPath === "string") {
|
|
14781
|
+
this.flowPath = flowPath;
|
|
14782
|
+
}
|
|
14783
|
+
break;
|
|
14784
|
+
}
|
|
14774
14785
|
default:
|
|
14775
14786
|
logger.warn(`Missing action handler for ${action.function}`, action);
|
|
14776
14787
|
break;
|
package/dist/index.d.ts
CHANGED
|
@@ -136,7 +136,8 @@ declare enum NamiFlowActionFunction {
|
|
|
136
136
|
SET_TAGS_FROM_FORM = "setTagsFromForm",
|
|
137
137
|
PAUSE = "flowPause",
|
|
138
138
|
RESUME = "flowResume",
|
|
139
|
-
SET_LAUNCH_CONTEXT = "setLaunchContext"
|
|
139
|
+
SET_LAUNCH_CONTEXT = "setLaunchContext",
|
|
140
|
+
SET_FLOW_PATH = "setFlowPath"
|
|
140
141
|
}
|
|
141
142
|
type NamiFlowHandoffStepHandler = (handoffTag: string, handoffData?: Record<string, any>) => void;
|
|
142
143
|
type NamiFlowEventHandler = (eventHandler: Record<string, any>) => void;
|
|
@@ -171,6 +172,7 @@ interface NamiFlowAction {
|
|
|
171
172
|
handoffTag?: string;
|
|
172
173
|
handoffData?: Record<string, any>;
|
|
173
174
|
handoffFormId?: string;
|
|
175
|
+
flowPath?: string;
|
|
174
176
|
step?: string;
|
|
175
177
|
eventName?: string;
|
|
176
178
|
delay?: string | number;
|
|
@@ -2004,6 +2006,7 @@ declare class NamiFlow extends BasicNamiFlow {
|
|
|
2004
2006
|
currentScreenState: TPaywallContext | null;
|
|
2005
2007
|
isPaused: boolean;
|
|
2006
2008
|
pausedStepID?: string;
|
|
2009
|
+
flowPath: string;
|
|
2007
2010
|
timerStates: {
|
|
2008
2011
|
[timerId: string]: TimerState;
|
|
2009
2012
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -96,7 +96,7 @@ const {
|
|
|
96
96
|
// version — stamped by scripts/version.sh
|
|
97
97
|
NAMI_SDK_VERSION = "3.4.3",
|
|
98
98
|
// full package version including dev suffix — stamped by scripts/version.sh
|
|
99
|
-
NAMI_SDK_PACKAGE_VERSION = "3.4.3-dev.
|
|
99
|
+
NAMI_SDK_PACKAGE_VERSION = "3.4.3-dev.202606190101",
|
|
100
100
|
// environments
|
|
101
101
|
PRODUCTION = "production", DEVELOPMENT = "development",
|
|
102
102
|
// error messages
|
|
@@ -12616,6 +12616,7 @@ var NamiFlowActionFunction;
|
|
|
12616
12616
|
NamiFlowActionFunction["PAUSE"] = "flowPause";
|
|
12617
12617
|
NamiFlowActionFunction["RESUME"] = "flowResume";
|
|
12618
12618
|
NamiFlowActionFunction["SET_LAUNCH_CONTEXT"] = "setLaunchContext";
|
|
12619
|
+
NamiFlowActionFunction["SET_FLOW_PATH"] = "setFlowPath";
|
|
12619
12620
|
})(NamiFlowActionFunction || (NamiFlowActionFunction = {}));
|
|
12620
12621
|
const HandoffTag = {
|
|
12621
12622
|
SEQUENCE: '__handoff_sequence__',
|
|
@@ -13257,6 +13258,8 @@ class FlowLiquidResolver {
|
|
|
13257
13258
|
const s = PaywallState.currentProvider?.state;
|
|
13258
13259
|
return s?.groups?.find(g => g.id === s.currentGroupId)?.ref ?? undefined;
|
|
13259
13260
|
}
|
|
13261
|
+
case "flowPath":
|
|
13262
|
+
return flow?.flowPath;
|
|
13260
13263
|
default:
|
|
13261
13264
|
return undefined;
|
|
13262
13265
|
}
|
|
@@ -14289,6 +14292,7 @@ class NamiFlow extends BasicNamiFlow {
|
|
|
14289
14292
|
this.activeHandoffSequence = null;
|
|
14290
14293
|
this.currentScreenState = null;
|
|
14291
14294
|
this.isPaused = false;
|
|
14295
|
+
this.flowPath = "";
|
|
14292
14296
|
this.timerStates = {};
|
|
14293
14297
|
this.campaign = campaign;
|
|
14294
14298
|
this.component = paywall;
|
|
@@ -14769,6 +14773,13 @@ class NamiFlow extends BasicNamiFlow {
|
|
|
14769
14773
|
}
|
|
14770
14774
|
break;
|
|
14771
14775
|
}
|
|
14776
|
+
case NamiFlowActionFunction.SET_FLOW_PATH: {
|
|
14777
|
+
const flowPath = action.parameters?.flowPath;
|
|
14778
|
+
if (typeof flowPath === "string") {
|
|
14779
|
+
this.flowPath = flowPath;
|
|
14780
|
+
}
|
|
14781
|
+
break;
|
|
14782
|
+
}
|
|
14772
14783
|
default:
|
|
14773
14784
|
logger.warn(`Missing action handler for ${action.function}`, action);
|
|
14774
14785
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namiml/sdk-core",
|
|
3
|
-
"version": "3.4.3-dev.
|
|
3
|
+
"version": "3.4.3-dev.202606190101",
|
|
4
4
|
"description": "Platform-agnostic core for the Nami SDK — business logic, API, types, and state management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|