@manuscripts/transform 2.3.17 → 2.3.19

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.
Files changed (36) hide show
  1. package/dist/cjs/schema/nodes/equation_element.js +0 -1
  2. package/dist/cjs/schema/nodes/figure_element.js +0 -1
  3. package/dist/cjs/schema/nodes/footnote.js +0 -1
  4. package/dist/cjs/schema/nodes/inline_equation.js +0 -1
  5. package/dist/cjs/schema/nodes/keyword.js +0 -1
  6. package/dist/cjs/schema/nodes/listing.js +0 -1
  7. package/dist/cjs/schema/nodes/listing_element.js +0 -1
  8. package/dist/cjs/schema/nodes/paragraph.js +0 -1
  9. package/dist/cjs/schema/nodes/section.js +0 -1
  10. package/dist/cjs/schema/nodes/table_element.js +0 -1
  11. package/dist/cjs/transformer/decode.js +0 -13
  12. package/dist/cjs/version.js +1 -1
  13. package/dist/es/schema/nodes/equation_element.js +0 -1
  14. package/dist/es/schema/nodes/figure_element.js +0 -1
  15. package/dist/es/schema/nodes/footnote.js +0 -1
  16. package/dist/es/schema/nodes/inline_equation.js +0 -1
  17. package/dist/es/schema/nodes/keyword.js +0 -1
  18. package/dist/es/schema/nodes/listing.js +0 -1
  19. package/dist/es/schema/nodes/listing_element.js +0 -1
  20. package/dist/es/schema/nodes/paragraph.js +0 -1
  21. package/dist/es/schema/nodes/section.js +0 -1
  22. package/dist/es/schema/nodes/table_element.js +0 -1
  23. package/dist/es/transformer/decode.js +0 -13
  24. package/dist/es/version.js +1 -1
  25. package/dist/types/schema/nodes/equation_element.d.ts +0 -2
  26. package/dist/types/schema/nodes/figure_element.d.ts +0 -2
  27. package/dist/types/schema/nodes/footnote.d.ts +0 -2
  28. package/dist/types/schema/nodes/inline_equation.d.ts +0 -2
  29. package/dist/types/schema/nodes/keyword.d.ts +0 -2
  30. package/dist/types/schema/nodes/listing.d.ts +0 -2
  31. package/dist/types/schema/nodes/listing_element.d.ts +0 -2
  32. package/dist/types/schema/nodes/paragraph.d.ts +0 -2
  33. package/dist/types/schema/nodes/section.d.ts +0 -2
  34. package/dist/types/schema/nodes/table_element.d.ts +0 -2
  35. package/dist/types/version.d.ts +1 -1
  36. package/package.json +1 -1
@@ -22,7 +22,6 @@ exports.equationElement = {
22
22
  id: { default: '' },
23
23
  label: { default: '' },
24
24
  dataTracked: { default: null },
25
- comments: { default: null },
26
25
  },
27
26
  selectable: false,
28
27
  group: 'block element',
@@ -30,7 +30,6 @@ exports.figureElement = {
30
30
  attribution: { default: undefined },
31
31
  alternatives: { default: undefined },
32
32
  dataTracked: { default: null },
33
- comments: { default: null },
34
33
  },
35
34
  selectable: false,
36
35
  group: 'block element executable',
@@ -25,7 +25,6 @@ exports.footnote = {
25
25
  paragraphStyle: { default: '' },
26
26
  placeholder: { default: '' },
27
27
  dataTracked: { default: null },
28
- comments: { default: null },
29
28
  },
