@reltio/components 1.4.1503 → 1.4.1505

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.
@@ -46,7 +46,7 @@ var HierarchyNodeTitle = function (_a) {
46
46
  var generateEntityUrl = (0, react_1.useContext)(contexts_1.UrlGeneratorsContext).generateEntityUrl;
47
47
  var _d = (0, useEntityDetails_1.useEntityDetails)(entityUri), isLoading = _d.isLoading, entityDetails = _d.entityDetails, showEntityDetails = _d.showEntityDetails, hideEntityDetails = _d.hideEntityDetails;
48
48
  var link = generateEntityUrl({ uiPath: uiPath, uri: entityUri });
49
- var showPopper = anchorEl && (Boolean(entityDetails) || isLoading);
49
+ var showPopper = Boolean(anchorEl) && (Boolean(entityDetails) || isLoading);
50
50
  var handleClick = (0, react_1.useCallback)(function () {
51
51
  dispatch(mdm_module_1.ui.actions.openEntity({ uri: entityUri, viewId: viewId }));
52
52
  }, [dispatch, entityUri, viewId]);
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  declare type Features = {
3
3
  showDescription?: boolean;
4
+ showNavigateToGraph?: boolean;
4
5
  };
5
6
  export declare const FeaturesContext: React.Context<Features>;
6
7
  export {};
@@ -5,5 +5,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FeaturesContext = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
- exports.FeaturesContext = react_1.default.createContext({});
8
+ exports.FeaturesContext = react_1.default.createContext({ showDescription: false, showNavigateToGraph: true });
9
9
  exports.FeaturesContext.displayName = 'FeaturesContext';
@@ -17,7 +17,7 @@ export var HierarchyNodeTitle = function (_a) {
17
17
  var generateEntityUrl = useContext(UrlGeneratorsContext).generateEntityUrl;
18
18
  var _d = useEntityDetails(entityUri), isLoading = _d.isLoading, entityDetails = _d.entityDetails, showEntityDetails = _d.showEntityDetails, hideEntityDetails = _d.hideEntityDetails;
19
19
  var link = generateEntityUrl({ uiPath: uiPath, uri: entityUri });
20
- var showPopper = anchorEl && (Boolean(entityDetails) || isLoading);
20
+ var showPopper = Boolean(anchorEl) && (Boolean(entityDetails) || isLoading);
21
21
  var handleClick = useCallback(function () {
22
22
  dispatch(ui.actions.openEntity({ uri: entityUri, viewId: viewId }));
23
23
  }, [dispatch, entityUri, viewId]);
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  declare type Features = {
3
3
  showDescription?: boolean;
4
+ showNavigateToGraph?: boolean;
4
5
  };
5
6
  export declare const FeaturesContext: React.Context<Features>;
6
7
  export {};
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- export var FeaturesContext = React.createContext({});
2
+ export var FeaturesContext = React.createContext({ showDescription: false, showNavigateToGraph: true });
3
3
  FeaturesContext.displayName = 'FeaturesContext';
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1503",
3
+ "version": "1.4.1505",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
7
7
  "dependencies": {
8
8
  "@date-io/moment": "^1.3.5",
9
9
  "@react-google-maps/api": "2.7.0",
10
- "@reltio/mdm-module": "^1.4.1503",
11
- "@reltio/mdm-sdk": "^1.4.1503",
10
+ "@reltio/mdm-module": "^1.4.1505",
11
+ "@reltio/mdm-sdk": "^1.4.1505",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",