@reef-knot/wallet-adapter-dapp-browser-injected 5.1.1-alpha.1 → 5.2.0-alpha.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/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -0
- package/package.json +6 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { WalletAdapterType } from
|
|
1
|
+
import "viem/window";
|
|
2
|
+
import { WalletAdapterType } from "@reef-knot/wallets-helpers";
|
|
3
|
+
//#region src/index.d.ts
|
|
3
4
|
export declare const id = "dappBrowserInjected";
|
|
4
5
|
export declare const name = "DAppBrowser";
|
|
5
6
|
export declare const DAppBrowserInjected: WalletAdapterType;
|
|
7
|
+
//#endregion
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;qBAOa;qBACA;qBAWA,qBAAqB"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "viem/window";
|
|
2
|
-
import { injected } from "wagmi/connectors";
|
|
3
2
|
import { isMobileOrTablet } from "@reef-knot/wallets-helpers";
|
|
3
|
+
import { injected } from "wagmi/connectors";
|
|
4
4
|
//#region src/index.ts
|
|
5
5
|
const id = "dappBrowserInjected";
|
|
6
6
|
const name = "DAppBrowser";
|
|
@@ -19,3 +19,5 @@ const DAppBrowserInjected = () => ({
|
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DAppBrowserInjected, id, name };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import 'viem/window';\nimport {\n WalletAdapterType,\n isMobileOrTablet,\n} from '@reef-knot/wallets-helpers';\nimport { injected } from 'wagmi/connectors';\n\nexport const id = 'dappBrowserInjected';\nexport const name = 'DAppBrowser';\n\nconst getDAppBrowserInjectedConnector = () =>\n injected({\n target: () => ({\n id,\n name,\n provider: () => globalThis.window?.ethereum,\n }),\n });\n\nexport const DAppBrowserInjected: WalletAdapterType = () => ({\n walletName: name,\n walletId: id,\n type: injected.type,\n autoConnectOnly: true,\n detector: () => !!globalThis.window?.ethereum && isMobileOrTablet,\n createConnectorFn: getDAppBrowserInjectedConnector(),\n});\n"],"mappings":";;;;AAOA,MAAa,KAAK;AAClB,MAAa,OAAO;AAEpB,MAAM,wCACJ,SAAS,EACP,eAAe;CACb;CACA;CACA,gBAAgB,WAAW,QAAQ;AACrC,GACF,CAAC;AAEH,MAAa,6BAAgD;CAC3D,YAAY;CACZ,UAAU;CACV,MAAM,SAAS;CACf,iBAAiB;CACjB,gBAAgB,CAAC,CAAC,WAAW,QAAQ,YAAY;CACjD,mBAAmB,gCAAgC;AACrD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reef-knot/wallet-adapter-dapp-browser-injected",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-alpha.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -34,18 +34,15 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "yarn run -T tsdown",
|
|
36
36
|
"dev": "yarn run -T tsdown --watch",
|
|
37
|
-
"lint": "
|
|
38
|
-
"typecheck": "tsc --noEmit"
|
|
37
|
+
"lint": "yarn run -T eslint .",
|
|
38
|
+
"typecheck": "yarn run -T tsc --noEmit"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@reef-knot/
|
|
42
|
-
"
|
|
43
|
-
"build-config": "*",
|
|
44
|
-
"eslint-config-custom": "*"
|
|
41
|
+
"@reef-knot/wallets-helpers": "3.2.0-alpha.1",
|
|
42
|
+
"build-config": "*"
|
|
45
43
|
},
|
|
46
44
|
"peerDependencies": {
|
|
47
|
-
"@reef-knot/
|
|
48
|
-
"@reef-knot/wallets-helpers": "3.1.0",
|
|
45
|
+
"@reef-knot/wallets-helpers": "3.2.0-alpha.1",
|
|
49
46
|
"@tanstack/react-query": "^5.29.0",
|
|
50
47
|
"viem": ">=2.50",
|
|
51
48
|
"wagmi": ">=3.6"
|