@funkit/connect 1.0.10 → 1.0.12
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 +14 -0
- package/dist/{chunk-SWTU7PBZ.js → chunk-2NNNYGQA.js} +1 -1
- package/dist/{chunk-MQTK22MG.js → chunk-JLKS6NET.js} +1 -1
- package/dist/{chunk-VP4CAK4A.js → chunk-UK5FXGK3.js} +2 -1
- package/dist/components/FunButton/FunIconButton.d.ts +2 -1
- package/dist/components/FunCheckoutModal/FunCheckoutConfirmationStep.d.ts +0 -1
- package/dist/components/FunCheckoutModal/FunCheckoutInputAmountStep.d.ts +6 -0
- package/dist/components/FunCheckoutModal/FunCheckoutModal.d.ts +1 -0
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +1 -1
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +76 -0
- package/dist/index.css +10 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7873 -7720
- package/dist/themes/baseTheme.d.ts +2 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/wallets/walletConnectors/chunk-2GAW2UBU.js +102 -0
- package/dist/wallets/walletConnectors/chunk-2PC2XXUH.js +94 -0
- package/dist/wallets/walletConnectors/chunk-75A2U7T7.js +100 -0
- package/dist/wallets/walletConnectors/chunk-CUKVUCIP.js +98 -0
- package/dist/wallets/walletConnectors/chunk-FDIIMYTB.js +73 -0
- package/dist/wallets/walletConnectors/chunk-GW6EF4G2.js +92 -0
- package/dist/wallets/walletConnectors/chunk-IBWFKX7P.js +94 -0
- package/dist/wallets/walletConnectors/chunk-N3VZE65M.js +98 -0
- package/dist/wallets/walletConnectors/chunk-OAEJQOAV.js +105 -0
- package/dist/wallets/walletConnectors/chunk-OKWOB3DN.js +66 -0
- package/dist/wallets/walletConnectors/chunk-OR3PU2W4.js +95 -0
- package/dist/wallets/walletConnectors/chunk-RTW6PVQI.js +107 -0
- package/dist/wallets/walletConnectors/chunk-SL4VH23R.js +71 -0
- package/dist/wallets/walletConnectors/chunk-SQGFKNNZ.js +102 -0
- package/dist/wallets/walletConnectors/chunk-T6JVHES7.js +87 -0
- package/dist/wallets/walletConnectors/chunk-VWZEDVW6.js +27 -0
- package/dist/wallets/walletConnectors/chunk-X255T3C4.js +178 -0
- package/dist/wallets/walletConnectors/chunk-XSSD5ZVD.js +96 -0
- package/dist/wallets/walletConnectors/chunk-YC7XNS7C.js +98 -0
- package/dist/wallets/walletConnectors/chunk-Z2HIQYVN.js +96 -0
- package/dist/wallets/walletConnectors/index.js +62 -62
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 1.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a0be3b2: feat: new input step for non-action checkout flows
|
|
8
|
+
- b72e13a: feat: wagmi hook replacement - useFunkitDisconnect
|
|
9
|
+
- 6194aa9: fix: small screen compatability
|
|
10
|
+
|
|
11
|
+
## 1.0.11
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- e1474bc: feat: custom font family config
|
|
16
|
+
|
|
3
17
|
## 1.0.10
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -46,13 +46,14 @@ var blurs = {
|
|
|
46
46
|
var baseTheme = ({
|
|
47
47
|
borderRadius = "large",
|
|
48
48
|
fontStack = "fun",
|
|
49
|
+
customFontFamily = "",
|
|
49
50
|
overlayBlur = "none"
|
|
50
51
|
}) => ({
|
|
51
52
|
blurs: {
|
|
52
53
|
modalOverlay: blurs[overlayBlur].modalOverlay
|
|
53
54
|
},
|
|
54
55
|
fonts: {
|
|
55
|
-
body: fontStacks[fontStack]
|
|
56
|
+
body: customFontFamily || fontStacks[fontStack]
|
|
56
57
|
},
|
|
57
58
|
radii: {
|
|
58
59
|
actionButton: radiusScales[borderRadius].actionButton,
|
|
@@ -3,7 +3,7 @@ import { BoxProps } from '../Box/Box';
|
|
|
3
3
|
/**
|
|
4
4
|
* Circular icon button with dynamic height and width
|
|
5
5
|
*/
|
|
6
|
-
export declare const FunIconButton: ({ onClick, icon, size, showBorder, paddingX, paddingY, borderRadius, ariaLabel, color, background, }: {
|
|
6
|
+
export declare const FunIconButton: ({ onClick, icon, size, showBorder, paddingX, paddingY, borderRadius, ariaLabel, color, background, width, }: {
|
|
7
7
|
onClick: () => void;
|
|
8
8
|
icon: React.ReactNode;
|
|
9
9
|
size?: BoxProps['height'];
|
|
@@ -14,4 +14,5 @@ export declare const FunIconButton: ({ onClick, icon, size, showBorder, paddingX
|
|
|
14
14
|
ariaLabel?: string | undefined;
|
|
15
15
|
color?: BoxProps['color'];
|
|
16
16
|
background?: BoxProps['background'];
|
|
17
|
+
width?: BoxProps['width'];
|
|
17
18
|
}) => React.JSX.Element;
|
|
@@ -130,7 +130,7 @@ interface useFunkitPreCheckoutInternalReturn {
|
|
|
130
130
|
checkoutItem: null | FunkitActiveCheckoutItem;
|
|
131
131
|
reDraftSymbol: symbol;
|
|
132
132
|
updateSourceAsset: (newSourceAsset: Address, newSourceAssetSymbol: string, newSourceAssetChainId: string) => void;
|
|
133
|
-
updateTargetAssetAmount: (newTargetAssetAmount: number
|
|
133
|
+
updateTargetAssetAmount: (newTargetAssetAmount: number) => void;
|
|
134
134
|
updateSelectedPaymentMethodInfo: (newPaymentMethodInfo: PaymentMethodInfo) => void;
|
|
135
135
|
confirmCheckout: (shouldBatchOpBypassInit: boolean, stepMessageSetter: (m: string) => void) => Promise<Address>;
|
|
136
136
|
getCheckoutDraftDollarValue: () => Promise<void>;
|
|
@@ -23,4 +23,80 @@ interface GeneralWalletContextProps {
|
|
|
23
23
|
}
|
|
24
24
|
export declare function GeneralWalletProvider({ children }: any): React.JSX.Element;
|
|
25
25
|
export declare const useGeneralWallet: () => GeneralWalletContextProps;
|
|
26
|
+
/**
|
|
27
|
+
* Replacement for wagmi's `disconnect` from `useDisconnect`
|
|
28
|
+
*/
|
|
29
|
+
export declare const useFunkitDisconnect: () => {
|
|
30
|
+
disconnect: () => void;
|
|
31
|
+
disconnectAsync: () => void;
|
|
32
|
+
reset: () => void;
|
|
33
|
+
error: null;
|
|
34
|
+
status: "idle";
|
|
35
|
+
data: undefined;
|
|
36
|
+
isError: false;
|
|
37
|
+
isPending: false;
|
|
38
|
+
isSuccess: false;
|
|
39
|
+
failureCount: number;
|
|
40
|
+
failureReason: import("@wagmi/core").DisconnectErrorType | null;
|
|
41
|
+
isPaused: boolean;
|
|
42
|
+
variables: undefined;
|
|
43
|
+
isIdle: true;
|
|
44
|
+
context: unknown;
|
|
45
|
+
submittedAt: number;
|
|
46
|
+
connectors: readonly import("wagmi").Connector[];
|
|
47
|
+
} | {
|
|
48
|
+
disconnect: () => void;
|
|
49
|
+
disconnectAsync: () => void;
|
|
50
|
+
reset: () => void;
|
|
51
|
+
error: null;
|
|
52
|
+
status: "pending";
|
|
53
|
+
data: undefined;
|
|
54
|
+
isError: false;
|
|
55
|
+
isPending: true;
|
|
56
|
+
isSuccess: false;
|
|
57
|
+
failureCount: number;
|
|
58
|
+
failureReason: import("@wagmi/core").DisconnectErrorType | null;
|
|
59
|
+
isPaused: boolean;
|
|
60
|
+
variables: import("wagmi/query").DisconnectVariables;
|
|
61
|
+
isIdle: false;
|
|
62
|
+
context: unknown;
|
|
63
|
+
submittedAt: number;
|
|
64
|
+
connectors: readonly import("wagmi").Connector[];
|
|
65
|
+
} | {
|
|
66
|
+
disconnect: () => void;
|
|
67
|
+
disconnectAsync: () => void;
|
|
68
|
+
reset: () => void;
|
|
69
|
+
error: import("@wagmi/core").DisconnectErrorType;
|
|
70
|
+
status: "error";
|
|
71
|
+
data: undefined;
|
|
72
|
+
isError: true;
|
|
73
|
+
isPending: false;
|
|
74
|
+
isSuccess: false;
|
|
75
|
+
failureCount: number;
|
|
76
|
+
failureReason: import("@wagmi/core").DisconnectErrorType | null;
|
|
77
|
+
isPaused: boolean;
|
|
78
|
+
variables: import("wagmi/query").DisconnectVariables;
|
|
79
|
+
isIdle: false;
|
|
80
|
+
context: unknown;
|
|
81
|
+
submittedAt: number;
|
|
82
|
+
connectors: readonly import("wagmi").Connector[];
|
|
83
|
+
} | {
|
|
84
|
+
disconnect: () => void;
|
|
85
|
+
disconnectAsync: () => void;
|
|
86
|
+
reset: () => void;
|
|
87
|
+
error: null;
|
|
88
|
+
status: "success";
|
|
89
|
+
data: void;
|
|
90
|
+
isError: false;
|
|
91
|
+
isPending: false;
|
|
92
|
+
isSuccess: true;
|
|
93
|
+
failureCount: number;
|
|
94
|
+
failureReason: import("@wagmi/core").DisconnectErrorType | null;
|
|
95
|
+
isPaused: boolean;
|
|
96
|
+
variables: import("wagmi/query").DisconnectVariables;
|
|
97
|
+
isIdle: false;
|
|
98
|
+
context: unknown;
|
|
99
|
+
submittedAt: number;
|
|
100
|
+
connectors: readonly import("wagmi").Connector[];
|
|
101
|
+
};
|
|
26
102
|
export {};
|
package/dist/index.css
CHANGED
|
@@ -4565,16 +4565,6 @@
|
|
|
4565
4565
|
width: 21px;
|
|
4566
4566
|
}
|
|
4567
4567
|
|
|
4568
|
-
/* vanilla-extract-css-ns:src/components/FunAssetAvatar/FunAssetAvatar.css.ts.vanilla.css?source=LnV3cmRjMjAgewogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQoudXdyZGMyMiB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIGJvdHRvbTogMDsKICByaWdodDogMDsKfQ== */
|
|
4569
|
-
[data-rk] .uwrdc20 {
|
|
4570
|
-
position: relative;
|
|
4571
|
-
}
|
|
4572
|
-
[data-rk] .uwrdc22 {
|
|
4573
|
-
position: absolute;
|
|
4574
|
-
bottom: 0;
|
|
4575
|
-
right: 0;
|
|
4576
|
-
}
|
|
4577
|
-
|
|
4578
4568
|
/* src/components/FunInput/FunInputBase.css */
|
|
4579
4569
|
input::-webkit-outer-spin-button,
|
|
4580
4570
|
input::-webkit-inner-spin-button {
|
|
@@ -4750,6 +4740,16 @@ input[type=number] {
|
|
|
4750
4740
|
display: none;
|
|
4751
4741
|
}
|
|
4752
4742
|
|
|
4743
|
+
/* vanilla-extract-css-ns:src/components/FunAssetAvatar/FunAssetAvatar.css.ts.vanilla.css?source=LnV3cmRjMjAgewogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQoudXdyZGMyMiB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIGJvdHRvbTogMDsKICByaWdodDogMDsKfQ== */
|
|
4744
|
+
[data-rk] .uwrdc20 {
|
|
4745
|
+
position: relative;
|
|
4746
|
+
}
|
|
4747
|
+
[data-rk] .uwrdc22 {
|
|
4748
|
+
position: absolute;
|
|
4749
|
+
bottom: 0;
|
|
4750
|
+
right: 0;
|
|
4751
|
+
}
|
|
4752
|
+
|
|
4753
4753
|
/* vanilla-extract-css-ns:src/components/MenuButton/MenuButton.css.ts.vanilla.css?source=Ll8xMHB3NXg2MDpob3ZlciB7CiAgYmFja2dyb3VuZDogdW5zZXQ7Cn0= */
|
|
4754
4754
|
[data-rk] ._10pw5x60:hover {
|
|
4755
4755
|
background: unset;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,3 +22,4 @@ export { darkTheme } from './themes/darkTheme';
|
|
|
22
22
|
export { lightTheme } from './themes/lightTheme';
|
|
23
23
|
export { useAddRecentTransaction } from './transactions/useAddRecentTransaction';
|
|
24
24
|
export type { FunkitConnectWalletConnectParameters, Wallet, WalletDetailsParams, WalletList, } from './wallets/Wallet';
|
|
25
|
+
export { useFunkitDisconnect } from './components/FunkitProvider/GeneralWalletProvider';
|