@reltio/components 1.4.1709-testHotfix.0 → 1.4.1710

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.
@@ -115,7 +115,7 @@ var AttributeRenderer = function (_a) {
115
115
  react_1.default.createElement("div", { ref: errorRef, className: (0, classnames_1.default)(styles.wrapper, errorClassName) },
116
116
  react_1.default.createElement("div", { className: styles.titleWrapper },
117
117
  react_1.default.createElement(Title_1.default, { label: label, isRequired: isRequired, className: styles.title, "data-reltio-id": "reltio-attribute-label" }),
118
- react_1.default.createElement(DescriptionIcon_1.default, { description: description, className: styles.description }),
118
+ react_1.default.createElement(DescriptionIcon_1.default, { description: description }),
119
119
  react_1.default.createElement(OvIcon_1.default, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues })),
120
120
  isEditableMode && react_1.default.createElement(CardinalityMessage_1.default, { cardinality: cardinality }),
121
121
  isEditableMode && react_1.default.createElement(ErrorMessage_1.default, { message: errorMessage, className: styles.typeError }),
@@ -53,7 +53,7 @@ var ImageLineRenderer = function (_a) {
53
53
  react_1.default.createElement("div", { ref: errorRef, className: (0, classnames_1.default)(styles.imagesWrapper, errorClassName) },
54
54
  react_1.default.createElement("div", { className: styles.titleWrapper },
55
55
  react_1.default.createElement(Title_1.default, { className: styles.title, label: label, "data-reltio-id": "reltio-attribute-label", isRequired: isRequired }),
56
- react_1.default.createElement(DescriptionIcon_1.default, { className: styles.description, description: description })),
56
+ react_1.default.createElement(DescriptionIcon_1.default, { description: description })),
57
57
  react_1.default.createElement(ErrorWrapper_1.default, { errorMessage: error === null || error === void 0 ? void 0 : error.message, className: styles.errorWrapper },
58
58
  react_1.default.createElement(ImageAttributesLine_1.default, { attributeValues: attributeValues, attributeType: attributeType, paging: paging, onDeleteAttribute: onDeleteAttribute, parentUri: parentUri, onChangeAttribute: (0, ramda_1.pipe)(onChangeAttribute, deactivateError), requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, showNonOv: showNonOv })))));
59
59
  };
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "description" | "caption" | "title" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "imagesWrapper" | "typeError" | "titleWrapper" | "errorWrapper">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "caption" | "title" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "imagesWrapper" | "typeError" | "titleWrapper" | "errorWrapper">;
@@ -13,9 +13,6 @@ exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
13
13
  alignItems: 'flex-start',
14
14
  position: 'relative'
15
15
  },
16
- description: {
17
- marginRight: '-9px'
18
- },
19
16
  attributesWrapper: {
20
17
  width: '100%',
21
18
  marginBottom: '10px'
@@ -35,6 +32,8 @@ exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
35
32
  fontSize: '12px',
36
33
  lineHeight: '14px',
37
34
  paddingLeft: '12px',
35
+ verticalAlign: 'middle',
36
+ wordBreak: 'break-all',
38
37
  color: theme.palette.text.secondary
39
38
  },
