@dynamic-labs/sdk-react-core 4.19.3 → 4.19.5
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 +9 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/lib/context/DynamicContext/DynamicContext.cjs +3 -1
- package/src/lib/context/DynamicContext/DynamicContext.js +3 -1
- package/src/lib/context/DynamicContext/types/DynamicContextProps.d.ts +6 -0
- package/src/lib/locale/en/translation.cjs +33 -2
- package/src/lib/locale/en/translation.d.ts +32 -1
- package/src/lib/locale/en/translation.js +33 -2
- package/src/lib/store/state/dynamicContextProps/defaultDynamicSettings.cjs +1 -0
- package/src/lib/store/state/dynamicContextProps/defaultDynamicSettings.d.ts +1 -0
- package/src/lib/store/state/dynamicContextProps/defaultDynamicSettings.js +1 -0
- package/src/lib/store/utils/settingsUtils/settingsUtils.d.ts +1 -1
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/functions/getSessionInformation/getSessionInformation.cjs +34 -0
- package/src/lib/utils/functions/getSessionInformation/getSessionInformation.d.ts +11 -0
- package/src/lib/utils/functions/getSessionInformation/getSessionInformation.js +26 -0
- package/src/lib/utils/functions/getSessionInformation/index.d.ts +1 -0
- package/src/lib/views/SessionKeyApprovalView/SessionKeyApprovalView.d.ts +8 -0
- package/src/lib/views/SessionKeyApprovalView/index.d.ts +1 -0
- package/src/lib/views/SessionPermissionsView/SessionPermissionsView.cjs +7 -12
- package/src/lib/views/SessionPermissionsView/SessionPermissionsView.js +7 -12
- package/src/lib/widgets/DynamicWidget/views/SessionManagementView/EmptySessionsView/EmptySessionsView.cjs +4 -2
- package/src/lib/widgets/DynamicWidget/views/SessionManagementView/EmptySessionsView/EmptySessionsView.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/views/SessionManagementView/EmptySessionsView/EmptySessionsView.js +4 -2
- package/src/lib/widgets/DynamicWidget/views/SessionManagementView/RevokeAccessView/RevokeAccessView.cjs +12 -8
- package/src/lib/widgets/DynamicWidget/views/SessionManagementView/RevokeAccessView/RevokeAccessView.js +12 -8
- package/src/lib/widgets/DynamicWidget/views/SessionManagementView/SessionListItem/SessionListItem.cjs +97 -6
- package/src/lib/widgets/DynamicWidget/views/SessionManagementView/SessionListItem/SessionListItem.js +97 -6
- package/src/lib/widgets/DynamicWidget/views/SessionManagementView/SessionManagementView.cjs +6 -2
- package/src/lib/widgets/DynamicWidget/views/SessionManagementView/SessionManagementView.js +6 -2
- package/src/lib/utils/functions/getSessionInformationName/getSessionInformationName.cjs +0 -10
- package/src/lib/utils/functions/getSessionInformationName/getSessionInformationName.d.ts +0 -2
- package/src/lib/utils/functions/getSessionInformationName/getSessionInformationName.js +0 -6
- package/src/lib/utils/functions/getSessionInformationName/index.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.19.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.4...v4.19.5) (2025-06-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add cleanup for waas connectors ([#8849](https://github.com/dynamic-labs/dynamic-auth/issues/8849)) ([5899169](https://github.com/dynamic-labs/dynamic-auth/commit/5899169abaf7ce86add2b1393cfd9b967da5e388))
|
|
8
|
+
|
|
9
|
+
### [4.19.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.3...v4.19.4) (2025-05-31)
|
|
10
|
+
|
|
2
11
|
### [4.19.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.19.2...v4.19.3) (2025-05-28)
|
|
3
12
|
|
|
4
13
|
|
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.19.
|
|
3
|
+
"version": "4.19.5",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@dynamic-labs/sdk-api-core": "0.0.672",
|
|
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.19.
|
|
18
|
-
"@dynamic-labs/iconic": "4.19.
|
|
19
|
-
"@dynamic-labs/logger": "4.19.
|
|
20
|
-
"@dynamic-labs/multi-wallet": "4.19.
|
|
21
|
-
"@dynamic-labs/rpc-providers": "4.19.
|
|
22
|
-
"@dynamic-labs/store": "4.19.
|
|
23
|
-
"@dynamic-labs/types": "4.19.
|
|
24
|
-
"@dynamic-labs/utils": "4.19.
|
|
25
|
-
"@dynamic-labs/wallet-book": "4.19.
|
|
26
|
-
"@dynamic-labs/wallet-connector-core": "4.19.
|
|
17
|
+
"@dynamic-labs/assert-package-version": "4.19.5",
|
|
18
|
+
"@dynamic-labs/iconic": "4.19.5",
|
|
19
|
+
"@dynamic-labs/logger": "4.19.5",
|
|
20
|
+
"@dynamic-labs/multi-wallet": "4.19.5",
|
|
21
|
+
"@dynamic-labs/rpc-providers": "4.19.5",
|
|
22
|
+
"@dynamic-labs/store": "4.19.5",
|
|
23
|
+
"@dynamic-labs/types": "4.19.5",
|
|
24
|
+
"@dynamic-labs/utils": "4.19.5",
|
|
25
|
+
"@dynamic-labs/wallet-book": "4.19.5",
|
|
26
|
+
"@dynamic-labs/wallet-connector-core": "4.19.5",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -166,7 +166,7 @@ const DynamicContext = React.createContext(undefined);
|
|
|
166
166
|
const InnerDynamicContextProvider = (props) => {
|
|
167
167
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
168
168
|
const { children, theme, settings: settings$1, locale: locale$1, enableInstrumentation = false, } = props;
|
|
169
|
-
const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, defaultPhoneInputIso2, apiBaseUrl, coinbaseWalletPreference, detectNewWalletsForLinking = defaultDynamicSettings.defaultDynamicSettings.detectNewWalletsForLinking, enableConnectOnlyFallback = defaultDynamicSettings.defaultDynamicSettings.enableConnectOnlyFallback, deepLinkPreference: deepLinkPreferenceProp = defaultDynamicSettings.defaultDynamicSettings.deepLinkPreference, bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = values.DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = defaultDynamicSettings.defaultDynamicSettings.initialAuthenticationMode, debugError = defaultDynamicSettings.defaultDynamicSettings.debugError, displaySiweStatement = defaultDynamicSettings.defaultDynamicSettings.displaySiweStatement, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = defaultDynamicSettings.defaultDynamicSettings.enableVisitTrackingOnConnectOnly, environmentId, walletsFilter, logLevel = defaultDynamicSettings.defaultDynamicSettings.logLevel, mobileExperience, notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, siweStatement, shadowDOMEnabled = defaultDynamicSettings.defaultDynamicSettings.shadowDOMEnabled, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = defaultDynamicSettings.defaultDynamicSettings.showLockedWalletView, walletConnectPreferredChains, walletConnectorExtensions, recommendedWallets, handlers, suppressEndUserConsoleWarning, transactionConfirmation: transactionConfirmationSettings, } = settings$1;
|
|
169
|
+
const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, defaultPhoneInputIso2, apiBaseUrl, coinbaseWalletPreference, detectNewWalletsForLinking = defaultDynamicSettings.defaultDynamicSettings.detectNewWalletsForLinking, enableConnectOnlyFallback = defaultDynamicSettings.defaultDynamicSettings.enableConnectOnlyFallback, deepLinkPreference: deepLinkPreferenceProp = defaultDynamicSettings.defaultDynamicSettings.deepLinkPreference, bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = values.DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = defaultDynamicSettings.defaultDynamicSettings.initialAuthenticationMode, debugError = defaultDynamicSettings.defaultDynamicSettings.debugError, displaySiweStatement = defaultDynamicSettings.defaultDynamicSettings.displaySiweStatement, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = defaultDynamicSettings.defaultDynamicSettings.enableVisitTrackingOnConnectOnly, environmentId, walletsFilter, logLevel = defaultDynamicSettings.defaultDynamicSettings.logLevel, mobileExperience, notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, siweStatement, shadowDOMEnabled = defaultDynamicSettings.defaultDynamicSettings.shadowDOMEnabled, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = defaultDynamicSettings.defaultDynamicSettings.showLockedWalletView, walletConnectPreferredChains, walletConnectorExtensions, recommendedWallets, handlers, suppressEndUserConsoleWarning, transactionConfirmation: transactionConfirmationSettings, useMetamaskSdk = defaultDynamicSettings.defaultDynamicSettings.useMetamaskSdk, } = settings$1;
|
|
170
170
|
let { appLogoUrl = defaultDynamicSettings.defaultDynamicSettings.appLogoUrl, appName = defaultDynamicSettings.defaultDynamicSettings.appName, } = settings$1;
|
|
171
171
|
/**
|
|
172
172
|
* initialize Storage
|
|
@@ -271,6 +271,7 @@ const InnerDynamicContextProvider = (props) => {
|
|
|
271
271
|
mobileExperience,
|
|
272
272
|
networkConfigurations: serverNetworkConfigurations,
|
|
273
273
|
projectSettings: projectSettings$1,
|
|
274
|
+
useMetamaskSdk,
|
|
274
275
|
walletBook: walletBook$1,
|
|
275
276
|
walletConnectPreferredChains,
|
|
276
277
|
walletConnectorExtensions,
|
|
@@ -285,6 +286,7 @@ const InnerDynamicContextProvider = (props) => {
|
|
|
285
286
|
mobileExperience,
|
|
286
287
|
serverNetworkConfigurations,
|
|
287
288
|
projectSettings$1,
|
|
289
|
+
useMetamaskSdk,
|
|
288
290
|
walletBook$1,
|
|
289
291
|
walletConnectPreferredChains,
|
|
290
292
|
walletConnectorExtensions,
|
|
@@ -162,7 +162,7 @@ const DynamicContext = createContext(undefined);
|
|
|
162
162
|
const InnerDynamicContextProvider = (props) => {
|
|
163
163
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
164
164
|
const { children, theme, settings, locale, enableInstrumentation = false, } = props;
|
|
165
|
-
const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, defaultPhoneInputIso2, apiBaseUrl, coinbaseWalletPreference, detectNewWalletsForLinking = defaultDynamicSettings.detectNewWalletsForLinking, enableConnectOnlyFallback = defaultDynamicSettings.enableConnectOnlyFallback, deepLinkPreference: deepLinkPreferenceProp = defaultDynamicSettings.deepLinkPreference, bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = defaultDynamicSettings.initialAuthenticationMode, debugError = defaultDynamicSettings.debugError, displaySiweStatement = defaultDynamicSettings.displaySiweStatement, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = defaultDynamicSettings.enableVisitTrackingOnConnectOnly, environmentId, walletsFilter, logLevel = defaultDynamicSettings.logLevel, mobileExperience, notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, siweStatement, shadowDOMEnabled = defaultDynamicSettings.shadowDOMEnabled, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = defaultDynamicSettings.showLockedWalletView, walletConnectPreferredChains, walletConnectorExtensions, recommendedWallets, handlers, suppressEndUserConsoleWarning, transactionConfirmation: transactionConfirmationSettings, } = settings;
|
|
165
|
+
const { accessDeniedMessagePrimary, accessDeniedMessageSecondary, accessDeniedButton, defaultPhoneInputIso2, apiBaseUrl, coinbaseWalletPreference, detectNewWalletsForLinking = defaultDynamicSettings.detectNewWalletsForLinking, enableConnectOnlyFallback = defaultDynamicSettings.enableConnectOnlyFallback, deepLinkPreference: deepLinkPreferenceProp = defaultDynamicSettings.deepLinkPreference, bridgeChains, cssOverrides, defaultNumberOfWalletsToShow = DEFAULT_NUMBER_OF_WALLETS_TO_SHOW, flowNetwork, initialAuthenticationMode = defaultDynamicSettings.initialAuthenticationMode, debugError = defaultDynamicSettings.debugError, displaySiweStatement = defaultDynamicSettings.displaySiweStatement, newToWeb3WalletChainMap, enableVisitTrackingOnConnectOnly = defaultDynamicSettings.enableVisitTrackingOnConnectOnly, environmentId, walletsFilter, logLevel = defaultDynamicSettings.logLevel, mobileExperience, notInTheListImageUrl, onboardingImageUrl, policiesConsentInnerComponent, customPrivacyPolicy, privacyPolicyUrl, socialMediaLinkText, socialMediaIconUrl, socialMediaUrl, customTermsOfServices, termsOfServiceUrl, siweStatement, shadowDOMEnabled = defaultDynamicSettings.shadowDOMEnabled, walletConnectors: walletConnectorsProp, socialProvidersFilter, showLockedWalletView = defaultDynamicSettings.showLockedWalletView, walletConnectPreferredChains, walletConnectorExtensions, recommendedWallets, handlers, suppressEndUserConsoleWarning, transactionConfirmation: transactionConfirmationSettings, useMetamaskSdk = defaultDynamicSettings.useMetamaskSdk, } = settings;
|
|
166
166
|
let { appLogoUrl = defaultDynamicSettings.appLogoUrl, appName = defaultDynamicSettings.appName, } = settings;
|
|
167
167
|
/**
|
|
168
168
|
* initialize Storage
|
|
@@ -267,6 +267,7 @@ const InnerDynamicContextProvider = (props) => {
|
|
|
267
267
|
mobileExperience,
|
|
268
268
|
networkConfigurations: serverNetworkConfigurations,
|
|
269
269
|
projectSettings,
|
|
270
|
+
useMetamaskSdk,
|
|
270
271
|
walletBook,
|
|
271
272
|
walletConnectPreferredChains,
|
|
272
273
|
walletConnectorExtensions,
|
|
@@ -281,6 +282,7 @@ const InnerDynamicContextProvider = (props) => {
|
|
|
281
282
|
mobileExperience,
|
|
282
283
|
serverNetworkConfigurations,
|
|
283
284
|
projectSettings,
|
|
285
|
+
useMetamaskSdk,
|
|
284
286
|
walletBook,
|
|
285
287
|
walletConnectPreferredChains,
|
|
286
288
|
walletConnectorExtensions,
|
|
@@ -93,6 +93,12 @@ export interface DynamicContextProps {
|
|
|
93
93
|
*/
|
|
94
94
|
tokensFilter?: (tokens: TokenBalance[]) => TokenBalance[];
|
|
95
95
|
transactionConfirmation?: TransactionConfirmationSettings;
|
|
96
|
+
/**
|
|
97
|
+
* If true, the Metamask SDK will be used to connect to the wallet.
|
|
98
|
+
* If false, the injected eip6963 provider will be used and WalletConnect for mobile.
|
|
99
|
+
* @default true
|
|
100
|
+
*/
|
|
101
|
+
useMetamaskSdk?: boolean;
|
|
96
102
|
};
|
|
97
103
|
theme?: ThemeData | ThemeSetting;
|
|
98
104
|
/**
|
|
@@ -2022,6 +2022,29 @@ const translation = {
|
|
|
2022
2022
|
using_hardware_wallet_toggle_label: 'Using Ledger with {{chainName}}',
|
|
2023
2023
|
button: 'Connect',
|
|
2024
2024
|
},
|
|
2025
|
+
/**
|
|
2026
|
+
* @description copy keys for session key approval view
|
|
2027
|
+
* @default
|
|
2028
|
+
* {
|
|
2029
|
+
aria: {
|
|
2030
|
+
close_button_label: 'Close',
|
|
2031
|
+
},
|
|
2032
|
+
title: 'Approve Access',
|
|
2033
|
+
description:
|
|
2034
|
+
'You’re granting this site access. Review the permissions before confirming.',
|
|
2035
|
+
approve_button: 'Approve',
|
|
2036
|
+
reject_button: 'Deny',
|
|
2037
|
+
}
|
|
2038
|
+
*/
|
|
2039
|
+
dyn_session_key_approval: {
|
|
2040
|
+
aria: {
|
|
2041
|
+
close_button_label: 'Close',
|
|
2042
|
+
},
|
|
2043
|
+
title: 'Approve Access',
|
|
2044
|
+
description: 'You’re granting this site access. Review the permissions before confirming.',
|
|
2045
|
+
approve_button: 'Approve',
|
|
2046
|
+
reject_button: 'Deny',
|
|
2047
|
+
},
|
|
2025
2048
|
/**
|
|
2026
2049
|
* @description copy keys for session management view
|
|
2027
2050
|
* @default
|
|
@@ -2032,6 +2055,7 @@ const translation = {
|
|
|
2032
2055
|
},
|
|
2033
2056
|
title: 'Session Management',
|
|
2034
2057
|
empty_sessions_view: {
|
|
2058
|
+
loading: 'Loading sessions...',
|
|
2035
2059
|
title: 'No active sessions found',
|
|
2036
2060
|
},
|
|
2037
2061
|
info_view: {
|
|
@@ -2049,6 +2073,8 @@ const translation = {
|
|
|
2049
2073
|
"You're removing this site's permissions. Confirm to revoke access.",
|
|
2050
2074
|
cancel_button: 'Cancel',
|
|
2051
2075
|
revoke_button: 'Revoke',
|
|
2076
|
+
success_message: 'Revoked {{sessionName}}',
|
|
2077
|
+
error_message: 'Failed to revoke {{sessionName}}',
|
|
2052
2078
|
},
|
|
2053
2079
|
session_component: {
|
|
2054
2080
|
aria: {
|
|
@@ -2068,6 +2094,7 @@ const translation = {
|
|
|
2068
2094
|
},
|
|
2069
2095
|
title: 'Session Management',
|
|
2070
2096
|
empty_sessions_view: {
|
|
2097
|
+
loading: 'Loading sessions...',
|
|
2071
2098
|
title: 'No active sessions found',
|
|
2072
2099
|
},
|
|
2073
2100
|
info_view: {
|
|
@@ -2082,6 +2109,8 @@ const translation = {
|
|
|
2082
2109
|
description: "You're removing this site's permissions. Confirm to revoke access.",
|
|
2083
2110
|
cancel_button: 'Cancel',
|
|
2084
2111
|
revoke_button: 'Revoke',
|
|
2112
|
+
success_message: 'Revoked {{sessionName}}',
|
|
2113
|
+
error_message: 'Failed to revoke {{sessionName}}',
|
|
2085
2114
|
},
|
|
2086
2115
|
session_component: {
|
|
2087
2116
|
aria: {
|
|
@@ -2099,24 +2128,26 @@ const translation = {
|
|
|
2099
2128
|
permissions_label: 'Permissions',
|
|
2100
2129
|
permissions: {
|
|
2101
2130
|
ownership: 'Act on your behalf',
|
|
2102
|
-
access: 'Access ends automatically in',
|
|
2131
|
+
access: 'Access ends automatically in {{time}}',
|
|
2103
2132
|
},
|
|
2104
2133
|
spending_label: 'Allow Spending',
|
|
2105
2134
|
spending_limit: 'Can spend up to:',
|
|
2106
2135
|
advanced_label: 'Advanced',
|
|
2107
2136
|
advanced_description: 'Session information',
|
|
2137
|
+
connected: 'Connected: {{time}} ago',
|
|
2108
2138
|
}
|
|
2109
2139
|
*/
|
|
2110
2140
|
dyn_session_permissions: {
|
|
2111
2141
|
permissions_label: 'Permissions',
|
|
2112
2142
|
permissions: {
|
|
2113
2143
|
ownership: 'Act on your behalf',
|
|
2114
|
-
access: 'Access ends automatically in
|
|
2144
|
+
access: 'Access ends automatically in {{time}}',
|
|
2115
2145
|
},
|
|
2116
2146
|
spending_label: 'Allow Spending',
|
|
2117
2147
|
spending_limit: 'Can spend up to:',
|
|
2118
2148
|
advanced_label: 'Advanced',
|
|
2119
2149
|
advanced_description: 'Session information',
|
|
2150
|
+
connected: 'Connected: {{time}} ago',
|
|
2120
2151
|
},
|
|
2121
2152
|
/**
|
|
2122
2153
|
* @description copy keys for sign message flow views
|
|
@@ -2018,6 +2018,29 @@ export declare const translation: {
|
|
|
2018
2018
|
using_hardware_wallet_toggle_label: string;
|
|
2019
2019
|
button: string;
|
|
2020
2020
|
};
|
|
2021
|
+
/**
|
|
2022
|
+
* @description copy keys for session key approval view
|
|
2023
|
+
* @default
|
|
2024
|
+
* {
|
|
2025
|
+
aria: {
|
|
2026
|
+
close_button_label: 'Close',
|
|
2027
|
+
},
|
|
2028
|
+
title: 'Approve Access',
|
|
2029
|
+
description:
|
|
2030
|
+
'You’re granting this site access. Review the permissions before confirming.',
|
|
2031
|
+
approve_button: 'Approve',
|
|
2032
|
+
reject_button: 'Deny',
|
|
2033
|
+
}
|
|
2034
|
+
*/
|
|
2035
|
+
dyn_session_key_approval: {
|
|
2036
|
+
aria: {
|
|
2037
|
+
close_button_label: string;
|
|
2038
|
+
};
|
|
2039
|
+
title: string;
|
|
2040
|
+
description: string;
|
|
2041
|
+
approve_button: string;
|
|
2042
|
+
reject_button: string;
|
|
2043
|
+
};
|
|
2021
2044
|
/**
|
|
2022
2045
|
* @description copy keys for session management view
|
|
2023
2046
|
* @default
|
|
@@ -2028,6 +2051,7 @@ export declare const translation: {
|
|
|
2028
2051
|
},
|
|
2029
2052
|
title: 'Session Management',
|
|
2030
2053
|
empty_sessions_view: {
|
|
2054
|
+
loading: 'Loading sessions...',
|
|
2031
2055
|
title: 'No active sessions found',
|
|
2032
2056
|
},
|
|
2033
2057
|
info_view: {
|
|
@@ -2045,6 +2069,8 @@ export declare const translation: {
|
|
|
2045
2069
|
"You're removing this site's permissions. Confirm to revoke access.",
|
|
2046
2070
|
cancel_button: 'Cancel',
|
|
2047
2071
|
revoke_button: 'Revoke',
|
|
2072
|
+
success_message: 'Revoked {{sessionName}}',
|
|
2073
|
+
error_message: 'Failed to revoke {{sessionName}}',
|
|
2048
2074
|
},
|
|
2049
2075
|
session_component: {
|
|
2050
2076
|
aria: {
|
|
@@ -2064,6 +2090,7 @@ export declare const translation: {
|
|
|
2064
2090
|
};
|
|
2065
2091
|
title: string;
|
|
2066
2092
|
empty_sessions_view: {
|
|
2093
|
+
loading: string;
|
|
2067
2094
|
title: string;
|
|
2068
2095
|
};
|
|
2069
2096
|
info_view: {
|
|
@@ -2078,6 +2105,8 @@ export declare const translation: {
|
|
|
2078
2105
|
description: string;
|
|
2079
2106
|
cancel_button: string;
|
|
2080
2107
|
revoke_button: string;
|
|
2108
|
+
success_message: string;
|
|
2109
|
+
error_message: string;
|
|
2081
2110
|
};
|
|
2082
2111
|
session_component: {
|
|
2083
2112
|
aria: {
|
|
@@ -2095,12 +2124,13 @@ export declare const translation: {
|
|
|
2095
2124
|
permissions_label: 'Permissions',
|
|
2096
2125
|
permissions: {
|
|
2097
2126
|
ownership: 'Act on your behalf',
|
|
2098
|
-
access: 'Access ends automatically in',
|
|
2127
|
+
access: 'Access ends automatically in {{time}}',
|
|
2099
2128
|
},
|
|
2100
2129
|
spending_label: 'Allow Spending',
|
|
2101
2130
|
spending_limit: 'Can spend up to:',
|
|
2102
2131
|
advanced_label: 'Advanced',
|
|
2103
2132
|
advanced_description: 'Session information',
|
|
2133
|
+
connected: 'Connected: {{time}} ago',
|
|
2104
2134
|
}
|
|
2105
2135
|
*/
|
|
2106
2136
|
dyn_session_permissions: {
|
|
@@ -2113,6 +2143,7 @@ export declare const translation: {
|
|
|
2113
2143
|
spending_limit: string;
|
|
2114
2144
|
advanced_label: string;
|
|
2115
2145
|
advanced_description: string;
|
|
2146
|
+
connected: string;
|
|
2116
2147
|
};
|
|
2117
2148
|
/**
|
|
2118
2149
|
* @description copy keys for sign message flow views
|
|
@@ -2018,6 +2018,29 @@ const translation = {
|
|
|
2018
2018
|
using_hardware_wallet_toggle_label: 'Using Ledger with {{chainName}}',
|
|
2019
2019
|
button: 'Connect',
|
|
2020
2020
|
},
|
|
2021
|
+
/**
|
|
2022
|
+
* @description copy keys for session key approval view
|
|
2023
|
+
* @default
|
|
2024
|
+
* {
|
|
2025
|
+
aria: {
|
|
2026
|
+
close_button_label: 'Close',
|
|
2027
|
+
},
|
|
2028
|
+
title: 'Approve Access',
|
|
2029
|
+
description:
|
|
2030
|
+
'You’re granting this site access. Review the permissions before confirming.',
|
|
2031
|
+
approve_button: 'Approve',
|
|
2032
|
+
reject_button: 'Deny',
|
|
2033
|
+
}
|
|
2034
|
+
*/
|
|
2035
|
+
dyn_session_key_approval: {
|
|
2036
|
+
aria: {
|
|
2037
|
+
close_button_label: 'Close',
|
|
2038
|
+
},
|
|
2039
|
+
title: 'Approve Access',
|
|
2040
|
+
description: 'You’re granting this site access. Review the permissions before confirming.',
|
|
2041
|
+
approve_button: 'Approve',
|
|
2042
|
+
reject_button: 'Deny',
|
|
2043
|
+
},
|
|
2021
2044
|
/**
|
|
2022
2045
|
* @description copy keys for session management view
|
|
2023
2046
|
* @default
|
|
@@ -2028,6 +2051,7 @@ const translation = {
|
|
|
2028
2051
|
},
|
|
2029
2052
|
title: 'Session Management',
|
|
2030
2053
|
empty_sessions_view: {
|
|
2054
|
+
loading: 'Loading sessions...',
|
|
2031
2055
|
title: 'No active sessions found',
|
|
2032
2056
|
},
|
|
2033
2057
|
info_view: {
|
|
@@ -2045,6 +2069,8 @@ const translation = {
|
|
|
2045
2069
|
"You're removing this site's permissions. Confirm to revoke access.",
|
|
2046
2070
|
cancel_button: 'Cancel',
|
|
2047
2071
|
revoke_button: 'Revoke',
|
|
2072
|
+
success_message: 'Revoked {{sessionName}}',
|
|
2073
|
+
error_message: 'Failed to revoke {{sessionName}}',
|
|
2048
2074
|
},
|
|
2049
2075
|
session_component: {
|
|
2050
2076
|
aria: {
|
|
@@ -2064,6 +2090,7 @@ const translation = {
|
|
|
2064
2090
|
},
|
|
2065
2091
|
title: 'Session Management',
|
|
2066
2092
|
empty_sessions_view: {
|
|
2093
|
+
loading: 'Loading sessions...',
|
|
2067
2094
|
title: 'No active sessions found',
|
|
2068
2095
|
},
|
|
2069
2096
|
info_view: {
|
|
@@ -2078,6 +2105,8 @@ const translation = {
|
|
|
2078
2105
|
description: "You're removing this site's permissions. Confirm to revoke access.",
|
|
2079
2106
|
cancel_button: 'Cancel',
|
|
2080
2107
|
revoke_button: 'Revoke',
|
|
2108
|
+
success_message: 'Revoked {{sessionName}}',
|
|
2109
|
+
error_message: 'Failed to revoke {{sessionName}}',
|
|
2081
2110
|
},
|
|
2082
2111
|
session_component: {
|
|
2083
2112
|
aria: {
|
|
@@ -2095,24 +2124,26 @@ const translation = {
|
|
|
2095
2124
|
permissions_label: 'Permissions',
|
|
2096
2125
|
permissions: {
|
|
2097
2126
|
ownership: 'Act on your behalf',
|
|
2098
|
-
access: 'Access ends automatically in',
|
|
2127
|
+
access: 'Access ends automatically in {{time}}',
|
|
2099
2128
|
},
|
|
2100
2129
|
spending_label: 'Allow Spending',
|
|
2101
2130
|
spending_limit: 'Can spend up to:',
|
|
2102
2131
|
advanced_label: 'Advanced',
|
|
2103
2132
|
advanced_description: 'Session information',
|
|
2133
|
+
connected: 'Connected: {{time}} ago',
|
|
2104
2134
|
}
|
|
2105
2135
|
*/
|
|
2106
2136
|
dyn_session_permissions: {
|
|
2107
2137
|
permissions_label: 'Permissions',
|
|
2108
2138
|
permissions: {
|
|
2109
2139
|
ownership: 'Act on your behalf',
|
|
2110
|
-
access: 'Access ends automatically in
|
|
2140
|
+
access: 'Access ends automatically in {{time}}',
|
|
2111
2141
|
},
|
|
2112
2142
|
spending_label: 'Allow Spending',
|
|
2113
2143
|
spending_limit: 'Can spend up to:',
|
|
2114
2144
|
advanced_label: 'Advanced',
|
|
2115
2145
|
advanced_description: 'Session information',
|
|
2146
|
+
connected: 'Connected: {{time}} ago',
|
|
2116
2147
|
},
|
|
2117
2148
|
/**
|
|
2118
2149
|
* @description copy keys for sign message flow views
|
|
@@ -16,4 +16,5 @@ export declare const defaultDynamicSettings: {
|
|
|
16
16
|
shadowDOMEnabled: true;
|
|
17
17
|
showLockedWalletView: false;
|
|
18
18
|
tokensFilter: (tokens: import("@dynamic-labs/sdk-api-core").TokenBalance[]) => import("@dynamic-labs/sdk-api-core").TokenBalance[];
|
|
19
|
+
useMetamaskSdk: true;
|
|
19
20
|
};
|
|
@@ -9,7 +9,7 @@ type GetAndUse<N extends string, P extends keyof ProjectSettingsGeneral, S exten
|
|
|
9
9
|
* Many properties are set both under projectSettings.general and dynamicSettings.
|
|
10
10
|
* This is a helper function to get the value from either of them.
|
|
11
11
|
*/
|
|
12
|
-
export declare const makeGetAndUse: <N extends string, P extends keyof ProjectSettingsGeneral, S extends "shadowDOMEnabled" | "bridgeChains" | "accessDeniedButton" | "accessDeniedMessagePrimary" | "accessDeniedMessageSecondary" | "apiBaseUrl" | "appLogoUrl" | "appName" | "coinbaseWalletPreference" | "cssOverrides" | "customPrivacyPolicy" | "defaultPhoneInputIso2" | "detectNewWalletsForLinking" | "customTermsOfServices" | "debugError" | "deepLinkPreference" | "defaultNumberOfWalletsToShow" | "displaySiweStatement" | "enableConnectOnlyFallback" | "enableVisitTrackingOnConnectOnly" | "environmentId" | "events" | "flowNetwork" | "handlers" | "initialAuthenticationMode" | "localStorageSuffix" | "logLevel" | "mobileExperience" | "networkValidationMode" | "newToWeb3WalletChainMap" | "notInTheListImageUrl" | "onboardingImageUrl" | "overrides" | "social" | "policiesConsentInnerComponent" | "privacyPolicyUrl" | "recommendedWallets" | "redirectUrl" | "siweStatement" | "showLockedWalletView" | "socialMediaIconUrl" | "socialMediaLinkText" | "socialMediaUrl" | "socialProvidersFilter" | "suppressEndUserConsoleWarning" | "termsOfServiceUrl" | "walletConnectors" | "walletConnectorExtensions" | "walletConnectPreferredChains" | "walletsFilter" | "tokensFilter" | "transactionConfirmation">(name: N, projectSettingName: P, dynamicSettingName: S) => GetAndUse<N, P, S>;
|
|
12
|
+
export declare const makeGetAndUse: <N extends string, P extends keyof ProjectSettingsGeneral, S extends "shadowDOMEnabled" | "bridgeChains" | "accessDeniedButton" | "accessDeniedMessagePrimary" | "accessDeniedMessageSecondary" | "apiBaseUrl" | "appLogoUrl" | "appName" | "coinbaseWalletPreference" | "cssOverrides" | "customPrivacyPolicy" | "defaultPhoneInputIso2" | "detectNewWalletsForLinking" | "customTermsOfServices" | "debugError" | "deepLinkPreference" | "defaultNumberOfWalletsToShow" | "displaySiweStatement" | "enableConnectOnlyFallback" | "enableVisitTrackingOnConnectOnly" | "environmentId" | "events" | "flowNetwork" | "handlers" | "initialAuthenticationMode" | "localStorageSuffix" | "logLevel" | "mobileExperience" | "networkValidationMode" | "newToWeb3WalletChainMap" | "notInTheListImageUrl" | "onboardingImageUrl" | "overrides" | "social" | "policiesConsentInnerComponent" | "privacyPolicyUrl" | "recommendedWallets" | "redirectUrl" | "siweStatement" | "showLockedWalletView" | "socialMediaIconUrl" | "socialMediaLinkText" | "socialMediaUrl" | "socialProvidersFilter" | "suppressEndUserConsoleWarning" | "termsOfServiceUrl" | "walletConnectors" | "walletConnectorExtensions" | "walletConnectPreferredChains" | "walletsFilter" | "tokensFilter" | "transactionConfirmation" | "useMetamaskSdk">(name: N, projectSettingName: P, dynamicSettingName: S) => GetAndUse<N, P, S>;
|
|
13
13
|
export declare const getAppLogoUrl: () => string | null | undefined, useAppLogoUrl: () => string | null | undefined;
|
|
14
14
|
export declare const getAppName: () => string | undefined, useAppName: () => string | undefined;
|
|
15
15
|
export declare const getNotInTheListImageUrl: () => string | null | undefined, useNotInTheListImageUrl: () => string | null | undefined;
|