@manuscripts/body-editor 2.3.0 → 2.3.1-LEAN-3958.0
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/index.js +10 -1
- package/dist/cjs/lib/context-menu.js +4 -1
- package/dist/cjs/versions.js +1 -1
- package/dist/es/index.js +5 -0
- package/dist/es/lib/context-menu.js +4 -1
- package/dist/es/versions.js +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/versions.d.ts +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.selectedSuggestionKey = exports.PopperManager = exports.CollabProvider = exports.LevelSelector = exports.OutlineItemIcon = exports.ManuscriptOutline = void 0;
|
|
32
|
+
exports.metadata = exports.bibliographyPluginKey = exports.footnotesPluginKey = exports.objectsPluginKey = exports.selectedSuggestionKey = exports.PopperManager = exports.CollabProvider = exports.LevelSelector = exports.OutlineItemIcon = exports.ManuscriptOutline = void 0;
|
|
33
33
|
__exportStar(require("./commands"), exports);
|
|
34
34
|
var ManuscriptOutline_1 = require("./components/outline/ManuscriptOutline");
|
|
35
35
|
Object.defineProperty(exports, "ManuscriptOutline", { enumerable: true, get: function () { return ManuscriptOutline_1.ManuscriptOutline; } });
|
|
@@ -54,3 +54,12 @@ Object.defineProperty(exports, "selectedSuggestionKey", { enumerable: true, get:
|
|
|
54
54
|
__exportStar(require("./lib/utils"), exports);
|
|
55
55
|
__exportStar(require("./lib/track-changes-utils"), exports);
|
|
56
56
|
__exportStar(require("./useEditor"), exports);
|
|
57
|
+
__exportStar(require("./lib/math"), exports);
|
|
58
|
+
var objects_1 = require("./plugins/objects");
|
|
59
|
+
Object.defineProperty(exports, "objectsPluginKey", { enumerable: true, get: function () { return objects_1.objectsKey; } });
|
|
60
|
+
var footnotes_1 = require("./plugins/footnotes");
|
|
61
|
+
Object.defineProperty(exports, "footnotesPluginKey", { enumerable: true, get: function () { return footnotes_1.footnotesKey; } });
|
|
62
|
+
var bibliography_1 = require("./plugins/bibliography");
|
|
63
|
+
Object.defineProperty(exports, "bibliographyPluginKey", { enumerable: true, get: function () { return bibliography_1.bibliographyKey; } });
|
|
64
|
+
var references_1 = require("./lib/references");
|
|
65
|
+
Object.defineProperty(exports, "metadata", { enumerable: true, get: function () { return references_1.metadata; } });
|
|
@@ -272,7 +272,10 @@ class ContextMenu {
|
|
|
272
272
|
if (!readonlyTypes.includes(type) &&
|
|
273
273
|
!readonlyTypes.includes($pos.parent.type)) {
|
|
274
274
|
menu.appendChild(this.createMenuSection((section) => {
|
|
275
|
-
|
|
275
|
+
let nodeName = transform_1.nodeNames.get(type) || '';
|
|
276
|
+
if (type === transform_1.schema.nodes.section_title) {
|
|
277
|
+
nodeName = transform_1.nodeNames.get(transform_1.schema.nodes.section);
|
|
278
|
+
}
|
|
276
279
|
section.appendChild(this.createMenuItem(`Delete ${nodeName}`, () => {
|
|
277
280
|
this.deleteNode(type);
|
|
278
281
|
popper.destroy();
|
package/dist/cjs/versions.js
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -31,3 +31,8 @@ export { selectedSuggestionKey } from './plugins/selected-suggestion';
|
|
|
31
31
|
export * from './lib/utils';
|
|
32
32
|
export * from './lib/track-changes-utils';
|
|
33
33
|
export * from './useEditor';
|
|
34
|
+
export * from './lib/math';
|
|
35
|
+
export { objectsKey as objectsPluginKey } from './plugins/objects';
|
|
36
|
+
export { footnotesKey as footnotesPluginKey } from './plugins/footnotes';
|
|
37
|
+
export { bibliographyKey as bibliographyPluginKey } from './plugins/bibliography';
|
|
38
|
+
export { metadata } from './lib/references';
|
|
@@ -265,7 +265,10 @@ export class ContextMenu {
|
|
|
265
265
|
if (!readonlyTypes.includes(type) &&
|
|
266
266
|
!readonlyTypes.includes($pos.parent.type)) {
|
|
267
267
|
menu.appendChild(this.createMenuSection((section) => {
|
|
268
|
-
|
|
268
|
+
let nodeName = nodeNames.get(type) || '';
|
|
269
|
+
if (type === schema.nodes.section_title) {
|
|
270
|
+
nodeName = nodeNames.get(schema.nodes.section);
|
|
271
|
+
}
|
|
269
272
|
section.appendChild(this.createMenuItem(`Delete ${nodeName}`, () => {
|
|
270
273
|
this.deleteNode(type);
|
|
271
274
|
popper.destroy();
|
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.3.0';
|
|
1
|
+
export const VERSION = '2.3.1-LEAN-3958.0';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -32,3 +32,8 @@ export { selectedSuggestionKey } from './plugins/selected-suggestion';
|
|
|
32
32
|
export * from './lib/utils';
|
|
33
33
|
export * from './lib/track-changes-utils';
|
|
34
34
|
export * from './useEditor';
|
|
35
|
+
export * from './lib/math';
|
|
36
|
+
export { objectsKey as objectsPluginKey } from './plugins/objects';
|
|
37
|
+
export { footnotesKey as footnotesPluginKey } from './plugins/footnotes';
|
|
38
|
+
export { bibliographyKey as bibliographyPluginKey } from './plugins/bibliography';
|
|
39
|
+
export { metadata, BibliographyItemAttrs } from './lib/references';
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.0";
|
|
1
|
+
export declare const VERSION = "2.3.1-LEAN-3958.0";
|
|
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.3.0",
|
|
4
|
+
"version": "2.3.1-LEAN-3958.0",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@manuscripts/library": "1.3.11",
|
|
35
35
|
"@manuscripts/style-guide": "2.0.21",
|
|
36
36
|
"@manuscripts/track-changes-plugin": "1.8.0",
|
|
37
|
-
"@manuscripts/transform": "3.0.
|
|
37
|
+
"@manuscripts/transform": "3.0.7-LEAN-3958.0",
|
|
38
38
|
"@popperjs/core": "^2.11.8",
|
|
39
39
|
"astrocite-eutils": "^0.16.4",
|
|
40
40
|
"codemirror": "^5.58.1",
|