@manuscripts/body-editor 2.7.51 → 2.7.52

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.
@@ -1148,7 +1148,7 @@ const addColumns = (direction) => (state, dispatch) => {
1148
1148
  exports.addColumns = addColumns;
1149
1149
  const autoComplete = (state, dispatch) => {
1150
1150
  const complete = (0, autocompletion_1.checkForCompletion)(state);
1151
- if (complete) {
1151
+ if (complete && complete.suggestion.length > 0) {
1152
1152
  const tr = state.tr.insertText(complete.suggestion, state.selection.from);
1153
1153
  const inserted = complete.title.substring(0, complete.title.length - complete.suggestion.length);
1154
1154
  if (inserted) {
@@ -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.7.51';
4
+ exports.VERSION = '2.7.52';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -1093,7 +1093,7 @@ export const addColumns = (direction) => (state, dispatch) => {
1093
1093
  };
1094
1094
  export const autoComplete = (state, dispatch) => {
1095
1095
  const complete = checkForCompletion(state);
1096
- if (complete) {
1096
+ if (complete && complete.suggestion.length > 0) {
1097
1097
  const tr = state.tr.insertText(complete.suggestion, state.selection.from);
1098
1098
  const inserted = complete.title.substring(0, complete.title.length - complete.suggestion.length);
1099
1099
  if (inserted) {
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.7.51';
1
+ export const VERSION = '2.7.52';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.7.51";
1
+ export declare const VERSION = "2.7.52";
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.7.51",
4
+ "version": "2.7.52",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",