@dodoex/widgets 3.0.0-beta.29 → 3.0.0-beta.30

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 (57) hide show
  1. package/dist/cjs/components/Confirm.d.ts +3 -2
  2. package/dist/cjs/components/ConnectWallet/NeedConnectButton.d.ts +1 -3
  3. package/dist/cjs/components/Swap/components/Dialog.d.ts +1 -0
  4. package/dist/cjs/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +2 -1
  5. package/dist/cjs/components/Swap/components/TokenCard/index.d.ts +2 -2
  6. package/dist/cjs/components/Swap/index.d.ts +4 -1
  7. package/dist/cjs/components/TokenLogo.d.ts +3 -1
  8. package/dist/cjs/helper-Bp-dwxbt.cjs +1 -0
  9. package/dist/cjs/helper-Degc9n4N.cjs +1 -0
  10. package/dist/cjs/helper-DwrBDyE_.cjs +1 -0
  11. package/dist/cjs/index-B63L8mwP.cjs +78 -0
  12. package/dist/cjs/index-BY2YdZsL.cjs +12 -0
  13. package/dist/cjs/index-Brrr2T4x.cjs +53 -0
  14. package/dist/cjs/index-CPydSSMz.cjs +12 -0
  15. package/dist/cjs/index-CQuU3LJx.cjs +12 -0
  16. package/dist/cjs/index-CX2z34i8.cjs +53 -0
  17. package/dist/cjs/index-CeuQticy.cjs +78 -0
  18. package/dist/cjs/index-Ck3rfxl7.cjs +53 -0
  19. package/dist/cjs/index-DO134sl6.cjs +78 -0
  20. package/dist/cjs/index.cjs +1 -1
  21. package/dist/cjs/lottie-Bd52BXmS.cjs +1 -0
  22. package/dist/cjs/lottie-DEyy_4Wd.cjs +1 -0
  23. package/dist/cjs/lottie-IxM5K_xJ.cjs +1 -0
  24. package/dist/cjs/providers/GlobalConfigContext.d.ts +6 -2
  25. package/dist/cjs/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +2 -1
  26. package/dist/cjs/src/components/Swap/components/TokenCard/index.d.ts +2 -1
  27. package/dist/cjs/src/components/TokenLogo.d.ts +3 -1
  28. package/dist/cjs/src/constants/chains.d.ts +1 -3
  29. package/dist/components/Confirm.d.ts +3 -2
  30. package/dist/components/ConnectWallet/NeedConnectButton.d.ts +1 -3
  31. package/dist/components/Swap/components/Dialog.d.ts +1 -0
  32. package/dist/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +2 -1
  33. package/dist/components/Swap/components/TokenCard/index.d.ts +2 -2
  34. package/dist/components/Swap/index.d.ts +4 -1
  35. package/dist/components/TokenLogo.d.ts +3 -1
  36. package/dist/helper-BANx6xdz.js +1 -0
  37. package/dist/helper-Dmoz-Mtx.js +1 -0
  38. package/dist/helper-Dz9OHvrF.js +1 -0
  39. package/dist/index-B7H6BGxt.js +78 -0
  40. package/dist/index-BKYJgGMs.js +78 -0
  41. package/dist/index-BRon4pSJ.js +53 -0
  42. package/dist/index-BjqsC9Y1.js +12 -0
  43. package/dist/index-CqcdEMEO.js +53 -0
  44. package/dist/index-DBiudUjR.js +78 -0
  45. package/dist/index-DW2BIWGd.js +53 -0
  46. package/dist/index-DzUrAjT8.js +12 -0
  47. package/dist/index-w-T8Z0oB.js +12 -0
  48. package/dist/index.js +1 -1
  49. package/dist/lottie-C3zmdv31.js +1 -0
  50. package/dist/lottie-DW0ysCtm.js +1 -0
  51. package/dist/lottie-Dbtdch_R.js +1 -0
  52. package/dist/providers/GlobalConfigContext.d.ts +6 -2
  53. package/dist/src/components/Swap/components/TokenCard/TokenLogoCollapse.d.ts +2 -1
  54. package/dist/src/components/Swap/components/TokenCard/index.d.ts +2 -1
  55. package/dist/src/components/TokenLogo.d.ts +3 -1
  56. package/dist/src/constants/chains.d.ts +1 -3
  57. package/package.json +1 -1
@@ -1,5 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { GraphQLRequests } from '@dodoex/api';
2
+ import React from 'react';
3
+ import { ConfirmProps } from '../components/Confirm';
4
+ import { DialogProps } from '../components/Swap/components/Dialog';
3
5
  import { TokenInfo } from '../hooks/Token';
