@reef-knot/wallet-adapter-okx 1.4.0 → 1.5.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.
@@ -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,KAAK,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAI9D,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAU,QAAQ;QAChB,WAAW,CAAC,EAAE,IAAI,CAAC;KACpB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,CAAC,EAAE,iBAAiB,CAAC;KAC/B;CACF;AAED,eAAO,MAAM,EAAE,QAAQ,CAAC;AACxB,eAAO,MAAM,IAAI,eAAe,CAAC;AAEjC,qBAAa,YAAa,SAAQ,iBAAiB;IACjD,QAAQ,CAAC,EAAE,SAAM;IACjB,QAAQ,CAAC,IAAI,gBAAQ;gBACT,MAAM,EAAE,KAAK,EAAE;CAS5B;AAED,eAAO,MAAM,GAAG,EAAE,iBAchB,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,KAAK,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAI9D,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAU,QAAQ;QAChB,WAAW,CAAC,EAAE,IAAI,CAAC;KACpB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,CAAC,EAAE,iBAAiB,CAAC;KAC/B;CACF;AAED,eAAO,MAAM,EAAE,QAAQ,CAAC;AACxB,eAAO,MAAM,IAAI,eAAe,CAAC;AAQjC,qBAAa,YAAa,SAAQ,iBAAiB;IACjD,QAAQ,CAAC,EAAE,SAAM;IACjB,QAAQ,CAAC,IAAI,gBAAQ;gBACT,MAAM,EAAE,KAAK,EAAE;CAS5B;AAED,eAAO,MAAM,GAAG,EAAE,iBAehB,CAAC"}
package/dist/index.js CHANGED
@@ -4,6 +4,9 @@ import Memo$1 from './icons/okx-inverted.svg.js';
4
4
 
5
5
  const id = 'okx';
6
6
  const name = 'OKX Wallet';
7
+ const deeplinkDAppUrl = globalThis.window ? globalThis.window.location.host + globalThis.window.location.pathname : '';
8
+ const deeplink = 'okx://wallet/dapp/url?dappUrl=' + deeplinkDAppUrl;
9
+ const urlWithDeeplink = 'https://www.okx.com/download?deeplink=' + deeplink;
7
10
  class OkxConnector extends InjectedConnector {
8
11
  constructor(chains) {
9
12
  super({
@@ -35,6 +38,7 @@ const Okx = ({
35
38
  downloadURLs: {
36
39
  default: 'https://www.okx.com/download'
37
40
  },
41
+ deeplink: urlWithDeeplink,
38
42
  connector: new OkxConnector(chains)
39
43
  });
40
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-knot/wallet-adapter-okx",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -32,7 +32,7 @@
32
32
  "lint": "eslint --ext ts,tsx,js,mjs ."
33
33
  },
34
34
  "devDependencies": {
35
- "@reef-knot/types": "^1.6.0",
35
+ "@reef-knot/types": "^1.8.0",
36
36
  "@svgr/rollup": "^6.5.1",
37
37
  "eslint-config-custom": "*"
38
38
  },