@nivaro/react 0.1.303 → 0.2.1

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/index.d.ts CHANGED
@@ -1223,7 +1223,7 @@ export declare function CustomStatusEditor({ status, invalidate, theme, showExpi
1223
1223
  className?: string;
1224
1224
  }): JSX.Element;
1225
1225
 
1226
- export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, sort, onSortChange, onPageChange, onRowClick, onRowContextMenu, searchValue, onSearchChange, searchPlaceholder, filterDefs, filterValues, onFilterChange, toolbarRight, emptyMessage, minBodyHeight, fillHeight, hideFilterRow, nowrapCells, density, pinFirstColumn, columnPins, onColumnPinChange, columnFilterRow, hScrollProxy, selectedIds, onSelectionChange, rowClassName, enterKey, rowGroups, collapsedGroups, onToggleGroup }: DataTableProps<T>): React_2.JSX.Element;
1226
+ export declare function DataTable<T = Record<string, unknown>>({ columns, rows, rowKey, total, page, limit, isLoading, isError, errorMessage, 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, enterKey, rowGroups, collapsedGroups, onToggleGroup }: DataTableProps<T>): React_2.JSX.Element;
1227
1227
 
1228
1228
  export declare interface DataTableProps<T = Record<string, unknown>> {
1229
1229
  columns: Column<T>[];
@@ -1284,6 +1284,9 @@ export declare interface DataTableProps<T = Record<string, unknown>> {
1284
1284
  * instead of sitting below a page-tall table. Parent must give the card a
1285
1285
  * definite height (flex chain with min-h-0). */
1286
1286
  fillHeight?: boolean;
1287
+ /** Rendered inside the card, under the rows and the scroll proxy, above
1288
+ * pagination — e.g. the row-colour legend (CollectionBrowserView parity). */
1289
+ footer?: React_2.ReactNode;
1287
1290
  selectedIds?: string[];
1288
1291
  onSelectionChange?: (ids: string[]) => void;
1289
1292
  /** Optional per-row class — e.g. at-risk background tinting. */
@@ -1925,9 +1928,11 @@ export declare interface FilterDef {
1925
1928
  /** Defaults to 'select' — every existing FilterDef without this field keeps its current dropdown behavior unchanged. */
1926
1929
  type?: 'select' | 'text' | 'range' | 'combobox' | 'date' | 'number';
1927
1930
  /** Required when type is 'select' or omitted; static options for 'combobox'; ignored for 'text'/'range'. */
1931
+ /** `count` (optional) shows beside the option in facet dropdowns. */
1928
1932
  options?: {
1929
1933
  label: string;
1930
1934
  value: string;
1935
+ count?: number;
1931
1936
  }[];
1932
1937
  /** 'combobox' only: server-backed autocomplete. Called (debounced) with the search
1933
1938
  * text; overrides `options` when provided. */
@@ -3816,7 +3821,7 @@ export declare function NotificationAnalyticsView({ className }: {
3816
3821
  * click-through routing via the shared notification-target resolver. Needs
3817
3822
  * `<NivaroProvider>`.
3818
3823
  */
3819
- export declare function NotificationBell({ routes, onNavigate, app, subscribe, buttonClassName, panelClassName, beforeList, extraBadge, mailLogUrl, renderTrigger, allPath, subscriptionsPath, onActionError, panelPlacement }: NotificationBellProps): JSX.Element;
3824
+ export declare function NotificationBell({ routes, onNavigate, app, subscribe, buttonClassName, panelClassName, beforeList, extraBadge, mailLogUrl, renderTrigger, allPath, subscriptionsPath, onActionError, panelPlacement, tabBadge }: NotificationBellProps): JSX.Element;
3820
3825
 
3821
3826
  export declare interface NotificationBellProps {
3822
3827
  /** Where each notification kind lands in the host app. */
@@ -3861,6 +3866,8 @@ export declare interface NotificationBellProps {
3861
3866
  * positions it beside the trigger — for a sidebar rail whose overflow
3862
3867
  * would clip an inline panel. */
3863
3868
  panelPlacement?: 'below' | 'right';
3869
+ /** Put the attention count in front of the browser tab title (default true). */
3870
+ tabBadge?: boolean;
3864
3871
  }
3865
3872
 
3866
3873
  export declare function NotificationCenterView({ routes, onNavigate, app, mailLogUrl, subscriptionsPath, onNotice, onError, className }: NotificationCenterViewProps): JSX.Element;
@@ -5049,12 +5056,17 @@ export declare interface QueueRealtimeAdapter {
5049
5056
  subscribe: (collections: string[], onUpdate: () => void) => () => void;
5050
5057
  }
5051
5058
 
5052
- export declare function QueueWorklist({ queueId, realtime, renderError }: QueueWorklistProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | JSX.Element | null;
5059
+ export declare function QueueWorklist({ queueId, realtime, renderError, hideCreateActions }: QueueWorklistProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | JSX.Element | null;
5053
5060
 
5054
5061
  export declare interface QueueWorklistProps {
5055
5062
  queueId: string;
5056
5063
  realtime?: QueueRealtimeAdapter;
5057
5064
  renderError?: (status: number) => React.ReactNode;
5065
+ /** Hide the toolbar's New and Import-from-file buttons — for hosts whose
5066
+ * own header already offers them (efp-new's New menu). `true` hides them
5067
+ * everywhere; a list hides them only when every collection the queue can
5068
+ * create in is on it (the header covers those, not the rest). */
5069
+ hideCreateActions?: boolean | string[];
5058
5070
  }
5059
5071
 
5060
5072
  export declare function QueueWorkloadView({ queueId }: {
@@ -6532,9 +6544,11 @@ export declare type UseNivaroFormReturn = {
6532
6544
  };
6533
6545
 
6534
6546
  /**
6535
- * Online-user set for presence dots in user pickers (#284). One shared
6536
- * 30s-polled query per app (react-query dedupes); consumers get a Set of
6537
- * user ids. Fails to an empty set — a picker must never break on presence.
6547
+ * Online-user set for presence dots in user pickers (#284); consumers get a
6548
+ * Set of upper-cased user ids. Shares the chat's ['presence-online'] entry —
6549
+ * same endpoint, same client, same raw `{ data, config }` body, narrowed here
6550
+ * with `select` — so a page with chat and pickers holds one presence read.
6551
+ * Fails to an empty set — a picker must never break on presence.
6538
6552
  */
6539
6553
  export declare function useOnlineUsers(enabled?: boolean): Set<string>;
6540
6554