@reef-knot/core-react 5.1.0 → 6.1.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.
|
@@ -7,8 +7,8 @@ type WagmiConfigArgs = Omit<Parameters<typeof createConfig>[0], 'connectors' | '
|
|
|
7
7
|
type DefaultConfigArgs<I extends string = string> = ReefKnotWalletsModalConfig<I> & GetWalletsDataListArgs & WagmiConfigArgs & {
|
|
8
8
|
autoConnect: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare const getDefaultConfig: <I extends string = string>({ rpc, defaultChain, walletconnectProjectId, walletsList, safeAllowedDomains, chains, transports, autoConnect, buttonComponentsByConnectorId,
|
|
11
|
-
wagmiConfig: import("wagmi").Config<readonly [Chain, ...Chain[]], Record<number, import("wagmi").Transport<string, Record<string, any>, import("viem").EIP1193RequestFn
|
|
10
|
+
export declare const getDefaultConfig: <I extends string = string>({ rpc, defaultChain, walletconnectProjectId, walletsList, safeAllowedDomains, chains, transports, autoConnect, buttonComponentsByConnectorId, walletsShown, walletsPinned, walletsDisplayInitialCount, linkTerms, linkPrivacyNotice, linkDontHaveWallet, onClickTermsAccept, onClickWalletsLess, onClickWalletsMore, onConnectStart, onConnectSuccess, ...wagmiArgs }: DefaultConfigArgs<I>) => {
|
|
11
|
+
wagmiConfig: import("wagmi").Config<readonly [Chain, ...Chain[]], Record<number, import("wagmi").Transport<string, Record<string, any>, import("viem").EIP1193RequestFn>>, readonly import("wagmi").CreateConnectorFn[]>;
|
|
12
12
|
reefKnotConfig: ReefKnotProviderConfig;
|
|
13
13
|
walletsDataList: import("@reef-knot/types").WalletAdapterData[];
|
|
14
14
|
walletsModalConfig: ReefKnotWalletsModalConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDefaultConfig.d.ts","sourceRoot":"","sources":["../../src/helpers/getDefaultConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,EAAa,MAAM,MAAM,CAAC;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AAM,gBAAgB,GAAI,CAAC,SAAS,MAAM,kXA2B9C,iBAAiB,CAAC,CAAC,CAAC;;;;;CA2CtB,CAAC"}
|
|
@@ -21,16 +21,20 @@ const getDefaultConfig = _a => {
|
|
|
21
21
|
autoConnect,
|
|
22
22
|
// Wallets config args
|
|
23
23
|
buttonComponentsByConnectorId,
|
|
24
|
-
metrics,
|
|
25
24
|
walletsShown,
|
|
26
25
|
walletsPinned,
|
|
27
26
|
walletsDisplayInitialCount,
|
|
28
27
|
linkTerms,
|
|
29
28
|
linkPrivacyNotice,
|
|
30
|
-
linkDontHaveWallet
|
|
29
|
+
linkDontHaveWallet,
|
|
30
|
+
onClickTermsAccept,
|
|
31
|
+
onClickWalletsLess,
|
|
32
|
+
onClickWalletsMore,
|
|
33
|
+
onConnectStart,
|
|
34
|
+
onConnectSuccess
|
|
31
35
|
} = _a,
|
|
32
36
|
// Wagmi config args
|
|
33
|
-
wagmiArgs = __rest(_a, ["rpc", "defaultChain", "walletconnectProjectId", "walletsList", "safeAllowedDomains", "chains", "transports", "autoConnect", "buttonComponentsByConnectorId", "
|
|
37
|
+
wagmiArgs = __rest(_a, ["rpc", "defaultChain", "walletconnectProjectId", "walletsList", "safeAllowedDomains", "chains", "transports", "autoConnect", "buttonComponentsByConnectorId", "walletsShown", "walletsPinned", "walletsDisplayInitialCount", "linkTerms", "linkPrivacyNotice", "linkDontHaveWallet", "onClickTermsAccept", "onClickWalletsLess", "onClickWalletsMore", "onConnectStart", "onConnectSuccess"]);
|
|
34
38
|
const {
|
|
35
39
|
walletsDataList
|
|
36
40
|
} = getWalletsDataList({
|
|
@@ -52,13 +56,17 @@ const getDefaultConfig = _a => {
|
|
|
52
56
|
// TODO: We could use `getDefaultWalletsModalConfig` here, but it cause package dependency cycle rn
|
|
53
57
|
const walletsModalConfig = {
|
|
54
58
|
buttonComponentsByConnectorId,
|
|
55
|
-
metrics,
|
|
56
59
|
walletsShown,
|
|
57
60
|
walletsPinned,
|
|
58
61
|
walletsDisplayInitialCount,
|
|
59
62
|
linkTerms,
|
|
60
63
|
linkPrivacyNotice,
|
|
61
|
-
linkDontHaveWallet
|
|
64
|
+
linkDontHaveWallet,
|
|
65
|
+
onClickTermsAccept,
|
|
66
|
+
onClickWalletsLess,
|
|
67
|
+
onClickWalletsMore,
|
|
68
|
+
onConnectStart,
|
|
69
|
+
onConnectSuccess
|
|
62
70
|
};
|
|
63
71
|
return {
|
|
64
72
|
wagmiConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reef-knot/core-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -37,26 +37,26 @@
|
|
|
37
37
|
"lint": "eslint --ext ts,tsx,js,mjs ."
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@reef-knot/ledger-connector": "^4.
|
|
41
|
-
"@reef-knot/wallets-list": "^
|
|
42
|
-
"@reef-knot/types": "^
|
|
43
|
-
"@reef-knot/ui-react": "^2.
|
|
44
|
-
"@reef-knot/wallets-helpers": "^2.
|
|
40
|
+
"@reef-knot/ledger-connector": "^4.3.0",
|
|
41
|
+
"@reef-knot/wallets-list": "^4.1.2",
|
|
42
|
+
"@reef-knot/types": "^4.1.0",
|
|
43
|
+
"@reef-knot/ui-react": "^2.2.0",
|
|
44
|
+
"@reef-knot/wallets-helpers": "^2.2.0",
|
|
45
45
|
"eslint-config-custom": "*",
|
|
46
46
|
"react": "18.2.0",
|
|
47
|
-
"viem": ">=2.
|
|
48
|
-
"wagmi": ">=2.
|
|
47
|
+
"viem": ">=2.23",
|
|
48
|
+
"wagmi": ">=2.14",
|
|
49
49
|
"mipd": "0.0.7"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@reef-knot/ledger-connector": "^4.1.0",
|
|
53
|
-
"@reef-knot/wallets-list": "^
|
|
54
|
-
"@reef-knot/types": "^
|
|
53
|
+
"@reef-knot/wallets-list": "^4.0.0",
|
|
54
|
+
"@reef-knot/types": "^4.0.0",
|
|
55
55
|
"@reef-knot/ui-react": "^2.1.3",
|
|
56
56
|
"@reef-knot/wallets-helpers": "^2.0.2",
|
|
57
57
|
"react": ">=18",
|
|
58
|
-
"viem": ">=2.
|
|
59
|
-
"wagmi": ">=2.
|
|
58
|
+
"viem": ">=2.23",
|
|
59
|
+
"wagmi": ">=2.14",
|
|
60
60
|
"@tanstack/react-query": "^5.29.0"
|
|
61
61
|
}
|
|
62
62
|
}
|