@funkit/connect 1.0.4 → 1.0.5

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 (65) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/components/Box/Box.d.ts +1 -1
  3. package/dist/components/FunBadge/FunBadge.d.ts +4 -0
  4. package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +2 -1
  5. package/dist/components/FunDivider/FunDivider.d.ts +2 -1
  6. package/dist/components/FunDot/FunDot.d.ts +2 -0
  7. package/dist/components/FunNotification/FunNotification.d.ts +2 -2
  8. package/dist/components/FunSelect/FunSelect.d.ts +1 -0
  9. package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +1 -0
  10. package/dist/components/FunkitProvider/FunkitMeshProvider.d.ts +20 -0
  11. package/dist/css/sprinkles.css.d.ts +1 -1
  12. package/dist/index.css +1332 -1328
  13. package/dist/index.js +1983 -1746
  14. package/dist/utils/formatTimestamp.d.ts +11 -0
  15. package/dist/utils/mesh.d.ts +1 -0
  16. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  18. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/index.js +80 -80
  23. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  27. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  28. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  29. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  30. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  31. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  32. package/package.json +3 -3
  33. package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +0 -102
  34. package/dist/wallets/walletConnectors/chunk-2XQJ2NQ4.js +0 -178
  35. package/dist/wallets/walletConnectors/chunk-7KDOXASH.js +0 -95
  36. package/dist/wallets/walletConnectors/chunk-AJKRYTH2.js +0 -92
  37. package/dist/wallets/walletConnectors/chunk-CRSPGVPF.js +0 -105
  38. package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +0 -98
  39. package/dist/wallets/walletConnectors/chunk-CVGDYGHA.js +0 -60
  40. package/dist/wallets/walletConnectors/chunk-DV3SI63E.js +0 -96
  41. package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +0 -92
  42. package/dist/wallets/walletConnectors/chunk-HD5VYJNC.js +0 -98
  43. package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +0 -94
  44. package/dist/wallets/walletConnectors/chunk-KGTZ6E7L.js +0 -71
  45. package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +0 -66
  46. package/dist/wallets/walletConnectors/chunk-OKZSWAPF.js +0 -60
  47. package/dist/wallets/walletConnectors/chunk-OYKWP3N3.js +0 -60
  48. package/dist/wallets/walletConnectors/chunk-OYW4TIA3.js +0 -81
  49. package/dist/wallets/walletConnectors/chunk-RCWZ4KBR.js +0 -73
  50. package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +0 -107
  51. package/dist/wallets/walletConnectors/chunk-RYO26XSK.js +0 -100
  52. package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +0 -87
  53. package/dist/wallets/walletConnectors/chunk-VSZ7PAHS.js +0 -94
  54. package/dist/wallets/walletConnectors/chunk-XNNLZXHE.js +0 -102
  55. package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +0 -96
  56. package/dist/wallets/walletConnectors/{chunk-PPFSHJTA.js → chunk-2UXZAUWT.js} +3 -3
  57. package/dist/wallets/walletConnectors/{chunk-XRMAVTK7.js → chunk-3WZRNEZH.js} +3 -3
  58. package/dist/wallets/walletConnectors/{chunk-MU35GKP3.js → chunk-6LTLPR2Q.js} +3 -3
  59. package/dist/wallets/walletConnectors/{chunk-MCTPLICE.js → chunk-7CQPABJG.js} +3 -3
  60. package/dist/wallets/walletConnectors/{chunk-SPLW3CCH.js → chunk-AM4SSLAP.js} +3 -3
  61. package/dist/wallets/walletConnectors/{chunk-2LY3WMXK.js → chunk-NGXIHASN.js} +3 -3
  62. package/dist/wallets/walletConnectors/{chunk-DNOEX5NF.js → chunk-O5NKWWEG.js} +3 -3
  63. package/dist/wallets/walletConnectors/{chunk-HXYRONSJ.js → chunk-V45EXW7A.js} +3 -3
  64. package/dist/wallets/walletConnectors/{chunk-ZFXXHGAS.js → chunk-Z2DGDHHZ.js} +3 -3
  65. package/dist/wallets/walletConnectors/{chunk-2B3SPBRY.js → chunk-ZNXQ4V6G.js} +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 1.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 9197b4f: fix: moonpay modal
8
+ - b388697: feat: unsupported checkout chains tracking
9
+ - 5e6e878: feat: trigger re-quote if checkout confirmation returns expired quote error
10
+ - ec8205e: feat: tx summary borders
11
+ - ec8205e: feat: better checkout time display
12
+ - 11d5350: feat: increase max height of token list
13
+ - cac4e5c: feat: consistent total usd amount with draft value
14
+ - b388697: feat: FunBadge component
15
+ - Updated dependencies [b388697]
16
+ - @funkit/core@1.0.2
17
+ - @funkit/wagmi-tools@1.0.3
18
+
3
19
  ## 1.0.4
4
20
 
5
21
  ### Patch Changes
