@declarion/react 0.28.2 → 0.30.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/dist-lib/{ActionRunner-DtUDeH4F.js → ActionRunner-HrBGEIPi.js} +2 -2
- package/dist-lib/{DraggableChildrenTable-D4WoV6ck.js → DraggableChildrenTable-DawgL01j.js} +1 -1
- package/dist-lib/{Grid-CsK_TuK_.js → Grid-CywIwAds.js} +2 -2
- package/dist-lib/{MarkdownRenderer-CwlNQju5.js → MarkdownRenderer-DoKB-5LZ.js} +1 -1
- package/dist-lib/components/detail-layout/FieldRow.d.ts +2 -1
- package/dist-lib/components/pages/list/ListHeader.d.ts +6 -1
- package/dist-lib/index.js +943 -908
- package/dist-lib/lib/actions.d.ts +10 -0
- package/dist-lib/testing.js +1 -1
- package/dist-lib/types/schema.d.ts +12 -4
- package/dist-lib/{value-CNUbJNK-.js → value-D9BaSRFG.js} +1 -1
- package/package.json +1 -1
|
@@ -2757,7 +2757,7 @@ async function Jr(e, t) {
|
|
|
2757
2757
|
}
|
|
2758
2758
|
//#endregion
|
|
2759
2759
|
//#region src/components/shared/Markdown.tsx
|
|
2760
|
-
var Yr = a(() => import("./MarkdownRenderer-
|
|
2760
|
+
var Yr = a(() => import("./MarkdownRenderer-DoKB-5LZ.js").then((e) => ({ default: e.MarkdownRenderer })));
|
|
2761
2761
|
function Xr() {
|
|
2762
2762
|
return /* @__PURE__ */ v("div", { className: "h-4 w-2/3 rounded bg-muted animate-pulse" });
|
|
2763
2763
|
}
|
|
@@ -5893,7 +5893,7 @@ function Ks({ open: t, onOpenChange: n, action: r, actionName: i, onSubmit: a, i
|
|
|
5893
5893
|
color: "var(--text-3)",
|
|
5894
5894
|
marginTop: 2
|
|
5895
5895
|
},
|
|
5896
|
-
children: "Fill in the parameters below to execute this action."
|
|
5896
|
+
children: I(r.display?.description) || "Fill in the parameters below to execute this action."
|
|
5897
5897
|
})]
|
|
5898
5898
|
}),
|
|
5899
5899
|
/* @__PURE__ */ v(E, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as e } from "./DynamicIcon-DCRdxxZ7.js";
|
|
2
|
-
import { Ln as t, Rn as n, gn as r, m as i, p as a, rn as o } from "./ActionRunner-
|
|
2
|
+
import { Ln as t, Rn as n, gn as r, m as i, p as a, rn as o } from "./ActionRunner-HrBGEIPi.js";
|
|
3
3
|
import { n as s, r as c, t as l } from "./dataTableStyles-vwD1mVOP.js";
|
|
4
4
|
import { useCallback as u, useMemo as d, useRef as f } from "react";
|
|
5
5
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, S as t, _ as n, b as r, x as i, y as a } from "./ActionRunner-
|
|
2
|
-
import { c as o, i as s, l as c, t as l } from "./value-
|
|
1
|
+
import { C as e, S as t, _ as n, b as r, x as i, y as a } from "./ActionRunner-HrBGEIPi.js";
|
|
2
|
+
import { c as o, i as s, l as c, t as l } from "./value-D9BaSRFG.js";
|
|
3
3
|
import { useCallback as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
4
4
|
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
5
5
|
import { DndContext as v, PointerSensor as y, closestCenter as b, useSensor as x, useSensors as ee } from "@dnd-kit/core";
|
|
@@ -17,6 +17,7 @@ export interface FieldRowProps {
|
|
|
17
17
|
mode?: "display" | "edit";
|
|
18
18
|
htmlFor?: string;
|
|
19
19
|
labelId?: string;
|
|
20
|
+
labelTitle?: string;
|
|
20
21
|
"data-testid"?: string;
|
|
21
22
|
}
|
|
22
|
-
export declare function FieldRow({ label, children, span, required, error, hint, actions, copyValue, mode, htmlFor, labelId, "data-testid": testId, }: FieldRowProps): import("react").JSX.Element;
|
|
23
|
+
export declare function FieldRow({ label, children, span, required, error, hint, actions, copyValue, mode, htmlFor, labelId, labelTitle, "data-testid": testId, }: FieldRowProps): import("react").JSX.Element;
|
|
@@ -3,6 +3,11 @@ import { type WidgetContext } from "../../../components/shared/ResponsiveActionB
|
|
|
3
3
|
import type { Action } from "../../../types/schema";
|
|
4
4
|
export interface ListHeaderProps {
|
|
5
5
|
title: string;
|
|
6
|
+
/** Localized explanation of this list, surfaced behind a small info
|
|
7
|
+
* affordance next to the title (screen description, fallback entity
|
|
8
|
+
* description). Empty = no affordance, header renders identically. The
|
|
9
|
+
* affordance is inline with the title baseline: zero height delta. */
|
|
10
|
+
description?: string;
|
|
6
11
|
/** Total matching rows, from the separate count query. Undefined while
|
|
7
12
|
* the count is in flight or after it failed. */
|
|
8
13
|
total: number | undefined;
|
|
@@ -28,4 +33,4 @@ export interface ListHeaderProps {
|
|
|
28
33
|
/** Dispatch surface threaded into ResponsiveActionBar (plan §8 Task 10). */
|
|
29
34
|
widgetContext: WidgetContext;
|
|
30
35
|
}
|
|
31
|
-
export declare function ListHeader({ title, total, countMode, countPending, loaded, toolbarActions, screenActionLayout, entityActionLayout, selectedIds, data, rowKey, onActionSuccess, widgetContext, }: ListHeaderProps): import("react").JSX.Element;
|
|
36
|
+
export declare function ListHeader({ title, description, total, countMode, countPending, loaded, toolbarActions, screenActionLayout, entityActionLayout, selectedIds, data, rowKey, onActionSuccess, widgetContext, }: ListHeaderProps): import("react").JSX.Element;
|