@dintero/checkout-web-sdk 0.6.4 → 0.6.6
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/.babelrc +1 -1
- package/.github/dependabot.yml +14 -1
- package/dist/dintero-checkout-web-sdk.cjs.d.ts +1 -1
- package/dist/dintero-checkout-web-sdk.cjs.dev.js +82 -28
- package/dist/dintero-checkout-web-sdk.cjs.prod.js +82 -28
- package/dist/dintero-checkout-web-sdk.esm.js +82 -28
- package/dist/dintero-checkout-web-sdk.umd.min.js +1 -1
- package/dist/dintero-checkout-web-sdk.umd.min.js.map +1 -1
- package/package.json +11 -12
- package/dist/declarations/src/checkout.d.ts +0 -104
- package/dist/declarations/src/index.d.ts +0 -60
- package/dist/declarations/src/session.d.ts +0 -937
- package/dist/declarations/src/subscribe.d.ts +0 -62
- package/dist/dintero-checkout-web-sdk.cjs.d.ts.map +0 -1
- package/patches/vitest+0.34.6.patch +0 -33
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { CheckoutEvents, InternalCheckoutEvents, SessionEvent, SessionValidationCallback } from "./checkout.js";
|
|
2
|
-
import { DinteroCheckoutInstance } from "./index.js";
|
|
3
|
-
/**
|
|
4
|
-
* Unsubscribe handler from event(s).
|
|
5
|
-
*/
|
|
6
|
-
export type SubscriptionHandler = (sessionEvent: SessionEvent, checkout: DinteroCheckoutInstance) => void;
|
|
7
|
-
interface SubscriptionOptions {
|
|
8
|
-
sid: string;
|
|
9
|
-
endpoint: string;
|
|
10
|
-
handler: SubscriptionHandler;
|
|
11
|
-
eventTypes: (CheckoutEvents | InternalCheckoutEvents)[];
|
|
12
|
-
checkout: DinteroCheckoutInstance;
|
|
13
|
-
source: Window;
|
|
14
|
-
}
|
|
15
|
-
export type Subscription = {
|
|
16
|
-
/**
|
|
17
|
-
* Unsubscribe handler from event(s).
|
|
18
|
-
*/
|
|
19
|
-
unsubscribe: () => void;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Post a SessionLock-event to the checkout iframe.
|
|
23
|
-
*/
|
|
24
|
-
export declare const postSessionLock: (iframe: HTMLIFrameElement, sid: string) => void;
|
|
25
|
-
/**
|
|
26
|
-
* Post the validation result to the checkout iframe
|
|
27
|
-
*/
|
|
28
|
-
export declare const postValidationResult: (iframe: HTMLIFrameElement, sid: string, result: SessionValidationCallback) => void;
|
|
29
|
-
/**
|
|
30
|
-
* Post RefreshSession-event to the checkout iframe.
|
|
31
|
-
*/
|
|
32
|
-
export declare const postSessionRefresh: (iframe: HTMLIFrameElement, sid: string) => void;
|
|
33
|
-
/**
|
|
34
|
-
* Post SetActivePaymentProductType-event to the checkout iframe.
|
|
35
|
-
*/
|
|
36
|
-
export declare const postActivePaymentProductType: (iframe: HTMLIFrameElement, sid: string, paymentProductType?: string) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Post ClosePopOut-event to the checkout iframe.
|
|
39
|
-
*/
|
|
40
|
-
export declare const postValidatePopOutEvent: (iframe: HTMLIFrameElement, sid: string) => void;
|
|
41
|
-
/**
|
|
42
|
-
* Post OpenPopOutFailed-event to the checkout iframe.
|
|
43
|
-
*/
|
|
44
|
-
export declare const postOpenPopOutFailedEvent: (iframe: HTMLIFrameElement, sid: string) => void;
|
|
45
|
-
/**
|
|
46
|
-
* Post OpenedPopOut-event to the checkout iframe.
|
|
47
|
-
*/
|
|
48
|
-
export declare const postOpenPopOutEvent: (iframe: HTMLIFrameElement, sid: string) => void;
|
|
49
|
-
/**
|
|
50
|
-
* Post ClosePopOut-event to the checkout iframe.
|
|
51
|
-
*/
|
|
52
|
-
export declare const postClosePopOutEvent: (iframe: HTMLIFrameElement, sid: string) => void;
|
|
53
|
-
/**
|
|
54
|
-
* Post SetLanguage-event to the checkout iframe.
|
|
55
|
-
*/
|
|
56
|
-
export declare const postSetLanguage: (iframe: HTMLIFrameElement, sid: string, language: string) => void;
|
|
57
|
-
/**
|
|
58
|
-
* Subscribe to events from an iframe given a handler and a set
|
|
59
|
-
* of event types.
|
|
60
|
-
*/
|
|
61
|
-
export declare const subscribe: (options: SubscriptionOptions) => Subscription;
|
|
62
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dintero-checkout-web-sdk.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
diff --git a/node_modules/vitest/dist/vendor-node.a7c48fe1.js b/node_modules/vitest/dist/vendor-node.a7c48fe1.js
|
|
2
|
-
index 6cb555c..dd4091e 100644
|
|
3
|
-
--- a/node_modules/vitest/dist/vendor-node.a7c48fe1.js
|
|
4
|
-
+++ b/node_modules/vitest/dist/vendor-node.a7c48fe1.js
|
|
5
|
-
@@ -10218,12 +10218,24 @@ class WebdriverBrowserProvider {
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
const { remote } = await import('webdriverio');
|
|
9
|
-
+
|
|
10
|
-
+ const capabilities = {
|
|
11
|
-
+ browserName: this.browser,
|
|
12
|
-
+ }
|
|
13
|
-
+
|
|
14
|
-
+ if (this.browser === "chrome") {
|
|
15
|
-
+ capabilities["goog:chromeOptions"] = { args: [] };
|
|
16
|
-
+ if (options.headless) {
|
|
17
|
-
+ capabilities["goog:chromeOptions"].args.push("headless");
|
|
18
|
-
+ }
|
|
19
|
-
+ if (options.binary) {
|
|
20
|
-
+ capabilities["goog:chromeOptions"].binary = options.binary;
|
|
21
|
-
+ }
|
|
22
|
-
+ }
|
|
23
|
-
+
|
|
24
|
-
this.cachedBrowser = await remote({
|
|
25
|
-
logLevel: "error",
|
|
26
|
-
- capabilities: {
|
|
27
|
-
- "browserName": this.browser,
|
|
28
|
-
- "wdio:devtoolsOptions": { headless: options.headless }
|
|
29
|
-
- }
|
|
30
|
-
+ capabilities
|
|
31
|
-
});
|
|
32
|
-
return this.cachedBrowser;
|
|
33
|
-
}
|