@reef-knot/wallet-adapter-bitkeep 1.0.1 → 1.1.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.
@@ -0,0 +1,146 @@
1
+ import * as React from 'react';
2
+ import { memo } from 'react';
3
+
4
+ var _g, _defs;
5
+ function _extends() {
6
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
7
+ for (var i = 1; i < arguments.length; i++) {
8
+ var source = arguments[i];
9
+ for (var key in source) {
10
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
11
+ target[key] = source[key];
12
+ }
13
+ }
14
+ }
15
+ return target;
16
+ };
17
+ return _extends.apply(this, arguments);
18
+ }
19
+ var SvgBitget = function SvgBitget(props) {
20
+ return /*#__PURE__*/React.createElement("svg", _extends({
21
+ width: 256,
22
+ height: 256,
23
+ viewBox: "0 0 256 256",
24
+ fill: "none",
25
+ xmlns: "http://www.w3.org/2000/svg"
26
+ }, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
27
+ clipPath: "url(#clip0_1899_48)"
28
+ }, /*#__PURE__*/React.createElement("rect", {
29
+ width: 256,
30
+ height: 256,
31
+ rx: 20,
32
+ fill: "#54FFF5"
33
+ }), /*#__PURE__*/React.createElement("g", {
34
+ filter: "url(#filter0_f_1899_48)"
35
+ }, /*#__PURE__*/React.createElement("path", {
36
+ d: "M13.4807 198.605C-29.3275 319.043 199.662 285.027 319.507 252.964C442.165 212.259 357.386 32.8269 269.415 28.8558C181.443 24.8847 280.322 111.824 205.595 136.656C130.868 161.487 66.9908 48.0583 13.4807 198.605Z",
37
+ fill: "white"
38
+ })), /*#__PURE__*/React.createElement("g", {
39
+ filter: "url(#filter1_f_1899_48)"
40
+ }, /*#__PURE__*/React.createElement("path", {
41
+ d: "M85.5118 -45.8225C63.0562 -107.176 -16.9189 -23.9953 -54.0995 25.2643C-89.5652 78.8479 3.00937 125.152 39.3208 100.037C75.6323 74.9227 7.77448 70.0363 29.3708 37.3785C50.9671 4.72076 113.581 30.8695 85.5118 -45.8225Z",
42
+ fill: "#00FFF0",
43
+ fillOpacity: 0.67
44
+ })), /*#__PURE__*/React.createElement("g", {
45
+ filter: "url(#filter2_f_1899_48)"
46
+ }, /*#__PURE__*/React.createElement("path", {
47
+ d: "M96.4797 225.424C65.8504 122.363 -66.0817 176.637 -128.219 216.657C-187.99 264.042 -46.0709 400.348 12.8726 393.376C71.8162 386.403 -34.4116 327.065 1.98714 298.17C38.3859 269.276 134.766 354.249 96.4797 225.424Z",
48
+ fill: "#9D81FF"
49
+ })), /*#__PURE__*/React.createElement("g", {
50
+ filter: "url(#filter3_f_1899_48)"
51
+ }, /*#__PURE__*/React.createElement("path", {
52
+ d: "M282.12 -107.353C216.047 -186.031 121.463 -120.97 82.4295 -78.6047C48.2738 -30.6446 224.275 57.2312 273.121 42.1714C321.968 27.1115 206.512 -4.05038 227.297 -33.2879C248.082 -62.5255 364.712 -9.00566 282.12 -107.353Z",
53
+ fill: "#4D94FF"
54
+ })), /*#__PURE__*/React.createElement("path", {
55
+ fillRule: "evenodd",
56
+ clipRule: "evenodd",
57
+ d: "M93.1892 152.836H136.674L87.2087 103.051L137.31 53.2663L150.955 40H105.819L48.336 97.7773C45.4351 100.689 45.4499 105.402 48.3658 108.299L93.1892 152.836ZM119.33 103.168H118.995L119.326 103.164L119.33 103.168ZM119.33 103.168L168.791 152.949L118.69 202.734L105.045 216H150.181L207.664 158.226C210.565 155.314 210.55 150.602 207.634 147.705L162.811 103.168H119.33Z",
58
+ fill: "black"
59
+ }))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("filter", {
60
+ id: "filter0_f_1899_48",
61
+ x: -90.241,
62
+ y: -69.7369,
63
+ width: 569.558,
64
+ height: 451.431,
65
+ filterUnits: "userSpaceOnUse",
66
+ colorInterpolationFilters: "sRGB"
67
+ }, /*#__PURE__*/React.createElement("feFlood", {
68
+ floodOpacity: 0,
69
+ result: "BackgroundImageFix"
70
+ }), /*#__PURE__*/React.createElement("feBlend", {
71
+ mode: "normal",
72
+ "in": "SourceGraphic",
73
+ in2: "BackgroundImageFix",
74
+ result: "shape"
75
+ }), /*#__PURE__*/React.createElement("feGaussianBlur", {
76
+ stdDeviation: 49.2308,
77
+ result: "effect1_foregroundBlur_1899_48"
78
+ })), /*#__PURE__*/React.createElement("filter", {
79
+ id: "filter1_f_1899_48",
80
+ x: -160.511,
81
+ y: -165.987,
82
+ width: 351.596,
83
+ height: 371.507,
84
+ filterUnits: "userSpaceOnUse",
85
+ colorInterpolationFilters: "sRGB"
86
+ }, /*#__PURE__*/React.createElement("feFlood", {
87
+ floodOpacity: 0,
88
+ result: "BackgroundImageFix"
89
+ }), /*#__PURE__*/React.createElement("feBlend", {
90
+ mode: "normal",
91
+ "in": "SourceGraphic",
92
+ in2: "BackgroundImageFix",
93
+ result: "shape"
94
+ }), /*#__PURE__*/React.createElement("feGaussianBlur", {
95
+ stdDeviation: 49.2308,
96
+ result: "effect1_foregroundBlur_1899_48"
97
+ })), /*#__PURE__*/React.createElement("filter", {
98
+ id: "filter2_f_1899_48",
99
+ x: -241.077,
100
+ y: 67.642,
101
+ width: 444.851,
102
+ height: 424.452,
103
+ filterUnits: "userSpaceOnUse",
104
+ colorInterpolationFilters: "sRGB"
105
+ }, /*#__PURE__*/React.createElement("feFlood", {
106
+ floodOpacity: 0,
107
+ result: "BackgroundImageFix"
108
+ }), /*#__PURE__*/React.createElement("feBlend", {
109
+ mode: "normal",
110
+ "in": "SourceGraphic",
111
+ in2: "BackgroundImageFix",
112
+ result: "shape"
113
+ }), /*#__PURE__*/React.createElement("feGaussianBlur", {
114
+ stdDeviation: 49.2308,
115
+ result: "effect1_foregroundBlur_1899_48"
116
+ })), /*#__PURE__*/React.createElement("filter", {
117
+ id: "filter3_f_1899_48",
118
+ x: -20.3968,
119
+ y: -242.758,
120
+ width: 430.191,
121
+ height: 385.105,
122
+ filterUnits: "userSpaceOnUse",
123
+ colorInterpolationFilters: "sRGB"
124
+ }, /*#__PURE__*/React.createElement("feFlood", {
125
+ floodOpacity: 0,
126
+ result: "BackgroundImageFix"
127
+ }), /*#__PURE__*/React.createElement("feBlend", {
128
+ mode: "normal",
129
+ "in": "SourceGraphic",
130
+ in2: "BackgroundImageFix",
131
+ result: "shape"
132
+ }), /*#__PURE__*/React.createElement("feGaussianBlur", {
133
+ stdDeviation: 49.2308,
134
+ result: "effect1_foregroundBlur_1899_48"
135
+ })), /*#__PURE__*/React.createElement("clipPath", {
136
+ id: "clip0_1899_48"
137
+ }, /*#__PURE__*/React.createElement("rect", {
138
+ width: 256,
139
+ height: 256,
140
+ rx: 20,
141
+ fill: "white"
142
+ })))));
143
+ };
144
+ var Memo = /*#__PURE__*/memo(SvgBitget);
145
+
146
+ export { Memo as default };
package/dist/index.d.ts CHANGED
@@ -7,5 +7,6 @@ declare global {
7
7
  };
