@manuscripts/style-guide 1.1.1 → 1.1.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.
|
@@ -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),
|
|
@@ -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),
|
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",
|
|
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
|
+
}
|