@blazium/ton-connect-mobile 1.1.1 → 1.1.3
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/core/protocol.d.ts +2 -2
- package/dist/core/protocol.js +16 -11
- package/dist/core/wallets.d.ts +4 -0
- package/dist/core/wallets.js +8 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +191 -4
- package/dist/react/TonConnectButton.d.ts +22 -0
- package/dist/react/TonConnectButton.js +105 -0
- package/dist/react/TonConnectUIProvider.d.ts +110 -0
- package/dist/react/TonConnectUIProvider.js +209 -0
- package/dist/react/index.d.ts +8 -0
- package/dist/react/index.js +15 -0
- package/dist/react/package.json +4 -0
- package/dist/types/index.d.ts +4 -2
- package/package.json +14 -1
- package/src/core/protocol.ts +22 -11
- package/src/core/wallets.ts +12 -0
- package/src/index.ts +229 -5
- package/src/react/TonConnectButton.tsx +107 -0
- package/src/react/TonConnectUIProvider.tsx +290 -0
- package/src/react/index.ts +24 -0
- package/src/types/index.ts +4 -4
package/src/types/index.ts
CHANGED
|
@@ -82,9 +82,9 @@ export interface ConnectionRequestPayload {
|
|
|
82
82
|
name: 'ton_addr';
|
|
83
83
|
}>;
|
|
84
84
|
/** Return strategy - how wallet should return to the app */
|
|
85
|
-
returnStrategy?: 'back' | 'none';
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
returnStrategy?: 'back' | 'post_redirect' | 'none';
|
|
86
|
+
/** Return scheme for mobile apps (required by many wallets for proper callback handling) */
|
|
87
|
+
returnScheme?: string;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
/**
|
|
@@ -143,7 +143,7 @@ export interface TransactionRequestPayload {
|
|
|
143
143
|
/** Return URL scheme (for mobile apps) */
|
|
144
144
|
returnScheme?: string;
|
|
145
145
|
/** Return strategy */
|
|
146
|
-
returnStrategy?: 'back' | 'none';
|
|
146
|
+
returnStrategy?: 'back' | 'post_redirect' | 'none';
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/**
|