@dynamic-labs/sdk-react-core 4.102.0 → 4.103.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 +13 -0
- package/package.cjs +3 -3
- package/package.js +3 -3
- package/package.json +14 -14
- package/src/lib/components/TransactionCard/SendBalanceTransactionCard.cjs +8 -8
- package/src/lib/components/TransactionCard/SendBalanceTransactionCard.d.ts +3 -1
- package/src/lib/components/TransactionCard/SendBalanceTransactionCard.js +8 -8
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.cjs +1 -1
- package/src/lib/components/TransactionConfirmationPageLayout/TransactionConfirmationPageLayout.js +1 -1
- package/src/lib/styles/index.shadow.cjs +1 -1
- package/src/lib/styles/index.shadow.js +1 -1
- package/src/lib/utils/hooks/useSyncDynamicWaas/useSyncDynamicWaas.cjs +3 -1
- package/src/lib/utils/hooks/useSyncDynamicWaas/useSyncDynamicWaas.js +3 -1
- package/src/lib/views/BackupUnsuccessfulView/BackupUnsuccessfulView.cjs +2 -2
- package/src/lib/views/BackupUnsuccessfulView/BackupUnsuccessfulView.d.ts +4 -1
- package/src/lib/views/BackupUnsuccessfulView/BackupUnsuccessfulView.js +2 -2
- package/src/lib/views/viewToComponentMap.d.ts +3 -1
|
@@ -123,7 +123,9 @@ const useWalletCreation = () => {
|
|
|
123
123
|
}
|
|
124
124
|
logger.logger.error('Error creating dynamic waas wallet', error);
|
|
125
125
|
setShowAuthFlow(true, { ignoreIfIsEmbeddedWidget: false });
|
|
126
|
-
clearStackAndPush('backup-unsuccessful'
|
|
126
|
+
clearStackAndPush('backup-unsuccessful', {
|
|
127
|
+
errorMessage: error.message,
|
|
128
|
+
});
|
|
127
129
|
},
|
|
128
130
|
});
|
|
129
131
|
};
|
|
@@ -119,7 +119,9 @@ const useWalletCreation = () => {
|
|
|
119
119
|
}
|
|
120
120
|
logger.error('Error creating dynamic waas wallet', error);
|
|
121
121
|
setShowAuthFlow(true, { ignoreIfIsEmbeddedWidget: false });
|
|
122
|
-
clearStackAndPush('backup-unsuccessful'
|
|
122
|
+
clearStackAndPush('backup-unsuccessful', {
|
|
123
|
+
errorMessage: error.message,
|
|
124
|
+
});
|
|
123
125
|
},
|
|
124
126
|
});
|
|
125
127
|
};
|
|
@@ -124,7 +124,7 @@ require('../../components/IsBrowser/IsBrowser.cjs');
|
|
|
124
124
|
require('../../components/Popper/Popper/Popper.cjs');
|
|
125
125
|
require('../../components/Popper/PopperContext/PopperContext.cjs');
|
|
126
126
|
|
|
127
|
-
const BackupUnsuccessfulView = () => {
|
|
127
|
+
const BackupUnsuccessfulView = ({ errorMessage, }) => {
|
|
128
128
|
var _a, _b;
|
|
129
129
|
const { t } = reactI18next.useTranslation();
|
|
130
130
|
const projectSettings = useProjectSettings.useProjectSettings();
|
|
@@ -167,7 +167,7 @@ const BackupUnsuccessfulView = () => {
|
|
|
167
167
|
position: 'absolute',
|
|
168
168
|
top: '50%',
|
|
169
169
|
transform: 'translate(-50%, -50%)',
|
|
170
|
-
} })] })] }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', className: 'backup-message', color: 'primary', copykey: 'dyn_waas.backup_unsuccessful.description', children: t('dyn_waas.backup_unsuccessful.description') }), jsxRuntime.jsx("div", { className: classNames.classNames('button-group', {
|
|
170
|
+
} })] })] }), jsxRuntime.jsx(Typography.Typography, { variant: 'body_normal', className: 'backup-message', color: 'primary', copykey: 'dyn_waas.backup_unsuccessful.description', children: t('dyn_waas.backup_unsuccessful.description') }), errorMessage && (jsxRuntime.jsx(Typography.Typography, { variant: 'body_mini', color: 'error-1', className: 'backup-error-message', children: errorMessage })), jsxRuntime.jsx("div", { className: classNames.classNames('button-group', {
|
|
171
171
|
'button-group--with-help-section': hasContactInfo,
|
|
172
172
|
}), children: jsxRuntime.jsx(TypographyButton.TypographyButton, { buttonClassName: 'retry-button', buttonVariant: 'brand-primary', type: 'submit', onClick: onTryAgainClick, copykey: 'dyn_waas.backup_unsuccessful.try_again', typographyProps: {
|
|
173
173
|
color: 'inherit',
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type BackupUnsuccessfulViewProps = {
|
|
3
|
+
errorMessage?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const BackupUnsuccessfulView: React.FC<BackupUnsuccessfulViewProps>;
|
|
3
6
|
export default BackupUnsuccessfulView;
|
|
@@ -120,7 +120,7 @@ import '../../components/IsBrowser/IsBrowser.js';
|
|
|
120
120
|
import '../../components/Popper/Popper/Popper.js';
|
|
121
121
|
import '../../components/Popper/PopperContext/PopperContext.js';
|
|
122
122
|
|
|
123
|
-
const BackupUnsuccessfulView = () => {
|
|
123
|
+
const BackupUnsuccessfulView = ({ errorMessage, }) => {
|
|
124
124
|
var _a, _b;
|
|
125
125
|
const { t } = useTranslation();
|
|
126
126
|
const projectSettings = useProjectSettings();
|
|
@@ -163,7 +163,7 @@ const BackupUnsuccessfulView = () => {
|
|
|
163
163
|
position: 'absolute',
|
|
164
164
|
top: '50%',
|
|
165
165
|
transform: 'translate(-50%, -50%)',
|
|
166
|
-
} })] })] }), jsx(Typography, { variant: 'body_normal', className: 'backup-message', color: 'primary', copykey: 'dyn_waas.backup_unsuccessful.description', children: t('dyn_waas.backup_unsuccessful.description') }), jsx("div", { className: classNames('button-group', {
|
|
166
|
+
} })] })] }), jsx(Typography, { variant: 'body_normal', className: 'backup-message', color: 'primary', copykey: 'dyn_waas.backup_unsuccessful.description', children: t('dyn_waas.backup_unsuccessful.description') }), errorMessage && (jsx(Typography, { variant: 'body_mini', color: 'error-1', className: 'backup-error-message', children: errorMessage })), jsx("div", { className: classNames('button-group', {
|
|
167
167
|
'button-group--with-help-section': hasContactInfo,
|
|
168
168
|
}), children: jsx(TypographyButton, { buttonClassName: 'retry-button', buttonVariant: 'brand-primary', type: 'submit', onClick: onTryAgainClick, copykey: 'dyn_waas.backup_unsuccessful.try_again', typographyProps: {
|
|
169
169
|
color: 'inherit',
|
|
@@ -4,7 +4,9 @@ export declare const viewToComponentMap: {
|
|
|
4
4
|
'account-exists': () => JSX.Element;
|
|
5
5
|
'account-upgraded': import("react").FC;
|
|
6
6
|
'auth-loading': import("react").FC;
|
|
7
|
-
'backup-unsuccessful': import("react").FC<{
|
|
7
|
+
'backup-unsuccessful': import("react").FC<{
|
|
8
|
+
errorMessage?: string | undefined;
|
|
9
|
+
}>;
|
|
8
10
|
'bridge-next-wallet-connection': import("react").FC;
|
|
9
11
|
'bridge-summary': () => JSX.Element;
|
|
10
12
|
'bridge-welcome': () => JSX.Element;
|