30
29
  parseDOM: [
31
30
  {
@@ -19,7 +19,6 @@ exports.inlineEquation = void 0;
19
19
  exports.inlineEquation = {
20
20
  attrs: {
21
21
  dataTracked: { default: null },
22
- comments: { default: null },
23
22
  id: { default: '' },
24
23
  contents: { default: '' },
25
24
  format: { default: '' },
@@ -22,7 +22,6 @@ exports.keyword = {
22
22
  attrs: {
23
23
  id: { default: '' },
24
24
  dataTracked: { default: null },
25
- comments: { default: null },
26
25
  },
27
26
  group: 'block',
28
27
  selectable: false,
@@ -26,7 +26,6 @@ exports.listing = {
26
26
  isExpanded: { default: false },
27
27
  isExecuting: { default: false },
28
28
  dataTracked: { default: null },
29
- comments: { default: null },
30
29
  },
31
30
  draggable: false,
32
31
  selectable: false,
@@ -23,7 +23,6 @@ exports.listingElement = {
23
23
  suppressCaption: { default: true },
24
24
  suppressTitle: { default: undefined },
25
25
  dataTracked: { default: null },
26
- comments: { default: null },
27
26
  },
28
27
  group: 'block element',
29
28
  selectable: false,
@@ -25,7 +25,6 @@ exports.paragraph = {
25
25
  paragraphStyle: { default: '' },
26
26
  placeholder: { default: '' },
27
27
  dataTracked: { default: null },
28
- comments: { default: null },
29
28
  },
30
29
  group: 'block element',
31
30
  selectable: false,
@@ -43,7 +43,6 @@ exports.section = {
43
43
  generatedLabel: { default: undefined },
44
44
  pageBreakStyle: { default: undefined },
45
45
  dataTracked: { default: null },
46
- comments: { default: null },
47
46
  },
48
47
  group: 'block sections',
49
48
  selectable: false,
@@ -29,7 +29,6 @@ exports.tableElement = {
29
29
  suppressHeader: { default: false },
30
30
  expandListing: { default: false },
31
31
  dataTracked: { default: null },
32
- comments: { default: null },
33
32
  },
34
33
  selectable: false,
35
34
  group: 'block element executable',
@@ -222,7 +222,6 @@ class Decoder {
222
222
  page: model.page,
223
223
  title: model.title,
224
224
  literal: model.literal,
225
- comments: comments.map((c) => c.attrs.id),
226
225
  });
227
226
  },
228
227
  [object_types_1.ExtraObjectTypes.PlaceholderElement]: (data) => {
@@ -240,7 +239,6 @@ class Decoder {
240
239
  contentType: model.contentType,
241
240
  src: model.src,
242
241
  position: model.position,
243
- comments: comments.map((c) => c.attrs.id),
244
242
  });
245
243
  },
246
244
  [json_schema_1.ObjectTypes.FigureElement]: (data) => {
@@ -291,7 +289,6 @@ class Decoder {
291
289
  suppressTitle: Boolean(model.suppressTitle === undefined ? true : model.suppressTitle),
292
290
  attribution: model.attribution,
293
291
  alternatives: model.alternatives,
294
- comments: comments.map((c) => c.attrs.id),
295
292
  }, content);
296
293
  },
297
294
  [json_schema_1.ObjectTypes.Equation]: (data) => {
@@ -338,7 +335,6 @@ class Decoder {
338
335
  topNode: schema_1.schema.nodes.footnote.create({
339
336
  id: model._id,
340
337
  kind: model.kind,
341
- comments: comments.map((c) => c.attrs.id),
342
338
  }),
343
339
  });
344
340
  footnotesOfKind.push(footnote);
@@ -359,7 +355,6 @@ class Decoder {
359
355
  topNode: schema_1.schema.nodes.footnote.create({
360
356
  id: footnoteModel._id,
361
357
  kind: footnoteModel.kind,
362
- comments: comments.map((c) => c.attrs.id),
363
358
  }),
364
359
  });
365
360
  },
@@ -381,7 +376,6 @@ class Decoder {
381
376
  return schema_1.schema.nodes.keyword_group.create({
382
377
  id: keywordGroup._id,
383
378
  type: keywordGroup.type,
384
- comments: comments.map((c) => c.attrs.id),
385
379
  }, keywords);
386
380
  },
