@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.
- package/dist/cjs/commands.js +1 -1
- package/dist/cjs/versions.js +1 -1
- package/dist/es/commands.js +1 -1
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/commands.js
CHANGED
|
@@ -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) {
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/commands.js
CHANGED
|
@@ -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) {
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.7.
|
|
1
|
+
export const VERSION = '2.7.52';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.7.
|
|
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.
|
|
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",
|