@cratis/components 4.5.2 → 4.7.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 (93) hide show
  1. package/compat-manifest.json +18 -18
  2. package/dist/esm/Canvas/CanvasOverlay.d.ts.map +1 -1
  3. package/dist/esm/Canvas/canvasGesture.d.ts.map +1 -1
  4. package/dist/esm/Canvas/canvasTransformActivity.d.ts.map +1 -1
  5. package/dist/esm/Canvas/selfSuspendingFrameLoop.d.ts.map +1 -1
  6. package/dist/esm/Canvas/shapes/Note/NoteTextChanged.d.ts.map +1 -1
  7. package/dist/esm/Canvas/shapes/Region/ItemAddedToRegion.d.ts.map +1 -1
  8. package/dist/esm/Canvas/shapes/Region/ItemRemovedFromRegion.d.ts.map +1 -1
  9. package/dist/esm/Canvas/shapes/Region/Region.d.ts.map +1 -1
  10. package/dist/esm/Chat/ChatIdentifier.d.ts.map +1 -1
  11. package/dist/esm/Chat/Kit/Avatar/PersonAvatarCircle.d.ts.map +1 -1
  12. package/dist/esm/Chat/Kit/Avatar/getAvatarColor.d.ts.map +1 -1
  13. package/dist/esm/Chat/Kit/Avatar/getInitials.d.ts.map +1 -1
  14. package/dist/esm/Chat/Kit/ChatMessageAdded.d.ts.map +1 -1
  15. package/dist/esm/Chat/Kit/Mentions/MentionSuggestions.d.ts +1 -1
  16. package/dist/esm/Chat/Kit/Mentions/extractMentions.d.ts.map +1 -1
  17. package/dist/esm/Chat/Kit/Mentions/findMentionRanges.d.ts.map +1 -1
  18. package/dist/esm/Chat/Kit/Mentions/mentionSegments.d.ts.map +1 -1
  19. package/dist/esm/Chat/relativeTimestamp.d.ts.map +1 -1
  20. package/dist/esm/Chat/shouldRequestTopicName.d.ts.map +1 -1
  21. package/dist/esm/CommandDialog/CommandDialog.d.ts +124 -5
  22. package/dist/esm/CommandDialog/StepperCommandDialog.d.ts +88 -1
  23. package/dist/esm/CommandDialog/StepperPanel.d.ts +4 -24
  24. package/dist/esm/CommandDialog/StepperPanel.d.ts.map +1 -1
  25. package/dist/esm/CommandForm/AutoCommandForm.d.ts.map +1 -1
  26. package/dist/esm/CommandForm/AutoCommandForm.js +1 -1
  27. package/dist/esm/CommandForm/AutoCommandForm.js.map +1 -1
  28. package/dist/esm/CommandForm/fields/chipValues.d.ts.map +1 -1
  29. package/dist/esm/CommandForm/fields/fieldAccessibility.d.ts.map +1 -1
  30. package/dist/esm/Common/ActionMenubar.d.ts +1 -1
  31. package/dist/esm/Common/ComboBox.d.ts +118 -0
  32. package/dist/esm/Common/ComboBox.d.ts.map +1 -0
  33. package/dist/esm/Common/ComboBox.js +84 -0
  34. package/dist/esm/Common/ComboBox.js.map +1 -0
  35. package/dist/esm/Common/DatePickerInputImplementation.d.ts +1 -1
  36. package/dist/esm/Common/ErrorBoundary.d.ts +1 -1
  37. package/dist/esm/Common/ErrorBoundary.d.ts.map +1 -1
  38. package/dist/esm/Common/FormElement.d.ts.map +1 -1
  39. package/dist/esm/Common/Icon.d.ts.map +1 -1
  40. package/dist/esm/Common/NumberInput.d.ts +5 -1
  41. package/dist/esm/Common/NumberInput.js +4 -4
  42. package/dist/esm/Common/NumberInput.js.map +1 -1
  43. package/dist/esm/Common/Page.d.ts.map +1 -1
  44. package/dist/esm/Common/Tooltip.d.ts.map +1 -1
  45. package/dist/esm/Common/index.d.ts +1 -0
  46. package/dist/esm/Common/index.js +1 -0
  47. package/dist/esm/Common/index.js.map +1 -1
  48. package/dist/esm/Common/reactAriaProps.d.ts.map +1 -1
  49. package/dist/esm/Common/useNativeCheckedState.d.ts.map +1 -1
  50. package/dist/esm/DataPage/DataPage.d.ts +6 -114
  51. package/dist/esm/DataPage/DataPageLayout.d.ts.map +1 -1
  52. package/dist/esm/DataTables/Column.d.ts +4 -20
  53. package/dist/esm/DataTables/DataTableFilterMeta.d.ts +16 -16
  54. package/dist/esm/DataTables/DataTableFilterMeta.d.ts.map +1 -1
  55. package/dist/esm/Dialogs/BusyIndicatorDialog.d.ts.map +1 -1
  56. package/dist/esm/Dialogs/Dialog.d.ts +20 -0
  57. package/dist/esm/Dialogs/Dialog.js.map +1 -1
  58. package/dist/esm/Dialogs/DialogImplementation.d.ts +1 -1
  59. package/dist/esm/Dialogs/DialogImplementation.js +7 -5
  60. package/dist/esm/Dialogs/DialogImplementation.js.map +1 -1
  61. package/dist/esm/Display/Avatar.d.ts.map +1 -1
  62. package/dist/esm/Display/Badge.d.ts.map +1 -1
  63. package/dist/esm/Display/Chip.d.ts.map +1 -1
  64. package/dist/esm/Display/Message.d.ts.map +1 -1
  65. package/dist/esm/Display/ProgressBar.d.ts.map +1 -1
  66. package/dist/esm/Display/ProgressBarImplementation.d.ts +1 -1
  67. package/dist/esm/Display/ProgressSpinner.d.ts +1 -1
  68. package/dist/esm/Display/ProgressSpinner.d.ts.map +1 -1
  69. package/dist/esm/Display/Skeleton.d.ts.map +1 -1
  70. package/dist/esm/Display/Tag.d.ts.map +1 -1
  71. package/dist/esm/Dropdown/Dropdown.d.ts +4 -5
  72. package/dist/esm/Dropdown/DropdownImplementation.d.ts +4 -5
  73. package/dist/esm/Notifications/Toaster.d.ts.map +1 -1
  74. package/dist/esm/Notifications/toast.d.ts.map +1 -1
  75. package/dist/esm/PivotViewer/components/pivot/constants.d.ts.map +1 -1
  76. package/dist/esm/Toolbar/Toolbar.d.ts +1 -1
  77. package/dist/esm/Toolbar/Toolbar.d.ts.map +1 -1
  78. package/dist/esm/Toolbar/ToolbarGroup.d.ts.map +1 -1
  79. package/dist/esm/Toolbar/ToolbarLayout.d.ts.map +1 -1
  80. package/dist/esm/Toolbar/ToolbarSection.d.ts.map +1 -1
  81. package/dist/esm/Toolbar/ToolbarSeparator.d.ts.map +1 -1
  82. package/dist/esm/Toolbar/ToolbarSlot.d.ts.map +1 -1
  83. package/dist/esm/renderer/RendererScope.d.ts +1 -1
  84. package/dist/esm/renderer/coreSlots.d.ts +14 -14
  85. package/dist/esm/renderer/dialogStack.d.ts.map +1 -1
  86. package/dist/esm/renderer/errors.d.ts +9 -9
  87. package/dist/esm/renderer/presentation.d.ts +1 -1
  88. package/dist/esm/styles.css +159 -375
  89. package/dist/esm/types/parts.d.ts +78 -57
  90. package/dist/esm/types/parts.d.ts.map +1 -1
  91. package/dist/esm/types/parts.js +25 -4
  92. package/dist/esm/types/parts.js.map +1 -1
  93. package/package.json +5 -5