387
381
  [json_schema_1.ObjectTypes.Keyword]: (data) => {
@@ -391,7 +385,6 @@ class Decoder {
391
385
  return schema_1.schema.nodes.keyword.create({
392
386
  id: keyword._id,
393
387
  contents: keyword.name,
394
- comments: comments.map((c) => c.attrs.id),
395
388
  }, schema_1.schema.text(keyword.name));
396
389
  },
397
390
  [json_schema_1.ObjectTypes.ListElement]: (data) => {
@@ -405,7 +398,6 @@ class Decoder {
405
398
  id: model._id,
406
399
  listStyleType: model.listStyleType || 'order',
407
400
  paragraphStyle: model.paragraphStyle,
408
- comments: comments.map((c) => c.attrs.id),
409
401
  }),
410
402
  });
411
403
  case 'ul':
@@ -429,7 +421,6 @@ class Decoder {
429
421
  contents: model.contents,
430
422
  language: model.language,
431
423
  languageKey: model.languageKey,
432
- comments: comments.map((c) => c.attrs.id),
433
424
  });
434
425
  },
435
426
  [json_schema_1.ObjectTypes.ListingElement]: (data) => {
@@ -455,7 +446,6 @@ class Decoder {
455
446
  id: model._id,
456
447
  suppressCaption: model.suppressCaption,
457
448
  suppressTitle: Boolean(model.suppressTitle === undefined ? true : model.suppressTitle),
458
- comments: comments.map((c) => c.attrs.id),
459
449
  }, [listing, figcaption]);
460
450
  },
461
451
  [json_schema_1.ObjectTypes.MissingFigure]: (data) => {
@@ -474,7 +464,6 @@ class Decoder {
474
464
  id: model._id,
475
465
  paragraphStyle: model.paragraphStyle,
476
466
  placeholder: model.placeholderInnerHTML,
477
- comments: comments.map((c) => c.attrs.id),
478
467
  }),
479
468
  });
480
469
  },
@@ -603,7 +592,6 @@ class Decoder {
603
592
  titleSuppressed: model.titleSuppressed,
604
593
  pageBreakStyle: model.pageBreakStyle,
605
594
  generatedLabel: model.generatedLabel,
606
- comments: comments.map((c) => c.attrs.id),
607
595
  }, content);
608
596
  if (!sectionNode) {
609
597
  console.error(model);
@@ -648,7 +636,6 @@ class Decoder {
648
636
  suppressHeader: model.suppressHeader,
649
637
  tableStyle: model.tableStyle,
650
638
  paragraphStyle: model.paragraphStyle,
651
- comments: comments.map((c) => c.attrs.id),
652
639
  }, content);
653
640
  },
