@manuscripts/body-editor 3.16.3 → 3.17.1

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 (55) hide show
  1. package/dist/cjs/lib/context-menu.js +28 -11
  2. package/dist/cjs/lib/popper.js +18 -3
  3. package/dist/cjs/lib/position-menu.js +175 -100
  4. package/dist/cjs/lib/view.js +10 -1
  5. package/dist/cjs/plugins/detect-inconsistency/index.js +6 -4
  6. package/dist/cjs/plugins/persist.js +3 -0
  7. package/dist/cjs/versions.js +1 -1
  8. package/dist/cjs/views/box_element.js +23 -1
  9. package/dist/cjs/views/caption_title.js +1 -1
  10. package/dist/cjs/views/footnote.js +43 -18
  11. package/dist/cjs/views/general_table_footnote.js +31 -21
  12. package/dist/cjs/views/image_element.js +7 -62
  13. package/dist/cjs/views/pullquote_element.js +23 -1
  14. package/dist/cjs/views/table_element.js +23 -1
  15. package/dist/es/lib/context-menu.js +29 -12
  16. package/dist/es/lib/popper.js +18 -3
  17. package/dist/es/lib/position-menu.js +173 -91
  18. package/dist/es/lib/view.js +8 -0
  19. package/dist/es/plugins/detect-inconsistency/index.js +6 -4
  20. package/dist/es/plugins/persist.js +3 -0
  21. package/dist/es/versions.js +1 -1
  22. package/dist/es/views/box_element.js +23 -1
  23. package/dist/es/views/caption_title.js +1 -1
  24. package/dist/es/views/footnote.js +43 -18
  25. package/dist/es/views/general_table_footnote.js +31 -21
  26. package/dist/es/views/image_element.js +7 -62
  27. package/dist/es/views/pullquote_element.js +23 -1
  28. package/dist/es/views/table_element.js +23 -1
  29. package/dist/types/lib/popper.d.ts +4 -2
  30. package/dist/types/lib/position-menu.d.ts +36 -11
  31. package/dist/types/lib/view.d.ts +3 -1
  32. package/dist/types/versions.d.ts +1 -1
  33. package/dist/types/views/box_element.d.ts +6 -0
  34. package/dist/types/views/footnote.d.ts +5 -2
  35. package/dist/types/views/general_table_footnote.d.ts +2 -2
  36. package/dist/types/views/image_element.d.ts +2 -9
  37. package/dist/types/views/pullquote_element.d.ts +6 -0
  38. package/dist/types/views/table_element.d.ts +6 -0
  39. package/package.json +2 -2
  40. package/src/lib/context-menu.ts +42 -21
  41. package/src/lib/popper.ts +23 -4
  42. package/src/lib/position-menu.ts +243 -137
  43. package/src/lib/view.ts +17 -0
  44. package/src/plugins/detect-inconsistency/index.ts +6 -4
  45. package/src/plugins/persist.ts +3 -0
  46. package/src/versions.ts +1 -1
  47. package/src/views/box_element.ts +34 -1
  48. package/src/views/caption_title.ts +1 -1
  49. package/src/views/footnote.ts +69 -33
  50. package/src/views/general_table_footnote.ts +43 -20
  51. package/src/views/image_element.ts +12 -89
  52. package/src/views/pullquote_element.ts +33 -1
  53. package/src/views/table_element.ts +34 -1
  54. package/styles/AdvancedEditor.css +5 -8
  55. package/styles/Editor.css +9 -5
@@ -302,9 +302,7 @@
302
302
  border-radius: var(--focus-outline-radius);
303
303
  }
304
304
 
