@manuscripts/transform 3.0.26-LEAN-3837.1 → 3.0.26

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.
@@ -22,12 +22,10 @@ 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 migrations = [
27
26
  new _1_2_5_1.default(),
28
27
  new _2_3_22_1.default(),
29
28
  new _3_0_12_1.Migration3012(),
30
29
  new _3_0_21_1.default(),
31
- new _3_0_22_1.default(),
32
30
  ];
33
31
  exports.default = migrations;
@@ -18,7 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.abstracts = void 0;
19
19
  exports.abstracts = {
20
20
  content: 'sections*',
21
- atom: true,
22
21
  attrs: {
23
22
  id: { default: '' },
24
23
  },
@@ -18,7 +18,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.body = void 0;
19
19
  exports.body = {
20
20
  content: 'element* sections*',
21
- atom: true,
22
21
  attrs: {
23
22
  id: { default: '' },
24
23
  },
@@ -37,7 +37,7 @@ function createCellAttribute(attributeName, defaultValue = null, customGetFromDO
37
37
  };
38
38
  }
39
39
  const tableOptions = {
40
- cellContent: 'paragraph+',
40
+ cellContent: 'inline*',
41
41
  cellAttributes: {
42
42
  placeholder: createCellAttribute('data-placeholder-text', 'Data', (dom) => dom.getAttribute('data-placeholder-text') || ''),
43
43
  valign: createCellAttribute('valign'),
@@ -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.26-LEAN-3837.1";
4
+ exports.VERSION = "3.0.26";
@@ -17,12 +17,10 @@ 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
  const migrations = [
22
21
  new Migration125(),
23
22
  new Migration2322(),
24
23
  new Migration3012(),
25
24
  new Migration3021(),
26
- new Migration3022(),
27
25
  ];
28
26
  export default migrations;
@@ -15,7 +15,6 @@
15
15
  */
16
16
  export const abstracts = {
17
17
  content: 'sections*',
18
- atom: true,
19
18
  attrs: {
20
19
  id: { default: '' },
21
20
  },
@@ -15,7 +15,6 @@
15
15
  */
16
16
  export const body = {
17
17
  content: 'element* sections*',
18
- atom: true,
19
18
  attrs: {
20
19
  id: { default: '' },
21
20
  },
@@ -34,7 +34,7 @@ function createCellAttribute(attributeName, defaultValue = null, customGetFromDO
34
34
  };
35
35
  }
36
36
  const tableOptions = {
37
- cellContent: 'paragraph+',
37
+ cellContent: 'inline*',
38
38
  cellAttributes: {
39
39
  placeholder: createCellAttribute('data-placeholder-text', 'Data', (dom) => dom.getAttribute('data-placeholder-text') || ''),
40
40
  valign: createCellAttribute('valign'),
@@ -1 +1 @@
1
- export const VERSION = "3.0.26-LEAN-3837.1";
1
+ export const VERSION = "3.0.26";
@@ -17,6 +17,5 @@ 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
- declare const migrations: (Migration125 | Migration2322 | Migration3012 | Migration3021 | Migration3022)[];
20
+ declare const migrations: (Migration125 | Migration2322 | Migration3012 | Migration3021)[];
22
21
  export default migrations;
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.26-LEAN-3837.1";
1
+ export declare const VERSION = "3.0.26";
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.26-LEAN-3837.1",
4
+ "version": "3.0.26",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class Migration3021 {
4
- constructor() {
5
- this.fromVersion = '3.0.21';
6
- this.toVersion = '3.0.22';
7
- }
8
- migrateNode(node) {
9
- if (node.type === 'table_header' || node.type === 'table_cell') {
10
- return Object.assign(Object.assign({}, node), { content: [
11
- {
12
- type: 'paragraph',
13
- attrs: {},
14
- content: node.content,
15
- },
16
- ] });
17
- }
18
- return node;
19
- }
20
- }
21
- exports.default = Migration3021;
@@ -1,19 +0,0 @@
1
- class Migration3021 {
2
- constructor() {
3
- this.fromVersion = '3.0.21';
4
- this.toVersion = '3.0.22';
5
- }
6
- migrateNode(node) {
7
- if (node.type === 'table_header' || node.type === 'table_cell') {
8
- return Object.assign(Object.assign({}, node), { content: [
9
- {
10
- type: 'paragraph',
11
- attrs: {},
12
- content: node.content,
13
- },
14
- ] });
15
- }
16
- return node;
17
- }
18
- }
19
- export default Migration3021;
@@ -1,8 +0,0 @@
1
- import { JSONNode } from '../migrate';
2
- import { MigrationScript } from '../migration-script';
3
- declare class Migration3021 implements MigrationScript {
4
- fromVersion: string;
5
- toVersion: string;
6
- migrateNode(node: JSONNode): JSONNode;
7
- }
8
- export default Migration3021;