@rango-dev/widget-embedded 0.29.1-next.1 → 0.29.1-next.11
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/dist/components/NotificationContent/NotificationContent.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
- package/dist/components/WalletNamespacesModal/WalletNamespacesModal.d.ts +0 -2
- package/dist/components/WalletNamespacesModal/WalletNamespacesModal.d.ts.map +1 -1
- package/dist/containers/WidgetInfo/WidgetInfo.d.ts.map +1 -1
- package/dist/containers/WidgetInfo/WidgetInfo.helpers.d.ts +4 -2
- package/dist/containers/WidgetInfo/WidgetInfo.helpers.d.ts.map +1 -1
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts +3 -1
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts.map +1 -1
- package/dist/hooks/useConfirmSwap/useConfirmSwap.d.ts.map +1 -1
- package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts +2 -1
- package/dist/hooks/useConfirmSwap/useConfirmSwap.helpers.d.ts.map +1 -1
- package/dist/hooks/useSyncStoresWithConfig.d.ts.map +1 -1
- package/dist/hooks/useSyncUrlAndStore/useSyncUrlAndStore.d.ts.map +1 -1
- package/dist/hooks/useSyncUrlAndStore/useSyncUrlAndStore.helpers.d.ts +2 -2
- package/dist/hooks/useSyncUrlAndStore/useSyncUrlAndStore.helpers.d.ts.map +1 -1
- package/dist/hooks/useWalletList.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +4 -4
- package/dist/pages/WalletsPage.d.ts.map +1 -1
- package/dist/store/notification.d.ts.map +1 -1
- package/dist/store/quote.d.ts +9 -3
- package/dist/store/quote.d.ts.map +1 -1
- package/dist/store/selectors.d.ts +1 -1
- package/dist/store/selectors.d.ts.map +1 -1
- package/dist/store/slices/data.d.ts +5 -3
- package/dist/store/slices/data.d.ts.map +1 -1
- package/dist/store/slices/settings.d.ts.map +1 -1
- package/dist/store/wallets.d.ts +5 -4
- package/dist/store/wallets.d.ts.map +1 -1
- package/dist/test-utils/fixtures.d.ts +1 -1
- package/dist/test-utils/fixtures.d.ts.map +1 -1
- package/dist/types/config.d.ts +3 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/utils/common.d.ts +2 -0
- package/dist/utils/common.d.ts.map +1 -1
- package/dist/utils/meta.d.ts +3 -1
- package/dist/utils/meta.d.ts.map +1 -1
- package/dist/utils/quote.d.ts +4 -8
- package/dist/utils/quote.d.ts.map +1 -1
- package/dist/utils/swap.d.ts +3 -4
- package/dist/utils/swap.d.ts.map +1 -1
- package/dist/utils/wallets.d.ts +4 -5
- package/dist/utils/wallets.d.ts.map +1 -1
- package/dist/widget-embedded.build.json +1 -1
- package/package.json +7 -7
- package/src/components/NotificationContent/NotificationContent.tsx +13 -119
- package/src/components/Quote/Quote.tsx +3 -3
- package/src/components/Quotes/Quotes.tsx +2 -2
- package/src/components/SwapDetails/SwapDetails.tsx +8 -3
- package/src/components/WalletNamespacesModal/WalletNamespacesModal.tsx +2 -10
- package/src/containers/Wallets/Wallets.tsx +3 -3
- package/src/containers/WidgetInfo/WidgetInfo.helpers.ts +12 -3
- package/src/containers/WidgetInfo/WidgetInfo.tsx +7 -2
- package/src/containers/WidgetInfo/WidgetInfo.types.ts +3 -1
- package/src/hooks/useConfirmSwap/useConfirmSwap.helpers.ts +4 -2
- package/src/hooks/useConfirmSwap/useConfirmSwap.ts +3 -1
- package/src/hooks/useSubscribeToWidgetEvents/useSubscribeToWidgetEvents.ts +3 -3
- package/src/hooks/useSwapInput.ts +2 -2
- package/src/hooks/useSyncStoresWithConfig.ts +6 -7
- package/src/hooks/useSyncUrlAndStore/useSyncUrlAndStore.helpers.ts +12 -26
- package/src/hooks/useSyncUrlAndStore/useSyncUrlAndStore.ts +19 -12
- package/src/hooks/useWalletList.ts +2 -4
- package/src/pages/WalletsPage.tsx +23 -16
- package/src/store/notification.ts +3 -1
- package/src/store/quote.ts +12 -7
- package/src/store/selectors.ts +6 -4
- package/src/store/slices/data.test.ts +9 -5
- package/src/store/slices/data.ts +26 -7
- package/src/store/slices/settings.ts +3 -0
- package/src/store/wallets.ts +9 -8
- package/src/test-utils/fixtures.ts +9 -2
- package/src/types/config.ts +5 -0
- package/src/utils/common.ts +12 -1
- package/src/utils/meta.ts +13 -6
- package/src/utils/quote.ts +12 -20
- package/src/utils/swap.ts +5 -25
- package/src/utils/wallets.ts +4 -28
- package/dist/components/NotificationContent/NotificationContent.styles.d.ts +0 -1559
- package/dist/components/NotificationContent/NotificationContent.styles.d.ts.map +0 -1
- package/dist/components/NotificationContent/NotificationNotFound.d.ts +0 -3
- package/dist/components/NotificationContent/NotificationNotFound.d.ts.map +0 -1
- package/src/components/NotificationContent/NotificationContent.styles.ts +0 -63
- package/src/components/NotificationContent/NotificationNotFound.tsx +0 -17
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationContent.styles.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationContent/NotificationContent.styles.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAqB,cAAc,EAAU,MAAM,eAAe,CAAC;AAE1E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAKpB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAKjB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAQ5B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAExB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationNotFound.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationContent/NotificationNotFound.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,oBAAoB,sBAUnC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Button, darkTheme, ListItemButton, styled } from '@rango-dev/ui';
|
|
2
|
-
|
|
3
|
-
export const Container = styled('div', {
|
|
4
|
-
padding: '$10',
|
|
5
|
-
width: '350px',
|
|
6
|
-
maxWidth: '90vw',
|
|
7
|
-
minHeight: '150px',
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export const Header = styled('div', {
|
|
11
|
-
padding: '0 $10',
|
|
12
|
-
display: 'flex',
|
|
13
|
-
justifyContent: 'space-between',
|
|
14
|
-
alignItems: 'center',
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
export const ClearAllButton = styled(Button, {
|
|
18
|
-
padding: '$5 !important',
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export const List = styled('ul', {
|
|
22
|
-
padding: 0,
|
|
23
|
-
margin: 0,
|
|
24
|
-
listStyle: 'none',
|
|
25
|
-
|
|
26
|
-
'.to-chain-token': {
|
|
27
|
-
transform: 'translateX(-3px)',
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export const ListItem = styled(ListItemButton, {
|
|
32
|
-
variants: {
|
|
33
|
-
actionRequired: {
|
|
34
|
-
true: {
|
|
35
|
-
backgroundColor: '$error300',
|
|
36
|
-
[`.${darkTheme} &`]: {
|
|
37
|
-
backgroundColor: '$error600',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export const Images = styled('div', {
|
|
45
|
-
display: 'flex',
|
|
46
|
-
padding: '0 0 0 $5',
|
|
47
|
-
alignItems: 'center',
|
|
48
|
-
alignSelf: 'stretch',
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export const NotFoundContainer = styled('div', {
|
|
52
|
-
display: 'flex',
|
|
53
|
-
justifyContent: 'center',
|
|
54
|
-
alignItems: 'center',
|
|
55
|
-
flexDirection: 'column',
|
|
56
|
-
padding: '$10',
|
|
57
|
-
width: '100%',
|
|
58
|
-
height: '150px',
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
export const IconContainer = styled('span', {
|
|
62
|
-
paddingRight: '$8',
|
|
63
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { i18n } from '@lingui/core';
|
|
2
|
-
import { Divider, NoNotificationIcon, Typography } from '@rango-dev/ui';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
|
|
5
|
-
import { NotFoundContainer } from './NotificationContent.styles';
|
|
6
|
-
|
|
7
|
-
export function NotificationNotFound() {
|
|
8
|
-
return (
|
|
9
|
-
<NotFoundContainer>
|
|
10
|
-
<NoNotificationIcon color="secondary" size={26} />
|
|
11
|
-
<Divider size={12} />
|
|
12
|
-
<Typography variant="body" size="medium" color="neutral700">
|
|
13
|
-
{i18n.t('There are no notifications.')}
|
|
14
|
-
</Typography>
|
|
15
|
-
</NotFoundContainer>
|
|
16
|
-
);
|
|
17
|
-
}
|