@manuscripts/transform 4.4.1 → 4.4.3

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 (43) hide show
  1. package/dist/cjs/jats/exporter/jats-exporter.js +17 -6
  2. package/dist/cjs/jats/importer/jats-dom-parser.js +10 -1
  3. package/dist/cjs/jats/importer/jats-transformations.js +1 -1
  4. package/dist/cjs/schema/migration/migration-scripts/4.4.2.js +44 -0
  5. package/dist/cjs/schema/migration/migration-scripts/index.js +2 -0
  6. package/dist/cjs/schema/nodes/box_element.js +4 -0
  7. package/dist/cjs/schema/nodes/hero_image.js +2 -0
  8. package/dist/cjs/schema/nodes/pullquote_element.js +4 -0
  9. package/dist/cjs/schema/nodes/table_element.js +9 -8
  10. package/dist/cjs/version.js +1 -1
  11. package/dist/es/jats/exporter/jats-exporter.js +17 -6
  12. package/dist/es/jats/importer/jats-dom-parser.js +10 -1
  13. package/dist/es/jats/importer/jats-transformations.js +1 -1
  14. package/dist/es/schema/migration/migration-scripts/4.4.2.js +42 -0
  15. package/dist/es/schema/migration/migration-scripts/index.js +2 -0
  16. package/dist/es/schema/nodes/box_element.js +4 -0
  17. package/dist/es/schema/nodes/hero_image.js +2 -0
  18. package/dist/es/schema/nodes/pullquote_element.js +4 -0
  19. package/dist/es/schema/nodes/table_element.js +9 -8
  20. package/dist/es/version.js +1 -1
  21. package/dist/types/schema/migration/migration-scripts/4.4.2.d.ts +8 -0
  22. package/dist/types/schema/migration/migration-scripts/index.d.ts +2 -1
  23. package/dist/types/schema/nodes/blockquote_element.d.ts +2 -3
  24. package/dist/types/schema/nodes/box_element.d.ts +1 -0
  25. package/dist/types/schema/nodes/hero_image.d.ts +1 -0
  26. package/dist/types/schema/nodes/pullquote_element.d.ts +3 -2
  27. package/dist/types/schema/nodes/table_element.d.ts +1 -0
  28. package/dist/types/version.d.ts +1 -1
  29. package/package.json +2 -1
  30. package/src/jats/__tests__/__fixtures__/jats-import.xml +17 -2
  31. package/src/jats/__tests__/__snapshots__/jats-importer.test.ts.snap +159 -0
  32. package/src/jats/__tests__/__snapshots__/jats-roundtrip.test.ts.snap +1 -1
  33. package/src/jats/exporter/jats-exporter.ts +21 -6
  34. package/src/jats/importer/jats-dom-parser.ts +10 -2
  35. package/src/jats/importer/jats-transformations.ts +1 -1
  36. package/src/schema/migration/migration-scripts/4.4.2.ts +60 -0
  37. package/src/schema/migration/migration-scripts/index.ts +2 -0
  38. package/src/schema/nodes/blockquote_element.ts +3 -3
  39. package/src/schema/nodes/box_element.ts +6 -0
  40. package/src/schema/nodes/hero_image.ts +3 -0
  41. package/src/schema/nodes/pullquote_element.ts +9 -3
  42. package/src/schema/nodes/table_element.ts +12 -8
  43. package/src/version.ts +1 -1
@@ -268,6 +268,21 @@ xlink:href="prodbe.int.aip.org:8080/journal/journal_fs/
268
268
  <p>It is a far, far better thing that I do now than I have ever done.</p>
269
269
  <attrib>Charles Dickens</attrib>
270
270
  </disp-quote>
271
+ <disp-quote content-type="quote">
272
+ <p>A standard pullquote.</p>
273
+ </disp-quote>
274
+ <disp-quote content-type="half-left">
275
+ <p>A half-left pullquote.</p>
276
+ </disp-quote>
277
+ <disp-quote content-type="half-right">
278
+ <p>A half-right pullquote.</p>
279
+ </disp-quote>
280
+ <disp-quote>
281
+ <p>pullquote without content-type</p>
282
+ </disp-quote>
283
+ <disp-quote content-type="quote">
284
+ <p>blockquote</p>
285
+ </disp-quote>
271
286
  <sec id="BRB3-2019-12-0787-sec1" sec-type="intro">
272
287
  <label>1</label>
273
288
  <title>INTRODUCTION</title>
@@ -345,7 +360,7 @@ xlink:href="prodbe.int.aip.org:8080/journal/journal_fs/
345
360
  <sec>
346
361
  <title>BoxedText test</title>
347
362
  <boxed-text></boxed-text>
348
- <boxed-text>
363
+ <boxed-text content-type="half-left">
349
364
  <label>BoxedTextLabel</label>
350
365
  <caption>
351
366
  <title>BoxedTextCaptionTitle</title>
