@reef-knot/wallet-adapter-metamask 5.2.0 → 5.2.1
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/dist/icons/index.js +1 -0
- package/dist/icons/metamask.js +31 -31
- package/dist/index.js +1 -3
- package/package.json +3 -3
package/dist/icons/index.js
CHANGED
package/dist/icons/metamask.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { memo } from "react";
|
|
3
|
-
|
|
4
3
|
//#region src/icons/metamask.svg
|
|
5
|
-
var _rect
|
|
4
|
+
var _rect;
|
|
5
|
+
var _path;
|
|
6
|
+
var _g;
|
|
6
7
|
function _extends() {
|
|
7
8
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
8
9
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -12,20 +13,20 @@ function _extends() {
|
|
|
12
13
|
return n;
|
|
13
14
|
}, _extends.apply(null, arguments);
|
|
14
15
|
}
|
|
15
|
-
var Memo =
|
|
16
|
-
return
|
|
16
|
+
var Memo = /*#__PURE__*/ memo(function SvgMetamask(props) {
|
|
17
|
+
return /*#__PURE__*/ React.createElement("svg", _extends({
|
|
17
18
|
width: 48,
|
|
18
19
|
height: 48,
|
|
19
20
|
viewBox: "0 0 48 48",
|
|
20
21
|
fill: "none",
|
|
21
22
|
xmlns: "http://www.w3.org/2000/svg"
|
|
22
|
-
}, props), _rect || (_rect =
|
|
23
|
+
}, props), _rect || (_rect = /*#__PURE__*/ React.createElement("rect", {
|
|
23
24
|
y: .00439453,
|
|
24
25
|
width: 48,
|
|
25
26
|
height: 48.0022,
|
|
26
27
|
rx: 24,
|
|
27
28
|
fill: "white"
|
|
28
|
-
})),
|
|
29
|
+
})), /*#__PURE__*/ React.createElement("mask", {
|
|
29
30
|
id: "mask0_10338_392",
|
|
30
31
|
style: { maskType: "luminance" },
|
|
31
32
|
maskUnits: "userSpaceOnUse",
|
|
@@ -33,77 +34,76 @@ var Memo = /* @__PURE__ */ memo(function SvgMetamask(props) {
|
|
|
33
34
|
y: 2,
|
|
34
35
|
width: 42,
|
|
35
36
|
height: 43
|
|
36
|
-
}, _path || (_path =
|
|
37
|
+
}, _path || (_path = /*#__PURE__*/ React.createElement("path", {
|
|
37
38
|
d: "M44.9994 2.52051H3.04041V44.4795H44.9994V2.52051Z",
|
|
38
39
|
fill: "white"
|
|
39
|
-
}))), _g || (_g =
|
|
40
|
+
}))), _g || (_g = /*#__PURE__*/ React.createElement("g", { mask: "url(#mask0_10338_392)" }, /*#__PURE__*/ React.createElement("path", {
|
|
40
41
|
d: "M38.3211 38.2122L31.2368 36.1027L25.8943 39.2964L22.1668 39.2948L16.8211 36.1027L9.73994 38.2122L7.58594 30.9407L9.73994 22.8704L7.58594 16.0471L9.73994 7.59058L20.8049 14.2013H27.2562L38.3211 7.59058L40.4751 16.0471L38.3211 22.8704L40.4751 30.9407L38.3211 38.2122Z",
|
|
41
42
|
fill: "#FF5C16"
|
|
42
|
-
}),
|
|
43
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
43
44
|
d: "M9.74158 7.59058L20.8066 14.206L20.3665 18.746L9.74158 7.59058Z",
|
|
44
45
|
fill: "#FF5C16"
|
|
45
|
-
}),
|
|
46
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
46
47
|
d: "M16.8226 30.9438L21.6911 34.6525L16.8226 36.1028V30.9438Z",
|
|
47
48
|
fill: "#FF5C16"
|
|
48
|
-
}),
|
|
49
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
49
50
|
d: "M21.302 24.8122L20.3663 18.749L14.3768 22.8718L14.3737 22.8703V22.8733L14.3922 27.1171L16.821 24.8122H16.8226H21.302Z",
|
|
50
51
|
fill: "#FF5C16"
|
|
51
|
-
}),
|
|
52
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
52
53
|
d: "M38.3211 7.59058L27.2561 14.206L27.6946 18.746L38.3211 7.59058Z",
|
|
53
54
|
fill: "#FF5C16"
|
|
54
|
-
}),
|
|
55
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
55
56
|
d: "M31.24 30.9438L26.3715 34.6525L31.24 36.1028V30.9438Z",
|
|
56
57
|
fill: "#FF5C16"
|
|
57
|
-
}),
|
|
58
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
58
59
|
d: "M33.6875 22.8733V22.8703L33.686 22.8718L27.6965 18.749L26.7607 24.8122H31.2402L33.6706 27.1171L33.6875 22.8733Z",
|
|
59
60
|
fill: "#FF5C16"
|
|
60
|
-
}),
|
|
61
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
61
62
|
d: "M16.8211 36.1025L9.73994 38.212L7.58594 30.9436H16.8211V36.1025Z",
|
|
62
63
|
fill: "#E34807"
|
|
63
|
-
}),
|
|
64
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
64
65
|
d: "M21.3006 24.8108L22.6533 33.576L20.7787 28.7025L14.3893 27.1173L16.8197 24.8108H21.2991H21.3006Z",
|
|
65
66
|
fill: "#E34807"
|
|
66
|
-
}),
|
|
67
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
67
68
|
d: "M31.2399 36.1025L38.3211 38.212L40.4751 30.9436H31.2399V36.1025Z",
|
|
68
69
|
fill: "#E34807"
|
|
69
|
-
}),
|
|
70
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
70
71
|
d: "M26.7605 24.8108L25.4078 33.576L27.2824 28.7025L33.6718 27.1173L31.2399 24.8108H26.7605Z",
|
|
71
72
|
fill: "#E34807"
|
|
72
|
-
}),
|
|
73
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
73
74
|
d: "M7.58594 30.9407L9.73994 22.8704H14.3722L14.3892 27.1157L20.7787 28.7009L22.6532 33.5744L21.6897 34.6478L16.8212 30.9391H7.58594V30.9407Z",
|
|
74
75
|
fill: "#FF8D5D"
|
|
75
|
-
}),
|
|
76
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
76
77
|
d: "M40.4751 30.9407L38.3211 22.8704H33.6888L33.6718 27.1157L27.2824 28.7009L25.4078 33.5744L26.3714 34.6478L31.2399 30.9391H40.4751V30.9407Z",
|
|
77
78
|
fill: "#FF8D5D"
|
|
78
|
-
}),
|
|
79
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
79
80
|
d: "M27.2562 14.2014H24.0306H20.805L20.3665 18.7415L22.6533 33.5699H25.4079L27.6963 18.7415L27.2562 14.2014Z",
|
|
80
81
|
fill: "#FF8D5D"
|
|
81
|
-
}),
|
|
82
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
82
83
|
d: "M9.73994 7.59058L7.58594 16.0471L9.73994 22.8704H14.3722L20.3649 18.746L9.73994 7.59058Z",
|
|
83
84
|
fill: "#661800"
|
|
84
|
-
}),
|
|
85
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
85
86
|
d: "M19.9619 26.5711H17.8634L16.7208 27.691L20.7802 28.6977L19.9619 26.5696V26.5711Z",
|
|
86
87
|
fill: "#661800"
|
|
87
|
-
}),
|
|
88
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
88
89
|
d: "M38.3212 7.59058L40.4752 16.0471L38.3212 22.8704H33.6889L27.6963 18.746L38.3212 7.59058Z",
|
|
89
90
|
fill: "#661800"
|
|
90
|
-
}),
|
|
91
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
91
92
|
d: "M28.1023 26.5711H30.2038L31.3464 27.6926L27.2823 28.7008L28.1023 26.5696V26.5711Z",
|
|
92
93
|
fill: "#661800"
|
|
93
|
-
}),
|
|
94
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
94
95
|
d: "M25.8927 36.4037L26.3713 34.651L25.4078 33.5776H22.6516L21.6881 34.651L22.1668 36.4037",
|
|
95
96
|
fill: "#661800"
|
|
96
|
-
}),
|
|
97
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
97
98
|
d: "M25.8926 36.4036V39.2979H22.1667V36.4036H25.8926Z",
|
|
98
99
|
fill: "#C0C4CD"
|
|
99
|
-
}),
|
|
100
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
100
101
|
d: "M16.8226 36.0997L22.1698 39.2965V36.4021L21.6911 34.6494L16.8226 36.0997Z",
|
|
101
102
|
fill: "#E7EBF6"
|
|
102
|
-
}),
|
|
103
|
+
}), /*#__PURE__*/ React.createElement("path", {
|
|
103
104
|
d: "M31.2399 36.0997L25.8927 39.2965V36.4021L26.3714 34.6494L31.2399 36.0997Z",
|
|
104
105
|
fill: "#E7EBF6"
|
|
105
106
|
}))));
|
|
106
107
|
});
|
|
107
|
-
|
|
108
108
|
//#endregion
|
|
109
|
-
export { Memo as default };
|
|
109
|
+
export { Memo as default };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import Memo from "./icons/metamask.js";
|
|
|
2
2
|
import "./icons/index.js";
|
|
3
3
|
import { injected, metaMask } from "wagmi/connectors";
|
|
4
4
|
import { isProviderExistsEIP6963 } from "@reef-knot/wallets-helpers";
|
|
5
|
-
|
|
6
5
|
//#region src/index.ts
|
|
7
6
|
const id = "metaMask";
|
|
8
7
|
const name = "MetaMask";
|
|
@@ -16,6 +15,5 @@ const MetaMask = ({ providersStore }) => ({
|
|
|
16
15
|
detector: () => isProviderExistsEIP6963(providersStore, rdns),
|
|
17
16
|
createConnectorFn: metaMask()
|
|
18
17
|
});
|
|
19
|
-
|
|
20
18
|
//#endregion
|
|
21
|
-
export { MetaMask, id, name, rdns };
|
|
19
|
+
export { MetaMask, id, name, rdns };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reef-knot/wallet-adapter-metamask",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"typecheck": "tsc --noEmit"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@reef-knot/types": "5.2.
|
|
41
|
+
"@reef-knot/types": "5.2.1",
|
|
42
42
|
"@reef-knot/wallets-helpers": "3.1.0",
|
|
43
43
|
"build-config": "*",
|
|
44
44
|
"eslint-config-custom": "*"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@reef-knot/types": "5.2.
|
|
47
|
+
"@reef-knot/types": "5.2.1",
|
|
48
48
|
"@reef-knot/wallets-helpers": "3.1.0",
|
|
49
49
|
"@tanstack/react-query": "^5.29.0",
|
|
50
50
|
"wagmi": ">=3.6"
|