654
641
  [json_schema_1.ObjectTypes.TOCElement]: (data) => {
@@ -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 = "2.3.17";
4
+ exports.VERSION = "2.3.19";
@@ -19,7 +19,6 @@ export const equationElement = {
19
19
  id: { default: '' },
20
20
  label: { default: '' },
21
21
  dataTracked: { default: null },
22
- comments: { default: null },
23
22
  },
24
23
  selectable: false,
25
24
  group: 'block element',
@@ -27,7 +27,6 @@ export const figureElement = {
27
27
  attribution: { default: undefined },
28
28
  alternatives: { default: undefined },
29
29
  dataTracked: { default: null },
30
- comments: { default: null },
31
30
  },
32
31
  selectable: false,
33
32
  group: 'block element executable',
@@ -22,7 +22,6 @@ export const footnote = {
22
22
  paragraphStyle: { default: '' },
23
23
  placeholder: { default: '' },
24
24
  dataTracked: { default: null },
25
- comments: { default: null },
26
25
  },
27
26
  parseDOM: [
28
27
  {
@@ -16,7 +16,6 @@
16
16
  export const inlineEquation = {
17
17
  attrs: {
18
18
  dataTracked: { default: null },
19
- comments: { default: null },
20
19
  id: { default: '' },
21
20
  contents: { default: '' },
22
21
  format: { default: '' },
@@ -19,7 +19,6 @@ export const keyword = {
19
19
  attrs: {
20
20
  id: { default: '' },
21
21
  dataTracked: { default: null },
22
- comments: { default: null },
23
22
  },
24
23
  group: 'block',
25
24
  selectable: false,
@@ -23,7 +23,6 @@ export const listing = {
23
23
  isExpanded: { default: false },
24
24
  isExecuting: { default: false },
25
25
  dataTracked: { default: null },
26
- comments: { default: null },
27
26
  },
28
27
  draggable: false,
29
28
  selectable: false,
@@ -20,7 +20,6 @@ export const listingElement = {
20
20
  suppressCaption: { default: true },
21
21
  suppressTitle: { default: undefined },
22
22
  dataTracked: { default: null },
23
- comments: { default: null },
24
23
  },
25
24
  group: 'block element',
26
25
  selectable: false,
@@ -22,7 +22,6 @@ export const paragraph = {
22
22
  paragraphStyle: { default: '' },
23
23
  placeholder: { default: '' },
24
24
  dataTracked: { default: null },
25
- comments: { default: null },
26
25
  },
27
26
  group: 'block element',
28
27
  selectable: false,
@@ -40,7 +40,6 @@ export const section = {
40
40
  generatedLabel: { default: undefined },
41
41
  pageBreakStyle: { default: undefined },
42
42
  dataTracked: { default: null },
43
- comments: { default: null },
44
43
  },
45
44
  group: 'block sections',
46
45
  selectable: false,
@@ -26,7 +26,6 @@ export const tableElement = {
26
26
  suppressHeader: { default: false },
27
27
  expandListing: { default: false },
28
28
  dataTracked: { default: null },
29
- comments: { default: null },
30
29
  },
31
30
  selectable: false,
32
31
  group: 'block element executable',
@@ -213,7 +213,6 @@ export class Decoder {
213
213
  page: model.page,
214
214
  title: model.title,
215
215
  literal: model.literal,
216
- comments: comments.map((c) => c.attrs.id),
217
216
  });
218
217
  },
219
218
  [ExtraObjectTypes.PlaceholderElement]: (data) => {
@@ -231,7 +230,6 @@ export class Decoder {
231
230
  contentType: model.contentType,
232
231
  src: model.src,
233
232
  position: model.position,
234
- comments: comments.map((c) => c.attrs.id),
235
233
  });
236
234
  },
237
235
  [ObjectTypes.FigureElement]: (data) => {
@@ -282,7 +280,6 @@ export class Decoder {
282
280
  suppressTitle: Boolean(model.suppressTitle === undefined ? true : model.suppressTitle),
283
281
  attribution: model.attribution,
284
282
  alternatives: model.alternatives,
285
- comments: comments.map((c) => c.attrs.id),
286
283
  }, content);
287
284
  },
288
285
  [ObjectTypes.Equation]: (data) => {
@@ -329,7 +326,6 @@ export class Decoder {
329
326
  topNode: schema.nodes.footnote.create({
330
327
  id: model._id,
331
328
  kind: model.kind,
332
- comments: comments.map((c) => c.attrs.id),
333
329
  }),
334
330
  });
335
331
  footnotesOfKind.push(footnote);
@@ -350,7 +346,6 @@ export class Decoder {
350
346
  topNode: schema.nodes.footnote.create({
351
347
  id: footnoteModel._id,
352
348
  kind: footnoteModel.kind,
353
- comments: comments.map((c) => c.attrs.id),
354
349
  }),
355
350
  });
356
351
  },
@@ -372,7 +367,6 @@ export class Decoder {
372
367
  return schema.nodes.keyword_group.create({
373
368
  id: keywordGroup._id,
374
369
  type: keywordGroup.type,
375
- comments: comments.map((c) => c.attrs.id),
376
370
  }, keywords);
377
371
  },
378
372
  [ObjectTypes.Keyword]: (data) => {
@@ -382,7 +376,6 @@ export class Decoder {
382
376
  return schema.nodes.keyword.create({
383
377
  id: keyword._id,
384
378
  contents: keyword.name,
385
- comments: comments.map((c) => c.attrs.id),
386
379
  }, schema.text(keyword.name));
387
380
  },
388
381
  [ObjectTypes.ListElement]: (data) => {
@@ -396,7 +389,6 @@ export class Decoder {
396
389
  id: model._id,
397
390
  listStyleType: model.listStyleType || 'order',
398
391
  paragraphStyle: model.paragraphStyle,
399
- comments: comments.map((c) => c.attrs.id),
400
392
  }),
401
393
  });
