@rango-dev/widget-embedded 0.41.2-next.14 → 0.41.2-next.16
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/BlockchainsSection/BlockchainsSection.d.ts.map +1 -1
- package/dist/components/CustomTokenModal/CustomTokenModal.d.ts.map +1 -1
- package/dist/components/CustomTokenModal/CustomTokenModal.styles.d.ts +440 -0
- package/dist/components/CustomTokenModal/CustomTokenModal.styles.d.ts.map +1 -1
- package/dist/components/Layout/Layout.constants.d.ts +4 -0
- package/dist/components/Layout/Layout.constants.d.ts.map +1 -0
- package/dist/components/Layout/Layout.d.ts.map +1 -1
- package/dist/components/Layout/Layout.styles.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.Placeholder.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.styles.d.ts +167 -4
- package/dist/components/SwapDetails/SwapDetails.styles.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/DerivationPath.styles.d.ts +440 -0
- package/dist/components/WalletStatefulConnect/DerivationPath.styles.d.ts.map +1 -1
- package/dist/components/WalletStatefulConnect/Namespaces.styles.d.ts +440 -0
- package/dist/components/WalletStatefulConnect/Namespaces.styles.d.ts.map +1 -1
- package/dist/constants/configs.d.ts +1 -0
- package/dist/constants/configs.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +4 -4
- package/dist/store/ui.d.ts +4 -0
- package/dist/store/ui.d.ts.map +1 -1
- package/dist/widget-embedded.build.json +1 -1
- package/package.json +8 -8
- package/src/components/BlockchainsSection/BlockchainsSection.tsx +26 -10
- package/src/components/CustomTokenModal/CustomTokenModal.styles.ts +5 -1
- package/src/components/CustomTokenModal/CustomTokenModal.tsx +6 -12
- package/src/components/Layout/Layout.constants.ts +3 -0
- package/src/components/Layout/Layout.styles.ts +7 -3
- package/src/components/Layout/Layout.tsx +39 -2
- package/src/components/SwapDetails/SwapDetails.Placeholder.tsx +25 -28
- package/src/components/SwapDetails/SwapDetails.styles.ts +18 -10
- package/src/components/SwapDetails/SwapDetails.tsx +54 -55
- package/src/components/WalletStatefulConnect/DerivationPath.styles.ts +5 -1
- package/src/components/WalletStatefulConnect/DerivationPath.tsx +4 -10
- package/src/components/WalletStatefulConnect/Namespaces.styles.ts +5 -1
- package/src/components/WalletStatefulConnect/Namespaces.tsx +3 -3
- package/src/constants/configs.ts +1 -0
- package/src/store/ui.ts +6 -0
package/src/store/ui.ts
CHANGED
|
@@ -13,6 +13,7 @@ interface UiState {
|
|
|
13
13
|
showActivateTabModal: boolean;
|
|
14
14
|
watermark: Watermark;
|
|
15
15
|
showProfileBanner: boolean;
|
|
16
|
+
showCompactTokenSelector: boolean;
|
|
16
17
|
activateCurrentTab: (
|
|
17
18
|
setCurrentTabAsActive: () => void,
|
|
18
19
|
hasRunningSwaps: boolean
|
|
@@ -20,6 +21,7 @@ interface UiState {
|
|
|
20
21
|
setShowActivateTabModal: (flag: boolean) => void;
|
|
21
22
|
setWatermark: (watermark: Watermark) => void;
|
|
22
23
|
setShowProfileBanner: (showProfileBanner: boolean) => void;
|
|
24
|
+
setShowCompactTokenSelector: (showCompactTokenSelector: boolean) => void;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
export const useUiStore = createSelectors(
|
|
@@ -30,6 +32,7 @@ export const useUiStore = createSelectors(
|
|
|
30
32
|
watermark: 'NONE',
|
|
31
33
|
showProfileBanner: false,
|
|
32
34
|
fetchingApiConfig: false,
|
|
35
|
+
showCompactTokenSelector: false,
|
|
33
36
|
activateCurrentTab: (setCurrentTabAsActive, hasRunningSwaps) => {
|
|
34
37
|
const { showActivateTabModal } = get();
|
|
35
38
|
|
|
@@ -48,6 +51,9 @@ export const useUiStore = createSelectors(
|
|
|
48
51
|
setShowProfileBanner: (showProfileBanner) => {
|
|
49
52
|
set({ showProfileBanner });
|
|
50
53
|
},
|
|
54
|
+
setShowCompactTokenSelector: (showCompactTokenSelector) => {
|
|
55
|
+
set({ showCompactTokenSelector });
|
|
56
|
+
},
|
|
51
57
|
}))
|
|
52
58
|
);
|
|
53
59
|
|