@namiml/sdk-core 3.4.0-dev.202605182046 → 3.4.0-dev.202605190129
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 +1 -14
- package/dist/index.d.ts +0 -2
- package/dist/index.mjs +1 -14
- 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.0",
|
|
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.0-dev.
|
|
101
|
+
NAMI_SDK_PACKAGE_VERSION: exports.NAMI_SDK_PACKAGE_VERSION = "3.4.0-dev.202605190129",
|
|
102
102
|
// environments
|
|
103
103
|
PRODUCTION: exports.PRODUCTION = "production", DEVELOPMENT: exports.DEVELOPMENT = "development",
|
|
104
104
|
// error messages
|
|
@@ -13685,19 +13685,6 @@ class NamiFlow extends BasicNamiFlow {
|
|
|
13685
13685
|
this.forward(nextStep.id);
|
|
13686
13686
|
}
|
|
13687
13687
|
}
|
|
13688
|
-
handleRemoteBack() {
|
|
13689
|
-
const step = this.currentFlowStep;
|
|
13690
|
-
if (step?.actions[NamiReservedActions.REMOTE_BACK]) {
|
|
13691
|
-
this.triggerActions(NamiReservedActions.REMOTE_BACK);
|
|
13692
|
-
return 'handler';
|
|
13693
|
-
}
|
|
13694
|
-
if (this.previousStepAvailable) {
|
|
13695
|
-
this.back();
|
|
13696
|
-
return 'back';
|
|
13697
|
-
}
|
|
13698
|
-
this.finished();
|
|
13699
|
-
return 'dismissed';
|
|
13700
|
-
}
|
|
13701
13688
|
backToPreviousScreenStep() {
|
|
13702
13689
|
if (this.previousFlowStep?.allow_back_to === false) {
|
|
13703
13690
|
logger.warn(`Not allowed to go back to ${this.previousFlowStep.id}`);
|
package/dist/index.d.ts
CHANGED
|
@@ -113,7 +113,6 @@ declare const NamiFlowStepType: {
|
|
|
113
113
|
readonly UNKNOWN: "unknown";
|
|
114
114
|
};
|
|
115
115
|
type NamiFlowStepType = (typeof NamiFlowStepType)[keyof typeof NamiFlowStepType];
|
|
116
|
-
type RemoteBackOutcome = 'handler' | 'back' | 'dismissed';
|
|
117
116
|
declare enum NamiFlowActionFunction {
|
|
118
117
|
NAVIGATE = "flowNav",
|
|
119
118
|
BACK = "flowPrev",
|
|
@@ -1430,7 +1429,6 @@ declare class NamiFlow extends BasicNamiFlow {
|
|
|
1430
1429
|
finished(): void;
|
|
1431
1430
|
back(): void;
|
|
1432
1431
|
next(): void;
|
|
1433
|
-
handleRemoteBack(): RemoteBackOutcome;
|
|
1434
1432
|
private backToPreviousScreenStep;
|
|
1435
1433
|
forward(stepId: string): void;
|
|
1436
1434
|
pause(): void;
|
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.0",
|
|
98
98
|
// full package version including dev suffix — stamped by scripts/version.sh
|
|
99
|
-
NAMI_SDK_PACKAGE_VERSION = "3.4.0-dev.
|
|
99
|
+
NAMI_SDK_PACKAGE_VERSION = "3.4.0-dev.202605190129",
|
|
100
100
|
// environments
|
|
101
101
|
PRODUCTION = "production", DEVELOPMENT = "development",
|
|
102
102
|
// error messages
|
|
@@ -13683,19 +13683,6 @@ class NamiFlow extends BasicNamiFlow {
|
|
|
13683
13683
|
this.forward(nextStep.id);
|
|
13684
13684
|
}
|
|
13685
13685
|
}
|
|
13686
|
-
handleRemoteBack() {
|
|
13687
|
-
const step = this.currentFlowStep;
|
|
13688
|
-
if (step?.actions[NamiReservedActions.REMOTE_BACK]) {
|
|
13689
|
-
this.triggerActions(NamiReservedActions.REMOTE_BACK);
|
|
13690
|
-
return 'handler';
|
|
13691
|
-
}
|
|
13692
|
-
if (this.previousStepAvailable) {
|
|
13693
|
-
this.back();
|
|
13694
|
-
return 'back';
|
|
13695
|
-
}
|
|
13696
|
-
this.finished();
|
|
13697
|
-
return 'dismissed';
|
|
13698
|
-
}
|
|
13699
13686
|
backToPreviousScreenStep() {
|
|
13700
13687
|
if (this.previousFlowStep?.allow_back_to === false) {
|
|
13701
13688
|
logger.warn(`Not allowed to go back to ${this.previousFlowStep.id}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namiml/sdk-core",
|
|
3
|
-
"version": "3.4.0-dev.
|
|
3
|
+
"version": "3.4.0-dev.202605190129",
|
|
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",
|