@funkit/connect 6.15.2 → 6.15.3
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 +8 -0
- package/dist/components/FunInput/FunInput.css.d.ts +4 -0
- package/dist/components/FunInput/FunInput.d.ts +2 -0
- package/dist/components/FunTransactionSummary/PaymentMethodSummary.d.ts +2 -2
- package/dist/components/TransactionStatus/TransactionStatus.d.ts +1 -0
- package/dist/hooks/useCheckoutTimeEstimate.d.ts +7 -3
- package/dist/index.css +53 -13
- package/dist/index.js +178 -99
- package/dist/utils/checkout.d.ts +2 -1
- package/dist/utils/flags/config.d.ts +1 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +29 -29
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +2 -2
- package/dist/wallets/walletConnectors/{chunk-UYGJO62F.js → chunk-2HYNUNAS.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3CICVJUN.js → chunk-2KUBG3S6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-J3LI3FYZ.js → chunk-2L43XSW3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-LNEC5RNX.js → chunk-2STUC6QL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CNPKISHN.js → chunk-7QONTUXT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UIASLGLV.js → chunk-A5N6B5UW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CJGUM55H.js → chunk-FKJJQNKX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZSI5N4VV.js → chunk-JWFF4AAL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2GJQ4XZQ.js → chunk-M3NZ6R2E.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-EC6CHBSZ.js → chunk-NT2HYJKW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-QLVVUKYB.js → chunk-NWIQNBJU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KIDC67XJ.js → chunk-OBOVHCEI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-Q3H3TRBS.js → chunk-SULRQO27.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VWCLFMWJ.js → chunk-TCAGNB4B.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-5W7VDOCL.js → chunk-TDAVGY5F.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-AFXHGWBH.js → chunk-TDIEHTMB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JCHN6A47.js → chunk-VR4TBQ6S.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RKPCWHXL.js → chunk-VYBAYMP3.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare const baseWrapperStyles: string;
|
|
2
|
+
export declare const baseWrapperStylesNoTransition: string;
|
|
2
3
|
export declare const numberInputResetStyle: string;
|
|
3
4
|
export declare const inputClass: string;
|
|
5
|
+
export declare const inputClassNoTransition: string;
|
|
4
6
|
export declare const inputClassDisabled: string;
|
|
7
|
+
export declare const inputClassDisabledNoTransition: string;
|
|
5
8
|
export declare const inputClassError: string;
|
|
9
|
+
export declare const inputClassErrorNoTransition: string;
|
|
@@ -30,6 +30,8 @@ export interface FunInputProps<T = HTMLInputElement | HTMLTextAreaElement> {
|
|
|
30
30
|
isLoading?: boolean;
|
|
31
31
|
/** Allow multiline input. Defaults to false. This option replaces the internal `input` element with a `textarea` element. */
|
|
32
32
|
allowMultiline?: T extends HTMLInputElement ? false : true;
|
|
33
|
+
/** Remove default transitions from the input wrapper and base styles. Defaults to false. */
|
|
34
|
+
ignoreBaseTransitions?: boolean;
|
|
33
35
|
testId?: string;
|
|
34
36
|
}
|
|
35
37
|
export type FunInputChangeEvent = ChangeEvent<HTMLInputElement | HTMLTextAreaElement>;
|
|
@@ -5,8 +5,8 @@ interface PaymentMethodSummaryProps {
|
|
|
5
5
|
paymentMethodInfo: PaymentMethodInfo;
|
|
6
6
|
customRecipient: FunAddress | undefined;
|
|
7
7
|
isLoading: boolean;
|
|
8
|
-
|
|
8
|
+
estimatedTimeText: string;
|
|
9
9
|
isWithdrawal?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare function PaymentMethodSummary({ paymentMethodInfo, customRecipient,
|
|
11
|
+
export declare function PaymentMethodSummary({ paymentMethodInfo, customRecipient, estimatedTimeText, isLoading, isWithdrawal, }: PaymentMethodSummaryProps): React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -17,6 +17,7 @@ export type TextConfig = {
|
|
|
17
17
|
export type TextConfigContext = {
|
|
18
18
|
durationUnits: 'minutes' | 'seconds';
|
|
19
19
|
isWithdrawal: boolean;
|
|
20
|
+
finalizeVerb: 'credit' | 'finalize';
|
|
20
21
|
};
|
|
21
22
|
export type TextConfigStatus = Record<Exclude<TransactionStatusProps['status'], 'progress'> | 'progress_delayed', TextConfig | ((context: TextConfigContext) => TextConfig)>;
|
|
22
23
|
export declare const DEFAULT_TEXT_CONFIG_STATUS: TextConfigStatus;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { PaymentMethod } from '~/domains/paymentMethods';
|
|
1
|
+
import type { PaymentMethod } from '~/domains/paymentMethods';
|
|
2
|
+
import type { FunkitActiveCheckoutItem } from '~/providers/FunkitCheckoutContext';
|
|
3
|
+
export declare const LAYERZEO_OFT_TIME_ESTIMATE_SECONDS = 180;
|
|
2
4
|
/**
|
|
3
5
|
* https://linear.app/funxyz/issue/PE-775/sdkconnectwith-next-pm-requests
|
|
4
6
|
* @param originalTimeEstimationMs time estimation in milliseconds
|
|
@@ -6,5 +8,7 @@ import { PaymentMethod } from '~/domains/paymentMethods';
|
|
|
6
8
|
* @param bypassFlag whether to ignore flag value and return the original time estimation fallback even if flag is defined
|
|
7
9
|
* @returns time estimation in seconds
|
|
8
10
|
*/
|
|
9
|
-
export declare function useCheckoutTimeEstimate(originalTimeEstimationMs: number | undefined, paymentMethod
|
|
10
|
-
|
|
11
|
+
export declare function useCheckoutTimeEstimate(apiKey: string, checkoutItem: FunkitActiveCheckoutItem | null, originalTimeEstimationMs: number | undefined, paymentMethod: PaymentMethod, bypassFlag: boolean): {
|
|
12
|
+
estimatedTime: number;
|
|
13
|
+
estimatedTimeText: string;
|
|
14
|
+
};
|
package/dist/index.css
CHANGED
|
@@ -9658,32 +9658,47 @@
|
|
|
9658
9658
|
transform: translate(calc(-100% - 18px), 100%);
|
|
9659
9659
|
}
|
|
9660
9660
|
|
|
9661
|
-
/* vanilla-extract-css-ns:src/components/FunInput/FunInput.css.ts.vanilla.css?source
|
|
9661
|
+
/* vanilla-extract-css-ns:src/components/FunInput/FunInput.css.ts.vanilla.css?source=#H4sIAAAAAAAAA82TQUsDMRCF7/sr5iJU2CxZbYukeNKf4E08TLJDDc1OltmstRX/u3Rr6UpRxFroMeHlve9NkmLdkfZTDW8ZQBLk1icf2QCGAOVE1y24znqnLK09yUgX1znoHHShpzmUl7PsPSu2HuWBB0emgeDKGLUku/BJxS6RqLbxrGyXUuQcDkWe+auoD6hR5p4N6FkGsJNi0xAKsqPD1Me0auiWu9qSPPUWqo7rn46Me5VFt5hL7LhSLoYoZtutQSFOm3AbpSLZnQaIXQqeab+x9FV6NlBqfTE7erxjY5qAjp5jqEh6wk+sF5SRUrLYYraqJRe5Qlk90GsaWkxP0WvvfjzgzRkNHiA26HxaGdDFZAj5657oNpl3m8W9b9EGqoZt8TRtv8HG/8J2Z3RJe6jjHx+d9HfQ3wE/ALoQWt+kBQAA */
|
|
9662
9662
|
[data-rk] .zue0i60 {
|
|
9663
9663
|
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
9664
9664
|
}
|
|
9665
|
-
[data-rk] .zue0i61
|
|
9666
|
-
|
|
9665
|
+
[data-rk] .zue0i61 {
|
|
9666
|
+
transition: none;
|
|
9667
|
+
}
|
|
9668
|
+
[data-rk] .zue0i62::-webkit-outer-spin-button,
|
|
9669
|
+
[data-rk] .zue0i62::-webkit-inner-spin-button {
|
|
9667
9670
|
margin: 0;
|
|
9668
9671
|
-webkit-appearance: none;
|
|
9669
9672
|
}
|
|
9670
|
-
[data-rk] .
|
|
9673
|
+
[data-rk] .zue0i62[type=number] {
|
|
9671
9674
|
-moz-appearance: none;
|
|
9672
9675
|
}
|
|
9673
|
-
[data-rk] .
|
|
9676
|
+
[data-rk] .zue0i64 {
|
|
9674
9677
|
background-color: transparent;
|
|
9675
9678
|
border: none;
|
|
9676
9679
|
outline: none;
|
|
9677
9680
|
width: 100%;
|
|
9678
9681
|
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
9679
9682
|
}
|
|
9680
|
-
[data-rk] .
|
|
9683
|
+
[data-rk] .zue0i64::-moz-placeholder {
|
|
9681
9684
|
color: var(--rk-colors-secondaryText);
|
|
9682
9685
|
}
|
|
9683
|
-
[data-rk] .
|
|
9686
|
+
[data-rk] .zue0i64::placeholder {
|
|
9684
9687
|
color: var(--rk-colors-secondaryText);
|
|
9685
9688
|
}
|
|
9686
|
-
[data-rk] .
|
|
9689
|
+
[data-rk] .zue0i66 {
|
|
9690
|
+
background-color: transparent;
|
|
9691
|
+
border: none;
|
|
9692
|
+
outline: none;
|
|
9693
|
+
width: 100%;
|
|
9694
|
+
}
|
|
9695
|
+
[data-rk] .zue0i66::-moz-placeholder {
|
|
9696
|
+
color: var(--rk-colors-secondaryText);
|
|
9697
|
+
}
|
|
9698
|
+
[data-rk] .zue0i66::placeholder {
|
|
9699
|
+
color: var(--rk-colors-secondaryText);
|
|
9700
|
+
}
|
|
9701
|
+
[data-rk] .zue0i68 {
|
|
9687
9702
|
background-color: transparent;
|
|
9688
9703
|
border: none;
|
|
9689
9704
|
outline: none;
|
|
@@ -9691,23 +9706,48 @@
|
|
|
9691
9706
|
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
9692
9707
|
opacity: 0.5;
|
|
9693
9708
|
}
|
|
9694
|
-
[data-rk] .
|
|
9709
|
+
[data-rk] .zue0i68::-moz-placeholder {
|
|
9695
9710
|
color: var(--rk-colors-actionColorDisabled);
|
|
9696
9711
|
}
|
|
9697
|
-
[data-rk] .
|
|
9712
|
+
[data-rk] .zue0i68::placeholder {
|
|
9698
9713
|
color: var(--rk-colors-actionColorDisabled);
|
|
9699
9714
|
}
|
|
9700
|
-
[data-rk] .
|
|
9715
|
+
[data-rk] .zue0i6a {
|
|
9716
|
+
background-color: transparent;
|
|
9717
|
+
border: none;
|
|
9718
|
+
outline: none;
|
|
9719
|
+
width: 100%;
|
|
9720
|
+
opacity: 0.5;
|
|
9721
|
+
}
|
|
9722
|
+
[data-rk] .zue0i6a::-moz-placeholder {
|
|
9723
|
+
color: var(--rk-colors-actionColorDisabled);
|
|
9724
|
+
}
|
|
9725
|
+
[data-rk] .zue0i6a::placeholder {
|
|
9726
|
+
color: var(--rk-colors-actionColorDisabled);
|
|
9727
|
+
}
|
|
9728
|
+
[data-rk] .zue0i6c {
|
|
9701
9729
|
background-color: transparent;
|
|
9702
9730
|
border: none;
|
|
9703
9731
|
outline: none;
|
|
9704
9732
|
width: 100%;
|
|
9705
9733
|
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
9706
9734
|
}
|
|
9707
|
-
[data-rk] .
|
|
9735
|
+
[data-rk] .zue0i6c::-moz-placeholder {
|
|
9736
|
+
color: var(--rk-colors-secondaryText);
|
|
9737
|
+
}
|
|
9738
|
+
[data-rk] .zue0i6c::placeholder {
|
|
9739
|
+
color: var(--rk-colors-secondaryText);
|
|
9740
|
+
}
|
|
9741
|
+
[data-rk] .zue0i6e {
|
|
9742
|
+
background-color: transparent;
|
|
9743
|
+
border: none;
|
|
9744
|
+
outline: none;
|
|
9745
|
+
width: 100%;
|
|
9746
|
+
}
|
|
9747
|
+
[data-rk] .zue0i6e::-moz-placeholder {
|
|
9708
9748
|
color: var(--rk-colors-secondaryText);
|
|
9709
9749
|
}
|
|
9710
|
-
[data-rk] .
|
|
9750
|
+
[data-rk] .zue0i6e::placeholder {
|
|
9711
9751
|
color: var(--rk-colors-secondaryText);
|
|
9712
9752
|
}
|
|
9713
9753
|
|