@manuscripts/body-editor 2.8.60 → 2.8.61

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.
@@ -668,6 +668,7 @@ const insertGraphicalAbstract = (category) => (state, dispatch, view) => {
668
668
  createAndFillFigureElement(state),
669
669
  ]);
670
670
  const tr = state.tr.insert(pos, node);
671
+ node.lastChild && (0, accessibility_element_1.expandAccessibilitySection)(tr, node.lastChild);
671
672
  if (dispatch) {
672
673
  const selection = prosemirror_state_1.TextSelection.create(tr.doc, pos + 1);
673
674
  if (view) {
@@ -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 = '2.8.60';
4
+ exports.VERSION = '2.8.61';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -634,6 +634,7 @@ export const insertGraphicalAbstract = (category) => (state, dispatch, view) =>
634
634
  createAndFillFigureElement(state),
635
635
  ]);
636
636
  const tr = state.tr.insert(pos, node);
637
+ node.lastChild && expandAccessibilitySection(tr, node.lastChild);
637
638
  if (dispatch) {
638
639
  const selection = TextSelection.create(tr.doc, pos + 1);
639
640
  if (view) {
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.8.60';
1
+ export const VERSION = '2.8.61';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.8.60";
1
+ export declare const VERSION = "2.8.61";
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": "2.8.60",
4
+ "version": "2.8.61",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",