airwallex-payment-elements
Advanced tools
Comparing version 0.0.62 to 0.0.63
@@ -1,4 +0,4 @@ | ||
/* Airwallex Checkout Component Version [0.0.62] */ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=`https://checkout.airwallex.com/assets/bundle.${"0.0.62"}.min.js`,r=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const r=document.querySelector(`script[src="${e}"], script[src="${e}/"]`)||(()=>{const r=document.createElement("script");r.src=e;const t=document.head||document.body;if(!t)throw new Error("Expected document.body not to be null. Airwallex.js requires a <head> or <body> element.");return t.appendChild(r),r})();return new Promise((e,t)=>{r.addEventListener("load",()=>{window.Airwallex?e():t(new Error("Failed to load Airwallex.js"))}),r.addEventListener("error",()=>{t(new Error("Failed to load Airwallex.js"))})})});exports.loadAirwallex=()=>r; | ||
/* Airwallex Checkout Component Version [0.0.63] */ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=`https://checkout.airwallex.com/assets/bundle.${"0.0.63"}.min.js`,r=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const r=document.querySelector(`script[src="${e}"], script[src="${e}/"]`)||(()=>{const r=document.createElement("script");r.src=e;const t=document.head||document.body;if(!t)throw new Error("Expected document.body not to be null. Airwallex.js requires a <head> or <body> element.");return t.appendChild(r),r})();return new Promise((e,t)=>{r.addEventListener("load",()=>{window.Airwallex?e():t(new Error("Failed to load Airwallex.js"))}),r.addEventListener("error",()=>{t(new Error("Failed to load Airwallex.js"))})})});exports.loadAirwallex=()=>r; | ||
/* Airwallex @Charlie.Lang */ | ||
//# sourceMappingURL=airwallex.cjs.js.map |
@@ -1,4 +0,4 @@ | ||
/* Airwallex Checkout Component Version [0.0.62] */ | ||
const e=`https://checkout.airwallex.com/assets/bundle.${"0.0.62"}.min.js`,r=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const r=document.querySelector(`script[src="${e}"], script[src="${e}/"]`)||(()=>{const r=document.createElement("script");r.src=e;const o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Airwallex.js requires a <head> or <body> element.");return o.appendChild(r),r})();return new Promise((e,o)=>{r.addEventListener("load",()=>{window.Airwallex?e():o(new Error("Failed to load Airwallex.js"))}),r.addEventListener("error",()=>{o(new Error("Failed to load Airwallex.js"))})})}),o=()=>r;export{o as loadAirwallex}; | ||
/* Airwallex Checkout Component Version [0.0.63] */ | ||
const e=`https://checkout.airwallex.com/assets/bundle.${"0.0.63"}.min.js`,r=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const r=document.querySelector(`script[src="${e}"], script[src="${e}/"]`)||(()=>{const r=document.createElement("script");r.src=e;const o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Airwallex.js requires a <head> or <body> element.");return o.appendChild(r),r})();return new Promise((e,o)=>{r.addEventListener("load",()=>{window.Airwallex?e():o(new Error("Failed to load Airwallex.js"))}),r.addEventListener("error",()=>{o(new Error("Failed to load Airwallex.js"))})})}),o=()=>r;export{o as loadAirwallex}; | ||
/* Airwallex @Charlie.Lang */ | ||
//# sourceMappingURL=airwallex.es.js.map |
@@ -1,4 +0,4 @@ | ||
/* Airwallex Checkout Component Version [0.0.62] */ | ||
var Airwallex=function(e){"use strict";const r=`https://checkout.airwallex.com/assets/bundle.${"0.0.62"}.min.js`,t=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const e=document.querySelector(`script[src="${r}"], script[src="${r}/"]`)||(()=>{const e=document.createElement("script");e.src=r;const t=document.head||document.body;if(!t)throw new Error("Expected document.body not to be null. Airwallex.js requires a <head> or <body> element.");return t.appendChild(e),e})();return new Promise((r,t)=>{e.addEventListener("load",()=>{window.Airwallex?r():t(new Error("Failed to load Airwallex.js"))}),e.addEventListener("error",()=>{t(new Error("Failed to load Airwallex.js"))})})});return e.loadAirwallex=()=>t,e}({}); | ||
/* Airwallex Checkout Component Version [0.0.63] */ | ||
var Airwallex=function(e){"use strict";const r=`https://checkout.airwallex.com/assets/bundle.${"0.0.63"}.min.js`,t=Promise.resolve().then(()=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;const e=document.querySelector(`script[src="${r}"], script[src="${r}/"]`)||(()=>{const e=document.createElement("script");e.src=r;const t=document.head||document.body;if(!t)throw new Error("Expected document.body not to be null. Airwallex.js requires a <head> or <body> element.");return t.appendChild(e),e})();return new Promise((r,t)=>{e.addEventListener("load",()=>{window.Airwallex?r():t(new Error("Failed to load Airwallex.js"))}),e.addEventListener("error",()=>{t(new Error("Failed to load Airwallex.js"))})})});return e.loadAirwallex=()=>t,e}({}); | ||
/* Airwallex @Charlie.Lang */ | ||
//# sourceMappingURL=airwallex.iife.js.map |
{ | ||
"name": "airwallex-payment-elements", | ||
"version": "0.0.62", | ||
"version": "0.0.63", | ||
"module": "lib/airwallex.es.js", | ||
@@ -34,2 +34,3 @@ "types": "types/index.d.ts", | ||
"@rollup/plugin-commonjs": "^11.0.2", | ||
"@rollup/plugin-json": "^4.0.3", | ||
"@rollup/plugin-typescript": "^3.0.0", | ||
@@ -60,6 +61,3 @@ "@typescript-eslint/eslint-plugin": "^2.21.0", | ||
}, | ||
"dependencies": { | ||
"@rollup/plugin-json": "^4.0.3", | ||
"lit-element": "^2.2.1" | ||
}, | ||
"dependencies": {}, | ||
"husky": { | ||
@@ -66,0 +64,0 @@ "hooks": { |
@@ -113,5 +113,5 @@ # airwallex-payment-elements | ||
#### Create *cardNumber* | *expiry* | *cvc* | *paymentRequestButton* | *card* | *wechat* | *dropin* elements | ||
#### Create *cardNumber* | *expiry* | *cvc* | *paymentRequestButton* | *card* | *wechat* | *dropIn* elements | ||
***When you select dropin element type you are actually adopt Drop-in integration*** | ||
***When you select dropIn element type you are actually adopt Drop-in integration*** | ||
@@ -133,3 +133,3 @@ With Drop-in integration, those prebuilt UI components has been composed into a payment form with all available payment methods, you can put it directly into you html page, and integrate with the rest of your own components to render your checkout page. | ||
```ts | ||
export declare const createElement: (type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card' | 'wechat' | 'dropin', options?: ElementOptions | undefined) => ElementBase | null; | ||
export declare const createElement: (type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card' | 'wechat' | 'dropIn', options?: ElementOptions | undefined) => ElementBase | null; | ||
export interface Intent { | ||
@@ -233,3 +233,3 @@ id: string; | ||
export interface ElementEvent { | ||
type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card' | 'wechat' | 'dropin'; | ||
type: 'cardNumber' | 'expiry' | 'cvc' | 'paymentRequestButton' | 'card' | 'wechat' | 'dropIn'; | ||
code: 'onReady' | 'onSubmit' | 'onSuccess' | 'onError' | 'onCancel' | 'onFocus' | 'onBlur' | 'onChange' | 'onClick'; | ||
@@ -236,0 +236,0 @@ complete: boolean; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
28397
27
- Removed@rollup/plugin-json@^4.0.3
- Removedlit-element@^2.2.1
- Removed@rollup/plugin-json@4.1.0(transitive)
- Removed@rollup/pluginutils@3.1.0(transitive)
- Removed@types/estree@0.0.39(transitive)
- Removedestree-walker@1.0.1(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedlit-element@2.5.1(transitive)
- Removedlit-html@1.4.1(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedrollup@2.79.2(transitive)