@tonconnect/sdk 3.4.0-beta.5 → 3.4.0-beta.6
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/dist/tonconnect-sdk.min.js +1 -1
- package/dist/tonconnect-sdk.min.js.map +1 -1
- package/lib/cjs/index.cjs +61 -21
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/esm/index.mjs +61 -21
- package/lib/esm/index.mjs.map +1 -1
- package/lib/types/index.d.ts +15 -1
- package/package.json +3 -3
package/lib/types/index.d.ts
CHANGED
|
@@ -20,6 +20,15 @@ export declare interface Account {
|
|
|
20
20
|
|
|
21
21
|
export declare type AddTonConnectPrefix<T extends string> = `ton-connect-${T}` | `ton-connect-ui-${T}`;
|
|
22
22
|
|
|
23
|
+
export declare type AnalyticsMode = 'off' | 'telemetry' | 'full';
|
|
24
|
+
|
|
25
|
+
export declare interface AnalyticsSettings {
|
|
26
|
+
/**
|
|
27
|
+
* @default 'telemetry'
|
|
28
|
+
*/
|
|
29
|
+
mode?: AnalyticsMode;
|
|
30
|
+
}
|
|
31
|
+
|
|
23
32
|
/**
|
|
24
33
|
* Requested authentication type: 'ton_addr' or 'ton_proof'.
|
|
25
34
|
*/
|
|
@@ -1041,7 +1050,7 @@ declare class TonConnect implements ITonConnect {
|
|
|
1041
1050
|
*/
|
|
1042
1051
|
private readonly tracker;
|
|
1043
1052
|
private readonly walletsList;
|
|
1044
|
-
private
|
|
1053
|
+
private analytics?;
|
|
1045
1054
|
private readonly environment;
|
|
1046
1055
|
private readonly dappSettings;
|
|
1047
1056
|
private readonly bridgeConnectionStorage;
|
|
@@ -1145,6 +1154,7 @@ declare class TonConnect implements ITonConnect {
|
|
|
1145
1154
|
*/
|
|
1146
1155
|
unPauseConnection(): Promise<void>;
|
|
1147
1156
|
private addWindowFocusAndBlurSubscriptions;
|
|
1157
|
+
private initAnalytics;
|
|
1148
1158
|
private createProvider;
|
|
1149
1159
|
private walletEventsListener;
|
|
1150
1160
|
private onWalletConnected;
|
|
@@ -1207,6 +1217,10 @@ export declare interface TonConnectOptions {
|
|
|
1207
1217
|
* Represents the client environment in which the application is running.
|
|
1208
1218
|
*/
|
|
1209
1219
|
environment?: IEnvironment;
|
|
1220
|
+
/**
|
|
1221
|
+
* Analytics configuration.
|
|
1222
|
+
*/
|
|
1223
|
+
analytics?: AnalyticsSettings;
|
|
1210
1224
|
}
|
|
1211
1225
|
|
|
1212
1226
|
export declare interface TonProofItem {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonconnect/sdk",
|
|
3
|
-
"version": "3.4.0-beta.
|
|
3
|
+
"version": "3.4.0-beta.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/ton-connect/sdk.git"
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@tonconnect/isomorphic-eventsource": "0.0.2",
|
|
24
|
-
"@tonconnect/
|
|
25
|
-
"@tonconnect/
|
|
24
|
+
"@tonconnect/protocol": "2.4.0-beta.0",
|
|
25
|
+
"@tonconnect/isomorphic-fetch": "0.0.3"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"lib",
|