@namiml/web-sdk 3.4.1-dev.202605280043 → 3.4.1-rc.202605282113

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.
@@ -4,6 +4,7 @@ export declare class NamiPaywallScreen extends LitElement {
4
4
  paywall: IPaywall;
5
5
  campaign: NamiCampaign;
6
6
  context: TPaywallLaunchContext;
7
+ active: boolean;
7
8
  private contextProvider;
8
9
  private contextConsumer;
9
10
  private minSDKVersion;
@@ -7,5 +7,5 @@ export declare class NamiRepeatingGrid extends NamiElement {
7
7
  scaleFactor: number;
8
8
  minSDKVersion: TSemverObj;
9
9
  protected styles(): CSSResult;
10
- render(): import("lit-html").TemplateResult<1>[];
10
+ render(): any[][];
11
11
  }
@@ -12,25 +12,6 @@ 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
- */
34
15
  export declare function getRepeatingListBlocks(contextProvider: PaywallContextProvider, component: TResponsiveGrid | TRepeatingGrid): TComponent[][];
35
16
  export declare function conditionComponentMatches(contextProvider: PaywallContextProvider, condition: TConditionalComponent): boolean;
36
17
  export declare function withOverrides<T extends TBaseComponent>(contextProvider: PaywallContextProvider, { conditionAttributes, ...component }: T): T;
@@ -1,49 +1 @@
1
- /* eslint-disable @typescript-eslint/no-implied-eval */
2
- (() => {
3
- if (typeof globalThis !== 'undefined') {
4
- return;
5
- }
6
-
7
- const resolveGlobal = () => {
8
- if (typeof self !== 'undefined') {
9
- return self;
10
- }
11
- if (typeof window !== 'undefined') {
12
- return window;
13
- }
14
- if (typeof global !== 'undefined') {
15
- return global;
16
- }
17
-
18
- return Function('return this')();
19
- };
20
-
21
- const resolvedGlobal = resolveGlobal();
22
-
23
- Object.defineProperty(resolvedGlobal, 'globalThis', {
24
- value: resolvedGlobal,
25
- writable: true,
26
- enumerable: false,
27
- configurable: true,
28
- });
29
- })();
30
-
31
- (() => {
32
- if (
33
- typeof Element === "undefined" ||
34
- typeof Element.prototype.getAttributeNames === "function"
35
- ) {
36
- return;
37
- }
38
-
39
- Element.prototype.getAttributeNames = function getAttributeNames() {
40
- const attributes = this.attributes;
41
- const names = new Array(attributes.length);
42
-
43
- for (let i = 0; i < attributes.length; i += 1) {
44
- names[i] = attributes[i].name;
45
- }
46
-
47
- return names;
48
- };
49
- })();
1
+ export {};