@dynamic-labs/sdk-react-core 4.10.0 → 4.10.2
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 +17 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/api.d.ts +1 -0
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.cjs +1 -1
- package/src/lib/components/AuthProviderIcon/AuthProviderIcon.js +1 -1
- package/src/lib/components/DynamicSpinner/DynamicSpinner.d.ts +3 -0
- package/src/lib/components/DynamicSpinner/index.d.ts +1 -0
- package/src/lib/components/IconWithSpinner/IconWithSpinner.cjs +2 -5
- package/src/lib/components/IconWithSpinner/IconWithSpinner.d.ts +3 -3
- package/src/lib/components/IconWithSpinner/IconWithSpinner.js +2 -5
- package/src/lib/components/Popper/PopperContext/PopperContext.cjs +2 -2
- package/src/lib/components/Popper/PopperContext/PopperContext.d.ts +2 -1
- package/src/lib/components/Popper/PopperContext/PopperContext.js +2 -2
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.cjs +7 -7
- package/src/lib/components/QrCodeWrapper/QrCodeWrapper.js +7 -7
- package/src/lib/components/SocialSignIn/SocialSignIn.cjs +1 -1
- package/src/lib/components/SocialSignIn/SocialSignIn.js +1 -1
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.cjs +8 -8
- package/src/lib/components/TransactionStatusLayout/TransactionStatusLayout.js +8 -8
- package/src/lib/components/Typography/Typography.cjs +1 -0
- package/src/lib/components/Typography/Typography.js +1 -0
- package/src/lib/components/Typography/Typography.types.d.ts +1 -1
- package/src/lib/components/index.d.ts +8 -7
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs +4 -0
- package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js +4 -0
- package/src/lib/context/SocialRedirectContext/hooks/useRedirectSocialHandler/useRedirectSocialHandler.cjs +1 -1
- package/src/lib/context/SocialRedirectContext/hooks/useRedirectSocialHandler/useRedirectSocialHandler.js +1 -1
- package/src/lib/data/api/index.d.ts +1 -0
- package/src/lib/data/api/transactions/index.d.ts +1 -0
- package/src/lib/events/dynamicEvents.cjs +1 -0
- package/src/lib/events/dynamicEvents.d.ts +2 -2
- package/src/lib/events/dynamicEvents.js +1 -0
- package/src/lib/events/ui.d.ts +8 -0
- package/src/lib/main.global.cjs +1 -1
- package/src/lib/main.global.js +1 -1
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.cjs +8 -8
- package/src/lib/modals/SignMessageConfirmationModal/SignMessageConfirmationModal.js +8 -8
- package/src/lib/shared/assets/index.d.ts +2 -1
- package/src/lib/shared/types/dynamicEventsCallbacks.d.ts +6 -1
- package/src/lib/shared/types/wallets.d.ts +10 -0
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/hooks/events/useDynamicEvents/useDynamicEvents.d.ts +1 -1
- package/src/lib/utils/hooks/useMfa/useMfa.cjs +56 -39
- package/src/lib/utils/hooks/useMfa/useMfa.d.ts +5 -0
- package/src/lib/utils/hooks/useMfa/useMfa.js +57 -40
- package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.cjs +23 -82
- package/src/lib/utils/hooks/useRefreshUser/useRefreshUser.js +23 -82
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.cjs +1 -1
- package/src/lib/utils/hooks/useSocialAccounts/useSocialAccounts.js +1 -1
- package/src/lib/utils/hooks/useSocialAuth/farcaster/farcaster.cjs +13 -6
- package/src/lib/utils/hooks/useSocialAuth/farcaster/farcaster.d.ts +13 -3
- package/src/lib/utils/hooks/useSocialAuth/farcaster/farcaster.js +13 -6
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.cjs +13 -12
- package/src/lib/utils/hooks/useSocialAuth/useSocialAuth.js +13 -12
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.cjs +1 -1
- package/src/lib/utils/hooks/useSyncEmbeddedWalletFlow/useSyncEmbeddedWalletFlow.js +1 -1
- package/src/lib/utils/hooks/useSyncOnboardingFlow/useSyncOnboardingFlow.cjs +1 -1
- package/src/lib/utils/hooks/useSyncOnboardingFlow/useSyncOnboardingFlow.js +1 -1
- package/src/lib/utils/hooks/useTelegramLogin/useTelegramLogin.cjs +1 -1
- package/src/lib/utils/hooks/useTelegramLogin/useTelegramLogin.js +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.cjs +1 -1
- package/src/lib/utils/hooks/useVerifyWallet/useVerifyWallet.js +1 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.cjs +1 -1
- package/src/lib/views/LoginView/sections/EmailSignInSection/LoginEmailForm.js +1 -1
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.cjs +1 -1
- package/src/lib/views/MfaRecoveryView/MfaRecoveryView.js +1 -1
- package/src/lib/views/MfaVerificationView/MfaVerificationView.cjs +4 -4
- package/src/lib/views/MfaVerificationView/MfaVerificationView.js +4 -4
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.cjs +1 -1
- package/src/lib/views/Passkey/PasskeyRecovery/AddRecoveryEmail/AddRecoveryEmail.js +1 -1
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.cjs +1 -1
- package/src/lib/views/SmsVerification/useSmsVerification/useSmsVerification.js +1 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.cjs +1 -1
- package/src/lib/views/TransactionConfirmationView/TransactionConfirmationView.js +1 -1
- package/src/lib/views/WalletList/hooks/useTabState.cjs +29 -4
- package/src/lib/views/WalletList/hooks/useTabState.d.ts +2 -2
- package/src/lib/views/WalletList/hooks/useTabState.js +30 -5
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.cjs +1 -1
- package/src/lib/views/WalletSignSpinnerView/WalletSignSpinnerView.js +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.cjs +1 -1
- package/src/lib/widgets/DynamicBridgeWidget/components/DynamicBridgeUserProfile/DynamicBridgeUserProfile.js +1 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/components/Wallet/Wallet.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/AccountAndSecuritySettingsView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/AccountAndSecuritySettingsView/AccountAndSecuritySettingsView.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.cjs +1 -1
- package/src/lib/widgets/DynamicWidget/views/GlobalWalletView/GlobalWalletView.js +1 -1
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.cjs +2 -2
- package/src/lib/widgets/DynamicWidget/views/SettingsView/SettingsView.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.10.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.10.1...v4.10.2) (2025-04-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add walletTabSelected event ([#8430](https://github.com/dynamic-labs/dynamic-auth/issues/8430)) ([01ef815](https://github.com/dynamic-labs/dynamic-auth/commit/01ef815330e6c5433f7c135f561ed86621cc2bd9))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* disconect wallets on logout ([#8399](https://github.com/dynamic-labs/dynamic-auth/issues/8399)) ([148bc0d](https://github.com/dynamic-labs/dynamic-auth/commit/148bc0dd175048fa8a9a675383e8e6d93c7d16ac))
|
|
13
|
+
* ensure primary wallet is still a valid credential when calling resfreshUser ([#8439](https://github.com/dynamic-labs/dynamic-auth/issues/8439)) ([2e567e5](https://github.com/dynamic-labs/dynamic-auth/commit/2e567e53ea7738d4a42f3d54bb40a294403a1c36))
|
|
14
|
+
* **global-wallet-client:** ensure multiple global wallets can announce in same page ([#8421](https://github.com/dynamic-labs/dynamic-auth/issues/8421)) ([c55044a](https://github.com/dynamic-labs/dynamic-auth/commit/c55044a50f2d1c9417a3a2d85851c5522834a20a))
|
|
15
|
+
* **global-wallet-popup:** ensure popup icon can be viewed ([#8424](https://github.com/dynamic-labs/dynamic-auth/issues/8424)) ([f960eeb](https://github.com/dynamic-labs/dynamic-auth/commit/f960eebcdd875e1ff1779cd7be946d8342bea964))
|
|
16
|
+
|
|
17
|
+
### [4.10.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.10.0...v4.10.1) (2025-03-31)
|
|
18
|
+
|
|
2
19
|
## [4.10.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.12...v4.10.0) (2025-03-30)
|
|
3
20
|
|
|
4
21
|
|
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.10.
|
|
3
|
+
"version": "4.10.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@dynamic-labs/sdk-api-core": "0.0.650",
|
|
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.10.
|
|
18
|
-
"@dynamic-labs/iconic": "4.10.
|
|
19
|
-
"@dynamic-labs/logger": "4.10.
|
|
20
|
-
"@dynamic-labs/multi-wallet": "4.10.
|
|
21
|
-
"@dynamic-labs/rpc-providers": "4.10.
|
|
22
|
-
"@dynamic-labs/store": "4.10.
|
|
23
|
-
"@dynamic-labs/types": "4.10.
|
|
24
|
-
"@dynamic-labs/utils": "4.10.
|
|
25
|
-
"@dynamic-labs/wallet-book": "4.10.
|
|
26
|
-
"@dynamic-labs/wallet-connector-core": "4.10.
|
|
17
|
+
"@dynamic-labs/assert-package-version": "4.10.2",
|
|
18
|
+
"@dynamic-labs/iconic": "4.10.2",
|
|
19
|
+
"@dynamic-labs/logger": "4.10.2",
|
|
20
|
+
"@dynamic-labs/multi-wallet": "4.10.2",
|
|
21
|
+
"@dynamic-labs/rpc-providers": "4.10.2",
|
|
22
|
+
"@dynamic-labs/store": "4.10.2",
|
|
23
|
+
"@dynamic-labs/types": "4.10.2",
|
|
24
|
+
"@dynamic-labs/utils": "4.10.2",
|
|
25
|
+
"@dynamic-labs/wallet-book": "4.10.2",
|
|
26
|
+
"@dynamic-labs/wallet-connector-core": "4.10.2",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
package/src/api.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/data/api';
|
|
@@ -60,6 +60,7 @@ require('../../store/state/walletOptions/walletOptions.cjs');
|
|
|
60
60
|
require('react-i18next');
|
|
61
61
|
require('../Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
62
62
|
require('../Alert/Alert.cjs');
|
|
63
|
+
var WalletIconWithNetwork = require('../../widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs');
|
|
63
64
|
require('../ShadowDOM/ShadowDOM.cjs');
|
|
64
65
|
require('../IconButton/IconButton.cjs');
|
|
65
66
|
require('../InlineWidget/InlineWidget.cjs');
|
|
@@ -75,7 +76,6 @@ require('../Popper/Popper/Popper.cjs');
|
|
|
75
76
|
require('../Popper/PopperContext/PopperContext.cjs');
|
|
76
77
|
require('react-focus-lock');
|
|
77
78
|
require('qrcode');
|
|
78
|
-
var WalletIconWithNetwork = require('../../widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.cjs');
|
|
79
79
|
require('formik');
|
|
80
80
|
require('../../utils/hooks/useSubdomainCheck/useSubdomainCheck.cjs');
|
|
81
81
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
@@ -56,6 +56,7 @@ import '../../store/state/walletOptions/walletOptions.js';
|
|
|
56
56
|
import 'react-i18next';
|
|
57
57
|
import '../Accordion/components/AccordionItem/AccordionItem.js';
|
|
58
58
|
import '../Alert/Alert.js';
|
|
59
|
+
import { WalletIconWithNetwork } from '../../widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js';
|
|
59
60
|
import '../ShadowDOM/ShadowDOM.js';
|
|
60
61
|
import '../IconButton/IconButton.js';
|
|
61
62
|
import '../InlineWidget/InlineWidget.js';
|
|
@@ -71,7 +72,6 @@ import '../Popper/Popper/Popper.js';
|
|
|
71
72
|
import '../Popper/PopperContext/PopperContext.js';
|
|
72
73
|
import 'react-focus-lock';
|
|
73
74
|
import 'qrcode';
|
|
74
|
-
import { WalletIconWithNetwork } from '../../widgets/DynamicWidget/components/WalletIconWithNetwork/WalletIconWithNetwork.js';
|
|
75
75
|
import 'formik';
|
|
76
76
|
import '../../utils/hooks/useSubdomainCheck/useSubdomainCheck.js';
|
|
77
77
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DynamicSpinner';
|
|
@@ -31,15 +31,12 @@ var Spinner = require('./Spinner/Spinner.cjs');
|
|
|
31
31
|
var Indicator = require('./Indicator/Indicator.cjs');
|
|
32
32
|
|
|
33
33
|
const iconRatio = 7 / 11;
|
|
34
|
-
const IconWithSpinner = ({ iconSize = 24, Icon, isSpinning = false, className
|
|
34
|
+
const IconWithSpinner = ({ iconSize = 24, Icon, isSpinning = false, className, style, indicator, customSpinnerColor, treatAsFunctionComponent, }) => {
|
|
35
35
|
const realIconSize = iconSize * iconRatio;
|
|
36
36
|
const spinnerIconSize = iconSize / 2;
|
|
37
37
|
const effectiveContainerClassName = classNames.classNames('icon-with-spinner__container', className);
|
|
38
38
|
const IconAsFC = Icon;
|
|
39
|
-
return (jsxRuntime.jsxs("div", { className: effectiveContainerClassName, style: {
|
|
40
|
-
height: pixelToRem.pixelToRem(iconSize),
|
|
41
|
-
width: pixelToRem.pixelToRem(iconSize),
|
|
42
|
-
}, children: [Icon && (jsxRuntime.jsxs("div", { style: {
|
|
39
|
+
return (jsxRuntime.jsxs("div", { className: effectiveContainerClassName, style: Object.assign({ height: pixelToRem.pixelToRem(iconSize), width: pixelToRem.pixelToRem(iconSize) }, style), children: [Icon && (jsxRuntime.jsxs("div", { style: {
|
|
43
40
|
height: pixelToRem.pixelToRem(realIconSize),
|
|
44
41
|
width: pixelToRem.pixelToRem(realIconSize),
|
|
45
42
|
}, className: 'icon-with-spinner__icon-container', children: [treatAsFunctionComponent || typeof Icon === 'function' ? (jsxRuntime.jsx(IconAsFC, { height: realIconSize, width: realIconSize })) : (Icon), indicator && jsxRuntime.jsx(Indicator.Indicator, { indicator: indicator, iconSize: iconSize })] })), isSpinning && !utils.isLegacySafari() && (jsxRuntime.jsx("div", { className: 'icon-with-spinner__spinner-container icon-with-spinner__animation', "data-chromatic": 'ignore', style: {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Iconic } from '@dynamic-labs/iconic';
|
|
3
3
|
import { Icon } from '../../shared';
|
|
4
|
-
|
|
4
|
+
import { ClassStyleProps } from '../../utils/types';
|
|
5
|
+
type IconWithSpinnerProps = ClassStyleProps & {
|
|
5
6
|
Icon?: Icon | Iconic | ReactElement | null;
|
|
6
7
|
/** This forces fo render the Icon as an FC even if it does not evaluate to type 'function' */
|
|
7
8
|
treatAsFunctionComponent?: boolean;
|
|
8
|
-
className?: string;
|
|
9
9
|
customSpinnerColor?: string;
|
|
10
10
|
iconSize?: number;
|
|
11
11
|
indicator?: 'connected' | 'walletConnect';
|
|
12
12
|
isSpinning?: boolean;
|
|
13
13
|
};
|
|
14
14
|
export declare const iconRatio: number;
|
|
15
|
-
export declare const IconWithSpinner: ({ iconSize, Icon, isSpinning, className, indicator, customSpinnerColor, treatAsFunctionComponent, }: IconWithSpinnerProps) => JSX.Element;
|
|
15
|
+
export declare const IconWithSpinner: ({ iconSize, Icon, isSpinning, className, style, indicator, customSpinnerColor, treatAsFunctionComponent, }: IconWithSpinnerProps) => JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -27,15 +27,12 @@ import { Spinner } from './Spinner/Spinner.js';
|
|
|
27
27
|
import { Indicator } from './Indicator/Indicator.js';
|
|
28
28
|
|
|
29
29
|
const iconRatio = 7 / 11;
|
|
30
|
-
const IconWithSpinner = ({ iconSize = 24, Icon, isSpinning = false, className
|
|
30
|
+
const IconWithSpinner = ({ iconSize = 24, Icon, isSpinning = false, className, style, indicator, customSpinnerColor, treatAsFunctionComponent, }) => {
|
|
31
31
|
const realIconSize = iconSize * iconRatio;
|
|
32
32
|
const spinnerIconSize = iconSize / 2;
|
|
33
33
|
const effectiveContainerClassName = classNames('icon-with-spinner__container', className);
|
|
34
34
|
const IconAsFC = Icon;
|
|
35
|
-
return (jsxs("div", { className: effectiveContainerClassName, style: {
|
|
36
|
-
height: pixelToRem(iconSize),
|
|
37
|
-
width: pixelToRem(iconSize),
|
|
38
|
-
}, children: [Icon && (jsxs("div", { style: {
|
|
35
|
+
return (jsxs("div", { className: effectiveContainerClassName, style: Object.assign({ height: pixelToRem(iconSize), width: pixelToRem(iconSize) }, style), children: [Icon && (jsxs("div", { style: {
|
|
39
36
|
height: pixelToRem(realIconSize),
|
|
40
37
|
width: pixelToRem(realIconSize),
|
|
41
38
|
}, className: 'icon-with-spinner__icon-container', children: [treatAsFunctionComponent || typeof Icon === 'function' ? (jsx(IconAsFC, { height: realIconSize, width: realIconSize })) : (Icon), indicator && jsx(Indicator, { indicator: indicator, iconSize: iconSize })] })), isSpinning && !isLegacySafari() && (jsx("div", { className: 'icon-with-spinner__spinner-container icon-with-spinner__animation', "data-chromatic": 'ignore', style: {
|
|
@@ -7,12 +7,12 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
|
|
9
9
|
const popperContext = React.createContext(undefined);
|
|
10
|
-
const PopperProvider = ({ children }) => {
|
|
10
|
+
const PopperProvider = ({ children, className, style, }) => {
|
|
11
11
|
const { Provider } = popperContext;
|
|
12
12
|
const containerRef = React.useRef(null);
|
|
13
13
|
return (jsxRuntime.jsx(Provider, { value: {
|
|
14
14
|
containerRef,
|
|
15
|
-
}, children: jsxRuntime.jsx("div", { ref: containerRef, style: { position: 'relative' }, children: children }) }));
|
|
15
|
+
}, children: jsxRuntime.jsx("div", { ref: containerRef, style: Object.assign({ position: 'relative' }, style), className: className, children: children }) }));
|
|
16
16
|
};
|
|
17
17
|
const usePopper = () => {
|
|
18
18
|
const context = React.useContext(popperContext);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FC, MutableRefObject, PropsWithChildren } from 'react';
|
|
2
|
+
import { ClassStyleProps } from '../../../utils/types';
|
|
2
3
|
type PopperContext = {
|
|
3
4
|
containerRef: MutableRefObject<HTMLDivElement | null>;
|
|
4
5
|
};
|
|
5
6
|
export declare const popperContext: import("react").Context<PopperContext | undefined>;
|
|
6
|
-
export declare const PopperProvider: FC<PropsWithChildren
|
|
7
|
+
export declare const PopperProvider: FC<PropsWithChildren<ClassStyleProps>>;
|
|
7
8
|
export declare const usePopper: () => PopperContext;
|
|
8
9
|
export {};
|
|
@@ -3,12 +3,12 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { createContext, useContext, useRef } from 'react';
|
|
4
4
|
|
|
5
5
|
const popperContext = createContext(undefined);
|
|
6
|
-
const PopperProvider = ({ children }) => {
|
|
6
|
+
const PopperProvider = ({ children, className, style, }) => {
|
|
7
7
|
const { Provider } = popperContext;
|
|
8
8
|
const containerRef = useRef(null);
|
|
9
9
|
return (jsx(Provider, { value: {
|
|
10
10
|
containerRef,
|
|
11
|
-
}, children: jsx("div", { ref: containerRef, style: { position: 'relative' }, children: children }) }));
|
|
11
|
+
}, children: jsx("div", { ref: containerRef, style: Object.assign({ position: 'relative' }, style), className: className, children: children }) }));
|
|
12
12
|
};
|
|
13
13
|
const usePopper = () => {
|
|
14
14
|
const context = useContext(popperContext);
|
|
@@ -10,19 +10,19 @@ require('../Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
|
10
10
|
require('../Alert/Alert.cjs');
|
|
11
11
|
var AnimatePresence = require('../AnimatePresence/AnimatePresence.cjs');
|
|
12
12
|
var Typography = require('../Typography/Typography.cjs');
|
|
13
|
-
require('../../../../_virtual/_tslib.cjs');
|
|
14
|
-
require('@dynamic-labs/sdk-api-core');
|
|
15
|
-
require('../../shared/logger.cjs');
|
|
16
13
|
require('@dynamic-labs/iconic');
|
|
14
|
+
require('@dynamic-labs/wallet-book');
|
|
17
15
|
require('@dynamic-labs/wallet-connector-core');
|
|
16
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
17
|
+
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
18
|
+
require('@dynamic-labs/sdk-api-core');
|
|
19
|
+
require('../../shared/logger.cjs');
|
|
18
20
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
19
|
-
require('@dynamic-labs/wallet-book');
|
|
20
21
|
require('../../utils/constants/colors.cjs');
|
|
21
22
|
require('../../utils/constants/values.cjs');
|
|
22
23
|
require('../../shared/consts/index.cjs');
|
|
23
|
-
require('react-dom');
|
|
24
24
|
require('../../events/dynamicEvents.cjs');
|
|
25
|
-
require('
|
|
25
|
+
require('../../../../_virtual/_tslib.cjs');
|
|
26
26
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
27
27
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
28
28
|
require('@dynamic-labs/multi-wallet');
|
|
@@ -34,11 +34,11 @@ require('../../store/state/user/user.cjs');
|
|
|
34
34
|
require('../../locale/locale.cjs');
|
|
35
35
|
require('../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
36
36
|
require('../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
37
|
-
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
38
37
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
39
38
|
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
40
39
|
require('../../store/state/connectedWalletsInfo/connectedWalletsInfo.cjs');
|
|
41
40
|
require('../../context/VerificationContext/VerificationContext.cjs');
|
|
41
|
+
require('react-dom');
|
|
42
42
|
require('../../utils/functions/compareChains/compareChains.cjs');
|
|
43
43
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
44
44
|
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.cjs');
|
|
@@ -6,19 +6,19 @@ import '../Accordion/components/AccordionItem/AccordionItem.js';
|
|
|
6
6
|
import '../Alert/Alert.js';
|
|
7
7
|
import { AnimatePresence } from '../AnimatePresence/AnimatePresence.js';
|
|
8
8
|
import { Typography } from '../Typography/Typography.js';
|
|
9
|
-
import '../../../../_virtual/_tslib.js';
|
|
10
|
-
import '@dynamic-labs/sdk-api-core';
|
|
11
|
-
import '../../shared/logger.js';
|
|
12
9
|
import '@dynamic-labs/iconic';
|
|
10
|
+
import '@dynamic-labs/wallet-book';
|
|
13
11
|
import '@dynamic-labs/wallet-connector-core';
|
|
12
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
13
|
+
import '../../context/DynamicContext/DynamicContext.js';
|
|
14
|
+
import '@dynamic-labs/sdk-api-core';
|
|
15
|
+
import '../../shared/logger.js';
|
|
14
16
|
import '../../context/ViewContext/ViewContext.js';
|
|
15
|
-
import '@dynamic-labs/wallet-book';
|
|
16
17
|
import '../../utils/constants/colors.js';
|
|
17
18
|
import '../../utils/constants/values.js';
|
|
18
19
|
import '../../shared/consts/index.js';
|
|
19
|
-
import 'react-dom';
|
|
20
20
|
import '../../events/dynamicEvents.js';
|
|
21
|
-
import '
|
|
21
|
+
import '../../../../_virtual/_tslib.js';
|
|
22
22
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
23
23
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
24
24
|
import '@dynamic-labs/multi-wallet';
|
|
@@ -30,11 +30,11 @@ import '../../store/state/user/user.js';
|
|
|
30
30
|
import '../../locale/locale.js';
|
|
31
31
|
import '../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
32
32
|
import '../../store/state/primaryWalletId/primaryWalletId.js';
|
|
33
|
-
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
34
33
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
35
34
|
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
36
35
|
import '../../store/state/connectedWalletsInfo/connectedWalletsInfo.js';
|
|
37
36
|
import '../../context/VerificationContext/VerificationContext.js';
|
|
37
|
+
import 'react-dom';
|
|
38
38
|
import '../../utils/functions/compareChains/compareChains.js';
|
|
39
39
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
40
40
|
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.js';
|
|
@@ -61,9 +61,9 @@ require('../Alert/Alert.cjs');
|
|
|
61
61
|
var Typography = require('../Typography/Typography.cjs');
|
|
62
62
|
var Icon = require('../Icon/Icon.cjs');
|
|
63
63
|
require('../ShadowDOM/ShadowDOM.cjs');
|
|
64
|
+
var IconWithSpinner = require('../IconWithSpinner/IconWithSpinner.cjs');
|
|
64
65
|
require('../IconButton/IconButton.cjs');
|
|
65
66
|
var IconListTile = require('../IconListTile/IconListTile.cjs');
|
|
66
|
-
var IconWithSpinner = require('../IconWithSpinner/IconWithSpinner.cjs');
|
|
67
67
|
require('../InlineWidget/InlineWidget.cjs');
|
|
68
68
|
require('../Input/Input.cjs');
|
|
69
69
|
require('../IsBrowser/IsBrowser.cjs');
|
|
@@ -57,9 +57,9 @@ import '../Alert/Alert.js';
|
|
|
57
57
|
import { Typography } from '../Typography/Typography.js';
|
|
58
58
|
import { Icon } from '../Icon/Icon.js';
|
|
59
59
|
import '../ShadowDOM/ShadowDOM.js';
|
|
60
|
+
import { IconWithSpinner } from '../IconWithSpinner/IconWithSpinner.js';
|
|
60
61
|
import '../IconButton/IconButton.js';
|
|
61
62
|
import { IconListTile } from '../IconListTile/IconListTile.js';
|
|
62
|
-
import { IconWithSpinner } from '../IconWithSpinner/IconWithSpinner.js';
|
|
63
63
|
import '../InlineWidget/InlineWidget.js';
|
|
64
64
|
import '../Input/Input.js';
|
|
65
65
|
import '../IsBrowser/IsBrowser.js';
|
|
@@ -12,23 +12,21 @@ var Alert = require('../Alert/Alert.cjs');
|
|
|
12
12
|
var AnimatePresence = require('../AnimatePresence/AnimatePresence.cjs');
|
|
13
13
|
require('react');
|
|
14
14
|
var Typography = require('../Typography/Typography.cjs');
|
|
15
|
-
require('@dynamic-labs/sdk-api-core');
|
|
16
|
-
require('../../shared/logger.cjs');
|
|
17
15
|
require('@dynamic-labs/iconic');
|
|
16
|
+
require('@dynamic-labs/wallet-book');
|
|
18
17
|
require('@dynamic-labs/wallet-connector-core');
|
|
18
|
+
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
19
|
+
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
20
|
+
require('@dynamic-labs/sdk-api-core');
|
|
21
|
+
require('../../shared/logger.cjs');
|
|
19
22
|
var checkBlue = require('../../shared/assets/check-blue.cjs');
|
|
20
23
|
var close = require('../../shared/assets/close.cjs');
|
|
21
24
|
require('../../context/ViewContext/ViewContext.cjs');
|
|
22
|
-
require('@dynamic-labs/wallet-book');
|
|
23
25
|
var shortenWalletAddress = require('../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.cjs');
|
|
24
26
|
require('../../utils/constants/colors.cjs');
|
|
25
27
|
require('../../utils/constants/values.cjs');
|
|
26
28
|
require('../../shared/consts/index.cjs');
|
|
27
|
-
var Icon = require('../Icon/Icon.cjs');
|
|
28
|
-
require('react-dom');
|
|
29
29
|
require('../../events/dynamicEvents.cjs');
|
|
30
|
-
require('../../context/DynamicContext/DynamicContext.cjs');
|
|
31
|
-
var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
32
30
|
require('../../context/CaptchaContext/CaptchaContext.cjs');
|
|
33
31
|
require('../../context/ErrorContext/ErrorContext.cjs');
|
|
34
32
|
require('@dynamic-labs/multi-wallet');
|
|
@@ -41,11 +39,11 @@ require('../../store/state/user/user.cjs');
|
|
|
41
39
|
require('../../locale/locale.cjs');
|
|
42
40
|
require('../../store/state/dynamicContextProps/dynamicContextProps.cjs');
|
|
43
41
|
require('../../store/state/primaryWalletId/primaryWalletId.cjs');
|
|
44
|
-
require('../../context/AccessDeniedContext/AccessDeniedContext.cjs');
|
|
45
42
|
require('../../context/AccountExistsContext/AccountExistsContext.cjs');
|
|
46
43
|
require('../../context/UserWalletsContext/UserWalletsContext.cjs');
|
|
47
44
|
require('../../store/state/connectedWalletsInfo/connectedWalletsInfo.cjs');
|
|
48
45
|
require('../../context/VerificationContext/VerificationContext.cjs');
|
|
46
|
+
require('react-dom');
|
|
49
47
|
require('../../utils/functions/compareChains/compareChains.cjs');
|
|
50
48
|
require('../../context/ThemeContext/ThemeContext.cjs');
|
|
51
49
|
require('../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.cjs');
|
|
@@ -75,6 +73,7 @@ require('../OverlayCardBase/OverlayCardTarget/OverlayCardTarget.cjs');
|
|
|
75
73
|
require('../../context/WalletGroupContext/WalletGroupContext.cjs');
|
|
76
74
|
require('../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.cjs');
|
|
77
75
|
require('react-focus-lock');
|
|
76
|
+
var Icon = require('../Icon/Icon.cjs');
|
|
78
77
|
require('../../widgets/DynamicWidget/context/DynamicWidgetContext.cjs');
|
|
79
78
|
var IconButton = require('../IconButton/IconButton.cjs');
|
|
80
79
|
require('../MenuList/Dropdown/Dropdown.cjs');
|
|
@@ -104,6 +103,7 @@ require('../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.cjs');
|
|
|
104
103
|
require('../../store/state/connectorsInitializing/connectorsInitializing.cjs');
|
|
105
104
|
require('../../store/state/tokenBalances.cjs');
|
|
106
105
|
require('../../shared/utils/functions/getInitialUrl/getInitialUrl.cjs');
|
|
106
|
+
var useInternalDynamicContext = require('../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.cjs');
|
|
107
107
|
require('../InlineWidget/InlineWidget.cjs');
|
|
108
108
|
require('../IsBrowser/IsBrowser.cjs');
|
|
109
109
|
require('../Popper/Popper/Popper.cjs');
|
|
@@ -8,23 +8,21 @@ import { Alert } from '../Alert/Alert.js';
|
|
|
8
8
|
import { AnimatePresence } from '../AnimatePresence/AnimatePresence.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import { Typography } from '../Typography/Typography.js';
|
|
11
|
-
import '@dynamic-labs/sdk-api-core';
|
|
12
|
-
import '../../shared/logger.js';
|
|
13
11
|
import '@dynamic-labs/iconic';
|
|
12
|
+
import '@dynamic-labs/wallet-book';
|
|
14
13
|
import '@dynamic-labs/wallet-connector-core';
|
|
14
|
+
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
15
|
+
import '../../context/DynamicContext/DynamicContext.js';
|
|
16
|
+
import '@dynamic-labs/sdk-api-core';
|
|
17
|
+
import '../../shared/logger.js';
|
|
15
18
|
import { ReactComponent as SvgCheckBlue } from '../../shared/assets/check-blue.js';
|
|
16
19
|
import { ReactComponent as SvgClose } from '../../shared/assets/close.js';
|
|
17
20
|
import '../../context/ViewContext/ViewContext.js';
|
|
18
|
-
import '@dynamic-labs/wallet-book';
|
|
19
21
|
import { shortenWalletAddress } from '../../shared/utils/functions/shortenWalletAddress/shortenWalletAddress.js';
|
|
20
22
|
import '../../utils/constants/colors.js';
|
|
21
23
|
import '../../utils/constants/values.js';
|
|
22
24
|
import '../../shared/consts/index.js';
|
|
23
|
-
import { Icon } from '../Icon/Icon.js';
|
|
24
|
-
import 'react-dom';
|
|
25
25
|
import '../../events/dynamicEvents.js';
|
|
26
|
-
import '../../context/DynamicContext/DynamicContext.js';
|
|
27
|
-
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
28
26
|
import '../../context/CaptchaContext/CaptchaContext.js';
|
|
29
27
|
import '../../context/ErrorContext/ErrorContext.js';
|
|
30
28
|
import '@dynamic-labs/multi-wallet';
|
|
@@ -37,11 +35,11 @@ import '../../store/state/user/user.js';
|
|
|
37
35
|
import '../../locale/locale.js';
|
|
38
36
|
import '../../store/state/dynamicContextProps/dynamicContextProps.js';
|
|
39
37
|
import '../../store/state/primaryWalletId/primaryWalletId.js';
|
|
40
|
-
import '../../context/AccessDeniedContext/AccessDeniedContext.js';
|
|
41
38
|
import '../../context/AccountExistsContext/AccountExistsContext.js';
|
|
42
39
|
import '../../context/UserWalletsContext/UserWalletsContext.js';
|
|
43
40
|
import '../../store/state/connectedWalletsInfo/connectedWalletsInfo.js';
|
|
44
41
|
import '../../context/VerificationContext/VerificationContext.js';
|
|
42
|
+
import 'react-dom';
|
|
45
43
|
import '../../utils/functions/compareChains/compareChains.js';
|
|
46
44
|
import '../../context/ThemeContext/ThemeContext.js';
|
|
47
45
|
import '../../utils/hooks/useUserUpdateRequest/useUpdateUser/userFieldsSchema.js';
|
|
@@ -71,6 +69,7 @@ import '../OverlayCardBase/OverlayCardTarget/OverlayCardTarget.js';
|
|
|
71
69
|
import '../../context/WalletGroupContext/WalletGroupContext.js';
|
|
72
70
|
import '../../widgets/DynamicWidget/components/DynamicWidgetHeader/DynamicWidgetHeader.js';
|
|
73
71
|
import 'react-focus-lock';
|
|
72
|
+
import { Icon } from '../Icon/Icon.js';
|
|
74
73
|
import '../../widgets/DynamicWidget/context/DynamicWidgetContext.js';
|
|
75
74
|
import { IconButton } from '../IconButton/IconButton.js';
|
|
76
75
|
import '../MenuList/Dropdown/Dropdown.js';
|
|
@@ -100,6 +99,7 @@ import '../PasskeyCreatedSuccessBanner/PasskeyCreatedSuccessBanner.js';
|
|
|
100
99
|
import '../../store/state/connectorsInitializing/connectorsInitializing.js';
|
|
101
100
|
import '../../store/state/tokenBalances.js';
|
|
102
101
|
import '../../shared/utils/functions/getInitialUrl/getInitialUrl.js';
|
|
102
|
+
import { useInternalDynamicContext } from '../../context/DynamicContext/useDynamicContext/useInternalDynamicContext.js';
|
|
103
103
|
import '../InlineWidget/InlineWidget.js';
|
|
104
104
|
import '../IsBrowser/IsBrowser.js';
|
|
105
105
|
import '../Popper/Popper/Popper.js';
|
|
@@ -27,6 +27,7 @@ const Typography = (_a) => {
|
|
|
27
27
|
regular: 'typography--regular',
|
|
28
28
|
};
|
|
29
29
|
const colorClassNameMap = {
|
|
30
|
+
'alert-1': 'typography--alert-1',
|
|
30
31
|
'brand-primary': 'typography--brand-primary',
|
|
31
32
|
'current-color': 'typography--current-color',
|
|
32
33
|
'error-1': 'typography--dynamic-error-1',
|
|
@@ -23,6 +23,7 @@ const Typography = (_a) => {
|
|
|
23
23
|
regular: 'typography--regular',
|
|
24
24
|
};
|
|
25
25
|
const colorClassNameMap = {
|
|
26
|
+
'alert-1': 'typography--alert-1',
|
|
26
27
|
'brand-primary': 'typography--brand-primary',
|
|
27
28
|
'current-color': 'typography--current-color',
|
|
28
29
|
'error-1': 'typography--dynamic-error-1',
|
|
@@ -3,7 +3,7 @@ import { CopyKey } from '../../shared';
|
|
|
3
3
|
import { ClassStyleProps } from '../../utils/types';
|
|
4
4
|
export type TypographyTag = ElementType;
|
|
5
5
|
export type TypographyVariant = 'title' | 'body_normal' | 'body_small' | 'body_mini' | 'button_primary' | 'button_secondary' | 'button_tertiary' | 'numbers_display' | 'numbers_big' | 'numbers_medium';
|
|
6
|
-
export type TypographyColor = 'primary' | 'secondary' | 'brand-primary' | 'tertiary' | 'link' | 'error-1' | 'error-2' | 'tooltip' | 'green-1' | 'inherit' | 'white' | 'current-color';
|
|
6
|
+
export type TypographyColor = 'primary' | 'secondary' | 'brand-primary' | 'tertiary' | 'link' | 'error-1' | 'error-2' | 'tooltip' | 'green-1' | 'inherit' | 'white' | 'alert-1' | 'current-color';
|
|
7
7
|
export type TypographyWeight = 'regular' | 'medium' | 'bold';
|
|
8
8
|
export type TypographyTransform = 'uppercase';
|
|
9
9
|
export type TypographyProps<TAG extends ElementType = 'p'> = {
|
|
@@ -2,6 +2,7 @@ export * from './Accordion';
|
|
|
2
2
|
export * from './Alert';
|
|
3
3
|
export * from './AnimatePresence';
|
|
4
4
|
export * from './AppOriginTile';
|
|
5
|
+
export * from './AuthProviderIcon';
|
|
5
6
|
export * from './Badge';
|
|
6
7
|
export * from './Button';
|
|
7
8
|
export * from './ChainIcon';
|
|
@@ -10,8 +11,9 @@ export * from './Chip';
|
|
|
10
11
|
export * from './CopyButton';
|
|
11
12
|
export * from './Divider';
|
|
12
13
|
export * from './DynamicConnectButton';
|
|
14
|
+
export * from './DynamicSpinner';
|
|
15
|
+
export * from './EmailForm';
|
|
13
16
|
export * from './EmailIcon';
|
|
14
|
-
export * from './MfaRecoveryIcon';
|
|
15
17
|
export * from './EnterTileAnimation';
|
|
16
18
|
export * from './ErrorContainer';
|
|
17
19
|
export * from './FormFieldLabel';
|
|
@@ -28,13 +30,15 @@ export * from './IsBrowser';
|
|
|
28
30
|
export * from './ListTile';
|
|
29
31
|
export * from './LogoutButton';
|
|
30
32
|
export * from './MenuList';
|
|
33
|
+
export * from './MfaRecoveryIcon';
|
|
31
34
|
export * from './Modal';
|
|
32
35
|
export * from './ModalCard';
|
|
33
36
|
export * from './ModalHeader';
|
|
34
37
|
export * from './ModalHeaderBanner';
|
|
35
38
|
export * from './NeedHelpSection';
|
|
36
|
-
export * from './
|
|
39
|
+
export * from './OptionsSwitcher';
|
|
37
40
|
export * from './OTPVerificationView';
|
|
41
|
+
export * from './OverlayCard';
|
|
38
42
|
export * from './PasskeyCreatedSuccessBanner';
|
|
39
43
|
export * from './PhoneNumberField';
|
|
40
44
|
export * from './PinField';
|
|
@@ -55,6 +59,7 @@ export * from './SignMessagePreview';
|
|
|
55
59
|
export * from './Skeleton';
|
|
56
60
|
export * from './SocialSignIn';
|
|
57
61
|
export * from './Spinner';
|
|
62
|
+
export * from './StatusDot';
|
|
58
63
|
export * from './Step';
|
|
59
64
|
export * from './Stepper';
|
|
60
65
|
export * from './Switch';
|
|
@@ -68,9 +73,5 @@ export * from './TransactionConfirmationPageLayout';
|
|
|
68
73
|
export * from './Transition';
|
|
69
74
|
export * from './Typography';
|
|
70
75
|
export * from './TypographyButton';
|
|
71
|
-
export * from './WalletInformationCard';
|
|
72
|
-
export * from './EmailForm';
|
|
73
|
-
export * from './StatusDot';
|
|
74
|
-
export * from './OptionsSwitcher';
|
|
75
76
|
export * from './WalletConnectorEvents';
|
|
76
|
-
export * from './
|
|
77
|
+
export * from './WalletInformationCard';
|
package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.cjs
CHANGED
|
@@ -157,6 +157,10 @@ const useTieCallbacksToEvents = ({ clientCallbacks, user, }) => {
|
|
|
157
157
|
var _a;
|
|
158
158
|
(_a = clientCallbacks === null || clientCallbacks === void 0 ? void 0 : clientCallbacks.onUserProfileUpdate) === null || _a === void 0 ? void 0 : _a.call(clientCallbacks, user);
|
|
159
159
|
});
|
|
160
|
+
useDynamicEvents.useInternalDynamicEvents('walletTabSelected', (props) => {
|
|
161
|
+
var _a;
|
|
162
|
+
(_a = clientCallbacks === null || clientCallbacks === void 0 ? void 0 : clientCallbacks.onWalletTabSelected) === null || _a === void 0 ? void 0 : _a.call(clientCallbacks, props);
|
|
163
|
+
});
|
|
160
164
|
};
|
|
161
165
|
|
|
162
166
|
exports.useTieCallbacksToEvents = useTieCallbacksToEvents;
|
package/src/lib/context/DynamicContext/hooks/useTieCallbacksToEvents/useTieCallbacksToEvents.js
CHANGED
|
@@ -153,6 +153,10 @@ const useTieCallbacksToEvents = ({ clientCallbacks, user, }) => {
|
|
|
153
153
|
var _a;
|
|
154
154
|
(_a = clientCallbacks === null || clientCallbacks === void 0 ? void 0 : clientCallbacks.onUserProfileUpdate) === null || _a === void 0 ? void 0 : _a.call(clientCallbacks, user);
|
|
155
155
|
});
|
|
156
|
+
useInternalDynamicEvents('walletTabSelected', (props) => {
|
|
157
|
+
var _a;
|
|
158
|
+
(_a = clientCallbacks === null || clientCallbacks === void 0 ? void 0 : clientCallbacks.onWalletTabSelected) === null || _a === void 0 ? void 0 : _a.call(clientCallbacks, props);
|
|
159
|
+
});
|
|
156
160
|
};
|
|
157
161
|
|
|
158
162
|
export { useTieCallbacksToEvents };
|
|
@@ -57,6 +57,7 @@ require('../../../../store/state/walletOptions/walletOptions.cjs');
|
|
|
57
57
|
require('react-i18next');
|
|
58
58
|
require('../../../../components/Accordion/components/AccordionItem/AccordionItem.cjs');
|
|
59
59
|
require('../../../../components/Alert/Alert.cjs');
|
|
60
|
+
require('../../../WalletContext/WalletContext.cjs');
|
|
60
61
|
require('../../../../components/ShadowDOM/ShadowDOM.cjs');
|
|
61
62
|
require('../../../../components/IconButton/IconButton.cjs');
|
|
62
63
|
require('../../../../components/InlineWidget/InlineWidget.cjs');
|
|
@@ -72,7 +73,6 @@ require('../../../../components/Popper/Popper/Popper.cjs');
|
|
|
72
73
|
require('../../../../components/Popper/PopperContext/PopperContext.cjs');
|
|
73
74
|
require('react-focus-lock');
|
|
74
75
|
require('qrcode');
|
|
75
|
-
require('../../../WalletContext/WalletContext.cjs');
|
|
76
76
|
require('formik');
|
|
77
77
|
require('../../../../utils/hooks/useSubdomainCheck/useSubdomainCheck.cjs');
|
|
78
78
|
var useEffectOnce = require('../../../../utils/hooks/useEffectOnce/useEffectOnce.cjs');
|
|
@@ -53,6 +53,7 @@ import '../../../../store/state/walletOptions/walletOptions.js';
|
|
|
53
53
|
import 'react-i18next';
|
|
54
54
|
import '../../../../components/Accordion/components/AccordionItem/AccordionItem.js';
|
|
55
55
|
import '../../../../components/Alert/Alert.js';
|
|
56
|
+
import '../../../WalletContext/WalletContext.js';
|
|
56
57
|
import '../../../../components/ShadowDOM/ShadowDOM.js';
|
|
57
58
|
import '../../../../components/IconButton/IconButton.js';
|
|
58
59
|
import '../../../../components/InlineWidget/InlineWidget.js';
|
|
@@ -68,7 +69,6 @@ import '../../../../components/Popper/Popper/Popper.js';
|
|
|
68
69
|
import '../../../../components/Popper/PopperContext/PopperContext.js';
|
|
69
70
|
import 'react-focus-lock';
|
|
70
71
|
import 'qrcode';
|
|
71
|
-
import '../../../WalletContext/WalletContext.js';
|
|
72
72
|
import 'formik';
|
|
73
73
|
import '../../../../utils/hooks/useSubdomainCheck/useSubdomainCheck.js';
|
|
74
74
|
import { useEffectOnce } from '../../../../utils/hooks/useEffectOnce/useEffectOnce.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './blockaid';
|