@movmo/express-checkout-button 1.10.0 → 1.10.1
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/dts/MovmoCheckoutOverlay.d.ts +12 -0
- package/dist/express-checkout.umd.js +2 -2
- package/dist/express-checkout.umd.js.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,5 +14,17 @@ export interface MovmoCheckoutOverlayOptions {
|
|
|
14
14
|
* re-hydrated overlay falls back to the default close behavior.
|
|
15
15
|
*/
|
|
16
16
|
onExit?: (info: MovmoCheckoutExitInfo) => void;
|
|
17
|
+
/**
|
|
18
|
+
* The partner page's URL + history.state captured by the button IMMEDIATELY
|
|
19
|
+
* before it pushed the /movmo/checkout entry. An iframe-initiated exit
|
|
20
|
+
* restores the page by replaceState-ing back to this entry instead of
|
|
21
|
+
* traversing — see closeOverlay for why history.back() can't be trusted.
|
|
22
|
+
* Absent on refresh-rehydrated overlays (nothing was captured), which fall
|
|
23
|
+
* back to a back() traversal.
|
|
24
|
+
*/
|
|
25
|
+
returnTo?: {
|
|
26
|
+
url: string;
|
|
27
|
+
state: unknown;
|
|
28
|
+
};
|
|
17
29
|
}
|
|
18
30
|
export declare function showMovmoOverlay(queryParams: string, isProd?: boolean, options?: MovmoCheckoutOverlayOptions): void;
|