shinkansen-engine 1.3.5 → 1.3.7
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 +13 -14
- package/src/common/index.d.mts +2 -8
- package/src/components/cogs/index.d.mts +2 -9
- package/src/components/gears/forward/index.d.mts +2 -0
- package/src/components/gears/index.d.mts +1 -7
- package/src/components/gears/reverse/index.d.mts +2 -0
- package/src/components/index.d.mts +7 -13
- package/src/components/pantograph/index.d.mts +1 -7
- package/src/components/pinion/check-answers/index.d.mts +1 -0
- package/src/components/pinion/error-summary/index.d.mts +1 -0
- package/src/components/pinion/fieldset/index.d.mts +1 -0
- package/src/components/pinion/index.d.mts +1 -7
- package/src/components/rails/index.d.mts +1 -7
- package/src/components/signals/index.d.mts +1 -7
- package/src/components/sprockets/index.d.mts +2 -9
- package/src/engine/index.cjs +1 -1
- package/src/engine/index.d.mts +1 -0
- package/src/index.cjs +3 -3
- package/src/index.d.mts +15 -21
- package/src/index.mjs +7 -17
- package/src/transformers/pinion/check-answers/index.d.mts +2 -8
- package/src/transformers/pinion/common/index.d.mts +1 -7
- package/src/transformers/pinion/error-message/index.d.mts +1 -7
- package/src/transformers/pinion/index.d.mts +3 -9
- package/src/transformers/transmission/from-document-to-hash/index.d.mts +1 -7
- package/src/transformers/transmission/from-hash-to-document/index.d.mts +1 -7
- package/src/transformers/transmission/index.d.mts +3 -9
- package/src/transformers/transmission/to-zashiki/index.d.mts +1 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-engine",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Shinkansen Engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": ">=
|
|
24
|
+
"node": ">=23.0.0"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"@types/jest": "^29.5.14",
|
|
70
70
|
"@types/react": "18.3.13",
|
|
71
71
|
"@types/react-test-renderer": "^19.0.0",
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
73
|
-
"@typescript-eslint/parser": "^8.
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^8.25.0",
|
|
73
|
+
"@typescript-eslint/parser": "^8.25.0",
|
|
74
74
|
"autoprefixer": "^10.4.20",
|
|
75
75
|
"chai": "^5.2.0",
|
|
76
76
|
"clean-webpack-plugin": "^4.0.0",
|
|
@@ -96,19 +96,18 @@
|
|
|
96
96
|
"react": "18.3.1",
|
|
97
97
|
"react-dom": "18.3.1",
|
|
98
98
|
"react-router": "^7.2.0",
|
|
99
|
-
"react-router-dom": "^7.2.0",
|
|
100
99
|
"react-test-renderer": "18.3.1",
|
|
101
100
|
"remove-files-webpack-plugin": "^1.5.0",
|
|
102
|
-
"sass": "^1.85.
|
|
101
|
+
"sass": "^1.85.1",
|
|
103
102
|
"sass-loader": "^16.0.5",
|
|
104
|
-
"shinkansen-cogs": "1.8.
|
|
105
|
-
"shinkansen-gears": "1.2.
|
|
106
|
-
"shinkansen-pantograph": "1.3.
|
|
107
|
-
"shinkansen-pinion": "1.2.
|
|
108
|
-
"shinkansen-rails": "1.0.
|
|
109
|
-
"shinkansen-signals": "1.1.
|
|
110
|
-
"shinkansen-sprockets": "1.2.
|
|
111
|
-
"shinkansen-transmission": "2.3.
|
|
103
|
+
"shinkansen-cogs": "1.8.7",
|
|
104
|
+
"shinkansen-gears": "1.2.5",
|
|
105
|
+
"shinkansen-pantograph": "1.3.351",
|
|
106
|
+
"shinkansen-pinion": "1.2.13",
|
|
107
|
+
"shinkansen-rails": "1.0.288",
|
|
108
|
+
"shinkansen-signals": "1.1.218",
|
|
109
|
+
"shinkansen-sprockets": "1.2.7",
|
|
110
|
+
"shinkansen-transmission": "2.3.4",
|
|
112
111
|
"sinon": "^19.0.2",
|
|
113
112
|
"storybook": "7.6.20",
|
|
114
113
|
"webpack": "^5.98.0",
|
package/src/common/index.d.mts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export function DEFAULT_HANDLE_CHANGE (): void
|
|
1
|
+
export function DEFAULT_HANDLE_CHANGE (): void
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
declare module 'shinkansen-engine/common' {
|
|
8
|
-
export * from '#engine/common'
|
|
9
|
-
}
|
|
3
|
+
export function DEFAULT_HANDLE_CLICK (): void
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export * from 'shinkansen-cogs'
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
declare module 'shinkansen-engine/components/cogs' {
|
|
7
|
-
export { default } from '#engine/components/cogs'
|
|
8
|
-
export * from '#engine/components/cogs'
|
|
9
|
-
}
|
|
1
|
+
export { default } from 'shinkansen-cogs'
|
|
2
|
+
export * from 'shinkansen-cogs'
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { default as Sprockets } from '#engine/components/sprockets'
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
declare module 'shinkansen-engine/components' {
|
|
12
|
-
export * from '#engine/components'
|
|
13
|
-
}
|
|
1
|
+
export { default as Cogs } from '#engine/components/cogs'
|
|
2
|
+
export { default as Gears } from '#engine/components/gears'
|
|
3
|
+
export { default as Pantograph } from '#engine/components/pantograph'
|
|
4
|
+
export { default as Pinion } from '#engine/components/pinion'
|
|
5
|
+
export { default as Rails } from '#engine/components/rails'
|
|
6
|
+
export { default as Signals } from '#engine/components/signals'
|
|
7
|
+
export { default as Sprockets } from '#engine/components/sprockets'
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Pantograph as default } from 'shinkansen-pantograph'
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module 'shinkansen-engine/components/pantograph' {
|
|
6
|
-
export * from '#engine/components/pantograph'
|
|
7
|
-
}
|
|
1
|
+
export { Pantograph as default } from 'shinkansen-pantograph'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from 'shinkansen-pinion/components/sprockets/check-answers'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from 'shinkansen-pinion/components/sprockets/error-summary'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from 'shinkansen-pinion/components/sprockets/fieldset'
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Signals as default } from 'shinkansen-signals'
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module 'shinkansen-engine/components/signals' {
|
|
6
|
-
export * from '#engine/components/signals'
|
|
7
|
-
}
|
|
1
|
+
export { Signals as default } from 'shinkansen-signals'
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export * from 'shinkansen-sprockets'
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
declare module 'shinkansen-engine/components/sprockets' {
|
|
7
|
-
export { default } from '#engine/components/sprockets'
|
|
8
|
-
export * from '#engine/components/sprockets'
|
|
9
|
-
}
|
|
1
|
+
export { default } from 'shinkansen-sprockets'
|
|
2
|
+
export * from 'shinkansen-sprockets'
|
package/src/engine/index.cjs
CHANGED
package/src/engine/index.d.mts
CHANGED
package/src/index.cjs
CHANGED
|
@@ -11,9 +11,9 @@ const Engine = require('./engine/index.cjs')
|
|
|
11
11
|
const Cogs = require('./components/cogs/index.cjs')
|
|
12
12
|
const Sprockets = require('./components/sprockets/index.cjs')
|
|
13
13
|
const Gears = require('./components/gears/index.cjs')
|
|
14
|
-
const Pinion = require('./components/pinion/index.
|
|
15
|
-
const Rails = require('./components/rails/index.
|
|
16
|
-
const Signals = require('./components/signals/index.
|
|
14
|
+
const Pinion = require('./components/pinion/index.cjs')
|
|
15
|
+
const Rails = require('./components/rails/index.cjs')
|
|
16
|
+
const Signals = require('./components/signals/index.cjs')
|
|
17
17
|
const Pantograph = require('./components/pantograph/index.cjs')
|
|
18
18
|
|
|
19
19
|
const { default: fromDocumentToHash } = require('./transformers/transmission/from-document-to-hash/index.mjs')
|
package/src/index.d.mts
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { default as Sprockets } from '#engine/components/sprockets'
|
|
1
|
+
export { default as Cogs } from '#engine/components/cogs'
|
|
2
|
+
export { default as Gears } from '#engine/components/gears'
|
|
3
|
+
export { default as Pantograph } from '#engine/components/pantograph'
|
|
4
|
+
export { default as Pinion } from '#engine/components/pinion'
|
|
5
|
+
export { default as Rails } from '#engine/components/rails'
|
|
6
|
+
export { default as Signals } from '#engine/components/signals'
|
|
7
|
+
export { default as Sprockets } from '#engine/components/sprockets'
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
export {
|
|
10
|
+
fromDocumentToHash,
|
|
11
|
+
fromHashToDocument,
|
|
12
|
+
toZashiki
|
|
13
|
+
} from '#engine/transformers/transmission'
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
declare module 'shinkansen-engine' {
|
|
22
|
-
export * from '#engine'
|
|
23
|
-
}
|
|
15
|
+
export {
|
|
16
|
+
default as Engine
|
|
17
|
+
} from '#engine/engine'
|
package/src/index.mjs
CHANGED
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
import debug from 'debug'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
export { default as Cogs } from './components/cogs/index.mjs'
|
|
4
|
+
export { default as Sprockets } from './components/sprockets/index.mjs'
|
|
5
|
+
export { default as Gears } from './components/gears/index.mjs'
|
|
6
|
+
export { default as Pinion } from './components/pinion/index.mjs'
|
|
7
|
+
export { default as Rails } from './components/rails/index.mjs'
|
|
8
|
+
export { default as Signals } from './components/signals/index.mjs'
|
|
9
|
+
export { default as Pantograph } from './components/pantograph/index.mjs'
|
|
10
10
|
|
|
11
11
|
const log = debug('shinksansen-engine')
|
|
12
12
|
|
|
13
13
|
log('`shinkansen` is awake')
|
|
14
14
|
|
|
15
|
-
export {
|
|
16
|
-
Cogs,
|
|
17
|
-
Sprockets,
|
|
18
|
-
Gears,
|
|
19
|
-
Pinion,
|
|
20
|
-
Rails,
|
|
21
|
-
Signals,
|
|
22
|
-
Pantograph
|
|
23
|
-
}
|
|
24
|
-
|
|
25
15
|
export {
|
|
26
16
|
fromDocumentToHash,
|
|
27
17
|
fromHashToDocument,
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export * from 'shinkansen-pinion/transformers/check-answers'
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
declare module 'shinkansen-engine/transformers/pinion/check-answers' {
|
|
7
|
-
export * from '#engine/transformers/pinion/check-answers'
|
|
8
|
-
}
|
|
1
|
+
export { default } from 'shinkansen-pinion/transformers/check-answers'
|
|
2
|
+
export * from 'shinkansen-pinion/transformers/check-answers'
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export * from 'shinkansen-pinion/transformers/common'
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module 'shinkansen-engine/transformers/pinion/common' {
|
|
6
|
-
export * from '#engine/transformers/pinion/common'
|
|
7
|
-
}
|
|
1
|
+
export * from 'shinkansen-pinion/transformers/common'
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export * from 'shinkansen-pinion/transformers/error-message'
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module 'shinkansen-engine/transformers/pinion/error-message' {
|
|
6
|
-
export * from '#engine/transformers/pinion/error-message'
|
|
7
|
-
}
|
|
1
|
+
export * from 'shinkansen-pinion/transformers/error-message'
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export * as errorMessage from '#engine/transformers/pinion/error-message'
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
declare module 'shinkansen-engine/transformers/pinion' {
|
|
8
|
-
export * from '#engine/transformers/pinion'
|
|
9
|
-
}
|
|
1
|
+
export * as checkAnswers from '#engine/transformers/pinion/check-answers'
|
|
2
|
+
export * as common from '#engine/transformers/pinion/common'
|
|
3
|
+
export * as errorMessage from '#engine/transformers/pinion/error-message'
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from 'shinkansen-transmission/transmission/from-document-to-hash'
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module 'shinkansen-engine/transformers/transmission/from-document-to-hash' {
|
|
6
|
-
export * from '#engine/transformers/transmission/from-document-to-hash'
|
|
7
|
-
}
|
|
1
|
+
export { default } from 'shinkansen-transmission/transmission/from-document-to-hash'
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from 'shinkansen-transmission/transmission/from-hash-to-document'
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module 'shinkansen-engine/transformers/transmission/from-hash-to-document' {
|
|
6
|
-
export * from '#engine/transformers/transmission/from-hash-to-document'
|
|
7
|
-
}
|
|
1
|
+
export { default } from 'shinkansen-transmission/transmission/from-hash-to-document'
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { default as toZashiki } from '#engine/transformers/transmission/to-zashiki'
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
declare module 'shinkansen-engine/transformers/transmission' {
|
|
8
|
-
export * from '#engine/transformers/transmission'
|
|
9
|
-
}
|
|
1
|
+
export { default as fromDocumentToHash } from '#engine/transformers/transmission/from-document-to-hash'
|
|
2
|
+
export { default as fromHashToDocument } from '#engine/transformers/transmission/from-hash-to-document'
|
|
3
|
+
export { default as toZashiki } from '#engine/transformers/transmission/to-zashiki'
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from 'shinkansen-transmission/transmission/to-zashiki'
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare module 'shinkansen-engine/transformers/transmission/to-zashiki' {
|
|
6
|
-
export * from '#engine/transformers/transmission/to-zashiki'
|
|
7
|
-
}
|
|
1
|
+
export { default } from 'shinkansen-transmission/transmission/to-zashiki'
|