8
8
  }
9
9
  }
10
+ export declare const Bitget: WalletAdapterType;
10
11
  export declare const BitKeep: WalletAdapterType;
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAI5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,OAAO,CAAC,EAAE;YACR,QAAQ,CAAC,EAAE,iBAAiB,CAAC;SAC9B,CAAC;KACH;CACF;AAED,eAAO,MAAM,OAAO,EAAE,iBAepB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAI5D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,OAAO,CAAC,EAAE;YACR,QAAQ,CAAC,EAAE,iBAAiB,CAAC;SAC9B,CAAC;KACH;CACF;AAED,eAAO,MAAM,MAAM,EAAE,iBAiBnB,CAAC;AAIH,eAAO,MAAM,OAAO,mBAAS,CAAC"}
package/dist/index.js CHANGED
@@ -1,10 +1,12 @@
1
1
  import { InjectedConnector } from 'wagmi/connectors/injected';
2
- import Memo from './icons/bitkeep.svg.js';
2
+ import Memo from './icons/bitget.svg.js';
3
3
 
4
- const BitKeep = ({
4
+ const Bitget = ({
5
5
  chains
6
6
  }) => ({
7
- walletName: 'BitKeep',
7
+ walletName: 'Bitget',
8
+ // The current metrics implementation is based on walletId,
9
+ // using previous "bitkeep" name here not to break metrics
8
10
  walletId: 'bitkeep',
9
11
  icon: Memo,
10
12
  detector: () => {
@@ -12,12 +14,12 @@ const BitKeep = ({
12
14
  return !!((_b = (_a = globalThis.window) === null || _a === void 0 ? void 0 : _a.bitkeep) === null || _b === void 0 ? void 0 : _b.ethereum);
13
15
  },
14
16
  downloadURLs: {
15
- default: 'https://bitkeep.com/en/download/'
17
+ default: 'https://web3.bitget.com/'
16
18
  },
17
19
  connector: new InjectedConnector({
18
20
  chains,
19
21
  options: {
20
- name: 'BitKeep',
22
+ name: 'Bitget',
21
23
  getProvider: () => {
22
24
  var _a, _b;
23
25
  return (_b = (_a = globalThis.window) === null || _a === void 0 ? void 0 : _a.bitkeep) === null || _b === void 0 ? void 0 : _b.ethereum;
@@ -25,5 +27,8 @@ const BitKeep = ({
25
27
  }
26
28
  })
27
29
  });
30
+ // BitKeep is the previous name of the wallet.
31
+ // Exporting the wallet adapter with the old name for compatibility.
32
+ const BitKeep = Bitget;
28
33
 
29
- export { BitKeep };
34
+ export { BitKeep, Bitget };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-knot/wallet-adapter-bitkeep",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -1,38 +0,0 @@
1
- import * as React from 'react';
2
- import { memo } from 'react';
3
-
4
- var _path, _path2;
5
- function _extends() {
6
- _extends = Object.assign ? Object.assign.bind() : function (target) {
7
- for (var i = 1; i < arguments.length; i++) {
8
- var source = arguments[i];
9
- for (var key in source) {
10
- if (Object.prototype.hasOwnProperty.call(source, key)) {
11
- target[key] = source[key];
12
- }
13
- }
14
- }
15
- return target;
16
- };
17
- return _extends.apply(this, arguments);
18
- }
19
- var SvgBitkeep = function SvgBitkeep(props) {
20
- return /*#__PURE__*/React.createElement("svg", _extends({
21
- width: 36,
22
- height: 36,
23
- viewBox: "0 0 36 36",
24
- fill: "none",
25
- xmlns: "http://www.w3.org/2000/svg"
26
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
27
- d: "M18 0C27.942 0 36 8.05967 36 18C36 27.942 27.942 36 18 36C8.05967 36 0 27.9413 0 18C0 8.05967 8.05967 0 18 0Z",
28
- fill: "#7524F9"
29
- })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
30
- fillRule: "evenodd",
31
- clipRule: "evenodd",
32
- d: "M28 13.1817V14.2863C28.0002 14.3931 27.9714 14.4981 27.9165 14.5907C27.8616 14.6833 27.7826 14.7601 27.6875 14.8135L24.0242 16.8686L27.2969 18.6995C27.5108 18.8196 27.6884 18.9924 27.8118 19.2005C27.9353 19.4085 28.0002 19.6445 28 19.8847V22.8302C28.0003 23.0705 27.9355 23.3066 27.812 23.5148C27.6886 23.723 27.5109 23.8959 27.2969 24.0161L18.6898 28.8168C18.4761 28.9368 18.2336 29 17.9867 29C17.7399 29 17.4974 28.9368 17.2836 28.8168L14.4672 27.235C14.4196 27.2084 14.3802 27.17 14.3527 27.1238C14.3253 27.0776 14.3108 27.0252 14.3108 26.9718C14.3108 26.9184 14.3253 26.866 14.3527 26.8198C14.3802 26.7736 14.4196 26.7352 14.4672 26.7086L23.7641 21.5052C23.7877 21.4918 23.8074 21.4727 23.8211 21.4496C23.8347 21.4265 23.8419 21.4004 23.8419 21.3738C23.8419 21.3472 23.8347 21.321 23.8211 21.2979C23.8074 21.2749 23.7877 21.2557 23.7641 21.2423L20.3125 19.3035C20.2175 19.2502 20.1097 19.2221 20 19.2221C19.8903 19.2221 19.7825 19.2502 19.6875 19.3035L10.2445 24.5927C10.1733 24.6327 10.0924 24.6538 10.0102 24.6538C9.92788 24.6538 9.84704 24.6327 9.77578 24.5927L8.70625 23.9979C8.4913 23.8779 8.31277 23.7048 8.18875 23.4961C8.06472 23.2875 7.99961 23.0507 8 22.8096V21.6055C7.99995 21.5254 8.02158 21.4468 8.06273 21.3774C8.10387 21.3081 8.16307 21.2505 8.23438 21.2104L21.7734 13.6443C21.7971 13.631 21.8168 13.6118 21.8304 13.5887C21.8441 13.5657 21.8513 13.5395 21.8513 13.5129C21.8513 13.4863 21.8441 13.4601 21.8304 13.4371C21.8168 13.414 21.7971 13.3948 21.7734 13.3815L18.3164 11.4358C18.2214 11.3825 18.1136 11.3544 18.0039 11.3544C17.8942 11.3544 17.7864 11.3825 17.6914 11.4358L8.46875 16.5936C8.42127 16.6202 8.36741 16.6343 8.31258 16.6343C8.25775 16.6343 8.20389 16.6203 8.15639 16.5937C8.10889 16.567 8.06944 16.5287 8.04199 16.4826C8.01454 16.4364 8.00006 16.384 8 16.3307V13.1672C7.99971 12.9269 8.06454 12.6907 8.18798 12.4825C8.31142 12.2743 8.4891 12.1015 8.70313 11.9813L17.3086 7.18212C17.5219 7.0628 17.7637 7 18.0098 7C18.2558 7 18.4976 7.0628 18.7109 7.18212L27.2969 11.998C27.5106 12.118 27.688 12.2905 27.8114 12.4983C27.9349 12.706 27.9999 12.9417 28 13.1817Z",
33
- fill: "white"
34
- })));
35
- };
36
- var Memo = /*#__PURE__*/memo(SvgBitkeep);
37
-
38
- export { Memo as default };