@rango-dev/widget-embedded 0.29.1-next.2 → 0.29.1-next.20
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/QueueManager.d.ts.map +1 -1
- package/dist/components/ConfirmWalletsModal/ConfirmWalletsModal.d.ts.map +1 -1
- package/dist/components/NotificationContent/NotificationContent.d.ts.map +1 -1
- package/dist/components/Quote/Quote.d.ts.map +1 -1
- package/dist/components/Quote/Quote.styles.d.ts +1 -1
- package/dist/components/Quote/QuoteCostDetails.d.ts.map +1 -1
- package/dist/components/RefreshModal/RefreshModal.styles.d.ts +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/constants/quote.d.ts +2 -1
- package/dist/constants/quote.d.ts.map +1 -1
- package/dist/constants/routing.d.ts +0 -1
- package/dist/constants/routing.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 +3 -1
- package/dist/containers/WidgetInfo/WidgetInfo.types.d.ts.map +1 -1
- package/dist/hooks/useBootstrap/useBootstrap.d.ts.map +1 -1
- package/dist/hooks/useSubscribeToWidgetEvents/useSubscribeToWidgetEvents.d.ts.map +1 -1
- package/dist/hooks/useSyncStoresWithConfig.d.ts.map +1 -1
- package/dist/hooks/useWalletList.d.ts +2 -1
- package/dist/hooks/useWalletList.d.ts.map +1 -1
- package/dist/hooks/useWalletProviders/index.d.ts +2 -0
- package/dist/hooks/useWalletProviders/index.d.ts.map +1 -0
- package/dist/hooks/{useWalletProviders.d.ts → useWalletProviders/useWalletProviders.d.ts} +2 -2
- package/dist/hooks/useWalletProviders/useWalletProviders.d.ts.map +1 -0
- package/dist/hooks/useWalletProviders/useWalletProviders.helpers.d.ts +3 -0
- package/dist/hooks/useWalletProviders/useWalletProviders.helpers.d.ts.map +1 -0
- package/dist/hooks/useWidgetEvents/index.d.ts +2 -0
- package/dist/hooks/useWidgetEvents/index.d.ts.map +1 -0
- package/dist/hooks/useWidgetEvents/useWidgetEvents.d.ts +3 -0
- package/dist/hooks/useWidgetEvents/useWidgetEvents.d.ts.map +1 -0
- package/dist/index.d.ts +16 -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/WalletsPage.d.ts.map +1 -1
- package/dist/services/eventEmitter.d.ts +4 -0
- package/dist/services/eventEmitter.d.ts.map +1 -0
- package/dist/store/notification.d.ts.map +1 -1
- package/dist/store/quote.d.ts +2 -1
- package/dist/store/quote.d.ts.map +1 -1
- package/dist/store/slices/config.d.ts.map +1 -1
- package/dist/store/slices/settings.d.ts.map +1 -1
- package/dist/store/wallets.d.ts.map +1 -1
- package/dist/types/config.d.ts +8 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/event.d.ts +68 -0
- package/dist/types/event.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.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 +1 -0
- package/dist/utils/meta.d.ts.map +1 -1
- package/dist/utils/numbers.d.ts +0 -1
- package/dist/utils/numbers.d.ts.map +1 -1
- package/dist/utils/providers.d.ts +1 -0
- package/dist/utils/providers.d.ts.map +1 -1
- package/dist/widget-embedded.build.json +1 -1
- package/package.json +7 -7
- package/src/QueueManager.tsx +4 -0
- package/src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx +19 -9
- package/src/components/HistoryGroupedList/HistoryGroupedList.tsx +5 -5
- package/src/components/NotificationContent/NotificationContent.tsx +12 -113
- package/src/components/Quote/Quote.tsx +18 -25
- package/src/components/Quote/QuoteCostDetails.tsx +10 -9
- package/src/components/SwapDetails/SwapDetails.Placeholder.tsx +1 -1
- package/src/components/SwapDetails/SwapDetails.tsx +9 -10
- package/src/components/TokenList/TokenList.tsx +5 -5
- package/src/components/WalletNamespacesModal/WalletNamespacesModal.tsx +2 -10
- package/src/constants/quote.ts +11 -9
- package/src/constants/routing.ts +0 -2
- package/src/containers/Inputs/Inputs.tsx +4 -4
- package/src/containers/Wallets/Wallets.tsx +2 -1
- package/src/containers/WidgetInfo/WidgetInfo.tsx +3 -0
- package/src/containers/WidgetInfo/WidgetInfo.types.ts +3 -1
- package/src/hooks/useBootstrap/useBootstrap.ts +4 -0
- package/src/hooks/useSubscribeToWidgetEvents/useSubscribeToWidgetEvents.ts +8 -10
- package/src/hooks/useSyncStoresWithConfig.ts +3 -1
- package/src/hooks/useWalletList.ts +9 -7
- package/src/hooks/useWalletProviders/index.ts +1 -0
- package/src/hooks/useWalletProviders/useWalletProviders.helpers.ts +14 -0
- package/src/hooks/{useWalletProviders.ts → useWalletProviders/useWalletProviders.ts} +11 -5
- package/src/hooks/useWidgetEvents/index.ts +1 -0
- package/src/hooks/useWidgetEvents/useWidgetEvents.ts +9 -0
- package/src/index.ts +26 -2
- package/src/pages/WalletsPage.tsx +23 -16
- package/src/services/eventEmitter.ts +11 -0
- package/src/store/notification.ts +3 -1
- package/src/store/quote.ts +63 -1
- package/src/store/slices/config.ts +4 -0
- package/src/store/slices/settings.ts +6 -0
- package/src/store/wallets.ts +194 -173
- package/src/types/config.ts +9 -0
- package/src/types/event.ts +89 -0
- package/src/types/index.ts +1 -0
- package/src/utils/common.ts +12 -1
- package/src/utils/meta.ts +8 -0
- package/src/utils/numbers.ts +0 -12
- package/src/utils/providers.ts +4 -0
- 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/dist/hooks/useWalletProviders.d.ts.map +0 -1
- package/src/components/NotificationContent/NotificationContent.styles.ts +0 -63
- package/src/components/NotificationContent/NotificationNotFound.tsx +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueueManager.d.ts","sourceRoot":"","sources":["../src/QueueManager.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAU/C,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"QueueManager.d.ts","sourceRoot":"","sources":["../src/QueueManager.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAU/C,OAAO,KAAkB,MAAM,OAAO,CAAC;AASvC,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,qBAuFlE;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmWalletsModal.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAoB7D,OAAO,
|
|
1
|
+
{"version":3,"file":"ConfirmWalletsModal.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmWalletsModal/ConfirmWalletsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAoB7D,OAAO,KAMN,MAAM,OAAO,CAAC;AAsCf,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,qBAiiBnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationContent.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationContent/NotificationContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotificationContent.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationContent/NotificationContent.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,wBAAgB,mBAAmB,sBAwBlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Quote.d.ts","sourceRoot":"","sources":["../../../src/components/Quote/Quote.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAiBhD,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Quote.d.ts","sourceRoot":"","sources":["../../../src/components/Quote/Quote.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAiBhD,OAAO,KAA2B,MAAM,OAAO,CAAC;AAwDhD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,qBA0atC"}
|
|
@@ -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?: "search" | "decimal" | "text" | "none" | "tel" | "url" | "
|
|
376
|
+
inputMode?: "email" | "search" | "decimal" | "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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuoteCostDetails.d.ts","sourceRoot":"","sources":["../../../src/components/Quote/QuoteCostDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAc3D,OAAO,KAAmB,MAAM,OAAO,CAAC;AA0CxC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"QuoteCostDetails.d.ts","sourceRoot":"","sources":["../../../src/components/Quote/QuoteCostDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAc3D,OAAO,KAAmB,MAAM,OAAO,CAAC;AA0CxC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,qBAsJ5D"}
|
|
@@ -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?: "search" | "decimal" | "text" | "none" | "tel" | "url" | "
|
|
52
|
+
inputMode?: "email" | "search" | "decimal" | "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;
|
|
@@ -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;AAwB5D,OAAO,KAAsC,MAAM,OAAO,CAAC;
|
|
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;AAwB5D,OAAO,KAAsC,MAAM,OAAO,CAAC;AAyD3D,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qBAyYlD"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { PropTypes } from './WalletNamespacesModal.types';
|
|
2
|
-
import { Namespace } from '@rango-dev/wallets-shared';
|
|
3
2
|
import React from 'react';
|
|
4
|
-
export declare const namespaceMainBlockchain: Record<Namespace, string>;
|
|
5
3
|
export declare function WalletNamespacesModal(props: PropTypes): React.JSX.Element;
|
|
6
4
|
//# sourceMappingURL=WalletNamespacesModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletNamespacesModal.d.ts","sourceRoot":"","sources":["../../../src/components/WalletNamespacesModal/WalletNamespacesModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"WalletNamespacesModal.d.ts","sourceRoot":"","sources":["../../../src/components/WalletNamespacesModal/WalletNamespacesModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAe/D,OAAO,KAA4B,MAAM,OAAO,CAAC;AAqBjD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,SAAS,qBAiGrD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { I18n } from '@lingui/core';
|
|
1
2
|
import type { SwapFee, TagValue } from 'rango-sdk';
|
|
2
3
|
export type NameOfFees = 'Swapper Fee' | 'Affiliate Fee' | 'Outbound network fee' | 'Rango Fee' | 'Network Fee';
|
|
3
|
-
export declare
|
|
4
|
+
export declare function getFeeLabel(fee: NameOfFees, t: I18n['t']): string;
|
|
4
5
|
export type FeesGroup = {
|
|
5
6
|
payable: {
|
|
6
7
|
[key in NameOfFees]?: SwapFee[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quote.d.ts","sourceRoot":"","sources":["../../src/constants/quote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"quote.d.ts","sourceRoot":"","sources":["../../src/constants/quote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEnD,MAAM,MAAM,UAAU,GAClB,aAAa,GACb,eAAe,GACf,sBAAsB,GACtB,WAAW,GACX,aAAa,CAAC;AAElB,wBAAgB,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CASjE;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE;SAAG,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE;KAAE,CAAC;IAC7C,WAAW,EAAE;SAAG,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE;KAAE,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,EAMxC,CAAC;AAEF,eAAO,MAAM,WAAW,KAAK,CAAC"}
|
|
@@ -10,5 +10,4 @@ export declare const PERCENTAGE_CHANGE_MIN_DECIMALS = 2;
|
|
|
10
10
|
export declare const PERCENTAGE_CHANGE_MAX_DECIMALS = 2;
|
|
11
11
|
export declare const BALANCE_MIN_DECIMALS = 8;
|
|
12
12
|
export declare const BALANCE_MAX_DECIMALS = 8;
|
|
13
|
-
export declare const TOOLTIP_DECIMALS = 12;
|
|
14
13
|
//# sourceMappingURL=routing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/constants/routing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAC3C,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAChD,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,oBAAoB,IAAI,CAAC
|
|
1
|
+
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/constants/routing.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAC3C,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAChD,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC,eAAO,MAAM,oBAAoB,IAAI,CAAC"}
|
|
@@ -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;AAwHH,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;AAYzD,eAAO,MAAM,iBAAiB,uDAElB,CAAC;AAEb,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,
|
|
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;AAYzD,eAAO,MAAM,iBAAiB,uDAElB,CAAC;AAEb,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,qBAiDxD;AAED,wBAAgB,SAAS,IAAI,0BAA0B,CAQtD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WidgetHistory } from './WidgetInfo.helpers';
|
|
2
|
-
import type { FetchStatus } from '../../store/slices/data';
|
|
2
|
+
import type { FetchStatus, FindToken } from '../../store/slices/data';
|
|
3
3
|
import type { ConnectedWallet } from '../../store/wallets';
|
|
4
4
|
import type { Wallet } from '../../types';
|
|
5
5
|
import type { Notification } from '../../types/notification';
|
|
@@ -19,10 +19,12 @@ export interface WidgetInfoContextInterface {
|
|
|
19
19
|
tokens: Token[];
|
|
20
20
|
swappers: SwapperMeta[];
|
|
21
21
|
loadingStatus: FetchStatus;
|
|
22
|
+
findToken: FindToken;
|
|
22
23
|
};
|
|
23
24
|
resetLanguage: () => void;
|
|
24
25
|
notifications: {
|
|
25
26
|
list: Notification[];
|
|
27
|
+
clearAll: () => void;
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
//# 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,MAAM,yBAAyB,CAAC;
|
|
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;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEpE,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,OAAO,CAAC;IACrB,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE;QACP,OAAO,EAAE,eAAe,EAAE,CAAC;QAC3B,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC;KACxD,CAAC;IACF,IAAI,EAAE;QACJ,WAAW,EAAE,cAAc,EAAE,CAAC;QAC9B,MAAM,EAAE,KAAK,EAAE,CAAC;QAChB,QAAQ,EAAE,WAAW,EAAE,CAAC;QACxB,aAAa,EAAE,WAAW,CAAC;QAC3B,SAAS,EAAE,SAAS,CAAC;KACtB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,EAAE;QACb,IAAI,EAAE,YAAY,EAAE,CAAC;QACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBootstrap.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBootstrap/useBootstrap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useBootstrap.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBootstrap/useBootstrap.ts"],"names":[],"mappings":"AAmBA,wBAAgB,YAAY,SA4D3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSubscribeToWidgetEvents.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSubscribeToWidgetEvents/useSubscribeToWidgetEvents.ts"],"names":[],"mappings":"AAgBA,wBAAgB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"useSubscribeToWidgetEvents.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSubscribeToWidgetEvents/useSubscribeToWidgetEvents.ts"],"names":[],"mappings":"AAgBA,wBAAgB,0BAA0B,SAkDzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSyncStoresWithConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useSyncStoresWithConfig.ts"],"names":[],"mappings":"AAWA,wBAAgB,uBAAuB,
|
|
1
|
+
{"version":3,"file":"useSyncStoresWithConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useSyncStoresWithConfig.ts"],"names":[],"mappings":"AAWA,wBAAgB,uBAAuB,SA+HtC"}
|
|
@@ -3,6 +3,7 @@ interface Params {
|
|
|
3
3
|
chain?: string;
|
|
4
4
|
onBeforeConnect?: (walletType: string) => void;
|
|
5
5
|
onConnect?: (walletType: string) => void;
|
|
6
|
+
onError?: (error?: string) => void;
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
8
9
|
* gets list of wallets with their information and an action for handling click callback fo UI
|
|
@@ -10,7 +11,7 @@ interface Params {
|
|
|
10
11
|
* you can use this list whenever you need to show the list of wallets and needed callbacks
|
|
11
12
|
*/
|
|
12
13
|
export declare function useWalletList(params: Params): {
|
|
13
|
-
list: import("
|
|
14
|
+
list: import("..").WalletInfoWithNamespaces[];
|
|
14
15
|
error: string;
|
|
15
16
|
handleClick: (type: WalletType, namespaces?: Namespace[]) => Promise<void>;
|
|
16
17
|
disconnectConnectingWallets: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWalletList.d.ts","sourceRoot":"","sources":["../../src/hooks/useWalletList.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"useWalletList.d.ts","sourceRoot":"","sources":["../../src/hooks/useWalletList.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAyBvE,UAAU,MAAM;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM;;;wBAwCT,UAAU,eAAe,SAAS,EAAE;;6BAgC/B,UAAU;EAqEjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletProviders/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { WidgetConfig } from '
|
|
2
|
-
import type { ProvidersOptions } from '
|
|
1
|
+
import type { WidgetConfig } from '../../types';
|
|
2
|
+
import type { ProvidersOptions } from '../../utils/providers';
|
|
3
3
|
import type { ProviderInterface } from '@rango-dev/wallets-react';
|
|
4
4
|
export declare function useWalletProviders(providers: WidgetConfig['wallets'], options?: ProvidersOptions): {
|
|
5
5
|
providers: ProviderInterface[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWalletProviders.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletProviders/useWalletProviders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AASlE,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,EAClC,OAAO,CAAC,EAAE,gBAAgB;;EAoB3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWalletProviders.helpers.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWalletProviders/useWalletProviders.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAElE,wBAAgB,aAAa,CAC3B,SAAS,EAAE,CAAC,MAAM,GAAG,iBAAiB,CAAC,EAAE,GACxC,MAAM,CASR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWidgetEvents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWidgetEvents.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWidgetEvents/useWidgetEvents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAItD,wBAAgB,eAAe,IAAI,kBAAkB,CAIpD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { WidgetProps } from './containers/Widget';
|
|
2
2
|
import type { ConnectedWallet } from './store/wallets';
|
|
3
|
-
import type { BlockchainAndTokenConfig, Tokens, WidgetColors, WidgetColorsKeys, WidgetConfig, WidgetTheme, WidgetVariant } from './types';
|
|
3
|
+
import type { BlockchainAndTokenConfig, QuoteEventData, Tokens, WalletEventData, WalletInfoWithNamespaces, 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';
|
|
7
7
|
import type { PendingSwap, PendingSwapStep } from 'rango-types';
|
|
8
|
-
import { EventSeverity,
|
|
8
|
+
import { EventSeverity, RouteEventType, StepEventType, StepExecutionBlockedEventStatus, StepExecutionEventStatus } from '@rango-dev/queue-manager-rango-preset';
|
|
9
9
|
import { readAccountAddress, useWallets, Events as WalletEvents } from '@rango-dev/wallets-react';
|
|
10
10
|
import { Networks, WalletTypes } from '@rango-dev/wallets-shared';
|
|
11
11
|
import { PendingSwapNetworkStatus } from 'rango-types';
|
|
@@ -15,13 +15,25 @@ import { WidgetWallets } from './containers/Wallets';
|
|
|
15
15
|
import { Widget } from './containers/Widget';
|
|
16
16
|
import { useWidget } from './containers/WidgetInfo';
|
|
17
17
|
import { WidgetProvider } from './containers/WidgetProvider';
|
|
18
|
+
import { useWalletList } from './hooks/useWalletList';
|
|
19
|
+
import { useWidgetEvents } from './hooks/useWidgetEvents';
|
|
20
|
+
import { widgetEventEmitter } from './services/eventEmitter';
|
|
21
|
+
import { WidgetEvents as MainEvents, QuoteEventTypes, WalletEventTypes, WidgetEvents } from './types';
|
|
18
22
|
import { customizedThemeTokens } from './utils/ui';
|
|
19
|
-
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, };
|
|
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, WalletInfoWithNamespaces, };
|
|
20
24
|
export { Widget,
|
|
21
25
|
/**
|
|
22
26
|
* @deprecated Use `WidgetProvider` instead. This component will be removed in future versions.
|
|
23
27
|
*/
|
|
24
|
-
WidgetWallets, WidgetProvider, useWidget, useWallets,
|
|
28
|
+
WidgetWallets, WidgetProvider, useWidget, useWallets,
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use `widgetEventEmitter` instead. This hook will be removed in future versions.
|
|
31
|
+
*/
|
|
32
|
+
useWidgetEvents, useWalletList, customizedThemeTokens, widgetEventEmitter, WidgetEvents,
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Use `WidgetEvents` instead. This enum will be removed in future versions.
|
|
35
|
+
*/
|
|
36
|
+
MainEvents, QuoteEventTypes, WalletEventTypes, RouteEventType, StepEventType, StepExecutionEventStatus, StepExecutionBlockedEventStatus, UI_ID, SUPPORTED_FONTS, };
|
|
25
37
|
export type { WalletState, WalletInfo, PendingSwap, PendingSwapWithQueueID, PendingSwapStep, RouteExecutionEvents, };
|
|
26
38
|
export { readAccountAddress, Networks, WalletEvents, WalletTypes, PendingSwapNetworkStatus, EventSeverity, };
|
|
27
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,MAAM,EACN,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,IAAI,mBAAmB,EACnC,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,UAAU,EACX,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEhE,OAAO,EACL,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|