@dynamic-labs/sdk-react-core 3.6.0 → 3.6.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/CHANGELOG.md +8 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +12 -12
- package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.cjs +4 -1
- package/src/lib/utils/hooks/useWalletConnectors/utils/smartWallet/smartWallet.js +4 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.cjs +6 -1
- package/src/lib/utils/hooks/useWalletUiUtils/useWalletUiUtils.js +6 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
### [3.6.1](https://github.com/dynamic-labs/DynamicAuth/compare/v3.6.0...v3.6.1) (2024-11-08)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* when confirmation ui disabled for solana signall and signTransaction, it was returning a string instead of a transaction ([#7404](https://github.com/dynamic-labs/DynamicAuth/issues/7404)) ([9c17d83](https://github.com/dynamic-labs/DynamicAuth/commit/9c17d83e808f576bd319892b9726e5692534b31d))
|
|
8
|
+
* solana sign transaction was throwing with destination not found for embedded wallets ([#7394](https://github.com/dynamic-labs/DynamicAuth/issues/7394)) ([5bc21cd](https://github.com/dynamic-labs/DynamicAuth/commit/5bc21cdc2aee3dd70fc455e54e586d695392702b))
|
|
9
|
+
|
|
2
10
|
## [3.6.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.5.1...v3.6.0) (2024-11-07)
|
|
3
11
|
|
|
4
12
|
|
package/package.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var version = "3.6.
|
|
6
|
+
var version = "3.6.1";
|
|
7
7
|
var dependencies = {
|
|
8
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
8
|
+
"@dynamic-labs/sdk-api-core": "0.0.563",
|
|
9
9
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
10
10
|
"country-list": "2.3.0",
|
|
11
11
|
formik: "2.2.9",
|
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
7
7
|
"directory": "packages/sdk-react-core"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
10
|
+
"@dynamic-labs/sdk-api-core": "0.0.563",
|
|
11
11
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
12
12
|
"country-list": "2.3.0",
|
|
13
13
|
"formik": "2.2.9",
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"react-i18next": "13.5.0",
|
|
18
18
|
"yup": "0.32.11",
|
|
19
19
|
"react-international-phone": "4.2.5",
|
|
20
|
-
"@dynamic-labs/assert-package-version": "3.6.
|
|
21
|
-
"@dynamic-labs/iconic": "3.6.
|
|
22
|
-
"@dynamic-labs/logger": "3.6.
|
|
23
|
-
"@dynamic-labs/multi-wallet": "3.6.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "3.6.
|
|
25
|
-
"@dynamic-labs/store": "3.6.
|
|
26
|
-
"@dynamic-labs/types": "3.6.
|
|
27
|
-
"@dynamic-labs/utils": "3.6.
|
|
28
|
-
"@dynamic-labs/wallet-book": "3.6.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "3.6.
|
|
20
|
+
"@dynamic-labs/assert-package-version": "3.6.1",
|
|
21
|
+
"@dynamic-labs/iconic": "3.6.1",
|
|
22
|
+
"@dynamic-labs/logger": "3.6.1",
|
|
23
|
+
"@dynamic-labs/multi-wallet": "3.6.1",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "3.6.1",
|
|
25
|
+
"@dynamic-labs/store": "3.6.1",
|
|
26
|
+
"@dynamic-labs/types": "3.6.1",
|
|
27
|
+
"@dynamic-labs/utils": "3.6.1",
|
|
28
|
+
"@dynamic-labs/wallet-book": "3.6.1",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "3.6.1",
|
|
30
30
|
"bs58": "5.0.0",
|
|
31
31
|
"eventemitter3": "5.0.1"
|
|
32
32
|
},
|
|
@@ -14,7 +14,7 @@ const findOwner = (account, verifiedCredentials) => verifiedCredentials.find((cr
|
|
|
14
14
|
const findSmartWallet = (account, verifiedCredentials) => verifiedCredentials.find((credential) => credential.signerRefId === account.id);
|
|
15
15
|
const isOwnerOfASmartWallet = (account, verifiedCredentials) => Boolean(findSmartWallet(account, verifiedCredentials));
|
|
16
16
|
const initializeSmartWallet = (_a) => _tslib.__awaiter(void 0, [_a], void 0, function* ({ account, verifiedCredentials, walletConnectorOptions, primaryWalletId, }) {
|
|
17
|
-
var _b, _c;
|
|
17
|
+
var _b, _c, _d, _e, _f;
|
|
18
18
|
const owner = findOwner(account, verifiedCredentials);
|
|
19
19
|
if (!owner) {
|
|
20
20
|
throw new Error('could not find associated eoa account for smart wallet');
|
|
@@ -50,8 +50,11 @@ const initializeSmartWallet = (_a) => _tslib.__awaiter(void 0, [_a], void 0, fun
|
|
|
50
50
|
}
|
|
51
51
|
const shouldSetEoaConnector = primaryWalletId === owner.id || primaryWalletId === account.id;
|
|
52
52
|
yield connector.registerEoa({
|
|
53
|
+
ecdsaProviderType: (_d = account.walletProperties) === null || _d === void 0 ? void 0 : _d.ecdsaProviderType,
|
|
54
|
+
entryPointVersion: (_e = account.walletProperties) === null || _e === void 0 ? void 0 : _e.entryPointVersion,
|
|
53
55
|
eoaAddress: owner.address,
|
|
54
56
|
eoaConnector: ownerWallet.walletConnector,
|
|
57
|
+
kernelVersion: (_f = account.walletProperties) === null || _f === void 0 ? void 0 : _f.kernelVersion,
|
|
55
58
|
shouldSetEoaConnector,
|
|
56
59
|
smartWalletAddress: account.address,
|
|
57
60
|
});
|
|
@@ -10,7 +10,7 @@ const findOwner = (account, verifiedCredentials) => verifiedCredentials.find((cr
|
|
|
10
10
|
const findSmartWallet = (account, verifiedCredentials) => verifiedCredentials.find((credential) => credential.signerRefId === account.id);
|
|
11
11
|
const isOwnerOfASmartWallet = (account, verifiedCredentials) => Boolean(findSmartWallet(account, verifiedCredentials));
|
|
12
12
|
const initializeSmartWallet = (_a) => __awaiter(void 0, [_a], void 0, function* ({ account, verifiedCredentials, walletConnectorOptions, primaryWalletId, }) {
|
|
13
|
-
var _b, _c;
|
|
13
|
+
var _b, _c, _d, _e, _f;
|
|
14
14
|
const owner = findOwner(account, verifiedCredentials);
|
|
15
15
|
if (!owner) {
|
|
16
16
|
throw new Error('could not find associated eoa account for smart wallet');
|
|
@@ -46,8 +46,11 @@ const initializeSmartWallet = (_a) => __awaiter(void 0, [_a], void 0, function*
|
|
|
46
46
|
}
|
|
47
47
|
const shouldSetEoaConnector = primaryWalletId === owner.id || primaryWalletId === account.id;
|
|
48
48
|
yield connector.registerEoa({
|
|
49
|
+
ecdsaProviderType: (_d = account.walletProperties) === null || _d === void 0 ? void 0 : _d.ecdsaProviderType,
|
|
50
|
+
entryPointVersion: (_e = account.walletProperties) === null || _e === void 0 ? void 0 : _e.entryPointVersion,
|
|
49
51
|
eoaAddress: owner.address,
|
|
50
52
|
eoaConnector: ownerWallet.walletConnector,
|
|
53
|
+
kernelVersion: (_f = account.walletProperties) === null || _f === void 0 ? void 0 : _f.kernelVersion,
|
|
51
54
|
shouldSetEoaConnector,
|
|
52
55
|
smartWalletAddress: account.address,
|
|
53
56
|
});
|
|
@@ -152,7 +152,12 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
|
|
|
152
152
|
if (!shouldConfirmAction())
|
|
153
153
|
return transaction.submit();
|
|
154
154
|
return openSendTransaction((resolve, reject) => (jsxRuntime.jsx(TransactionConfirmationModal.TransactionConfirmationModal, { copykey: 'dyn_send_transaction.confirmation.title', title: t('dyn_send_transaction.confirmation.title'), transaction: transaction, onTransactionResponseSuccess: resolve, onReject: reject, walletConnector: walletConnector, hideModal: hideEmbeddedWalletTransactionUIs &&
|
|
155
|
-
!(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.isGlobalTransaction) }))).then((signedTransaction) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
155
|
+
!(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.isGlobalTransaction) }))).then((signedTransaction) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
156
|
+
if (signedTransaction === 'callHandlerOutsideModal')
|
|
157
|
+
return transaction.submit();
|
|
158
|
+
else
|
|
159
|
+
return signedTransaction;
|
|
160
|
+
}));
|
|
156
161
|
}), [
|
|
157
162
|
hideEmbeddedWalletTransactionUIs,
|
|
158
163
|
openSendTransaction,
|
|
@@ -148,7 +148,12 @@ const useWalletUiUtils = ({ appLogoUrl, appName, hideEmbeddedWalletTransactionUI
|
|
|
148
148
|
if (!shouldConfirmAction())
|
|
149
149
|
return transaction.submit();
|
|
150
150
|
return openSendTransaction((resolve, reject) => (jsx(TransactionConfirmationModal, { copykey: 'dyn_send_transaction.confirmation.title', title: t('dyn_send_transaction.confirmation.title'), transaction: transaction, onTransactionResponseSuccess: resolve, onReject: reject, walletConnector: walletConnector, hideModal: hideEmbeddedWalletTransactionUIs &&
|
|
151
|
-
!(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.isGlobalTransaction) }))).then((signedTransaction) => __awaiter(void 0, void 0, void 0, function* () {
|
|
151
|
+
!(walletConnector === null || walletConnector === void 0 ? void 0 : walletConnector.isGlobalTransaction) }))).then((signedTransaction) => __awaiter(void 0, void 0, void 0, function* () {
|
|
152
|
+
if (signedTransaction === 'callHandlerOutsideModal')
|
|
153
|
+
return transaction.submit();
|
|
154
|
+
else
|
|
155
|
+
return signedTransaction;
|
|
156
|
+
}));
|
|
152
157
|
}), [
|
|
153
158
|
hideEmbeddedWalletTransactionUIs,
|
|
154
159
|
openSendTransaction,
|
|
@@ -117,7 +117,7 @@ const TransactionConfirmationView = ({ transaction, onError, onSuccess, mutation
|
|
|
117
117
|
useEffectOnce.useEffectOnce(() => {
|
|
118
118
|
const fetchSimulationResult = () => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
119
119
|
var _a, _b;
|
|
120
|
-
if (sendBalanceTransaction) {
|
|
120
|
+
if (sendBalanceTransaction || hideModal) {
|
|
121
121
|
setIsSimulationComplete(true);
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
@@ -109,7 +109,7 @@ const TransactionConfirmationView = ({ transaction, onError, onSuccess, mutation
|
|
|
109
109
|
useEffectOnce(() => {
|
|
110
110
|
const fetchSimulationResult = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
111
111
|
var _a, _b;
|
|
112
|
-
if (sendBalanceTransaction) {
|
|
112
|
+
if (sendBalanceTransaction || hideModal) {
|
|
113
113
|
setIsSimulationComplete(true);
|
|
114
114
|
return;
|
|
115
115
|
}
|