@namiml/web-sdk 1.3.0 → 1.3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.2 (August 14, 2024)
4
+
5
+ ### Bug Fixes
6
+ - Support Conditional components based on product entitlement
7
+ - Respect conditions based on product groups
8
+
9
+ ## 1.3.1 (August 12, 2024)
10
+
11
+ ### Bug Fixes
12
+ - `SHOW_PAYWALL` event action is being triggered as `UNKNOWN`
13
+
3
14
  ## 1.3.0 (August 12, 2024)
4
15
 
5
16
  ### New Features
@@ -13,11 +24,11 @@
13
24
  - **New components** - Video and collapsable components.
14
25
  - **Improved timeout and error handling**
15
26
 
16
- ## Bug Fixes
27
+ ### Bug Fixes
17
28
  - Provide consistent typing with other Nami SDKs.
18
29
  - Updated the JavaScript version to ECMAScript2021 for better backward compatability.
19
30
 
20
- ## Breaking changes
31
+ ### Breaking changes
21
32
  - `NamiConfiguration`'s `appPlatformId` is now `appPlatformID` for consistentcy with other Nami SDKs
22
33
  - `NamiPaywallManager.buySkuComplete` has a much simpler (but modified) interface.
23
34
 
@@ -1,6 +1,7 @@
1
- import { ISkuMenu, TInitialState } from "src/types/paywall";
1
+ import { InitiateStateGroup, ISkuMenu, TInitialState } from "src/types/paywall";
2
2
  import { NamiProductDetails } from "src/types/externals/product";
3
3
  import { PaywallSKU } from "src/types/sku";
4
+ import { NamiPaywallLaunchContext } from "src/nami-web";
4
5
  export declare function currentSku(productDetails: NamiProductDetails[], initialState: TInitialState, skuMenus: ISkuMenu[], skus: PaywallSKU[]): {
5
6
  [key: string]: any;
6
7
  };
@@ -11,3 +12,4 @@ export declare function getSkuSmartTextValue(productDetail?: NamiProductDetails
11
12
  export declare function checkAnySkuHasTrialOffer(productDetails: NamiProductDetails[], skuMenus: ISkuMenu[], productGroups: string[]): boolean;
12
13
  export declare function checkAnySkuHasPromoOffer(productDetails: NamiProductDetails[], skuMenus: ISkuMenu[], productGroups: string[]): boolean;
13
14
  export declare function productDetail(details: NamiProductDetails[] | undefined, skuName: string): NamiProductDetails | null;
15
+ export declare function launchContext(groups: InitiateStateGroup[], stateLaunch: NamiPaywallLaunchContext, context?: NamiPaywallLaunchContext): NamiPaywallLaunchContext;