@praxisui/dialog 10.0.0-rc.7 → 10.0.0-rc.71
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/README.md +4 -2
- package/ai/component-registry.json +134 -8
- package/fesm2022/praxisui-dialog.mjs +1586 -44
- package/package.json +2 -2
- package/types/praxisui-dialog.d.ts +128 -19
package/README.md
CHANGED
|
@@ -156,13 +156,15 @@ Theme dialogs through the semantic `--praxis-theme-*` roles exported by `@praxis
|
|
|
156
156
|
|
|
157
157
|
Component-specific dialog variables remain available for deliberate local customization; define either layer in a global theme scope because dialogs are rendered in the CDK overlay container.
|
|
158
158
|
|
|
159
|
-
## Accessibility
|
|
159
|
+
## Accessibility & Responsive Sizing
|
|
160
160
|
|
|
161
161
|
`PraxisDialog` configures dialog roles, backdrop behavior, Escape handling, focus restoration and `aria-*` fields. Use `ariaRole: 'alertdialog'` for destructive or blocking confirmations, and always provide a visible title or accessible label.
|
|
162
162
|
|
|
163
163
|
Overlay sizing is applied to the CDK pane and to the dialog panel. `width` and `height` therefore remain centered when constrained by `minWidth`, `maxWidth`, `minHeight` or `maxHeight` on narrow viewports; hosts should not add local overlay-positioning CSS for this behavior.
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
Standard `dialog` instances may enable `canMaximize` (exposing a header toggle that emits `maximizeChange`, syncs CDK overlay bounds up to `96vw`/`92vh`, hides cleanly on mobile viewports `<= 640px`, and resets on tag-mode close). When opened via `providePraxisSurfaceGlobalActions()`, `surface.open` applies archetype-aware modal floors (`min(960px, 94vw)` / `min(640px, 94vw)` for collection widgets; `min(760px, 92vw)` / `min(540px, 92vw)` for forms/details), sets `canMaximize` from `payload.size?.expandable ?? true`, exposes `setExpanded`/`toggleExpanded` on `surfaceRuntime`, and gives strict precedence to explicit `payload.size.width` overrides on both modal and drawer branches (omitting fallback `minWidth` when explicit width is supplied). Footer `.pdx-dialog__actions` chrome is omitted automatically when neither `actions` nor an actions template is present.
|
|
166
|
+
|
|
167
|
+
Closable dialogs with role `dialog` also expose an accessible close button in the title bar. It follows the same `disableClose` policy as Escape and backdrop interactions. The runtime does not add this shortcut to `alertdialog`, whose explicit governed actions remain the required decision path. Hosts that override `PRAXIS_DIALOG_I18N` may provide `close`, `maximize`, and `restore`; older providers remain compatible and fall back cleanly to default labels (`cancel` fallback for `close`).
|
|
166
168
|
|
|
167
169
|
## Official Links
|
|
168
170
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-
|
|
3
|
+
"generatedAt": "2026-11-29T01:12:09.027Z",
|
|
4
4
|
"packageName": "@praxisui/dialog",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.71",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -297,36 +297,94 @@
|
|
|
297
297
|
{
|
|
298
298
|
"kind": "dialogShell",
|
|
299
299
|
"resolver": "praxis-dialog-config-root",
|
|
300
|
+
"resolutionSpec": {
|
|
301
|
+
"strategy": "root-path",
|
|
302
|
+
"paths": [
|
|
303
|
+
"config",
|
|
304
|
+
""
|
|
305
|
+
],
|
|
306
|
+
"allowIndex": false
|
|
307
|
+
},
|
|
300
308
|
"description": "Top-level PraxisDialogConfig shell fields such as title, role, actions and theme."
|
|
301
309
|
},
|
|
302
310
|
{
|
|
303
311
|
"kind": "size",
|
|
304
312
|
"resolver": "praxis-dialog-size-fields",
|
|
313
|
+
"resolutionSpec": {
|
|
314
|
+
"strategy": "root-path",
|
|
315
|
+
"paths": [
|
|
316
|
+
"config",
|
|
317
|
+
""
|
|
318
|
+
],
|
|
319
|
+
"allowIndex": false
|
|
320
|
+
},
|
|
305
321
|
"description": "Width, height, min/max size fields on PraxisDialogConfig."
|
|
306
322
|
},
|
|
307
323
|
{
|
|
308
324
|
"kind": "position",
|
|
309
325
|
"resolver": "praxis-dialog-position-fields",
|
|
326
|
+
"resolutionSpec": {
|
|
327
|
+
"strategy": "root-path",
|
|
328
|
+
"paths": [
|
|
329
|
+
"config.position",
|
|
330
|
+
"position"
|
|
331
|
+
],
|
|
332
|
+
"allowIndex": false
|
|
333
|
+
},
|
|
310
334
|
"description": "Overlay position fields top, bottom, left and right."
|
|
311
335
|
},
|
|
312
336
|
{
|
|
313
337
|
"kind": "backdrop",
|
|
314
338
|
"resolver": "praxis-dialog-backdrop-fields",
|
|
339
|
+
"resolutionSpec": {
|
|
340
|
+
"strategy": "root-path",
|
|
341
|
+
"paths": [
|
|
342
|
+
"config",
|
|
343
|
+
""
|
|
344
|
+
],
|
|
345
|
+
"allowIndex": false
|
|
346
|
+
},
|
|
315
347
|
"description": "Backdrop enablement and backdrop class semantics."
|
|
316
348
|
},
|
|
317
349
|
{
|
|
318
350
|
"kind": "closePolicy",
|
|
319
351
|
"resolver": "praxis-dialog-close-policy-fields",
|
|
352
|
+
"resolutionSpec": {
|
|
353
|
+
"strategy": "root-path",
|
|
354
|
+
"paths": [
|
|
355
|
+
"config",
|
|
356
|
+
""
|
|
357
|
+
],
|
|
358
|
+
"allowIndex": false
|
|
359
|
+
},
|
|
320
360
|
"description": "disableClose, closeOnBackdropClick, closeOnNavigation, restoreFocus and autofocus behavior."
|
|
321
361
|
},
|
|
322
362
|
{
|
|
323
363
|
"kind": "preset",
|
|
324
364
|
"resolver": "praxis-dialog-global-preset-by-type-variant",
|
|
365
|
+
"resolutionSpec": {
|
|
366
|
+
"strategy": "root-path",
|
|
367
|
+
"paths": [
|
|
368
|
+
"variant",
|
|
369
|
+
"config"
|
|
370
|
+
],
|
|
371
|
+
"allowIndex": false
|
|
372
|
+
},
|
|
325
373
|
"description": "Type and variant presets merged through PRAXIS_DIALOG_GLOBAL_PRESETS."
|
|
326
374
|
},
|
|
327
375
|
{
|
|
328
376
|
"kind": "childHost",
|
|
329
377
|
"resolver": "praxis-dialog-child-component-or-template-host",
|
|
378
|
+
"resolutionSpec": {
|
|
379
|
+
"strategy": "root-path",
|
|
380
|
+
"paths": [
|
|
381
|
+
"content",
|
|
382
|
+
"componentId",
|
|
383
|
+
"inputs",
|
|
384
|
+
"data"
|
|
385
|
+
],
|
|
386
|
+
"allowIndex": false
|
|
387
|
+
},
|
|
330
388
|
"description": "Component/template registry child host and input/data envelope."
|
|
331
389
|
}
|
|
332
390
|
],
|
|
@@ -339,6 +397,14 @@
|
|
|
339
397
|
"target": {
|
|
340
398
|
"kind": "dialogShell",
|
|
341
399
|
"resolver": "praxis-dialog-config-root",
|
|
400
|
+
"resolutionSpec": {
|
|
401
|
+
"strategy": "root-path",
|
|
402
|
+
"paths": [
|
|
403
|
+
"config",
|
|
404
|
+
""
|
|
405
|
+
],
|
|
406
|
+
"allowIndex": false
|
|
407
|
+
},
|
|
342
408
|
"ambiguityPolicy": "fail",
|
|
343
409
|
"required": false
|
|
344
410
|
},
|
|
@@ -421,6 +487,14 @@
|
|
|
421
487
|
"target": {
|
|
422
488
|
"kind": "size",
|
|
423
489
|
"resolver": "praxis-dialog-size-fields",
|
|
490
|
+
"resolutionSpec": {
|
|
491
|
+
"strategy": "root-path",
|
|
492
|
+
"paths": [
|
|
493
|
+
"config",
|
|
494
|
+
""
|
|
495
|
+
],
|
|
496
|
+
"allowIndex": false
|
|
497
|
+
},
|
|
424
498
|
"ambiguityPolicy": "fail",
|
|
425
499
|
"required": false
|
|
426
500
|
},
|
|
@@ -524,6 +598,14 @@
|
|
|
524
598
|
"target": {
|
|
525
599
|
"kind": "position",
|
|
526
600
|
"resolver": "praxis-dialog-position-fields",
|
|
601
|
+
"resolutionSpec": {
|
|
602
|
+
"strategy": "root-path",
|
|
603
|
+
"paths": [
|
|
604
|
+
"config.position",
|
|
605
|
+
"position"
|
|
606
|
+
],
|
|
607
|
+
"allowIndex": false
|
|
608
|
+
},
|
|
527
609
|
"ambiguityPolicy": "fail",
|
|
528
610
|
"required": false
|
|
529
611
|
},
|
|
@@ -574,6 +656,14 @@
|
|
|
574
656
|
"target": {
|
|
575
657
|
"kind": "backdrop",
|
|
576
658
|
"resolver": "praxis-dialog-backdrop-fields",
|
|
659
|
+
"resolutionSpec": {
|
|
660
|
+
"strategy": "root-path",
|
|
661
|
+
"paths": [
|
|
662
|
+
"config",
|
|
663
|
+
""
|
|
664
|
+
],
|
|
665
|
+
"allowIndex": false
|
|
666
|
+
},
|
|
577
667
|
"ambiguityPolicy": "fail",
|
|
578
668
|
"required": false
|
|
579
669
|
},
|
|
@@ -629,6 +719,14 @@
|
|
|
629
719
|
"target": {
|
|
630
720
|
"kind": "closePolicy",
|
|
631
721
|
"resolver": "praxis-dialog-close-policy-fields",
|
|
722
|
+
"resolutionSpec": {
|
|
723
|
+
"strategy": "root-path",
|
|
724
|
+
"paths": [
|
|
725
|
+
"config",
|
|
726
|
+
""
|
|
727
|
+
],
|
|
728
|
+
"allowIndex": false
|
|
729
|
+
},
|
|
632
730
|
"ambiguityPolicy": "fail",
|
|
633
731
|
"required": false
|
|
634
732
|
},
|
|
@@ -693,6 +791,14 @@
|
|
|
693
791
|
"target": {
|
|
694
792
|
"kind": "preset",
|
|
695
793
|
"resolver": "praxis-dialog-global-preset-by-type-variant",
|
|
794
|
+
"resolutionSpec": {
|
|
795
|
+
"strategy": "root-path",
|
|
796
|
+
"paths": [
|
|
797
|
+
"variant",
|
|
798
|
+
"config"
|
|
799
|
+
],
|
|
800
|
+
"allowIndex": false
|
|
801
|
+
},
|
|
696
802
|
"ambiguityPolicy": "fail",
|
|
697
803
|
"required": false
|
|
698
804
|
},
|
|
@@ -793,6 +899,16 @@
|
|
|
793
899
|
"target": {
|
|
794
900
|
"kind": "childHost",
|
|
795
901
|
"resolver": "praxis-dialog-child-component-or-template-host",
|
|
902
|
+
"resolutionSpec": {
|
|
903
|
+
"strategy": "root-path",
|
|
904
|
+
"paths": [
|
|
905
|
+
"content",
|
|
906
|
+
"componentId",
|
|
907
|
+
"inputs",
|
|
908
|
+
"data"
|
|
909
|
+
],
|
|
910
|
+
"allowIndex": false
|
|
911
|
+
},
|
|
796
912
|
"ambiguityPolicy": "fail",
|
|
797
913
|
"required": false
|
|
798
914
|
},
|
|
@@ -911,6 +1027,16 @@
|
|
|
911
1027
|
"target": {
|
|
912
1028
|
"kind": "childHost",
|
|
913
1029
|
"resolver": "praxis-dialog-child-component-or-template-host",
|
|
1030
|
+
"resolutionSpec": {
|
|
1031
|
+
"strategy": "root-path",
|
|
1032
|
+
"paths": [
|
|
1033
|
+
"content",
|
|
1034
|
+
"componentId",
|
|
1035
|
+
"inputs",
|
|
1036
|
+
"data"
|
|
1037
|
+
],
|
|
1038
|
+
"allowIndex": false
|
|
1039
|
+
},
|
|
914
1040
|
"ambiguityPolicy": "fail",
|
|
915
1041
|
"required": true
|
|
916
1042
|
},
|
|
@@ -1383,9 +1509,9 @@
|
|
|
1383
1509
|
{
|
|
1384
1510
|
"chunkIndex": 11,
|
|
1385
1511
|
"chunkKind": "authoring_manifest",
|
|
1386
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-dialog\",\"ownerPackage\":\"@praxisui/dialog\",\"configSchemaId\":\"PraxisDialogConfig\",\"chunkSection\":\"editableTargets\",\"editableTargets\":[{\"kind\":\"dialogShell\",\"resolver\":\"praxis-dialog-config-root\",\"description\":\"Top-level PraxisDialogConfig shell fields such as title, role, actions and theme.\"},{\"kind\":\"size\",\"resolver\":\"praxis-dialog-size-fields\",\"description\":\"Width, height, min/max size fields on PraxisDialogConfig.\"},{\"kind\":\"position\",\"resolver\":\"praxis-dialog-position-fields\",\"description\":\"Overlay position fields top, bottom, left and right.\"},{\"kind\":\"backdrop\",\"resolver\":\"praxis-dialog-backdrop-fields\",\"description\":\"Backdrop enablement and backdrop class semantics.\"},{\"kind\":\"closePolicy\",\"resolver\":\"praxis-dialog-close-policy-fields\",\"description\":\"disableClose, closeOnBackdropClick, closeOnNavigation, restoreFocus and autofocus behavior.\"},{\"kind\":\"preset\",\"resolver\":\"praxis-dialog-global-preset-by-type-variant\",\"description\":\"Type and variant presets merged through PRAXIS_DIALOG_GLOBAL_PRESETS.\"},{\"kind\":\"childHost\",\"resolver\":\"praxis-dialog-child-component-or-template-host\",\"description\":\"Component/template registry child host and input/data envelope.\"}]}",
|
|
1512
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-dialog\",\"ownerPackage\":\"@praxisui/dialog\",\"configSchemaId\":\"PraxisDialogConfig\",\"chunkSection\":\"editableTargets\",\"editableTargets\":[{\"kind\":\"dialogShell\",\"resolver\":\"praxis-dialog-config-root\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"config\",\"\"],\"allowIndex\":false},\"description\":\"Top-level PraxisDialogConfig shell fields such as title, role, actions and theme.\"},{\"kind\":\"size\",\"resolver\":\"praxis-dialog-size-fields\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"config\",\"\"],\"allowIndex\":false},\"description\":\"Width, height, min/max size fields on PraxisDialogConfig.\"},{\"kind\":\"position\",\"resolver\":\"praxis-dialog-position-fields\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"config.position\",\"position\"],\"allowIndex\":false},\"description\":\"Overlay position fields top, bottom, left and right.\"},{\"kind\":\"backdrop\",\"resolver\":\"praxis-dialog-backdrop-fields\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"config\",\"\"],\"allowIndex\":false},\"description\":\"Backdrop enablement and backdrop class semantics.\"},{\"kind\":\"closePolicy\",\"resolver\":\"praxis-dialog-close-policy-fields\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"config\",\"\"],\"allowIndex\":false},\"description\":\"disableClose, closeOnBackdropClick, closeOnNavigation, restoreFocus and autofocus behavior.\"},{\"kind\":\"preset\",\"resolver\":\"praxis-dialog-global-preset-by-type-variant\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"variant\",\"config\"],\"allowIndex\":false},\"description\":\"Type and variant presets merged through PRAXIS_DIALOG_GLOBAL_PRESETS.\"},{\"kind\":\"childHost\",\"resolver\":\"praxis-dialog-child-component-or-template-host\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"content\",\"componentId\",\"inputs\",\"data\"],\"allowIndex\":false},\"description\":\"Component/template registry child host and input/data envelope.\"}]}",
|
|
1387
1513
|
"sourcePointer": "projects/praxis-dialog/src/lib/ai/praxis-dialog-authoring-manifest.ts",
|
|
1388
|
-
"contentHash": "
|
|
1514
|
+
"contentHash": "0014d28bcb3bda4e939f55193c516c0abfad70eb573ea199d129cd89036515f9",
|
|
1389
1515
|
"sourceKind": "component_definition",
|
|
1390
1516
|
"sourceId": "praxis-dialog",
|
|
1391
1517
|
"corpusVersion": "1.0.0"
|
|
@@ -1393,9 +1519,9 @@
|
|
|
1393
1519
|
{
|
|
1394
1520
|
"chunkIndex": 12,
|
|
1395
1521
|
"chunkKind": "authoring_manifest",
|
|
1396
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-dialog\",\"ownerPackage\":\"@praxisui/dialog\",\"configSchemaId\":\"PraxisDialogConfig\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"dialog.shell.set\",\"title\":\"Set dialog shell fields\",\"scope\":\"global\",\"targetKind\":\"dialogShell\",\"target\":{\"kind\":\"dialogShell\",\"resolver\":\"praxis-dialog-config-root\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"title\":{\"type\":\"string\"},\"titleIcon\":{\"type\":\"string\"},\"ariaRole\":{\"enum\":[\"dialog\",\"alertdialog\"]},\"ariaLabel\":{\"type\":\"string\"},\"ariaLabelledBy\":{\"type\":\"string\"},\"ariaDescribedBy\":{\"type\":\"string\"},\"themeColor\":{\"enum\":[\"primary\",\"light\",\"dark\"]},\"actionsLayout\":{\"enum\":[\"start\",\"center\",\"end\",\"stretched\"]}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"config\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"accessibility-label-preserved\",\"aria-role-valid\",\"shell-fields-supported\",\"dialog-round-trip\"],\"affectedPaths\":[\"config.title\",\"config.titleIcon\",\"config.ariaRole\",\"config.ariaLabel\",\"config.ariaLabelledBy\",\"config.ariaDescribedBy\",\"config.themeColor\",\"config.actionsLayout\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"dialog.size.set\",\"title\":\"Set dialog size\",\"scope\":\"layout\",\"targetKind\":\"size\",\"target\":{\"kind\":\"size\",\"resolver\":\"praxis-dialog-size-fields\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"width\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"height\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"minWidth\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"maxWidth\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"minHeight\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"maxHeight\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"config\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"size-values-safe\",\"size-min-max-consistent\",\"dialog-round-trip\"],\"affectedPaths\":[\"config.width\",\"config.height\",\"config.minWidth\",\"config.maxWidth\",\"config.minHeight\",\"config.maxHeight\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"dialog.position.set\",\"title\":\"Set dialog position\",\"scope\":\"layout\",\"targetKind\":\"position\",\"target\":{\"kind\":\"position\",\"resolver\":\"praxis-dialog-position-fields\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"top\":{\"type\":\"string\"},\"bottom\":{\"type\":\"string\"},\"left\":{\"type\":\"string\"},\"right\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"set-value\",\"path\":\"config.position\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"position-values-safe\",\"position-not-conflicting\",\"dialog-round-trip\"],\"affectedPaths\":[\"config.position\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"dialog.backdrop.set\",\"title\":\"Set dialog backdrop\",\"scope\":\"skin\",\"targetKind\":\"backdrop\",\"target\":{\"kind\":\"backdrop\",\"resolver\":\"praxis-dialog-backdrop-fields\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"hasBackdrop\":{\"type\":\"boolean\"},\"backdropClass\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\"},{\"type\":\"object\"}]}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"config\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"backdrop-policy-explicit\",\"backdrop-class-safe\",\"dialog-round-trip\"],\"affectedPaths\":[\"config.hasBackdrop\",\"config.backdropClass\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"dialog.closePolicy.set\",\"title\":\"Set dialog close policy\",\"scope\":\"accessibility\",\"targetKind\":\"closePolicy\",\"target\":{\"kind\":\"closePolicy\",\"resolver\":\"praxis-dialog-close-policy-fields\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"disableClose\":{\"type\":\"boolean\"},\"closeOnBackdropClick\":{\"type\":\"boolean\"},\"closeOnNavigation\":{\"type\":\"boolean\"},\"restoreFocus\":{\"type\":\"boolean\"},\"autoFocus\":{\"type\":\"boolean\"},\"autoFocusedElement\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"config\"}],\"destructive\":true,\"requiresConfirmation\":true,\"validators\":[\"close-policy-explicit\",\"unsafe-close-confirmed-when-needed\",\"restore-focus-preserved\",\"alertdialog-focus-preserved\",\"dialog-round-trip\"],\"affectedPaths\":[\"config.disableClose\",\"config.closeOnBackdropClick\",\"config.closeOnNavigation\",\"config.restoreFocus\",\"config.autoFocus\",\"config.autoFocusedElement\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"confirmation-collected\"]},{\"operationId\":\"dialog.preset.apply\",\"title\":\"Apply dialog preset\",\"scope\":\"global\",\"targetKind\":\"preset\",\"target\":{\"kind\":\"preset\",\"resolver\":\"praxis-dialog-global-preset-by-type-variant\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"dialogType\"],\"properties\":{\"dialogType\":{\"enum\":[\"confirm\",\"alert\",\"prompt\",\"custom\"]},\"variant\":{\"type\":\"string\"},\"localConfig\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"dialog-preset-apply\",\"handlerContract\":{\"reads\":[\"PRAXIS_DIALOG_GLOBAL_PRESETS\",\"config\",\"variant\"],\"writes\":[\"config\",\"variant\"],\"identityKeys\":[\"dialogType\",\"variant\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"dialogType\"],\"properties\":{\"dialogType\":{\"enum\":[\"confirm\",\"alert\",\"prompt\",\"custom\"]},\"variant\":{\"type\":\"string\"},\"localConfig\":{\"type\":\"object\"}}},\"failureModes\":[\"preset-not-found\",\"variant-not-found\",\"preset-merge-order-invalid\",\"accessibility-regression\"],\"description\":\"Applies the canonical merge order type preset -> variant -> local config without mutating child component semantics.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"preset-exists\",\"preset-merge-order-preserved\",\"accessibility-label-preserved\",\"dialog-round-trip\"],\"affectedPaths\":[\"config\",\"variant\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]}
|
|
1522
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-dialog\",\"ownerPackage\":\"@praxisui/dialog\",\"configSchemaId\":\"PraxisDialogConfig\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"dialog.shell.set\",\"title\":\"Set dialog shell fields\",\"scope\":\"global\",\"targetKind\":\"dialogShell\",\"target\":{\"kind\":\"dialogShell\",\"resolver\":\"praxis-dialog-config-root\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"config\",\"\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"title\":{\"type\":\"string\"},\"titleIcon\":{\"type\":\"string\"},\"ariaRole\":{\"enum\":[\"dialog\",\"alertdialog\"]},\"ariaLabel\":{\"type\":\"string\"},\"ariaLabelledBy\":{\"type\":\"string\"},\"ariaDescribedBy\":{\"type\":\"string\"},\"themeColor\":{\"enum\":[\"primary\",\"light\",\"dark\"]},\"actionsLayout\":{\"enum\":[\"start\",\"center\",\"end\",\"stretched\"]}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"config\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"accessibility-label-preserved\",\"aria-role-valid\",\"shell-fields-supported\",\"dialog-round-trip\"],\"affectedPaths\":[\"config.title\",\"config.titleIcon\",\"config.ariaRole\",\"config.ariaLabel\",\"config.ariaLabelledBy\",\"config.ariaDescribedBy\",\"config.themeColor\",\"config.actionsLayout\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"dialog.size.set\",\"title\":\"Set dialog size\",\"scope\":\"layout\",\"targetKind\":\"size\",\"target\":{\"kind\":\"size\",\"resolver\":\"praxis-dialog-size-fields\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"config\",\"\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"width\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"height\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"minWidth\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"maxWidth\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"minHeight\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"maxHeight\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"config\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"size-values-safe\",\"size-min-max-consistent\",\"dialog-round-trip\"],\"affectedPaths\":[\"config.width\",\"config.height\",\"config.minWidth\",\"config.maxWidth\",\"config.minHeight\",\"config.maxHeight\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"dialog.position.set\",\"title\":\"Set dialog position\",\"scope\":\"layout\",\"targetKind\":\"position\",\"target\":{\"kind\":\"position\",\"resolver\":\"praxis-dialog-position-fields\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"config.position\",\"position\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"top\":{\"type\":\"string\"},\"bottom\":{\"type\":\"string\"},\"left\":{\"type\":\"string\"},\"right\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"set-value\",\"path\":\"config.position\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"position-values-safe\",\"position-not-conflicting\",\"dialog-round-trip\"],\"affectedPaths\":[\"config.position\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"dialog.backdrop.set\",\"title\":\"Set dialog backdrop\",\"scope\":\"skin\",\"targetKind\":\"backdrop\",\"target\":{\"kind\":\"backdrop\",\"resolver\":\"praxis-dialog-backdrop-fields\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"config\",\"\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"hasBackdrop\":{\"type\":\"boolean\"},\"backdropClass\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"array\"},{\"type\":\"object\"}]}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"config\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"backdrop-policy-explicit\",\"backdrop-class-safe\",\"dialog-round-trip\"],\"affectedPaths\":[\"config.hasBackdrop\",\"config.backdropClass\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"dialog.closePolicy.set\",\"title\":\"Set dialog close policy\",\"scope\":\"accessibility\",\"targetKind\":\"closePolicy\",\"target\":{\"kind\":\"closePolicy\",\"resolver\":\"praxis-dialog-close-policy-fields\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"config\",\"\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"disableClose\":{\"type\":\"boolean\"},\"closeOnBackdropClick\":{\"type\":\"boolean\"},\"closeOnNavigation\":{\"type\":\"boolean\"},\"restoreFocus\":{\"type\":\"boolean\"},\"autoFocus\":{\"type\":\"boolean\"},\"autoFocusedElement\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"config\"}],\"destructive\":true,\"requiresConfirmation\":true,\"validators\":[\"close-policy-explicit\",\"unsafe-close-confirmed-when-needed\",\"restore-focus-preserved\",\"alertdialog-focus-preserved\",\"dialog-round-trip\"],\"affectedPaths\":[\"config.disableClose\",\"config.closeOnBackdropClick\",\"config.closeOnNavigation\",\"config.restoreFocus\",\"config.autoFocus\",\"config.autoFocusedElement\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"confirmation-collected\"]},{\"operationId\":\"dialog.preset.apply\",\"title\":\"Apply dialog preset\",\"scope\":\"global\",\"targetKind\":\"preset\",\"target\":{\"kind\":\"preset\",\"resolver\":\"praxis-dialog-global-preset-by-type-variant\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"variant\",\"config\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"dialogType\"],\"properties\":{\"dialogType\":{\"enum\":[\"confirm\",\"alert\",\"prompt\",\"custom\"]},\"variant\":{\"type\":\"string\"},\"localConfig\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"dialog-preset-apply\",\"handlerContract\":{\"reads\":[\"PRAXIS_DIALOG_GLOBAL_PRESETS\",\"config\",\"variant\"],\"writes\":[\"config\",\"variant\"],\"identityKeys\":[\"dialogType\",\"variant\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"dialogType\"],\"properties\":{\"dialogType\":{\"enum\":[\"confirm\",\"alert\",\"prompt\",\"custom\"]},\"variant\":{\"type\":\"string\"},\"localConfig\":{\"type\":\"object\"}}},\"failureModes\":[\"preset-not-found\",\"variant-not-found\",\"preset-merge-order-invalid\",\"accessibility-regression\"],\"description\":\"Applies the canonical merge order type preset -> variant -> local config without mutating child component semantics.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"preset-exists\",\"preset-merge-order-preserved\",\"accessibility-label-preserved\",\"dialog-round-trip\"],\"affectedPaths\":[\"config\",\"variant\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]}]}",
|
|
1397
1523
|
"sourcePointer": "projects/praxis-dialog/src/lib/ai/praxis-dialog-authoring-manifest.ts",
|
|
1398
|
-
"contentHash": "
|
|
1524
|
+
"contentHash": "2bfa0cea4603d68f0bb58bc27e0f7ac9e729912a9ad32e44f80d9e8f312fe332",
|
|
1399
1525
|
"sourceKind": "component_definition",
|
|
1400
1526
|
"sourceId": "praxis-dialog",
|
|
1401
1527
|
"corpusVersion": "1.0.0"
|
|
@@ -1403,9 +1529,9 @@
|
|
|
1403
1529
|
{
|
|
1404
1530
|
"chunkIndex": 13,
|
|
1405
1531
|
"chunkKind": "authoring_manifest",
|
|
1406
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-dialog\",\"ownerPackage\":\"@praxisui/dialog\",\"configSchemaId\":\"PraxisDialogConfig\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"childOperation.delegate\",\"title\":\"Delegate operation to child manifest\",\"scope\":\"templating\",\"targetKind\":\"childHost\",\"target\":{\"kind\":\"childHost\",\"resolver\":\"praxis-dialog-child-component-or-template-host\",\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"childManifestComponentId\",\"operationId\",\"params\"],\"properties\":{\"childManifestComponentId\":{\"type\":\"string\"},\"operationId\":{\"type\":\"string\"},\"target\":{\"type\":\"string\"},\"params\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"dialog-child-operation-delegate\",\"handlerContract\":{\"reads\":[\"childManifestComponentId\",\"operationId\",\"params\",\"componentRegistry.authoringManifest\"],\"writes\":[\"inputs\",\"data\"],\"identityKeys\":[\"childManifestComponentId\",\"operationId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"childManifestComponentId\",\"operationId\",\"params\"],\"properties\":{\"childManifestComponentId\":{\"type\":\"string\"},\"operationId\":{\"type\":\"string\"},\"target\":{\"type\":\"string\"},\"params\":{\"type\":\"object\"}}},\"failureModes\":[\"child-manifest-not-found\",\"child-operation-not-authorized\",\"child-operation-validation-failed\",\"dialog-shell-child-boundary-violation\"],\"description\":\"Delegates child component configuration edits to the child authoring manifest before projecting the validated patch into the dialog child host inputs/data envelope.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"child-manifest-resolvable\",\"child-operation-authorized\",\"child-config-delegates-to-child-manifest\",\"dialog-shell-boundary-preserved\"],\"affectedPaths\":[\"inputs\",\"data\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"child-host-configured\",\"child-manifest-resolved\"]}]}",
|
|
1532
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-dialog\",\"ownerPackage\":\"@praxisui/dialog\",\"configSchemaId\":\"PraxisDialogConfig\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"childHost.configure\",\"title\":\"Configure dialog child host\",\"scope\":\"templating\",\"targetKind\":\"childHost\",\"target\":{\"kind\":\"childHost\",\"resolver\":\"praxis-dialog-child-component-or-template-host\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"content\",\"componentId\",\"inputs\",\"data\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"contentType\"],\"properties\":{\"contentType\":{\"enum\":[\"component\",\"template\"]},\"componentId\":{\"type\":\"string\"},\"templateId\":{\"type\":\"string\"},\"inputs\":{\"type\":\"object\"},\"data\":{},\"childManifestComponentId\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"dialog-child-host-configure\",\"handlerContract\":{\"reads\":[\"ComponentMetadataRegistry\",\"PRAXIS_DIALOG_CONTENT_REGISTRY\",\"PRAXIS_DIALOG_TEMPLATE_REGISTRY\",\"content\",\"componentId\",\"inputs\",\"data\"],\"writes\":[\"content\",\"componentId\",\"inputs\",\"data\"],\"identityKeys\":[\"componentId\",\"templateId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"contentType\"],\"properties\":{\"contentType\":{\"enum\":[\"component\",\"template\"]},\"componentId\":{\"type\":\"string\"},\"templateId\":{\"type\":\"string\"},\"inputs\":{\"type\":\"object\"},\"data\":{},\"childManifestComponentId\":{\"type\":\"string\"}}},\"failureModes\":[\"component-not-registered\",\"template-not-registered\",\"child-inputs-not-serializable\",\"child-manifest-required\"],\"description\":\"Configures which component/template is hosted in the dialog and serializable host inputs; child config fields remain delegated to the child manifest.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"child-host-registered\",\"child-config-delegates-to-child-manifest\",\"child-inputs-serializable\",\"dialog-round-trip\"],\"affectedPaths\":[\"content\",\"componentId\",\"inputs\",\"data\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"childOperation.delegate\",\"title\":\"Delegate operation to child manifest\",\"scope\":\"templating\",\"targetKind\":\"childHost\",\"target\":{\"kind\":\"childHost\",\"resolver\":\"praxis-dialog-child-component-or-template-host\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"content\",\"componentId\",\"inputs\",\"data\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"childManifestComponentId\",\"operationId\",\"params\"],\"properties\":{\"childManifestComponentId\":{\"type\":\"string\"},\"operationId\":{\"type\":\"string\"},\"target\":{\"type\":\"string\"},\"params\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"dialog-child-operation-delegate\",\"handlerContract\":{\"reads\":[\"childManifestComponentId\",\"operationId\",\"params\",\"componentRegistry.authoringManifest\"],\"writes\":[\"inputs\",\"data\"],\"identityKeys\":[\"childManifestComponentId\",\"operationId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"childManifestComponentId\",\"operationId\",\"params\"],\"properties\":{\"childManifestComponentId\":{\"type\":\"string\"},\"operationId\":{\"type\":\"string\"},\"target\":{\"type\":\"string\"},\"params\":{\"type\":\"object\"}}},\"failureModes\":[\"child-manifest-not-found\",\"child-operation-not-authorized\",\"child-operation-validation-failed\",\"dialog-shell-child-boundary-violation\"],\"description\":\"Delegates child component configuration edits to the child authoring manifest before projecting the validated patch into the dialog child host inputs/data envelope.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"child-manifest-resolvable\",\"child-operation-authorized\",\"child-config-delegates-to-child-manifest\",\"dialog-shell-boundary-preserved\"],\"affectedPaths\":[\"inputs\",\"data\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"child-host-configured\",\"child-manifest-resolved\"]}]}",
|
|
1407
1533
|
"sourcePointer": "projects/praxis-dialog/src/lib/ai/praxis-dialog-authoring-manifest.ts",
|
|
1408
|
-
"contentHash": "
|
|
1534
|
+
"contentHash": "68cd15ace44b83de96aa14e37faa49908d9f0296fb04a41f64ca575d346d8343",
|
|
1409
1535
|
"sourceKind": "component_definition",
|
|
1410
1536
|
"sourceId": "praxis-dialog",
|
|
1411
1537
|
"corpusVersion": "1.0.0"
|