@umriss-ui/dashboard 0.55.1 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/API.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @umriss-ui/dashboard API
2
2
 
3
- Generated by the props step (`pnpm --filter @umriss-ui/dashboard props`); do not edit. First sentences only; the full text is `docs/llms-full.md`.
3
+ Generated by the props step (`pnpm --filter @umriss-ui/dashboard props`); do not edit. Lists every export, and the props, options and returns of each component and hook, with first sentences only; the full text is `docs/llms-full.md`. What stands under `## Experimental`, or is marked `(experimental)`, may change in a minor release; everything else is the surface a break costs a major for (ADR-0083).
4
4
 
5
5
  ## Components
6
6
 
@@ -22,7 +22,7 @@ Generated by the props step (`pnpm --filter @umriss-ui/dashboard props`); do not
22
22
  - SizeSpan — The room a size takes on the twelve columns, in columns and rows. [columns, rows]
23
23
  - WidgetContent — What a widget's content is told. [size, options]
24
24
  - WidgetFormProps — What a type's form is given.
25
- - WidgetSize — The closed set of names a widget's size comes from.
25
+ - WidgetSize — The closed set of names a widget's size comes from. = "small" | "medium" | "wide" | "tall" | "large" | "full"
26
26
  - WidgetTypeProps — The props of `WidgetType`.
27
27
 
28
28
  ## Props
@@ -67,3 +67,29 @@ Generated by the props step (`pnpm --filter @umriss-ui/dashboard props`); do not
67
67
  - undo: () => void — Goes one step back in the draft.
68
68
  - redo: () => void — Goes one step forward again.
69
69
  - reset: () => void — Steps to the `defaultView`; `undo` brings the arrangement back.
70
+
71
+ #### props of Dashboard (DashboardProps)
72
+
73
+ - children?: ReactNode — The `WidgetType`s of this dashboard.
74
+ - catalogue?: ReadonlyArray<string> — The `name`s of the widget types the catalogue lists. (default: every declared type)
75
+ - headingLevel?: 2 | 3 | 4 | 5 | 6 — The level of the heading the heading widgets stand in - the one that fits the page's outline. (default: 2)
76
+ - ref?: Ref<HTMLDivElement> | undefined — Receives the component's root element.
77
+
78
+ #### props of WidgetType (WidgetTypeProps)
79
+
80
+ - name: string — The name a view refers to this type by.
81
+ - label: string — The type's name for a reader, and the title of its frame unless `title` says otherwise.
82
+ - sentence: string — One sentence on what the type shows.
83
+ - sizes: Partial<Record<WidgetSize, SizeSpan>> — The sizes the type offers, each with the columns (of twelve) and rows it takes.
84
+ - start: WidgetSize — The size a new widget of this type starts at.
85
+ - defaultOptions?: Options — The options a new widget starts with, and the ones a stored widget's missing keys are read from: stored plain options are spread over them, one level deep.
86
+ - title?: (options: NoInfer<Options>) => string — The title of a frame as a function of its options; the `label` without it.
87
+ - form?: (props: WidgetFormProps<NoInfer<Options>>) => ReactNode — The form for the options, opened from the widget's menu.
88
+ - children: (content: WidgetContent<NoInfer<Options>>) => ReactNode — The content, as a function of the size and the options.
89
+
90
+ ## Other props
91
+
92
+ #### props (WidgetFormProps)
93
+
94
+ - options: Options — The widget's current options.
95
+ - change: (options: Options) => void — Replaces the options; one step of the draft.
package/CHANGELOG.md CHANGED
@@ -13,6 +13,26 @@ one section before an upgrade reads that one.
13
13
 
14
14
  The dashboard joins the other five packages' one number at its first version: they are released together, and a package without a change of its own still gets a heading for it.
15
15
 
