@manuscripts/style-guide 0.31.2 → 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.
- package/dist/cjs/components/Comments/CommentWrapper.js +5 -3
- package/dist/cjs/components/icons/index.js +3 -1
- package/dist/cjs/components/icons/unsupported-format-file-icon.js +27 -0
- package/dist/cjs/lib/inlineFiles.js +20 -11
- package/dist/cjs/lib/lw-errors-decoder.js +5 -0
- package/dist/es/components/Comments/CommentWrapper.js +5 -3
- package/dist/es/components/icons/index.js +1 -0
- package/dist/es/components/icons/unsupported-format-file-icon.js +22 -0
- package/dist/es/lib/inlineFiles.js +20 -11
- package/dist/es/lib/lw-errors-decoder.js +5 -0
- package/dist/types/components/icons/index.d.ts +1 -0
- package/dist/types/components/icons/unsupported-format-file-icon.d.ts +19 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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();
|
|
@@ -18,7 +18,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.MissingImage = exports.UploadIcon = exports.AttachIcon = exports.TaskStepNextIcon = exports.TaskStepDoneIcon = exports.TaskStepCurrentIcon = exports.ZoomOutIcon = exports.ZoomInIcon = exports.UserIcon = exports.TickMarkIcon = exports.SearchIcon = exports.ProjectsListIcon = exports.ProjectIcon = exports.ProjectNotificationIcon = exports.OrcidIcon = exports.GoogleIcon = exports.CloseOIcon = exports.BookmarkIcon = exports.BackArrowIcon = exports.AddIconInverted = exports.AddIconActive = exports.AddAuthor = void 0;
|
|
21
|
+
exports.UnsupportedFormatFileIcon = exports.MissingImage = exports.UploadIcon = exports.AttachIcon = exports.TaskStepNextIcon = exports.TaskStepDoneIcon = exports.TaskStepCurrentIcon = exports.ZoomOutIcon = exports.ZoomInIcon = exports.UserIcon = exports.TickMarkIcon = exports.SearchIcon = exports.ProjectsListIcon = exports.ProjectIcon = exports.ProjectNotificationIcon = exports.OrcidIcon = exports.GoogleIcon = exports.CloseOIcon = exports.BookmarkIcon = exports.BackArrowIcon = exports.AddIconInverted = exports.AddIconActive = exports.AddAuthor = void 0;
|
|
22
22
|
var add_author_1 = require("./add-author");
|
|
23
23
|
Object.defineProperty(exports, "AddAuthor", { enumerable: true, get: function () { return __importDefault(add_author_1).default; } });
|
|
24
24
|
var add_icon_active_1 = require("./add-icon-active");
|
|
@@ -63,3 +63,5 @@ var upload_1 = require("./upload");
|
|
|
63
63
|
Object.defineProperty(exports, "UploadIcon", { enumerable: true, get: function () { return __importDefault(upload_1).default; } });
|
|
64
64
|
var missing_image_1 = require("./missing-image");
|
|
65
65
|
Object.defineProperty(exports, "MissingImage", { enumerable: true, get: function () { return __importDefault(missing_image_1).default; } });
|
|
66
|
+
var unsupported_format_file_icon_1 = require("./unsupported-format-file-icon");
|
|
67
|
+
Object.defineProperty(exports, "UnsupportedFormatFileIcon", { enumerable: true, get: function () { return __importDefault(unsupported_format_file_icon_1).default; } });
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*!
|
|
3
|
+
* © 2019 Atypon Systems LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
const react_1 = __importDefault(require("react"));
|
|
22
|
+
const UnsupportedFormatFileIcon = (props) => (react_1.default.createElement("svg", { className: props.className, width: "28", height: "32", viewBox: "0 0 28 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
23
|
+
react_1.default.createElement("path", { d: "M3 30.75H25C25.9665 30.75 26.75 29.9665 26.75 29V11.4383C26.75 10.9494 26.5455 10.4828 26.186 10.1515L17.0311 1.71322C16.7085 1.41588 16.2863 1.25 15.846 1.25H15.8364H15.8268H15.817H15.8071H15.7971H15.787H15.7767H15.7664H15.756H15.7454H15.7348H15.724H15.7132H15.7022H15.6912H15.68H15.6687H15.6573H15.6458H15.6343H15.6226H15.6108H15.5989H15.5869H15.5748H15.5626H15.5503H15.5379H15.5254H15.5128H15.5001H15.4873H15.4744H15.4614H15.4483H15.435H15.4217H15.4083H15.3949H15.3813H15.3676H15.3538H15.3399H15.3259H15.3118H15.2976H15.2834H15.269H15.2545H15.24H15.2253H15.2106H15.1957H15.1808H15.1658H15.1507H15.1354H15.1201H15.1047H15.0892H15.0737H15.058H15.0422H15.0264H15.0104H14.9944H14.9782H14.962H14.9457H14.9293H14.9128H14.8963H14.8796H14.8628H14.846H14.8291H14.812H14.7949H14.7778H14.7605H14.7431H14.7257H14.7081H14.6905H14.6728H14.655H14.6371H14.6192H14.6011H14.583H14.5648H14.5465H14.5281H14.5097H14.4911H14.4725H14.4538H14.435H14.4161H14.3972H14.3782H14.3591H14.3399H14.3206H14.3012H14.2818H14.2623H14.2427H14.2231H14.2033H14.1835H14.1636H14.1436H14.1236H14.1034H14.0832H14.0629H14.0426H14.0222H14.0016H13.9811H13.9604H13.9397H13.9189H13.898H13.877H13.856H13.8349H13.8137H13.7925H13.7711H13.7498H13.7283H13.7068H13.6852H13.6635H13.6417H13.6199H13.598H13.5761H13.554H13.5319H13.5098H13.4875H13.4652H13.4429H13.4204H13.3979H13.3754H13.3527H13.33H13.3072H13.2844H13.2615H13.2385H13.2155H13.1924H13.1692H13.146H13.1227H13.0994H13.0759H13.0525H13.0289H13.0053H12.9816H12.9579H12.9341H12.9102H12.8863H12.8624H12.8383H12.8142H12.79H12.7658H12.7415H12.7172H12.6928H12.6684H12.6438H12.6193H12.5946H12.5699H12.5452H12.5204H12.4955H12.4706H12.4456H12.4206H12.3955H12.3704H12.3452H12.3199H12.2946H12.2693H12.2439H12.2184H12.1929H12.1673H12.1417H12.116H12.0903H12.0645H12.0386H12.0128H11.9868H11.9608H11.9348H11.9087H11.8826H11.8564H11.8301H11.8038H11.7775H11.7511H11.7247H11.6982H11.6717H11.6451H11.6185H11.5918H11.5651H11.5383H11.5115H11.4846H11.4577H11.4308H11.4038H11.3768H11.3497H11.3226H11.2954H11.2682H11.2409H11.2136H11.1863H11.1589H11.1315H11.104H11.0765H11.0489H11.0213H10.9937H10.966H10.9383H10.9105H10.8828H10.8549H10.827H10.7991H10.7712H10.7432H10.7152H10.6871H10.659H10.6309H10.6027H10.5745H10.5462H10.5179H10.4896H10.4613H10.4329H10.4044H10.376H10.3475H10.3189H10.2904H10.2618H10.2332H10.2045H10.1758H10.1471H10.1183H10.0895H10.0607H10.0318H10.003H9.97403H9.94509H9.91611H9.8871H9.85807H9.829H9.79991H9.77078H9.74163H9.71245H9.68324H9.65401H9.62474H9.59545H9.56613H9.53679H9.50742H9.47803H9.4486H9.41916H9.38969H9.36019H9.33067H9.30112H9.27155H9.24196H9.21234H9.1827H9.15304H9.12336H9.09365H9.06392H9.03417H9.0044H8.97461H8.94479H8.91496H8.8851H8.85523H8.82533H8.79542H8.76548H8.73553H8.70556H8.67557H8.64556H8.61554H8.58549H8.55543H8.52536H8.49526H8.46515H8.43503H8.40488H8.37473H8.34455H8.31437H8.28416H8.25395H8.22371H8.19347H8.16321H8.13294H8.10265H8.07236H8.04205H8.01173H7.98139H7.95105H7.92069H7.89032H7.85994H7.82955H7.79915H7.76874H7.73832H7.7079H7.67746H7.64701H7.61656H7.58609H7.55562H7.52515H7.49466H7.46417H7.43367H7.40316H7.37265H7.34213H7.3116H7.28107H7.25054H7.22H7.18945H7.1589H7.12835H7.09779H7.06723H7.03667H7.0061H6.97554H6.94496H6.91439H6.88382H6.85324H6.82266H6.79208H6.7615H6.73092H6.70034H6.66976H6.63919H6.60861H6.57803H6.54745H6.51688H6.48631H6.45574H6.42517H6.3946H6.36404H6.33348H6.30292H6.27237H6.24183H6.21128H6.18074H6.15021H6.11968H6.08916H6.05864H6.02813H5.99763H5.96713H5.93664H5.90615H5.87568H5.84521H5.81475H5.78429H5.75385H5.72342H5.69299H5.66257H5.63217H5.60177H5.57139H5.54101H5.51065H5.48029H5.44995H5.41962H5.3893H5.35899H5.3287H5.29842H5.26815H5.2379H5.20766H5.17743H5.14722H5.11702H5.08684H5.05667H5.02651H4.99638H4.96626H4.93615H4.90606H4.87599H4.84593H4.8159H4.78588H4.75587H4.72589H4.69592H4.66598H4.63605H4.60614H4.57625H4.54638H4.51653H4.48671H4.4569H4.42711H4.39734H4.3676H4.33788H4.30818H4.2785H4.24884H4.21921H4.1896H4.16001H4.13045H4.10091H4.0714H4.04191H4.01245H3.98301H3.95359H3.92421H3.89485H3.86551H3.8362H3.80692H3.77766H3.74844H3.71924H3.69006H3.66092H3.6318H3.60272H3.57366H3.54463H3.51563H3.48667H3.45773H3.42882H3.39994H3.3711H3.34228H3.3135H3.28475H3.25603H3.22735H3.19869H3.17007H3.14148H3.11293H3.08441H3.05593H3.02748H2.99906C2.03164 1.25 1.25 2.03442 1.25 3V29C1.25 29.9665 2.0335 30.75 3 30.75Z", stroke: "#6E6E6E", strokeWidth: "1.5" }),
|
|
24
|
+
react_1.default.createElement("path", { d: "M8 24C10.1212 20.9815 15.8909 16.7556 22 24", stroke: "#6E6E6E", strokeWidth: "1.5", strokeLinecap: "round" }),
|
|
25
|
+
react_1.default.createElement("path", { d: "M8 8C8 8 8 9.04738 8 11", stroke: "#6E6E6E", strokeWidth: "1.5", strokeLinecap: "round" }),
|
|
26
|
+
react_1.default.createElement("path", { d: "M16 2V12H26", stroke: "#6E6E6E", strokeWidth: "1.5" })));
|
|
27
|
+
exports.default = UnsupportedFormatFileIcon;
|
|
@@ -65,9 +65,9 @@ exports.default = (modelMap, attachments) => {
|
|
|
65
65
|
return files;
|
|
66
66
|
};
|
|
67
67
|
const getAuxiliaryObjects = (modelMap) => {
|
|
68
|
-
var _a;
|
|
69
|
-
let graphicalAbstractFigureId
|
|
70
|
-
const tableElementIds = [], orderObjects = {};
|
|
68
|
+
var _a, _b;
|
|
69
|
+
let graphicalAbstractFigureId;
|
|
70
|
+
const figureElementIds = [], tableElementIds = [], orderObjects = {};
|
|
71
71
|
for (const model of modelMap.values()) {
|
|
72
72
|
switch (model.objectType) {
|
|
73
73
|
case manuscripts_json_schema_1.ObjectTypes.Section: {
|
|
@@ -78,22 +78,31 @@ const getAuxiliaryObjects = (modelMap) => {
|
|
|
78
78
|
return obj && (0, manuscript_transform_1.hasObjectType)(manuscripts_json_schema_1.ObjectTypes.FigureElement)(obj);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
+
else {
|
|
82
|
+
(_b = section.elementIDs) === null || _b === void 0 ? void 0 : _b.map((elementId) => {
|
|
83
|
+
const element = modelMap.get(elementId);
|
|
84
|
+
if (!element) {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
switch (element.objectType) {
|
|
88
|
+
case manuscripts_json_schema_1.ObjectTypes.FigureElement:
|
|
89
|
+
case manuscripts_json_schema_1.ObjectTypes.MultiGraphicFigureElement:
|
|
90
|
+
figureElementIds.push(element._id);
|
|
91
|
+
break;
|
|
92
|
+
case manuscripts_json_schema_1.ObjectTypes.TableElement:
|
|
93
|
+
tableElementIds.push(element._id);
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
81
98
|
break;
|
|
82
99
|
}
|
|
83
|
-
case manuscripts_json_schema_1.ObjectTypes.FigureElement:
|
|
84
|
-
case manuscripts_json_schema_1.ObjectTypes.MultiGraphicFigureElement:
|
|
85
|
-
figureElementIds.push(model._id);
|
|
86
|
-
break;
|
|
87
|
-
case manuscripts_json_schema_1.ObjectTypes.TableElement:
|
|
88
|
-
tableElementIds.push(model._id);
|
|
89
|
-
break;
|
|
90
100
|
case manuscripts_json_schema_1.ObjectTypes.ElementsOrder: {
|
|
91
101
|
const elementsOrder = model;
|
|
92
102
|
orderObjects[elementsOrder.elementType] = elementsOrder;
|
|
93
103
|
}
|
|
94
104
|
}
|
|
95
105
|
}
|
|
96
|
-
figureElementIds = figureElementIds.filter((id) => id !== graphicalAbstractFigureId);
|
|
97
106
|
return {
|
|
98
107
|
graphicalAbstractFigureId,
|
|
99
108
|
figureElement: orderObjects[manuscripts_json_schema_1.ObjectTypes.FigureElement]
|
|
@@ -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
|
-
|
|
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();
|
|
@@ -35,3 +35,4 @@ export { default as TaskStepNextIcon } from './task-step-next';
|
|
|
35
35
|
export { default as AttachIcon } from './attach';
|
|
36
36
|
export { default as UploadIcon } from './upload';
|
|
37
37
|
export { default as MissingImage } from './missing-image';
|
|
38
|
+
export { default as UnsupportedFormatFileIcon } from './unsupported-format-file-icon';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © 2019 Atypon Systems LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
const UnsupportedFormatFileIcon = (props) => (React.createElement("svg", { className: props.className, width: "28", height: "32", viewBox: "0 0 28 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
18
|
+
React.createElement("path", { d: "M3 30.75H25C25.9665 30.75 26.75 29.9665 26.75 29V11.4383C26.75 10.9494 26.5455 10.4828 26.186 10.1515L17.0311 1.71322C16.7085 1.41588 16.2863 1.25 15.846 1.25H15.8364H15.8268H15.817H15.8071H15.7971H15.787H15.7767H15.7664H15.756H15.7454H15.7348H15.724H15.7132H15.7022H15.6912H15.68H15.6687H15.6573H15.6458H15.6343H15.6226H15.6108H15.5989H15.5869H15.5748H15.5626H15.5503H15.5379H15.5254H15.5128H15.5001H15.4873H15.4744H15.4614H15.4483H15.435H15.4217H15.4083H15.3949H15.3813H15.3676H15.3538H15.3399H15.3259H15.3118H15.2976H15.2834H15.269H15.2545H15.24H15.2253H15.2106H15.1957H15.1808H15.1658H15.1507H15.1354H15.1201H15.1047H15.0892H15.0737H15.058H15.0422H15.0264H15.0104H14.9944H14.9782H14.962H14.9457H14.9293H14.9128H14.8963H14.8796H14.8628H14.846H14.8291H14.812H14.7949H14.7778H14.7605H14.7431H14.7257H14.7081H14.6905H14.6728H14.655H14.6371H14.6192H14.6011H14.583H14.5648H14.5465H14.5281H14.5097H14.4911H14.4725H14.4538H14.435H14.4161H14.3972H14.3782H14.3591H14.3399H14.3206H14.3012H14.2818H14.2623H14.2427H14.2231H14.2033H14.1835H14.1636H14.1436H14.1236H14.1034H14.0832H14.0629H14.0426H14.0222H14.0016H13.9811H13.9604H13.9397H13.9189H13.898H13.877H13.856H13.8349H13.8137H13.7925H13.7711H13.7498H13.7283H13.7068H13.6852H13.6635H13.6417H13.6199H13.598H13.5761H13.554H13.5319H13.5098H13.4875H13.4652H13.4429H13.4204H13.3979H13.3754H13.3527H13.33H13.3072H13.2844H13.2615H13.2385H13.2155H13.1924H13.1692H13.146H13.1227H13.0994H13.0759H13.0525H13.0289H13.0053H12.9816H12.9579H12.9341H12.9102H12.8863H12.8624H12.8383H12.8142H12.79H12.7658H12.7415H12.7172H12.6928H12.6684H12.6438H12.6193H12.5946H12.5699H12.5452H12.5204H12.4955H12.4706H12.4456H12.4206H12.3955H12.3704H12.3452H12.3199H12.2946H12.2693H12.2439H12.2184H12.1929H12.1673H12.1417H12.116H12.0903H12.0645H12.0386H12.0128H11.9868H11.9608H11.9348H11.9087H11.8826H11.8564H11.8301H11.8038H11.7775H11.7511H11.7247H11.6982H11.6717H11.6451H11.6185H11.5918H11.5651H11.5383H11.5115H11.4846H11.4577H11.4308H11.4038H11.3768H11.3497H11.3226H11.2954H11.2682H11.2409H11.2136H11.1863H11.1589H11.1315H11.104H11.0765H11.0489H11.0213H10.9937H10.966H10.9383H10.9105H10.8828H10.8549H10.827H10.7991H10.7712H10.7432H10.7152H10.6871H10.659H10.6309H10.6027H10.5745H10.5462H10.5179H10.4896H10.4613H10.4329H10.4044H10.376H10.3475H10.3189H10.2904H10.2618H10.2332H10.2045H10.1758H10.1471H10.1183H10.0895H10.0607H10.0318H10.003H9.97403H9.94509H9.91611H9.8871H9.85807H9.829H9.79991H9.77078H9.74163H9.71245H9.68324H9.65401H9.62474H9.59545H9.56613H9.53679H9.50742H9.47803H9.4486H9.41916H9.38969H9.36019H9.33067H9.30112H9.27155H9.24196H9.21234H9.1827H9.15304H9.12336H9.09365H9.06392H9.03417H9.0044H8.97461H8.94479H8.91496H8.8851H8.85523H8.82533H8.79542H8.76548H8.73553H8.70556H8.67557H8.64556H8.61554H8.58549H8.55543H8.52536H8.49526H8.46515H8.43503H8.40488H8.37473H8.34455H8.31437H8.28416H8.25395H8.22371H8.19347H8.16321H8.13294H8.10265H8.07236H8.04205H8.01173H7.98139H7.95105H7.92069H7.89032H7.85994H7.82955H7.79915H7.76874H7.73832H7.7079H7.67746H7.64701H7.61656H7.58609H7.55562H7.52515H7.49466H7.46417H7.43367H7.40316H7.37265H7.34213H7.3116H7.28107H7.25054H7.22H7.18945H7.1589H7.12835H7.09779H7.06723H7.03667H7.0061H6.97554H6.94496H6.91439H6.88382H6.85324H6.82266H6.79208H6.7615H6.73092H6.70034H6.66976H6.63919H6.60861H6.57803H6.54745H6.51688H6.48631H6.45574H6.42517H6.3946H6.36404H6.33348H6.30292H6.27237H6.24183H6.21128H6.18074H6.15021H6.11968H6.08916H6.05864H6.02813H5.99763H5.96713H5.93664H5.90615H5.87568H5.84521H5.81475H5.78429H5.75385H5.72342H5.69299H5.66257H5.63217H5.60177H5.57139H5.54101H5.51065H5.48029H5.44995H5.41962H5.3893H5.35899H5.3287H5.29842H5.26815H5.2379H5.20766H5.17743H5.14722H5.11702H5.08684H5.05667H5.02651H4.99638H4.96626H4.93615H4.90606H4.87599H4.84593H4.8159H4.78588H4.75587H4.72589H4.69592H4.66598H4.63605H4.60614H4.57625H4.54638H4.51653H4.48671H4.4569H4.42711H4.39734H4.3676H4.33788H4.30818H4.2785H4.24884H4.21921H4.1896H4.16001H4.13045H4.10091H4.0714H4.04191H4.01245H3.98301H3.95359H3.92421H3.89485H3.86551H3.8362H3.80692H3.77766H3.74844H3.71924H3.69006H3.66092H3.6318H3.60272H3.57366H3.54463H3.51563H3.48667H3.45773H3.42882H3.39994H3.3711H3.34228H3.3135H3.28475H3.25603H3.22735H3.19869H3.17007H3.14148H3.11293H3.08441H3.05593H3.02748H2.99906C2.03164 1.25 1.25 2.03442 1.25 3V29C1.25 29.9665 2.0335 30.75 3 30.75Z", stroke: "#6E6E6E", strokeWidth: "1.5" }),
|
|
19
|
+
React.createElement("path", { d: "M8 24C10.1212 20.9815 15.8909 16.7556 22 24", stroke: "#6E6E6E", strokeWidth: "1.5", strokeLinecap: "round" }),
|
|
20
|
+
React.createElement("path", { d: "M8 8C8 8 8 9.04738 8 11", stroke: "#6E6E6E", strokeWidth: "1.5", strokeLinecap: "round" }),
|
|
21
|
+
React.createElement("path", { d: "M16 2V12H26", stroke: "#6E6E6E", strokeWidth: "1.5" })));
|
|
22
|
+
export default UnsupportedFormatFileIcon;
|
|
@@ -63,9 +63,9 @@ export default (modelMap, attachments) => {
|
|
|
63
63
|
return files;
|
|
64
64
|
};
|
|
65
65
|
const getAuxiliaryObjects = (modelMap) => {
|
|
66
|
-
var _a;
|
|
67
|
-
let graphicalAbstractFigureId
|
|
68
|
-
const tableElementIds = [], orderObjects = {};
|
|
66
|
+
var _a, _b;
|
|
67
|
+
let graphicalAbstractFigureId;
|
|
68
|
+
const figureElementIds = [], tableElementIds = [], orderObjects = {};
|
|
69
69
|
for (const model of modelMap.values()) {
|
|
70
70
|
switch (model.objectType) {
|
|
71
71
|
case ObjectTypes.Section: {
|
|
@@ -76,22 +76,31 @@ const getAuxiliaryObjects = (modelMap) => {
|
|
|
76
76
|
return obj && hasObjectType(ObjectTypes.FigureElement)(obj);
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
+
else {
|
|
80
|
+
(_b = section.elementIDs) === null || _b === void 0 ? void 0 : _b.map((elementId) => {
|
|
81
|
+
const element = modelMap.get(elementId);
|
|
82
|
+
if (!element) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
switch (element.objectType) {
|
|
86
|
+
case ObjectTypes.FigureElement:
|
|
87
|
+
case ObjectTypes.MultiGraphicFigureElement:
|
|
88
|
+
figureElementIds.push(element._id);
|
|
89
|
+
break;
|
|
90
|
+
case ObjectTypes.TableElement:
|
|
91
|
+
tableElementIds.push(element._id);
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
79
96
|
break;
|
|
80
97
|
}
|
|
81
|
-
case ObjectTypes.FigureElement:
|
|
82
|
-
case ObjectTypes.MultiGraphicFigureElement:
|
|
83
|
-
figureElementIds.push(model._id);
|
|
84
|
-
break;
|
|
85
|
-
case ObjectTypes.TableElement:
|
|
86
|
-
tableElementIds.push(model._id);
|
|
87
|
-
break;
|
|
88
98
|
case ObjectTypes.ElementsOrder: {
|
|
89
99
|
const elementsOrder = model;
|
|
90
100
|
orderObjects[elementsOrder.elementType] = elementsOrder;
|
|
91
101
|
}
|
|
92
102
|
}
|
|
93
103
|
}
|
|
94
|
-
figureElementIds = figureElementIds.filter((id) => id !== graphicalAbstractFigureId);
|
|
95
104
|
return {
|
|
96
105
|
graphicalAbstractFigureId,
|
|
97
106
|
figureElement: orderObjects[ObjectTypes.FigureElement]
|
|
@@ -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.',
|
|
@@ -35,3 +35,4 @@ export { default as TaskStepNextIcon } from './task-step-next';
|
|
|
35
35
|
export { default as AttachIcon } from './attach';
|
|
36
36
|
export { default as UploadIcon } from './upload';
|
|
37
37
|
export { default as MissingImage } from './missing-image';
|
|
38
|
+
export { default as UnsupportedFormatFileIcon } from './unsupported-format-file-icon';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* © 2019 Atypon Systems LLC
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { IconProps } from './types';
|
|
18
|
+
declare const UnsupportedFormatFileIcon: React.FC<IconProps>;
|
|
19
|
+
export default UnsupportedFormatFileIcon;
|
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.
|
|
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",
|