@dynamic-labs/sdk-react-core 4.0.0-alpha.17 → 4.0.0-alpha.19
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 +14 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +12 -12
- package/src/lib/components/WalletConnectorEvents/WalletConnectorEvents.cjs +4 -2
- package/src/lib/components/WalletConnectorEvents/WalletConnectorEvents.js +4 -2
- package/src/lib/locale/en/translation.cjs +7 -4
- package/src/lib/locale/en/translation.d.ts +4 -1
- package/src/lib/locale/en/translation.js +7 -4
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.cjs +6 -11
- package/src/lib/utils/hooks/useConnectWallet/useConnectWallet.js +6 -11
- package/src/lib/utils/hooks/useDebounce/index.d.ts +1 -0
- package/src/lib/utils/hooks/useDebounce/useDebounce.cjs +22 -0
- package/src/lib/utils/hooks/useDebounce/useDebounce.d.ts +1 -0
- package/src/lib/utils/hooks/useDebounce/useDebounce.js +18 -0
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.cjs +5 -2
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.d.ts +1 -1
- package/src/lib/utils/hooks/useEmbeddedReveal/useEmbeddedReveal.js +5 -2
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.cjs +2 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.d.ts +1 -0
- package/src/lib/utils/hooks/useEmbeddedWallet/useEmbeddedWallet.js +2 -0
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.cjs +58 -16
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.d.ts +4 -1
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.js +59 -17
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.cjs +5 -4
- package/src/lib/utils/hooks/useUserAuth/useUserAuth.js +5 -4
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.cjs +23 -10
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.d.ts +1 -0
- package/src/lib/views/EmbeddedReveal/EmbeddedRevealView/EmbeddedRevealView.js +23 -10
- package/src/lib/views/MobileWalletRedirectView/MobileWalletRedirectView.cjs +6 -7
- package/src/lib/views/MobileWalletRedirectView/MobileWalletRedirectView.js +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.19](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.18...v4.0.0-alpha.19) (2024-10-29)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* ensure the client js will emit a change event after the value update ([#7284](https://github.com/dynamic-labs/dynamic-auth/issues/7284)) ([930d2e9](https://github.com/dynamic-labs/dynamic-auth/commit/930d2e9fdc75fd4a38da8ef6efc9d3e29152285b))
|
|
8
|
+
|
|
9
|
+
## [4.0.0-alpha.18](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.17...v4.0.0-alpha.18) (2024-10-29)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **web-extension:** add color scheme style to prevent broken style ([#7247](https://github.com/dynamic-labs/dynamic-auth/issues/7247)) ([c525c50](https://github.com/dynamic-labs/dynamic-auth/commit/c525c50ac02997f3baf220fd2e67c6c4b3d10903))
|
|
15
|
+
|
|
2
16
|
## [4.0.0-alpha.17](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.16...v4.0.0-alpha.17) (2024-10-28)
|
|
3
17
|
|
|
4
18
|
|
package/package.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var version = "4.0.0-alpha.
|
|
6
|
+
var version = "4.0.0-alpha.19";
|
|
7
7
|
var dependencies = {
|
|
8
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
8
|
+
"@dynamic-labs/sdk-api-core": "0.0.559",
|
|
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
var version = "4.0.0-alpha.
|
|
2
|
+
var version = "4.0.0-alpha.19";
|
|
3
3
|
var dependencies = {
|
|
4
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
4
|
+
"@dynamic-labs/sdk-api-core": "0.0.559",
|
|
5
5
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
6
6
|
"country-list": "2.3.0",
|
|
7
7
|
formik: "2.2.9",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.19",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
5
|
+
"@dynamic-labs/sdk-api-core": "0.0.559",
|
|
6
6
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
7
7
|
"country-list": "2.3.0",
|
|
8
8
|
"formik": "2.2.9",
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
"react-i18next": "13.5.0",
|
|
13
13
|
"yup": "0.32.11",
|
|
14
14
|
"react-international-phone": "4.2.5",
|
|
15
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
16
|
-
"@dynamic-labs/iconic": "4.0.0-alpha.
|
|
17
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
18
|
-
"@dynamic-labs/multi-wallet": "4.0.0-alpha.
|
|
19
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
20
|
-
"@dynamic-labs/store": "4.0.0-alpha.
|
|
21
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
22
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
23
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
24
|
-
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.
|
|
15
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.19",
|
|
16
|
+
"@dynamic-labs/iconic": "4.0.0-alpha.19",
|
|
17
|
+
"@dynamic-labs/logger": "4.0.0-alpha.19",
|
|
18
|
+
"@dynamic-labs/multi-wallet": "4.0.0-alpha.19",
|
|
19
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.19",
|
|
20
|
+
"@dynamic-labs/store": "4.0.0-alpha.19",
|
|
21
|
+
"@dynamic-labs/types": "4.0.0-alpha.19",
|
|
22
|
+
"@dynamic-labs/utils": "4.0.0-alpha.19",
|
|
23
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.19",
|
|
24
|
+
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.19",
|
|
25
25
|
"eventemitter3": "5.0.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -89,7 +89,9 @@ const WalletConnectorEvents = () => {
|
|
|
89
89
|
// add listener for providerReady event
|
|
90
90
|
React.useEffect(() => {
|
|
91
91
|
const handleProviderReady = ({ connector, }) => {
|
|
92
|
-
logger.logger.debug('[WalletConnectorEvents] handleProviderReady
|
|
92
|
+
logger.logger.debug('[WalletConnectorEvents] handleProviderReady', {
|
|
93
|
+
connector,
|
|
94
|
+
});
|
|
93
95
|
const updatedConnectors = walletConnectorOptions$1.map((walletOption) => {
|
|
94
96
|
if (walletOption.key === connector.key) {
|
|
95
97
|
return Object.assign(Object.assign({}, walletOption), { isInstalledOnBrowser: connector.isInstalledOnBrowser(), walletConnector: connector });
|
|
@@ -106,7 +108,7 @@ const WalletConnectorEvents = () => {
|
|
|
106
108
|
// add listener for autoConnect event
|
|
107
109
|
React.useEffect(() => {
|
|
108
110
|
const handleAutoConnect = ({ connector, }) => {
|
|
109
|
-
logger.logger.debug('[
|
|
111
|
+
logger.logger.debug('[WalletConnectorEvents] handleAutoConnect', { connector });
|
|
110
112
|
const walletOption = walletConnectorOptions$1.find((wallet) => wallet.walletConnector.key === connector.key);
|
|
111
113
|
if (!walletOption)
|
|
112
114
|
return;
|
|
@@ -85,7 +85,9 @@ const WalletConnectorEvents = () => {
|
|
|
85
85
|
// add listener for providerReady event
|
|
86
86
|
useEffect(() => {
|
|
87
87
|
const handleProviderReady = ({ connector, }) => {
|
|
88
|
-
logger.debug('[WalletConnectorEvents] handleProviderReady
|
|
88
|
+
logger.debug('[WalletConnectorEvents] handleProviderReady', {
|
|
89
|
+
connector,
|
|
90
|
+
});
|
|
89
91
|
const updatedConnectors = walletConnectorOptions.map((walletOption) => {
|
|
90
92
|
if (walletOption.key === connector.key) {
|
|
91
93
|
return Object.assign(Object.assign({}, walletOption), { isInstalledOnBrowser: connector.isInstalledOnBrowser(), walletConnector: connector });
|
|
@@ -102,7 +104,7 @@ const WalletConnectorEvents = () => {
|
|
|
102
104
|
// add listener for autoConnect event
|
|
103
105
|
useEffect(() => {
|
|
104
106
|
const handleAutoConnect = ({ connector, }) => {
|
|
105
|
-
logger.debug('[
|
|
107
|
+
logger.debug('[WalletConnectorEvents] handleAutoConnect', { connector });
|
|
106
108
|
const walletOption = walletConnectorOptions.find((wallet) => wallet.walletConnector.key === connector.key);
|
|
107
109
|
if (!walletOption)
|
|
108
110
|
return;
|
|
@@ -839,20 +839,23 @@ const translation = {
|
|
|
839
839
|
dyn_embedded_reveal: {
|
|
840
840
|
title: 'Export wallet',
|
|
841
841
|
agreement_title: 'Agree to continue',
|
|
842
|
+
prompt_for_export_title: 'Back up wallet key',
|
|
842
843
|
private_key_title: 'Private key',
|
|
843
844
|
recovery_phrase_title: 'Secret recovery phrase',
|
|
844
845
|
badge_label: 'Sensitive information',
|
|
846
|
+
prompt_for_export_description: 'Your wallet is ready. Back up your key to protect your assets.',
|
|
845
847
|
statement_1: {
|
|
846
|
-
title: '
|
|
847
|
-
description: '
|
|
848
|
+
title: 'Non-custodial wallet',
|
|
849
|
+
description: "You're always in control",
|
|
848
850
|
},
|
|
849
851
|
statement_2: {
|
|
850
|
-
title: '
|
|
851
|
-
description: 'Your {{credential_type}} controls your account and assets.',
|
|
852
|
+
title: 'Keep your key private. It controls your account and assets.',
|
|
852
853
|
},
|
|
853
854
|
checkbox_label: 'I am responsible for safeguarding and using my wallet key information.',
|
|
854
855
|
reveal_description: 'Make sure to safely back up this information',
|
|
856
|
+
skip_button_label: 'Skip for now',
|
|
855
857
|
reveal_button_label: 'Reveal',
|
|
858
|
+
backup_button_label: 'Back up now',
|
|
856
859
|
copy_button_label: 'Copy to clipboard',
|
|
857
860
|
done_button_label: "I'm Done",
|
|
858
861
|
aa_warning: {
|
|
@@ -833,20 +833,23 @@ export declare const translation: {
|
|
|
833
833
|
dyn_embedded_reveal: {
|
|
834
834
|
title: string;
|
|
835
835
|
agreement_title: string;
|
|
836
|
+
prompt_for_export_title: string;
|
|
836
837
|
private_key_title: string;
|
|
837
838
|
recovery_phrase_title: string;
|
|
838
839
|
badge_label: string;
|
|
840
|
+
prompt_for_export_description: string;
|
|
839
841
|
statement_1: {
|
|
840
842
|
title: string;
|
|
841
843
|
description: string;
|
|
842
844
|
};
|
|
843
845
|
statement_2: {
|
|
844
846
|
title: string;
|
|
845
|
-
description: string;
|
|
846
847
|
};
|
|
847
848
|
checkbox_label: string;
|
|
848
849
|
reveal_description: string;
|
|
850
|
+
skip_button_label: string;
|
|
849
851
|
reveal_button_label: string;
|
|
852
|
+
backup_button_label: string;
|
|
850
853
|
copy_button_label: string;
|
|
851
854
|
done_button_label: string;
|
|
852
855
|
aa_warning: {
|
|
@@ -835,20 +835,23 @@ const translation = {
|
|
|
835
835
|
dyn_embedded_reveal: {
|
|
836
836
|
title: 'Export wallet',
|
|
837
837
|
agreement_title: 'Agree to continue',
|
|
838
|
+
prompt_for_export_title: 'Back up wallet key',
|
|
838
839
|
private_key_title: 'Private key',
|
|
839
840
|
recovery_phrase_title: 'Secret recovery phrase',
|
|
840
841
|
badge_label: 'Sensitive information',
|
|
842
|
+
prompt_for_export_description: 'Your wallet is ready. Back up your key to protect your assets.',
|
|
841
843
|
statement_1: {
|
|
842
|
-
title: '
|
|
843
|
-
description: '
|
|
844
|
+
title: 'Non-custodial wallet',
|
|
845
|
+
description: "You're always in control",
|
|
844
846
|
},
|
|
845
847
|
statement_2: {
|
|
846
|
-
title: '
|
|
847
|
-
description: 'Your {{credential_type}} controls your account and assets.',
|
|
848
|
+
title: 'Keep your key private. It controls your account and assets.',
|
|
848
849
|
},
|
|
849
850
|
checkbox_label: 'I am responsible for safeguarding and using my wallet key information.',
|
|
850
851
|
reveal_description: 'Make sure to safely back up this information',
|
|
852
|
+
skip_button_label: 'Skip for now',
|
|
851
853
|
reveal_button_label: 'Reveal',
|
|
854
|
+
backup_button_label: 'Back up now',
|
|
852
855
|
copy_button_label: 'Copy to clipboard',
|
|
853
856
|
done_button_label: "I'm Done",
|
|
854
857
|
aa_warning: {
|