@searpent/react-image-annotate 2.0.59 → 2.0.60
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.
package/package.json
CHANGED
|
@@ -10,13 +10,13 @@ function sanitizedText(text) {
|
|
|
10
10
|
|
|
11
11
|
function blocksToArticle(blocks) {
|
|
12
12
|
var renamedBlocks = blocks.map(function (b) {
|
|
13
|
-
var newBlock = _objectSpread({}, b
|
|
13
|
+
var newBlock = _objectSpread({}, b, {
|
|
14
|
+
data: _objectSpread({}, b.data, {
|
|
15
|
+
labelName: b.data.labelName === 'interview' ? 'text' : b.data.labelName
|
|
16
|
+
})
|
|
17
|
+
});
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
newBlock.data.labelName = 'text';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return _objectSpread({}, newBlock);
|
|
19
|
+
return newBlock;
|
|
20
20
|
});
|
|
21
21
|
var article = renamedBlocks.reduce(function (acc, curr) {
|
|
22
22
|
var _ref = curr === null || curr === void 0 ? void 0 : curr.data,
|