airwallex-payment-elements 1.87.0 → 1.89.0
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/lib/bin/airwallex.cjs.js +2 -2
- package/lib/bin/airwallex.es.js +2 -2
- package/lib/bin/airwallex.iife.js +2 -2
- package/package.json +1 -1
- package/typedoc.config.js +3 -1
- package/types/airwallex.d.ts +6 -2
- package/types/cardNumber.d.ts +1 -1
- package/types/dropInElement.d.ts +1 -1
- package/types/element.d.ts +22 -20
package/lib/bin/airwallex.cjs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* Airwallex Checkout Component Version [1.
|
|
2
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={prod:"checkout.airwallex.com",demo:"checkout-demo.airwallex.com",staging:"checkout-staging.airwallex.com",dev:"checkout-dev.airwallex.com",local:"localhost:3000"},r=r=>`https://${e[r]||e.prod}`,t="/assets/elements.bundle.min.js?version=1.
|
|
1
|
+
/* Airwallex Checkout Component Version [1.89.0] */
|
|
2
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={prod:"checkout.airwallex.com",demo:"checkout-demo.airwallex.com",staging:"checkout-staging.airwallex.com",dev:"checkout-dev.airwallex.com",local:"localhost:3000"},r=r=>`https://${e[r]||e.prod}`,t="/assets/elements.bundle.min.js?version=1.89.0",o=e=>{const r=document.createElement("script");r.src=`${e}${t}`,r.crossOrigin="anonymous";const o=document.head||document.body;if(!o)throw new Error("Airwallex payment scripts requires a <head> or <body> html element in order to be loaded.");return o.appendChild(r),r},n=async e=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;let n=0;const l=async()=>{const n=document.querySelector(`script[src="${t}"], script[src="${t}/"]`)||o(r((null==e?void 0:e.env)||"prod"));return new Promise(((r,t)=>{n.addEventListener("load",(()=>{window.Airwallex?(window.Airwallex.init(e),r(window.Airwallex)):t(new Error("Failed to load Airwallex on load event"))})),n.addEventListener("error",(()=>{t(new Error("Failed to load Airwallex scripts")),n.remove&&n.remove()}))}))};for(;n<3;)try{return await l()}catch(e){n++,await new Promise((e=>window.setTimeout(e,500)))}return null},l=e=>{window.Airwallex?window.Airwallex.init(e):console.error("Please loadAirwallex() before init();")},a=e=>{if(window.Airwallex)return window.Airwallex.redirectToCheckout(e);console.error("Please loadAirwallex() before redirectToCheckout();")},i=(e,r)=>window.Airwallex?window.Airwallex.createElement(e,r):(console.error("Please loadAirwallex() before createElement();"),null),w=e=>window.Airwallex?window.Airwallex.destroyElement(e):(console.error("Please loadAirwallex() before destroyElement();"),!1),d=e=>window.Airwallex?window.Airwallex.getElement(e):(console.error("Please loadAirwallex() before getElement();"),null),s=async e=>{if(window.Airwallex)return window.Airwallex.confirmPaymentIntent(e);{const e="Please loadAirwallex() before confirmPaymentIntent();";throw console.error(e),new Error(e)}},c=async e=>{if(window.Airwallex)return window.Airwallex.confirmPaymentIntentWithSavedCard(e);{const e="Please loadAirwallex() before confirmPaymentIntentWithSavedCard();";throw console.error(e),new Error(e)}},x=async(e,r)=>{if(window.Airwallex)return window.Airwallex.createPaymentMethod(e,r);{const e="Please loadAirwallex() before createPaymentMethod();";throw console.error(e),new Error(e)}},m=async(e,r)=>{if(window.Airwallex)return window.Airwallex.getPaymentIntent(e,r);{const e="Please loadAirwallex() before getPaymentIntent();";throw console.error(e),new Error(e)}},A=async e=>{if(window.Airwallex)return window.Airwallex.createPaymentConsent(e);{const e="Please loadAirwallex() before createPaymentConsent();";throw console.error(e),new Error(e)}},y=e=>window.Airwallex.getDeviceFingerprint(e);var u={getGatewayUrl:r,loadAirwallex:n,loadAirwallexJs:o,init:l,redirectToCheckout:a,createElement:i,destroyElement:w,getDeviceFingerprint:y,getElement:d,getPaymentIntent:m,createPaymentMethod:x,createPaymentConsent:A,confirmPaymentIntent:s,confirmPaymentIntentWithSavedCard:c};exports.confirmPaymentIntent=s,exports.confirmPaymentIntentWithSavedCard=c,exports.createElement=i,exports.createPaymentConsent=A,exports.createPaymentMethod=x,exports.default=u,exports.destroyElement=w,exports.getDeviceFingerprint=y,exports.getElement=d,exports.getGatewayUrl=r,exports.getPaymentIntent=m,exports.init=l,exports.loadAirwallex=n,exports.loadAirwallexJs=o,exports.redirectToCheckout=a;
|
|
3
3
|
//# sourceMappingURL=airwallex.cjs.js.map
|
package/lib/bin/airwallex.es.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* Airwallex Checkout Component Version [1.
|
|
2
|
-
const e={prod:"checkout.airwallex.com",demo:"checkout-demo.airwallex.com",staging:"checkout-staging.airwallex.com",dev:"checkout-dev.airwallex.com",local:"localhost:3000"},r=r=>`https://${e[r]||e.prod}`,o="/assets/elements.bundle.min.js?version=1.
|
|
1
|
+
/* Airwallex Checkout Component Version [1.89.0] */
|
|
2
|
+
const e={prod:"checkout.airwallex.com",demo:"checkout-demo.airwallex.com",staging:"checkout-staging.airwallex.com",dev:"checkout-dev.airwallex.com",local:"localhost:3000"},r=r=>`https://${e[r]||e.prod}`,o="/assets/elements.bundle.min.js?version=1.89.0",n=e=>{const r=document.createElement("script");r.src=`${e}${o}`,r.crossOrigin="anonymous";const n=document.head||document.body;if(!n)throw new Error("Airwallex payment scripts requires a <head> or <body> html element in order to be loaded.");return n.appendChild(r),r},l=async e=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;let l=0;const t=async()=>{const l=document.querySelector(`script[src="${o}"], script[src="${o}/"]`)||n(r((null==e?void 0:e.env)||"prod"));return new Promise(((r,o)=>{l.addEventListener("load",(()=>{window.Airwallex?(window.Airwallex.init(e),r(window.Airwallex)):o(new Error("Failed to load Airwallex on load event"))})),l.addEventListener("error",(()=>{o(new Error("Failed to load Airwallex scripts")),l.remove&&l.remove()}))}))};for(;l<3;)try{return await t()}catch(e){l++,await new Promise((e=>window.setTimeout(e,500)))}return null},t=e=>{window.Airwallex?window.Airwallex.init(e):console.error("Please loadAirwallex() before init();")},a=e=>{if(window.Airwallex)return window.Airwallex.redirectToCheckout(e);console.error("Please loadAirwallex() before redirectToCheckout();")},i=(e,r)=>window.Airwallex?window.Airwallex.createElement(e,r):(console.error("Please loadAirwallex() before createElement();"),null),w=e=>window.Airwallex?window.Airwallex.destroyElement(e):(console.error("Please loadAirwallex() before destroyElement();"),!1),d=e=>window.Airwallex?window.Airwallex.getElement(e):(console.error("Please loadAirwallex() before getElement();"),null),c=async e=>{if(window.Airwallex)return window.Airwallex.confirmPaymentIntent(e);{const e="Please loadAirwallex() before confirmPaymentIntent();";throw console.error(e),new Error(e)}},s=async e=>{if(window.Airwallex)return window.Airwallex.confirmPaymentIntentWithSavedCard(e);{const e="Please loadAirwallex() before confirmPaymentIntentWithSavedCard();";throw console.error(e),new Error(e)}},m=async(e,r)=>{if(window.Airwallex)return window.Airwallex.createPaymentMethod(e,r);{const e="Please loadAirwallex() before createPaymentMethod();";throw console.error(e),new Error(e)}},x=async(e,r)=>{if(window.Airwallex)return window.Airwallex.getPaymentIntent(e,r);{const e="Please loadAirwallex() before getPaymentIntent();";throw console.error(e),new Error(e)}},A=async e=>{if(window.Airwallex)return window.Airwallex.createPaymentConsent(e);{const e="Please loadAirwallex() before createPaymentConsent();";throw console.error(e),new Error(e)}},u=e=>window.Airwallex.getDeviceFingerprint(e);var y={getGatewayUrl:r,loadAirwallex:l,loadAirwallexJs:n,init:t,redirectToCheckout:a,createElement:i,destroyElement:w,getDeviceFingerprint:u,getElement:d,getPaymentIntent:x,createPaymentMethod:m,createPaymentConsent:A,confirmPaymentIntent:c,confirmPaymentIntentWithSavedCard:s};export default y;export{c as confirmPaymentIntent,s as confirmPaymentIntentWithSavedCard,i as createElement,A as createPaymentConsent,m as createPaymentMethod,w as destroyElement,u as getDeviceFingerprint,d as getElement,r as getGatewayUrl,x as getPaymentIntent,t as init,l as loadAirwallex,n as loadAirwallexJs,a as redirectToCheckout};
|
|
3
3
|
//# sourceMappingURL=airwallex.es.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/* Airwallex Checkout Component Version [1.
|
|
2
|
-
var Airwallex=function(e){"use strict";const r={prod:"checkout.airwallex.com",demo:"checkout-demo.airwallex.com",staging:"checkout-staging.airwallex.com",dev:"checkout-dev.airwallex.com",local:"localhost:3000"},n=e=>`https://${r[e]||r.prod}`,t="/assets/elements.bundle.min.js?version=1.
|
|
1
|
+
/* Airwallex Checkout Component Version [1.89.0] */
|
|
2
|
+
var Airwallex=function(e){"use strict";const r={prod:"checkout.airwallex.com",demo:"checkout-demo.airwallex.com",staging:"checkout-staging.airwallex.com",dev:"checkout-dev.airwallex.com",local:"localhost:3000"},n=e=>`https://${r[e]||r.prod}`,t="/assets/elements.bundle.min.js?version=1.89.0",o=e=>{const r=document.createElement("script");r.src=`${e}${t}`,r.crossOrigin="anonymous";const n=document.head||document.body;if(!n)throw new Error("Airwallex payment scripts requires a <head> or <body> html element in order to be loaded.");return n.appendChild(r),r},l=async e=>{if("undefined"==typeof window)return null;if(window.Airwallex)return window.Airwallex;let r=0;const l=async()=>{const r=document.querySelector(`script[src="${t}"], script[src="${t}/"]`)||o(n((null==e?void 0:e.env)||"prod"));return new Promise(((n,t)=>{r.addEventListener("load",(()=>{window.Airwallex?(window.Airwallex.init(e),n(window.Airwallex)):t(new Error("Failed to load Airwallex on load event"))})),r.addEventListener("error",(()=>{t(new Error("Failed to load Airwallex scripts")),r.remove&&r.remove()}))}))};for(;r<3;)try{return await l()}catch(e){r++,await new Promise((e=>window.setTimeout(e,500)))}return null},a=e=>{window.Airwallex?window.Airwallex.init(e):console.error("Please loadAirwallex() before init();")},i=e=>{if(window.Airwallex)return window.Airwallex.redirectToCheckout(e);console.error("Please loadAirwallex() before redirectToCheckout();")},w=(e,r)=>window.Airwallex?window.Airwallex.createElement(e,r):(console.error("Please loadAirwallex() before createElement();"),null),d=e=>window.Airwallex?window.Airwallex.destroyElement(e):(console.error("Please loadAirwallex() before destroyElement();"),!1),c=e=>window.Airwallex?window.Airwallex.getElement(e):(console.error("Please loadAirwallex() before getElement();"),null),s=async e=>{if(window.Airwallex)return window.Airwallex.confirmPaymentIntent(e);{const e="Please loadAirwallex() before confirmPaymentIntent();";throw console.error(e),new Error(e)}},m=async e=>{if(window.Airwallex)return window.Airwallex.confirmPaymentIntentWithSavedCard(e);{const e="Please loadAirwallex() before confirmPaymentIntentWithSavedCard();";throw console.error(e),new Error(e)}},x=async(e,r)=>{if(window.Airwallex)return window.Airwallex.createPaymentMethod(e,r);{const e="Please loadAirwallex() before createPaymentMethod();";throw console.error(e),new Error(e)}},A=async(e,r)=>{if(window.Airwallex)return window.Airwallex.getPaymentIntent(e,r);{const e="Please loadAirwallex() before getPaymentIntent();";throw console.error(e),new Error(e)}},u=async e=>{if(window.Airwallex)return window.Airwallex.createPaymentConsent(e);{const e="Please loadAirwallex() before createPaymentConsent();";throw console.error(e),new Error(e)}},y=e=>window.Airwallex.getDeviceFingerprint(e);var f={getGatewayUrl:n,loadAirwallex:l,loadAirwallexJs:o,init:a,redirectToCheckout:i,createElement:w,destroyElement:d,getDeviceFingerprint:y,getElement:c,getPaymentIntent:A,createPaymentMethod:x,createPaymentConsent:u,confirmPaymentIntent:s,confirmPaymentIntentWithSavedCard:m};return e.confirmPaymentIntent=s,e.confirmPaymentIntentWithSavedCard=m,e.createElement=w,e.createPaymentConsent=u,e.createPaymentMethod=x,e.default=f,e.destroyElement=d,e.getDeviceFingerprint=y,e.getElement=c,e.getGatewayUrl=n,e.getPaymentIntent=A,e.init=a,e.loadAirwallex=l,e.loadAirwallexJs=o,e.redirectToCheckout=i,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
|
|
3
3
|
//# sourceMappingURL=airwallex.iife.js.map
|
package/package.json
CHANGED
package/typedoc.config.js
CHANGED
|
@@ -26,13 +26,15 @@ const config = {
|
|
|
26
26
|
'https://developers.google.com/pay/api/web/reference/request-objects#PaymentDataRequest',
|
|
27
27
|
'google.payments.api.PaymentDataCallbacks':
|
|
28
28
|
'https://developers.google.com/pay/api/web/reference/request-objects#PaymentDataCallbacks',
|
|
29
|
+
'google.payments.api.CheckoutOption':
|
|
30
|
+
'https://developers.google.com/pay/api/web/reference/request-objects#final-price-example',
|
|
29
31
|
'google.payments.api.PaymentDataRequest':
|
|
30
32
|
'https://developers.google.com/pay/api/web/reference/request-objects#PaymentDataRequest',
|
|
31
33
|
'google.payments.api.PaymentDataRequest.ShippingOptionParameters':
|
|
32
34
|
'https://developers.google.com/pay/api/web/reference/request-objects#ShippingOptionParameters',
|
|
33
35
|
},
|
|
34
36
|
csstype: {
|
|
35
|
-
|
|
37
|
+
Properties: 'https://www.w3schools.com/cssref/index.php',
|
|
36
38
|
},
|
|
37
39
|
},
|
|
38
40
|
};
|
package/types/airwallex.d.ts
CHANGED
|
@@ -108,6 +108,10 @@ export interface InitOptions {
|
|
|
108
108
|
* The locale for your website.
|
|
109
109
|
*/
|
|
110
110
|
locale?: Locale;
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated This field is no longer used.
|
|
113
|
+
*/
|
|
114
|
+
origin?: string;
|
|
111
115
|
/**
|
|
112
116
|
* Global option to customize font styles of Elements.
|
|
113
117
|
*/
|
|
@@ -115,7 +119,7 @@ export interface InitOptions {
|
|
|
115
119
|
}
|
|
116
120
|
|
|
117
121
|
/**
|
|
118
|
-
* Theme configuration options for
|
|
122
|
+
* Theme configuration options for Hosted Payment Page.
|
|
119
123
|
*/
|
|
120
124
|
export interface HppTheme extends BoxStyle {
|
|
121
125
|
fonts?: FontOptions[];
|
|
@@ -550,7 +554,7 @@ export declare const init: (options?: InitOptions | undefined) => void;
|
|
|
550
554
|
import { init } from '@airwallex/components-sdk';
|
|
551
555
|
|
|
552
556
|
const { payment } = await init({
|
|
553
|
-
env: 'demo', // Choose the Airwallex environment ('
|
|
557
|
+
env: 'demo', // Choose the Airwallex environment ('demo' or 'prod')
|
|
554
558
|
enabledElements: ['payments'],
|
|
555
559
|
});
|
|
556
560
|
payment.redirectToCheckout({
|
package/types/cardNumber.d.ts
CHANGED
package/types/dropInElement.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface DropinTheme {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Apply to dropIn element type integration, interface used when createElement called with type `dropIn`
|
|
16
|
+
* Apply to `dropIn` element type integration, interface used when `createElement` called with type `dropIn`
|
|
17
17
|
*/
|
|
18
18
|
export interface DropInElementOptions {
|
|
19
19
|
/**
|
package/types/element.d.ts
CHANGED
|
@@ -857,11 +857,7 @@ export interface GooglePayRequestOptions {
|
|
|
857
857
|
shippingAddressRequired?: false | true | undefined;
|
|
858
858
|
|
|
859
859
|
/**
|
|
860
|
-
* Optional shipping address parameters.
|
|
861
|
-
*
|
|
862
|
-
* If omitted, the default values specified in
|
|
863
|
-
* [[ShippingAddressParameters|`ShippingAddressParameters`]] will be
|
|
864
|
-
* used.
|
|
860
|
+
* Optional shipping address parameters for the returned shipping address.
|
|
865
861
|
*/
|
|
866
862
|
shippingAddressParameters?: google.payments.api.ShippingAddressParameters;
|
|
867
863
|
/**
|
|
@@ -901,6 +897,9 @@ export interface GooglePayRequestOptions {
|
|
|
901
897
|
callbackIntents?: google.payments.api.CallbackIntent[];
|
|
902
898
|
}
|
|
903
899
|
|
|
900
|
+
/**
|
|
901
|
+
* Applies to `googlePayButton` element type integration, the interface used when `createElement()` is called with type `googlePayButton`.
|
|
902
|
+
*/
|
|
904
903
|
export interface GooglePayButtonOptions extends GooglePayRequestOptions {
|
|
905
904
|
/**
|
|
906
905
|
* The layout of each element stays consistent, but you can modify width, height, and more.
|
|
@@ -1088,6 +1087,9 @@ interface Amount {
|
|
|
1088
1087
|
currency: string;
|
|
1089
1088
|
}
|
|
1090
1089
|
|
|
1090
|
+
/**
|
|
1091
|
+
* Applies to `applePayButton` element type integration, the interface used when `createElement()` is called with type `applePayButton`.
|
|
1092
|
+
*/
|
|
1091
1093
|
export interface ApplePayButtonOptions extends ApplePayRequestOptions {
|
|
1092
1094
|
/**
|
|
1093
1095
|
* The ID of the Payment Intent you would like to checkout.
|
|
@@ -1195,16 +1197,16 @@ export interface Element {
|
|
|
1195
1197
|
*/
|
|
1196
1198
|
mount(domElement: string | HTMLElement): null | HTMLElement;
|
|
1197
1199
|
/**
|
|
1198
|
-
* Blurs the
|
|
1200
|
+
* Blurs the the HTML Input element.
|
|
1199
1201
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/blur
|
|
1200
1202
|
*/
|
|
1201
1203
|
blur(): void;
|
|
1202
1204
|
/**
|
|
1203
|
-
* Clears the
|
|
1205
|
+
* Clears the the HTML Input element.
|
|
1204
1206
|
*/
|
|
1205
1207
|
clear(): void;
|
|
1206
1208
|
/**
|
|
1207
|
-
* Focuses the
|
|
1209
|
+
* Focuses the the HTML Input element.
|
|
1208
1210
|
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus
|
|
1209
1211
|
*/
|
|
1210
1212
|
focus(): void;
|
|
@@ -1291,7 +1293,7 @@ type CardElementEvent = 'ready' | 'click' | 'focus' | 'blur' | 'change';
|
|
|
1291
1293
|
*/
|
|
1292
1294
|
export interface CardElementType extends ElementBaseType {
|
|
1293
1295
|
/**
|
|
1294
|
-
* Using this function to blur the
|
|
1296
|
+
* Using this function to blur the HTML Input element
|
|
1295
1297
|
*@example
|
|
1296
1298
|
```ts
|
|
1297
1299
|
element.blur();
|
|
@@ -1299,7 +1301,7 @@ export interface CardElementType extends ElementBaseType {
|
|
|
1299
1301
|
*/
|
|
1300
1302
|
blur(): void;
|
|
1301
1303
|
/**
|
|
1302
|
-
* Using this function to clear the
|
|
1304
|
+
* Using this function to clear the HTML Input element
|
|
1303
1305
|
* @example
|
|
1304
1306
|
```ts
|
|
1305
1307
|
element.clear();
|
|
@@ -1307,7 +1309,7 @@ export interface CardElementType extends ElementBaseType {
|
|
|
1307
1309
|
*/
|
|
1308
1310
|
clear(): void;
|
|
1309
1311
|
/**
|
|
1310
|
-
* Using this function to focus the
|
|
1312
|
+
* Using this function to focus the HTML Input element
|
|
1311
1313
|
* @example
|
|
1312
1314
|
```ts
|
|
1313
1315
|
element.focus();
|
|
@@ -1376,7 +1378,7 @@ export type CardNumberElementEvent = 'ready' | 'change' | 'focus' | 'blur' | 'pr
|
|
|
1376
1378
|
*/
|
|
1377
1379
|
export interface CardNumberElementType extends ElementBaseType {
|
|
1378
1380
|
/**
|
|
1379
|
-
* Using this function to blur the
|
|
1381
|
+
* Using this function to blur the HTML Input element
|
|
1380
1382
|
* @example
|
|
1381
1383
|
```ts
|
|
1382
1384
|
element.blur();
|
|
@@ -1384,7 +1386,7 @@ export interface CardNumberElementType extends ElementBaseType {
|
|
|
1384
1386
|
*/
|
|
1385
1387
|
blur(): void;
|
|
1386
1388
|
/**
|
|
1387
|
-
* Using this function to clear the
|
|
1389
|
+
* Using this function to clear the HTML Input element
|
|
1388
1390
|
* @example
|
|
1389
1391
|
```ts
|
|
1390
1392
|
element.clear();
|
|
@@ -1392,7 +1394,7 @@ export interface CardNumberElementType extends ElementBaseType {
|
|
|
1392
1394
|
*/
|
|
1393
1395
|
clear(): void;
|
|
1394
1396
|
/**
|
|
1395
|
-
* Using this function to focus the
|
|
1397
|
+
* Using this function to focus the HTML Input element
|
|
1396
1398
|
* @example
|
|
1397
1399
|
```ts
|
|
1398
1400
|
element.focus();
|
|
@@ -1456,7 +1458,7 @@ export type ExpiryElementEvent = 'ready' | 'change' | 'focus' | 'blur' | 'pressA
|
|
|
1456
1458
|
*/
|
|
1457
1459
|
export interface ExpiryDateElementType extends ElementBaseType {
|
|
1458
1460
|
/**
|
|
1459
|
-
* Using this function to blur the
|
|
1461
|
+
* Using this function to blur the HTML Input element
|
|
1460
1462
|
* @example
|
|
1461
1463
|
```ts
|
|
1462
1464
|
element.blur();
|
|
@@ -1464,7 +1466,7 @@ export interface ExpiryDateElementType extends ElementBaseType {
|
|
|
1464
1466
|
*/
|
|
1465
1467
|
blur(): void;
|
|
1466
1468
|
/**
|
|
1467
|
-
* Using this function to clear the
|
|
1469
|
+
* Using this function to clear the HTML Input element
|
|
1468
1470
|
* @example
|
|
1469
1471
|
```ts
|
|
1470
1472
|
element.clear();
|
|
@@ -1472,7 +1474,7 @@ export interface ExpiryDateElementType extends ElementBaseType {
|
|
|
1472
1474
|
*/
|
|
1473
1475
|
clear(): void;
|
|
1474
1476
|
/**
|
|
1475
|
-
* Using this function to focus the
|
|
1477
|
+
* Using this function to focus the HTML Input element
|
|
1476
1478
|
* @example
|
|
1477
1479
|
```ts
|
|
1478
1480
|
element.focus();
|
|
@@ -1507,7 +1509,7 @@ export type CvcElementEvent = 'ready' | 'change' | 'focus' | 'blur' | 'pressArro
|
|
|
1507
1509
|
*/
|
|
1508
1510
|
export interface CvcElementType extends ElementBaseType {
|
|
1509
1511
|
/**
|
|
1510
|
-
* Using this function to blur the
|
|
1512
|
+
* Using this function to blur the HTML Input element
|
|
1511
1513
|
* @example
|
|
1512
1514
|
```ts
|
|
1513
1515
|
element.blur();
|
|
@@ -1515,7 +1517,7 @@ export interface CvcElementType extends ElementBaseType {
|
|
|
1515
1517
|
*/
|
|
1516
1518
|
blur(): void;
|
|
1517
1519
|
/**
|
|
1518
|
-
* Using this function to clear the
|
|
1520
|
+
* Using this function to clear the HTML Input element
|
|
1519
1521
|
* @example
|
|
1520
1522
|
```ts
|
|
1521
1523
|
element.clear();
|
|
@@ -1523,7 +1525,7 @@ export interface CvcElementType extends ElementBaseType {
|
|
|
1523
1525
|
*/
|
|
1524
1526
|
clear(): void;
|
|
1525
1527
|
/**
|
|
1526
|
-
* Using this function to focus the
|
|
1528
|
+
* Using this function to focus the HTML Input element
|
|
1527
1529
|
* @example
|
|
1528
1530
|
```ts
|
|
1529
1531
|
element.focus();
|