@paydock/client-sdk 1.141.0 → 1.143.0-beta
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 +85 -0
- package/bundles/index.cjs +370 -204
- package/bundles/index.cjs.d.ts +535 -481
- package/bundles/index.mjs +205 -38
- package/bundles/index.mjs.d.ts +535 -481
- package/bundles/types/components/apple-pay-version.d.ts +29 -0
- package/bundles/types/components/apple-pay-version.d.ts.map +1 -0
- package/bundles/types/index.d.ts +2 -2
- package/bundles/types/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts.map +1 -1
- package/bundles/types/open-wallets/index.d.ts +1 -1
- package/bundles/types/open-wallets/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts.map +1 -1
- package/bundles/types/payment-source-widget/index.d.ts +1 -1
- package/bundles/types/payment-source-widget/index.d.ts.map +1 -1
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +16 -0
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/index.d.ts +36 -0
- package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +1 -1
- package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -1
- package/bundles/types/widget/html-multi-widget.d.ts +4 -1
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
- package/bundles/types/widget/index.d.ts +2 -1
- package/bundles/types/widget/index.d.ts.map +1 -1
- package/bundles/types/widget/widget-event-map.d.ts +37 -0
- package/bundles/types/widget/widget-event-map.d.ts.map +1 -0
- package/bundles/widget.umd.js +370 -204
- package/bundles/widget.umd.js.d.ts +535 -481
- package/bundles/widget.umd.js.min.d.ts +535 -481
- package/bundles/widget.umd.min.js +1 -1
- package/docs/wallet-buttons-express.md +85 -0
- package/package.json +12 -5
|
@@ -20,6 +20,20 @@
|
|
|
20
20
|
</dd>
|
|
21
21
|
</dl>
|
|
22
22
|
|
|
23
|
+
## Functions
|
|
24
|
+
|
|
25
|
+
<dl>
|
|
26
|
+
<dt><a href="#enable">enable()</a></dt>
|
|
27
|
+
<dd><p>Enables the wallet button, restoring interactivity and visual appearance.
|
|
28
|
+
Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.</p>
|
|
29
|
+
</dd>
|
|
30
|
+
<dt><a href="#disable">disable()</a></dt>
|
|
31
|
+
<dd><p>Disables the wallet button, preventing clicks and applying a visual disabled state.
|
|
32
|
+
When disabled, the button appears grayed out and does not respond to user interaction.
|
|
33
|
+
Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.</p>
|
|
34
|
+
</dd>
|
|
35
|
+
</dl>
|
|
36
|
+
|
|
23
37
|
## Typedefs
|
|
24
38
|
|
|
25
39
|
<dl>
|
|
@@ -388,6 +402,8 @@ Class ApplePayWalletButtonExpress to work with Apple Pay Wallet.
|
|
|
388
402
|
* [.load()](#ApplePayWalletButtonExpress+load)
|
|
389
403
|
* [.setMeta(meta)](#ApplePayWalletButtonExpress+setMeta)
|
|
390
404
|
* [.setEnv(env, [alias])](#BaseWalletButton+setEnv)
|
|
405
|
+
* [.enable()](#BaseWalletButton+enable)
|
|
406
|
+
* [.disable()](#BaseWalletButton+disable)
|
|
391
407
|
* [.onClick(handler)](#BaseWalletButton+onClick)
|
|
392
408
|
* [.onPaymentSuccessful([handler])](#BaseWalletButton+onPaymentSuccessful)
|
|
393
409
|
* [.onPaymentInReview([handler])](#BaseWalletButton+onPaymentInReview)
|
|
@@ -460,6 +476,28 @@ Bear in mind that you must set an environment before calling `button.load()`.
|
|
|
460
476
|
```js
|
|
461
477
|
button.setEnv('production', 'paydock.com');
|
|
462
478
|
```
|
|
479
|
+
<a name="BaseWalletButton+enable" id="BaseWalletButton+enable" href="#BaseWalletButton+enable"> </a>
|
|
480
|
+
|
|
481
|
+
### applePayWalletButtonExpress.enable()
|
|
482
|
+
Enables the wallet button, restoring interactivity and visual appearance.
|
|
483
|
+
|
|
484
|
+
**Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
|
|
485
|
+
**Overrides**: [<code>enable</code>](#BaseWalletButton+enable)
|
|
486
|
+
**Example**
|
|
487
|
+
```js
|
|
488
|
+
button.enable();
|
|
489
|
+
```
|
|
490
|
+
<a name="BaseWalletButton+disable" id="BaseWalletButton+disable" href="#BaseWalletButton+disable"> </a>
|
|
491
|
+
|
|
492
|
+
### applePayWalletButtonExpress.disable()
|
|
493
|
+
Disables the wallet button, preventing clicks and applying a visual disabled state.
|
|
494
|
+
|
|
495
|
+
**Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
|
|
496
|
+
**Overrides**: [<code>disable</code>](#BaseWalletButton+disable)
|
|
497
|
+
**Example**
|
|
498
|
+
```js
|
|
499
|
+
button.disable();
|
|
500
|
+
```
|
|
463
501
|
<a name="BaseWalletButton+onClick" id="BaseWalletButton+onClick" href="#BaseWalletButton+onClick"> </a>
|
|
464
502
|
|
|
465
503
|
### applePayWalletButtonExpress.onClick(handler)
|
|
@@ -667,6 +705,8 @@ Class PaypalWalletButtonExpress to work with Paypal Wallet.
|
|
|
667
705
|
* [.load()](#PaypalWalletButtonExpress+load)
|
|
668
706
|
* [.setMeta(meta)](#PaypalWalletButtonExpress+setMeta)
|
|
669
707
|
* [.setEnv(env, [alias])](#BaseWalletButton+setEnv)
|
|
708
|
+
* [.enable()](#BaseWalletButton+enable)
|
|
709
|
+
* [.disable()](#BaseWalletButton+disable)
|
|
670
710
|
* [.onClick(handler)](#BaseWalletButton+onClick)
|
|
671
711
|
* [.onPaymentSuccessful([handler])](#BaseWalletButton+onPaymentSuccessful)
|
|
672
712
|
* [.onPaymentInReview([handler])](#BaseWalletButton+onPaymentInReview)
|
|
@@ -739,6 +779,28 @@ Bear in mind that you must set an environment before calling `button.load()`.
|
|
|
739
779
|
```js
|
|
740
780
|
button.setEnv('production', 'paydock.com');
|
|
741
781
|
```
|
|
782
|
+
<a name="BaseWalletButton+enable" id="BaseWalletButton+enable" href="#BaseWalletButton+enable"> </a>
|
|
783
|
+
|
|
784
|
+
### paypalWalletButtonExpress.enable()
|
|
785
|
+
Enables the wallet button, restoring interactivity and visual appearance.
|
|
786
|
+
|
|
787
|
+
**Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
|
|
788
|
+
**Overrides**: [<code>enable</code>](#BaseWalletButton+enable)
|
|
789
|
+
**Example**
|
|
790
|
+
```js
|
|
791
|
+
button.enable();
|
|
792
|
+
```
|
|
793
|
+
<a name="BaseWalletButton+disable" id="BaseWalletButton+disable" href="#BaseWalletButton+disable"> </a>
|
|
794
|
+
|
|
795
|
+
### paypalWalletButtonExpress.disable()
|
|
796
|
+
Disables the wallet button, preventing clicks and applying a visual disabled state.
|
|
797
|
+
|
|
798
|
+
**Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
|
|
799
|
+
**Overrides**: [<code>disable</code>](#BaseWalletButton+disable)
|
|
800
|
+
**Example**
|
|
801
|
+
```js
|
|
802
|
+
button.disable();
|
|
803
|
+
```
|
|
742
804
|
<a name="BaseWalletButton+onClick" id="BaseWalletButton+onClick" href="#BaseWalletButton+onClick"> </a>
|
|
743
805
|
|
|
744
806
|
### paypalWalletButtonExpress.onClick(handler)
|
|
@@ -972,6 +1034,29 @@ List of available contact fields for ContactFieldType
|
|
|
972
1034
|
| address_country | <code>string</code> |
|
|
973
1035
|
| address_country_code | <code>string</code> |
|
|
974
1036
|
|
|
1037
|
+
<a name="enable" id="enable" href="#enable"> </a>
|
|
1038
|
+
|
|
1039
|
+
## enable()
|
|
1040
|
+
Enables the wallet button, restoring interactivity and visual appearance.
|
|
1041
|
+
Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.
|
|
1042
|
+
|
|
1043
|
+
**Kind**: global function
|
|
1044
|
+
**Example**
|
|
1045
|
+
```js
|
|
1046
|
+
button.enable();
|
|
1047
|
+
```
|
|
1048
|
+
<a name="disable" id="disable" href="#disable"> </a>
|
|
1049
|
+
|
|
1050
|
+
## disable()
|
|
1051
|
+
Disables the wallet button, preventing clicks and applying a visual disabled state.
|
|
1052
|
+
When disabled, the button appears grayed out and does not respond to user interaction.
|
|
1053
|
+
Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.
|
|
1054
|
+
|
|
1055
|
+
**Kind**: global function
|
|
1056
|
+
**Example**
|
|
1057
|
+
```js
|
|
1058
|
+
button.disable();
|
|
1059
|
+
```
|
|
975
1060
|
<a name="OnClickCallback" id="OnClickCallback" href="#OnClickCallback"> </a>
|
|
976
1061
|
|
|
977
1062
|
## OnClickCallback ⇒ <code>Promise.<string></code>
|
package/package.json
CHANGED
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"name": "@paydock/client-sdk",
|
|
107
|
-
"version": "1.
|
|
107
|
+
"version": "1.143.0-beta",
|
|
108
108
|
"scripts": {
|
|
109
109
|
"build:doc": "node docs/html/marked.js",
|
|
110
110
|
"build:js": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"grunt-jsdoc-to-markdown": "6.0.0",
|
|
187
187
|
"grunt-replace": "2.0.2",
|
|
188
188
|
"grunt-template-render": "0.0.1",
|
|
189
|
-
"happy-dom": "20.
|
|
189
|
+
"happy-dom": "20.8.9",
|
|
190
190
|
"highlight.js": "11.9.0",
|
|
191
191
|
"ieee754": "1.2.1",
|
|
192
192
|
"include-all": "4.0.3",
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"process": "0.11.10",
|
|
210
210
|
"rimraf": "5.0.7",
|
|
211
211
|
"rollup": "4.59.0",
|
|
212
|
-
"rollup-plugin-dts": "6.1
|
|
212
|
+
"rollup-plugin-dts": "6.4.1",
|
|
213
213
|
"rxjs": "7.8.1",
|
|
214
214
|
"tsify": "3.0.4",
|
|
215
215
|
"tslib": "2.6.2",
|
|
@@ -230,8 +230,15 @@
|
|
|
230
230
|
"ajv": "8.18.0",
|
|
231
231
|
"serialize-javascript": ">=7.0.3",
|
|
232
232
|
"underscore": ">=1.13.8",
|
|
233
|
-
"dompurify": ">=3.
|
|
234
|
-
"immutable": ">=5.1.5"
|
|
233
|
+
"dompurify": ">=3.4.0",
|
|
234
|
+
"immutable": ">=5.1.5",
|
|
235
|
+
"flatted": ">=3.4.2",
|
|
236
|
+
"node-forge": ">=1.4.0",
|
|
237
|
+
"picomatch": ">=2.3.2",
|
|
238
|
+
"socket.io-parser": ">=4.2.6",
|
|
239
|
+
"lodash": ">=4.18.0",
|
|
240
|
+
"vite": ">=6.4.2",
|
|
241
|
+
"follow-redirects": ">=1.16.0"
|
|
235
242
|
},
|
|
236
243
|
"engines": {
|
|
237
244
|
"node": ">=16.0.0"
|