@funkit/connect 8.0.0 → 8.1.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.
- package/CHANGELOG.md +23 -0
- package/dist/__generated__/default_configs.d.ts +3 -0
- package/dist/consts/customers.d.ts +0 -1
- package/dist/domains/relay.d.ts +0 -1
- package/dist/hooks/usePaymentSources.d.ts +2 -5
- package/dist/index.js +1329 -1465
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -1
- package/dist/modals/CheckoutModal/stepTransition.d.ts +3 -1
- package/dist/utils/customer.d.ts +0 -6
- package/dist/utils/flags/config.d.ts +24 -6
- package/dist/wallets/walletConnectors/index.js +18 -18
- package/package.json +4 -4
- package/dist/modals/CheckoutModal/ConfirmationStep/KatanaBridgeAlert.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 8.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 95ea941: remove katana chain support
|
|
8
|
+
- 95ea941: remove hardcoded logic
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- 9203321: feat(connect): migrate IsCheckoutActivated flag to statsig
|
|
13
|
+
- 507e0e4: Fix "New Deposit" button not working after successful brokerage transactions. The button now properly closes the current checkout and opens a new one.
|
|
14
|
+
- 3ee4395: Fix checkout initialization with placeholder addresses and add logout detection logging
|
|
15
|
+
- 864ff30: Hide token amount display for AA deposits with fee distribution
|
|
16
|
+
- ab6f6d2: Show impact <0.01% instead of negative price impact.
|
|
17
|
+
- 5c4a30f: preserve input amount as token or fiat based on selection when continue and return back
|
|
18
|
+
- ab6f6d2: apply output recalibration with swapImpact only
|
|
19
|
+
- Updated dependencies [9203321]
|
|
20
|
+
- Updated dependencies [95ea941]
|
|
21
|
+
- Updated dependencies [95ea941]
|
|
22
|
+
- @funkit/utils@1.1.23
|
|
23
|
+
- @funkit/api-base@2.1.0
|
|
24
|
+
- @funkit/chains@1.1.0
|
|
25
|
+
|
|
3
26
|
## 8.0.0
|
|
4
27
|
|
|
5
28
|
### Major Changes
|
|
@@ -275,6 +275,9 @@ declare const _default: {
|
|
|
275
275
|
readonly enabletokentransferuniversaldepositaddress: {
|
|
276
276
|
readonly value: true;
|
|
277
277
|
};
|
|
278
|
+
readonly ischeckoutactivated: {
|
|
279
|
+
readonly value: true;
|
|
280
|
+
};
|
|
278
281
|
readonly ismexico: {
|
|
279
282
|
readonly value: {
|
|
280
283
|
readonly mexico: false;
|
|
@@ -4,7 +4,6 @@ export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3
|
|
|
4
4
|
export declare function isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";
|
|
5
5
|
export declare function isBsxCustomer(apiKey: string): apiKey is "zN1zrkmLQn4oZtLUW9Qt02uuBI3Jvrgj8Ni40Gf1";
|
|
6
6
|
export declare function isEtherealCustomer(apiKey: string): apiKey is "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um";
|
|
7
|
-
export declare function isKatanaCustomer(apiKey: string): apiKey is "OXLUmejkh9PlNDS4gSvi9gcEWacOpTz2KUVepVf4";
|
|
8
7
|
export declare function isHyperbeatCustomer(apiKey: string): apiKey is "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau";
|
|
9
8
|
export declare function isHyperdashCustomer(apiKey: string): apiKey is "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe";
|
|
10
9
|
export declare function isMonadCustomer(apiKey: string): apiKey is "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc";
|
package/dist/domains/relay.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { FeeBreakdownV2 } from '@funkit/api-base';
|
|
2
2
|
import type { RelayExecute, RelayQuote } from '@funkit/fun-relay';
|
|
3
|
-
export declare const KATANA_BRIDGE_ALERT_THRESHOLD_PERCENT = 0.5;
|
|
4
3
|
export type RelayQuoteMetadata = {
|
|
5
4
|
relayQuote: RelayQuote['metadata']['relayQuote'];
|
|
6
5
|
feeBreakdown?: FeeBreakdownV2;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { type ConnectablePaymentMethodInfo, PaymentMethod } from '../domains/paymentMethods';
|
|
2
|
-
|
|
3
|
-
export declare function usePaymentMethodEnablement({ checkoutConfig, }: {
|
|
4
|
-
checkoutConfig: FunkitCheckoutConfig | undefined;
|
|
5
|
-
}): {
|
|
2
|
+
export declare function usePaymentMethodEnablement(): {
|
|
6
3
|
isFiatEnabled: boolean;
|
|
7
4
|
isTokenTransferEnabled: boolean;
|
|
8
5
|
isMeldEnabled: boolean;
|
|
9
6
|
isBrokerageEnabled: boolean;
|
|
10
7
|
};
|
|
11
|
-
export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string
|
|
8
|
+
export declare const usePaymentSources: (paymentMethodInfo: ConnectablePaymentMethodInfo | null, targetChainId: string) => {
|
|
12
9
|
preferred: PaymentMethod[] | (import("../domains/paymentMethods").PaymentMethodBrokerageInfo | import("../domains/paymentMethods").PaymentMethodAccountInfo | import("../domains/paymentMethods").PaymentMethodVirtualBankInfo)[];
|
|
13
10
|
moreSources: PaymentMethod[];
|
|
14
11
|
comingSoon: PaymentMethod[];
|