@rango-dev/widget-embedded 0.12.1-next.31 → 0.12.1-next.33

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 (33) hide show
  1. package/dist/components/BlockchainsSection/BlockchainsSection.d.ts.map +1 -1
  2. package/dist/components/ConfirmWalletsModal/ConfirmWallets.helpers.d.ts +1 -1
  3. package/dist/components/ConfirmWalletsModal/ConfirmWallets.helpers.d.ts.map +1 -1
  4. package/dist/components/SettingsContainer/SettingsContainer.style.d.ts.map +1 -1
  5. package/dist/components/SwapDetails/SwapDetails.d.ts.map +1 -1
  6. package/dist/components/SwapDetails/SwapDetails.helpers.d.ts +1 -1
  7. package/dist/components/SwapDetails/SwapDetails.helpers.d.ts.map +1 -1
  8. package/dist/components/SwapDetailsAlerts/SwapDetailsAlerts.types.d.ts +2 -1
  9. package/dist/components/SwapDetailsAlerts/SwapDetailsAlerts.types.d.ts.map +1 -1
  10. package/dist/hooks/usePrepareBlockchainList.d.ts.map +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/index.js.map +4 -4
  13. package/dist/pages/Home.d.ts.map +1 -1
  14. package/dist/pages/LiquiditySourcePage.d.ts.map +1 -1
  15. package/dist/pages/SettingsPage.d.ts.map +1 -1
  16. package/dist/utils/meta.d.ts +1 -0
  17. package/dist/utils/meta.d.ts.map +1 -1
  18. package/dist/utils/settings.d.ts +1 -0
  19. package/dist/utils/settings.d.ts.map +1 -1
  20. package/package.json +2 -2
  21. package/src/components/BlockchainsSection/BlockchainsSection.tsx +6 -2
  22. package/src/components/ConfirmWalletsModal/ConfirmWallets.helpers.ts +7 -3
  23. package/src/components/SettingsContainer/SettingsContainer.style.ts +2 -1
  24. package/src/components/SwapDetails/SwapDetails.helpers.tsx +10 -7
  25. package/src/components/SwapDetails/SwapDetails.tsx +2 -1
  26. package/src/components/SwapDetailsAlerts/SwapDetailsAlerts.types.ts +5 -4
  27. package/src/hooks/usePrepareBlockchainList.ts +5 -2
  28. package/src/pages/ConfirmSwapPage.tsx +2 -2
  29. package/src/pages/Home.tsx +6 -3
  30. package/src/pages/LiquiditySourcePage.tsx +21 -16
  31. package/src/pages/SettingsPage.tsx +17 -11
  32. package/src/utils/meta.ts +7 -0
  33. package/src/utils/settings.ts +15 -0