16
+ ## 0.57.0 – `API.md` lists the props of `Dashboard`; an example of the editing actions (Nov. 2026)
17
+
18
+ ### Added
19
+
20
+ - **`API.md` lists the whole surface:** the props of `Dashboard` and `WidgetType` under `useDashboard`. What is marked `@experimental` will stand under a heading of its own, and a deprecated member last in its table.
21
+ - **An example** of the editing actions (`edit`, `undo`, `redo`, `done`) in an application's own header.
22
+
23
+ ### Changed
24
+
25
+ - **The package names Node 22 in `engines` and peers `react` and `react-dom` as `^19`** (was `>=19`), so that a later React is not promised before it has run (ADR-0083).
26
+ - Migration: nothing on Node 22 and React 19.
27
+
28
+ ### Fixed
29
+
30
+ - **The browser floors are the ones the source needs: Chrome 125, Firefox 121, Safari 17.5.** The documents named Chrome 123 and Firefox 120, though `round()` and `:has()` were in use; nothing changes in a browser. A test now derives the three numbers from the source. A build that pins `cssTarget` or `browserslist` to `chrome123` or `firefox120` raises them to `chrome125` and `firefox121`.
31
+
32
+ ## 0.56.0 – Released in step with the table (Nov. 2026)
33
+
34
+ No change of its own; the number moves with the table, whose columns now take `align` and stand at the start, centred or at the end.
35
+
16
36
  ## 0.55.1 – Released in step with the table (Nov. 2026)
17
37
 
18
38
  No change of its own; the number moves with the table, whose heads now stand whole and line up with their columns in every sort state.
package/README.md CHANGED
@@ -126,7 +126,7 @@ source and the props table generated from `src/`, each prop linked to the
126
126
  examples that show it; the scenario walks through a dispatcher's start screen
127
127
  at other widths, while it is rearranged, when something goes wrong and what the
128
128
  application governs. An API index lists every export, one search finds across
129
- all six packages, and the header switches the examples to German. What is not
129
+ all seven packages, and the header switches the examples to German. What is not
130
130
  built yet and what never will be stands in ADR-0064. The vocabulary - dashboard,
131
131
  widget, widget type, widget size, options, catalogue - stands in `CONTEXT.md`
