@namiml/web-sdk 3.4.1-dev.202605272004 → 3.4.1-dev.202605281900
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/PaywallScreen.d.ts +1 -0
- package/dist/components/containers/RepeatingGrid.d.ts +1 -1
- package/dist/components/utils/helpers.d.ts +19 -0
- package/dist/legacy-support.d.ts +1 -49
- package/dist/nami-web.cjs +30 -26
- package/dist/nami-web.d.ts +2 -51
- package/dist/nami-web.mjs +30 -26
- package/dist/nami-web.umd.js +31 -27
- package/dist/shims/getAttributeNames.d.ts +1 -0
- package/dist/shims/globalThis.d.ts +1 -0
- package/dist/utils/tts.d.ts +15 -14
- package/package.json +2 -2
package/dist/nami-web.d.ts
CHANGED
|
@@ -5,56 +5,6 @@ import { ReactiveController, ReactiveControllerHost, LitElement, CSSResultGroup,
|
|
|
5
5
|
import * as lit_html from 'lit-html';
|
|
6
6
|
import Swiper from 'swiper';
|
|
7
7
|
|
|
8
|
-
/* eslint-disable @typescript-eslint/no-implied-eval */
|
|
9
|
-
(() => {
|
|
10
|
-
if (typeof globalThis !== 'undefined') {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const resolveGlobal = () => {
|
|
15
|
-
if (typeof self !== 'undefined') {
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
if (typeof window !== 'undefined') {
|
|
19
|
-
return window;
|
|
20
|
-
}
|
|
21
|
-
if (typeof global !== 'undefined') {
|
|
22
|
-
return global;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return Function('return this')();
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const resolvedGlobal = resolveGlobal();
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(resolvedGlobal, 'globalThis', {
|
|
31
|
-
value: resolvedGlobal,
|
|
32
|
-
writable: true,
|
|
33
|
-
enumerable: false,
|
|
34
|
-
configurable: true,
|
|
35
|
-
});
|
|
36
|
-
})();
|
|
37
|
-
|
|
38
|
-
(() => {
|
|
39
|
-
if (
|
|
40
|
-
typeof Element === "undefined" ||
|
|
41
|
-
typeof Element.prototype.getAttributeNames === "function"
|
|
42
|
-
) {
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
Element.prototype.getAttributeNames = function getAttributeNames() {
|
|
47
|
-
const attributes = this.attributes;
|
|
48
|
-
const names = new Array(attributes.length);
|
|
49
|
-
|
|
50
|
-
for (let i = 0; i < attributes.length; i += 1) {
|
|
51
|
-
names[i] = attributes[i].name;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return names;
|
|
55
|
-
};
|
|
56
|
-
})();
|
|
57
|
-
|
|
58
8
|
/**
|
|
59
9
|
* Web-specific extension of PaywallState that integrates with Lit's
|
|
60
10
|
* reactive rendering system.
|
|
@@ -341,7 +291,7 @@ declare class NamiRepeatingGrid extends NamiElement {
|
|
|
341
291
|
scaleFactor: number;
|
|
342
292
|
minSDKVersion: TSemverObj;
|
|
343
293
|
protected styles(): CSSResult;
|
|
344
|
-
render():
|
|
294
|
+
render(): lit_html.TemplateResult<1>[];
|
|
345
295
|
}
|
|
346
296
|
|
|
347
297
|
declare class NamiCarouselContainer extends NamiElement {
|
|
@@ -407,6 +357,7 @@ declare class NamiPaywallScreen extends LitElement {
|
|
|
407
357
|
paywall: IPaywall;
|
|
408
358
|
campaign: NamiCampaign;
|
|
409
359
|
context: TPaywallLaunchContext;
|
|
360
|
+
active: boolean;
|
|
410
361
|
private contextProvider;
|
|
411
362
|
private contextConsumer;
|
|
412
363
|
private minSDKVersion;
|