@reltio/components 1.4.1652 → 1.4.1654

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.
@@ -136,7 +136,14 @@ var processRequest = function (_a) {
136
136
  return [4 /*yield*/, getAuthHeaders(params.headers, servicesPath)];
137
137
  case 1:
138
138
  headers = _a.sent();
139
- return [4 /*yield*/, (0, mdm_sdk_1.sendRequestFromCustomSandbox)({ url: url, method: method, data: data, headers: headers, noRequestProcessor: true })];
139
+ return [4 /*yield*/, (0, mdm_sdk_1.sendRequestFromCustomSandbox)({
140
+ url: url,
141
+ method: method,
142
+ data: data,
143
+ headers: headers,
144
+ noRequestProcessor: true,
145
+ noRetry: true
146
+ })];
140
147
  case 2: return [2 /*return*/, _a.sent()];
141
148
  }
142
149
  });
@@ -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);
@@ -133,7 +133,14 @@ export var processRequest = function (_a) {
133
133
  return [4 /*yield*/, getAuthHeaders(params.headers, servicesPath)];
134
134
  case 1:
135
135
  headers = _a.sent();
136
- return [4 /*yield*/, sendRequestFromCustomSandbox({ url: url, method: method, data: data, headers: headers, noRequestProcessor: true })];
136
+ return [4 /*yield*/, sendRequestFromCustomSandbox({
137
+ url: url,
138
+ method: method,
139
+ data: data,
140
+ headers: headers,
141
+ noRequestProcessor: true,
142
+ noRetry: true
143
+ })];
137
144
  case 2: return [2 /*return*/, _a.sent()];
138
145
  }
139
146
  });
@@ -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.1654",
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.1654",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",