@manuscripts/style-guide 1.1.15-LEAN-2620-1 → 1.1.15-LEAN-2684-4

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.
Files changed (33) hide show
  1. package/dist/cjs/components/EditorHeader/EditorHeader.js +21 -29
  2. package/dist/cjs/components/EditorHeader/ProceedView.js +10 -9
  3. package/dist/cjs/components/SubmissionInspector/BaseInformation.js +1 -1
  4. package/dist/cjs/lib/capabilities.js +4 -3
  5. package/dist/es/components/EditorHeader/EditorHeader.js +21 -29
  6. package/dist/es/components/EditorHeader/ProceedView.js +12 -11
  7. package/dist/es/components/SubmissionInspector/BaseInformation.js +1 -1
  8. package/dist/es/lib/capabilities.js +4 -3
  9. package/dist/types/components/AlertMessage.d.ts +1 -1
  10. package/dist/types/components/AuthorForm/RemoveAuthorButton.d.ts +1 -1
  11. package/dist/types/components/AutoSaveInput.d.ts +1 -1
  12. package/dist/types/components/Dialog.d.ts +1 -1
  13. package/dist/types/components/EditorHeader/EditorHeader.d.ts +3 -15
  14. package/dist/types/components/EditorHeader/ProceedView.d.ts +3 -2
  15. package/dist/types/components/Form.d.ts +1 -1
  16. package/dist/types/components/Resizer/Resizer.d.ts +1 -1
  17. package/dist/types/components/Resizer/ResizerButton.d.ts +1 -1
  18. package/dist/types/components/icons/add-author.d.ts +2 -1
  19. package/dist/types/components/icons/add-comment-icon.d.ts +2 -1
  20. package/dist/types/components/icons/add-icon-active.d.ts +2 -1
  21. package/dist/types/components/icons/add-icon-inverted.d.ts +2 -1
  22. package/dist/types/components/icons/back-arrow.d.ts +2 -1
  23. package/dist/types/components/icons/bookmark.d.ts +2 -1
  24. package/dist/types/components/icons/google.d.ts +2 -1
  25. package/dist/types/components/icons/orcid.d.ts +2 -1
  26. package/dist/types/components/icons/plus-icon.d.ts +2 -1
  27. package/dist/types/components/icons/project-notification.d.ts +2 -1
  28. package/dist/types/components/icons/project.d.ts +2 -1
  29. package/dist/types/components/icons/projects-list.d.ts +2 -1
  30. package/dist/types/components/icons/search.d.ts +2 -1
  31. package/dist/types/components/icons/tick-mark.d.ts +2 -1
  32. package/dist/types/components/icons/user.d.ts +2 -1
  33. package/package.json +3 -3
@@ -35,19 +35,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
35
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.MediumTextArea = exports.PrimaryButtonSmall = exports.EditorHeader = exports.DialogState = void 0;
38
+ exports.MediumTextArea = exports.PrimaryButtonSmall = exports.EditorHeader = void 0;
39
39
  const react_1 = __importStar(require("react"));
40
40
  const styled_components_1 = __importDefault(require("styled-components"));
41
41
  const __1 = require("../..");
42
42
  const ProceedView_1 = require("./ProceedView");
43
- var DialogState;
44
- (function (DialogState) {
45
- DialogState[DialogState["INIT"] = 0] = "INIT";
46
- DialogState[DialogState["LOADING"] = 1] = "LOADING";
47
- DialogState[DialogState["ERROR"] = 2] = "ERROR";
48
- DialogState[DialogState["SUCCESS"] = 3] = "SUCCESS";
49
- DialogState[DialogState["CLOSED"] = 4] = "CLOSED";
50
- })(DialogState = exports.DialogState || (exports.DialogState = {}));
51
43
  const Editing = { label: 'Editing...', icon: __1.EditIcon };
