@reef-knot/core-react 4.0.0 → 4.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.
@@ -1 +1 @@
1
- {"version":3,"file":"reefKnot.d.ts","sourceRoot":"","sources":["../../src/context/reefKnot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAW,MAAM,OAAO,CAAC;AAGjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,MAAM,EAAE,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,MAAM,EAAE,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,eAAe,qCAA4C,CAAC;AAEzE,eAAO,MAAM,QAAQ,+CAKlB,oBAAoB,sBAiBtB,CAAC"}
1
+ {"version":3,"file":"reefKnot.d.ts","sourceRoot":"","sources":["../../src/context/reefKnot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAW,MAAM,OAAO,CAAC;AAEjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,MAAM,EAAE,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,MAAM,EAAE,SAAS,CAAC,KAAK,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,eAAe,qCAA4C,CAAC;AAEzE,eAAO,MAAM,QAAQ,+CAKlB,oBAAoB,sBAetB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import React, { createContext, useMemo } from 'react';
2
- import { WCWarnBannerContextProvider } from '@reef-knot/ui-react';
3
2
  import { ReefKnotModalContextProvider } from './reefKnotModalContext.js';
4
3
 
5
4
  const ReefKnotContext = createContext({});
@@ -16,7 +15,7 @@ const ReefKnot = ({
16
15
  }), [rpc, walletDataList, chains]);
17
16
  return React.createElement(ReefKnotContext.Provider, {
18
17
  value: contextValue
19
- }, React.createElement(ReefKnotModalContextProvider, null, React.createElement(WCWarnBannerContextProvider, null, children)));
18
+ }, React.createElement(ReefKnotModalContextProvider, null, children));
20
19
  };
21
20
 
22
21
  export { ReefKnot, ReefKnotContext };
@@ -43,7 +43,7 @@ const useDisconnect = () => {
43
43
  // It doesn't make sense to offer a user the ability to disconnect if the user is not connected yet,
44
44
  // or if the user was connected automatically
45
45
  const connectorData = walletDataList.find(c => c.walletId === (connector === null || connector === void 0 ? void 0 : connector.id));
46
- return isConnected && !!(connectorData === null || connectorData === void 0 ? void 0 : connectorData.autoConnectOnly);
46
+ return isConnected && !(connectorData === null || connectorData === void 0 ? void 0 : connectorData.autoConnectOnly);
47
47
  }, [isConnected, connector, walletDataList]);
48
48
  return {
49
49
  disconnect: isDisconnectMakesSense ? disconnect : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-knot/core-react",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -40,7 +40,7 @@
40
40
  "@reef-knot/ledger-connector": "^4.0.0",
41
41
  "@reef-knot/wallets-list": "^2.0.0",
42
42
  "@reef-knot/types": "^2.0.0",
43
- "@reef-knot/ui-react": "^2.0.0",
43
+ "@reef-knot/ui-react": "^2.1.0",
44
44
  "@reef-knot/wallets-helpers": "^2.0.0",
45
45
  "eslint-config-custom": "*",
46
46
  "react": "18.2.0",