@monetize.software/sdk 3.0.0-alpha.20 → 3.0.0-alpha.22

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/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core.cjs"),r=require("./chunks/PaywallUI-Cybo6wdO.js");exports.ApiClient=e.ApiClient;exports.ApiGatewayClient=e.ApiGatewayClient;exports.AuthClient=e.AuthClient;exports.BillingClient=e.BillingClient;exports.EventTracker=e.EventTracker;exports.PaywallError=e.PaywallError;exports.QuotaExceededError=e.QuotaExceededError;exports.SDK_VERSION=e.SDK_VERSION;exports.STORAGE_KEYS=e.STORAGE_KEYS;exports.createStorage=e.createStorage;exports.ensureVisitorId=e.ensureVisitorId;exports.findApplicableOffer=e.findApplicableOffer;exports.generateVisitorId=e.generateVisitorId;exports.offerStartStorageKey=e.offerStartStorageKey;exports.readBrowserOfferStart=e.readBrowserOfferStart;exports.resolveOffer=e.resolveOffer;exports.PaywallUI=r.PaywallUI;exports.blockRegistry=r.blockRegistry;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-CzDSBl4d.js"),r=require("./chunks/PaywallUI-dx0GSfTf.js");exports.ApiClient=e.ApiClient;exports.ApiGatewayClient=e.ApiGatewayClient;exports.AuthClient=e.AuthClient;exports.BillingClient=e.BillingClient;exports.EventTracker=e.EventTracker;exports.PaywallError=e.PaywallError;exports.QuotaExceededError=e.QuotaExceededError;exports.SDK_VERSION=e.SDK_VERSION;exports.STORAGE_KEYS=e.STORAGE_KEYS;exports.createStorage=e.createStorage;exports.ensureVisitorId=e.ensureVisitorId;exports.findApplicableOffer=e.findApplicableOffer;exports.generateVisitorId=e.generateVisitorId;exports.offerStartStorageKey=e.offerStartStorageKey;exports.readBrowserOfferStart=e.readBrowserOfferStart;exports.resolveOffer=e.resolveOffer;exports.PaywallUI=r.PaywallUI;exports.blockRegistry=r.blockRegistry;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -1530,6 +1530,12 @@ export declare class PaywallUI {
1530
1530
  private watcher;
1531
1531
  private tracker;
1532
1532
  private purchased;
1533
+ /** View, с которым последний раз монтировалась модалка. Гейтит аналитику
1534
+ * `paywall_opened`/`paywall_viewed` на реальный пейвол (`'layout'`): открытие
1535
+ * support / standalone-auth / awaiting_payment эмитит публичный `'open'` и
1536
+ * `'ready'`, но это не «пейвол открыт/просмотрен» — иначе саппорт-клик шлёт
1537
+ * ложный `paywall_opened`. */
1538
+ private lastMountedView;
1533
1539
  /** Lazy-инстанс TrialStore. Резолвится при первом open(), когда уже знаем
1534
1540
  * `bootstrap.settings.trial`. null — триал отключён в конфиге пейвола. */
1535
1541
  private trialStore;
package/dist/index.js CHANGED
@@ -1,23 +1,23 @@
1
- import { ApiClient as t, ApiGatewayClient as a, AuthClient as i, BillingClient as o, EventTracker as l, PaywallError as f, QuotaExceededError as n, SDK_VERSION as s, STORAGE_KEYS as S, createStorage as E, ensureVisitorId as d, findApplicableOffer as p, generateVisitorId as c, offerStartStorageKey as g, readBrowserOfferStart as y, resolveOffer as A } from "./core.js";
2
- import { P as w, b as C } from "./chunks/PaywallUI-BXEOgPTK.js";
1
+ import { A as r, a as s, b as t, B as i, E as o, P as l, Q as f, S as n, c as S, d as E, e as d, f as c, h as p, o as A, r as g, i as y } from "./chunks/index-CLB1AgLg.js";
2
+ import { P as b, b as w } from "./chunks/PaywallUI-DL_njLCG.js";
3
3
  export {
4
- t as ApiClient,
5
- a as ApiGatewayClient,
6
- i as AuthClient,
7
- o as BillingClient,
8
- l as EventTracker,
9
- f as PaywallError,
10
- w as PaywallUI,
11
- n as QuotaExceededError,
12
- s as SDK_VERSION,
4
+ r as ApiClient,
5
+ s as ApiGatewayClient,
6
+ t as AuthClient,
7
+ i as BillingClient,
8
+ o as EventTracker,
9
+ l as PaywallError,
10
+ b as PaywallUI,
11
+ f as QuotaExceededError,
12
+ n as SDK_VERSION,
13
13
  S as STORAGE_KEYS,
14
- C as blockRegistry,
14
+ w as blockRegistry,
15
15
  E as createStorage,
16
16
  d as ensureVisitorId,
17
- p as findApplicableOffer,
18
- c as generateVisitorId,
19
- g as offerStartStorageKey,
20
- y as readBrowserOfferStart,
21
- A as resolveOffer
17
+ c as findApplicableOffer,
18
+ p as generateVisitorId,
19
+ A as offerStartStorageKey,
20
+ g as readBrowserOfferStart,
21
+ y as resolveOffer
22
22
  };
23
23
  //# sourceMappingURL=index.js.map
package/dist/ui.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/PaywallUI-Cybo6wdO.js");exports.PaywallUI=e.PaywallUI;exports.blockRegistry=e.blockRegistry;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/PaywallUI-dx0GSfTf.js");exports.PaywallUI=e.PaywallUI;exports.blockRegistry=e.blockRegistry;
2
2
  //# sourceMappingURL=ui.cjs.map
package/dist/ui.d.ts CHANGED
@@ -1459,6 +1459,12 @@ export declare class PaywallUI {
1459
1459
  private watcher;
1460
1460
  private tracker;
1461
1461
  private purchased;
1462
+ /** View, с которым последний раз монтировалась модалка. Гейтит аналитику
1463
+ * `paywall_opened`/`paywall_viewed` на реальный пейвол (`'layout'`): открытие
1464
+ * support / standalone-auth / awaiting_payment эмитит публичный `'open'` и
1465
+ * `'ready'`, но это не «пейвол открыт/просмотрен» — иначе саппорт-клик шлёт
1466
+ * ложный `paywall_opened`. */
1467
+ private lastMountedView;
1462
1468
  /** Lazy-инстанс TrialStore. Резолвится при первом open(), когда уже знаем
1463
1469
  * `bootstrap.settings.trial`. null — триал отключён в конфиге пейвола. */
1464
1470
  private trialStore;
package/dist/ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P as o, b as r } from "./chunks/PaywallUI-BXEOgPTK.js";
1
+ import { P as o, b as r } from "./chunks/PaywallUI-DL_njLCG.js";
2
2
  export {
3
3
  o as PaywallUI,
4
4
  r as blockRegistry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monetize.software/sdk",
3
- "version": "3.0.0-alpha.20",
3
+ "version": "3.0.0-alpha.22",
4
4
  "description": "Monetize SDK — bundled billing client and paywall render engine for web and Chrome extensions",
5
5
  "type": "module",
6
6
  "sideEffects": false,