52
44
  const MapUserRole = {
53
45
  Editor: Editing,
@@ -55,56 +47,56 @@ const MapUserRole = {
55
47
  Writer: Editing,
56
48
  Annotator: { label: 'Suggesting...', icon: __1.AnnotatorIcon },
57
49
  Viewer: { label: 'Reading...', icon: __1.ReadingIcon },
50
+ Proofer: { label: 'Proofing', icon: __1.AnnotatorIcon },
58
51
  };
59
52
  const EditorHeader = ({ handleSnapshot, submission, hasPendingSuggestions, userRole, canCompleteTask, submitProceed, goBack, status, isAnnotator, message, exceptionDialog: ExceptionDialog, disabelProceedNote, }) => {
60
- var _a, _b, _c, _d, _e;
53
+ var _a, _b, _c, _d;
61
54
  const [confirmationDialog, toggleConfirmationDialog] = (0, react_1.useState)(false);
55
+ const [loading, setLoading] = (0, react_1.useState)(false);
62
56
  const [noteValue, setNoteValue] = (0, react_1.useState)('');
57
+ const [error, setError] = (0, react_1.useState)(undefined);
63
58
  const [selectedTransitionIndex, setSelectedTransitionIndex] = (0, react_1.useState)();
64
- const { dialogData, submit } = submitProceed;
65
- const { updateState, clearError } = dialogData;
59
+ const { complete: showComplete, error: submissionError, mutationError, submit, } = submitProceed;
60
+ (0, react_1.useEffect)(() => {
61
+ if (submissionError) {
62
+ setError(submissionError);
63
+ }
64
+ }, [submissionError]);
66
65
  const continueDialogAction = (0, react_1.useCallback)(() => __awaiter(void 0, void 0, void 0, function* () {
67
66
  if (submission && selectedTransitionIndex && handleSnapshot) {
68
67
  const { status } = submission.currentStep.type.transitions[selectedTransitionIndex];
69
- updateState(DialogState.LOADING);
68
+ setLoading(true);
70
69
  yield handleSnapshot();
71
70
  yield submit(status.id, noteValue);
71
+ setLoading(false);
72
72
  }
73
73
  }), [
74
- submission,
75
- selectedTransitionIndex,
76
74
  handleSnapshot,
77
- updateState,
78
- submit,
75
+ selectedTransitionIndex,
76
+ submission,
79
77
  noteValue,
78
+ submit,
80
79
  ]);
81
80
  const onTransitionClick = (0, react_1.useCallback)((event) => {
82
- updateState(DialogState.INIT);
83
81
  toggleConfirmationDialog(true);
84
82
  setSelectedTransitionIndex(event.target.value || event.target.parentNode.value);
85
- }, [setSelectedTransitionIndex, toggleConfirmationDialog, updateState]);
83
+ }, [setSelectedTransitionIndex, toggleConfirmationDialog]);
86
84
  const onCancelClick = (0, react_1.useCallback)(() => {
87
85
  toggleConfirmationDialog(false);
88
86
  setSelectedTransitionIndex(undefined);
89
- clearError();
90
- updateState(DialogState.CLOSED);
91
- }, [
92
- toggleConfirmationDialog,
93
- setSelectedTransitionIndex,
94
- clearError,
95
- updateState,
96
- ]);
87
+ setError(undefined);
88
+ }, [toggleConfirmationDialog, setSelectedTransitionIndex, setError]);
97
89
  const onNoteChange = (0, react_1.useCallback)((event) => setNoteValue(event.target.value), [setNoteValue]);
98
90
  const currentStepTransition = submission === null || submission === void 0 ? void 0 : submission.currentStep.type.transitions;
99
91
  const disable = !currentStepTransition || !canCompleteTask;
