@declarion/react 0.59.2 → 0.61.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/dist-lib/{AgentChatPanel.impl-DBH1Ff4G.js → AgentChatPanel.impl-rgkewyMl.js} +40 -40
- package/dist-lib/{DetailAuditStrip-9eJM2Fml.js → DetailAuditStrip-CSXZoy7v.js} +12 -12
- package/dist-lib/{DraggableChildrenTable-4RZC351U.js → DraggableChildrenTable-DruYOxKm.js} +35 -35
- package/dist-lib/{Grid-CQabaBLx.js → Grid-Dsf3I0xG.js} +3 -3
- package/dist-lib/{LayoutRenderer-DGKWZKpW.js → LayoutRenderer-QN7Wp2W6.js} +465 -465
- package/dist-lib/{ListCardsBody-DfGmyNIu.js → ListCardsBody-CNaZ0xwz.js} +27 -27
- package/dist-lib/{MarkdownRenderer-BDbzDv_y.js → MarkdownRenderer-BuO5hYJh.js} +2 -2
- package/dist-lib/{RefreshControl-Bhoib0ZA.js → RefreshControl-DO9rYcdq.js} +27 -27
- package/dist-lib/{SmartDetailPage.impl-DFjz29Ff.js → SmartDetailPage.impl-DFIIx80b.js} +471 -471
- package/dist-lib/SmartListPage.impl-D694R32H.js +3051 -0
- package/dist-lib/SmartRecordListPage.impl-CB5cuQJV.js +780 -0
- package/dist-lib/{SortHeaderMenu-Cijxk4cX.js → SortHeaderMenu-BV-aQbPy.js} +2 -2
- package/dist-lib/{action-dispatch-DY0c8U81.js → action-dispatch-gWmOYjOP.js} +189 -189
- package/dist-lib/api/data.d.ts +5 -1
- package/dist-lib/{cardProjection-Bkl2SSYz.js → cardProjection-BnmWukxk.js} +1 -1
- package/dist-lib/components/pages/list/filter-meta.d.ts +1 -1
- package/dist-lib/components/pages/list/useActiveView.d.ts +9 -2
- package/dist-lib/components/pages/list/useListViews.d.ts +3 -2
- package/dist-lib/components/primitives/Fields.d.ts +3 -1
- package/dist-lib/{failure-v-uGSpbX.js → failure-BUxXuP4c.js} +6 -6
- package/dist-lib/{format-count-DA4wmmWR.js → format-count-bXVfHzbI.js} +247 -247
- package/dist-lib/hooks/useObject.d.ts +3 -2
- package/dist-lib/index.js +1055 -1047
- package/dist-lib/lib/field-classification.d.ts +10 -1
- package/dist-lib/{peekDraftStore-D-cTbiIr.js → peekDraftStore-Dk1Ha5u3.js} +7 -7
- package/dist-lib/{registry-Cb3W-czW.js → registry-nSeHd5si.js} +445 -439
- package/dist-lib/testing.js +3 -3
- package/dist-lib/types/api.d.ts +0 -1
- package/dist-lib/{useAgentConversation-D97IqE-J.js → useAgentConversation-nT5UypJX.js} +15 -15
- package/dist-lib/{useCurrentScreen-BL5NZFCw.js → useCurrentScreen-0WBj7wT6.js} +1176 -1090
- package/dist-lib/{useListQuery-BG1GyKtJ.js → useListQuery-C7dq_sEo.js} +5 -5
- package/dist-lib/{field-classification-C28XE-_P.js → useOwnRefresh-q80kCMMh.js} +134 -160
- package/dist-lib/{useProperties-4Lg3odrt.js → useProperties-CeGKtq7Q.js} +3 -3
- package/dist-lib/{useTabSearchMirror-ZVLlINBX.js → useTabSearchMirror-CzNAj82Q.js} +2 -2
- package/dist-lib/{useText-BFDCTUSo.js → useText-BsedsJ-J.js} +2 -2
- package/dist-lib/{value-By1-WJ8J.js → value-Dwfyghtj.js} +1 -1
- package/package.json +9 -9
- package/dist-lib/SmartListPage.impl-BrZLE_Gb.js +0 -3046
- package/dist-lib/SmartRecordListPage.impl-C1FJLr80.js +0 -780
package/dist-lib/testing.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as r, p as i, s as a } from "./useText-
|
|
3
|
-
import { _ as o, c as s, g as c, v as l } from "./failure-
|
|
1
|
+
import { hn as e, r as t, t as n } from "./useCurrentScreen-0WBj7wT6.js";
|
|
2
|
+
import { E as r, p as i, s as a } from "./useText-BsedsJ-J.js";
|
|
3
|
+
import { _ as o, c as s, g as c, v as l } from "./failure-BUxXuP4c.js";
|
|
4
4
|
import { useState as u } from "react";
|
|
5
5
|
import { MemoryRouter as d, useLocation as f } from "react-router";
|
|
6
6
|
import { QueryClient as p, QueryClientProvider as m } from "@tanstack/react-query";
|
package/dist-lib/types/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as e,
|
|
2
|
-
import { $ as a, P as o, p as s, t as c } from "./useText-
|
|
3
|
-
import { p as l } from "./failure-
|
|
1
|
+
import { A as e, Jn as t, Vn as n, j as r, k as i } from "./useCurrentScreen-0WBj7wT6.js";
|
|
2
|
+
import { $ as a, P as o, p as s, t as c } from "./useText-BsedsJ-J.js";
|
|
3
|
+
import { p as l } from "./failure-BUxXuP4c.js";
|
|
4
4
|
import { useCallback as u, useEffect as d, useRef as f, useState as p } from "react";
|
|
5
5
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/agents/AgentElicitForm.tsx
|
|
@@ -51,13 +51,13 @@ function g({ message: e, schema: n, onSubmit: r, onCancel: i }) {
|
|
|
51
51
|
]
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
function _({ name: e, prop: t, required:
|
|
55
|
-
let o = (t.title ?? y(e)) + (
|
|
54
|
+
function _({ name: e, prop: t, required: r, value: i, onChange: a }) {
|
|
55
|
+
let o = (t.title ?? y(e)) + (r ? " *" : ""), s = t.description;
|
|
56
56
|
return t.enum ? /* @__PURE__ */ m(v, {
|
|
57
57
|
label: o,
|
|
58
58
|
help: s,
|
|
59
59
|
children: /* @__PURE__ */ h("select", {
|
|
60
|
-
value:
|
|
60
|
+
value: n(i),
|
|
61
61
|
onChange: (e) => a(e.target.value),
|
|
62
62
|
className: "w-full rounded-md border border-border bg-card p-2 text-sm",
|
|
63
63
|
children: [/* @__PURE__ */ m("option", {
|
|
@@ -99,7 +99,7 @@ function _({ name: e, prop: t, required: n, value: i, onChange: a }) {
|
|
|
99
99
|
step: t.type === "integer" ? 1 : "any",
|
|
100
100
|
min: t.minimum,
|
|
101
101
|
max: t.maximum,
|
|
102
|
-
value: i == null ? "" :
|
|
102
|
+
value: i == null ? "" : n(i),
|
|
103
103
|
onChange: (e) => {
|
|
104
104
|
a(e.target.value === "" ? void 0 : Number(e.target.value));
|
|
105
105
|
},
|
|
@@ -110,7 +110,7 @@ function _({ name: e, prop: t, required: n, value: i, onChange: a }) {
|
|
|
110
110
|
help: s,
|
|
111
111
|
children: /* @__PURE__ */ m("textarea", {
|
|
112
112
|
rows: 3,
|
|
113
|
-
value:
|
|
113
|
+
value: n(i),
|
|
114
114
|
onChange: (e) => a(e.target.value),
|
|
115
115
|
className: "w-full rounded-md border border-border bg-card p-2 text-sm"
|
|
116
116
|
})
|
|
@@ -119,7 +119,7 @@ function _({ name: e, prop: t, required: n, value: i, onChange: a }) {
|
|
|
119
119
|
help: s,
|
|
120
120
|
children: /* @__PURE__ */ m("input", {
|
|
121
121
|
type: t.format === "email" ? "email" : t.format === "url" ? "url" : t.format === "date-time" ? "datetime-local" : "text",
|
|
122
|
-
value:
|
|
122
|
+
value: n(i),
|
|
123
123
|
onChange: (e) => a(e.target.value),
|
|
124
124
|
className: "w-full rounded-md border border-border bg-card p-2 text-sm"
|
|
125
125
|
})
|
|
@@ -493,7 +493,7 @@ function Z(t) {
|
|
|
493
493
|
payload: i
|
|
494
494
|
});
|
|
495
495
|
};
|
|
496
|
-
|
|
496
|
+
r.addEventListener(i, t);
|
|
497
497
|
let a = (e, t) => {
|
|
498
498
|
switch (t.kind) {
|
|
499
499
|
case "turn.started":
|
|
@@ -512,9 +512,9 @@ function Z(t) {
|
|
|
512
512
|
break;
|
|
513
513
|
}
|
|
514
514
|
case "text.delta": {
|
|
515
|
-
let
|
|
516
|
-
if (!i || !
|
|
517
|
-
h((t) => Y(t, e, i,
|
|
515
|
+
let r = n(t.payload?.text), i = X(t);
|
|
516
|
+
if (!i || !r) break;
|
|
517
|
+
h((t) => Y(t, e, i, r));
|
|
518
518
|
break;
|
|
519
519
|
}
|
|
520
520
|
case "elicit.pending":
|
|
@@ -549,8 +549,8 @@ function Z(t) {
|
|
|
549
549
|
let e = Q.current;
|
|
550
550
|
e && $(e);
|
|
551
551
|
};
|
|
552
|
-
return
|
|
553
|
-
|
|
552
|
+
return r.addEventListener(e, o), () => {
|
|
553
|
+
r.removeEventListener(i, t), r.removeEventListener(e, o);
|
|
554
554
|
};
|
|
555
555
|
}, [$]);
|
|
556
556
|
let ne = u(async (e) => {
|