@reltio/components 1.4.1754 → 1.4.1756

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
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"history" | "historyTree" | "graph" | "buttonContainer" | "shadow">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"historyTree" | "graph" | "history" | "buttonContainer" | "shadow">;
@@ -5,18 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.useRequestDCRReview = void 0;
7
7
  var react_1 = require("react");
8
- var react_redux_1 = require("react-redux");
9
8
  var ui_i18n_1 = __importDefault(require("ui-i18n"));
10
9
  var ramda_1 = require("ramda");
11
- var mdm_module_1 = __importDefault(require("@reltio/mdm-module"));
12
10
  var mdm_sdk_1 = require("@reltio/mdm-sdk");
11
+ var contexts_1 = require("../contexts");
13
12
  var PROCESS_TYPE = 'potentialMatchReview';
14
13
  var useRequestDCRReview = function (_a) {
15
14
  var entities = _a.entities, entity = _a.entity, onStartRequest = _a.onStartRequest, onEndRequest = _a.onEndRequest, onError = _a.onError, showSnackbarMessage = _a.showSnackbarMessage;
16
- var selectors = mdm_module_1.default.selectors;
17
- var workflowPath = (0, react_redux_1.useSelector)(selectors.getWorkflowPath);
18
- var environment = (0, react_redux_1.useSelector)(selectors.getWorkflowEnvironmentUrl);
19
- var tenant = (0, react_redux_1.useSelector)(selectors.getTenant);
15
+ var workflowPath = (0, contexts_1.useMdmWorkflowPath)();
16
+ var environment = (0, contexts_1.useMdmWorkflowEnvironmentUrl)();
17
+ var tenant = (0, contexts_1.useMdmTenant)();
20
18
  var getUri = (0, ramda_1.prop)('uri');
21
19
  var getUrisFromEntities = (0, ramda_1.pipe)(ramda_1.concat, (0, ramda_1.map)(getUri));
22
20
  var uris = getUrisFromEntities([entity], entities);
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"history" | "historyTree" | "graph" | "buttonContainer" | "shadow">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"historyTree" | "graph" | "history" | "buttonContainer" | "shadow">;
@@ -1,16 +1,14 @@
1
1
  import { useCallback } from 'react';
2
- import { useSelector } from 'react-redux';
3
2
  import i18n from 'ui-i18n';
4
3
  import { concat, map, pipe, prop } from 'ramda';
5
- import mdmModule from '@reltio/mdm-module';
6
4
  import { startProcessInstanceByPairs } from '@reltio/mdm-sdk';
5
+ import { useMdmTenant, useMdmWorkflowEnvironmentUrl, useMdmWorkflowPath } from '../contexts';
7
6
  var PROCESS_TYPE = 'potentialMatchReview';
8
7
  export var useRequestDCRReview = function (_a) {
9
8
  var entities = _a.entities, entity = _a.entity, onStartRequest = _a.onStartRequest, onEndRequest = _a.onEndRequest, onError = _a.onError, showSnackbarMessage = _a.showSnackbarMessage;
10
- var selectors = mdmModule.selectors;
11
- var workflowPath = useSelector(selectors.getWorkflowPath);
12
- var environment = useSelector(selectors.getWorkflowEnvironmentUrl);
13
- var tenant = useSelector(selectors.getTenant);
9
+ var workflowPath = useMdmWorkflowPath();
10
+ var environment = useMdmWorkflowEnvironmentUrl();
11
+ var tenant = useMdmTenant();
14
12
  var getUri = prop('uri');
15
13
  var getUrisFromEntities = pipe(concat, map(getUri));
16
14
  var uris = getUrisFromEntities([entity], entities);
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1754",
3
+ "version": "1.4.1756",
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
  "@fluentui/react-context-selector": "^9.1.26",
9
9
  "@react-google-maps/api": "2.7.0",
10
- "@reltio/mdm-sdk": "^1.4.1735",
10
+ "@reltio/mdm-sdk": "^1.4.1736",
11
11
  "classnames": "^2.2.5",
12
12
  "d3-cloud": "^1.2.5",
13
13
  "d3-geo": "^2.0.1",