@rango-dev/widget-embedded 0.8.1-next.9 → 0.9.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/QueueManager.d.ts +2 -2
  3. package/dist/QueueManager.d.ts.map +1 -1
  4. package/dist/Wallets.d.ts +3 -1
  5. package/dist/Wallets.d.ts.map +1 -1
  6. package/dist/Widget.d.ts +3 -3
  7. package/dist/Widget.d.ts.map +1 -1
  8. package/dist/components/AppRouter.d.ts +2 -2
  9. package/dist/components/AppRouter.d.ts.map +1 -1
  10. package/dist/components/AppRoutes.d.ts.map +1 -1
  11. package/dist/components/ConfirmSwapErrors.d.ts +2 -2
  12. package/dist/components/ConfirmSwapErrors.d.ts.map +1 -1
  13. package/dist/components/Layout.d.ts +2 -2
  14. package/dist/components/Layout.d.ts.map +1 -1
  15. package/dist/components/PercentageChange.d.ts +2 -2
  16. package/dist/components/PercentageChange.d.ts.map +1 -1
  17. package/dist/components/RoutesOverview.d.ts +2 -2
  18. package/dist/components/RoutesOverview.d.ts.map +1 -1
  19. package/dist/components/SwapDetailsPlaceholder.d.ts +2 -2
  20. package/dist/components/SwapDetailsPlaceholder.d.ts.map +1 -1
  21. package/dist/components/TokenInfo.d.ts +2 -2
  22. package/dist/components/TokenInfo.d.ts.map +1 -1
  23. package/dist/components/TokenPreview.d.ts +2 -2
  24. package/dist/components/TokenPreview.d.ts.map +1 -1
  25. package/dist/hooks/useWalletProviders.d.ts +2 -1
  26. package/dist/hooks/useWalletProviders.d.ts.map +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/index.js.map +3 -3
  29. package/dist/pages/ConfirmSwapPage.d.ts +2 -2
  30. package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
  31. package/dist/pages/HistoryPage.d.ts +2 -2
  32. package/dist/pages/HistoryPage.d.ts.map +1 -1
  33. package/dist/pages/Home.d.ts +2 -2
  34. package/dist/pages/Home.d.ts.map +1 -1
  35. package/dist/pages/LiquiditySourcesPage.d.ts +2 -2
  36. package/dist/pages/LiquiditySourcesPage.d.ts.map +1 -1
  37. package/dist/pages/SelectChainPage.d.ts +2 -2
  38. package/dist/pages/SelectChainPage.d.ts.map +1 -1
  39. package/dist/pages/SelectTokenPage.d.ts +2 -2
  40. package/dist/pages/SelectTokenPage.d.ts.map +1 -1
  41. package/dist/pages/SettingsPage.d.ts +2 -2
  42. package/dist/pages/SettingsPage.d.ts.map +1 -1
  43. package/dist/pages/SwapDetailsPage.d.ts +2 -2
  44. package/dist/pages/SwapDetailsPage.d.ts.map +1 -1
  45. package/dist/pages/WalletsPage.d.ts +3 -2
  46. package/dist/pages/WalletsPage.d.ts.map +1 -1
  47. package/dist/types/config.d.ts +1 -0
  48. package/dist/types/config.d.ts.map +1 -1
  49. package/dist/utils/providers.d.ts +5 -2
  50. package/dist/utils/providers.d.ts.map +1 -1
  51. package/package.json +10 -8
  52. package/src/Wallets.tsx +3 -1
  53. package/src/Widget.tsx +5 -1
  54. package/src/components/AppRoutes.tsx +10 -2
  55. package/src/hooks/useWalletProviders.ts +15 -5
  56. package/src/pages/WalletsPage.tsx +9 -2
  57. package/src/types/config.ts +1 -0
  58. package/src/utils/providers.ts +14 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,50 @@
