@namiml/web-sdk 1.3.1 → 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,11 @@
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
+
3
9
  ## 1.3.1 (August 12, 2024)
4
10
 
5
11
  ### Bug Fixes
@@ -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;