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

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 (34) hide show
  1. package/dist/components/ConfirmWalletsModal/ConfirmWallets.styles.d.ts +3 -3
  2. package/dist/components/Quote/Quote.styles.d.ts +1 -1
  3. package/dist/components/TokenList/TokenList.d.ts.map +1 -1
  4. package/dist/components/TokenList/TokenList.helpers.d.ts +2 -2
  5. package/dist/components/TokenList/TokenList.helpers.d.ts.map +1 -1
  6. package/dist/components/TokenList/TokenList.types.d.ts +3 -9
  7. package/dist/components/TokenList/TokenList.types.d.ts.map +1 -1
  8. package/dist/components/TokenList/index.d.ts +0 -1
  9. package/dist/components/TokenList/index.d.ts.map +1 -1
  10. package/dist/containers/Wallets/Wallets.d.ts.map +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/index.js.map +3 -3
  13. package/dist/pages/Home.d.ts.map +1 -1
  14. package/dist/pages/SelectSwapItemsPage.d.ts.map +1 -1
  15. package/dist/store/quote.d.ts +4 -5
  16. package/dist/store/quote.d.ts.map +1 -1
  17. package/dist/store/wallets.d.ts +5 -2
  18. package/dist/store/wallets.d.ts.map +1 -1
  19. package/dist/types/wallets.d.ts +15 -1
  20. package/dist/types/wallets.d.ts.map +1 -1
  21. package/dist/utils/wallets.d.ts +6 -8
  22. package/dist/utils/wallets.d.ts.map +1 -1
  23. package/package.json +3 -3
  24. package/src/components/TokenList/TokenList.helpers.ts +2 -2
  25. package/src/components/TokenList/TokenList.tsx +10 -12
  26. package/src/components/TokenList/TokenList.types.ts +3 -10
  27. package/src/components/TokenList/index.ts +0 -1
  28. package/src/containers/Wallets/Wallets.tsx +2 -3
  29. package/src/pages/Home.tsx +9 -33
  30. package/src/pages/SelectSwapItemsPage.tsx +3 -6
  31. package/src/store/quote.ts +2 -3
  32. package/src/store/wallets.ts +56 -29
  33. package/src/types/wallets.ts +18 -1
  34. package/src/utils/wallets.ts +80 -134
@@ -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;
@@ -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":"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":"Wallets.d.ts","sourceRoot":"","sources":["../../../src/containers/Wallets/Wallets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAIzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,KAA2C,MAAM,OAAO,CAAC;AAWhE,eAAO,MAAM,aAAa,uCAIxB,CAAC;AAyFH,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAOhE"}
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;AAIzB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,KAA2C,MAAM,OAAO,CAAC;AAWhE,eAAO,MAAM,aAAa,uCAIxB,CAAC;AAwFH,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAOhE"}