@sentropic/design-system-elements 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/LICENSE.THIRD-PARTY.md +4734 -0
- package/README.md +146 -2
- package/catalog.json +1234 -0
- package/dist/browser/assets/bpmn-CZlEAdL6.ttf +0 -0
- package/dist/browser/assets/bpmn-DaGVGZ7K.woff +0 -0
- package/dist/browser/assets/bpmn-DaJ2be00.woff2 +0 -0
- package/dist/browser/chunks/BpmnRenderUtil-WMCgqGDs.js +1 -0
- package/dist/browser/chunks/BpmnUpdater-C-UNbzXl.js +1 -0
- package/dist/browser/chunks/LabelUtil-7QpE43Ed.js +1 -0
- package/dist/browser/chunks/LayoutUtil-hAMJmJFU.js +1 -0
- package/dist/browser/chunks/ModelUtil-CMh7LuN4.js +1 -0
- package/dist/browser/chunks/Modeler-BfAmwsmK.js +389 -0
- package/dist/browser/chunks/Viewer-eYLzc3fD.js +4 -0
- package/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +2207 -0
- package/dist/browser/chunks/colored-CSIQaGsQ.js +1 -0
- package/dist/browser/chunks/dist-Co2MgHWm.js +1 -0
- package/dist/browser/chunks/dist-O6_2ByYB.js +1 -0
- package/dist/browser/chunks/dist-kvAYI1vo.js +1 -0
- package/dist/browser/chunks/entropic-CM5BHERN.js +2173 -0
- package/dist/browser/chunks/focus-renderer-BgsZGo7n.js +8 -0
- package/dist/browser/chunks/forge-B8hrW4lA.js +2173 -0
- package/dist/browser/chunks/layout-q0TR9-aY.js +1 -0
- package/dist/browser/chunks/legend-CXdfCBh6.js +1 -0
- package/dist/browser/chunks/textMetrics-BrMS6-sA.js +2 -0
- package/dist/browser/chunks/tokens-DFPpCvf1.js +1 -0
- package/dist/browser/elements.js +2221 -0
- package/dist/browser/sri.json +166 -0
- package/dist/contracts/bar-chart.d.ts +158 -0
- package/dist/contracts/bar-chart.js +117 -0
- package/dist/contracts/bpmn-canvas.d.ts +39 -0
- package/dist/contracts/bpmn-canvas.js +77 -0
- package/dist/contracts/decision-dossier.d.ts +43 -0
- package/dist/contracts/decision-dossier.js +133 -0
- package/dist/contracts/index.d.ts +28 -0
- package/dist/contracts/index.js +35 -0
- package/dist/contracts/types.d.ts +129 -0
- package/dist/contracts/types.js +16 -0
- package/dist/element/f1/f1-to-xml.d.ts +51 -0
- package/dist/element/f1/f1-to-xml.js +220 -0
- package/dist/element/markdown/minimal-markdown.d.ts +31 -0
- package/dist/element/markdown/minimal-markdown.js +98 -0
- package/dist/element/theme/theme-scoping.d.ts +27 -0
- package/dist/element/theme/theme-scoping.js +39 -0
- package/dist/generated/a2ui-common-types.d.ts +25 -0
- package/dist/generated/a2ui-common-types.js +367 -0
- package/dist/generator/canonical.d.ts +21 -0
- package/dist/generator/canonical.js +36 -0
- package/dist/generator/emit.d.ts +48 -0
- package/dist/generator/emit.js +400 -0
- package/dist/generator/main.d.ts +19 -0
- package/dist/generator/main.js +67 -0
- package/dist/generator/parity.d.ts +55 -0
- package/dist/generator/parity.js +223 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10 -0
- package/dist/ports/bpmn-canvas.d.ts +34 -0
- package/dist/ports/bpmn-canvas.js +36 -0
- package/dist/ports/focus.d.ts +40 -0
- package/dist/ports/focus.js +49 -0
- package/dist/ports/types.d.ts +36 -0
- package/dist/ports/types.js +12 -0
- package/dist/structure/ajv.d.ts +41 -0
- package/dist/structure/ajv.js +108 -0
- package/dist/structure/interpreter.d.ts +47 -0
- package/dist/structure/interpreter.js +576 -0
- package/dist/validate/diagnostics.d.ts +63 -0
- package/dist/validate/diagnostics.js +56 -0
- package/dist/validate/envelope.d.ts +92 -0
- package/dist/validate/envelope.js +306 -0
- package/dist/validate/index.d.ts +22 -0
- package/dist/validate/index.js +24 -0
- package/dist/validate/structure.d.ts +32 -0
- package/dist/validate/structure.js +13 -0
- package/envelope.json +43 -0
- package/package.json +54 -4
- package/schemas/BarChart.v1.json +556 -0
- package/schemas/BpmnCanvas.v1.json +139 -0
- package/schemas/DecisionDossier.v1.json +635 -0
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$defs": {
|
|
3
|
+
"CatalogComponentCommon": {
|
|
4
|
+
"properties": {
|
|
5
|
+
"weight": {
|
|
6
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column.",
|
|
7
|
+
"type": "number"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"type": "object"
|
|
11
|
+
},
|
|
12
|
+
"DecisionDossierDocument": {
|
|
13
|
+
"$defs": {
|
|
14
|
+
"amendmentStep": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"at": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
},
|
|
20
|
+
"author": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"summary": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": [
|
|
28
|
+
"at",
|
|
29
|
+
"author",
|
|
30
|
+
"summary"
|
|
31
|
+
],
|
|
32
|
+
"type": "object"
|
|
33
|
+
},
|
|
34
|
+
"amendmentTraceNode": {
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"properties": {
|
|
37
|
+
"id": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"kind": {
|
|
41
|
+
"const": "amendmentTrace"
|
|
42
|
+
},
|
|
43
|
+
"steps": {
|
|
44
|
+
"items": {
|
|
45
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/amendmentStep"
|
|
46
|
+
},
|
|
47
|
+
"type": "array"
|
|
48
|
+
},
|
|
49
|
+
"targetRef": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"id",
|
|
55
|
+
"kind",
|
|
56
|
+
"steps",
|
|
57
|
+
"targetRef"
|
|
58
|
+
],
|
|
59
|
+
"type": "object"
|
|
60
|
+
},
|
|
61
|
+
"comprehensionEvidence": {
|
|
62
|
+
"additionalProperties": false,
|
|
63
|
+
"properties": {
|
|
64
|
+
"dossierHash": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"signature": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"subject": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"dossierHash",
|
|
76
|
+
"subject"
|
|
77
|
+
],
|
|
78
|
+
"type": "object"
|
|
79
|
+
},
|
|
80
|
+
"diagramNode": {
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"properties": {
|
|
83
|
+
"alt": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
86
|
+
"id": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"kind": {
|
|
90
|
+
"const": "diagram"
|
|
91
|
+
},
|
|
92
|
+
"scene": {
|
|
93
|
+
"description": "diagram-core SemanticDocument, profile generic@1, without views, geometry or layout hints. Opaque JSON until the design-system publishes its authoritative schema; no Focus-specific scene model.",
|
|
94
|
+
"type": "object"
|
|
95
|
+
},
|
|
96
|
+
"source": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"syntax": {
|
|
100
|
+
"enum": [
|
|
101
|
+
"mermaid",
|
|
102
|
+
"plantuml"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"targetRef": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": [
|
|
110
|
+
"alt",
|
|
111
|
+
"id",
|
|
112
|
+
"kind",
|
|
113
|
+
"source",
|
|
114
|
+
"syntax",
|
|
115
|
+
"targetRef"
|
|
116
|
+
],
|
|
117
|
+
"type": "object"
|
|
118
|
+
},
|
|
119
|
+
"glossaryEntry": {
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"properties": {
|
|
122
|
+
"definition": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"term": {
|
|
126
|
+
"type": "string"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"required": [
|
|
130
|
+
"definition",
|
|
131
|
+
"term"
|
|
132
|
+
],
|
|
133
|
+
"type": "object"
|
|
134
|
+
},
|
|
135
|
+
"interaction": {
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"properties": {
|
|
138
|
+
"enabled": {
|
|
139
|
+
"const": false
|
|
140
|
+
},
|
|
141
|
+
"label": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"name": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"targetRef": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": [
|
|
152
|
+
"enabled",
|
|
153
|
+
"label",
|
|
154
|
+
"name",
|
|
155
|
+
"targetRef"
|
|
156
|
+
],
|
|
157
|
+
"type": "object"
|
|
158
|
+
},
|
|
159
|
+
"optionNode": {
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"properties": {
|
|
162
|
+
"annotation": {
|
|
163
|
+
"enum": [
|
|
164
|
+
"accept",
|
|
165
|
+
"comment",
|
|
166
|
+
"none",
|
|
167
|
+
"reject"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"annotationComment": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"body": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"consequence": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"id": {
|
|
180
|
+
"type": "string"
|
|
181
|
+
},
|
|
182
|
+
"kind": {
|
|
183
|
+
"const": "option"
|
|
184
|
+
},
|
|
185
|
+
"label": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"targetRef": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"required": [
|
|
193
|
+
"annotation",
|
|
194
|
+
"id",
|
|
195
|
+
"kind",
|
|
196
|
+
"label",
|
|
197
|
+
"targetRef"
|
|
198
|
+
],
|
|
199
|
+
"type": "object"
|
|
200
|
+
},
|
|
201
|
+
"optionSetNode": {
|
|
202
|
+
"additionalProperties": false,
|
|
203
|
+
"properties": {
|
|
204
|
+
"id": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"kind": {
|
|
208
|
+
"const": "optionSet"
|
|
209
|
+
},
|
|
210
|
+
"options": {
|
|
211
|
+
"items": {
|
|
212
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/optionNode"
|
|
213
|
+
},
|
|
214
|
+
"type": "array"
|
|
215
|
+
},
|
|
216
|
+
"questionId": {
|
|
217
|
+
"type": "string"
|
|
218
|
+
},
|
|
219
|
+
"targetRef": {
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
"title": {
|
|
223
|
+
"type": "string"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": [
|
|
227
|
+
"id",
|
|
228
|
+
"kind",
|
|
229
|
+
"options",
|
|
230
|
+
"targetRef"
|
|
231
|
+
],
|
|
232
|
+
"type": "object"
|
|
233
|
+
},
|
|
234
|
+
"outcomeNode": {
|
|
235
|
+
"additionalProperties": false,
|
|
236
|
+
"properties": {
|
|
237
|
+
"id": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
"kind": {
|
|
241
|
+
"const": "outcome"
|
|
242
|
+
},
|
|
243
|
+
"modality": {
|
|
244
|
+
"enum": [
|
|
245
|
+
"amendment",
|
|
246
|
+
"comment",
|
|
247
|
+
"decision",
|
|
248
|
+
"orientation"
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
"questionId": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
},
|
|
254
|
+
"statement": {
|
|
255
|
+
"type": "string"
|
|
256
|
+
},
|
|
257
|
+
"targetRef": {
|
|
258
|
+
"type": "string"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"required": [
|
|
262
|
+
"id",
|
|
263
|
+
"kind",
|
|
264
|
+
"modality",
|
|
265
|
+
"statement",
|
|
266
|
+
"targetRef"
|
|
267
|
+
],
|
|
268
|
+
"type": "object"
|
|
269
|
+
},
|
|
270
|
+
"proseNode": {
|
|
271
|
+
"additionalProperties": false,
|
|
272
|
+
"properties": {
|
|
273
|
+
"id": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
},
|
|
276
|
+
"kind": {
|
|
277
|
+
"const": "prose"
|
|
278
|
+
},
|
|
279
|
+
"markdown": {
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
"questionId": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
285
|
+
"targetRef": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"required": [
|
|
290
|
+
"id",
|
|
291
|
+
"kind",
|
|
292
|
+
"markdown",
|
|
293
|
+
"targetRef"
|
|
294
|
+
],
|
|
295
|
+
"type": "object"
|
|
296
|
+
},
|
|
297
|
+
"provenance": {
|
|
298
|
+
"additionalProperties": false,
|
|
299
|
+
"properties": {
|
|
300
|
+
"comprehensionEvidence": {
|
|
301
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/comprehensionEvidence"
|
|
302
|
+
},
|
|
303
|
+
"readAt": {
|
|
304
|
+
"type": "string"
|
|
305
|
+
},
|
|
306
|
+
"source": {
|
|
307
|
+
"type": "string"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"required": [
|
|
311
|
+
"readAt",
|
|
312
|
+
"source"
|
|
313
|
+
],
|
|
314
|
+
"type": "object"
|
|
315
|
+
},
|
|
316
|
+
"questionNode": {
|
|
317
|
+
"additionalProperties": false,
|
|
318
|
+
"properties": {
|
|
319
|
+
"answer": {
|
|
320
|
+
"type": "string"
|
|
321
|
+
},
|
|
322
|
+
"context": {
|
|
323
|
+
"type": "string"
|
|
324
|
+
},
|
|
325
|
+
"id": {
|
|
326
|
+
"type": "string"
|
|
327
|
+
},
|
|
328
|
+
"kind": {
|
|
329
|
+
"const": "question"
|
|
330
|
+
},
|
|
331
|
+
"question": {
|
|
332
|
+
"type": "string"
|
|
333
|
+
},
|
|
334
|
+
"readingTimeMinutes": {
|
|
335
|
+
"type": "number"
|
|
336
|
+
},
|
|
337
|
+
"recommendedAnswer": {
|
|
338
|
+
"type": "string"
|
|
339
|
+
},
|
|
340
|
+
"recommendedOptionId": {
|
|
341
|
+
"type": "string"
|
|
342
|
+
},
|
|
343
|
+
"state": {
|
|
344
|
+
"enum": [
|
|
345
|
+
"answered",
|
|
346
|
+
"open",
|
|
347
|
+
"validated"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
"targetRef": {
|
|
351
|
+
"type": "string"
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"required": [
|
|
355
|
+
"id",
|
|
356
|
+
"kind",
|
|
357
|
+
"question",
|
|
358
|
+
"state",
|
|
359
|
+
"targetRef"
|
|
360
|
+
],
|
|
361
|
+
"type": "object"
|
|
362
|
+
},
|
|
363
|
+
"readability": {
|
|
364
|
+
"additionalProperties": false,
|
|
365
|
+
"properties": {
|
|
366
|
+
"glossary": {
|
|
367
|
+
"items": {
|
|
368
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/glossaryEntry"
|
|
369
|
+
},
|
|
370
|
+
"type": "array"
|
|
371
|
+
},
|
|
372
|
+
"noOwnerRequest": {
|
|
373
|
+
"type": "boolean"
|
|
374
|
+
},
|
|
375
|
+
"ownerRequestQuote": {
|
|
376
|
+
"type": "string"
|
|
377
|
+
},
|
|
378
|
+
"readingBudgetMinutes": {
|
|
379
|
+
"type": "number"
|
|
380
|
+
},
|
|
381
|
+
"stakes": {
|
|
382
|
+
"type": "string"
|
|
383
|
+
},
|
|
384
|
+
"stakesLevel": {
|
|
385
|
+
"enum": [
|
|
386
|
+
"high",
|
|
387
|
+
"low",
|
|
388
|
+
"medium"
|
|
389
|
+
]
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"type": "object"
|
|
393
|
+
},
|
|
394
|
+
"section": {
|
|
395
|
+
"oneOf": [
|
|
396
|
+
{
|
|
397
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/proseNode"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/questionNode"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/optionSetNode"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/outcomeNode"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/amendmentTraceNode"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/diagramNode"
|
|
413
|
+
}
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
418
|
+
"additionalProperties": false,
|
|
419
|
+
"description": "Read-only decision-dossier snapshot published by @sentropic/focus. Closed: unknown fields refuse. Snapshot interactions are disabled metadata (enabled:false); live decisions, signatures and amendments require separately qualified runtime capabilities.",
|
|
420
|
+
"properties": {
|
|
421
|
+
"amendmentTrace": {
|
|
422
|
+
"items": {
|
|
423
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/amendmentStep"
|
|
424
|
+
},
|
|
425
|
+
"type": "array"
|
|
426
|
+
},
|
|
427
|
+
"cursor": {
|
|
428
|
+
"type": "string"
|
|
429
|
+
},
|
|
430
|
+
"hash": {
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
433
|
+
"interactions": {
|
|
434
|
+
"items": {
|
|
435
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/interaction"
|
|
436
|
+
},
|
|
437
|
+
"type": "array"
|
|
438
|
+
},
|
|
439
|
+
"provenance": {
|
|
440
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/provenance"
|
|
441
|
+
},
|
|
442
|
+
"readability": {
|
|
443
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/readability"
|
|
444
|
+
},
|
|
445
|
+
"ref": {
|
|
446
|
+
"type": "string"
|
|
447
|
+
},
|
|
448
|
+
"sections": {
|
|
449
|
+
"items": {
|
|
450
|
+
"$ref": "#/$defs/DecisionDossierDocument/$defs/section"
|
|
451
|
+
},
|
|
452
|
+
"type": "array"
|
|
453
|
+
},
|
|
454
|
+
"subject": {
|
|
455
|
+
"type": "string"
|
|
456
|
+
},
|
|
457
|
+
"title": {
|
|
458
|
+
"type": "string"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"required": [
|
|
462
|
+
"amendmentTrace",
|
|
463
|
+
"cursor",
|
|
464
|
+
"hash",
|
|
465
|
+
"interactions",
|
|
466
|
+
"provenance",
|
|
467
|
+
"ref",
|
|
468
|
+
"sections",
|
|
469
|
+
"subject",
|
|
470
|
+
"title"
|
|
471
|
+
],
|
|
472
|
+
"title": "DecisionDossierDocument",
|
|
473
|
+
"type": "object"
|
|
474
|
+
},
|
|
475
|
+
"component": {
|
|
476
|
+
"allOf": [
|
|
477
|
+
{
|
|
478
|
+
"$ref": "https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"$ref": "#/$defs/CatalogComponentCommon"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"properties": {
|
|
485
|
+
"accessibility": {
|
|
486
|
+
"additionalProperties": false,
|
|
487
|
+
"properties": {
|
|
488
|
+
"description": {
|
|
489
|
+
"type": "string"
|
|
490
|
+
},
|
|
491
|
+
"label": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"type": "object"
|
|
496
|
+
},
|
|
497
|
+
"component": {
|
|
498
|
+
"const": "DecisionDossier"
|
|
499
|
+
},
|
|
500
|
+
"document": {
|
|
501
|
+
"$ref": "#/$defs/DecisionDossierDocument"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"required": [
|
|
505
|
+
"component",
|
|
506
|
+
"document"
|
|
507
|
+
],
|
|
508
|
+
"type": "object"
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
"type": "object",
|
|
512
|
+
"unevaluatedProperties": false,
|
|
513
|
+
"x-sentropic": {
|
|
514
|
+
"contract": "1.0",
|
|
515
|
+
"element": "st-decision-dossier",
|
|
516
|
+
"engine": "lazy:focus",
|
|
517
|
+
"events": [
|
|
518
|
+
"choose-option"
|
|
519
|
+
],
|
|
520
|
+
"example": {
|
|
521
|
+
"component": "DecisionDossier",
|
|
522
|
+
"document": {
|
|
523
|
+
"amendmentTrace": [],
|
|
524
|
+
"cursor": "2026-10-30T10:00:00Z",
|
|
525
|
+
"hash": "b7d3f0c9",
|
|
526
|
+
"interactions": [],
|
|
527
|
+
"provenance": {
|
|
528
|
+
"readAt": "2026-10-30T10:00:00Z",
|
|
529
|
+
"source": "track"
|
|
530
|
+
},
|
|
531
|
+
"ref": "decision-1",
|
|
532
|
+
"sections": [
|
|
533
|
+
{
|
|
534
|
+
"id": "q1",
|
|
535
|
+
"kind": "question",
|
|
536
|
+
"question": "Which rendering contract do we adopt?",
|
|
537
|
+
"state": "open",
|
|
538
|
+
"targetRef": "decision-1"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"id": "options-1",
|
|
542
|
+
"kind": "optionSet",
|
|
543
|
+
"options": [
|
|
544
|
+
{
|
|
545
|
+
"annotation": "none",
|
|
546
|
+
"id": "opt-json",
|
|
547
|
+
"kind": "option",
|
|
548
|
+
"label": "Adopt the JSON render standard",
|
|
549
|
+
"targetRef": "q1"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"annotation": "none",
|
|
553
|
+
"id": "opt-status-quo",
|
|
554
|
+
"kind": "option",
|
|
555
|
+
"label": "Keep the status quo",
|
|
556
|
+
"targetRef": "q1"
|
|
557
|
+
}
|
|
558
|
+
],
|
|
559
|
+
"targetRef": "q1",
|
|
560
|
+
"title": "Options"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"subject": "Adopt the JSON render standard for design-system rendering",
|
|
564
|
+
"title": "Decision: adopt the JSON render standard"
|
|
565
|
+
},
|
|
566
|
+
"id": "root"
|
|
567
|
+
},
|
|
568
|
+
"fallback": "text",
|
|
569
|
+
"parity": {
|
|
570
|
+
"angular": {
|
|
571
|
+
"file": "packages/components-angular",
|
|
572
|
+
"note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
|
|
573
|
+
"status": "no-counterpart"
|
|
574
|
+
},
|
|
575
|
+
"react": {
|
|
576
|
+
"file": "packages/components-react",
|
|
577
|
+
"note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
|
|
578
|
+
"status": "no-counterpart"
|
|
579
|
+
},
|
|
580
|
+
"svelte": {
|
|
581
|
+
"file": "packages/components-svelte",
|
|
582
|
+
"note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
|
|
583
|
+
"status": "no-counterpart"
|
|
584
|
+
},
|
|
585
|
+
"vue": {
|
|
586
|
+
"file": "packages/components-vue",
|
|
587
|
+
"note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
|
|
588
|
+
"status": "no-counterpart"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"schema": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/DecisionDossier.json",
|
|
592
|
+
"semantic": {
|
|
593
|
+
"runtimePackage": "@sentropic/focus@0.5.0",
|
|
594
|
+
"schemaId": "urn:sentropic:focus:DecisionDossierDocument:1.0.0",
|
|
595
|
+
"schemaSubpath": "schemas/decision-dossier-document.v1.schema.json",
|
|
596
|
+
"sha256": "725bc07e7c6b6ad51a1f720cc9fb02649d8f31bc54e71c61c350fd20058c8852",
|
|
597
|
+
"source": "focus"
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"$id": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/DecisionDossier.json",
|
|
603
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
604
|
+
"description": "The envelope schema specialised to one component (§5.2): the §4.2 render envelope (optional catalogId, contract, optional mode, root) whose root is the DecisionDossier component object; its component part ($defs.component) is equivalent, after canonical sorting, to catalog.json#/components/DecisionDossier. Requires the A2UI common types under https://a2ui.org/specification/v0_9_1/common_types.json.",
|
|
605
|
+
"properties": {
|
|
606
|
+
"catalogId": {
|
|
607
|
+
"const": "https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json",
|
|
608
|
+
"description": "Optional catalogue identifier; absent = the renderer's catalogue (§4.2).",
|
|
609
|
+
"type": "string"
|
|
610
|
+
},
|
|
611
|
+
"contract": {
|
|
612
|
+
"description": "Component-contract version the producer targets (§4.2, §4.4).",
|
|
613
|
+
"pattern": "^[0-9]+\\.[0-9]+$",
|
|
614
|
+
"type": "string"
|
|
615
|
+
},
|
|
616
|
+
"mode": {
|
|
617
|
+
"description": "\"snapshot\" (default) | \"preview\" (reserved, §10.3).",
|
|
618
|
+
"enum": [
|
|
619
|
+
"preview",
|
|
620
|
+
"snapshot"
|
|
621
|
+
],
|
|
622
|
+
"type": "string"
|
|
623
|
+
},
|
|
624
|
+
"root": {
|
|
625
|
+
"$ref": "#/$defs/component"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
"required": [
|
|
629
|
+
"contract",
|
|
630
|
+
"root"
|
|
631
|
+
],
|
|
632
|
+
"title": "DecisionDossier standalone envelope schema",
|
|
633
|
+
"type": "object",
|
|
634
|
+
"unevaluatedProperties": false
|
|
635
|
+
}
|