@rango-dev/widget-embedded 0.30.1-next.2 → 0.30.1-next.21
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/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +1 -653
- package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/WalletList.d.ts.map +1 -1
- package/dist/components/CustomDestination/CustomDestination.d.ts +4 -0
- package/dist/components/CustomDestination/CustomDestination.d.ts.map +1 -0
- package/dist/components/CustomDestination/CustomDestination.styles.d.ts +495 -0
- package/dist/components/CustomDestination/CustomDestination.styles.d.ts.map +1 -0
- package/dist/components/CustomDestination/CustomDestination.types.d.ts +7 -0
- package/dist/components/CustomDestination/CustomDestination.types.d.ts.map +1 -0
- package/dist/components/FilterSelector/FilterSelector.d.ts +4 -0
- package/dist/components/FilterSelector/FilterSelector.d.ts.map +1 -0
- package/dist/components/FilterSelector/FilterSelector.style.d.ts +962 -0
- package/dist/components/FilterSelector/FilterSelector.style.d.ts.map +1 -0
- package/dist/components/FilterSelector/FilterSelector.type.d.ts +14 -0
- package/dist/components/FilterSelector/FilterSelector.type.d.ts.map +1 -0
- package/dist/components/FilterSelector/FilterSelectorContent.d.ts +4 -0
- package/dist/components/FilterSelector/FilterSelectorContent.d.ts.map +1 -0
- package/dist/components/FilterSelector/index.d.ts +2 -0
- package/dist/components/FilterSelector/index.d.ts.map +1 -0
- package/dist/components/Quote/Quote.styles.d.ts +3 -3
- package/dist/components/RefreshModal/RefreshModal.styles.d.ts +3 -3
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
- package/dist/components/SwapDetailsModal/SwapDetailsModal.WalletState.d.ts.map +1 -1
- package/dist/components/TokenList/TokenList.d.ts.map +1 -1
- package/dist/containers/Inputs/Inputs.d.ts.map +1 -1
- package/dist/containers/Wallets/Wallets.d.ts.map +1 -1
- package/dist/containers/WidgetInfo/WidgetInfo.d.ts.map +1 -1
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts +5 -1
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts.map +1 -1
- package/dist/hooks/useObserveBalanceChanges/index.d.ts +2 -0
- package/dist/hooks/useObserveBalanceChanges/index.d.ts.map +1 -0
- package/dist/hooks/useObserveBalanceChanges/useObserveBalanceChanges.d.ts +4 -0
- package/dist/hooks/useObserveBalanceChanges/useObserveBalanceChanges.d.ts.map +1 -0
- package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts +2 -2
- package/dist/hooks/useUpdateQuoteInputs/index.d.ts +2 -0
- package/dist/hooks/useUpdateQuoteInputs/index.d.ts.map +1 -0
- package/dist/hooks/useUpdateQuoteInputs/useUpdateQuoteInputs.d.ts +3 -0
- package/dist/hooks/useUpdateQuoteInputs/useUpdateQuoteInputs.d.ts.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +4 -4
- package/dist/pages/HistoryPage.d.ts.map +1 -1
- package/dist/pages/Home.d.ts.map +1 -1
- package/dist/pages/WalletsPage.d.ts.map +1 -1
- package/dist/services/cacheService.d.ts +21 -0
- package/dist/services/cacheService.d.ts.map +1 -0
- package/dist/store/notification.d.ts.map +1 -1
- package/dist/store/slices/config.d.ts +2 -1
- package/dist/store/slices/config.d.ts.map +1 -1
- package/dist/store/slices/data.d.ts +2 -1
- package/dist/store/slices/data.d.ts.map +1 -1
- package/dist/store/utils/data.d.ts +20 -0
- package/dist/store/utils/data.d.ts.map +1 -0
- package/dist/store/utils/data.test.d.ts +2 -0
- package/dist/store/utils/data.test.d.ts.map +1 -0
- package/dist/store/utils/index.d.ts +2 -0
- package/dist/store/utils/index.d.ts.map +1 -0
- package/dist/test-utils/fixtures.d.ts +1 -0
- package/dist/test-utils/fixtures.d.ts.map +1 -1
- package/dist/types/config.d.ts +5 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/event.d.ts +21 -15
- package/dist/types/event.d.ts.map +1 -1
- package/dist/types/notification.d.ts +1 -0
- package/dist/types/notification.d.ts.map +1 -1
- package/dist/types/quote.d.ts +9 -1
- package/dist/types/quote.d.ts.map +1 -1
- package/dist/types/wallets.d.ts +1 -1
- package/dist/types/wallets.d.ts.map +1 -1
- package/dist/utils/events.d.ts +8 -0
- package/dist/utils/events.d.ts.map +1 -0
- package/dist/utils/settings.d.ts +1 -1
- package/dist/utils/swap.d.ts +1 -1
- package/dist/utils/swap.d.ts.map +1 -1
- package/dist/widget-embedded.build.json +1 -1
- package/package.json +11 -11
- package/src/components/ConfirmWalletsModal/ConfirmWallets.styles.ts +1 -49
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +59 -178
- package/src/components/ConfirmWalletsModal/WalletList.tsx +16 -4
- package/src/components/CustomDestination/CustomDestination.styles.ts +45 -0
- package/src/components/CustomDestination/CustomDestination.tsx +148 -0
- package/src/components/CustomDestination/CustomDestination.types.ts +7 -0
- package/src/components/FilterSelector/FilterSelector.style.ts +95 -0
- package/src/components/FilterSelector/FilterSelector.tsx +42 -0
- package/src/components/FilterSelector/FilterSelector.type.ts +15 -0
- package/src/components/FilterSelector/FilterSelectorContent.tsx +60 -0
- package/src/components/FilterSelector/index.ts +1 -0
- package/src/components/SearchInput/SearchInput.tsx +2 -0
- package/src/components/SwapDetails/SwapDetails.tsx +1 -7
- package/src/components/SwapDetailsModal/SwapDetailsModal.WalletState.tsx +28 -13
- package/src/components/TokenList/TokenList.tsx +8 -2
- package/src/containers/Inputs/Inputs.tsx +1 -0
- package/src/containers/Wallets/Wallets.tsx +7 -2
- package/src/containers/WidgetInfo/WidgetInfo.tsx +26 -0
- package/src/containers/WidgetInfo/WidgetInfo.types.ts +5 -1
- package/src/hooks/useObserveBalanceChanges/index.ts +1 -0
- package/src/hooks/useObserveBalanceChanges/useObserveBalanceChanges.ts +68 -0
- package/src/hooks/useUpdateQuoteInputs/index.ts +1 -0
- package/src/hooks/useUpdateQuoteInputs/useUpdateQuoteInputs.ts +50 -0
- package/src/index.ts +4 -0
- package/src/pages/HistoryPage.tsx +180 -26
- package/src/pages/Home.tsx +6 -3
- package/src/pages/WalletsPage.tsx +25 -11
- package/src/services/cacheService.ts +35 -0
- package/src/store/notification.ts +13 -1
- package/src/store/quote.ts +1 -1
- package/src/store/slices/config.ts +39 -1
- package/src/store/slices/data.test.ts +84 -0
- package/src/store/slices/data.ts +44 -24
- package/src/store/utils/data.test.ts +175 -0
- package/src/store/utils/data.ts +117 -0
- package/src/store/utils/index.ts +1 -0
- package/src/test-utils/fixtures.ts +14 -7
- package/src/types/config.ts +3 -1
- package/src/types/event.ts +32 -16
- package/src/types/notification.ts +1 -0
- package/src/types/quote.ts +11 -0
- package/src/types/wallets.ts +1 -1
- package/src/utils/events.ts +27 -0
- package/src/utils/swap.ts +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSelector.style.d.ts","sourceRoot":"","sources":["../../../src/components/FilterSelector/FilterSelector.style.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAwBxB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DA6BvB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAWhB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIhC,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAQrB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type PropTypes = {
|
|
2
|
+
filterBy: string;
|
|
3
|
+
onClickItem: (id: string) => void;
|
|
4
|
+
list: Array<FilterItem>;
|
|
5
|
+
};
|
|
6
|
+
export type FilterItem = {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
export type FilterSelectorPropTypes = PropTypes & {
|
|
11
|
+
open: boolean;
|
|
12
|
+
onOpenChange: (open: boolean) => void;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=FilterSelector.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSelector.type.d.ts","sourceRoot":"","sources":["../../../src/components/FilterSelector/FilterSelector.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG;IAChD,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSelectorContent.d.ts","sourceRoot":"","sources":["../../../src/components/FilterSelector/FilterSelectorContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAWvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,SAAS,qBAwCrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilterSelector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -373,7 +373,7 @@ export declare const AllRoutesButton: import("@stitches/react/types/styled-compo
|
|
|
373
373
|
results?: number | undefined;
|
|
374
374
|
security?: string | undefined;
|
|
375
375
|
unselectable?: "on" | "off" | undefined;
|
|
376
|
-
inputMode?: "
|
|
376
|
+
inputMode?: "search" | "decimal" | "email" | "text" | "none" | "tel" | "url" | "numeric" | undefined;
|
|
377
377
|
is?: string | undefined;
|
|
378
378
|
"aria-activedescendant"?: string | undefined;
|
|
379
379
|
"aria-atomic"?: boolean | "true" | "false" | undefined;
|
|
@@ -594,8 +594,8 @@ export declare const AllRoutesButton: import("@stitches/react/types/styled-compo
|
|
|
594
594
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
595
595
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
596
596
|
} & {
|
|
597
|
-
size?: "small" | "medium" | "large" | "
|
|
598
|
-
variant?: "default" | "
|
|
597
|
+
size?: "small" | "medium" | "large" | "xsmall" | "xxsmall" | undefined;
|
|
598
|
+
variant?: "default" | "ghost" | "contained" | "outlined" | undefined;
|
|
599
599
|
type?: "primary" | "secondary" | "success" | "error" | "warning" | undefined;
|
|
600
600
|
loading?: boolean | undefined;
|
|
601
601
|
disabled?: boolean | undefined;
|
|
@@ -49,7 +49,7 @@ export declare const RefreshButton: import("@stitches/react/types/styled-compone
|
|
|
49
49
|
results?: number | undefined;
|
|
50
50
|
security?: string | undefined;
|
|
51
51
|
unselectable?: "on" | "off" | undefined;
|
|
52
|
-
inputMode?: "
|
|
52
|
+
inputMode?: "search" | "decimal" | "email" | "text" | "none" | "tel" | "url" | "numeric" | undefined;
|
|
53
53
|
is?: string | undefined;
|
|
54
54
|
"aria-activedescendant"?: string | undefined;
|
|
55
55
|
"aria-atomic"?: boolean | "true" | "false" | undefined;
|
|
@@ -270,8 +270,8 @@ export declare const RefreshButton: import("@stitches/react/types/styled-compone
|
|
|
270
270
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
271
271
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
272
272
|
} & {
|
|
273
|
-
size?: "small" | "medium" | "large" | "
|
|
274
|
-
variant?: "default" | "
|
|
273
|
+
size?: "small" | "medium" | "large" | "xsmall" | "xxsmall" | undefined;
|
|
274
|
+
variant?: "default" | "ghost" | "contained" | "outlined" | undefined;
|
|
275
275
|
type?: "primary" | "secondary" | "success" | "error" | "warning" | undefined;
|
|
276
276
|
loading?: boolean | undefined;
|
|
277
277
|
disabled?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,qBA6C3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapDetails.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetails/SwapDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAyB5D,OAAO,KAAsC,MAAM,OAAO,CAAC;AAyD3D,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SwapDetails.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetails/SwapDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAyB5D,OAAO,KAAsC,MAAM,OAAO,CAAC;AAyD3D,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qBAoZlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapDetailsModal.WalletState.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetailsModal/SwapDetailsModal.WalletState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAMxE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAwBxC,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,
|
|
1
|
+
{"version":3,"file":"SwapDetailsModal.WalletState.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetailsModal/SwapDetailsModal.WalletState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAMxE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAwBxC,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,sBA0IhE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenList.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAgBpE,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TokenList.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAgBpE,OAAO,KAA8B,MAAM,OAAO,CAAC;AA4EnD,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBA8KzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Inputs.d.ts","sourceRoot":"","sources":["../../../src/containers/Inputs/Inputs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Inputs.d.ts","sourceRoot":"","sources":["../../../src/containers/Inputs/Inputs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAIhD,OAAO,KAAK,MAAM,OAAO,CAAC;AAsB1B,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,qBAwItC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallets.d.ts","sourceRoot":"","sources":["../../../src/containers/Wallets/Wallets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/C,OAAO,KAAoD,MAAM,OAAO,CAAC;AAWzE,eAAO,MAAM,aAAa,uCAOxB,CAAC;
|
|
1
|
+
{"version":3,"file":"Wallets.d.ts","sourceRoot":"","sources":["../../../src/containers/Wallets/Wallets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAK/C,OAAO,KAAoD,MAAM,OAAO,CAAC;AAWzE,eAAO,MAAM,aAAa,uCAOxB,CAAC;AA6HH,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAOhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetInfo.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAoC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetInfo.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAoC,MAAM,OAAO,CAAC;AAazD,eAAO,MAAM,iBAAiB,uDAElB,CAAC;AAEb,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,qBA0ExD;AAED,wBAAgB,SAAS,IAAI,0BAA0B,CAQtD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WidgetHistory } from './WidgetInfo.helpers';
|
|
2
2
|
import type { FetchStatus, FindToken } from '../../store/slices/data';
|
|
3
3
|
import type { ConnectedWallet } from '../../store/wallets';
|
|
4
|
-
import type { Wallet } from '../../types';
|
|
4
|
+
import type { QuoteInputs, UpdateQuoteInputs, Wallet } from '../../types';
|
|
5
5
|
import type { Notification } from '../../types/notification';
|
|
6
6
|
import type { BlockchainMeta, SwapperMeta, Token } from 'rango-sdk';
|
|
7
7
|
export interface WidgetInfoContextInterface {
|
|
@@ -26,5 +26,9 @@ export interface WidgetInfoContextInterface {
|
|
|
26
26
|
list: Notification[];
|
|
27
27
|
clearAll: () => void;
|
|
28
28
|
};
|
|
29
|
+
quote: {
|
|
30
|
+
quoteInputs: QuoteInputs;
|
|
31
|
+
updateQuoteInputs: UpdateQuoteInputs;
|
|
32
|
+
};
|
|
29
33
|
}
|
|
30
34
|
//# sourceMappingURL=WidgetInfo.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetInfo.types.d.ts","sourceRoot":"","sources":["../../../src/containers/WidgetInfo/WidgetInfo.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACt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I,EAAE,YAAY,EAAE,CAAC;QACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IACF,KAAK,EAAE;QACL,WAAW,EAAE,WAAW,CAAC;QACzB,iBAAiB,EAAE,iBAAiB,CAAC;KACtC,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useObserveBalanceChanges/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useObserveBalanceChanges.d.ts","sourceRoot":"","sources":["../../../src/hooks/useObserveBalanceChanges/useObserveBalanceChanges.ts"],"names":[],"mappings":"AAUA,wBAAgB,wBAAwB,CAAC,kBAAkB,CAAC,EAAE,MAAM;;EAyDnE"}
|
|
@@ -2,7 +2,7 @@ import type { PrepareListOptions, PrepareOutput } from './usePrepareBlockchainLi
|
|
|
2
2
|
import type { BlockchainMeta } from 'rango-sdk';
|
|
3
3
|
export declare function prepare(blockchains: BlockchainMeta[], preferredBlockchains: string[], options?: PrepareListOptions): PrepareOutput;
|
|
4
4
|
/** There is a hardcoded list of blockchains that we want to show them first in the list. */
|
|
5
|
-
export declare function sortByMostUsedBlockchains(a: BlockchainMeta, b: BlockchainMeta):
|
|
6
|
-
export declare function generateSortByPreferredBlockchainsFor(preferredBlockchains: string[]): (a: BlockchainMeta, b: BlockchainMeta) =>
|
|
5
|
+
export declare function sortByMostUsedBlockchains(a: BlockchainMeta, b: BlockchainMeta): 0 | 1 | -1;
|
|
6
|
+
export declare function generateSortByPreferredBlockchainsFor(preferredBlockchains: string[]): (a: BlockchainMeta, b: BlockchainMeta) => 0 | 1 | -1;
|
|
7
7
|
export declare function isInVisibleList(blockchain: string, prepareOutput: PrepareOutput): boolean;
|
|
8
8
|
//# sourceMappingURL=usePrepareBlockchainList.helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUpdateQuoteInputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUpdateQuoteInputs.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUpdateQuoteInputs/useUpdateQuoteInputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAMrD,wBAAgB,oBAAoB,sBA2CnC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WidgetProps } from './containers/Widget';
|
|
2
2
|
import type { ConnectedWallet } from './store/wallets';
|
|
3
|
-
import type { BlockchainAndTokenConfig, QuoteEventData, Tokens, WalletEventData, WalletInfoWithExtra, WidgetColors, WidgetColorsKeys, WidgetConfig, WidgetTheme, WidgetVariant } from './types';
|
|
3
|
+
import type { BlockchainAndTokenConfig, QuoteEventData, Tokens, UiEventData, WalletEventData, WalletInfoWithExtra, WidgetColors, WidgetColorsKeys, WidgetConfig, WidgetTheme, WidgetVariant } from './types';
|
|
4
4
|
import type { PendingSwapWithQueueID, Route, RouteEvent, RouteEventData, RouteExecutionEvents, RouteFailedEvent, RouteStartedEvent, RouteSucceededEvent, Step, StepApprovalTxSucceededEvent, StepCheckStatusEvent, StepEvent, StepEventData, StepFailedEvent, StepOutputRevealedEvent, StepStartedEvent, StepSucceededEvent, StepTxExecutionBlockedEvent, StepTxExecutionUpdatedEvent } from '@rango-dev/queue-manager-rango-preset';
|
|
5
5
|
import type { EventHandler as HandleWalletsUpdate, ProviderInterface } from '@rango-dev/wallets-react';
|
|
6
6
|
import type { WalletInfo, WalletState, WalletType } from '@rango-dev/wallets-shared';
|
|
@@ -18,9 +18,9 @@ import { WidgetProvider } from './containers/WidgetProvider';
|
|
|
18
18
|
import { useWalletList } from './hooks/useWalletList';
|
|
19
19
|
import { useWidgetEvents } from './hooks/useWidgetEvents';
|
|
20
20
|
import { widgetEventEmitter } from './services/eventEmitter';
|
|
21
|
-
import { WidgetEvents as MainEvents, QuoteEventTypes, WalletEventTypes, WidgetEvents } from './types';
|
|
21
|
+
import { WidgetEvents as MainEvents, QuoteEventTypes, UiEventTypes, WalletEventTypes, WidgetEvents } from './types';
|
|
22
22
|
import { customizedThemeTokens } from './utils/ui';
|
|
23
|
-
export type { WidgetConfig, WalletType, WidgetTheme, WidgetColors, WidgetColorsKeys, ProviderInterface, BlockchainAndTokenConfig, WidgetProps, RouteEvent, RouteEventData, StepEvent, StepEventData, Route, Step, RouteStartedEvent, RouteSucceededEvent, RouteFailedEvent, StepStartedEvent, StepSucceededEvent, StepFailedEvent, StepTxExecutionUpdatedEvent, StepTxExecutionBlockedEvent, StepCheckStatusEvent, StepApprovalTxSucceededEvent, StepOutputRevealedEvent, HandleWalletsUpdate, ConnectedWallet, Tokens, WidgetVariant, WalletEventData, QuoteEventData, WalletInfoWithExtra, };
|
|
23
|
+
export type { WidgetConfig, WalletType, WidgetTheme, WidgetColors, WidgetColorsKeys, ProviderInterface, BlockchainAndTokenConfig, WidgetProps, RouteEvent, RouteEventData, StepEvent, StepEventData, Route, Step, RouteStartedEvent, RouteSucceededEvent, RouteFailedEvent, StepStartedEvent, StepSucceededEvent, StepFailedEvent, StepTxExecutionUpdatedEvent, StepTxExecutionBlockedEvent, StepCheckStatusEvent, StepApprovalTxSucceededEvent, StepOutputRevealedEvent, HandleWalletsUpdate, ConnectedWallet, Tokens, WidgetVariant, WalletEventData, QuoteEventData, UiEventData, WalletInfoWithExtra, };
|
|
24
24
|
export { Widget,
|
|
25
25
|
/**
|
|
26
26
|
* @deprecated Use `WidgetProvider` instead. This component will be removed in future versions.
|
|
@@ -33,7 +33,7 @@ useWidgetEvents, useWalletList, customizedThemeTokens, widgetEventEmitter, Widge
|
|
|
33
33
|
/**
|
|
34
34
|
* @deprecated Use `WidgetEvents` instead. This enum will be removed in future versions.
|
|
35
35
|
*/
|
|
36
|
-
MainEvents, QuoteEventTypes, WalletEventTypes, RouteEventType, StepEventType, StepExecutionEventStatus, StepExecutionBlockedEventStatus, UI_ID, SUPPORTED_FONTS, };
|
|
36
|
+
MainEvents, QuoteEventTypes, WalletEventTypes, UiEventTypes, RouteEventType, StepEventType, StepExecutionEventStatus, StepExecutionBlockedEventStatus, UI_ID, SUPPORTED_FONTS, };
|
|
37
37
|
export type { WalletState, WalletInfo, PendingSwap, PendingSwapWithQueueID, PendingSwapStep, RouteExecutionEvents, };
|
|
38
38
|
export { readAccountAddress, Networks, WalletEvents, WalletTypes, PendingSwapNetworkStatus, EventSeverity, };
|
|
39
39
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,MAAM,EACN,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,aAAa,EACd,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,sBAAsB,EACtB,KAAK,EACL,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,IAAI,EACJ,4BAA4B,EAC5B,oBAAoB,EACpB,SAAS,EACT,aAAa,EACb,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EACV,YAAY,IAA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X,UAAU,EACV,cAAc,EACd,SAAS,EACT,aAAa,EACb,KAAK,EACL,IAAI,EACJ,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,4BAA4B,EAC5B,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EACf,MAAM,EACN,aAAa,EACb,eAAe,EACf,cAAc,EACd,mBAAmB,GACpB,CAAC;AACF,OAAO,EACL,MAAM;AACN;;GAEG;AACH,aAAa,EACb,cAAc,EACd,SAAS,EACT,UAAU;AACV;;GAEG;AACH,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,YAAY;AACZ;;GAEG;AACH,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,wBAAwB,EACxB,+BAA+B,EAC/B,KAAK,EACL,eAAe,GAChB,CAAC;AAGF,YAAY,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,eAAe,EACf,oBAAoB,GACrB,CAAC;AAGF,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,wBAAwB,EACxB,aAAa,GACd,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,MAAM,EACN,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,aAAa,EACd,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EACV,sBAAsB,EACtB,KAAK,EACL,UAAU,EACV,cAAc,EACd,oBAAoB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