@dynamic-labs/sdk-react-core 4.17.0 → 4.18.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 +12 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.cjs +2 -2
- package/src/lib/components/InlineSubmitButton/InlineSubmitButton.js +2 -2
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.cjs +0 -1
- package/src/lib/context/DynamicContext/hooks/useHandleLogout/useHandleLogout.js +1 -2
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/localStorage.cjs +0 -2
- package/src/lib/utils/constants/localStorage.d.ts +0 -1
- package/src/lib/utils/constants/localStorage.js +1 -2
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +17 -16
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +18 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.18.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.17.0...v4.18.0) (2025-05-07)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* 7702 authorization now happens on the first transaction and could use sponsored user operation if paymaster provided (IMPORTANT: viem need to be upgraded to at least 2.28.4)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* inline email submit button color when active ([#8663](https://github.com/dynamic-labs/dynamic-auth/issues/8663)) ([ea556e9](https://github.com/dynamic-labs/dynamic-auth/commit/ea556e9116e876fb2180870e74b6c8c6a13faecb))
|
|
13
|
+
|
|
2
14
|
## [4.17.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.16.0...v4.17.0) (2025-05-06)
|
|
3
15
|
|
|
4
16
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.18.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@dynamic-labs/sdk-api-core": "0.0.660",
|
|
6
6
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"yup": "0.32.11",
|
|
15
15
|
"react-international-phone": "4.2.5",
|
|
16
16
|
"bs58": "5.0.0",
|
|
17
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
18
|
-
"@dynamic-labs/iconic": "4.
|
|
19
|
-
"@dynamic-labs/logger": "4.
|
|
20
|
-
"@dynamic-labs/multi-wallet": "4.
|
|
21
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
22
|
-
"@dynamic-labs/store": "4.
|
|
23
|
-
"@dynamic-labs/types": "4.
|
|
24
|
-
"@dynamic-labs/utils": "4.
|
|
25
|
-
"@dynamic-labs/wallet-book": "4.
|
|
26
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
17
|
+
"@dynamic-labs/assert-package-version": "4.18.0",
|
|
18
|
+
"@dynamic-labs/iconic": "4.18.0",
|
|
19
|
+
"@dynamic-labs/logger": "4.18.0",
|
|
20
|
+
"@dynamic-labs/multi-wallet": "4.18.0",
|
|
21
|
+
"@dynamic-labs/rpc-providers": "4.18.0",
|
|
22
|
+
"@dynamic-labs/store": "4.18.0",
|
|
23
|
+
"@dynamic-labs/types": "4.18.0",
|
|
24
|
+
"@dynamic-labs/utils": "4.18.0",
|
|
25
|
+
"@dynamic-labs/wallet-book": "4.18.0",
|
|
26
|
+
"@dynamic-labs/wallet-connector-core": "4.18.0",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -15,8 +15,8 @@ const InlineSubmitButton = ({ disabled, highlighted, isFocused, isHovered, class
|
|
|
15
15
|
if (!emailSubmitButtonInsideInput)
|
|
16
16
|
return null;
|
|
17
17
|
return (jsxRuntime.jsx(IconButton.IconButton, { "data-testid": 'in_line_submit_button', type: 'submit', className: classNames.classNames('inline-submit-button', className, {
|
|
18
|
-
'
|
|
19
|
-
'
|
|
18
|
+
'icon-button--active': isFocused || isHovered,
|
|
19
|
+
'icon-button--has-content': highlighted,
|
|
20
20
|
}), disabled: disabled, style: style, children: jsxRuntime.jsx(arrowRightBackground.ReactComponent, {}) }));
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -11,8 +11,8 @@ const InlineSubmitButton = ({ disabled, highlighted, isFocused, isHovered, class
|
|
|
11
11
|
if (!emailSubmitButtonInsideInput)
|
|
12
12
|
return null;
|
|
13
13
|
return (jsx(IconButton, { "data-testid": 'in_line_submit_button', type: 'submit', className: classNames('inline-submit-button', className, {
|
|
14
|
-
'
|
|
15
|
-
'
|
|
14
|
+
'icon-button--active': isFocused || isHovered,
|
|
15
|
+
'icon-button--has-content': highlighted,
|
|
16
16
|
}), disabled: disabled, style: style, children: jsx(SvgArrowRightBackground, {}) }));
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -131,7 +131,6 @@ const useHandleLogout = (params) => {
|
|
|
131
131
|
utils.StorageService.removeItem(localStorage.WALLET_PICKER_SEARCH_KEY);
|
|
132
132
|
utils.StorageService.removeItem(localStorage.PHANTOM_SIGNATURE_STATE);
|
|
133
133
|
utils.StorageService.removeItem(localStorage.AUTH_EXPIRES_AT);
|
|
134
|
-
utils.StorageService.removeItem(localStorage.ZERODEV_AUTHORIZATION);
|
|
135
134
|
p.setAuthMode(p.initialAuthenticationMode);
|
|
136
135
|
p.setShowAuthFlow(false, {
|
|
137
136
|
emitCancelAuth: false,
|
|
@@ -8,7 +8,7 @@ import '../../../../store/state/projectSettings/projectSettings.js';
|
|
|
8
8
|
import { DYNAMIC_AUTH_COOKIE_NAME } from '../../../../utils/constants/values.js';
|
|
9
9
|
import '@dynamic-labs/multi-wallet';
|
|
10
10
|
import { logger } from '../../../../shared/logger.js';
|
|
11
|
-
import { AUTH_TOKEN, AUTH_MIN_TOKEN, WALLET_PICKER_SEARCH_KEY, PHANTOM_SIGNATURE_STATE, AUTH_EXPIRES_AT
|
|
11
|
+
import { AUTH_TOKEN, AUTH_MIN_TOKEN, WALLET_PICKER_SEARCH_KEY, PHANTOM_SIGNATURE_STATE, AUTH_EXPIRES_AT } from '../../../../utils/constants/localStorage.js';
|
|
12
12
|
import '../../../../utils/constants/colors.js';
|
|
13
13
|
import 'react-international-phone';
|
|
14
14
|
import '@dynamic-labs/iconic';
|
|
@@ -127,7 +127,6 @@ const useHandleLogout = (params) => {
|
|
|
127
127
|
StorageService.removeItem(WALLET_PICKER_SEARCH_KEY);
|
|
128
128
|
StorageService.removeItem(PHANTOM_SIGNATURE_STATE);
|
|
129
129
|
StorageService.removeItem(AUTH_EXPIRES_AT);
|
|
130
|
-
StorageService.removeItem(ZERODEV_AUTHORIZATION);
|
|
131
130
|
p.setAuthMode(p.initialAuthenticationMode);
|
|
132
131
|
p.setShowAuthFlow(false, {
|
|
133
132
|
emitCancelAuth: false,
|