@manuscripts/body-editor 3.3.3 → 3.3.4

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.
@@ -570,6 +570,8 @@ const insertBoxElement = (state, dispatch) => {
570
570
  ]);
571
571
  if (position && dispatch) {
572
572
  const tr = state.tr.insert(position, node);
573
+ const sectionTitlePosition = position + 4;
574
+ tr.setSelection(prosemirror_state_1.TextSelection.create(tr.doc, sectionTitlePosition));
573
575
  dispatch(tr);
574
576
  }
575
577
  return true;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MATHJAX_VERSION = exports.VERSION = void 0;
4
- exports.VERSION = '3.3.3';
4
+ exports.VERSION = '3.3.4';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -540,6 +540,8 @@ export const insertBoxElement = (state, dispatch) => {
540
540
  ]);
541
541
  if (position && dispatch) {
542
542
  const tr = state.tr.insert(position, node);
543
+ const sectionTitlePosition = position + 4;
544
+ tr.setSelection(TextSelection.create(tr.doc, sectionTitlePosition));
543
545
  dispatch(tr);
544
546
  }
545
547
  return true;
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.3.3';
1
+ export const VERSION = '3.3.4';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.3.3";
1
+ export declare const VERSION = "3.3.4";
2
2
  export declare const MATHJAX_VERSION = "3.2.2";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/body-editor",
3
3
  "description": "Prosemirror components for editing and viewing manuscripts",
4
- "version": "3.3.3",
4
+ "version": "3.3.4",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -851,9 +851,6 @@ span.comment-marker {
851
851
  0% {
852
852
  background: var(--fade-color);
853
853
  }
854
- 100% {
855
- background: transparent;
856
- }
857
854
  }
858
855
 
859
856
  .selected-suggestion:not(.block-container):not(.graphical-abstract):not(
@@ -1045,7 +1042,7 @@ figure.block:has(.equation.selected-suggestion) {
1045
1042
  .tracking-visible
1046
1043
  .ProseMirror
1047
1044
  [data-track-status='pending'][data-track-op='delete']
1048
- .block,
1045
+ .block:not(.box-element),
1049
1046
  .tracking-visible
1050
1047
  .ProseMirror
1051
1048
  .figure-block
@@ -1063,9 +1060,7 @@ figure.block:has(.equation.selected-suggestion) {
1063
1060
  }
1064
1061
 
1065
1062
  .selected-suggestion[data-track-status='pending'][data-track-op='delete']
1066
- .block,
1067
- .selected-suggestion[data-track-status='pending'][data-track-op='delete']
1068
- .block {
1063
+ .block:not(.box-element) {
1069
1064
  box-shadow: inset 6px 0 0 var(--deleted-color),
1070
1065
  inset 9px 0 0 var(--deleted-pending-bg-color) !important;
1071
1066
  animation: fadeOutBackground 3s forwards;