@@ -1 +1 @@
1
- {"version":3,"file":"BlockchainsSection.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainsSection/BlockchainsSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAU5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,qBA4DlD"}
1
+ {"version":3,"file":"BlockchainsSection.d.ts","sourceRoot":"","sources":["../../../src/components/BlockchainsSection/BlockchainsSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAU5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,SAAS,qBA+DlD"}
@@ -1,6 +1,6 @@
1
1
  import type { Step } from '@rango-dev/ui/dist/widget/ui/src/components/BestRoute/BestRoute.types';
2
2
  import type { BestRouteResponse, BlockchainMeta } from 'rango-sdk';
3
- export declare function formatBestRoute(bestRoute: BestRouteResponse): Step[] | undefined;
3
+ export declare function formatBestRoute(bestRoute: BestRouteResponse, blockchains: BlockchainMeta[]): Step[] | undefined;
4
4
  export declare function getRequiredWallets(route: BestRouteResponse | null): string[];
5
5
  export declare function isValidAddress(chain: BlockchainMeta, address: string): boolean;
6
6
  //# sourceMappingURL=ConfirmWallets.helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmWallets.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmWalletsModal/ConfirmWallets.helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uEAAuE,CAAC;AAClG,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAUnE,wBAAgB,eAAe,CAC7B,SAAS,EAAE,iBAAiB,GAC3B,IAAI,EAAE,GAAG,SAAS,CA4CpB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,GAAG,MAAM,EAAE,CAgB5E;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,MAAM,GACd,OAAO,CAIT"}
1
+ {"version":3,"file":"ConfirmWallets.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmWalletsModal/ConfirmWallets.helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uEAAuE,CAAC;AAClG,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAWnE,wBAAgB,eAAe,CAC7B,SAAS,EAAE,iBAAiB,EAC5B,WAAW,EAAE,cAAc,EAAE,GAC5B,IAAI,EAAE,GAAG,SAAS,CA8CpB;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,GAAG,MAAM,EAAE,CAgB5E;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,MAAM,GACd,OAAO,CAIT"}
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsContainer.style.d.ts","sourceRoot":"","sources":["../../../src/components/SettingsContainer/SettingsContainer.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAE5B,CAAC;AAEH,eAAO,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAIhC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAM5B,CAAC"}
@@ -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;AAsB5D,OAAO,KAAsC,MAAM,OAAO,CAAC;AA0C3D,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qBA2WlD"}
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;AAsB5D,OAAO,KAAsC,MAAM,OAAO,CAAC;AA0C3D,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,qBA4WlD"}
@@ -3,6 +3,6 @@ import type { PendingSwapStep } from '@rango-dev/queue-manager-rango-preset';
3
3
  import type { Step, StepDetailsProps } from '@rango-dev/ui';
4
4
  export declare const RESET_INTERVAL = 2000;
5
5
  export declare const SECONDS = 60;
6
- export declare const getSteps: ({ swap, ...args }: GetStep) => Step[];
6
+ export declare const getSteps: ({ swap, blockchains, ...args }: GetStep) => Step[];
7
7
  export declare function getStepState(step: PendingSwapStep): StepDetailsProps['state'];
8
8
  //# sourceMappingURL=SwapDetails.helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwapDetails.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetails/SwapDetails.helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAY5D,eAAO,MAAM,cAAc,OAAQ,CAAC;AACpC,eAAO,MAAM,OAAO,KAAK,CAAC;AAE1B,eAAO,MAAM,QAAQ,sBAAuB,OAAO,KAAG,IAAI,EA4CzD,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAqB7E"}
1
+ {"version":3,"file":"SwapDetails.helpers.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetails/SwapDetails.helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAa5D,eAAO,MAAM,cAAc,OAAQ,CAAC;AACpC,eAAO,MAAM,OAAO,KAAK,CAAC;AAE1B,eAAO,MAAM,QAAQ,mCAAoC,OAAO,KAAG,IAAI,EA8CtE,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,eAAe,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAqB7E"}
@@ -1,7 +1,7 @@
1
1
  import type { getSwapMessages } from '../../utils/swap';
2
2
  import type { ModalState } from '../SwapDetailsModal';
3
3
  import type { ConnectResult } from '@rango-dev/wallets-react';
4
- import type { PendingSwap, PendingSwapNetworkStatus, PendingSwapStep } from 'rango-types';
4
+ import type { BlockchainMeta, PendingSwap, PendingSwapNetworkStatus, PendingSwapStep } from 'rango-types';
5
5
  export interface SwapAlertsProps extends WaningAlertsProps {
6
6
  step: PendingSwapStep;
7
7
  hasAlreadyProceededToSign?: boolean;
@@ -16,5 +16,6 @@ export interface FailedAlertsProps {
16
16
  }
17
17
  export type GetStep = {
18
18
  swap: PendingSwap;
19
+ blockchains: BlockchainMeta[];
19
20
  } & Omit<SwapAlertsProps, 'step' | 'hasAlreadyProceededToSign'>;
20
21
  //# sourceMappingURL=SwapDetailsAlerts.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwapDetailsAlerts.types.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetailsAlerts/SwapDetailsAlerts.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EACV,WAAW,EACX,wBAAwB,EACxB,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,IAAI,EAAE,eAAe,CAAC;IACtB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,aAAa,EAAE,CAAC,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC,GAAG,SAAS,CAAC;IAC1D,gBAAgB,EAAE,wBAAwB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9D,eAAe,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;CAChD;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;CAC7C;AAED,MAAM,MAAM,OAAO,GAAG;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG,IAAI,CAChD,eAAe,EACf,MAAM,GAAG,2BAA2B,CACrC,CAAC"}
1
+ {"version":3,"file":"SwapDetailsAlerts.types.d.ts","sourceRoot":"","sources":["../../../src/components/SwapDetailsAlerts/SwapDetailsAlerts.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,wBAAwB,EACxB,eAAe,EAChB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,IAAI,EAAE,eAAe,CAAC;IACtB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,aAAa,EAAE,CAAC,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC,GAAG,SAAS,CAAC;IAC1D,gBAAgB,EAAE,wBAAwB,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9D,eAAe,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;CAChD;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;CAC7C;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,cAAc,EAAE,CAAC;CAC/B,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,2BAA2B,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"usePrepareBlockchainList.d.ts","sourceRoot":"","sources":["../../src/hooks/usePrepareBlockchainList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,IAAI,EAAE,cAAc,EAAE,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,cAAc,EAAE,EAC7B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,iBAAiB,CA6DnB"}
1
+ {"version":3,"file":"usePrepareBlockchainList.d.ts","sourceRoot":"","sources":["../../src/hooks/usePrepareBlockchainList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,IAAI,EAAE,cAAc,EAAE,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,cAAc,EAAE,EAC7B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,iBAAiB,CAgEnB"}