@searpent/react-image-annotate 2.3.0-cand → 2.3.0-cand-3

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 (64) hide show
  1. package/Annotator/examplePhotos.js +29 -29
  2. package/Annotator/examplePhotos_repr.js +28 -28
  3. package/Annotator/index.js +21 -15
  4. package/Annotator/index.story_bugdemo_15_1.js +51 -46
  5. package/Annotator/index.story_repr.js +64 -51
  6. package/Annotator/reducers/combine-reducers.js +3 -18
  7. package/Annotator/reducers/convert-expanding-line-to-polygon.js +16 -15
  8. package/Annotator/reducers/get-implied-video-regions.js +30 -18
  9. package/ClassSelectionMenu/index.js +8 -8
  10. package/Crosshairs/index.js +2 -2
  11. package/DebugSidebarBox/index.js +4 -4
  12. package/DemoSite/Editor.js +15 -15
  13. package/DemoSite/ErrorBoundaryDialog.js +5 -3
  14. package/DemoSite/index.js +3 -3
  15. package/Editor/annotation-plugin/annotation.js +3 -1
  16. package/Editor/editor.css +2 -4
  17. package/Editor/index.js +44 -13
  18. package/Editor/index_bugdemo_15_1.js +17 -13
  19. package/Editor/readOnly.js +403 -47
  20. package/Errorer/index.js +2 -2
  21. package/FullImageSegmentationAnnotator/index.js +1 -1
  22. package/GroupSelectorSidebarBox/index.js +7 -7
  23. package/GroupsEditorSidebarBox/index.js +11 -11
  24. package/HelpSidebarBox/index.js +4 -4
  25. package/HighlightBox/index.js +3 -3
  26. package/HistorySidebarBox/index.js +8 -8
  27. package/ImageCanvas/index.js +16 -16
  28. package/ImageMask/index.js +1 -1
  29. package/ImageSelectorSidebarBox/index.js +7 -7
  30. package/KeyframeTimeline/index.js +14 -30
  31. package/KeyframesSelectorSidebarBox/index.js +8 -8
  32. package/LandingPage/index.js +12 -12
  33. package/Locker/index.js +2 -2
  34. package/MainLayout/RightSidebarItemsWrapper.js +1 -1
  35. package/MainLayout/icon-dictionary.js +11 -11
  36. package/MainLayout/index.js +23 -25
  37. package/MainLayout/index_bugdemo_15_1.js +23 -25
  38. package/MetadataEditorSidebarBox/index.js +18 -18
  39. package/MetadataEditorSidebarBox/index_14_01_25.js +18 -18
  40. package/MetadataEditorSidebarBox/index_repr.js +21 -21
  41. package/PageSelector/index.js +21 -21
  42. package/PointDistances/index.js +4 -4
  43. package/PreventScrollToParents/index.js +3 -3
  44. package/RegionLabel/index.js +24 -24
  45. package/RegionSelectAndTransformBoxes/index.js +8 -8
  46. package/RegionSelectorSidebarBox/index.js +33 -33
  47. package/RegionShapes/index.js +22 -22
  48. package/RegionTags/index.js +6 -6
  49. package/SettingsDialog/index.js +4 -4
  50. package/SettingsProvider/index.js +1 -1
  51. package/Shortcuts/ShortcutField.js +3 -3
  52. package/Shortcuts/index.js +2 -2
  53. package/ShortcutsManager/index.js +9 -9
  54. package/Sidebar/index.js +7 -7
  55. package/SidebarBoxContainer/index.js +3 -3
  56. package/SmallToolButton/index.js +2 -2
  57. package/TagsSidebarBox/index.js +6 -6
  58. package/TaskDescriptionSidebarBox/index.js +4 -4
  59. package/Theme/index.js +2 -2
  60. package/VideoOrImageCanvasBackground/index.js +5 -5
  61. package/package.json +8 -2
  62. package/utils/blocks-to-article.js +3 -3
  63. package/utils/get-landmarks-with-transform.js +15 -13
  64. package/utils/spellcheck-nspell.js +143 -67
@@ -1,121 +1,477 @@
1
- import React from 'react';
1
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
3
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
4
+ import React, { useEffect, useRef, useState } from 'react';
5
+ import { highlightMisspellingsInHtml } from '../utils/spellcheck-nspell';
2
6
 
