@manuscripts/transform 4.3.12 → 4.3.13

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.
@@ -15,7 +15,7 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.supplements = void 0;
18
+ exports.isSupplementsNode = exports.supplements = void 0;
19
19
  exports.supplements = {
20
20
  content: 'section_title supplement*',
21
21
  attrs: {
@@ -43,3 +43,5 @@ exports.supplements = {
43
43
  ];
44
44
  },
45
45
  };
46
+ const isSupplementsNode = (node) => node.type === node.type.schema.nodes.supplements;
47
+ exports.isSupplementsNode = isSupplementsNode;
@@ -60,4 +60,5 @@ exports.nodeNames = new Map([
60
60
  [schema_1.schema.nodes.pullquote_element, 'Pull Quote'],
61
61
  [schema_1.schema.nodes.box_element, 'Box'],
62
62
  [schema_1.schema.nodes.supplements, 'Supplements'],
63
+ [schema_1.schema.nodes.attachments, 'Main Document'],
63
64
  ]);
@@ -68,8 +68,9 @@ const nodeTitle = (node) => {
68
68
  case nodes.multi_graphic_figure_element:
69
69
  case nodes.image_element:
70
70
  case nodes.hero_image:
71
- return '';
72
71
  case nodes.box_element:
72
+ case nodes.supplements:
73
+ case nodes.attachments:
73
74
  return '';
74
75
  default:
75
76
  return textSnippet(node);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "4.3.12";
4
+ exports.VERSION = "4.3.13";
@@ -40,3 +40,4 @@ export const supplements = {
40
40
  ];
41
41
  },
42
42
  };
43
+ export const isSupplementsNode = (node) => node.type === node.type.schema.nodes.supplements;
@@ -57,4 +57,5 @@ export const nodeNames = new Map([
57
57
  [schema.nodes.pullquote_element, 'Pull Quote'],
58
58
  [schema.nodes.box_element, 'Box'],
59
59
  [schema.nodes.supplements, 'Supplements'],
60
+ [schema.nodes.attachments, 'Main Document'],
60
61
  ]);
@@ -65,8 +65,9 @@ export const nodeTitle = (node) => {
65
65
  case nodes.multi_graphic_figure_element:
66
66
  case nodes.image_element:
67
67
  case nodes.hero_image:
68
- return '';
69
68
  case nodes.box_element:
69
+ case nodes.supplements:
70
+ case nodes.attachments:
70
71
  return '';
71
72
  default:
72
73
  return textSnippet(node);
@@ -1 +1 @@
1
- export const VERSION = "4.3.12";
1
+ export const VERSION = "4.3.13";
@@ -22,4 +22,5 @@ export interface SupplementsNode extends ManuscriptNode {
22
22
  attrs: Attrs;
23
23
  }
24
24
  export declare const supplements: NodeSpec;
25
+ export declare const isSupplementsNode: (node: ManuscriptNode) => node is SupplementsNode;
25
26
  export {};
@@ -1 +1 @@
1
- export declare const VERSION = "4.3.12";
1
+ export declare const VERSION = "4.3.13";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/transform",
3
3
  "description": "ProseMirror transformer for Manuscripts applications",
4
- "version": "4.3.12",
4
+ "version": "4.3.13",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",