@searpent/react-image-annotate 2.0.73 → 2.0.75

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.
@@ -996,6 +996,7 @@ export default (function (state, action) {
996
996
  case "DELETE_SELECTED_REGION":
997
997
  {
998
998
  state = saveToHistory(state, "Delete selected region");
999
+ state = addSaveableAction(state, "DELETE_SELECTED_REGION");
999
1000
  return setIn(state, [].concat(_toConsumableArray(pathToActiveImage), ["regions"]), (activeImage.regions || []).filter(function (r) {
1000
1001
  return !r.highlighted;
1001
1002
  }));
@@ -73,6 +73,8 @@ button.MuiButtonBase-root.expanded {
73
73
 
74
74
  .ro-photo-caption {}
75
75
 
76
+ .ro-section {}
77
+
76
78
  .ro-advertisment {}
77
79
 
78
80
  .ro-other-graphics {}
@@ -573,6 +573,11 @@ function () {
573
573
  tag: 'p',
574
574
  name: 'table',
575
575
  backgroundColor: '#0000bb'
576
+ }, {
577
+ labelName: 'section',
578
+ tag: 'p',
579
+ name: 'section',
580
+ backgroundColor: '#ffcccc'
576
581
  }];
577
582
  return this._settings.labels ? availableLabels.filter(function (l) {
578
583
  return _this5._settings.labels.includes(l.labelName);
@@ -62,6 +62,11 @@ function ReadOnly(_ref) {
62
62
  dangerouslySetInnerHTML: {
63
63
  __html: article.table
64
64
  }
65
+ }), React.createElement("p", {
66
+ className: "ro-section",
67
+ dangerouslySetInnerHTML: {
68
+ __html: article.section
69
+ }
65
70
  }));
66
71
  }
67
72
 
@@ -45,6 +45,9 @@ function defaultClsColor(cls) {
45
45
  case 'table':
46
46
  return "#02b4ba";
47
47
 
48
+ case 'section':
49
+ return "#ffcccc";
50
+
48
51
  default:
49
52
  return "#02b4ba";
50
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searpent/react-image-annotate",
3
- "version": "2.0.73",
3
+ "version": "2.0.75",
4
4
  "dependencies": {
5
5
  "@editorjs/editorjs": "^2.25.0",
6
6
  "@editorjs/paragraph": "^2.8.0",