@reef-knot/wallet-adapter-browser-extension 1.0.0 → 2.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/dist/icons/browserExtension.svg.js +21 -27
- package/dist/index.d.ts +2 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -15
- package/package.json +5 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _rect, _path, _path2;
|
|
5
5
|
function _extends() {
|
|
6
6
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
7
7
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -18,35 +18,29 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
var SvgBrowserExtension = function SvgBrowserExtension(props) {
|
|
20
20
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21
22
|
width: 48,
|
|
22
23
|
height: 48,
|
|
23
|
-
viewBox: "0 0
|
|
24
|
-
fill: "none"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
rx:
|
|
30
|
-
ry: 16,
|
|
31
|
-
fill: "#C2F0FF"
|
|
24
|
+
viewBox: "0 0 48 48",
|
|
25
|
+
fill: "none"
|
|
26
|
+
}, props), _rect || (_rect = /*#__PURE__*/React.createElement("rect", {
|
|
27
|
+
width: 48,
|
|
28
|
+
height: 48,
|
|
29
|
+
fill: "#fff",
|
|
30
|
+
rx: 24
|
|
32
31
|
})), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
stopColor: "#0087E9"
|
|
46
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
47
|
-
offset: 1,
|
|
48
|
-
stopColor: "#03D2FF"
|
|
49
|
-
})))));
|
|
32
|
+
stroke: "#7A8AA0",
|
|
33
|
+
strokeLinecap: "round",
|
|
34
|
+
strokeLinejoin: "round",
|
|
35
|
+
strokeWidth: 2,
|
|
36
|
+
d: "M33 23v-6a2 2 0 0 0-2-2H17a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"
|
|
37
|
+
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
38
|
+
stroke: "#7A8AA0",
|
|
39
|
+
strokeLinecap: "round",
|
|
40
|
+
strokeLinejoin: "round",
|
|
41
|
+
strokeWidth: 2,
|
|
42
|
+
d: "m24 24 4 10 1.7-4.3L34 28l-10-4Z"
|
|
43
|
+
})));
|
|
50
44
|
};
|
|
51
45
|
var Memo = /*#__PURE__*/memo(SvgBrowserExtension);
|
|
52
46
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { WalletAdapterType } from '@reef-knot/types';
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
readonly id = "browserExtension";
|
|
5
|
-
readonly name = "Browser";
|
|
6
|
-
}
|
|
2
|
+
export declare const id = "browserExtension";
|
|
3
|
+
export declare const name = "Browser";
|
|
7
4
|
export declare const BrowserExtension: WalletAdapterType;
|
|
8
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIrD,eAAO,MAAM,EAAE,qBAAqB,CAAC;AACrC,eAAO,MAAM,IAAI,YAAY,CAAC;AAW9B,eAAO,MAAM,gBAAgB,EAAE,iBAM7B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { injected } from 'wagmi/connectors';
|
|
2
2
|
import Memo from './icons/browserExtension.svg.js';
|
|
3
3
|
|
|
4
4
|
const id = 'browserExtension';
|
|
5
5
|
const name = 'Browser';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
const BrowserExtension = ({
|
|
14
|
-
chains
|
|
15
|
-
}) => ({
|
|
6
|
+
const getBrowserExtensionConnector = () => injected({
|
|
7
|
+
target: () => ({
|
|
8
|
+
id,
|
|
9
|
+
name,
|
|
10
|
+
provider: () => globalThis.window.ethereum
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
const BrowserExtension = () => ({
|
|
16
14
|
walletName: name,
|
|
17
15
|
walletId: id,
|
|
16
|
+
type: injected.type,
|
|
18
17
|
icon: Memo,
|
|
19
|
-
|
|
20
|
-
chains
|
|
21
|
-
})
|
|
18
|
+
createConnectorFn: getBrowserExtensionConnector()
|
|
22
19
|
});
|
|
23
20
|
|
|
24
|
-
export { BrowserExtension,
|
|
21
|
+
export { BrowserExtension, id, name };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reef-knot/wallet-adapter-browser-extension",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -32,12 +32,13 @@
|
|
|
32
32
|
"lint": "eslint --ext ts,tsx,js,mjs ."
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@reef-knot/types": "^
|
|
35
|
+
"@reef-knot/types": "^2.0.0",
|
|
36
36
|
"@svgr/rollup": "^6.5.1",
|
|
37
37
|
"eslint-config-custom": "*"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"wagmi": "
|
|
41
|
-
"@reef-knot/types": "^
|
|
40
|
+
"wagmi": "2.10.4",
|
|
41
|
+
"@reef-knot/types": "^2.0.0",
|
|
42
|
+
"@tanstack/react-query": "^5.29.0"
|
|
42
43
|
}
|
|
43
44
|
}
|