@funkit/connect 1.2.6 → 1.2.7
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 +17 -0
- package/dist/components/Box/Box.d.ts +3 -3
- package/dist/components/CloseButton/CloseButton.d.ts +1 -1
- package/dist/components/FunButton/FunIconButton.d.ts +7 -7
- package/dist/components/FunCheckoutHistoryModal/FunCheckoutHistoryDetail.d.ts +1 -1
- package/dist/components/FunNotification/FunCheckoutNotification.d.ts +1 -1
- package/dist/components/FunTransactionSummary/FunTxSummaryHistory.d.ts +1 -1
- package/dist/components/FunkitProvider/AppContext.d.ts +3 -3
- package/dist/components/FunkitProvider/CoolModeContext.d.ts +0 -1
- package/dist/components/FunkitProvider/FunkitCheckoutContext.d.ts +2 -7
- package/dist/components/FunkitProvider/FunkitConfigContext.d.ts +1 -1
- package/dist/components/FunkitProvider/FunkitSandboxContext.d.ts +0 -1
- package/dist/components/FunkitProvider/FunkitWeb2Provider.d.ts +2 -15
- package/dist/components/FunkitProvider/GeneralWalletProvider.d.ts +8 -8
- package/dist/components/FunkitProvider/ShowRecentTransactionsContext.d.ts +0 -1
- package/dist/components/FunkitProvider/provideFunkitConnectChains.d.ts +1 -1
- package/dist/components/FunkitProvider/useCoolMode.d.ts +0 -1
- package/dist/components/InfoButton/InfoButton.d.ts +1 -1
- package/dist/config/getDefaultConfig.d.ts +510 -510
- package/dist/consts/funkit.d.ts +30 -9
- package/dist/css/atoms.d.ts +0 -1
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +10 -10
- package/dist/hooks/useCheckoutStateBooleans.d.ts +1 -1
- package/dist/index.css +3 -3
- package/dist/index.d.ts +1 -2
- package/dist/index.js +426 -137
- package/dist/themes/baseTheme.d.ts +1 -1
- package/dist/utils/checkout.d.ts +25 -25
- package/dist/utils/flags/config.d.ts +14 -0
- package/dist/utils/flags/endpoint.d.ts +22 -0
- package/dist/utils/flags/hash.d.ts +13 -0
- package/dist/utils/flags/impl.d.ts +26 -0
- package/dist/utils/flags/index.d.ts +7 -0
- package/dist/utils/flags/types.d.ts +39 -0
- package/dist/utils/funLogger.d.ts +7 -1
- package/dist/utils/memoize.d.ts +3 -0
- package/dist/utils/mesh.d.ts +0 -1
- package/dist/wallets/computeWalletConnectMetaData.d.ts +1 -1
- package/dist/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.js +4 -5
- package/dist/wallets/walletConnectors/index.js +55 -55
- package/package.json +9 -5
|
@@ -16,7 +16,7 @@ interface BaseThemeOptions {
|
|
|
16
16
|
fontStack?: FontStack;
|
|
17
17
|
overlayBlur?: Blurs;
|
|
18
18
|
}
|
|
19
|
-
export declare const baseTheme: ({ borderRadius, fontStack, fontSizing, customFontFamily, customFontWeights, overlayBlur, }: BaseThemeOptions) => Pick<ThemeVars,
|
|
19
|
+
export declare const baseTheme: ({ borderRadius, fontStack, fontSizing, customFontFamily, customFontWeights, overlayBlur, }: BaseThemeOptions) => Pick<ThemeVars, "radii" | "fonts" | "fontWeight" | "fontSize" | "blurs">;
|
|
20
20
|
export interface AccentColor {
|
|
21
21
|
accentColor: string;
|
|
22
22
|
accentColorForeground: string;
|
package/dist/utils/checkout.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CheckoutHistoryItem, CheckoutState } from '@funkit/
|
|
2
|
-
import { Hex } from 'viem';
|
|
1
|
+
import { CheckoutHistoryItem, CheckoutState } from '@funkit/api-base';
|
|
2
|
+
import { Address, Hex } from 'viem';
|
|
3
3
|
import { UseConfigReturnType } from 'wagmi';
|
|
4
4
|
import { FunkitCheckoutConfig } from '../components/FunkitProvider/FunkitCheckoutContext';
|
|
5
5
|
export declare const MOONPAY_TIME_ESTIMATE_MS = 120000;
|
|
@@ -40,21 +40,21 @@ export declare function getFunkitEnvForDirectExecution({ chainId, }: {
|
|
|
40
40
|
}): {
|
|
41
41
|
chain: string;
|
|
42
42
|
gasSponsor: {
|
|
43
|
-
sponsorAddress?:
|
|
44
|
-
token?: string
|
|
45
|
-
usePermit?: boolean
|
|
46
|
-
useCheckoutSponsor?: boolean
|
|
43
|
+
sponsorAddress?: Address;
|
|
44
|
+
token?: string;
|
|
45
|
+
usePermit?: boolean;
|
|
46
|
+
useCheckoutSponsor?: boolean;
|
|
47
47
|
};
|
|
48
|
-
apiKey?: string
|
|
48
|
+
apiKey?: string;
|
|
49
49
|
fee?: {
|
|
50
|
-
token?: string
|
|
51
|
-
amount?: number
|
|
52
|
-
gasPercent?: number
|
|
53
|
-
recipient:
|
|
54
|
-
}
|
|
55
|
-
skipDBAction?: boolean
|
|
56
|
-
nonce?: bigint
|
|
57
|
-
bypassInit?: boolean
|
|
50
|
+
token?: string;
|
|
51
|
+
amount?: number;
|
|
52
|
+
gasPercent?: number;
|
|
53
|
+
recipient: Address;
|
|
54
|
+
};
|
|
55
|
+
skipDBAction?: boolean;
|
|
56
|
+
nonce?: bigint;
|
|
57
|
+
bypassInit?: boolean;
|
|
58
58
|
};
|
|
59
59
|
/**
|
|
60
60
|
* Generates an env config for checkout estimation
|
|
@@ -68,19 +68,19 @@ export declare function getFunkitEnvForCheckoutEstimation({ chainId, bypassWalle
|
|
|
68
68
|
gasSponsor: {
|
|
69
69
|
useCheckoutSponsor: boolean;
|
|
70
70
|
sponsorAddress: any;
|
|
71
|
-
token?: string
|
|
72
|
-
usePermit?: boolean
|
|
71
|
+
token?: string;
|
|
72
|
+
usePermit?: boolean;
|
|
73
73
|
};
|
|
74
74
|
bypassInit: boolean;
|
|
75
|
-
apiKey?: string
|
|
75
|
+
apiKey?: string;
|
|
76
76
|
fee?: {
|
|
77
|
-
token?: string
|
|
78
|
-
amount?: number
|
|
79
|
-
gasPercent?: number
|
|
80
|
-
recipient:
|
|
81
|
-
}
|
|
82
|
-
skipDBAction?: boolean
|
|
83
|
-
nonce?: bigint
|
|
77
|
+
token?: string;
|
|
78
|
+
amount?: number;
|
|
79
|
+
gasPercent?: number;
|
|
80
|
+
recipient: Address;
|
|
81
|
+
};
|
|
82
|
+
skipDBAction?: boolean;
|
|
83
|
+
nonce?: bigint;
|
|
84
84
|
};
|
|
85
85
|
/**
|
|
86
86
|
* Decorates a list of token strings with their chainId-specific tokenAddress and pickedChainId
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BooleanFlagConfig } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Remember that these values show up in our logs
|
|
4
|
+
* Make sure the enum values are unique
|
|
5
|
+
* Once we ship a feature flag, we can't change the key.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum FlagKey {
|
|
8
|
+
/** Shows "or continue with" label on FunSignInStep */
|
|
9
|
+
ConnectSignInShowSocialLabel = "connect_sign_in_show_social_label"
|
|
10
|
+
}
|
|
11
|
+
/** @satisfies Record<FlagKey, FlagConfig> */
|
|
12
|
+
export declare const flagConfig: {
|
|
13
|
+
[FlagKey.ConnectSignInShowSocialLabel]: BooleanFlagConfig;
|
|
14
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AbstractFlags } from './types';
|
|
2
|
+
export declare const FLAG_ENDPOINT_HOST = "sdk-cdn.fun.xyz";
|
|
3
|
+
export declare const FLAG_PROD_ENDPOINT_PATH = "flags/v0/config.json";
|
|
4
|
+
export declare const FLAG_DEV_ENDPOINT_PATH = "flags/dev/config.json";
|
|
5
|
+
export declare const FLAG_PROD_ENDPOINT = "https://sdk-cdn.fun.xyz/flags/v0/config.json";
|
|
6
|
+
export type EndpointData<F extends AbstractFlags> = {
|
|
7
|
+
__meta__: {
|
|
8
|
+
build_time: string;
|
|
9
|
+
git_branch: string;
|
|
10
|
+
git_sha: string;
|
|
11
|
+
npm_version: string;
|
|
12
|
+
};
|
|
13
|
+
flags: F;
|
|
14
|
+
};
|
|
15
|
+
interface Env {
|
|
16
|
+
GIT_COMMIT_TIME: string;
|
|
17
|
+
GIT_BRANCH: string;
|
|
18
|
+
GIT_SHA: string;
|
|
19
|
+
npm_package_version: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const generateEndpointJson: <F extends AbstractFlags>(env: Env, flags: F) => EndpointData<F>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
cyrb53 (c) 2018 bryc (github.com/bryc)
|
|
3
|
+
License: Public domain (or MIT if needed). Attribution appreciated.
|
|
4
|
+
A fast and simple 53-bit string hash function with decent collision resistance.
|
|
5
|
+
Largely inspired by MurmurHash2/3, but with a focus on speed/simplicity.
|
|
6
|
+
*/
|
|
7
|
+
export declare const cyrb53: (str: string, seed?: number) => number;
|
|
8
|
+
/**
|
|
9
|
+
* Be careful changing this function, it will affect the rollout percentage.
|
|
10
|
+
* This hash function was picked because it's simple and fast and only needs
|
|
11
|
+
* to split across 100 buckets.
|
|
12
|
+
*/
|
|
13
|
+
export declare const hashPct: (flag_key: string, value: string, pct: number) => boolean;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AbstractFlags, BooleanFlagConfig, NumberFlagConfig, StringFlagConfig } from './types';
|
|
2
|
+
export interface UserContext {
|
|
3
|
+
apiKey: string;
|
|
4
|
+
userId?: string;
|
|
5
|
+
}
|
|
6
|
+
type FilterKeysBy<T, D> = {
|
|
7
|
+
[K in keyof D]: D[K] extends T ? K : never;
|
|
8
|
+
}[keyof D];
|
|
9
|
+
export declare class FeatureFlag<T extends AbstractFlags> {
|
|
10
|
+
private _config;
|
|
11
|
+
fetchFlagConfig: () => Promise<T>;
|
|
12
|
+
static createForTesting<T extends AbstractFlags>(flags: T, fetchFlagConfig: <T>() => Promise<T>): FeatureFlag<T>;
|
|
13
|
+
constructor(_config: T, fetchFlagConfig?: () => Promise<T>);
|
|
14
|
+
private flagConfig;
|
|
15
|
+
private userContext;
|
|
16
|
+
private derivedFlags;
|
|
17
|
+
private isUsingOnlineConfig;
|
|
18
|
+
init(userContext: UserContext): Promise<void>;
|
|
19
|
+
private deriveAllFlags;
|
|
20
|
+
private deriveFlag;
|
|
21
|
+
private evalCondition;
|
|
22
|
+
getBool(flagKey: FilterKeysBy<BooleanFlagConfig, T>, fallback: boolean): boolean;
|
|
23
|
+
getNumber(flagKey: FilterKeysBy<NumberFlagConfig, T>, fallback: number): number;
|
|
24
|
+
getString(flagKey: FilterKeysBy<StringFlagConfig, T>, fallback: string): string;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FlagKey } from './config';
|
|
2
|
+
import { FeatureFlag } from './impl';
|
|
3
|
+
export { FlagKey };
|
|
4
|
+
declare const singleton: FeatureFlag<{
|
|
5
|
+
connect_sign_in_show_social_label: import("./types").BooleanFlagConfig;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const flags: Pick<typeof singleton, "init" | "getBool" | "getNumber" | "getString">;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These are the data types that a feature flag can return.
|
|
3
|
+
* Note: they need to be values that can be expressed in JSON
|
|
4
|
+
*/
|
|
5
|
+
export type FlagConfig = BooleanFlagConfig | NumberFlagConfig | StringFlagConfig;
|
|
6
|
+
export interface BooleanFlagConfig {
|
|
7
|
+
type: 'boolean';
|
|
8
|
+
default_value: boolean;
|
|
9
|
+
overrides?: Override<boolean>[];
|
|
10
|
+
}
|
|
11
|
+
export interface NumberFlagConfig {
|
|
12
|
+
type: 'number';
|
|
13
|
+
default_value: number;
|
|
14
|
+
overrides?: Override<number>[];
|
|
15
|
+
}
|
|
16
|
+
export interface StringFlagConfig {
|
|
17
|
+
type: 'string';
|
|
18
|
+
default_value: string;
|
|
19
|
+
overrides?: Override<string>[];
|
|
20
|
+
}
|
|
21
|
+
export type InferFlagType<F extends FlagConfig> = F['type'] extends 'number' ? number : F['type'] extends 'string' ? string : F['type'] extends 'boolean' ? boolean : never;
|
|
22
|
+
type Override<T> = {
|
|
23
|
+
/** non-empty list of conditions, any condition will cause the value to match */
|
|
24
|
+
if_any: Condition[];
|
|
25
|
+
value: T;
|
|
26
|
+
};
|
|
27
|
+
export type Condition = {
|
|
28
|
+
type: 'pctRollout';
|
|
29
|
+
key: 'userId' | 'apiKey';
|
|
30
|
+
/** whole number from 0 - 100 inclusive */
|
|
31
|
+
pct: number;
|
|
32
|
+
} | {
|
|
33
|
+
type: 'isAnyOf';
|
|
34
|
+
key: 'userId' | 'apiKey';
|
|
35
|
+
/** non-empty list of API keys */
|
|
36
|
+
values: string[];
|
|
37
|
+
};
|
|
38
|
+
export type AbstractFlags = Record<string, FlagConfig>;
|
|
39
|
+
export {};
|
|
@@ -2,6 +2,9 @@ declare class FunLogger {
|
|
|
2
2
|
protected apiKey: string | null;
|
|
3
3
|
protected isDebugMode: boolean;
|
|
4
4
|
protected userId: string | null;
|
|
5
|
+
protected userAddress: string | null;
|
|
6
|
+
protected userName: string | null;
|
|
7
|
+
protected userLoginType: string | null;
|
|
5
8
|
protected sdkVersion: string | null;
|
|
6
9
|
constructor();
|
|
7
10
|
private getFunLogEnv;
|
|
@@ -20,7 +23,10 @@ declare class FunLogger {
|
|
|
20
23
|
error(title: string, error: Error, data?: object): void;
|
|
21
24
|
configure(apiKey: string | null, isDebug: boolean, sdkVersion: string): void;
|
|
22
25
|
getUserId(): string | null;
|
|
23
|
-
|
|
26
|
+
getUserAddress(): string | null;
|
|
27
|
+
getUserName(): string | null;
|
|
28
|
+
getUserLoginType(): string | null;
|
|
29
|
+
setUserInfo(userId: string, userAddress: string, userName: string, userLoginType: string): void;
|
|
24
30
|
}
|
|
25
31
|
declare const logger: FunLogger;
|
|
26
32
|
export { logger };
|
package/dist/utils/mesh.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ interface ComputeMetaDataParameters {
|
|
|
5
5
|
appUrl?: string;
|
|
6
6
|
appIcon?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const computeWalletConnectMetaData: ({ appName, appDescription, appUrl, appIcon, }: ComputeMetaDataParameters) => FunkitConnectWalletConnectParameters[
|
|
8
|
+
export declare const computeWalletConnectMetaData: ({ appName, appDescription, appUrl, appIcon, }: ComputeMetaDataParameters) => FunkitConnectWalletConnectParameters["metadata"];
|
|
9
9
|
export {};
|
|
@@ -4,10 +4,8 @@ import { funkitWagmiConnectorWallet } from "@funkit/wagmi-tools";
|
|
|
4
4
|
import { createConnector } from "wagmi";
|
|
5
5
|
|
|
6
6
|
// src/consts/funkit.ts
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS
|
|
10
|
-
} from "@funkit/core";
|
|
7
|
+
import { CheckoutState } from "@funkit/api-base";
|
|
8
|
+
import { FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS } from "@funkit/core";
|
|
11
9
|
var FUNKIT_CONNECT_WALLET_ID = "funkitConnectWallet";
|
|
12
10
|
var FROM_PROGRESS_CHECKOUT_STATES = [
|
|
13
11
|
CheckoutState.FROM_UNFUNDED,
|
|
@@ -28,7 +26,8 @@ var IN_PROGRESS_CHECKOUT_STATES = [
|
|
|
28
26
|
var TERMINAL_CHECKOUT_STATES = [
|
|
29
27
|
CheckoutState.EXPIRED,
|
|
30
28
|
CheckoutState.CHECKOUT_ERROR,
|
|
31
|
-
CheckoutState.COMPLETED
|
|
29
|
+
CheckoutState.COMPLETED,
|
|
30
|
+
CheckoutState.CANCELLED
|
|
32
31
|
];
|
|
33
32
|
|
|
34
33
|
// src/wallets/walletConnectors/funkitConnectWallet/funkitConnectWallet.ts
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
zerionWallet
|
|
4
|
+
} from "./chunk-G4DNQN67.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
walletConnectWallet
|
|
7
|
+
} from "./chunk-ASPRR7T3.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
subWallet
|
|
10
|
+
} from "./chunk-WS4EM7AZ.js";
|
|
11
11
|
import {
|
|
12
12
|
tokenPocketWallet
|
|
13
13
|
} from "./chunk-UWU574XS.js";
|
|
14
|
+
import {
|
|
15
|
+
talismanWallet
|
|
16
|
+
} from "./chunk-R2GYJ376.js";
|
|
14
17
|
import {
|
|
15
18
|
tokenaryWallet
|
|
16
19
|
} from "./chunk-MD5OPFAT.js";
|
|
20
|
+
import {
|
|
21
|
+
imTokenWallet
|
|
22
|
+
} from "./chunk-5MVV7OVS.js";
|
|
17
23
|
import {
|
|
18
24
|
trustWallet
|
|
19
25
|
} from "./chunk-BMHNXJZK.js";
|
|
@@ -23,12 +29,6 @@ import {
|
|
|
23
29
|
import {
|
|
24
30
|
xdefiWallet
|
|
25
31
|
} from "./chunk-JNZ3EYC7.js";
|
|
26
|
-
import {
|
|
27
|
-
walletConnectWallet
|
|
28
|
-
} from "./chunk-ASPRR7T3.js";
|
|
29
|
-
import {
|
|
30
|
-
zerionWallet
|
|
31
|
-
} from "./chunk-G4DNQN67.js";
|
|
32
32
|
import {
|
|
33
33
|
zealWallet
|
|
34
34
|
} from "./chunk-Z5QFIFDP.js";
|
|
@@ -36,41 +36,38 @@ import {
|
|
|
36
36
|
ramperWallet
|
|
37
37
|
} from "./chunk-XEZPRJPV.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
39
|
+
roninWallet
|
|
40
|
+
} from "./chunk-CNTLU4ZV.js";
|
|
41
41
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
42
|
+
safeWallet
|
|
43
|
+
} from "./chunk-D3DCQ72J.js";
|
|
44
|
+
import {
|
|
45
|
+
phantomWallet
|
|
46
|
+
} from "./chunk-4PTY6XNU.js";
|
|
44
47
|
import {
|
|
45
48
|
safeheronWallet
|
|
46
49
|
} from "./chunk-FQDX6QIP.js";
|
|
47
|
-
import {
|
|
48
|
-
subWallet
|
|
49
|
-
} from "./chunk-WS4EM7AZ.js";
|
|
50
50
|
import {
|
|
51
51
|
safepalWallet
|
|
52
52
|
} from "./chunk-PQSJXOGA.js";
|
|
53
|
+
import {
|
|
54
|
+
oneInchWallet
|
|
55
|
+
} from "./chunk-LCPIZUR3.js";
|
|
53
56
|
import {
|
|
54
57
|
tahoWallet
|
|
55
58
|
} from "./chunk-PILSRRPJ.js";
|
|
56
|
-
import {
|
|
57
|
-
talismanWallet
|
|
58
|
-
} from "./chunk-R2GYJ376.js";
|
|
59
|
-
import {
|
|
60
|
-
mewWallet
|
|
61
|
-
} from "./chunk-ZCSUP7CX.js";
|
|
62
59
|
import {
|
|
63
60
|
metaMaskWallet
|
|
64
61
|
} from "./chunk-TUK3HNKY.js";
|
|
65
|
-
import {
|
|
66
|
-
omniWallet
|
|
67
|
-
} from "./chunk-SVN7OEQR.js";
|
|
68
62
|
import {
|
|
69
63
|
okxWallet
|
|
70
64
|
} from "./chunk-5ZGE5SN5.js";
|
|
71
65
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
66
|
+
mewWallet
|
|
67
|
+
} from "./chunk-ZCSUP7CX.js";
|
|
68
|
+
import {
|
|
69
|
+
omniWallet
|
|
70
|
+
} from "./chunk-SVN7OEQR.js";
|
|
74
71
|
import {
|
|
75
72
|
oneKeyWallet
|
|
76
73
|
} from "./chunk-QS2J6MWB.js";
|
|
@@ -78,72 +75,75 @@ import {
|
|
|
78
75
|
oktoWallet
|
|
79
76
|
} from "./chunk-WKHTUEF5.js";
|
|
80
77
|
import {
|
|
81
|
-
|
|
82
|
-
} from "./chunk-
|
|
78
|
+
rabbyWallet
|
|
79
|
+
} from "./chunk-5SIHQ5GA.js";
|
|
83
80
|
import {
|
|
84
|
-
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
rainbowWallet
|
|
82
|
+
} from "./chunk-EXN2ODSI.js";
|
|
86
83
|
import {
|
|
87
84
|
foxWallet
|
|
88
85
|
} from "./chunk-TKXMLZXG.js";
|
|
86
|
+
import {
|
|
87
|
+
frameWallet
|
|
88
|
+
} from "./chunk-HXGBE5AH.js";
|
|
89
89
|
import {
|
|
90
90
|
frontierWallet
|
|
91
91
|
} from "./chunk-LOEDYNWO.js";
|
|
92
92
|
import {
|
|
93
93
|
gateWallet
|
|
94
94
|
} from "./chunk-QGQISKXF.js";
|
|
95
|
-
import {
|
|
96
|
-
imTokenWallet
|
|
97
|
-
} from "./chunk-5MVV7OVS.js";
|
|
98
95
|
import {
|
|
99
96
|
kresusWallet
|
|
100
97
|
} from "./chunk-X6T3CICZ.js";
|
|
98
|
+
import {
|
|
99
|
+
ledgerWallet
|
|
100
|
+
} from "./chunk-Y6VY6E3L.js";
|
|
101
101
|
import {
|
|
102
102
|
injectedWallet
|
|
103
103
|
} from "./chunk-GUJHPWTU.js";
|
|
104
104
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
105
|
+
clvWallet
|
|
106
|
+
} from "./chunk-ND5YG63V.js";
|
|
107
107
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
108
|
+
bybitWallet
|
|
109
|
+
} from "./chunk-ZBQT5PV6.js";
|
|
110
110
|
import {
|
|
111
111
|
coinbaseWallet
|
|
112
112
|
} from "./chunk-O77H3VWW.js";
|
|
113
113
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
114
|
+
coin98Wallet
|
|
115
|
+
} from "./chunk-3QXMJHL4.js";
|
|
116
116
|
import {
|
|
117
|
-
|
|
118
|
-
} from "./chunk-
|
|
117
|
+
coreWallet
|
|
118
|
+
} from "./chunk-32O7HVBJ.js";
|
|
119
119
|
import {
|
|
120
120
|
desigWallet
|
|
121
121
|
} from "./chunk-P4C7ZHIS.js";
|
|
122
122
|
import {
|
|
123
|
-
|
|
124
|
-
} from "./chunk-
|
|
123
|
+
dawnWallet
|
|
124
|
+
} from "./chunk-QUFNIKMV.js";
|
|
125
125
|
import {
|
|
126
126
|
enkryptWallet
|
|
127
127
|
} from "./chunk-SJWHYD45.js";
|
|
128
128
|
import {
|
|
129
129
|
argentWallet
|
|
130
130
|
} from "./chunk-NZ5G23JP.js";
|
|
131
|
-
import {
|
|
132
|
-
bitgetWallet
|
|
133
|
-
} from "./chunk-OUQ3ZF2W.js";
|
|
134
131
|
import {
|
|
135
132
|
bifrostWallet
|
|
136
133
|
} from "./chunk-AFONKDII.js";
|
|
137
|
-
import
|
|
134
|
+
import {
|
|
135
|
+
bitgetWallet
|
|
136
|
+
} from "./chunk-OUQ3ZF2W.js";
|
|
138
137
|
import {
|
|
139
138
|
bitskiWallet
|
|
140
139
|
} from "./chunk-IMZRCMZR.js";
|
|
141
140
|
import {
|
|
142
|
-
|
|
143
|
-
} from "./chunk-
|
|
141
|
+
bitverseWallet
|
|
142
|
+
} from "./chunk-NL4I7WOT.js";
|
|
144
143
|
import {
|
|
145
|
-
|
|
146
|
-
} from "./chunk-
|
|
144
|
+
bloomWallet
|
|
145
|
+
} from "./chunk-NTGZF5BY.js";
|
|
146
|
+
import "./chunk-ZOLACFTK.js";
|
|
147
147
|
import "./chunk-ZDU3JFGR.js";
|
|
148
148
|
import {
|
|
149
149
|
braveWallet
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"wagmi": "2.x"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
+
"@aws-sdk/client-s3": "^3.600.0",
|
|
46
47
|
"@funkit/eslint-config": "^1.1.1",
|
|
47
48
|
"@testing-library/jest-dom": "^6.2.0",
|
|
48
49
|
"@testing-library/react": "^14.1.2",
|
|
@@ -57,7 +58,8 @@
|
|
|
57
58
|
"nock": "^13.4.0",
|
|
58
59
|
"postcss": "^8.4.32",
|
|
59
60
|
"react": "^18.3.0",
|
|
60
|
-
"
|
|
61
|
+
"tsx": "^4.15.7",
|
|
62
|
+
"vitest": "^1.6.0"
|
|
61
63
|
},
|
|
62
64
|
"dependencies": {
|
|
63
65
|
"@datadog/browser-logs": "^5.12.0",
|
|
@@ -65,19 +67,21 @@
|
|
|
65
67
|
"@moonpay/moonpay-react": "^1.6.1",
|
|
66
68
|
"@privy-io/js-sdk-core": "^0.21.0",
|
|
67
69
|
"@tanstack/react-query": "^5.28.8",
|
|
70
|
+
"@types/node-fetch": "^2.6.4",
|
|
68
71
|
"@types/uuid": "^9.0.8",
|
|
69
72
|
"@vanilla-extract/css": "1.14.0",
|
|
70
73
|
"@vanilla-extract/dynamic": "2.1.0",
|
|
71
74
|
"@vanilla-extract/sprinkles": "1.6.1",
|
|
72
75
|
"@wagmi/core": "^2.10.2",
|
|
73
76
|
"clsx": "2.1.0",
|
|
77
|
+
"node-fetch": "^2.7.0",
|
|
74
78
|
"qrcode": "1.5.3",
|
|
75
79
|
"react-remove-scroll": "2.5.7",
|
|
76
80
|
"ua-parser-js": "^1.0.37",
|
|
77
81
|
"uuid": "^9.0.1",
|
|
78
|
-
"@funkit/
|
|
79
|
-
"@funkit/wagmi-tools": "2.0.
|
|
80
|
-
"@funkit/
|
|
82
|
+
"@funkit/api-base": "0.0.4",
|
|
83
|
+
"@funkit/wagmi-tools": "2.0.2",
|
|
84
|
+
"@funkit/core": "1.0.17"
|
|
81
85
|
},
|
|
82
86
|
"repository": {
|
|
83
87
|
"type": "git",
|