@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.
Files changed (37) hide show
  1. package/README.md +85 -0
  2. package/bundles/index.cjs +370 -204
  3. package/bundles/index.cjs.d.ts +535 -481
  4. package/bundles/index.mjs +205 -38
  5. package/bundles/index.mjs.d.ts +535 -481
  6. package/bundles/types/components/apple-pay-version.d.ts +29 -0
  7. package/bundles/types/components/apple-pay-version.d.ts.map +1 -0
  8. package/bundles/types/index.d.ts +2 -2
  9. package/bundles/types/index.d.ts.map +1 -1
  10. package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts.map +1 -1
  11. package/bundles/types/open-wallets/index.d.ts +1 -1
  12. package/bundles/types/open-wallets/index.d.ts.map +1 -1
  13. package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts.map +1 -1
  14. package/bundles/types/payment-source-widget/index.d.ts +1 -1
  15. package/bundles/types/payment-source-widget/index.d.ts.map +1 -1
  16. package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -1
  17. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +1 -0
  18. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
  19. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +16 -0
  20. package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -1
  21. package/bundles/types/wallet-buttons-express/index.d.ts +36 -0
  22. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -1
  23. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
  24. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts +1 -1
  25. package/bundles/types/wallet-buttons-express/services/paypal/paypal.wallet-button-express.d.ts.map +1 -1
  26. package/bundles/types/widget/html-multi-widget.d.ts +4 -1
  27. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
  28. package/bundles/types/widget/index.d.ts +2 -1
  29. package/bundles/types/widget/index.d.ts.map +1 -1
  30. package/bundles/types/widget/widget-event-map.d.ts +37 -0
  31. package/bundles/types/widget/widget-event-map.d.ts.map +1 -0
  32. package/bundles/widget.umd.js +370 -204
  33. package/bundles/widget.umd.js.d.ts +535 -481
  34. package/bundles/widget.umd.js.min.d.ts +535 -481
  35. package/bundles/widget.umd.min.js +1 -1
  36. package/docs/wallet-buttons-express.md +85 -0
  37. package/package.json +12 -5
