@namiml/web-sdk 1.7.0 → 1.7.1
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 +10 -0
- package/dist/components/NamiElement.d.ts +10 -1
- package/dist/components/containers/Footer.d.ts +2 -2
- package/dist/components/containers/Header.d.ts +2 -2
- package/dist/components/styles/animations.d.ts +2 -0
- package/dist/nami/flow/NamiFlow.d.ts +4 -0
- package/dist/nami/flow/NamiFlowManager.d.ts +3 -1
- package/dist/nami-web.cjs +90 -18
- package/dist/nami-web.mjs +90 -18
- package/dist/nami-web.umd.js +91 -19
- package/dist/types/components/animation.d.ts +40 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/externals/flow.d.ts +6 -0
- package/dist/types/flow.d.ts +3 -1
- package/dist/utils/animations.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Nami Web SDK Changelog
|
|
2
2
|
|
|
3
|
+
## 1.7.1
|
|
4
|
+
**Release Date:** September 3, 2025
|
|
5
|
+
|
|
6
|
+
### Enhancements
|
|
7
|
+
- Add `NamiFlowManager.pause` method
|
|
8
|
+
- Add component animations (pulse/wave)
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
- Completed Flows will no longer call registered paywall close handlers
|
|
12
|
+
|
|
3
13
|
## 1.7.0
|
|
4
14
|
**Release Date:** August 27, 2025
|
|
5
15
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { CSSResult, LitElement, PropertyValueMap } from "lit";
|
|
2
2
|
import ContextConsumer from "./ContextConsumer";
|
|
3
3
|
import { PaywallContextProvider } from "./ContextProvider";
|
|
4
|
-
|
|
4
|
+
import { TBaseComponent } from "../types/components";
|
|
5
|
+
export declare class NamiElementBase extends LitElement {
|
|
5
6
|
contextConsumer: ContextConsumer;
|
|
6
7
|
contextProvider: PaywallContextProvider;
|
|
7
8
|
constructor();
|
|
@@ -11,3 +12,11 @@ export declare class NamiElement extends LitElement {
|
|
|
11
12
|
protected willUpdate(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
12
13
|
disconnectedCallback(): void;
|
|
13
14
|
}
|
|
15
|
+
export declare abstract class NamiElement<C extends TBaseComponent = TBaseComponent> extends NamiElementBase {
|
|
16
|
+
contextConsumer: ContextConsumer;
|
|
17
|
+
contextProvider: PaywallContextProvider;
|
|
18
|
+
abstract component: C;
|
|
19
|
+
createRenderRoot(): HTMLElement | DocumentFragment;
|
|
20
|
+
protected willUpdate(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
21
|
+
protected animationStyles(): CSSResult;
|
|
22
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { NamiElementBase } from '../NamiElement';
|
|
3
3
|
import { THeaderFooter } from '../../types/components/containers';
|
|
4
|
-
export declare class NamiFooter extends
|
|
4
|
+
export declare class NamiFooter extends NamiElementBase {
|
|
5
5
|
components: THeaderFooter;
|
|
6
6
|
zIndex: string;
|
|
7
7
|
inFocusedState: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { NamiElementBase } from '../NamiElement';
|
|
3
3
|
import { THeaderFooter } from '../../types/components/containers';
|
|
4
|
-
export declare class NamiHeader extends
|
|
4
|
+
export declare class NamiHeader extends NamiElementBase {
|
|
5
5
|
components: THeaderFooter;
|
|
6
6
|
zIndex: string;
|
|
7
7
|
inFullScreen: boolean;
|
|
@@ -29,6 +29,8 @@ export declare class NamiFlow extends BasicNamiFlow {
|
|
|
29
29
|
component: PaywallComponent;
|
|
30
30
|
manager: NamiFlowManager;
|
|
31
31
|
currentButton?: NamiButton;
|
|
32
|
+
isPaused: boolean;
|
|
33
|
+
pausedStepID?: string;
|
|
32
34
|
constructor(campaign: NamiFlowCampaign, paywall: PaywallComponent, manager: NamiFlowManager, context?: NamiPaywallLaunchContext);
|
|
33
35
|
private registerResolvers;
|
|
34
36
|
get currentFlowStep(): NamiFlowStep | undefined;
|
|
@@ -44,6 +46,8 @@ export declare class NamiFlow extends BasicNamiFlow {
|
|
|
44
46
|
next(): void;
|
|
45
47
|
private backToPreviousScreenStep;
|
|
46
48
|
forward(stepId: string): void;
|
|
49
|
+
pause(): void;
|
|
50
|
+
resumeFromPause(): void;
|
|
47
51
|
executeLifecycle(step: NamiFlowStep, key: string, data?: Record<string, any>): void;
|
|
48
52
|
private lifecycles;
|
|
49
53
|
triggerActions(actionId: string, component?: NamiButton, data?: Record<string, any>): void;
|
|
@@ -14,7 +14,9 @@ export declare class NamiFlowManager {
|
|
|
14
14
|
eventHandler?: NamiFlowEventHandler;
|
|
15
15
|
static registerEventHandler(eventHandler: NamiFlowEventHandler): void;
|
|
16
16
|
static resume(): void;
|
|
17
|
-
presentFlow(campaign: NamiFlowCampaign, paywall: PaywallComponent, context?: NamiPaywallLaunchContext): NamiFlow;
|
|
18
17
|
static finish(): void;
|
|
18
|
+
static pause(): void;
|
|
19
19
|
static isFlowOpen(): boolean;
|
|
20
|
+
presentFlow(campaign: NamiFlowCampaign, paywall: PaywallComponent, context?: NamiPaywallLaunchContext): NamiFlow;
|
|
21
|
+
finishFlow(): void;
|
|
20
22
|
}
|