@reef-knot/wallet-adapter-browser-extension 5.1.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.
@@ -41,3 +41,5 @@ var Memo = /*#__PURE__*/ memo(function SvgBrowserExtension(props) {
41
41
  });
42
42
  //#endregion
43
43
  export { Memo as default };
44
+
45
+ //# sourceMappingURL=browserExtension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserExtension.js","names":[],"sources":["../../src/icons/browserExtension.svg"],"sourcesContent":["<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\"><rect width=\"48\" height=\"48\" fill=\"#fff\" rx=\"24\"/><path stroke=\"#7A8AA0\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M33 23v-6a2 2 0 0 0-2-2H17a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6\"/><path stroke=\"#7A8AA0\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m24 24 4 10 1.7-4.3L34 28l-10-4Z\"/></svg>\n"],"mappings":";;;AAAA,IAAI;AAAO,IAAA;AAAO,IAAA;AAClB,SAAS,WAAW;CAAE,OAAO,WAAW,OAAO,SAAS,OAAO,OAAO,KAAK,IAAI,SAAU,GAAG;EAAE,KAAK,IAAI,IAAI,GAAG,IAAI,UAAU,QAAQ,KAAK;GAAE,IAAI,IAAI,UAAU;GAAI,KAAK,IAAI,KAAK,GAAG,CAAC,CAAC,EAAA,CAAG,eAAe,KAAK,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE;EAAK;EAAE,OAAO;CAAG,GAAG,SAAS,MAAM,MAAM,SAAS;AAAG;AA6BnR,IAAI,OAAoB,mBAAK,SA1BM,oBAAoB,OAAO;CAC5D,OAAoB,oBAAM,cAAc,OAAO,SAAS;EACtD,OAAO;EACP,OAAO;EACP,QAAQ;EACR,SAAS;EACT,MAAM;CACR,GAAG,KAAK,GAAG,UAAU,QAAqB,oBAAM,cAAc,QAAQ;EACpE,OAAO;EACP,QAAQ;EACR,MAAM;EACN,IAAI;CACN,CAAC,IAAI,UAAU,QAAqB,oBAAM,cAAc,QAAQ;EAC9D,QAAQ;EACR,eAAe;EACf,gBAAgB;EAChB,aAAa;EACb,GAAG;CACL,CAAC,IAAI,WAAW,SAAsB,oBAAM,cAAc,QAAQ;EAChE,QAAQ;EACR,eAAe;EACf,gBAAgB;EAChB,aAAa;EACb,GAAG;CACL,CAAC,EAAE;AACL,CACgD"}
@@ -1,2 +1 @@
1
- import Memo from "./browserExtension.js";
2
- export { Memo as WalletIcon };
1
+ export { default as WalletIcon } from "./browserExtension.js";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
- import 'viem/window';
2
- import { WalletAdapterType } from '@reef-knot/types';
1
+ import "viem/window";
2
+ import { WalletAdapterType } from "@reef-knot/wallets-helpers";
3
+ //#region src/index.d.ts
3
4
  export declare const id = "browserExtension";
4
5
  export declare const name = "Browser";
5
6
  export declare const BrowserExtension: WalletAdapterType;
7
+ //#endregion
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AACrB,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"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;qBAKa;qBACA;qBAWA,kBAAkB"}
package/dist/index.js CHANGED
@@ -19,3 +19,5 @@ const BrowserExtension = () => ({
19
19
  });
20
20
  //#endregion
21
21
  export { BrowserExtension, id, name };
22
+
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["WalletIcon"],"sources":["../src/index.ts"],"sourcesContent":["import 'viem/window';\nimport { WalletAdapterType } from '@reef-knot/wallets-helpers';\nimport { injected } from 'wagmi/connectors';\nimport { WalletIcon } from './icons/index.js';\n\nexport const id = 'browserExtension';\nexport const name = 'Browser';\n\nconst getBrowserExtensionConnector = () =>\n injected({\n target: () => ({\n id,\n name,\n provider: () => globalThis.window.ethereum,\n }),\n });\n\nexport const BrowserExtension: WalletAdapterType = () => ({\n walletName: name,\n walletId: id,\n type: injected.type,\n icon: WalletIcon,\n createConnectorFn: getBrowserExtensionConnector(),\n});\n"],"mappings":";;;;;AAKA,MAAa,KAAK;AAClB,MAAa,OAAO;AAEpB,MAAM,qCACJ,SAAS,EACP,eAAe;CACb;CACA;CACA,gBAAgB,WAAW,OAAO;AACpC,GACF,CAAC;AAEH,MAAa,0BAA6C;CACxD,YAAY;CACZ,UAAU;CACV,MAAM,SAAS;CACf,MAAMA;CACN,mBAAmB,6BAA6B;AAClD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-knot/wallet-adapter-browser-extension",
3
- "version": "5.1.1",
3
+ "version": "5.2.0-alpha.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -34,17 +34,16 @@
34
34
  "scripts": {
35
35
  "build": "yarn run -T tsdown",
36
36
  "dev": "yarn run -T tsdown --watch",
37
- "lint": "eslint --ext ts,tsx,js,mjs .",
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/types": "5.2.1",
41
+ "@reef-knot/wallets-helpers": "3.2.0-alpha.1",
42
42
  "build-config": "*",
43
- "eslint-config-custom": "*",
44
43
  "viem": ">=2.50"
45
44
  },
46
45
  "peerDependencies": {
47
- "@reef-knot/types": "5.2.1",
46
+ "@reef-knot/wallets-helpers": "3.2.0-alpha.1",
48
47
  "@tanstack/react-query": "^5.29.0",
49
48
  "viem": ">=2.50",
50
49
  "wagmi": ">=3.6"
@@ -1,2 +0,0 @@
1
- export { default as WalletIcon } from './browserExtension.svg';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC"}