@manuscripts/style-guide 3.3.1 → 3.3.2
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.
|
@@ -20,7 +20,6 @@ const getCapabilities = (project, profile, role, actions, isViewingMode) => {
|
|
|
20
20
|
const isEditor = isMemberOf(project?.editors);
|
|
21
21
|
const isWriter = isMemberOf(project?.writers);
|
|
22
22
|
const isAnnotator = isMemberOf(project?.annotators);
|
|
23
|
-
const isProofer = isMemberOf(project?.proofers);
|
|
24
23
|
const isViewer = isMemberOf(project?.viewers) || isViewingMode;
|
|
25
24
|
const allowed = (action) => !!actions?.includes(action);
|
|
26
25
|
const canEditWithoutTracking = allowed(Actions.editWithoutTracking);
|
|
@@ -45,8 +44,8 @@ const getCapabilities = (project, profile, role, actions, isViewingMode) => {
|
|
|
45
44
|
setMainManuscript: allowed(Actions.setMainManuscript),
|
|
46
45
|
editArticle: !isViewer,
|
|
47
46
|
formatArticle: !isViewer,
|
|
48
|
-
editMetadata: !
|
|
49
|
-
editCitationsAndRefs: !
|
|
47
|
+
editMetadata: !isViewer,
|
|
48
|
+
editCitationsAndRefs: !isViewer,
|
|
50
49
|
seeEditorToolbar: !isViewer,
|
|
51
50
|
seeReferencesButtons: !isViewer,
|
|
52
51
|
};
|
|
@@ -14,7 +14,6 @@ export const getCapabilities = (project, profile, role, actions, isViewingMode)
|
|
|
14
14
|
const isEditor = isMemberOf(project?.editors);
|
|
15
15
|
const isWriter = isMemberOf(project?.writers);
|
|
16
16
|
const isAnnotator = isMemberOf(project?.annotators);
|
|
17
|
-
const isProofer = isMemberOf(project?.proofers);
|
|
18
17
|
const isViewer = isMemberOf(project?.viewers) || isViewingMode;
|
|
19
18
|
const allowed = (action) => !!actions?.includes(action);
|
|
20
19
|
const canEditWithoutTracking = allowed(Actions.editWithoutTracking);
|
|
@@ -39,8 +38,8 @@ export const getCapabilities = (project, profile, role, actions, isViewingMode)
|
|
|
39
38
|
setMainManuscript: allowed(Actions.setMainManuscript),
|
|
40
39
|
editArticle: !isViewer,
|
|
41
40
|
formatArticle: !isViewer,
|
|
42
|
-
editMetadata: !
|
|
43
|
-
editCitationsAndRefs: !
|
|
41
|
+
editMetadata: !isViewer,
|
|
42
|
+
editCitationsAndRefs: !isViewer,
|
|
44
43
|
seeEditorToolbar: !isViewer,
|
|
45
44
|
seeReferencesButtons: !isViewer,
|
|
46
45
|
};
|
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": "3.3.
|
|
4
|
+
"version": "3.3.2",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|