3
7
  function ReadOnly(_ref) {
4
8
  var article = _ref.article;
5
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h1", {
9
+ var containerRef = useRef(null); // Warm up dictionary on component mount
10
+
11
+ useEffect(function () {
12
+ var run =
13
+ /*#__PURE__*/
14
+ function () {
15
+ var _ref2 = _asyncToGenerator(
16
+ /*#__PURE__*/
17
+ _regeneratorRuntime.mark(function _callee() {
18
+ var combinedHtml;
19
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
20
+ while (1) {
21
+ switch (_context.prev = _context.next) {
22
+ case 0:
23
+ combinedHtml = [article.title, article.subtitle, article.text, article.author, article.about_author, article.appendix, article.photo_author, article.photo_caption, article.advertisement, article.other_graphics, article.unknown, article.table, article.section, article.continuation_ref, article.cover_clip, article.page_id, article.continuation_mark, article.follow_up_mark, article.article_termination_mark, article.page_splitting_stripe, article.column_id_stripe, article.prev_page_reference, article.section_subcategory].filter(Boolean).join(' '); // warm up dictionary once with auto-detection
24
+
25
+ _context.next = 3;
26
+ return highlightMisspellingsInHtml(combinedHtml, 'auto');
27
+
28
+ case 3:
29
+ case "end":
30
+ return _context.stop();
31
+ }
32
+ }
33
+ }, _callee);
34
+ }));
35
+
36
+ return function run() {
37
+ return _ref2.apply(this, arguments);
38
+ };
39
+ }();
40
+
41
+ run();
42
+ }, [article]);
43
+
44
+ var _useState = useState(article.title),
45
+ _useState2 = _slicedToArray(_useState, 2),
46
+ titleHTML = _useState2[0],
47
+ setTitleHTML = _useState2[1];
48
+
49
+ var _useState3 = useState(article.subtitle),
50
+ _useState4 = _slicedToArray(_useState3, 2),
51
+ subtitleHTML = _useState4[0],
52
+ setSubtitleHTML = _useState4[1];
53
+
54
+ var _useState5 = useState(article.text),
55
+ _useState6 = _slicedToArray(_useState5, 2),
56
+ textHTML = _useState6[0],
57
+ setTextHTML = _useState6[1];
58
+
59
+ var _useState7 = useState(article.author),
60
+ _useState8 = _slicedToArray(_useState7, 2),
61
+ authorHTML = _useState8[0],
62
+ setAuthorHTML = _useState8[1];
63
+
64
+ var _useState9 = useState(article.about_author),
65
+ _useState10 = _slicedToArray(_useState9, 2),
66
+ aboutHTML = _useState10[0],
67
+ setAboutHTML = _useState10[1];
68
+
69
+ var _useState11 = useState(article.appendix),
70
+ _useState12 = _slicedToArray(_useState11, 2),
71
+ appendixHTML = _useState12[0],
72
+ setAppendixHTML = _useState12[1];
73
+
74
+ var _useState13 = useState(article.photo_author),
75
+ _useState14 = _slicedToArray(_useState13, 2),
76
+ photoAuthorHTML = _useState14[0],
77
+ setPhotoAuthorHTML = _useState14[1];
78
+
79
+ var _useState15 = useState(article.photo_caption),
80
+ _useState16 = _slicedToArray(_useState15, 2),
81
+ photoCaptionHTML = _useState16[0],
82
+ setPhotoCaptionHTML = _useState16[1];
83
+
84
+ var _useState17 = useState(article.advertisement),
85
+ _useState18 = _slicedToArray(_useState17, 2),
86
+ adHTML = _useState18[0],
87
+ setAdHTML = _useState18[1];
88
+
89
+ var _useState19 = useState(article.other_graphics),
90
+ _useState20 = _slicedToArray(_useState19, 2),
91
+ otherGraphicsHTML = _useState20[0],
92
+ setOtherGraphicsHTML = _useState20[1];
93
+
94
+ var _useState21 = useState(article.unknown),
95
+ _useState22 = _slicedToArray(_useState21, 2),
96
+ unknownHTML = _useState22[0],
97
+ setUnknownHTML = _useState22[1];
98
+
99
+ var _useState23 = useState(article.table),
100
+ _useState24 = _slicedToArray(_useState23, 2),
101
+ tableHTML = _useState24[0],
102
+ setTableHTML = _useState24[1];
103
+
104
+ var _useState25 = useState(article.section),
105
+ _useState26 = _slicedToArray(_useState25, 2),
106
+ sectionHTML = _useState26[0],
107
+ setSectionHTML = _useState26[1];
108
+
109
+ var _useState27 = useState(article.continuation_ref),
110
+ _useState28 = _slicedToArray(_useState27, 2),
111
+ continuationRefHTML = _useState28[0],
112
+ setContinuationRefHTML = _useState28[1];
113
+
114
+ var _useState29 = useState(article.cover_clip),
115
+ _useState30 = _slicedToArray(_useState29, 2),
116
+ coverClipHTML = _useState30[0],
117
+ setCoverClipHTML = _useState30[1];
118
+
119
+ var _useState31 = useState(article.page_id),
120
+ _useState32 = _slicedToArray(_useState31, 2),
121
+ pageIdHTML = _useState32[0],
122
+ setPageIdHTML = _useState32[1];
123
+
124
+ var _useState33 = useState(article.continuation_mark),
125
+ _useState34 = _slicedToArray(_useState33, 2),
126
+ continuationMarkHTML = _useState34[0],
127
+ setContinuationMarkHTML = _useState34[1];
128
+
129
+ var _useState35 = useState(article.follow_up_mark),
130
+ _useState36 = _slicedToArray(_useState35, 2),
131
+ followUpMarkHTML = _useState36[0],
132
+ setFollowUpMarkHTML = _useState36[1];
133
+
134
+ var _useState37 = useState(article.article_termination_mark),
135
+ _useState38 = _slicedToArray(_useState37, 2),
136
+ articleTerminationMarkHTML = _useState38[0],
137
+ setArticleTerminationMarkHTML = _useState38[1];
138
+
139
+ var _useState39 = useState(article.page_splitting_stripe),
140
+ _useState40 = _slicedToArray(_useState39, 2),
141
+ pageSplittingStripeHTML = _useState40[0],
142
+ setPageSplittingStripeHTML = _useState40[1];
143
+
144
+ var _useState41 = useState(article.column_id_stripe),
145
+ _useState42 = _slicedToArray(_useState41, 2),
146
+ columnIdStripeHTML = _useState42[0],
147
+ setColumnIdStripeHTML = _useState42[1];
148
+
149
+ var _useState43 = useState(article.prev_page_reference),
150
+ _useState44 = _slicedToArray(_useState43, 2),
151
+ prevPageReferenceHTML = _useState44[0],
152
+ setPrevPageReferenceHTML = _useState44[1];
153
+
154
+ var _useState45 = useState(article.section_subcategory),
155
+ _useState46 = _slicedToArray(_useState45, 2),
156
+ sectionSubcategoryHTML = _useState46[0],
157
+ setSectionSubcategoryHTML = _useState46[1];
158
+
159
+ useEffect(function () {
160
+ var cancelled = false;
161
+
162
+ var apply =
163
+ /*#__PURE__*/
164
+ function () {
165
+ var _ref3 = _asyncToGenerator(
166
+ /*#__PURE__*/
167
+ _regeneratorRuntime.mark(function _callee2() {
168
+ var h1, h2, t, a, ab, ap, pa, pc, adv, og, unk, tbl, sec, contRef, coverClip, pageId, contMark, followUp, articleTerm, pageStripe, columnStripe, prevPageRef, sectionSubcat;
169
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
170
+ while (1) {
171
+ switch (_context2.prev = _context2.next) {
172
+ case 0:
173
+ _context2.prev = 0;
174
+ _context2.next = 3;
175
+ return highlightMisspellingsInHtml(article.title || '', 'auto');
176
+
177
+ case 3:
178
+ h1 = _context2.sent;
179
+ _context2.next = 6;
180
+ return highlightMisspellingsInHtml(article.subtitle || '', 'auto');
181
+
182
+ case 6:
183
+ h2 = _context2.sent;
184
+ _context2.next = 9;
185
+ return highlightMisspellingsInHtml(article.text || '', 'auto');
186
+
187
+ case 9:
188
+ t = _context2.sent;
189
+ _context2.next = 12;
190
+ return highlightMisspellingsInHtml(article.author || '', 'auto');
191
+
192
+ case 12:
193
+ a = _context2.sent;
194
+ _context2.next = 15;
195
+ return highlightMisspellingsInHtml(article.about_author || '', 'auto');
196
+
197
+ case 15:
198
+ ab = _context2.sent;
199
+ _context2.next = 18;
200
+ return highlightMisspellingsInHtml(article.appendix || '', 'auto');
201
+
202
+ case 18:
203
+ ap = _context2.sent;
204
+ _context2.next = 21;
205
+ return highlightMisspellingsInHtml(article.photo_author || '', 'auto');
206
+
207
+ case 21:
208
+ pa = _context2.sent;
209
+ _context2.next = 24;
210
+ return highlightMisspellingsInHtml(article.photo_caption || '', 'auto');
211
+
212
+ case 24:
213
+ pc = _context2.sent;
214
+ _context2.next = 27;
215
+ return highlightMisspellingsInHtml(article.advertisement || '', 'auto');
216
+
217
+ case 27:
218
+ adv = _context2.sent;
219
+ _context2.next = 30;
220
+ return highlightMisspellingsInHtml(article.other_graphics || '', 'auto');
221
+
222
+ case 30:
223
+ og = _context2.sent;
224
+ _context2.next = 33;
225
+ return highlightMisspellingsInHtml(article.unknown || '', 'auto');
226
+
227
+ case 33:
228
+ unk = _context2.sent;
229
+ _context2.next = 36;
230
+ return highlightMisspellingsInHtml(article.table || '', 'auto');
231
+
232
+ case 36:
233
+ tbl = _context2.sent;
234
+ _context2.next = 39;
235
+ return highlightMisspellingsInHtml(article.section || '', 'auto');
236
+
237
+ case 39:
238
+ sec = _context2.sent;
239
+ _context2.next = 42;
240
+ return highlightMisspellingsInHtml(article.continuation_ref || '', 'auto');
241
+
242
+ case 42:
243
+ contRef = _context2.sent;
244
+ _context2.next = 45;
245
+ return highlightMisspellingsInHtml(article.cover_clip || '', 'auto');
246
+
247
+ case 45:
248
+ coverClip = _context2.sent;
249
+ _context2.next = 48;
250
+ return highlightMisspellingsInHtml(article.page_id || '', 'auto');
251
+
252
+ case 48:
253
+ pageId = _context2.sent;
254
+ _context2.next = 51;
255
+ return highlightMisspellingsInHtml(article.continuation_mark || '', 'auto');
256
+
257
+ case 51:
258
+ contMark = _context2.sent;
259
+ _context2.next = 54;
260
+ return highlightMisspellingsInHtml(article.follow_up_mark || '', 'auto');
261
+
262
+ case 54:
263
+ followUp = _context2.sent;
264
+ _context2.next = 57;
265
+ return highlightMisspellingsInHtml(article.article_termination_mark || '', 'auto');
266
+
267
+ case 57:
268
+ articleTerm = _context2.sent;
269
+ _context2.next = 60;
270
+ return highlightMisspellingsInHtml(article.page_splitting_stripe || '', 'auto');
271
+
272
+ case 60:
273
+ pageStripe = _context2.sent;
274
+ _context2.next = 63;
275
+ return highlightMisspellingsInHtml(article.column_id_stripe || '', 'auto');
276
+
277
+ case 63:
278
+ columnStripe = _context2.sent;
279
+ _context2.next = 66;
280
+ return highlightMisspellingsInHtml(article.prev_page_reference || '', 'auto');
281
+
282
+ case 66:
283
+ prevPageRef = _context2.sent;
284
+ _context2.next = 69;
285
+ return highlightMisspellingsInHtml(article.section_subcategory || '', 'auto');
286
+
287
+ case 69:
288
+ sectionSubcat = _context2.sent;
289
+
290
+ if (!cancelled) {
291
+ _context2.next = 72;
292
+ break;
293
+ }
294
+
295
+ return _context2.abrupt("return");
296
+
297
+ case 72:
298
+ setTitleHTML(h1);
299
+ setSubtitleHTML(h2);
300
+ setTextHTML(t);
301
+ setAuthorHTML(a);
302
+ setAboutHTML(ab);
303
+ setAppendixHTML(ap);
304
+ setPhotoAuthorHTML(pa);
305
+ setPhotoCaptionHTML(pc);
306
+ setAdHTML(adv);
307
+ setOtherGraphicsHTML(og);
308
+ setUnknownHTML(unk);
309
+ setTableHTML(tbl);
310
+ setSectionHTML(sec);
311
+ setContinuationRefHTML(contRef);
312
+ setCoverClipHTML(coverClip);
313
+ setPageIdHTML(pageId);
314
+ setContinuationMarkHTML(contMark);
315
+ setFollowUpMarkHTML(followUp);
316
+ setArticleTerminationMarkHTML(articleTerm);
317
+ setPageSplittingStripeHTML(pageStripe);
318
+ setColumnIdStripeHTML(columnStripe);
319
+ setPrevPageReferenceHTML(prevPageRef);
320
+ setSectionSubcategoryHTML(sectionSubcat);
321
+ _context2.next = 100;
322
+ break;
323
+
324
+ case 97:
325
+ _context2.prev = 97;
326
+ _context2.t0 = _context2["catch"](0);
327
+
328
+ if (!cancelled) {
329
+ console.warn('Spellcheck error:', _context2.t0);
330
+ }
331
+
332
+ case 100:
333
+ case "end":
334
+ return _context2.stop();
335
+ }
336
+ }
337
+ }, _callee2, null, [[0, 97]]);
338
+ }));
339
+
340
+ return function apply() {
341
+ return _ref3.apply(this, arguments);
342
+ };
343
+ }();
344
+
345
+ apply();
346
+ return function () {
347
+ cancelled = true;
348
+ };
349
+ }, [article]);
350
+ return React.createElement("div", {
351
+ ref: containerRef,
352
+ contentEditable: false,
353
+ suppressContentEditableWarning: true,
354
+ spellCheck: false,
355
+ lang: "en-US",
356
+ style: {
357
+ outline: 'none',
358
+ userSelect: 'text',
359
+ minHeight: '100px'
360
+ }
361
+ }, React.createElement("style", null, ".spell-error { text-decoration: wavy underline red; text-decoration-skip-ink: auto; }"), React.createElement("h1", {
6
362
  className: "ro-title",
7
363
  dangerouslySetInnerHTML: {
8
- __html: article.title
364
+ __html: titleHTML
9
365
  }
10
- }), /*#__PURE__*/React.createElement("h2", {
366
+ }), React.createElement("h2", {
11
367
  className: "ro-subtitle",
12
368
  dangerouslySetInnerHTML: {
13
- __html: article.subtitle
369
+ __html: subtitleHTML
14
370
  }
15
- }), /*#__PURE__*/React.createElement("p", {
371
+ }), React.createElement("p", {
16
372
  className: "ro-text",
17
373
  dangerouslySetInnerHTML: {
18
- __html: article.text
374
+ __html: textHTML
19
375
  }
20
- }), /*#__PURE__*/React.createElement("p", {
376
+ }), React.createElement("p", {
21
377
  className: "ro-author",
22
378
  dangerouslySetInnerHTML: {
23
- __html: article.author
379
+ __html: authorHTML
24
380
  }
25
- }), /*#__PURE__*/React.createElement("p", {
381
+ }), React.createElement("p", {
26
382
  className: "ro-about-author",
27
383
  dangerouslySetInnerHTML: {
28
- __html: article.about_author
384
+ __html: aboutHTML
29
385
  }
30
- }), /*#__PURE__*/React.createElement("p", {
386
+ }), React.createElement("p", {
31
387
  className: "ro-appendix",
32
388
  dangerouslySetInnerHTML: {
33
- __html: article.appendix
389
+ __html: appendixHTML
34
390
  }
35
- }), /*#__PURE__*/React.createElement("p", {
391
+ }), React.createElement("p", {
36
392
  className: "ro-photo-author",
37
393
  dangerouslySetInnerHTML: {
38
- __html: article.photo_author
394
+ __html: photoAuthorHTML
39
395
  }
40
- }), /*#__PURE__*/React.createElement("p", {
396
+ }), React.createElement("p", {
41
397
  className: "ro-photo-caption",
42
398
  dangerouslySetInnerHTML: {
43
- __html: article.photo_caption
399
+ __html: photoCaptionHTML
44
400
  }
45
- }), /*#__PURE__*/React.createElement("p", {
401
+ }), React.createElement("p", {
46
402
  className: "ro-advertisment",
47
403
  dangerouslySetInnerHTML: {
48
- __html: article.advertisement
404
+ __html: adHTML
49
405
  }
50
- }), /*#__PURE__*/React.createElement("p", {
406
+ }), React.createElement("p", {
51
407
  className: "ro-other-graphics",
52
408
  dangerouslySetInnerHTML: {
53
- __html: article.other_graphics
409
+ __html: otherGraphicsHTML
54
410
  }
55
- }), /*#__PURE__*/React.createElement("p", {
411
+ }), React.createElement("p", {
56
412
  className: "ro-unknown",
57
413
  dangerouslySetInnerHTML: {
58
- __html: article.unknown
414
+ __html: unknownHTML
59
415
  }
60
- }), /*#__PURE__*/React.createElement("p", {
416
+ }), React.createElement("p", {
61
417
  className: "ro-table",
62
418
  dangerouslySetInnerHTML: {
63
- __html: article.table
419
+ __html: tableHTML
64
420
  }
65
- }), /*#__PURE__*/React.createElement("p", {
421
+ }), React.createElement("p", {
66
422
  className: "ro-section",
67
423
  dangerouslySetInnerHTML: {
68
- __html: article.section
424
+ __html: sectionHTML
69
425
  }
70
- }), /*#__PURE__*/React.createElement("p", {
426
+ }), React.createElement("p", {
71
427
  className: "ro-continuation_ref",
72
428
  dangerouslySetInnerHTML: {
73
- __html: article.continuation_ref
429
+ __html: continuationRefHTML
74
430
  }
75
- }), /*#__PURE__*/React.createElement("p", {
431
+ }), React.createElement("p", {
76
432
  className: "ro-cover_clip",
77
433
  dangerouslySetInnerHTML: {
78
- __html: article.cover_clip
434
+ __html: coverClipHTML
79
435
  }
80
- }), /*#__PURE__*/React.createElement("p", {
436
+ }), React.createElement("p", {
81
437
  className: "ro-page_id",
82
438
  dangerouslySetInnerHTML: {
83
- __html: article.page_id
439
+ __html: pageIdHTML
84
440
  }
85
- }), /*#__PURE__*/React.createElement("p", {
441
+ }), React.createElement("p", {
86
442
  className: "ro-continuation_mark",
87
443
  dangerouslySetInnerHTML: {
88
- __html: article.continuation_mark
444
+ __html: continuationMarkHTML
89
445
  }
90
- }), /*#__PURE__*/React.createElement("p", {
446
+ }), React.createElement("p", {
91
447
  className: "ro-follow_up_mark",
92
448
  dangerouslySetInnerHTML: {
93
- __html: article.follow_up_mark
449
+ __html: followUpMarkHTML
94
450
  }
95
- }), /*#__PURE__*/React.createElement("p", {
451
+ }), React.createElement("p", {
96
452
  className: "ro-article_termination_mark",
97
453
  dangerouslySetInnerHTML: {
98
- __html: article.article_termination_mark
454
+ __html: articleTerminationMarkHTML
99
455
  }
100
- }), /*#__PURE__*/React.createElement("p", {
456
+ }), React.createElement("p", {
101
457
  className: "ro-page_splitting_stripe",
102
458
  dangerouslySetInnerHTML: {
103
- __html: article.page_splitting_stripe
459
+ __html: pageSplittingStripeHTML
104
460
  }
105
- }), /*#__PURE__*/React.createElement("p", {
461
+ }), React.createElement("p", {
106
462
  className: "ro-column_id_stripe",
107
463
  dangerouslySetInnerHTML: {
108
- __html: article.column_id_stripe
464
+ __html: columnIdStripeHTML
109
465
  }
110
- }), /*#__PURE__*/React.createElement("p", {
466
+ }), React.createElement("p", {
111
467
  className: "ro-prev_page_reference",
112
468
  dangerouslySetInnerHTML: {
113
- __html: article.prev_page_reference
469
+ __html: prevPageReferenceHTML
114
470
  }
115
- }), /*#__PURE__*/React.createElement("p", {
471
+ }), React.createElement("p", {
116
472
  className: "ro-section_subcategory",
117
473
  dangerouslySetInnerHTML: {
118
- __html: article.section_subcategory
474
+ __html: sectionSubcategoryHTML
119
475
  }
120
476
  }));
