shinkansen-engine 1.1.4 → 1.1.5
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/.gitattributes +2 -0
- package/babel.config.cjs +8 -4
- package/package.json +17 -20
- package/src/components/pinion/check-answers/index.cjs +1 -1
- package/src/components/pinion/check-answers/index.mjs +1 -1
- package/src/components/pinion/error-summary/index.cjs +1 -1
- package/src/components/pinion/error-summary/index.mjs +1 -1
- package/src/components/pinion/fieldset/index.cjs +1 -1
- package/src/components/pinion/fieldset/index.mjs +1 -1
- package/src/engine/index.jsx +2 -2
package/.gitattributes
CHANGED
package/babel.config.cjs
CHANGED
|
@@ -135,10 +135,14 @@ const plugins = [
|
|
|
135
135
|
/**
|
|
136
136
|
* Storybook - Pinion
|
|
137
137
|
*/
|
|
138
|
-
'shinkansen-pinion/components/
|
|
139
|
-
'shinkansen-pinion/components/
|
|
140
|
-
'shinkansen-pinion/components/
|
|
141
|
-
'shinkansen-pinion/components/
|
|
138
|
+
'shinkansen-pinion/components/cogs/radio': './node_modules/shinkansen-pinion/src/components/cogs/radio/index.cjs',
|
|
139
|
+
'shinkansen-pinion/components/cogs/select': './node_modules/shinkansen-pinion/src/components/cogs/select/index.cjs',
|
|
140
|
+
'shinkansen-pinion/components/cogs/text': './node_modules/shinkansen-pinion/src/components/cogs/text/index.cjs',
|
|
141
|
+
'shinkansen-pinion/components/cogs': './node_modules/shinkansen-pinion/src/components/cogs/index.mjs',
|
|
142
|
+
'shinkansen-pinion/components/sprockets/check-answers': './node_modules/shinkansen-pinion/src/components/sprockets/check-answers/index.cjs',
|
|
143
|
+
'shinkansen-pinion/components/sprockets/error-summary': './node_modules/shinkansen-pinion/src/components/sprockets/error-summary/index.cjs',
|
|
144
|
+
'shinkansen-pinion/components/sprockets/fieldset': './node_modules/shinkansen-pinion/src/components/sprockets/fieldset/index.cjs',
|
|
145
|
+
'shinkansen-pinion/components/sprockets': './node_modules/shinkansen-pinion/src/components/sprockets/index.mjs',
|
|
142
146
|
'shinkansen-pinion/components': './node_modules/shinkansen-pinion/src/components/index.mjs',
|
|
143
147
|
'shinkansen-pinion/transformers/check-answers/get-answer-title': './node_modules/shinkansen-pinion/src/transformers/check-answers.mjs',
|
|
144
148
|
'shinkansen-pinion/transformers/check-answers/get-answer-value-for-type-array': './node_modules/shinkansen-pinion/src/transformers/check-answers.mjs',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-engine",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Shinkansen Engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -24,21 +24,19 @@
|
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"prepublishOnly": "cross-env NODE_ENV=production npm run build",
|
|
27
|
-
"prebuild": "npm run clean",
|
|
28
27
|
"build": "cross-env DEBUG=shinkansen-engine npm run gulp -- build",
|
|
29
28
|
"build:watch": "cross-env DEBUG=shinkansen-engine npm run gulp -- build:watch",
|
|
30
|
-
"clean": "rimraf lib",
|
|
31
29
|
"transform": "cross-env DEBUG=shinkansen-engine npm run gulp -- transform",
|
|
32
30
|
"transform:watch": "cross-env DEBUG=shinkansen-engine npm run gulp -- transform:watch",
|
|
33
31
|
"pregulp": "npm run nvm",
|
|
34
32
|
"gulp": "gulp --color",
|
|
35
33
|
"prelint": "npm run nvm",
|
|
36
|
-
"lint": "eslint . .storybook --ext .mjs --ext .cjs --ext .jsx --ext .mts --ext .cts",
|
|
34
|
+
"lint": "cross-env NODE_ENV=production eslint . .storybook --ext .mjs --ext .cjs --ext .jsx --ext .mts --ext .cts",
|
|
37
35
|
"lint:fix": "npm run lint -- --fix",
|
|
38
36
|
"pretest": "npm run nvm",
|
|
39
37
|
"test": "npm run test:mocha && npm run test:jest",
|
|
40
38
|
"test:mocha": "cross-env NODE_ENV=test mocha test --recursive",
|
|
41
|
-
"test:jest": "cross-env NODE_ENV=test jest
|
|
39
|
+
"test:jest": "cross-env NODE_ENV=test jest",
|
|
42
40
|
"nvm": "bash nvm.sh",
|
|
43
41
|
"prestorybook": "npm run build && npm run transform",
|
|
44
42
|
"storybook": "storybook dev -p 6010",
|
|
@@ -49,12 +47,12 @@
|
|
|
49
47
|
"debug": "^4.3.4",
|
|
50
48
|
"shinkansen-cogs": "1.6.1",
|
|
51
49
|
"shinkansen-gears": "1.1.1",
|
|
52
|
-
"shinkansen-pantograph": "1.2.
|
|
53
|
-
"shinkansen-pinion": "1.1.
|
|
54
|
-
"shinkansen-rails": "1.0.
|
|
55
|
-
"shinkansen-signals": "1.1.
|
|
50
|
+
"shinkansen-pantograph": "1.2.4",
|
|
51
|
+
"shinkansen-pinion": "1.1.4",
|
|
52
|
+
"shinkansen-rails": "1.0.44",
|
|
53
|
+
"shinkansen-signals": "1.1.27",
|
|
56
54
|
"shinkansen-sprockets": "1.1.1",
|
|
57
|
-
"shinkansen-transmission": "2.2.
|
|
55
|
+
"shinkansen-transmission": "2.2.40"
|
|
58
56
|
},
|
|
59
57
|
"devDependencies": {
|
|
60
58
|
"@babel/core": "^7.21.8",
|
|
@@ -66,14 +64,14 @@
|
|
|
66
64
|
"@babel/preset-env": "^7.21.5",
|
|
67
65
|
"@babel/preset-react": "^7.18.6",
|
|
68
66
|
"@babel/register": "^7.21.0",
|
|
69
|
-
"@modernpoacher/design-system": "1.0.
|
|
70
|
-
"@modernpoacher/hooks": "^1.0.
|
|
71
|
-
"@sequencemedia/gulp": "^1.0.
|
|
72
|
-
"@storybook/addon-actions": "^7.0.
|
|
73
|
-
"@storybook/addon-essentials": "^7.0.
|
|
74
|
-
"@storybook/addon-links": "^7.0.
|
|
75
|
-
"@storybook/react": "^7.0.
|
|
76
|
-
"@storybook/react-webpack5": "^7.0.
|
|
67
|
+
"@modernpoacher/design-system": "1.0.14",
|
|
68
|
+
"@modernpoacher/hooks": "^1.0.402",
|
|
69
|
+
"@sequencemedia/gulp": "^1.0.11",
|
|
70
|
+
"@storybook/addon-actions": "^7.0.11",
|
|
71
|
+
"@storybook/addon-essentials": "^7.0.11",
|
|
72
|
+
"@storybook/addon-links": "^7.0.11",
|
|
73
|
+
"@storybook/react": "^7.0.11",
|
|
74
|
+
"@storybook/react-webpack5": "^7.0.11",
|
|
77
75
|
"@types/react": "^18.2.6",
|
|
78
76
|
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
|
79
77
|
"@typescript-eslint/parser": "^5.59.5",
|
|
@@ -115,11 +113,10 @@
|
|
|
115
113
|
"react-router-dom": "^6.11.1",
|
|
116
114
|
"react-test-renderer": "^18.2.0",
|
|
117
115
|
"regenerator-runtime": "^0.13.11",
|
|
118
|
-
"rimraf": "^5.0.0",
|
|
119
116
|
"sass": "^1.62.1",
|
|
120
117
|
"sinon": "^15.0.4",
|
|
121
118
|
"sinon-chai": "^3.7.0",
|
|
122
|
-
"storybook": "^7.0.
|
|
119
|
+
"storybook": "^7.0.11",
|
|
123
120
|
"vinyl-paths": "^5.0.0"
|
|
124
121
|
},
|
|
125
122
|
"imports": {
|
|
@@ -2,7 +2,7 @@ require('@babel/register')({ ignore: [] })
|
|
|
2
2
|
|
|
3
3
|
const debug = require('debug')
|
|
4
4
|
|
|
5
|
-
const CheckAnswers = require('shinkansen-pinion/components/check-answers')
|
|
5
|
+
const CheckAnswers = require('shinkansen-pinion/components/sprockets/check-answers')
|
|
6
6
|
|
|
7
7
|
const log = debug('shinksansen-engine/components/pinion/check-answers')
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ require('@babel/register')({ ignore: [] })
|
|
|
2
2
|
|
|
3
3
|
const debug = require('debug')
|
|
4
4
|
|
|
5
|
-
const ErrorSummary = require('shinkansen-pinion/components/error-summary')
|
|
5
|
+
const ErrorSummary = require('shinkansen-pinion/components/sprockets/error-summary')
|
|
6
6
|
|
|
7
7
|
const log = debug('shinksansen-engine/components/pinion/error-summary')
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ require('@babel/register')({ ignore: [] })
|
|
|
2
2
|
|
|
3
3
|
const debug = require('debug')
|
|
4
4
|
|
|
5
|
-
const Fieldset = require('shinkansen-pinion/components/fieldset')
|
|
5
|
+
const Fieldset = require('shinkansen-pinion/components/sprockets/fieldset')
|
|
6
6
|
|
|
7
7
|
const log = debug('shinksansen-engine/components/pinion/fieldset')
|
|
8
8
|
|
package/src/engine/index.jsx
CHANGED
|
@@ -42,8 +42,8 @@ Engine.propTypes = {
|
|
|
42
42
|
pinion: PropTypes.shape().isRequired,
|
|
43
43
|
params: PropTypes.shape(),
|
|
44
44
|
gears: PropTypes.shape({
|
|
45
|
-
forward: PropTypes.
|
|
46
|
-
reverse: PropTypes.
|
|
45
|
+
forward: PropTypes.shape(),
|
|
46
|
+
reverse: PropTypes.shape(),
|
|
47
47
|
pattern: PropTypes.string
|
|
48
48
|
}),
|
|
49
49
|
onChange: PropTypes.func
|