@manuscripts/body-editor 3.10.10 → 3.10.11
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/menus.js
CHANGED
|
@@ -36,7 +36,7 @@ const getEditorMenus = (editor) => {
|
|
|
36
36
|
const command = (0, commands_1.insertBackmatterSection)(category);
|
|
37
37
|
return {
|
|
38
38
|
id: `insert-${category.id}`,
|
|
39
|
-
label: category.titles[0],
|
|
39
|
+
label: category.label || category.titles[0],
|
|
40
40
|
isEnabled: isCommandValid(command),
|
|
41
41
|
run: doCommand(command),
|
|
42
42
|
};
|
|
@@ -47,7 +47,7 @@ const getEditorMenus = (editor) => {
|
|
|
47
47
|
: (0, commands_1.insertAbstractSection)(category);
|
|
48
48
|
return {
|
|
49
49
|
id: `insert-${category.id}`,
|
|
50
|
-
label: category.titles[0],
|
|
50
|
+
label: category.label || category.titles[0],
|
|
51
51
|
isEnabled: isCommandValid(command),
|
|
52
52
|
run: doCommand(command),
|
|
53
53
|
};
|
|
@@ -58,7 +58,7 @@ const createMenu = (props, currentCategory, categories, usedCategoryIDs, onSelec
|
|
|
58
58
|
props.popper.destroy();
|
|
59
59
|
};
|
|
60
60
|
categories.forEach((category) => {
|
|
61
|
-
const item = createMenuItem(props, category.titles[0], () => {
|
|
61
|
+
const item = createMenuItem(props, category.label || category.titles[0], () => {
|
|
62
62
|
onSelect(category);
|
|
63
63
|
destroy();
|
|
64
64
|
}, category.isUnique && usedCategoryIDs.has(category.id), currentCategory === category);
|
|
@@ -83,7 +83,7 @@ const createButton = (props, view, pos, currentCategory, categories, usedCategor
|
|
|
83
83
|
button.classList.add('section-category-button');
|
|
84
84
|
button.setAttribute('aria-label', 'Section categories menu');
|
|
85
85
|
if (currentCategory) {
|
|
86
|
-
button.setAttribute('data-tooltip-content', currentCategory.titles[0]);
|
|
86
|
+
button.setAttribute('data-tooltip-content', currentCategory.label || currentCategory.titles[0]);
|
|
87
87
|
button.classList.add('assigned');
|
|
88
88
|
}
|
|
89
89
|
if (disabled) {
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/menus.js
CHANGED
|
@@ -33,7 +33,7 @@ export const getEditorMenus = (editor) => {
|
|
|
33
33
|
const command = insertBackmatterSection(category);
|
|
34
34
|
return {
|
|
35
35
|
id: `insert-${category.id}`,
|
|
36
|
-
label: category.titles[0],
|
|
36
|
+
label: category.label || category.titles[0],
|
|
37
37
|
isEnabled: isCommandValid(command),
|
|
38
38
|
run: doCommand(command),
|
|
39
39
|
};
|
|
@@ -44,7 +44,7 @@ export const getEditorMenus = (editor) => {
|
|
|
44
44
|
: insertAbstractSection(category);
|
|
45
45
|
return {
|
|
46
46
|
id: `insert-${category.id}`,
|
|
47
|
-
label: category.titles[0],
|
|
47
|
+
label: category.label || category.titles[0],
|
|
48
48
|
isEnabled: isCommandValid(command),
|
|
49
49
|
run: doCommand(command),
|
|
50
50
|
};
|
|
@@ -55,7 +55,7 @@ const createMenu = (props, currentCategory, categories, usedCategoryIDs, onSelec
|
|
|
55
55
|
props.popper.destroy();
|
|
56
56
|
};
|
|
57
57
|
categories.forEach((category) => {
|
|
58
|
-
const item = createMenuItem(props, category.titles[0], () => {
|
|
58
|
+
const item = createMenuItem(props, category.label || category.titles[0], () => {
|
|
59
59
|
onSelect(category);
|
|
60
60
|
destroy();
|
|
61
61
|
}, category.isUnique && usedCategoryIDs.has(category.id), currentCategory === category);
|
|
@@ -80,7 +80,7 @@ const createButton = (props, view, pos, currentCategory, categories, usedCategor
|
|
|
80
80
|
button.classList.add('section-category-button');
|
|
81
81
|
button.setAttribute('aria-label', 'Section categories menu');
|
|
82
82
|
if (currentCategory) {
|
|
83
|
-
button.setAttribute('data-tooltip-content', currentCategory.titles[0]);
|
|
83
|
+
button.setAttribute('data-tooltip-content', currentCategory.label || currentCategory.titles[0]);
|
|
84
84
|
button.classList.add('assigned');
|
|
85
85
|
}
|
|
86
86
|
if (disabled) {
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.10.
|
|
1
|
+
export const VERSION = '3.10.11';
|
|
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.10.
|
|
1
|
+
export declare const VERSION = "3.10.11";
|
|
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.10.
|
|
4
|
+
"version": "3.10.11",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@citation-js/plugin-ris": "0.7.18",
|
|
39
39
|
"@iarna/word-count": "1.1.2",
|
|
40
40
|
"@manuscripts/style-guide": "3.5.2",
|
|
41
|
-
"@manuscripts/track-changes-plugin": "2.3.
|
|
42
|
-
"@manuscripts/transform": "4.3.
|
|
41
|
+
"@manuscripts/track-changes-plugin": "2.3.6",
|
|
42
|
+
"@manuscripts/transform": "4.3.27",
|
|
43
43
|
"@popperjs/core": "2.11.8",
|
|
44
44
|
"citeproc": "2.4.63",
|
|
45
45
|
"codemirror": "5.65.19",
|