@funkit/connect 5.3.5 → 5.4.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 +37 -0
- package/dist/{chunk-CRTRMZFT.js → chunk-ICCAQZHZ.js} +1 -1
- package/dist/{chunk-CRPOYQ6X.js → chunk-R2UFCJL7.js} +5 -0
- package/dist/{chunk-KCSHTK5R.js → chunk-RN4I4Y57.js} +1 -1
- package/dist/components/Box/Box.d.ts +1 -1
- package/dist/components/Dropdown/ChainDropdown.d.ts +6 -3
- package/dist/components/Dropdown/TokenDropdown.d.ts +7 -3
- package/dist/components/FunFeatureList/FunFeatureList.d.ts +3 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1335
- package/dist/consts/customers.d.ts +2 -0
- package/dist/css/sprinkles.css.d.ts +3 -1
- package/dist/hooks/queries/useRecentCheckouts.d.ts +1 -2
- package/dist/hooks/queries/useRecentDirectExecutions.d.ts +9 -0
- package/dist/hooks/useCheckoutDirectExecutionHistory.d.ts +7 -5
- package/dist/hooks/useDirectExecutionInfoPolling.d.ts +7 -0
- package/dist/index.css +2674 -2664
- package/dist/index.d.ts +1 -1
- package/dist/index.js +745 -493
- package/dist/providers/FunkitHistoryContext.d.ts +9 -5
- package/dist/providers/FunkitThemeProvider.d.ts +3 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/flags/config.d.ts +42 -4
- package/dist/utils/purifyCheckoutHistoryItem.d.ts +25 -3
- 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 +55 -55
- 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 +7 -7
- package/dist/hooks/useRelayExecutionInfo.d.ts +0 -6
- package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +0 -92
- package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +0 -94
- package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +0 -103
- package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +0 -69
- package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +0 -110
- package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +0 -99
- package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +0 -100
- package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +0 -93
- package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +0 -106
- package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +0 -95
- package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +0 -96
- package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +0 -87
- package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +0 -70
- package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +0 -146
- package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +0 -66
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 5.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5830fe9: feat: add katana chain
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- ac8d2b9: feat: card and brokerage flags
|
|
12
|
+
- d5b3850: fix fee display ui
|
|
13
|
+
- 3b43c3b: feat(connect, api-base): add Ethereal theme
|
|
14
|
+
- 4c74602: chore: support katana chain
|
|
15
|
+
- 11cc938: feat: expose more information to checkout/de listener hooks
|
|
16
|
+
- 2a9539a: feat: fallback price fetch to relay implementation
|
|
17
|
+
- Updated dependencies [ac8d2b9]
|
|
18
|
+
- Updated dependencies [3b43c3b]
|
|
19
|
+
- Updated dependencies [4c74602]
|
|
20
|
+
- Updated dependencies [2a9539a]
|
|
21
|
+
- Updated dependencies [5830fe9]
|
|
22
|
+
- @funkit/utils@1.0.14
|
|
23
|
+
- @funkit/api-base@1.8.3
|
|
24
|
+
- @funkit/fun-relay@0.1.3
|
|
25
|
+
- @funkit/chains@0.3.0
|
|
26
|
+
- @funkit/core@2.3.20
|
|
27
|
+
- @funkit/wagmi-tools@3.0.42
|
|
28
|
+
|
|
29
|
+
## 5.3.6
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- cf2ab03: feat(connect): handle Relay not finding route
|
|
34
|
+
- c6ca047: feat(connect): refactor checkout listener hooks, including direct executions
|
|
35
|
+
- 6cb808b: chore(connect): upgrade fun-relay
|
|
36
|
+
- 1846641: feat(connect): adjust selection of tokens and chains for Transfer crypto
|
|
37
|
+
- Updated dependencies [6cb808b]
|
|
38
|
+
- @funkit/fun-relay@0.1.2
|
|
39
|
+
|
|
3
40
|
## 5.3.5
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
|
@@ -10,6 +10,7 @@ var fontStacks = {
|
|
|
10
10
|
var radiusScales = {
|
|
11
11
|
large: {
|
|
12
12
|
actionButton: "12px",
|
|
13
|
+
actionButtonInner: "10px",
|
|
13
14
|
connectButton: "12px",
|
|
14
15
|
modal: "24px",
|
|
15
16
|
modalMobile: "28px",
|
|
@@ -26,6 +27,7 @@ var radiusScales = {
|
|
|
26
27
|
},
|
|
27
28
|
medium: {
|
|
28
29
|
actionButton: "10px",
|
|
30
|
+
actionButtonInner: "8px",
|
|
29
31
|
connectButton: "10px",
|
|
30
32
|
modal: "16px",
|
|
31
33
|
modalMobile: "18px",
|
|
@@ -42,6 +44,7 @@ var radiusScales = {
|
|
|
42
44
|
},
|
|
43
45
|
none: {
|
|
44
46
|
actionButton: "0px",
|
|
47
|
+
actionButtonInner: "0px",
|
|
45
48
|
connectButton: "0px",
|
|
46
49
|
modal: "0px",
|
|
47
50
|
modalMobile: "0px",
|
|
@@ -58,6 +61,7 @@ var radiusScales = {
|
|
|
58
61
|
},
|
|
59
62
|
small: {
|
|
60
63
|
actionButton: "8px",
|
|
64
|
+
actionButtonInner: "6px",
|
|
61
65
|
connectButton: "8px",
|
|
62
66
|
modal: "8px",
|
|
63
67
|
modalMobile: "8px",
|
|
@@ -151,6 +155,7 @@ var baseTheme = ({
|
|
|
151
155
|
},
|
|
152
156
|
radii: {
|
|
153
157
|
actionButton: radiusScales[borderRadius].actionButton,
|
|
158
|
+
actionButtonInner: radiusScales[borderRadius].actionButtonInner,
|
|
154
159
|
connectButton: radiusScales[borderRadius].connectButton,
|
|
155
160
|
menuButton: radiusScales[borderRadius].connectButton,
|
|
156
161
|
modal: radiusScales[borderRadius].modal,
|
|
@@ -47,7 +47,7 @@ export declare const Box: React.ForwardRefExoticComponent<{
|
|
|
47
47
|
} & {
|
|
48
48
|
readonly alignSelf?: "center" | "flex-end" | "flex-start" | undefined;
|
|
49
49
|
readonly backgroundSize?: "cover" | undefined;
|
|
50
|
-
readonly borderRadius?: "tooltip" | "1" | "10" | "13" | "16" | "actionButton" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "modalActionButton" | "modalActionButtonMobile" | "summaryBox" | "youPayYouReceive" | "inputAmountSwitcher" | "qrCode" | "skeleton" | "dropdown" | "dropdownItem" | "4" | "6" | "8" | "11" | "24" | "30" | "full" | "badge" | "smallBadge" | undefined;
|
|
50
|
+
readonly borderRadius?: "tooltip" | "1" | "10" | "13" | "16" | "actionButton" | "actionButtonInner" | "connectButton" | "menuButton" | "modal" | "modalMobile" | "modalActionButton" | "modalActionButtonMobile" | "summaryBox" | "youPayYouReceive" | "inputAmountSwitcher" | "qrCode" | "skeleton" | "dropdown" | "dropdownItem" | "4" | "6" | "8" | "11" | "24" | "30" | "full" | "badge" | "smallBadge" | undefined;
|
|
51
51
|
readonly borderStyle?: "dotted" | "hidden" | "solid" | undefined;
|
|
52
52
|
readonly borderWidth?: "0" | "1" | "2" | "3" | "4" | "0.5" | undefined;
|
|
53
53
|
readonly cursor?: "default" | "help" | "not-allowed" | "pointer" | undefined;
|
|
@@ -6,8 +6,11 @@ interface ChainDropdownProps {
|
|
|
6
6
|
assets: TokenTransferSourceChainsAndAssets;
|
|
7
7
|
chainIds?: number[];
|
|
8
8
|
selectedChainId?: number;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
onChainSelected: (chainId: number | undefined,
|
|
10
|
+
/**
|
|
11
|
+
* If true, it will trigger automatic updates for the matching token in the parent component.
|
|
12
|
+
*/
|
|
13
|
+
autoUpdate?: boolean) => void;
|
|
11
14
|
/** Provides option to allow going back to unselected state and displays that state as a selectable option */
|
|
12
15
|
allowUnselect?: boolean;
|
|
13
16
|
activeItemProps?: BaseDropdownProps['activeItemProps'];
|
|
@@ -15,5 +18,5 @@ interface ChainDropdownProps {
|
|
|
15
18
|
size?: BaseActiveDropdownItemProps['size'];
|
|
16
19
|
isLoading?: BaseDropdownProps['isLoading'];
|
|
17
20
|
}
|
|
18
|
-
export declare const ChainDropdown: ({ assets, chainIds: chains, selectedChainId
|
|
21
|
+
export declare const ChainDropdown: ({ assets, chainIds: chains, selectedChainId: propSelectedChainId, allowUnselect, onChainSelected, activeItemProps, size, openDropdownBackgroundColor, isLoading, }: ChainDropdownProps) => React.JSX.Element;
|
|
19
22
|
export {};
|
|
@@ -4,9 +4,13 @@ import { type BaseDropdownProps } from './BaseDropdown';
|
|
|
4
4
|
interface TokenDropdownProps {
|
|
5
5
|
selectedChainId: number;
|
|
6
6
|
assets: TokenTransferSourceChainsAndAssets;
|
|
7
|
-
onTokenSelected: (token: string, chainId?: number
|
|
8
|
-
|
|
7
|
+
onTokenSelected: (token: string, chainId?: number,
|
|
8
|
+
/**
|
|
9
|
+
* If true, it will trigger automatic updates for the matching chain in the parent component.
|
|
10
|
+
*/
|
|
11
|
+
autoUpdate?: boolean) => void;
|
|
12
|
+
selectedToken?: string;
|
|
9
13
|
isLoading?: BaseDropdownProps['isLoading'];
|
|
10
14
|
}
|
|
11
|
-
export declare const TokenDropdown: ({ assets, selectedChainId,
|
|
15
|
+
export declare const TokenDropdown: ({ assets, selectedChainId, selectedToken, onTokenSelected, isLoading, }: TokenDropdownProps) => React.JSX.Element;
|
|
12
16
|
export {};
|
|
@@ -7,7 +7,9 @@ interface FunFeatureListProps {
|
|
|
7
7
|
isExpandable?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
withBackgroundContainer?: boolean;
|
|
10
|
+
/** Whether background should be applied only to individual items. Defaults to false since background is applied to the container by default */
|
|
11
|
+
withBackgroundItem?: boolean;
|
|
10
12
|
gapBetweenItems?: Extract<BoxProps['gap'], string>;
|
|
11
13
|
}
|
|
12
|
-
export declare const FunFeatureList: ({ items, isExpandable, disabled, withBackgroundContainer, gapBetweenItems, }: FunFeatureListProps) => React.JSX.Element;
|
|
14
|
+
export declare const FunFeatureList: ({ items, isExpandable, disabled, withBackgroundContainer, withBackgroundItem, gapBetweenItems, }: FunFeatureListProps) => React.JSX.Element;
|
|
13
15
|
export {};
|