@reef-knot/wallet-adapter-metamask 5.2.1-alpha.1 → 5.3.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/icons/index.js +1 -2
- package/dist/icons/metamask.js +2 -0
- package/dist/icons/metamask.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +6 -9
- package/dist/icons/index.d.ts +0 -2
- package/dist/icons/index.d.ts.map +0 -1
package/dist/icons/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Memo as WalletIcon };
|
|
1
|
+
export { default as WalletIcon } from "./metamask.js";
|
package/dist/icons/metamask.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metamask.js","names":[],"sources":["../../src/icons/metamask.svg"],"sourcesContent":["<svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<rect y=\"0.00439453\" width=\"48\" height=\"48.0022\" rx=\"24\" fill=\"white\"/>\n<mask id=\"mask0_10338_392\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"3\" y=\"2\" width=\"42\" height=\"43\">\n<path d=\"M44.9994 2.52051H3.04041V44.4795H44.9994V2.52051Z\" fill=\"white\"/>\n</mask>\n<g mask=\"url(#mask0_10338_392)\">\n<path 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\" fill=\"#FF5C16\"/>\n<path d=\"M9.74158 7.59058L20.8066 14.206L20.3665 18.746L9.74158 7.59058Z\" fill=\"#FF5C16\"/>\n<path d=\"M16.8226 30.9438L21.6911 34.6525L16.8226 36.1028V30.9438Z\" fill=\"#FF5C16\"/>\n<path d=\"M21.302 24.8122L20.3663 18.749L14.3768 22.8718L14.3737 22.8703V22.8733L14.3922 27.1171L16.821 24.8122H16.8226H21.302Z\" fill=\"#FF5C16\"/>\n<path d=\"M38.3211 7.59058L27.2561 14.206L27.6946 18.746L38.3211 7.59058Z\" fill=\"#FF5C16\"/>\n<path d=\"M31.24 30.9438L26.3715 34.6525L31.24 36.1028V30.9438Z\" fill=\"#FF5C16\"/>\n<path d=\"M33.6875 22.8733V22.8703L33.686 22.8718L27.6965 18.749L26.7607 24.8122H31.2402L33.6706 27.1171L33.6875 22.8733Z\" fill=\"#FF5C16\"/>\n<path d=\"M16.8211 36.1025L9.73994 38.212L7.58594 30.9436H16.8211V36.1025Z\" fill=\"#E34807\"/>\n<path d=\"M21.3006 24.8108L22.6533 33.576L20.7787 28.7025L14.3893 27.1173L16.8197 24.8108H21.2991H21.3006Z\" fill=\"#E34807\"/>\n<path d=\"M31.2399 36.1025L38.3211 38.212L40.4751 30.9436H31.2399V36.1025Z\" fill=\"#E34807\"/>\n<path d=\"M26.7605 24.8108L25.4078 33.576L27.2824 28.7025L33.6718 27.1173L31.2399 24.8108H26.7605Z\" fill=\"#E34807\"/>\n<path 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\" fill=\"#FF8D5D\"/>\n<path 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\" fill=\"#FF8D5D\"/>\n<path d=\"M27.2562 14.2014H24.0306H20.805L20.3665 18.7415L22.6533 33.5699H25.4079L27.6963 18.7415L27.2562 14.2014Z\" fill=\"#FF8D5D\"/>\n<path d=\"M9.73994 7.59058L7.58594 16.0471L9.73994 22.8704H14.3722L20.3649 18.746L9.73994 7.59058Z\" fill=\"#661800\"/>\n<path d=\"M19.9619 26.5711H17.8634L16.7208 27.691L20.7802 28.6977L19.9619 26.5696V26.5711Z\" fill=\"#661800\"/>\n<path d=\"M38.3212 7.59058L40.4752 16.0471L38.3212 22.8704H33.6889L27.6963 18.746L38.3212 7.59058Z\" fill=\"#661800\"/>\n<path d=\"M28.1023 26.5711H30.2038L31.3464 27.6926L27.2823 28.7008L28.1023 26.5696V26.5711Z\" fill=\"#661800\"/>\n<path d=\"M25.8927 36.4037L26.3713 34.651L25.4078 33.5776H22.6516L21.6881 34.651L22.1668 36.4037\" fill=\"#661800\"/>\n<path d=\"M25.8926 36.4036V39.2979H22.1667V36.4036H25.8926Z\" fill=\"#C0C4CD\"/>\n<path d=\"M16.8226 36.0997L22.1698 39.2965V36.4021L21.6911 34.6494L16.8226 36.0997Z\" fill=\"#E7EBF6\"/>\n<path d=\"M31.2399 36.0997L25.8927 39.2965V36.4021L26.3714 34.6494L31.2399 36.0997Z\" fill=\"#E7EBF6\"/>\n</g>\n</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;AAmGnR,IAAI,OAAoB,mBAAK,SAhGF,YAAY,OAAO;CAC5C,OAAoB,oBAAM,cAAc,OAAO,SAAS;EACtD,OAAO;EACP,QAAQ;EACR,SAAS;EACT,MAAM;EACN,OAAO;CACT,GAAG,KAAK,GAAG,UAAU,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,CAAC,GAAgB,oBAAM,cAAc,QAAQ;EAC3C,GAAG;EACH,MAAM;CACR,CAAC,GAAgB,oBAAM,cAAc,QAAQ;EAC3C,GAAG;EACH,MAAM;CACR,CAAC,GAAgB,oBAAM,cAAc,QAAQ;EAC3C,GAAG;EACH,MAAM;CACR,CAAC,GAAgB,oBAAM,cAAc,QAAQ;EAC3C,GAAG;EACH,MAAM;CACR,CAAC,GAAgB,oBAAM,cAAc,QAAQ;EAC3C,GAAG;EACH,MAAM;CACR,CAAC,GAAgB,oBAAM,cAAc,QAAQ;EAC3C,GAAG;EACH,MAAM;CACR,CAAC,GAAgB,oBAAM,cAAc,QAAQ;EAC3C,GAAG;EACH,MAAM;CACR,CAAC,GAAgB,oBAAM,cAAc,QAAQ;EAC3C,GAAG;EACH,MAAM;CACR,CAAC,CAAC,EAAE;AACN,CACwC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { WalletAdapterType } from "@reef-knot/wallets-helpers";
|
|
2
|
+
//#region src/index.d.ts
|
|
2
3
|
export declare const id = "metaMask";
|
|
3
4
|
export declare const name = "MetaMask";
|
|
4
5
|
export declare const rdns = "io.metamask";
|
|
5
6
|
export declare const MetaMask: 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":";;qBAKa;qBACA;qBACA;qBAEA,UAAU"}
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["WalletIcon"],"sources":["../src/index.ts"],"sourcesContent":["import { injected, metaMask } from 'wagmi/connectors';\nimport type { WalletAdapterType } from '@reef-knot/wallets-helpers';\nimport { isProviderExistsEIP6963 } from '@reef-knot/wallets-helpers';\nimport { WalletIcon } from './icons/index.js';\n\nexport const id = 'metaMask';\nexport const name = 'MetaMask';\nexport const rdns = 'io.metamask';\n\nexport const MetaMask: WalletAdapterType = ({ providersStore }) => ({\n walletName: name,\n walletId: id,\n type: injected.type,\n rdns,\n icon: WalletIcon,\n detector: () => isProviderExistsEIP6963(providersStore, rdns),\n createConnectorFn: metaMask(),\n});\n"],"mappings":";;;;;AAKA,MAAa,KAAK;AAClB,MAAa,OAAO;AACpB,MAAa,OAAO;AAEpB,MAAa,YAA+B,EAAE,sBAAsB;CAClE,YAAY;CACZ,UAAU;CACV,MAAM,SAAS;CACf;CACA,MAAMA;CACN,gBAAgB,wBAAwB,gBAAgB,IAAI;CAC5D,mBAAmB,SAAS;AAC9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reef-knot/wallet-adapter-metamask",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.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
|
"wagmi": ">=3.6"
|
|
51
48
|
}
|
package/dist/icons/index.d.ts
DELETED
|
@@ -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,gBAAgB,CAAC"}
|