@nivaro/react 0.3.112 → 0.3.114
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/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +50 -2
- package/dist/shared/components/CollectionBrowserView.js +2559 -2505
- package/dist/shared/components/DataTable.js +543 -504
- package/dist/shared/components/cbv/ColumnHeaderMenu.js +56 -39
- package/dist/shared/components/cbv/column-totals.js +146 -41
- package/dist/shared/components/item-edit/InlineTableField.js +858 -863
- package/dist/shared/components/item-edit/UserChip.js +262 -239
- package/dist/shared/components/item-edit/grid-search.js +164 -134
- package/dist/shared/components/panels/PipelinePanel.js +1136 -1130
- package/dist/shared/components/panels/StandInReason.js +69 -0
- package/dist/shared/components/queue/QueueWorklist.js +1589 -1491
- package/dist/shared/components/queue/queue-totals.js +92 -0
- package/dist/shared/components/queue/worklist-helpers.js +18 -14
- package/dist/shared/lib/list-link.js +56 -50
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import { noteReplayEvent as Fe, createReplayCheckoutState as Me } from "../share
|
|
|
10
10
|
import { emitReplayTap as Ne, setReplayRecorderMode as O, registerReplayCapture as Oe, clipEndOffset as Ue, withClipKind as We } from "../shared/lib/replay-capture.js";
|
|
11
11
|
import { instrumentConsole as He, instrumentRequests as Ke, redactSecrets as $e } from "../shared/lib/replay-context.js";
|
|
12
12
|
import { instrumentSocket as Be } from "../shared/lib/replay-socket.js";
|
|
13
|
-
const ze = "nivaro-react@0.3.
|
|
13
|
+
const ze = "nivaro-react@0.3.114", Q = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, V = () => typeof navigator > "u" || navigator.onLine !== !1;
|
|
14
14
|
function Je(o) {
|
|
15
15
|
return typeof o.url != "string" || typeof fetch != "function" ? null : (f, u) => {
|
|
16
16
|
const l = typeof o.getToken == "function" ? o.getToken() : void 0, d = { "Content-Type": "application/json" };
|
package/dist/index.d.ts
CHANGED
|
@@ -2349,6 +2349,9 @@ export declare interface Column<T = Record<string, unknown>> {
|
|
|
2349
2349
|
className?: string;
|
|
2350
2350
|
headerClassName?: string;
|
|
2351
2351
|
render?: (row: T, index: number) => React_2.ReactNode;
|
|
2352
|
+
/** A column menu beside the header (e.g. the totals row choice, cbv/ColumnHeaderMenu); it
|
|
2353
|
+
* stops its own clicks, and shows on header hover (`group/hcell`). */
|
|
2354
|
+
headerMenu?: React_2.ReactNode;
|
|
2352
2355
|
}
|
|
2353
2356
|
|
|
2354
2357
|
export declare type ColumnFormatConfig = {
|
|
@@ -2721,7 +2724,7 @@ export declare function dashboardPretendDownOptions(widgets: Array<{
|
|
|
2721
2724
|
field?: string | null;
|
|
2722
2725
|
}>, labels?: Record<string, string | null | undefined>): PretendDownOption[];
|
|
2723
2726
|
|
|
2724
|
-
export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, onRetry, sort, onSortChange, onPageChange, onRowClick, onRowContextMenu, searchValue, onSearchChange, searchPlaceholder, filterDefs, filterValues, onFilterChange, toolbarRight, emptyMessage, minBodyHeight, fillHeight, footer, hideFilterRow, nowrapCells, density, pinFirstColumn, columnPins, onColumnPinChange, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, rowDragProps, rowTitle, enterKey, rowGroups, collapsedGroups, onToggleGroup, onRowFocus, activeRowKey, rowAriaLabel }: DataTableProps<T>): React_2.JSX.Element;
|
|
2727
|
+
export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, onRetry, sort, onSortChange, onPageChange, onRowClick, onRowContextMenu, searchValue, onSearchChange, searchPlaceholder, filterDefs, filterValues, onFilterChange, toolbarRight, emptyMessage, minBodyHeight, fillHeight, footer, hideFilterRow, nowrapCells, density, pinFirstColumn, columnPins, onColumnPinChange, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, rowDragProps, rowTitle, enterKey, rowGroups, collapsedGroups, onToggleGroup, onRowFocus, activeRowKey, rowAriaLabel, totalsRow }: DataTableProps<T>): React_2.JSX.Element;
|
|
2725
2728
|
|
|
2726
2729
|
export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
2727
2730
|
columns: Column<T>[];
|
|
@@ -2818,6 +2821,15 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
|
2818
2821
|
activeRowKey?: string | null;
|
|
2819
2822
|
/** Accessible name of a focusable row (e.g. its record id and title). */
|
|
2820
2823
|
rowAriaLabel?: (row: T) => string | undefined;
|
|
2824
|
+
/**
|
|
2825
|
+
* Totals row (2026-11-14): a footer row that stays at the bottom of the scrolling rows,
|
|
2826
|
+
* one cell per column (`cells[key]`, absent = empty); `label` fills the first empty data
|
|
2827
|
+
* cell ("Σ totals"). Hidden while grouped, loading or empty.
|
|
2828
|
+
*/
|
|
2829
|
+
totalsRow?: {
|
|
2830
|
+
cells: Record<string, React_2.ReactNode>;
|
|
2831
|
+
label?: React_2.ReactNode;
|
|
2832
|
+
};
|
|
2821
2833
|
}
|
|
2822
2834
|
|
|
2823
2835
|
export declare function DateField({ field, value, onChange, error, disabled, readOnly, inputId, errorId }: FieldComponentProps): JSX.Element;
|
|
@@ -11288,6 +11300,39 @@ declare interface StaleChunkRecoveryOptions {
|
|
|
11288
11300
|
*/
|
|
11289
11301
|
export declare function staleChunkReloadJustTried(opts?: Pick<StaleChunkRecoveryOptions, 'storage' | 'now'>): boolean;
|
|
11290
11302
|
|
|
11303
|
+
/**
|
|
11304
|
+
* Why a stand-in holds the record's current step (Rob 2026-11-14) — the
|
|
11305
|
+
* `stand_in_reason` of GET /pipelines/instance/:collection/:item
|
|
11306
|
+
* (api services/stand-in-reason.ts). Said the same way in the pipeline
|
|
11307
|
+
* panel's Owners section and the record header's Owners roster.
|
|
11308
|
+
*/
|
|
11309
|
+
declare interface StandInReason {
|
|
11310
|
+
state: {
|
|
11311
|
+
id: string;
|
|
11312
|
+
label: string;
|
|
11313
|
+
};
|
|
11314
|
+
people: Array<{
|
|
11315
|
+
id: string;
|
|
11316
|
+
name: string;
|
|
11317
|
+
}>;
|
|
11318
|
+
why_unassigned: {
|
|
11319
|
+
kind: 'no_groups' | 'uncovered' | 'no_match' | 'empty_group' | 'not_required';
|
|
11320
|
+
sentence: string;
|
|
11321
|
+
values?: Array<{
|
|
11322
|
+
label: string;
|
|
11323
|
+
value: string;
|
|
11324
|
+
}>;
|
|
11325
|
+
};
|
|
11326
|
+
why_this_person: {
|
|
11327
|
+
kind: 'creator' | 'field';
|
|
11328
|
+
sentence: string;
|
|
11329
|
+
};
|
|
11330
|
+
/** Administrators only. */
|
|
11331
|
+
detail?: string;
|
|
11332
|
+
/** Administrators only — an admin path, resolved through the host's consoleUrl. */
|
|
11333
|
+
matrix_href?: string;
|
|
11334
|
+
}
|
|
11335
|
+
|
|
11291
11336
|
/**
|
|
11292
11337
|
* Idempotent; safe from an effect that runs more than once, and safe to call
|
|
11293
11338
|
* from several components — only the first call arms the timer.
|
|
@@ -12871,7 +12916,7 @@ export declare function userOptionFilter(isAdmin: boolean): {
|
|
|
12871
12916
|
*/
|
|
12872
12917
|
export declare function useRowPresence(rows: RowRef[], opts?: RowPresenceOptions): Record<string, RowViewers>;
|
|
12873
12918
|
|
|
12874
|
-
export declare function UserRosterCluster({ users, showSingleName, nameLabel }: {
|
|
12919
|
+
export declare function UserRosterCluster({ users, showSingleName, nameLabel, standIn }: {
|
|
12875
12920
|
users: Array<{
|
|
12876
12921
|
id: string;
|
|
12877
12922
|
name: string;
|
|
@@ -12880,6 +12925,9 @@ export declare function UserRosterCluster({ users, showSingleName, nameLabel }:
|
|
|
12880
12925
|
showSingleName?: boolean;
|
|
12881
12926
|
/** Always name the first owner who can act (+N), not just a single one. */
|
|
12882
12927
|
nameLabel?: boolean;
|
|
12928
|
+
/** Why a stand-in holds the step (the owners tile): its people are marked
|
|
12929
|
+
* "stand-in" and the roster says why (Rob 2026-11-14). */
|
|
12930
|
+
standIn?: StandInReason | null;
|
|
12883
12931
|
}): React_2.JSX.Element;
|
|
12884
12932
|
|
|
12885
12933
|
declare interface UserSyncOptions {
|