1
+ # [0.9.0](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.8.0...widget-embedded@0.9.0) (2023-07-31)
2
+
3
+
4
+ ### Features
5
+
6
+ * add project id as a external value ([0c80404](https://github.com/rango-exchange/rango-client/commit/0c80404a8cacb6c5b0338dea1e416b0b11db254b))
7
+ * Get Wallet Connect project id from config ([9fb30b4](https://github.com/rango-exchange/rango-client/commit/9fb30b4b1a83e2005bbf42553298f24b1e278e1c))
8
+
9
+
10
+
11
+ # [0.8.0](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.7.0...widget-embedded@0.8.0) (2023-07-11)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * adding lingui to ui and embedded packages ([efed0d6](https://github.com/rango-exchange/rango-client/commit/efed0d6da437bfd472f26a280adc55da1151966a))
17
+ * fix lingui version ([b7de08b](https://github.com/rango-exchange/rango-client/commit/b7de08b457314192665b9d3afa809e63ecd311a8))
18
+
19
+
20
+
21
+ # [0.7.0](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.6.0...widget-embedded@0.7.0) (2023-07-11)
22
+
23
+
24
+
25
+ # [0.6.0](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.5.0...widget-embedded@0.6.0) (2023-07-11)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * fix bug in routing when usd value is unknown ([df23685](https://github.com/rango-exchange/rango-client/commit/df23685d63de6dbe5a3e591ef619d845573e0657))
31
+ * update widget affiliate config ([0655dc1](https://github.com/rango-exchange/rango-client/commit/0655dc1949e6e8a9b1efacb71e3f66ac3d1e30fb))
32
+
33
+
34
+ ### Features
35
+
36
+ * add widget events and refactor swap execution events ([0d76806](https://github.com/rango-exchange/rango-client/commit/0d7680693dd77439de38cd0b20f263f6ae8cceb0))
37
+ * consider internalswaps in second bestRoute & select wallets ([a2d9510](https://github.com/rango-exchange/rango-client/commit/a2d9510288b534e03d6cf2ee3ed60b895607323f))
38
+ * setup lingui for multi-language in widget ([a3f1331](https://github.com/rango-exchange/rango-client/commit/a3f1331def487989a5717335b062dd9ef45876ad))
39
+ * support for external wallets ([0db170d](https://github.com/rango-exchange/rango-client/commit/0db170d28b7052e5a750d270549d9550c52789de))
40
+
41
+
42
+ ### Reverts
43
+
44
+ * Revert "support for rango-types cjs format" ([4f5f55f](https://github.com/rango-exchange/rango-client/commit/4f5f55f96e8daa329588b932b19c291c30f339c4))
45
+
46
+
47
+
1
48
  # [0.5.0](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.4.0...widget-embedded@0.5.0) (2023-05-31)
2
49
 
3
50
 
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
2
- declare function QueueManager(props: PropsWithChildren): JSX.Element;
1
+ import React, { PropsWithChildren } from 'react';
2
+ declare function QueueManager(props: PropsWithChildren): React.JSX.Element;
3
3
  export default QueueManager;
4
4
  //# sourceMappingURL=QueueManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueueManager.d.ts","sourceRoot":"","sources":["../src/QueueManager.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAmB1D,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,eAoF7C;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"QueueManager.d.ts","sourceRoot":"","sources":["../src/QueueManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAmB1D,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAoF7C;AAED,eAAe,YAAY,CAAC"}
package/dist/Wallets.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import { EventHandler } from '@rango-dev/wallets-core';
3
3
  import { WidgetConfig } from './types';
4
+ import { ProvidersOptions } from './utils/providers';
4
5
  type OnConnectHandler = (key: string) => void;
5
6
  interface WidgetContextInterface {
6
7
  onConnectWallet(handler: OnConnectHandler): void;
@@ -8,7 +9,8 @@ interface WidgetContextInterface {
8
9
  export declare const WidgetContext: React.Context<WidgetContextInterface>;
9
10
  export declare function WidgetWallets(props: PropsWithChildren<{
10
11
  providers: WidgetConfig['wallets'];
12
+ options?: ProvidersOptions;
11
13
  onUpdateState?: EventHandler;
12
- }>): JSX.Element;
14
+ }>): React.JSX.Element;
13
15
  export {};
14
16
  //# sourceMappingURL=Wallets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Wallets.d.ts","sourceRoot":"","sources":["../src/Wallets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AASvD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,KAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;AAC9C,UAAU,sBAAsB;IAC9B,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAClD;AAED,eAAO,MAAM,aAAa,uCAIxB,CAAC;AAEH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,iBAAiB,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACnC,aAAa,CAAC,EAAE,YAAY,CAAC;CAC9B,CAAC,eA2EH"}
1
+ {"version":3,"file":"Wallets.d.ts","sourceRoot":"","sources":["../src/Wallets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AASvD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,KAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;AAC9C,UAAU,sBAAsB;IAC9B,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAClD;AAED,eAAO,MAAM,aAAa,uCAIxB,CAAC;AAEH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,iBAAiB,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,aAAa,CAAC,EAAE,YAAY,CAAC;CAC9B,CAAC,qBA2EH"}
package/dist/Widget.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import { WidgetConfig } from './types';
3
3
  export type WidgetProps = {
4
4
  config?: WidgetConfig;
5
5
  };
6
- export declare function Main(props: PropsWithChildren<WidgetProps>): JSX.Element;
7
- export declare function Widget(props: PropsWithChildren<WidgetProps>): JSX.Element;
6
+ export declare function Main(props: PropsWithChildren<WidgetProps>): React.JSX.Element;
7
+ export declare function Widget(props: PropsWithChildren<WidgetProps>): React.JSX.Element;
8
8
  //# sourceMappingURL=Widget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Widget.d.ts","sourceRoot":"","sources":["../src/Widget.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAevC,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,wBAAgB,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,eA0CzD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,eAS3D"}
1
+ {"version":3,"file":"Widget.d.ts","sourceRoot":"","sources":["../src/Widget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAevC,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,wBAAgB,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,qBA0CzD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,CAAC,WAAW,CAAC,qBAa3D"}
@@ -1,8 +1,8 @@
1
- import { PropsWithChildren } from 'react';
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import { WalletType } from '@rango-dev/wallets-shared';
3
3
  export declare function AppRouter({ children, ...props }: PropsWithChildren & {
4
4
  lastConnectedWallet: string;
5
5
  disconnectedWallet: WalletType | undefined;
6
6
  clearDisconnectedWallet: () => void;
7
- }): JSX.Element;
7
+ }): React.JSX.Element;
8
8
  //# sourceMappingURL=AppRouter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppRouter.d.ts","sourceRoot":"","sources":["../../src/components/AppRouter.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAY,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAMvD,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,GAAG;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,UAAU,GAAG,SAAS,CAAC;IAC3C,uBAAuB,EAAE,MAAM,IAAI,CAAC;CACrC,eAsBA"}
1
+ {"version":3,"file":"AppRouter.d.ts","sourceRoot":"","sources":["../../src/components/AppRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAY,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG3D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAMvD,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,GAAG;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,UAAU,GAAG,SAAS,CAAC;IAC3C,uBAAuB,EAAE,MAAM,IAAI,CAAC;CACrC,qBAsBA"}
@@ -1 +1 @@
1
- {"version":3,"file":"AppRoutes.d.ts","sourceRoot":"","sources":["../../src/components/AppRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,UAAU,SAAS;IACjB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,6EAoEzC"}
1
+ {"version":3,"file":"AppRoutes.d.ts","sourceRoot":"","sources":["../../src/components/AppRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,UAAU,SAAS;IACjB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,6EA4EzC"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { ConfirmSwapError } from '../types';
3
- export declare function ConfirmSwapErrors(errors: ConfirmSwapError[]): (string | JSX.Element)[];
3
+ export declare function ConfirmSwapErrors(errors: ConfirmSwapError[]): (string | React.JSX.Element)[];
4
4
  //# sourceMappingURL=ConfirmSwapErrors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmSwapErrors.d.ts","sourceRoot":"","sources":["../../src/components/ConfirmSwapErrors.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,gBAAgB,EAAyB,MAAM,UAAU,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,EAAE,4BA2B3D"}
1
+ {"version":3,"file":"ConfirmSwapErrors.d.ts","sourceRoot":"","sources":["../../src/components/ConfirmSwapErrors.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAyB,MAAM,UAAU,CAAC;AAInE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,gBAAgB,EAAE,kCA2B3D"}
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { WidgetConfig } from '../types';
3
3
  export type LayoutProps = {
4
4
  config?: WidgetConfig;
5
5
  };
6
- export declare function Layout({ config }: LayoutProps): JSX.Element;
6
+ export declare function Layout({ config }: LayoutProps): React.JSX.Element;
7
7
  //# sourceMappingURL=Layout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../src/components/Layout.tsx"],"names":[],"mappings":";AAqBA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA4BxC,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW,eAwG7C"}
1
+ {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../src/components/Layout.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAazC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA4BxC,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW,qBAwG7C"}
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
2
1
  import BigNumber from 'bignumber.js';
2
+ import React from 'react';
3
3
  interface PropTypes {
4
4
  inputUsdValue: BigNumber | null;
5
5
  outputUsdValue: BigNumber | null;
6
6
  }
7
- export declare function PercentageChange(props: PropTypes): JSX.Element | null;
7
+ export declare function PercentageChange(props: PropTypes): React.JSX.Element | null;
8
8
  export {};
9
9
  //# sourceMappingURL=PercentageChange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PercentageChange.d.ts","sourceRoot":"","sources":["../../src/components/PercentageChange.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAMrC,UAAU,SAAS;IACjB,aAAa,EAAE,SAAS,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;CAClC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,sBAqBhD"}
1
+ {"version":3,"file":"PercentageChange.d.ts","sourceRoot":"","sources":["../../src/components/PercentageChange.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,SAAS;IACjB,aAAa,EAAE,SAAS,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;CAClC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,4BAqBhD"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { BestRouteResponse } from 'rango-sdk';
3
3
  export declare const Container: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
4
4
  sm: string;
@@ -115,6 +115,6 @@ interface PropTypes {
115
115
  routes: BestRouteResponse | null;
116
116
  totalFee?: string;
117
117
  }
118
- declare function RoutesOverview(props: PropTypes): JSX.Element | null;
118
+ declare function RoutesOverview(props: PropTypes): React.JSX.Element | null;
119
119
  export default RoutesOverview;
120
120
  //# sourceMappingURL=RoutesOverview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RoutesOverview.d.ts","sourceRoot":"","sources":["../../src/components/RoutesOverview.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAkBpB,CAAC;AAEH,UAAU,SAAS;IACjB,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,iBAAS,cAAc,CAAC,KAAK,EAAE,SAAS,sBA0BvC;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"RoutesOverview.d.ts","sourceRoot":"","sources":["../../src/components/RoutesOverview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAkBpB,CAAC;AAEH,UAAU,SAAS;IACjB,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,iBAAS,cAAc,CAAC,KAAK,EAAE,SAAS,4BA0BvC;AAED,eAAe,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const LoaderContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {}, {
3
3
  sm: string;
4
4
  md: string;
@@ -115,6 +115,6 @@ interface PropTypes {
115
115
  loading: boolean;
116
116
  onBack: () => void;
117
117
  }
118
- export declare function SwapDetailsPlaceholder(props: PropTypes): JSX.Element;
118
+ export declare function SwapDetailsPlaceholder(props: PropTypes): React.JSX.Element;
119
119
  export {};
120
120
  //# sourceMappingURL=SwapDetailsPlaceholder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwapDetailsPlaceholder.d.ts","sourceRoot":"","sources":["../../src/components/SwapDetailsPlaceholder.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM1B,CAAC;AAEH,UAAU,SAAS;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,eA0BtD"}
1
+ {"version":3,"file":"SwapDetailsPlaceholder.d.ts","sourceRoot":"","sources":["../../src/components/SwapDetailsPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM1B,CAAC;AAEH,UAAU,SAAS;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,SAAS,qBA0BtD"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { BlockchainMeta, Token } from 'rango-sdk';
3
3
  import BigNumber from 'bignumber.js';
4
4
  type PropTypes = ({
@@ -13,6 +13,6 @@ type PropTypes = ({
13
13
  chain: BlockchainMeta | null;
14
14
  token: Token | null;
15
15
  };
16
- export declare function TokenInfo(props: PropTypes): JSX.Element;
16
+ export declare function TokenInfo(props: PropTypes): React.JSX.Element;
17
17
  export {};
18
18
  //# sourceMappingURL=TokenInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenInfo.d.ts","sourceRoot":"","sources":["../../src/components/TokenInfo.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIlD,OAAO,SAAS,MAAM,cAAc,CAAC;AAOrC,KAAK,SAAS,GAAG,CACb;IACE,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,GACD;IACE,IAAI,EAAE,IAAI,CAAC;IACX,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;CAClC,CACJ,GAAG;IAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CAAE,CAAC;AA4F1D,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,eA0MzC"}
1
+ {"version":3,"file":"TokenInfo.d.ts","sourceRoot":"","sources":["../../src/components/TokenInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIlD,OAAO,SAAS,MAAM,cAAc,CAAC;AAOrC,KAAK,SAAS,GAAG,CACb;IACE,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,GACD;IACE,IAAI,EAAE,IAAI,CAAC;IACX,YAAY,EAAE,SAAS,GAAG,IAAI,CAAC;IAC/B,cAAc,EAAE,SAAS,GAAG,IAAI,CAAC;CAClC,CACJ,GAAG;IAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CAAE,CAAC;AA4F1D,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBA0MzC"}
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { LoadingStatus } from '../store/meta';
3
3
  import BigNumber from 'bignumber.js';
4
4
  interface PropTypes {
@@ -16,6 +16,6 @@ interface PropTypes {
16
16
  };
17
17
  percentageChange?: ReactNode;
18
18
  }
19
- export declare function TokenPreview(props: PropTypes): JSX.Element;
19
+ export declare function TokenPreview(props: PropTypes): React.JSX.Element;
20
20
  export {};
21
21
  //# sourceMappingURL=TokenPreview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenPreview.d.ts","sourceRoot":"","sources":["../../src/components/TokenPreview.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASzC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,SAAS,MAAM,cAAc,CAAC;AA8ErC,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,eAiF5C"}
1
+ {"version":3,"file":"TokenPreview.d.ts","sourceRoot":"","sources":["../../src/components/TokenPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASzC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,SAAS,MAAM,cAAc,CAAC;AA8ErC,UAAU,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,qBAiF5C"}
@@ -1,6 +1,7 @@
1
1
  import { ProviderInterface } from '@rango-dev/wallets-core';
2
2
  import { WidgetConfig } from '../types';
3
- export declare function useWalletProviders(providers: WidgetConfig['wallets']): {
3
+ import { ProvidersOptions } from '../utils/providers';
4
+ export declare function useWalletProviders(providers: WidgetConfig['wallets'], options?: ProvidersOptions): {
4
5
  providers: ProviderInterface[];
5
6
  };
6
7
  //# sourceMappingURL=useWalletProviders.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useWalletProviders.d.ts","sourceRoot":"","sources":["../../src/hooks/useWalletProviders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC;;EAapE"}
1
+ {"version":3,"file":"useWalletProviders.d.ts","sourceRoot":"","sources":["../../src/hooks/useWalletProviders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAEL,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAE5B,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,YAAY,CAAC,SAAS,CAAC,EAClC,OAAO,CAAC,EAAE,gBAAgB;;EAkB3B"}