@movmo/express-checkout-button 2.0.2 → 2.0.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/README.md +1 -1
- package/dist/dts/index.d.ts +1 -2
- package/dist/dts/returnHandler.d.ts +4 -1
- package/dist/dts/tracking.d.ts +0 -2
- package/dist/express-checkout.umd.js +2 -2
- package/dist/express-checkout.umd.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -6
package/README.md
CHANGED
|
@@ -266,7 +266,7 @@ test pages; it is sticky per tab and entirely fail-open.
|
|
|
266
266
|
|
|
267
267
|
`MovmoCheckoutButton` self-instruments the partner-page funnel — from the button rendering on
|
|
268
268
|
the airline page through the redirect to Movmo and the return — using
|
|
269
|
-
|
|
269
|
+
Movmo's bundled analytics SDK in **scoped mode**. Scoped mode disables every document-level listener
|
|
270
270
|
the SDK would otherwise install (click/rage-click/hover/scroll/field/section autocapture);
|
|
271
271
|
the button only ever attaches listeners to its own DOM node. It never observes the partner's
|
|
272
272
|
page, reads partner form fields, or inspects anything outside that element. The airline
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -3,5 +3,4 @@ export { MovmoCheckoutButton } from './MovmoCheckoutButton';
|
|
|
3
3
|
export type { MovmoCheckoutButtonProps, MovmoCheckoutError } from './MovmoCheckoutButton';
|
|
4
4
|
export type { SaveOfferResult } from './api';
|
|
5
5
|
export { consumeMovmoCheckoutReturn } from './returnHandler';
|
|
6
|
-
export type { MovmoBookingCompleteInfo, MovmoCheckoutExitInfo, MovmoCheckoutReturnOptions, } from './returnHandler';
|
|
7
|
-
export type { MovmoExitReason } from '@movmo_app/types';
|
|
6
|
+
export type { MovmoBookingCompleteInfo, MovmoCheckoutExitInfo, MovmoCheckoutReturnOptions, MovmoExitReason, } from './returnHandler';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { MovmoExitReason } from '@movmo_app/types';
|
|
2
1
|
/** Passed to the airline's onExit callback when the traveler returns from Movmo. */
|
|
3
2
|
export interface MovmoCheckoutExitInfo {
|
|
4
3
|
reason: MovmoExitReason;
|
|
@@ -30,6 +29,9 @@ export interface MovmoCheckoutReturnOptions {
|
|
|
30
29
|
onExit?: (info: MovmoCheckoutExitInfo) => void;
|
|
31
30
|
onBookingComplete?: (info: MovmoBookingCompleteInfo) => void;
|
|
32
31
|
}
|
|
32
|
+
/** Why the checkout handed control back to the airline page (`onExit`). */
|
|
33
|
+
declare const REASONS: readonly ["search_again", "offer_unavailable", "booking_confirmed"];
|
|
34
|
+
export type MovmoExitReason = (typeof REASONS)[number];
|
|
33
35
|
/** @internal Test hook: forget any parsed or claimed return. Not exported from the package entry. */
|
|
34
36
|
export declare function __resetForTests(): void;
|
|
35
37
|
/**
|
|
@@ -46,3 +48,4 @@ export declare function __resetForTests(): void;
|
|
|
46
48
|
* it as early as possible, before analytics or session-replay scripts read the URL.
|
|
47
49
|
*/
|
|
48
50
|
export declare function consumeMovmoCheckoutReturn(options?: MovmoCheckoutReturnOptions): boolean;
|
|
51
|
+
export {};
|