@namiml/web-sdk 1.5.0 → 1.5.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.1 (October 2, 2024)
4
+
5
+ ## Enhancements
6
+ - Add `TOGGLE_CHANGE` and `PAGE_CHANGE` paywall events
7
+
8
+ ## Bugfixes
9
+ - Fix carousel component swiper
10
+ - Fix flex alignment
11
+ - Fix hero video not redenering correctly in Safari
12
+
3
13
  ## 1.5.0 (September 26, 2024)
4
14
 
5
15
  ## New Features
@@ -19,8 +19,9 @@ declare class ContextProvider implements ReactiveController {
19
19
  private setState;
20
20
  setProductDetails(details: NamiProductDetails[]): void;
21
21
  getProductDetails(): NamiProductDetails[];
22
- setCurrentGroupId(currentGroupId: string): void;
22
+ setCurrentGroupData(currentGroupId: string, currentGroupName: string): void;
23
23
  getCurrentGroupId(): string;
24
+ getCurrentGroupName(): string;
24
25
  setSelectedProdcuts(products: {
25
26
  [currentGroupId: string]: string;
26
27
  }): void;
@@ -1,9 +1,12 @@
1
1
  import { CSSResult } from 'lit';
2
+ import Swiper from 'swiper';
2
3
  import { TCarouselContainer } from '../../types/components/containers';
3
4
  import { NamiElement } from '../NamiElement';
4
5
  export declare class NamiCarouselContainer extends NamiElement {
5
6
  component: TCarouselContainer;
6
7
  inFocusedState: boolean;
8
+ swiperInstance: Swiper;
7
9
  protected styles(): CSSResult;
10
+ protected updated(): void;
8
11
  render(): import("lit-html").TemplateResult<1>;
9
12
  }
@@ -7,7 +7,10 @@ export declare const signIn: () => void;
7
7
  export declare const deepLink: (url?: string) => void;
8
8
  export declare const buySKU: (onTap: UserAction, sku: NamiSKU) => NamiSKU;
9
9
  export declare const navigateToScreen: (screen?: string) => void;
10
- export declare const setState: () => void;
10
+ export declare const setState: () => {
11
+ id: string;
12
+ name: string;
13
+ };
11
14
  export declare const selectSKU: (sku: NamiSKU) => void;
12
15
  export declare const purchaseSelectedSKU: (sku: NamiSKU) => void;
13
16
  export declare const reloadProducts: () => void;
@@ -1,4 +1,4 @@
1
- import { NamiConfiguration } from "../types/config";
1
+ import { NamiConfiguration } from "../types/externals/config";
2
2
  import { Impression, LoginResponse } from "../types/api";
3
3
  import { PurchaseValidationRequest, TransactionRequest } from "../types/purchase";
4
4
  export declare class NamiAPI {
@@ -1,4 +1,5 @@
1
- import { NamiConfiguration, NamiConfigurationState } from "../types/config";
1
+ import { NamiConfigurationState } from "../types/config";
2
+ import { NamiConfiguration } from "../types/externals/config";
2
3
  export declare class Nami {
3
4
  #private;
4
5
  static instance: Nami;
@@ -1,4 +1,4 @@
1
- import { NamiConfiguration } from "../types/config";
1
+ import { NamiConfiguration } from "../types/externals/config";
2
2
  export declare class NamiRefs {
3
3
  static instance: NamiRefs;
4
4
  init(config: NamiConfiguration): Promise<void>;