@@ -548,7 +563,7 @@ xlink:href="prodbe.int.aip.org:8080/journal/journal_fs/
548
563
  <long-desc>example of long desc for graphics inside figures</long-desc>
549
564
  </graphic>
550
565
  </fig>
551
- <table-wrap id="BRB3-2019-12-0787-tbl-0001" position="float">
566
+ <table-wrap id="BRB3-2019-12-0787-tbl-0001" position="float" content-type="half-right">
552
567
  <label>TABLE 1</label>
553
568
  <caption>
554
569
  <title>Baseline characteristics of 73 patients</title>
@@ -3251,6 +3251,7 @@ Object {
3251
3251
  "attrs": Object {
3252
3252
  "dataTracked": null,
3253
3253
  "id": "MPTableElement:test",
3254
+ "type": "",
3254
3255
  },
3255
3256
  "content": Array [
3256
3257
  Object {
@@ -5475,6 +5476,7 @@ Object {
5475
5476
  "attrs": Object {
5476
5477
  "dataTracked": null,
5477
5478
  "id": "MPTableElement:test",
5479
+ "type": "",
5478
5480
  },
5479
5481
  "content": Array [
5480
5482
  Object {
@@ -10982,6 +10984,7 @@ Object {
10982
10984
  "attrs": Object {
10983
10985
  "dataTracked": null,
10984
10986
  "id": "MPTableElement:test",
10987
+ "type": "",
10985
10988
  },
10986
10989
  "content": Array [
10987
10990
  Object {
@@ -14545,6 +14548,7 @@ Object {
14545
14548
  "attrs": Object {
14546
14549
  "dataTracked": null,
14547
14550
  "id": "MPTableElement:test",
14551
+ "type": "",
14548
14552
  },
14549
14553
  "content": Array [
14550
14554
  Object {
@@ -23437,6 +23441,7 @@ Object {
23437
23441
  "attrs": Object {
23438
23442
  "dataTracked": null,
23439
23443
  "id": "MPTableElement:test",
23444
+ "type": "",
23440
23445
  },
23441
23446
  "content": Array [
23442
23447
  Object {
@@ -27682,6 +27687,7 @@ Object {
27682
27687
  "attrs": Object {
27683
27688
  "dataTracked": null,
27684
27689
  "id": "MPTableElement:test",
27690
+ "type": "",
27685
27691
  },
27686
27692
  "content": Array [
27687
27693
  Object {
@@ -31713,6 +31719,7 @@ Object {
31713
31719
  "attrs": Object {
31714
31720
  "dataTracked": null,
31715
31721
  "id": "MPBoxElement:test",
31722
+ "type": "",
31716
31723
  },
31717
31724
  "content": Array [
31718
31725
  Object {
@@ -33740,6 +33747,7 @@ Object {
33740
33747
  "dataTracked": null,
33741
33748
  "id": "MPPullquoteElement:test",
33742
33749
  "placeholder": "",
33750
+ "type": "quote-with-image",
33743
33751
  },
33744
33752
  "content": Array [
33745
33753
  Object {
@@ -33777,6 +33785,149 @@ Object {
33777
33785
  ],
33778
33786
  "type": "pullquote_element",
33779
33787
  },
33788
+ Object {
33789
+ "attrs": Object {
33790
+ "dataTracked": null,
33791
+ "id": "MPBlockquoteElement:test",
33792
+ "placeholder": "",
33793
+ },
33794
+ "content": Array [
33795
+ Object {
33796
+ "attrs": Object {
33797
+ "dataTracked": null,
33798
+ },
33799
+ "content": Array [
33800
+ Object {
33801
+ "text": "A standard pullquote.",
33802
+ "type": "text",
33803
+ },
33804
+ ],
33805
+ "type": "text_block",
33806
+ },
33807
+ Object {
33808
+ "attrs": Object {
33809
+ "dataTracked": null,
33810
+ },
33811
+ "type": "attribution",
33812
+ },
33813
+ ],
33814
+ "type": "blockquote_element",
33815
+ },
33816
+ Object {
33817
+ "attrs": Object {
33818
+ "dataTracked": null,
33819
+ "id": "MPPullquoteElement:test",
33820
+ "placeholder": "",
33821
+ "type": "half-left",
33822
+ },
33823
+ "content": Array [
33824
+ Object {
33825
+ "attrs": Object {
33826
+ "dataTracked": null,
33827
+ },
33828
+ "content": Array [
33829
+ Object {
33830
+ "text": "A half-left pullquote.",
33831
+ "type": "text",
33832
+ },
33833
+ ],
33834
+ "type": "text_block",
33835
+ },
33836
+ Object {
33837
+ "attrs": Object {
33838
+ "dataTracked": null,
33839
+ },
33840
+ "type": "attribution",
33841
+ },
33842
+ ],
33843
+ "type": "pullquote_element",
33844
+ },
33845
+ Object {
33846
+ "attrs": Object {
33847
+ "dataTracked": null,
33848
+ "id": "MPPullquoteElement:test",
33849
+ "placeholder": "",
33850
+ "type": "half-right",
33851
+ },
33852
+ "content": Array [
33853
+ Object {
33854
+ "attrs": Object {
33855
+ "dataTracked": null,
33856
+ },
33857
+ "content": Array [
33858
+ Object {
33859
+ "text": "A half-right pullquote.",
33860
+ "type": "text",
33861
+ },
33862
+ ],
33863
+ "type": "text_block",
33864
+ },
33865
+ Object {
33866
+ "attrs": Object {
33867
+ "dataTracked": null,
33868
+ },
33869
+ "type": "attribution",
33870
+ },
33871
+ ],
33872
+ "type": "pullquote_element",
33873
+ },
33874
+ Object {
33875
+ "attrs": Object {
33876
+ "dataTracked": null,
33877
+ "id": "MPPullquoteElement:test",
33878
+ "placeholder": "",
33879
+ "type": null,
33880
+ },
33881
+ "content": Array [
33882
+ Object {
33883
+ "attrs": Object {
33884
+ "dataTracked": null,
33885
+ },
33886
+ "content": Array [
33887
+ Object {
33888
+ "text": "pullquote without content-type",
33889
+ "type": "text",
33890
+ },
33891
+ ],
33892
+ "type": "text_block",
33893
+ },
33894
+ Object {
33895
+ "attrs": Object {
33896
+ "dataTracked": null,
33897
+ },
33898
+ "type": "attribution",
33899
+ },
33900
+ ],
33901
+ "type": "pullquote_element",
33902
+ },
33903
+ Object {
33904
+ "attrs": Object {
33905
+ "dataTracked": null,
33906
+ "id": "MPBlockquoteElement:test",
33907
+ "placeholder": "",
33908
+ },
33909
+ "content": Array [
33910
+ Object {
33911
+ "attrs": Object {
33912
+ "dataTracked": null,
33913
+ },
33914
+ "content": Array [
33915
+ Object {
33916
+ "text": "blockquote",
33917
+ "type": "text",
33918
+ },
33919
+ ],
33920
+ "type": "text_block",
33921
+ },
33922
+ Object {
33923
+ "attrs": Object {
33924
+ "dataTracked": null,
33925
+ },
33926
+ "type": "attribution",
33927
+ },
33928
+ ],
33929
+ "type": "blockquote_element",
33930
+ },
33780
33931
  Object {
33781
33932
  "attrs": Object {
33782
33933
  "category": "intro",
@@ -34162,6 +34313,7 @@ Object {
34162
34313
  "attrs": Object {
34163
34314
  "dataTracked": null,
34164
34315
  "id": "MPBoxElement:test",
34316
+ "type": "",
34165
34317
  },
34166
34318
  "content": Array [
34167
34319
  Object {
@@ -34194,6 +34346,7 @@ Object {
34194
34346
  "attrs": Object {
34195
34347
  "dataTracked": null,
34196
34348
  "id": "MPBoxElement:test",
34349
+ "type": "half-left",
34197
34350
  },
34198
34351
  "content": Array [
34199
34352
  Object {
@@ -34380,6 +34533,7 @@ Object {
34380
34533
  "attrs": Object {
34381
34534
  "dataTracked": null,
34382
34535
  "id": "MPBoxElement:test",
34536
+ "type": "",
34383
34537
  },
34384
34538
  "content": Array [
34385
34539
  Object {
@@ -35073,6 +35227,7 @@ Object {
35073
35227
  "attrs": Object {
35074
35228
  "dataTracked": null,
35075
35229
  "id": "MPTableElement:test",
35230
+ "type": "half-right",
35076
35231
  },
35077
35232
  "content": Array [
35078
35233
  Object {
@@ -39330,6 +39485,7 @@ Object {
39330
39485
  "attrs": Object {
39331
39486
  "dataTracked": null,
39332
39487
  "id": "MPTableElement:test",
39488
+ "type": "",
39333
39489
  },
39334
39490
  "content": Array [
39335
39491
  Object {
@@ -44415,6 +44571,7 @@ Object {
44415
44571
  "attrs": Object {
44416
44572
  "dataTracked": null,
44417
44573
  "id": "MPHeroImage:test",
44574
+ "type": "leading",
44418
44575
  },
44419
44576
  "content": Array [
44420
44577
  Object {
@@ -46885,6 +47042,7 @@ Object {
46885
47042
  "attrs": Object {
46886
47043
  "dataTracked": null,
46887
47044
  "id": "MPTableElement:test",
47045
+ "type": "",
46888
47046
  },
46889
47047
  "content": Array [
46890
47048
  Object {
@@ -55247,6 +55405,7 @@ Object {
55247
55405
  "attrs": Object {
55248
55406
  "dataTracked": null,
55249
55407
  "id": "MPTableElement:test",
55408
+ "type": "",
55250
55409
  },
55251
55410
  "content": Array [
55252
55411
  Object {