40
39
  typeError: {
@@ -42,11 +41,10 @@ exports.useStyles = (0, styles_1.makeStyles)(function (theme) { return ({
42
41
  },
43
42
  ovIcon: {
44
43
  marginLeft: '8px',
45
- marginTop: '-1px',
46
44
  textIndent: 0
47
45
  },
48
46
  titleWrapper: {
49
- flex: 1,
47
+ display: 'inline-block',
50
48
  paddingBottom: '3px'
51
49
  },
52
50
  errorWrapper: {
@@ -3,4 +3,5 @@ export type EditAttributeEvent = {
3
3
  attributeType: AttributeType;
4
4
  attributeValue: SimpleAttributeValue;
5
5
  crosswalk: Crosswalk | RelationCrosswalk;
6
+ clearAttributeFlags?: boolean;
6
7
  };
@@ -21,7 +21,7 @@ var commonStyles = {
21
21
  minHeight: '16px'
22
22
  },
23
23
  title: {
24
- whiteSpace: 'nowrap',
24
+ wordBreak: 'break-all',
25
25
  verticalAlign: 'middle'
26
26
  },
27
27
  ovIcon: {
@@ -139,8 +139,7 @@ var AttributesTable = function (_a) {
139
139
  react_1.default.createElement(BasicTableView_1.BasicTable, { fixFirstColumn: true, headRowHeight: 48, defaultColumnWidth: 250, defaultColumnMinWidth: 200, columnsData: visibleColumnsData, dndRowReorderingEnabled: false, dndRowReorderingHandler: handleReorderAttributeTypes, getIdFromRowValue: getIdFromRowValue, rowsData: rowsData, renderRowCell: renderRowCell, getRowCellHeight: getRowCellHeight, context: tableContext })),
140
140
  react_1.default.createElement(ConfirmDeleteDialog_1.default, { open: !!pendingDeletion, onClose: function () { return setPendingDeletion(null); }, onConfirm: handleDelete }),
141
141
  react_1.default.createElement(ConfirmEditIgnoredDialog_1.default, { open: !!pendingIgnoredEditing, onClose: function () { return setPendingIgnoredEditing(null); }, onConfirmEditWithIgnore: function () { return onEdit(pendingIgnoredEditing); }, onConfirmEditWithoutIgnore: function () {
142
- onIgnore({ attributeValue: pendingIgnoredEditing.attributeValue });
143
- onEdit(pendingIgnoredEditing);
142
+ onEdit(__assign(__assign({}, pendingIgnoredEditing), { clearAttributeFlags: true }));
144
143
  } })));
145
144
  };
146
145
  exports.default = (0, react_1.memo)(AttributesTable);
@@ -9,7 +9,7 @@ export declare const useAttributeActions: ({ onSuccess, onError, onLoad }: Props
9
9
  deleteAttribute: ({ attributeValue, attributeType, crosswalks }: DeleteInlineAttributeEvent) => void;
10
10
  pinAttribute: ({ attributeValue }: PinInlineAttributeEvent) => void;
11
11
  ignoreAttribute: ({ attributeValue }: IgnoreInlineAttributeEvent) => void;
12
- updateAttribute: ({ attributeValue, attributeType, crosswalk }: EditInlineAttributeEvent) => void;
12
+ updateAttribute: ({ attributeValue, attributeType, crosswalk, clearAttributeFlags }: EditInlineAttributeEvent) => void;
13
13
  createAttribute: ({ attributeValue, crosswalk }: CreateAttributeEvent) => void;
14
14
  };
15
15
  export {};
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  Object.defineProperty(exports, "__esModule", { value: true });
3
39
  exports.useAttributeActions = void 0;
4
40
  var react_1 = require("react");
@@ -52,16 +88,46 @@ var useAttributeActions = function (_a) {
52
88
  });
53
89
  }, [handleAction, handleErrorResponse]);
