@funkit/connect 3.0.0-next.8 → 3.0.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 +29 -0
- package/dist/components/AccountModal/AccountModal.d.ts +3 -1
- package/dist/components/FunButton/FunButton.css.d.ts +1 -0
- package/dist/components/FunButton/FunIconButton.d.ts +1 -2
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryContent.d.ts +1 -0
- package/dist/components/FunInput/FunTextAreaInput.d.ts +1 -1
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +0 -6
- package/dist/components/FunkitProvider/ModalContext.d.ts +2 -1
- package/dist/components/Icons/Spinner.d.ts +2 -3
- package/dist/components/ProfileDetails/ProfileDetails.d.ts +3 -1
- package/dist/hooks/useAnimatedNavigation.d.ts +10 -0
- package/dist/hooks/useCheckoutModalTitle.d.ts +2 -0
- package/dist/hooks/useMesh.d.ts +1 -0
- package/dist/index.css +17 -14
- package/dist/index.js +731 -671
- package/dist/utils/mesh.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +65 -65
- package/package.json +4 -4
- package/dist/wallets/walletConnectors/chunk-45BGLKK3.js +0 -149
- package/dist/wallets/walletConnectors/chunk-A6MZY5ZZ.js +0 -81
- package/dist/wallets/walletConnectors/chunk-ARIYPPEC.js +0 -92
- package/dist/wallets/walletConnectors/chunk-BEAW5Y5M.js +0 -60
- package/dist/wallets/walletConnectors/chunk-CW3DUKXK.js +0 -102
- package/dist/wallets/walletConnectors/chunk-E5XC6KBV.js +0 -95
- package/dist/wallets/walletConnectors/chunk-FCHEJLHR.js +0 -101
- package/dist/wallets/walletConnectors/chunk-FLTQRYFS.js +0 -27
- package/dist/wallets/walletConnectors/chunk-HKN7647Q.js +0 -73
- package/dist/wallets/walletConnectors/chunk-IOQWKPOO.js +0 -71
- package/dist/wallets/walletConnectors/chunk-LPQBQIZL.js +0 -108
- package/dist/wallets/walletConnectors/chunk-LTIIUGMZ.js +0 -96
- package/dist/wallets/walletConnectors/chunk-PIZ2XVGH.js +0 -60
- package/dist/wallets/walletConnectors/chunk-RXUGTOMT.js +0 -60
- package/dist/wallets/walletConnectors/chunk-VJ5C6RXN.js +0 -98
- package/dist/wallets/walletConnectors/chunk-WMLYUYMP.js +0 -94
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 3.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 9c1c09a: paymentsConfig is removed from FunkitConfig. defaultPaymentMethod is added to useCheckout config
|
|
8
|
+
- ca9c5a0: remove unused config in FunkitPaymentsConfig
|
|
9
|
+
- c0d142d: feat: v3 upgrade - phase 1 - baseline styles, themes, configuration
|
|
10
|
+
- 19404b9: refactor: FunkitCheckoutConfig interface - deprecated `checkoutItemDescription` and updated `targetAssetTicker` to be a required field.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 540e9bf: v3 repolishes
|
|
15
|
+
- cd8633c: v3 scrollbar tweaks
|
|
16
|
+
- d96708a: v3 custom button switcher polishes
|
|
17
|
+
- 30bdef9: v3 updates
|
|
18
|
+
- 7d5b095: v3 repolishes
|
|
19
|
+
- af98f01: v3 updates
|
|
20
|
+
- 9e70418: v3 repolishes
|
|
21
|
+
- 2e17b41: v3 upgrades
|
|
22
|
+
- Updated dependencies [30bdef9]
|
|
23
|
+
- Updated dependencies [9ccdeb1]
|
|
24
|
+
- Updated dependencies [c0d142d]
|
|
25
|
+
- Updated dependencies [cee3715]
|
|
26
|
+
- Updated dependencies [af98f01]
|
|
27
|
+
- Updated dependencies [e8e412d]
|
|
28
|
+
- @funkit/api-base@1.0.2
|
|
29
|
+
- @funkit/core@2.1.2
|
|
30
|
+
- @funkit/wagmi-tools@3.0.4
|
|
31
|
+
|
|
3
32
|
## 3.0.0-next.8
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { SelectedHomeTab } from '../ProfileDetails/FunProfileViews/Home';
|
|
2
3
|
export interface AccountModalProps {
|
|
3
4
|
open: boolean;
|
|
4
5
|
onClose: () => void;
|
|
6
|
+
defaultTab: SelectedHomeTab | null;
|
|
5
7
|
}
|
|
6
|
-
export declare function AccountModal({ onClose, open }: AccountModalProps): React.JSX.Element | null;
|
|
8
|
+
export declare function AccountModal({ onClose, open, defaultTab }: AccountModalProps): React.JSX.Element | null;
|
|
@@ -2,5 +2,6 @@ export declare const funLinkButtonStyle: string;
|
|
|
2
2
|
export declare const transitionStyles: string;
|
|
3
3
|
export declare const pressedStyles: string;
|
|
4
4
|
export declare const funIconButtonClickableStyle: string;
|
|
5
|
+
export declare const funIconButtonNonClickableStyle: string;
|
|
5
6
|
export declare const funIconButtonDisabledStyle: string;
|
|
6
7
|
export declare const rotateStyle: string;
|
|
@@ -22,9 +22,8 @@ export interface FunIconButtonProps {
|
|
|
22
22
|
isDisabled?: boolean;
|
|
23
23
|
borderRadius?: BoxProps['borderRadius'];
|
|
24
24
|
style?: BoxProps['style'];
|
|
25
|
-
disableHoverStyles?: boolean;
|
|
26
25
|
children?: React.ReactNode;
|
|
27
26
|
/** Defaults to 'quiet' */
|
|
28
27
|
variant?: 'quiet' | 'outlined';
|
|
29
28
|
}
|
|
30
|
-
export declare const FunIconButton: ({ children, onClick, icon, size, width, gap, ariaLabel, color, as, isDisabled, borderRadius, style,
|
|
29
|
+
export declare const FunIconButton: ({ children, onClick, icon, size, width, gap, ariaLabel, color, as, isDisabled, borderRadius, style, variant, ...props }: FunIconButtonProps) => React.JSX.Element;
|
|
@@ -7,5 +7,6 @@ interface FunCheckoutHistoryContentProps {
|
|
|
7
7
|
onBackFromHelpPage: () => void;
|
|
8
8
|
}
|
|
9
9
|
export declare const HELP_SCREEN_BOTTOM_BAR_ID = "help-screen-bottom-section";
|
|
10
|
+
export declare const DEFAULT_CHECKOUT_HISTORY_DETAIL_TITLE = "Your Purchase";
|
|
10
11
|
export declare function FunCheckoutHistoryContent({ depositAddress, currentPage, setCurrentPage, onBackFromHelpPage, }: FunCheckoutHistoryContentProps): React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -3,5 +3,5 @@ import { FunInputProps } from './FunInput';
|
|
|
3
3
|
interface FunTextAreaInputProps extends FunInputProps<HTMLTextAreaElement> {
|
|
4
4
|
hasBackground?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, textColor, inputStyle, inputProps, error, overrideBorderWidth, }: FunTextAreaInputProps): React.JSX.Element;
|
|
6
|
+
export declare function FunTextAreaInput({ placeholder, value, label, onChange, onKeyDown, onKeySubmit, textColor, inputStyle, inputProps, error, overrideBorderWidth, overrideBackground, }: FunTextAreaInputProps): React.JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import { FunkitPrioritizedLoginType, FunkitSocialLoginMethod } from '../../consts/funkit';
|
|
2
2
|
export interface FunkitTextCustomizationsConfig {
|
|
3
|
-
/** @deprecated */
|
|
4
|
-
selectPaymentMethod: string;
|
|
5
3
|
brokerageOrExchange: string;
|
|
6
4
|
debitOrCredit: string;
|
|
7
5
|
accountBalance: string;
|
|
8
6
|
transferCrypto: string;
|
|
9
7
|
selectAccount: string;
|
|
10
|
-
/** @deprecated */
|
|
11
|
-
enterPaymentInfo: string;
|
|
12
|
-
payWith: string;
|
|
13
|
-
otc: string;
|
|
14
8
|
}
|
|
15
9
|
export declare const DEFAULT_TEXT_CUSTOMIZATIONS: FunkitTextCustomizationsConfig;
|
|
16
10
|
interface FunkitLoginOptionsConfig {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
+
import { SelectedHomeTab } from '../ProfileDetails/FunProfileViews/Home';
|
|
2
3
|
interface ModalProviderProps {
|
|
3
4
|
children: ReactNode;
|
|
4
5
|
}
|
|
@@ -10,7 +11,7 @@ export declare function useModalState(): {
|
|
|
10
11
|
};
|
|
11
12
|
export declare function useAccountModal(): {
|
|
12
13
|
accountModalOpen: boolean;
|
|
13
|
-
openAccountModal: (() => void) | undefined;
|
|
14
|
+
openAccountModal: ((tab: SelectedHomeTab | null) => void) | undefined;
|
|
14
15
|
};
|
|
15
16
|
export declare function useChainModal(): {
|
|
16
17
|
chainModalOpen: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { SelectedHomeTab } from './FunProfileViews/Home';
|
|
2
3
|
export declare const PROFILE_SIDE_PADDING = "18";
|
|
3
4
|
export declare enum FunProfileView {
|
|
4
5
|
HOME = 0,
|
|
@@ -8,6 +9,7 @@ export declare enum FunProfileView {
|
|
|
8
9
|
}
|
|
9
10
|
interface ProfileDetailsProps {
|
|
10
11
|
onClose: () => void;
|
|
12
|
+
defaultTab: SelectedHomeTab | null;
|
|
11
13
|
}
|
|
12
|
-
export declare function ProfileDetails({ onClose }: ProfileDetailsProps): React.JSX.Element;
|
|
14
|
+
export declare function ProfileDetails({ onClose, defaultTab }: ProfileDetailsProps): React.JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logic for easier animations during navigation
|
|
3
|
+
* @param callback - Called when utilizing the navigateTo function. Without providing it the navigateTo function will not work
|
|
4
|
+
* animate is a more generic version of navigateTo that can be used if the callback is not known during hook initialization. Or if it differs.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useAnimatedNavigation<T>(callback: ((page: T) => void) | undefined): {
|
|
7
|
+
animateOut: boolean;
|
|
8
|
+
navigateTo: (page: T) => void;
|
|
9
|
+
animate: (callback: () => void) => void;
|
|
10
|
+
};
|
package/dist/hooks/useMesh.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { FunSelectOption } from '../components/FunSelect/FunSelect';
|
|
|
4
4
|
import { PaymentMethodInfo } from '../consts/payment';
|
|
5
5
|
import { MeshExchanges } from '../utils/mesh';
|
|
6
6
|
export declare const getMeshExchangeIconMap: (size?: number) => Partial<Record<MeshExchanges, ReactNode>>;
|
|
7
|
+
export declare const getSupportedExchanges: () => MeshExchanges[];
|
|
7
8
|
export declare const useMeshExchanges: ({ fullInfo, iconSize, }: {
|
|
8
9
|
fullInfo?: boolean;
|
|
9
10
|
iconSize?: number;
|
package/dist/index.css
CHANGED
|
@@ -5987,8 +5987,8 @@
|
|
|
5987
5987
|
--_7rkubb1: 0.9;
|
|
5988
5988
|
}
|
|
5989
5989
|
|
|
5990
|
-
/* vanilla-extract-css-ns:src/components/FunButton/FunButton.css.ts.vanilla.css?source=
|
|
5991
|
-
@keyframes
|
|
5990
|
+
/* vanilla-extract-css-ns:src/components/FunButton/FunButton.css.ts.vanilla.css?source=QGtleWZyYW1lcyBfMXR5eDVudTcgewogIDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpOwogIH0KICAzMyUgewogICAgdHJhbnNmb3JtOiByb3RhdGUoMjAwZGVnKTsKICB9CiAgNjYlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDE2MGRlZyk7CiAgfQogIDEwMCUgewogICAgdHJhbnNmb3JtOiByb3RhdGUoMTgwZGVnKTsKICB9Cn0KLl8xdHl4NW51MSB7CiAgY3Vyc29yOiBwb2ludGVyOwp9Ci5fMXR5eDVudTE6aG92ZXIgewogIHRleHQtZGVjb3JhdGlvbi1saW5lOiB1bmRlcmxpbmU7Cn0KLl8xdHl4NW51MiB7CiAgdHJhbnNpdGlvbjogYWxsIDE1MG1zIGN1YmljLWJlemllcigwLjMsIDAsIDAuMDYsIDEpOwp9Ci5fMXR5eDVudTM6YWN0aXZlIHsKICB0cmFuc2Zvcm06IHNjYWxlKDAuOTgpOwp9Ci5fMXR5eDVudTQgewogIGN1cnNvcjogcG9pbnRlcjsKfQouXzF0eXg1bnU0OmZvY3VzLXZpc2libGUgewogIGJvcmRlci13aWR0aDogMnB4Owp9Ci5fMXR5eDVudTUgewogIGN1cnNvcjogZGVmYXVsdDsKfQouXzF0eXg1bnU2IHsKICBjdXJzb3I6IG5vdC1hbGxvd2VkOwp9Ci5fMXR5eDVudTggewogIGFuaW1hdGlvbjogXzF0eXg1bnU3IDFzOwp9 */
|
|
5991
|
+
@keyframes _1tyx5nu7 {
|
|
5992
5992
|
0% {
|
|
5993
5993
|
transform: rotate(0deg);
|
|
5994
5994
|
}
|
|
@@ -6021,10 +6021,13 @@
|
|
|
6021
6021
|
border-width: 2px;
|
|
6022
6022
|
}
|
|
6023
6023
|
[data-rk] ._1tyx5nu5 {
|
|
6024
|
+
cursor: default;
|
|
6025
|
+
}
|
|
6026
|
+
[data-rk] ._1tyx5nu6 {
|
|
6024
6027
|
cursor: not-allowed;
|
|
6025
6028
|
}
|
|
6026
|
-
[data-rk] .
|
|
6027
|
-
animation:
|
|
6029
|
+
[data-rk] ._1tyx5nu8 {
|
|
6030
|
+
animation: _1tyx5nu7 1s;
|
|
6028
6031
|
}
|
|
6029
6032
|
|
|
6030
6033
|
/* vanilla-extract-css-ns:src/components/FunBottomBar/FunBottomBar.css.ts.vanilla.css?source=Lm41cXdpMCB7CiAgcGFkZGluZy10b3A6IDE4cHg7CiAgJjpub3QoOmVtcHR5KSA+IDpmaXJzdC1jaGlsZCB7CiAgICBtYXJnaW4tdG9wOiAtNnB4OwogIH0KfQ== */
|
|
@@ -6304,6 +6307,16 @@ input[type=number] {
|
|
|
6304
6307
|
background: unset;
|
|
6305
6308
|
}
|
|
6306
6309
|
|
|
6310
|
+
/* vanilla-extract-css-ns:src/components/FunAssetAvatar/FunAssetAvatar.css.ts.vanilla.css?source=LnV3cmRjMjAgewogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQoudXdyZGMyMyB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIGJvdHRvbTogMDsKICByaWdodDogMDsKfQ== */
|
|
6311
|
+
[data-rk] .uwrdc20 {
|
|
6312
|
+
position: relative;
|
|
6313
|
+
}
|
|
6314
|
+
[data-rk] .uwrdc23 {
|
|
6315
|
+
position: absolute;
|
|
6316
|
+
bottom: 0;
|
|
6317
|
+
right: 0;
|
|
6318
|
+
}
|
|
6319
|
+
|
|
6307
6320
|
/* vanilla-extract-css-ns:src/components/FunCheckoutHistoryModal/FunCheckoutHistoryTransaction.css.ts.vanilla.css?source=Ll84YmVqYW4wIHsKICBtYXgtaGVpZ2h0OiAyNTBweDsKICBvdmVyZmxvdzogaGlkZGVuOwp9Ci5fOGJlamFuMSB7CiAgdHJhbnNpdGlvbjogYWxsIDAuNHMgZWFzZS1vdXQ7CiAgbWF4LWhlaWdodDogMDsKICBvdmVyZmxvdzogaGlkZGVuOwp9Ci5fOGJlamFuMiB7CiAgd2lkdGg6IDEwMCU7CiAgYm9yZGVyLXN0eWxlOiBzb2xpZDsKICBib3JkZXItdG9wLXdpZHRoOiAxcHg7Cn0= */
|
|
6308
6321
|
[data-rk] ._8bejan0 {
|
|
6309
6322
|
max-height: 250px;
|
|
@@ -6334,16 +6347,6 @@ input[type=number] {
|
|
|
6334
6347
|
overflow: hidden;
|
|
6335
6348
|
}
|
|
6336
6349
|
|
|
6337
|
-
/* vanilla-extract-css-ns:src/components/FunAssetAvatar/FunAssetAvatar.css.ts.vanilla.css?source=LnV3cmRjMjAgewogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQoudXdyZGMyMyB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIGJvdHRvbTogMDsKICByaWdodDogMDsKfQ== */
|
|
6338
|
-
[data-rk] .uwrdc20 {
|
|
6339
|
-
position: relative;
|
|
6340
|
-
}
|
|
6341
|
-
[data-rk] .uwrdc23 {
|
|
6342
|
-
position: absolute;
|
|
6343
|
-
bottom: 0;
|
|
6344
|
-
right: 0;
|
|
6345
|
-
}
|
|
6346
|
-
|
|
6347
6350
|
/* vanilla-extract-css-ns:src/css/scrollStyles.css.ts.vanilla.css?source=Ll8xNjNlaG1rMDo6LXdlYmtpdC1zY3JvbGxiYXIgewogIGRpc3BsYXk6IG5vbmU7Cn0= */
|
|
6348
6351
|
[data-rk] ._163ehmk0::-webkit-scrollbar {
|
|
6349
6352
|
display: none;
|