305
- .ProseMirror .block-figure_element .position-menu,
306
- .ProseMirror .block-image_element .position-menu,
307
- ProseMirror .block-embed .position-menu {
305
+ .ProseMirror .position-menu {
308
306
  position: absolute;
309
307
  top: 8px;
310
308
  right: 21px;
@@ -514,7 +512,7 @@ ProseMirror .block-embed .position-menu {
514
512
  left: 100%;
515
513
  }
516
514
  .figure-block > div.comment-marker {
517
- position:absolute;
515
+ position: absolute;
518
516
  top: 1px;
519
517
  left: unset;
520
518
  right: -25px;
@@ -1614,7 +1612,6 @@ th:hover > .table-context-menu-button,
1614
1612
  display: block;
1615
1613
  }
1616
1614
 
1617
-
1618
1615
  .ProseMirror .ext-link-editor-container .close-button:focus-visible,
1619
1616
  .ProseMirror .ext-link-editor-container .remove-button:focus-visible,
1620
1617
  .ProseMirror .ext-link-editor-container .icon-button:focus-visible {
@@ -1683,7 +1680,7 @@ th:hover > .table-context-menu-button,
1683
1680
  cursor: pointer;
1684
1681
  }
1685
1682
 
1686
- .ProseMirror .accessibility_element_input:focus{
1683
+ .ProseMirror .accessibility_element_input:focus {
1687
1684
  outline: none;
1688
1685
  }
1689
1686
 
@@ -2125,8 +2122,8 @@ th:hover > .table-context-menu-button,
2125
2122
  * If we later block editing these titles, this padding can go away.
2126
2123
  */
2127
2124
  .ProseMirror .abstracts .block-section .block-section_title h1,
2128
- .ProseMirror .abstracts .block-trans_abstract .block-section_title h1{
2129
- padding-right: 150px;
2125
+ .ProseMirror .abstracts .block-trans_abstract .block-section_title h1 {
2126
+ padding-right: 150px;
2130
2127
  }
2131
2128
 
2132
2129
  .ProseMirror .add-trans-abstract {
package/styles/Editor.css CHANGED
@@ -1,6 +1,6 @@
1
1
  :root {
2
2
  --body-side-margin: 65px;
3
- --focus-outline-color: #3DADFF;
3
+ --focus-outline-color: #3dadff;
4
4
  --focus-outline-offset: 2px;
5
5
  --focus-outline-radius: 3px;
6
6
  }
@@ -83,7 +83,7 @@
83
83
  content: '— ';
84
84
  }
85
85
 
86
- .ProseMirror .block-container > .block.pullquote {
86
+ .ProseMirror .block-container > .container > .block.pullquote {
87
87
  padding: 0 0 7px 48px;
88
88
  }
89
89
  .ProseMirror .pullquote {
@@ -328,7 +328,7 @@
328
328
 
329
329
  .ProseMirror .caption-title[element-label]::before,
330
330
  .ProseMirror .caption-description > [element-label]::before {
331
- content: attr(element-label)":";
331
+ content: attr(element-label) ':';
332
332
  }
333
333
 
334
334
  .ProseMirror .caption-title:not(:has(.placeholder-text)) {
@@ -339,11 +339,14 @@
339
339
  display: block;
340
340
  }
341
341
 
342
- .ProseMirror .caption-description, .ProseMirror .caption-description[element-label] > p:first-child {
342
+ .ProseMirror .caption-description,
343
+ .ProseMirror .caption-description[element-label] > p:first-child {
343
344
  display: inline;
344
345
  }
345
346
 
346
- .ProseMirror .caption-description, .ProseMirror .caption-title, .ProseMirror .element-label {
347
+ .ProseMirror .caption-description,
348
+ .ProseMirror .caption-title,
349
+ .ProseMirror .element-label {
347
350
  font-size: 14px;
348
351
  outline: none;
349
352
  margin: 0;
@@ -709,6 +712,7 @@
709
712
  z-index: 2;
710
713
  }
711
714
 
715
+ .ProseMirror .block-container > .container > .block,
712
716
  .ProseMirror .block-container > .block {
713
717
  margin: 0;
714
718
  z-index: 1;