@tinkerlandai/longplay-sdk 0.10.34 → 0.10.36
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/CHANGELOG.md +7 -0
- package/README.md +83 -5
- package/README.zh-CN.md +26 -3
- package/dist/{ai-usage-T62xehqa.d.ts → ai-usage-DXwAGTxT.d.ts} +1 -1
- package/dist/{api-Do-6AyWa.d.ts → api-r6FfVQpg.d.ts} +6 -1
- package/dist/check-response-DHY6T5Z2.js +1 -0
- package/dist/{chunk-7MNJH5GB.js → chunk-2HSD2SEU.js} +1 -1
- package/dist/chunk-2KKLY323.js +1 -0
- package/dist/{chunk-BXPXJARS.js → chunk-35VG2IYD.js} +1 -1
- package/dist/chunk-3NCMYTNG.js +1 -0
- package/dist/{chunk-HQITRRHF.js → chunk-5XIKN35D.js} +1 -1
- package/dist/chunk-5XKFUFXK.js +1 -0
- package/dist/chunk-7ZEXY4GC.js +1 -0
- package/dist/chunk-BL7E4RZ2.js +1 -0
- package/dist/{chunk-FYQXSGRT.js → chunk-BTPEXSNY.js} +1 -1
- package/dist/chunk-C4GBV32U.js +10 -0
- package/dist/chunk-CGXNU5BC.js +1 -0
- package/dist/chunk-DB4EO3JG.js +1 -0
- package/dist/chunk-DHT3AWJQ.js +1 -0
- package/dist/chunk-GLYFT5WW.js +1 -0
- package/dist/chunk-HS56A4IK.js +1 -0
- package/dist/chunk-HVVJGLYZ.js +1 -0
- package/dist/chunk-HYE2YQYM.js +1 -0
- package/dist/chunk-I6D25FWU.js +1 -0
- package/dist/{chunk-TYY3MUTF.js → chunk-IOBB6KFK.js} +1 -1
- package/dist/chunk-JOIPLLHK.js +1 -0
- package/dist/{chunk-MIBRUDIS.js → chunk-LAGGWYH3.js} +1 -1
- package/dist/{chunk-6T575JKD.js → chunk-LVG5ED52.js} +1 -1
- package/dist/{chunk-I6TSQQ5N.js → chunk-M3GGR53D.js} +1 -1
- package/dist/chunk-MHWPEMX7.js +1 -0
- package/dist/chunk-MYBUQFTC.js +1 -0
- package/dist/{chunk-7QL4GF4C.js → chunk-O4KXODTJ.js} +1 -1
- package/dist/chunk-OL2AI6DA.js +1 -0
- package/dist/chunk-QHJWVLJC.js +1 -0
- package/dist/chunk-R3YVDRTB.js +1 -0
- package/dist/chunk-RHF4NFCZ.js +1 -0
- package/dist/{chunk-5HJYR6Z4.js → chunk-RHWZRHK7.js} +1 -1
- package/dist/{chunk-X4W22IH6.js → chunk-TIQS5DUF.js} +1 -1
- package/dist/chunk-U4WUX3WB.js +1 -0
- package/dist/chunk-UHTTCVSL.js +1 -0
- package/dist/{chunk-UWLEGMWX.js → chunk-UVUFJO2V.js} +1 -1
- package/dist/{chunk-7NELM6EH.js → chunk-VKG6BB3Z.js} +1 -1
- package/dist/chunk-VWMFR22O.js +1 -0
- package/dist/chunk-W32FI2A2.js +1 -0
- package/dist/chunk-W3K5ARMY.js +1 -0
- package/dist/chunk-WRLVPHPE.js +1 -0
- package/dist/chunk-XE7GU6FZ.js +1 -0
- package/dist/{chunk-EQPEUPMG.js → chunk-XQTCEQXI.js} +1 -1
- package/dist/chunk-YQX27SBG.js +1 -0
- package/dist/{chunk-VYFSRHXM.js → chunk-ZYF6TRJ3.js} +1 -1
- package/dist/{configuration-sync-DdTRUv7A.d.ts → configuration-sync-BHrAf-ql.d.ts} +10 -1
- package/dist/content-RGKTEV23.js +1 -0
- package/dist/funnel-host-purchase-M7MM33EC.js +1 -0
- package/dist/{funnel-local-client-BeGBvi3z.d.ts → funnel-local-client-DR8OpKGU.d.ts} +167 -25
- package/dist/funnel-paywall-prerender-OSBI4VMY.js +1 -0
- package/dist/{funnel-process-client-C6QKDZun.d.ts → funnel-process-client-C87U4r_G.d.ts} +17 -3
- package/dist/funnel-runtime-host-AMJXEASH.js +1 -0
- package/dist/index.d.ts +214 -63
- package/dist/index.js +1 -1
- package/dist/merchant-bridge-contracts-GJQVKEAG.js +1 -0
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.d.ts +3 -3
- package/dist/openrouter.js +1 -1
- package/dist/operation-contracts-MFK2KORK.js +1 -0
- package/dist/page.d.ts +2 -2
- package/dist/page.js +1 -1
- package/dist/paywall-ATZ2IZPS.js +1 -0
- package/dist/paywall-content-XERXGNND.js +1 -0
- package/dist/paywall-session-EMMF6IYS.js +1 -0
- package/dist/popup.d.ts +21 -3
- package/dist/popup.js +1 -1
- package/dist/{presentation-loading-CFSiS0VX.d.ts → presentation-loading-B_v5XZtM.d.ts} +11 -1
- package/dist/react-native.d.ts +7 -7
- package/dist/react-native.js +1 -1
- package/dist/{screen-CGCJ46b1.d.ts → screen-qUBRsUi9.d.ts} +26 -21
- package/dist/screen-renderer-B7LUTPTJ.js +1 -0
- package/dist/server.d.ts +37 -7
- package/dist/server.js +2 -2
- package/dist/{visual-dom-6DCUZGPB.js → visual-dom-5LUN4AHO.js} +1 -1
- package/dist/visual.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3JJYWRA3.js +0 -1
- package/dist/chunk-4WZVC4TM.js +0 -1
- package/dist/chunk-5JWMP4YD.js +0 -1
- package/dist/chunk-7VRZYSTR.js +0 -1
- package/dist/chunk-EHDHWYVJ.js +0 -1
- package/dist/chunk-ERJP2GBD.js +0 -1
- package/dist/chunk-ILEDKSRQ.js +0 -1
- package/dist/chunk-ITGERPCJ.js +0 -1
- package/dist/chunk-N7YXDSQL.js +0 -1
- package/dist/chunk-NAZU3EEJ.js +0 -1
- package/dist/chunk-QBA3B4YK.js +0 -1
- package/dist/chunk-R23IGK5U.js +0 -1
- package/dist/chunk-R4FDIYMN.js +0 -1
- package/dist/chunk-RKPAIF6U.js +0 -1
- package/dist/chunk-SCC3O2RD.js +0 -1
- package/dist/chunk-TDSATEGE.js +0 -10
- package/dist/chunk-THMGTRXP.js +0 -1
- package/dist/chunk-U6UHASIB.js +0 -1
- package/dist/chunk-WKIR2EQG.js +0 -1
- package/dist/chunk-WTVLNUMS.js +0 -1
- package/dist/chunk-ZGCKQWQ5.js +0 -1
- package/dist/content-ORU4ODJQ.js +0 -1
- package/dist/funnel-host-purchase-BEFE3N3E.js +0 -1
- package/dist/funnel-runtime-host-V6TYIDX3.js +0 -1
- package/dist/merchant-bridge-contracts-ZUQ6SGXZ.js +0 -1
- package/dist/operation-contracts-443N2P3A.js +0 -1
- package/dist/paywall-HO4PS472.js +0 -1
- package/dist/paywall-session-MZXFOPTR.js +0 -1
- package/dist/screen-renderer-W7ZGBFIR.js +0 -1
- /package/dist/{chunk-BID4UGWB.js → chunk-CILM5XMH.js} +0 -0
- /package/dist/{chunk-UKMEW5I7.js → chunk-OJM6ORHE.js} +0 -0
- /package/dist/{chunk-VF6QMMEA.js → chunk-ZYN4CRHS.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
import { A as ApiInput, O as OfferingItem, I as InvoiceModeParams, a as ApiOutput } from './api-
|
|
3
|
+
import { m as FeatureClientOptions, I as IndianaOptions, C as CustomerSession, R as RemoteFeatureResult, H as PushAddressObservation, a as FunnelStartInput, q as FunnelRuntimeResponse, n as FunnelControllerResponse, A as createFunnelRunController, J as FunnelProcessOpenInput, K as FunnelProcessResponse, M as FunnelCommand, N as FunnelProcessMutation, O as FunnelPageExperimentsResponse, j as FunnelProcessRunView, f as FunnelRunController } from './funnel-local-client-DR8OpKGU.js';
|
|
4
|
+
import { A as ApiInput, O as OfferingItem, I as InvoiceModeParams, a as ApiOutput } from './api-r6FfVQpg.js';
|
|
5
5
|
import { O as Offer } from './coupon-kfkIVf9n.js';
|
|
6
|
-
import { S as StackNode } from './screen-
|
|
6
|
+
import { S as StackNode } from './screen-qUBRsUi9.js';
|
|
7
7
|
import { J as JsonValue, F as FeatureResult } from './growth-rules-B4YYy64R.js';
|
|
8
8
|
|
|
9
9
|
/** The store supplies the intent hint. Only verified provider facts prove ownership. */
|
|
@@ -1303,6 +1303,7 @@ declare function createIndiana(options: IndianaOptions): {
|
|
|
1303
1303
|
} | undefined;
|
|
1304
1304
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
1305
1305
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
1306
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
1306
1307
|
} | {
|
|
1307
1308
|
type: "sheet";
|
|
1308
1309
|
size: "sm" | "md" | "lg";
|
|
@@ -9192,6 +9193,7 @@ declare function createCustomerClient(options: IndianaOptions): {
|
|
|
9192
9193
|
} | undefined;
|
|
9193
9194
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
9194
9195
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
9196
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
9195
9197
|
} | {
|
|
9196
9198
|
type: "sheet";
|
|
9197
9199
|
size: "sm" | "md" | "lg";
|
|
@@ -15876,6 +15878,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
15876
15878
|
} | undefined;
|
|
15877
15879
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
15878
15880
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
15881
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
15879
15882
|
} | {
|
|
15880
15883
|
type: "sheet";
|
|
15881
15884
|
size: "sm" | "md" | "lg";
|
|
@@ -15982,6 +15985,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
15982
15985
|
} | undefined;
|
|
15983
15986
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
15984
15987
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
15988
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
15985
15989
|
} | {
|
|
15986
15990
|
type: "sheet";
|
|
15987
15991
|
size: "sm" | "md" | "lg";
|
|
@@ -16252,6 +16256,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
16252
16256
|
} | undefined;
|
|
16253
16257
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
16254
16258
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
16259
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
16255
16260
|
} | {
|
|
16256
16261
|
type: "sheet";
|
|
16257
16262
|
size: "sm" | "md" | "lg";
|
|
@@ -16282,6 +16287,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
16282
16287
|
} | undefined;
|
|
16283
16288
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
16284
16289
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
16290
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
16285
16291
|
} | {
|
|
16286
16292
|
type: "sheet";
|
|
16287
16293
|
size: "sm" | "md" | "lg";
|
|
@@ -18315,6 +18321,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
18315
18321
|
} | undefined;
|
|
18316
18322
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
18317
18323
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
18324
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
18318
18325
|
} | {
|
|
18319
18326
|
type: "sheet";
|
|
18320
18327
|
size: "sm" | "md" | "lg";
|
|
@@ -18421,6 +18428,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
18421
18428
|
} | undefined;
|
|
18422
18429
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
18423
18430
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
18431
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
18424
18432
|
} | {
|
|
18425
18433
|
type: "sheet";
|
|
18426
18434
|
size: "sm" | "md" | "lg";
|
|
@@ -18691,6 +18699,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
18691
18699
|
} | undefined;
|
|
18692
18700
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
18693
18701
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
18702
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
18694
18703
|
} | {
|
|
18695
18704
|
type: "sheet";
|
|
18696
18705
|
size: "sm" | "md" | "lg";
|
|
@@ -18721,6 +18730,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
18721
18730
|
} | undefined;
|
|
18722
18731
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
18723
18732
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
18733
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
18724
18734
|
} | {
|
|
18725
18735
|
type: "sheet";
|
|
18726
18736
|
size: "sm" | "md" | "lg";
|
|
@@ -20754,6 +20764,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
20754
20764
|
} | undefined;
|
|
20755
20765
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
20756
20766
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
20767
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
20757
20768
|
} | {
|
|
20758
20769
|
type: "sheet";
|
|
20759
20770
|
size: "sm" | "md" | "lg";
|
|
@@ -20860,6 +20871,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
20860
20871
|
} | undefined;
|
|
20861
20872
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
20862
20873
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
20874
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
20863
20875
|
} | {
|
|
20864
20876
|
type: "sheet";
|
|
20865
20877
|
size: "sm" | "md" | "lg";
|
|
@@ -21130,6 +21142,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
21130
21142
|
} | undefined;
|
|
21131
21143
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
21132
21144
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
21145
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
21133
21146
|
} | {
|
|
21134
21147
|
type: "sheet";
|
|
21135
21148
|
size: "sm" | "md" | "lg";
|
|
@@ -21160,6 +21173,7 @@ declare function createFunnelProcess(options: FunnelProcessOptions): {
|
|
|
21160
21173
|
} | undefined;
|
|
21161
21174
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
21162
21175
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
21176
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
21163
21177
|
} | {
|
|
21164
21178
|
type: "sheet";
|
|
21165
21179
|
size: "sm" | "md" | "lg";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b}from"./chunk-OL2AI6DA.js";import"./chunk-I6D25FWU.js";import"./chunk-DB4EO3JG.js";import"./chunk-VWMFR22O.js";import"./chunk-W32FI2A2.js";import"./chunk-YQX27SBG.js";import"./chunk-GLYFT5WW.js";import"./chunk-WRLVPHPE.js";import"./chunk-3NCMYTNG.js";import"./chunk-35VG2IYD.js";import"./chunk-CGXNU5BC.js";import"./chunk-HVVJGLYZ.js";import"./chunk-ZYF6TRJ3.js";import"./chunk-QHJWVLJC.js";import"./chunk-XE7GU6FZ.js";import"./chunk-LAGGWYH3.js";import"./chunk-DHT3AWJQ.js";import"./chunk-TIQS5DUF.js";import"./chunk-7ZEXY4GC.js";import"./chunk-SLUA7ABW.js";import"./chunk-LVG5ED52.js";import"./chunk-RHF4NFCZ.js";import"./chunk-ZYN4CRHS.js";import"./chunk-O4KXODTJ.js";import"./chunk-CILM5XMH.js";import"./chunk-DSPLGTQI.js";import"./chunk-WOT6VMZA.js";export{a as showFunnelRun,b as showObservedFunnelRun};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { S as ScreenAnswers, P as PresentationLoadingOptions, s as screenInputBindingsSchema, a as SurfaceData, b as PaywallLoadingDocument, C as CustomerDataIntent, c as createPresentationLoading } from './presentation-loading-
|
|
3
|
-
export { d as PresentationState } from './presentation-loading-
|
|
2
|
+
import { S as ScreenAnswers, P as PresentationLoadingOptions, s as screenInputBindingsSchema, a as SurfaceData, b as PaywallLoadingDocument, C as CustomerDataIntent, c as createPresentationLoading } from './presentation-loading-B_v5XZtM.js';
|
|
3
|
+
export { d as PresentationState } from './presentation-loading-B_v5XZtM.js';
|
|
4
4
|
import { J as JsonValue } from './growth-rules-B4YYy64R.js';
|
|
5
|
-
import { S as StackNode, a as ScreenSelection } from './screen-
|
|
6
|
-
import { P as PaywallSession, S as SubscriptionOperation, F as
|
|
7
|
-
export { C as CustomerSession,
|
|
5
|
+
import { S as StackNode, a as ScreenSelection } from './screen-qUBRsUi9.js';
|
|
6
|
+
import { P as PaywallSession, S as SubscriptionOperation, F as FunnelCommandStorage, s as scopeSchema, a as FunnelStartInput, I as IndianaOptions, b as SessionCredentials, c as FunnelExecutionPolicy, d as PaywallRecovery, e as SubscriptionAttachQuote, f as FunnelRunController, g as PaywallResolution, h as FunnelRunView, i as IamFunnelEntryDelivery, j as FunnelProcessRunView, k as createPaywallSession$1 } from './funnel-local-client-DR8OpKGU.js';
|
|
7
|
+
export { C as CustomerSession, l as FeatureClient, m as FeatureClientOptions, n as FunnelControllerResponse, o as FunnelPendingEntry, p as FunnelPurchaseRecovery, q as FunnelRuntimeResponse, r as FunnelSegmentPrediction, L as LocalFunnelClient, t as LocalFunnelClientOptions, u as LongplayError, v as PaywallPurchaseInput, w as PaywallStartInput, x as PushHost, y as PushJournal, z as createFeatureClient, A as createFunnelRunController, B as createLocalFunnelClient, D as getPaywallRecovery, E as preparePaywallFallback } from './funnel-local-client-DR8OpKGU.js';
|
|
8
8
|
import { E as EntitlementCheckResult, M as MerchantBridgeManifest } from './funnel-node-evaluation-COxXtZEQ.js';
|
|
9
9
|
export { a as EntitlementCheckInput, b as EntitlementCheckObservation, c as EntitlementRequirement, F as FunnelNodeEvaluationContext, e as evaluateFunnelNode } from './funnel-node-evaluation-COxXtZEQ.js';
|
|
10
10
|
import { C as CouponInput } from './coupon-kfkIVf9n.js';
|
|
11
11
|
export { O as Offer, a as OfferUnavailableReason } from './coupon-kfkIVf9n.js';
|
|
12
|
-
import { c as createFunnelProcess } from './funnel-process-client-
|
|
13
|
-
export { F as FunnelProcessAdapter, a as FunnelProcessOptions, b as FunnelResourceSource, I as LongplayFeatureOptions, d as createFunnelClient, e as createLongplay } from './funnel-process-client-
|
|
14
|
-
export { C as ConfigurationStorage, a as ConfigurationSync, b as ConfigurationSyncOptions, c as createConfigurationSync } from './configuration-sync-
|
|
15
|
-
import './api-
|
|
12
|
+
import { c as createFunnelProcess } from './funnel-process-client-C87U4r_G.js';
|
|
13
|
+
export { F as FunnelProcessAdapter, a as FunnelProcessOptions, b as FunnelResourceSource, I as LongplayFeatureOptions, d as createFunnelClient, e as createLongplay } from './funnel-process-client-C87U4r_G.js';
|
|
14
|
+
export { C as ConfigurationStorage, a as ConfigurationSync, b as ConfigurationSyncOptions, c as createConfigurationSync } from './configuration-sync-BHrAf-ql.js';
|
|
15
|
+
import './api-r6FfVQpg.js';
|
|
16
16
|
import 'zod/v4';
|
|
17
17
|
|
|
18
18
|
/** Currency always comes from business data; locale only controls notation. No currency conversion. */
|
|
@@ -80,6 +80,11 @@ declare const contentVersionSchema: z.ZodObject<{
|
|
|
80
80
|
blur: "blur";
|
|
81
81
|
}>>;
|
|
82
82
|
type: z.ZodLiteral<"modal">;
|
|
83
|
+
position: z.ZodOptional<z.ZodEnum<{
|
|
84
|
+
center: "center";
|
|
85
|
+
top: "top";
|
|
86
|
+
bottom: "bottom";
|
|
87
|
+
}>>;
|
|
83
88
|
size: z.ZodEnum<{
|
|
84
89
|
sm: "sm";
|
|
85
90
|
md: "md";
|
|
@@ -307,6 +312,8 @@ type PaywallHostOptions = PresentationLoadingOptions & {
|
|
|
307
312
|
canInteract?: () => boolean;
|
|
308
313
|
/** Host work each Customer action waits for. A rejection is reported with Retry. */
|
|
309
314
|
beforeAction?: () => Promise<void>;
|
|
315
|
+
/** Rendered before it is shown: return focus to what was focused when it was revealed. */
|
|
316
|
+
focusAtReveal?: boolean;
|
|
310
317
|
check?: () => Promise<EntitlementCheckResult>;
|
|
311
318
|
start: () => Promise<PaywallSession>;
|
|
312
319
|
/** Hand selection to the host instead of creating a quote or commercial operation. */
|
|
@@ -316,8 +323,19 @@ type PaywallHostOptions = PresentationLoadingOptions & {
|
|
|
316
323
|
signal: AbortSignal;
|
|
317
324
|
}) => unknown | Promise<unknown>;
|
|
318
325
|
onCheckoutUrl?: (url: string) => unknown;
|
|
326
|
+
/** Reads the exact confirmed Operation and opens its original Checkout. */
|
|
327
|
+
resumeCheckout?: (operationId: string) => Promise<void>;
|
|
328
|
+
/** Allow only the existing Checkout when purchase targeting has been disabled. */
|
|
329
|
+
allowNewPurchase?: boolean;
|
|
319
330
|
/** Recovery waits for Continue checkout; an active explicit confirmation can navigate once. */
|
|
320
331
|
checkoutNavigation?: "automatic" | "after_confirmation";
|
|
332
|
+
/**
|
|
333
|
+
* Ends the exact original unpaid Checkout before another selection is quoted. With
|
|
334
|
+
* `checkoutNavigation: "after_confirmation"` it makes recovery part of the Paywall: the
|
|
335
|
+
* original plan's button reads Continue checkout, and another plan spins in its button while
|
|
336
|
+
* the original is terminated, read back closed and unpaid, and only then quoted.
|
|
337
|
+
*/
|
|
338
|
+
terminateCheckout?: (operationId: string) => Promise<unknown>;
|
|
321
339
|
/** Use hosted confirmation for new subscriptions when the merchant guarantees Checkout collects payment. */
|
|
322
340
|
confirmOnHostedCheckout?: boolean;
|
|
323
341
|
/** Explicit merchant selection from the Customer's claimed offers. The server validates eligibility. */
|
|
@@ -336,56 +354,6 @@ type PaywallHostOptions = PresentationLoadingOptions & {
|
|
|
336
354
|
onError?: (error: unknown) => unknown;
|
|
337
355
|
};
|
|
338
356
|
|
|
339
|
-
type FunnelHostOptions = PresentationLoadingOptions & {
|
|
340
|
-
client: FunnelRunController;
|
|
341
|
-
/** Exact merchant build; enables only page experiments explicitly selected by accepted Splits. */
|
|
342
|
-
appManifestRelease?: string;
|
|
343
|
-
onPurchase?: PaywallHostOptions["onPurchase"];
|
|
344
|
-
onCheckoutUrl?: PaywallHostOptions["onCheckoutUrl"];
|
|
345
|
-
checkoutNavigation?: PaywallHostOptions["checkoutNavigation"];
|
|
346
|
-
confirmOnHostedCheckout?: PaywallHostOptions["confirmOnHostedCheckout"];
|
|
347
|
-
resolveOfferId?: PaywallHostOptions["resolveOfferId"];
|
|
348
|
-
/**
|
|
349
|
-
* Opens an external page or a Paywall link. Return `false` (or throw) when the page could not be
|
|
350
|
-
* opened; an external page then takes its `failed` route. Without a handler, `same_window` navigates
|
|
351
|
-
* this page and `new_window` opens a browser window; a blocked window takes `failed`.
|
|
352
|
-
*/
|
|
353
|
-
onOpenUrl?: (instruction: {
|
|
354
|
-
receiptId: string;
|
|
355
|
-
url: string;
|
|
356
|
-
openIn: FunnelOpenIn;
|
|
357
|
-
}) => unknown;
|
|
358
|
-
onEvent?: (name: string) => unknown;
|
|
359
|
-
onCustomerDataIntent?: (intent: CustomerDataIntent, run: FunnelRunView) => unknown;
|
|
360
|
-
onState?: (run: FunnelRunView) => unknown;
|
|
361
|
-
onComplete?: (run: FunnelRunView) => unknown;
|
|
362
|
-
onDismiss?: (run: FunnelRunView | null) => unknown;
|
|
363
|
-
onError?: (error: unknown) => unknown;
|
|
364
|
-
};
|
|
365
|
-
/**
|
|
366
|
-
* A current-protocol host. Refresh, rendering and shown telemetry never authorize a purchase.
|
|
367
|
-
* A Run the controller already holds renders at once; with none yet, the first read comes first.
|
|
368
|
-
*/
|
|
369
|
-
declare function showFunnelRun$1(container: HTMLElement, input: FunnelHostOptions, initialLoading?: ReturnType<typeof createPresentationLoading>): Promise<{
|
|
370
|
-
destroy: () => void;
|
|
371
|
-
refresh: () => Promise<void>;
|
|
372
|
-
readonly recovery: PaywallRecovery;
|
|
373
|
-
prepareFallback(): Promise<PaywallRecovery>;
|
|
374
|
-
review: (receiptId?: string) => Promise<void>;
|
|
375
|
-
exitReview: () => Promise<void>;
|
|
376
|
-
readonly unappliedDrafts: Map<string, Record<string, string | boolean | string[]>>;
|
|
377
|
-
}>;
|
|
378
|
-
/** Share an authenticated purchase observation and its current loading lifecycle. */
|
|
379
|
-
declare function showObservedFunnelRun(container: HTMLElement, input: FunnelHostOptions, initialLoading?: ReturnType<typeof createPresentationLoading>): Promise<{
|
|
380
|
-
destroy: () => void;
|
|
381
|
-
refresh: () => Promise<void>;
|
|
382
|
-
readonly recovery: PaywallRecovery;
|
|
383
|
-
prepareFallback(): Promise<PaywallRecovery>;
|
|
384
|
-
review: (receiptId?: string) => Promise<void>;
|
|
385
|
-
exitReview: () => Promise<void>;
|
|
386
|
-
readonly unappliedDrafts: Map<string, Record<string, string | boolean | string[]>>;
|
|
387
|
-
}>;
|
|
388
|
-
|
|
389
357
|
interface FunnelStorageLocks {
|
|
390
358
|
request<T>(name: string, options: {
|
|
391
359
|
mode: "exclusive";
|
|
@@ -1535,19 +1503,176 @@ declare function createFunnelPurchaseClient(input: FunnelPurchaseOptions): {
|
|
|
1535
1503
|
readonly recovery: FunnelPurchaseState;
|
|
1536
1504
|
readonly attempt: FunnelPurchaseAttempt | null;
|
|
1537
1505
|
readonly identitySignal: AbortSignal;
|
|
1506
|
+
/**
|
|
1507
|
+
* Storage only, no request: whether a new Start would begin afresh ("none", "finished") or
|
|
1508
|
+
* recover a pending original purchase ("pending"), an unpaid Checkout included.
|
|
1509
|
+
*/
|
|
1510
|
+
retained: () => Promise<"none" | "finished" | "pending">;
|
|
1511
|
+
/**
|
|
1512
|
+
* Storage first, then Longplay's lookup: "found" is an original purchase Longplay knows of
|
|
1513
|
+
* (another device or cleared storage), now retained here; "blocked" is one it cannot
|
|
1514
|
+
* attribute. Call it with the page so the click does not wait for the lookup; a lookup in
|
|
1515
|
+
* flight, or one that found nothing within PURCHASE_DISCOVERY_REUSE_MS, is reused.
|
|
1516
|
+
*/
|
|
1517
|
+
findPurchase(): Promise<"none" | "finished" | "pending" | "found" | "blocked">;
|
|
1518
|
+
/**
|
|
1519
|
+
* Reads one published Paywall Version for the current Customer, with its content, exactly as a
|
|
1520
|
+
* standalone Paywall would show it. It starts nothing; a pre-render shows it before the Run exists.
|
|
1521
|
+
*/
|
|
1522
|
+
readPaywall(input: {
|
|
1523
|
+
/** One exact Version, or the Paywall's current published Version. */
|
|
1524
|
+
paywallVersionId?: string;
|
|
1525
|
+
paywallId?: string;
|
|
1526
|
+
commerce: {
|
|
1527
|
+
provider: string;
|
|
1528
|
+
currency: string;
|
|
1529
|
+
};
|
|
1530
|
+
locale: string;
|
|
1531
|
+
}): Promise<PaywallResolution>;
|
|
1538
1532
|
start(start: FunnelPurchaseStart): Promise<FunnelPurchaseState>;
|
|
1539
1533
|
refresh: () => Promise<FunnelPurchaseState>;
|
|
1540
1534
|
confirm: () => Promise<FunnelPurchaseState>;
|
|
1541
1535
|
retry: () => Promise<FunnelPurchaseState>;
|
|
1542
1536
|
close(): Promise<FunnelPurchaseState>;
|
|
1543
1537
|
/** Explicit user action; the merchant owns allowed destinations and navigation. */
|
|
1544
|
-
continueCheckout(open: (url: string) => unknown): Promise<void>;
|
|
1538
|
+
continueCheckout(open: (url: string) => unknown, operationId?: string): Promise<void>;
|
|
1539
|
+
/**
|
|
1540
|
+
* Asks Longplay to end the exact original unpaid Checkout (the merchant confirms it closed
|
|
1541
|
+
* and unpaid through purchase.closed). It never starts anything: a new selection is quoted
|
|
1542
|
+
* only once the original reads as closed. A merchant without checkout_termination refuses
|
|
1543
|
+
* definitely (CAPABILITY_UNAVAILABLE or NOT_CONFIGURED) and the Checkout stays open.
|
|
1544
|
+
*/
|
|
1545
|
+
terminateCheckout(operationId: string): Promise<FunnelPurchaseState>;
|
|
1545
1546
|
subscribe(listener: (state: FunnelPurchaseState) => unknown): () => void;
|
|
1546
1547
|
destroy: () => void;
|
|
1547
1548
|
};
|
|
1548
1549
|
type FunnelPurchaseClient = ReturnType<typeof createFunnelPurchaseClient>;
|
|
1549
1550
|
|
|
1550
|
-
type
|
|
1551
|
+
type Start = Omit<FunnelPurchaseStart, "requestId">;
|
|
1552
|
+
type PreparedState = "preparing" | "ready" | "unavailable" | "shown" | "adopted" | "released" | "closed";
|
|
1553
|
+
/**
|
|
1554
|
+
* A Funnel purchase Paywall rendered before the Customer asks for it. Passing it as `prepared` to
|
|
1555
|
+
* showFunnelPurchase or showFunnelRun hands it to the SDK: whenever the SDK cannot use it (another
|
|
1556
|
+
* presentation is open, another or no Start, no Run, operation-only or blocked recovery, a failure,
|
|
1557
|
+
* or the Run presents something else first) it releases it, so a revealed copy never stays on
|
|
1558
|
+
* screen. Do not reuse a copy after passing it.
|
|
1559
|
+
*/
|
|
1560
|
+
interface PreparedFunnelPurchase {
|
|
1561
|
+
readonly state: PreparedState;
|
|
1562
|
+
/**
|
|
1563
|
+
* Why it is unavailable: a purchase pending in storage (`purchase_pending`), an original
|
|
1564
|
+
* purchase Longplay found for this Customer (`original_purchase`) or could not attribute
|
|
1565
|
+
* (`purchase_blocked`), an unavailable plan, an error or its age. With an original purchase
|
|
1566
|
+
* the click takes the normal path, which shows that purchase's own Paywall.
|
|
1567
|
+
*/
|
|
1568
|
+
readonly reason?: string;
|
|
1569
|
+
/** Resolves true once it can be revealed, false when it never will be. */
|
|
1570
|
+
readonly ready: Promise<boolean>;
|
|
1571
|
+
/** The Start it was rendered for, once known. */
|
|
1572
|
+
readonly start?: Start;
|
|
1573
|
+
/** Whether a Start with this input would present this Paywall. */
|
|
1574
|
+
matches(start: Start): boolean;
|
|
1575
|
+
/**
|
|
1576
|
+
* Call synchronously from the opening click, then pass it with the same Start to
|
|
1577
|
+
* showFunnelPurchase. "shown" reveals it in this frame; "pending" means it is still rendering:
|
|
1578
|
+
* pass it anyway, it is revealed only if it is ready before the Run presents; false means show
|
|
1579
|
+
* the purchase the normal way.
|
|
1580
|
+
*/
|
|
1581
|
+
open(): "shown" | "pending" | false;
|
|
1582
|
+
destroy(): void;
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
* Renders, hidden and before any click, the Paywall a Funnel purchase Start would present, so the
|
|
1586
|
+
* click only reveals it. Nothing starts here: no Run, receipt or exposure. The Run started at the
|
|
1587
|
+
* click takes over the same rendered Paywall when it presents the same, untouched one; until then
|
|
1588
|
+
* a purchase tap waits for it. Keep `container` in place for the page's lifetime: moving it
|
|
1589
|
+
* restarts the Paywall's frame.
|
|
1590
|
+
*/
|
|
1591
|
+
declare function prerenderFunnelPurchase$1(container: HTMLElement, input: {
|
|
1592
|
+
client: FunnelPurchaseClient;
|
|
1593
|
+
/**
|
|
1594
|
+
* The Start, or a promise for it while the merchant's own checks run: rendering starts at
|
|
1595
|
+
* once and it becomes ready only with a Start. Null leaves it unavailable.
|
|
1596
|
+
*/
|
|
1597
|
+
start: Start | Promise<Start | null | undefined>;
|
|
1598
|
+
/** The Paywall the Funnel presents first: an exact Version or its current published one. */
|
|
1599
|
+
paywallVersionId?: string;
|
|
1600
|
+
paywallId?: string;
|
|
1601
|
+
/** Required while `start` is a promise: the Start's commerce and locale. */
|
|
1602
|
+
commerce?: {
|
|
1603
|
+
provider: string;
|
|
1604
|
+
currency: string;
|
|
1605
|
+
};
|
|
1606
|
+
locale?: string;
|
|
1607
|
+
maxAgeMs?: number;
|
|
1608
|
+
signal?: AbortSignal;
|
|
1609
|
+
onState?(state: PreparedState): void;
|
|
1610
|
+
}): PreparedFunnelPurchase;
|
|
1611
|
+
|
|
1612
|
+
type FunnelHostOptions = PresentationLoadingOptions & {
|
|
1613
|
+
client: FunnelRunController;
|
|
1614
|
+
/**
|
|
1615
|
+
* A pre-rendered Paywall, handed to the SDK: revealed, the first Paywall takes it over when it is
|
|
1616
|
+
* the same and untouched; otherwise it is released. Closed before the takeover, the Run closes.
|
|
1617
|
+
*/
|
|
1618
|
+
prepared?: PreparedFunnelPurchase;
|
|
1619
|
+
/** Exact merchant build; enables only page experiments explicitly selected by accepted Splits. */
|
|
1620
|
+
appManifestRelease?: string;
|
|
1621
|
+
onPurchase?: PaywallHostOptions["onPurchase"];
|
|
1622
|
+
onCheckoutUrl?: PaywallHostOptions["onCheckoutUrl"];
|
|
1623
|
+
resumeCheckout?: PaywallHostOptions["resumeCheckout"];
|
|
1624
|
+
allowNewPurchase?: PaywallHostOptions["allowNewPurchase"];
|
|
1625
|
+
checkoutNavigation?: PaywallHostOptions["checkoutNavigation"];
|
|
1626
|
+
/**
|
|
1627
|
+
* Recovers an unpaid original Checkout inside the Paywall (see PaywallHostOptions). Closing
|
|
1628
|
+
* that Paywall then leaves its Run waiting on the Checkout instead of closing it, so the next
|
|
1629
|
+
* opening shows the same Paywall with Continue checkout.
|
|
1630
|
+
*/
|
|
1631
|
+
terminateCheckout?: PaywallHostOptions["terminateCheckout"];
|
|
1632
|
+
confirmOnHostedCheckout?: PaywallHostOptions["confirmOnHostedCheckout"];
|
|
1633
|
+
resolveOfferId?: PaywallHostOptions["resolveOfferId"];
|
|
1634
|
+
/**
|
|
1635
|
+
* Opens an external page or a Paywall link. Return `false` (or throw) when the page could not be
|
|
1636
|
+
* opened; an external page then takes its `failed` route. Without a handler, `same_window` navigates
|
|
1637
|
+
* this page and `new_window` opens a browser window; a blocked window takes `failed`.
|
|
1638
|
+
*/
|
|
1639
|
+
onOpenUrl?: (instruction: {
|
|
1640
|
+
receiptId: string;
|
|
1641
|
+
url: string;
|
|
1642
|
+
openIn: FunnelOpenIn;
|
|
1643
|
+
}) => unknown;
|
|
1644
|
+
onEvent?: (name: string) => unknown;
|
|
1645
|
+
onCustomerDataIntent?: (intent: CustomerDataIntent, run: FunnelRunView) => unknown;
|
|
1646
|
+
onState?: (run: FunnelRunView) => unknown;
|
|
1647
|
+
onComplete?: (run: FunnelRunView) => unknown;
|
|
1648
|
+
onDismiss?: (run: FunnelRunView | null) => unknown;
|
|
1649
|
+
onError?: (error: unknown) => unknown;
|
|
1650
|
+
};
|
|
1651
|
+
/**
|
|
1652
|
+
* A current-protocol host. Refresh, rendering and shown telemetry never authorize a purchase.
|
|
1653
|
+
* A Run the controller already holds renders at once; with none yet, the first read comes first.
|
|
1654
|
+
*/
|
|
1655
|
+
declare function showFunnelRun$1(container: HTMLElement, input: FunnelHostOptions, initialLoading?: ReturnType<typeof createPresentationLoading>): Promise<{
|
|
1656
|
+
destroy: () => void;
|
|
1657
|
+
refresh: () => Promise<void>;
|
|
1658
|
+
readonly recovery: PaywallRecovery;
|
|
1659
|
+
prepareFallback(): Promise<PaywallRecovery>;
|
|
1660
|
+
review: (receiptId?: string) => Promise<void>;
|
|
1661
|
+
exitReview: () => Promise<void>;
|
|
1662
|
+
readonly unappliedDrafts: Map<string, Record<string, string | boolean | string[]>>;
|
|
1663
|
+
}>;
|
|
1664
|
+
/** Share an authenticated purchase observation and its current loading lifecycle. */
|
|
1665
|
+
declare function showObservedFunnelRun(container: HTMLElement, input: FunnelHostOptions, initialLoading?: ReturnType<typeof createPresentationLoading>): Promise<{
|
|
1666
|
+
destroy: () => void;
|
|
1667
|
+
refresh: () => Promise<void>;
|
|
1668
|
+
readonly recovery: PaywallRecovery;
|
|
1669
|
+
prepareFallback(): Promise<PaywallRecovery>;
|
|
1670
|
+
review: (receiptId?: string) => Promise<void>;
|
|
1671
|
+
exitReview: () => Promise<void>;
|
|
1672
|
+
readonly unappliedDrafts: Map<string, Record<string, string | boolean | string[]>>;
|
|
1673
|
+
}>;
|
|
1674
|
+
|
|
1675
|
+
type FunnelPurchaseHostOptions = Omit<FunnelHostOptions, "client" | "checkoutNavigation" | "resolveOfferId" | "resumeCheckout" | "terminateCheckout"> & {
|
|
1551
1676
|
/** An already available Paywall design for the first frame. */
|
|
1552
1677
|
loadingDocument?: PaywallLoadingDocument;
|
|
1553
1678
|
client: FunnelPurchaseClient;
|
|
@@ -1556,7 +1681,12 @@ type FunnelPurchaseHostOptions = Omit<FunnelHostOptions, "client" | "checkoutNav
|
|
|
1556
1681
|
resolveOfferId?: (purchase: Parameters<NonNullable<FunnelHostOptions["resolveOfferId"]>>[0], attempt: FunnelPurchaseAttempt) => ReturnType<NonNullable<FunnelHostOptions["resolveOfferId"]>>;
|
|
1557
1682
|
};
|
|
1558
1683
|
type Host = Awaited<ReturnType<typeof showObservedFunnelRun>>;
|
|
1559
|
-
/**
|
|
1684
|
+
/**
|
|
1685
|
+
* Same Controller/Host lifecycle; operation-only or blocked recovery goes to onRecovery. An
|
|
1686
|
+
* unpaid original Checkout is recovered inside its Run's Paywall (Continue checkout, or another
|
|
1687
|
+
* plan after the original is terminated). A `prepared` Paywall is handed to the SDK: one it
|
|
1688
|
+
* cannot use for this Start is released.
|
|
1689
|
+
*/
|
|
1560
1690
|
declare function showFunnelPurchase$1(container: HTMLElement, options: FunnelPurchaseHostOptions): Promise<Host | null>;
|
|
1561
1691
|
|
|
1562
1692
|
declare class MerchantBridgeError extends Error {
|
|
@@ -1766,6 +1896,8 @@ type IamFunnelEntriesOptions = IndianaOptions & {
|
|
|
1766
1896
|
container: HTMLElement;
|
|
1767
1897
|
/** Credential-free original starts survive reloads in this tab. Requires a full Customer session. */
|
|
1768
1898
|
recoveryStorage?: Storage | false;
|
|
1899
|
+
/** Per-tab frequency state. A capped entry requires a full Customer session. */
|
|
1900
|
+
deliveryStorage?: Storage;
|
|
1769
1901
|
host?: Omit<FunnelHostOptions, "client">;
|
|
1770
1902
|
onStatus?: (status: string, entryId?: string) => void;
|
|
1771
1903
|
};
|
|
@@ -1788,6 +1920,11 @@ declare function createFunnelPageExperiments(options: {
|
|
|
1788
1920
|
destroy(): void;
|
|
1789
1921
|
};
|
|
1790
1922
|
|
|
1923
|
+
type EntryDeliveryIdentity = {
|
|
1924
|
+
type: "customer" | "guest";
|
|
1925
|
+
id: string;
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1791
1928
|
type Entry = IamFunnelEntryDelivery["entries"][number];
|
|
1792
1929
|
type Process = ReturnType<typeof createFunnelProcess>;
|
|
1793
1930
|
type IamFunnelProcessEntriesOptions = Pick<IndianaOptions, "baseUrl" | "fetch" | "timeoutMs"> & {
|
|
@@ -1799,6 +1936,9 @@ type IamFunnelProcessEntriesOptions = Pick<IndianaOptions, "baseUrl" | "fetch" |
|
|
|
1799
1936
|
createProcess(entry: Entry): Process;
|
|
1800
1937
|
host?: Omit<FunnelHostOptions, "client">;
|
|
1801
1938
|
locale?: string;
|
|
1939
|
+
/** Required for session-capped entries. Return the current Customer ID or a per-tab guest ID, never a credential. Update it before syncIdentity(). */
|
|
1940
|
+
deliveryIdentity?: () => EntryDeliveryIdentity | undefined;
|
|
1941
|
+
deliveryStorage?: Storage;
|
|
1802
1942
|
onStatus?: (status: string, entryId?: string) => void;
|
|
1803
1943
|
};
|
|
1804
1944
|
/** Explicit process-capable IAM host. Merely fetching configuration creates no identity. */
|
|
@@ -1909,6 +2049,7 @@ declare function showPaywall(container: HTMLElement, options: PaywallHostOptions
|
|
|
1909
2049
|
} | undefined;
|
|
1910
2050
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
1911
2051
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
2052
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
1912
2053
|
} | {
|
|
1913
2054
|
type: "sheet";
|
|
1914
2055
|
size: "sm" | "md" | "lg";
|
|
@@ -1939,6 +2080,7 @@ declare function showPaywall(container: HTMLElement, options: PaywallHostOptions
|
|
|
1939
2080
|
} | undefined;
|
|
1940
2081
|
mobile?: "sheet" | "fullscreen" | undefined;
|
|
1941
2082
|
backdrop?: "none" | "scrim" | "dim" | "strong-dim" | "blur" | undefined;
|
|
2083
|
+
position?: "center" | "top" | "bottom" | undefined;
|
|
1942
2084
|
} | {
|
|
1943
2085
|
type: "sheet";
|
|
1944
2086
|
size: "sm" | "md" | "lg";
|
|
@@ -2287,6 +2429,15 @@ declare function showFunnelPurchase(...args: Parameters<typeof showFunnelPurchas
|
|
|
2287
2429
|
exitReview: () => Promise<void>;
|
|
2288
2430
|
readonly unappliedDrafts: Map<string, Record<string, string | boolean | string[]>>;
|
|
2289
2431
|
} | null>;
|
|
2432
|
+
/**
|
|
2433
|
+
* Renders the first Paywall of a Funnel purchase hidden, before the Customer opens it, so the
|
|
2434
|
+
* opening click only reveals it: call `prepared.open()` synchronously in the click, then pass it to
|
|
2435
|
+
* `showFunnelPurchase` as `prepared` with the same Start, which hands it to the SDK (released when
|
|
2436
|
+
* it cannot be used). The Run takes the revealed Paywall over. Nothing starts here. Keep
|
|
2437
|
+
* `container` in place; a copy is revealed only within 5 minutes of its render; `commerce` and
|
|
2438
|
+
* `locale` are required while `start` is a promise.
|
|
2439
|
+
*/
|
|
2440
|
+
declare function prerenderFunnelPurchase(...args: Parameters<typeof prerenderFunnelPurchase$1>): Promise<PreparedFunnelPurchase>;
|
|
2290
2441
|
|
|
2291
2442
|
declare function mountContent(...args: Parameters<typeof mountContent$1>): Promise<{
|
|
2292
2443
|
destroy: () => void;
|
|
@@ -2306,4 +2457,4 @@ declare function prepareContent(...args: Parameters<typeof prepareContent$1>): P
|
|
|
2306
2457
|
updateCapabilities(data: SurfaceData): void;
|
|
2307
2458
|
}>;
|
|
2308
2459
|
|
|
2309
|
-
export { type ContentActionIntent, type ContentHostOptions, EntitlementCheckResult, FunnelCommandStorage, FunnelExecutionPolicy, type FunnelHostOptions, type FunnelPurchaseAttempt, type FunnelPurchaseClient, type FunnelPurchaseEntry, type FunnelPurchaseHostOptions, type FunnelPurchaseOptions, type FunnelPurchaseStart, type FunnelPurchaseState, type FunnelPurchaseStorage, FunnelRunController, type IamFunnelEntriesOptions, type IamFunnelProcessEntriesOptions, IndianaOptions as LongplayOptions, MerchantBridgeError, type MerchantBridgeOptions, type PaywallHostOptions, PaywallLoadingDocument, type PaywallPurchaseIntent, PaywallRecovery, PaywallSession, PresentationLoadingOptions, SessionCredentials, createBrowserFunnelCommandStorage, createBrowserFunnelPurchaseStorage, createFunnelPageExperiments, createFunnelProcess, createFunnelPurchaseClient, createIamFunnelEntries, createIamFunnelProcessEntries, createMerchantBridge, createPaywallSession, formatCouponDiscount, formatCouponMoney, formatCouponTerms, mountContent, prepareContent, showFunnelPurchase, showFunnelRun, showPaywall };
|
|
2460
|
+
export { type ContentActionIntent, type ContentHostOptions, EntitlementCheckResult, FunnelCommandStorage, FunnelExecutionPolicy, type FunnelHostOptions, type FunnelPurchaseAttempt, type FunnelPurchaseClient, type FunnelPurchaseEntry, type FunnelPurchaseHostOptions, type FunnelPurchaseOptions, type FunnelPurchaseStart, type FunnelPurchaseState, type FunnelPurchaseStorage, FunnelRunController, type IamFunnelEntriesOptions, type IamFunnelProcessEntriesOptions, IndianaOptions as LongplayOptions, MerchantBridgeError, type MerchantBridgeOptions, type PaywallHostOptions, PaywallLoadingDocument, type PaywallPurchaseIntent, PaywallRecovery, PaywallSession, type PreparedFunnelPurchase, type PreparedState, PresentationLoadingOptions, SessionCredentials, createBrowserFunnelCommandStorage, createBrowserFunnelPurchaseStorage, createFunnelPageExperiments, createFunnelProcess, createFunnelPurchaseClient, createIamFunnelEntries, createIamFunnelProcessEntries, createMerchantBridge, createPaywallSession, formatCouponDiscount, formatCouponMoney, formatCouponTerms, mountContent, prepareContent, prerenderFunnelPurchase, showFunnelPurchase, showFunnelRun, showPaywall };
|