@kimafinance/kima-transaction-widget 1.5.30 → 1.5.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 +2 -18
- package/dist/index.cjs +410 -517
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -58
- package/dist/index.d.ts +15 -58
- package/dist/index.js +405 -514
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,6 @@ const App = () => {
|
|
|
32
32
|
<KimaProvider
|
|
33
33
|
kimaBackendUrl='http://localhost:3001' // or your deployed backend instance
|
|
34
34
|
projectId='e579511a495b5c312b572b036e60555a'
|
|
35
|
-
externalProvider={} // in case you want to provide an already connected wallet
|
|
36
35
|
>
|
|
37
36
|
<KimaTransactionWidget
|
|
38
37
|
theme={{
|
|
@@ -79,7 +78,6 @@ const App = () => {
|
|
|
79
78
|
<KimaProvider
|
|
80
79
|
kimaBackendUrl='http://localhost:3001' // or your deployed backend instance
|
|
81
80
|
projectId='e579511a495b5c312b572b036e60555a'
|
|
82
|
-
externalProvider={} // in case you want to provide an already connected wallet
|
|
83
81
|
>
|
|
84
82
|
<KimaTransactionWidget
|
|
85
83
|
theme={{
|
|
@@ -265,7 +263,6 @@ Used to specify payment screen's title.
|
|
|
265
263
|
```tsx
|
|
266
264
|
<KimaProvider
|
|
267
265
|
kimaBackendUrl='http://localhost:3001' // or your deployed backend instance
|
|
268
|
-
externalProvider={new Web3Provider()}
|
|
269
266
|
logLevel='debug' // optional, default is 'error'
|
|
270
267
|
projectId='e579511a495b5c312b572b036e60555a'
|
|
271
268
|
>
|
|
@@ -275,6 +272,8 @@ Used to specify payment screen's title.
|
|
|
275
272
|
|
|
276
273
|
Used to provide the widget with wallet connection and chain switching functionality.
|
|
277
274
|
|
|
275
|
+
For EVM flows, the widget now uses Reown AppKit as the connection and signing path. Pass a valid `projectId` and let the widget manage the wallet session.
|
|
276
|
+
|
|
278
277
|
### `kimaBackendUrl`
|
|
279
278
|
|
|
280
279
|
Used to specify kima transaction backend url.
|
|
@@ -297,21 +296,6 @@ The log level can also be set using the `LOG_LEVEL` environment or the equivalen
|
|
|
297
296
|
|
|
298
297
|
**DEBUG mode**: Type `D` `E` `B` `U` `G` while focus is on the Widget (not in the console) to enable debug mode. This will set the log level to `debug` and log all messages to the console. Type it again to disable debug mode and restore the default log level. Useful to temporarily toggle logging in the browser when in production or an already deployed app where changing the ENV variable would require a redeploy.
|
|
299
298
|
|
|
300
|
-
### `externalProvider`
|
|
301
|
-
|
|
302
|
-
Used to provide an already connected wallet instance from your app. Depending on the network your dapp is currently connected to is the instance that you will need to provide.
|
|
303
|
-
|
|
304
|
-
```ts
|
|
305
|
-
interface ExternalProvider {
|
|
306
|
-
type: 'evm' | 'solana' | 'tron'
|
|
307
|
-
provider: Web3Provider | SolProvider | TronProvider
|
|
308
|
-
signer: JsonRpcSigner | PublicKey | string
|
|
309
|
-
}
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
- Required: `false`
|
|
313
|
-
- Type: `ExternalProvider`
|
|
314
|
-
|
|
315
299
|
### Event handlers
|
|
316
300
|
|
|
317
301
|
- `errorHandler: (e: any) => void`: Callback function to handle errors.
|