@funkit/connect 6.11.0 → 6.12.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 6.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 6374cf8: feat: add ip fallback
8
+
9
+ ## 6.12.1
10
+
11
+ ### Patch Changes
12
+
13
+ - d289dac: fix: fun info banner duplication
14
+
15
+ ## 6.12.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 1af942f: feat(connect): block withdrawals to addresses that lead to irrecoverable loss of funds
20
+
21
+ ### Patch Changes
22
+
23
+ - 29b0edd: fix(connect): don't show new token badge in withdrawal modal
24
+ - f5710b6: remove mesh code at all
25
+ - 1bcb94e: feat(connect): update btc processing time - qr code flow
26
+ - f553f09: fix: fix for bitcoin feature flags (were not working properly before)
27
+ - Updated dependencies [f553f09]
28
+ - @funkit/utils@1.1.9
29
+ - @funkit/api-base@1.12.1
30
+ - @funkit/core@2.3.46
31
+ - @funkit/wagmi-tools@3.0.68
32
+
3
33
  ## 6.11.0
4
34
 
5
35
  ### Minor Changes
@@ -22,7 +22,11 @@ interface TokenAndChainDropdownProps {
22
22
  maxChainDropdownHeight?: BaseDropdownProps['maxDropdownHeight'];
23
23
  openChainDropdownFullWidth?: BaseDropdownProps['openDropdownFullWidth'];
24
24
  chainTagComponent?: (value: string) => ReactNode;
25
+ /**
26
+ * Override to hide the new token badge
27
+ */
28
+ hideNewTokenBadge?: boolean;
25
29
  }
26
30
  /** Combines together chain and token dropdowns */
27
- export declare const TokenAndChainDropdown: ({ isLoading, selectedToken, selectedChainId, assets, onTokenSelected, onChainSelected, tokenLabel, chainLabel, chainLabelAddon, alwaysOpenToTop, maxTokenDropdownHeight, maxChainDropdownHeight, openChainDropdownFullWidth, chainTagComponent, }: TokenAndChainDropdownProps) => React.JSX.Element;
31
+ export declare const TokenAndChainDropdown: ({ isLoading, selectedToken, selectedChainId, assets, onTokenSelected, onChainSelected, tokenLabel, chainLabel, chainLabelAddon, alwaysOpenToTop, maxTokenDropdownHeight, maxChainDropdownHeight, openChainDropdownFullWidth, chainTagComponent, hideNewTokenBadge, }: TokenAndChainDropdownProps) => React.JSX.Element;
28
32
  export {};
@@ -13,6 +13,10 @@ interface TokenDropdownProps {
13
13
  isLoading?: BaseDropdownProps['isLoading'];
14
14
  alwaysOpenToTop?: BaseDropdownProps['alwaysOpenToTop'];
15
15
  maxDropdownHeight?: BaseDropdownProps['maxDropdownHeight'];
16
+ /**
17
+ * Override to hide the new token badge
18
+ */
19
+ hideNewTokenBadge?: boolean;
16
20
  }
17
- export declare const TokenDropdown: ({ assets, selectedChainId, selectedToken, onTokenSelected, isLoading, alwaysOpenToTop, maxDropdownHeight, }: TokenDropdownProps) => React.JSX.Element;
21
+ export declare const TokenDropdown: ({ assets, selectedChainId, selectedToken, onTokenSelected, isLoading, alwaysOpenToTop, maxDropdownHeight, hideNewTokenBadge, }: TokenDropdownProps) => React.JSX.Element;
18
22
  export {};
@@ -2,8 +2,9 @@ import React from 'react';
2
2
  import type { FeeValue } from '~/hooks/useTokenTransfer';
3
3
  interface TransferTokenDetailsProps {
4
4
  disabled?: boolean;
5
+ estProcessingTime?: number;
5
6
  estPriceImpact: FeeValue | undefined;
6
7
  maxSlippage: FeeValue | undefined;
7
8
  }
8
- export declare const TransferTokenDetails: ({ disabled, estPriceImpact, maxSlippage, }: TransferTokenDetailsProps) => React.JSX.Element;
9
+ export declare const TransferTokenDetails: ({ estProcessingTime, disabled, estPriceImpact, maxSlippage, }: TransferTokenDetailsProps) => React.JSX.Element;
9
10
  export {};
@@ -25,4 +25,8 @@ export declare const isAssetUsableToPayForCheckout: ({ config, payerAddress, pay
25
25
  reason: string;
26
26
  };
27
27
  export declare function getUsdAvailableAmount(targetChainId: string, assetChainId: string | undefined, assetUsdAmount: number | null | undefined, paymentMethod: PaymentMethod | undefined): number | null;
28
+ /**
29
+ * Attempt to safeguard user from irrecoverable losses
30
+ */
31
+ export declare function isBlacklistedWithdrawAddress(address: string): boolean;
28
32
  export {};
@@ -1,5 +1,4 @@
1
1
  import type { BridgeCustomer, BridgeVirtualBankAccount } from '@funkit/api-base';
2
- import type { MeshConnectionInfo } from '~/providers/FunkitMeshProvider';
3
2
  /** Supported payment methods in FunkitConnect. **/
4
3
  export declare enum PaymentMethod {
5
4
  /** Meld - Credit / Debit Card **/
@@ -51,7 +50,6 @@ interface AccountPaymentMethodParams {
51
50
  }
52
51
  interface BrokeragePaymentMethodParams {
53
52
  paymentMethod: PaymentMethod.BROKERAGE;
54
- connection: MeshConnectionInfo;
55
53
  }
56
54
  interface TokenTransferPaymentMethodParams {
57
55
  paymentMethod: PaymentMethod.TOKEN_TRANSFER;