@declarion/react 0.54.0 → 0.56.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-CPoUY99R.js → DraggableChildrenTable-BV5sb8Uo.js} +32 -32
- package/dist-lib/{Grid--QAEby8k.js → Grid-DWgUPuZ3.js} +45 -45
- package/dist-lib/{JsonEditor-DoNmyrYd.js → JsonEditor-Dz1PQHC8.js} +2 -2
- package/dist-lib/{LayoutRenderer-BxZ7Nd9b.js → LayoutRenderer-C9AH9cXf.js} +716 -714
- package/dist-lib/{ListCardsBody-BPV4GPrv.js → ListCardsBody-DXcDg536.js} +29 -29
- package/dist-lib/{MarkdownRenderer-CIKuh_0i.js → MarkdownRenderer-CcSFc2N3.js} +1 -1
- package/dist-lib/{RefreshControl-DMLkZP3R.js → RefreshControl-CNtN8zSl.js} +41 -41
- package/dist-lib/{SmartDetailPage.impl-SnNu6Ug-.js → SmartDetailPage.impl-lskCd-WG.js} +492 -492
- package/dist-lib/{SmartListPage.impl-C73pR7Iw.js → SmartListPage.impl-CrGbdzyK.js} +744 -743
- package/dist-lib/{SmartRecordListPage.impl-rJjQZe1V.js → SmartRecordListPage.impl-Bkl9aZJ8.js} +129 -129
- package/dist-lib/{SortHeaderMenu-DQ_KrkWk.js → SortHeaderMenu-SYSAaqQJ.js} +1 -1
- package/dist-lib/{action-dispatch-DsuUS7ae.js → action-dispatch-CR4ajBtT.js} +179 -179
- 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/events.d.ts +13 -4
- 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-BadzqyeQ.js → cardProjection-CW5RIMko.js} +24 -24
- 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 +2 -2
- 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 +7 -5
- 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 +4 -8
- 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/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-sMkkAEg9.js → field-classification-D6xQYn-h.js} +271 -400
- package/dist-lib/{format-count-B5SLlNOb.js → format-count-Dobmi-Ji.js} +238 -238
- 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 +8 -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/useRealtimeThresholds.d.ts +1 -0
- 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 -2
- 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 +811 -811
- 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-query-keys.d.ts +22 -0
- package/dist-lib/lib/realtime-reconcile.d.ts +1 -10
- package/dist-lib/lib/realtime-resync.d.ts +23 -0
- 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-CbHFwz_F.js → peekDraftStore-5wQ7lq_V.js} +17 -17
- package/dist-lib/{registry-D0RhCnEL.js → registry-CjgUaF7C.js} +511 -511
- package/dist-lib/stores/auth.d.ts +1 -1
- package/dist-lib/stores/preferences.d.ts +1 -1
- package/dist-lib/stores/realtime.d.ts +86 -19
- package/dist-lib/testing.d.ts +4 -4
- package/dist-lib/testing.js +40 -40
- package/dist-lib/types/api.d.ts +1 -1
- package/dist-lib/types/schema.d.ts +2 -2
- package/dist-lib/{useCurrentScreen-DVTXCj_K.js → useCurrentScreen-CzwzQpoW.js} +2476 -1967
- package/dist-lib/useListQuery-D7Hr5WM1.js +96 -0
- package/dist-lib/{useProperties-BcIz-MyO.js → useProperties-CqtCzFCr.js} +25 -25
- package/dist-lib/{useTabSearchMirror-UYCsopxP.js → useTabSearchMirror-C39U85cg.js} +13 -13
- package/dist-lib/{value-CQzGOI0F.js → value-Bo8C8WMU.js} +4 -4
- package/package.json +10 -10
- package/dist-lib/useListQuery-C2nq58YV.js +0 -90
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ApprovalScope, type AgentConversation, type AgentMessage, type AgentToolInvocation, type AgentTurn, type AvailableAgent } from "../api/agents";
|
|
1
|
+
import { type ApprovalScope, type AgentConversation, type AgentMessage, type AgentToolInvocation, type AgentTurn, type AvailableAgent } from "../api/agents.d.ts";
|
|
2
2
|
export interface AgentTurnState {
|
|
3
3
|
streaming: boolean;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ListParams, ListResponse } from "../types/api";
|
|
1
|
+
import type { ListParams, ListResponse } from "../types/api.d.ts";
|
|
2
2
|
/**
|
|
3
3
|
* Fetches every page of an entity list and concatenates the result into a
|
|
4
4
|
* single ListResponse whose `meta.total` is the true row count.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { PublicBranding } from "../types/api";
|
|
1
|
+
import type { PublicBranding } from "../types/api.d.ts";
|
|
2
2
|
export declare function useBranding(): {
|
|
3
3
|
branding: PublicBranding | undefined;
|
|
4
4
|
isLoading: boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare function useBrandingIdentity(): import("../types/api").BrandingIdentity | undefined;
|
|
7
|
-
export declare function useBrandingTheme(): import("../types/api").BrandingTheme | undefined;
|
|
8
|
-
export declare function useBrandingChromeValue(): import("../types/api").BrandingChrome | undefined;
|
|
6
|
+
export declare function useBrandingIdentity(): import("../types/api.d.ts").BrandingIdentity | undefined;
|
|
7
|
+
export declare function useBrandingTheme(): import("../types/api.d.ts").BrandingTheme | undefined;
|
|
8
|
+
export declare function useBrandingChromeValue(): import("../types/api.d.ts").BrandingChrome | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ResponsiveBreakpoints } from "../lib/viewport-category";
|
|
2
|
-
import type { BrandingBreakpoints, BrandingShellFlags, BrandingSurfaceFlags, BrandingViewport } from "../types/api";
|
|
1
|
+
import { type ResponsiveBreakpoints } from "../lib/viewport-category.d.ts";
|
|
2
|
+
import type { BrandingBreakpoints, BrandingShellFlags, BrandingSurfaceFlags, BrandingViewport } from "../types/api.d.ts";
|
|
3
3
|
export type BrandingChromeSurface = "list" | "detail" | "record_list" | "custom";
|
|
4
4
|
/**
|
|
5
5
|
* The deployment's declared viewport for the CURRENT presentation context.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ListResponse } from "../types/api";
|
|
1
|
+
import type { ListResponse } from "../types/api.d.ts";
|
|
2
2
|
export declare const ENTITY_CHILDREN_KEY: "entity-children";
|
|
3
3
|
export declare function useChildrenData(parentEntity: string, parentId: string, childCode: string, foreignKey: string | string[], sort?: string, limit?: number): import("@tanstack/react-query").UseQueryResult<ListResponse<Record<string, unknown>>, Error>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type QueryKey } from "@tanstack/react-query";
|
|
2
|
-
import type { Refs, V2Meta } from "../types/api";
|
|
3
|
-
import type { FilterNode } from "../lib/filters";
|
|
2
|
+
import type { Refs, V2Meta } from "../types/api.d.ts";
|
|
3
|
+
import type { FilterNode } from "../lib/filters.d.ts";
|
|
4
4
|
/**
|
|
5
5
|
* Query-key root for the cursor (infinite) entity list. Distinct from the
|
|
6
6
|
* offset list's `"entity-data"` so the SSE handler can RESET it (drop pages,
|
|
@@ -45,14 +45,14 @@ export interface CursorEntityDataParams {
|
|
|
45
45
|
* the page calls both this and useEntityData and enables exactly one.
|
|
46
46
|
*/
|
|
47
47
|
export declare function useCursorEntityData(entity: string | undefined, params: CursorEntityDataParams, enabled: boolean): {
|
|
48
|
-
rows: (Record<string, unknown> & import("../api/entities").RowHelpers)[];
|
|
48
|
+
rows: (Record<string, unknown> & import("../api/entities.d.ts").RowHelpers)[];
|
|
49
49
|
refs: Refs | undefined;
|
|
50
50
|
total: number | undefined;
|
|
51
51
|
countMode: string | undefined;
|
|
52
52
|
countUnknown: boolean;
|
|
53
53
|
hasMore: boolean;
|
|
54
54
|
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<{
|
|
55
|
-
data: (Record<string, unknown> & import("../api/entities").RowHelpers)[];
|
|
55
|
+
data: (Record<string, unknown> & import("../api/entities.d.ts").RowHelpers)[];
|
|
56
56
|
meta: V2Meta;
|
|
57
57
|
$refs: Refs;
|
|
58
58
|
reset: boolean;
|
|
@@ -63,7 +63,7 @@ export declare function useCursorEntityData(entity: string | undefined, params:
|
|
|
63
63
|
isError: boolean;
|
|
64
64
|
error: Error | null;
|
|
65
65
|
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<{
|
|
66
|
-
data: (Record<string, unknown> & import("../api/entities").RowHelpers)[];
|
|
66
|
+
data: (Record<string, unknown> & import("../api/entities.d.ts").RowHelpers)[];
|
|
67
67
|
meta: V2Meta;
|
|
68
68
|
$refs: Refs;
|
|
69
69
|
reset: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Entity } from "../types/schema";
|
|
1
|
+
import type { Entity } from "../types/schema.d.ts";
|
|
2
2
|
export declare function useEntity(entityCode: string | undefined): Entity | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type QueryKey } from "@tanstack/react-query";
|
|
2
|
-
import type { ListParams, ListResponse } from "../types/api";
|
|
2
|
+
import type { ListParams, ListResponse } from "../types/api.d.ts";
|
|
3
3
|
/**
|
|
4
4
|
* The React Query key for an entity list-window read. The single source of
|
|
5
5
|
* truth for both `useEntityData` and a screen registering its PRIMARY read with
|
|
@@ -17,6 +17,13 @@ export declare function entityDataQueryKey(entity: string | undefined, params: L
|
|
|
17
17
|
* moment this query resolves, independent of count latency.
|
|
18
18
|
*/
|
|
19
19
|
export declare function useEntityData(entity: string | undefined, params: ListParams, enabled?: boolean): import("@tanstack/react-query").UseQueryResult<ListResponse<Record<string, unknown>>, Error>;
|
|
20
|
+
/**
|
|
21
|
+
* The React Query key for an entity's count read, built from the same list
|
|
22
|
+
* params its window takes, so a list's window and count are named from one
|
|
23
|
+
* place. The page-window knobs are stripped: the count describes the whole
|
|
24
|
+
* filtered set, and must not refetch when only the page or sort moves.
|
|
25
|
+
*/
|
|
26
|
+
export declare function entityCountQueryKey(entity: string | undefined, params: ListParams): QueryKey;
|
|
20
27
|
/**
|
|
21
28
|
* useEntityCount fetches the total row count for a list view in a SEPARATE
|
|
22
29
|
* request from the window (`count: "only"` - the server skips the data
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
export declare function useImpersonation(): {
|
|
12
12
|
info: import("../types/api").ImpersonationInfo | null;
|
|
13
13
|
isImpersonating: boolean;
|
|
14
|
-
start: import("@tanstack/react-query").UseMutateFunction<import("../api/auth").ImpersonationStartResponse, Error, {
|
|
14
|
+
start: import("@tanstack/react-query").UseMutateFunction<import("../api/auth.d.ts").ImpersonationStartResponse, Error, {
|
|
15
15
|
targetUserId: string;
|
|
16
16
|
reason: string;
|
|
17
17
|
durationMinutes?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UseQueryResult } from "@tanstack/react-query";
|
|
2
|
-
import { type DataResponse, type EnrichedRow } from "../types/api";
|
|
3
|
-
import type { PkValues } from "../types/schema";
|
|
2
|
+
import { type DataResponse, type EnrichedRow } from "../types/api.d.ts";
|
|
3
|
+
import type { PkValues } from "../types/schema.d.ts";
|
|
4
4
|
export type LiveObjectResult<T extends Record<string, unknown> = EnrichedRow> = UseQueryResult<DataResponse<T>, Error> & {
|
|
5
5
|
object: T | undefined;
|
|
6
6
|
isLive: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type PkValues } from "../types/schema";
|
|
2
|
-
import type { ActionExecuteRequest } from "../api/data";
|
|
1
|
+
import { type PkValues } from "../types/schema.d.ts";
|
|
2
|
+
import type { ActionExecuteRequest } from "../api/data.d.ts";
|
|
3
3
|
export declare function useCreateObject(entityCode: string): import("@tanstack/react-query").UseMutationResult<import("..").DataResponse<Record<string, unknown>>, Error, Record<string, unknown>, unknown>;
|
|
4
4
|
export declare function useUpdateObject(entityCode: string): import("@tanstack/react-query").UseMutationResult<import("..").DataResponse<Record<string, unknown>>, Error, {
|
|
5
5
|
pkValues: PkValues | string;
|
|
@@ -7,7 +7,7 @@ export declare function useUpdateObject(entityCode: string): import("@tanstack/r
|
|
|
7
7
|
}, unknown>;
|
|
8
8
|
export declare function useDeleteObject(entityCode: string): import("@tanstack/react-query").UseMutationResult<void, Error, string | PkValues, unknown>;
|
|
9
9
|
export declare function useRestoreEntity(entityCode: string): import("@tanstack/react-query").UseMutationResult<void, Error, string | PkValues, unknown>;
|
|
10
|
-
export declare function useExecuteAction(entityCode?: string): import("@tanstack/react-query").UseMutationResult<import("../api/data").ActionExecuteResponse, Error, {
|
|
10
|
+
export declare function useExecuteAction(entityCode?: string): import("@tanstack/react-query").UseMutationResult<import("../api/data.d.ts").ActionExecuteResponse, Error, {
|
|
11
11
|
actionCode: string;
|
|
12
12
|
body: ActionExecuteRequest;
|
|
13
13
|
}, unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type QueryKey } from "@tanstack/react-query";
|
|
2
|
-
import type { PkValues } from "../types/schema";
|
|
2
|
+
import type { PkValues } from "../types/schema.d.ts";
|
|
3
3
|
/**
|
|
4
4
|
* The React Query key for a single-record read. Single source of truth for both
|
|
5
5
|
* `useObject` and a detail screen registering its PRIMARY read with its
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ParamLookup, ParamOverride, ResolvedParam } from "../types/api";
|
|
1
|
+
import type { ParamLookup, ParamOverride, ResolvedParam } from "../types/api.d.ts";
|
|
2
2
|
/** `$params` subresource key on a carrier's PK-detail / write payload. */
|
|
3
3
|
export declare const PARAMS_KEY = "$params";
|
|
4
4
|
/**
|
|
@@ -43,7 +43,7 @@ export declare function useCarrierParamOverrides({ carrierEntityCode, rowId, ena
|
|
|
43
43
|
* push-invalidated on the server, and edits invalidate this key directly.
|
|
44
44
|
*/
|
|
45
45
|
export declare function useAllParams(resolution?: "tenant"): import("@tanstack/react-query").UseQueryResult<ResolvedParam[], Error>;
|
|
46
|
-
export declare function usePublicParams(): import("@tanstack/react-query").UseQueryResult<import("../types/api").PublicParamsResponse, Error>;
|
|
46
|
+
export declare function usePublicParams(): import("@tanstack/react-query").UseQueryResult<import("../types/api.d.ts").PublicParamsResponse, Error>;
|
|
47
47
|
/**
|
|
48
48
|
* Looks up the platform's record for a parameter without a default.
|
|
49
49
|
* Returns the full ParamLookup envelope (`found`, `value`, `source`).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useRealtimeThresholds(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Entity, type Screen } from "../types/schema";
|
|
1
|
+
import { type Entity, type Screen } from "../types/schema.d.ts";
|
|
2
2
|
/**
|
|
3
3
|
* The embed-guarded tab registration shared by the schema-driven Smart pages
|
|
4
4
|
* (`useRegisterScreenTab`) and the public custom-screen hook (`useScreenTab`),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import { DEFAULT_RESPONSIVE_BREAKPOINTS, resolveViewportCategory, type ResponsiveBreakpoints, type ResponsiveMode, type ResponsiveViewport, type ViewportCategory } from "../lib/viewport-category";
|
|
2
|
+
import { DEFAULT_RESPONSIVE_BREAKPOINTS, resolveViewportCategory, type ResponsiveBreakpoints, type ResponsiveMode, type ResponsiveViewport, type ViewportCategory } from "../lib/viewport-category.d.ts";
|
|
3
3
|
export { DEFAULT_RESPONSIVE_BREAKPOINTS, resolveViewportCategory, type ResponsiveBreakpoints, type ResponsiveMode, type ResponsiveViewport, type ViewportCategory, };
|
|
4
4
|
export declare function clearViewportCssVariables(): void;
|
|
5
5
|
export interface ResponsiveModeProviderProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type QueryClient } from "@tanstack/react-query";
|
|
2
|
-
import { type ChangedObject, type EntityAction } from "../api/events";
|
|
2
|
+
import { type ChangedObject, type EntityAction } from "../api/events.d.ts";
|
|
3
3
|
export interface EntityChangedEvent {
|
|
4
4
|
entity: string;
|
|
5
5
|
action: EntityAction;
|
|
@@ -22,7 +22,6 @@ export declare function applyEntityChanges(queryClient: QueryClient, events: Ent
|
|
|
22
22
|
export declare function settleOwnWrite(queryClient: QueryClient, isAuthenticated: boolean, entity: string, rows: Array<Record<string, string>>, fallback: () => void): void;
|
|
23
23
|
export declare function evictEntityBackedQueries(queryClient: QueryClient): void;
|
|
24
24
|
export declare function liveEntityChanges(queryClient: QueryClient, isAuthenticated: boolean, events: EntityChangedEvent[]): EntityChangedEvent[];
|
|
25
|
-
export declare function refetchActiveSSEQueries(queryClient: QueryClient): void;
|
|
26
25
|
/**
|
|
27
26
|
* What a returning tab still has to ask for, once the replay covers the rest:
|
|
28
27
|
* the entities that are not `realtime: true` and the ones the relay degraded,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Screen } from "../types/schema";
|
|
1
|
+
import type { Screen } from "../types/schema.d.ts";
|
|
2
2
|
export declare function useScreen(screenCode: string | undefined): Screen | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { V2ListResponse } from "../types/api";
|
|
1
|
+
import type { V2ListResponse } from "../types/api.d.ts";
|
|
2
2
|
export declare function useTimelineData(parentEntity: string, parentId: string, childCode: string, foreignKey: string | string[], timeField: string | undefined, limit?: number): {
|
|
3
3
|
rows: Record<string, unknown>[];
|
|
4
|
-
refs: import("../types/api").Refs | undefined;
|
|
4
|
+
refs: import("../types/api.d.ts").Refs | undefined;
|
|
5
5
|
fetchNextPage: (options?: import("@tanstack/react-query").FetchNextPageOptions) => Promise<import("@tanstack/react-query").InfiniteQueryObserverResult<import("@tanstack/react-query").InfiniteData<V2ListResponse<Record<string, unknown>>, unknown>, Error>>;
|
|
6
6
|
hasOlder: boolean;
|
|
7
7
|
isFetchingOlder: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ViewItem } from "../components/list/ViewSwitcher";
|
|
1
|
+
import type { ViewItem } from "../components/list/ViewSwitcher.d.ts";
|
|
2
2
|
/**
|
|
3
3
|
* useViews fetches DB views for a screen and merges with system views (presets) from DSL.
|
|
4
4
|
* Returns a unified list with source tagging.
|