@searpent/react-image-annotate 2.0.31 → 2.0.33

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.
@@ -211,7 +211,7 @@ export var Annotator = function Annotator(_ref) {
211
211
 
212
212
 
213
213
  useEffect(function () {
214
- if (!state.lastAction || !["BEGIN_BOX_TRANSFORM", "CHANGE_REGION", "DELETE_REGION", "UPDATE_METADATA"].includes(state.lastAction.type)) {
214
+ if (!state.lastAction || !["BEGIN_BOX_TRANSFORM", "CHANGE_REGION", "DELETE_REGION", "UPDATE_METADATA", "SELECT_CLASSIFICATION"].includes(state.lastAction.type)) {
215
215
  return;
216
216
  }
217
217
 
@@ -29,7 +29,7 @@ function PageThumbnail(_ref) {
29
29
  };
30
30
 
31
31
  var pageNumber = metadata === null || metadata === void 0 ? void 0 : (_metadata$find = metadata.find) === null || _metadata$find === void 0 ? void 0 : (_metadata$find$call = _metadata$find.call(metadata, function (md) {
32
- return md.key === 'page';
32
+ return md.key === 'pageNumber';
33
33
  })) === null || _metadata$find$call === void 0 ? void 0 : _metadata$find$call.value;
34
34
  return React.createElement("div", {
35
35
  role: "button",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searpent/react-image-annotate",
3
- "version": "2.0.31",
3
+ "version": "2.0.33",
4
4
  "dependencies": {
5
5
  "@editorjs/editorjs": "^2.25.0",
6
6
  "@editorjs/paragraph": "^2.8.0",