@jxsuite/schema 0.23.2 → 0.25.0
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/defs/cem.schema.ts +30 -0
- package/defs/children-value.schema.ts +28 -0
- package/defs/class-def.schema.ts +169 -0
- package/defs/content-type-def.schema.ts +34 -0
- package/defs/element-def.schema.ts +98 -0
- package/defs/expression-node.schema.ts +140 -0
- package/defs/external-class-def.schema.ts +107 -0
- package/defs/function-def.schema.ts +59 -0
- package/defs/head-entry.schema.ts +17 -0
- package/defs/image-config.schema.ts +20 -0
- package/defs/index.ts +76 -0
- package/defs/json-schema-type.schema.ts +4 -0
- package/defs/project-config.schema.ts +199 -0
- package/defs/pure-type-def.schema.ts +26 -0
- package/defs/ref-object.schema.ts +70 -0
- package/defs/state-entry.schema.ts +54 -0
- package/defs/string-or-ref.schema.ts +11 -0
- package/defs/style-object.schema.ts +19 -0
- package/defs/tag-name.schema.ts +6 -0
- package/defs/typed-state-def.schema.ts +31 -0
- package/package.json +12 -5
- package/project-schema.json +104 -38
- package/schema.json +610 -479
- package/src/schema.ts +529 -0
- package/types.ts +236 -0
- package/src/schema.js +0 -1661
package/project-schema.json
CHANGED
|
@@ -160,47 +160,15 @@
|
|
|
160
160
|
"description": "Site-wide reactive state available to all pages.",
|
|
161
161
|
"type": "object"
|
|
162
162
|
},
|
|
163
|
+
"$defs": {
|
|
164
|
+
"description": "Global type definitions available to all pages.",
|
|
165
|
+
"type": "object"
|
|
166
|
+
},
|
|
163
167
|
"contentTypes": {
|
|
164
168
|
"description": "Content type definitions. Each key is a content type name; the value defines the source directory, frontmatter schema, and element dependencies.",
|
|
165
169
|
"type": "object",
|
|
166
170
|
"additionalProperties": {
|
|
167
|
-
"
|
|
168
|
-
"properties": {
|
|
169
|
-
"source": {
|
|
170
|
-
"description": "Path to the content directory relative to the project root.",
|
|
171
|
-
"type": "string",
|
|
172
|
-
"examples": [
|
|
173
|
-
"./content/blog/",
|
|
174
|
-
"./content/docs/"
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"schema": {
|
|
178
|
-
"description": "JSON Schema for validating frontmatter of content type entries.",
|
|
179
|
-
"type": "object"
|
|
180
|
-
},
|
|
181
|
-
"$elements": {
|
|
182
|
-
"description": "Custom elements available in markdown directives for this content type.",
|
|
183
|
-
"type": "array",
|
|
184
|
-
"items": {
|
|
185
|
-
"oneOf": [
|
|
186
|
-
{
|
|
187
|
-
"type": "object",
|
|
188
|
-
"required": [
|
|
189
|
-
"$ref"
|
|
190
|
-
],
|
|
191
|
-
"properties": {
|
|
192
|
-
"$ref": {
|
|
193
|
-
"type": "string"
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"type": "string"
|
|
199
|
-
}
|
|
200
|
-
]
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
}
|
|
171
|
+
"$ref": "#/$defs/ContentTypeDef"
|
|
204
172
|
}
|
|
205
173
|
},
|
|
206
174
|
"redirects": {
|
|
@@ -261,6 +229,9 @@
|
|
|
261
229
|
}
|
|
262
230
|
}
|
|
263
231
|
},
|
|
232
|
+
"images": {
|
|
233
|
+
"$ref": "#/$defs/ImageConfig"
|
|
234
|
+
},
|
|
264
235
|
"i18n": {
|
|
265
236
|
"description": "Internationalization configuration.",
|
|
266
237
|
"type": "object",
|
|
@@ -297,5 +268,100 @@
|
|
|
297
268
|
}
|
|
298
269
|
}
|
|
299
270
|
},
|
|
300
|
-
"additionalProperties": false
|
|
271
|
+
"additionalProperties": false,
|
|
272
|
+
"$defs": {
|
|
273
|
+
"ImageConfig": {
|
|
274
|
+
"description": "Image optimization configuration for the project.",
|
|
275
|
+
"type": "object",
|
|
276
|
+
"properties": {
|
|
277
|
+
"optimize": {
|
|
278
|
+
"type": "boolean"
|
|
279
|
+
},
|
|
280
|
+
"widths": {
|
|
281
|
+
"type": "array",
|
|
282
|
+
"items": {
|
|
283
|
+
"type": "number"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"formats": {
|
|
287
|
+
"type": "array",
|
|
288
|
+
"items": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"quality": {
|
|
293
|
+
"type": "object",
|
|
294
|
+
"properties": {
|
|
295
|
+
"webp": {
|
|
296
|
+
"type": "number"
|
|
297
|
+
},
|
|
298
|
+
"avif": {
|
|
299
|
+
"type": "number"
|
|
300
|
+
},
|
|
301
|
+
"jpeg": {
|
|
302
|
+
"type": "number"
|
|
303
|
+
},
|
|
304
|
+
"png": {
|
|
305
|
+
"type": "number"
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"sizes": {
|
|
310
|
+
"type": "string"
|
|
311
|
+
},
|
|
312
|
+
"lazyLoad": {
|
|
313
|
+
"type": "boolean"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"ContentTypeDef": {
|
|
318
|
+
"description": "Content type definition. Defines the source directory, frontmatter schema, and element dependencies.",
|
|
319
|
+
"type": "object",
|
|
320
|
+
"properties": {
|
|
321
|
+
"source": {
|
|
322
|
+
"description": "Path to the content directory relative to the project root.",
|
|
323
|
+
"type": "string",
|
|
324
|
+
"examples": [
|
|
325
|
+
"./content/blog/",
|
|
326
|
+
"./content/docs/"
|
|
327
|
+
]
|
|
328
|
+
},
|
|
329
|
+
"format": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"enum": [
|
|
332
|
+
"md",
|
|
333
|
+
"json",
|
|
334
|
+
"csv",
|
|
335
|
+
"yaml"
|
|
336
|
+
]
|
|
337
|
+
},
|
|
338
|
+
"schema": {
|
|
339
|
+
"description": "JSON Schema for validating frontmatter of content type entries.",
|
|
340
|
+
"type": "object"
|
|
341
|
+
},
|
|
342
|
+
"$elements": {
|
|
343
|
+
"description": "Custom elements available in markdown directives for this content type.",
|
|
344
|
+
"type": "array",
|
|
345
|
+
"items": {
|
|
346
|
+
"oneOf": [
|
|
347
|
+
{
|
|
348
|
+
"type": "object",
|
|
349
|
+
"required": [
|
|
350
|
+
"$ref"
|
|
351
|
+
],
|
|
352
|
+
"properties": {
|
|
353
|
+
"$ref": {
|
|
354
|
+
"type": "string"
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"type": "string"
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
301
367
|
}
|