@manuscripts/style-guide 1.1.1 → 1.1.2-LEAN-2192
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/AuthorForm/AuthorForm.js +1 -0
- package/dist/cjs/components/EditorHeader/ProceedView.js +2 -2
- package/dist/es/components/AuthorForm/AuthorForm.js +1 -0
- package/dist/es/components/EditorHeader/ProceedView.js +2 -2
- package/dist/types/types.d.ts +1 -0
- package/package.json +4 -3
|
@@ -40,6 +40,7 @@ const RemoveAuthorButton_1 = __importDefault(require("./RemoveAuthorButton"));
|
|
|
40
40
|
const ensureString = (value) => value || '';
|
|
41
41
|
const buildInitialValues = (author) => {
|
|
42
42
|
return {
|
|
43
|
+
affiliations: author.affiliations || [],
|
|
43
44
|
_id: author._id,
|
|
44
45
|
priority: Number(author.priority),
|
|
45
46
|
email: ensureString(author.email),
|
|
@@ -62,7 +62,7 @@ const ProceedView = ({ currentStepTransition, onTransitionClick, disable, loadin
|
|
|
62
62
|
: showComplete
|
|
63
63
|
? {
|
|
64
64
|
header: 'Content reassigned successfully',
|
|
65
|
-
message: `to the ${
|
|
65
|
+
message: `to the ${currentStepType.label}`,
|
|
66
66
|
actions: {
|
|
67
67
|
primary: {
|
|
68
68
|
action: onCancelClick,
|
|
@@ -87,7 +87,7 @@ const ProceedView = ({ currentStepTransition, onTransitionClick, disable, loadin
|
|
|
87
87
|
showComplete,
|
|
88
88
|
continueDialogAction,
|
|
89
89
|
onCancelClick,
|
|
90
|
-
|
|
90
|
+
currentStepType,
|
|
91
91
|
hasPendingSuggestions,
|
|
92
92
|
isAnnotator,
|
|
93
93
|
]);
|
|
@@ -34,6 +34,7 @@ import RemoveAuthorButton from './RemoveAuthorButton';
|
|
|
34
34
|
const ensureString = (value) => value || '';
|
|
35
35
|
const buildInitialValues = (author) => {
|
|
36
36
|
return {
|
|
37
|
+
affiliations: author.affiliations || [],
|
|
37
38
|
_id: author._id,
|
|
38
39
|
priority: Number(author.priority),
|
|
39
40
|
email: ensureString(author.email),
|
|
@@ -33,7 +33,7 @@ export const ProceedView = ({ currentStepTransition, onTransitionClick, disable,
|
|
|
33
33
|
: showComplete
|
|
34
34
|
? {
|
|
35
35
|
header: 'Content reassigned successfully',
|
|
36
|
-
message: `to the ${
|
|
36
|
+
message: `to the ${currentStepType.label}`,
|
|
37
37
|
actions: {
|
|
38
38
|
primary: {
|
|
39
39
|
action: onCancelClick,
|
|
@@ -58,7 +58,7 @@ export const ProceedView = ({ currentStepTransition, onTransitionClick, disable,
|
|
|
58
58
|
showComplete,
|
|
59
59
|
continueDialogAction,
|
|
60
60
|
onCancelClick,
|
|
61
|
-
|
|
61
|
+
currentStepType,
|
|
62
62
|
hasPendingSuggestions,
|
|
63
63
|
isAnnotator,
|
|
64
64
|
]);
|
package/dist/types/types.d.ts
CHANGED
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.
|
|
4
|
+
"version": "1.1.2-LEAN-2192",
|
|
5
5
|
"repository": "github:Atypon-OpenSource/manuscripts-style-guide",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "dist/cjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"prebuild": "rimraf dist",
|
|
26
26
|
"prettier": "prettier --write \"{src,stories}/**/*.{ts,tsx}\"",
|
|
27
27
|
"preversion": "npm-run-all --parallel lint typecheck test",
|
|
28
|
-
"storybook": "start-storybook -p 6006",
|
|
28
|
+
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
|
|
29
29
|
"test": "jest",
|
|
30
30
|
"typecheck": "tsc --noEmit",
|
|
31
31
|
"version": "yarn build",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"@babel/preset-env": "^7.20.2",
|
|
75
75
|
"@babel/preset-react": "^7.18.6",
|
|
76
76
|
"@babel/preset-typescript": "^7.18.6",
|
|
77
|
+
"@inline-svg-unique-id/react": "^1.2.3",
|
|
77
78
|
"@manuscripts/data": "^0.1.0",
|
|
78
79
|
"@manuscripts/eslint-config": "^0.5.1",
|
|
79
80
|
"@manuscripts/examples": "^0.0.7",
|
|
@@ -143,4 +144,4 @@
|
|
|
143
144
|
"resolutions": {
|
|
144
145
|
"@types/react": "^17.0.2"
|
|
145
146
|
}
|
|
146
|
-
}
|
|
147
|
+
}
|