@reltio/components 1.4.1652 → 1.4.1653

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.
@@ -54,6 +54,8 @@ var useRelationsLoader = function (_a) {
54
54
  var options = (0, react_1.useMemo)(function () { return ({
55
55
  searchByOv: searchByOv
56
56
  }); }, [searchByOv]);
57
+ var modeRef = (0, react_1.useRef)(mode);
58
+ modeRef.current = mode;
57
59
  var loadRelations = (0, react_1.useCallback)(function () {
58
60
  if (entity === null || entity === void 0 ? void 0 : entity.uri) {
59
61
  var processedConfig = processContent(config.content);
@@ -96,7 +98,7 @@ var useRelationsLoader = function (_a) {
96
98
  throw Error(JSON.stringify(result));
97
99
  }
98
100
  var _a = result[0], connections = _a.connections, total = _a.total;
99
- relationsLoaded({ id: config.id, connections: connections, total: total });
101
+ relationsLoaded({ id: config.id, connections: connections, total: total, mode: modeRef.current });
100
102
  })
101
103
  .catch(function (e) {
102
104
  console.warn('Failed to load relations data', e);
@@ -51,6 +51,8 @@ export var useRelationsLoader = function (_a) {
51
51
  var options = useMemo(function () { return ({
52
52
  searchByOv: searchByOv
53
53
  }); }, [searchByOv]);
54
+ var modeRef = useRef(mode);
55
+ modeRef.current = mode;
54
56
  var loadRelations = useCallback(function () {
55
57
  if (entity === null || entity === void 0 ? void 0 : entity.uri) {
56
58
  var processedConfig = processContent(config.content);
@@ -93,7 +95,7 @@ export var useRelationsLoader = function (_a) {
93
95
  throw Error(JSON.stringify(result));
94
96
  }
95
97
  var _a = result[0], connections = _a.connections, total = _a.total;
96
- relationsLoaded({ id: config.id, connections: connections, total: total });
98
+ relationsLoaded({ id: config.id, connections: connections, total: total, mode: modeRef.current });
97
99
  })
98
100
  .catch(function (e) {
99
101
  console.warn('Failed to load relations data', e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1652",
3
+ "version": "1.4.1653",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -8,7 +8,7 @@
8
8
  "@date-io/moment": "^1.3.5",
9
9
  "@fluentui/react-context-selector": "^9.1.26",
10
10
  "@react-google-maps/api": "2.7.0",
11
- "@reltio/mdm-sdk": "^1.4.1652",
11
+ "@reltio/mdm-sdk": "^1.4.1653",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",