@searpent/react-image-annotate 2.0.80 → 2.0.82-cand-2

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.
Files changed (57) hide show
  1. package/Annotator/examplePhotos.js +28 -28
  2. package/Annotator/index.js +15 -21
  3. package/Annotator/reducers/combine-reducers.js +18 -3
  4. package/Annotator/reducers/convert-expanding-line-to-polygon.js +15 -16
  5. package/Annotator/reducers/get-implied-video-regions.js +18 -30
  6. package/ClassSelectionMenu/index.js +8 -8
  7. package/Crosshairs/index.js +2 -2
  8. package/DebugSidebarBox/index.js +4 -4
  9. package/DemoSite/Editor.js +15 -15
  10. package/DemoSite/ErrorBoundaryDialog.js +3 -5
  11. package/DemoSite/index.js +3 -3
  12. package/Editor/annotation-plugin/annotation.js +1 -3
  13. package/Editor/index.js +12 -31
  14. package/Editor/readOnly.js +395 -47
  15. package/Errorer/index.js +2 -2
  16. package/FullImageSegmentationAnnotator/index.js +1 -1
  17. package/GroupSelectorSidebarBox/index.js +7 -7
  18. package/GroupsEditorSidebarBox/index.js +11 -11
  19. package/HelpSidebarBox/index.js +4 -4
  20. package/HighlightBox/index.js +3 -3
  21. package/HistorySidebarBox/index.js +8 -8
  22. package/ImageCanvas/index.js +16 -16
  23. package/ImageMask/index.js +1 -1
  24. package/ImageSelectorSidebarBox/index.js +7 -7
  25. package/KeyframeTimeline/index.js +30 -14
  26. package/KeyframesSelectorSidebarBox/index.js +8 -8
  27. package/LandingPage/index.js +12 -12
  28. package/Locker/index.js +2 -2
  29. package/MainLayout/RightSidebarItemsWrapper.js +1 -1
  30. package/MainLayout/icon-dictionary.js +11 -11
  31. package/MainLayout/index.js +25 -23
  32. package/MetadataEditorSidebarBox/index.js +18 -18
  33. package/PageSelector/index.js +21 -21
  34. package/PointDistances/index.js +4 -4
  35. package/PreventScrollToParents/index.js +3 -3
  36. package/RegionLabel/index.js +24 -24
  37. package/RegionSelectAndTransformBoxes/index.js +8 -8
  38. package/RegionSelectorSidebarBox/index.js +33 -33
  39. package/RegionShapes/index.js +22 -22
  40. package/RegionTags/index.js +6 -6
  41. package/SettingsDialog/index.js +4 -4
  42. package/SettingsProvider/index.js +1 -1
  43. package/Shortcuts/ShortcutField.js +3 -3
  44. package/Shortcuts/index.js +2 -2
  45. package/ShortcutsManager/index.js +9 -9
  46. package/Sidebar/index.js +7 -7
  47. package/SidebarBoxContainer/index.js +3 -3
  48. package/SmallToolButton/index.js +2 -2
  49. package/TagsSidebarBox/index.js +6 -6
  50. package/TaskDescriptionSidebarBox/index.js +4 -4
  51. package/Theme/index.js +2 -2
  52. package/VideoOrImageCanvasBackground/index.js +5 -5
  53. package/mj_smaz_hist.log +20015 -0
  54. package/package.json +4 -3
  55. package/utils/blocks-to-article.js +3 -3
  56. package/utils/get-landmarks-with-transform.js +13 -15
  57. package/utils/spellcheck-nspell.js +635 -0
@@ -131,18 +131,18 @@ export default (function (_ref4) {
131
131
  height: isNaN(height) ? 0 : height
132
132
  };
133
133
  }, [imagePosition.topLeft.x, imagePosition.topLeft.y, imagePosition.bottomRight.x, imagePosition.bottomRight.y]);
134
- if (!videoSrc && !imageSrc) return React.createElement(Error, null, "No imageSrc or videoSrc provided");
135
- if (error) return React.createElement(Error, null, error);
136
- return React.createElement(ThemeProvider, {
134
+ if (!videoSrc && !imageSrc) return /*#__PURE__*/React.createElement(Error, null, "No imageSrc or videoSrc provided");
135
+ if (error) return /*#__PURE__*/React.createElement(Error, null, error);
136
+ return /*#__PURE__*/React.createElement(ThemeProvider, {
137
137
  theme: theme
138
- }, imageSrc && videoTime === undefined ? React.createElement(StyledImage, Object.assign({}, mouseEvents, {
138
+ }, imageSrc && videoTime === undefined ? /*#__PURE__*/React.createElement(StyledImage, Object.assign({}, mouseEvents, {
139
139
  src: imageSrc,
140
140
  ref: imageRef,
141
141
  style: stylePosition,
142
142
  onLoad: onImageLoaded,
143
143
  onError: onImageError,
144
144
  crossOrigin: useCrossOrigin ? "anonymous" : undefined
145
- })) : React.createElement(Video, Object.assign({}, mouseEvents, {
145
+ })) : /*#__PURE__*/React.createElement(Video, Object.assign({}, mouseEvents, {
146
146
  ref: videoRef,
147
147
  style: stylePosition,
148
148
  onLoadedMetadata: onLoadedVideoMetadata,