@manuscripts/body-editor 2.8.13 → 2.8.14

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MATHJAX_VERSION = exports.VERSION = void 0;
4
- exports.VERSION = '2.8.13';
4
+ exports.VERSION = '2.8.14';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -21,7 +21,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.SectionTitleView = void 0;
22
22
  const transform_1 = require("@manuscripts/transform");
23
23
  const prosemirror_utils_1 = require("prosemirror-utils");
24
- const context_menu_1 = require("../lib/context-menu");
25
24
  const section_title_1 = require("../plugins/section_title");
26
25
  const block_view_1 = __importDefault(require("./block_view"));
27
26
  const creators_1 = require("./creators");
@@ -58,7 +57,7 @@ class SectionTitleView extends block_view_1.default {
58
57
  this.contentDOM.setAttribute('data-placeholder', `Optional box title...`);
59
58
  }
60
59
  else {
61
- this.contentDOM.setAttribute('data-placeholder', `${(0, context_menu_1.sectionLevel)(level)} heading`);
60
+ this.contentDOM.setAttribute('data-placeholder', `Subsection Heading`);
62
61
  }
63
62
  }
64
63
  if (sectionTitleState && sectionNumber) {
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.8.13';
1
+ export const VERSION = '2.8.14';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -15,7 +15,6 @@
15
15
  */
16
16
  import { schema } from '@manuscripts/transform';
17
17
  import { findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';
18
- import { sectionLevel } from '../lib/context-menu';
19
18
  import { sectionTitleKey } from '../plugins/section_title';
20
19
  import BlockView from './block_view';
21
20
  import { createNodeView } from './creators';
@@ -52,7 +51,7 @@ export class SectionTitleView extends BlockView {
52
51
  this.contentDOM.setAttribute('data-placeholder', `Optional box title...`);
53
52
  }
54
53
  else {
55
- this.contentDOM.setAttribute('data-placeholder', `${sectionLevel(level)} heading`);
54
+ this.contentDOM.setAttribute('data-placeholder', `Subsection Heading`);
56
55
  }
57
56
  }
58
57
  if (sectionTitleState && sectionNumber) {
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.8.13";
1
+ export declare const VERSION = "2.8.14";
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.8.13",
4
+ "version": "2.8.14",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",