@declarion/react 0.45.0 → 0.47.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/{DraggableChildrenTable-BDnJK0AU.js → DraggableChildrenTable-B6KjWkwD.js} +2 -2
- package/dist-lib/{DynamicIcon-DeRpAaXm.js → DynamicIcon-Dc2j-rg_.js} +19 -17
- package/dist-lib/{Grid-CcCveEE7.js → Grid-OdquWJNX.js} +2 -2
- package/dist-lib/{LayoutRenderer-BReuhVdX.js → LayoutRenderer-CzAdhjNT.js} +525 -518
- package/dist-lib/{MarkdownRenderer-DPKDFR60.js → MarkdownRenderer-C6bhrAIe.js} +10 -10
- package/dist-lib/{RefreshControl-KddgOhUG.js → RefreshControl-F9Ib9asP.js} +18 -18
- package/dist-lib/{SmartDetailPage.impl-D_hMxiHy.js → SmartDetailPage.impl-DdSu3kmW.js} +305 -294
- package/dist-lib/{SmartRecordListPage.impl-GIo_mPIJ.js → SmartRecordListPage.impl-SkIp0_Rd.js} +165 -154
- package/dist-lib/api/agents.d.ts +39 -7
- package/dist-lib/components/agents/AgentChatPanel.d.ts +6 -1
- package/dist-lib/components/agents/transcript-runs.d.ts +29 -0
- package/dist-lib/components/file-widgets/host.d.ts +1 -0
- package/dist-lib/components/list/QuickPeek.d.ts +1 -1
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +4 -2
- package/dist-lib/components/pages/list/cardProjection.d.ts +2 -1
- package/dist-lib/components/shared/RowActionsKebab.d.ts +3 -2
- package/dist-lib/components/views/ViewSwitcher.d.ts +2 -1
- package/dist-lib/hooks/useAgentConversation.d.ts +7 -19
- package/dist-lib/hooks/useFilters.d.ts +1 -0
- package/dist-lib/icons.js +1 -1
- package/dist-lib/index.d.ts +8 -1
- package/dist-lib/index.js +3031 -2674
- package/dist-lib/lib/actions.d.ts +1 -1
- package/dist-lib/lib/filter-evaluator.d.ts +16 -0
- package/dist-lib/lib/filters.d.ts +10 -4
- package/dist-lib/lib/messages.d.ts +1 -0
- package/dist-lib/lib/variants.d.ts +7 -0
- package/dist-lib/{registry-DJKp0yaV.js → registry-C2VD-5MD.js} +571 -347
- package/dist-lib/testing.js +1 -1
- package/dist-lib/types/schema.d.ts +26 -0
- package/dist-lib/{useCurrentScreen-A3xZDs7U.js → useCurrentScreen-ow4r-nWa.js} +721 -693
- package/dist-lib/{useProperties-TlltWwLv.js → useProperties-lEKfzm2X.js} +92 -61
- package/dist-lib/{value-CHY7LgZ-.js → value-CXohNH6a.js} +1 -1
- package/dist-lib/vite/index.js +23 -22
- package/package.json +12 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as e, et as t } from "./useCurrentScreen-
|
|
1
|
+
import { H as e, et as t } from "./useCurrentScreen-ow4r-nWa.js";
|
|
2
2
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
import i, { defaultUrlTransform as a } from "react-markdown";
|
|
4
4
|
import o from "remark-breaks";
|
|
@@ -65,21 +65,21 @@ function m(t) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
function h({ content: e, plugins: t = "breaks", files: r, components: a, skipHtml: o = !0, prose: s = !0 }) {
|
|
68
|
-
let f =
|
|
68
|
+
let f = t === "gfm" ? u : l, h = {
|
|
69
|
+
a: p,
|
|
70
|
+
...r ? m(r) : {},
|
|
71
|
+
...a
|
|
72
|
+
}, g = /* @__PURE__ */ n(i, {
|
|
69
73
|
skipHtml: o,
|
|
70
|
-
remarkPlugins:
|
|
71
|
-
components:
|
|
72
|
-
a: p,
|
|
73
|
-
...r ? m(r) : {},
|
|
74
|
-
...a
|
|
75
|
-
},
|
|
74
|
+
remarkPlugins: f,
|
|
75
|
+
components: h,
|
|
76
76
|
urlTransform: r ? d : void 0,
|
|
77
77
|
children: e
|
|
78
78
|
});
|
|
79
79
|
return s ? /* @__PURE__ */ n("div", {
|
|
80
80
|
className: c,
|
|
81
|
-
children:
|
|
82
|
-
}) :
|
|
81
|
+
children: g
|
|
82
|
+
}) : g;
|
|
83
83
|
}
|
|
84
84
|
//#endregion
|
|
85
85
|
export { h as MarkdownRenderer };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as e } from "./DynamicIcon-
|
|
2
|
-
import { Gt as t, Qn as n, Rn as r, St as i, Tn as a, Zn as o, bt as s, cr as c, i as l, jt as u, lr as d, mt as f, or as p, pt as m, ur as h } from "./useCurrentScreen-
|
|
1
|
+
import { s as e } from "./DynamicIcon-Dc2j-rg_.js";
|
|
2
|
+
import { Gt as t, Qn as n, Rn as r, St as i, Tn as a, Zn as o, bt as s, cr as c, i as l, jt as u, lr as d, mt as f, or as p, pt as m, ur as h } from "./useCurrentScreen-ow4r-nWa.js";
|
|
3
3
|
import { useCallback as g, useEffect as _, useId as v, useMemo as y, useRef as b, useState as x } from "react";
|
|
4
4
|
import { useLocation as S } from "react-router";
|
|
5
5
|
import { useQuery as C, useQueryClient as w } from "@tanstack/react-query";
|
|
@@ -17,7 +17,7 @@ function A({ name: e, size: t = 22, color: n }) {
|
|
|
17
17
|
"#DCF6F1",
|
|
18
18
|
"#F1F6DC",
|
|
19
19
|
"#F6DCF1"
|
|
20
|
-
];
|
|
20
|
+
], o = n || a[i % a.length];
|
|
21
21
|
return /* @__PURE__ */ E("span", {
|
|
22
22
|
style: {
|
|
23
23
|
display: "inline-flex",
|
|
@@ -26,7 +26,7 @@ function A({ name: e, size: t = 22, color: n }) {
|
|
|
26
26
|
width: t,
|
|
27
27
|
height: t,
|
|
28
28
|
borderRadius: 999,
|
|
29
|
-
background:
|
|
29
|
+
background: o,
|
|
30
30
|
color: "#1E2A4A",
|
|
31
31
|
fontSize: t < 20 ? 9.5 : 10.5,
|
|
32
32
|
fontWeight: 600,
|
|
@@ -139,14 +139,14 @@ function te({ label: t, size: n = 14, ...r }) {
|
|
|
139
139
|
//#region src/components/primitives/RecordIdBadge.tsx
|
|
140
140
|
var ne = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i, re = 1200;
|
|
141
141
|
function ie({ value: t }) {
|
|
142
|
-
let [n, r] = x(!1), i = ne.test(t) ? `${t.slice(0, 8)}…` : t
|
|
142
|
+
let [n, r] = x(!1), i = ne.test(t) ? `${t.slice(0, 8)}…` : t, a = g(async () => {
|
|
143
|
+
try {
|
|
144
|
+
await navigator.clipboard.writeText(t), r(!0), window.setTimeout(() => r(!1), re);
|
|
145
|
+
} catch {}
|
|
146
|
+
}, [t]);
|
|
143
147
|
return /* @__PURE__ */ D("button", {
|
|
144
148
|
type: "button",
|
|
145
|
-
onClick:
|
|
146
|
-
try {
|
|
147
|
-
await navigator.clipboard.writeText(t), r(!0), window.setTimeout(() => r(!1), re);
|
|
148
|
-
} catch {}
|
|
149
|
-
}, [t]),
|
|
149
|
+
onClick: a,
|
|
150
150
|
title: n ? "Copied" : `Copy ${t}`,
|
|
151
151
|
className: "mono inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[11px] text-text-4 hover:bg-surface-2 hover:text-text-3 transition-colors shrink-0 border border-transparent hover:border-border",
|
|
152
152
|
children: [/* @__PURE__ */ E("span", { children: i }), n ? /* @__PURE__ */ E(e.check, { size: 10 }) : /* @__PURE__ */ E(e.copy, {
|
|
@@ -210,7 +210,7 @@ function de({ carrierEntityCode: e, rowId: t, enabled: n = !0, onWritten: r }) {
|
|
|
210
210
|
],
|
|
211
211
|
queryFn: () => i(e, t),
|
|
212
212
|
enabled: n && !!t,
|
|
213
|
-
staleTime:
|
|
213
|
+
staleTime: 3e4
|
|
214
214
|
}), u = l.data?.data, d = !!u && !("$params" in u), f = y(() => Array.isArray(u?.$params) ? u[V] : [], [u]), p = y(() => new Map(f.map((e) => [e.param_code, e])), [f]), m = g(async (n) => {
|
|
215
215
|
c(null);
|
|
216
216
|
try {
|
|
@@ -253,14 +253,14 @@ function fe(e) {
|
|
|
253
253
|
return C({
|
|
254
254
|
queryKey: ["params-all", e ?? "full"],
|
|
255
255
|
queryFn: () => ue(e),
|
|
256
|
-
staleTime:
|
|
256
|
+
staleTime: 3e4
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
function pe() {
|
|
260
260
|
return C({
|
|
261
261
|
queryKey: ["params-public"],
|
|
262
262
|
queryFn: le,
|
|
263
|
-
staleTime:
|
|
263
|
+
staleTime: 3e5
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
function me(e, t = {}) {
|
|
@@ -269,7 +269,7 @@ function me(e, t = {}) {
|
|
|
269
269
|
queryKey: ["params", e],
|
|
270
270
|
queryFn: () => B(e),
|
|
271
271
|
enabled: !!e && n,
|
|
272
|
-
staleTime:
|
|
272
|
+
staleTime: 6e4
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
function he(e) {
|
|
@@ -298,7 +298,7 @@ function _e(e, t) {
|
|
|
298
298
|
queryKey: ["params", e],
|
|
299
299
|
queryFn: () => B(e),
|
|
300
300
|
enabled: !!e,
|
|
301
|
-
staleTime:
|
|
301
|
+
staleTime: 6e4
|
|
302
302
|
}), r = n.data, i = !!r?.found;
|
|
303
303
|
return {
|
|
304
304
|
value: i ? r.value : t,
|
|
@@ -325,7 +325,7 @@ function U() {
|
|
|
325
325
|
}
|
|
326
326
|
//#endregion
|
|
327
327
|
//#region src/stores/page-state.ts
|
|
328
|
-
var W =
|
|
328
|
+
var W = 18e5, G = null;
|
|
329
329
|
function K(e) {
|
|
330
330
|
G = e;
|
|
331
331
|
}
|
|
@@ -497,12 +497,12 @@ function De() {
|
|
|
497
497
|
}, [t]);
|
|
498
498
|
}
|
|
499
499
|
function Oe(e, t = !0) {
|
|
500
|
-
let n = Z(S());
|
|
500
|
+
let n = Z(S()), r = e ? JSON.stringify(e) : "";
|
|
501
501
|
_(() => {
|
|
502
502
|
!t || !e || X.getState().registerQueryKey(n, e);
|
|
503
503
|
}, [
|
|
504
504
|
n,
|
|
505
|
-
|
|
505
|
+
r,
|
|
506
506
|
t
|
|
507
507
|
]);
|
|
508
508
|
}
|