@namiml/web-sdk 3.4.1 → 3.4.2-dev.202605300214
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/containers/RepeatingGrid.d.ts +1 -1
- package/dist/components/utils/helpers.d.ts +19 -0
- package/dist/nami-web.cjs +16 -13
- package/dist/nami-web.d.ts +1 -1
- package/dist/nami-web.mjs +16 -13
- package/dist/nami-web.umd.js +30 -27
- package/package.json +2 -2
|
@@ -12,6 +12,25 @@ export declare function getInterpolatedButtonComponents(contextProvider: Paywall
|
|
|
12
12
|
export declare function getSkuButtonComponents(contextProvider: PaywallContextProvider, items: PaywallSKU[], component: TProductContainer, mediaList?: {
|
|
13
13
|
[mediaName: string]: Pick<TPaywallMedia, 'content'>;
|
|
14
14
|
}): [boolean, TComponent[]][];
|
|
15
|
+
/**
|
|
16
|
+
* A repeating-list section. `header` is null when grouping is inactive; otherwise it is the
|
|
17
|
+
* interpolated group-header component-list. `items` holds one component-list per repeated item.
|
|
18
|
+
*/
|
|
19
|
+
export type TRepeatingListSection = {
|
|
20
|
+
header: TComponent[] | null;
|
|
21
|
+
items: TComponent[][];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Partitions a repeating grid's loop source into sections. With no `groupBy`/`groupHeaderTemplate`
|
|
25
|
+
* a single header-less section is returned; with grouping, one section per group key in
|
|
26
|
+
* first-appearance order. Consumed by `nami-repeating-grid` so headers can render as full-width
|
|
27
|
+
* rows above their group's items.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getRepeatingListSections(contextProvider: PaywallContextProvider, component: TResponsiveGrid | TRepeatingGrid): TRepeatingListSection[];
|
|
30
|
+
/**
|
|
31
|
+
* Flattened view of {@link getRepeatingListSections} that interleaves header and item
|
|
32
|
+
* component-lists. Preserves the historical `TComponent[][]` contract used by `nami-responsive-grid`.
|
|
33
|
+
*/
|
|
15
34
|
export declare function getRepeatingListBlocks(contextProvider: PaywallContextProvider, component: TResponsiveGrid | TRepeatingGrid): TComponent[][];
|
|
16
35
|
export declare function conditionComponentMatches(contextProvider: PaywallContextProvider, condition: TConditionalComponent): boolean;
|
|
17
36
|
export declare function withOverrides<T extends TBaseComponent>(contextProvider: PaywallContextProvider, { conditionAttributes, ...component }: T): T;
|