@manuscripts/body-editor 3.2.16 → 3.2.18
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.
|
@@ -285,7 +285,7 @@ class ContextMenu {
|
|
|
285
285
|
const boxStartPos = $pos.start($pos.depth - 1);
|
|
286
286
|
const figcaptions = (0, prosemirror_utils_1.findChildrenByType)(boxElementNode, transform_1.schema.nodes.figcaption);
|
|
287
287
|
const hasLabel = figcaptions.length > 0;
|
|
288
|
-
menu.insertBefore(this.createMenuItem(hasLabel ? '
|
|
288
|
+
menu.insertBefore(this.createMenuItem(hasLabel ? 'Delete Label' : 'Add Label', () => {
|
|
289
289
|
if (hasLabel) {
|
|
290
290
|
const figcaptionNode = figcaptions[0].node;
|
|
291
291
|
const figcaptionPos = boxStartPos + figcaptions[0].pos;
|
package/dist/cjs/versions.js
CHANGED
|
@@ -281,7 +281,7 @@ export class ContextMenu {
|
|
|
281
281
|
const boxStartPos = $pos.start($pos.depth - 1);
|
|
282
282
|
const figcaptions = findChildrenByType(boxElementNode, schema.nodes.figcaption);
|
|
283
283
|
const hasLabel = figcaptions.length > 0;
|
|
284
|
-
menu.insertBefore(this.createMenuItem(hasLabel ? '
|
|
284
|
+
menu.insertBefore(this.createMenuItem(hasLabel ? 'Delete Label' : 'Add Label', () => {
|
|
285
285
|
if (hasLabel) {
|
|
286
286
|
const figcaptionNode = figcaptions[0].node;
|
|
287
287
|
const figcaptionPos = boxStartPos + figcaptions[0].pos;
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.2.
|
|
1
|
+
export const VERSION = '3.2.18';
|
|
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.2.
|
|
1
|
+
export declare const VERSION = "3.2.18";
|
|
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.2.
|
|
4
|
+
"version": "3.2.18",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@manuscripts/json-schema": "2.2.12",
|
|
41
41
|
"@manuscripts/style-guide": "3.1.4",
|
|
42
42
|
"@manuscripts/track-changes-plugin": "2.0.3",
|
|
43
|
-
"@manuscripts/transform": "4.2.
|
|
43
|
+
"@manuscripts/transform": "4.2.4",
|
|
44
44
|
"@popperjs/core": "2.11.8",
|
|
45
45
|
"citeproc": "2.4.63",
|
|
46
46
|
"codemirror": "5.65.19",
|