@manuscripts/transform 3.0.53 → 3.0.54-LEAN-4100-moving-type.0

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.
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /*!
3
+ * © 2019 Atypon Systems LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.53";
4
+ exports.VERSION = "3.0.54-LEAN-4100-moving-type.0";
@@ -0,0 +1,16 @@
1
+ /*!
2
+ * © 2019 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
@@ -1 +1 @@
1
- export const VERSION = "3.0.53";
1
+ export const VERSION = "3.0.54-LEAN-4100-moving-type.0";
@@ -6,6 +6,6 @@ export * from './lib/footnotes';
6
6
  export * from './lib/utils';
7
7
  export * from './lib/section-categories';
8
8
  export * from './schema';
9
- export { JSONNode, migrateFor } from './schema/migration/migrate';
9
+ export { migrateFor } from './schema/migration/migrate';
10
10
  export { isSectionLabelNode } from './schema/nodes/section_label';
11
11
  export * from './transformer';
@@ -1,15 +1,4 @@
1
+ import { JSONProsemirrorNode } from '../../types';
1
2
  import { MigrationScript } from './migration-script';
2
- export type JSONNode = {
3
- type: string;
4
- attrs: {
5
- [key: string]: any;
6
- };
7
- content?: JSONNode[];
8
- text?: string;
9
- marks?: Array<{
10
- type: string;
11
- attrs?: Record<string, any>;
12
- }>;
13
- };
14
- export default function migrate(oldDoc: JSONNode, migrationScript: MigrationScript['migrateNode']): JSONNode;
15
- export declare function migrateFor(oldDoc: JSONNode, baseVersion: string): import("prosemirror-model").Node;
3
+ export default function migrate(oldDoc: JSONProsemirrorNode, migrationScript: MigrationScript['migrateNode']): JSONProsemirrorNode;
4
+ export declare function migrateFor(oldDoc: JSONProsemirrorNode, baseVersion: string): import("prosemirror-model").Node;
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { JSONNode } from './migrate';
16
+ import { JSONProsemirrorNode } from '../../types';
17
17
  export interface MigrationScript {
18
18
  fromVersion: string;
19
19
  toVersion: string;
20
- migrateNode: (node: JSONNode, doc: JSONNode) => JSONNode;
20
+ migrateNode: (node: JSONProsemirrorNode, doc: JSONProsemirrorNode) => JSONProsemirrorNode;
21
21
  }
@@ -13,11 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { JSONNode } from '../migrate';
16
+ import { JSONProsemirrorNode } from '../../../types';
17
17
  import { MigrationScript } from '../migration-script';
18
18
  declare class Migration125 implements MigrationScript {
19
19
  fromVersion: string;
20
20
  toVersion: string;
21
- migrateNode(node: JSONNode, doc: JSONNode): JSONNode;
21
+ migrateNode(node: JSONProsemirrorNode, doc: JSONProsemirrorNode): JSONProsemirrorNode;
22
22
  }
23
23
  export default Migration125;
@@ -1,8 +1,8 @@
1
- import { JSONNode } from '../migrate';
1
+ import { JSONProsemirrorNode } from '../../../types';
2
2
  import { MigrationScript } from '../migration-script';
3
3
  declare class Migration2322 implements MigrationScript {
4
4
  fromVersion: string;
5
5
  toVersion: string;
6
- migrateNode(node: JSONNode): JSONNode;
6
+ migrateNode(node: JSONProsemirrorNode): JSONProsemirrorNode;
7
7
  }
8
8
  export default Migration2322;
@@ -1,7 +1,7 @@
1
- import { JSONNode } from '../migrate';
1
+ import { JSONProsemirrorNode } from '../../../types';
2
2
  import { MigrationScript } from '../migration-script';
3
3
  export declare class Migration3012 implements MigrationScript {
4
4
  fromVersion: string;
5
5
  toVersion: string;
6
- migrateNode(node: JSONNode): JSONNode;
6
+ migrateNode(node: JSONProsemirrorNode): JSONProsemirrorNode;
7
7
  }
@@ -1,9 +1,9 @@
1
- import { JSONNode } from '../migrate';
1
+ import { JSONProsemirrorNode } from '../../../types';
2
2
  import { MigrationScript } from '../migration-script';
3
3
  declare class Migration3021 implements MigrationScript {
4
4
  fromVersion: string;
5
5
  toVersion: string;
6
6
  private suffixMap;
7
- migrateNode(node: JSONNode): JSONNode;
7
+ migrateNode(node: JSONProsemirrorNode): JSONProsemirrorNode;
8
8
  }
9
9
  export default Migration3021;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { JSONNode } from '../migrate';
16
+ import { JSONProsemirrorNode } from '../../../types';
17
17
  import { MigrationScript } from '../migration-script';
18
18
  declare class Migration3030 implements MigrationScript {
19
19
  fromVersion: string;
@@ -21,6 +21,6 @@ declare class Migration3030 implements MigrationScript {
21
21
  private addTypeToFigures;
22
22
  private migrateFigure;
23
23
  private migrateFigureElement;
24
- migrateNode(node: JSONNode): JSONNode;
24
+ migrateNode(node: JSONProsemirrorNode): JSONProsemirrorNode;
25
25
  }
26
26
  export default Migration3030;
@@ -1,8 +1,8 @@
1
- import { JSONNode } from '../migrate';
1
+ import { JSONProsemirrorNode } from '../../../types';
2
2
  import { MigrationScript } from '../migration-script';
3
3
  declare class Migration3031 implements MigrationScript {
4
4
  fromVersion: string;
5
5
  toVersion: string;
6
- migrateNode(node: JSONNode): JSONNode;
6
+ migrateNode(node: JSONProsemirrorNode): JSONProsemirrorNode;
7
7
  }
8
8
  export default Migration3031;
@@ -1,8 +1,8 @@
1
- import { JSONNode } from '../migrate';
1
+ import { JSONProsemirrorNode } from '../../../types';
2
2
  import { MigrationScript } from '../migration-script';
3
3
  declare class Migration3041 implements MigrationScript {
4
4
  fromVersion: string;
5
5
  toVersion: string;
6
- migrateNode(node: JSONNode): JSONNode;
6
+ migrateNode(node: JSONProsemirrorNode): JSONProsemirrorNode;
7
7
  }
8
8
  export default Migration3041;
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * © 2019 Atypon Systems LLC
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export type JSONProsemirrorNode = {
17
+ type: string;
18
+ attrs: {
19
+ [key: string]: any;
20
+ };
21
+ content?: JSONProsemirrorNode[];
22
+ text?: string;
23
+ marks?: Array<{
24
+ type: string;
25
+ attrs?: Record<string, any>;
26
+ }>;
27
+ };
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.53";
1
+ export declare const VERSION = "3.0.54-LEAN-4100-moving-type.0";
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.53",
4
+ "version": "3.0.54-LEAN-4100-moving-type.0",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-transform",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",