@ututrust/web-components 3.6.3 → 3.6.5
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 +16 -1
- package/dist/index.cjs +211 -256
- package/dist/index.js +21034 -23817
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -239,6 +239,21 @@ VITE_USE_UNLOCK=false
|
|
|
239
239
|
|
|
240
240
|
If you want to use Unlock set the above variable to true
|
|
241
241
|
|
|
242
|
+
### Reown wallet connect demo
|
|
243
|
+
|
|
244
|
+
The local `index.html` shell now relies on [Reown AppKit](https://docs.reown.com/) so contributors can exercise real wallet and account-abstraction flows. Copy `.env_example` to `.env` (or `.env.local`) and ensure the following variable is present:
|
|
245
|
+
|
|
246
|
+
```
|
|
247
|
+
VITE_PROJECT_ID=3fcb9eef628acf7a853f1ca64b984e7d
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
Feel free to replace it with your own Reown project ID when testing against cloud analytics. After running `npm run dev`, use the `<appkit-button>` rendered near the top of the demo page to connect a wallet. Once connected the page automatically:
|
|
251
|
+
|
|
252
|
+
1. Calls `updateConfig({ provider })` so Unlock and other components get the injected provider (including AA wallets).
|
|
253
|
+
2. Invokes `addressSignatureVerification`, which fetches a real JWT and dispatches `EVENT_UTU_IDENTITY_DATA_READY`, allowing mounted components to refresh without any fake events.
|
|
254
|
+
|
|
255
|
+
The demo shell itself lives under `src/demo` and is implemented with Preact so it mirrors how downstream apps consume the SDK. Check `src/demo/DemoApp.tsx` for a reference integration that wires Reown, `updateConfig`, and the UTU web components together.
|
|
256
|
+
|
|
242
257
|
## Local Development
|
|
243
258
|
Development stack:
|
|
244
259
|
- [preactjs](https://preactjs.com)
|
|
@@ -400,4 +415,4 @@ npm run build
|
|
|
400
415
|
npm login
|
|
401
416
|
npm publish
|
|
402
417
|
|
|
403
|
-
```
|
|
418
|
+
```
|