shinkansen-engine 1.0.49 → 1.0.52
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 +4 -4
- package/src/engine/index.jsx +6 -1
- package/src/index.cjs +2 -2
- package/src/index.d.cts +57 -0
- package/src/index.mjs +10 -8
- package/src/transformers/pinion/index.mjs +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-engine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"description": "Shinkansen Engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"shinkansen-cogs": "1.5.70",
|
|
49
49
|
"shinkansen-gears": "1.0.64",
|
|
50
50
|
"shinkansen-pantograph": "1.1.21",
|
|
51
|
-
"shinkansen-pinion": "1.0.
|
|
51
|
+
"shinkansen-pinion": "1.0.72",
|
|
52
52
|
"shinkansen-rails": "1.0.37",
|
|
53
53
|
"shinkansen-signals": "1.1.20",
|
|
54
54
|
"shinkansen-sprockets": "1.0.67",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"@babel/preset-env": "^7.21.5",
|
|
65
65
|
"@babel/preset-react": "^7.18.6",
|
|
66
66
|
"@babel/register": "^7.21.0",
|
|
67
|
-
"@modernpoacher/design-system": "1.0.
|
|
68
|
-
"@modernpoacher/hooks": "^1.0.
|
|
67
|
+
"@modernpoacher/design-system": "1.0.8",
|
|
68
|
+
"@modernpoacher/hooks": "^1.0.398",
|
|
69
69
|
"@sequencemedia/gulp": "^1.0.7",
|
|
70
70
|
"@storybook/addon-actions": "6.5.12",
|
|
71
71
|
"@storybook/addon-essentials": "6.5.12",
|
package/src/engine/index.jsx
CHANGED
|
@@ -4,6 +4,10 @@ import PropTypes from 'prop-types'
|
|
|
4
4
|
import Pinion from 'shinkansen-engine/components/pinion'
|
|
5
5
|
import Gears from 'shinkansen-engine/components/gears'
|
|
6
6
|
|
|
7
|
+
function onChange () {
|
|
8
|
+
//
|
|
9
|
+
}
|
|
10
|
+
|
|
7
11
|
export default class Engine extends Component {
|
|
8
12
|
render () {
|
|
9
13
|
const {
|
|
@@ -47,5 +51,6 @@ Engine.propTypes = {
|
|
|
47
51
|
|
|
48
52
|
Engine.defaultProps = {
|
|
49
53
|
params: {},
|
|
50
|
-
gears: {}
|
|
54
|
+
gears: {},
|
|
55
|
+
onChange
|
|
51
56
|
}
|
package/src/index.cjs
CHANGED
|
@@ -20,8 +20,6 @@ const log = debug('shinksansen-engine')
|
|
|
20
20
|
|
|
21
21
|
log('`shinkansen` is awake')
|
|
22
22
|
|
|
23
|
-
module.exports.Engine = Engine
|
|
24
|
-
|
|
25
23
|
module.exports.Cogs = Cogs
|
|
26
24
|
module.exports.Sprockets = Sprockets
|
|
27
25
|
module.exports.Gears = Gears
|
|
@@ -33,3 +31,5 @@ module.exports.Pantograph = Pantograph
|
|
|
33
31
|
module.exports.fromDocumentToHash = fromDocumentToHash
|
|
34
32
|
module.exports.fromHashToDocument = fromHashToDocument
|
|
35
33
|
module.exports.toZashiki = toZashiki
|
|
34
|
+
|
|
35
|
+
module.exports.Engine = Engine
|
package/src/index.d.cts
CHANGED
|
@@ -26,6 +26,53 @@ declare module 'shinkansen-engine/components/pantograph' {
|
|
|
26
26
|
export { Pantograph } from 'shinkansen-pantograph'
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
declare module 'shinkansen-engine/transformers/pinion/check-answers' {
|
|
30
|
+
export * from 'shinkansen-pinion/transformers/check-answers'
|
|
31
|
+
export { default } from 'shinkansen-pinion/transformers/check-answers'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare module 'shinkansen-engine/transformers/pinion/common' {
|
|
35
|
+
export * from 'shinkansen-pinion/transformers/common'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare module 'shinkansen-engine/transformers/pinion/error-message' {
|
|
39
|
+
export * from 'shinkansen-pinion/transformers/error-message'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare module 'shinkansen-engine/transformers/pinion' {
|
|
43
|
+
export * as checkAnswers from 'shinkansen-engine/transformers/pinion/check-answers'
|
|
44
|
+
export * as common from 'shinkansen-engine/transformers/pinion/common'
|
|
45
|
+
export * as errorMessage from 'shinkansen-engine/transformers/pinion/error-message'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare module 'shinkansen-engine/transformers/transmission/from-hash-to-document' {
|
|
49
|
+
export { default } from 'shinkansen-transmission/transmission/from-hash-to-document'
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare module 'shinkansen-engine/transformers/transmission/from-document-to-hash' {
|
|
53
|
+
export { default } from 'shinkansen-transmission/transmission/from-document-to-hash'
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare module 'shinkansen-engine/transformers/transmission/to-zashiki' {
|
|
57
|
+
export { default } from 'shinkansen-transmission/transmission/to-zashiki'
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare module 'shinkansen-engine/transformers/transmission' {
|
|
61
|
+
export { default as fromDocumentToHash } from 'shinkansen-engine/transformers/transmission/from-document-to-hash'
|
|
62
|
+
export { default as fromHashToDocument } from 'shinkansen-engine/transformers/transmission/from-hash-to-document'
|
|
63
|
+
export { default as toZashiki } from 'shinkansen-engine/transformers/transmission/to-zashiki'
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare module 'shinkansen-engine/engine' {
|
|
67
|
+
import React from 'react'
|
|
68
|
+
import type { PinionProps } from 'shinkansen-pinion/pinion'
|
|
69
|
+
import type { GearsProps } from 'shinkansen-gears/gears'
|
|
70
|
+
|
|
71
|
+
export type EngineProps = PinionProps & { gears: GearsProps }
|
|
72
|
+
|
|
73
|
+
export default class Engine extends React.Component<EngineProps> {}
|
|
74
|
+
}
|
|
75
|
+
|
|
29
76
|
declare module 'shinkansen-engine' {
|
|
30
77
|
export { Cogs } from 'shinkansen-engine/components/cogs'
|
|
31
78
|
export { Sprockets } from 'shinkansen-engine/components/sprockets'
|
|
@@ -34,4 +81,14 @@ declare module 'shinkansen-engine' {
|
|
|
34
81
|
export { Rails } from 'shinkansen-engine/components/rails'
|
|
35
82
|
export { Signals } from 'shinkansen-engine/components/signals'
|
|
36
83
|
export { Pantograph } from 'shinkansen-engine/components/pantograph'
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
fromDocumentToHash,
|
|
87
|
+
fromHashToDocument,
|
|
88
|
+
toZashiki
|
|
89
|
+
} from 'shinkansen-engine/engine/transformers/transmission'
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
default as Engine
|
|
93
|
+
} from 'shinkansen-engine/engine'
|
|
37
94
|
}
|
package/src/index.mjs
CHANGED
|
@@ -12,14 +12,6 @@ const log = debug('shinksansen-engine')
|
|
|
12
12
|
|
|
13
13
|
log('`shinkansen` is awake')
|
|
14
14
|
|
|
15
|
-
export { default as Engine } from './engine/index.cjs'
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
fromDocumentToHash,
|
|
19
|
-
fromHashToDocument,
|
|
20
|
-
toZashiki
|
|
21
|
-
} from './transformers/transmission/index.mjs'
|
|
22
|
-
|
|
23
15
|
export {
|
|
24
16
|
Cogs,
|
|
25
17
|
Sprockets,
|
|
@@ -29,3 +21,13 @@ export {
|
|
|
29
21
|
Signals,
|
|
30
22
|
Pantograph
|
|
31
23
|
}
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
fromDocumentToHash,
|
|
27
|
+
fromHashToDocument,
|
|
28
|
+
toZashiki
|
|
29
|
+
} from './transformers/transmission/index.mjs'
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
default as Engine
|
|
33
|
+
} from './engine/index.cjs'
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import debug from 'debug'
|
|
2
|
+
|
|
3
|
+
const log = debug('shinksansen-engine')
|
|
4
|
+
|
|
5
|
+
log('`shinkansen` is awake')
|
|
6
|
+
|
|
7
|
+
export * as checkAnswers from './check-answers/index.mjs'
|
|
8
|
+
export * as common from './common/index.mjs'
|
|
9
|
+
export * as errorMessage from './error-message/index.mjs'
|