@namiml/web-sdk 1.5.1 → 1.5.2

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.
@@ -8,8 +8,11 @@ export declare class VideoService {
8
8
  autoplayVideo: boolean;
9
9
  videoComponentName: string;
10
10
  videoComponentId: string;
11
+ videoSrc: string;
12
+ toggling: boolean;
11
13
  static instance: VideoService;
12
- constructor(video: HTMLVideoElement, muteByDefault: boolean, loopVideo: boolean, autoplayVideo: boolean, name?: string, id?: string);
14
+ constructor(video: HTMLVideoElement, name?: string, id?: string);
15
+ handleVideoEvents: () => void;
13
16
  togglePlayVideo(): void;
14
17
  toggleMuteVideo(): void;
15
18
  videoPlayingAction(): NamiPaywallAction.VIDEO_STARTED | NamiPaywallAction.VIDEO_PAUSED | NamiPaywallAction.VIDEO_RESUMED | NamiPaywallAction.VIDEO_ENDED | NamiPaywallAction.UNKNOWN;
@@ -47,10 +47,14 @@ export type TCarouselContainer = Omit<TContainer, "component"> & {
47
47
  activeIndicatorColor: string;
48
48
  autoplay: boolean;
49
49
  autoplaySeconds: number;
50
- loopSource?: any[];
50
+ loopSource?: TCarouselSlide[] | string;
51
51
  loopVariable?: string;
52
52
  loopSourceConditions: TTestObject[];
53
53
  showIndicators?: boolean;
54
+ inactiveSlideScale?: number;
55
+ nextSlidePadding?: number;
56
+ previousSlidePadding?: number;
57
+ slideSpacing?: number;
54
58
  };
55
59
  export type TCarouselSlidesState = {
56
60
  [groupId: string]: {
@@ -96,7 +100,7 @@ export type TResponsiveGrid = TBaseComponent & {
96
100
  component: "responsiveGrid";
97
101
  components: any;
98
102
  loopVariable?: string;
99
- loopSource?: any[];
103
+ loopSource?: string;
100
104
  loopSourceConditions: TTestObject[];
101
105
  };
102
106
  export {};
@@ -85,6 +85,8 @@ type TransformToString<T> = {
85
85
  export type TConditionalAttributes = Array<Omit<TConditionalComponent, "components"> & {
86
86
  attributes: Partial<TransformToString<TBaseComponent>> & {
87
87
  text?: string;
88
+ url?: string;
89
+ screenreaderText?: string;
88
90
  };
89
91
  }>;
90
92
  export type TField = "image" | "listContainerComponent" | "text" | "url" | "textArea" | "fontSelect" | "splitTextArea" | "color" | "colorGradient" | "number" | "alignment" | "carouselSlides" | "option" | "iconSelect" | "toggle";
@@ -12,8 +12,8 @@ export interface NamiCampaign {
12
12
  value?: string | null;
13
13
  form_factors: FormFactor[];
14
14
  external_segment: string | null;
15
- conversion_event_type?: CampaignRuleConversionEventType;
16
- conversion_event_url?: string;
15
+ conversion_event_type?: CampaignRuleConversionEventType | null;
16
+ conversion_event_url?: string | null;
17
17
  }
18
18
  /**
19
19
  * @enum NamiCampaignRuleType
@@ -6,7 +6,7 @@ export interface SKU {
6
6
  name: string;
7
7
  sku_ref_id: string;
8
8
  entitlements: IEntitlements[];
9
- sku_type: NamiSKUType;
9
+ sku_type?: NamiSKUType;
10
10
  }
11
11
  export interface PaywallSKU extends SKU {
12
12
  display_text?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@namiml/web-sdk",
3
3
  "type": "module",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "source": "src/nami-web.ts",
6
6
  "description": "Nami Web SDK makes subscriptions & in-app purchases easy, with powerful built-in paywalls and A/B testing",
7
7
  "scripts": {