@manuscripts/transform 2.0.1-LEAN-3074-0 → 2.0.1-LEAN-3083-3
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 +2 -0
- package/dist/cjs/schema/nodes/table_element.js +1 -1
- package/dist/cjs/transformer/decode.js +2 -1
- package/dist/es/schema/nodes/contributor.js +2 -0
- package/dist/es/schema/nodes/table_element.js +1 -1
- package/dist/es/transformer/decode.js +2 -1
- package/dist/types/schema/nodes/contributor.d.ts +4 -2
- package/package.json +2 -2
|
@@ -6,6 +6,7 @@ exports.contributor = {
|
|
|
6
6
|
attrs: {
|
|
7
7
|
id: { default: '' },
|
|
8
8
|
role: { default: '' },
|
|
9
|
+
email: { default: '' },
|
|
9
10
|
affiliations: { default: [] },
|
|
10
11
|
footnote: { default: undefined },
|
|
11
12
|
corresp: { default: undefined },
|
|
@@ -13,6 +14,7 @@ exports.contributor = {
|
|
|
13
14
|
userID: { default: undefined },
|
|
14
15
|
invitationID: { default: undefined },
|
|
15
16
|
isCorresponding: { default: undefined },
|
|
17
|
+
isJointContributor: { default: undefined },
|
|
16
18
|
ORCIDIdentifier: { default: undefined },
|
|
17
19
|
priority: { default: undefined },
|
|
18
20
|
dataTracked: { default: null },
|
|
@@ -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);
|
|
@@ -629,6 +629,7 @@ class Decoder {
|
|
|
629
629
|
id: model._id,
|
|
630
630
|
role: model.role,
|
|
631
631
|
affiliations: model.affiliations,
|
|
632
|
+
email: model.email,
|
|
632
633
|
bibliographicName: model.bibliographicName,
|
|
633
634
|
userID: model.userID,
|
|
634
635
|
invitationID: model.invitationID,
|
|
@@ -3,6 +3,7 @@ export const contributor = {
|
|
|
3
3
|
attrs: {
|
|
4
4
|
id: { default: '' },
|
|
5
5
|
role: { default: '' },
|
|
6
|
+
email: { default: '' },
|
|
6
7
|
affiliations: { default: [] },
|
|
7
8
|
footnote: { default: undefined },
|
|
8
9
|
corresp: { default: undefined },
|
|
@@ -10,6 +11,7 @@ export const contributor = {
|
|
|
10
11
|
userID: { default: undefined },
|
|
11
12
|
invitationID: { default: undefined },
|
|
12
13
|
isCorresponding: { default: undefined },
|
|
14
|
+
isJointContributor: { default: undefined },
|
|
13
15
|
ORCIDIdentifier: { default: undefined },
|
|
14
16
|
priority: { default: undefined },
|
|
15
17
|
dataTracked: { default: null },
|
|
@@ -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);
|
|
@@ -620,6 +620,7 @@ export class Decoder {
|
|
|
620
620
|
id: model._id,
|
|
621
621
|
role: model.role,
|
|
622
622
|
affiliations: model.affiliations,
|
|
623
|
+
email: model.email,
|
|
623
624
|
bibliographicName: model.bibliographicName,
|
|
624
625
|
userID: model.userID,
|
|
625
626
|
invitationID: model.invitationID,
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BibliographicName } from '@manuscripts/json-schema';
|
|
2
2
|
import { NodeSpec } from 'prosemirror-model';
|
|
3
3
|
import { ManuscriptNode } from '../types';
|
|
4
4
|
interface Attrs {
|
|
5
5
|
id: string;
|
|
6
6
|
role: string;
|
|
7
|
-
affiliations:
|
|
7
|
+
affiliations: string[];
|
|
8
8
|
bibliographicName: BibliographicName;
|
|
9
9
|
userID: string;
|
|
10
|
+
email: string;
|
|
10
11
|
invitationID: string;
|
|
11
12
|
isCorresponding: boolean;
|
|
12
13
|
ORCIDIdentifier: string;
|
|
13
14
|
priority: number;
|
|
15
|
+
isJointContributor: boolean;
|
|
14
16
|
}
|
|
15
17
|
export interface ContributorNode extends ManuscriptNode {
|
|
16
18
|
attrs: Attrs;
|
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.1-LEAN-
|
|
4
|
+
"version": "2.0.1-LEAN-3083-3",
|
|
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
|
+
}
|