@manuscripts/article-editor 1.4.3 → 1.4.5
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/README.md +0 -3
- package/dist/cjs/src/components/projects/Inspector.js +2 -9
- package/dist/cjs/src/components/projects/Inspector.js.map +1 -1
- package/dist/cjs/src/config.js +0 -1
- package/dist/cjs/src/config.js.map +1 -1
- package/dist/es/src/components/projects/Inspector.js +2 -9
- package/dist/es/src/components/projects/Inspector.js.map +1 -1
- package/dist/es/src/config.js +0 -1
- package/dist/es/src/config.js.map +1 -1
- package/dist/types/src/config.d.ts +0 -1
- package/package.json +3 -4
- package/dist/cjs/src/components/requirements/RequirementContainer.js +0 -58
- package/dist/cjs/src/components/requirements/RequirementContainer.js.map +0 -1
- package/dist/cjs/src/components/requirements/RequirementsData.js +0 -129
- package/dist/cjs/src/components/requirements/RequirementsData.js.map +0 -1
- package/dist/cjs/src/components/requirements/RequirementsIcons.js +0 -34
- package/dist/cjs/src/components/requirements/RequirementsIcons.js.map +0 -1
- package/dist/cjs/src/components/requirements/RequirementsInspector.js +0 -150
- package/dist/cjs/src/components/requirements/RequirementsInspector.js.map +0 -1
- package/dist/cjs/src/components/requirements/RequirementsList.js +0 -84
- package/dist/cjs/src/components/requirements/RequirementsList.js.map +0 -1
- package/dist/cjs/src/components/requirements/SectionValidations.js +0 -47
- package/dist/cjs/src/components/requirements/SectionValidations.js.map +0 -1
- package/dist/cjs/src/hooks/use-requirements-validation.js +0 -87
- package/dist/cjs/src/hooks/use-requirements-validation.js.map +0 -1
- package/dist/cjs/stories/data/validationData.js +0 -44
- package/dist/cjs/stories/data/validationData.js.map +0 -1
- package/dist/es/src/components/requirements/RequirementContainer.js +0 -51
- package/dist/es/src/components/requirements/RequirementContainer.js.map +0 -1
- package/dist/es/src/components/requirements/RequirementsData.js +0 -99
- package/dist/es/src/components/requirements/RequirementsData.js.map +0 -1
- package/dist/es/src/components/requirements/RequirementsIcons.js +0 -24
- package/dist/es/src/components/requirements/RequirementsIcons.js.map +0 -1
- package/dist/es/src/components/requirements/RequirementsInspector.js +0 -118
- package/dist/es/src/components/requirements/RequirementsInspector.js.map +0 -1
- package/dist/es/src/components/requirements/RequirementsList.js +0 -54
- package/dist/es/src/components/requirements/RequirementsList.js.map +0 -1
- package/dist/es/src/components/requirements/SectionValidations.js +0 -40
- package/dist/es/src/components/requirements/SectionValidations.js.map +0 -1
- package/dist/es/src/hooks/use-requirements-validation.js +0 -83
- package/dist/es/src/hooks/use-requirements-validation.js.map +0 -1
- package/dist/es/stories/data/validationData.js +0 -41
- package/dist/es/stories/data/validationData.js.map +0 -1
- package/dist/types/src/components/requirements/RequirementContainer.d.ts +0 -19
- package/dist/types/src/components/requirements/RequirementsData.d.ts +0 -21
- package/dist/types/src/components/requirements/RequirementsIcons.d.ts +0 -16
- package/dist/types/src/components/requirements/RequirementsInspector.d.ts +0 -23
- package/dist/types/src/components/requirements/RequirementsList.d.ts +0 -16
- package/dist/types/src/components/requirements/SectionValidations.d.ts +0 -21
- package/dist/types/src/hooks/use-requirements-validation.d.ts +0 -22
- package/dist/types/stories/data/validationData.d.ts +0 -13
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import React, { useMemo } from 'react';
|
|
13
|
-
import styled from 'styled-components';
|
|
14
|
-
import { useStore } from '../../store';
|
|
15
|
-
import { RequirementContainer } from './RequirementContainer';
|
|
16
|
-
import { RequirementsData } from './RequirementsData';
|
|
17
|
-
import { SectionValidations } from './SectionValidations';
|
|
18
|
-
export const RequirementsList = ({ validationResult }) => {
|
|
19
|
-
const [{ modelMap, manuscriptID, bulkUpdate }] = useStore((store) => ({
|
|
20
|
-
modelMap: store.modelMap,
|
|
21
|
-
manuscriptID: store.manuscriptID,
|
|
22
|
-
bulkUpdate: store.bulkUpdate,
|
|
23
|
-
}));
|
|
24
|
-
const sortedData = useMemo(() => [...validationResult].sort((a, b) => a.passed === b.passed ? 0 : a ? -1 : 1), [validationResult]);
|
|
25
|
-
const ignoredValidations = sortedData.filter((node) => node.ignored);
|
|
26
|
-
const validationsList = sortedData.filter((node) => !node.ignored);
|
|
27
|
-
const manuscriptValidation = validationsList.filter((node) => node.type && node.type.startsWith('manuscript-'));
|
|
28
|
-
const bibliographyValidation = validationsList.filter((node) => node.type && node.type.startsWith('bibliography-'));
|
|
29
|
-
const figureValidation = validationsList.filter((node) => node.type && node.type.startsWith('figure-'));
|
|
30
|
-
const requiredSectionValidation = validationsList.filter((node) => node.type === 'required-section');
|
|
31
|
-
const sectionOrderValidation = validationsList.filter((node) => node.type === 'section-order');
|
|
32
|
-
const sectionValidation = validationsList.filter((node) => node.type && node.type.startsWith('section-'));
|
|
33
|
-
return (React.createElement(RequirementList, null,
|
|
34
|
-
manuscriptValidation.length !== 0 && (React.createElement(RequirementContainer, { result: manuscriptValidation, title: 'Manuscript' },
|
|
35
|
-
React.createElement(Requirement, null, manuscriptValidation.map((section) => section.message && (React.createElement(RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate })))))),
|
|
36
|
-
React.createElement(SectionValidations, { sortedData: sectionValidation, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate }),
|
|
37
|
-
requiredSectionValidation.length !== 0 && (React.createElement(RequirementContainer, { result: requiredSectionValidation, title: 'Required Section' },
|
|
38
|
-
React.createElement(Requirement, null, requiredSectionValidation.map((section) => section.message && (React.createElement(RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate })))))),
|
|
39
|
-
bibliographyValidation.length !== 0 && (React.createElement(RequirementContainer, { result: bibliographyValidation, title: 'Bibliography' },
|
|
40
|
-
React.createElement(Requirement, null, bibliographyValidation.map((section) => section.message && (React.createElement(RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate })))))),
|
|
41
|
-
figureValidation.length !== 0 && (React.createElement(RequirementContainer, { result: figureValidation, title: 'Figure' },
|
|
42
|
-
React.createElement(Requirement, null, figureValidation.map((section) => section.message && (React.createElement(RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate })))))),
|
|
43
|
-
sectionOrderValidation.length !== 0 && (React.createElement(RequirementContainer, { result: sectionOrderValidation, title: 'Section Order' },
|
|
44
|
-
React.createElement(Requirement, null, sectionOrderValidation.map((section) => section.message && (React.createElement(RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate })))))),
|
|
45
|
-
ignoredValidations.length !== 0 && (React.createElement(RequirementContainer, { result: ignoredValidations, title: 'Ignored' },
|
|
46
|
-
React.createElement(Requirement, null, ignoredValidations.map((section) => section.message && (React.createElement(RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate }))))))));
|
|
47
|
-
};
|
|
48
|
-
const RequirementList = styled.div `
|
|
49
|
-
display: block;
|
|
50
|
-
`;
|
|
51
|
-
const Requirement = styled.div `
|
|
52
|
-
padding: 15px 0 0 0;
|
|
53
|
-
`;
|
|
54
|
-
//# sourceMappingURL=RequirementsList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequirementsList.js","sourceRoot":"","sources":["../../../../../src/components/requirements/RequirementsList.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD,MAAM,CAAC,MAAM,gBAAgB,GAExB,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE;IAC5B,MAAM,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACpE,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,YAAY,EAAE,KAAK,CAAC,YAAY;QAChC,UAAU,EAAE,KAAK,CAAC,UAAU;KAC7B,CAAC,CAAC,CAAA;IACH,MAAM,UAAU,GAAG,OAAO,CACxB,GAAG,EAAE,CACH,CAAC,GAAG,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAClC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACvC,EACH,CAAC,gBAAgB,CAAC,CACnB,CAAA;IACD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B,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,GACtB,CACH,CACJ,CACW,CACO,CACxB,CACe,CACnB,CAAA;AACH,CAAC,CAAA;AACD,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEjC,CAAA;AACD,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE7B,CAAA"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { useStore } from '../../store';
|
|
4
|
-
import { RequirementContainer } from './RequirementContainer';
|
|
5
|
-
import { RequirementsData } from './RequirementsData';
|
|
6
|
-
export const SectionValidations = ({ sortedData, modelMap, manuscriptID, bulkUpdate }) => {
|
|
7
|
-
const [sectionCategories] = useStore((store) => store.sectionCategories);
|
|
8
|
-
const isSectionValidation = (node) => {
|
|
9
|
-
if (node.type &&
|
|
10
|
-
node.type.startsWith('section-') &&
|
|
11
|
-
!node.type.startsWith('section-order')) {
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
return false;
|
|
15
|
-
};
|
|
16
|
-
let sectionValidation = sortedData.filter((node) => isSectionValidation(node) && node.message !== undefined);
|
|
17
|
-
const sectionsData = [];
|
|
18
|
-
while (sectionValidation.length > 0) {
|
|
19
|
-
const category = isSectionValidation(sectionValidation[0]) &&
|
|
20
|
-
sectionValidation[0].data.sectionCategory;
|
|
21
|
-
const sectionValidationId = sectionValidation[0]._id;
|
|
22
|
-
const sections = sectionValidation.filter((node) => isSectionValidation(node) && node.data.sectionCategory === category);
|
|
23
|
-
sectionValidation = sectionValidation.filter((x) => sections.indexOf(x) === -1);
|
|
24
|
-
const categoryData = sectionCategories.map((section) => {
|
|
25
|
-
if (section._id === category) {
|
|
26
|
-
return section.name;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
sectionsData.push(React.createElement(RequirementContainer, { result: sections, key: sectionValidationId, title: categoryData },
|
|
30
|
-
React.createElement(Requirement, null, sections.map((section) => section.message && (React.createElement(RequirementsData, { node: section, key: section._id, modelMap: modelMap, manuscriptID: manuscriptID, bulkUpdate: bulkUpdate }))))));
|
|
31
|
-
if (sectionValidation.length <= 0) {
|
|
32
|
-
return React.createElement(React.Fragment, null, sectionsData);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return null;
|
|
36
|
-
};
|
|
37
|
-
const Requirement = styled.div `
|
|
38
|
-
padding: 15px 0 0 0;
|
|
39
|
-
`;
|
|
40
|
-
//# sourceMappingURL=SectionValidations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SectionValidations.js","sourceRoot":"","sources":["../../../../../src/components/requirements/SectionValidations.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,CAAC,MAAM,kBAAkB,GAK1B,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,EAAE;IAC1D,MAAM,CAAC,iBAAiB,CAAC,GAAG,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAA;IAExE,MAAM,mBAAmB,GAAG,CAC1B,IAAyB,EAKM,EAAE;QACjC,IACE,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YAChC,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,EACtC;YACA,OAAO,IAAI,CAAA;SACZ;QACD,OAAO,KAAK,CAAA;IACd,CAAC,CAAA;IAED,IAAI,iBAAiB,GAAG,UAAU,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AChB,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,GACtB,CACH,CACJ,CACW,CACO,CACxB,CAAA;QACD,IAAI,iBAAiB,CAAC,MAAM,IAAI,CAAC,EAAE;YACjC,OAAO,0CAAG,YAAY,CAAI,CAAA;SAC3B;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AACD,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;CAE7B,CAAA"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { useState } from 'react';
|
|
13
|
-
import { buildQualityCheck } from '../components/requirements/RequirementsInspector';
|
|
14
|
-
import { useStore } from '../store';
|
|
15
|
-
import { useIdlePropEffect } from './use-idle-prop-effect';
|
|
16
|
-
export const useRequirementsValidation = ({ state }) => {
|
|
17
|
-
const [{ manuscript, modelMap, template, sectionCategories }] = useStore((store) => ({
|
|
18
|
-
manuscript: store.manuscript,
|
|
19
|
-
modelMap: store.modelMap,
|
|
20
|
-
sectionCategories: store.sectionCategories,
|
|
21
|
-
template: store.template,
|
|
22
|
-
}));
|
|
23
|
-
const [error, setError] = useState();
|
|
24
|
-
const [result, setResult] = useState([]);
|
|
25
|
-
const [isBuilding, setIsBuilding] = useState(false);
|
|
26
|
-
const prototypeID = manuscript.prototype;
|
|
27
|
-
// TODO: re-enable once the quality report (RequirementsValidation) is saved
|
|
28
|
-
// useEffect(() => {
|
|
29
|
-
// if (isPullComplete) {
|
|
30
|
-
// const subscription = collection
|
|
31
|
-
// .find({
|
|
32
|
-
// manuscriptID: manuscript._id,
|
|
33
|
-
// objectType: ObjectTypes.RequirementsValidation,
|
|
34
|
-
// })
|
|
35
|
-
// .$.subscribe((docs) => {
|
|
36
|
-
// setLoaded(true)
|
|
37
|
-
// if (!docs || !docs.length) {
|
|
38
|
-
// return
|
|
39
|
-
// }
|
|
40
|
-
// const doc = docs[0].toJSON() as RequirementsValidation
|
|
41
|
-
// setDoc(doc)
|
|
42
|
-
// })
|
|
43
|
-
// return () => {
|
|
44
|
-
// subscription.unsubscribe()
|
|
45
|
-
// }
|
|
46
|
-
// }
|
|
47
|
-
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48
|
-
// }, [project._id, isPullComplete, manuscript._id])
|
|
49
|
-
useIdlePropEffect(() => {
|
|
50
|
-
setIsBuilding(true);
|
|
51
|
-
buildQualityCheck(modelMap, prototypeID, manuscript._id, template, sectionCategories, {
|
|
52
|
-
validateImageFiles: false,
|
|
53
|
-
})
|
|
54
|
-
.then(setResult)
|
|
55
|
-
// Saving the report failed, we need to update the `RequirementsValidation` schema in order to fix the issue.
|
|
56
|
-
// TODO: re-enable once we decide to save the quality report (RequirementsValidation).
|
|
57
|
-
// .then((results) => {
|
|
58
|
-
// // make sure not to create multiple documents
|
|
59
|
-
// if (!loaded) {
|
|
60
|
-
// return
|
|
61
|
-
// }
|
|
62
|
-
// const nextDoc = doc
|
|
63
|
-
// ? {
|
|
64
|
-
// ...doc,
|
|
65
|
-
// results,
|
|
66
|
-
// }
|
|
67
|
-
// : buildValidation(results as RequirementsValidationData[])
|
|
68
|
-
// setError(null)
|
|
69
|
-
// return collection.save(nextDoc, {
|
|
70
|
-
// containerID: project._id,
|
|
71
|
-
// manuscriptID: manuscript._id,
|
|
72
|
-
// })
|
|
73
|
-
// })
|
|
74
|
-
.finally(() => {
|
|
75
|
-
setIsBuilding(false);
|
|
76
|
-
})
|
|
77
|
-
.catch((err) => {
|
|
78
|
-
setError(err);
|
|
79
|
-
});
|
|
80
|
-
}, [state], 1000);
|
|
81
|
-
return { result, error, isBuilding };
|
|
82
|
-
};
|
|
83
|
-
//# sourceMappingURL=use-requirements-validation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-requirements-validation.js","sourceRoot":"","sources":["../../../../src/hooks/use-requirements-validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAM1D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,EAAE,KAAK,EAAQ,EAAE,EAAE;IAC3D,MAAM,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,GAAG,QAAQ,CACtE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACV,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;QAC1C,QAAQ,EAAE,KAAK,CAAC,QAAQ;KACzB,CAAC,CACH,CAAA;IAED,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAgB,CAAA;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CACL,CAAA;IAED,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,CAAA;AACtC,CAAC,CAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
export const validationData = [
|
|
13
|
-
{
|
|
14
|
-
type: 'section-order',
|
|
15
|
-
severity: 0,
|
|
16
|
-
passed: true,
|
|
17
|
-
data: {
|
|
18
|
-
order: [],
|
|
19
|
-
},
|
|
20
|
-
fixable: true,
|
|
21
|
-
objectType: 'MPSectionOrderValidationResult',
|
|
22
|
-
_id: 'MPSectionOrderValidationResult:FCD54873-BAD0-488E-96C8-D1ECA23DD1F4',
|
|
23
|
-
message: 'Sections must be listed in the following order Abstract',
|
|
24
|
-
ignored: false,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
type: 'section-body-has-content',
|
|
28
|
-
passed: false,
|
|
29
|
-
severity: 0,
|
|
30
|
-
data: {
|
|
31
|
-
id: 'MPSection:6383A9BC-CB0E-4B0E-BB3A-31E0B5143256',
|
|
32
|
-
sectionCategory: 'MPSectionCategory:abstract',
|
|
33
|
-
},
|
|
34
|
-
fixable: true,
|
|
35
|
-
objectType: 'MPSectionBodyValidationResult',
|
|
36
|
-
_id: 'MPSectionBodyValidationResult:2C772412-BA8C-46A4-B0D6-DFDC8BCB793A',
|
|
37
|
-
message: 'Abstract section must contains content',
|
|
38
|
-
ignored: false,
|
|
39
|
-
},
|
|
40
|
-
];
|
|
41
|
-
//# sourceMappingURL=validationData.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validationData.js","sourceRoot":"","sources":["../../../../stories/data/validationData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD;QACE,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE,CAAC;QACX,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE;YACJ,KAAK,EAAE,EAAE;SACV;QACD,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,gCAAgC;QAC5C,GAAG,EAAE,qEAAqE;QAC1E,OAAO,EAAE,yDAAyD;QAClE,OAAO,EAAE,KAAK;KACf;IACD;QACE,IAAI,EAAE,0BAA0B;QAChC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE;YACJ,EAAE,EAAE,gDAAgD;YACpD,eAAe,EAAE,4BAA4B;SAC9C;QACD,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,+BAA+B;QAC3C,GAAG,EAAE,oEAAoE;QACzE,OAAO,EAAE,wCAAwC;QACjD,OAAO,EAAE,KAAK;KACf;CACF,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { AnyValidationResult } from '@manuscripts/requirements';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
interface Props {
|
|
15
|
-
title: React.ReactNode;
|
|
16
|
-
result: AnyValidationResult[];
|
|
17
|
-
}
|
|
18
|
-
export declare const RequirementContainer: React.FC<Props>;
|
|
19
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { Model } from '@manuscripts/json-schema';
|
|
13
|
-
import { AnyValidationResult } from '@manuscripts/requirements';
|
|
14
|
-
import { ContainedModel } from '@manuscripts/transform';
|
|
15
|
-
import React from 'react';
|
|
16
|
-
export declare const RequirementsData: React.FC<{
|
|
17
|
-
node: AnyValidationResult;
|
|
18
|
-
modelMap: Map<string, Model>;
|
|
19
|
-
manuscriptID: string;
|
|
20
|
-
bulkUpdate: (items: Array<ContainedModel>) => Promise<void>;
|
|
21
|
-
}>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
-
export declare const ArrowDownIcon: () => React.JSX.Element;
|
|
14
|
-
export declare const ArrowUpIcon: () => React.JSX.Element;
|
|
15
|
-
export declare const ValidationDangerIcon: () => React.JSX.Element;
|
|
16
|
-
export declare const ValidationPassedIcon: () => React.JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { ManuscriptTemplate, Model, SectionCategory } from '@manuscripts/json-schema';
|
|
13
|
-
import { AnyValidationResult, validationOptions } from '@manuscripts/requirements';
|
|
14
|
-
import React from 'react';
|
|
15
|
-
import { useRequirementsValidation } from '../../hooks/use-requirements-validation';
|
|
16
|
-
export declare const buildQualityCheck: (modelMap: Map<string, Model>, prototypeId: string | undefined, manuscriptID: string, template: ManuscriptTemplate | undefined, sectionCategories: SectionCategory[], validationOptions?: validationOptions | undefined) => Promise<AnyValidationResult[]>;
|
|
17
|
-
export declare const RequirementsInspector: React.FC;
|
|
18
|
-
interface Props {
|
|
19
|
-
prototypeId?: string;
|
|
20
|
-
isBuilding?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export declare const RequirementsInspectorView: React.FC<Props & ReturnType<typeof useRequirementsValidation>>;
|
|
23
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { AnyValidationResult } from '@manuscripts/requirements';
|
|
13
|
-
import React from 'react';
|
|
14
|
-
export declare const RequirementsList: React.FC<{
|
|
15
|
-
validationResult: AnyValidationResult[];
|
|
16
|
-
}>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { Model } from '@manuscripts/json-schema';
|
|
13
|
-
import { AnyValidationResult } from '@manuscripts/requirements';
|
|
14
|
-
import { ContainedModel } from '@manuscripts/transform';
|
|
15
|
-
import React from 'react';
|
|
16
|
-
export declare const SectionValidations: React.FC<{
|
|
17
|
-
sortedData: AnyValidationResult[];
|
|
18
|
-
modelMap: Map<string, Model>;
|
|
19
|
-
manuscriptID: string;
|
|
20
|
-
bulkUpdate: (items: Array<ContainedModel>) => Promise<void>;
|
|
21
|
-
}>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2019 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { AnyValidationResult } from '@manuscripts/requirements';
|
|
13
|
-
import { ManuscriptEditorState } from '@manuscripts/transform';
|
|
14
|
-
interface Args {
|
|
15
|
-
state: ManuscriptEditorState;
|
|
16
|
-
}
|
|
17
|
-
export declare const useRequirementsValidation: ({ state }: Args) => {
|
|
18
|
-
result: AnyValidationResult[];
|
|
19
|
-
error: Error | null | undefined;
|
|
20
|
-
isBuilding: boolean;
|
|
21
|
-
};
|
|
22
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://mpapp-public.gitlab.io/manuscripts-frontend/LICENSE. The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15 have been added to cover use of software over a computer network and provide for limited attribution for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
|
|
3
|
-
*
|
|
4
|
-
* Software distributed under the License is distributed on an “AS IS” basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
|
5
|
-
*
|
|
6
|
-
* The Original Code is manuscripts-frontend.
|
|
7
|
-
*
|
|
8
|
-
* The Original Developer is the Initial Developer. The Initial Developer of the Original Code is Atypon Systems LLC.
|
|
9
|
-
*
|
|
10
|
-
* All portions of the code written by Atypon Systems LLC are Copyright (c) 2020 Atypon Systems LLC. All Rights Reserved.
|
|
11
|
-
*/
|
|
12
|
-
import { AnyValidationResult } from '@manuscripts/requirements';
|
|
13
|
-
export declare const validationData: AnyValidationResult[];
|