@ai-matrx/detail 0.1.2 → 0.1.3

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,20 @@
1
1
  # Changelog — @ai-matrx/detail
2
2
 
3
+ ## 0.1.3
4
+ ### Unreleased
5
+
6
+ - **Added — the not-found state carries the host's error actions.** A record that cannot be read
7
+ (moved, deleted, or not shared with the person) now renders design-system's `ErrorActions` slot
8
+ beside its sentence, with `origin: "detail/DetailBody"`, the sentence as `message`, an
9
+ `operation` of "Open this <label>", and the record as `records: [{ type, id }]`. A host that
10
+ mounts `ErrorActionsProvider` (matrx-frontend: its Alchemy copy-for-AI menu) gets its actions
11
+ there; with no provider nothing extra renders. This is the last difference between this package
12
+ and matrx-frontend's in-repo copy (frontend audit 2026-09-29, detail-002), so the frontend can
13
+ adopt the package and delete the copy. Proof:
14
+ `src/react/__tests__/the-absent-record-carries-the-hosts-error-actions.test.tsx`.
15
+ - **Consumer action:** none — additive. A host with `ErrorActionsProvider` mounted sees its
16
+ actions appear on the not-found state.
17
+
3
18
  ## 0.1.2
4
19
 
5
20
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -122,3 +137,4 @@ What changed on the way in, and why:
122
137
  6. Any health producer that decides a reconnect would not help must answer
123
138
  `onReconnect: null` (not omit the key) — omitting it now means "defer to the host".
124
139
 
140
+
package/dist/react.cjs CHANGED
@@ -1283,7 +1283,19 @@ function FieldsSection({ core }) {
1283
1283
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(LoadingFields, { core, label });
1284
1284
  }
1285
1285
  if (core.status === "not-found") {
1286
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Notice, { tone: "warn", children: `This ${label} couldn't be found \u2014 it may have been moved, deleted, or isn't shared with you.` });
1286
+ const sentence = `This ${label} couldn't be found \u2014 it may have been moved, deleted, or isn't shared with you.`;
1287
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Notice, { tone: "warn", children: [
1288
+ sentence,
1289
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1290
+ import_design_system3.ErrorActions,
1291
+ {
1292
+ origin: "detail/DetailBody",
1293
+ operation: `Open this ${label}`,
1294
+ message: sentence,
1295
+ records: [{ type: core.ref.type, id: core.ref.id }]
1296
+ }
1297
+ )
1298
+ ] });
1287
1299
  }
1288
1300
  if (core.status === "error") {
1289
1301
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Notice, { tone: "error", children: [