shinkansen-sprockets 1.1.0 → 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.
- package/package.json +15 -15
- package/src/.babelrc +5 -0
- package/src/components/common/text-content/.babelrc +5 -0
- package/src/components/common/text-content/index.cjs +1 -1
- package/src/components/description/.babelrc +5 -0
- package/src/components/description/fieldset/.babelrc +5 -0
- package/src/components/description/fieldset/index.cjs +1 -1
- package/src/components/description/index.cjs +1 -1
- package/src/components/error-message/.babelrc +5 -0
- package/src/components/error-message/fieldset/.babelrc +5 -0
- package/src/components/error-message/fieldset/index.cjs +1 -1
- package/src/components/error-message/index.cjs +1 -1
- package/src/components/group/.babelrc +5 -0
- package/src/components/group/check-answers/.babelrc +5 -0
- package/src/components/group/check-answers/answer-title.cjs +1 -1
- package/src/components/group/check-answers/answer-value.cjs +1 -1
- package/src/components/group/check-answers/change-answer.cjs +1 -1
- package/src/components/group/check-answers/index.cjs +1 -1
- package/src/components/group/check-answers/index.jsx +1 -1
- package/src/components/group/check-answers/visually-hidden-text.cjs +1 -1
- package/src/components/group/error-summary/.babelrc +5 -0
- package/src/components/group/error-summary/index.cjs +1 -1
- package/src/components/group/error-summary/index.jsx +1 -1
- package/src/components/group/fieldset/.babelrc +5 -0
- package/src/components/group/fieldset/index.cjs +1 -1
- package/src/components/group/index.cjs +1 -1
- package/src/components/title/.babelrc +5 -0
- package/src/components/title/check-answers/.babelrc +5 -0
- package/src/components/title/check-answers/index.cjs +1 -1
- package/src/components/title/error-summary/.babelrc +5 -0
- package/src/components/title/error-summary/index.cjs +1 -1
- package/src/components/title/fieldset/.babelrc +5 -0
- package/src/components/title/fieldset/index.cjs +1 -1
- package/src/components/title/index.cjs +1 -1
- package/src/sprockets/.babelrc +5 -0
- package/src/sprockets/check-answers/.babelrc +5 -0
- package/src/sprockets/check-answers/index.cjs +1 -1
- package/src/sprockets/check-answers/index.jsx +1 -1
- package/src/sprockets/error-summary/.babelrc +5 -0
- package/src/sprockets/error-summary/index.cjs +1 -1
- package/src/sprockets/error-summary/index.jsx +1 -1
- package/src/sprockets/fieldset/.babelrc +5 -0
- package/src/sprockets/fieldset/index.cjs +1 -1
- package/src/sprockets/index.cjs +1 -1
- package/.gitattributes +0 -21
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "shinkansen-sprockets",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.2",
|
4
4
|
"description": "Shinkansen Sprockets",
|
5
5
|
"keywords": [
|
6
6
|
"Shinkansen",
|
@@ -33,10 +33,12 @@
|
|
33
33
|
"lint": "cross-env NODE_ENV=production eslint . .storybook --ext .mjs --ext .cjs --ext .jsx --ext .mts --ext .cts",
|
34
34
|
"lint:fix": "npm run lint -- --fix",
|
35
35
|
"pretest": "npm run nvm",
|
36
|
-
"test": "cross-env NODE_ENV=test jest --collect-coverage false --
|
36
|
+
"test": "cross-env NODE_ENV=test jest --collect-coverage false --run-in-band",
|
37
37
|
"nvm": "bash nvm.sh",
|
38
|
-
"
|
39
|
-
"
|
38
|
+
"prestorybook": "npm run build && npm run transform",
|
39
|
+
"storybook": "storybook dev -p 6007",
|
40
|
+
"prepare": "husky install",
|
41
|
+
"build-storybook": "storybook build"
|
40
42
|
},
|
41
43
|
"dependencies": {
|
42
44
|
"classnames": "^2.3.2",
|
@@ -53,13 +55,14 @@
|
|
53
55
|
"@babel/preset-env": "^7.21.5",
|
54
56
|
"@babel/preset-react": "^7.18.6",
|
55
57
|
"@babel/register": "^7.21.0",
|
56
|
-
"@modernpoacher/design-system": "1.0.
|
57
|
-
"@modernpoacher/hooks": "^1.0.
|
58
|
-
"@sequencemedia/gulp": "^1.0.
|
59
|
-
"@storybook/addon-actions": "
|
60
|
-
"@storybook/addon-essentials": "
|
61
|
-
"@storybook/addon-links": "
|
62
|
-
"@storybook/react": "
|
58
|
+
"@modernpoacher/design-system": "1.0.14",
|
59
|
+
"@modernpoacher/hooks": "^1.0.402",
|
60
|
+
"@sequencemedia/gulp": "^1.0.11",
|
61
|
+
"@storybook/addon-actions": "^7.0.11",
|
62
|
+
"@storybook/addon-essentials": "^7.0.11",
|
63
|
+
"@storybook/addon-links": "^7.0.11",
|
64
|
+
"@storybook/react": "^7.0.11",
|
65
|
+
"@storybook/react-webpack5": "^7.0.11",
|
63
66
|
"@types/react": "^18.2.6",
|
64
67
|
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
65
68
|
"@typescript-eslint/parser": "^5.59.5",
|
@@ -87,9 +90,6 @@
|
|
87
90
|
"gulp-sourcemaps": "^3.0.0",
|
88
91
|
"husky": "^8.0.3",
|
89
92
|
"jest": "^29.5.0",
|
90
|
-
"jest-environment-jsdom": "^29.5.0",
|
91
|
-
"jsdom": "^22.0.0",
|
92
|
-
"jsdom-global": "^3.0.2",
|
93
93
|
"postcss": "^8.4.23",
|
94
94
|
"postcss-easy-import": "^4.0.0",
|
95
95
|
"postcss-map": "^0.11.0",
|
@@ -102,8 +102,8 @@
|
|
102
102
|
"react-router-dom": "^6.11.1",
|
103
103
|
"react-test-renderer": "^18.2.0",
|
104
104
|
"regenerator-runtime": "^0.13.11",
|
105
|
-
"rimraf": "^5.0.0",
|
106
105
|
"sass": "^1.62.1",
|
106
|
+
"storybook": "^7.0.11",
|
107
107
|
"vinyl-paths": "^5.0.0"
|
108
108
|
},
|
109
109
|
"imports": {
|
package/src/.babelrc
ADDED
@@ -107,7 +107,7 @@ export default class CheckAnswersGroup extends Group {
|
|
107
107
|
|
108
108
|
CheckAnswersGroup.propTypes = {
|
109
109
|
...Group.propTypes,
|
110
|
-
checkAnswers: PropTypes.
|
110
|
+
checkAnswers: PropTypes.arrayOf(PropTypes.shape())
|
111
111
|
}
|
112
112
|
|
113
113
|
CheckAnswersGroup.defaultProps = {
|
@@ -109,7 +109,7 @@ export default class ErrorSummaryGroup extends Group {
|
|
109
109
|
|
110
110
|
ErrorSummaryGroup.propTypes = {
|
111
111
|
...Group.propTypes,
|
112
|
-
errorSummary: PropTypes.
|
112
|
+
errorSummary: PropTypes.arrayOf(PropTypes.shape())
|
113
113
|
}
|
114
114
|
|
115
115
|
ErrorSummaryGroup.defaultProps = {
|
@@ -75,7 +75,7 @@ export default class CheckAnswersSprocket extends Sprocket {
|
|
75
75
|
|
76
76
|
CheckAnswersSprocket.propTypes = {
|
77
77
|
...Sprocket.propTypes,
|
78
|
-
checkAnswers: PropTypes.
|
78
|
+
checkAnswers: PropTypes.arrayOf(PropTypes.shape())
|
79
79
|
}
|
80
80
|
|
81
81
|
CheckAnswersSprocket.defaultProps = {
|
@@ -77,7 +77,7 @@ export default class ErrorSummarySprocket extends Sprocket {
|
|
77
77
|
|
78
78
|
ErrorSummarySprocket.propTypes = {
|
79
79
|
...Sprocket.propTypes,
|
80
|
-
errorSummary: PropTypes.
|
80
|
+
errorSummary: PropTypes.arrayOf(PropTypes.shape())
|
81
81
|
}
|
82
82
|
|
83
83
|
ErrorSummarySprocket.defaultProps = {
|
package/src/sprockets/index.cjs
CHANGED
package/.gitattributes
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# Default behavior
|
2
|
-
* text=auto
|
3
|
-
|
4
|
-
# LF line endings
|
5
|
-
*.json text eol=lf
|
6
|
-
*.mjs text eol=lf
|
7
|
-
*.cjs text eol=lf
|
8
|
-
*.jsx text eol=lf
|
9
|
-
*.mts text eol=lf
|
10
|
-
*.cts text eol=lf
|
11
|
-
*.sh text eol=lf
|
12
|
-
.editorconfig text eol=lf
|
13
|
-
.eslintignore text eol=lf
|
14
|
-
.eslintrc text eol=lf
|
15
|
-
.gitattributes text eol=lf
|
16
|
-
.gitignore text eol=lf
|
17
|
-
.npmignore text eol=lf
|
18
|
-
.npmrc text eol=lf
|
19
|
-
.eslintrc text eol=lf
|
20
|
-
.babelrc text eol=lf
|
21
|
-
.husky/* text eol=lf
|