@searpent/react-image-annotate 2.3.4 → 2.3.6
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/Annotator/examplePhotos.js +28 -28
- package/Annotator/examplePhotos_repr.js +28 -28
- package/Annotator/index.js +40 -31
- package/Annotator/index.story_bugdemo_15_1.js +895 -773
- package/Annotator/index.story_repr.js +1048 -933
- package/Annotator/reducers/convert-expanding-line-to-polygon.js +15 -16
- package/ClassSelectionMenu/index.js +55 -35
- package/Crosshairs/index.js +30 -23
- package/DebugSidebarBox/index.js +40 -9
- package/DemoSite/Editor.js +124 -79
- package/DemoSite/ErrorBoundaryDialog.js +19 -6
- package/DemoSite/index.js +26 -17
- package/Editor/index.js +70 -36
- package/Editor/index_bugdemo_15_1.js +68 -35
- package/Editor/readOnly.js +178 -127
- package/Errorer/index.js +8 -3
- package/FullImageSegmentationAnnotator/index.js +6 -3
- package/GroupSelectorSidebarBox/index.js +48 -32
- package/GroupsEditorSidebarBox/index.js +75 -40
- package/HelpSidebarBox/index.js +24 -13
- package/HighlightBox/index.js +37 -30
- package/HistorySidebarBox/index.js +51 -29
- package/ImageCanvas/index.js +165 -130
- package/ImageMask/index.js +9 -6
- package/ImageSelectorSidebarBox/index.js +44 -26
- package/KeyframeTimeline/index.js +65 -45
- package/KeyframesSelectorSidebarBox/index.js +76 -54
- package/LandingPage/index.js +76 -38
- package/Locker/index.js +8 -3
- package/MainLayout/RightSidebarItemsWrapper.js +7 -4
- package/MainLayout/icon-dictionary.js +99 -66
- package/MainLayout/index.js +258 -196
- package/MainLayout/index_bugdemo_15_1.js +253 -195
- package/MetadataEditorSidebarBox/index.js +152 -102
- package/MetadataEditorSidebarBox/index_14_01_25.js +152 -102
- package/MetadataEditorSidebarBox/index_repr.js +183 -128
- package/PageSelector/UpdatedBySemaphore.js +95 -0
- package/PageSelector/index.js +181 -97
- package/PageSelector/page-selector.css +118 -2
- package/PointDistances/index.js +45 -33
- package/PreventScrollToParents/index.js +16 -9
- package/RegionLabel/index.js +217 -165
- package/RegionSelectAndTransformBoxes/index.js +131 -105
- package/RegionSelectorSidebarBox/index.js +243 -165
- package/RegionShapes/index.js +213 -153
- package/RegionTags/index.js +83 -69
- package/SettingsDialog/index.js +50 -37
- package/SettingsProvider/index.js +8 -5
- package/Shortcuts/ShortcutField.js +21 -14
- package/Shortcuts/index.js +18 -12
- package/ShortcutsManager/index.js +7 -4
- package/Sidebar/index.js +46 -29
- package/SidebarBoxContainer/index.js +14 -7
- package/SmallToolButton/index.js +23 -16
- package/TagsSidebarBox/index.js +41 -28
- package/TaskDescriptionSidebarBox/index.js +24 -13
- package/Theme/index.js +8 -3
- package/VideoOrImageCanvasBackground/index.js +30 -17
- package/package.json +1 -1
- package/utils/spellcheck-nspell.js +2 -2
package/SettingsDialog/index.js
CHANGED
|
@@ -10,43 +10,56 @@ export var SettingsDialog = function SettingsDialog(_ref) {
|
|
|
10
10
|
var open = _ref.open,
|
|
11
11
|
onClose = _ref.onClose;
|
|
12
12
|
var settings = useSettings();
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
minWidth: 400
|
|
19
|
-
}
|
|
20
|
-
}, React.createElement(Survey, {
|
|
21
|
-
variant: "flat",
|
|
22
|
-
noActions: true,
|
|
23
|
-
defaultAnswers: settings,
|
|
24
|
-
onQuestionChange: function onQuestionChange(q, a, answers) {
|
|
25
|
-
return settings.changeSetting(q, a);
|
|
13
|
+
return (
|
|
14
|
+
/*#__PURE__*/
|
|
15
|
+
React.createElement(Dialog, {
|
|
16
|
+
open: open || false,
|
|
17
|
+
onClose: onClose
|
|
26
18
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
19
|
+
/*#__PURE__*/
|
|
20
|
+
React.createElement(DialogTitle, null, "Settings"),
|
|
21
|
+
/*#__PURE__*/
|
|
22
|
+
React.createElement(DialogContent, {
|
|
23
|
+
style: {
|
|
24
|
+
minWidth: 400
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
/*#__PURE__*/
|
|
28
|
+
React.createElement(Survey, {
|
|
29
|
+
variant: "flat",
|
|
30
|
+
noActions: true,
|
|
31
|
+
defaultAnswers: settings,
|
|
32
|
+
onQuestionChange: function onQuestionChange(q, a, answers) {
|
|
33
|
+
return settings.changeSetting(q, a);
|
|
34
|
+
},
|
|
35
|
+
form: {
|
|
36
|
+
questions: [{
|
|
37
|
+
type: "boolean",
|
|
38
|
+
title: "Show Crosshairs",
|
|
39
|
+
name: "showCrosshairs"
|
|
40
|
+
}, {
|
|
41
|
+
type: "boolean",
|
|
42
|
+
title: "Show Highlight Box",
|
|
43
|
+
name: "showHighlightBox"
|
|
44
|
+
}, {
|
|
45
|
+
type: "boolean",
|
|
46
|
+
title: "WASD Mode",
|
|
47
|
+
name: "wasdMode"
|
|
48
|
+
}, {
|
|
49
|
+
type: "dropdown",
|
|
50
|
+
title: "Video Playback Speed",
|
|
51
|
+
name: "videoPlaybackSpeed",
|
|
52
|
+
defaultValue: "1x",
|
|
53
|
+
choices: ["0.25x", "0.5x", "1x", "2x"]
|
|
54
|
+
}]
|
|
55
|
+
}
|
|
56
|
+
})),
|
|
57
|
+
/*#__PURE__*/
|
|
58
|
+
React.createElement(DialogActions, null,
|
|
59
|
+
/*#__PURE__*/
|
|
60
|
+
React.createElement(Button, {
|
|
61
|
+
onClick: onClose
|
|
62
|
+
}, "Close")))
|
|
63
|
+
);
|
|
51
64
|
};
|
|
52
65
|
export default SettingsDialog;
|
|
@@ -51,10 +51,13 @@ export var SettingsProvider = function SettingsProvider(_ref) {
|
|
|
51
51
|
window.localStorage.setItem("settings_".concat(setting), JSON.stringify(value));
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
return (
|
|
55
|
+
/*#__PURE__*/
|
|
56
|
+
React.createElement(SettingsContext.Provider, {
|
|
57
|
+
value: _objectSpread({}, state, {
|
|
58
|
+
changeSetting: changeSetting
|
|
59
|
+
})
|
|
60
|
+
}, children)
|
|
61
|
+
);
|
|
59
62
|
};
|
|
60
63
|
export default SettingsProvider;
|
|
@@ -27,20 +27,27 @@ var ShortcutField = function ShortcutField(_ref) {
|
|
|
27
27
|
keyName = _ref.keyName,
|
|
28
28
|
onChangeShortcut = _ref.onChangeShortcut;
|
|
29
29
|
var classes = useStyles();
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
return (
|
|
31
|
+
/*#__PURE__*/
|
|
32
|
+
React.createElement(ThemeProvider, {
|
|
33
|
+
theme: theme
|
|
34
|
+
},
|
|
35
|
+
/*#__PURE__*/
|
|
36
|
+
React.createElement("div", {
|
|
37
|
+
className: classes.shortcutKeyFieldWrapper
|
|
38
|
+
},
|
|
39
|
+
/*#__PURE__*/
|
|
40
|
+
React.createElement(TextField, {
|
|
41
|
+
variant: "outlined",
|
|
42
|
+
label: actionName,
|
|
43
|
+
className: classes.shortcutTextfield,
|
|
44
|
+
value: keyName,
|
|
45
|
+
onKeyPress: function onKeyPress(e) {
|
|
46
|
+
onChangeShortcut(actionId, e.key);
|
|
47
|
+
e.stopPropagation();
|
|
48
|
+
}
|
|
49
|
+
})))
|
|
50
|
+
);
|
|
44
51
|
};
|
|
45
52
|
|
|
46
53
|
export default ShortcutField;
|
package/Shortcuts/index.js
CHANGED
|
@@ -118,16 +118,22 @@ export default (function (_ref) {
|
|
|
118
118
|
document.activeElement.blur();
|
|
119
119
|
};
|
|
120
120
|
}, [shortcuts]);
|
|
121
|
-
return
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
121
|
+
return (
|
|
122
|
+
/*#__PURE__*/
|
|
123
|
+
React.createElement(SidebarBoxContainer, {
|
|
124
|
+
title: "Shortcuts"
|
|
125
|
+
}, Object.keys(shortcuts).map(function (actionId, index) {
|
|
126
|
+
if (!shortcuts[actionId]) return null;
|
|
127
|
+
return (
|
|
128
|
+
/*#__PURE__*/
|
|
129
|
+
React.createElement(ShortcutField, {
|
|
130
|
+
key: actionId,
|
|
131
|
+
actionId: actionId,
|
|
132
|
+
actionName: shortcuts[actionId].name,
|
|
133
|
+
keyName: shortcuts[actionId].key || "",
|
|
134
|
+
onChangeShortcut: onChangeShortcut
|
|
135
|
+
})
|
|
136
|
+
);
|
|
137
|
+
}).filter(Boolean))
|
|
138
|
+
);
|
|
133
139
|
});
|
|
@@ -148,8 +148,11 @@ export default (function (_ref3) {
|
|
|
148
148
|
var handlers = useDispatchHotkeyHandlers({
|
|
149
149
|
dispatch: dispatch
|
|
150
150
|
});
|
|
151
|
-
return
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
return (
|
|
152
|
+
/*#__PURE__*/
|
|
153
|
+
React.createElement(HotKeys, {
|
|
154
|
+
allowChanges: true,
|
|
155
|
+
handlers: handlers
|
|
156
|
+
}, children)
|
|
157
|
+
);
|
|
155
158
|
});
|
package/Sidebar/index.js
CHANGED
|
@@ -36,34 +36,51 @@ export var Sidebar = function Sidebar(_ref2) {
|
|
|
36
36
|
onDeleteKeyframe = _ref2.onDeleteKeyframe,
|
|
37
37
|
onShortcutActionDispatched = _ref2.onShortcutActionDispatched;
|
|
38
38
|
if (!regions) regions = emptyArr;
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
39
|
+
return (
|
|
40
|
+
/*#__PURE__*/
|
|
41
|
+
React.createElement(ThemeProvider, {
|
|
42
|
+
theme: theme
|
|
43
|
+
},
|
|
44
|
+
/*#__PURE__*/
|
|
45
|
+
React.createElement(Container, null, debug &&
|
|
46
|
+
/*#__PURE__*/
|
|
47
|
+
React.createElement(DebugBox, {
|
|
48
|
+
state: debug,
|
|
49
|
+
lastAction: debug.lastAction
|
|
50
|
+
}), taskDescription && (taskDescription || "").length > 1 &&
|
|
51
|
+
/*#__PURE__*/
|
|
52
|
+
React.createElement(TaskDescription, {
|
|
53
|
+
description: taskDescription
|
|
54
|
+
}), labelImages &&
|
|
55
|
+
/*#__PURE__*/
|
|
56
|
+
React.createElement(TagsSidebarBox, {
|
|
57
|
+
currentImage: currentImage,
|
|
58
|
+
imageClsList: imageClsList,
|
|
59
|
+
imageTagList: imageTagList,
|
|
60
|
+
onChangeImage: onChangeImage,
|
|
61
|
+
expandedByDefault: true
|
|
62
|
+
}),
|
|
63
|
+
/*#__PURE__*/
|
|
64
|
+
React.createElement(RegionSelector, {
|
|
65
|
+
regions: regions,
|
|
66
|
+
onSelectRegion: onSelectRegion,
|
|
67
|
+
onChangeRegion: onChangeRegion,
|
|
68
|
+
onDeleteRegion: onDeleteRegion
|
|
69
|
+
}), keyframes &&
|
|
70
|
+
/*#__PURE__*/
|
|
71
|
+
React.createElement(KeyframesSelector, {
|
|
72
|
+
currentVideoTime: currentVideoTime,
|
|
73
|
+
keyframes: keyframes,
|
|
74
|
+
onChangeVideoTime: onChangeVideoTime,
|
|
75
|
+
onDeleteKeyframe: onDeleteKeyframe
|
|
76
|
+
}),
|
|
77
|
+
/*#__PURE__*/
|
|
78
|
+
React.createElement(History, {
|
|
79
|
+
history: history,
|
|
80
|
+
onRestoreHistory: function onRestoreHistory() {
|
|
81
|
+
return _onRestoreHistory();
|
|
82
|
+
}
|
|
83
|
+
})))
|
|
84
|
+
);
|
|
68
85
|
};
|
|
69
86
|
export default Sidebar;
|
|
@@ -69,7 +69,9 @@ export var SidebarBoxContainer = function SidebarBoxContainer(_ref) {
|
|
|
69
69
|
_ref$expandedByDefaul = _ref.expandedByDefault,
|
|
70
70
|
expandedByDefault = _ref$expandedByDefaul === void 0 ? false : _ref$expandedByDefaul;
|
|
71
71
|
var classes = useStyles();
|
|
72
|
-
var content =
|
|
72
|
+
var content =
|
|
73
|
+
/*#__PURE__*/
|
|
74
|
+
React.createElement("div", {
|
|
73
75
|
className: classnames(classes.expandedContent, noScroll && "noScroll")
|
|
74
76
|
}, children);
|
|
75
77
|
|
|
@@ -81,12 +83,17 @@ export var SidebarBoxContainer = function SidebarBoxContainer(_ref) {
|
|
|
81
83
|
var toggleExpanded = useEventCallback(function () {
|
|
82
84
|
return changeExpanded(!expanded);
|
|
83
85
|
});
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
return (
|
|
87
|
+
/*#__PURE__*/
|
|
88
|
+
React.createElement(ThemeProvider, {
|
|
89
|
+
theme: theme
|
|
90
|
+
},
|
|
91
|
+
/*#__PURE__*/
|
|
92
|
+
React.createElement(SidebarBox, {
|
|
93
|
+
icon: icon,
|
|
94
|
+
title: title
|
|
95
|
+
}, children))
|
|
96
|
+
);
|
|
90
97
|
};
|
|
91
98
|
export default memo(SidebarBoxContainer, function (prev, next) {
|
|
92
99
|
return prev.title === next.title && prev.children === next.children;
|
package/SmallToolButton/index.js
CHANGED
|
@@ -19,23 +19,30 @@ export var SmallToolButton = function SmallToolButton(_ref) {
|
|
|
19
19
|
|
|
20
20
|
if (!enabledTools.includes(id) && !alwaysShowing) return null;
|
|
21
21
|
selected = selected || selectedTool === id;
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"aria-label": name,
|
|
28
|
-
onClick: function onClick() {
|
|
29
|
-
return onClickTool(id);
|
|
22
|
+
return (
|
|
23
|
+
/*#__PURE__*/
|
|
24
|
+
React.createElement(Tooltip, {
|
|
25
|
+
placement: "right",
|
|
26
|
+
title: name
|
|
30
27
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
/*#__PURE__*/
|
|
29
|
+
React.createElement("div", null,
|
|
30
|
+
/*#__PURE__*/
|
|
31
|
+
React.createElement(IconButton, {
|
|
32
|
+
disabled: !togglable ? selected : undefined,
|
|
33
|
+
"aria-label": name,
|
|
34
|
+
onClick: function onClick() {
|
|
35
|
+
return onClickTool(id);
|
|
36
|
+
},
|
|
37
|
+
size: "small",
|
|
38
|
+
style: {
|
|
39
|
+
width: 50,
|
|
40
|
+
height: 50,
|
|
41
|
+
margin: 1,
|
|
42
|
+
color: selected ? blue[500] : undefined
|
|
43
|
+
}
|
|
44
|
+
}, icon)))
|
|
45
|
+
);
|
|
39
46
|
};
|
|
40
47
|
export default memo(SmallToolButton, function (prevProps, nextProps) {
|
|
41
48
|
return prevProps.togglable === nextProps.togglable && prevProps.selected === nextProps.selected && prevProps.name === nextProps.name && prevProps.id === nextProps.id;
|
package/TagsSidebarBox/index.js
CHANGED
|
@@ -69,36 +69,49 @@ export var TagsSidebarBox = function TagsSidebarBox(_ref) {
|
|
|
69
69
|
});
|
|
70
70
|
}, [tags]);
|
|
71
71
|
if (!currentImage) return null;
|
|
72
|
-
return
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
return (
|
|
73
|
+
/*#__PURE__*/
|
|
74
|
+
React.createElement(SidebarBoxContainer, {
|
|
75
|
+
title: "Image Tags",
|
|
76
|
+
expandedByDefault: true,
|
|
77
|
+
noScroll: true,
|
|
78
|
+
icon:
|
|
79
|
+
/*#__PURE__*/
|
|
80
|
+
React.createElement(StyleIcon, {
|
|
81
|
+
style: {
|
|
82
|
+
color: grey[700]
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
}, imageClsList.length > 0 &&
|
|
86
|
+
/*#__PURE__*/
|
|
87
|
+
React.createElement("div", {
|
|
88
|
+
style: {
|
|
89
|
+
padding: 8
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
/*#__PURE__*/
|
|
93
|
+
React.createElement(Select, {
|
|
94
|
+
placeholder: "Image Classification",
|
|
95
|
+
onChange: onChangeClassification,
|
|
96
|
+
value: selectValue,
|
|
97
|
+
options: memoImgClsList
|
|
98
|
+
})), imageTagList.length > 0 &&
|
|
99
|
+
/*#__PURE__*/
|
|
100
|
+
React.createElement("div", {
|
|
77
101
|
style: {
|
|
78
|
-
|
|
102
|
+
padding: 8,
|
|
103
|
+
paddingTop: 0
|
|
79
104
|
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
})), imageTagList.length > 0 && React.createElement("div", {
|
|
91
|
-
style: {
|
|
92
|
-
padding: 8,
|
|
93
|
-
paddingTop: 0
|
|
94
|
-
}
|
|
95
|
-
}, React.createElement(Select, {
|
|
96
|
-
isMulti: true,
|
|
97
|
-
placeholder: "Image Tags",
|
|
98
|
-
onChange: onChangeTags,
|
|
99
|
-
value: memoCurrentTags,
|
|
100
|
-
options: memoImgTagList
|
|
101
|
-
})));
|
|
105
|
+
},
|
|
106
|
+
/*#__PURE__*/
|
|
107
|
+
React.createElement(Select, {
|
|
108
|
+
isMulti: true,
|
|
109
|
+
placeholder: "Image Tags",
|
|
110
|
+
onChange: onChangeTags,
|
|
111
|
+
value: memoCurrentTags,
|
|
112
|
+
options: memoImgTagList
|
|
113
|
+
})))
|
|
114
|
+
);
|
|
102
115
|
};
|
|
103
116
|
export default memo(TagsSidebarBox, function (prevProps, nextProps) {
|
|
104
117
|
return prevProps.currentImage.cls === nextProps.currentImage.cls && prevProps.currentImage.tags === nextProps.currentImage.tags && prevProps.imageClsList === nextProps.imageClsList && prevProps.imageTagList === nextProps.imageTagList;
|
|
@@ -41,18 +41,29 @@ var MarkdownContainer = styled("div")(function (_ref) {
|
|
|
41
41
|
});
|
|
42
42
|
export var TaskDescriptionSidebarBox = function TaskDescriptionSidebarBox(_ref2) {
|
|
43
43
|
var description = _ref2.description;
|
|
44
|
-
return
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
return (
|
|
45
|
+
/*#__PURE__*/
|
|
46
|
+
React.createElement(ThemeProvider, {
|
|
47
|
+
theme: theme
|
|
48
|
+
},
|
|
49
|
+
/*#__PURE__*/
|
|
50
|
+
React.createElement(SidebarBoxContainer, {
|
|
51
|
+
title: "Task Description",
|
|
52
|
+
icon:
|
|
53
|
+
/*#__PURE__*/
|
|
54
|
+
React.createElement(DescriptionIcon, {
|
|
55
|
+
style: {
|
|
56
|
+
color: grey[700]
|
|
57
|
+
}
|
|
58
|
+
}),
|
|
59
|
+
expandedByDefault: description && description !== "" ? false : true
|
|
60
|
+
},
|
|
61
|
+
/*#__PURE__*/
|
|
62
|
+
React.createElement(MarkdownContainer, null,
|
|
63
|
+
/*#__PURE__*/
|
|
64
|
+
React.createElement(Markdown, {
|
|
65
|
+
source: description
|
|
66
|
+
}))))
|
|
67
|
+
);
|
|
57
68
|
};
|
|
58
69
|
export default memo(TaskDescriptionSidebarBox);
|
package/Theme/index.js
CHANGED
|
@@ -23,8 +23,13 @@ var theme = createTheme({
|
|
|
23
23
|
export var Theme = function Theme(_ref) {
|
|
24
24
|
var children = _ref.children;
|
|
25
25
|
var classes = useStyles();
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
return (
|
|
27
|
+
/*#__PURE__*/
|
|
28
|
+
React.createElement(ThemeProvider, {
|
|
29
|
+
theme: theme
|
|
30
|
+
},
|
|
31
|
+
/*#__PURE__*/
|
|
32
|
+
React.createElement("div", null, children))
|
|
33
|
+
);
|
|
29
34
|
};
|
|
30
35
|
export default Theme;
|
|
@@ -131,21 +131,34 @@ 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
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
134
|
+
if (!videoSrc && !imageSrc) return (
|
|
135
|
+
/*#__PURE__*/
|
|
136
|
+
React.createElement(Error, null, "No imageSrc or videoSrc provided")
|
|
137
|
+
);
|
|
138
|
+
if (error) return (
|
|
139
|
+
/*#__PURE__*/
|
|
140
|
+
React.createElement(Error, null, error)
|
|
141
|
+
);
|
|
142
|
+
return (
|
|
143
|
+
/*#__PURE__*/
|
|
144
|
+
React.createElement(ThemeProvider, {
|
|
145
|
+
theme: theme
|
|
146
|
+
}, imageSrc && videoTime === undefined ?
|
|
147
|
+
/*#__PURE__*/
|
|
148
|
+
React.createElement(StyledImage, Object.assign({}, mouseEvents, {
|
|
149
|
+
src: imageSrc,
|
|
150
|
+
ref: imageRef,
|
|
151
|
+
style: stylePosition,
|
|
152
|
+
onLoad: onImageLoaded,
|
|
153
|
+
onError: onImageError,
|
|
154
|
+
crossOrigin: useCrossOrigin ? "anonymous" : undefined
|
|
155
|
+
})) :
|
|
156
|
+
/*#__PURE__*/
|
|
157
|
+
React.createElement(Video, Object.assign({}, mouseEvents, {
|
|
158
|
+
ref: videoRef,
|
|
159
|
+
style: stylePosition,
|
|
160
|
+
onLoadedMetadata: onLoadedVideoMetadata,
|
|
161
|
+
src: videoSrc || imageSrc
|
|
162
|
+
})))
|
|
163
|
+
);
|
|
151
164
|
});
|
package/package.json
CHANGED
|
@@ -214,9 +214,9 @@ var AVAILABLE_DICTIONARIES = {
|
|
|
214
214
|
'pt_BR': 'pt_BR',
|
|
215
215
|
'pt': 'pt_BR',
|
|
216
216
|
'mk-MK': 'mk_MK',
|
|
217
|
-
'mk': 'mk_MK'
|
|
217
|
+
'mk': 'mk_MK'
|
|
218
|
+
}; // Spellcheck language setting (can be set by user)
|
|
218
219
|
|
|
219
|
-
};
|
|
220
220
|
var spellcheckLanguageSetting = null; // Spellcheck enabled/disabled flag
|
|
221
221
|
// Defaults to false (disabled) for performance. Enable via REACT_APP_SPELLCHECK_ENABLED=true or setSpellcheckEnabled()
|
|
222
222
|
|