@namiml/web-sdk 3.5.0-dev.202610191953 → 3.5.0-dev.202610272352
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/dist/components/utils/helpers.d.ts +9 -0
- package/dist/nami-web.cjs +32 -32
- package/dist/nami-web.mjs +32 -32
- package/dist/nami-web.umd.js +33 -33
- package/package.json +2 -2
|
@@ -45,6 +45,15 @@ export declare function getRepeatingListBlocks(contextProvider: PaywallContextPr
|
|
|
45
45
|
export declare function conditionComponentMatches(contextProvider: PaywallContextProvider, condition: TConditionalComponent, sku?: PaywallSKU): boolean;
|
|
46
46
|
export declare function withOverrides<T extends TBaseComponent>(contextProvider: PaywallContextProvider, { conditionAttributes, ...component }: T, sku?: PaywallSKU): T;
|
|
47
47
|
export declare function valueFromSmartText<T>(contextProvider: PaywallContextProvider, value: T, sku?: PaywallSKU, block?: any): T;
|
|
48
|
+
/**
|
|
49
|
+
* Evaluates `max(a, b)`, e.g. `"max(${state.safeAreaBottom}, 40)"`, so an author can floor a
|
|
50
|
+
* safe-area inset at a minimum (NAM-5329; same contract as Apple NAM-4613 and Android NAM-4614).
|
|
51
|
+
*
|
|
52
|
+
* Exactly two arguments, each a plain number or a single `${...}` token. An argument that does
|
|
53
|
+
* not resolve to a number contributes 0. Returns undefined for anything that is not a
|
|
54
|
+
* well-formed two-argument `max(...)`, so the caller resolves it as ordinary smart text.
|
|
55
|
+
*/
|
|
56
|
+
export declare function resolveMaxExpression(value: string, resolveToken: (argument: string) => unknown): number | undefined;
|
|
48
57
|
export declare const totalTimeSpentOnPaywall: (contextProvider: PaywallContextProvider) => number | undefined;
|
|
49
58
|
export declare const rgbaToHex: (rgba?: string) => string | null;
|
|
50
59
|
export declare const sameColors: (color1?: string, color2?: string) => boolean;
|