@manuscripts/transform 3.0.33-LEAN-4218.1 → 3.0.33

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.
@@ -560,8 +560,6 @@ class JATSExporter {
560
560
  if (mimeSubtype) {
561
561
  mediaElement.setAttribute('mime-subtype', node.attrs.mimeSubtype);
562
562
  }
563
- appendLabels(mediaElement, node);
564
- appendChildNodeOfType(mediaElement, node, node.type.schema.nodes.figcaption);
565
563
  return mediaElement;
566
564
  },
567
565
  awards: () => ['funding-group', 0],
@@ -24,7 +24,6 @@ const labelledNodeTypes = [
24
24
  schema_1.schema.nodes.equation_element,
25
25
  schema_1.schema.nodes.listing_element,
26
26
  schema_1.schema.nodes.box_element,
27
- schema_1.schema.nodes.embed,
28
27
  ];
29
28
  const excludedTypes = [schema_1.schema.nodes.graphical_abstract_section];
30
29
  const chooseLabel = (nodeType) => {
@@ -436,7 +436,7 @@ class JATSDOMParser {
436
436
  {
437
437
  tag: 'caption',
438
438
  node: 'figcaption',
439
- context: 'figure_element/|table_element/|embed/',
439
+ context: 'figure_element/|table_element/',
440
440
  getContent: (node, schema) => {
441
441
  const element = node;
442
442
  const content = [];
@@ -26,7 +26,7 @@ const createSectionGroup = (type, createElement) => {
26
26
  return sec;
27
27
  };
28
28
  const addMissingCaptions = (doc, createElement) => {
29
- const elements = doc.querySelectorAll('fig, table-wrap, media');
29
+ const elements = doc.querySelectorAll('fig, table-wrap');
30
30
  for (const element of elements) {
31
31
  let caption = element.querySelector('caption');
32
32
  if (!caption) {
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- class Migration3021 {
3
+ class Migration3031 {
4
4
  constructor() {
5
- this.fromVersion = '3.0.21';
6
- this.toVersion = '3.0.22';
5
+ this.fromVersion = '3.0.30';
6
+ this.toVersion = '3.0.31';
7
7
  }
8
8
  migrateNode(node) {
9
9
  if (node.type === 'table_header' || node.type === 'table_cell') {
@@ -18,4 +18,4 @@ class Migration3021 {
18
18
  return node;
19
19
  }
20
20
  }
21
- exports.default = Migration3021;
21
+ exports.default = Migration3031;
@@ -22,14 +22,14 @@ const _1_2_5_1 = __importDefault(require("./1.2.5"));
22
22
  const _2_3_22_1 = __importDefault(require("./2.3.22"));
23
23
  const _3_0_12_1 = require("./3.0.12");
24
24
  const _3_0_21_1 = __importDefault(require("./3.0.21"));
25
- const _3_0_22_1 = __importDefault(require("./3.0.22"));
26
25
  const _3_0_30_1 = __importDefault(require("./3.0.30"));
26
+ const _3_0_31_1 = __importDefault(require("./3.0.31"));
27
27
  const migrations = [
28
28
  new _1_2_5_1.default(),
29
29
  new _2_3_22_1.default(),
30
30
  new _3_0_12_1.Migration3012(),
31
31
  new _3_0_21_1.default(),
32
- new _3_0_22_1.default(),
33
32
  new _3_0_30_1.default(),
33
+ new _3_0_31_1.default(),
34
34
  ];
35
35
  exports.default = migrations;
@@ -17,7 +17,6 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.isEmbedNode = exports.embed = void 0;
19
19
  exports.embed = {
20
- content: "figcaption",
21
20
  attrs: {
22
21
  id: { default: '' },
23
22
  dataTracked: { default: null },
@@ -37,7 +37,6 @@ exports.nodeNames = new Map([
37
37
  [schema_1.schema.nodes.table_header, 'Table Header'],
38
38
  [schema_1.schema.nodes.general_table_footnote, 'General Table note'],
39
39
  [schema_1.schema.nodes.table_element_footer, 'Table Footer'],
40
- [schema_1.schema.nodes.embed, 'Media'],
41
40
  [schema_1.schema.nodes.equation, 'Equation'],
42
41
  [schema_1.schema.nodes.inline_equation, 'Inline Equation'],
43
42
  [schema_1.schema.nodes.inline_footnote, 'Footnote Reference'],
@@ -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 = "3.0.33-LEAN-4218.1";
4
+ exports.VERSION = "3.0.33";
@@ -552,8 +552,6 @@ export class JATSExporter {
552
552
  if (mimeSubtype) {
553
553
  mediaElement.setAttribute('mime-subtype', node.attrs.mimeSubtype);
554
554
  }
555
- appendLabels(mediaElement, node);
556
- appendChildNodeOfType(mediaElement, node, node.type.schema.nodes.figcaption);
557
555
  return mediaElement;
558
556
  },
559
557
  awards: () => ['funding-group', 0],
@@ -21,7 +21,6 @@ const labelledNodeTypes = [
21
21
  schema.nodes.equation_element,
22
22
  schema.nodes.listing_element,
23
23
  schema.nodes.box_element,
24
- schema.nodes.embed,
25
24
  ];
26
25
  const excludedTypes = [schema.nodes.graphical_abstract_section];
27
26
  const chooseLabel = (nodeType) => {
@@ -433,7 +433,7 @@ export class JATSDOMParser {
433
433
  {
434
434
  tag: 'caption',
435
435
  node: 'figcaption',
436
- context: 'figure_element/|table_element/|embed/',
436
+ context: 'figure_element/|table_element/',
437
437
  getContent: (node, schema) => {
438
438
  const element = node;
439
439
  const content = [];
@@ -23,7 +23,7 @@ const createSectionGroup = (type, createElement) => {
23
23
  return sec;
24
24
  };
25
25
  export const addMissingCaptions = (doc, createElement) => {
26
- const elements = doc.querySelectorAll('fig, table-wrap, media');
26
+ const elements = doc.querySelectorAll('fig, table-wrap');
27
27
  for (const element of elements) {
28
28
  let caption = element.querySelector('caption');
29
29
  if (!caption) {
@@ -1,7 +1,7 @@
1
- class Migration3021 {
1
+ class Migration3031 {
2
2
  constructor() {
3
- this.fromVersion = '3.0.21';
4
- this.toVersion = '3.0.22';
3
+ this.fromVersion = '3.0.30';
4
+ this.toVersion = '3.0.31';
5
5
  }
6
6
  migrateNode(node) {
7
7
  if (node.type === 'table_header' || node.type === 'table_cell') {
@@ -16,4 +16,4 @@ class Migration3021 {
16
16
  return node;
17
17
  }
18
18
  }
19
- export default Migration3021;
19
+ export default Migration3031;
@@ -17,14 +17,14 @@ import Migration125 from './1.2.5';
17
17
  import Migration2322 from './2.3.22';
18
18
  import { Migration3012 } from './3.0.12';
19
19
  import Migration3021 from './3.0.21';
20
- import Migration3022 from './3.0.22';
21
20
  import Migration3030 from './3.0.30';
21
+ import Migration3031 from './3.0.31';
22
22
  const migrations = [
23
23
  new Migration125(),
24
24
  new Migration2322(),
25
25
  new Migration3012(),
26
26
  new Migration3021(),
27
- new Migration3022(),
28
27
  new Migration3030(),
28
+ new Migration3031(),
29
29
  ];
30
30
  export default migrations;
@@ -14,7 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  export const embed = {
17
- content: "figcaption",
18
17
  attrs: {
19
18
  id: { default: '' },
20
19
  dataTracked: { default: null },
@@ -34,7 +34,6 @@ export const nodeNames = new Map([
34
34
  [schema.nodes.table_header, 'Table Header'],
35
35
  [schema.nodes.general_table_footnote, 'General Table note'],
36
36
  [schema.nodes.table_element_footer, 'Table Footer'],
37
- [schema.nodes.embed, 'Media'],
38
37
  [schema.nodes.equation, 'Equation'],
39
38
  [schema.nodes.inline_equation, 'Inline Equation'],
40
39
  [schema.nodes.inline_footnote, 'Footnote Reference'],
@@ -1 +1 @@
1
- export const VERSION = "3.0.33-LEAN-4218.1";
1
+ export const VERSION = "3.0.33";
@@ -1,8 +1,8 @@
1
1
  import { JSONNode } from '../migrate';
2
2
  import { MigrationScript } from '../migration-script';
3
- declare class Migration3021 implements MigrationScript {
3
+ declare class Migration3031 implements MigrationScript {
4
4
  fromVersion: string;
5
5
  toVersion: string;
6
6
  migrateNode(node: JSONNode): JSONNode;
7
7
  }
8
- export default Migration3021;
8
+ export default Migration3031;
@@ -17,7 +17,7 @@ import Migration125 from './1.2.5';
17
17
  import Migration2322 from './2.3.22';
18
18
  import { Migration3012 } from './3.0.12';
19
19
  import Migration3021 from './3.0.21';
20
- import Migration3022 from './3.0.22';
21
20
  import Migration3030 from './3.0.30';
22
- declare const migrations: (Migration125 | Migration2322 | Migration3012 | Migration3021 | Migration3022 | Migration3030)[];
21
+ import Migration3031 from './3.0.31';
22
+ declare const migrations: (Migration125 | Migration2322 | Migration3012 | Migration3021 | Migration3030 | Migration3031)[];
23
23
  export default migrations;
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.33-LEAN-4218.1";
1
+ export declare const VERSION = "3.0.33";
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": "3.0.33-LEAN-4218.1",
4
+ "version": "3.0.33",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",