@manuscripts/body-editor 3.6.6 → 3.6.7
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.
|
@@ -58,7 +58,7 @@ const validateTitle = (node, pos, context) => {
|
|
|
58
58
|
const inconsistencies = [];
|
|
59
59
|
const isEmpty = node.content.size === 0;
|
|
60
60
|
if (isEmpty) {
|
|
61
|
-
const inconsistency = createWarning(node, pos, 'empty-content', '
|
|
61
|
+
const inconsistency = createWarning(node, pos, 'empty-content', 'error');
|
|
62
62
|
inconsistencies.push(inconsistency);
|
|
63
63
|
if (context.showDecorations) {
|
|
64
64
|
context.decorations.push((0, detect_inconsistency_utils_1.createDecoration)(node, pos, context.selectedPos));
|
|
@@ -71,7 +71,7 @@ const validateCrossReference = (node, pos, context) => {
|
|
|
71
71
|
const figures = Array.from(context.pluginStates.objects?.keys() ?? []);
|
|
72
72
|
const isInFigures = node.attrs.rids.every((rid) => figures.includes(rid));
|
|
73
73
|
if (!isInFigures) {
|
|
74
|
-
const inconsistency = createWarning(node, pos, 'missing-reference', '
|
|
74
|
+
const inconsistency = createWarning(node, pos, 'missing-reference', 'error');
|
|
75
75
|
inconsistencies.push(inconsistency);
|
|
76
76
|
if (context.showDecorations) {
|
|
77
77
|
context.decorations.push((0, detect_inconsistency_utils_1.createDecoration)(node, pos, context.selectedPos));
|
|
@@ -84,7 +84,7 @@ const validateCitation = (node, pos, context) => {
|
|
|
84
84
|
if (context.pluginStates.bibliography) {
|
|
85
85
|
const isInBibliography = node.attrs.rids.every((rid) => context.pluginStates.bibliography?.get(rid));
|
|
86
86
|
if (!isInBibliography || node.attrs.rids.length === 0) {
|
|
87
|
-
const inconsistency = createWarning(node, pos, 'missing-reference', '
|
|
87
|
+
const inconsistency = createWarning(node, pos, 'missing-reference', 'error');
|
|
88
88
|
inconsistencies.push(inconsistency);
|
|
89
89
|
if (context.showDecorations) {
|
|
90
90
|
context.decorations.push((0, detect_inconsistency_utils_1.createDecoration)(node, pos, context.selectedPos));
|
|
@@ -98,7 +98,7 @@ const validateInlineFootnote = (node, pos, context) => {
|
|
|
98
98
|
if (context.pluginStates.footnotes) {
|
|
99
99
|
const isInFootnote = node.attrs.rids.every((rid) => context.pluginStates.footnotes?.get(rid));
|
|
100
100
|
if (!isInFootnote) {
|
|
101
|
-
const inconsistency = createWarning(node, pos, 'missing-reference', '
|
|
101
|
+
const inconsistency = createWarning(node, pos, 'missing-reference', 'error');
|
|
102
102
|
inconsistencies.push(inconsistency);
|
|
103
103
|
if (context.showDecorations) {
|
|
104
104
|
context.decorations.push((0, detect_inconsistency_utils_1.createDecoration)(node, pos, context.selectedPos));
|
package/dist/cjs/versions.js
CHANGED
|
@@ -55,7 +55,7 @@ const validateTitle = (node, pos, context) => {
|
|
|
55
55
|
const inconsistencies = [];
|
|
56
56
|
const isEmpty = node.content.size === 0;
|
|
57
57
|
if (isEmpty) {
|
|
58
|
-
const inconsistency = createWarning(node, pos, 'empty-content', '
|
|
58
|
+
const inconsistency = createWarning(node, pos, 'empty-content', 'error');
|
|
59
59
|
inconsistencies.push(inconsistency);
|
|
60
60
|
if (context.showDecorations) {
|
|
61
61
|
context.decorations.push(createDecoration(node, pos, context.selectedPos));
|
|
@@ -68,7 +68,7 @@ const validateCrossReference = (node, pos, context) => {
|
|
|
68
68
|
const figures = Array.from(context.pluginStates.objects?.keys() ?? []);
|
|
69
69
|
const isInFigures = node.attrs.rids.every((rid) => figures.includes(rid));
|
|
70
70
|
if (!isInFigures) {
|
|
71
|
-
const inconsistency = createWarning(node, pos, 'missing-reference', '
|
|
71
|
+
const inconsistency = createWarning(node, pos, 'missing-reference', 'error');
|
|
72
72
|
inconsistencies.push(inconsistency);
|
|
73
73
|
if (context.showDecorations) {
|
|
74
74
|
context.decorations.push(createDecoration(node, pos, context.selectedPos));
|
|
@@ -81,7 +81,7 @@ const validateCitation = (node, pos, context) => {
|
|
|
81
81
|
if (context.pluginStates.bibliography) {
|
|
82
82
|
const isInBibliography = node.attrs.rids.every((rid) => context.pluginStates.bibliography?.get(rid));
|
|
83
83
|
if (!isInBibliography || node.attrs.rids.length === 0) {
|
|
84
|
-
const inconsistency = createWarning(node, pos, 'missing-reference', '
|
|
84
|
+
const inconsistency = createWarning(node, pos, 'missing-reference', 'error');
|
|
85
85
|
inconsistencies.push(inconsistency);
|
|
86
86
|
if (context.showDecorations) {
|
|
87
87
|
context.decorations.push(createDecoration(node, pos, context.selectedPos));
|
|
@@ -95,7 +95,7 @@ const validateInlineFootnote = (node, pos, context) => {
|
|
|
95
95
|
if (context.pluginStates.footnotes) {
|
|
96
96
|
const isInFootnote = node.attrs.rids.every((rid) => context.pluginStates.footnotes?.get(rid));
|
|
97
97
|
if (!isInFootnote) {
|
|
98
|
-
const inconsistency = createWarning(node, pos, 'missing-reference', '
|
|
98
|
+
const inconsistency = createWarning(node, pos, 'missing-reference', 'error');
|
|
99
99
|
inconsistencies.push(inconsistency);
|
|
100
100
|
if (context.showDecorations) {
|
|
101
101
|
context.decorations.push(createDecoration(node, pos, context.selectedPos));
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.6.
|
|
1
|
+
export const VERSION = '3.6.7';
|
|
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 = "3.6.
|
|
1
|
+
export declare const VERSION = "3.6.7";
|
|
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.
|
|
4
|
+
"version": "3.6.7",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|