@manuscripts/body-editor 3.4.8 → 3.5.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/components/authors/AuthorsModal.js +1 -1
- package/dist/cjs/lib/authors.js +1 -1
- package/dist/cjs/versions.js +1 -1
- package/dist/es/components/authors/AuthorsModal.js +1 -1
- package/dist/es/lib/authors.js +1 -1
- package/dist/es/versions.js +1 -1
- package/dist/types/versions.d.ts +1 -1
- package/package.json +2 -2
|
@@ -319,7 +319,7 @@ const AuthorsModal = ({ authors: $authors, affiliations: $affiliations, author,
|
|
|
319
319
|
valuesRef.current = { ...updatedValues, priority: values.priority };
|
|
320
320
|
const { given, family } = values.bibliographicName;
|
|
321
321
|
const { email, isCorresponding } = values;
|
|
322
|
-
const isNameFilled = given?.length
|
|
322
|
+
const isNameFilled = given?.length || family?.length;
|
|
323
323
|
if (hasChanges && isNameFilled) {
|
|
324
324
|
if (isCorresponding) {
|
|
325
325
|
setDisableSave(!email?.length);
|
package/dist/cjs/lib/authors.js
CHANGED
package/dist/cjs/versions.js
CHANGED
|
@@ -280,7 +280,7 @@ export const AuthorsModal = ({ authors: $authors, affiliations: $affiliations, a
|
|
|
280
280
|
valuesRef.current = { ...updatedValues, priority: values.priority };
|
|
281
281
|
const { given, family } = values.bibliographicName;
|
|
282
282
|
const { email, isCorresponding } = values;
|
|
283
|
-
const isNameFilled = given?.length
|
|
283
|
+
const isNameFilled = given?.length || family?.length;
|
|
284
284
|
if (hasChanges && isNameFilled) {
|
|
285
285
|
if (isCorresponding) {
|
|
286
286
|
setDisableSave(!email?.length);
|
package/dist/es/lib/authors.js
CHANGED
package/dist/es/versions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.5.1';
|
|
2
2
|
export const MATHJAX_VERSION = '3.2.2';
|
package/dist/types/versions.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.5.1";
|
|
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": "3.
|
|
4
|
+
"version": "3.5.1",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-body-editor",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@cospired/i18n-iso-languages": "^4.2.0",
|
|
40
40
|
"@iarna/word-count": "1.1.2",
|
|
41
41
|
"@manuscripts/json-schema": "2.2.12",
|
|
42
|
-
"@manuscripts/style-guide": "3.
|
|
42
|
+
"@manuscripts/style-guide": "3.3.0",
|
|
43
43
|
"@manuscripts/track-changes-plugin": "2.0.10",
|
|
44
44
|
"@manuscripts/transform": "4.2.14",
|
|
45
45
|
"@popperjs/core": "2.11.8",
|