@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.
Files changed (79) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE.THIRD-PARTY.md +4734 -0
  3. package/README.md +146 -2
  4. package/catalog.json +1234 -0
  5. package/dist/browser/assets/bpmn-CZlEAdL6.ttf +0 -0
  6. package/dist/browser/assets/bpmn-DaGVGZ7K.woff +0 -0
  7. package/dist/browser/assets/bpmn-DaJ2be00.woff2 +0 -0
  8. package/dist/browser/chunks/BpmnRenderUtil-WMCgqGDs.js +1 -0
  9. package/dist/browser/chunks/BpmnUpdater-C-UNbzXl.js +1 -0
  10. package/dist/browser/chunks/LabelUtil-7QpE43Ed.js +1 -0
  11. package/dist/browser/chunks/LayoutUtil-hAMJmJFU.js +1 -0
  12. package/dist/browser/chunks/ModelUtil-CMh7LuN4.js +1 -0
  13. package/dist/browser/chunks/Modeler-BfAmwsmK.js +389 -0
  14. package/dist/browser/chunks/Viewer-eYLzc3fD.js +4 -0
  15. package/dist/browser/chunks/bpmn-canvas-DeAWdJFy.js +2207 -0
  16. package/dist/browser/chunks/colored-CSIQaGsQ.js +1 -0
  17. package/dist/browser/chunks/dist-Co2MgHWm.js +1 -0
  18. package/dist/browser/chunks/dist-O6_2ByYB.js +1 -0
  19. package/dist/browser/chunks/dist-kvAYI1vo.js +1 -0
  20. package/dist/browser/chunks/entropic-CM5BHERN.js +2173 -0
  21. package/dist/browser/chunks/focus-renderer-BgsZGo7n.js +8 -0
  22. package/dist/browser/chunks/forge-B8hrW4lA.js +2173 -0
  23. package/dist/browser/chunks/layout-q0TR9-aY.js +1 -0
  24. package/dist/browser/chunks/legend-CXdfCBh6.js +1 -0
  25. package/dist/browser/chunks/textMetrics-BrMS6-sA.js +2 -0
  26. package/dist/browser/chunks/tokens-DFPpCvf1.js +1 -0
  27. package/dist/browser/elements.js +2221 -0
  28. package/dist/browser/sri.json +166 -0
  29. package/dist/contracts/bar-chart.d.ts +158 -0
  30. package/dist/contracts/bar-chart.js +117 -0
  31. package/dist/contracts/bpmn-canvas.d.ts +39 -0
  32. package/dist/contracts/bpmn-canvas.js +77 -0
  33. package/dist/contracts/decision-dossier.d.ts +43 -0
  34. package/dist/contracts/decision-dossier.js +133 -0
  35. package/dist/contracts/index.d.ts +28 -0
  36. package/dist/contracts/index.js +35 -0
  37. package/dist/contracts/types.d.ts +129 -0
  38. package/dist/contracts/types.js +16 -0
  39. package/dist/element/f1/f1-to-xml.d.ts +51 -0
  40. package/dist/element/f1/f1-to-xml.js +220 -0
  41. package/dist/element/markdown/minimal-markdown.d.ts +31 -0
  42. package/dist/element/markdown/minimal-markdown.js +98 -0
  43. package/dist/element/theme/theme-scoping.d.ts +27 -0
  44. package/dist/element/theme/theme-scoping.js +39 -0
  45. package/dist/generated/a2ui-common-types.d.ts +25 -0
  46. package/dist/generated/a2ui-common-types.js +367 -0
  47. package/dist/generator/canonical.d.ts +21 -0
  48. package/dist/generator/canonical.js +36 -0
  49. package/dist/generator/emit.d.ts +48 -0
  50. package/dist/generator/emit.js +400 -0
  51. package/dist/generator/main.d.ts +19 -0
  52. package/dist/generator/main.js +67 -0
  53. package/dist/generator/parity.d.ts +55 -0
  54. package/dist/generator/parity.js +223 -0
  55. package/dist/index.d.ts +11 -0
  56. package/dist/index.js +10 -0
  57. package/dist/ports/bpmn-canvas.d.ts +34 -0
  58. package/dist/ports/bpmn-canvas.js +36 -0
  59. package/dist/ports/focus.d.ts +40 -0
  60. package/dist/ports/focus.js +49 -0
  61. package/dist/ports/types.d.ts +36 -0
  62. package/dist/ports/types.js +12 -0
  63. package/dist/structure/ajv.d.ts +41 -0
  64. package/dist/structure/ajv.js +108 -0
  65. package/dist/structure/interpreter.d.ts +47 -0
  66. package/dist/structure/interpreter.js +576 -0
  67. package/dist/validate/diagnostics.d.ts +63 -0
  68. package/dist/validate/diagnostics.js +56 -0
  69. package/dist/validate/envelope.d.ts +92 -0
  70. package/dist/validate/envelope.js +306 -0
  71. package/dist/validate/index.d.ts +22 -0
  72. package/dist/validate/index.js +24 -0
  73. package/dist/validate/structure.d.ts +32 -0
  74. package/dist/validate/structure.js +13 -0
  75. package/envelope.json +43 -0
  76. package/package.json +54 -4
  77. package/schemas/BarChart.v1.json +556 -0
  78. package/schemas/BpmnCanvas.v1.json +139 -0
  79. package/schemas/DecisionDossier.v1.json +635 -0
