@namiml/web-sdk 3.4.1-dev.202605280043 → 3.4.1-dev.202605300006

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.
@@ -1,60 +1,10 @@
1
1
  import { PaywallState, IPaywall, NamiPaywallLaunchContext, NamiCampaign, TPaywallContext, TBaseComponent, TSpacerComponent, TSemverObj, TButtonContainer, THeaderFooter, TTextComponent, TSymbolComponent, TContainer, TProductContainer, TImageComponent, TSegmentPicker, TSegmentPickerItem, TVideoComponent, TCollapseContainer, TResponsiveGrid, TRepeatingGrid, TCarouselContainer, TVolumeButton, TPlayPauseButton, TStack, TPaywallLaunchContext, NamiFlow, TQRCodeComponent, TToggleSwitch, TRadioButton, TProgressIndicatorComponent, TToggleButtonComponent, TCountdownTimerTextComponent, TProgressBarComponent } from '@namiml/sdk-core';
2
- export { CustomerJourneyState, DeviceProfile, LaunchCampaignError, LogLevel, Nami, NamiAnonymousCampaign, NamiCampaign, NamiCampaignManager, NamiCampaignRuleType, NamiCampaignSegment, NamiConfiguration, NamiCustomerManager, NamiEntitlement, NamiEntitlementManager, NamiFlowCampaign, NamiFlowEventHandler, NamiFlowHandoffStepHandler, NamiFlowManager, NamiInitialConfig, NamiLanguageCodes, NamiLogLevel, NamiPaywallAction, NamiPaywallActionHandler, NamiPaywallComponentChange, NamiPaywallEvent, NamiPaywallEventVideoMetadata, NamiPaywallLaunchContext, NamiPaywallManager, NamiPaywallManagerEvents, NamiProductDetails, NamiProductOffer, NamiPurchase, NamiPurchaseDetails, NamiPurchasesState, NamiSKU, NamiSKUType, NamiSubscriptionInterval, NamiSubscriptionPeriod, isNamiFlowCampaign } from '@namiml/sdk-core';
2
+ export { CustomerJourneyState, DeviceProfile, LaunchCampaignError, LogLevel, Nami, NamiAnonymousCampaign, NamiCampaign, NamiCampaignManager, NamiCampaignRuleType, NamiCampaignSegment, NamiConfiguration, NamiCustomerManager, NamiEntitlement, NamiEntitlementManager, NamiFlowCampaign, NamiFlowEventHandler, NamiFlowHandoffStepHandler, NamiFlowManager, NamiInitialConfig, NamiLanguageCodes, NamiLogLevel, NamiPaywallAction, NamiPaywallActionHandler, NamiPaywallComponentChange, NamiPaywallEvent, NamiPaywallEventVideoMetadata, NamiPaywallLaunchContext, NamiPaywallManager, NamiPaywallManagerEvents, NamiProductDetails, NamiProductOffer, NamiPurchase, NamiPurchaseDetails, NamiPurchaseManager, NamiPurchasesState, NamiSKU, NamiSKUType, NamiSubscriptionInterval, NamiSubscriptionPeriod, _internal, isNamiFlowCampaign } from '@namiml/sdk-core';
3
3
  import * as lit from 'lit';
4
4
  import { ReactiveController, ReactiveControllerHost, LitElement, CSSResultGroup, CSSResult, PropertyValueMap, TemplateResult, PropertyValues } from 'lit';
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.
@@ -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;