@manuscripts/body-editor 2.8.59 → 2.8.60

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.
@@ -147,6 +147,7 @@ const normalize = (author) => ({
147
147
  invitationID: author.invitationID || '',
148
148
  footnote: author.footnote || [],
149
149
  corresp: author.corresp || [],
150
+ prefix: author.prefix || '',
150
151
  });
151
152
  const AuthorsModal = ({ authors: $authors, affiliations: $affiliations, author, onSaveAuthor, onDeleteAuthor, addNewAuthor = false, }) => {
152
153
  const [isOpen, setOpen] = (0, react_1.useState)(true);
@@ -343,7 +344,7 @@ const AuthorsModal = ({ authors: $authors, affiliations: $affiliations, author,
343
344
  const name = (0, json_schema_1.buildBibliographicName)({ given: '', family: '' });
344
345
  const author = {
345
346
  id: (0, json_schema_1.generateID)(json_schema_1.ObjectTypes.Contributor),
346
- role: 'author',
347
+ role: '',
347
348
  affiliations: [],
348
349
  bibliographicName: name,
349
350
  email: '',
@@ -355,6 +356,7 @@ const AuthorsModal = ({ authors: $authors, affiliations: $affiliations, author,
355
356
  invitationID: '',
356
357
  corresp: [],
357
358
  footnote: [],
359
+ prefix: '',
358
360
  };
359
361
  setIsSwitchingAuthor(!!selection);
360
362
  setSelectedAffiliations([]);
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MATHJAX_VERSION = exports.VERSION = void 0;
4
- exports.VERSION = '2.8.59';
4
+ exports.VERSION = '2.8.60';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -118,6 +118,7 @@ const normalize = (author) => ({
118
118
  invitationID: author.invitationID || '',
119
119
  footnote: author.footnote || [],
120
120
  corresp: author.corresp || [],
121
+ prefix: author.prefix || '',
121
122
  });
122
123
  export const AuthorsModal = ({ authors: $authors, affiliations: $affiliations, author, onSaveAuthor, onDeleteAuthor, addNewAuthor = false, }) => {
123
124
  const [isOpen, setOpen] = useState(true);
@@ -314,7 +315,7 @@ export const AuthorsModal = ({ authors: $authors, affiliations: $affiliations, a
314
315
  const name = buildBibliographicName({ given: '', family: '' });
315
316
  const author = {
316
317
  id: generateID(ObjectTypes.Contributor),
317
- role: 'author',
318
+ role: '',
318
319
  affiliations: [],
319
320
  bibliographicName: name,
320
321
  email: '',
@@ -326,6 +327,7 @@ export const AuthorsModal = ({ authors: $authors, affiliations: $affiliations, a
326
327
  invitationID: '',
327
328
  corresp: [],
328
329
  footnote: [],
330
+ prefix: '',
329
331
  };
330
332
  setIsSwitchingAuthor(!!selection);
331
333
  setSelectedAffiliations([]);
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.8.59';
1
+ export const VERSION = '2.8.60';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.8.59";
1
+ export declare const VERSION = "2.8.60";
2
2
  export declare const MATHJAX_VERSION = "3.2.2";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/body-editor",
3
3
  "description": "Prosemirror components for editing and viewing manuscripts",
4
- "version": "2.8.59",
4
+ "version": "2.8.60",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -34,7 +34,7 @@
34
34
  "@manuscripts/library": "1.3.14",
35
35
  "@manuscripts/style-guide": "2.1.10",
36
36
  "@manuscripts/track-changes-plugin": "1.10.4",
37
- "@manuscripts/transform": "3.0.61",
37
+ "@manuscripts/transform": "3.0.62",
38
38
  "@popperjs/core": "^2.11.8",
39
39
  "astrocite-eutils": "^0.16.4",
40
40
  "codemirror": "^5.58.1",