@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.
@@ -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 },
@@ -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 === index_1.schema.nodes.manuscript;
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) table_element_footer? figcaption? (listing | 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, tableElementFooter, figcaption]
567
+ ? [table, figcaption, tableElementFooter]
568
568
  : [table, figcaption];
569
569
  if (model.listingID) {
570
570
  const listing = this.createListing(model.listingID);
@@ -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 },
@@ -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) table_element_footer? figcaption? (listing | 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, tableElementFooter, figcaption]
558
+ ? [table, figcaption, tableElementFooter]
559
559
  : [table, figcaption];
560
560
  if (model.listingID) {
561
561
  const listing = this.createListing(model.listingID);
@@ -7,6 +7,7 @@ interface Attrs {
7
7
  affiliations: Affiliation[];
8
8
  bibliographicName: BibliographicName;
9
9
  userID: string;
10
+ email: string;
10
11
  invitationID: string;
11
12
  isCorresponding: boolean;
12
13
  ORCIDIdentifier: string;
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.0-LEAN-3074-2",
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
+ }