package/README.md CHANGED
@@ -4429,6 +4429,20 @@ A full description of the meta parameters for [PaypalWalletButtonExpress](#Paypa
4429
4429
  </dd>
4430
4430
  </dl>
4431
4431
 
4432
+ ## Functions
4433
+
4434
+ <dl>
4435
+ <dt><a href="#enable">enable()</a></dt>
4436
+ <dd><p>Enables the wallet button, restoring interactivity and visual appearance.
4437
+ Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.</p>
4438
+ </dd>
4439
+ <dt><a href="#disable">disable()</a></dt>
4440
+ <dd><p>Disables the wallet button, preventing clicks and applying a visual disabled state.
4441
+ When disabled, the button appears grayed out and does not respond to user interaction.
4442
+ Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.</p>
4443
+ </dd>
4444
+ </dl>
4445
+
4432
4446
  ## Typedefs
4433
4447
 
4434
4448
  <dl>
@@ -4797,6 +4811,8 @@ Class ApplePayWalletButtonExpress to work with Apple Pay Wallet.
4797
4811
  * [.load()](#ApplePayWalletButtonExpress+load)
4798
4812
  * [.setMeta(meta)](#ApplePayWalletButtonExpress+setMeta)
4799
4813
  * [.setEnv(env, [alias])](#BaseWalletButton+setEnv)
4814
+ * [.enable()](#BaseWalletButton+enable)
4815
+ * [.disable()](#BaseWalletButton+disable)
4800
4816
  * [.onClick(handler)](#BaseWalletButton+onClick)
4801
4817
  * [.onPaymentSuccessful([handler])](#BaseWalletButton+onPaymentSuccessful)
4802
4818
  * [.onPaymentInReview([handler])](#BaseWalletButton+onPaymentInReview)
@@ -4869,6 +4885,28 @@ Bear in mind that you must set an environment before calling `button.load()`.
4869
4885
  ```js
4870
4886
  button.setEnv('production', 'paydock.com');
4871
4887
  ```
4888
+ <a name="BaseWalletButton+enable" id="BaseWalletButton+enable" href="#BaseWalletButton+enable">&nbsp;</a>
4889
+
4890
+ ### applePayWalletButtonExpress.enable()
4891
+ Enables the wallet button, restoring interactivity and visual appearance.
4892
+
4893
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
4894
+ **Overrides**: [<code>enable</code>](#BaseWalletButton+enable)
4895
+ **Example**
4896
+ ```js
4897
+ button.enable();
4898
+ ```
4899
+ <a name="BaseWalletButton+disable" id="BaseWalletButton+disable" href="#BaseWalletButton+disable">&nbsp;</a>
4900
+
4901
+ ### applePayWalletButtonExpress.disable()
4902
+ Disables the wallet button, preventing clicks and applying a visual disabled state.
4903
+
4904
+ **Kind**: instance method of [<code>ApplePayWalletButtonExpress</code>](#ApplePayWalletButtonExpress)
4905
+ **Overrides**: [<code>disable</code>](#BaseWalletButton+disable)
4906
+ **Example**
4907
+ ```js
4908
+ button.disable();
4909
+ ```
4872
4910
  <a name="BaseWalletButton+onClick" id="BaseWalletButton+onClick" href="#BaseWalletButton+onClick">&nbsp;</a>
4873
4911
 
4874
4912
  ### applePayWalletButtonExpress.onClick(handler)
@@ -5076,6 +5114,8 @@ Class PaypalWalletButtonExpress to work with Paypal Wallet.
5076
5114
  * [.load()](#PaypalWalletButtonExpress+load)
5077
5115
  * [.setMeta(meta)](#PaypalWalletButtonExpress+setMeta)
5078
5116
  * [.setEnv(env, [alias])](#BaseWalletButton+setEnv)
5117
+ * [.enable()](#BaseWalletButton+enable)
5118
+ * [.disable()](#BaseWalletButton+disable)
5079
5119
  * [.onClick(handler)](#BaseWalletButton+onClick)
5080
5120
  * [.onPaymentSuccessful([handler])](#BaseWalletButton+onPaymentSuccessful)
5081
5121
  * [.onPaymentInReview([handler])](#BaseWalletButton+onPaymentInReview)
@@ -5148,6 +5188,28 @@ Bear in mind that you must set an environment before calling `button.load()`.
5148
5188
  ```js
5149
5189
  button.setEnv('production', 'paydock.com');
5150
5190
  ```
5191
+ <a name="BaseWalletButton+enable" id="BaseWalletButton+enable" href="#BaseWalletButton+enable">&nbsp;</a>
5192
+
5193
+ ### paypalWalletButtonExpress.enable()
5194
+ Enables the wallet button, restoring interactivity and visual appearance.
5195
+
5196
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
5197
+ **Overrides**: [<code>enable</code>](#BaseWalletButton+enable)
5198
+ **Example**
5199
+ ```js
5200
+ button.enable();
5201
+ ```
5202
+ <a name="BaseWalletButton+disable" id="BaseWalletButton+disable" href="#BaseWalletButton+disable">&nbsp;</a>
5203
+
5204
+ ### paypalWalletButtonExpress.disable()
5205
+ Disables the wallet button, preventing clicks and applying a visual disabled state.
5206
+
5207
+ **Kind**: instance method of [<code>PaypalWalletButtonExpress</code>](#PaypalWalletButtonExpress)
5208
+ **Overrides**: [<code>disable</code>](#BaseWalletButton+disable)
5209
+ **Example**
5210
+ ```js
5211
+ button.disable();
5212
+ ```
5151
5213
  <a name="BaseWalletButton+onClick" id="BaseWalletButton+onClick" href="#BaseWalletButton+onClick">&nbsp;</a>
5152
5214
 
5153
5215
  ### paypalWalletButtonExpress.onClick(handler)
@@ -5381,6 +5443,29 @@ List of available contact fields for ContactFieldType
5381
5443
  | address_country | <code>string</code> |
5382
5444
  | address_country_code | <code>string</code> |
5383
5445
 
5446
+ <a name="enable" id="enable" href="#enable">&nbsp;</a>
5447
+
5448
+ ## enable()
5449
+ Enables the wallet button, restoring interactivity and visual appearance.
5450
+ Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.
5451
+
5452
+ **Kind**: global function
5453
+ **Example**
5454
+ ```js
5455
+ button.enable();
5456
+ ```
5457
+ <a name="disable" id="disable" href="#disable">&nbsp;</a>
5458
+
5459
+ ## disable()
5460
+ Disables the wallet button, preventing clicks and applying a visual disabled state.
5461
+ When disabled, the button appears grayed out and does not respond to user interaction.
5462
+ Available on both ApplePayWalletButtonExpress and PaypalWalletButtonExpress.
5463
+
5464
+ **Kind**: global function
5465
+ **Example**
5466
+ ```js
5467
+ button.disable();
5468
+ ```
5384
5469
  <a name="OnClickCallback" id="OnClickCallback" href="#OnClickCallback">&nbsp;</a>
5385
5470
 
5386
5471
  ## OnClickCallback ⇒ <code>Promise.&lt;string&gt;</code>