@manuscripts/transform 2.3.3-LEAN-3519-0 → 2.3.3-LEAN-3519-1
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/general_table_footnote.js +1 -1
- package/dist/cjs/transformer/decode.js +2 -3
- package/dist/cjs/transformer/object-types.js +1 -0
- package/dist/es/schema/nodes/general_table_footnote.js +1 -1
- package/dist/es/transformer/decode.js +2 -3
- package/dist/es/transformer/object-types.js +1 -0
- package/dist/types/transformer/object-types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -38,6 +38,7 @@ const section_group_type_1 = require("../lib/section-group-type");
|
|
|
38
38
|
const schema_1 = require("../schema");
|
|
39
39
|
const builders_1 = require("./builders");
|
|
40
40
|
const highlight_markers_1 = require("./highlight-markers");
|
|
41
|
+
const id_1 = require("./id");
|
|
41
42
|
const object_types_1 = require("./object-types");
|
|
42
43
|
const section_category_1 = require("./section-category");
|
|
43
44
|
const timestamp_1 = require("./timestamp");
|
|
@@ -508,9 +509,7 @@ class Decoder {
|
|
|
508
509
|
}
|
|
509
510
|
}
|
|
510
511
|
if (generalTableFootnotes && generalTableFootnotes.length) {
|
|
511
|
-
contents.push(schema_1.schema.nodes.general_table_footnote.create({}, [
|
|
512
|
-
...generalTableFootnotes,
|
|
513
|
-
]));
|
|
512
|
+
contents.push(schema_1.schema.nodes.general_table_footnote.create({ id: (0, id_1.generateID)(object_types_1.ExtraObjectTypes.GeneralTableFootnote) }, [...generalTableFootnotes]));
|
|
514
513
|
}
|
|
515
514
|
if (footnotesElements && footnotesElements.length) {
|
|
516
515
|
contents.push(...footnotesElements);
|
|
@@ -20,6 +20,7 @@ const json_schema_1 = require("@manuscripts/json-schema");
|
|
|
20
20
|
var ExtraObjectTypes;
|
|
21
21
|
(function (ExtraObjectTypes) {
|
|
22
22
|
ExtraObjectTypes["PlaceholderElement"] = "MPPlaceholderElement";
|
|
23
|
+
ExtraObjectTypes["GeneralTableFootnote"] = "MPGeneralTableFootnote";
|
|
23
24
|
})(ExtraObjectTypes = exports.ExtraObjectTypes || (exports.ExtraObjectTypes = {}));
|
|
24
25
|
exports.elementObjects = [
|
|
25
26
|
json_schema_1.ObjectTypes.BibliographyElement,
|
|
@@ -32,6 +32,7 @@ import { abstractsType, backmatterType, bodyType, } from '../lib/section-group-t
|
|
|
32
32
|
import { schema, } from '../schema';
|
|
33
33
|
import { buildTitles } from './builders';
|
|
34
34
|
import { insertHighlightMarkers } from './highlight-markers';
|
|
35
|
+
import { generateID } from './id';
|
|
35
36
|
import { ExtraObjectTypes, isCommentAnnotation, isManuscript, } from './object-types';
|
|
36
37
|
import { chooseSectionLableName, chooseSectionNodeType, chooseSecType, getSectionGroupType, guessSectionCategory, } from './section-category';
|
|
37
38
|
import { timestamp } from './timestamp';
|
|
@@ -499,9 +500,7 @@ export class Decoder {
|
|
|
499
500
|
}
|
|
500
501
|
}
|
|
501
502
|
if (generalTableFootnotes && generalTableFootnotes.length) {
|
|
502
|
-
contents.push(schema.nodes.general_table_footnote.create({}, [
|
|
503
|
-
...generalTableFootnotes,
|
|
504
|
-
]));
|
|
503
|
+
contents.push(schema.nodes.general_table_footnote.create({ id: generateID(ExtraObjectTypes.GeneralTableFootnote) }, [...generalTableFootnotes]));
|
|
505
504
|
}
|
|
506
505
|
if (footnotesElements && footnotesElements.length) {
|
|
507
506
|
contents.push(...footnotesElements);
|
|
@@ -17,6 +17,7 @@ import { manuscriptIDTypes, ObjectTypes, } from '@manuscripts/json-schema';
|
|
|
17
17
|
export var ExtraObjectTypes;
|
|
18
18
|
(function (ExtraObjectTypes) {
|
|
19
19
|
ExtraObjectTypes["PlaceholderElement"] = "MPPlaceholderElement";
|
|
20
|
+
ExtraObjectTypes["GeneralTableFootnote"] = "MPGeneralTableFootnote";
|
|
20
21
|
})(ExtraObjectTypes || (ExtraObjectTypes = {}));
|
|
21
22
|
export const elementObjects = [
|
|
22
23
|
ObjectTypes.BibliographyElement,
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
import { CommentAnnotation, Figure, Keyword, Manuscript, Model, ObjectTypes, Table } from '@manuscripts/json-schema';
|
|
17
17
|
import { ManuscriptModel } from './models';
|
|
18
18
|
export declare enum ExtraObjectTypes {
|
|
19
|
-
PlaceholderElement = "MPPlaceholderElement"
|
|
19
|
+
PlaceholderElement = "MPPlaceholderElement",
|
|
20
|
+
GeneralTableFootnote = "MPGeneralTableFootnote"
|
|
20
21
|
}
|
|
21
22
|
export declare const elementObjects: ObjectTypes[];
|
|
22
23
|
export declare const manuscriptObjects: ObjectTypes[];
|
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.3.3-LEAN-3519-
|
|
4
|
+
"version": "2.3.3-LEAN-3519-1",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-transform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|