@monetize.software/sdk 3.0.0-alpha.2 → 3.0.0-alpha.3

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-CbbcfXXZ.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.generateVisitorId=e.generateVisitorId;exports.PaywallUI=r.PaywallUI;exports.blockRegistry=r.blockRegistry;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core.cjs"),r=require("./chunks/PaywallUI-BWU_1hsh.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.generateVisitorId=e.generateVisitorId;exports.PaywallUI=r.PaywallUI;exports.blockRegistry=r.blockRegistry;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -1335,6 +1335,8 @@ export declare class PaywallUI {
1335
1335
  private lastVisibility;
1336
1336
  /** Поведение open() при холодном bootstrap'е. См. PaywallUIOptions.mountThenLoad. */
1337
1337
  private mountThenLoad;
1338
+ /** Inline-режим (live-preview редактора). См. PaywallUIOptions.inline. */
1339
+ private inline;
1338
1340
  /** Текущий snapshot UI state-machine. Обновляется PaywallRoot'ом через
1339
1341
  * `onState` prop; при close сбрасывается обратно в CLOSED_STATE. */
1340
1342
  private currentState;
@@ -1559,6 +1561,14 @@ export declare interface PaywallUIOptions extends Omit<BillingClientOptions, 'au
1559
1561
  * флеш на blocked-странах/устройствах хуже воспринимаемой латентности.
1560
1562
  */
1561
1563
  mountThenLoad?: boolean;
1564
+ /**
1565
+ * Inline-режим для live-preview редактора админки. Host позиционируется
1566
+ * `absolute inset:0` внутри родителя (вместо fixed-viewport'а), overlay
1567
+ * Modal'а тоже становится absolute, body-scroll не лочится. ОБЯЗАТЕЛЬНО
1568
+ * передавать `host` (HTMLElement) с positioned parent'ом — иначе absolute
1569
+ * уйдёт к ближайшему positioned ancestor'у или к html. По умолчанию false.
1570
+ */
1571
+ inline?: boolean;
1562
1572
  }
1563
1573
 
1564
1574
  export declare interface PaywallUser {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ApiClient as t, ApiGatewayClient as a, AuthClient as i, BillingClient as l, EventTracker as o, PaywallError as n, QuotaExceededError as E, SDK_VERSION as s, STORAGE_KEYS as S, createStorage as c, ensureVisitorId as d, generateVisitorId as g } from "./core.js";
2
- import { P as y, b as A } from "./chunks/PaywallUI-CRTEPjJm.js";
2
+ import { P as y, b as A } from "./chunks/PaywallUI-C3W0eKDo.js";
3
3
  export {
4
4
  t as ApiClient,
5
5
  a as ApiGatewayClient,
package/dist/ui.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/PaywallUI-CbbcfXXZ.js");exports.PaywallUI=e.PaywallUI;exports.blockRegistry=e.blockRegistry;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/PaywallUI-BWU_1hsh.js");exports.PaywallUI=e.PaywallUI;exports.blockRegistry=e.blockRegistry;
2
2
  //# sourceMappingURL=ui.cjs.map
package/dist/ui.d.ts CHANGED
@@ -1274,6 +1274,8 @@ export declare class PaywallUI {
1274
1274
  private lastVisibility;
1275
1275
  /** Поведение open() при холодном bootstrap'е. См. PaywallUIOptions.mountThenLoad. */
1276
1276
  private mountThenLoad;
1277
+ /** Inline-режим (live-preview редактора). См. PaywallUIOptions.inline. */
1278
+ private inline;
1277
1279
  /** Текущий snapshot UI state-machine. Обновляется PaywallRoot'ом через
1278
1280
  * `onState` prop; при close сбрасывается обратно в CLOSED_STATE. */
1279
1281
  private currentState;
@@ -1498,6 +1500,14 @@ export declare interface PaywallUIOptions extends Omit<BillingClientOptions, 'au
1498
1500
  * флеш на blocked-странах/устройствах хуже воспринимаемой латентности.
1499
1501
  */
1500
1502
  mountThenLoad?: boolean;
1503
+ /**
1504
+ * Inline-режим для live-preview редактора админки. Host позиционируется
1505
+ * `absolute inset:0` внутри родителя (вместо fixed-viewport'а), overlay
1506
+ * Modal'а тоже становится absolute, body-scroll не лочится. ОБЯЗАТЕЛЬНО
1507
+ * передавать `host` (HTMLElement) с positioned parent'ом — иначе absolute
1508
+ * уйдёт к ближайшему positioned ancestor'у или к html. По умолчанию false.
1509
+ */
1510
+ inline?: boolean;
1501
1511
  }
1502
1512
 
1503
1513
  declare interface PaywallUser {
package/dist/ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P as o, b as r } from "./chunks/PaywallUI-CRTEPjJm.js";
1
+ import { P as o, b as r } from "./chunks/PaywallUI-C3W0eKDo.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.2",
3
+ "version": "3.0.0-alpha.3",
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,