@manuscripts/style-guide 0.31.6 → 0.31.7

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.
@@ -54,8 +54,10 @@ const CommentWrapper = ({ createKeyword, comment, can, currentUserId, getCollabo
54
54
  const [isEditing, setIsEditing] = (0, react_1.useState)();
55
55
  const threadRef = (0, react_1.useRef)(null);
56
56
  (0, react_1.useEffect)(() => {
57
- if (isNew) {
58
- setIsEditing(true);
57
+ if (isNew || isSelected) {
58
+ {
59
+ isNew && setIsEditing(true);
60
+ }
59
61
  if (threadRef.current) {
60
62
  setTimeout(() => {
61
63
  var _a;
@@ -66,7 +68,7 @@ const CommentWrapper = ({ createKeyword, comment, can, currentUserId, getCollabo
66
68
  }, 100);
67
69
  }
68
70
  }
69
- }, [isNew]);
71
+ }, [isNew, isSelected]);
70
72
  const onTitleMouseDown = (0, react_1.useCallback)((e) => {
71
73
  e.preventDefault();
72
74
  handleRequestSelect && handleRequestSelect();
@@ -236,6 +236,11 @@ const errorsExplanations = {
236
236
  description: 'There are figures in the docment containing multiple images.',
237
237
  type: 'Workflow',
238
238
  },
239
+ CP_FILES_MERGED: {
240
+ title: 'Package files were merged',
241
+ description: 'Submission files were merged automatically before conversion. In case of errors please check the merged main manuscript to check the correct files were merged.',
242
+ type: 'Workflow',
243
+ },
239
244
  FC_FAIL_QA_CHECKLIST: {
240
245
  title: 'Quality report checks outstanding',
241
246
  description: 'The Quality report still contains outstanding critical checks that have to be resolved in order to proceed.',
@@ -29,8 +29,10 @@ export const CommentWrapper = ({ createKeyword, comment, can, currentUserId, get
29
29
  const [isEditing, setIsEditing] = useState();
30
30
  const threadRef = useRef(null);
31
31
  useEffect(() => {
32
- if (isNew) {
33
- setIsEditing(true);
32
+ if (isNew || isSelected) {
33
+ {
34
+ isNew && setIsEditing(true);
35
+ }
34
36
  if (threadRef.current) {
35
37
  setTimeout(() => {
36
38
  var _a;
@@ -41,7 +43,7 @@ export const CommentWrapper = ({ createKeyword, comment, can, currentUserId, get
41
43
  }, 100);
42
44
  }
43
45
  }
44
- }, [isNew]);
46
+ }, [isNew, isSelected]);
45
47
  const onTitleMouseDown = useCallback((e) => {
46
48
  e.preventDefault();
47
49
  handleRequestSelect && handleRequestSelect();
@@ -234,6 +234,11 @@ const errorsExplanations = {
234
234
  description: 'There are figures in the docment containing multiple images.',
235
235
  type: 'Workflow',
236
236
  },
237
+ CP_FILES_MERGED: {
238
+ title: 'Package files were merged',
239
+ description: 'Submission files were merged automatically before conversion. In case of errors please check the merged main manuscript to check the correct files were merged.',
240
+ type: 'Workflow',
241
+ },
237
242
  FC_FAIL_QA_CHECKLIST: {
238
243
  title: 'Quality report checks outstanding',
239
244
  description: 'The Quality report still contains outstanding critical checks that have to be resolved in order to proceed.',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/style-guide",
3
3
  "description": "Shared components for Manuscripts applications",
4
- "version": "0.31.6",
4
+ "version": "0.31.7",
5
5
  "repository": "gitlab:atypon-opensource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",