shinkansen-pinion 1.2.4 → 1.2.6
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/index.d.mts +5 -5
- package/package.json +8 -8
- package/src/index.d.mts +2 -0
- package/src/pinion/index.d.mts +15 -15
package/index.d.mts
CHANGED
|
@@ -48,7 +48,7 @@ declare global {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export interface MetaType {
|
|
51
|
-
type: string
|
|
51
|
+
type: string
|
|
52
52
|
uri: string
|
|
53
53
|
isRequired?: boolean
|
|
54
54
|
schema?: ObjectLiteralType | ObjectType
|
|
@@ -78,15 +78,15 @@ declare global {
|
|
|
78
78
|
name?: string
|
|
79
79
|
isRequired?: boolean
|
|
80
80
|
items?: string[]
|
|
81
|
-
selectedItems?: number[]
|
|
81
|
+
selectedItems?: number[]
|
|
82
82
|
value?: string | number | boolean | null | ObjectType | ArrayType
|
|
83
83
|
defaultValue?: string | number | boolean | null | ObjectType | ArrayType
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
export interface ElementsType {
|
|
87
87
|
title: string
|
|
88
|
-
description?: string
|
|
89
|
-
field?: FieldType
|
|
88
|
+
description?: string
|
|
89
|
+
field?: FieldType
|
|
90
90
|
fields?: PinionType[] // eslint-disable-line no-use-before-define -- Standard type
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -190,7 +190,7 @@ declare global {
|
|
|
190
190
|
elements: ElementsType | ElementsEnumType | ElementsAnyOfType | ElementsOneOfType
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
export interface ParamsType { components: Record<PropertyKey, unknown
|
|
193
|
+
export interface ParamsType { components: Record<PropertyKey, unknown>; errors: FieldError[] }
|
|
194
194
|
|
|
195
195
|
export interface PinionProps {
|
|
196
196
|
pinion: PinionType
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-pinion",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
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.
|
|
59
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
|
60
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
|
58
|
+
"@modernpoacher/design-system": "1.1.29",
|
|
59
|
+
"@sequencemedia/eslint-config-standard": "^0.2.29",
|
|
60
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.43",
|
|
61
61
|
"@storybook/addon-actions": "7.6.20",
|
|
62
62
|
"@storybook/addon-essentials": "7.6.20",
|
|
63
63
|
"@storybook/addon-links": "7.6.20",
|
|
@@ -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.
|
|
107
|
-
"shinkansen-rails": "1.0.
|
|
108
|
-
"shinkansen-signals": "1.1.
|
|
109
|
-
"shinkansen-sprockets": "1.2.
|
|
106
|
+
"shinkansen-cogs": "1.8.3",
|
|
107
|
+
"shinkansen-rails": "1.0.285",
|
|
108
|
+
"shinkansen-signals": "1.1.214",
|
|
109
|
+
"shinkansen-sprockets": "1.2.3",
|
|
110
110
|
"sinon": "^19.0.2",
|
|
111
111
|
"storybook": "7.6.20",
|
|
112
112
|
"webpack": "^5.98.0",
|
package/src/index.d.mts
CHANGED
package/src/pinion/index.d.mts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import type React from 'react'
|
|
2
2
|
|
|
3
|
-
type PinionType = PinionTypes.PinionType
|
|
4
|
-
type ParamsType = PinionTypes.ParamsType
|
|
3
|
+
export type PinionType = PinionTypes.PinionType
|
|
4
|
+
export type ParamsType = PinionTypes.ParamsType
|
|
5
5
|
|
|
6
|
-
type MetaType = PinionTypes.MetaType
|
|
7
|
-
type MetaEnumType = PinionTypes.MetaEnumType
|
|
8
|
-
type MetaAnyOfType = PinionTypes.MetaAnyOfType
|
|
9
|
-
type MetaOneOfType = PinionTypes.MetaOneOfType
|
|
10
|
-
type MetaFieldType = PinionTypes.MetaFieldType
|
|
6
|
+
export type MetaType = PinionTypes.MetaType
|
|
7
|
+
export type MetaEnumType = PinionTypes.MetaEnumType
|
|
8
|
+
export type MetaAnyOfType = PinionTypes.MetaAnyOfType
|
|
9
|
+
export type MetaOneOfType = PinionTypes.MetaOneOfType
|
|
10
|
+
export type MetaFieldType = PinionTypes.MetaFieldType
|
|
11
11
|
|
|
12
|
-
type ElementsEnumType = PinionTypes.ElementsEnumType
|
|
13
|
-
type ElementsAnyOfType = PinionTypes.ElementsAnyOfType
|
|
14
|
-
type ElementsOneOfType = PinionTypes.ElementsOneOfType
|
|
15
|
-
type ElementsFieldType = PinionTypes.ElementsFieldType
|
|
12
|
+
export type ElementsEnumType = PinionTypes.ElementsEnumType
|
|
13
|
+
export type ElementsAnyOfType = PinionTypes.ElementsAnyOfType
|
|
14
|
+
export type ElementsOneOfType = PinionTypes.ElementsOneOfType
|
|
15
|
+
export type ElementsFieldType = PinionTypes.ElementsFieldType
|
|
16
16
|
|
|
17
|
-
type OnChangeType = PinionTypes.OnChangeType
|
|
17
|
+
export type OnChangeType = PinionTypes.OnChangeType
|
|
18
18
|
|
|
19
|
-
type FieldProps = PinionTypes.FieldProps
|
|
20
|
-
type GroupProps = PinionTypes.GroupProps
|
|
19
|
+
export type FieldProps = PinionTypes.FieldProps
|
|
20
|
+
export type GroupProps = PinionTypes.GroupProps
|
|
21
21
|
|
|
22
|
-
type PinionProps = PinionTypes.PinionProps
|
|
22
|
+
export type PinionProps = PinionTypes.PinionProps
|
|
23
23
|
|
|
24
24
|
export function renderToRadiosForEnum (meta: MetaEnumType, elements:ElementsEnumType, params: ParamsType, onChange: OnChangeType): React.JSX.Element
|
|
25
25
|
export function renderToRadiosForAnyOf (meta: MetaAnyOfType, elements: ElementsAnyOfType, params: ParamsType, onChange: OnChangeType): React.JSX.Element
|