@manuscripts/body-editor 3.10.9 → 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 +2 -2
- package/dist/cjs/plugins/section_category.js +2 -2
- package/dist/cjs/toolbar.js +2 -2
- package/dist/cjs/versions.js +1 -1
- package/dist/es/menus.js +2 -2
- package/dist/es/plugins/section_category.js +2 -2
- package/dist/es/toolbar.js +2 -2
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +3 -3
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/toolbar.js
CHANGED
|
@@ -127,13 +127,13 @@ exports.toolbar = {
|
|
|
127
127
|
},
|
|
128
128
|
},
|
|
129
129
|
quote: {
|
|
130
|
-
|
|
130
|
+
blockquote_element: {
|
|
131
131
|
title: 'Insert blockquote',
|
|
132
132
|
content: react_1.default.createElement(style_guide_1.OutlineBlockQuoteIcon, null),
|
|
133
133
|
isEnabled: isEnabled((0, commands_1.canInsert)(transform_1.schema.nodes.blockquote_element)),
|
|
134
134
|
run: (0, commands_1.insertBlock)(transform_1.schema.nodes.blockquote_element),
|
|
135
135
|
},
|
|
136
|
-
|
|
136
|
+
pullquote_element: {
|
|
137
137
|
title: 'Insert pullquote',
|
|
138
138
|
content: react_1.default.createElement(style_guide_1.OutlinePullQuoteIcon, null),
|
|
139
139
|
isEnabled: isEnabled((0, commands_1.canInsert)(transform_1.schema.nodes.pullquote_element)),
|
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/toolbar.js
CHANGED
|
@@ -121,13 +121,13 @@ export const toolbar = {
|
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
123
|
quote: {
|
|
124
|
-
|
|
124
|
+
blockquote_element: {
|
|
125
125
|
title: 'Insert blockquote',
|
|
126
126
|
content: React.createElement(OutlineBlockQuoteIcon, null),
|
|
127
127
|
isEnabled: isEnabled(canInsert(schema.nodes.blockquote_element)),
|
|
128
128
|
run: insertBlock(schema.nodes.blockquote_element),
|
|
129
129
|
},
|
|
130
|
-
|
|
130
|
+
pullquote_element: {
|
|
131
131
|
title: 'Insert pullquote',
|
|
132
132
|
content: React.createElement(OutlinePullQuoteIcon, null),
|
|
133
133
|
isEnabled: isEnabled(canInsert(schema.nodes.pullquote_element)),
|
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",
|