@nivaro/react 0.2.5 → 0.2.7

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
@@ -17,6 +17,7 @@ import { ReactPortal } from 'react';
17
17
  import { ReportDateRange } from '@nivaro/sdk';
18
18
  import { ReportEntityFilter } from '@nivaro/sdk';
19
19
  import { ReportQueryWidgetConfig } from '@nivaro/sdk';
20
+ import { ReportWidget } from '@nivaro/sdk';
20
21
  import { UseMutationResult } from '@tanstack/react-query';
21
22
  import { UseQueryResult } from '@tanstack/react-query';
22
23
  import { UserScopesInfo } from '@nivaro/sdk';
@@ -888,7 +889,7 @@ export declare function ChatRoomList({ rooms, onOpen, onNewGroup, archivedView,
888
889
  loading?: boolean;
889
890
  }): JSX.Element;
890
891
 
891
- export declare function ChatRoomView({ room, label, onBack, onOpenSettings, renderMessageBody, initialUnread, anchor: anchorProp }: {
892
+ export declare function ChatRoomView({ room, label: labelProp, onBack, onOpenSettings, renderMessageBody, initialUnread, anchor: anchorProp }: {
892
893
  room: string;
893
894
  label: string;
894
895
  onBack: () => void;
@@ -4427,7 +4428,12 @@ declare type PathStepKind = 'request' | 'cron' | 'import' | 'feed' | 'write' | '
4427
4428
 
4428
4429
  declare interface PendingTask {
4429
4430
  title: string;
4431
+ description?: string;
4430
4432
  assignee: string | null;
4433
+ /** Display name for the queued row (the picker already knows it). */
4434
+ assignee_name?: string | null;
4435
+ team_id?: number | null;
4436
+ team_name?: string | null;
4431
4437
  due_date: string;
4432
4438
  priority?: string;
4433
4439
  }
@@ -5598,6 +5604,20 @@ export declare interface ReportViewProps {
5598
5604
  emptyState?: React.ReactNode;
5599
5605
  }
5600
5606
 
5607
+ /**
5608
+ * One saved report widget on its own, outside its report's grid — how a host
5609
+ * places a report widget on a dashboard canvas (#1044). The widget is drawn at
5610
+ * column 0 of an absent grid, so its report-grid placement does nothing and
5611
+ * the card fills whatever cell holds it. Drill-through goes to the host's
5612
+ * DrilldownContext when there is one.
5613
+ */
5614
+ export declare function ReportWidgetCard({ reportId, widget, dateRange, entityFilters }: {
5615
+ reportId: string;
5616
+ widget: ReportWidget;
5617
+ dateRange?: ReportDateRange | null;
5618
+ entityFilters?: ReportEntityFilter[];
5619
+ }): JSX.Element;
5620
+
5601
5621
  export declare function resolveCollectionIcon(iconName: string | null | undefined): React.ElementType | null;
5602
5622
 
5603
5623
  export declare function resolveNotificationTarget(collection: string | null | undefined, item: string | null | undefined, routes: NotificationRouteMap): NotificationTarget;
@@ -6374,13 +6394,14 @@ export declare type TabState = {
6374
6394
  hasTabs: boolean;
6375
6395
  };
6376
6396
 
6377
- export declare function TaskPanel({ collection, item, title, defaultExpanded, queuedTasks, onQueueTask }: {
6397
+ export declare function TaskPanel({ collection, item, title, defaultExpanded, queuedTasks, onQueueTask, onRemoveQueuedTask }: {
6378
6398
  collection: string;
6379
6399
  item: string;
6380
6400
  title?: string;
6381
6401
  defaultExpanded?: boolean;
6382
6402
  queuedTasks?: PendingTask[];
6383
6403
  onQueueTask?: (task: PendingTask) => void;
6404
+ onRemoveQueuedTask?: (index: number) => void;
6384
6405
  }): JSX.Element | null;
6385
6406
 
6386
6407
  export declare function TeamScopeEditor({ teamId, scopes, onSaved }: {