@reef-knot/wallet-adapter-browser-extension 1.1.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/index.d.ts +0 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -15
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { WalletAdapterType } from '@reef-knot/types';
|
|
2
|
-
import { InjectedConnector } from 'wagmi/connectors/injected';
|
|
3
2
|
export declare const id = "browserExtension";
|
|
4
3
|
export declare const name = "Browser";
|
|
5
|
-
export declare class BrowserExtensionConnector extends InjectedConnector {
|
|
6
|
-
readonly id = "browserExtension";
|
|
7
|
-
readonly name = "Browser";
|
|
8
|
-
}
|
|
9
4
|
export declare const BrowserExtension: WalletAdapterType;
|
|
10
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
|
}
|