shinkansen-pinion 1.2.2 → 1.2.4

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/eslint.config.mjs CHANGED
@@ -214,5 +214,14 @@ export default [
214
214
  PinionTypes: 'readonly'
215
215
  }
216
216
  }
217
- })
217
+ }),
218
+ {
219
+ files: [
220
+ 'src/common/**/*.d.{mts,cts}'
221
+ ],
222
+ rules: {
223
+ 'no-redeclare': 'off',
224
+ '@typescript-eslint/unified-signatures': 'off'
225
+ }
226
+ }
218
227
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shinkansen-pinion",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Shinkansen Pinion",
5
5
  "keywords": [
6
6
  "Shinkansen",
@@ -55,9 +55,9 @@
55
55
  "@babel/preset-env": "^7.26.9",
56
56
  "@babel/preset-react": "^7.26.3",
57
57
  "@babel/register": "^7.25.9",
58
- "@modernpoacher/design-system": "1.1.27",
59
- "@sequencemedia/eslint-config-standard": "^0.2.26",
60
- "@sequencemedia/eslint-config-typescript": "^0.1.37",
58
+ "@modernpoacher/design-system": "1.1.28",
59
+ "@sequencemedia/eslint-config-standard": "^0.2.28",
60
+ "@sequencemedia/eslint-config-typescript": "^0.1.39",
61
61
  "@storybook/addon-actions": "7.6.20",
62
62
  "@storybook/addon-essentials": "7.6.20",
63
63
  "@storybook/addon-links": "7.6.20",
@@ -77,11 +77,11 @@
77
77
  "clean-webpack-plugin": "^4.0.0",
78
78
  "core-js": "^3.40.0",
79
79
  "cross-env": "^7.0.3",
80
- "eslint": "^9.20.1",
80
+ "eslint": "^9.21.0",
81
81
  "eslint-import-resolver-babel-module": "^5.3.2",
82
82
  "eslint-plugin-react": "^7.37.4",
83
83
  "eslint-plugin-storybook": "^0.11.3",
84
- "globals": "^15.15.0",
84
+ "globals": "^16.0.0",
85
85
  "husky": "^9.1.7",
86
86
  "jest": "^29.7.0",
87
87
  "mini-css-extract-plugin": "^2.9.2",
@@ -103,10 +103,10 @@
103
103
  "remove-files-webpack-plugin": "^1.5.0",
104
104
  "sass": "^1.85.0",
105
105
  "sass-loader": "^16.0.5",
106
- "shinkansen-cogs": "1.8.1",
107
- "shinkansen-rails": "1.0.281",
108
- "shinkansen-signals": "1.1.211",
109
- "shinkansen-sprockets": "1.2.0",
106
+ "shinkansen-cogs": "1.8.2",
107
+ "shinkansen-rails": "1.0.283",
108
+ "shinkansen-signals": "1.1.213",
109
+ "shinkansen-sprockets": "1.2.2",
110
110
  "sinon": "^19.0.2",
111
111
  "storybook": "7.6.20",
112
112
  "webpack": "^5.98.0",
@@ -0,0 +1,10 @@
1
+ type ElementsType = PinionTypes.ElementsType
2
+ type ElementsEnumType = PinionTypes.ElementsEnumType
3
+ type ElementsAnyOfType = PinionTypes.ElementsAnyOfType
4
+ type ElementsOneOfType = PinionTypes.ElementsOneOfType
5
+ type ElementsFieldType = PinionTypes.ElementsFieldType
6
+
7
+ declare function hasAnyOf (elements: ElementsEnumType | ElementsAnyOfType | ElementsOneOfType | ElementsFieldType): boolean
8
+ declare function hasAnyOf (elements: ElementsType): boolean
9
+
10
+ export default hasAnyOf
@@ -1,6 +1,4 @@
1
1
  /**
2
- * @typedef {PinionTypes.ObjectType} ObjectType
3
- *
4
2
  * @typedef {PinionTypes.ElementsType} ElementsType
5
3
  * @typedef {PinionTypes.ElementsEnumType} ElementsEnumType
6
4
  * @typedef {PinionTypes.ElementsAnyOfType} ElementsAnyOfType
@@ -0,0 +1,10 @@
1
+ type ElementsType = PinionTypes.ElementsType
2
+ type ElementsEnumType = PinionTypes.ElementsEnumType
3
+ type ElementsAnyOfType = PinionTypes.ElementsAnyOfType
4
+ type ElementsOneOfType = PinionTypes.ElementsOneOfType
5
+ type ElementsFieldType = PinionTypes.ElementsFieldType
6
+
7
+ declare function hasEnum (elements: ElementsEnumType | ElementsAnyOfType | ElementsOneOfType | ElementsFieldType): boolean
8
+ declare function hasEnum (elements: ElementsType): boolean
9
+
10
+ export default hasEnum
@@ -0,0 +1,10 @@
1
+ type ElementsType = PinionTypes.ElementsType
2
+ type ElementsEnumType = PinionTypes.ElementsEnumType
3
+ type ElementsAnyOfType = PinionTypes.ElementsAnyOfType
4
+ type ElementsOneOfType = PinionTypes.ElementsOneOfType
5
+ type ElementsFieldType = PinionTypes.ElementsFieldType
6
+
7
+ declare function hasField (elements: ElementsEnumType | ElementsAnyOfType | ElementsOneOfType | ElementsFieldType): boolean
8
+ declare function hasField (elements: ElementsType): boolean
9
+
10
+ export default hasField
@@ -0,0 +1,10 @@
1
+ type ElementsType = PinionTypes.ElementsType
2
+ type ElementsEnumType = PinionTypes.ElementsEnumType
3
+ type ElementsAnyOfType = PinionTypes.ElementsAnyOfType
4
+ type ElementsOneOfType = PinionTypes.ElementsOneOfType
5
+ type ElementsFieldType = PinionTypes.ElementsFieldType
6
+
7
+ declare function hasOneOf (elements: ElementsEnumType | ElementsAnyOfType | ElementsOneOfType | ElementsFieldType): boolean
8
+ declare function hasOneOf (elements: ElementsType): boolean
9
+
10
+ export default hasOneOf
@@ -0,0 +1,12 @@
1
+ type ObjectType = PinionTypes.ObjectType
2
+
3
+ type MetaType = PinionTypes.MetaType
4
+ type MetaEnumType = PinionTypes.MetaEnumType
5
+ type MetaAnyOfType = PinionTypes.MetaAnyOfType
6
+ type MetaOneOfType = PinionTypes.MetaOneOfType
7
+ type MetaFieldType = PinionTypes.MetaFieldType
8
+
9
+ declare function getSchema (meta: MetaEnumType | MetaAnyOfType | MetaOneOfType | MetaFieldType): ObjectType
10
+ declare function getSchema (meta: MetaType): ObjectType
11
+
12
+ export default getSchema
@@ -0,0 +1,10 @@
1
+ type MetaType = PinionTypes.MetaType
2
+ type MetaEnumType = PinionTypes.MetaEnumType
3
+ type MetaAnyOfType = PinionTypes.MetaAnyOfType
4
+ type MetaOneOfType = PinionTypes.MetaOneOfType
5
+ type MetaFieldType = PinionTypes.MetaFieldType
6
+
7
+ declare function hasAnyOf (meta: MetaEnumType | MetaAnyOfType | MetaOneOfType | MetaFieldType): boolean
8
+ declare function hasAnyOf (meta: MetaType): boolean
9
+
10
+ export default hasAnyOf
@@ -0,0 +1,10 @@
1
+ type MetaType = PinionTypes.MetaType
2
+ type MetaEnumType = PinionTypes.MetaEnumType
3
+ type MetaAnyOfType = PinionTypes.MetaAnyOfType
4
+ type MetaOneOfType = PinionTypes.MetaOneOfType
5
+ type MetaFieldType = PinionTypes.MetaFieldType
6
+
7
+ declare function hasEnum (meta: MetaEnumType | MetaAnyOfType | MetaOneOfType | MetaFieldType): boolean
8
+ declare function hasEnum (meta: MetaType): boolean
9
+
10
+ export default hasEnum
@@ -0,0 +1,10 @@
1
+ type MetaType = PinionTypes.MetaType
2
+ type MetaEnumType = PinionTypes.MetaEnumType
3
+ type MetaAnyOfType = PinionTypes.MetaAnyOfType
4
+ type MetaOneOfType = PinionTypes.MetaOneOfType
5
+ type MetaFieldType = PinionTypes.MetaFieldType
6
+
7
+ declare function hasField (meta: MetaEnumType | MetaAnyOfType | MetaOneOfType | MetaFieldType): boolean
8
+ declare function hasField (meta: MetaType): boolean
9
+
10
+ export default hasField
@@ -0,0 +1,10 @@
1
+ type MetaType = PinionTypes.MetaType
2
+ type MetaEnumType = PinionTypes.MetaEnumType
3
+ type MetaAnyOfType = PinionTypes.MetaAnyOfType
4
+ type MetaOneOfType = PinionTypes.MetaOneOfType
5
+ type MetaFieldType = PinionTypes.MetaFieldType
6
+
7
+ declare function hasOneOf (meta: MetaEnumType | MetaAnyOfType | MetaOneOfType | MetaFieldType): boolean
8
+ declare function hasOneOf (meta: MetaType): boolean
9
+
10
+ export default hasOneOf
@@ -1 +1 @@
1
- export default function transformAnyOfValue (field: PinionTypes.ElementsAnyOfType['anyOf']): string
1
+ export default function transformAnyOfValue (field: PinionTypes.AnyOfType): string
@@ -1 +1 @@
1
- export default function transformEnumValue (field: PinionTypes.ElementsEnumType['enum']): string
1
+ export default function transformEnumValue (field: PinionTypes.EnumType): string
@@ -1 +1 @@
1
- export default function transformOneOfValue (field: PinionTypes.ElementsOneOfType['oneOf']): string
1
+ export default function transformOneOfValue (field: PinionTypes.OneOfType): string