@manuscripts/transform 2.0.0-LEAN-3074-2 → 2.0.1-LEAN-3083
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/contributor.js +1 -0
- package/dist/cjs/schema/nodes/manuscript.js +1 -2
- package/dist/cjs/schema/nodes/table_element.js +1 -1
- package/dist/cjs/transformer/decode.js +1 -1
- package/dist/es/schema/nodes/contributor.js +1 -0
- package/dist/es/schema/nodes/manuscript.js +1 -2
- package/dist/es/schema/nodes/table_element.js +1 -1
- package/dist/es/transformer/decode.js +1 -1
- package/dist/types/schema/nodes/contributor.d.ts +1 -0
- package/package.json +2 -2
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
*/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.isManuscriptNode = exports.manuscript = void 0;
|
|
19
|
-
const index_1 = require("../index");
|
|
20
19
|
exports.manuscript = {
|
|
21
20
|
content: 'title? contributors? affiliations? keywords? abstracts body backmatter comments',
|
|
22
21
|
attrs: {
|
|
@@ -45,5 +44,5 @@ exports.manuscript = {
|
|
|
45
44
|
];
|
|
46
45
|
},
|
|
47
46
|
};
|
|
48
|
-
const isManuscriptNode = (node) => node.type ===
|
|
47
|
+
const isManuscriptNode = (node) => node.type === node.type.schema.nodes.manuscript;
|
|
49
48
|
exports.isManuscriptNode = isManuscriptNode;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.tableElement = void 0;
|
|
19
19
|
exports.tableElement = {
|
|
20
|
-
content: '(table | placeholder)
|
|
20
|
+
content: '(table | placeholder) figcaption? table_element_footer? (listing | placeholder)',
|
|
21
21
|
attrs: {
|
|
22
22
|
id: { default: '' },
|
|
23
23
|
paragraphStyle: { default: '' },
|
|
@@ -564,7 +564,7 @@ class Decoder {
|
|
|
564
564
|
const comments = this.createCommentNodes(model);
|
|
565
565
|
comments.forEach((c) => this.comments.set(c.attrs.id, c));
|
|
566
566
|
const content = tableElementFooter
|
|
567
|
-
? [table,
|
|
567
|
+
? [table, figcaption, tableElementFooter]
|
|
568
568
|
: [table, figcaption];
|
|
569
569
|
if (model.listingID) {
|
|
570
570
|
const listing = this.createListing(model.listingID);
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { schema } from '../index';
|
|
17
16
|
export const manuscript = {
|
|
18
17
|
content: 'title? contributors? affiliations? keywords? abstracts body backmatter comments',
|
|
19
18
|
attrs: {
|
|
@@ -42,4 +41,4 @@ export const manuscript = {
|
|
|
42
41
|
];
|
|
43
42
|
},
|
|
44
43
|
};
|
|
45
|
-
export const isManuscriptNode = (node) => node.type === schema.nodes.manuscript;
|
|
44
|
+
export const isManuscriptNode = (node) => node.type === node.type.schema.nodes.manuscript;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export const tableElement = {
|
|
17
|
-
content: '(table | placeholder)
|
|
17
|
+
content: '(table | placeholder) figcaption? table_element_footer? (listing | placeholder)',
|
|
18
18
|
attrs: {
|
|
19
19
|
id: { default: '' },
|
|
20
20
|
paragraphStyle: { default: '' },
|
|
@@ -555,7 +555,7 @@ export class Decoder {
|
|
|
555
555
|
const comments = this.createCommentNodes(model);
|
|
556
556
|
comments.forEach((c) => this.comments.set(c.attrs.id, c));
|
|
557
557
|
const content = tableElementFooter
|
|
558
|
-
? [table,
|
|
558
|
+
? [table, figcaption, tableElementFooter]
|
|
559
559
|
: [table, figcaption];
|
|
560
560
|
if (model.listingID) {
|
|
561
561
|
const listing = this.createListing(model.listingID);
|
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.0.
|
|
4
|
+
"version": "2.0.1-LEAN-3083",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -77,4 +77,4 @@
|
|
|
77
77
|
"rimraf": "^3.0.2",
|
|
78
78
|
"typescript": "^4.0.5"
|
|
79
79
|
}
|
|
80
|
-
}
|
|
80
|
+
}
|