100
- const errorCode = (_d = (_c = (_b = (_a = dialogData.mutationError) === null || _a === void 0 ? void 0 : _a.graphQLErrors) === null || _b === void 0 ? void 0 : _b.find((error) => { var _a; return (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.code; })) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.code.name;
92
+ const errorCode = (_c = (_b = (_a = mutationError === null || mutationError === void 0 ? void 0 : mutationError.graphQLErrors) === null || _a === void 0 ? void 0 : _a.find((error) => { var _a; return (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.code; })) === null || _b === void 0 ? void 0 : _b.extensions) === null || _c === void 0 ? void 0 : _c.code.name;
101
93
  return (react_1.default.createElement(Wrapper, null,
102
94
  goBack && (react_1.default.createElement(SecondaryButtonSmall, { onClick: goBack, type: "button" },
103
95
  react_1.default.createElement(__1.LeftArrow, null),
104
96
  react_1.default.createElement("span", null, "Dashboard"))),
105
97
  handleSnapshot &&
106
98
  typeof hasPendingSuggestions == 'boolean' &&
107
- submission.nextStep && (react_1.default.createElement(ProceedView_1.ProceedView, { isAnnotator: isAnnotator, disable: disable, onTransitionClick: onTransitionClick, hasPendingSuggestions: hasPendingSuggestions, dialogData: dialogData, noteValue: noteValue, currentStepTransition: currentStepTransition, currentStepType: submission.currentStep.type, previousStepType: (_e = submission.previousStep) === null || _e === void 0 ? void 0 : _e.type, nextStepType: submission.nextStep.type, confirmationDialog: confirmationDialog, onNoteChange: disabelProceedNote ? undefined : onNoteChange, continueDialogAction: continueDialogAction, onCancelClick: onCancelClick, message: message })),
99
+ submission.nextStep && (react_1.default.createElement(ProceedView_1.ProceedView, { isAnnotator: isAnnotator, disable: disable, onTransitionClick: onTransitionClick, hasPendingSuggestions: hasPendingSuggestions, loading: loading, showComplete: showComplete, noteValue: noteValue, currentStepTransition: currentStepTransition, error: error, currentStepType: submission.currentStep.type, previousStepType: (_d = submission.previousStep) === null || _d === void 0 ? void 0 : _d.type, nextStepType: submission.nextStep.type, confirmationDialog: confirmationDialog, onNoteChange: disabelProceedNote ? undefined : onNoteChange, continueDialogAction: continueDialogAction, onCancelClick: onCancelClick, message: message })),
108
100
  status && (react_1.default.createElement(ChildWrapper, null,
109
101
  react_1.default.createElement(__1.SaveStatus, { status: status }))),
110
102
  react_1.default.createElement(Spacer, null),
@@ -46,7 +46,7 @@ const StepDetails = ({ icon, label, description, role }) => (react_1.default.cre
46
46
  react_1.default.createElement(__1.SecondarySmallText, null,
47
47
  "Actor: ",
48
48
  role.label))));
49
- const ProceedView = ({ currentStepTransition, onTransitionClick, disable, dialogData, confirmationDialog, previousStepType, currentStepType, isAnnotator, hasPendingSuggestions, onCancelClick, continueDialogAction, message: Message, }) => {
49
+ const ProceedView = ({ currentStepTransition, onTransitionClick, disable, loading, showComplete, confirmationDialog, previousStepType, currentStepType, nextStepType, isAnnotator, hasPendingSuggestions, error, noteValue, onNoteChange, onCancelClick, continueDialogAction, message: Message, }) => {
50
50
  const dialogMessages = (0, react_1.useMemo)(() => hasPendingSuggestions && !isAnnotator
51
51
  ? {
52
52
  header: 'The task can not be transitioned to the next step',
@@ -59,7 +59,7 @@ const ProceedView = ({ currentStepTransition, onTransitionClick, disable, dialog
59
59
  },
60
60
  },
61
61
  }
62
- : dialogData.state === __1.DialogState.SUCCESS
62
+ : showComplete
63
63
  ? {
64
64
  header: 'Content reassigned successfully',
65
65
  message: `to the ${currentStepType.label}`,
@@ -84,7 +84,7 @@ const ProceedView = ({ currentStepTransition, onTransitionClick, disable, dialog
84
84
  },
85
85
  },
86
86
  }, [
87
- dialogData,
87
+ showComplete,
88
88
  continueDialogAction,
89
89
  onCancelClick,
90
90
  currentStepType,
@@ -97,15 +97,16 @@ const ProceedView = ({ currentStepTransition, onTransitionClick, disable, dialog
97
97
  currentStepTransition.map((transition, index) => (react_1.default.createElement(Task, { key: 'task_' + transition.type.id, className: transition.status.id === 'success' ? 'happyPath' : '', value: index, onClick: onTransitionClick },
98
98
  react_1.default.createElement("strong", null, transition.type.label),
99
99
  transition.type.description))))))) || (react_1.default.createElement(EditorHeader_1.PrimaryButtonSmall, { value: 0, onClick: onTransitionClick, disabled: disable }, "Complete task")),
100
- dialogData.state === __1.DialogState.LOADING && (react_1.default.createElement(__1.LoadingOverlay, null,
101
- react_1.default.createElement(Message, { isCentered: true }, "Proceeding with your submission\u2026"))),
102
- !(dialogData.state === __1.DialogState.CLOSED) && (react_1.default.createElement(__1.Dialog, { isOpen: confirmationDialog && !(dialogData.state === __1.DialogState.LOADING), category: __1.Category.confirmation, header: dialogMessages.header, message: dialogMessages.message, actions: dialogMessages.actions },
103
- dialogData.state === __1.DialogState.SUCCESS && (react_1.default.createElement(Grid, null,
100
+ (loading && (react_1.default.createElement(__1.LoadingOverlay, null,
101
+ react_1.default.createElement(Message, { isCentered: true }, "Proceeding with your submission\u2026")))) || (react_1.default.createElement(__1.Dialog, { isOpen: confirmationDialog && !loading, category: __1.Category.confirmation, header: dialogMessages.header, message: dialogMessages.message, actions: dialogMessages.actions },
102
+ (showComplete && (react_1.default.createElement(Grid, null,
104
103
  previousStepType && (react_1.default.createElement(StepDetails, Object.assign({}, previousStepType, { icon: react_1.default.createElement(react_1.default.Fragment, null,
105
104
  react_1.default.createElement(__1.TaskStepDoneIcon, null),
106
105
  react_1.default.createElement(Line, null)) }))),
107
- react_1.default.createElement(StepDetails, Object.assign({}, currentStepType)))),
108
- dialogData.state === __1.DialogState.ERROR && (react_1.default.createElement(AlertMessage_1.AlertMessage, { type: AlertMessage_1.AlertMessageType.error, hideCloseButton: true }, dialogData.error))))));
106
+ react_1.default.createElement(StepDetails, Object.assign({}, currentStepType))))) ||
107
+ ((!hasPendingSuggestions || isAnnotator) && onNoteChange && (react_1.default.createElement(TextAreaWrapper, null,
108
+ react_1.default.createElement(EditorHeader_1.MediumTextArea, { value: noteValue, onChange: onNoteChange, rows: 5, placeholder: 'Add any additional comment here...' })))),
109
+ error && (react_1.default.createElement(AlertMessage_1.AlertMessage, { type: AlertMessage_1.AlertMessageType.error, hideCloseButton: true }, error))))));
109
110
  };
110
111
  exports.ProceedView = ProceedView;
111
112
  const TaskDropdown = styled_components_1.default.div `
@@ -260,7 +260,7 @@ const UpdatedDueDate = styled_components_1.default.div `
260
260
  box-sizing: border-box;
261
261
  border-radius: ${(props) => props.theme.grid.unit}px;
262
262
  padding: ${(props) => props.theme.grid.unit}px
263
- ${(props) => props.theme.grid.unit * 2}px; ;
263
+ ${(props) => props.theme.grid.unit * 2}px;
264
264
  `;
265
265
  const DueDateMessage = (0, styled_components_1.default)(Dialog_1.MessageContainer) `
266
266
  min-height: min-content;
