@ai-matrx/content-ir-react 0.25.0 → 0.25.2
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 +13 -0
- package/dist/{directive-host-QjoZEeik.d.cts → directive-host-BF9Zzfbr.d.cts} +6 -0
- package/dist/{directive-host-QjoZEeik.d.ts → directive-host-BF9Zzfbr.d.ts} +6 -0
- package/dist/directives.cjs +1 -1
- package/dist/directives.cjs.map +1 -1
- package/dist/directives.d.cts +2 -2
- package/dist/directives.d.ts +2 -2
- package/dist/directives.js +1 -1
- package/dist/directives.js.map +1 -1
- package/dist/{host-types-DvZukz6J.d.ts → host-types-CBZTM8am.d.ts} +1 -1
- package/dist/{host-types-B2Q8fiU8.d.cts → host-types-CuCbs6Bc.d.cts} +1 -1
- package/dist/host.cjs.map +1 -1
- package/dist/host.d.cts +3 -3
- package/dist/host.d.ts +3 -3
- package/dist/host.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/{route-Bq6db_zH.d.cts → route-B9dsQHWZ.d.cts} +6 -0
- package/dist/{route-DStinBoZ.d.ts → route-CO_7dx0A.d.ts} +6 -0
- package/dist/route.d.cts +1 -1
- package/dist/route.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.25.2
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/content-ir-react/v0.25.1..npm/content-ir-react/v0.25.2 -- apps/shared/content-ir-react`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.25.1
|
|
10
|
+
### A host can word a failure's Details (G15, 2026-10-07)
|
|
11
|
+
|
|
12
|
+
- `DirectiveFailureWords.details` (optional): when the host's `explainFailure` returns it, the card shows it behind "Details" instead of the raw server text — so a field reads as the form names it ("Title is required", never "name is required"). Absent → the raw text, as before.
|
|
13
|
+
|
|
14
|
+
Consumer action: none required; matrx-frontend `explainDirectiveFailure` returns `details`.
|
|
15
|
+
|
|
3
16
|
## 0.25.0
|
|
4
17
|
### An update that changes nothing says so (G11B, 2026-10-07)
|
|
5
18
|
|
|
@@ -228,6 +228,12 @@ interface DirectiveFailure {
|
|
|
228
228
|
interface DirectiveFailureWords {
|
|
229
229
|
what: string;
|
|
230
230
|
next: string;
|
|
231
|
+
/**
|
|
232
|
+
* The text behind "Details", when the host words it (e.g. the server's field
|
|
233
|
+
* names read as the form labels them — "Title is required", never
|
|
234
|
+
* "name is required"). Absent → the raw text.
|
|
235
|
+
*/
|
|
236
|
+
details?: string;
|
|
231
237
|
}
|
|
232
238
|
/** Where a directive renders — today, the conversation it sits in (if any). */
|
|
233
239
|
interface DirectiveScope {
|
|
@@ -228,6 +228,12 @@ interface DirectiveFailure {
|
|
|
228
228
|
interface DirectiveFailureWords {
|
|
229
229
|
what: string;
|
|
230
230
|
next: string;
|
|
231
|
+
/**
|
|
232
|
+
* The text behind "Details", when the host words it (e.g. the server's field
|
|
233
|
+
* names read as the form labels them — "Title is required", never
|
|
234
|
+
* "name is required"). Absent → the raw text.
|
|
235
|
+
*/
|
|
236
|
+
details?: string;
|
|
231
237
|
}
|
|
232
238
|
/** Where a directive renders — today, the conversation it sits in (if any). */
|
|
233
239
|
interface DirectiveScope {
|
package/dist/directives.cjs
CHANGED
|
@@ -742,7 +742,7 @@ function FailureNotice({
|
|
|
742
742
|
raw
|
|
743
743
|
}) {
|
|
744
744
|
const [open, setOpen] = (0, import_react3.useState)(false);
|
|
745
|
-
const detail = raw?.trim()
|
|
745
|
+
const detail = raw?.trim() ? words.details?.trim() || raw.trim() : "";
|
|
746
746
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "flex min-w-0 flex-col gap-0.5", "data-apply-failure": true, children: [
|
|
747
747
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "min-w-0", children: [
|
|
748
748
|
words.what,
|