402
394
  case 'ul':
@@ -420,7 +412,6 @@ export class Decoder {
420
412
  contents: model.contents,
421
413
  language: model.language,
422
414
  languageKey: model.languageKey,
423
- comments: comments.map((c) => c.attrs.id),
424
415
  });
425
416
  },
426
417
  [ObjectTypes.ListingElement]: (data) => {
@@ -446,7 +437,6 @@ export class Decoder {
446
437
  id: model._id,
447
438
  suppressCaption: model.suppressCaption,
448
439
  suppressTitle: Boolean(model.suppressTitle === undefined ? true : model.suppressTitle),
449
- comments: comments.map((c) => c.attrs.id),
450
440
  }, [listing, figcaption]);
451
441
  },
452
442
  [ObjectTypes.MissingFigure]: (data) => {
@@ -465,7 +455,6 @@ export class Decoder {
465
455
  id: model._id,
466
456
  paragraphStyle: model.paragraphStyle,
467
457
  placeholder: model.placeholderInnerHTML,
468
- comments: comments.map((c) => c.attrs.id),
469
458
  }),
470
459
  });
471
460
  },
@@ -594,7 +583,6 @@ export class Decoder {
594
583
  titleSuppressed: model.titleSuppressed,
595
584
  pageBreakStyle: model.pageBreakStyle,
596
585
  generatedLabel: model.generatedLabel,
597
- comments: comments.map((c) => c.attrs.id),
598
586
  }, content);
599
587
  if (!sectionNode) {
600
588
  console.error(model);
@@ -639,7 +627,6 @@ export class Decoder {
639
627
  suppressHeader: model.suppressHeader,
640
628
  tableStyle: model.tableStyle,
641
629
  paragraphStyle: model.paragraphStyle,
642
- comments: comments.map((c) => c.attrs.id),
643
630
  }, content);
644
631
  },