4
6
  export interface GlobalFunctionConfig {
5
7
  widgetRef?: React.RefObject<HTMLDivElement>;
@@ -18,9 +20,11 @@ export interface GlobalFunctionConfig {
18
20
  chainId?: number;
19
21
  }) => string;
20
22
  graphQLRequests?: GraphQLRequests;
23
+ ConfirmComponent?: React.FunctionComponent<ConfirmProps>;
24
+ DialogComponent?: React.FunctionComponent<DialogProps>;
21
25
  }
22
26
  export declare const graphQLRequests: GraphQLRequests;
23
- export declare const GlobalConfigContext: import("react").Context<Omit<GlobalFunctionConfig, "graphQLRequests"> & {
27
+ export declare const GlobalConfigContext: React.Context<Omit<GlobalFunctionConfig, "graphQLRequests"> & {
24
28
  graphQLRequests: GraphQLRequests;
25
29
  }>;
26
30
  export declare const useGlobalConfig: () => Omit<GlobalFunctionConfig, "graphQLRequests"> & {
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { TokenPickerProps } from '../../../TokenPicker';
3
- export declare function TokenLogoCollapse({ token, onClick, showChainLogo, }: {
3
+ export declare function TokenLogoCollapse({ token, onClick, showChainLogo, showChainName: showChainNameProps, }: {
4
4
  token?: TokenPickerProps['value'];
5
5
  onClick?: React.MouseEventHandler<HTMLButtonElement>;
6
6
  showChainLogo?: boolean;
7
+ showChainName?: boolean;
7
8
  }): JSX.Element;
@@ -17,7 +17,8 @@ export interface TokenCardProps {
17
17
  onTokenChange: TokenPickerProps['onChange'];
18
18
  side?: TokenPickerProps['side'];
19
19
  showChainLogo?: boolean;
20
+ showChainName?: boolean;
20
21
  onlyCurrentChain?: boolean;
21
22
  defaultLoadBalance?: boolean;
22
23
  }
23
- export declare function TokenCard({ sx, amt, token, readOnly, showMaxBtn, onMaxClick, fiatPriceTxt, occupiedAddrs, occupiedChainId, onInputFocus, onTokenClick, onInputChange, onTokenChange, side, showChainLogo, onlyCurrentChain, defaultLoadBalance, }: TokenCardProps): JSX.Element;
24
+ export declare function TokenCard({ sx, amt, token, readOnly, showMaxBtn, onMaxClick, fiatPriceTxt, occupiedAddrs, occupiedChainId, onInputFocus, onTokenClick, onInputChange, onTokenChange, side, showChainLogo, showChainName, onlyCurrentChain, defaultLoadBalance, }: TokenCardProps): JSX.Element;
@@ -12,5 +12,7 @@ export interface TokenLogoProps {
12
12
  cross?: boolean;
13
13
  sx?: BoxProps['sx'];
14
14
  chainId?: number;
15
+ chainSize?: number;
16
+ logoOffset?: number;
15
17
  }
16
- export default function TokenLogo({ width, height, marginRight, url, zIndex, cross, address: addressProps, token: tokenProps, sx, chainId, }: TokenLogoProps): React.ReactElement;
18
+ export default function TokenLogo({ width, height, marginRight, url, zIndex, cross, address: addressProps, token: tokenProps, sx, chainId, chainSize, logoOffset: logoOffsetProps, }: TokenLogoProps): React.ReactElement;
@@ -2,7 +2,6 @@ export declare enum ChainId {
2
2
  MAINNET = 1,
3
3
  GOERLI = 5,
4
4
  BSC = 56,
5
- SEPOLIA = 11155111,
6
5
  POLYGON = 137,
7
6
  ARBITRUM_ONE = 42161,
8
7
  AURORA = 1313161554,
@@ -14,8 +13,7 @@ export declare enum ChainId {
14
13
  LINEA = 59144,
15
14
  SCROLL = 534352,
16
15
  MANTA = 169,
17
- MANTLE = 5000,
18
- DODO_CHAIN_TESTNET = 53457
16
+ MANTLE = 5000
19
17
  }
20
18
  export declare const rpcServerMap: {
21
19
  [key in ChainId]: Array<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodoex/widgets",
3
- "version": "3.0.0-beta.29",
3
+ "version": "3.0.0-beta.30",
4
4
  "description": "DODO Widgets",
5
5
  "source": "src/index.tsx",
6
6
  "types": "dist/index.d.ts",