@rango-dev/widget-embedded 0.17.1-next.25 → 0.17.1-next.27

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 (80) hide show
  1. package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +3 -3
  2. package/dist/components/HeaderButtons/HomeButtons.d.ts.map +1 -1
  3. package/dist/components/Layout/Layout.d.ts.map +1 -1
  4. package/dist/components/NoResult/NoResult.d.ts.map +1 -1
  5. package/dist/components/Quote/Quote.styles.d.ts +1 -1
  6. package/dist/components/Slippage/Slippage.d.ts.map +1 -1
  7. package/dist/components/TokenList/TokenList.d.ts.map +1 -1
  8. package/dist/components/TokenList/TokenList.helpers.d.ts +2 -2
  9. package/dist/components/TokenList/TokenList.helpers.d.ts.map +1 -1
  10. package/dist/components/TokenList/TokenList.types.d.ts +3 -9
  11. package/dist/components/TokenList/TokenList.types.d.ts.map +1 -1
  12. package/dist/components/TokenList/index.d.ts +0 -1
  13. package/dist/components/TokenList/index.d.ts.map +1 -1
  14. package/dist/containers/App/App.d.ts.map +1 -1
  15. package/dist/hooks/useLanguage.d.ts.map +1 -1
  16. package/dist/hooks/useSyncStoresWithConfig.d.ts.map +1 -1
  17. package/dist/hooks/useTheme.d.ts +1 -1
  18. package/dist/hooks/useTheme.d.ts.map +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/index.js.map +4 -4
  21. package/dist/pages/ConfirmSwapPage.d.ts.map +1 -1
  22. package/dist/pages/Home.d.ts.map +1 -1
  23. package/dist/pages/LiquiditySourcePage.d.ts.map +1 -1
  24. package/dist/pages/SelectSwapItemsPage.d.ts.map +1 -1
  25. package/dist/pages/SettingsPage.d.ts.map +1 -1
  26. package/dist/pages/ThemePage.d.ts.map +1 -1
  27. package/dist/store/AppStore.d.ts +37 -1
  28. package/dist/store/AppStore.d.ts.map +1 -1
  29. package/dist/store/app.d.ts +39 -2
  30. package/dist/store/app.d.ts.map +1 -1
  31. package/dist/store/quote.d.ts +4 -5
  32. package/dist/store/quote.d.ts.map +1 -1
  33. package/dist/store/slices/settings.d.ts +39 -0
  34. package/dist/store/slices/settings.d.ts.map +1 -0
  35. package/dist/store/wallets.d.ts +5 -2
  36. package/dist/store/wallets.d.ts.map +1 -1
  37. package/dist/types/config.d.ts +28 -9
  38. package/dist/types/config.d.ts.map +1 -1
  39. package/dist/types/wallets.d.ts +15 -1
  40. package/dist/types/wallets.d.ts.map +1 -1
  41. package/dist/utils/settings.d.ts +4 -1
  42. package/dist/utils/settings.d.ts.map +1 -1
  43. package/dist/utils/wallets.d.ts +6 -8
  44. package/dist/utils/wallets.d.ts.map +1 -1
  45. package/package.json +3 -3
  46. package/src/components/HeaderButtons/HomeButtons.tsx +28 -18
  47. package/src/components/Layout/Layout.tsx +11 -1
  48. package/src/components/NoResult/NoResult.tsx +2 -5
  49. package/src/components/QuoteWarningsAndErrors/SlippageWariningModal.tsx +2 -2
  50. package/src/components/Slippage/Slippage.tsx +3 -5
  51. package/src/components/TokenList/TokenList.helpers.ts +2 -2
  52. package/src/components/TokenList/TokenList.tsx +10 -12
  53. package/src/components/TokenList/TokenList.types.ts +3 -10
  54. package/src/components/TokenList/index.ts +0 -1
  55. package/src/containers/App/App.tsx +0 -2
  56. package/src/containers/Wallets/Wallets.tsx +3 -3
  57. package/src/hooks/useConfirmSwap/useConfirmSwap.ts +4 -4
  58. package/src/hooks/useLanguage.ts +2 -3
  59. package/src/hooks/usePrepareBlockchainList/usePrepareBlockchainList.ts +2 -2
  60. package/src/hooks/useSwapInput.ts +4 -4
  61. package/src/hooks/useSyncStoresWithConfig.ts +1 -2
  62. package/src/hooks/useTheme.ts +4 -5
  63. package/src/pages/ConfirmSwapPage.tsx +2 -3
  64. package/src/pages/Home.tsx +9 -33
  65. package/src/pages/LiquiditySourcePage.tsx +3 -3
  66. package/src/pages/SelectSwapItemsPage.tsx +3 -6
  67. package/src/pages/SettingsPage.tsx +22 -11
  68. package/src/pages/ThemePage.tsx +2 -3
  69. package/src/store/AppStore.tsx +7 -1
  70. package/src/store/app.ts +31 -5
  71. package/src/store/quote.ts +2 -3
  72. package/src/store/slices/settings.ts +168 -0
  73. package/src/store/wallets.ts +56 -29
  74. package/src/types/config.ts +38 -8
  75. package/src/types/wallets.ts +18 -1
  76. package/src/utils/settings.ts +11 -5
  77. package/src/utils/wallets.ts +80 -134
  78. package/dist/store/settings.d.ts +0 -83
  79. package/dist/store/settings.d.ts.map +0 -1
  80. package/src/store/settings.ts +0 -161
