@namiml/web-sdk 3.3.9-dev.202603120528 → 3.3.9-dev.202603120556
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/components/utils/products.d.ts +8 -1
- package/dist/nami/flow/NamiFlow.d.ts +9 -0
- package/dist/nami/flow/NamiFlowManager.d.ts +1 -0
- package/dist/nami-web.cjs +22 -22
- package/dist/nami-web.mjs +22 -22
- package/dist/nami-web.umd.js +30 -30
- package/dist/translations/translate.d.ts +6 -0
- package/dist/types/components/containers.d.ts +1 -0
- package/dist/types/flow.d.ts +3 -0
- package/package.json +2 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the translated string for the given key in the current SDK language.
|
|
3
|
+
* Uses Nami language code from storage (set via Nami.configure({ namiLanguageCode })).
|
|
4
|
+
* Falls back to English if the key or locale is missing.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getTranslate(key: string): string;
|
|
@@ -135,6 +135,7 @@ export type TResponsiveGrid = TBaseComponent & {
|
|
|
135
135
|
export type TToggleSwitch = TBaseComponent & {
|
|
136
136
|
component: 'toggleSwitch';
|
|
137
137
|
checked?: boolean;
|
|
138
|
+
formId: string;
|
|
138
139
|
innerPadding?: TVariablePattern | number;
|
|
139
140
|
activeHandleFillColor?: string;
|
|
140
141
|
activeHandleBorderColor?: string;
|
package/dist/types/flow.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ export declare enum NamiFlowActionFunction {
|
|
|
27
27
|
PAUSE = "flowPause",
|
|
28
28
|
RESUME = "flowResume"
|
|
29
29
|
}
|
|
30
|
+
export declare const HandoffTag: {
|
|
31
|
+
readonly SEQUENCE: "__handoff_sequence__";
|
|
32
|
+
};
|
|
30
33
|
export type NamiFlowHandoffStepHandler = (handoffTag: string, handoffData?: Record<string, any>) => void;
|
|
31
34
|
export type NamiFlowEventHandler = (eventHandler: Record<string, any>) => void;
|
|
32
35
|
export interface NamiFlowDTO {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@namiml/web-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.3.9-dev.
|
|
4
|
+
"version": "3.3.9-dev.202603120556",
|
|
5
5
|
"source": "src/nami-web.ts",
|
|
6
6
|
"description": "Subscription monetization infrastructure — drop-in SDK with no-code paywalls, onboarding flows, A/B testing for web",
|
|
7
7
|
"scripts": {
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"@open-wc/testing": "^4.0.0",
|
|
81
81
|
"@rollup/plugin-babel": "^6.0.4",
|
|
82
82
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
83
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
83
84
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
84
85
|
"@rollup/plugin-replace": "^5.0.5",
|
|
85
86
|
"@rollup/plugin-terser": "^0.4.4",
|