132
132
  under "Dashboards". Every export is listed in [API.md](https://github.com/romanhaendler/umriss-ui/blob/main/packages/dashboard/API.md).
package/docs/llms-full.md CHANGED
@@ -1,4 +1,4 @@
1
- # @umriss-ui/dashboard 0.55.1
1
+ # @umriss-ui/dashboard 0.57.0
2
2
 
3
3
  > React dashboard for data-dense applications - widgets a reader arranges, packed in order on twelve columns.
4
4
 
@@ -689,6 +689,46 @@ export default function PrintTheDashboard() {
689
689
  }
690
690
  ```
691
691
 
692
+ ##### The editing actions in the application's own header
693
+
694
+ The parts hand over the editing actions, so an application can offer them in its own page header too: Edit, Undo, Redo and Done do the same there as in the dashboard's own bar, which stays where it is. Redo does nothing at the last step of the draft.
695
+
696
+ ```tsx
697
+ import { Button, ButtonGroup, Stack, Text } from "@umriss-ui/core";
698
+ import { HeadingType, useDashboard } from "@umriss-ui/dashboard";
699
+ import type { DashboardView, HeadingOptions } from "@umriss-ui/dashboard";
700
+
701
+ const VIEW: DashboardView = {
702
+ widgets: [
703
+ { id: "h1", type: "heading", size: "full", options: { text: "Dispatch, today" } satisfies HeadingOptions },
704
+ { id: "a", type: "figure", size: "wide", options: { label: "Tours out", value: "14 of 18" } },
705
+ { id: "b", type: "figure", size: "wide", options: { label: "Pallets on hand", value: "412" } },
706
+ ],
707
+ };
708
+
709
+ export default function RedoFromAnOwnHeader() {
710
+ const { Dashboard, WidgetType, editing, edit, undo, redo, done } = useDashboard({ defaultView: VIEW });
711
+ return (
712
+ <Stack gap={3}>
713
+ <ButtonGroup aria-label="Dispatch actions" size="sm">
714
+ <Button onClick={edit} disabled={editing}>Edit</Button>
715
+ <Button onClick={undo} disabled={!editing}>Undo</Button>
716
+ <Button onClick={redo} disabled={!editing}>Redo</Button>
717
+ <Button variant="primary" onClick={done} disabled={!editing}>Done</Button>
718
+ </ButtonGroup>
719
+ <Dashboard headingLevel={4} aria-label="Dispatch, today">
720
+ <HeadingType />
721
+ <WidgetType name="figure" label="Figure" sentence="One figure with its name." sizes={{ wide: { columns: 6, rows: 2 } }} start="wide" defaultOptions={{ label: "", value: "" }} title={(options) => options.label}>
722
+ {({ options }) => (
723
+ <Text size="2xl" weight="semibold">{options.value}</Text>
724
+ )}
725
+ </WidgetType>
726
+ </Dashboard>
727
+ </Stack>
728
+ );
729
+ }
730
+ ```
731
+
692
732
  #### When to use something else
693
733
 
694
734
  - A layout the developer fixes, which the reader does not arrange → `Grid`, `Stack` and `Splitter` from @umriss-ui/core
@@ -713,7 +753,7 @@ Every move, size, removal, addition, undo, redo, reset, "Done" and "Cancel" is a
713
753
 
714
754
  | Prop | Type | Default | Description |
715
755
  |---|---|---|---|
716
- | `defaultView` *required* | `DashboardView` | — | The arrangement the application gives a reader who has none of their own.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
756
+ | `defaultView` *required* | `DashboardView` | — | The arrangement the application gives a reader who has none of their own.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 8 more |
717
757
  | `initialView` | `DashboardView` | the `defaultView` | The reader's kept arrangement, read once when the hook first runs; a different value on a later render is ignored, as React ignores a changed `defaultValue`. To go to another, call `setView`.<br>Shown in: [An arrangement from an older release](#dashboard), [A widget every reader keeps](#dashboard) |
718
758
  | `allowEdit` | `boolean` | `true` | Whether the reader may edit. Without it no bar is drawn and the mode cannot be entered.<br>Shown in: [The start screen of a dispatcher](#dashboard), [A widget for one role](#dashboard), [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
719
759
 
@@ -728,26 +768,26 @@ Every move, size, removal, addition, undo, redo, reset, "Done" and "Cancel" is a
728
768
 
729
769
  | Prop | Type | Default | Description |
730
770
  |---|---|---|---|
731
- | `Dashboard` *required* | `(props: ``DashboardProps``) => ReactNode` | — | The dashboard. One per `useDashboard`.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
732
- | `WidgetType` *required* | `typeof WidgetType` | — | Declares a widget type inside `Dashboard`.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
771
+ | `Dashboard` *required* | `(props: ``DashboardProps``) => ReactNode` | — | The dashboard. One per `useDashboard`.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 8 more |
772
+ | `WidgetType` *required* | `typeof WidgetType` | — | Declares a widget type inside `Dashboard`.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
733
773
  | `view` *required* | `DashboardView` | — | The arrangement in view: the draft while the mode is on.<br>Shown in: [A widget every reader keeps](#dashboard) |
734
774
  | `setView` *required* | `(view: ``DashboardView``) => void` | — | Goes to a whole arrangement. Not reported.<br>Shown in: [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
735
- | `editing` *required* | `boolean` | — | Whether the editing mode is on.<br>Shown in: [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
736
- | `edit` *required* | `() => void` | — | Enters the editing mode. Does nothing where editing is not allowed.<br>Shown in: [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
737
- | `done` *required* | `() => void` | — | Leaves the mode, keeps the changes and reports them once if there are any.<br>Shown in: [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
775
+ | `editing` *required* | `boolean` | — | Whether the editing mode is on.<br>Shown in: [The editing actions in the application's own header](#dashboard), [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
776
+ | `edit` *required* | `() => void` | — | Enters the editing mode. Does nothing where editing is not allowed.<br>Shown in: [The editing actions in the application's own header](#dashboard), [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
777
+ | `done` *required* | `() => void` | — | Leaves the mode, keeps the changes and reports them once if there are any.<br>Shown in: [The editing actions in the application's own header](#dashboard), [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
738
778
  | `catalogue` *required* | `() => void` | — | Opens the catalogue. Does nothing outside the editing mode.<br>Shown in: [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
739
779
  | `cancel` *required* | `() => void` | — | Leaves the mode and puts the arrangement back as it was before `edit`.<br>Shown in: [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
740
- | `undo` *required* | `() => void` | — | Goes one step back in the draft. Does nothing at the first.<br>Shown in: [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
741
- | `redo` *required* | `() => void` | — | Goes one step forward again. Does nothing at the last. |
780
+ | `undo` *required* | `() => void` | — | Goes one step back in the draft. Does nothing at the first.<br>Shown in: [The editing actions in the application's own header](#dashboard), [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
781
+ | `redo` *required* | `() => void` | — | Goes one step forward again. Does nothing at the last.<br>Shown in: [The editing actions in the application's own header](#dashboard) |
742
782
  | `reset` *required* | `() => void` | — | Steps to the `defaultView`; `undo` brings the arrangement back.<br>Shown in: [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
743
783
 
744
784
  ##### `DashboardProps`
745
785
 
746
786
  | Prop | Type | Default | Description |
747
787
  |---|---|---|---|
748
- | `children` | `ReactNode` | — | The `WidgetType`s of this dashboard.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
788
+ | `children` | `ReactNode` | — | The `WidgetType`s of this dashboard.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
749
789
  | `catalogue` | `ReadonlyArray<string>` | every declared type | The `name`s of the widget types the catalogue lists.<br>Shown in: [The start screen of a dispatcher](#dashboard) |
750
- | `headingLevel` | `2 \| 3 \| 4 \| 5 \| 6` | `2` | The level of the heading the heading widgets stand in - the one that fits the page's outline. A widget's title stands one level below it when the dashboard holds a heading widget, and at this level when not; never deeper than 6.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
790
+ | `headingLevel` | `2 \| 3 \| 4 \| 5 \| 6` | `2` | The level of the heading the heading widgets stand in - the one that fits the page's outline. A widget's title stands one level below it when the dashboard holds a heading widget, and at this level when not; never deeper than 6.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 8 more |
751
791
  | `ref` | `Ref<HTMLDivElement> \| undefined` | — | Receives the component's root element. From `RefProp`. |
752
792
 
753
793
  Also takes every attribute of `<div>`.
@@ -756,16 +796,16 @@ Also takes every attribute of `<div>`.
756
796
 
757
797
  | Prop | Type | Default | Description |
758
798
  |---|---|---|---|
759
- | `widgets` *required* | `ReadonlyArray<``DashboardWidget``>` | — | The widgets, in the order they are drawn and read.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
799
+ | `widgets` *required* | `ReadonlyArray<``DashboardWidget``>` | — | The widgets, in the order they are drawn and read.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 8 more |
760
800
 
761
801
  ##### `DashboardWidget`
762
802
 
763
803
  | Prop | Type | Default | Description |
764
804
  |---|---|---|---|
765
- | `id` *required* | `string` | — | Unique within the view.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
766
- | `type` *required* | `string` | — | The `name` of the widget type it is an instance of.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
767
- | `size` *required* | `WidgetSize`<br>`"small" \| "medium" \| "wide" \| "tall" \| "large" \| "full"` | — | One of the sizes its type offers.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
768
- | `options` *required* | `unknown` | — | The type's own options, typed through the hook.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
805
+ | `id` *required* | `string` | — | Unique within the view.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
806
+ | `type` *required* | `string` | — | The `name` of the widget type it is an instance of.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
807
+ | `size` *required* | `WidgetSize`<br>`"small" \| "medium" \| "wide" \| "tall" \| "large" \| "full"` | — | One of the sizes its type offers.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
808
+ | `options` *required* | `unknown` | — | The type's own options, typed through the hook.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
769
809
  | `locked` | `boolean` | — | Set by the application, never by the dashboard: the reader can move the widget but not resize it, change its options or remove it. Only `true` locks. Kept through every edit.<br>Shown in: [A widget every reader keeps](#dashboard) |
770
810
 
771
811
  ##### `WidgetSize`
@@ -776,29 +816,29 @@ Declares no props of its own.
776
816
 
777
817
  | Prop | Type | Default | Description |
778
818
  |---|---|---|---|
779
- | `columns` *required* | `number` | — | Columns of twelve.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
780
- | `rows` *required* | `number` | — | Rows of the fixed row unit.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
819
+ | `columns` *required* | `number` | — | Columns of twelve.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
820
+ | `rows` *required* | `number` | — | Rows of the fixed row unit.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
781
821
 
782
822
  ##### `WidgetTypeProps<Options>`
783
823
 
784
824
  | Prop | Type | Default | Description |
785
825
  |---|---|---|---|
786
- | `name` *required* | `string` | — | The name a view refers to this type by. Unique within the dashboard.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
787
- | `label` *required* | `string` | — | The type's name for a reader, and the title of its frame unless `title` says otherwise.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
788
- | `sentence` *required* | `string` | — | One sentence on what the type shows.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
789
- | `sizes` *required* | `Partial<Record<``WidgetSize``, ``SizeSpan``>>` | — | The sizes the type offers, each with the columns (of twelve) and rows it takes.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
790
- | `start` *required* | `WidgetSize`<br>`"small" \| "medium" \| "wide" \| "tall" \| "large" \| "full"` | — | The size a new widget of this type starts at. One of `sizes`.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
791
- | `defaultOptions` | `Options` | — | The options a new widget starts with, and the ones a stored widget's missing keys are read from: stored plain options are spread over them, one level deep. Their type is the options type of `title` and of the content. A widget without options leaves them out.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
792
- | `title` | `(options: NoInfer<Options>) => string` | — | The title of a frame as a function of its options; the `label` without it.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [A widget for one role](#dashboard) and 4 more |
826
+ | `name` *required* | `string` | — | The name a view refers to this type by. Unique within the dashboard.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
827
+ | `label` *required* | `string` | — | The type's name for a reader, and the title of its frame unless `title` says otherwise.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
828
+ | `sentence` *required* | `string` | — | One sentence on what the type shows.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
829
+ | `sizes` *required* | `Partial<Record<``WidgetSize``, ``SizeSpan``>>` | — | The sizes the type offers, each with the columns (of twelve) and rows it takes.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
830
+ | `start` *required* | `WidgetSize`<br>`"small" \| "medium" \| "wide" \| "tall" \| "large" \| "full"` | — | The size a new widget of this type starts at. One of `sizes`.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
831
+ | `defaultOptions` | `Options` | — | The options a new widget starts with, and the ones a stored widget's missing keys are read from: stored plain options are spread over them, one level deep. Their type is the options type of `title` and of the content. A widget without options leaves them out.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
832
+ | `title` | `(options: NoInfer<Options>) => string` | — | The title of a frame as a function of its options; the `label` without it.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [A widget for one role](#dashboard) and 5 more |
793
833
  | `form` | `(props: ``WidgetFormProps``<NoInfer<Options>>) => ReactNode` | — | The form for the options, opened from the widget's menu. Without it the menu has no options entry.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
794
- | `children` *required* | `(content: ``WidgetContent``<NoInfer<Options>>) => ReactNode` | — | The content, as a function of the size and the options.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 6 more |
834
+ | `children` *required* | `(content: ``WidgetContent``<NoInfer<Options>>) => ReactNode` | — | The content, as a function of the size and the options.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Headings that divide the dashboard](#dashboard) and 7 more |
795
835
 
796
836
  ##### `WidgetContent<Options>`
797
837
 
798
838
  | Prop | Type | Default | Description |
799
839
  |---|---|---|---|
800
840
  | `size` *required* | `WidgetSize`<br>`"small" \| "medium" \| "wide" \| "tall" \| "large" \| "full"` | — | The size the widget stands at.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [Arrange the start screen (Scenarios)](#arrange-the-start-screen) |
801
- | `options` *required* | `Options` | — | The widget's options.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [A widget for one role](#dashboard) and 3 more |
841
+ | `options` *required* | `Options` | — | The widget's options.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Your own component as a widget](#dashboard), [A widget for one role](#dashboard) and 4 more |
802
842
 
803
843
  ##### `WidgetFormProps<Options>`
804
844
 
@@ -811,7 +851,7 @@ Declares no props of its own.
811
851
 
812
852
  | Prop | Type | Default | Description |
813
853
  |---|---|---|---|
814
- | `text` *required* | `string` | — | The title across the full width.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Headings that divide the dashboard](#dashboard), [Print the dashboard](#dashboard) and 1 more |
854
+ | `text` *required* | `string` | — | The title across the full width.<br>Shown in: [The start screen of a dispatcher](#dashboard), [Headings that divide the dashboard](#dashboard), [Print the dashboard](#dashboard) and 2 more |
815
855
 
816
856
  #### Known limits
817
857
 
@@ -820,7 +860,7 @@ Declares no props of its own.
820
860
  - Never: stacks of widgets that share one place, coordinates and free placement, a layout per breakpoint, dense packing, dragging from the catalogue to a chosen place ([ADR-0064](https://github.com/romanhaendler/umriss-ui/blob/main/docs/adr/0064-a-dashboard-a-user-arranges-is-a-sequence-on-fixed-columns.md)).
821
861
  - Where an arrangement is stored, which default a role gets, several dashboards and what stands in a widget are the application's.
822
862
 
823
- What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/dashboard-v0.55.1/docs/adr/0032-what-umriss-is-not.md).
863
+ What umriss deliberately does not build, and why: [ADR-0032](https://github.com/romanhaendler/umriss-ui/blob/dashboard-v0.57.0/docs/adr/0032-what-umriss-is-not.md).
824
864
 
825
865
  ## API index
826
866
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umriss-ui/dashboard",
3
- "version": "0.55.1",
3
+ "version": "0.57.0",
4
4
  "description": "React dashboard for data-dense applications - widgets a reader arranges, packed in order on twelve columns.",
5
5
  "license": "MIT",
6
6
  "author": "Roman Händler",
@@ -54,15 +54,18 @@
54
54
  "default": "./dist/dashboard.css"
55
55
  }
56
56
  },
57
+ "engines": {
58
+ "node": ">=22"
59
+ },
57
60
  "peerDependencies": {
58
- "@umriss-ui/core": "^0.55.0",
59
- "react": ">=19",
60
- "react-dom": ">=19"
61
+ "@umriss-ui/core": "^0.57.0",
62
+ "react": "^19",
63
+ "react-dom": "^19"
61
64
  },
62
65
  "devDependencies": {
63
66
  "@fontsource/geist-mono": "^5.3.0",
64
67
  "@fontsource/geist-sans": "^5.3.0",
65
- "@umriss-ui/core": "0.55.1",
68
+ "@umriss-ui/core": "0.57.0",
66
69
  "@umriss-ui/demo": "0.0.0",
67
70
  "@types/node": "^22.20.2",
68
71
  "@types/react": "^19.0.0",