645
632
  [ObjectTypes.TOCElement]: (data) => {
@@ -1 +1 @@
1
- export const VERSION = "2.3.17";
1
+ export const VERSION = "2.3.19";
@@ -15,11 +15,9 @@
15
15
  */
16
16
  import { NodeSpec } from 'prosemirror-model';
17
17
  import { ManuscriptNode } from '../types';
18
- import { CommentNode } from './comment';
19
18
  interface Attrs {
20
19
  id: string;
21
20
  label: string;
22
- comments?: CommentNode[];
23
21
  }
24
22
  export interface EquationElementNode extends ManuscriptNode {
25
23
  attrs: Attrs;
@@ -16,7 +16,6 @@
16
16
  import { NodeSpec } from 'prosemirror-model';
17
17
  import { ManuscriptNode } from '../types';
18
18
  import { AttributionNode } from './attribution';
19
- import { CommentNode } from './comment';
20
19
  interface Attrs {
21
20
  columns: number;
22
21
  figureLayout: string;
@@ -34,7 +33,6 @@ interface Attrs {
34
33
  src: string;
35
34
  type?: string;
36
35
  }[];
37
- comments?: CommentNode[];
38
36
  }
39
37
  export interface FigureElementNode extends ManuscriptNode {
40
38
  attrs: Attrs;
@@ -15,14 +15,12 @@
15
15
  */
16
16
  import { NodeSpec } from 'prosemirror-model';
17
17
  import { ManuscriptNode } from '../types';
18
- import { CommentNode } from './comment';
19
18
  type Kind = 'footnote' | 'endnote';
20
19
  interface Attrs {
21
20
  id: string;
22
21
  kind: Kind;
23
22
  paragraphStyle?: string;
24
23
  placeholder?: string;
25
- comments?: CommentNode[];
26
24
  }
27
25
  export interface FootnoteNode extends ManuscriptNode {
28
26
  attrs: Attrs;
@@ -15,12 +15,10 @@
15
15
  */
16
16
  import { NodeSpec } from 'prosemirror-model';
17
17
  import { ManuscriptNode } from '../types';
18
- import { CommentNode } from './comment';
19
18
  interface Attrs {
20
19
  id: string;
21
20
  contents: string;
22
21
  format: string;
23
- comments?: CommentNode[];
24
22
  }
25
23
  export interface InlineEquationNode extends ManuscriptNode {
26
24
  attrs: Attrs;
@@ -15,10 +15,8 @@
15
15
  */
16
16
  import { NodeSpec } from 'prosemirror-model';
17
17
  import { ManuscriptNode } from '../types';
18
- import { CommentNode } from './comment';
19
18
  interface Attrs {
20
19
  id: string;
21
- comments?: CommentNode[];
22
20
  }
23
21
  export interface KeywordNode extends ManuscriptNode {
24
22
  attrs: Attrs;
@@ -15,7 +15,6 @@
15
15
  */
16
16
  import { NodeSpec } from 'prosemirror-model';
17
17
  import { ManuscriptNode } from '../types';
18
- import { CommentNode } from './comment';
19
18
  interface Attrs {
20
19
  id: string;
21
20
  contents: string;
@@ -23,7 +22,6 @@ interface Attrs {
23
22
  languageKey: string;
24
23
  isExpanded: boolean;
25
24
  isExecuting: boolean;
26
- comments?: CommentNode[];
27
25
  }
28
26
  export interface ListingNode extends ManuscriptNode {
29
27
  attrs: Attrs;
@@ -15,12 +15,10 @@
15
15
  */
16
16
  import { NodeSpec } from 'prosemirror-model';
17
17
  import { ManuscriptNode } from '../types';
18
- import { CommentNode } from './comment';
19
18
  interface Attrs {
20
19
  id: string;
21
20
  suppressCaption: boolean;
22
21
  suppressTitle?: boolean;
23
- comments?: CommentNode[];
24
22
  }
25
23
  export interface ListingElementNode extends ManuscriptNode {
26
24
  attrs: Attrs;
@@ -15,12 +15,10 @@
15
15
  */
16
16
  import { NodeSpec } from 'prosemirror-model';
17
17
  import { ManuscriptNode } from '../types';
18
- import { CommentNode } from './comment';
19
18
  interface Attrs {
20
19
  id: string;
21
20
  paragraphStyle: string;
22
21
  placeholder: string;
23
- comments?: CommentNode[];
24
22
  }
25
23
  export interface ParagraphNode extends ManuscriptNode {
26
24
  attrs: Attrs;
@@ -15,14 +15,12 @@
15
15
  */
16
16
  import { NodeSpec } from 'prosemirror-model';
17
17
  import { ManuscriptNode } from '../types';
18
- import { CommentNode } from './comment';
19
18
  interface Attrs {
20
19
  id: string;
21
20
  category?: string;
22
21
  titleSuppressed: boolean;
23
22
  generatedLabel: boolean;
24
23
  pageBreakStyle?: number;
25
- comments?: CommentNode[];
26
24
  }
27
25
  export interface SectionNode extends ManuscriptNode {
28
26
  attrs: Attrs;
@@ -15,7 +15,6 @@
15
15
  */
16
16
  import { NodeSpec } from 'prosemirror-model';
17
17
  import { ManuscriptNode } from '../types';
18
- import { CommentNode } from './comment';
19
18
  interface Attrs {
20
19
  id: string;
21
20
  paragraphStyle: string;
@@ -26,7 +25,6 @@ interface Attrs {
26
25
  suppressFooter: boolean;
27
26
  suppressHeader: boolean;
28
27
  expandListing: boolean;
29
- comments?: CommentNode[];
30
28
  }
31
29
  export interface TableElementNode extends ManuscriptNode {
32
30
  attrs: Attrs;
@@ -1 +1 @@
1
- export declare const VERSION = "2.3.17";
1
+ export declare const VERSION = "2.3.19";
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": "2.3.17",
4
+ "version": "2.3.19",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",