@manuscripts/body-editor 3.6.21 → 3.6.22

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.
@@ -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.6.21';
4
+ exports.VERSION = '3.6.22';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -17,7 +17,6 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.FigureEditableView = void 0;
19
19
  const transform_1 = require("@manuscripts/transform");
20
- const prosemirror_state_1 = require("prosemirror-state");
21
20
  const prosemirror_utils_1 = require("prosemirror-utils");
22
21
  const icons_1 = require("../icons");
23
22
  const media_1 = require("../lib/media");
@@ -40,7 +39,6 @@ class FigureEditableView extends figure_1.FigureView {
40
39
  ...this.node.attrs,
41
40
  src: src,
42
41
  });
43
- tr.setSelection(prosemirror_state_1.NodeSelection.create(tr.doc, pos));
44
42
  this.view.dispatch(tr);
45
43
  };
46
44
  this.createUnsupportedFormat = (name) => {
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.6.21';
1
+ export const VERSION = '3.6.22';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -14,7 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { schema } from '@manuscripts/transform';
17
- import { NodeSelection } from 'prosemirror-state';
18
17
  import { findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';
19
18
  import { draggableIcon } from '../icons';
20
19
  import { addInteractionHandlers, createFileHandlers, createFileUploader, createMediaPlaceholder, createReactTools, createUnsupportedFormat, MediaType, } from '../lib/media';
@@ -37,7 +36,6 @@ export class FigureEditableView extends FigureView {
37
36
  ...this.node.attrs,
38
37
  src: src,
39
38
  });
40
- tr.setSelection(NodeSelection.create(tr.doc, pos));
41
39
  this.view.dispatch(tr);
42
40
  };
43
41
  this.createUnsupportedFormat = (name) => {
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.6.21";
1
+ export declare const VERSION = "3.6.22";
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.6.21",
4
+ "version": "3.6.22",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",