@ai-matrx/design-system 0.42.0 → 0.42.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.42.1
4
+ ### Unreleased
5
+
6
+ ### Error actions on every package error (RC-B12, 2026-09-26)
7
+
8
+ * **`ErrorBox`** — the one way a package draws an error: a `role="alert"` element in
9
+ the caller's tag and classes (`as`, `className`, children unchanged) that renders the
10
+ host's error actions after its content. **`ErrorActionsProvider render={...}`** is the
11
+ host slot (mount once at the app root); **`ErrorActions`** places the slot inside a
12
+ box you do not draw; **`useErrorActions`**, types `ErrorActionsInput` (message, title,
13
+ error, operation, records, unsavedInput, origin) and `ErrorActionsRenderer`. No
14
+ provider = nothing extra renders.
15
+ * **Wired:** destructive `Alert`; `OrganizationPicker` load failure; `MatrxDataTable`
16
+ saved-view, toolbar-action and load-more errors; `SavedViewsControl` errors.
17
+ * **One context across bundles:** the context lives under
18
+ `Symbol.for("@ai-matrx/design-system/error-actions")`, because tsup inlines the file
19
+ into `.` and `./data-table` separately (a plain context would never reach the table).
20
+ * **Guard:** `error-box.census.test.ts` fails on a bare error `role="alert"` in
21
+ design-system or associations sources.
22
+
23
+ **Consumer action:** hosts that want actions on package errors mount
24
+ `ErrorActionsProvider` once. matrx-frontend mounts it in `AlchemyHost` and drops its
25
+ own destructive-`Alert` wrapper (the package now carries the slot).
26
+
3
27
  ## 0.42.0 (2026-09-25)
4
28
 
5
29
  ### Lane data-tables-grid-overhaul — merge step 3 (2026-09-25)
@@ -2804,3 +2828,4 @@ New dependencies: `@radix-ui/react-dialog`, `@radix-ui/react-popover`,
2804
2828
 
2805
2829
  - Added Button, Badge, Label, Separator, and `cn` as the first shared semantic UI foundation.
2806
2830
  - Added strict TypeScript, SSR-focused tests, package linting, declaration analysis, and isolated tarball import verification.
2831
+