@@ -17,6 +17,7 @@ const getCapabilities = (project, profile, role, actions) => {
17
17
  const isOwner = () => { var _a; return !!(profile && ((_a = project === null || project === void 0 ? void 0 : project.owners) === null || _a === void 0 ? void 0 : _a.includes(profile.userID))); };
18
18
  const isWriter = () => { var _a; return !!(profile && ((_a = project === null || project === void 0 ? void 0 : project.writers) === null || _a === void 0 ? void 0 : _a.includes(profile.userID))); };
19
19
  const isAnnotator = () => { var _a; return !!(profile && ((_a = project === null || project === void 0 ? void 0 : project.annotators) === null || _a === void 0 ? void 0 : _a.includes(profile.userID))); };
20
+ const isProofer = () => { var _a; return !!(profile && ((_a = project === null || project === void 0 ? void 0 : project.proofers) === null || _a === void 0 ? void 0 : _a.includes(profile.userID))); };
20
21
  const isViewer = () => { var _a; return !!(profile && ((_a = project === null || project === void 0 ? void 0 : project.viewers) === null || _a === void 0 ? void 0 : _a.includes(profile.userID))); };
21
22
  const isProdEditor = () => role == 'pe';
22
23
  const allowed = (action) => !!(actions === null || actions === void 0 ? void 0 : actions.includes(action));
@@ -30,7 +31,7 @@ const getCapabilities = (project, profile, role, actions) => {
30
31
  handleOwnComments: !isViewer(),
31
32
  handleOthersComments: isOwner(),
32
33
  resolveOwnComment: !isViewer(),
33
- resolveOthersComment: !(isViewer() || isAnnotator()),
34
+ resolveOthersComment: !(isViewer() || isAnnotator() || isProofer()),
34
35
  createComment: !isViewer(),
35
36
  viewNotes: true,
36
37
  createNotes: !isViewer() && allowed(Actions.addNote),
@@ -55,8 +56,8 @@ const getCapabilities = (project, profile, role, actions) => {
55
56
  accessEditor: true,
56
57
  formatArticle: !isViewer(),
57
58
  editArticle: !isViewer(),
58
- editMetadata: !(isViewer() || isAnnotator()),
59
- editCitationsAndRefs: !(isViewer() || isAnnotator()),
59
+ editMetadata: !(isViewer() || isAnnotator() || isProofer()),
60
+ editCitationsAndRefs: !(isViewer() || isAnnotator() || isProofer()),
60
61
  shareProject: isOwner(),
61
62
  };
62
63
  };
@@ -7,18 +7,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import React, { useCallback, useState } from 'react';
10
+ import React, { useCallback, useEffect, useState } from 'react';
11
11
  import styled from 'styled-components';
12
12
  import { AnnotatorIcon, DropdownContainer, DropdownList, EditIcon, LeftArrow, NavDropdownContainer, NavDropdownToggle, PrimaryButton, ReadingIcon, SaveStatus, SecondaryButton, TextArea, useDropdown, } from '../..';
13
13
  import { ProceedView } from './ProceedView';
14
- export var DialogState;
15
- (function (DialogState) {
16
- DialogState[DialogState["INIT"] = 0] = "INIT";
17
- DialogState[DialogState["LOADING"] = 1] = "LOADING";
18
- DialogState[DialogState["ERROR"] = 2] = "ERROR";
19
- DialogState[DialogState["SUCCESS"] = 3] = "SUCCESS";
20
- DialogState[DialogState["CLOSED"] = 4] = "CLOSED";
21
- })(DialogState || (DialogState = {}));
22
14
  const Editing = { label: 'Editing...', icon: EditIcon };
23
15
  const MapUserRole = {
24
16
  Editor: Editing,
@@ -26,56 +18,56 @@ const MapUserRole = {
26
18
  Writer: Editing,
27
19
  Annotator: { label: 'Suggesting...', icon: AnnotatorIcon },
28
20
  Viewer: { label: 'Reading...', icon: ReadingIcon },
21
+ Proofer: { label: 'Proofing', icon: AnnotatorIcon },
29
22
  };
30
23
  export const EditorHeader = ({ handleSnapshot, submission, hasPendingSuggestions, userRole, canCompleteTask, submitProceed, goBack, status, isAnnotator, message, exceptionDialog: ExceptionDialog, disabelProceedNote, }) => {
31
- var _a, _b, _c, _d, _e;
24
+ var _a, _b, _c, _d;
32
25
  const [confirmationDialog, toggleConfirmationDialog] = useState(false);
26
+ const [loading, setLoading] = useState(false);
33
27
  const [noteValue, setNoteValue] = useState('');
28
+ const [error, setError] = useState(undefined);
34
29
  const [selectedTransitionIndex, setSelectedTransitionIndex] = useState();
35
- const { dialogData, submit } = submitProceed;
36
- const { updateState, clearError } = dialogData;
30
+ const { complete: showComplete, error: submissionError, mutationError, submit, } = submitProceed;
31
+ useEffect(() => {
32
+ if (submissionError) {
33
+ setError(submissionError);
34
+ }
35
+ }, [submissionError]);
37
36
  const continueDialogAction = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
38
37
  if (submission && selectedTransitionIndex && handleSnapshot) {
39
38
  const { status } = submission.currentStep.type.transitions[selectedTransitionIndex];
40
- updateState(DialogState.LOADING);
39
+ setLoading(true);
41
40
  yield handleSnapshot();
42
41
  yield submit(status.id, noteValue);
42
+ setLoading(false);
43
43
  }
44
44
  }), [
45
- submission,
46
- selectedTransitionIndex,
47
45
  handleSnapshot,
48
- updateState,
49
- submit,
46
+ selectedTransitionIndex,
47
+ submission,
50
48
  noteValue,
49
+ submit,
51
50
  ]);