54
90
  var updateAttributeAction = (0, react_1.useCallback)(function (_a) {
55
- var attributeValue = _a.attributeValue, attributeType = _a.attributeType, crosswalk = _a.crosswalk;
91
+ var attributeValue = _a.attributeValue, attributeType = _a.attributeType, crosswalk = _a.crosswalk, clearAttributeFlags = _a.clearAttributeFlags;
56
92
  if ((0, mdm_sdk_1.isComplexAttribute)(attributeType) || (0, mdm_sdk_1.isImage)(attributeType))
57
93
  return;
58
- (0, ramda_1.pipe)(mdm_sdk_1.updateAttribute, handleErrorResponse, handleAction)({
59
- attributeUri: attributeValue.uri,
60
- sourceUri: crosswalk.type,
61
- crosswalkValue: crosswalk.value,
62
- crosswalkSourceTable: crosswalk.sourceTable,
63
- value: (0, mdm_sdk_1.isLookupAttrType)(attributeType) ? attributeValue.lookupCode : attributeValue.value
64
- });
94
+ var update = function () { return __awaiter(void 0, void 0, void 0, function () {
95
+ return __generator(this, function (_a) {
96
+ switch (_a.label) {
97
+ case 0: return [4 /*yield*/, handleErrorResponse((0, mdm_sdk_1.updateAttribute)({
98
+ attributeUri: attributeValue.uri,
99
+ sourceUri: crosswalk.type,
100
+ crosswalkValue: crosswalk.value,
101
+ crosswalkSourceTable: crosswalk.sourceTable,
102
+ value: (0, mdm_sdk_1.isLookupAttrType)(attributeType)
103
+ ? attributeValue.lookupCode
104
+ : attributeValue.value
105
+ }))];
106
+ case 1:
107
+ _a.sent();
108
+ if (!!clearAttributeFlags) return [3 /*break*/, 5];
109
+ if (!attributeValue.ignored) return [3 /*break*/, 3];
110
+ return [4 /*yield*/, handleErrorResponse((0, mdm_sdk_1.ignoreAttribute)({
111
+ attributeUri: attributeValue.uri,
112
+ value: true
113
+ }))];
114
+ case 2:
115
+ _a.sent();
116
+ return [3 /*break*/, 5];
117
+ case 3:
118
+ if (!attributeValue.pin) return [3 /*break*/, 5];
119
+ return [4 /*yield*/, handleErrorResponse((0, mdm_sdk_1.pinAttribute)({
120
+ attributeUri: attributeValue.uri,
121
+ value: true
122
+ }))];
123
+ case 4:
124
+ _a.sent();
125
+ _a.label = 5;
126
+ case 5: return [2 /*return*/];
127
+ }
128
+ });
129
+ }); };
130
+ handleAction(update());
65
131
  }, [handleAction, handleErrorResponse]);
