shinkansen-engine 1.0.46 → 1.0.48

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 CHANGED
@@ -7,6 +7,7 @@
7
7
  *.cjs text eol=lf
8
8
  *.jsx text eol=lf
9
9
  *.mts text eol=lf
10
+ *.cts text eol=lf
10
11
  *.sh text eol=lf
11
12
  .editorconfig text eol=lf
12
13
  .eslintignore text eol=lf
package/babel.config.cjs CHANGED
@@ -196,17 +196,33 @@ const plugins = [
196
196
  'shinkansen-pinion/transformers/error-message': './node_modules/shinkansen-pinion/src/transformers/error-message/index.mjs',
197
197
  'shinkansen-pinion/transformers': './node_modules/shinkansen-pinion/src/transformers/index.mjs',
198
198
  'shinkansen-pinion/pinion': './node_modules/shinkansen-pinion/src/pinion/index.cjs',
199
-
199
+ /**
200
+ * Storybook - Rails
201
+ */
200
202
  'shinkansen-rails': './node_modules/shinkansen-rails/src/index.mjs',
203
+ /**
204
+ * Storybook - Signals
205
+ */
201
206
  'shinkansen-signals': './node_modules/shinkansen-signals/src/index.mjs',
202
-
203
207
  /**
204
208
  * Storybook - Engine
205
209
  */
210
+ 'shinkansen-engine/components/cogs': './src/components/cogs/index.cjs',
211
+ 'shinkansen-engine/components/sprockets': './src/components/sprockets/index.cjs',
206
212
  'shinkansen-engine/components/gears': './src/components/gears/index.cjs',
207
213
  'shinkansen-engine/components/pinion': './src/components/pinion/index.cjs',
208
214
  'shinkansen-engine/engine': './src/engine/index.cjs',
209
215
  'shinkansen-engine': './src/index.cjs',
216
+ '#stories/state/checkbox': './stories/state/checkbox/index.jsx',
217
+ '#stories/state/email': './stories/state/email/index.jsx',
218
+ '#stories/state/number': './stories/state/number/index.jsx',
219
+ '#stories/state/password': './stories/state/password/index.jsx',
220
+ '#stories/state/radio': './stories/state/radio/index.jsx',
221
+ '#stories/state/select': './stories/state/select/index.jsx',
222
+ '#stories/state/text': './stories/state/text/index.jsx',
223
+ '#stories/state/textarea': './stories/state/textarea/index.jsx',
224
+ '#stories/state': './stories/state/index.jsx',
225
+ '#stories/errors': './stories/errors.mjs',
210
226
  '#stories': './stories'
211
227
  }
212
228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shinkansen-engine",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Shinkansen Engine",
5
5
  "keywords": [
6
6
  "Shinkansen",
@@ -43,14 +43,14 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "debug": "^4.3.4",
46
- "shinkansen-cogs": "1.5.67",
47
- "shinkansen-gears": "1.0.62",
48
- "shinkansen-pantograph": "1.1.19",
49
- "shinkansen-pinion": "1.0.67",
50
- "shinkansen-rails": "1.0.35",
51
- "shinkansen-signals": "1.1.18",
52
- "shinkansen-sprockets": "1.0.65",
53
- "shinkansen-transmission": "2.2.27"
46
+ "shinkansen-cogs": "1.5.70",
47
+ "shinkansen-gears": "1.0.64",
48
+ "shinkansen-pantograph": "1.1.21",
49
+ "shinkansen-pinion": "1.0.69",
50
+ "shinkansen-rails": "1.0.37",
51
+ "shinkansen-signals": "1.1.20",
52
+ "shinkansen-sprockets": "1.0.67",
53
+ "shinkansen-transmission": "2.2.29"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/core": "^7.21.8",
@@ -139,12 +139,14 @@
139
139
  "require": "./src/components/pinion/check-answers/index.cjs",
140
140
  "import": "./src/components/pinion/check-answers/index.mjs"
141
141
  },
