@declarion/react 0.54.1 → 0.57.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-Djc7QDzR.js → DraggableChildrenTable-BV5sb8Uo.js} +1 -1
- package/dist-lib/{Grid-Bd2r0_4J.js → Grid-DWgUPuZ3.js} +2 -2
- package/dist-lib/{JsonEditor-DoNmyrYd.js → JsonEditor-Dz1PQHC8.js} +2 -2
- package/dist-lib/{LayoutRenderer-V6nf9aa_.js → LayoutRenderer-C9AH9cXf.js} +8 -8
- package/dist-lib/{ListCardsBody-Cdsvu0Vs.js → ListCardsBody-DXcDg536.js} +4 -4
- package/dist-lib/{MarkdownRenderer-CZo5ZgM7.js → MarkdownRenderer-CcSFc2N3.js} +1 -1
- package/dist-lib/{RefreshControl-CJm3vz9p.js → RefreshControl-CNtN8zSl.js} +3 -3
- package/dist-lib/{SmartDetailPage.impl-DoIjCzjQ.js → SmartDetailPage.impl-lskCd-WG.js} +11 -11
- package/dist-lib/{SmartListPage.impl-DnM8e14t.js → SmartListPage.impl-CrGbdzyK.js} +12 -12
- package/dist-lib/{SmartRecordListPage.impl-BmHGYbD9.js → SmartRecordListPage.impl-Bkl9aZJ8.js} +10 -10
- package/dist-lib/{SortHeaderMenu-CA53NerB.js → SortHeaderMenu-SYSAaqQJ.js} +1 -1
- package/dist-lib/{action-dispatch-JcUrLFaW.js → action-dispatch-CR4ajBtT.js} +6 -6
- package/dist-lib/api/auth.d.ts +1 -1
- package/dist-lib/api/batch.d.ts +1 -1
- package/dist-lib/api/data.d.ts +3 -3
- package/dist-lib/api/entities.d.ts +1 -1
- package/dist-lib/api/params.d.ts +1 -1
- package/dist-lib/api/properties.d.ts +1 -1
- package/dist-lib/api/schema.d.ts +1 -1
- package/dist-lib/api/status.d.ts +1 -1
- package/dist-lib/{cardProjection-Q2kwqv8V.js → cardProjection-CW5RIMko.js} +7 -7
- package/dist-lib/components/actions/ActionButton.d.ts +1 -1
- package/dist-lib/components/actions/ActionDialog.d.ts +1 -1
- package/dist-lib/components/actions/ActionRunner.d.ts +1 -1
- package/dist-lib/components/actions/ObjectActionBar.d.ts +3 -3
- package/dist-lib/components/actions/PropertyGridEditor.d.ts +2 -2
- package/dist-lib/components/actions/ResponsiveActionBar.d.ts +2 -2
- package/dist-lib/components/actions/RowActionsKebab.d.ts +1 -1
- package/dist-lib/components/agents/AgentConversationDrawer.d.ts +1 -1
- package/dist-lib/components/agents/AgentPicker.d.ts +1 -1
- package/dist-lib/components/agents/transcript-runs.d.ts +1 -1
- package/dist-lib/components/chrome/AssociationTabs.d.ts +1 -1
- package/dist-lib/components/chrome/Breadcrumbs.d.ts +1 -1
- package/dist-lib/components/detail-layout/AssociatedBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/AssociatedToolbar.d.ts +1 -1
- package/dist-lib/components/detail-layout/ChildrenBlock.d.ts +3 -3
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +2 -2
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +3 -3
- package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +3 -3
- package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +3 -3
- package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/FieldsBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/LayoutColumn.d.ts +1 -1
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +3 -3
- package/dist-lib/components/detail-layout/LayoutRow.d.ts +1 -1
- package/dist-lib/components/detail-layout/LayoutTabs.d.ts +1 -1
- package/dist-lib/components/detail-layout/PropertiesBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/QuickAddForm.d.ts +2 -2
- package/dist-lib/components/detail-layout/SectionBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/StatusesBlock.d.ts +1 -1
- package/dist-lib/components/detail-layout/TimelineComposer.d.ts +2 -2
- package/dist-lib/components/detail-layout/blockMeta.d.ts +1 -1
- package/dist-lib/components/detail-layout/useQuickAdd.d.ts +2 -2
- package/dist-lib/components/detail-layout/widgets/WidgetHost.d.ts +1 -1
- package/dist-lib/components/fields/RefCombobox.d.ts +2 -2
- package/dist-lib/components/fields/cells/factories/host-icons.d.ts +1 -1
- package/dist-lib/components/fields/cells/registry.d.ts +2 -2
- package/dist-lib/components/fields/index.d.ts +3 -3
- package/dist-lib/components/file-widgets/helpers.d.ts +1 -1
- package/dist-lib/components/file-widgets/host.d.ts +3 -3
- package/dist-lib/components/file-widgets/payload.d.ts +2 -2
- package/dist-lib/components/file-widgets/types.d.ts +1 -1
- package/dist-lib/components/file-widgets/useEmbedFileSrc.d.ts +1 -1
- package/dist-lib/components/filters/FilterChips.d.ts +1 -1
- package/dist-lib/components/filters/FilterDrawer.d.ts +3 -3
- package/dist-lib/components/layout/CommandPalette.d.ts +2 -2
- package/dist-lib/components/layout/Layout.d.ts +3 -3
- package/dist-lib/components/layout/Rail.d.ts +2 -2
- package/dist-lib/components/layout/Sidebar.d.ts +1 -1
- package/dist-lib/components/layout/TabStrip.d.ts +1 -1
- package/dist-lib/components/layout/TenantChip.d.ts +1 -1
- package/dist-lib/components/layout/TopBar.d.ts +1 -1
- package/dist-lib/components/layout/tab-close.d.ts +1 -1
- package/dist-lib/components/list/InlineEditCell.d.ts +1 -1
- package/dist-lib/components/list/PeekFieldCell.d.ts +2 -2
- package/dist-lib/components/list/QuickPeek.d.ts +3 -3
- package/dist-lib/components/list/ViewSwitcher.d.ts +1 -1
- package/dist-lib/components/pages/DocumentsMenu.d.ts +1 -1
- package/dist-lib/components/pages/ExportMenu.d.ts +1 -1
- package/dist-lib/components/pages/RecordDocumentsPanel.d.ts +1 -1
- package/dist-lib/components/pages/auth/AuthShell.d.ts +1 -1
- package/dist-lib/components/pages/exportRequest.d.ts +1 -1
- package/dist-lib/components/pages/list/ListCardRow.d.ts +3 -3
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +3 -3
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +3 -3
- package/dist-lib/components/pages/list/ListHeader.d.ts +3 -3
- package/dist-lib/components/pages/list/ListNoRows.d.ts +1 -1
- package/dist-lib/components/pages/list/ListTable.d.ts +2 -2
- package/dist-lib/components/pages/list/ListTableRow.d.ts +1 -1
- package/dist-lib/components/pages/list/ListToolbar.d.ts +2 -2
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +1 -1
- package/dist-lib/components/pages/list/RowContextMenu.d.ts +1 -1
- package/dist-lib/components/pages/list/SortHeaderMenu.d.ts +1 -1
- package/dist-lib/components/pages/list/cardProjection.d.ts +2 -2
- package/dist-lib/components/pages/list/columns.d.ts +3 -3
- package/dist-lib/components/pages/list/filter-meta.d.ts +2 -2
- package/dist-lib/components/pages/list/sortable-header.d.ts +1 -1
- package/dist-lib/components/pages/list/table-features.d.ts +1 -1
- package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +4 -4
- package/dist-lib/components/pages/list/useListColumnLayout.d.ts +1 -1
- package/dist-lib/components/pages/list/useListQuery.d.ts +3 -3
- package/dist-lib/components/pages/list/useListRowInteraction.d.ts +4 -4
- package/dist-lib/components/pages/list/useListSelection.d.ts +2 -2
- package/dist-lib/components/pages/list/useListSort.d.ts +1 -1
- package/dist-lib/components/pages/list/useListViews.d.ts +3 -3
- package/dist-lib/components/pages/list/useRowMenu.d.ts +3 -3
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +1 -1
- package/dist-lib/components/params/param-editors.d.ts +1 -1
- package/dist-lib/components/primitives/ClassifiedFieldLocked.d.ts +1 -1
- package/dist-lib/components/shared/ErrorBoundary.d.ts +1 -1
- package/dist-lib/components/shared/MarkdownRenderer.d.ts +1 -1
- package/dist-lib/components/shared/StatusGroupsDisplay.d.ts +2 -2
- package/dist-lib/embed/screen-location.d.ts +1 -1
- package/dist-lib/{field-classification-ssZvtr8J.js → field-classification-D6xQYn-h.js} +4 -4
- package/dist-lib/{format-count-DHuivNT7.js → format-count-Dobmi-Ji.js} +7 -7
- package/dist-lib/hooks/useAgentConversation.d.ts +1 -1
- package/dist-lib/hooks/useAllEntityData.d.ts +1 -1
- package/dist-lib/hooks/useAssociatedData.d.ts +1 -1
- package/dist-lib/hooks/useBranding.d.ts +4 -4
- package/dist-lib/hooks/useBrandingChrome.d.ts +2 -2
- package/dist-lib/hooks/useChildrenData.d.ts +1 -1
- package/dist-lib/hooks/useCurrentScreen.d.ts +1 -1
- package/dist-lib/hooks/useCursorEntityData.d.ts +5 -5
- package/dist-lib/hooks/useEntity.d.ts +1 -1
- package/dist-lib/hooks/useEntityData.d.ts +1 -1
- package/dist-lib/hooks/useFilters.d.ts +1 -1
- package/dist-lib/hooks/useImpersonation.d.ts +1 -1
- package/dist-lib/hooks/useLiveObject.d.ts +2 -2
- package/dist-lib/hooks/useMutations.d.ts +3 -3
- package/dist-lib/hooks/useObject.d.ts +1 -1
- package/dist-lib/hooks/useParams.d.ts +2 -2
- package/dist-lib/hooks/useRegisterScreenTab.d.ts +1 -1
- package/dist-lib/hooks/useResponsiveMode.d.ts +1 -1
- package/dist-lib/hooks/useSSE.d.ts +1 -1
- package/dist-lib/hooks/useScreen.d.ts +1 -1
- package/dist-lib/hooks/useTimelineData.d.ts +2 -2
- package/dist-lib/hooks/useViews.d.ts +1 -1
- package/dist-lib/index.js +20 -20
- package/dist-lib/lib/action-dispatch.d.ts +2 -2
- package/dist-lib/lib/actions.d.ts +1 -1
- package/dist-lib/lib/brand-tokens.d.ts +1 -1
- package/dist-lib/lib/branding.d.ts +1 -1
- package/dist-lib/lib/child-config.d.ts +1 -1
- package/dist-lib/lib/children-validation.d.ts +2 -2
- package/dist-lib/lib/document-templates.d.ts +1 -1
- package/dist-lib/lib/evidence-verdict.d.ts +1 -1
- package/dist-lib/lib/mass-edit.d.ts +1 -1
- package/dist-lib/lib/messages.d.ts +2 -2
- package/dist-lib/lib/realtime-reconcile.d.ts +1 -1
- package/dist-lib/lib/realtime-resync.d.ts +1 -1
- package/dist-lib/lib/rich-text.d.ts +1 -1
- package/dist-lib/lib/schema-routing.d.ts +1 -1
- package/dist-lib/lib/screen-back.d.ts +1 -1
- package/dist-lib/lib/size-value.d.ts +1 -1
- package/dist-lib/lib/toast.d.ts +2 -2
- package/dist-lib/lib/ui-actions.d.ts +1 -1
- package/dist-lib/lib/variants.d.ts +1 -1
- package/dist-lib/{peekDraftStore-lm9ViVLA.js → peekDraftStore-5wQ7lq_V.js} +1 -1
- package/dist-lib/{registry-DsQFhEAD.js → registry-CjgUaF7C.js} +4 -4
- package/dist-lib/stores/auth.d.ts +1 -1
- package/dist-lib/stores/preferences.d.ts +1 -1
- package/dist-lib/testing.d.ts +4 -4
- package/dist-lib/testing.js +1 -1
- package/dist-lib/types/api.d.ts +1 -1
- package/dist-lib/types/schema.d.ts +2 -2
- package/dist-lib/{useCurrentScreen-aHx9HH1m.js → useCurrentScreen-CzwzQpoW.js} +13 -13
- package/dist-lib/{useListQuery-DZn2BAxY.js → useListQuery-D7Hr5WM1.js} +2 -2
- package/dist-lib/{useProperties-CAqKmUKg.js → useProperties-CqtCzFCr.js} +1 -1
- package/dist-lib/{useTabSearchMirror-DYW9WoK7.js → useTabSearchMirror-C39U85cg.js} +5 -5
- package/dist-lib/{value-CzKQPJOp.js → value-Bo8C8WMU.js} +1 -1
- package/package.json +13 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FilterRecord } from "./filter-evaluator";
|
|
2
|
-
import type { Entity, Screen } from "../types/schema";
|
|
2
|
+
import type { Entity, Screen } from "../types/schema.d.ts";
|
|
3
3
|
export declare function resolveEntityVariantCode(entity: Entity, record: FilterRecord): string | undefined;
|
|
4
4
|
export declare function variantActionCodesForRecord(entity: Entity | undefined, record: FilterRecord): ReadonlySet<string> | undefined;
|
|
5
5
|
export declare function commonVariantActionCodes(entity: Entity | undefined, records: readonly FilterRecord[]): ReadonlySet<string> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as e } from "./DynamicIcon-DW5krHuX.js";
|
|
2
|
-
import { Lr as t, Mr as n, Vr as r, en as i, hr as a, i as o, kr as s, nr as c } from "./useCurrentScreen-
|
|
2
|
+
import { Lr as t, Mr as n, Vr as r, en as i, hr as a, i as o, kr as s, nr as c } from "./useCurrentScreen-CzwzQpoW.js";
|
|
3
3
|
import { useMemo as l, useRef as u, useState as d } from "react";
|
|
4
4
|
import { useQuery as f } from "@tanstack/react-query";
|
|
5
5
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as e, t } from "./DynamicIcon-DW5krHuX.js";
|
|
2
|
-
import { $n as n, $t as r, Br as i, Cr as a, D as o, Er as s, F as c, Gn as l, H as u, Lr as d, Mr as f, O as p, Or as m, P as h, Q as g, Qn as _, Qt as v, V as y, Vr as b, W as x, X as S, Xt as C, Y as w, Zn as T, Zt as E, cr as D, en as O, et as k, gt as A, hr as j, i as M, in as N, jt as P, kr as F, ln as I, mr as L, nn as R, nr as z, q as B, tr as V, tt as H, un as U, wn as W, xt as ee, zr as G } from "./useCurrentScreen-
|
|
3
|
-
import { O as te } from "./field-classification-
|
|
4
|
-
import { c as ne, l as re, o as ie, t as ae } from "./action-dispatch-
|
|
2
|
+
import { $n as n, $t as r, Br as i, Cr as a, D as o, Er as s, F as c, Gn as l, H as u, Lr as d, Mr as f, O as p, Or as m, P as h, Q as g, Qn as _, Qt as v, V as y, Vr as b, W as x, X as S, Xt as C, Y as w, Zn as T, Zt as E, cr as D, en as O, et as k, gt as A, hr as j, i as M, in as N, jt as P, kr as F, ln as I, mr as L, nn as R, nr as z, q as B, tr as V, tt as H, un as U, wn as W, xt as ee, zr as G } from "./useCurrentScreen-CzwzQpoW.js";
|
|
3
|
+
import { O as te } from "./field-classification-D6xQYn-h.js";
|
|
4
|
+
import { c as ne, l as re, o as ie, t as ae } from "./action-dispatch-CR4ajBtT.js";
|
|
5
5
|
import { n as oe, r as se, t as K } from "./dataTableStyles-vwD1mVOP.js";
|
|
6
6
|
import { Component as ce, useCallback as q, useEffect as le, useId as ue, useMemo as J, useRef as Y, useState as X } from "react";
|
|
7
7
|
import { useInfiniteQuery as de, useQuery as fe, useQueryClient as pe } from "@tanstack/react-query";
|
|
@@ -206,7 +206,7 @@ function xe(e, t, n, r, i, a, s, c) {
|
|
|
206
206
|
//#region src/components/actions/ActionButton.tsx
|
|
207
207
|
function Se({ actionCode: n, action: r, entityCode: a, objectIds: o = [], row: s, variant: l = "outline", size: u = "default", onSuccess: d }) {
|
|
208
208
|
let [f, p] = X(!1), [m, _] = X(!1), { data: v } = U(), y = te(), { run: S } = M(), T = w(r), E = !s || x(r.conditions, s), D = q(async () => {
|
|
209
|
-
if (
|
|
209
|
+
if (r.association && o.length !== 0) {
|
|
210
210
|
p(!0);
|
|
211
211
|
try {
|
|
212
212
|
let e = a ? `${a}.${r.association}` : r.association, t = await N(e, o), n = B(v, t.target_entity);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BrandingPreferences } from "../types/api";
|
|
1
|
+
import type { BrandingPreferences } from "../types/api.d.ts";
|
|
2
2
|
export type ColorScheme = "light" | "dark";
|
|
3
3
|
export type AccentId = "violet" | "blue" | "teal" | "amber" | "rose";
|
|
4
4
|
export type Density = "compact" | "comfortable" | "cozy";
|
package/dist-lib/testing.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode } from "react";
|
|
2
2
|
import { type RenderResult } from "@testing-library/react";
|
|
3
3
|
import { QueryClient } from "@tanstack/react-query";
|
|
4
|
-
import { type ResponsiveViewport } from "./hooks/useResponsiveMode";
|
|
5
|
-
import { type ActionExecuteRequest, type ActionExecuteResponse } from "./api/data";
|
|
6
|
-
import type { Schema } from "./types/schema";
|
|
7
|
-
import type { DataResponse, ListMeta, ListResponse, Refs } from "./types/api";
|
|
4
|
+
import { type ResponsiveViewport } from "./hooks/useResponsiveMode.d.ts";
|
|
5
|
+
import { type ActionExecuteRequest, type ActionExecuteResponse } from "./api/data.d.ts";
|
|
6
|
+
import type { Schema } from "./types/schema.d.ts";
|
|
7
|
+
import type { DataResponse, ListMeta, ListResponse, Refs } from "./types/api.d.ts";
|
|
8
8
|
/** A single action's stubbed outcome: the action's RESULT payload (what
|
|
9
9
|
* executeDeclarionAction unwraps from response.result), or a function of the
|
|
10
10
|
* dispatched body returning it. The harness always wraps it in a success
|
package/dist-lib/testing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as e, Bt as t, cn as n, dn as r, jr as i, on as a, r as o, sn as s, t as c } from "./useCurrentScreen-
|
|
1
|
+
import { $t as e, Bt as t, cn as n, dn as r, jr as i, on as a, r as o, sn as s, t as c } from "./useCurrentScreen-CzwzQpoW.js";
|
|
2
2
|
import { useState as l } from "react";
|
|
3
3
|
import { MemoryRouter as u, useLocation as d } from "react-router";
|
|
4
4
|
import { QueryClient as f, QueryClientProvider as p } from "@tanstack/react-query";
|
package/dist-lib/types/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AccentDef, EntityField, LocalizedString } from "./schema";
|
|
2
2
|
import type { HydratedFile } from "./files";
|
|
3
|
-
import type { FilterNode } from "../lib/filters";
|
|
3
|
+
import type { FilterNode } from "../lib/filters.d.ts";
|
|
4
4
|
export interface ListMeta {
|
|
5
5
|
/**
|
|
6
6
|
* Total matching rows. Present only when the request asked for a count
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OrderedMap } from "./ordmap";
|
|
2
2
|
import type { FileFieldDef } from "./files";
|
|
3
|
-
import type { IconDef } from "../stores/icon-registry";
|
|
4
|
-
import type { FilterNode } from "../lib/filters";
|
|
3
|
+
import type { IconDef } from "../stores/icon-registry.d.ts";
|
|
4
|
+
import type { FilterNode } from "../lib/filters.d.ts";
|
|
5
5
|
export { OrderedMap };
|
|
6
6
|
export type { IconDef };
|
|
7
7
|
export type LocalizedString = Record<string, string>;
|
|
@@ -1795,7 +1795,7 @@ var H = {
|
|
|
1795
1795
|
function qt() {
|
|
1796
1796
|
H.channel || typeof BroadcastChannel > "u" || (H.channel = Kt(), H.channel && H.channel.addEventListener("message", (e) => {
|
|
1797
1797
|
let t = e.data;
|
|
1798
|
-
if (
|
|
1798
|
+
if (t && t.type === "drift" && t.delta && !H.hasReportedDrift) {
|
|
1799
1799
|
H.hasReportedDrift = !0;
|
|
1800
1800
|
for (let e of H.listeners) e(t.delta);
|
|
1801
1801
|
}
|
|
@@ -3183,7 +3183,7 @@ var X = {
|
|
|
3183
3183
|
update: vi,
|
|
3184
3184
|
dismiss: (e) => x.dismiss(e),
|
|
3185
3185
|
dismissAll: () => x.dismiss()
|
|
3186
|
-
}, yi = o(() => import("./MarkdownRenderer-
|
|
3186
|
+
}, yi = o(() => import("./MarkdownRenderer-CcSFc2N3.js").then((e) => ({ default: e.MarkdownRenderer })));
|
|
3187
3187
|
function bi() {
|
|
3188
3188
|
return /* @__PURE__ */ C("div", { className: "h-4 w-2/3 rounded bg-muted animate-pulse" });
|
|
3189
3189
|
}
|
|
@@ -3833,7 +3833,7 @@ function sa(e, t) {
|
|
|
3833
3833
|
//#region src/hooks/useEntity.ts
|
|
3834
3834
|
function ca(e) {
|
|
3835
3835
|
let { data: t } = J();
|
|
3836
|
-
if (
|
|
3836
|
+
if (t && e) return t.entities[e];
|
|
3837
3837
|
}
|
|
3838
3838
|
//#endregion
|
|
3839
3839
|
//#region src/components/fields/RefCombobox.tsx
|
|
@@ -3966,7 +3966,7 @@ function da({ field: e, value: t, mode: n, onChange: r, refs: i, fieldId: a, lab
|
|
|
3966
3966
|
}
|
|
3967
3967
|
//#endregion
|
|
3968
3968
|
//#region src/components/fields/JsonField.tsx
|
|
3969
|
-
var fa = o(() => import("./JsonEditor-
|
|
3969
|
+
var fa = o(() => import("./JsonEditor-Dz1PQHC8.js").then((e) => ({ default: e.JsonEditor })));
|
|
3970
3970
|
function pa() {
|
|
3971
3971
|
return /* @__PURE__ */ C("div", { className: "h-20 rounded-md border border-border bg-muted animate-pulse" });
|
|
3972
3972
|
}
|
|
@@ -4556,7 +4556,7 @@ function Ma({ field: e, fieldName: n, value: r, mode: i, onChange: a, fieldId: o
|
|
|
4556
4556
|
let e = c.trim();
|
|
4557
4557
|
if (!e) return;
|
|
4558
4558
|
let t = Number(e);
|
|
4559
|
-
isNaN(t)
|
|
4559
|
+
!isNaN(t) && Number.isInteger(t) && (a?.([...s, t]), l(""));
|
|
4560
4560
|
}, d = (e) => {
|
|
4561
4561
|
a?.(s.filter((t, n) => n !== e));
|
|
4562
4562
|
};
|
|
@@ -6429,7 +6429,7 @@ function il(e) {
|
|
|
6429
6429
|
let t = /* @__PURE__ */ new Set(), n = [];
|
|
6430
6430
|
for (let r of e.split(",")) {
|
|
6431
6431
|
let e = r.trim();
|
|
6432
|
-
|
|
6432
|
+
e && !t.has(e) && (t.add(e), n.push(e));
|
|
6433
6433
|
}
|
|
6434
6434
|
return n;
|
|
6435
6435
|
}
|
|
@@ -6772,9 +6772,9 @@ function wl({ open: e, onOpenChange: n, action: r, actionName: i, onSubmit: a, i
|
|
|
6772
6772
|
e && x.current?.focus();
|
|
6773
6773
|
}, [e]);
|
|
6774
6774
|
let T = d(() => g ? Array.from(g) : [], [g]), E = d(() => {
|
|
6775
|
-
if (
|
|
6775
|
+
if (r.entity && f) return f.entities[r.entity]?.status_groups;
|
|
6776
6776
|
}, [r.entity, f]), D = d(() => {
|
|
6777
|
-
if (
|
|
6777
|
+
if (r.entity && f) return f.entities[r.entity];
|
|
6778
6778
|
}, [r.entity, f]), O = d(() => {
|
|
6779
6779
|
if (D) {
|
|
6780
6780
|
for (let [e, t] of D.fields) if (t.primary) return e;
|
|
@@ -7927,11 +7927,11 @@ var Eu = class {
|
|
|
7927
7927
|
}
|
|
7928
7928
|
takeInKey(e, t) {
|
|
7929
7929
|
let n = $.getState(), r = t.queryKey;
|
|
7930
|
-
for (let i of e) i.keys.has(t.queryHash)
|
|
7930
|
+
for (let i of e) !i.keys.has(t.queryHash) && wu(i.scope, r) && n.updateResync(i.id, { keys: new Map([...i.keys, [t.queryHash, r]]) });
|
|
7931
7931
|
}
|
|
7932
7932
|
fetchAgainIfJoinedEarlier(e, t) {
|
|
7933
7933
|
let n = this.record.lastSettled.get(t);
|
|
7934
|
-
|
|
7934
|
+
e.some((e) => e.issued && !e.standing && e.keys.has(t.queryHash) && (n === void 0 || n <= e.generation)) && Cu(t) && this.queryClient.invalidateQueries({
|
|
7935
7935
|
queryKey: t.queryKey,
|
|
7936
7936
|
exact: !0
|
|
7937
7937
|
}, { cancelRefetch: !1 });
|
|
@@ -8366,10 +8366,10 @@ function md() {
|
|
|
8366
8366
|
S();
|
|
8367
8367
|
let t = $.getState().thresholds;
|
|
8368
8368
|
t !== null && t !== "unreadable" && (g = setTimeout(() => {
|
|
8369
|
-
g = null,
|
|
8369
|
+
g = null, d && p === e && (e.silent = !0, $.getState().holdConnectionInterruption());
|
|
8370
8370
|
}, t.silenceMs));
|
|
8371
8371
|
}, w = (e) => {
|
|
8372
|
-
|
|
8372
|
+
d && p === e && e.stated && (e.silent && (e.silent = !1, $.getState().clearConnectionInterruption()), C(e));
|
|
8373
8373
|
}, T = $.subscribe((e, t) => {
|
|
8374
8374
|
e.thresholds !== t.thresholds && p?.stated && !p.silent && C(p);
|
|
8375
8375
|
}), E = (e) => {
|
|
@@ -8560,7 +8560,7 @@ function _d(e) {
|
|
|
8560
8560
|
function vd(e) {
|
|
8561
8561
|
if (!e || typeof e != "object") return;
|
|
8562
8562
|
let t = e.result;
|
|
8563
|
-
|
|
8563
|
+
t && typeof t == "object" && "impersonation_session_id" in t && window.location.assign("/");
|
|
8564
8564
|
}
|
|
8565
8565
|
function yd(e) {
|
|
8566
8566
|
if (e instanceof vr) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bt as e, l as t, s as n, vt as r, xt as i, yt as a } from "./useCurrentScreen-
|
|
2
|
-
import { g as o } from "./field-classification-
|
|
1
|
+
import { bt as e, l as t, s as n, vt as r, xt as i, yt as a } from "./useCurrentScreen-CzwzQpoW.js";
|
|
2
|
+
import { g as o } from "./field-classification-D6xQYn-h.js";
|
|
3
3
|
import { useCallback as s, useEffect as c, useMemo as l, useState as u } from "react";
|
|
4
4
|
import { useQueryClient as d } from "@tanstack/react-query";
|
|
5
5
|
//#region src/components/pages/list/useListQuery.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { en as e, jt as t } from "./useCurrentScreen-
|
|
1
|
+
import { en as e, jt as t } from "./useCurrentScreen-CzwzQpoW.js";
|
|
2
2
|
import { useMutation as n, useQueryClient as r } from "@tanstack/react-query";
|
|
3
3
|
//#region src/api/status.ts
|
|
4
4
|
async function i(t, n, r, i, a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vt as e, mr as t, nr as n } from "./useCurrentScreen-
|
|
2
|
-
import { M as r } from "./field-classification-
|
|
1
|
+
import { Vt as e, mr as t, nr as n } from "./useCurrentScreen-CzwzQpoW.js";
|
|
2
|
+
import { M as r } from "./field-classification-D6xQYn-h.js";
|
|
3
3
|
import { useEffect as i, useLayoutEffect as a } from "react";
|
|
4
4
|
import { useSearchParams as o } from "react-router";
|
|
5
5
|
//#region src/lib/filters.ts
|
|
@@ -73,7 +73,7 @@ function p(e) {
|
|
|
73
73
|
}
|
|
74
74
|
function m(e) {
|
|
75
75
|
let t = [];
|
|
76
|
-
for (let n of e)
|
|
76
|
+
for (let n of e) n && typeof n == "object" && (n.field && n.op && t.push(n), n.or && t.push(...m(n.or)), n.and && t.push(...m(n.and)));
|
|
77
77
|
return t;
|
|
78
78
|
}
|
|
79
79
|
function h(e) {
|
|
@@ -101,7 +101,7 @@ function _(e, t) {
|
|
|
101
101
|
}
|
|
102
102
|
function v(e, t) {
|
|
103
103
|
let n = [];
|
|
104
|
-
for (let r of e) if (
|
|
104
|
+
for (let r of e) if (r && typeof r == "object" && r.field !== t) {
|
|
105
105
|
if (r.or) {
|
|
106
106
|
let e = v(r.or, t);
|
|
107
107
|
e.length > 0 && n.push({
|
|
@@ -141,7 +141,7 @@ var b = new Set(Object.keys(l));
|
|
|
141
141
|
function x(t, n, a, o) {
|
|
142
142
|
let s = e();
|
|
143
143
|
i(() => {
|
|
144
|
-
|
|
144
|
+
t && !s.enabled && r.getState().openTab({
|
|
145
145
|
pathname: t,
|
|
146
146
|
search: o,
|
|
147
147
|
title: n,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { An as e, Nn as t, Wn as n, jn as r } from "./useCurrentScreen-
|
|
1
|
+
import { An as e, Nn as t, Wn as n, jn as r } from "./useCurrentScreen-CzwzQpoW.js";
|
|
2
2
|
import { useCallback as i, useEffect as a, useRef as o, useState as s } from "react";
|
|
3
3
|
//#region src/embed/file-src.ts
|
|
4
4
|
var c = "/api/files";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@declarion/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "React SDK for Declarion, the schema-driven business apps platform.",
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
"@radix-ui/react-slot": "^1.3.3",
|
|
68
68
|
"@tanstack/react-query": "^5.102.8",
|
|
69
69
|
"@tanstack/react-table": "^9.2.4",
|
|
70
|
-
"@tanstack/react-virtual": "^3.14.
|
|
70
|
+
"@tanstack/react-virtual": "^3.14.13",
|
|
71
71
|
"class-variance-authority": "^0.7.1",
|
|
72
72
|
"clsx": "^2.1.1",
|
|
73
73
|
"date-fns": "^4.4.0",
|
|
74
|
-
"lucide-react": "^1.
|
|
74
|
+
"lucide-react": "^1.46.0",
|
|
75
75
|
"mdast-util-to-string": "^4.0.0",
|
|
76
76
|
"monaco-editor": "^0.56.0",
|
|
77
77
|
"react-markdown": "^10.1.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"remark-gfm": "^4.0.1",
|
|
83
83
|
"remark-parse": "^11.0.0",
|
|
84
84
|
"sonner": "^2.0.8",
|
|
85
|
-
"tailwind-merge": "^3.
|
|
85
|
+
"tailwind-merge": "^3.7.0",
|
|
86
86
|
"unified": "^11.0.5",
|
|
87
87
|
"vanilla-jsoneditor": "^3.13.0",
|
|
88
88
|
"zustand": "^5.0.15"
|
|
@@ -91,12 +91,13 @@
|
|
|
91
91
|
"@axe-core/react": "^4.13.0",
|
|
92
92
|
"@tailwindcss/typography": "^0.5.20",
|
|
93
93
|
"@tailwindcss/vite": "^4.3.3",
|
|
94
|
-
"@testing-library/dom": "^10.4.
|
|
94
|
+
"@testing-library/dom": "^10.4.2",
|
|
95
95
|
"@testing-library/jest-dom": "^7.0.1",
|
|
96
96
|
"@testing-library/react": "^16.3.3",
|
|
97
97
|
"@testing-library/user-event": "^14.6.7",
|
|
98
|
-
"@types/react": "^19.
|
|
99
|
-
"@types/react-dom": "^19.
|
|
98
|
+
"@types/react": "^19.3.0",
|
|
99
|
+
"@types/react-dom": "^19.3.0",
|
|
100
|
+
"@typescript/native": "npm:typescript@^7.0.2",
|
|
100
101
|
"@vitejs/plugin-react": "^6.1.1",
|
|
101
102
|
"@vitest/coverage-v8": "^5.0.0",
|
|
102
103
|
"axe-core": "^4.13.0",
|
|
@@ -105,13 +106,13 @@
|
|
|
105
106
|
"jsdom": "^30.0.1",
|
|
106
107
|
"msw": "^2.15.0",
|
|
107
108
|
"publint": "^0.3.24",
|
|
108
|
-
"react": "^19.
|
|
109
|
-
"react-dom": "^19.
|
|
109
|
+
"react": "^19.3.0",
|
|
110
|
+
"react-dom": "^19.3.0",
|
|
110
111
|
"tailwindcss": "^4.3.3",
|
|
111
|
-
"tsc-alias": "^1.9.
|
|
112
|
-
"typescript": "
|
|
112
|
+
"tsc-alias": "^1.9.5",
|
|
113
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
113
114
|
"typescript-eslint": "^8.70.0",
|
|
114
|
-
"vite": "^8.
|
|
115
|
+
"vite": "^8.3.0",
|
|
115
116
|
"vitest": "^5.0.0"
|
|
116
117
|
},
|
|
117
118
|
"scripts": {
|