@@ -1313,7 +1313,7 @@ export declare const CustomDestinationButton: import("@stitches/react/types/styl
1313
1313
  results?: number | undefined;
1314
1314
  security?: string | undefined;
1315
1315
  unselectable?: "on" | "off" | undefined;
1316
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
1316
+ inputMode?: "search" | "decimal" | "text" | "none" | "tel" | "url" | "email" | "numeric" | undefined;
1317
1317
  is?: string | undefined;
1318
1318
  "aria-activedescendant"?: string | undefined;
1319
1319
  "aria-atomic"?: boolean | "true" | "false" | undefined;
@@ -1327,7 +1327,7 @@ export declare const CustomDestinationButton: import("@stitches/react/types/styl
1327
1327
  "aria-colindextext"?: string | undefined;
1328
1328
  "aria-colspan"?: number | undefined;
1329
1329
  "aria-controls"?: string | undefined;
1330
- "aria-current"?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
1330
+ "aria-current"?: boolean | "time" | "page" | "true" | "step" | "false" | "location" | "date" | undefined;
1331
1331
  "aria-describedby"?: string | undefined;
1332
1332
  "aria-description"?: string | undefined;
1333
1333
  "aria-details"?: string | undefined;
@@ -1536,7 +1536,7 @@ export declare const CustomDestinationButton: import("@stitches/react/types/styl
1536
1536
  } & {
1537
1537
  size?: "small" | "medium" | "large" | "xsmall" | "xxsmall" | undefined;
1538
1538
  variant?: "default" | "contained" | "outlined" | "ghost" | undefined;
1539
- type?: "primary" | "secondary" | "success" | "error" | "warning" | undefined;
1539
+ type?: "success" | "warning" | "error" | "primary" | "secondary" | undefined;
1540
1540
  loading?: boolean | undefined;
1541
1541
  disabled?: boolean | undefined;
1542
1542
  prefix?: import("react").ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"HomeButtons.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderButtons/HomeButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAWlE,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,wBAAgB,WAAW,CAAC,KAAK,EAAE,oBAAoB,qBA6DtD"}
1
+ {"version":3,"file":"HomeButtons.d.ts","sourceRoot":"","sources":["../../../src/components/HeaderButtons/HomeButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAWlE,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,wBAAgB,WAAW,CAAC,KAAK,EAAE,oBAAoB,qBAqEtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/Layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAO,MAAM,gBAAgB,CAAC;AAIrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAqE1B,QAAA,MAAM,MAAM;;wCAAoC,CAAC;AAGjD,OAAO,EAAE,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"Layout.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/Layout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAO,MAAM,gBAAgB,CAAC;AAIrD,OAAO,KAAK,MAAM,OAAO,CAAC;AA+E1B,QAAA,MAAM,MAAM;;wCAAoC,CAAC;AAGjD,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NoResult.d.ts","sourceRoot":"","sources":["../../../src/components/NoResult/NoResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAUlD,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,qBA2DxC"}
1
+ {"version":3,"file":"NoResult.d.ts","sourceRoot":"","sources":["../../../src/components/NoResult/NoResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAUlD,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,qBAyDxC"}
@@ -482,7 +482,7 @@ export declare const Chains: import("@stitches/react/types/styled-component").St
482
482
  transitions: {};
483
483
  }, import("@stitches/react/types/config").DefaultThemeMap, {}>>;
484
484
  export declare const ChainImageContainer: import("@stitches/react/types/styled-component").StyledComponent<"div", {
485
- state?: "error" | "warning" | undefined;
485
+ state?: "warning" | "error" | undefined;
486
486
  }, {
487
487
  sm: string;
488
488
  md: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Slippage.d.ts","sourceRoot":"","sources":["../../../src/components/Slippage/Slippage.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,wBAAgB,QAAQ,sBAuEvB"}
1
+ {"version":3,"file":"Slippage.d.ts","sourceRoot":"","sources":["../../../src/components/Slippage/Slippage.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,wBAAgB,QAAQ,sBAqEvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"TokenList.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EAGV,MAAM,mBAAmB,CAAC;AAgB3B,OAAO,KAA0C,MAAM,OAAO,CAAC;AA+D/D,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBA6LzC"}
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;AAiBpE,OAAO,KAA0C,MAAM,OAAO,CAAC;AAgE/D,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBA6LzC"}
@@ -1,3 +1,3 @@
1
- import type { TokenWithBalance } from './TokenList.types';
2
- export declare const filterTokens: (list: TokenWithBalance[], searchedFor: string) => TokenWithBalance[];
1
+ import type { Token } from 'rango-sdk';
2
+ export declare const filterTokens: (list: Token[], searchedFor: string) => Token[];
3
3
  //# sourceMappingURL=TokenList.helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenList.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAI1D,eAAO,MAAM,YAAY,SAAU,gBAAgB,EAAE,eAAe,MAAM,uBAMvE,CAAC"}
1
+ {"version":3,"file":"TokenList.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIvC,eAAO,MAAM,YAAY,SAAU,KAAK,EAAE,eAAe,MAAM,YAM5D,CAAC"}
@@ -1,14 +1,8 @@
1
1
  import type { Token } from 'rango-sdk';
2
- export interface TokenWithBalance extends Token {
3
- balance?: {
4
- amount: string;
5
- usdValue: string;
6
- };
7
- }
8
2
  export interface PropTypes {
9
- list: TokenWithBalance[];
3
+ list: Token[];
10
4
  searchedFor?: string;
11
- onChange: (token: TokenWithBalance) => void;
5
+ onChange: (token: Token) => void;
12
6
  selectedBlockchain?: string;
13
7
  }
14
8
  export interface LoadingTokenListProps {
@@ -18,7 +12,7 @@ export interface RenderDescProps {
18
12
  name?: string | null;
19
13
  address: string;
20
14
  url: string;
21
- token: TokenWithBalance;
15
+ token: Token;
22
16
  customCssForTag: TagCSS;
23
17
  customCssForTagTitle: TitleCSS;
24
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TokenList.types.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,gBAAiB,SAAQ,KAAK;IAC7C,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5C,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,gBAAgB,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,QAAQ,CAAC;CAChC;AAED,KAAK,MAAM,GAAG;IACZ,CAAC,CAAC,EAAE,MAAM,GACN,MAAM,GACN;QACE,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AACF,KAAK,QAAQ,GAAG;IACd,CAAC,CAAC,EAAE,MAAM,GACN,MAAM,GACN;QACE,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"TokenList.types.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/TokenList.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,QAAQ,CAAC;CAChC;AAED,KAAK,MAAM,GAAG;IACZ,CAAC,CAAC,EAAE,MAAM,GACN,MAAM,GACN;QACE,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AACF,KAAK,QAAQ,GAAG;IACd,CAAC,CAAC,EAAE,MAAM,GACN,MAAM,GACN;QACE,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,3 +1,2 @@
1
1
  export { TokenList } from './TokenList';
2
- export type { TokenWithBalance } from './TokenList.types';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TokenList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/containers/App/App.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAe/D,wBAAgB,IAAI,sBAoCnB"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/containers/App/App.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAc/D,wBAAgB,IAAI,sBAmCnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLanguage.d.ts","sourceRoot":"","sources":["../../src/hooks/useLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAK9C,UAAU,WAAW;IACnB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,eAAe,EAAE,QAAQ,CAAC;IAC1B,cAAc,EAAE,QAAQ,CAAC;IACzB,cAAc,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC/C;AAED,wBAAgB,WAAW,IAAI,WAAW,CAYzC"}
1
+ {"version":3,"file":"useLanguage.d.ts","sourceRoot":"","sources":["../../src/hooks/useLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAK9C,UAAU,WAAW;IACnB,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,eAAe,EAAE,QAAQ,CAAC;IAC1B,cAAc,EAAE,QAAQ,CAAC;IACzB,cAAc,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC/C;AAED,wBAAgB,WAAW,IAAI,WAAW,CAWzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSyncStoresWithConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useSyncStoresWithConfig.ts"],"names":[],"mappings":"AASA,wBAAgB,uBAAuB,SA6JtC"}
1
+ {"version":3,"file":"useSyncStoresWithConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useSyncStoresWithConfig.ts"],"names":[],"mappings":"AAQA,wBAAgB,uBAAuB,SA6JtC"}
@@ -1,4 +1,4 @@
1
- import type { WidgetTheme } from '../types';
1
+ import { type WidgetTheme } from '../types';
2
2
  export declare function useTheme(props: WidgetTheme): {
3
3
  activeTheme: () => string;
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAiB5C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW;;EAkF1C"}
1
+ {"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTheme.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAQ5C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW;;EAkF1C"}