121
477
  }
package/Errorer/index.js CHANGED
@@ -3,9 +3,9 @@ import ErrorIcon from '@mui/icons-material/Error';
3
3
  import './errorer.css';
4
4
 
5
5
  function Errorer() {
6
- return /*#__PURE__*/React.createElement("div", {
6
+ return React.createElement("div", {
7
7
  className: "errorer"
8
- }, /*#__PURE__*/React.createElement(ErrorIcon, null));
8
+ }, React.createElement(ErrorIcon, null));
9
9
  }
10
10
 
11
11
  export default Errorer;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import Annotator from "../Annotator";
3
3
  export default (function (props) {
4
- return /*#__PURE__*/React.createElement(Annotator, Object.assign({}, props, {
4
+ return React.createElement(Annotator, Object.assign({}, props, {
5
5
  fullImageSegmentationMode: true
6
6
  }));
7
7
  });
@@ -25,22 +25,22 @@ export var GroupSelectorSidebarBox = function GroupSelectorSidebarBox(_ref) {
25
25
  onSelect = _ref.onSelect,
26
26
  selectedGroupId = _ref.selectedGroupId;
27
27
  var classes = useStyles();
28
- return /*#__PURE__*/React.createElement(ThemeProvider, {
28
+ return React.createElement(ThemeProvider, {
29
29
  theme: theme
30
- }, /*#__PURE__*/React.createElement(SidebarBoxContainer, {
30
+ }, React.createElement(SidebarBoxContainer, {
31
31
  title: title || '',
32
32
  subTitle: subtitle || '',
33
- icon: /*#__PURE__*/React.createElement(CollectionsIcon, {
33
+ icon: React.createElement(CollectionsIcon, {
34
34
  style: {
35
35
  color: grey[700]
36
36
  }
37
37
  })
38
- }, /*#__PURE__*/React.createElement(List, null, groups.map(function (_ref2, i) {
38
+ }, React.createElement(List, null, groups.map(function (_ref2, i) {
39
39
  var id = _ref2.id,
40
40
  groupTitle = _ref2.title,
41
41
  groupSubtitle = _ref2.subtitle,
42
42
  color = _ref2.color;
43
- return /*#__PURE__*/React.createElement(ListItem, {
43
+ return React.createElement(ListItem, {
44
44
  button: true,
45
45
  onClick: function onClick() {
46
46
  return onSelect(id);
@@ -50,8 +50,8 @@ export var GroupSelectorSidebarBox = function GroupSelectorSidebarBox(_ref) {
50
50
  style: {
51
51
  backgroundColor: id === selectedGroupId ? '#bbdefb' : null
52
52
  }
53
- }, /*#__PURE__*/React.createElement(ListItemText, {
54
- primary: /*#__PURE__*/React.createElement("strong", {
53
+ }, React.createElement(ListItemText, {
54
+ primary: React.createElement("strong", {
55
55
  style: {
56
56
  color: color
57
57
  }
@@ -23,13 +23,13 @@ var GroupItemDiv = styled("div")(function (_ref) {
23
23
 
24
24
  var GroupItem = function GroupItem(_ref2) {
25
25
  var group = _ref2.group;
26
- return /*#__PURE__*/React.createElement(GroupItemDiv, null, uuidToHash(group.id));
26
+ return React.createElement(GroupItemDiv, null, uuidToHash(group.id));
27
27
  };
28
28
 
29
29
  var GroupList = function GroupList(_ref3) {
30
30
  var groups = _ref3.groups;
31
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h2", null, "Groups"), groups.map(function (g, idx) {
32
- return /*#__PURE__*/React.createElement(GroupItem, {
31
+ return React.createElement("div", null, React.createElement("h2", null, "Groups"), groups.map(function (g, idx) {
32
+ return React.createElement(GroupItem, {
33
33
  key: "".concat(g, "-").concat(idx),
34
34
  group: g
35
35
  });
@@ -62,13 +62,13 @@ var AddGroupFrom = function AddGroupFrom(_ref5) {
62
62
  setValue('');
63
63
  };
64
64
 
65
- return /*#__PURE__*/React.createElement(AddGroupFormDiv, null, /*#__PURE__*/React.createElement("form", {
65
+ return React.createElement(AddGroupFormDiv, null, React.createElement("form", {
66
66
  onSubmit: handleSubmit,
67
67
  style: {
68
68
  display: "flex",
69
69
  paddingRight: "6px"
70
70
  }
71
- }, /*#__PURE__*/React.createElement("input", {
71
+ }, React.createElement("input", {
72
72
  type: "text",
73
73
  value: value,
74
74
  name: "new-group",
@@ -77,7 +77,7 @@ var AddGroupFrom = function AddGroupFrom(_ref5) {
77
77
  style: {
78
78
  marginRight: "1rem"
79
79
  }
80
- }), /*#__PURE__*/React.createElement("input", {
80
+ }), React.createElement("input", {
81
81
  type: "submit",
82
82
  value: "Create group"
83
83
  })));
@@ -119,19 +119,19 @@ var DivContainer = styled("div")(function (_ref6) {
119
119
  export var GroupsEditorSidebarBox = function GroupsEditorSidebarBox(_ref7) {
120
120
  var groups = _ref7.groups,
121
121
  onAddGroup = _ref7.onAddGroup;
122
- return /*#__PURE__*/React.createElement(ThemeProvider, {
122
+ return React.createElement(ThemeProvider, {
123
123
  theme: theme
124
- }, /*#__PURE__*/React.createElement(SidebarBoxContainer, {
124
+ }, React.createElement(SidebarBoxContainer, {
125
125
  title: "Groups",
126
- icon: /*#__PURE__*/React.createElement(FilterNoneIcon, {
126
+ icon: React.createElement(FilterNoneIcon, {
127
127
  style: {
128
128
  color: grey[700]
129
129
  }
130
130
  }),
131
131
  expandedByDefault: true
132
- }, /*#__PURE__*/React.createElement(DivContainer, null, /*#__PURE__*/React.createElement("h2", null, "Add new group"), /*#__PURE__*/React.createElement(AddGroupFrom, {
132
+ }, React.createElement(DivContainer, null, React.createElement("h2", null, "Add new group"), React.createElement(AddGroupFrom, {
133
133
  onAddGroup: onAddGroup
134
- }), /*#__PURE__*/React.createElement(GroupList, {
134
+ }), React.createElement(GroupList, {
135
135
  groups: groups
136
136
  }))));
137
137
  };
@@ -41,17 +41,17 @@ var MarkdownContainer = styled("div")(function (_ref) {
41
41
  });
42
42
  export var HelpSidebarBox = function HelpSidebarBox(_ref2) {
43
43
  var help = _ref2.help;
44
- return /*#__PURE__*/React.createElement(ThemeProvider, {
44
+ return React.createElement(ThemeProvider, {
45
45
  theme: theme
46
- }, /*#__PURE__*/React.createElement(SidebarBoxContainer, {
46
+ }, React.createElement(SidebarBoxContainer, {
47
47
  title: "Help",
48
- icon: /*#__PURE__*/React.createElement(HelpIcon, {
48
+ icon: React.createElement(HelpIcon, {
49
49
  style: {
50
50
  color: grey[700]
51
51
  }
52
52
  }),
53
53
  expandedByDefault: help && help !== "" ? false : true
54
- }, /*#__PURE__*/React.createElement(MarkdownContainer, null, /*#__PURE__*/React.createElement(Markdown, {
54
+ }, React.createElement(MarkdownContainer, null, React.createElement(Markdown, {
55
55
  source: help
56
56
  }))));
57
57
  };