@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.
- package/dist/cjs/schema/nodes/equation_element.js +0 -1
- package/dist/cjs/schema/nodes/figure_element.js +0 -1
- package/dist/cjs/schema/nodes/footnote.js +0 -1
- package/dist/cjs/schema/nodes/inline_equation.js +0 -1
- package/dist/cjs/schema/nodes/keyword.js +0 -1
- package/dist/cjs/schema/nodes/listing.js +0 -1
- package/dist/cjs/schema/nodes/listing_element.js +0 -1
- package/dist/cjs/schema/nodes/paragraph.js +0 -1
- package/dist/cjs/schema/nodes/section.js +0 -1
- package/dist/cjs/schema/nodes/table_element.js +0 -1
- package/dist/cjs/transformer/decode.js +0 -13
- package/dist/cjs/version.js +1 -1
- package/dist/es/schema/nodes/equation_element.js +0 -1
- package/dist/es/schema/nodes/figure_element.js +0 -1
- package/dist/es/schema/nodes/footnote.js +0 -1
- package/dist/es/schema/nodes/inline_equation.js +0 -1
- package/dist/es/schema/nodes/keyword.js +0 -1
- package/dist/es/schema/nodes/listing.js +0 -1
- package/dist/es/schema/nodes/listing_element.js +0 -1
- package/dist/es/schema/nodes/paragraph.js +0 -1
- package/dist/es/schema/nodes/section.js +0 -1
- package/dist/es/schema/nodes/table_element.js +0 -1
- package/dist/es/transformer/decode.js +0 -13
- package/dist/es/version.js +1 -1
- package/dist/types/schema/nodes/equation_element.d.ts +0 -2
- package/dist/types/schema/nodes/figure_element.d.ts +0 -2
- package/dist/types/schema/nodes/footnote.d.ts +0 -2
- package/dist/types/schema/nodes/inline_equation.d.ts +0 -2
- package/dist/types/schema/nodes/keyword.d.ts +0 -2
- package/dist/types/schema/nodes/listing.d.ts +0 -2
- package/dist/types/schema/nodes/listing_element.d.ts +0 -2
- package/dist/types/schema/nodes/paragraph.d.ts +0 -2
- package/dist/types/schema/nodes/section.d.ts +0 -2
- package/dist/types/schema/nodes/table_element.d.ts +0 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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) => {
|
package/dist/cjs/version.js
CHANGED
|
@@ -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) => {
|
package/dist/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.3.
|
|
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;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
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.
|
|
4
|
+
"version": "2.3.19",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|