@namiml/web-sdk 1.6.0 → 1.6.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 +5 -0
- package/dist/components/ContextProvider.d.ts +1 -1
- package/dist/components/Paywall.d.ts +1 -1
- package/dist/components/utils/state.d.ts +1 -1
- package/dist/components/utils/styles.d.ts +1 -1
- package/dist/nami/customer.d.ts +1 -0
- package/dist/nami/flow/NamiFlow.d.ts +6 -6
- package/dist/nami/flow/NamiFlowManager.d.ts +4 -4
- package/dist/nami/utils/resolvers/ConditionalEvaluator.d.ts +1 -1
- package/dist/nami/utils/resolvers/FlowLiquidResolver.d.ts +1 -1
- package/dist/nami/utils/resolvers/LaunchContextResolver.d.ts +1 -1
- package/dist/nami-web.cjs +2 -2
- package/dist/nami-web.js +2 -2
- package/dist/nami-web.mjs +2 -2
- package/dist/nami-web.umd.js +2 -2
- package/dist/repositories/customerJourney.repository.d.ts +1 -1
- package/dist/services/video.service.d.ts +1 -1
- package/dist/types/flow.d.ts +1 -1
- package/dist/types/paywall.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ import { NamiSKU } from '../types/externals/sku';
|
|
|
5
5
|
import { NamiCampaign } from '../types/externals/campaign';
|
|
6
6
|
import { TDevice } from '../types/device';
|
|
7
7
|
import { Callback } from '../types/components/containers';
|
|
8
|
-
import type { NamiFlow } from '
|
|
8
|
+
import type { NamiFlow } from '../nami/flow/NamiFlow';
|
|
9
9
|
export declare const initialState: TPaywallContext;
|
|
10
10
|
declare class ContextProvider extends EventTarget implements ReactiveController {
|
|
11
11
|
host: ReactiveControllerHost | null;
|
|
@@ -3,7 +3,7 @@ import { NamiElement } from './NamiElement';
|
|
|
3
3
|
import { PropertyValues, TemplateResult } from 'lit';
|
|
4
4
|
import { NamiCampaign } from '../types/externals/campaign';
|
|
5
5
|
import { NamiPaywallEvent } from '../types/externals/paywall';
|
|
6
|
-
import type { NamiFlow } from '
|
|
6
|
+
import type { NamiFlow } from '../nami/flow/NamiFlow';
|
|
7
7
|
declare class PaywallComponent extends NamiElement {
|
|
8
8
|
campaign: NamiCampaign | undefined;
|
|
9
9
|
paywall: IPaywall | undefined;
|
|
@@ -2,7 +2,7 @@ import { ISkuMenu, TInitialState } from "../../types/paywall";
|
|
|
2
2
|
import { NamiProductDetails } from "../../types/externals/product";
|
|
3
3
|
import { PaywallSKU } from "../../types/sku";
|
|
4
4
|
import { NamiPaywallLaunchContext } from "../../nami-web";
|
|
5
|
-
import { TCarouselSlide } from "
|
|
5
|
+
import { TCarouselSlide } from "../../types/components/containers";
|
|
6
6
|
export declare function currentSku(productDetails: NamiProductDetails[], initialState: TInitialState, skuMenus: ISkuMenu[], skus: PaywallSKU[]): {
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TCarouselContainer } from "
|
|
1
|
+
import { TCarouselContainer } from "../../types/components/containers";
|
|
2
2
|
import { TBaseComponent, TContainerPosition } from "../../types/components";
|
|
3
3
|
import { TSegmentPickerItem, TTextLikeComponent } from "../../types/components/elements";
|
|
4
4
|
export declare function parseSize(value: string | number, scaleFactor: number): string;
|
package/dist/nami/customer.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { NamiFlowObjectDTO, NamiFlowStep } from "
|
|
2
|
-
import type { NamiCampaign, NamiFlowCampaign } from '
|
|
3
|
-
import type { NamiPaywallLaunchContext } from '
|
|
4
|
-
import type { PaywallComponent } from "
|
|
1
|
+
import type { NamiFlowObjectDTO, NamiFlowStep } from "../../types/flow";
|
|
2
|
+
import type { NamiCampaign, NamiFlowCampaign } from '../../types/externals/campaign';
|
|
3
|
+
import type { NamiPaywallLaunchContext } from '../../types/externals/paywall';
|
|
4
|
+
import type { PaywallComponent } from "../../components/Paywall";
|
|
5
5
|
import type { NamiFlowManager } from "./NamiFlowManager";
|
|
6
|
-
import type { NamiButton } from "
|
|
6
|
+
import type { NamiButton } from "../../components";
|
|
7
7
|
export declare class BasicNamiFlow implements NamiFlowObjectDTO {
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
@@ -28,7 +28,7 @@ export declare class NamiFlow extends BasicNamiFlow {
|
|
|
28
28
|
manager: NamiFlowManager;
|
|
29
29
|
currentButton?: NamiButton;
|
|
30
30
|
constructor(campaign: NamiFlowCampaign, paywall: PaywallComponent, manager: NamiFlowManager, context?: NamiPaywallLaunchContext);
|
|
31
|
-
|
|
31
|
+
private registerResolvers;
|
|
32
32
|
get currentFlowStep(): NamiFlowStep | undefined;
|
|
33
33
|
get nextStepAvailable(): boolean;
|
|
34
34
|
get previousStepAvailable(): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { NamiFlowEventHandler, NamiFlowHandoffStepHandler } from "
|
|
1
|
+
import type { NamiFlowEventHandler, NamiFlowHandoffStepHandler } from "../../types/flow";
|
|
2
2
|
import { NamiFlow } from "./NamiFlow";
|
|
3
|
-
import type { NamiFlowCampaign } from '
|
|
4
|
-
import { NamiPaywallLaunchContext } from '
|
|
5
|
-
import { PaywallComponent } from "
|
|
3
|
+
import type { NamiFlowCampaign } from '../../types/externals/campaign';
|
|
4
|
+
import { NamiPaywallLaunchContext } from '../../types/externals/paywall';
|
|
5
|
+
import { PaywallComponent } from "../../components/Paywall";
|
|
6
6
|
export declare class NamiFlowManager {
|
|
7
7
|
private static _instance;
|
|
8
8
|
static get instance(): NamiFlowManager;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NamiFlowManager } from "
|
|
1
|
+
import type { NamiFlowManager } from "../../../nami/flow/NamiFlowManager";
|
|
2
2
|
/**
|
|
3
3
|
* Resolver for liquid-style flow variables, without requiring namespace prefixes.
|
|
4
4
|
* We drop BaseNamespaceResolver since we don't need namespace registration or stripping.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NamiPaywallLaunchContext } from "
|
|
1
|
+
import { NamiPaywallLaunchContext } from "../../../nami-web";
|
|
2
2
|
import { BaseNamespaceResolver } from "./BaseNameSpaceResolver";
|
|
3
3
|
export declare class LaunchContextResolver extends BaseNamespaceResolver {
|
|
4
4
|
protected readonly namespace = "LaunchContext";
|