@manuscripts/body-editor 3.10.14 → 3.10.15

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.
@@ -28,7 +28,10 @@ const upsertSupplementsSection = (tr, supplement) => {
28
28
  return { node: supplements.node, pos };
29
29
  }
30
30
  const pos = (0, utils_1.findInsertionPosition)(transform_1.schema.nodes.supplements, doc);
31
- const node = transform_1.schema.nodes.supplements.createAndFill({ id: (0, transform_1.generateNodeID)(transform_1.schema.nodes.supplements) }, [supplement]);
31
+ const node = transform_1.schema.nodes.supplements.createAndFill({ id: (0, transform_1.generateNodeID)(transform_1.schema.nodes.supplements) }, [
32
+ transform_1.schema.nodes.section_title.create(undefined, transform_1.schema.text('Supplements')),
33
+ supplement,
34
+ ]);
32
35
  tr.insert(pos, node);
33
36
  return {
34
37
  node,
@@ -206,6 +206,7 @@ const getDecorationPos = (node, pos) => {
206
206
  case transform_1.schema.nodes.embed:
207
207
  case transform_1.schema.nodes.contributors:
208
208
  case transform_1.schema.nodes.hero_image:
209
+ case transform_1.schema.nodes.supplements:
209
210
  return pos;
210
211
  case transform_1.schema.nodes.keywords:
211
212
  return pos + 2;
@@ -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 = '3.10.14';
4
+ exports.VERSION = '3.10.15';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -24,7 +24,10 @@ export const upsertSupplementsSection = (tr, supplement) => {
24
24
  return { node: supplements.node, pos };
25
25
  }
26
26
  const pos = findInsertionPosition(schema.nodes.supplements, doc);
27
- const node = schema.nodes.supplements.createAndFill({ id: generateNodeID(schema.nodes.supplements) }, [supplement]);
27
+ const node = schema.nodes.supplements.createAndFill({ id: generateNodeID(schema.nodes.supplements) }, [
28
+ schema.nodes.section_title.create(undefined, schema.text('Supplements')),
29
+ supplement,
30
+ ]);
28
31
  tr.insert(pos, node);
29
32
  return {
30
33
  node,
@@ -201,6 +201,7 @@ const getDecorationPos = (node, pos) => {
201
201
  case schema.nodes.embed:
202
202
  case schema.nodes.contributors:
203
203
  case schema.nodes.hero_image:
204
+ case schema.nodes.supplements:
204
205
  return pos;
205
206
  case schema.nodes.keywords:
206
207
  return pos + 2;
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.10.14';
1
+ export const VERSION = '3.10.15';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.10.14";
1
+ export declare const VERSION = "3.10.15";
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.14",
4
+ "version": "3.10.15",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -555,7 +555,8 @@ ProseMirror .block-embed .position-menu {
555
555
 
556
556
  .comment-marker:has(+ .block-contributors),
557
557
  .comment-marker:has(+ .block-affiliations),
558
- .comment-marker:has(+ .block-hero_image) {
558
+ .comment-marker:has(+ .block-hero_image),
559
+ .comment-marker:has(+ .block-supplements) {
559
560
  height: 0;
560
561
  top: 0;
561
562
  right: 60px;
@@ -563,6 +564,11 @@ ProseMirror .block-embed .position-menu {
563
564
  float: right;
564
565
  }
565
566
 
567
+ .comment-marker:has(+ .block-hero_image),
568
+ .comment-marker:has(+ .block-supplements) {
569
+ right: 50px;
570
+ }
571
+
566
572
  .block-subtitles .comment-marker {
567
573
  top: 0;
568
574
  left: -10px;