@@ -40,7 +40,7 @@ export declare const Box: React.ForwardRefExoticComponent<{
40
40
  readonly backgroundSize?: "cover" | undefined;
41
41
  readonly borderRadius?: "1" | "actionButton" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "6" | "10" | "13" | "16" | "24" | "25%" | "full" | undefined;
42
42
  readonly borderStyle?: "dotted" | "hidden" | "solid" | undefined;
43
- readonly borderWidth?: "0" | "1" | "2" | "4" | undefined;
43
+ readonly borderWidth?: "0" | "1" | "2" | "0.5" | "4" | undefined;
44
44
  readonly cursor?: "pointer" | undefined;
45
45
  readonly flexDirection?: "column" | "row" | undefined;
46
46
  readonly fontFamily?: "body" | undefined;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function FunBadge({ text }: {
3
+ text: string;
4
+ }): React.JSX.Element;
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import { FunCheckoutStep } from './FunCheckoutModal';
3
- export declare function FunCheckoutConfirmationStep({ checkoutId, checkoutStep, onFinish, animateOut, }: {
3
+ export declare function FunCheckoutConfirmationStep({ checkoutId, checkoutStep, regenerateQuoteFn, onFinish, animateOut, }: {
4
4
  checkoutId: string | null;
5
5
  checkoutStep: FunCheckoutStep;
6
+ regenerateQuoteFn: () => void;
6
7
  onFinish: (depositAddress: string) => void;
7
8
  animateOut: boolean;
8
9
  }): React.JSX.Element;
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { BoxProps } from '../Box/Box';
3
- export declare function FunDivider({ marginTop, marginBottom, transparent, }: {
3
+ export declare function FunDivider({ marginTop, marginBottom, transparent, borderWidth, }: {
4
4
  marginTop?: BoxProps['margin'];
5
5
  marginBottom?: BoxProps['margin'];
6
6
  transparent?: boolean;
7
+ borderWidth?: BoxProps['borderWidth'];
7
8
  }): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function FunDot(): React.JSX.Element;
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { Box } from '../Box/Box';
3
3
  import { TextProps } from '../Text/Text';
4
4
  interface FunNotificationProps {
5
5
  type?: FunNotificationType;
6
- description: string;
6
+ description: string | ReactNode;
7
7
  textProps?: Omit<TextProps, 'color'>;
8
8
  containerProps?: React.ComponentProps<typeof Box>;
9
9
  }
@@ -3,6 +3,7 @@ import { BoxProps } from '../Box/Box';
3
3
  export interface FunSelectOption {
4
4
  value: string;
5
5
  label: ReactNode;
6
+ isDisabled: boolean;
6
7
  }
7
8
  export declare function FunSelectDropdown({ handleSelect, isDropdownOpen, options, selectedValue, containerPaddingY, containerMarginTop, optionItemPadding, showBorder, }: {
8
9
  handleSelect: (newValue: FunSelectOption['value']) => void;
@@ -58,6 +58,7 @@ type FunkitCheckoutQuoteResult = {
58
58
  finalTimeEstimationMs: number;
59
59
  finalPaymentTokenAmount: string;
60
60
  finalTotalUsd: string;
61
+ finalTotalUsdDisplay: string;
61
62
  finalFeesBreakdown: FeesItem;
62
63
  };
63
64
  export type FunkitCheckoutResult = {
@@ -0,0 +1,20 @@
1
+ import { LinkPayload } from '@meshconnect/web-link-sdk';
2
+ import React from 'react';
3
+ import { MeshExchanges } from '../../utils/mesh';
4
+ interface MeshBrokerDataMap {
5
+ [brokerName: string]: LinkPayload & {
6
+ connectionExpiresAtMs: number;
7
+ };
8
+ }
9
+ export declare function FunkitMeshProvider({ children }: any): React.JSX.Element;
10
+ export declare function useFunkitMesh({ onBeforeConnect, onConnected, onMeshModalClose, }: {
11
+ onBeforeConnect?: () => void;
12
+ onConnected?: (brokerData: LinkPayload | null) => void;
13
+ onMeshModalClose?: () => void;
14
+ }): {
15
+ meshBrokerDataMap: MeshBrokerDataMap;
16
+ connectToBrokerage: (brokerage: MeshExchanges) => Promise<void>;
17
+ unlinkBrokerage: (exchange: MeshExchanges) => void;
18
+ hasActiveConnectionCheck: (brokerage: MeshExchanges) => boolean;
19
+ };
20
+ export {};
@@ -399,7 +399,7 @@ export declare const sprinkles: ((props: {
399
399
  readonly backgroundSize?: "cover" | undefined;
400
400
  readonly borderRadius?: "1" | "actionButton" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "6" | "10" | "13" | "16" | "24" | "25%" | "full" | undefined;
401
401
  readonly borderStyle?: "dotted" | "hidden" | "solid" | undefined;
402
- readonly borderWidth?: "0" | "1" | "2" | "4" | undefined;
402
+ readonly borderWidth?: "0" | "1" | "2" | "0.5" | "4" | undefined;
403
403
  readonly cursor?: "pointer" | undefined;
404
404
  readonly flexDirection?: "column" | "row" | undefined;
405
405
  readonly fontFamily?: "body" | undefined;