@reef-knot/wallet-adapter-okx 5.2.0 → 5.2.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.
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
2
  import { memo } from "react";
3
-
4
3
  //#region src/icons/okx-inverted.svg
5
- var _rect, _path;
4
+ var _rect;
5
+ var _path;
6
6
  function _extends() {
7
7
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
8
8
  for (var e = 1; e < arguments.length; e++) {
@@ -12,24 +12,23 @@ function _extends() {
12
12
  return n;
13
13
  }, _extends.apply(null, arguments);
14
14
  }
15
- var Memo = /* @__PURE__ */ memo(function SvgOkxInverted(props) {
16
- return /* @__PURE__ */ React.createElement("svg", _extends({
15
+ var Memo = /*#__PURE__*/ memo(function SvgOkxInverted(props) {
16
+ return /*#__PURE__*/ React.createElement("svg", _extends({
17
17
  width: 48,
18
18
  height: 48,
19
19
  viewBox: "0 0 1000 1000",
20
20
  fill: "none",
21
21
  xmlns: "http://www.w3.org/2000/svg"
22
- }, props), _rect || (_rect = /* @__PURE__ */ React.createElement("rect", {
22
+ }, props), _rect || (_rect = /*#__PURE__*/ React.createElement("rect", {
23
23
  width: 1e3,
24
24
  height: 1e3,
25
25
  fill: "white"
26
- })), _path || (_path = /* @__PURE__ */ React.createElement("path", {
26
+ })), _path || (_path = /*#__PURE__*/ React.createElement("path", {
27
27
  fillRule: "evenodd",
28
28
  clipRule: "evenodd",
29
29
  d: "M393.949 218.518H231.049C224.129 218.518 218.519 224.128 218.519 231.048V393.948C218.519 400.869 224.129 406.479 231.049 406.479H393.949C400.87 406.479 406.48 400.869 406.48 393.948V231.048C406.48 224.128 400.87 218.518 393.949 218.518ZM581.992 406.479H419.092C412.172 406.479 406.561 412.09 406.561 419.01V581.91C406.561 588.831 412.172 594.441 419.092 594.441H581.992C588.913 594.441 594.523 588.831 594.523 581.91V419.01C594.523 412.09 588.913 406.479 581.992 406.479ZM606.974 218.518H769.874C776.794 218.518 782.405 224.128 782.405 231.048V393.948C782.405 400.869 776.794 406.479 769.874 406.479H606.974C600.053 406.479 594.443 400.869 594.443 393.948V231.048C594.443 224.128 600.053 218.518 606.974 218.518ZM393.95 594.442H231.049C224.129 594.442 218.519 600.052 218.519 606.973V769.873C218.519 776.793 224.129 782.404 231.049 782.404H393.95C400.87 782.404 406.48 776.793 406.48 769.873V606.973C406.48 600.052 400.87 594.442 393.95 594.442ZM606.974 594.442H769.874C776.794 594.442 782.405 600.052 782.405 606.973V769.873C782.405 776.793 776.794 782.404 769.874 782.404H606.974C600.053 782.404 594.443 776.793 594.443 769.873V606.973C594.443 600.052 600.053 594.442 606.974 594.442Z",
30
30
  fill: "black"
31
31
  })));
32
32
  });
33
-
34
33
  //#endregion
35
- export { Memo as default };
34
+ export { Memo as default };
package/dist/icons/okx.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
2
  import { memo } from "react";
3
-
4
3
  //#region src/icons/okx.svg
5
- var _rect, _path;
4
+ var _rect;
5
+ var _path;
6
6
  function _extends() {
7
7
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
8
8
  for (var e = 1; e < arguments.length; e++) {
@@ -12,24 +12,23 @@ function _extends() {
12
12
  return n;
13
13
  }, _extends.apply(null, arguments);
14
14
  }
15
- var Memo = /* @__PURE__ */ memo(function SvgOkx(props) {
16
- return /* @__PURE__ */ React.createElement("svg", _extends({
15
+ var Memo = /*#__PURE__*/ memo(function SvgOkx(props) {
16
+ return /*#__PURE__*/ React.createElement("svg", _extends({
17
17
  width: 48,
18
18
  height: 48,
19
19
  viewBox: "0 0 1000 1000",
20
20
  fill: "none",
21
21
  xmlns: "http://www.w3.org/2000/svg"
22
- }, props), _rect || (_rect = /* @__PURE__ */ React.createElement("rect", {
22
+ }, props), _rect || (_rect = /*#__PURE__*/ React.createElement("rect", {
23
23
  width: 1e3,
24
24
  height: 1e3,
25
25
  fill: "black"
26
- })), _path || (_path = /* @__PURE__ */ React.createElement("path", {
26
+ })), _path || (_path = /*#__PURE__*/ React.createElement("path", {
27
27
  fillRule: "evenodd",
28
28
  clipRule: "evenodd",
29
29
  d: "M393.949 218.518H231.049C224.129 218.518 218.519 224.128 218.519 231.048V393.948C218.519 400.869 224.129 406.479 231.049 406.479H393.949C400.87 406.479 406.48 400.869 406.48 393.948V231.048C406.48 224.128 400.87 218.518 393.949 218.518ZM581.992 406.479H419.092C412.172 406.479 406.561 412.09 406.561 419.01V581.91C406.561 588.831 412.172 594.441 419.092 594.441H581.992C588.913 594.441 594.523 588.831 594.523 581.91V419.01C594.523 412.09 588.913 406.479 581.992 406.479ZM606.974 218.518H769.874C776.794 218.518 782.405 224.128 782.405 231.048V393.948C782.405 400.869 776.794 406.479 769.874 406.479H606.974C600.053 406.479 594.443 400.869 594.443 393.948V231.048C594.443 224.128 600.053 218.518 606.974 218.518ZM393.95 594.442H231.049C224.129 594.442 218.519 600.052 218.519 606.973V769.873C218.519 776.793 224.129 782.404 231.049 782.404H393.95C400.87 782.404 406.48 776.793 406.48 769.873V606.973C406.48 600.052 400.87 594.442 393.95 594.442ZM606.974 594.442H769.874C776.794 594.442 782.405 600.052 782.405 606.973V769.873C782.405 776.793 776.794 782.404 769.874 782.404H606.974C600.053 782.404 594.443 776.793 594.443 769.873V606.973C594.443 600.052 600.053 594.442 606.974 594.442Z",
30
30
  fill: "white"
31
31
  })));
32
32
  });
33
-
34
33
  //#endregion
35
- export { Memo as default };
34
+ export { Memo as default };
package/dist/index.js CHANGED
@@ -2,7 +2,6 @@ import Memo from "./icons/okx.js";
2
2
  import Memo$1 from "./icons/okx-inverted.js";
3
3
  import { injected } from "wagmi/connectors";
4
4
  import { getTargetEIP6963, isProviderExistsEIP6963 } from "@reef-knot/wallets-helpers";
5
-
6
5
  //#region src/index.ts
7
6
  const id = "okx";
8
7
  const name = "OKX Wallet";
@@ -10,7 +9,7 @@ const rdns = "com.okex.wallet";
10
9
  const urlWithDeeplink = "https://www.okx.com/download?deeplink=" + ("okx://wallet/dapp/url?dappUrl=" + (globalThis.window ? globalThis.window.location.host + globalThis.window.location.pathname : ""));
11
10
  const Okx = ({ providersStore }) => ({
12
11
  walletName: name,
13
- walletId: id,
12
+ walletId: "okx",
14
13
  type: injected.type,
15
14
  rdns,
16
15
  icon: {
@@ -22,6 +21,5 @@ const Okx = ({ providersStore }) => ({
22
21
  deeplink: urlWithDeeplink,
23
22
  createConnectorFn: injected({ target: () => getTargetEIP6963(providersStore, rdns) })
24
23
  });
25
-
26
24
  //#endregion
27
- export { Okx, id, name, rdns };
25
+ export { Okx, id, name, rdns };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-knot/wallet-adapter-okx",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -38,13 +38,13 @@
38
38
  "typecheck": "tsc --noEmit"
39
39
  },
40
40
  "devDependencies": {
41
- "@reef-knot/types": "5.2.0",
41
+ "@reef-knot/types": "5.2.1",
42
42
  "@reef-knot/wallets-helpers": "3.1.0",
43
43
  "build-config": "*",
44
44
  "eslint-config-custom": "*"
45
45
  },
46
46
  "peerDependencies": {
47
- "@reef-knot/types": "5.2.0",
47
+ "@reef-knot/types": "5.2.1",
48
48
  "@reef-knot/wallets-helpers": "3.1.0",
49
49
  "@tanstack/react-query": "^5.29.0",
50
50
  "wagmi": ">=3.6"