52
51
  const onTransitionClick = useCallback((event) => {
53
- updateState(DialogState.INIT);
54
52
  toggleConfirmationDialog(true);
55
53
  setSelectedTransitionIndex(event.target.value || event.target.parentNode.value);
56
- }, [setSelectedTransitionIndex, toggleConfirmationDialog, updateState]);
54
+ }, [setSelectedTransitionIndex, toggleConfirmationDialog]);
57
55
  const onCancelClick = useCallback(() => {
58
56
  toggleConfirmationDialog(false);
59
57
  setSelectedTransitionIndex(undefined);
60
- clearError();
61
- updateState(DialogState.CLOSED);
62
- }, [
63
- toggleConfirmationDialog,
64
- setSelectedTransitionIndex,
65
- clearError,
66
- updateState,
67
- ]);
58
+ setError(undefined);
59
+ }, [toggleConfirmationDialog, setSelectedTransitionIndex, setError]);
68
60
  const onNoteChange = useCallback((event) => setNoteValue(event.target.value), [setNoteValue]);
69
61
  const currentStepTransition = submission === null || submission === void 0 ? void 0 : submission.currentStep.type.transitions;
70
62
  const disable = !currentStepTransition || !canCompleteTask;
71
- const errorCode = (_d = (_c = (_b = (_a = dialogData.mutationError) === null || _a === void 0 ? void 0 : _a.graphQLErrors) === null || _b === void 0 ? void 0 : _b.find((error) => { var _a; return (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.code; })) === null || _c === void 0 ? void 0 : _c.extensions) === null || _d === void 0 ? void 0 : _d.code.name;
63
+ const errorCode = (_c = (_b = (_a = mutationError === null || mutationError === void 0 ? void 0 : mutationError.graphQLErrors) === null || _a === void 0 ? void 0 : _a.find((error) => { var _a; return (_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a.code; })) === null || _b === void 0 ? void 0 : _b.extensions) === null || _c === void 0 ? void 0 : _c.code.name;
72
64
  return (React.createElement(Wrapper, null,
73
65
  goBack && (React.createElement(SecondaryButtonSmall, { onClick: goBack, type: "button" },
74
66
  React.createElement(LeftArrow, null),
75
67
  React.createElement("span", null, "Dashboard"))),
76
68
  handleSnapshot &&
77
69
  typeof hasPendingSuggestions == 'boolean' &&
78
- submission.nextStep && (React.createElement(ProceedView, { isAnnotator: isAnnotator, disable: disable, onTransitionClick: onTransitionClick, hasPendingSuggestions: hasPendingSuggestions, dialogData: dialogData, noteValue: noteValue, currentStepTransition: currentStepTransition, currentStepType: submission.currentStep.type, previousStepType: (_e = submission.previousStep) === null || _e === void 0 ? void 0 : _e.type, nextStepType: submission.nextStep.type, confirmationDialog: confirmationDialog, onNoteChange: disabelProceedNote ? undefined : onNoteChange, continueDialogAction: continueDialogAction, onCancelClick: onCancelClick, message: message })),
70
+ submission.nextStep && (React.createElement(ProceedView, { isAnnotator: isAnnotator, disable: disable, onTransitionClick: onTransitionClick, hasPendingSuggestions: hasPendingSuggestions, loading: loading, showComplete: showComplete, noteValue: noteValue, currentStepTransition: currentStepTransition, error: error, currentStepType: submission.currentStep.type, previousStepType: (_d = submission.previousStep) === null || _d === void 0 ? void 0 : _d.type, nextStepType: submission.nextStep.type, confirmationDialog: confirmationDialog, onNoteChange: disabelProceedNote ? undefined : onNoteChange, continueDialogAction: continueDialogAction, onCancelClick: onCancelClick, message: message })),
79
71
  status && (React.createElement(ChildWrapper, null,
80
72
  React.createElement(SaveStatus, { status: status }))),
81
73
  React.createElement(Spacer, null),
@@ -1,8 +1,8 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import styled from 'styled-components';
3
- import { Category, Dialog, DialogState, LoadingOverlay, NavDropdown, NavDropdownButton, NavDropdownContainer, PrimaryBoldHeading, PrimaryButton, SecondarySmallText, TaskStepDoneIcon, useDropdown, } from '../..';
3
+ import { Category, Dialog, LoadingOverlay, NavDropdown, NavDropdownButton, NavDropdownContainer, PrimaryBoldHeading, PrimaryButton, SecondarySmallText, TaskStepDoneIcon, useDropdown, } from '../..';
4
4
  import { AlertMessage, AlertMessageType } from '../AlertMessage';
5
- import { PrimaryButtonSmall, } from './EditorHeader';
5
+ import { MediumTextArea, PrimaryButtonSmall, } from './EditorHeader';
6
6
  const DropdownWrapper = ({ disabled, button, primary, children }) => {
7
7
  const { isOpen, toggleOpen, wrapperRef } = useDropdown();
8
8
  return (React.createElement(NavDropdownContainer, { id: 'user-dropdown', ref: wrapperRef },
@@ -17,7 +17,7 @@ const StepDetails = ({ icon, label, description, role }) => (React.createElement
17
17
  React.createElement(SecondarySmallText, null,
18
18
  "Actor: ",
19
19
  role.label))));
20
- export const ProceedView = ({ currentStepTransition, onTransitionClick, disable, dialogData, confirmationDialog, previousStepType, currentStepType, isAnnotator, hasPendingSuggestions, onCancelClick, continueDialogAction, message: Message, }) => {
20
+ export const ProceedView = ({ currentStepTransition, onTransitionClick, disable, loading, showComplete, confirmationDialog, previousStepType, currentStepType, nextStepType, isAnnotator, hasPendingSuggestions, error, noteValue, onNoteChange, onCancelClick, continueDialogAction, message: Message, }) => {
21
21
  const dialogMessages = useMemo(() => hasPendingSuggestions && !isAnnotator
22
22
  ? {
23
23
  header: 'The task can not be transitioned to the next step',
@@ -30,7 +30,7 @@ export const ProceedView = ({ currentStepTransition, onTransitionClick, disable,
30
30
  },
31
31
  },
32
32
  }
33
- : dialogData.state === DialogState.SUCCESS
33
+ : showComplete
34
34
  ? {
35
35
  header: 'Content reassigned successfully',
36
36
  message: `to the ${currentStepType.label}`,
@@ -55,7 +55,7 @@ export const ProceedView = ({ currentStepTransition, onTransitionClick, disable,
55
55
  },
56
56
  },
57
57
  }, [
58
- dialogData,
58
+ showComplete,
59
59
  continueDialogAction,
60
60
  onCancelClick,
61
61
  currentStepType,
@@ -68,15 +68,16 @@ export const ProceedView = ({ currentStepTransition, onTransitionClick, disable,
68
68
  currentStepTransition.map((transition, index) => (React.createElement(Task, { key: 'task_' + transition.type.id, className: transition.status.id === 'success' ? 'happyPath' : '', value: index, onClick: onTransitionClick },
69
69
  React.createElement("strong", null, transition.type.label),
70
70
  transition.type.description))))))) || (React.createElement(PrimaryButtonSmall, { value: 0, onClick: onTransitionClick, disabled: disable }, "Complete task")),
71
- dialogData.state === DialogState.LOADING && (React.createElement(LoadingOverlay, null,
72
- React.createElement(Message, { isCentered: true }, "Proceeding with your submission\u2026"))),
73
- !(dialogData.state === DialogState.CLOSED) && (React.createElement(Dialog, { isOpen: confirmationDialog && !(dialogData.state === DialogState.LOADING), category: Category.confirmation, header: dialogMessages.header, message: dialogMessages.message, actions: dialogMessages.actions },
74
- dialogData.state === DialogState.SUCCESS && (React.createElement(Grid, null,
71
+ (loading && (React.createElement(LoadingOverlay, null,
72
+ React.createElement(Message, { isCentered: true }, "Proceeding with your submission\u2026")))) || (React.createElement(Dialog, { isOpen: confirmationDialog && !loading, category: Category.confirmation, header: dialogMessages.header, message: dialogMessages.message, actions: dialogMessages.actions },
73
+ (showComplete && (React.createElement(Grid, null,
75
74
  previousStepType && (React.createElement(StepDetails, Object.assign({}, previousStepType, { icon: React.createElement(React.Fragment, null,
76
75
  React.createElement(TaskStepDoneIcon, null),
77
76
  React.createElement(Line, null)) }))),
78
- React.createElement(StepDetails, Object.assign({}, currentStepType)))),
79
- dialogData.state === DialogState.ERROR && (React.createElement(AlertMessage, { type: AlertMessageType.error, hideCloseButton: true }, dialogData.error))))));
77
+ React.createElement(StepDetails, Object.assign({}, currentStepType))))) ||
78
+ ((!hasPendingSuggestions || isAnnotator) && onNoteChange && (React.createElement(TextAreaWrapper, null,
79
+ React.createElement(MediumTextArea, { value: noteValue, onChange: onNoteChange, rows: 5, placeholder: 'Add any additional comment here...' })))),
80
+ error && (React.createElement(AlertMessage, { type: AlertMessageType.error, hideCloseButton: true }, error))))));
80
81
  };
81
82
  const TaskDropdown = styled.div `
82
83
  display: flex;
@@ -230,7 +230,7 @@ const UpdatedDueDate = styled.div `
230
230
  box-sizing: border-box;
231
231
  border-radius: ${(props) => props.theme.grid.unit}px;
232
232
  padding: ${(props) => props.theme.grid.unit}px
233
- ${(props) => props.theme.grid.unit * 2}px; ;
233
+ ${(props) => props.theme.grid.unit * 2}px;
234
234
  `;
235
235
  const DueDateMessage = styled(MessageContainer) `
236
236
  min-height: min-content;
@@ -11,6 +11,7 @@ export const getCapabilities = (project, profile, role, actions) => {
11
11
  const isOwner = () => { var _a; return !!(profile && ((_a = project === null || project === void 0 ? void 0 : project.owners) === null || _a === void 0 ? void 0 : _a.includes(profile.userID))); };
12
12
  const isWriter = () => { var _a; return !!(profile && ((_a = project === null || project === void 0 ? void 0 : project.writers) === null || _a === void 0 ? void 0 : _a.includes(profile.userID))); };
13
13
  const isAnnotator = () => { var _a; return !!(profile && ((_a = project === null || project === void 0 ? void 0 : project.annotators) === null || _a === void 0 ? void 0 : _a.includes(profile.userID))); };
14
+ const isProofer = () => { var _a; return !!(profile && ((_a = project === null || project === void 0 ? void 0 : project.proofers) === null || _a === void 0 ? void 0 : _a.includes(profile.userID))); };
14
15
  const isViewer = () => { var _a; return !!(profile && ((_a = project === null || project === void 0 ? void 0 : project.viewers) === null || _a === void 0 ? void 0 : _a.includes(profile.userID))); };
15
16
  const isProdEditor = () => role == 'pe';
16
17
  const allowed = (action) => !!(actions === null || actions === void 0 ? void 0 : actions.includes(action));
@@ -24,7 +25,7 @@ export const getCapabilities = (project, profile, role, actions) => {
24
25
  handleOwnComments: !isViewer(),
25
26
  handleOthersComments: isOwner(),
26
27
  resolveOwnComment: !isViewer(),
27
- resolveOthersComment: !(isViewer() || isAnnotator()),
28
+ resolveOthersComment: !(isViewer() || isAnnotator() || isProofer()),
28
29
  createComment: !isViewer(),
29
30
  viewNotes: true,
30
31
  createNotes: !isViewer() && allowed(Actions.addNote),
@@ -49,8 +50,8 @@ export const getCapabilities = (project, profile, role, actions) => {
49
50
  accessEditor: true,
50
51
  formatArticle: !isViewer(),
51
52
  editArticle: !isViewer(),
52
- editMetadata: !(isViewer() || isAnnotator()),
53
- editCitationsAndRefs: !(isViewer() || isAnnotator()),
53
+ editMetadata: !(isViewer() || isAnnotator() || isProofer()),
54
+ editCitationsAndRefs: !(isViewer() || isAnnotator() || isProofer()),
54
55
  shareProject: isOwner(),
55
56
  };
56
57
  };
@@ -41,7 +41,7 @@ interface Props {
41
41
  }
42
42
  export declare class AlertMessage extends React.Component<Props, State> {
43
43
  state: State;
44
- render(): false | JSX.Element;
44
+ render(): false | React.JSX.Element;
45
45
  private handleClose;
46
46
  }
47
47
  export {};
@@ -22,6 +22,6 @@ interface Props {
22
22
  handleOpen: () => void;
23
23
  }
24
24
  declare class RemoveAuthorButton extends React.Component<Props> {
25
- render(): JSX.Element;
25
+ render(): React.JSX.Element;
26
26
  }
27
27
  export default RemoveAuthorButton;
@@ -33,7 +33,7 @@ export declare class AutoSaveInput extends React.Component<FieldProps & AutoSave
33
33
  focused: boolean;
34
34
  };
35
35
  componentWillUnmount(): void;
36
- render(): JSX.Element;
36
+ render(): React.JSX.Element;
37
37
  private handleSubmit;
38
38
  private handleFocus;
39
39
  private handleBlur;
@@ -47,7 +47,7 @@ export declare enum Category {
47
47
  export declare class Dialog extends React.Component<DialogProps, DialogState> {
48
48
  state: DialogState;
49
49
  componentDidMount(): void;
50
- render(): JSX.Element;
50
+ render(): React.JSX.Element;
51
51
  private renderButtons;
52
52
  private checkInputValue;
53
53
  private setDisabledBtnState;
@@ -26,20 +26,6 @@ export type SubmissionStepType = {
26
26
  label: string;
27
27
  };
28
28
  };
29
- export declare enum DialogState {
30
- INIT = 0,
31
- LOADING = 1,
32
- ERROR = 2,
33
- SUCCESS = 3,
34
- CLOSED = 4
35
- }
36
- export type ProceedDialogData = {
37
- state: DialogState;
38
- error?: string;
39
- mutationError?: ApolloError | undefined;
40
- updateState: (state: DialogState) => void;
41
- clearError: () => void;
42
- };
43
29
  export declare const EditorHeader: React.FC<{
44
30
  handleSnapshot?: () => Promise<void>;
45
31
  submission: PartialSubmission;
@@ -50,7 +36,9 @@ export declare const EditorHeader: React.FC<{
50
36
  }>;
51
37
  userRole: string;
52
38
  submitProceed: {
53
- dialogData: ProceedDialogData;
39
+ complete: boolean;
40
+ error: string;
41
+ mutationError: ApolloError | undefined;
54
42
  submit: (statusId: string, noteValue: string) => Promise<unknown>;
55
43
  };
56
44
  goBack?: () => void;
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import { ProceedDialogData } from '../..';
3
2
  import { SubmissionStepTransition, SubmissionStepType } from './EditorHeader';
4
3
  export declare const ProceedView: React.FC<{
5
4
  isAnnotator: boolean;
@@ -7,9 +6,11 @@ export declare const ProceedView: React.FC<{
7
6
  onTransitionClick: (event: unknown) => void;
8
7
  onNoteChange?: (event: unknown) => void;
9
8
  hasPendingSuggestions: boolean;
10
- dialogData: ProceedDialogData;
9
+ loading: boolean;
10
+ showComplete: boolean;
11
11
  noteValue: string;
12
12
  currentStepTransition: SubmissionStepTransition[];
13
+ error: string | undefined;
13
14
  previousStepType: SubmissionStepType | undefined;
14
15
  currentStepType: SubmissionStepType;
15
16
  nextStepType: SubmissionStepType;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  /// <reference types="react" />
17
- export declare const CenteredForm: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "name" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "method" | "target" | "acceptCharset" | "action" | "encType" | "noValidate"> & import("react").RefAttributes<HTMLFormElement>>, import("styled-components").DefaultTheme, {}, never>;
17
+ export declare const CenteredForm: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & import("react").RefAttributes<HTMLFormElement>>, import("styled-components").DefaultTheme, {}, never>;
18
18
  export declare const FormHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
19
19
  export declare const FormActions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
20
20
  export declare const FormError: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -22,7 +22,7 @@ export declare class Resizer extends React.Component<Props, State> {
22
22
  isResizing: boolean;
23
23
  startPosition: number;
24
24
  };
25
- render(): JSX.Element;
25
+ render(): React.JSX.Element;
26
26
  private scheduleResize;
27
27
  private mouseDownHandler;
28
28
  private mouseUpHandler;
@@ -13,6 +13,6 @@ export declare class ResizerButton extends React.PureComponent<Props> {
13
13
  isCollapsed: boolean;
14
14
  isVisible: boolean;
15
15
  };
16
- render(): JSX.Element;
16
+ render(): React.JSX.Element;
17
17
  }
18
18
  export {};
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const AddAuthor: (props: IconProps) => JSX.Element;
18
+ declare const AddAuthor: (props: IconProps) => React.JSX.Element;
18
19
  export default AddAuthor;
@@ -13,5 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- declare const AddComment: () => JSX.Element;
16
+ import React from 'react';
17
+ declare const AddComment: () => React.JSX.Element;
17
18
  export default AddComment;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const AddIconActive: (props: IconProps) => JSX.Element;
18
+ declare const AddIconActive: (props: IconProps) => React.JSX.Element;
18
19
  export default AddIconActive;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const AddIconInverted: (props: IconProps) => JSX.Element;
18
+ declare const AddIconInverted: (props: IconProps) => React.JSX.Element;
18
19
  export default AddIconInverted;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- export declare const BackArrow: (props: IconProps) => JSX.Element;
18
+ export declare const BackArrow: (props: IconProps) => React.JSX.Element;
18
19
  export default BackArrow;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const Bookmark: (props: IconProps) => JSX.Element;
18
+ declare const Bookmark: (props: IconProps) => React.JSX.Element;
18
19
  export default Bookmark;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const Google: (props: IconProps) => JSX.Element;
18
+ declare const Google: (props: IconProps) => React.JSX.Element;
18
19
  export default Google;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const Orcid: (props: IconProps) => JSX.Element;
18
+ declare const Orcid: (props: IconProps) => React.JSX.Element;
18
19
  export default Orcid;
@@ -13,5 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const PlusIcon: () => JSX.Element;
16
+ import React from 'react';
17
+ export declare const PlusIcon: () => React.JSX.Element;
17
18
  export default PlusIcon;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const ProjectNotification: (props: IconProps) => JSX.Element;
18
+ declare const ProjectNotification: (props: IconProps) => React.JSX.Element;
18
19
  export default ProjectNotification;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const ProjectIcon: (props: IconProps) => JSX.Element;
18
+ declare const ProjectIcon: (props: IconProps) => React.JSX.Element;
18
19
  export default ProjectIcon;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const ProjectsList: (props: IconProps) => JSX.Element;
18
+ declare const ProjectsList: (props: IconProps) => React.JSX.Element;
18
19
  export default ProjectsList;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const SearchIcon: (props: IconProps) => JSX.Element;
18
+ declare const SearchIcon: (props: IconProps) => React.JSX.Element;
18
19
  export default SearchIcon;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const TickMark: (props: IconProps) => JSX.Element;
18
+ declare const TickMark: (props: IconProps) => React.JSX.Element;
18
19
  export default TickMark;
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import React from 'react';
16
17
  import { IconProps } from './types';
17
- declare const User: (props: IconProps) => JSX.Element;
18
+ declare const User: (props: IconProps) => React.JSX.Element;
18
19
  export default User;
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": "1.1.15-LEAN-2620-1",
4
+ "version": "1.1.15-LEAN-2684-4",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-style-guide",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
@@ -37,7 +37,7 @@
37
37
  "@formatjs/intl-utils": "^2.2.0",
38
38
  "@manuscripts/assets": "^0.6.2",
39
39
  "@manuscripts/transform": "^1.3.4",
40
- "@manuscripts/json-schema": "^2.1.0",
40
+ "@manuscripts/json-schema": "2.0.2-LEAN-2553",
41
41
  "@manuscripts/title-editor": "^1.1.0",
42
42
  "@manuscripts/comment-editor": "^1.0.3",
43
43
  "@reach/tabs": "^0.11.2",
@@ -143,4 +143,4 @@
143
143
  "resolutions": {
144
144
  "@types/react": "^17.0.2"
145
145
  }
146
- }
146
+ }