@nivaro/react 0.3.127 → 0.3.129
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/components/slots/CommentsSlot.js +124 -95
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +29 -3
- package/dist/index.js +150 -147
- package/dist/shared/components/CollectionBrowserView.js +3259 -3211
- package/dist/shared/components/DataTable.js +406 -401
- package/dist/shared/components/ItemEditForm.js +4485 -4409
- package/dist/shared/components/MatrixEditor.js +548 -490
- package/dist/shared/components/MyWorkView.js +284 -274
- package/dist/shared/components/NotificationBell.js +264 -218
- package/dist/shared/components/RecordGridEditor.js +582 -472
- package/dist/shared/components/ai/AiMarkdown.js +215 -196
- package/dist/shared/components/chat/chat-core.js +331 -346
- package/dist/shared/components/chat/chat-typing.js +25 -0
- package/dist/shared/components/command-center/CommandCenterView.js +1 -1
- package/dist/shared/components/command-center/PeekPanel.js +8 -1
- package/dist/shared/components/command-center/api.js +17 -9
- package/dist/shared/components/command-center/panels/AttentionPanel.js +4 -1
- package/dist/shared/components/command-center/panels/PartnersPanel.js +2 -1
- package/dist/shared/components/item-edit/GroupSection.js +1 -1
- package/dist/shared/components/item-edit/HeaderTools.js +216 -210
- package/dist/shared/components/item-edit/InlineTableField.js +432 -429
- package/dist/shared/components/item-edit/RecordLiveSync.js +115 -108
- package/dist/shared/components/item-edit/RecordViewersChip.js +17 -16
- package/dist/shared/components/item-edit/RowComments.js +33 -30
- package/dist/shared/components/item-edit/cascade-clear-notice.js +30 -28
- package/dist/shared/components/item-edit/live-related.js +29 -16
- package/dist/shared/components/item-edit/record-opened-live.js +86 -0
- package/dist/shared/components/panels/CommentPanel.js +345 -327
- package/dist/shared/components/panels/OwnerOpenedLine.js +24 -23
- package/dist/shared/components/panels/RecordIntegrityBanner.js +1 -1
- package/dist/shared/components/pipeline/TeamSuggestions.js +1 -1
- package/dist/shared/components/queue/QueueItemSheet.js +171 -130
- package/dist/shared/components/record-grid-guard.js +85 -0
- package/dist/shared/components/support/TicketDetailSheet.js +213 -174
- package/dist/shared/components/trackers/MirroredText.js +40 -0
- package/dist/shared/components/trackers/SourceTracker.js +168 -0
- package/dist/shared/components/trackers/TrackerChip.js +71 -0
- package/dist/shared/components/trackers/TrackerLinkPanel.js +1039 -0
- package/dist/shared/components/trackers/TrackerPickers.js +245 -0
- package/dist/shared/components/trackers/tracker-model.js +126 -0
- package/dist/shared/components/trackers/use-tracker-link.js +159 -0
- package/dist/shared/lib/at-risk-fields.js +14 -0
- package/dist/shared/lib/live-queries.js +9 -8
- package/dist/shared/lib/live-screen.js +77 -76
- package/dist/shared/lib/presence-hooks.js +190 -127
- package/dist/shared/lib/user-sync.js +78 -65
- package/dist/shared/lib/waiting-count.js +40 -29
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import { noteReplayIdle as Me, createReplayIdleState as Ne, REPLAY_IDLE_RESTART_
|
|
|
10
10
|
import { noteReplayEvent as Ue, createReplayCheckoutState as We } from "../shared/lib/replay-checkout.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.129", V = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, X = () => 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
|
@@ -433,7 +433,7 @@ export declare function AiFeedbackButtons({ requestId, className }: {
|
|
|
433
433
|
className?: string;
|
|
434
434
|
}): JSX.Element | null;
|
|
435
435
|
|
|
436
|
-
export declare function AiMarkdown({ content, className, autolink, switchable, onChartPoint }: {
|
|
436
|
+
export declare function AiMarkdown({ content, className, autolink, switchable, onChartPoint, mirrored }: {
|
|
437
437
|
content: string;
|
|
438
438
|
className?: string;
|
|
439
439
|
/** Turn friendly ids into record links. Default: on whenever a NivaroProvider is present. */
|
|
@@ -442,6 +442,9 @@ export declare function AiMarkdown({ content, className, autolink, switchable, o
|
|
|
442
442
|
switchable?: boolean;
|
|
443
443
|
/** Make chart points clickable (drill into the rows behind a bar, point or slice). */
|
|
444
444
|
onChartPoint?: ChartPointHandler;
|
|
445
|
+
/** Written outside Nivaro (mirrored in from GitLab): no in-app links, charts or record links;
|
|
446
|
+
* images read as links. */
|
|
447
|
+
mirrored?: boolean;
|
|
445
448
|
}): JSX.Element;
|
|
446
449
|
|
|
447
450
|
/**
|
|
@@ -1711,7 +1714,8 @@ export declare interface ChatConfig {
|
|
|
1711
1714
|
} | null;
|
|
1712
1715
|
/** Online users (presence) — drives the Online tab + mention autocomplete. */
|
|
1713
1716
|
onlineUsers: ChatOnlineUser[];
|
|
1714
|
-
/**
|
|
1717
|
+
/** @deprecated Unused since 2026-11-17 (realtime gaps P2): chat typing rides the realtime
|
|
1718
|
+
* adapter as `chat:typing`, never the presence row. Kept so hosts still compile. */
|
|
1715
1719
|
setTypingRoom?: (userId: string, room: string | null) => void | Promise<void>;
|
|
1716
1720
|
navigate?: (url: string) => void;
|
|
1717
1721
|
sound: boolean;
|
|
@@ -2935,7 +2939,7 @@ export declare function dashboardPretendDownOptions(widgets: Array<{
|
|
|
2935
2939
|
field?: string | null;
|
|
2936
2940
|
}>, labels?: Record<string, string | null | undefined>): PretendDownOption[];
|
|
2937
2941
|
|
|
2938
|
-
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, pinKeepRank, pinRightShare, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, rowDragProps, rowTitle, enterKey, rowGroups, collapsedGroups, onToggleGroup, onRowFocus, activeRowKey, rowAriaLabel, totalsRow }: DataTableProps<T>): React_2.JSX.Element;
|
|
2942
|
+
export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isStale, 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, pinKeepRank, pinRightShare, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, rowDragProps, rowTitle, enterKey, rowGroups, collapsedGroups, onToggleGroup, onRowFocus, activeRowKey, rowAriaLabel, totalsRow }: DataTableProps<T>): React_2.JSX.Element;
|
|
2939
2943
|
|
|
2940
2944
|
export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
2941
2945
|
columns: Column<T>[];
|
|
@@ -2945,6 +2949,9 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
|
|
|
2945
2949
|
page: number;
|
|
2946
2950
|
limit?: number;
|
|
2947
2951
|
isLoading?: boolean;
|
|
2952
|
+
/** The rows are the previous query's answer (keepPreviousData) while the new one loads: the
|
|
2953
|
+
* table body dims and is marked busy; the toolbar (search, filters) stays as it is. */
|
|
2954
|
+
isStale?: boolean;
|
|
2948
2955
|
isError?: boolean;
|
|
2949
2956
|
errorMessage?: string;
|
|
2950
2957
|
/** Shown as "Try again" on the error banner. */
|
|
@@ -8613,6 +8620,9 @@ export declare function onFieldInterfacesChange(cb: () => void): () => void;
|
|
|
8613
8620
|
*/
|
|
8614
8621
|
export declare function onIdleChange(fn: (idle: boolean) => void): () => void;
|
|
8615
8622
|
|
|
8623
|
+
/** Called with true when this tab goes away (hidden / idle), false when it is back. */
|
|
8624
|
+
export declare function onRecordTabAway(fn: (away: boolean) => void): () => void;
|
|
8625
|
+
|
|
8616
8626
|
/** Called once each time the tab goes from signed out to signed in. Returns the unsubscribe. */
|
|
8617
8627
|
export declare function onSignedIn(cb: () => void): () => void;
|
|
8618
8628
|
|
|
@@ -10804,11 +10814,22 @@ export declare interface RecordSurfaceValue {
|
|
|
10804
10814
|
open?: () => void;
|
|
10805
10815
|
}
|
|
10806
10816
|
|
|
10817
|
+
/** Is this tab away right now (hidden or idle)? */
|
|
10818
|
+
export declare function recordTabAway(): boolean;
|
|
10819
|
+
|
|
10807
10820
|
declare interface RecordTarget {
|
|
10808
10821
|
collection: string;
|
|
10809
10822
|
id: string;
|
|
10810
10823
|
}
|
|
10811
10824
|
|
|
10825
|
+
/** The `record:visibility` message for one record, as this tab is right now. */
|
|
10826
|
+
export declare function recordVisibilityPayload(collection: string, item: string | number, now?: number): {
|
|
10827
|
+
collection: string;
|
|
10828
|
+
item: string;
|
|
10829
|
+
hidden: boolean;
|
|
10830
|
+
hidden_ms?: number;
|
|
10831
|
+
};
|
|
10832
|
+
|
|
10812
10833
|
declare type Rect = {
|
|
10813
10834
|
x: number;
|
|
10814
10835
|
y: number;
|
|
@@ -12987,6 +13008,11 @@ export declare interface SupportTicketDetail extends SupportTicket {
|
|
|
12987
13008
|
user_name: string | null;
|
|
12988
13009
|
created_at: string;
|
|
12989
13010
|
from_requester: boolean;
|
|
13011
|
+
/** Mirrored in from GitLab: the GitLab author (the writer is the GitLab machine user). */
|
|
13012
|
+
tracker?: {
|
|
13013
|
+
provider: 'gitlab';
|
|
13014
|
+
author: string | null;
|
|
13015
|
+
} | null;
|
|
12990
13016
|
}>;
|
|
12991
13017
|
history: Array<{
|
|
12992
13018
|
id: number;
|