@@ -0,0 +1,556 @@
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
+ "component": {
13
+ "allOf": [
14
+ {
15
+ "$ref": "https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"
16
+ },
17
+ {
18
+ "$ref": "#/$defs/CatalogComponentCommon"
19
+ },
20
+ {
21
+ "properties": {
22
+ "accessibility": {
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "description": {
26
+ "type": "string"
27
+ },
28
+ "label": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "type": "object"
33
+ },
34
+ "annotations": {
35
+ "description": "Annotation overlay in data space (see ChartAnnotation).",
36
+ "items": {
37
+ "anyOf": [
38
+ {
39
+ "additionalProperties": false,
40
+ "properties": {
41
+ "kind": {
42
+ "const": "point",
43
+ "type": "string"
44
+ },
45
+ "label": {
46
+ "type": "string"
47
+ },
48
+ "marker": {
49
+ "description": "Marker glyph for a point annotation.",
50
+ "enum": [
51
+ "circle",
52
+ "diamond",
53
+ "square"
54
+ ],
55
+ "type": "string"
56
+ },
57
+ "x": {
58
+ "type": [
59
+ "number",
60
+ "string"
61
+ ]
62
+ },
63
+ "y": {
64
+ "type": "number"
65
+ }
66
+ },
67
+ "required": [
68
+ "kind",
69
+ "x",
70
+ "y"
71
+ ],
72
+ "type": "object"
73
+ },
74
+ {
75
+ "additionalProperties": false,
76
+ "properties": {
77
+ "anchor": {
78
+ "enum": [
79
+ "end",
80
+ "middle",
81
+ "start"
82
+ ],
83
+ "type": "string"
84
+ },
85
+ "kind": {
86
+ "const": "label",
87
+ "type": "string"
88
+ },
89
+ "text": {
90
+ "type": "string"
91
+ },
92
+ "x": {
93
+ "type": [
94
+ "number",
95
+ "string"
96
+ ]
97
+ },
98
+ "y": {
99
+ "type": "number"
100
+ }
101
+ },
102
+ "required": [
103
+ "kind",
104
+ "text",
105
+ "x",
106
+ "y"
107
+ ],
108
+ "type": "object"
109
+ },
110
+ {
111
+ "additionalProperties": false,
112
+ "properties": {
113
+ "axis": {
114
+ "enum": [
115
+ "x",
116
+ "y"
117
+ ],
118
+ "type": "string"
119
+ },
120
+ "kind": {
121
+ "const": "line",
122
+ "type": "string"
123
+ },
124
+ "label": {
125
+ "type": "string"
126
+ },
127
+ "value": {
128
+ "type": "number"
129
+ }
130
+ },
131
+ "required": [
132
+ "axis",
133
+ "kind",
134
+ "value"
135
+ ],
136
+ "type": "object"
137
+ },
138
+ {
139
+ "additionalProperties": false,
140
+ "properties": {
141
+ "axis": {
142
+ "enum": [
143
+ "x",
144
+ "y"
145
+ ],
146
+ "type": "string"
147
+ },
148
+ "from": {
149
+ "type": "number"
150
+ },
151
+ "kind": {
152
+ "const": "region",
153
+ "type": "string"
154
+ },
155
+ "label": {
156
+ "type": "string"
157
+ },
158
+ "to": {
159
+ "type": "number"
160
+ }
161
+ },
162
+ "required": [
163
+ "axis",
164
+ "from",
165
+ "kind",
166
+ "to"
167
+ ],
168
+ "type": "object"
169
+ },
170
+ {
171
+ "additionalProperties": false,
172
+ "properties": {
173
+ "kind": {
174
+ "const": "shape",
175
+ "type": "string"
176
+ },
177
+ "label": {
178
+ "type": "string"
179
+ },
180
+ "points": {
181
+ "items": {
182
+ "additionalProperties": false,
183
+ "properties": {
184
+ "x": {
185
+ "type": [
186
+ "number",
187
+ "string"
188
+ ]
189
+ },
190
+ "y": {
191
+ "type": "number"
192
+ }
193
+ },
194
+ "required": [
195
+ "x",
196
+ "y"
197
+ ],
198
+ "type": "object"
199
+ },
200
+ "type": "array"
201
+ }
202
+ },
203
+ "required": [
204
+ "kind",
205
+ "points"
206
+ ],
207
+ "type": "object"
208
+ }
209
+ ],
210
+ "description": "Annotation overlay in data space, discriminated on `kind`. The `x` coordinate is categorical for this chart: it matches a bar by its `label` and is ignored otherwise; `y` and every value-axis number are numeric."
211
+ },
212
+ "type": "array"
213
+ },
214
+ "bands": {
215
+ "description": "Shaded value-axis bands.",
216
+ "items": {
217
+ "additionalProperties": false,
218
+ "description": "A shaded band between two value-axis positions.",
219
+ "properties": {
220
+ "from": {
221
+ "description": "Band start in value-axis units.",
222
+ "type": "number"
223
+ },
224
+ "label": {
225
+ "description": "Human-readable band label.",
226
+ "type": "string"
227
+ },
228
+ "to": {
229
+ "description": "Band end in value-axis units.",
230
+ "type": "number"
231
+ },
232
+ "tone": {
233
+ "description": "Feedback-token tone for the band.",
234
+ "enum": [
235
+ "error",
236
+ "info",
237
+ "neutral",
238
+ "success",
239
+ "warning"
240
+ ],
241
+ "type": "string"
242
+ }
243
+ },
244
+ "required": [
245
+ "from",
246
+ "to"
247
+ ],
248
+ "type": "object"
249
+ },
250
+ "type": "array"
251
+ },
252
+ "component": {
253
+ "const": "BarChart"
254
+ },
255
+ "data": {
256
+ "description": "The bars, in draw order. Required.",
257
+ "items": {
258
+ "additionalProperties": false,
259
+ "description": "One bar: its label is also its selection key.",
260
+ "properties": {
261
+ "errorHigh": {
262
+ "description": "Upper error-bar extent (value-axis units). Drawn only when finite.",
263
+ "type": "number"
264
+ },
265
+ "errorLow": {
266
+ "description": "Lower error-bar extent (value-axis units). Drawn only when finite.",
267
+ "type": "number"
268
+ },
269
+ "label": {
270
+ "description": "The bar's category label; also its key for selection and hover.",
271
+ "type": "string"
272
+ },
273
+ "tone": {
274
+ "description": "Explicit categorical tone; the palette default when absent.",
275
+ "enum": [
276
+ "category1",
277
+ "category2",
278
+ "category3",
279
+ "category4",
280
+ "category5",
281
+ "category6",
282
+ "category7",
283
+ "category8"
284
+ ],
285
+ "type": "string"
286
+ },
287
+ "value": {
288
+ "description": "The bar's value (value-axis units).",
289
+ "type": "number"
290
+ }
291
+ },
292
+ "required": [
293
+ "label",
294
+ "value"
295
+ ],
296
+ "type": "object"
297
+ },
298
+ "type": "array"
299
+ },
300
+ "dataLabels": {
301
+ "anyOf": [
302
+ {
303
+ "type": "boolean"
304
+ },
305
+ {
306
+ "additionalProperties": false,
307
+ "properties": {
308
+ "position": {
309
+ "description": "Placement hint; the chart's default when absent.",
310
+ "enum": [
311
+ "auto",
312
+ "center",
313
+ "inside",
314
+ "outside",
315
+ "top"
316
+ ],
317
+ "type": "string"
318
+ }
319
+ },
320
+ "type": "object"
321
+ }
322
+ ],
323
+ "description": "Per-bar value labels; absent or false renders none."
324
+ },
325
+ "domain": {
326
+ "description": "Fixed value-axis domain [min, max]; the auto data range when absent.",
327
+ "items": {
328
+ "type": "number"
329
+ },
330
+ "maxItems": 2,
331
+ "minItems": 2,
332
+ "type": "array"
333
+ },
334
+ "goalLine": {
335
+ "additionalProperties": false,
336
+ "description": "A single goal line, emphasised above the bars.",
337
+ "properties": {
338
+ "label": {
339
+ "description": "Human-readable goal label.",
340
+ "type": "string"
341
+ },
342
+ "value": {
343
+ "description": "Position of the goal line in value-axis units.",
344
+ "type": "number"
345
+ }
346
+ },
347
+ "required": [
348
+ "value"
349
+ ],
350
+ "type": "object"
351
+ },
352
+ "height": {
353
+ "description": "Fixed pixel height; the component's default when absent.",
354
+ "type": "number"
355
+ },
356
+ "hoverKey": {
357
+ "description": "Controlled synchronised hover key (a bar's label, or null for none).",
358
+ "type": [
359
+ "null",
360
+ "string"
361
+ ]
362
+ },
363
+ "invertAxis": {
364
+ "description": "Inverts the value axis (high values toward the origin). Default false.",
365
+ "type": "boolean"
366
+ },
367
+ "keyboardNav": {
368
+ "description": "Keyboard navigation of the data points (roving tabindex).",
369
+ "type": "boolean"
370
+ },
371
+ "label": {
372
+ "description": "Human-readable chart label (also the accessible name). Required.",
373
+ "type": "string"
374
+ },
375
+ "orientation": {
376
+ "description": "Bar direction; \"vertical\" by default.",
377
+ "enum": [
378
+ "horizontal",
379
+ "vertical"
380
+ ],
381
+ "type": "string"
382
+ },
383
+ "referenceLines": {
384
+ "description": "Reference lines on the value axis.",
385
+ "items": {
386
+ "additionalProperties": false,
387
+ "description": "A reference line on one axis (default axis: \"y\").",
388
+ "properties": {
389
+ "axis": {
390
+ "description": "Which axis the line spans; \"y\" by default.",
391
+ "enum": [
392
+ "x",
393
+ "y"
394
+ ],
395
+ "type": "string"
396
+ },
397
+ "label": {
398
+ "description": "Human-readable line label.",
399
+ "type": "string"
400
+ },
401
+ "tone": {
402
+ "description": "Feedback-token tone for the line.",
403
+ "enum": [
404
+ "error",
405
+ "info",
406
+ "neutral",
407
+ "success",
408
+ "warning"
409
+ ],
410
+ "type": "string"
411
+ },
412
+ "value": {
413
+ "description": "Position of the line in value-axis units.",
414
+ "type": "number"
415
+ }
416
+ },
417
+ "required": [
418
+ "value"
419
+ ],
420
+ "type": "object"
421
+ },
422
+ "type": "array"
423
+ },
424
+ "scale": {
425
+ "description": "Value-axis scale; \"linear\" by default, \"log\" needs positive values.",
426
+ "enum": [
427
+ "linear",
428
+ "log"
429
+ ],
430
+ "type": "string"
431
+ },
432
+ "selectedKeys": {
433
+ "description": "Keys of the currently selected bars (a bar's key is its label). Controlled.",
434
+ "items": {
435
+ "type": "string"
436
+ },
437
+ "type": "array"
438
+ },
439
+ "showLegend": {
440
+ "description": "Accepted for cross-chart parity; BarChart has no separate legend surface.",
441
+ "type": "boolean"
442
+ },
443
+ "width": {
444
+ "description": "Fixed pixel width; the container's when absent.",
445
+ "type": "number"
446
+ }
447
+ },
448
+ "required": [
449
+ "component",
450
+ "data",
451
+ "label"
452
+ ],
453
+ "type": "object"
454
+ }
455
+ ],
456
+ "type": "object",
457
+ "unevaluatedProperties": false,
458
+ "x-sentropic": {
459
+ "contract": "1.0",
460
+ "element": "st-bar-chart",
461
+ "engine": "core",
462
+ "events": [
463
+ "select"
464
+ ],
465
+ "example": {
466
+ "component": "BarChart",
467
+ "data": [
468
+ {
469
+ "label": "Q1",
470
+ "value": 12
471
+ },
472
+ {
473
+ "label": "Q2",
474
+ "value": 18
475
+ },
476
+ {
477
+ "label": "Q3",
478
+ "value": 9
479
+ }
480
+ ],
481
+ "dataLabels": true,
482
+ "id": "root",
483
+ "label": "Revenue (M€)",
484
+ "referenceLines": [
485
+ {
486
+ "label": "Target",
487
+ "value": 15
488
+ }
489
+ ]
490
+ },
491
+ "fallback": "svg",
492
+ "parity": {
493
+ "angular": {
494
+ "comparedProps": 17,
495
+ "file": "packages/components-angular/src/BarChart.ts",
496
+ "status": "match",
497
+ "type": "BarChartProps"
498
+ },
499
+ "react": {
500
+ "comparedProps": 17,
501
+ "file": "packages/components-react/src/BarChart.tsx",
502
+ "note": "Own members after subtracting React.HTMLAttributes<HTMLDivElement>; className is React's name for the class style hook.",
503
+ "status": "match",
504
+ "type": "BarChartProps"
505
+ },
506
+ "svelte": {
507
+ "file": "packages/components-svelte/src/lib/BarChart.svelte",
508
+ "note": "Reference pilot (§3.1); not mechanically generatable (Svelte file), mirrored here member for member.",
509
+ "status": "source-of-truth",
510
+ "type": "BarChartProps"
511
+ },
512
+ "vue": {
513
+ "comparedProps": 17,
514
+ "file": "packages/components-vue/src/BarChart.ts",
515
+ "status": "match",
516
+ "type": "BarChartProps"
517
+ }
518
+ },
519
+ "schema": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/BarChart.json"
520
+ }
521
+ }
522
+ },
523
+ "$id": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/BarChart.json",
524
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
525
+ "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 BarChart component object; its component part ($defs.component) is equivalent, after canonical sorting, to catalog.json#/components/BarChart. Requires the A2UI common types under https://a2ui.org/specification/v0_9_1/common_types.json.",
526
+ "properties": {
527
+ "catalogId": {
528
+ "const": "https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json",
529
+ "description": "Optional catalogue identifier; absent = the renderer's catalogue (§4.2).",
530
+ "type": "string"
531
+ },
532
+ "contract": {
533
+ "description": "Component-contract version the producer targets (§4.2, §4.4).",
534
+ "pattern": "^[0-9]+\\.[0-9]+$",
535
+ "type": "string"
536
+ },
537
+ "mode": {
538
+ "description": "\"snapshot\" (default) | \"preview\" (reserved, §10.3).",
539
+ "enum": [
540
+ "preview",
541
+ "snapshot"
542
+ ],
543
+ "type": "string"
544
+ },
545
+ "root": {
546
+ "$ref": "#/$defs/component"
547
+ }
548
+ },
549
+ "required": [
550
+ "contract",
551
+ "root"
552
+ ],
553
+ "title": "BarChart standalone envelope schema",
554
+ "type": "object",
555
+ "unevaluatedProperties": false
556
+ }
@@ -0,0 +1,139 @@
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
+ "component": {
13
+ "allOf": [
14
+ {
15
+ "$ref": "https://a2ui.org/specification/v0_9_1/common_types.json#/$defs/ComponentCommon"
16
+ },
17
+ {
18
+ "$ref": "#/$defs/CatalogComponentCommon"
19
+ },
20
+ {
21
+ "properties": {
22
+ "accessibility": {
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "description": {
26
+ "type": "string"
27
+ },
28
+ "label": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "type": "object"
33
+ },
34
+ "component": {
35
+ "const": "BpmnCanvas"
36
+ },
37
+ "document": {
38
+ "additionalProperties": {},
39
+ "description": "The F1 document to render: a structural envelope the engine's hydrate validates.",
40
+ "properties": {
41
+ "$type": {
42
+ "description": "F1 type discriminator, e.g. \"bpmn:Definitions\".",
43
+ "type": "string"
44
+ }
45
+ },
46
+ "required": [
47
+ "$type"
48
+ ],
49
+ "type": "object"
50
+ }
51
+ },
52
+ "required": [
53
+ "component",
54
+ "document"
55
+ ],
56
+ "type": "object"
57
+ }
58
+ ],
59
+ "type": "object",
60
+ "unevaluatedProperties": false,
61
+ "x-sentropic": {
62
+ "contract": "1.0",
63
+ "element": "st-bpmn-canvas",
64
+ "engine": "lazy:bpmn-canvas",
65
+ "events": [],
66
+ "example": {
67
+ "component": "BpmnCanvas",
68
+ "document": {
69
+ "$type": "bpmn:Definitions",
70
+ "id": "definitions-1",
71
+ "targetNamespace": "https://example.com/bpmn"
72
+ },
73
+ "id": "root"
74
+ },
75
+ "fallback": "svg",
76
+ "parity": {
77
+ "angular": {
78
+ "file": "packages/components-angular",
79
+ "note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
80
+ "status": "no-counterpart"
81
+ },
82
+ "react": {
83
+ "file": "packages/components-react",
84
+ "note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
85
+ "status": "no-counterpart"
86
+ },
87
+ "svelte": {
88
+ "file": "packages/components-svelte",
89
+ "note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
90
+ "status": "no-counterpart"
91
+ },
92
+ "vue": {
93
+ "file": "packages/components-vue",
94
+ "note": "No counterpart in this framework package (§5.1: components with no framework counterpart record that fact).",
95
+ "status": "no-counterpart"
96
+ }
97
+ },
98
+ "schema": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/BpmnCanvas.json",
99
+ "semantic": {
100
+ "runtimePackage": "@sentropic/bpmn-canvas",
101
+ "source": "bpmn-canvas"
102
+ }
103
+ }
104
+ }
105
+ },
106
+ "$id": "https://design-system.sent-tech.ca/catalogs/elements/v1/components/BpmnCanvas.json",
107
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
108
+ "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 BpmnCanvas component object; its component part ($defs.component) is equivalent, after canonical sorting, to catalog.json#/components/BpmnCanvas. Requires the A2UI common types under https://a2ui.org/specification/v0_9_1/common_types.json.",
109
+ "properties": {
110
+ "catalogId": {
111
+ "const": "https://design-system.sent-tech.ca/catalogs/elements/v1/catalog.json",
112
+ "description": "Optional catalogue identifier; absent = the renderer's catalogue (§4.2).",
113
+ "type": "string"
114
+ },
115
+ "contract": {
116
+ "description": "Component-contract version the producer targets (§4.2, §4.4).",
117
+ "pattern": "^[0-9]+\\.[0-9]+$",
118
+ "type": "string"
119
+ },
120
+ "mode": {
121
+ "description": "\"snapshot\" (default) | \"preview\" (reserved, §10.3).",
122
+ "enum": [
123
+ "preview",
124
+ "snapshot"
125
+ ],
126
+ "type": "string"
127
+ },
128
+ "root": {
129
+ "$ref": "#/$defs/component"
130
+ }
131
+ },
132
+ "required": [
133
+ "contract",
134
+ "root"
135
+ ],
136
+ "title": "BpmnCanvas standalone envelope schema",
137
+ "type": "object",
138
+ "unevaluatedProperties": false
139
+ }