@namiml/web-sdk 3.3.9-dev.202603120541 → 3.3.9-dev.202603120740
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/nami/flow/NamiFlow.d.ts +9 -0
- package/dist/nami/flow/NamiFlowManager.d.ts +1 -0
- package/dist/nami-web.cjs +4 -4
- package/dist/nami-web.mjs +4 -4
- package/dist/nami-web.umd.js +4 -4
- package/dist/services/storage.service.d.ts +5 -0
- package/dist/types/components/containers.d.ts +1 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/flow.d.ts +3 -0
- package/dist/utils/config.d.ts +1 -0
- package/package.json +1 -1
|
@@ -60,6 +60,11 @@ export declare class StorageService {
|
|
|
60
60
|
getAnonymousUUID(): string | null;
|
|
61
61
|
setAnonymousUUID(uuid: string): void;
|
|
62
62
|
clearAnonymousUUID(): void;
|
|
63
|
+
private isTtlCacheKey;
|
|
64
|
+
private getCampaignCacheTtl;
|
|
65
|
+
private setWithTtl;
|
|
66
|
+
private isTimestampedCache;
|
|
67
|
+
private getWithTtl;
|
|
63
68
|
/**
|
|
64
69
|
* Set an item in localStorage.
|
|
65
70
|
* @param {string} key - The key under which to store the data.
|
|
@@ -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/config.d.ts
CHANGED
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/dist/utils/config.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ExtendedPlatformInfo, InitialConfig, InitialConfigCompressed } from "..
|
|
|
2
2
|
export declare const getBaseUrl: (namiCommands?: string[]) => string;
|
|
3
3
|
export declare const getExtendedClientInfo: (namiCommands: string[]) => ExtendedPlatformInfo;
|
|
4
4
|
export declare const hasCapability: (capability: string) => boolean;
|
|
5
|
+
export declare const getCampaignCacheTtl: () => number | null;
|
|
5
6
|
export declare const hasPurchaseManagement: (messagePrefix?: string) => boolean;
|
|
6
7
|
export declare const shouldValidateProductGroups: () => boolean;
|
|
7
8
|
export declare function tryParseJson(str: string): InitialConfig | InitialConfigCompressed | undefined;
|
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.202603120740",
|
|
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": {
|