66
132
  var createAttributeAction = (0, react_1.useCallback)(function (_a) {
67
133
  var attributeValue = _a.attributeValue, crosswalk = _a.crosswalk;
@@ -87,7 +87,7 @@ var AttributeRenderer = function (_a) {
87
87
  React.createElement("div", { ref: errorRef, className: classNames(styles.wrapper, errorClassName) },
88
88
  React.createElement("div", { className: styles.titleWrapper },
89
89
  React.createElement(Title, { label: label, isRequired: isRequired, className: styles.title, "data-reltio-id": "reltio-attribute-label" }),
90
- React.createElement(DescriptionIcon, { description: description, className: styles.description }),
90
+ React.createElement(DescriptionIcon, { description: description }),
91
91
  React.createElement(OvIcon, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues })),
92
92
  isEditableMode && React.createElement(Cardinality, { cardinality: cardinality }),
93
93
  isEditableMode && React.createElement(ErrorMessage, { message: errorMessage, className: styles.typeError }),
@@ -24,7 +24,7 @@ export var ImageLineRenderer = function (_a) {
24
24
  React.createElement("div", { ref: errorRef, className: classnames(styles.imagesWrapper, errorClassName) },
25
25
  React.createElement("div", { className: styles.titleWrapper },
26
26
  React.createElement(Title, { className: styles.title, label: label, "data-reltio-id": "reltio-attribute-label", isRequired: isRequired }),
27
- React.createElement(DescriptionIcon, { className: styles.description, description: description })),
27
+ React.createElement(DescriptionIcon, { description: description })),
28
28
  React.createElement(ErrorWrapper, { errorMessage: error === null || error === void 0 ? void 0 : error.message, className: styles.errorWrapper },
29
29
  React.createElement(ImageAttributesLine, { attributeValues: attributeValues, attributeType: attributeType, paging: paging, onDeleteAttribute: onDeleteAttribute, parentUri: parentUri, onChangeAttribute: pipe(onChangeAttribute, deactivateError), requestNextPageOfAttributeValues: requestNextPageOfAttributeValues, showNonOv: showNonOv })))));
30
30
  };
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "description" | "caption" | "title" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "imagesWrapper" | "typeError" | "titleWrapper" | "errorWrapper">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "caption" | "title" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "imagesWrapper" | "typeError" | "titleWrapper" | "errorWrapper">;
@@ -10,9 +10,6 @@ export var useStyles = makeStyles(function (theme) { return ({
10
10
  alignItems: 'flex-start',
11
11
  position: 'relative'
12
12
  },
13
- description: {
14
- marginRight: '-9px'
15
- },
16
13
  attributesWrapper: {
17
14
  width: '100%',
18
15
  marginBottom: '10px'
@@ -32,6 +29,8 @@ export var useStyles = makeStyles(function (theme) { return ({
32
29
  fontSize: '12px',
33
30
  lineHeight: '14px',
34
31
  paddingLeft: '12px',
32
+ verticalAlign: 'middle',
33
+ wordBreak: 'break-all',
35
34
  color: theme.palette.text.secondary
36
35
  },
37
36
  typeError: {
@@ -39,11 +38,10 @@ export var useStyles = makeStyles(function (theme) { return ({
39
38
  },
40
39
  ovIcon: {
41
40
  marginLeft: '8px',
42
- marginTop: '-1px',
43
41
  textIndent: 0
44
42
  },
45
43
  titleWrapper: {
46
- flex: 1,
44
+ display: 'inline-block',
47
45
  paddingBottom: '3px'
48
46
  },
49
47
  errorWrapper: {
@@ -3,4 +3,5 @@ export type EditAttributeEvent = {
3
3
  attributeType: AttributeType;
4
4
  attributeValue: SimpleAttributeValue;
5
5
  crosswalk: Crosswalk | RelationCrosswalk;
6
+ clearAttributeFlags?: boolean;
6
7
  };
@@ -18,7 +18,7 @@ var commonStyles = {
18
18
  minHeight: '16px'
19
19
  },
20
20
  title: {
21
- whiteSpace: 'nowrap',
21
+ wordBreak: 'break-all',
22
22
  verticalAlign: 'middle'
23
23
  },
24
24
  ovIcon: {
@@ -111,8 +111,7 @@ var AttributesTable = function (_a) {
111
111
  React.createElement(BasicTable, { fixFirstColumn: true, headRowHeight: 48, defaultColumnWidth: 250, defaultColumnMinWidth: 200, columnsData: visibleColumnsData, dndRowReorderingEnabled: false, dndRowReorderingHandler: handleReorderAttributeTypes, getIdFromRowValue: getIdFromRowValue, rowsData: rowsData, renderRowCell: renderRowCell, getRowCellHeight: getRowCellHeight, context: tableContext })),
112
112
  React.createElement(ConfirmDeleteDialog, { open: !!pendingDeletion, onClose: function () { return setPendingDeletion(null); }, onConfirm: handleDelete }),
113
113
  React.createElement(ConfirmEditIgnoredDialog, { open: !!pendingIgnoredEditing, onClose: function () { return setPendingIgnoredEditing(null); }, onConfirmEditWithIgnore: function () { return onEdit(pendingIgnoredEditing); }, onConfirmEditWithoutIgnore: function () {
114
- onIgnore({ attributeValue: pendingIgnoredEditing.attributeValue });
115
- onEdit(pendingIgnoredEditing);
114
+ onEdit(__assign(__assign({}, pendingIgnoredEditing), { clearAttributeFlags: true }));
116
115
  } })));
117
116
  };
118
117
  export default memo(AttributesTable);
@@ -9,7 +9,7 @@ export declare const useAttributeActions: ({ onSuccess, onError, onLoad }: Props
9
9
  deleteAttribute: ({ attributeValue, attributeType, crosswalks }: DeleteInlineAttributeEvent) => void;
10
10
  pinAttribute: ({ attributeValue }: PinInlineAttributeEvent) => void;
11
11
  ignoreAttribute: ({ attributeValue }: IgnoreInlineAttributeEvent) => void;
12
- updateAttribute: ({ attributeValue, attributeType, crosswalk }: EditInlineAttributeEvent) => void;
12
+ updateAttribute: ({ attributeValue, attributeType, crosswalk, clearAttributeFlags }: EditInlineAttributeEvent) => void;
13
13
  createAttribute: ({ attributeValue, crosswalk }: CreateAttributeEvent) => void;
14
14
  };
15
15
  export {};
@@ -1,3 +1,39 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
1
37
  import { useCallback } from 'react';
2
38
  import { createAttribute, deleteAttribute, getReferencedRelationFromAttrValue, ignoreAttribute, isComplexAttribute, isImage, isLookupAttrType, isReference, pinAttribute, removeRelation, updateAttribute } from '@reltio/mdm-sdk';
3
39
  import { andThen, pipe, prop } from 'ramda';
@@ -49,16 +85,46 @@ export var useAttributeActions = function (_a) {
49
85
  });
50
86
  }, [handleAction, handleErrorResponse]);
51
87
  var updateAttributeAction = useCallback(function (_a) {
52
- var attributeValue = _a.attributeValue, attributeType = _a.attributeType, crosswalk = _a.crosswalk;
88
+ var attributeValue = _a.attributeValue, attributeType = _a.attributeType, crosswalk = _a.crosswalk, clearAttributeFlags = _a.clearAttributeFlags;
53
89
  if (isComplexAttribute(attributeType) || isImage(attributeType))
54
90
  return;
55
- pipe(updateAttribute, handleErrorResponse, handleAction)({
56
- attributeUri: attributeValue.uri,
57
- sourceUri: crosswalk.type,
58
- crosswalkValue: crosswalk.value,
59
- crosswalkSourceTable: crosswalk.sourceTable,
60
- value: isLookupAttrType(attributeType) ? attributeValue.lookupCode : attributeValue.value
61
- });
91
+ var update = function () { return __awaiter(void 0, void 0, void 0, function () {
92
+ return __generator(this, function (_a) {
93
+ switch (_a.label) {
94
+ case 0: return [4 /*yield*/, handleErrorResponse(updateAttribute({
95
+ attributeUri: attributeValue.uri,
96
+ sourceUri: crosswalk.type,
97
+ crosswalkValue: crosswalk.value,
98
+ crosswalkSourceTable: crosswalk.sourceTable,
99
+ value: isLookupAttrType(attributeType)
100
+ ? attributeValue.lookupCode
101
+ : attributeValue.value
102
+ }))];
103
+ case 1:
104
+ _a.sent();
105
+ if (!!clearAttributeFlags) return [3 /*break*/, 5];
106
+ if (!attributeValue.ignored) return [3 /*break*/, 3];
107
+ return [4 /*yield*/, handleErrorResponse(ignoreAttribute({
108
+ attributeUri: attributeValue.uri,
109
+ value: true
110
+ }))];
111
+ case 2:
112
+ _a.sent();
113
+ return [3 /*break*/, 5];
114
+ case 3:
115
+ if (!attributeValue.pin) return [3 /*break*/, 5];
116
+ return [4 /*yield*/, handleErrorResponse(pinAttribute({
117
+ attributeUri: attributeValue.uri,
118
+ value: true
119
+ }))];
120
+ case 4:
121
+ _a.sent();
122
+ _a.label = 5;
123
+ case 5: return [2 /*return*/];
124
+ }
125
+ });
126
+ }); };
127
+ handleAction(update());
62
128
  }, [handleAction, handleErrorResponse]);
63
129
  var createAttributeAction = useCallback(function (_a) {
64
130
  var attributeValue = _a.attributeValue, crosswalk = _a.crosswalk;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1709-testHotfix.0",
3
+ "version": "1.4.1710",
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.1708-testHotfix.0",
10
+ "@reltio/mdm-sdk": "^1.4.1708",
11
11
  "classnames": "^2.2.5",
12
12
  "d3-cloud": "^1.2.5",
13
13
  "d3-geo": "^2.0.1",