@declarion/react 0.31.1 → 0.32.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-BzaZQtiI.js → ActionRunner-CaSrGpBi.js} +264 -260
- package/dist-lib/{DraggableChildrenTable-DILqStHQ.js → DraggableChildrenTable-CAHg7paQ.js} +1 -1
- package/dist-lib/{Grid-BIsiUwPh.js → Grid-DDbBhqcl.js} +2 -2
- package/dist-lib/{LayoutRenderer-3RvIsC9M.js → LayoutRenderer-CelsqsZ6.js} +433 -433
- package/dist-lib/{MarkdownRenderer-CaHhWrfm.js → MarkdownRenderer-DThy2ixe.js} +1 -1
- package/dist-lib/RefreshControl-CorluL6r.js +582 -0
- package/dist-lib/{SmartDetailPage.impl--EO-9fos.js → SmartDetailPage.impl-USIxbl-8.js} +449 -411
- package/dist-lib/{SmartRecordListPage.impl-B1iws8yf.js → SmartRecordListPage.impl-BKIpTNK7.js} +210 -210
- package/dist-lib/api/data.d.ts +4 -4
- package/dist-lib/api/params.d.ts +1 -1
- package/dist-lib/components/layout/Rail.d.ts +5 -5
- package/dist-lib/components/layout/TopBar.d.ts +3 -1
- package/dist-lib/components/pages/auth/AuthShell.d.ts +1 -1
- package/dist-lib/components/pages/list/ListHeader.d.ts +1 -1
- package/dist-lib/components/primitives/BrandLogo.d.ts +1 -1
- package/dist-lib/components/shared/ActionRunner.d.ts +1 -0
- package/dist-lib/components/shared/ObjectActionBar.d.ts +29 -0
- package/dist-lib/components/shared/PageHeader.d.ts +1 -1
- package/dist-lib/components/shared/RecordHeader.d.ts +2 -1
- package/dist-lib/components/shared/RefreshControl.d.ts +6 -0
- package/dist-lib/hooks/useBranding.d.ts +8 -0
- package/dist-lib/hooks/useBrandingChrome.d.ts +6 -0
- package/dist-lib/hooks/useLiveObject.d.ts +9 -0
- package/dist-lib/hooks/useMutations.d.ts +3 -3
- package/dist-lib/hooks/useObject.d.ts +10 -0
- package/dist-lib/hooks/usePageStateRuntime.d.ts +1 -1
- package/dist-lib/hooks/useParams.d.ts +10 -1
- package/dist-lib/index.d.ts +11 -5
- package/dist-lib/index.js +1890 -1722
- package/dist-lib/lib/actions.d.ts +6 -2
- package/dist-lib/lib/branding.d.ts +10 -1
- package/dist-lib/{registry-2KliNTHB.js → registry-KQyyL5Gt.js} +1452 -1401
- package/dist-lib/testing.d.ts +5 -3
- package/dist-lib/testing.js +35 -31
- package/dist-lib/types/api.d.ts +70 -3
- package/dist-lib/types/schema.d.ts +1 -15
- package/dist-lib/{useProperties-Co3RdtuT.js → useProperties-D74hyWIa.js} +53 -53
- package/dist-lib/{value-BooGwUik.js → value-BfXXl5EE.js} +1 -1
- package/package.json +1 -1
- package/dist-lib/hooks/useEntityItem.d.ts +0 -10
- package/dist-lib/peekDraftStore-yyzMbaiI.js +0 -468
package/dist-lib/api/data.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ export declare function listEntities(entity: string, params?: ListParams, option
|
|
|
7
7
|
export declare function getEntity(entity: string, pkValues: PkValues | string): Promise<DataResponse>;
|
|
8
8
|
export declare function createEntity(entity: string, data: Record<string, unknown>): Promise<DataResponse>;
|
|
9
9
|
export declare function updateEntity(entity: string, pkValues: PkValues | string, data: Record<string, unknown>): Promise<DataResponse>;
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function deleteObject(entity: string, pkValues: PkValues | string): Promise<void>;
|
|
11
11
|
export declare function encodeObjectId(pkValues: PkValues): string;
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function restoreObject(entity: string, pkValues: PkValues | string): Promise<void>;
|
|
13
13
|
/** Result of POST /api/data/{entity}/export. The server streams a CSV
|
|
14
14
|
* blob; the client gets the bytes plus the server-resolved filename
|
|
15
15
|
* (parsed from Content-Disposition by apiFetchBlob, with RFC 5987
|
|
@@ -85,7 +85,7 @@ export declare function buildActionBody(params: Record<string, unknown> | undefi
|
|
|
85
85
|
export type ActionExecutor = (code: string, body: ActionExecuteRequest) => Promise<ActionExecuteResponse>;
|
|
86
86
|
/**
|
|
87
87
|
* Install a test-time override for executeAction - and therefore for
|
|
88
|
-
* createEntity / updateEntity /
|
|
88
|
+
* createEntity / updateEntity / deleteObject / restoreObject, which all
|
|
89
89
|
* dispatch through executeAction. The @declarion/react/testing harness uses
|
|
90
90
|
* this (mirroring setApiErrorReporter) to resolve actions from a fixture map
|
|
91
91
|
* instead of the network. Returns the previous executor so a test can restore
|
|
@@ -100,7 +100,7 @@ export declare function setActionExecutor(fn: ActionExecutor | null): ActionExec
|
|
|
100
100
|
* per_page / sort / filters, which a cache seed cannot know ahead of render).
|
|
101
101
|
*/
|
|
102
102
|
export type ListEntitiesResolver = (entity: string, params: ListParams) => ListResponse | undefined;
|
|
103
|
-
/** Test-time override for the single-record read seam (
|
|
103
|
+
/** Test-time override for the single-record read seam (useObject -> getEntity). */
|
|
104
104
|
export type GetEntityResolver = (entity: string, pkValues: PkValues | string) => DataResponse | undefined;
|
|
105
105
|
/** Install/clear the list read seam. Returns the previous resolver. */
|
|
106
106
|
export declare function setListEntitiesResolver(fn: ListEntitiesResolver | null): ListEntitiesResolver | null;
|
package/dist-lib/api/params.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ParamLookup, PublicParamsResponse } from "../types/api";
|
|
2
2
|
/**
|
|
3
3
|
* Fetches the full pre-login envelope from /api/params/public:
|
|
4
|
-
* {parameters, accents,
|
|
4
|
+
* {parameters, accents, meta}. Used by AuthShell to theme
|
|
5
5
|
* unauthenticated screens before any user context exists.
|
|
6
6
|
*/
|
|
7
7
|
export declare function fetchPublicParams(): Promise<PublicParamsResponse>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AreaDef } from "../../types/schema";
|
|
2
|
-
import type {
|
|
2
|
+
import type { BrandingIdentity } from "../../types/api";
|
|
3
3
|
export interface RailAreaItem {
|
|
4
4
|
id: string;
|
|
5
5
|
icon: string | undefined;
|
|
@@ -13,10 +13,10 @@ export interface RailProps {
|
|
|
13
13
|
onCmdK: () => void;
|
|
14
14
|
areas?: AreaDef[];
|
|
15
15
|
/**
|
|
16
|
-
* Consumer branding
|
|
17
|
-
* the rail's brand tile renders the consumer image
|
|
18
|
-
*
|
|
16
|
+
* Consumer branding identity. When `app_logo` is present
|
|
17
|
+
* the rail's brand tile renders the consumer image. Otherwise `app_name`
|
|
18
|
+
* supplies an initial and tooltip; with neither value the tile is empty.
|
|
19
19
|
*/
|
|
20
|
-
branding?:
|
|
20
|
+
branding?: BrandingIdentity;
|
|
21
21
|
}
|
|
22
22
|
export declare function Rail({ activeArea, onPick, onToggleAI, aiOpen, onCmdK, areas, branding }: RailProps): import("react").JSX.Element;
|
|
@@ -15,5 +15,7 @@ export interface TopBarProps {
|
|
|
15
15
|
aiOpen?: boolean;
|
|
16
16
|
onOpenProfile?: () => void;
|
|
17
17
|
onOpenPrefs?: () => void;
|
|
18
|
+
showTenantSwitcher?: boolean;
|
|
19
|
+
showBreadcrumbs?: boolean;
|
|
18
20
|
}
|
|
19
|
-
export declare function TopBar({ breadcrumbs, onCrumbClick, onOpenNav, navButtonRef, showNavButton, onOpenTabs, tabsButtonRef, showTabsButton, mobileTabCount, onCmdK, onToggleAI, aiOpen, onOpenProfile, onOpenPrefs, }?: TopBarProps): import("react").JSX.Element;
|
|
21
|
+
export declare function TopBar({ breadcrumbs, onCrumbClick, onOpenNav, navButtonRef, showNavButton, onOpenTabs, tabsButtonRef, showTabsButton, mobileTabCount, onCmdK, onToggleAI, aiOpen, onOpenProfile, onOpenPrefs, showTenantSwitcher, showBreadcrumbs, }?: TopBarProps): import("react").JSX.Element;
|
|
@@ -4,7 +4,7 @@ export type AuthShellProps = {
|
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
/**
|
|
6
6
|
* Tenant slug used to compose the workspace pill. The pill renders
|
|
7
|
-
* `<tenantSlug>.<branding.workspace_domain>` only when both pieces
|
|
7
|
+
* `<tenantSlug>.<branding.identity.workspace_domain>` only when both pieces
|
|
8
8
|
* are set; otherwise it is hidden. Callers are not required to
|
|
9
9
|
* provide a slug — the auth shell fails closed (no pill) rather
|
|
10
10
|
* than display a placeholder host.
|
|
@@ -33,4 +33,4 @@ export interface ListHeaderProps {
|
|
|
33
33
|
/** Dispatch surface threaded into ResponsiveActionBar (plan §8 Task 10). */
|
|
34
34
|
widgetContext: WidgetContext;
|
|
35
35
|
}
|
|
36
|
-
export declare function ListHeader({ title, description, 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 | null;
|
|
@@ -38,6 +38,7 @@ interface ActionRunnerContextValue {
|
|
|
38
38
|
* resolves immediately - the dialog owns its own pending UI.
|
|
39
39
|
*/
|
|
40
40
|
run: (opts: RunActionOptions) => Promise<void>;
|
|
41
|
+
isRunning: boolean;
|
|
41
42
|
}
|
|
42
43
|
export declare function useActionRunner(): ActionRunnerContextValue;
|
|
43
44
|
export declare function ActionRunnerProvider({ children }: {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ResolvedActionLayoutNode } from "../../lib/actions";
|
|
3
|
+
import { type Action } from "../../types/schema";
|
|
4
|
+
import { type WidgetContext } from "../../components/shared/ResponsiveActionBar";
|
|
5
|
+
export type ObjectActionBarSlot = "detail" | "detail_toolbar" | "list_row" | "quick_peek";
|
|
6
|
+
export type ObjectActionSelection = {
|
|
7
|
+
include: string[];
|
|
8
|
+
exclude?: never;
|
|
9
|
+
} | {
|
|
10
|
+
exclude: string[];
|
|
11
|
+
include?: never;
|
|
12
|
+
};
|
|
13
|
+
export interface ObjectActionBarProps {
|
|
14
|
+
entity: string;
|
|
15
|
+
object: Record<string, unknown> | undefined;
|
|
16
|
+
slot: ObjectActionBarSlot;
|
|
17
|
+
screen?: string;
|
|
18
|
+
select?: ObjectActionSelection;
|
|
19
|
+
extraActions?: ReactNode;
|
|
20
|
+
onAfterRun?: (code: string, result: unknown) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface UseObjectActionsResult {
|
|
23
|
+
nodes: ResolvedActionLayoutNode[];
|
|
24
|
+
run: (code: string, action: Action) => void | Promise<void>;
|
|
25
|
+
isBusy: boolean;
|
|
26
|
+
widgetContext?: WidgetContext;
|
|
27
|
+
}
|
|
28
|
+
export declare function useObjectActions({ entity: entityCode, object, slot, screen: screenCode, select, onAfterRun, }: Omit<ObjectActionBarProps, "extraActions">): UseObjectActionsResult;
|
|
29
|
+
export declare function ObjectActionBar({ entity, object, slot, screen, select, extraActions, onAfterRun, }: ObjectActionBarProps): import("react").JSX.Element | null;
|
|
@@ -4,5 +4,5 @@ interface PageHeaderProps {
|
|
|
4
4
|
backTo?: string;
|
|
5
5
|
actions?: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare function PageHeader({ title, backTo, actions }: PageHeaderProps): import("react").JSX.Element;
|
|
7
|
+
export declare function PageHeader({ title, backTo, actions }: PageHeaderProps): import("react").JSX.Element | null;
|
|
8
8
|
export {};
|
|
@@ -10,6 +10,7 @@ interface RecordHeaderProps {
|
|
|
10
10
|
showBack?: boolean;
|
|
11
11
|
onBack?: () => void;
|
|
12
12
|
right?: ReactNode;
|
|
13
|
+
showTitle?: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare function RecordHeader({ icon, avatarName, title, recordId, highlights, mode, dirty, showBack, onBack, right, }: RecordHeaderProps): import("react").JSX.Element;
|
|
15
|
+
export declare function RecordHeader({ icon, avatarName, title, recordId, highlights, mode, dirty, showBack, onBack, right, showTitle, }: RecordHeaderProps): import("react").JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LiveObjectResult } from "../../hooks/useLiveObject";
|
|
2
|
+
export interface RefreshControlProps<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
3
|
+
liveObject: Pick<LiveObjectResult<T>, "refetch" | "isFetching" | "isLoading" | "isLive">;
|
|
4
|
+
realtime?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function RefreshControl<T extends Record<string, unknown> = Record<string, unknown>>({ liveObject, realtime, }: RefreshControlProps<T>): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PublicBranding } from "../types/api";
|
|
2
|
+
export declare function useBranding(): {
|
|
3
|
+
branding: PublicBranding | undefined;
|
|
4
|
+
isLoading: boolean;
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BrandingSurfaceFlags } from "../types/api";
|
|
2
|
+
export type BrandingChromeSurface = "list" | "detail" | "record_list" | "custom";
|
|
3
|
+
export interface ResolvedBrandingChrome extends BrandingSurfaceFlags {
|
|
4
|
+
isVisible: (key: keyof BrandingSurfaceFlags) => boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function useBrandingChrome(surface?: BrandingChromeSurface): ResolvedBrandingChrome;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UseQueryResult } from "@tanstack/react-query";
|
|
2
|
+
import { type DataResponse, type EnrichedRow } from "../types/api";
|
|
3
|
+
import type { PkValues } from "../types/schema";
|
|
4
|
+
export type LiveObjectResult<T extends Record<string, unknown> = EnrichedRow> = UseQueryResult<DataResponse<T>, Error> & {
|
|
5
|
+
object: T | undefined;
|
|
6
|
+
isLive: boolean;
|
|
7
|
+
isNotFound: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function useLiveObject<T extends Record<string, unknown> = EnrichedRow>(entity: string | undefined, pkValues: PkValues | string | undefined): LiveObjectResult<T>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { PkValues } from "../types/schema";
|
|
2
2
|
import type { ActionExecuteRequest } from "../api/data";
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
3
|
+
export declare function useCreateObject(entityCode: string): import("@tanstack/react-query").UseMutationResult<import("..").DataResponse<Record<string, unknown>>, Error, Record<string, unknown>, unknown>;
|
|
4
|
+
export declare function useUpdateObject(entityCode: string): import("@tanstack/react-query").UseMutationResult<import("..").DataResponse<Record<string, unknown>>, Error, {
|
|
5
5
|
pkValues: PkValues | string;
|
|
6
6
|
data: Record<string, unknown>;
|
|
7
7
|
}, unknown>;
|
|
8
|
-
export declare function
|
|
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
10
|
export declare function useExecuteAction(entityCode?: string): import("@tanstack/react-query").UseMutationResult<import("../api/data").ActionExecuteResponse, Error, {
|
|
11
11
|
actionCode: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type QueryKey } from "@tanstack/react-query";
|
|
2
|
+
import type { PkValues } from "../types/schema";
|
|
3
|
+
/**
|
|
4
|
+
* The React Query key for a single-record read. Single source of truth for both
|
|
5
|
+
* `useObject` and a detail screen registering its PRIMARY read with its
|
|
6
|
+
* retained page (`useRegisterRetainedQuery`). For a string PK uses it directly;
|
|
7
|
+
* for a composite PK sorts the parts so key order does not fork the cache.
|
|
8
|
+
*/
|
|
9
|
+
export declare function objectQueryKey(entity: string | undefined, pkValues: PkValues | string | undefined): QueryKey;
|
|
10
|
+
export declare function useObject(entity: string | undefined, pkValues: PkValues | string | undefined): import("@tanstack/react-query").UseQueryResult<NoInfer<import("..").DataResponse<Record<string, unknown>>>, Error>;
|
|
@@ -17,7 +17,7 @@ export declare function usePageStateRuntime(): void;
|
|
|
17
17
|
* current retained page, so a kill/sweep `removeQueries` releases the cached
|
|
18
18
|
* data alongside the deep state. Call from the standard pages (and custom
|
|
19
19
|
* screens) with the key from the matching key-builder (`entityDataQueryKey` /
|
|
20
|
-
* `cursorEntityDataQueryKey` / `
|
|
20
|
+
* `cursorEntityDataQueryKey` / `objectQueryKey`).
|
|
21
21
|
*
|
|
22
22
|
* Pass ONLY primary heavy reads - never a shared ref/lookup query, or a
|
|
23
23
|
* sibling screen that shares its key would lose it on this page's eviction.
|
|
@@ -5,7 +5,16 @@ export declare function usePublicParams(): import("@tanstack/react-query").UseQu
|
|
|
5
5
|
* Returns the full ParamLookup envelope (`found`, `value`, `source`).
|
|
6
6
|
* Prefer `useParam` for typical reads where the call site has a default.
|
|
7
7
|
*/
|
|
8
|
-
export declare function useResolvedParam(code: string
|
|
8
|
+
export declare function useResolvedParam(code: string, options?: {
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
}): import("@tanstack/react-query").UseQueryResult<NoInfer<ParamLookup>, Error>;
|
|
11
|
+
export declare function useEffectiveParam<T = unknown>(code: string): {
|
|
12
|
+
value: T | undefined;
|
|
13
|
+
found: boolean;
|
|
14
|
+
source: ParamLookup["source"] | "public" | undefined;
|
|
15
|
+
loading: boolean;
|
|
16
|
+
error: Error | null;
|
|
17
|
+
};
|
|
9
18
|
/**
|
|
10
19
|
* Reads a parameter and substitutes a caller-supplied default when the
|
|
11
20
|
* platform has no value for it. The default never crosses the wire; the
|
package/dist-lib/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import "./globals.css";
|
|
|
2
2
|
export { App } from "./app";
|
|
3
3
|
export { App as Declarion } from "./app";
|
|
4
4
|
export type { LocalizedString, LanguageDef, Schema, Entity, EntityField, Screen, NavNode, Action, ChildRelation, StatusDef, StatusGroupDef, PropertyDef, EnumDef, ParameterDef, StructureDef, PkValues, } from "./types/schema";
|
|
5
|
-
export { loc, fieldDisplayName, getPrimaryKeyFields, extractPkValues, pkValuePartsToId, pkValuesToId, pkValuesToDetailId, pkValuesFromId, resolveDetailRoute, buildDetailHrefFromId, buildEntityDetailHref, buildRowDetailHref, } from "./types/schema";
|
|
5
|
+
export { OrderedMap, loc, fieldDisplayName, getPrimaryKeyFields, extractPkValues, pkValuePartsToId, pkValuesToId, pkValuesToDetailId, pkValuesFromId, resolveDetailRoute, buildDetailHrefFromId, buildEntityDetailHref, buildRowDetailHref, } from "./types/schema";
|
|
6
6
|
export type { ListResponse, DataResponse, ListMeta, ApiError, AuthUser, LoginResponse, CheckSetupResponse, ListParams, Tenant, StatusInfo, PropertyValue, PublicParam, V2Meta, Refs, V2StatusInstance, V2PropertyInstance, V2ParamInstance, V2ListResponse, V2ListParams, EnrichedRow, } from "./types/api";
|
|
7
7
|
export { CURSOR_SEMANTICS_MISMATCH, CURSOR_LOCALE_CHANGED, isCursorStaleError } from "./types/api";
|
|
8
8
|
export { coerceDisplayString } from "./lib/display-value";
|
|
9
9
|
export { EntityClient, RefCache, entityClient } from "./api/entities";
|
|
10
10
|
export type { RowHelpers } from "./api/entities";
|
|
11
|
-
export { executeAction, buildActionBody, ActionBatchError,
|
|
11
|
+
export { executeAction, buildActionBody, ActionBatchError, deleteObject, restoreObject } from "./api/data";
|
|
12
12
|
export type { ActionExecuteRequest, ActionExecuteResponse, ActionItemError, ActionItemSkip, } from "./api/data";
|
|
13
13
|
export { Batch } from "./api/batch";
|
|
14
14
|
export type { BatchOp, BatchOpResult, BatchResponse } from "./api/batch";
|
|
@@ -20,14 +20,16 @@ export { useEntityData, useEntityCount, entityDataQueryKey } from "./hooks/useEn
|
|
|
20
20
|
export { useCursorEntityData, cursorEntityDataQueryKey, cursorEntityStableKey, } from "./hooks/useCursorEntityData";
|
|
21
21
|
export type { CursorEntityDataParams, CursorEntityDataResult, } from "./hooks/useCursorEntityData";
|
|
22
22
|
export { useAllEntityData } from "./hooks/useAllEntityData";
|
|
23
|
-
export {
|
|
23
|
+
export { useObject, objectQueryKey } from "./hooks/useObject";
|
|
24
|
+
export { useLiveObject } from "./hooks/useLiveObject";
|
|
25
|
+
export type { LiveObjectResult } from "./hooks/useLiveObject";
|
|
24
26
|
export { useActionData, useCursorActionData, actionDataQueryKey, cursorActionDataQueryKey, ACTION_DATA_KEY, ACTION_DATA_CURSOR_KEY, } from "./hooks/useActionData";
|
|
25
27
|
export type { ActionListPage, CursorActionDataResult } from "./hooks/useActionData";
|
|
26
|
-
export {
|
|
28
|
+
export { useCreateObject, useUpdateObject, useDeleteObject } from "./hooks/useMutations";
|
|
27
29
|
export { useDebounce } from "./hooks/useDebounce";
|
|
28
30
|
export { ResponsiveModeProvider, useResponsiveMode, resolveViewportCategory, DEFAULT_RESPONSIVE_BREAKPOINTS, } from "./hooks/useResponsiveMode";
|
|
29
31
|
export type { ResponsiveBreakpoints, ResponsiveMode, ResponsiveViewport, ViewportCategory, } from "./hooks/useResponsiveMode";
|
|
30
|
-
export { usePublicParams, useResolvedParam, useParam } from "./hooks/useParams";
|
|
32
|
+
export { usePublicParams, useResolvedParam, useEffectiveParam, useParam } from "./hooks/useParams";
|
|
31
33
|
export { useSetStatus } from "./hooks/useObjectStatus";
|
|
32
34
|
export { useSetProperty, useDeleteProperty } from "./hooks/useProperties";
|
|
33
35
|
export { useFilters } from "./hooks/useFilters";
|
|
@@ -66,6 +68,10 @@ export { ColumnPicker } from "./components/columns/ColumnPicker";
|
|
|
66
68
|
export { ViewSwitcher } from "./components/views/ViewSwitcher";
|
|
67
69
|
export { ActionRunnerProvider, useActionRunner } from "./components/shared/ActionRunner";
|
|
68
70
|
export type { RunActionOptions } from "./components/shared/ActionRunner";
|
|
71
|
+
export { ObjectActionBar, useObjectActions } from "./components/shared/ObjectActionBar";
|
|
72
|
+
export type { ObjectActionBarProps, ObjectActionBarSlot, ObjectActionSelection, UseObjectActionsResult, } from "./components/shared/ObjectActionBar";
|
|
73
|
+
export { RefreshControl } from "./components/shared/RefreshControl";
|
|
74
|
+
export type { RefreshControlProps } from "./components/shared/RefreshControl";
|
|
69
75
|
export { RowMenu } from "./components/list/RowMenu";
|
|
70
76
|
export type { RowMenuProps, RowMenuEntry } from "./components/list/RowMenu";
|
|
71
77
|
export { QuickPeek, QEField } from "./components/list/QuickPeek";
|