wallet-connect-button-vue 1.0.29 → 1.0.31
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 +10 -2
- package/dist/index.esm.js +2565 -2506
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2564 -2505
- package/dist/index.js.map +1 -1
- package/dist/nl-wallet-web.js +2526 -2482
- package/dist/types.d.ts +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ import { WalletConnectButton } from 'wallet-connect-button-vue';
|
|
|
21
21
|
```vue
|
|
22
22
|
<template>
|
|
23
23
|
<WalletConnectButton
|
|
24
|
-
:
|
|
24
|
+
:service-id="'your-service-id'"
|
|
25
25
|
:api-key="'your-api-key'"
|
|
26
26
|
:wallet-connect-host="'https://wallet-connect.eu'"
|
|
27
27
|
:label="'Connect Wallet'"
|
|
@@ -43,7 +43,15 @@ const onWalletSuccess = (attributes: any) => {
|
|
|
43
43
|
|
|
44
44
|
### Props
|
|
45
45
|
|
|
46
|
-
- `
|
|
46
|
+
- `serviceId: string` - The registration's identifier. NB Wallet Connect calls it a
|
|
47
|
+
**service id**: one company registers a service per website or application.
|
|
48
|
+
- `clientId: string` - The original name for the same value, still fully supported.
|
|
49
|
+
Give either one; `serviceId` wins when both are set.
|
|
50
|
+
|
|
51
|
+
With the `nbwallet` attribute the button talks to NB Wallet Connect, which has renamed
|
|
52
|
+
this identifier throughout its API (`service_id`, `/api/service/...`). Every other
|
|
53
|
+
variant still calls its host with `client_id`. That switch is automatic; you only
|
|
54
|
+
choose which prop name to write.
|
|
47
55
|
- `apiKey?: string` - Optional. API key for authentication
|
|
48
56
|
- `walletConnectHost?: string` - Optional. Custom wallet connect host URL (defaults to https://wallet-connect.eu)
|
|
49
57
|
- `label?: string` - Optional. Custom button text (defaults to 'Inloggen met NP Wallet')
|