142
- "./components/pinion/common/text-content": "./src/components/pinion/common/text-content/index.cjs",
143
- "./components/pinion/common": "./src/components/pinion/common/index.mjs",
144
142
  "./components/pinion/error-summary": {
145
143
  "require": "./src/components/pinion/error-summary/index.cjs",
146
144
  "import": "./src/components/pinion/error-summary/index.mjs"
147
145
  },
146
+ "./components/pinion/fieldset": {
147
+ "require": "./src/components/pinion/fieldset/index.cjs",
148
+ "import": "./src/components/pinion/fieldset/index.mjs"
149
+ },
148
150
  "./components/pinion": "./src/components/pinion/index.cjs",
149
151
  "./components/rails": "./src/components/rails/index.cjs",
150
152
  "./components/signals": "./src/components/signals/index.cjs",
@@ -0,0 +1,13 @@
1
+ require('@babel/register')({ ignore: [] })
2
+
3
+ const debug = require('debug')
4
+
5
+ const {
6
+ default: Fieldset
7
+ } = require('shinkansen-pinion/components/fieldset')
8
+
9
+ const log = debug('shinksansen-engine/components/pinion/fieldset')
10
+
11
+ log('`shinkansen` is awake')
12
+
13
+ module.exports = Fieldset
@@ -0,0 +1,7 @@
1
+ import debug from 'debug'
2
+
3
+ const log = debug('shinksansen-engine/components/pinion/fieldset')
4
+
5
+ log('`shinkansen` is awake')
6
+
7
+ export { default } from 'shinkansen-pinion/components/fieldset'
@@ -8,8 +8,4 @@ const log = debug('shinksansen-engine')
8
8
 
9
9
  log('`shinkansen` is awake')
10
10
 
11
- console.log({
12
- Pinion
13
- })
14
-
15
11
  export default Pinion
@@ -0,0 +1,13 @@
1
+ import chai, { expect } from 'chai'
2
+ import sinonChai from 'sinon-chai'
3
+
4
+ import Fieldset from 'shinkansen-engine/components/pinion/fieldset'
5
+
6
+ chai.use(sinonChai)
7
+
8
+ describe('shinkansen-engine/components/pinion/fieldset', () => {
9
+ it('is a function', () => {
10
+ return expect(Fieldset)
11
+ .to.be.a('function')
12
+ })
13
+ })
@@ -1,9 +0,0 @@
1
- require('@babel/register')({ ignore: [] })
2
-
3
- const debug = require('debug')
4
-
5
- const log = debug('shinksansen-engine/components/pinion/common')
6
-
7
- log('`shinkansen` is awake')
8
-
9
- module.exports = require('shinkansen-pinion/components/common')
@@ -1,7 +0,0 @@
1
- import debug from 'debug'
2
-
3
- const log = debug('shinksansen-engine/components/pinion/common')
4
-
5
- log('`shinkansen` is awake')
6
-
7
- export * from 'shinkansen-pinion/components/common'
@@ -1,9 +0,0 @@
1
- require('@babel/register')({ ignore: [] })
2
-
3
- const debug = require('debug')
4
-
5
- const log = debug('shinksansen-engine/components/pinion/common/text-content')
6
-
7
- log('`shinkansen` is awake')
8
-
9
- module.exports = require('shinkansen-pinion/components/common/text-content')
@@ -1,13 +0,0 @@
1
- import chai, { expect } from 'chai'
2
- import sinonChai from 'sinon-chai'
3
-
4
- import * as common from 'shinkansen-engine/components/pinion/common'
5
-
6
- chai.use(sinonChai)
7
-
8
- describe('shinkansen-engine/components/pinion/common', () => {
9
- it('is a module', () => {
10
- return expect(common)
11
- .to.be.a('module')
12
- })
13
- })
@@ -1,13 +0,0 @@
1
- import chai, { expect } from 'chai'
2
- import sinonChai from 'sinon-chai'
3
-
4
- import TextContent from 'shinkansen-engine/components/pinion/common/text-content'
5
-
6
- chai.use(sinonChai)
7
-
8
- describe('shinkansen-engine/components/pinion/common/text-content', () => {
9
- it('is a function', () => {
10
- return expect(TextContent)
11
- .to.be.a('function')
12
- })
13
- })