@kerfjs/ui 5.0.0-beta.129 → 5.0.0-beta.130
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/ai/component-catalog.json +14 -9
- package/ai/component-composition-rules.json +1 -1
- package/ai/component-composition.d.ts +17 -0
- package/ai/component-composition.json +4 -3
- package/ai/component-composition.schema.json +326 -80
- package/ai/component-props-overlay.json +8568 -628
- package/ai/component-props-overlay.schema.json +15 -1
- package/ai/component-props.json +6221 -2069
- package/ai/component-props.schema.json +7 -0
- package/ai/components/radio-group.md +5 -1
- package/ai/components/state-banner.md +1 -1
- package/ai/components/surface-scaffold.md +3 -2
- package/ai/components/tab-bar.md +1 -1
- package/ai/components/toolbar-control-group.md +1 -1
- package/ai/public-api-signatures-v1.md +205 -42
- package/ai/skill.md +21 -8
- package/ai/view-document.schema.json +140 -86
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/dist/browser/column-explorer.js +5 -1
- package/dist/browser/radio-group.js +1 -0
- package/dist/catalog-resources.d.ts +2 -2
- package/dist/catalog.d.ts +2 -2
- package/dist/catalog.js +5 -5
- package/dist/{chunk-E2MTHHLS.js → chunk-2FA3SX57.js} +2 -2
- package/dist/{chunk-E2MTHHLS.js.map → chunk-2FA3SX57.js.map} +1 -1
- package/dist/{chunk-ZC4KSRAF.js → chunk-4CYCJ3NY.js} +6 -4
- package/dist/chunk-4CYCJ3NY.js.map +1 -0
- package/dist/{chunk-IMXLOMTF.js → chunk-76BLSFEA.js} +30 -12
- package/dist/chunk-76BLSFEA.js.map +1 -0
- package/dist/{chunk-IR32NI2O.js → chunk-ALBFHXMZ.js} +3 -3
- package/dist/chunk-ALBFHXMZ.js.map +1 -0
- package/dist/{chunk-3ZWYGGEC.js → chunk-ASU4ODOH.js} +38 -7
- package/dist/chunk-ASU4ODOH.js.map +1 -0
- package/dist/chunk-BMUYZKXW.js +155 -0
- package/dist/chunk-BMUYZKXW.js.map +1 -0
- package/dist/{chunk-GQUDCWOD.js → chunk-D2KHQNJ6.js} +49 -23
- package/dist/chunk-D2KHQNJ6.js.map +1 -0
- package/dist/{chunk-34FWYJX6.js → chunk-ECJHCPBN.js} +8 -2
- package/dist/chunk-ECJHCPBN.js.map +1 -0
- package/dist/{chunk-DBCDYBZP.js → chunk-HHEBNP6Z.js} +2 -2
- package/dist/{chunk-DBCDYBZP.js.map → chunk-HHEBNP6Z.js.map} +1 -1
- package/dist/{chunk-3ZKUXWAV.js → chunk-IPYQYLSX.js} +16 -9
- package/dist/chunk-IPYQYLSX.js.map +1 -0
- package/dist/{chunk-SJEPM5ZU.js → chunk-LETAE6SX.js} +2 -2
- package/dist/{chunk-SJEPM5ZU.js.map → chunk-LETAE6SX.js.map} +1 -1
- package/dist/chunk-MVWR5WRX.js +99 -0
- package/dist/chunk-MVWR5WRX.js.map +1 -0
- package/dist/{chunk-6T7AX365.js → chunk-OSL4LQ7T.js} +52 -23
- package/dist/chunk-OSL4LQ7T.js.map +1 -0
- package/dist/{chunk-OHT2AXER.js → chunk-QSJAIXLM.js} +19 -3
- package/dist/chunk-QSJAIXLM.js.map +1 -0
- package/dist/{chunk-UQ4FRQ6M.js → chunk-R4JK2C6D.js} +13 -3
- package/dist/chunk-R4JK2C6D.js.map +1 -0
- package/dist/{chunk-5A2DN3LR.js → chunk-SGYBIKQA.js} +3 -1
- package/dist/chunk-SGYBIKQA.js.map +1 -0
- package/dist/{chunk-K3C35KGR.js → chunk-XO5IOPM5.js} +2 -2
- package/dist/{chunk-K3C35KGR.js.map → chunk-XO5IOPM5.js.map} +1 -1
- package/dist/collapsible-panel.d.ts +2 -2
- package/dist/collapsible-panel.js +2 -2
- package/dist/column-explorer.d.ts +5 -1
- package/dist/column-explorer.js +5 -1
- package/dist/column-track.d.ts +3 -1
- package/dist/column-track.js +1 -1
- package/dist/editor.d.ts +87 -2
- package/dist/editor.js +2249 -1320
- package/dist/editor.js.map +1 -1
- package/dist/index.js +12 -12
- package/dist/list-detail-dialog.d.ts +2 -2
- package/dist/list-detail-dialog.js +4 -4
- package/dist/list-header.d.ts +47 -5
- package/dist/list-header.js +1 -1
- package/dist/message-composer.js +1 -1
- package/dist/{nav-stack-vQ3ieerq.d.ts → nav-stack-DKrvqFjA.d.ts} +1 -1
- package/dist/nav-stack.d.ts +2 -2
- package/dist/nav-stack.js +1 -1
- package/dist/{panel-toolbar-vg6Ir5Dy.d.ts → panel-toolbar-CEcHHDkn.d.ts} +8 -0
- package/dist/radio-group.d.ts +19 -2
- package/dist/radio-group.js +3 -1
- package/dist/split-view.d.ts +2 -2
- package/dist/split-view.js +1 -1
- package/dist/styles/column-track.css +7 -2
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +11 -4
- package/dist/styles/components/collections/list-header/list-header.css +50 -0
- package/dist/styles/components/collections/list-item/list-item.css +6 -1
- package/dist/styles/components/collections/tree-list/tree-list.css +3 -2
- package/dist/styles/components/forms/radio-group/radio-group.css +107 -0
- package/dist/styles/components/layout/column-track/column-track.css +7 -2
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +30 -1
- package/dist/styles/editor/editor.css +0 -23
- package/dist/styles/list-header.css +50 -0
- package/dist/styles/list-item.css +6 -1
- package/dist/styles/radio-group.css +107 -0
- package/dist/styles/surface-scaffold.css +30 -1
- package/dist/styles/toolbar-control-group.css +11 -4
- package/dist/styles/tree-list.css +3 -2
- package/dist/surface-scaffold-register.js +1 -1
- package/dist/surface-scaffold.d.ts +46 -11
- package/dist/surface-scaffold.js +2 -2
- package/dist/toolbar-control-group.d.ts +10 -1
- package/dist/toolbar-control-group.js +1 -1
- package/dist/tree-list.d.ts +7 -1
- package/dist/tree-list.js +1 -1
- package/dist/view-runtime.d.ts +9 -0
- package/dist/view-runtime.js +8 -0
- package/dist/view-runtime.js.map +1 -0
- package/dist/wire-catalog.d.ts +2 -2
- package/dist/wire-catalog.js +1 -1
- package/dist/wire-search-fields.js +1 -1
- package/dist/wire-tab-bars.d.ts +10 -0
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tag-fields.js +1 -1
- package/dist/wire-workbench.d.ts +17 -1
- package/dist/wire-workbench.js +1 -1
- package/dist/workbench-dialog.d.ts +2 -2
- package/dist/workbench-dialog.js +4 -4
- package/dist/workbench.d.ts +10 -2
- package/dist/workbench.js +1 -1
- package/docs/accessibility.md +1 -1
- package/docs/column-explorer.md +4 -0
- package/docs/component-contract.md +10 -4
- package/docs/component-integration.md +7 -3
- package/docs/component-selection.md +2 -1
- package/docs/design/sketch/Kerf-UI.sketch +0 -0
- package/docs/design/sketch/coverage.md +7 -6
- package/docs/design/sketch/forms/README.md +5 -4
- package/docs/design/sketch/unified/pages/forms.png +0 -0
- package/docs/design/templates/radio-group/tiles-dark.svg +1 -0
- package/docs/design/templates/radio-group/tiles.svg +1 -0
- package/docs/design/templates/radio-group-dark.svg +1 -1
- package/docs/design/templates/radio-group.svg +1 -1
- package/docs/editor-host.md +90 -5
- package/docs/interaction-conventions.md +2 -0
- package/docs/layout.md +1 -1
- package/docs/surface-scaffold.md +49 -2
- package/docs/tree-list.md +10 -0
- package/docs/workbench.md +16 -0
- package/evaluator/firefox-app-data.d.mts +4 -0
- package/evaluator/firefox-app-data.mjs +35 -0
- package/evaluator/index.mjs +19 -5
- package/llms.txt +20 -4
- package/package.json +8 -1
- package/props/component-props.d.mts +3 -0
- package/view/cli.mjs +36 -5
- package/view/contract.mjs +3 -0
- package/view/generate.mjs +8 -7
- package/view/index.d.mts +14 -0
- package/view/project-types-worker.mjs +55 -0
- package/view/project-types.d.mts +43 -0
- package/view/project-types.mjs +618 -0
- package/view/type-expression.d.mts +15 -0
- package/view/type-expression.mjs +162 -0
- package/view/types.mjs +4 -0
- package/view/validate.mjs +20 -1
- package/vite-editor.d.mts +31 -3
- package/vite-editor.mjs +168 -4
- package/dist/chunk-34FWYJX6.js.map +0 -1
- package/dist/chunk-3ZKUXWAV.js.map +0 -1
- package/dist/chunk-3ZWYGGEC.js.map +0 -1
- package/dist/chunk-5A2DN3LR.js.map +0 -1
- package/dist/chunk-6T7AX365.js.map +0 -1
- package/dist/chunk-BMOZSNDU.js +0 -133
- package/dist/chunk-BMOZSNDU.js.map +0 -1
- package/dist/chunk-GQUDCWOD.js.map +0 -1
- package/dist/chunk-IMXLOMTF.js.map +0 -1
- package/dist/chunk-IR32NI2O.js.map +0 -1
- package/dist/chunk-MLDO7WLA.js +0 -82
- package/dist/chunk-MLDO7WLA.js.map +0 -1
- package/dist/chunk-OHT2AXER.js.map +0 -1
- package/dist/chunk-UQ4FRQ6M.js.map +0 -1
- package/dist/chunk-ZC4KSRAF.js.map +0 -1
|
@@ -5,12 +5,17 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"required": ["schemaVersion", "package", "compatibility", "entries"],
|
|
7
7
|
"properties": {
|
|
8
|
-
"$schema": {
|
|
8
|
+
"$schema": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
9
11
|
"schemaVersion": {
|
|
10
12
|
"const": 1,
|
|
11
13
|
"description": "Version of the composition catalog format itself, independent of component-catalog.json's own schemaVersion."
|
|
12
14
|
},
|
|
13
|
-
"package": {
|
|
15
|
+
"package": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1
|
|
18
|
+
},
|
|
14
19
|
"compatibility": {
|
|
15
20
|
"type": "object",
|
|
16
21
|
"required": ["componentCatalog", "identity"],
|
|
@@ -20,11 +25,39 @@
|
|
|
20
25
|
"minLength": 1,
|
|
21
26
|
"description": "Relative path to the component (selection) catalog this composition layer describes, or \"not-applicable\" when the package publishes none."
|
|
22
27
|
},
|
|
23
|
-
"identity": {
|
|
28
|
+
"identity": {
|
|
29
|
+
"const": "package:id"
|
|
30
|
+
}
|
|
24
31
|
},
|
|
25
32
|
"additionalProperties": false
|
|
26
33
|
},
|
|
27
|
-
"entries": {
|
|
34
|
+
"entries": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"$ref": "#/$defs/entry"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"libraryPreviewModule": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1,
|
|
43
|
+
"description": "Optional editor-only ESM preview registration module, relative to this catalog or a resolvable package export. It is imported by the Vite editor host, never evaluated as JSON."
|
|
44
|
+
},
|
|
45
|
+
"libraryPreviews": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": {
|
|
48
|
+
"type": "object",
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"properties": {
|
|
51
|
+
"props": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": {
|
|
54
|
+
"$ref": "#/$defs/libraryPreviewJson"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"description": "Library-only literal sample props, keyed by the complete component key. An empty entry restores automatic rendering. Values are literal JSON; no view bindings, CSS/icon expressions or JavaScript are evaluated."
|
|
60
|
+
}
|
|
28
61
|
},
|
|
29
62
|
"additionalProperties": false,
|
|
30
63
|
"$defs": {
|
|
@@ -57,18 +90,29 @@
|
|
|
57
90
|
},
|
|
58
91
|
"stringList": {
|
|
59
92
|
"type": "array",
|
|
60
|
-
"items": {
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 1
|
|
96
|
+
},
|
|
61
97
|
"uniqueItems": true
|
|
62
98
|
},
|
|
63
99
|
"cardinality": {
|
|
64
100
|
"type": "object",
|
|
65
101
|
"required": ["min", "max"],
|
|
66
102
|
"properties": {
|
|
67
|
-
"min": {
|
|
103
|
+
"min": {
|
|
104
|
+
"type": "integer",
|
|
105
|
+
"minimum": 0
|
|
106
|
+
},
|
|
68
107
|
"max": {
|
|
69
108
|
"anyOf": [
|
|
70
|
-
{
|
|
71
|
-
|
|
109
|
+
{
|
|
110
|
+
"type": "integer",
|
|
111
|
+
"minimum": 1
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"const": "unbounded"
|
|
115
|
+
}
|
|
72
116
|
]
|
|
73
117
|
}
|
|
74
118
|
},
|
|
@@ -78,18 +122,30 @@
|
|
|
78
122
|
"type": "object",
|
|
79
123
|
"required": ["id", "accepts", "cardinality", "exclusiveWith"],
|
|
80
124
|
"properties": {
|
|
81
|
-
"id": {
|
|
125
|
+
"id": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"minLength": 1
|
|
128
|
+
},
|
|
82
129
|
"jsx": {
|
|
83
130
|
"type": "object",
|
|
84
131
|
"required": ["prop"],
|
|
85
132
|
"properties": {
|
|
86
|
-
"prop": {
|
|
133
|
+
"prop": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"minLength": 1
|
|
136
|
+
}
|
|
87
137
|
},
|
|
88
138
|
"additionalProperties": false
|
|
89
139
|
},
|
|
90
|
-
"accepts": {
|
|
91
|
-
|
|
92
|
-
|
|
140
|
+
"accepts": {
|
|
141
|
+
"$ref": "#/$defs/stringList"
|
|
142
|
+
},
|
|
143
|
+
"cardinality": {
|
|
144
|
+
"$ref": "#/$defs/cardinality"
|
|
145
|
+
},
|
|
146
|
+
"exclusiveWith": {
|
|
147
|
+
"$ref": "#/$defs/stringList"
|
|
148
|
+
}
|
|
93
149
|
},
|
|
94
150
|
"additionalProperties": false
|
|
95
151
|
},
|
|
@@ -97,9 +153,16 @@
|
|
|
97
153
|
"type": "object",
|
|
98
154
|
"required": ["id", "owner", "required"],
|
|
99
155
|
"properties": {
|
|
100
|
-
"id": {
|
|
101
|
-
|
|
102
|
-
|
|
156
|
+
"id": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"minLength": 1
|
|
159
|
+
},
|
|
160
|
+
"owner": {
|
|
161
|
+
"enum": ["application", "controlled", "component"]
|
|
162
|
+
},
|
|
163
|
+
"required": {
|
|
164
|
+
"type": "boolean"
|
|
165
|
+
}
|
|
103
166
|
},
|
|
104
167
|
"additionalProperties": false
|
|
105
168
|
},
|
|
@@ -107,10 +170,21 @@
|
|
|
107
170
|
"type": "object",
|
|
108
171
|
"required": ["id", "severity", "when", "message"],
|
|
109
172
|
"properties": {
|
|
110
|
-
"id": {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
173
|
+
"id": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"pattern": "^KUI-C[0-9]{3}$"
|
|
176
|
+
},
|
|
177
|
+
"severity": {
|
|
178
|
+
"enum": ["error", "warning"]
|
|
179
|
+
},
|
|
180
|
+
"when": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"minLength": 1
|
|
183
|
+
},
|
|
184
|
+
"message": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"minLength": 1
|
|
187
|
+
}
|
|
114
188
|
},
|
|
115
189
|
"additionalProperties": false
|
|
116
190
|
},
|
|
@@ -137,12 +211,29 @@
|
|
|
137
211
|
"provenance"
|
|
138
212
|
],
|
|
139
213
|
"properties": {
|
|
140
|
-
"key": {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
"
|
|
145
|
-
|
|
214
|
+
"key": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"minLength": 3
|
|
217
|
+
},
|
|
218
|
+
"package": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"minLength": 1
|
|
221
|
+
},
|
|
222
|
+
"id": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"minLength": 1
|
|
225
|
+
},
|
|
226
|
+
"name": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"minLength": 1
|
|
229
|
+
},
|
|
230
|
+
"kind": {
|
|
231
|
+
"enum": ["component", "composition", "recipe"]
|
|
232
|
+
},
|
|
233
|
+
"purpose": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"minLength": 1
|
|
236
|
+
},
|
|
146
237
|
"publicExports": {
|
|
147
238
|
"description": "Each export's name and the package.json#exports subpath that serves it. An entry from a private application omits subpath: the application is bundled, never imported by package name, so the name resolves through the entry's source file.",
|
|
148
239
|
"type": "array",
|
|
@@ -150,15 +241,26 @@
|
|
|
150
241
|
"type": "object",
|
|
151
242
|
"required": ["name"],
|
|
152
243
|
"properties": {
|
|
153
|
-
"name": {
|
|
154
|
-
|
|
244
|
+
"name": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"minLength": 1
|
|
247
|
+
},
|
|
248
|
+
"subpath": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"pattern": "^\\."
|
|
251
|
+
}
|
|
155
252
|
},
|
|
156
253
|
"additionalProperties": false
|
|
157
254
|
},
|
|
158
255
|
"minItems": 1
|
|
159
256
|
},
|
|
160
|
-
"sourceLinks": {
|
|
161
|
-
|
|
257
|
+
"sourceLinks": {
|
|
258
|
+
"$ref": "#/$defs/stringList"
|
|
259
|
+
},
|
|
260
|
+
"source": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"minLength": 1
|
|
263
|
+
},
|
|
162
264
|
"styleSources": {
|
|
163
265
|
"description": "Stylesheets owned by this component, relative to the catalog package root. Required for an entry to own its CSS in opt-in component ownership mode when no selection catalog supplies it.",
|
|
164
266
|
"type": "array",
|
|
@@ -172,16 +274,22 @@
|
|
|
172
274
|
"insetFreeChildren": {
|
|
173
275
|
"description": "Prop values under which the entry's direct JSX children must bring no content-item inset. While any condition holds, a child whose layout.geometry owns its margin, border, and padding (self on all three) double-insets the entry's own geometry unless one of the child's insetFreeWhen conditions holds; eslint-plugin-kerfjs reports it as KUI-L204.",
|
|
174
276
|
"type": "array",
|
|
175
|
-
"items": {
|
|
277
|
+
"items": {
|
|
278
|
+
"$ref": "#/$defs/propCondition"
|
|
279
|
+
},
|
|
176
280
|
"minItems": 1
|
|
177
281
|
},
|
|
178
282
|
"insetFreeWhen": {
|
|
179
283
|
"description": "Prop values that render this inset-bearing entry with no margin, border, or padding of its own (Text flush). Any one condition makes the element inset-free.",
|
|
180
284
|
"type": "array",
|
|
181
|
-
"items": {
|
|
285
|
+
"items": {
|
|
286
|
+
"$ref": "#/$defs/propCondition"
|
|
287
|
+
},
|
|
182
288
|
"minItems": 1
|
|
183
289
|
},
|
|
184
|
-
"content": {
|
|
290
|
+
"content": {
|
|
291
|
+
"$ref": "#/$defs/interactiveContent"
|
|
292
|
+
},
|
|
185
293
|
"configTypes": {
|
|
186
294
|
"description": "Prop-value types (definition names in this package's component-props.json) that another component renders as this one, such as a NavStack view's toolbar config. A content field inside such a value is placed in this component, so this component is its parent for placement contracts. `TypeName.field` names one field of a type whose other fields render elsewhere.",
|
|
187
295
|
"type": "array",
|
|
@@ -196,13 +304,18 @@
|
|
|
196
304
|
"description": "For a wrapper component: the cataloged roots it renders (package-qualified keys), any one of them or nothing. Composition checks treat an element of this entry as each declared root: a zone accepts it only if it accepts every root, and each root's parent contract applies to where it is placed.",
|
|
197
305
|
"type": "array",
|
|
198
306
|
"minItems": 1,
|
|
199
|
-
"items": {
|
|
307
|
+
"items": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"pattern": "^[^:]+:[^:]+$"
|
|
310
|
+
},
|
|
200
311
|
"uniqueItems": true
|
|
201
312
|
},
|
|
202
313
|
"jsxExports": {
|
|
203
314
|
"description": "Placement contracts for additional JSX exports from one selection entry. These exports do not stand for the entry's root or its zones.",
|
|
204
315
|
"type": "object",
|
|
205
|
-
"propertyNames": {
|
|
316
|
+
"propertyNames": {
|
|
317
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$"
|
|
318
|
+
},
|
|
206
319
|
"additionalProperties": {
|
|
207
320
|
"type": "object",
|
|
208
321
|
"required": ["parents"],
|
|
@@ -211,8 +324,12 @@
|
|
|
211
324
|
"type": "object",
|
|
212
325
|
"required": ["mode", "entries"],
|
|
213
326
|
"properties": {
|
|
214
|
-
"mode": {
|
|
215
|
-
|
|
327
|
+
"mode": {
|
|
328
|
+
"enum": ["any", "root", "listed"]
|
|
329
|
+
},
|
|
330
|
+
"entries": {
|
|
331
|
+
"$ref": "#/$defs/stringList"
|
|
332
|
+
}
|
|
216
333
|
},
|
|
217
334
|
"additionalProperties": false
|
|
218
335
|
}
|
|
@@ -224,31 +341,59 @@
|
|
|
224
341
|
"type": "object",
|
|
225
342
|
"required": ["mode", "entries"],
|
|
226
343
|
"properties": {
|
|
227
|
-
"mode": {
|
|
228
|
-
|
|
344
|
+
"mode": {
|
|
345
|
+
"enum": ["any", "root", "listed"]
|
|
346
|
+
},
|
|
347
|
+
"entries": {
|
|
348
|
+
"$ref": "#/$defs/stringList"
|
|
349
|
+
}
|
|
229
350
|
},
|
|
230
351
|
"additionalProperties": false
|
|
231
352
|
},
|
|
232
|
-
"contexts": {
|
|
233
|
-
|
|
353
|
+
"contexts": {
|
|
354
|
+
"$ref": "#/$defs/stringList"
|
|
355
|
+
},
|
|
356
|
+
"zones": {
|
|
357
|
+
"type": "array",
|
|
358
|
+
"items": {
|
|
359
|
+
"$ref": "#/$defs/zone"
|
|
360
|
+
}
|
|
361
|
+
},
|
|
234
362
|
"children": {
|
|
235
363
|
"type": "object",
|
|
236
364
|
"required": ["mode", "concepts", "requiredConcepts"],
|
|
237
365
|
"properties": {
|
|
238
|
-
"mode": {
|
|
239
|
-
|
|
240
|
-
|
|
366
|
+
"mode": {
|
|
367
|
+
"enum": ["any", "none", "listed"]
|
|
368
|
+
},
|
|
369
|
+
"concepts": {
|
|
370
|
+
"$ref": "#/$defs/stringList"
|
|
371
|
+
},
|
|
372
|
+
"requiredConcepts": {
|
|
373
|
+
"$ref": "#/$defs/stringList"
|
|
374
|
+
}
|
|
241
375
|
},
|
|
242
376
|
"additionalProperties": false
|
|
243
377
|
},
|
|
244
|
-
"state": {
|
|
378
|
+
"state": {
|
|
379
|
+
"type": "array",
|
|
380
|
+
"items": {
|
|
381
|
+
"$ref": "#/$defs/state"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
245
384
|
"wiring": {
|
|
246
385
|
"type": "object",
|
|
247
386
|
"required": ["required", "helpers", "obligations"],
|
|
248
387
|
"properties": {
|
|
249
|
-
"required": {
|
|
250
|
-
|
|
251
|
-
|
|
388
|
+
"required": {
|
|
389
|
+
"type": "boolean"
|
|
390
|
+
},
|
|
391
|
+
"scope": {
|
|
392
|
+
"enum": ["application", "module"]
|
|
393
|
+
},
|
|
394
|
+
"helpers": {
|
|
395
|
+
"$ref": "#/$defs/stringList"
|
|
396
|
+
},
|
|
252
397
|
"sources": {
|
|
253
398
|
"description": "Application-owned helper exports and their defining source files, relative to the catalog package root.",
|
|
254
399
|
"type": "array",
|
|
@@ -256,9 +401,17 @@
|
|
|
256
401
|
"type": "object",
|
|
257
402
|
"required": ["export", "source"],
|
|
258
403
|
"properties": {
|
|
259
|
-
"export": {
|
|
260
|
-
|
|
261
|
-
|
|
404
|
+
"export": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"minLength": 1
|
|
407
|
+
},
|
|
408
|
+
"source": {
|
|
409
|
+
"type": "string",
|
|
410
|
+
"minLength": 1
|
|
411
|
+
},
|
|
412
|
+
"returnsDisposer": {
|
|
413
|
+
"type": "boolean"
|
|
414
|
+
}
|
|
262
415
|
},
|
|
263
416
|
"additionalProperties": false
|
|
264
417
|
}
|
|
@@ -267,11 +420,15 @@
|
|
|
267
420
|
"description": "data-action values the application must handle with a root-delegated listener (delegate or delegateActions) instead of a named helper. Required wiring names at least one helper or action.",
|
|
268
421
|
"$ref": "#/$defs/stringList"
|
|
269
422
|
},
|
|
270
|
-
"obligations": {
|
|
423
|
+
"obligations": {
|
|
424
|
+
"$ref": "#/$defs/stringList"
|
|
425
|
+
},
|
|
271
426
|
"stateAttributes": {
|
|
272
427
|
"description": "Wiring-owned state attributes: data-* attributes a wiring helper writes at runtime, which the application must not render, remove, or treat as its own state. Optional for extension catalogs; first-party entries always list it, empty when their helpers write none.",
|
|
273
428
|
"type": "array",
|
|
274
|
-
"items": {
|
|
429
|
+
"items": {
|
|
430
|
+
"$ref": "#/$defs/stateAttribute"
|
|
431
|
+
}
|
|
275
432
|
}
|
|
276
433
|
},
|
|
277
434
|
"additionalProperties": false
|
|
@@ -283,7 +440,9 @@
|
|
|
283
440
|
"owner": {
|
|
284
441
|
"enum": ["application", "component", "shared", "not-applicable"]
|
|
285
442
|
},
|
|
286
|
-
"behaviors": {
|
|
443
|
+
"behaviors": {
|
|
444
|
+
"$ref": "#/$defs/stringList"
|
|
445
|
+
}
|
|
287
446
|
},
|
|
288
447
|
"additionalProperties": false
|
|
289
448
|
},
|
|
@@ -291,7 +450,9 @@
|
|
|
291
450
|
"type": "object",
|
|
292
451
|
"required": ["roles", "geometry"],
|
|
293
452
|
"properties": {
|
|
294
|
-
"roles": {
|
|
453
|
+
"roles": {
|
|
454
|
+
"$ref": "#/$defs/stringList"
|
|
455
|
+
},
|
|
295
456
|
"geometry": {
|
|
296
457
|
"type": "object",
|
|
297
458
|
"required": ["margin", "border", "padding"],
|
|
@@ -326,7 +487,9 @@
|
|
|
326
487
|
"composed"
|
|
327
488
|
]
|
|
328
489
|
},
|
|
329
|
-
"notes": {
|
|
490
|
+
"notes": {
|
|
491
|
+
"$ref": "#/$defs/stringList"
|
|
492
|
+
}
|
|
330
493
|
},
|
|
331
494
|
"additionalProperties": false
|
|
332
495
|
}
|
|
@@ -336,12 +499,18 @@
|
|
|
336
499
|
"accessibility": {
|
|
337
500
|
"type": "object",
|
|
338
501
|
"required": ["obligations"],
|
|
339
|
-
"properties": {
|
|
502
|
+
"properties": {
|
|
503
|
+
"obligations": {
|
|
504
|
+
"$ref": "#/$defs/stringList"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
340
507
|
"additionalProperties": false
|
|
341
508
|
},
|
|
342
509
|
"cssValueProps": {
|
|
343
510
|
"type": "array",
|
|
344
|
-
"items": {
|
|
511
|
+
"items": {
|
|
512
|
+
"$ref": "#/$defs/cssValueProp"
|
|
513
|
+
}
|
|
345
514
|
},
|
|
346
515
|
"boundaries": {
|
|
347
516
|
"type": "object",
|
|
@@ -349,11 +518,18 @@
|
|
|
349
518
|
"properties": {
|
|
350
519
|
"rootClass": {
|
|
351
520
|
"oneOf": [
|
|
352
|
-
{
|
|
353
|
-
|
|
521
|
+
{
|
|
522
|
+
"type": "string",
|
|
523
|
+
"minLength": 1
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"type": "null"
|
|
527
|
+
}
|
|
354
528
|
]
|
|
355
529
|
},
|
|
356
|
-
"publicClasses": {
|
|
530
|
+
"publicClasses": {
|
|
531
|
+
"$ref": "#/$defs/stringList"
|
|
532
|
+
},
|
|
357
533
|
"placeableClasses": {
|
|
358
534
|
"$ref": "#/$defs/stringList",
|
|
359
535
|
"description": "The subset of publicClasses an application may place on its own elements. Absent means none: every public class is the component's rendered anatomy, reached by rendering the component."
|
|
@@ -372,21 +548,33 @@
|
|
|
372
548
|
"pattern": "^data-[a-z][a-z0-9]*(?:-[a-z0-9]+)*$",
|
|
373
549
|
"description": "Root data attribute anchoring ownership of arbitrary unclassed descendants."
|
|
374
550
|
},
|
|
375
|
-
"publicTokens": {
|
|
376
|
-
|
|
551
|
+
"publicTokens": {
|
|
552
|
+
"$ref": "#/$defs/stringList"
|
|
553
|
+
},
|
|
554
|
+
"publicParts": {
|
|
555
|
+
"$ref": "#/$defs/stringList"
|
|
556
|
+
}
|
|
377
557
|
},
|
|
378
558
|
"additionalProperties": false
|
|
379
559
|
},
|
|
380
560
|
"diagnostics": {
|
|
381
561
|
"type": "array",
|
|
382
|
-
"items": {
|
|
562
|
+
"items": {
|
|
563
|
+
"$ref": "#/$defs/diagnostic"
|
|
564
|
+
}
|
|
383
565
|
},
|
|
384
566
|
"provenance": {
|
|
385
567
|
"type": "object",
|
|
386
568
|
"required": ["selection", "composition"],
|
|
387
569
|
"properties": {
|
|
388
|
-
"selection": {
|
|
389
|
-
|
|
570
|
+
"selection": {
|
|
571
|
+
"type": "string",
|
|
572
|
+
"minLength": 1
|
|
573
|
+
},
|
|
574
|
+
"composition": {
|
|
575
|
+
"type": "string",
|
|
576
|
+
"minLength": 1
|
|
577
|
+
}
|
|
390
578
|
},
|
|
391
579
|
"additionalProperties": false
|
|
392
580
|
}
|
|
@@ -401,7 +589,9 @@
|
|
|
401
589
|
"interactive": {
|
|
402
590
|
"type": "array",
|
|
403
591
|
"minItems": 1,
|
|
404
|
-
"items": {
|
|
592
|
+
"items": {
|
|
593
|
+
"$ref": "#/$defs/interactiveRule"
|
|
594
|
+
}
|
|
405
595
|
},
|
|
406
596
|
"exports": {
|
|
407
597
|
"description": "The same rules for each additional JSX export of the entry, keyed by export name. Exports do not inherit the entry's rules.",
|
|
@@ -413,7 +603,9 @@
|
|
|
413
603
|
"interactive": {
|
|
414
604
|
"type": "array",
|
|
415
605
|
"minItems": 1,
|
|
416
|
-
"items": {
|
|
606
|
+
"items": {
|
|
607
|
+
"$ref": "#/$defs/interactiveRule"
|
|
608
|
+
}
|
|
417
609
|
}
|
|
418
610
|
},
|
|
419
611
|
"additionalProperties": false
|
|
@@ -435,7 +627,10 @@
|
|
|
435
627
|
"type": "array",
|
|
436
628
|
"minItems": 1,
|
|
437
629
|
"uniqueItems": true,
|
|
438
|
-
"items": {
|
|
630
|
+
"items": {
|
|
631
|
+
"type": "string",
|
|
632
|
+
"pattern": "^[A-Za-z][A-Za-z0-9]*$"
|
|
633
|
+
}
|
|
439
634
|
}
|
|
440
635
|
},
|
|
441
636
|
"additionalProperties": false
|
|
@@ -451,9 +646,15 @@
|
|
|
451
646
|
},
|
|
452
647
|
"equals": {
|
|
453
648
|
"anyOf": [
|
|
454
|
-
{
|
|
455
|
-
|
|
456
|
-
|
|
649
|
+
{
|
|
650
|
+
"type": "string"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"type": "number"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"type": "boolean"
|
|
657
|
+
}
|
|
457
658
|
],
|
|
458
659
|
"description": "The statically written value that satisfies the condition. A bare boolean prop (<Text flush />) equals true."
|
|
459
660
|
}
|
|
@@ -488,16 +689,61 @@
|
|
|
488
689
|
"pixels"
|
|
489
690
|
]
|
|
490
691
|
},
|
|
491
|
-
"helpers": {
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
"
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
"
|
|
498
|
-
|
|
692
|
+
"helpers": {
|
|
693
|
+
"$ref": "#/$defs/stringList"
|
|
694
|
+
},
|
|
695
|
+
"nonStandaloneHelpers": {
|
|
696
|
+
"$ref": "#/$defs/stringList"
|
|
697
|
+
},
|
|
698
|
+
"shorthands": {
|
|
699
|
+
"$ref": "#/$defs/stringList"
|
|
700
|
+
},
|
|
701
|
+
"canonicalShorthands": {
|
|
702
|
+
"$ref": "#/$defs/stringList"
|
|
703
|
+
},
|
|
704
|
+
"exceptionalShorthands": {
|
|
705
|
+
"$ref": "#/$defs/stringList"
|
|
706
|
+
},
|
|
707
|
+
"rawPolicy": {
|
|
708
|
+
"enum": ["forbid", "allow", "unsafe-only"]
|
|
709
|
+
},
|
|
710
|
+
"unsafeHelper": {
|
|
711
|
+
"type": "string",
|
|
712
|
+
"minLength": 1
|
|
713
|
+
},
|
|
714
|
+
"examples": {
|
|
715
|
+
"$ref": "#/$defs/stringList"
|
|
716
|
+
}
|
|
499
717
|
},
|
|
500
718
|
"additionalProperties": false
|
|
719
|
+
},
|
|
720
|
+
"libraryPreviewJson": {
|
|
721
|
+
"anyOf": [
|
|
722
|
+
{
|
|
723
|
+
"type": "null"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"type": "boolean"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"type": "number"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"type": "string"
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"type": "array",
|
|
736
|
+
"items": {
|
|
737
|
+
"$ref": "#/$defs/libraryPreviewJson"
|
|
738
|
+
}
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"type": "object",
|
|
742
|
+
"additionalProperties": {
|
|
743
|
+
"$ref": "#/$defs/libraryPreviewJson"
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
]
|
|
501
747
|
}
|
|
502
748
|
}
|
|
503
749
|
}
|