@nivaro/react 0.3.126 → 0.3.128

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.
Files changed (40) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +20 -2
  4. package/dist/index.js +150 -147
  5. package/dist/shared/components/CollectionBrowserView.js +3259 -3211
  6. package/dist/shared/components/DataTable.js +406 -401
  7. package/dist/shared/components/ItemEditForm.js +4359 -4299
  8. package/dist/shared/components/MatrixEditor.js +548 -490
  9. package/dist/shared/components/MyWorkView.js +284 -274
  10. package/dist/shared/components/NotificationBell.js +264 -218
  11. package/dist/shared/components/RecordGridEditor.js +582 -472
  12. package/dist/shared/components/chat/chat-core.js +331 -346
  13. package/dist/shared/components/chat/chat-typing.js +25 -0
  14. package/dist/shared/components/command-center/CommandCenterView.js +1 -1
  15. package/dist/shared/components/command-center/PeekPanel.js +8 -1
  16. package/dist/shared/components/command-center/api.js +17 -9
  17. package/dist/shared/components/command-center/panels/AttentionPanel.js +4 -1
  18. package/dist/shared/components/command-center/panels/PartnersPanel.js +2 -1
  19. package/dist/shared/components/item-edit/GroupSection.js +1 -1
  20. package/dist/shared/components/item-edit/InlineTableField.js +432 -429
  21. package/dist/shared/components/item-edit/RecordLiveSync.js +115 -108
  22. package/dist/shared/components/item-edit/RecordViewersChip.js +17 -16
  23. package/dist/shared/components/item-edit/RowComments.js +33 -30
  24. package/dist/shared/components/item-edit/cascade-clear-notice.js +30 -28
  25. package/dist/shared/components/item-edit/live-related.js +29 -16
  26. package/dist/shared/components/item-edit/record-opened-live.js +86 -0
  27. package/dist/shared/components/item-edit/reimport-m2m.js +17 -0
  28. package/dist/shared/components/panels/OwnerOpenedLine.js +24 -23
  29. package/dist/shared/components/panels/RecordIntegrityBanner.js +1 -1
  30. package/dist/shared/components/pipeline/TeamSuggestions.js +1 -1
  31. package/dist/shared/components/queue/QueueItemSheet.js +171 -130
  32. package/dist/shared/components/record-grid-guard.js +85 -0
  33. package/dist/shared/components/support/TicketDetailSheet.js +168 -151
  34. package/dist/shared/lib/at-risk-fields.js +14 -0
  35. package/dist/shared/lib/live-queries.js +9 -8
  36. package/dist/shared/lib/live-screen.js +77 -76
  37. package/dist/shared/lib/presence-hooks.js +190 -127
  38. package/dist/shared/lib/user-sync.js +78 -65
  39. package/dist/shared/lib/waiting-count.js +40 -29
  40. 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.126", V = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, X = () => typeof navigator > "u" || navigator.onLine !== !1;
13
+ const ze = "nivaro-react@0.3.128", 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
@@ -1711,7 +1711,8 @@ export declare interface ChatConfig {
1711
1711
  } | null;
1712
1712
  /** Online users (presence) — drives the Online tab + mention autocomplete. */
1713
1713
  onlineUsers: ChatOnlineUser[];
1714
- /** Presence typing setter (userId, room|null). */
1714
+ /** @deprecated Unused since 2026-11-17 (realtime gaps P2): chat typing rides the realtime
1715
+ * adapter as `chat:typing`, never the presence row. Kept so hosts still compile. */
1715
1716
  setTypingRoom?: (userId: string, room: string | null) => void | Promise<void>;
1716
1717
  navigate?: (url: string) => void;
1717
1718
  sound: boolean;
@@ -2935,7 +2936,7 @@ export declare function dashboardPretendDownOptions(widgets: Array<{
2935
2936
  field?: string | null;
2936
2937
  }>, labels?: Record<string, string | null | undefined>): PretendDownOption[];
2937
2938
 
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;
2939
+ 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
2940
 
2940
2941
  export declare interface DataTableProps<T = Record<string, unknown>> {
2941
2942
  columns: Column<T>[];
@@ -2945,6 +2946,9 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
2945
2946
  page: number;
2946
2947
  limit?: number;
2947
2948
  isLoading?: boolean;
2949
+ /** The rows are the previous query's answer (keepPreviousData) while the new one loads: the
2950
+ * table body dims and is marked busy; the toolbar (search, filters) stays as it is. */
2951
+ isStale?: boolean;
2948
2952
  isError?: boolean;
2949
2953
  errorMessage?: string;
2950
2954
  /** Shown as "Try again" on the error banner. */
@@ -8613,6 +8617,9 @@ export declare function onFieldInterfacesChange(cb: () => void): () => void;
8613
8617
  */
8614
8618
  export declare function onIdleChange(fn: (idle: boolean) => void): () => void;
8615
8619
 
8620
+ /** Called with true when this tab goes away (hidden / idle), false when it is back. */
8621
+ export declare function onRecordTabAway(fn: (away: boolean) => void): () => void;
8622
+
8616
8623
  /** Called once each time the tab goes from signed out to signed in. Returns the unsubscribe. */
8617
8624
  export declare function onSignedIn(cb: () => void): () => void;
8618
8625
 
@@ -10804,11 +10811,22 @@ export declare interface RecordSurfaceValue {
10804
10811
  open?: () => void;
10805
10812
  }
10806
10813
 
10814
+ /** Is this tab away right now (hidden or idle)? */
10815
+ export declare function recordTabAway(): boolean;
10816
+
10807
10817
  declare interface RecordTarget {
10808
10818
  collection: string;
10809
10819
  id: string;
10810
10820
  }
10811
10821
 
10822
+ /** The `record:visibility` message for one record, as this tab is right now. */
10823
+ export declare function recordVisibilityPayload(collection: string, item: string | number, now?: number): {
10824
+ collection: string;
10825
+ item: string;
10826
+ hidden: boolean;
10827
+ hidden_ms?: number;
10828
+ };
10829
+
10812
10830
  declare type Rect = {
10813
10831
  x: number;
10814
10832
  y: number;