@dynamic-labs/sdk-react-core 4.36.0 → 4.37.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 +15 -0
- package/package.cjs +2 -2
- package/package.js +2 -2
- package/package.json +12 -12
- package/src/index.cjs +2 -0
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -0
- package/src/lib/client/extension/deprecated/mfa/verifyTotpMfaDevice/verifyTotpMfaDevice.d.ts +1 -1
- package/src/lib/client/extension/projectSettings/getProjectSettings/getProjectSettings.d.ts +2 -1
- package/src/lib/client/extension/projectSettings/useProjectSettings/useProjectSettings.d.ts +2 -1
- package/src/lib/client/extension/projectSettings/useRefetchProjectSettings/useRefetchProjectSettings.d.ts +2 -1
- package/src/lib/context/SocialRedirectContext/hooks/useRedirectSocialHandler/useRedirectSocialHandler.cjs +3 -1
- package/src/lib/context/SocialRedirectContext/hooks/useRedirectSocialHandler/useRedirectSocialHandler.js +3 -1
- package/src/lib/context/SocialRedirectContext/utils/getDynamicRedirectData/getDynamicRedirectData.d.ts +1 -0
- package/src/lib/context/SocialRedirectContext/utils/getDynamicRedirectDataFromUrl/getDynamicRedirectDataFromUrl.cjs +2 -1
- package/src/lib/context/SocialRedirectContext/utils/getDynamicRedirectDataFromUrl/getDynamicRedirectDataFromUrl.d.ts +1 -0
- package/src/lib/context/SocialRedirectContext/utils/getDynamicRedirectDataFromUrl/getDynamicRedirectDataFromUrl.js +2 -1
- package/src/lib/data/api/oauth/oauth.cjs +2 -1
- package/src/lib/data/api/oauth/oauth.d.ts +1 -1
- package/src/lib/data/api/oauth/oauth.js +2 -1
- package/src/lib/locale/en/translation.cjs +26 -3
- package/src/lib/locale/en/translation.d.ts +25 -2
- package/src/lib/locale/en/translation.js +26 -3
- package/src/lib/shared/assets/connect.cjs +57 -0
- package/src/lib/shared/assets/connect.js +33 -0
- package/src/lib/shared/assets/index.d.ts +1 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/constants/authViewLayoutChecks.cjs +1 -0
- package/src/lib/utils/constants/authViewLayoutChecks.js +1 -0
- package/src/lib/utils/constants/index.d.ts +1 -1
- package/src/lib/utils/constants/localStorage.cjs +3 -0
- package/src/lib/utils/constants/localStorage.d.ts +4 -0
- package/src/lib/utils/constants/localStorage.js +3 -1
- package/src/lib/utils/functions/getTransactionLink/blockExplorerPatterns.cjs +47 -0
- package/src/lib/utils/functions/getTransactionLink/blockExplorerPatterns.d.ts +26 -0
- package/src/lib/utils/functions/getTransactionLink/blockExplorerPatterns.js +41 -0
- package/src/lib/utils/functions/getTransactionLink/getTransactionLink.cjs +5 -3
- package/src/lib/utils/functions/getTransactionLink/getTransactionLink.js +5 -3
- package/src/lib/utils/functions/socialStorage/socialStorage.d.ts +2 -0
- package/src/lib/utils/hooks/index.d.ts +1 -0
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +5 -2
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.d.ts +4 -1
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +5 -2
- package/src/lib/utils/hooks/useSyncDynamicWaas/useSyncDynamicWaas.cjs +7 -0
- package/src/lib/utils/hooks/useSyncDynamicWaas/useSyncDynamicWaas.js +7 -0
- package/src/lib/utils/hooks/useWalletDelegation/useWalletDelegation.cjs +59 -5
- package/src/lib/utils/hooks/useWalletDelegation/useWalletDelegation.d.ts +12 -1
- package/src/lib/utils/hooks/useWalletDelegation/useWalletDelegation.js +59 -5
- package/src/lib/views/WalletDelegation/WalletDelegationView/AgreementSection.cjs +28 -0
- package/src/lib/views/WalletDelegation/WalletDelegationView/AgreementSection.d.ts +9 -0
- package/src/lib/views/WalletDelegation/WalletDelegationView/AgreementSection.js +24 -0
- package/src/lib/views/WalletDelegation/WalletDelegationView/WalletDelegationView.cjs +144 -104
- package/src/lib/views/WalletDelegation/WalletDelegationView/WalletDelegationView.d.ts +7 -1
- package/src/lib/views/WalletDelegation/WalletDelegationView/WalletDelegationView.js +146 -106
- package/src/lib/views/viewToComponentMap.d.ts +3 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.cjs +2 -0
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.d.ts +4 -1
- package/src/lib/widgets/DynamicWidget/components/DynamicWidgetViews/mapViewToComponent.js +2 -0
- package/src/lib/widgets/DynamicWidget/context/DynamicWidgetContext.types.d.ts +1 -1
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/ConnectedAppsView.cjs +2 -6
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/ConnectedAppsView.js +2 -6
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +17 -1
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +17 -1
- package/src/lib/widgets/DynamicWidget/views/WalletsDelegatedSettingsView/WalletsDelegatedSettingsView.cjs +149 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsDelegatedSettingsView/WalletsDelegatedSettingsView.d.ts +12 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsDelegatedSettingsView/WalletsDelegatedSettingsView.js +144 -0
- package/src/lib/widgets/DynamicWidget/views/WalletsDelegatedSettingsView/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/index.d.ts +1 -0
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/EmbeddedDelegatedSection/EmbeddedDelegatedSection.cjs +0 -34
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/EmbeddedDelegatedSection/EmbeddedDelegatedSection.d.ts +0 -2
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/EmbeddedDelegatedSection/EmbeddedDelegatedSection.js +0 -30
- package/src/lib/widgets/DynamicWidget/views/ConnectedAppsView/EmbeddedDelegatedSection/index.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.37.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.36.1...v4.37.0) (2025-10-08)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add workflow to auto-update documentation changelog on release ([#9642](https://github.com/dynamic-labs/dynamic-auth/issues/9642)) ([701041e](https://github.com/dynamic-labs/dynamic-auth/commit/701041e05d6f2e46869f4e864e4533bbd046b3b6))
|
|
8
|
+
* add delegation ui
|
|
9
|
+
* add token pocket connector for tron
|
|
10
|
+
|
|
11
|
+
### [4.36.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.36.0...v4.36.1) (2025-10-06)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
- Multiple internal improvements
|
|
16
|
+
|
|
2
17
|
## [4.36.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.35.0...v4.36.0) (2025-10-03)
|
|
3
18
|
|
|
4
19
|
|
package/package.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var version = "4.
|
|
6
|
+
var version = "4.37.0";
|
|
7
7
|
var dependencies = {
|
|
8
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
8
|
+
"@dynamic-labs/sdk-api-core": "0.0.798",
|
|
9
9
|
"@dynamic-labs-sdk/client": "0.1.0-alpha.17",
|
|
10
10
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
11
11
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
package/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
var version = "4.
|
|
2
|
+
var version = "4.37.0";
|
|
3
3
|
var dependencies = {
|
|
4
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
4
|
+
"@dynamic-labs/sdk-api-core": "0.0.798",
|
|
5
5
|
"@dynamic-labs-sdk/client": "0.1.0-alpha.17",
|
|
6
6
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
7
7
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.37.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
5
|
+
"@dynamic-labs/sdk-api-core": "0.0.798",
|
|
6
6
|
"@dynamic-labs-sdk/client": "0.1.0-alpha.17",
|
|
7
7
|
"@hcaptcha/react-hcaptcha": "1.4.4",
|
|
8
8
|
"@thumbmarkjs/thumbmarkjs": "0.16.0",
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"yup": "0.32.11",
|
|
16
16
|
"react-international-phone": "4.5.0",
|
|
17
17
|
"bs58": "5.0.0",
|
|
18
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
19
|
-
"@dynamic-labs/iconic": "4.
|
|
20
|
-
"@dynamic-labs/logger": "4.
|
|
21
|
-
"@dynamic-labs/multi-wallet": "4.
|
|
22
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
23
|
-
"@dynamic-labs/store": "4.
|
|
24
|
-
"@dynamic-labs/types": "4.
|
|
25
|
-
"@dynamic-labs/utils": "4.
|
|
26
|
-
"@dynamic-labs/wallet-book": "4.
|
|
27
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
18
|
+
"@dynamic-labs/assert-package-version": "4.37.0",
|
|
19
|
+
"@dynamic-labs/iconic": "4.37.0",
|
|
20
|
+
"@dynamic-labs/logger": "4.37.0",
|
|
21
|
+
"@dynamic-labs/multi-wallet": "4.37.0",
|
|
22
|
+
"@dynamic-labs/rpc-providers": "4.37.0",
|
|
23
|
+
"@dynamic-labs/store": "4.37.0",
|
|
24
|
+
"@dynamic-labs/types": "4.37.0",
|
|
25
|
+
"@dynamic-labs/utils": "4.37.0",
|
|
26
|
+
"@dynamic-labs/wallet-book": "4.37.0",
|
|
27
|
+
"@dynamic-labs/wallet-connector-core": "4.37.0",
|
|
28
28
|
"eventemitter3": "5.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
package/src/index.cjs
CHANGED
|
@@ -122,6 +122,7 @@ require('./lib/context/CaptchaContext/CaptchaContext.cjs');
|
|
|
122
122
|
var DynamicWidgetContext = require('./lib/widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
123
123
|
require('./lib/components/IconButton/IconButton.cjs');
|
|
124
124
|
var useDynamicWaas = require('./lib/utils/hooks/useDynamicWaas/useDynamicWaas.cjs');
|
|
125
|
+
var useWalletDelegation = require('./lib/utils/hooks/useWalletDelegation/useWalletDelegation.cjs');
|
|
125
126
|
var useSwitchWallet = require('./lib/utils/hooks/useSwitchWallet/useSwitchWallet.cjs');
|
|
126
127
|
require('./lib/components/MenuList/Dropdown/Dropdown.cjs');
|
|
127
128
|
require('formik');
|
|
@@ -280,6 +281,7 @@ exports.ShadowDOM = ShadowDOM.ShadowDOM;
|
|
|
280
281
|
exports.useMultiWalletPromptState = useMultiWalletPromptState.useMultiWalletPromptState;
|
|
281
282
|
exports.DynamicWidgetContextProvider = DynamicWidgetContext.DynamicWidgetContextProvider;
|
|
282
283
|
exports.useDynamicWaas = useDynamicWaas.useDynamicWaas;
|
|
284
|
+
exports.useWalletDelegation = useWalletDelegation.useWalletDelegation;
|
|
283
285
|
exports.useSwitchWallet = useSwitchWallet.useSwitchWallet;
|
|
284
286
|
exports.useEmbeddedReveal = useEmbeddedReveal.useEmbeddedReveal;
|
|
285
287
|
exports.useEmbeddedWalletAuthenticator = useEmbeddedWalletAuthenticator.useEmbeddedWalletAuthenticator;
|
package/src/index.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ export { FilterAndSortWallets, FilterBridgeChainsName, FilterChain, FilterWallet
|
|
|
123
123
|
export {
|
|
124
124
|
/** @deprecated */
|
|
125
125
|
DynamicWidgetContextProvider, } from './lib/widgets/DynamicWidget/context';
|
|
126
|
-
export { useWalletItemActions, useAuthenticateConnectedUser, useSocialAccounts, useEmbeddedWallet, useEmbeddedWalletAuthenticator, usePasskeyRecovery, useEmbeddedReveal, useIsLoggedIn, useDynamicModals, useMfa, useTokenBalances, useMultichainTokenBalances, useSwitchWallet, useRpcProviders, useRefreshUser, useWalletOptions, useSmartWallets, EmbeddedWalletVersion, useTelegramLogin, useUpgradeEmbeddedWallet, useEVMTransactionSimulation, useSVMTransactionSimulation, useDeleteUserAccount, useDynamicWaas, useGetPasskeys, useDeletePasskey, useRegisterPasskey, useAuthenticatePasskeyMFA, useGetUserMfaMethods, usePromptMfaAuth, useUpgradeToDynamicWaasFlow, useGetMfaToken, useIsMfaRequiredForAction, } from './lib/utils/hooks';
|
|
126
|
+
export { useWalletItemActions, useAuthenticateConnectedUser, useSocialAccounts, useEmbeddedWallet, useEmbeddedWalletAuthenticator, usePasskeyRecovery, useEmbeddedReveal, useIsLoggedIn, useDynamicModals, useMfa, useTokenBalances, useMultichainTokenBalances, useSwitchWallet, useRpcProviders, useRefreshUser, useWalletOptions, useSmartWallets, EmbeddedWalletVersion, useTelegramLogin, useUpgradeEmbeddedWallet, useEVMTransactionSimulation, useSVMTransactionSimulation, useDeleteUserAccount, useDynamicWaas, useGetPasskeys, useDeletePasskey, useRegisterPasskey, useAuthenticatePasskeyMFA, useGetUserMfaMethods, usePromptMfaAuth, useUpgradeToDynamicWaasFlow, useGetMfaToken, useIsMfaRequiredForAction, useWalletDelegation, } from './lib/utils/hooks';
|
|
127
127
|
export {
|
|
128
128
|
/** @deprecated use useOnramp instead */
|
|
129
129
|
useFunding, } from './lib/utils/hooks/useFunding';
|
package/src/index.js
CHANGED
|
@@ -118,6 +118,7 @@ import './lib/context/CaptchaContext/CaptchaContext.js';
|
|
|
118
118
|
export { DynamicWidgetContextProvider } from './lib/widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
119
119
|
import './lib/components/IconButton/IconButton.js';
|
|
120
120
|
export { useDynamicWaas } from './lib/utils/hooks/useDynamicWaas/useDynamicWaas.js';
|
|
121
|
+
export { useWalletDelegation } from './lib/utils/hooks/useWalletDelegation/useWalletDelegation.js';
|
|
121
122
|
export { useSwitchWallet } from './lib/utils/hooks/useSwitchWallet/useSwitchWallet.js';
|
|
122
123
|
import './lib/components/MenuList/Dropdown/Dropdown.js';
|
|
123
124
|
import 'formik';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ProjectSettings } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
export declare const getProjectSettings: () => ProjectSettings | undefined;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ProjectSettings } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
export declare const useProjectSettings: () => ProjectSettings | undefined;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { ProjectSettings } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
export declare const useRefetchProjectSettings: () => (() => Promise<ProjectSettings | undefined>);
|
|
@@ -140,7 +140,7 @@ const useRedirectSocialHandler = ({ setSocialProvider, }) => {
|
|
|
140
140
|
/**
|
|
141
141
|
* Find the redirect data from the first available source
|
|
142
142
|
*/
|
|
143
|
-
const { dynamicOauthCode, dynamicOauthState } = (_a = getDynamicRedirectData.getDynamicRedirectData(redirectUrl !== null && redirectUrl !== void 0 ? redirectUrl : null, window.location.href)) !== null && _a !== void 0 ? _a : {};
|
|
143
|
+
const { dynamicOauthCode, dynamicOauthState, dynamicOauthSsoProviderId } = (_a = getDynamicRedirectData.getDynamicRedirectData(redirectUrl !== null && redirectUrl !== void 0 ? redirectUrl : null, window.location.href)) !== null && _a !== void 0 ? _a : {};
|
|
144
144
|
if (!dynamicOauthState || !dynamicOauthCode) {
|
|
145
145
|
return;
|
|
146
146
|
}
|
|
@@ -149,6 +149,7 @@ const useRedirectSocialHandler = ({ setSocialProvider, }) => {
|
|
|
149
149
|
return;
|
|
150
150
|
// we got back the dynamicOauthCode from the oauth provider, set it here so we can use it to sign in
|
|
151
151
|
socialStorageItem.code = dynamicOauthCode;
|
|
152
|
+
socialStorageItem.dynamicOauthSsoProviderId = dynamicOauthSsoProviderId;
|
|
152
153
|
setSocialStorageItem(socialStorageItem);
|
|
153
154
|
// Clear the state from local storage
|
|
154
155
|
socialStorage.deleteSocialStorage(socialStorageItem.provider);
|
|
@@ -180,6 +181,7 @@ const useRedirectSocialHandler = ({ setSocialProvider, }) => {
|
|
|
180
181
|
authMode: socialStorageItem.mode,
|
|
181
182
|
captchaToken: socialStorageItem.captchaToken,
|
|
182
183
|
provider: socialStorageItem.provider,
|
|
184
|
+
ssoProviderId: socialStorageItem.dynamicOauthSsoProviderId,
|
|
183
185
|
state: socialStorageItem.state,
|
|
184
186
|
verifier: socialStorageItem.codeVerifier,
|
|
185
187
|
});
|
|
@@ -136,7 +136,7 @@ const useRedirectSocialHandler = ({ setSocialProvider, }) => {
|
|
|
136
136
|
/**
|
|
137
137
|
* Find the redirect data from the first available source
|
|
138
138
|
*/
|
|
139
|
-
const { dynamicOauthCode, dynamicOauthState } = (_a = getDynamicRedirectData(redirectUrl !== null && redirectUrl !== void 0 ? redirectUrl : null, window.location.href)) !== null && _a !== void 0 ? _a : {};
|
|
139
|
+
const { dynamicOauthCode, dynamicOauthState, dynamicOauthSsoProviderId } = (_a = getDynamicRedirectData(redirectUrl !== null && redirectUrl !== void 0 ? redirectUrl : null, window.location.href)) !== null && _a !== void 0 ? _a : {};
|
|
140
140
|
if (!dynamicOauthState || !dynamicOauthCode) {
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
@@ -145,6 +145,7 @@ const useRedirectSocialHandler = ({ setSocialProvider, }) => {
|
|
|
145
145
|
return;
|
|
146
146
|
// we got back the dynamicOauthCode from the oauth provider, set it here so we can use it to sign in
|
|
147
147
|
socialStorageItem.code = dynamicOauthCode;
|
|
148
|
+
socialStorageItem.dynamicOauthSsoProviderId = dynamicOauthSsoProviderId;
|
|
148
149
|
setSocialStorageItem(socialStorageItem);
|
|
149
150
|
// Clear the state from local storage
|
|
150
151
|
deleteSocialStorage(socialStorageItem.provider);
|
|
@@ -176,6 +177,7 @@ const useRedirectSocialHandler = ({ setSocialProvider, }) => {
|
|
|
176
177
|
authMode: socialStorageItem.mode,
|
|
177
178
|
captchaToken: socialStorageItem.captchaToken,
|
|
178
179
|
provider: socialStorageItem.provider,
|
|
180
|
+
ssoProviderId: socialStorageItem.dynamicOauthSsoProviderId,
|
|
179
181
|
state: socialStorageItem.state,
|
|
180
182
|
verifier: socialStorageItem.codeVerifier,
|
|
181
183
|
});
|
|
@@ -17,10 +17,11 @@ const getDynamicRedirectDataFromUrl = (url) => {
|
|
|
17
17
|
const urlObj = new URL(url);
|
|
18
18
|
const dynamicOauthCode = urlObj.searchParams.get('dynamicOauthCode');
|
|
19
19
|
const dynamicOauthState = urlObj.searchParams.get('dynamicOauthState');
|
|
20
|
+
const dynamicOauthSsoProviderId = urlObj.searchParams.get('dynamicOauthSsoProviderId') || undefined;
|
|
20
21
|
if (!dynamicOauthCode || !dynamicOauthState) {
|
|
21
22
|
return null;
|
|
22
23
|
}
|
|
23
|
-
return { dynamicOauthCode, dynamicOauthState };
|
|
24
|
+
return { dynamicOauthCode, dynamicOauthSsoProviderId, dynamicOauthState };
|
|
24
25
|
}
|
|
25
26
|
catch (error) {
|
|
26
27
|
logger.logger.error('Error extracting dynamic redirect data from URL', error);
|
|
@@ -13,10 +13,11 @@ const getDynamicRedirectDataFromUrl = (url) => {
|
|
|
13
13
|
const urlObj = new URL(url);
|
|
14
14
|
const dynamicOauthCode = urlObj.searchParams.get('dynamicOauthCode');
|
|
15
15
|
const dynamicOauthState = urlObj.searchParams.get('dynamicOauthState');
|
|
16
|
+
const dynamicOauthSsoProviderId = urlObj.searchParams.get('dynamicOauthSsoProviderId') || undefined;
|
|
16
17
|
if (!dynamicOauthCode || !dynamicOauthState) {
|
|
17
18
|
return null;
|
|
18
19
|
}
|
|
19
|
-
return { dynamicOauthCode, dynamicOauthState };
|
|
20
|
+
return { dynamicOauthCode, dynamicOauthSsoProviderId, dynamicOauthState };
|
|
20
21
|
}
|
|
21
22
|
catch (error) {
|
|
22
23
|
logger.error('Error extracting dynamic redirect data from URL', error);
|
|
@@ -90,12 +90,13 @@ const unlinkOAuth = (_c) => _tslib.__awaiter(void 0, [_c], void 0, function* ({
|
|
|
90
90
|
return undefined;
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
const signInOAuth = (environmentId_2, providerType_2, _d) => _tslib.__awaiter(void 0, [environmentId_2, providerType_2, _d], void 0, function* (environmentId, providerType, { code, codeVerifier, state, captchaToken, sessionPublicKey }) {
|
|
93
|
+
const signInOAuth = (environmentId_2, providerType_2, _d) => _tslib.__awaiter(void 0, [environmentId_2, providerType_2, _d], void 0, function* (environmentId, providerType, { code, codeVerifier, state, captchaToken, sessionPublicKey, ssoProviderId, }) {
|
|
94
94
|
const oauthRequest = {
|
|
95
95
|
captchaToken,
|
|
96
96
|
code,
|
|
97
97
|
codeVerifier,
|
|
98
98
|
sessionPublicKey,
|
|
99
|
+
ssoProviderId,
|
|
99
100
|
state,
|
|
100
101
|
};
|
|
101
102
|
try {
|
|
@@ -8,7 +8,7 @@ export declare const unlinkOAuth: ({ environmentId, primaryWalletId, verifiedCre
|
|
|
8
8
|
primaryWalletId: string | undefined;
|
|
9
9
|
verifiedCredentialId: string;
|
|
10
10
|
}) => Promise<UserProfile | undefined>;
|
|
11
|
-
export declare const signInOAuth: (environmentId: string, providerType: ProviderEnum, { code, codeVerifier, state, captchaToken, sessionPublicKey }: OauthRequest) => Promise<UserProfile | undefined>;
|
|
11
|
+
export declare const signInOAuth: (environmentId: string, providerType: ProviderEnum, { code, codeVerifier, state, captchaToken, sessionPublicKey, ssoProviderId, }: OauthRequest) => Promise<UserProfile | undefined>;
|
|
12
12
|
export declare const getOAuthResult: (environmentId: string, providerType: ProviderEnum, { state }: OauthResultRequest) => Promise<OauthResultResponse | undefined>;
|
|
13
13
|
export declare const farcasterSignIn: (environmentId: string, farcasterSignInRequest: FarcasterSignInRequest) => Promise<UserProfile | undefined>;
|
|
14
14
|
export declare const farcasterVerify: (farcasterVerifyRequest: FarcasterVerifyRequest) => Promise<UserProfile | undefined>;
|
|
@@ -86,12 +86,13 @@ const unlinkOAuth = (_c) => __awaiter(void 0, [_c], void 0, function* ({ environ
|
|
|
86
86
|
return undefined;
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
|
-
const signInOAuth = (environmentId_2, providerType_2, _d) => __awaiter(void 0, [environmentId_2, providerType_2, _d], void 0, function* (environmentId, providerType, { code, codeVerifier, state, captchaToken, sessionPublicKey }) {
|
|
89
|
+
const signInOAuth = (environmentId_2, providerType_2, _d) => __awaiter(void 0, [environmentId_2, providerType_2, _d], void 0, function* (environmentId, providerType, { code, codeVerifier, state, captchaToken, sessionPublicKey, ssoProviderId, }) {
|
|
90
90
|
const oauthRequest = {
|
|
91
91
|
captchaToken,
|
|
92
92
|
code,
|
|
93
93
|
codeVerifier,
|
|
94
94
|
sessionPublicKey,
|
|
95
|
+
ssoProviderId,
|
|
95
96
|
state,
|
|
96
97
|
};
|
|
97
98
|
try {
|
|
@@ -1069,9 +1069,9 @@ const translation = {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
*/
|
|
1071
1071
|
dyn_settings: {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1072
|
+
account_permissions_section: {
|
|
1073
|
+
title: 'Account Permissions',
|
|
1074
|
+
delegated_wallets_button: 'Delegated Wallets',
|
|
1075
1075
|
},
|
|
1076
1076
|
global_connectivity_section: {
|
|
1077
1077
|
title: 'Global Connectivity',
|
|
@@ -1240,6 +1240,18 @@ const translation = {
|
|
|
1240
1240
|
},
|
|
1241
1241
|
},
|
|
1242
1242
|
},
|
|
1243
|
+
/**
|
|
1244
|
+
* @description copy keys for wallets delegated view
|
|
1245
|
+
* @default
|
|
1246
|
+
* {
|
|
1247
|
+
* title: 'Wallets Delegated',
|
|
1248
|
+
* subtitle: 'Delegated wallets allow you to interact with your wallet on other platforms.',
|
|
1249
|
+
* },
|
|
1250
|
+
*/
|
|
1251
|
+
wallets_delegated: {
|
|
1252
|
+
title: 'Wallets Delegated',
|
|
1253
|
+
subtitle: 'Delegated wallets allow you to interact with your wallet on other platforms.',
|
|
1254
|
+
},
|
|
1243
1255
|
/**
|
|
1244
1256
|
* @description copy keys for totp mfa management view
|
|
1245
1257
|
* @default
|
|
@@ -2986,6 +2998,7 @@ const translation = {
|
|
|
2986
2998
|
dyn_wallet_delegation: {
|
|
2987
2999
|
title: 'Wallet delegation approval',
|
|
2988
3000
|
approval_required: 'Approval required',
|
|
3001
|
+
approval_requested: 'Approval requested',
|
|
2989
3002
|
approval_description: '{{appName}} is requesting access to perform automations on your behalf. You can revoke this permission at any time.',
|
|
2990
3003
|
select_wallets: 'Select Wallets',
|
|
2991
3004
|
select_all: 'Select All',
|
|
@@ -2999,9 +3012,19 @@ const translation = {
|
|
|
2999
3012
|
permissions_granted: 'Permissions granted',
|
|
3000
3013
|
permissions_description_granted: '{{appName}} has been granted access to perform automations on your behalf. You can revoke this permission at any time.',
|
|
3001
3014
|
revoke_note: 'You can always revoke these permissions in your wallet settings.',
|
|
3015
|
+
wallets_selected: 'wallets selected',
|
|
3016
|
+
edit_selections: 'Edit Selections',
|
|
3017
|
+
save_selections: 'Save Selections',
|
|
3018
|
+
edit_wallets_title: 'Edit Wallets',
|
|
3019
|
+
my_wallet: 'My Wallet',
|
|
3020
|
+
all_wallets: 'All Wallets',
|
|
3021
|
+
agreement_text: 'I understand, and agree to accept this permission request',
|
|
3022
|
+
selected_wallets: 'Selected Wallets',
|
|
3023
|
+
edit_wallets_to_delegate: 'Edit Wallets to Delegate',
|
|
3002
3024
|
something_went_wrong: 'Something went wrong',
|
|
3003
3025
|
delegation_timeout_message: 'The delegation request timed out or was rejected. Please try approving again or come back in another time.',
|
|
3004
3026
|
try_again_button: 'Try again',
|
|
3027
|
+
logout_button: 'Log out',
|
|
3005
3028
|
},
|
|
3006
3029
|
};
|
|
3007
3030
|
|
|
@@ -1063,9 +1063,9 @@ export declare const translation: {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
*/
|
|
1065
1065
|
dyn_settings: {
|
|
1066
|
-
|
|
1067
|
-
button: string;
|
|
1066
|
+
account_permissions_section: {
|
|
1068
1067
|
title: string;
|
|
1068
|
+
delegated_wallets_button: string;
|
|
1069
1069
|
};
|
|
1070
1070
|
global_connectivity_section: {
|
|
1071
1071
|
title: string;
|
|
@@ -1236,6 +1236,18 @@ export declare const translation: {
|
|
|
1236
1236
|
};
|
|
1237
1237
|
};
|
|
1238
1238
|
};
|
|
1239
|
+
/**
|
|
1240
|
+
* @description copy keys for wallets delegated view
|
|
1241
|
+
* @default
|
|
1242
|
+
* {
|
|
1243
|
+
* title: 'Wallets Delegated',
|
|
1244
|
+
* subtitle: 'Delegated wallets allow you to interact with your wallet on other platforms.',
|
|
1245
|
+
* },
|
|
1246
|
+
*/
|
|
1247
|
+
wallets_delegated: {
|
|
1248
|
+
title: string;
|
|
1249
|
+
subtitle: string;
|
|
1250
|
+
};
|
|
1239
1251
|
/**
|
|
1240
1252
|
* @description copy keys for totp mfa management view
|
|
1241
1253
|
* @default
|
|
@@ -2982,6 +2994,7 @@ export declare const translation: {
|
|
|
2982
2994
|
dyn_wallet_delegation: {
|
|
2983
2995
|
title: string;
|
|
2984
2996
|
approval_required: string;
|
|
2997
|
+
approval_requested: string;
|
|
2985
2998
|
approval_description: string;
|
|
2986
2999
|
select_wallets: string;
|
|
2987
3000
|
select_all: string;
|
|
@@ -2995,8 +3008,18 @@ export declare const translation: {
|
|
|
2995
3008
|
permissions_granted: string;
|
|
2996
3009
|
permissions_description_granted: string;
|
|
2997
3010
|
revoke_note: string;
|
|
3011
|
+
wallets_selected: string;
|
|
3012
|
+
edit_selections: string;
|
|
3013
|
+
save_selections: string;
|
|
3014
|
+
edit_wallets_title: string;
|
|
3015
|
+
my_wallet: string;
|
|
3016
|
+
all_wallets: string;
|
|
3017
|
+
agreement_text: string;
|
|
3018
|
+
selected_wallets: string;
|
|
3019
|
+
edit_wallets_to_delegate: string;
|
|
2998
3020
|
something_went_wrong: string;
|
|
2999
3021
|
delegation_timeout_message: string;
|
|
3000
3022
|
try_again_button: string;
|
|
3023
|
+
logout_button: string;
|
|
3001
3024
|
};
|
|
3002
3025
|
};
|
|
@@ -1065,9 +1065,9 @@ const translation = {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
*/
|
|
1067
1067
|
dyn_settings: {
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1068
|
+
account_permissions_section: {
|
|
1069
|
+
title: 'Account Permissions',
|
|
1070
|
+
delegated_wallets_button: 'Delegated Wallets',
|
|
1071
1071
|
},
|
|
1072
1072
|
global_connectivity_section: {
|
|
1073
1073
|
title: 'Global Connectivity',
|
|
@@ -1236,6 +1236,18 @@ const translation = {
|
|
|
1236
1236
|
},
|
|
1237
1237
|
},
|
|
1238
1238
|
},
|
|
1239
|
+
/**
|
|
1240
|
+
* @description copy keys for wallets delegated view
|
|
1241
|
+
* @default
|
|
1242
|
+
* {
|
|
1243
|
+
* title: 'Wallets Delegated',
|
|
1244
|
+
* subtitle: 'Delegated wallets allow you to interact with your wallet on other platforms.',
|
|
1245
|
+
* },
|
|
1246
|
+
*/
|
|
1247
|
+
wallets_delegated: {
|
|
1248
|
+
title: 'Wallets Delegated',
|
|
1249
|
+
subtitle: 'Delegated wallets allow you to interact with your wallet on other platforms.',
|
|
1250
|
+
},
|
|
1239
1251
|
/**
|
|
1240
1252
|
* @description copy keys for totp mfa management view
|
|
1241
1253
|
* @default
|
|
@@ -2982,6 +2994,7 @@ const translation = {
|
|
|
2982
2994
|
dyn_wallet_delegation: {
|
|
2983
2995
|
title: 'Wallet delegation approval',
|
|
2984
2996
|
approval_required: 'Approval required',
|
|
2997
|
+
approval_requested: 'Approval requested',
|
|
2985
2998
|
approval_description: '{{appName}} is requesting access to perform automations on your behalf. You can revoke this permission at any time.',
|
|
2986
2999
|
select_wallets: 'Select Wallets',
|
|
2987
3000
|
select_all: 'Select All',
|
|
@@ -2995,9 +3008,19 @@ const translation = {
|
|
|
2995
3008
|
permissions_granted: 'Permissions granted',
|
|
2996
3009
|
permissions_description_granted: '{{appName}} has been granted access to perform automations on your behalf. You can revoke this permission at any time.',
|
|
2997
3010
|
revoke_note: 'You can always revoke these permissions in your wallet settings.',
|
|
3011
|
+
wallets_selected: 'wallets selected',
|
|
3012
|
+
edit_selections: 'Edit Selections',
|
|
3013
|
+
save_selections: 'Save Selections',
|
|
3014
|
+
edit_wallets_title: 'Edit Wallets',
|
|
3015
|
+
my_wallet: 'My Wallet',
|
|
3016
|
+
all_wallets: 'All Wallets',
|
|
3017
|
+
agreement_text: 'I understand, and agree to accept this permission request',
|
|
3018
|
+
selected_wallets: 'Selected Wallets',
|
|
3019
|
+
edit_wallets_to_delegate: 'Edit Wallets to Delegate',
|
|
2998
3020
|
something_went_wrong: 'Something went wrong',
|
|
2999
3021
|
delegation_timeout_message: 'The delegation request timed out or was rejected. Please try approving again or come back in another time.',
|
|
3000
3022
|
try_again_button: 'Try again',
|
|
3023
|
+
logout_button: 'Log out',
|
|
3001
3024
|
},
|
|
3002
3025
|
};
|
|
3003
3026
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var React = require('react');
|
|
7
|
+
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n["default"] = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
+
|
|
28
|
+
var _rect, _path;
|
|
29
|
+
var _excluded = ["title", "titleId"];
|
|
30
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
31
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
32
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
33
|
+
var SvgConnect = function SvgConnect(_ref) {
|
|
34
|
+
var title = _ref.title,
|
|
35
|
+
titleId = _ref.titleId,
|
|
36
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
37
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
38
|
+
width: 28,
|
|
39
|
+
height: 28,
|
|
40
|
+
viewBox: "0 0 28 28",
|
|
41
|
+
fill: "none",
|
|
42
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
43
|
+
"aria-labelledby": titleId
|
|
44
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
45
|
+
id: titleId
|
|
46
|
+
}, title) : null, _rect || (_rect = /*#__PURE__*/React__namespace.createElement("rect", {
|
|
47
|
+
width: 28,
|
|
48
|
+
height: 28,
|
|
49
|
+
rx: 14,
|
|
50
|
+
fill: "#4779FF"
|
|
51
|
+
})), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
52
|
+
d: "M18.667 5.667a2 2 0 0 1 2 2v12.666a2 2 0 0 1-2 2H9.333a2 2 0 0 1-2-2V7.667a2 2 0 0 1 2-2h9.334Z",
|
|
53
|
+
fill: "#fff"
|
|
54
|
+
})));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
exports.ReactComponent = SvgConnect;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
var _rect, _path;
|
|
5
|
+
var _excluded = ["title", "titleId"];
|
|
6
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
9
|
+
var SvgConnect = function SvgConnect(_ref) {
|
|
10
|
+
var title = _ref.title,
|
|
11
|
+
titleId = _ref.titleId,
|
|
12
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
14
|
+
width: 28,
|
|
15
|
+
height: 28,
|
|
16
|
+
viewBox: "0 0 28 28",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
"aria-labelledby": titleId
|
|
20
|
+
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
21
|
+
id: titleId
|
|
22
|
+
}, title) : null, _rect || (_rect = /*#__PURE__*/React.createElement("rect", {
|
|
23
|
+
width: 28,
|
|
24
|
+
height: 28,
|
|
25
|
+
rx: 14,
|
|
26
|
+
fill: "#4779FF"
|
|
27
|
+
})), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
28
|
+
d: "M18.667 5.667a2 2 0 0 1 2 2v12.666a2 2 0 0 1-2 2H9.333a2 2 0 0 1-2-2V7.667a2 2 0 0 1 2-2h9.334Z",
|
|
29
|
+
fill: "#fff"
|
|
30
|
+
})));
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { SvgConnect as ReactComponent };
|
|
@@ -125,3 +125,4 @@ export { ReactComponent as WorkSuitcaseIcon } from './work-suitcase.svg';
|
|
|
125
125
|
export { ReactComponent as BackupIcon } from './backup.svg';
|
|
126
126
|
export { ReactComponent as UpgradeIcon } from './upgrade.svg';
|
|
127
127
|
export { ReactComponent as WhiteCheck } from './white-check-black-circle.svg';
|
|
128
|
+
export { ReactComponent as ConnectIcon } from './connect.svg';
|