@tonconnect/ui-react 2.4.0 → 2.4.1
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 +21 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -118,6 +118,27 @@ You can also specify preferred wallet features to prioritize wallets that will b
|
|
|
118
118
|
|
|
119
119
|
This will gently recommend wallets with richer functionality by placing them higher in the list, but all wallets remain available for selection.
|
|
120
120
|
|
|
121
|
+
### Analytics
|
|
122
|
+
|
|
123
|
+
You can configure analytics collection via the `analytics` prop:
|
|
124
|
+
|
|
125
|
+
```tsx
|
|
126
|
+
<TonConnectUIProvider
|
|
127
|
+
manifestUrl="https://<YOUR_APP_URL>/tonconnect-manifest.json"
|
|
128
|
+
analytics={{ mode: 'off' }}
|
|
129
|
+
>
|
|
130
|
+
{ /* Your app */ }
|
|
131
|
+
</TonConnectUIProvider>
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Analytics modes:**
|
|
135
|
+
|
|
136
|
+
| Mode | Description |
|
|
137
|
+
|-------------------------|------------------------------------------------------------|
|
|
138
|
+
| **off** | Analytics turned off. No events are collected or sent. |
|
|
139
|
+
| **telemetry** (default) | Analytics used for technical research and issue debugging. |
|
|
140
|
+
| **full** | Full analytics events. |
|
|
141
|
+
|
|
121
142
|
## Add TonConnect Button
|
|
122
143
|
TonConnect Button is universal UI component for initializing connection. After wallet is connected it transforms to a wallet menu.
|
|
123
144
|
It is recommended to place it in the top right corner of your app.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonconnect/ui-react",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/ton-connect/sdk.git"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"vite-plugin-dts": "^4.5.4"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@tonconnect/ui": "2.4.
|
|
51
|
+
"@tonconnect/ui": "2.4.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": ">=17.0.0",
|