@dynamic-labs/ton 4.67.1 → 4.67.3-device-registration.0
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/CHANGELOG.md +29 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/connectors/FallbackTonConnector/FallbackTonConnector.cjs +76 -0
- package/src/connectors/FallbackTonConnector/FallbackTonConnector.d.ts +17 -0
- package/src/connectors/FallbackTonConnector/FallbackTonConnector.js +72 -0
- package/src/connectors/FallbackTonConnector/index.d.ts +1 -0
- package/src/index.cjs +6 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.67.3-device-registration.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.2...v4.67.3-device-registration.0) (2026-03-19)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add device registration icons ([#10637](https://github.com/dynamic-labs/dynamic-auth/issues/10637)) ([01bfe15](https://github.com/dynamic-labs/dynamic-auth/commit/01bfe155722111f321d289629bed95e8b9e4344d))
|
|
8
|
+
* add DeviceRegistrationView ([#10638](https://github.com/dynamic-labs/dynamic-auth/issues/10638)) ([11ccbbc](https://github.com/dynamic-labs/dynamic-auth/commit/11ccbbcc5cfaeab9fbeb01c040225a731137b465))
|
|
9
|
+
* add Prompt MFA and Prompt Reauthenticate to Step Up Auth methods ([#10645](https://github.com/dynamic-labs/dynamic-auth/issues/10645)) ([c97d8ee](https://github.com/dynamic-labs/dynamic-auth/commit/c97d8ee27f48d376259a921b01d151b4cf7fa27b))
|
|
10
|
+
* add step-up auth for email and SMS credential updates ([#10676](https://github.com/dynamic-labs/dynamic-auth/issues/10676)) ([4c7f0a5](https://github.com/dynamic-labs/dynamic-auth/commit/4c7f0a5330e557aea4db85359f7ac10d3c7545a5))
|
|
11
|
+
* add step-up auth for wallet link and unlink ([#10678](https://github.com/dynamic-labs/dynamic-auth/issues/10678)) ([8a015ca](https://github.com/dynamic-labs/dynamic-auth/commit/8a015ca0fd0bda71559c21b811b7e6acb43a7909))
|
|
12
|
+
* add TrustedDevicesSection and ManageTrustedDevicesView ([#10639](https://github.com/dynamic-labs/dynamic-auth/issues/10639)) ([17df870](https://github.com/dynamic-labs/dynamic-auth/commit/17df870caa34a8428d65510e5b3c9e9c7b93cea2))
|
|
13
|
+
* add useSyncDeviceRegistrationFlow ([#10640](https://github.com/dynamic-labs/dynamic-auth/issues/10640)) ([8c7752d](https://github.com/dynamic-labs/dynamic-auth/commit/8c7752d7a8afedaa3cc99fad83091586f7b6107e))
|
|
14
|
+
* **sdk-react-core:** prompt step-up auth before export private key ([#10647](https://github.com/dynamic-labs/dynamic-auth/issues/10647)) ([a39d886](https://github.com/dynamic-labs/dynamic-auth/commit/a39d88643af83484aae09332adcd05df8c0f923c))
|
|
15
|
+
* **step-up:** reauth flow with signInCredentialId and choose-method UI ([#10644](https://github.com/dynamic-labs/dynamic-auth/issues/10644)) ([086a97f](https://github.com/dynamic-labs/dynamic-auth/commit/086a97f27d908780b17f49f8a85ce88c34f61ed8))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* close auth flow on re-login when user already has embedded wallets ([#10641](https://github.com/dynamic-labs/dynamic-auth/issues/10641)) ([1aab930](https://github.com/dynamic-labs/dynamic-auth/commit/1aab9307c904f79bc0534026547fc112c55f6dc9))
|
|
21
|
+
* remove WalletConnect QR code fallback for Solflare wallet ([#10627](https://github.com/dynamic-labs/dynamic-auth/issues/10627)) ([6d83ead](https://github.com/dynamic-labs/dynamic-auth/commit/6d83ead833f560ee3c22e12262300e58fe21caa1))
|
|
22
|
+
* sync logout state between SDKs ([#10646](https://github.com/dynamic-labs/dynamic-auth/issues/10646)) ([44d0183](https://github.com/dynamic-labs/dynamic-auth/commit/44d01831cc672c1c9f015dee4e4c54582fd9e36a))
|
|
23
|
+
|
|
24
|
+
### [4.67.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.1...v4.67.2) (2026-03-13)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* add fallback connectors for all chains and fix wallet.chain mismatch for SUI wallets ([#10629](https://github.com/dynamic-labs/dynamic-auth/issues/10629)) ([dcdf5fc](https://github.com/dynamic-labs/dynamic-auth/commit/dcdf5fc5c424379cde2eecfd2d3b14fb6fe3819b))
|
|
30
|
+
|
|
2
31
|
### [4.67.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.0...v4.67.1) (2026-03-10)
|
|
3
32
|
|
|
4
33
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ton",
|
|
3
|
-
"version": "4.67.
|
|
3
|
+
"version": "4.67.3-device-registration.0",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/assert-package-version": "4.67.
|
|
22
|
-
"@dynamic-labs/logger": "4.67.
|
|
23
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
24
|
-
"@dynamic-labs/types": "4.67.
|
|
25
|
-
"@dynamic-labs/utils": "4.67.
|
|
26
|
-
"@dynamic-labs/waas": "4.67.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.67.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.67.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "4.67.3-device-registration.0",
|
|
22
|
+
"@dynamic-labs/logger": "4.67.3-device-registration.0",
|
|
23
|
+
"@dynamic-labs/sdk-api-core": "0.0.907",
|
|
24
|
+
"@dynamic-labs/types": "4.67.3-device-registration.0",
|
|
25
|
+
"@dynamic-labs/utils": "4.67.3-device-registration.0",
|
|
26
|
+
"@dynamic-labs/waas": "4.67.3-device-registration.0",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.67.3-device-registration.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.67.3-device-registration.0",
|
|
29
29
|
"@ton/core": "0.62.0",
|
|
30
30
|
"@ton/crypto": "3.3.0",
|
|
31
31
|
"@ton/ton": "16.0.0",
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var _tslib = require('../../../_virtual/_tslib.cjs');
|
|
7
|
+
var TonWalletConnector = require('../../TonWalletConnector.cjs');
|
|
8
|
+
|
|
9
|
+
class FallbackTonConnector extends TonWalletConnector.TonWalletConnector {
|
|
10
|
+
constructor(opts) {
|
|
11
|
+
super(opts);
|
|
12
|
+
this.name = 'Fallback Connector';
|
|
13
|
+
this.overrideKey = 'fallbackconnector';
|
|
14
|
+
this.isAvailable = false;
|
|
15
|
+
}
|
|
16
|
+
isInstalledOnBrowser() {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
connect() {
|
|
20
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
return;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
getAddress() {
|
|
25
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
return;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30
|
+
signMessage(_message) {
|
|
31
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return '';
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
getConnectedAccounts() {
|
|
36
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
return [];
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
endSession() {
|
|
41
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
return;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
getBalance() {
|
|
46
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
return;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
sendTransaction(
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
|
+
_request) {
|
|
53
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
return '';
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
generateTonConnectProof(
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
59
|
+
_payload) {
|
|
60
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
return {
|
|
62
|
+
address: '',
|
|
63
|
+
domain: { lengthBytes: 0, value: '' },
|
|
64
|
+
payload: '',
|
|
65
|
+
signature: '',
|
|
66
|
+
timestamp: 0,
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
Object.defineProperty(FallbackTonConnector, 'key', {
|
|
72
|
+
value: 'fallbackconnector',
|
|
73
|
+
writable: false,
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
exports.FallbackTonConnector = FallbackTonConnector;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TonWalletConnector } from '../../TonWalletConnector';
|
|
2
|
+
import { SendTransactionRequest, TonConnectConnectorOpts, TonConnectProof } from '../../types';
|
|
3
|
+
export declare class FallbackTonConnector extends TonWalletConnector {
|
|
4
|
+
name: string;
|
|
5
|
+
overrideKey: string;
|
|
6
|
+
isAvailable: boolean;
|
|
7
|
+
constructor(opts: TonConnectConnectorOpts);
|
|
8
|
+
isInstalledOnBrowser(): boolean;
|
|
9
|
+
connect(): Promise<void>;
|
|
10
|
+
getAddress(): Promise<string | undefined>;
|
|
11
|
+
signMessage(_message: string): Promise<string>;
|
|
12
|
+
getConnectedAccounts(): Promise<string[]>;
|
|
13
|
+
endSession(): Promise<void>;
|
|
14
|
+
getBalance(): Promise<string | undefined>;
|
|
15
|
+
sendTransaction(_request: SendTransactionRequest): Promise<string>;
|
|
16
|
+
generateTonConnectProof(_payload: string): Promise<TonConnectProof>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { __awaiter } from '../../../_virtual/_tslib.js';
|
|
3
|
+
import { TonWalletConnector } from '../../TonWalletConnector.js';
|
|
4
|
+
|
|
5
|
+
class FallbackTonConnector extends TonWalletConnector {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super(opts);
|
|
8
|
+
this.name = 'Fallback Connector';
|
|
9
|
+
this.overrideKey = 'fallbackconnector';
|
|
10
|
+
this.isAvailable = false;
|
|
11
|
+
}
|
|
12
|
+
isInstalledOnBrowser() {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
connect() {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
return;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
getAddress() {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
26
|
+
signMessage(_message) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return '';
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
getConnectedAccounts() {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
return [];
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
endSession() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return;
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
getBalance() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
sendTransaction(
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
|
+
_request) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return '';
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
generateTonConnectProof(
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
|
+
_payload) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
return {
|
|
58
|
+
address: '',
|
|
59
|
+
domain: { lengthBytes: 0, value: '' },
|
|
60
|
+
payload: '',
|
|
61
|
+
signature: '',
|
|
62
|
+
timestamp: 0,
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
Object.defineProperty(FallbackTonConnector, 'key', {
|
|
68
|
+
value: 'fallbackconnector',
|
|
69
|
+
writable: false,
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export { FallbackTonConnector };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FallbackTonConnector } from './FallbackTonConnector';
|
package/src/index.cjs
CHANGED
|
@@ -7,6 +7,7 @@ var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
|
7
7
|
var _package = require('../package.cjs');
|
|
8
8
|
var fetchTonWalletConnectors = require('./utils/fetchTonWalletConnectors/fetchTonWalletConnectors.cjs');
|
|
9
9
|
var DynamicWaasTonConnectors = require('./waas/DynamicWaasTonConnectors.cjs');
|
|
10
|
+
var FallbackTonConnector = require('./connectors/FallbackTonConnector/FallbackTonConnector.cjs');
|
|
10
11
|
var TonWalletConnector = require('./TonWalletConnector.cjs');
|
|
11
12
|
var sdk = require('@tonconnect/sdk');
|
|
12
13
|
var TonWallet = require('./wallet/TonWallet/TonWallet.cjs');
|
|
@@ -28,7 +29,11 @@ require('@ton/ton');
|
|
|
28
29
|
var DynamicWaasTonConnector = require('./waas/connector/DynamicWaasTonConnector.cjs');
|
|
29
30
|
|
|
30
31
|
assertPackageVersion.assertPackageVersion('@dynamic-labs/ton', _package.version);
|
|
31
|
-
const TonWalletConnectors = (props) => [
|
|
32
|
+
const TonWalletConnectors = (props) => [
|
|
33
|
+
...fetchTonWalletConnectors.fetchTonWalletConnectors(props),
|
|
34
|
+
...DynamicWaasTonConnectors.DynamicWaasTonConnectors(),
|
|
35
|
+
FallbackTonConnector.FallbackTonConnector,
|
|
36
|
+
];
|
|
32
37
|
|
|
33
38
|
exports.DynamicWaasTonConnectors = DynamicWaasTonConnectors.DynamicWaasTonConnectors;
|
|
34
39
|
exports.TonWalletConnector = TonWalletConnector.TonWalletConnector;
|
package/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WalletBookSchema } from '@dynamic-labs/wallet-book';
|
|
2
2
|
import type { GenericNetwork } from '@dynamic-labs/types';
|
|
3
|
+
import { FallbackTonConnector } from './connectors/FallbackTonConnector';
|
|
3
4
|
export { TonWalletConnector } from './TonWalletConnector';
|
|
4
5
|
export * from './types';
|
|
5
6
|
export { TonWallet, isTonWallet, WaasTonWallet } from './wallet';
|
|
@@ -11,4 +12,4 @@ export { DynamicWaasTonConnectors } from './waas/DynamicWaasTonConnectors';
|
|
|
11
12
|
export declare const TonWalletConnectors: (props: {
|
|
12
13
|
walletBook: WalletBookSchema;
|
|
13
14
|
tonNetworks?: GenericNetwork[];
|
|
14
|
-
}) => import("dist/packages/wallet-connector-core/src").WalletConnectorConstructor[];
|
|
15
|
+
}) => (import("dist/packages/wallet-connector-core/src").WalletConnectorConstructor | typeof FallbackTonConnector)[];
|
package/src/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import { version } from '../package.js';
|
|
|
4
4
|
import { fetchTonWalletConnectors } from './utils/fetchTonWalletConnectors/fetchTonWalletConnectors.js';
|
|
5
5
|
import { DynamicWaasTonConnectors } from './waas/DynamicWaasTonConnectors.js';
|
|
6
6
|
export { DynamicWaasTonConnectors } from './waas/DynamicWaasTonConnectors.js';
|
|
7
|
+
import { FallbackTonConnector } from './connectors/FallbackTonConnector/FallbackTonConnector.js';
|
|
7
8
|
export { TonWalletConnector } from './TonWalletConnector.js';
|
|
8
9
|
export { CHAIN } from '@tonconnect/sdk';
|
|
9
10
|
export { TonWallet } from './wallet/TonWallet/TonWallet.js';
|
|
@@ -25,6 +26,10 @@ import '@ton/ton';
|
|
|
25
26
|
export { DynamicWaasTonConnector } from './waas/connector/DynamicWaasTonConnector.js';
|
|
26
27
|
|
|
27
28
|
assertPackageVersion('@dynamic-labs/ton', version);
|
|
28
|
-
const TonWalletConnectors = (props) => [
|
|
29
|
+
const TonWalletConnectors = (props) => [
|
|
30
|
+
...fetchTonWalletConnectors(props),
|
|
31
|
+
...DynamicWaasTonConnectors(),
|
|
32
|
+
FallbackTonConnector,
|
|
33
|
+
];
|
|
29
34
|
|
|
30
35
|
export { TonWalletConnectors };
|