@rango-dev/widget-embedded 0.22.2 → 0.22.4-next.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 (31) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/components/SettingsContainer/SettingsContainer.style.d.ts +3 -1
  3. package/dist/components/SettingsContainer/SettingsContainer.style.d.ts.map +1 -1
  4. package/dist/constants/searchParams.d.ts +1 -0
  5. package/dist/constants/searchParams.d.ts.map +1 -1
  6. package/dist/hooks/usePrepareBlockchainList/usePrepareBlockchainList.helpers.d.ts +2 -2
  7. package/dist/hooks/useSwapInput.d.ts.map +1 -1
  8. package/dist/hooks/useSyncUrlAndStore/useSyncUrlAndStore.d.ts.map +1 -1
  9. package/dist/index.js +2 -2
  10. package/dist/index.js.map +3 -3
  11. package/dist/pages/LiquiditySourcePage.d.ts.map +1 -1
  12. package/dist/pages/SettingsPage.d.ts.map +1 -1
  13. package/dist/store/app.d.ts +1 -1
  14. package/dist/store/app.d.ts.map +1 -1
  15. package/dist/store/slices/config.d.ts +13 -3
  16. package/dist/store/slices/config.d.ts.map +1 -1
  17. package/dist/store/slices/data.d.ts.map +1 -1
  18. package/dist/utils/settings.d.ts +1 -1
  19. package/package.json +3 -2
  20. package/src/components/NoResult/NoResult.tsx +1 -1
  21. package/src/components/SettingsContainer/SettingsContainer.style.ts +7 -0
  22. package/src/constants/searchParams.ts +5 -0
  23. package/src/hooks/useConfirmSwap/useConfirmSwap.ts +1 -1
  24. package/src/hooks/useSwapInput.ts +8 -6
  25. package/src/hooks/useSyncUrlAndStore/useSyncUrlAndStore.ts +26 -4
  26. package/src/pages/ConfirmSwapPage.tsx +1 -1
  27. package/src/pages/LiquiditySourcePage.tsx +9 -4
  28. package/src/pages/SettingsPage.tsx +49 -2
  29. package/src/store/app.ts +2 -2
  30. package/src/store/slices/config.ts +56 -5
  31. package/src/store/slices/data.ts +12 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [0.22.3](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.22.2...widget-embedded@0.22.3) (2024-02-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add ethers dependency to embedded ([5bce05d](https://github.com/rango-exchange/rango-client/commit/5bce05df42c96efa9bdffb09985d5de34cbe647e))
7
+
8
+
9
+
10
+ ## [0.22.2](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.22.1...widget-embedded@0.22.2) (2024-02-07)
11
+
12
+
13
+
1
14
  ## [0.22.1](https://github.com/rango-exchange/rango-client/compare/widget-embedded@0.22.0...widget-embedded@0.22.1) (2024-02-06)
2
15
 
3
16
 
@@ -1,4 +1,6 @@
1
- export declare const LiquiditySourceList: import("@stitches/react/types/styled-component").StyledComponent<"ul", {}, {
1
+ export declare const LiquiditySourceList: import("@stitches/react/types/styled-component").StyledComponent<"ul", {
2
+ disabled?: boolean | "true" | undefined;
3
+ }, {
2
4
  xs: string;
3
5
  sm: string;
4
6
  md: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsContainer.style.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsContainer/SettingsContainer.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM9B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIhC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM5B,CAAC"}
1
+ {"version":3,"file":"SettingsContainer.style.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsContainer/SettingsContainer.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAa9B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIhC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM5B,CAAC"}
@@ -5,6 +5,7 @@ export declare enum SearchParams {
5
5
  TO_TOKEN = "toToken",
6
6
  FROM_AMOUNT = "fromAmount",
7
7
  AUTO_CONNECT = "autoConnect",
8
+ LIQUIDITY_SOURCES = "liquiditySources",
8
9
  CLIENT_URL = "clientUrl"
9
10
  }
10
11
  //# sourceMappingURL=searchParams.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchParams.d.ts","sourceRoot":"","sources":["../../src/constants/searchParams.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,eAAe,mBAAmB;IAClC,UAAU,cAAc;IACxB,aAAa,iBAAiB;IAC9B,QAAQ,YAAY;IACpB,WAAW,eAAe;IAC1B,YAAY,gBAAgB;IAE5B,UAAU,cAAc;CACzB"}
1
+ {"version":3,"file":"searchParams.d.ts","sourceRoot":"","sources":["../../src/constants/searchParams.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,eAAe,mBAAmB;IAClC,UAAU,cAAc;IACxB,aAAa,iBAAiB;IAC9B,QAAQ,YAAY;IACpB,WAAW,eAAe;IAC1B,YAAY,gBAAgB;IAK5B,iBAAiB,qBAAqB;IAEtC,UAAU,cAAc;CACzB"}
@@ -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): 0 | 1 | -1;
6
- export declare function generateSortByPreferredBlockchainsFor(preferredBlockchains: string[]): (a: BlockchainMeta, b: BlockchainMeta) => 0 | 1 | -1;
5
+ export declare function sortByMostUsedBlockchains(a: BlockchainMeta, b: BlockchainMeta): 1 | 0 | -1;
6
+ export declare function generateSortByPreferredBlockchainsFor(preferredBlockchains: string[]): (a: BlockchainMeta, b: BlockchainMeta) => 1 | 0 | -1;
7
7
  export declare function isInVisibleList(blockchain: string, prepareOutput: PrepareOutput): boolean;
8
8
  //# sourceMappingURL=usePrepareBlockchainList.helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSwapInput.d.ts","sourceRoot":"","sources":["../../src/hooks/useSwapInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA6BzD,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,IAAI,YAAY,CAiL3C"}
1
+ {"version":3,"file":"useSwapInput.d.ts","sourceRoot":"","sources":["../../src/hooks/useSwapInput.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AA6BzD,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,IAAI,YAAY,CAmL3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSyncUrlAndStore.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSyncUrlAndStore/useSyncUrlAndStore.ts"],"names":[],"mappings":"AAgBA,wBAAgB,kBAAkB,SAgIjC"}
1
+ {"version":3,"file":"useSyncUrlAndStore.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSyncUrlAndStore/useSyncUrlAndStore.ts"],"names":[],"mappings":"AAgBA,wBAAgB,kBAAkB,SAsJjC"}