@@ -156,9 +156,9 @@
156
156
  "rendererProfile": "stable-presentation/v1",
157
157
  "verifiedPeers": {
158
158
  "minimum": {
159
- "@cratis/arc": "22.6.2",
160
- "@cratis/arc.react": "22.6.2",
161
- "@cratis/fundamentals": "7.18.1",
159
+ "@cratis/arc": "22.16.0",
160
+ "@cratis/arc.react": "22.16.0",
161
+ "@cratis/fundamentals": "7.19.2",
162
162
  "@emotion/react": "11.5.0",
163
163
  "@emotion/styled": "11.11.0",
164
164
  "@mui/material": "9.0.0",
@@ -170,9 +170,9 @@
170
170
  "tsyringe": "4.10.0"
171
171
  },
172
172
  "current": {
173
- "@cratis/arc": "22.6.2",
174
- "@cratis/arc.react": "22.6.2",
175
- "@cratis/fundamentals": "7.18.1",
173
+ "@cratis/arc": "22.16.0",
174
+ "@cratis/arc.react": "22.16.0",
175
+ "@cratis/fundamentals": "7.19.2",
176
176
  "@emotion/react": "11.14.0",
177
177
  "@emotion/styled": "11.14.1",
178
178
  "@mui/material": "9.4.0",
@@ -214,9 +214,9 @@
214
214
  "rendererProfile": "stable-presentation/v1",
215
215
  "verifiedPeers": {
216
216
  "minimum": {
217
- "@cratis/arc": "22.6.2",
218
- "@cratis/arc.react": "22.6.2",
219
- "@cratis/fundamentals": "7.18.1",
217
+ "@cratis/arc": "22.16.0",
218
+ "@cratis/arc.react": "22.16.0",
219
+ "@cratis/fundamentals": "7.19.2",
220
220
  "@primereact/core": "11.0.0",
221
221
  "@primereact/headless": "11.0.0",
222
222
  "@primereact/styles": "11.0.0",
@@ -233,9 +233,9 @@
233
233
  "tsyringe": "4.10.0"
234
234
  },
235
235
  "current": {
236
- "@cratis/arc": "22.6.2",
237
- "@cratis/arc.react": "22.6.2",
238
- "@cratis/fundamentals": "7.18.1",
236
+ "@cratis/arc": "22.16.0",
237
+ "@cratis/arc.react": "22.16.0",
238
+ "@cratis/fundamentals": "7.19.2",
239
239
  "@primereact/core": "11.1.0",
240
240
  "@primereact/headless": "11.1.0",
241
241
  "@primereact/styles": "11.1.0",
@@ -276,9 +276,9 @@
276
276
  "rendererProfile": "stable-presentation/v1",
277
277
  "verifiedPeers": {
278
278
  "minimum": {
279
- "@cratis/arc": "22.6.2",
280
- "@cratis/arc.react": "22.6.2",
281
- "@cratis/fundamentals": "7.18.1",
279
+ "@cratis/arc": "22.16.0",
280
+ "@cratis/arc.react": "22.16.0",
281
+ "@cratis/fundamentals": "7.19.2",
282
282
  "@types/react": "19.0.0",
283
283
  "primereact": "10.9.9",
284
284
  "react": "19.0.0",
@@ -288,9 +288,9 @@
288
288
  "tsyringe": "4.10.0"
289
289
  },
290
290
  "current": {
291
- "@cratis/arc": "22.6.2",
292
- "@cratis/arc.react": "22.6.2",
293
- "@cratis/fundamentals": "7.18.1",
291
+ "@cratis/arc": "22.16.0",
292
+ "@cratis/arc.react": "22.16.0",
293
+ "@cratis/fundamentals": "7.19.2",
294
294
  "@types/react": "19.2.18",
295
295
  "primereact": "10.9.9",
296
296
  "react": "19.2.8",
@@ -1 +1 @@
1
- {"version":3,"file":"CanvasOverlay.d.ts","sourceRoot":"","sources":["../../../Canvas/CanvasOverlay.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7D,wEAAwE;AACxE,MAAM,WAAW,kBAAkB;IAC/B,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;CACvB;AAUD,uFAAuF;AACvF,eAAO,MAAM,aAAa,GAAI,cAAc,kBAAkB,uCAG7D,CAAC"}
1
+ {"version":3,"file":"CanvasOverlay.d.ts","sourceRoot":"","sources":["../../../Canvas/CanvasOverlay.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7D,wEAAwE;AACxE,MAAM,WAAW,kBAAkB;IAC/B,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;CACvB;AAUD,uFAAuF;AACvF,eAAO,MAAM,aAAa,iBAAkB,kBAAkB,uCAG7D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"canvasGesture.d.ts","sourceRoot":"","sources":["../../../Canvas/canvasGesture.ts"],"names":[],"mappings":"AAGA,KAAK,eAAe,GAAG,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;AAKjD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;IACtB,gDAAgD;uBAChC,OAAO;IAIvB,sFAAsF;mBACvE,OAAO,GAAG,IAAI;IAM7B,wFAAwF;wBACpE,eAAe,GAAG,MAAM,IAAI;CAInD,CAAC"}
1
+ {"version":3,"file":"canvasGesture.d.ts","sourceRoot":"","sources":["../../../Canvas/canvasGesture.ts"],"names":[],"mappings":"AAGA,KAAK,eAAe,GAAG,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;AAKjD;;;;;;GAMG;AACH,eAAO,MAAM,aAAa;IACtB,gDAAgD;aAC5C,QAAQ,EAAI,OAAO;IAIvB,sFAAsF;IACtF,GAAG,YAAY,OAAO,GAAG,IAAI;IAM7B,wFAAwF;IACxF,SAAS,WAAW,eAAe,GAAG,MAAM,IAAI;CAInD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"canvasTransformActivity.d.ts","sourceRoot":"","sources":["../../../Canvas/canvasTransformActivity.ts"],"names":[],"mappings":"AAGA,KAAK,iBAAiB,GAAG,MAAM,IAAI,CAAC;AAWpC;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;cACtB,IAAI;wBAIM,iBAAiB,GAAG,MAAM,IAAI;CAIrD,CAAC"}
1
+ {"version":3,"file":"canvasTransformActivity.d.ts","sourceRoot":"","sources":["../../../Canvas/canvasTransformActivity.ts"],"names":[],"mappings":"AAGA,KAAK,iBAAiB,GAAG,MAAM,IAAI,CAAC;AAWpC;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;IAChC,MAAM,IAAI,IAAI;IAId,SAAS,WAAW,iBAAiB,GAAG,MAAM,IAAI;CAIrD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"selfSuspendingFrameLoop.d.ts","sourceRoot":"","sources":["../../../Canvas/selfSuspendingFrameLoop.ts"],"names":[],"mappings":"AAGA,KAAK,cAAc,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,KAAK,MAAM,CAAC;AAClE,KAAK,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,8CAA8C;IAC9C,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,IAAI,IAAI,IAAI,CAAC;IAEb,mFAAmF;IACnF,IAAI,IAAI,IAAI,CAAC;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GACtC,MAAM,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,EAC9B,WAAU,cAA8D,EACxE,SAAQ,aAAwD,KACjE,uBA0BF,CAAC"}
1
+ {"version":3,"file":"selfSuspendingFrameLoop.d.ts","sourceRoot":"","sources":["../../../Canvas/selfSuspendingFrameLoop.ts"],"names":[],"mappings":"AAGA,KAAK,cAAc,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,KAAK,MAAM,CAAC;AAClE,KAAK,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,8CAA8C;IAC9C,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,IAAI,IAAI,IAAI,CAAC;IAEb,mFAAmF;IACnF,IAAI,IAAI,IAAI,CAAC;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,SAChC,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,aACpB,cAAc,WAChB,aAAa,KACtB,uBA0BF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NoteTextChanged.d.ts","sourceRoot":"","sources":["../../../../../Canvas/shapes/Note/NoteTextChanged.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,qBAAa,eAAe;IAEpB,gDAAgD;IAChD,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM;;IAHrB,gDAAgD;IACvC,MAAM,EAAE,MAAM;IACvB,8CAA8C;IACrC,IAAI,EAAE,MAAM;CAE5B"}
1
+ {"version":3,"file":"NoteTextChanged.d.ts","sourceRoot":"","sources":["../../../../../Canvas/shapes/Note/NoteTextChanged.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,qBAAa,eAAe;IAEpB,gDAAgD;IAChD,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,EAAE,MAAM;IAJzB;IACI,gDAAgD;IACvC,MAAM,EAAE,MAAM;IACvB,8CAA8C;IACrC,IAAI,EAAE,MAAM,EACrB;CACP"}
@@ -1 +1 @@
1
- {"version":3,"file":"ItemAddedToRegion.d.ts","sourceRoot":"","sources":["../../../../../Canvas/shapes/Region/ItemAddedToRegion.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,qBAAa,iBAAiB;IAEtB,sEAAsE;IACtE,QAAQ,CAAC,QAAQ,EAAE,MAAM;IACzB,yEAAyE;IACzE,QAAQ,CAAC,MAAM,EAAE,MAAM;;IAHvB,sEAAsE;IAC7D,QAAQ,EAAE,MAAM;IACzB,yEAAyE;IAChE,MAAM,EAAE,MAAM;CAE9B"}
1
+ {"version":3,"file":"ItemAddedToRegion.d.ts","sourceRoot":"","sources":["../../../../../Canvas/shapes/Region/ItemAddedToRegion.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,qBAAa,iBAAiB;IAEtB,sEAAsE;IACtE,QAAQ,CAAC,QAAQ,EAAE,MAAM;IACzB,yEAAyE;IACzE,QAAQ,CAAC,MAAM,EAAE,MAAM;IAJ3B;IACI,sEAAsE;IAC7D,QAAQ,EAAE,MAAM;IACzB,yEAAyE;IAChE,MAAM,EAAE,MAAM,EACvB;CACP"}
@@ -1 +1 @@
1
- {"version":3,"file":"ItemRemovedFromRegion.d.ts","sourceRoot":"","sources":["../../../../../Canvas/shapes/Region/ItemRemovedFromRegion.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,qBAAa,qBAAqB;IAE1B,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,MAAM;IACzB,sEAAsE;IACtE,QAAQ,CAAC,MAAM,EAAE,MAAM;;IAHvB,4EAA4E;IACnE,QAAQ,EAAE,MAAM;IACzB,sEAAsE;IAC7D,MAAM,EAAE,MAAM;CAE9B"}
1
+ {"version":3,"file":"ItemRemovedFromRegion.d.ts","sourceRoot":"","sources":["../../../../../Canvas/shapes/Region/ItemRemovedFromRegion.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,qBAAa,qBAAqB;IAE1B,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,MAAM;IACzB,sEAAsE;IACtE,QAAQ,CAAC,MAAM,EAAE,MAAM;IAJ3B;IACI,4EAA4E;IACnE,QAAQ,EAAE,MAAM;IACzB,sEAAsE;IAC7D,MAAM,EAAE,MAAM,EACvB;CACP"}
@@ -1 +1 @@
1
- {"version":3,"file":"Region.d.ts","sourceRoot":"","sources":["../../../../../Canvas/shapes/Region/Region.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsD/B,kDAAkD;AAClD,MAAM,WAAW,UAAU;IACvB,8BAA8B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Q,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,MAAM,sGAUhB,WAAW,sBAqRb,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatIdentifier.d.ts","sourceRoot":"","sources":["../../../Chat/ChatIdentifier.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IAAE,QAAQ,IAAI,MAAM,CAAA;CAAE,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,YAAY,cAAc,KAAG,MAC5C,CAAC;AAEvB;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC3B,OAAO,cAAc,EACrB,QAAQ,cAAc,KACvB,OAAsF,CAAC"}
1
+ {"version":3,"file":"ChatIdentifier.d.ts","sourceRoot":"","sources":["../../../Chat/ChatIdentifier.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IAAE,QAAQ,IAAI,MAAM,CAAA;CAAE,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,eAAgB,cAAc,KAAG,MAC5C,CAAC;AAEvB;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,UACpB,cAAc,UACb,cAAc,KACvB,OAAsF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PersonAvatarCircle.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Avatar/PersonAvatarCircle.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAIjD,gGAAgG;AAChG,MAAM,WAAW,oBAAoB;IACjC,iDAAiD;IACjD,MAAM,EAAE,MAAM,CAAC;IAEf,4EAA4E;IAC5E,SAAS,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;IAE3C,sCAAsC;IACtC,UAAU,EAAE,O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AAW,uBAAuB;IACpC,wEAAwE;IACxE,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC;IAEtB,2EAA2E;IAC3E,IAAI,EAAE,MAAM,CAAC;IAEb,uDAAuD;IACvD,SAAS,EAAE,OAAO,CAAC;IAEnB,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IAEb,iGAAiG;IACjG,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;IAE5C,4EAA4E;IAC5E,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAEhC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE1B;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,MAAM,CAAC;IAE1D,wGAAwG;IACxG,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,kGAU5B,uBAAuB,gCAgDzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAvatarColor.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Avatar/getAvatarColor.ts"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,MAM7C,CAAC"}
1
+ {"version":3,"file":"getAvatarColor.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Avatar/getAvatarColor.ts"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,SAAU,MAAM,KAAG,MAM7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getInitials.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Avatar/getInitials.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,MACgE,CAAC"}
1
+ {"version":3,"file":"getInitials.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Avatar/getInitials.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,MACgE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatMessageAdded.d.ts","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessageAdded.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,qBAAa,gBAAgB;IAErB,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM;;IAHrB,2EAA2E;IAClE,MAAM,EAAE,MAAM;IACvB,2CAA2C;IAClC,IAAI,EAAE,MAAM;CAE5B"}
1
+ {"version":3,"file":"ChatMessageAdded.d.ts","sourceRoot":"","sources":["../../../../Chat/Kit/ChatMessageAdded.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,qBAAa,gBAAgB;IAErB,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,EAAE,MAAM;IACvB,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM;IAJzB;IACI,2EAA2E;IAClE,MAAM,EAAE,MAAM;IACvB,2CAA2C;IAClC,IAAI,EAAE,MAAM,EACrB;CACP"}
@@ -22,4 +22,4 @@ export interface MentionSuggestionsProps {
22
22
  * The list that opens while an `@` mention is being typed, showing people and agents together with
23
23
  * their avatars.
24
24
  */
25
- export declare const MentionSuggestions: ({ candidates, highlightedIndex, onSelect, onHighlight, buildAvatarUrl, "aria-label": ariaLabel, }: MentionSuggestionsProps) => import("react").JSX.Element;
25
+ export declare const MentionSuggestions: ({ candidates, highlightedIndex, onSelect, onHighlight, buildAvatarUrl, 'aria-label': ariaLabel, }: MentionSuggestionsProps) => import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"extractMentions.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/extractMentions.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAC/D,MAAM,MAAM,EACZ,YAAY,UAAU,EAAE,KACzB,UAAU,EAQZ,CAAC"}
1
+ {"version":3,"file":"extractMentions.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/extractMentions.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,QACzD,MAAM,cACA,UAAU,EAAE,KACzB,UAAU,EAQZ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"findMentionRanges.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/findMentionRanges.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,WAAW,YAAY,CAAC,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;IAC7D,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IAEd,oEAAoE;IACpE,GAAG,EAAE,MAAM,CAAC;IAEZ,wBAAwB;IACxB,SAAS,EAAE,UAAU,CAAC;CACzB;AAUD;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EACjE,MAAM,MAAM,EACZ,YAAY,UAAU,EAAE,KACzB,YAAY,CAAC,UAAU,CAAC,EA2B1B,CAAC"}
1
+ {"version":3,"file":"findMentionRanges.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/findMentionRanges.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,WAAW,YAAY,CAAC,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;IAC7D,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IAEd,oEAAoE;IACpE,GAAG,EAAE,MAAM,CAAC;IAEZ,wBAAwB;IACxB,SAAS,EAAE,UAAU,CAAC;CACzB;AAUD;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,QAC3D,MAAM,cACA,UAAU,EAAE,KACzB,YAAY,CAAC,UAAU,CAAC,EA2B1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"mentionSegments.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/mentionSegments.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;IAC/D,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IAEb,mDAAmD;IACnD,OAAO,CAAC,EAAE,UAAU,CAAC;CACxB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAC/D,MAAM,MAAM,EACZ,YAAY,UAAU,EAAE,KACzB,cAAc,CAAC,UAAU,CAAC,EAoB5B,CAAC"}
1
+ {"version":3,"file":"mentionSegments.d.ts","sourceRoot":"","sources":["../../../../../Chat/Kit/Mentions/mentionSegments.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;IAC/D,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IAEb,mDAAmD;IACnD,OAAO,CAAC,EAAE,UAAU,CAAC;CACxB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,QACzD,MAAM,cACA,UAAU,EAAE,KACzB,cAAc,CAAC,UAAU,CAAC,EAoB5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"relativeTimestamp.d.ts","sourceRoot":"","sources":["../../../Chat/relativeTimestamp.ts"],"names":[],"mappings":"AAGA,2GAA2G;AAC3G,MAAM,WAAW,uBAAuB;IACpC,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAC1B,QAAQ,IAAI,EACZ,MAAK,IAAiB,EACtB,SAAS,uBAAuB,KACjC,MAgBF,CAAC"}
1
+ {"version":3,"file":"relativeTimestamp.d.ts","sourceRoot":"","sources":["../../../Chat/relativeTimestamp.ts"],"names":[],"mappings":"AAGA,2GAA2G;AAC3G,MAAM,WAAW,uBAAuB;IACpC,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,WAClB,IAAI,QACP,IAAI,WACA,uBAAuB,KACjC,MAgBF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"shouldRequestTopicName.d.ts","sourceRoot":"","sources":["../../../Chat/shouldRequestTopicName.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,GAC/B,gBAAgB,OAAO,EACvB,sBAAsB,MAAM,KAC7B,OAAuD,CAAC"}
1
+ {"version":3,"file":"shouldRequestTopicName.d.ts","sourceRoot":"","sources":["../../../Chat/shouldRequestTopicName.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,mBACf,OAAO,wBACD,MAAM,KAC7B,OAAuD,CAAC"}
@@ -40,14 +40,133 @@ export interface CommandDialogProps<TCommand extends object, TResponse = object>
40
40
  * server-side, dialog dismisses" — `CommandDialog` collapses about thirty
41
41
  * lines of orchestration into the props on a single component.
42
42
  *
43
- * See {@link CommandDialogComponent} for full documentation.
43
+ * ## Where `TCommand` comes from
44
+ *
45
+ * `TCommand` is an auto-generated TypeScript class produced by the Arc proxy
46
+ * generator from a C# `[Command]` record. `dotnet build` writes a `.ts` file
47
+ * per command with the right property types and a typed `execute()` method;
48
+ * importing the class is all the connection-to-the-backend you need. The
49
+ * class also exposes a `.use()` hook for direct (non-dialog) usage and a
50
+ * `useWithChangeTracking()` variant.
51
+ *
52
+ * ## What happens on confirm
53
+ *
54
+ * 1. If `onBeforeExecute` is supplied, it transforms the command values.
55
+ * Used for generated IDs (`Guid.create()`) that the user did not type in.
56
+ * 2. The command's `execute()` runs through Arc's command pipeline. The
57
+ * backend handler returns either a typed response (mapped to `TResponse`)
58
+ * or a `ValidationResult[]`.
59
+ * 3. On `IsSuccess: true`, `onSuccess(response)` fires and the dialog closes
60
+ * through the dialog host context.
61
+ * 4. On a validation failure, `onValidationFailure(errors)` fires and the
62
+ * form's per-field error display is updated. The dialog stays open.
63
+ * 5. On a domain or transport failure, `onFailed(result)` fires. The dialog
64
+ * stays open and the `CommandResult` is set on the form context so the
65
+ * UI can surface the error to the user.
66
+ *
67
+ * Throughout, the dialog is in the `isBusy` state — every action button is
68
+ * disabled and the confirm button shows a spinner.
69
+ *
70
+ * ## Destructive commands and initial focus
71
+ *
72
+ * The confirm button is focused when the dialog opens, and a focused native
73
+ * button fires `click` from the `keydown` of `Enter`. A command whose form
74
+ * has required fields is protected from a held or double-tapped `Enter` for
75
+ * free, because `isCommandFormValid` keeps confirm disabled until something
76
+ * is filled in. A command that takes **no** input — the typical "delete
77
+ * this, permanently" command — has no such gate, so its confirm button is
78
+ * armed the instant the dialog appears.
79
+ *
80
+ * Pass `initialFocus` (forwarded straight to {@link Dialog}) for those:
81
+ *
82
+ * ```tsx
83
+ * <CommandDialog<DeletePerson>
84
+ * command={DeletePerson}
85
+ * title="Delete personal data?"
86
+ * okLabel="Delete"
87
+ * initialFocus={DialogInitialFocus.Cancel}
88
+ * onSuccess={() => closeDialog(DialogResult.Ok)}>
89
+ * This cannot be undone.
90
+ * </CommandDialog>
91
+ * ```
92
+ *
93
+ * Everything else — the footer, the close (X), `Escape`, and the confirm
94
+ * wiring that runs the command — is untouched.
95
+ *
96
+ * ## Field binding
97
+ *
98
+ * Children that are `CommandFormField` instances (`InputTextField`,
99
+ * `NumberField`, `DropdownField`, every `@cratis/components/CommandForm/fields`
100
+ * widget) bind to a property on the command via the `value` accessor:
101
+ *
102
+ * ```tsx
103
+ * <InputTextField value={c => c.name} title="Name" />
104
+ * ```
105
+ *
106
+ * The accessor's argument is the command instance — TypeScript infers
107
+ * `c.name` is a string and the field type-checks against that. Arbitrary
108
+ * non-field children (custom layout, additional text, decorative elements)
109
+ * are rendered as plain content.
110
+ *
111
+ * ## Typed dialog host usage
112
+ *
113
+ * Combine with `useDialog<CommandResult<TResponse>>()` from
114
+ * `@cratis/arc.react/dialogs` to get a fully-typed result at the call site:
115
+ *
116
+ * ```tsx
117
+ * import { useDialog, DialogResult } from '@cratis/arc.react/dialogs';
118
+ * import { CommandDialog } from '@cratis/components/CommandDialog';
119
+ * import { RegisterAuthor } from './RegisterAuthor'; // proxy from C#
120
+ *
121
+ * type RegisterAuthorResponse = { authorId: string };
122
+ *
123
+ * const RegisterAuthorDialog = () => {
124
+ * const { closeDialog } = useDialogContext<CommandResult<RegisterAuthorResponse>>();
125
+ * return (
126
+ * <CommandDialog<RegisterAuthor, RegisterAuthorResponse>
127
+ * command={RegisterAuthor}
128
+ * title="Register author"
129
+ * okLabel="Register"
130
+ * onSuccess={(response) => closeDialog(DialogResult.Ok)}
131
+ * onCancel={() => closeDialog(DialogResult.Cancelled)}>
132
+ * <InputTextField value={c => c.name} title="Name" />
133
+ * <InputTextField value={c => c.email} title="Email" />
134
+ * </CommandDialog>
135
+ * );
136
+ * };
137
+ * ```
138
+ *
139
+ * ## What's special vs. raw Dialog + CommandForm
140
+ *
141
+ * - Confirm wiring (`onConfirm` → `commandInstance.execute()`) is handled
142
+ * internally; you only supply `onSuccess` / `onValidationFailure` / `onFailed`.
143
+ * - The dialog's `isBusy` state tracks the in-flight command without manual
144
+ * `useState`.
145
+ * - Field error propagation from `CommandResult.validationResults` to the
146
+ * form context is automatic.
44
147
  *
45
148
  * @typeParam TCommand - The command class (proxy generated from C# `[Command]`).
46
149
  * @typeParam TResponse - The success payload type returned by the command's `Handle()` method on the backend.
150
+ * @param props - {@link CommandDialogProps}.
47
151
  */
48
- export declare const CommandDialog: {
152
+ declare const CommandDialogComponent: {
49
153
  <TCommand extends object = object, TResponse = object>(props: CommandDialogProps<TCommand, TResponse>): React.JSX.Element;
50
- Column: ({ children }: {
51
- children: React.ReactNode;
52
- }) => React.JSX.Element;
154
+ Column: typeof CommandDialogColumnWrapper;
53
155
  };
156
+ declare const CommandDialogColumnWrapper: ({ children }: {
157
+ children: React.ReactNode;
158
+ }) => React.JSX.Element;
159
+ /**
160
+ * A {@link Dialog} that hosts a Cratis Arc `CommandForm`, runs the bound
161
+ * command on confirm, and only closes when the command succeeds. This is
162
+ * the standard pattern for "user fills in a form, clicks OK, command runs
163
+ * server-side, dialog dismisses" — `CommandDialog` collapses about thirty
164
+ * lines of orchestration into the props on a single component.
165
+ *
166
+ * See {@link CommandDialogComponent} for full documentation.
167
+ *
168
+ * @typeParam TCommand - The command class (proxy generated from C# `[Command]`).
169
+ * @typeParam TResponse - The success payload type returned by the command's `Handle()` method on the backend.
170
+ */
171
+ export declare const CommandDialog: typeof CommandDialogComponent;
172
+ export {};
@@ -86,6 +86,92 @@ export interface StepperCommandDialogProps<TCommand extends object, TResponse =
86
86
  /** StepperPanel children defining each wizard step. */
87
87
  children?: React.ReactNode;
88
88
  }
89
+ /**
90
+ * A multi-step wizard dialog backed by a single Cratis Arc command. Wraps
91
+ * the Cratis-owned Stepper inside a Cratis {@link Dialog}, tracks per-step
92
+ * visit state, surfaces inline error indicators on steps with invalid
93
+ * fields, and executes the bound command when the user submits the last
94
+ * step. Use it when one command has enough fields that they should be
95
+ * broken into named stages; for single-stage commands, use
96
+ * {@link CommandDialog}.
97
+ *
98
+ * ## What `TCommand` is
99
+ *
100
+ * `TCommand` is the auto-generated TypeScript class produced by the Arc
101
+ * proxy generator from a C# `[Command]` record. The wizard fields all bind
102
+ * to properties on this single command — the multi-step UI is purely a
103
+ * presentation grouping of one command's fields, not multiple commands.
104
+ *
105
+ * ## What's unique vs. {@link CommandDialog}
106
+ *
107
+ * - **Progressive disclosure**: fields are grouped into `<StepperPanel>`
108
+ * children and the user advances through them with explicit Previous /
109
+ * Next buttons before reaching Submit on the last step.
110
+ * - **Per-step error indicators**: the step number circle paints red when
111
+ * any field inside that step has a validation error and the step has
112
+ * been visited, so a long wizard doesn't hide a single-field error on
113
+ * page 1 behind page 4. The CratisStepper handles this by reading
114
+ * `getFieldError` from the form context and inspecting which fields
115
+ * belong to which step.
116
+ * - **Visited tracking**: only visited steps show error indicators; an
117
+ * un-visited step is never marked red just because its fields are blank.
118
+ * - **Linear mode (default)**: the user must complete a step before
119
+ * advancing. Set `linear={false}` to allow free navigation.
120
+ * - **Submit only fires on the last step**: the command runs through Arc's
121
+ * command pipeline only when the user clicks the final Submit button —
122
+ * not on every Next click. Failure paths
123
+ * (`onValidationFailure` / `onFailed`) work exactly like
124
+ * {@link CommandDialog}: dialog stays open, errors surface back to the
125
+ * form.
126
+ *
127
+ * ## Typed dialog host usage
128
+ *
129
+ * Same pattern as {@link CommandDialog} — combine with
130
+ * `useDialog<CommandResult<TResponse>>()` from `@cratis/arc.react/dialogs`
131
+ * to get a fully-typed result at the call site:
132
+ *
133
+ * ```tsx
134
+ * import { useDialog, DialogResult } from '@cratis/arc.react/dialogs';
135
+ * import { StepperCommandDialog, StepperPanel } from '@cratis/components/CommandDialog';
136
+ * import { RegisterOrder } from './RegisterOrder'; // proxy from C#
137
+ *
138
+ * const RegisterOrderDialog = () => {
139
+ * const { closeDialog } = useDialogContext<CommandResult<RegisterOrderResponse>>();
140
+ * return (
141
+ * <StepperCommandDialog<RegisterOrder, RegisterOrderResponse>
142
+ * command={RegisterOrder}
143
+ * title="New order"
144
+ * onSuccess={() => closeDialog(DialogResult.Ok)}
145
+ * onCancel={() => closeDialog(DialogResult.Cancelled)}>
146
+ * <StepperPanel header="Customer">
147
+ * <InputTextField value={c => c.customerName} title="Name" />
148
+ * <InputTextField value={c => c.email} title="Email" />
149
+ * </StepperPanel>
150
+ * <StepperPanel header="Items">
151
+ * <ChipsField value={c => c.items} title="Items" />
152
+ * <NumberField value={c => c.quantity} title="Quantity" min={1} />
153
+ * </StepperPanel>
154
+ * <StepperPanel header="Confirm">
155
+ * <CheckboxField value={c => c.confirmed} label="I confirm the order" />
156
+ * </StepperPanel>
157
+ * </StepperCommandDialog>
158
+ * );
159
+ * };
160
+ * ```
161
+ *
162
+ * ## Styling
163
+ *
164
+ * The inherited `pt` / `ptOptions` / `unstyled` props target the inner
165
+ * **Stepper**. Use `dialogPt` / `dialogPtOptions` / `dialogUnstyled` /
166
+ * `dialogClassName` to style the outer **Dialog** independently. See the
167
+ * [pass-through cheat sheet](../../Documentation/Styling/pass-through.md)
168
+ * for the slot reference.
169
+ *
170
+ * @typeParam TCommand - The command class (proxy generated from C# `[Command]`).
171
+ * @typeParam TResponse - The success payload type returned by the command's `Handle()` method on the backend.
172
+ * @param props - {@link StepperCommandDialogProps}.
173
+ */
174
+ declare const StepperCommandDialogComponent: <TCommand extends object = object, TResponse = object>(props: StepperCommandDialogProps<TCommand, TResponse>) => React.JSX.Element;
89
175
  /**
90
176
  * A multi-step wizard dialog backed by a single Cratis Arc command. Wraps
91
177
  * the Cratis-owned Stepper inside a Cratis {@link Dialog}, tracks per-step
@@ -100,4 +186,5 @@ export interface StepperCommandDialogProps<TCommand extends object, TResponse =
100
186
  * @typeParam TCommand - The command class (proxy generated from C# `[Command]`).
101
187
  * @typeParam TResponse - The success payload type returned by the command's `Handle()` method on the backend.
102
188
  */
103
- export declare const StepperCommandDialog: <TCommand extends object = object, TResponse = object>(props: StepperCommandDialogProps<TCommand, TResponse>) => React.JSX.Element;
189
+ export declare const StepperCommandDialog: typeof StepperCommandDialogComponent;
190
+ export {};
@@ -12,28 +12,8 @@ export interface StepperPanelProps {
12
12
  /** The command form fields that make up this step. */
13
13
  children?: React.ReactNode;
14
14
  }
15
- /**
16
- * Declares a single step of a {@link CommandStepper} / {@link StepperCommandDialog}
17
- * wizard. Group the command form fields that belong to a step inside a
18
- * `<StepperPanel header="…">`; the enclosing stepper reads each panel's
19
- * `header` and `children` to build the Cratis-owned step header and matching
20
- * content panel.
21
- *
22
- * It is a pure marker: it is never rendered on its own — the parent stepper consumes
23
- * its props — so it renders nothing when mounted directly.
24
- *
25
- * ```tsx
26
- * import { StepperPanel } from '@cratis/components/CommandDialog';
27
- *
28
- * <StepperPanel header="Basics">
29
- * <InputTextField value={c => c.name} title="Name" />
30
- * </StepperPanel>
31
- * ```
32
- *
33
- * @param props - {@link StepperPanelProps}.
34
- */
35
- export declare const StepperPanel: {
36
- (_props: StepperPanelProps): React.ReactElement | null;
37
- displayName: string;
38
- };
15
+ export declare function StepperPanel(_props: StepperPanelProps): React.ReactElement | null;
16
+ export declare namespace StepperPanel {
17
+ var displayName: string;
18
+ }
39
19
  //# sourceMappingURL=StepperPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepperPanel.d.ts","sourceRoot":"","sources":["../../../CommandDialog/StepperPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY;aAAY,iBAAiB,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI;;CAC1E,CAAC"}
1
+ {"version":3,"file":"StepperPanel.d.ts","sourceRoot":"","sources":["../../../CommandDialog/StepperPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;qCAsB4B,MAAM,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI"}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoCommandForm.d.ts","sourceRoot":"","sources":["../../../CommandForm/AutoCommandForm.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMhF;;;GAGG;AACH,MAAM,WAAW,oBAAoB,CACjC,QAAQ,SAAS,MAAM,EACvB,SAAS,GAAG,MAAM,CACpB,SAAQ,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,UAAU,CAAC;IAC7D;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,QAAQ,CAAC,EAAE,CAAC;CAChC;AASD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAAE,SAAS,GAAG,MAAM,EAChF,KAAK,EAAE,oBAAoB,CAAC,QAAQ,EAAE,SAAS,CAAC,GACjD,KAAK,CAAC,YAAY,CAqCpB"}
1
+ {"version":3,"file":"AutoCommandForm.d.ts","sourceRoot":"","sources":["../../../CommandForm/AutoCommandForm.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMhF;;;GAGG;AACH,MAAM,WAAW,oBAAoB,CACjC,QAAQ,SAAS,MAAM,EACvB,SAAS,GAAG,MAAM,CACpB,SAAQ,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,UAAU,CAAC;IAC7D;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,QAAQ,CAAC,EAAE,CAAC;CAChC;AASD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAAE,SAAS,GAAG,MAAM,EAChF,KAAK,EAAE,oBAAoB,CAAC,QAAQ,EAAE,SAAS,CAAC,GACjD,KAAK,CAAC,YAAY,CAwCpB"}
@@ -23,7 +23,7 @@ function AutoCommandForm(props) {
23
23
  return null;
24
24
  }
25
25
  const Field = provider.component;
26
- return (jsx(Field, { value: (instance) => {
26
+ return (jsx(Field, { fieldName: descriptor.name, value: (instance) => {
27
27
  return instance[descriptor.name];
28
28
  }, title: formatTitle(descriptor.name) }, descriptor.name));
29
29
  })
@@ -1 +1 @@
1
- {"version":3,"file":"AutoCommandForm.js","sources":["../../../CommandForm/AutoCommandForm.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;AAUA,iCAAiC,EAAE;AAiBnC,SAAS,WAAW,CAAC,YAAoB,EAAA;AACrC,IAAA,OAAO;AACF,SAAA,OAAO,CAAC,UAAU,EAAE,KAAK;AACzB,SAAA,OAAO,CAAC,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS,CAAC,WAAW,EAAE;AACpD,SAAA,IAAI,EAAE;AACf;AAiBM,SAAU,eAAe,CAC3B,KAAgD,EAAA;IAEhD,MAAM,EAAE,OAAO,EAAE,GAAG,gBAAgB,EAAE,GAAG,KAAK;IAE9C,MAAM,mBAAmB,GAAG,OAAO,CAC/B,MAAO,IAAI,KAAK,CAAC,OAAO,EAAyB,CAAC,mBAAmB,EACrE,CAAC,KAAK,CAAC,OAAO,CAAC,CAClB;IACD,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AAM,EAAE,EAC1B,YAAY,SAAS,MAAM,EAAE,EAC7B,KAAK,MAAM,GAAG,SAAS,EACvB,gBAAgB,OAAO,KACxB,MAAM,EAcR,CAAC"}
1
+ {"version":3,"file":"chipValues.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/chipValues.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,oBAAoB,YACpB,SAAS,MAAM,EAAE,cACd,SAAS,MAAM,EAAE,OACxB,MAAM,GAAG,SAAS,kBACP,OAAO,KACxB,MAAM,EAcR,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fieldAccessibility.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/fieldAccessibility.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,iFAAiF;AACjF,MAAM,WAAW,uBAAuB;IACpC,+DAA+D;IAC/D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,2BAA2B;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,UAAU,wBAAwB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;CAC1B;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAC9B,OAAO,uBAAuB,GAAG;IAAE,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,EACrD,YAAW,2BAAgC,KAC5C,wBAsBF,CAAC"}
1
+ {"version":3,"file":"fieldAccessibility.d.ts","sourceRoot":"","sources":["../../../../CommandForm/fields/fieldAccessibility.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE9C,iFAAiF;AACjF,MAAM,WAAW,uBAAuB;IACpC,+DAA+D;IAC/D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,2BAA2B;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,UAAU,wBAAwB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,SAAS,CAAC;CAC1B;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,UACvB,uBAAuB,GAAG;IAAE,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,cAC1C,2BAA2B,KACvC,wBAsBF,CAAC"}
@@ -37,4 +37,4 @@ export interface ActionMenubarProps {
37
37
  unstyled?: boolean;
38
38
  }
39
39
  /** A horizontal, accessible toolbar of command actions. */
40
- export declare const ActionMenubar: ({ model, className, pt, "aria-label": ariaLabel, }: ActionMenubarProps) => import("react").JSX.Element;
40
+ export declare const ActionMenubar: ({ model, className, pt, 'aria-label': ariaLabel, }: ActionMenubarProps) => import("react").JSX.Element;