shinkansen-engine 1.2.473 → 1.2.475
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/docs/array.md +232 -0
- package/docs/boolean.md +25 -0
- package/docs/images/array-array-boolean-all-of.png +0 -0
- package/docs/images/array-array-boolean-any-of.png +0 -0
- package/docs/images/array-array-boolean-enum.png +0 -0
- package/docs/images/array-array-boolean-one-of.png +0 -0
- package/docs/images/array-array-boolean.png +0 -0
- package/docs/images/array-array-null-all-of.png +0 -0
- package/docs/images/array-array-null-any-of.png +0 -0
- package/docs/images/array-array-null-enum.png +0 -0
- package/docs/images/array-array-null-one-of.png +0 -0
- package/docs/images/array-array-null.png +0 -0
- package/docs/images/array-array-number-all-of.png +0 -0
- package/docs/images/array-array-number-any-of.png +0 -0
- package/docs/images/array-array-number-enum.png +0 -0
- package/docs/images/array-array-number-one-of.png +0 -0
- package/docs/images/array-array-number.png +0 -0
- package/docs/images/array-array-string-all-of.png +0 -0
- package/docs/images/array-array-string-any-of.png +0 -0
- package/docs/images/array-array-string-enum.png +0 -0
- package/docs/images/array-array-string-one-of.png +0 -0
- package/docs/images/array-array-string.png +0 -0
- package/docs/images/array-object-boolean-all-of.png +0 -0
- package/docs/images/array-object-boolean-any-of.png +0 -0
- package/docs/images/array-object-boolean-enum.png +0 -0
- package/docs/images/array-object-boolean-one-of.png +0 -0
- package/docs/images/array-object-boolean.png +0 -0
- package/docs/images/array-object-null-all-of.png +0 -0
- package/docs/images/array-object-null-any-of.png +0 -0
- package/docs/images/array-object-null-enum.png +0 -0
- package/docs/images/array-object-null-one-of.png +0 -0
- package/docs/images/array-object-null.png +0 -0
- package/docs/images/array-object-number-all-of.png +0 -0
- package/docs/images/array-object-number-any-of.png +0 -0
- package/docs/images/array-object-number-enum.png +0 -0
- package/docs/images/array-object-number-one-of.png +0 -0
- package/docs/images/array-object-number.png +0 -0
- package/docs/images/array-object-string-all-of.png +0 -0
- package/docs/images/array-object-string-any-of.png +0 -0
- package/docs/images/array-object-string-enum.png +0 -0
- package/docs/images/array-object-string-one-of.png +0 -0
- package/docs/images/array-object-string.png +0 -0
- package/docs/images/boolean-all-of.png +0 -0
- package/docs/images/boolean-any-of.png +0 -0
- package/docs/images/boolean-enum.png +0 -0
- package/docs/images/boolean-one-of.png +0 -0
- package/docs/images/boolean.png +0 -0
- package/docs/images/null-all-of.png +0 -0
- package/docs/images/null-any-of.png +0 -0
- package/docs/images/null-enum.png +0 -0
- package/docs/images/null-one-of.png +0 -0
- package/docs/images/null.png +0 -0
- package/docs/images/number-all-of.png +0 -0
- package/docs/images/number-any-of.png +0 -0
- package/docs/images/number-enum.png +0 -0
- package/docs/images/number-one-of.png +0 -0
- package/docs/images/number.png +0 -0
- package/docs/images/object-boolean-all-of.png +0 -0
- package/docs/images/object-boolean-any-of.png +0 -0
- package/docs/images/object-boolean-enum.png +0 -0
- package/docs/images/object-boolean-one-of.png +0 -0
- package/docs/images/object-boolean.png +0 -0
- package/docs/images/object-null-all-of.png +0 -0
- package/docs/images/object-null-any-of.png +0 -0
- package/docs/images/object-null-enum.png +0 -0
- package/docs/images/object-null-one-of.png +0 -0
- package/docs/images/object-null.png +0 -0
- package/docs/images/object-number-all-of.png +0 -0
- package/docs/images/object-number-any-of.png +0 -0
- package/docs/images/object-number-enum.png +0 -0
- package/docs/images/object-number-one-of.png +0 -0
- package/docs/images/object-number.png +0 -0
- package/docs/images/object-string-all-of.png +0 -0
- package/docs/images/object-string-any-of.png +0 -0
- package/docs/images/object-string-enum.png +0 -0
- package/docs/images/object-string-one-of.png +0 -0
- package/docs/images/object-string.png +0 -0
- package/docs/images/string-all-of.png +0 -0
- package/docs/images/string-any-of.png +0 -0
- package/docs/images/string-enum.png +0 -0
- package/docs/images/string-one-of.png +0 -0
- package/docs/images/string.png +0 -0
- package/docs/null.md +25 -0
- package/docs/number.md +25 -0
- package/docs/object.md +116 -0
- package/docs/string.md +25 -0
- package/package.json +4 -4
- package/jsconfig.json +0 -5
- package/transform.sh +0 -4
- package/tsconfig.json +0 -71
- package/webpack.config.mjs +0 -129
package/docs/array.md
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
|
|
2
|
+
## 3. Array
|
|
3
|
+
|
|
4
|
+
Arrays contain _one_ or _several_ values, which can be any type (including other arrays). Our Stories contain _single-value_ layouts which you can explore under _Controls_.
|
|
5
|
+
|
|
6
|
+
Whether _items is an object_ or _items is an array_ depends on how Zashiki interprets the JSON Schema (assuming that Zashiki has mechanically translated a JSON Schema into a description, and the description hasn't been generated manually). It matters for validating the _document_ according to the _schema_, but for humans the distinction may seem arbitrary. Our stories account for both structures.
|
|
7
|
+
|
|
8
|
+
### Array (_Items is an object_)
|
|
9
|
+
|
|
10
|
+
- [String](#3---1---1-array-items-is-an-object---string)
|
|
11
|
+
- [String (_Enum_)](#3---1---1---1-array-items-is-an-object---string-enum)
|
|
12
|
+
- [String (_Any of_)](#3---1---1---2-array-items-is-an-object---string-any-of)
|
|
13
|
+
- [String (_One of_)](#3---1---1---3-array-items-is-an-object---string-one-of)
|
|
14
|
+
- [Number](#3---1---2-array-items-is-an-object---number)
|
|
15
|
+
- [Number (_Enum_)](#3---1---2---1-array-items-is-an-object---number-enum)
|
|
16
|
+
- [Number (_Any of_)](#3---1---2---2-array-items-is-an-object---number-any-of)
|
|
17
|
+
- [Number (_One of_)](#3---1---2---3-array-items-is-an-object---number-one-of)
|
|
18
|
+
- [Boolean](#3---1---3-array-items-is-an-object---boolean)
|
|
19
|
+
- [Boolean (_Enum_)](#3---1---3---1-array-items-is-an-object---boolean-enum)
|
|
20
|
+
- [Boolean (_Any of_)](#3---1---3---2-array-items-is-an-object---boolean-any-of)
|
|
21
|
+
- [Boolean (_One of_)](#3---1---3---3-array-items-is-an-object---boolean-one-of)
|
|
22
|
+
- [Null](#3---1---4-array-items-is-an-object---null)
|
|
23
|
+
- [Null (_Enum_)](#3---1---4---1-array-items-is-an-object---null-enum)
|
|
24
|
+
- [Null (_Any of_)](#3---1---4---2-array-items-is-an-object---null-any-of)
|
|
25
|
+
- [Null (_One of_)](#3---1---4---3-array-items-is-an-object---null-one-of)
|
|
26
|
+
|
|
27
|
+
### Array (_Items is an array_)
|
|
28
|
+
|
|
29
|
+
- [String](#3---2---1-array-items-is-an-array---string)
|
|
30
|
+
- [String (_Enum_)](#3---2---1---1-array-items-is-an-array---string-enum)
|
|
31
|
+
- [String (_Any of_)](#3---2---1---2-array-items-is-an-array---string-any-of)
|
|
32
|
+
- [String (_One of_)](#3---2---1---3-array-items-is-an-array---string-one-of)
|
|
33
|
+
- [Number](#3---2---2-array-items-is-an-array---number)
|
|
34
|
+
- [Number (_Enum_)](#3---2---2---1-array-items-is-an-array---number-enum)
|
|
35
|
+
- [Number (_Any of_)](#3---2---2---2-array-items-is-an-array---number-any-of)
|
|
36
|
+
- [Number (_One of_)](#3---2---2---3-array-items-is-an-array---number-one-of)
|
|
37
|
+
- [Boolean](#3---2---3-array-items-is-an-array---boolean)
|
|
38
|
+
- [Boolean (_Enum_)](#3---2---3---1-array-items-is-an-array---boolean-enum)
|
|
39
|
+
- [Boolean (_Any of_)](#3---2---3---2-array-items-is-an-array---boolean-any-of)
|
|
40
|
+
- [Boolean (_One of_)](#3---2---3---3-array-items-is-an-array---boolean-one-of)
|
|
41
|
+
- [Null](#3---2---4-array-items-is-an-array---null)
|
|
42
|
+
- [Null (_Enum_)](#3---2---4---1-array-items-is-an-array---null-enum)
|
|
43
|
+
- [Null (_Any of_)](#3---2---4---2-array-items-is-an-array---null-any-of)
|
|
44
|
+
- [Null (_One of_)](#3---2---4---3-array-items-is-an-array---null-one-of)
|
|
45
|
+
|
|
46
|
+
### 3 - 1 - 1. Array (_Items is an object_) - String
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
_Back to [Array](#3-array)_
|
|
51
|
+
|
|
52
|
+
### 3 - 1 - 1 - 1. Array (_Items is an object_) - String (_Enum_)
|
|
53
|
+
|
|
54
|
+

|
|
55
|
+
|
|
56
|
+
_Back to [Array](#3-array)_
|
|
57
|
+
|
|
58
|
+
### 3 - 1 - 1 - 2. Array (_Items is an object_) - String (_Any Of_)
|
|
59
|
+
|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
_Back to [Array](#3-array)_
|
|
63
|
+
|
|
64
|
+
### 3 - 1 - 1 - 3. Array (_Items is an object_) - String (_One Of_)
|
|
65
|
+
|
|
66
|
+

|
|
67
|
+
|
|
68
|
+
### 3 - 1 - 2. Array (_Items is an object_) - Number
|
|
69
|
+
|
|
70
|
+

|
|
71
|
+
|
|
72
|
+
_Back to [Array](#3-array)_
|
|
73
|
+
|
|
74
|
+
### 3 - 1 - 2 - 1. Array (_Items is an object_) - Number (_Enum_)
|
|
75
|
+
|
|
76
|
+

|
|
77
|
+
|
|
78
|
+
_Back to [Array](#3-array)_
|
|
79
|
+
|
|
80
|
+
### 3 - 1 - 2 - 2. Array (_Items is an object_) - Number (_Any Of_)
|
|
81
|
+
|
|
82
|
+

|
|
83
|
+
|
|
84
|
+
_Back to [Array](#3-array)_
|
|
85
|
+
|
|
86
|
+
### 3 - 1 - 2 - 3. Array (_Items is an object_) - Number (_One Of_)
|
|
87
|
+
|
|
88
|
+

|
|
89
|
+
|
|
90
|
+
_Back to [Array](#3-array)_
|
|
91
|
+
|
|
92
|
+
### 3 - 1 - 3. Array (_Items is an object_) - Boolean
|
|
93
|
+
|
|
94
|
+

|
|
95
|
+
|
|
96
|
+
_Back to [Array](#3-array)_
|
|
97
|
+
|
|
98
|
+
### 3 - 1 - 3 - 1. Array (_Items is an object_) - Boolean (_Enum_)
|
|
99
|
+
|
|
100
|
+

|
|
101
|
+
|
|
102
|
+
_Back to [Array](#3-array)_
|
|
103
|
+
|
|
104
|
+
### 3 - 1 - 3 - 2. Array (_Items is an object_) - Boolean (_Any Of_)
|
|
105
|
+
|
|
106
|
+

|
|
107
|
+
|
|
108
|
+
_Back to [Array](#3-array)_
|
|
109
|
+
|
|
110
|
+
### 3 - 1 - 3 - 3. Array (_Items is an object_) - Boolean (_One Of_)
|
|
111
|
+
|
|
112
|
+

|
|
113
|
+
|
|
114
|
+
_Back to [Array](#3-array)_
|
|
115
|
+
|
|
116
|
+
### 3 - 1 - 4. Array (_Items is an object_) - Null
|
|
117
|
+
|
|
118
|
+

|
|
119
|
+
|
|
120
|
+
_Back to [Array](#3-array)_
|
|
121
|
+
|
|
122
|
+
### 3 - 1 - 4 - 1. Array (_Items is an object_) - Null (_Enum_)
|
|
123
|
+
|
|
124
|
+

|
|
125
|
+
|
|
126
|
+
_Back to [Array](#3-array)_
|
|
127
|
+
|
|
128
|
+
### 3 - 1 - 4 - 2. Array (_Items is an object_) - Null (_Any Of_)
|
|
129
|
+
|
|
130
|
+

|
|
131
|
+
|
|
132
|
+
_Back to [Array](#3-array)_
|
|
133
|
+
|
|
134
|
+
### 3 - 1 - 4 - 3. Array (_Items is an object_) - Null (_One Of_)
|
|
135
|
+
|
|
136
|
+

|
|
137
|
+
|
|
138
|
+
_Back to [Array](#3-array)_
|
|
139
|
+
|
|
140
|
+
### 3 - 2 - 1. Array (_Items is an array_) - String
|
|
141
|
+
|
|
142
|
+

|
|
143
|
+
|
|
144
|
+
_Back to [Array](#3-array)_
|
|
145
|
+
|
|
146
|
+
### 3 - 2 - 1 - 1. Array (_Items is an array_) - String (_Enum_)
|
|
147
|
+
|
|
148
|
+

|
|
149
|
+
|
|
150
|
+
_Back to [Array](#3-array)_
|
|
151
|
+
|
|
152
|
+
### 3 - 2 - 1 - 2. Array (_Items is an array_) - String (_Any Of_)
|
|
153
|
+
|
|
154
|
+

|
|
155
|
+
|
|
156
|
+
_Back to [Array](#3-array)_
|
|
157
|
+
|
|
158
|
+
### 3 - 2 - 1 - 3. Array (_Items is an array_) - String (_One Of_)
|
|
159
|
+
|
|
160
|
+

|
|
161
|
+
|
|
162
|
+
### 3 - 2 - 2. Array (_Items is an array_) - Number
|
|
163
|
+
|
|
164
|
+

|
|
165
|
+
|
|
166
|
+
_Back to [Array](#3-array)_
|
|
167
|
+
|
|
168
|
+
### 3 - 2 - 2 - 1. Array (_Items is an array_) - Number (_Enum_)
|
|
169
|
+
|
|
170
|
+

|
|
171
|
+
|
|
172
|
+
_Back to [Array](#3-array)_
|
|
173
|
+
|
|
174
|
+
### 3 - 2 - 2 - 2. Array (_Items is an array_) - Number (_Any Of_)
|
|
175
|
+
|
|
176
|
+

|
|
177
|
+
|
|
178
|
+
_Back to [Array](#3-array)_
|
|
179
|
+
|
|
180
|
+
### 3 - 2 - 2 - 3. Array (_Items is an array_) - Number (_One Of_)
|
|
181
|
+
|
|
182
|
+

|
|
183
|
+
|
|
184
|
+
_Back to [Array](#3-array)_
|
|
185
|
+
|
|
186
|
+
### 3 - 2 - 3. Array (_Items is an array_) - Boolean
|
|
187
|
+
|
|
188
|
+

|
|
189
|
+
|
|
190
|
+
_Back to [Array](#3-array)_
|
|
191
|
+
|
|
192
|
+
### 3 - 2 - 3 - 1. Array (_Items is an array_) - Boolean (_Enum_)
|
|
193
|
+
|
|
194
|
+

|
|
195
|
+
|
|
196
|
+
_Back to [Array](#3-array)_
|
|
197
|
+
|
|
198
|
+
### 3 - 2 - 3 - 2. Array (_Items is an array_) - Boolean (_Any Of_)
|
|
199
|
+
|
|
200
|
+

|
|
201
|
+
|
|
202
|
+
_Back to [Array](#3-array)_
|
|
203
|
+
|
|
204
|
+
### 3 - 2 - 3 - 3. Array (_Items is an array_) - Boolean (_One Of_)
|
|
205
|
+
|
|
206
|
+

|
|
207
|
+
|
|
208
|
+
_Back to [Array](#3-array)_
|
|
209
|
+
|
|
210
|
+
### 3 - 2 - 4. Array (_Items is an array_) - Null
|
|
211
|
+
|
|
212
|
+

|
|
213
|
+
|
|
214
|
+
_Back to [Array](#3-array)_
|
|
215
|
+
|
|
216
|
+
### 3 - 2 - 4 - 1. Array (_Items is an array_) - Null (_Enum_)
|
|
217
|
+
|
|
218
|
+

|
|
219
|
+
|
|
220
|
+
_Back to [Array](#3-array)_
|
|
221
|
+
|
|
222
|
+
### 3 - 2 - 4 - 2. Array (_Items is an array_) - Null (_Any Of_)
|
|
223
|
+
|
|
224
|
+

|
|
225
|
+
|
|
226
|
+
_Back to [Array](#3-array)_
|
|
227
|
+
|
|
228
|
+
### 3 - 2 - 4 - 3. Array (_Items is an array_) - Null (_One Of_)
|
|
229
|
+
|
|
230
|
+

|
|
231
|
+
|
|
232
|
+
_Back to [Array](#3-array)_
|
package/docs/boolean.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## 5. Boolean
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
- [Boolean (_Enum_)](#5---1-boolean-enum)
|
|
6
|
+
- [Boolean (_Any of_)](#5---2-boolean-any-of)
|
|
7
|
+
- [Boolean (_One of_)](#5---3-boolean-one-of)
|
|
8
|
+
|
|
9
|
+
### 5 - 1. Boolean (_Enum_)
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
_Back to [Boolean](#5-boolean)_
|
|
14
|
+
|
|
15
|
+
### 5 - 2. Boolean (_Any Of_)
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
_Back to [Boolean](#5-boolean)_
|
|
20
|
+
|
|
21
|
+
### 5 - 3. Boolean (_One Of_)
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
_Back to [Boolean](#5-boolean)_
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/null.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## 6. Null
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
- [Null (_Enum_)](#6---1-null-enum)
|
|
6
|
+
- [Null (_Any of_)](#6---2-null-any-of)
|
|
7
|
+
- [Null (_One of_)](#6---3-null-one-of)
|
|
8
|
+
|
|
9
|
+
### 6 - 1. Null (_Enum_)
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
_Back to [Null](#6-null)_
|
|
14
|
+
|
|
15
|
+
### 6 - 2. Null (_Any Of_)
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
_Back to [Null](#6-null)_
|
|
20
|
+
|
|
21
|
+
### 6 - 3. Null (_One Of_)
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
_Back to [Null](#6-null)_
|
package/docs/number.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## 2. Number
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
- [Number (_Enum_)](#2---1-number-enum)
|
|
6
|
+
- [Number (_Any of_)](#2---2-number-any-of)
|
|
7
|
+
- [Number (_One of_)](#2---3-number-one-of)
|
|
8
|
+
|
|
9
|
+
### 2 - 1. Number (_Enum_)
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
_Back to [Number](#2-number)_
|
|
14
|
+
|
|
15
|
+
### 2 - 2. Number (_Any Of_)
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
_Back to [Number](#2-number)_
|
|
20
|
+
|
|
21
|
+
### 2 - 3. Number (_One Of_)
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
_Back to [Number](#2-number)_
|
package/docs/object.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
## 4. Object
|
|
2
|
+
|
|
3
|
+
Objects contain _one_ or _several_ values, which can be any type (including other objects). Our Stories contain _single-value_ layouts which you can explore under _Controls_.
|
|
4
|
+
|
|
5
|
+
- [Object - String](#4---1-object---string)
|
|
6
|
+
- [Object - String (_Enum_)](#4---1---1-object---string-enum)
|
|
7
|
+
- [Object - String (_Any of_)](#4---1---2-object---string-any-of)
|
|
8
|
+
- [Object - String (_One of_)](#4---1---3-object---string-one-of)
|
|
9
|
+
- [Object - Number](#4---2-object---number)
|
|
10
|
+
- [Object - Number (_Enum_)](#4---2---1-object---number-enum)
|
|
11
|
+
- [Object - Number (_Any of_)](#4---2---2-object---number-any-of)
|
|
12
|
+
- [Object - Number (_One of_)](#4---2---3-object---number-one-of)
|
|
13
|
+
- [Object - Boolean](#4---3-object---boolean)
|
|
14
|
+
- [Object - Boolean (_Enum_)](#4---3---1-object---boolean-enum)
|
|
15
|
+
- [Object - Boolean (_Any of_)](#4---3---2-object---boolean-any-of)
|
|
16
|
+
- [Object - Boolean (_One of_)](#4---3---3-object---boolean-one-of)
|
|
17
|
+
- [Object - Null](#4---4-object---null)
|
|
18
|
+
- [Object - Null (_Enum_)](#4---4---1-object---null-enum)
|
|
19
|
+
- [Object - Null (_Any of_)](#4---4---2-object---null-any-of)
|
|
20
|
+
- [Object - Null (_One of_)](#4---4---3-object---null-one-of)
|
|
21
|
+
|
|
22
|
+
### 4 - 1. Object - String
|
|
23
|
+
|
|
24
|
+

|
|
25
|
+
|
|
26
|
+
_Back to [Object](#4-object)_
|
|
27
|
+
|
|
28
|
+
### 4 - 1 - 1. Object - String (_Enum_)
|
|
29
|
+
|
|
30
|
+

|
|
31
|
+
|
|
32
|
+
_Back to [Object](#4-object)_
|
|
33
|
+
|
|
34
|
+
### 4 - 1 - 2. Object - String (_Any Of_)
|
|
35
|
+
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+
_Back to [Object](#4-object)_
|
|
39
|
+
|
|
40
|
+
### 4 - 1 - 3. Object - String (_One Of_)
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
_Back to [Object](#4-object)_
|
|
45
|
+
|
|
46
|
+
### 4 - 2. Object - Number
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
_Back to [Object](#4-object)_
|
|
51
|
+
|
|
52
|
+
### 4 - 2 - 1. Object - Number (_Enum_)
|
|
53
|
+
|
|
54
|
+

|
|
55
|
+
|
|
56
|
+
_Back to [Object](#4-object)_
|
|
57
|
+
|
|
58
|
+
### 4 - 2 - 2. Object - Number (_Any Of_)
|
|
59
|
+
|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
_Back to [Object](#4-object)_
|
|
63
|
+
|
|
64
|
+
### 4 - 2 - 3. Object - Number (_One Of_)
|
|
65
|
+
|
|
66
|
+

|
|
67
|
+
|
|
68
|
+
_Back to [Object](#4-object)_
|
|
69
|
+
|
|
70
|
+
### 4 - 3. Object - Boolean
|
|
71
|
+
|
|
72
|
+

|
|
73
|
+
|
|
74
|
+
_Back to [Object](#4-object)_
|
|
75
|
+
|
|
76
|
+
### 4 - 3 - 1. Object - Boolean (_Enum_)
|
|
77
|
+
|
|
78
|
+

|
|
79
|
+
|
|
80
|
+
_Back to [Object](#4-object)_
|
|
81
|
+
|
|
82
|
+
### 4 - 3 - 2. Object - Boolean (_Any Of_)
|
|
83
|
+
|
|
84
|
+

|
|
85
|
+
|
|
86
|
+
_Back to [Object](#4-object)_
|
|
87
|
+
|
|
88
|
+
### 4 - 3 - 3. Object - Boolean (_One Of_)
|
|
89
|
+
|
|
90
|
+

|
|
91
|
+
|
|
92
|
+
_Back to [Object](#4-object)_
|
|
93
|
+
|
|
94
|
+
### 4 - 4. Object - Null
|
|
95
|
+
|
|
96
|
+

|
|
97
|
+
|
|
98
|
+
_Back to [Object](#4-object)_
|
|
99
|
+
|
|
100
|
+
### 4 - 4 - 1. Object - Null (_Enum_)
|
|
101
|
+
|
|
102
|
+

|
|
103
|
+
|
|
104
|
+
_Back to [Object](#4-object)_
|
|
105
|
+
|
|
106
|
+
### 4 - 4 - 2. Object - Null (_Any Of_)
|
|
107
|
+
|
|
108
|
+

|
|
109
|
+
|
|
110
|
+
_Back to [Object](#4-object)_
|
|
111
|
+
|
|
112
|
+
### 4 - 4 - 3. Object - Null (_One Of_)
|
|
113
|
+
|
|
114
|
+

|
|
115
|
+
|
|
116
|
+
_Back to [Object](#4-object)_
|
package/docs/string.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## 1. String
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
- [String (_Enum_)](#1---1-string-enum)
|
|
6
|
+
- [String (_Any of_)](#1---2-string-any-of)
|
|
7
|
+
- [String (_One of_)](#1---3-string-one-of)
|
|
8
|
+
|
|
9
|
+
### 1 - 1. String (_Enum_)
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
_Back to [String](#1-string)_
|
|
14
|
+
|
|
15
|
+
### 1 - 2. String (_Any Of_)
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
_Back to [String](#1-string)_
|
|
20
|
+
|
|
21
|
+
### 1 - 3. String (_One Of_)
|
|
22
|
+
|
|
23
|
+

|
|
24
|
+
|
|
25
|
+
_Back to [String](#1-string)_
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-engine",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.475",
|
|
4
4
|
"description": "Shinkansen Engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -96,13 +96,13 @@
|
|
|
96
96
|
"remove-files-webpack-plugin": "^1.5.0",
|
|
97
97
|
"sass": "^1.81.0",
|
|
98
98
|
"sass-loader": "^16.0.3",
|
|
99
|
-
"shinkansen-cogs": "1.7.
|
|
99
|
+
"shinkansen-cogs": "1.7.271",
|
|
100
100
|
"shinkansen-gears": "1.1.442",
|
|
101
101
|
"shinkansen-pantograph": "1.3.303",
|
|
102
|
-
"shinkansen-pinion": "1.1.
|
|
102
|
+
"shinkansen-pinion": "1.1.511",
|
|
103
103
|
"shinkansen-rails": "1.0.252",
|
|
104
104
|
"shinkansen-signals": "1.1.182",
|
|
105
|
-
"shinkansen-sprockets": "1.1.
|
|
105
|
+
"shinkansen-sprockets": "1.1.430",
|
|
106
106
|
"shinkansen-transmission": "2.2.204",
|
|
107
107
|
"sinon": "^19.0.2",
|
|
108
108
|
"storybook": "7.6.20",
|
package/jsconfig.json
DELETED
package/transform.sh
DELETED
package/tsconfig.json
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "ESNext",
|
|
4
|
-
"target": "ESNext",
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"checkJs": false,
|
|
7
|
-
"allowSyntheticDefaultImports": true,
|
|
8
|
-
"noEmit": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"isolatedModules": true,
|
|
11
|
-
"baseUrl": ".",
|
|
12
|
-
"paths": {
|
|
13
|
-
"#engine/common": [
|
|
14
|
-
"src/common/index.mjs"
|
|
15
|
-
],
|
|
16
|
-
"#engine/components": [
|
|
17
|
-
"src/components/index.mjs"
|
|
18
|
-
],
|
|
19
|
-
"#engine/components/*": [
|
|
20
|
-
"src/components/*/index.mjs"
|
|
21
|
-
],
|
|
22
|
-
"#engine/components/gears/forward": [
|
|
23
|
-
"src/components/gears/forward/index.cjs"
|
|
24
|
-
],
|
|
25
|
-
"#engine/components/gears/reverse": [
|
|
26
|
-
"src/components/gears/reverse/index.cjs"
|
|
27
|
-
],
|
|
28
|
-
"#engine/engine": [
|
|
29
|
-
"src/engine/index.jsx"
|
|
30
|
-
],
|
|
31
|
-
"#engine/engine/*": [
|
|
32
|
-
"src/engine/*/index.jsx"
|
|
33
|
-
],
|
|
34
|
-
"#engine/transformers": [
|
|
35
|
-
"src/transformers/index.mjs"
|
|
36
|
-
],
|
|
37
|
-
"#engine/transformers/*": [
|
|
38
|
-
"src/transformers/*/index.mjs"
|
|
39
|
-
],
|
|
40
|
-
"#stories/components/*": [
|
|
41
|
-
"stories/components/*/index.stories.jsx"
|
|
42
|
-
],
|
|
43
|
-
"#stories/definitions/*": [
|
|
44
|
-
"stories/definitions/*.json"
|
|
45
|
-
],
|
|
46
|
-
"#stories/engine/*": [
|
|
47
|
-
"stories/engine/*/index.stories.jsx"
|
|
48
|
-
],
|
|
49
|
-
"#stories/errors": [
|
|
50
|
-
"stories/errors.mjs"
|
|
51
|
-
],
|
|
52
|
-
"#stories/state": [
|
|
53
|
-
"stories/state/index.jsx"
|
|
54
|
-
],
|
|
55
|
-
"#stories/state/*": [
|
|
56
|
-
"stories/state/*/index.jsx"
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"include": [
|
|
61
|
-
"src/**/*",
|
|
62
|
-
"node_modules/shinkansen-cogs/src/**/*",
|
|
63
|
-
"node_modules/shinkansen-gears/src/**/*",
|
|
64
|
-
"node_modules/shinkansen-pantograph/src/**/*",
|
|
65
|
-
"node_modules/shinkansen-pinion/src/**/*",
|
|
66
|
-
"node_modules/shinkansen-rails/src/**/*",
|
|
67
|
-
"node_modules/shinkansen-signals/src/**/*",
|
|
68
|
-
"node_modules/shinkansen-sprockets/src/**/*",
|
|
69
|
-
"node_modules/shinkansen-transmission/src/**/*"
|
|
70
|
-
]
|
|
71
|
-
}
|
package/webpack.config.mjs
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
join
|
|
3
|
-
} from 'node:path'
|
|
4
|
-
|
|
5
|
-
import Webpack from 'webpack'
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
CleanWebpackPlugin as CleanPlugin
|
|
9
|
-
} from 'clean-webpack-plugin'
|
|
10
|
-
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
|
|
11
|
-
import RemoveFilesPlugin from 'remove-files-webpack-plugin'
|
|
12
|
-
|
|
13
|
-
import {
|
|
14
|
-
storybookPath as STORYBOOK_PATH,
|
|
15
|
-
modulePath as MODULE_PATH
|
|
16
|
-
} from '#build/paths'
|
|
17
|
-
|
|
18
|
-
const {
|
|
19
|
-
EnvironmentPlugin,
|
|
20
|
-
SourceMapDevToolPlugin
|
|
21
|
-
} = Webpack
|
|
22
|
-
|
|
23
|
-
export default {
|
|
24
|
-
mode: 'production',
|
|
25
|
-
entry: {
|
|
26
|
-
'preview-head': join(STORYBOOK_PATH, 'sass/preview-head.scss')
|
|
27
|
-
},
|
|
28
|
-
output: {
|
|
29
|
-
path: join(STORYBOOK_PATH, 'css')
|
|
30
|
-
},
|
|
31
|
-
stats: {
|
|
32
|
-
colors: true
|
|
33
|
-
},
|
|
34
|
-
module: {
|
|
35
|
-
rules: [
|
|
36
|
-
{
|
|
37
|
-
test: /\.scss$/i,
|
|
38
|
-
use: [
|
|
39
|
-
MiniCssExtractPlugin.loader,
|
|
40
|
-
{
|
|
41
|
-
loader: 'css-loader',
|
|
42
|
-
options: {
|
|
43
|
-
importLoaders: 1,
|
|
44
|
-
sourceMap: false,
|
|
45
|
-
url: false
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
loader: 'postcss-loader',
|
|
50
|
-
options: {
|
|
51
|
-
sourceMap: false,
|
|
52
|
-
postcssOptions: {
|
|
53
|
-
config: false,
|
|
54
|
-
plugins: [
|
|
55
|
-
'postcss-import',
|
|
56
|
-
'postcss-discard-comments',
|
|
57
|
-
'postcss-discard-empty',
|
|
58
|
-
[
|
|
59
|
-
'postcss-map', {
|
|
60
|
-
maps: [
|
|
61
|
-
join(MODULE_PATH, '@modernpoacher/design-system/src/tokens/palette.json')
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
[
|
|
66
|
-
'autoprefixer', {
|
|
67
|
-
remove: false
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
[
|
|
71
|
-
'perfectionist', {
|
|
72
|
-
trimLeadingZero: false,
|
|
73
|
-
sourcemap: true,
|
|
74
|
-
indentSize: 2,
|
|
75
|
-
format: 'expanded',
|
|
76
|
-
syntax: 'scss'
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
loader: 'sass-loader',
|
|
85
|
-
options: {
|
|
86
|
-
sourceMap: false,
|
|
87
|
-
sassOptions: {
|
|
88
|
-
loadPaths: [
|
|
89
|
-
join(MODULE_PATH, '@modernpoacher/design-system/src/sass')
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
plugins: [
|
|
99
|
-
new CleanPlugin({
|
|
100
|
-
verbose: false,
|
|
101
|
-
cleanOnceBeforeBuildPatterns: [
|
|
102
|
-
join(STORYBOOK_PATH, 'css/*.css'),
|
|
103
|
-
join(STORYBOOK_PATH, 'css/*.css.map')
|
|
104
|
-
]
|
|
105
|
-
}),
|
|
106
|
-
new EnvironmentPlugin({
|
|
107
|
-
NODE_ENV: 'production'
|
|
108
|
-
}),
|
|
109
|
-
new SourceMapDevToolPlugin({
|
|
110
|
-
test: /\.css$/i,
|
|
111
|
-
filename: '[name].css.map'
|
|
112
|
-
}),
|
|
113
|
-
new MiniCssExtractPlugin({
|
|
114
|
-
filename: '[name].css'
|
|
115
|
-
}),
|
|
116
|
-
new RemoveFilesPlugin({
|
|
117
|
-
after: {
|
|
118
|
-
test: [
|
|
119
|
-
{
|
|
120
|
-
folder: join(STORYBOOK_PATH, 'css'),
|
|
121
|
-
method (filePath) {
|
|
122
|
-
return /\.js$/m.test(filePath)
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
})
|
|
128
|
-
]
|
|
129
|
-
}
|