@notabene/javascript-sdk 1.23.0 → 1.26.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/README.md +33 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,6 +39,14 @@ yarn add @notabene/javascript-sdk
|
|
|
39
39
|
|
|
40
40
|
## Usage
|
|
41
41
|
|
|
42
|
+
### Authentication
|
|
43
|
+
|
|
44
|
+
Use the [customer token endpoint](https://devx.notabene.id/docs/customertoken) with your access token to receive a token with a customer's scope.
|
|
45
|
+
|
|
46
|
+
> ⚠️ **IMPORTANT** ⚠️
|
|
47
|
+
>
|
|
48
|
+
> When requesting the `customer token` you **must pass a unique `customerRef` per customer** for ownership proof reusability, otherwise you might encounter unwanted behavior.
|
|
49
|
+
|
|
42
50
|
Create a new Notabene instance:
|
|
43
51
|
|
|
44
52
|
```js
|
|
@@ -210,11 +218,36 @@ Here you can pass configuration which will customize the styles of the widget to
|
|
|
210
218
|
fontFamily: Arial,
|
|
211
219
|
logo: {LOGO_URL},
|
|
212
220
|
mode: 'dark', // default: 'light'
|
|
221
|
+
|
|
222
|
+
// If you are using the Signature flow, here is the full list of custom theme that can be applied to the WalletConnect Modal.
|
|
223
|
+
'--w3m-font-family',
|
|
224
|
+
'--w3m-font-feature-settings',
|
|
225
|
+
'--w3m-overlay-background-color',
|
|
226
|
+
'--w3m-overlay-backdrop-filter',
|
|
227
|
+
'--w3m-z-index',
|
|
228
|
+
'--w3m-accent-color',
|
|
229
|
+
'--w3m-accent-fill-color',
|
|
230
|
+
'--w3m-background-color',
|
|
231
|
+
'--w3m-background-image-url',
|
|
232
|
+
'--w3m-logo-image-url',
|
|
233
|
+
'--w3m-background-border-radius',
|
|
234
|
+
'--w3m-container-border-radius',
|
|
235
|
+
'--w3m-wallet-icon-border-radius',
|
|
236
|
+
'--w3m-wallet-icon-large-border-radius',
|
|
237
|
+
'--w3m-wallet-icon-small-border-radius',
|
|
238
|
+
'--w3m-input-border-radius',
|
|
239
|
+
'--w3m-notification-border-radius',
|
|
240
|
+
'--w3m-button-border-radius',
|
|
241
|
+
'--w3m-secondary-button-border-radius',
|
|
242
|
+
'--w3m-icon-button-border-radius',
|
|
243
|
+
'--w3m-button-hover-highlight-border-radius',
|
|
213
244
|
}
|
|
214
245
|
```
|
|
215
246
|
|
|
216
247
|
To get a list of supported fonts, visit [https://fonts.google.com/](https://fonts.google.com/)
|
|
217
248
|
|
|
249
|
+
To get more details about the WalletConnect theme variables, visit [General style variables](https://docs.walletconnect.com/2.0/web/web3modal/react/wagmi/theming#general-style-variables).
|
|
250
|
+
|
|
218
251
|
---
|
|
219
252
|
|
|
220
253
|
**Dictionary**
|
package/package.json
CHANGED