@ai-matrx/associations 0.10.5 → 0.10.6

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,13 @@
1
1
  # Changelog — @ai-matrx/associations
2
2
 
3
+ ## 0.10.6
4
+ ### Unreleased
5
+
6
+ * `CommentThread` / `CommentComposer` errors are drawn with design-system's `ErrorBox`,
7
+ so the host's error actions (`ErrorActionsProvider`) reach them — the composer's
8
+ failure carries the unsent comment as `unsavedInput`. Requires the design-system
9
+ release that ships `ErrorBox` (publish design-system first).
10
+
3
11
  ## 0.10.5
4
12
 
5
13
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -961,3 +969,4 @@ ratified C18): the types root.
961
969
  attw on the packed tarball, empty-project ESM import + CJS require canary,
962
970
  pure-root "use client" ban) — all green; `check:entity-types` drift gate
963
971
  proven falsifiable against the live registry.
972
+
@@ -5022,7 +5022,16 @@ function CommentComposer({
5022
5022
  className: "w-full resize-y rounded-md border border-border bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
5023
5023
  }
5024
5024
  ),
5025
- error && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { role: "alert", className: "text-xs text-destructive", children: error }),
5025
+ error && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
5026
+ import_design_system13.ErrorBox,
5027
+ {
5028
+ className: "text-xs text-destructive",
5029
+ message: error,
5030
+ operation: "Post a comment",
5031
+ unsavedInput: { comment: body },
5032
+ origin: "associations/CommentThread"
5033
+ }
5034
+ ),
5026
5035
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2", children: [
5027
5036
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_design_system13.Button, { type: "submit", size: "sm", disabled: !body.trim() || submitting, children: [
5028
5037
  submitting && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SpinnerIcon, { className: "mr-1 h-3 w-3 animate-spin" }),
@@ -5258,10 +5267,13 @@ function CommentThread({
5258
5267
  )
5259
5268
  ] }),
5260
5269
  thread.error && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
5261
- "div",
5270
+ import_design_system13.ErrorBox,
5262
5271
  {
5263
- role: "alert",
5272
+ as: "div",
5264
5273
  className: "flex items-center gap-2 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive",
5274
+ message: thread.error,
5275
+ operation: "Load comments",
5276
+ origin: "associations/CommentThread",
5265
5277
  children: [
5266
5278
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "min-w-0 flex-1", children: thread.error }),
5267
5279
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(