@meridianlabs/inspect-scout-viewer 0.4.7 → 0.4.9

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 (30) hide show
  1. package/lib/app/components/ScoreValue.d.ts +9 -0
  2. package/lib/app/scan/scanners/dataframe/DataframeGridApiContext.d.ts +7 -0
  3. package/lib/app/scan/scanners/dataframe/ScannerDataframeCSVButtons.d.ts +9 -0
  4. package/lib/app/transcript/TranscriptBody.d.ts +4 -0
  5. package/lib/app/transcript/TranscriptFilterPopover.d.ts +7 -0
  6. package/lib/app/transcript/hooks/useTranscriptColumnFilter.d.ts +11 -0
  7. package/lib/app/transcript/hooks/useTranscriptNavigation.d.ts +12 -0
  8. package/lib/app/transcripts/columnFilter/ColumnFilterEditor.d.ts +13 -0
  9. package/lib/app/transcripts/columnFilter/DurationInput.d.ts +9 -0
  10. package/lib/app/transcripts/columnFilter/useAddFilterPopover.d.ts +34 -0
  11. package/lib/app/transcripts/columnFilter/useColumnFilter.d.ts +9 -1
  12. package/lib/app/transcripts/columnFilter/useColumnFilterPopover.d.ts +3 -0
  13. package/lib/app/transcripts/columns.d.ts +7 -0
  14. package/lib/app/types.d.ts +1 -0
  15. package/lib/components/AutocompleteInput.d.ts +2 -0
  16. package/lib/components/FindBand.d.ts +6 -0
  17. package/lib/components/ToolButton.d.ts +1 -0
  18. package/lib/components/content/DisplayModeContext.d.ts +9 -0
  19. package/lib/components/icons.d.ts +1 -0
  20. package/lib/components/transcript/ScoreEventView.d.ts +0 -1
  21. package/lib/components/transcript/outline/OutlineRow.d.ts +1 -0
  22. package/lib/components/transcript/types.d.ts +2 -0
  23. package/lib/index.js +3533 -1917
  24. package/lib/index.js.map +1 -1
  25. package/lib/query/transcriptColumns.d.ts +1 -0
  26. package/lib/router/url.d.ts +1 -0
  27. package/lib/state/store.d.ts +11 -1
  28. package/lib/styles/index.css +375 -212
  29. package/lib/types/generated.d.ts +294 -0
  30. package/package.json +1 -1
@@ -21,6 +21,7 @@ export declare class TranscriptColumns {
21
21
  readonly score: Column;
22
22
  readonly success: Column;
23
23
  readonly total_time: Column;
24
+ readonly message_count: Column;
24
25
  readonly error: Column;
25
26
  readonly limit: Column;
26
27
  private static createProxy;
@@ -57,3 +57,4 @@ export declare const parseScanResultPath: (fullPath: string) => {
57
57
  };
58
58
  export declare const updateScannerParam: (searchParams: URLSearchParams, scanner: string) => URLSearchParams;
59
59
  export declare const getScannerParam: (searchParams: URLSearchParams) => string | undefined;
60
+ export declare const isHostedEnvironment: () => boolean;
@@ -6,7 +6,7 @@ import { ColumnSizingStrategyKey } from '../app/transcripts/columnSizing/types';
6
6
  import { ErrorScope, ResultGroup, ScanResultSummary, SortColumn } from '../app/types';
7
7
  import { SimpleCondition } from '../query/types';
8
8
  import { TranscriptInfo } from '../types/api-types';
9
- export type FilterType = "string" | "number" | "boolean" | "date" | "datetime" | "unknown";
9
+ export type FilterType = "string" | "number" | "boolean" | "date" | "datetime" | "duration" | "unknown";
10
10
  export interface ColumnFilter {
11
11
  columnId: string;
12
12
  filterType: FilterType;
@@ -25,11 +25,18 @@ interface TranscriptsTableState {
25
25
  /** Column IDs that have been manually resized by the user */
26
26
  manuallyResizedColumns: string[];
27
27
  }
28
+ interface TranscriptState {
29
+ excludedTypes?: string[];
30
+ collapsed?: boolean;
31
+ outlineCollapsed?: boolean;
32
+ displayMode?: "rendered" | "raw";
33
+ }
28
34
  interface StoreState {
29
35
  singleFileMode?: boolean;
30
36
  hasInitializedEmbeddedData?: boolean;
31
37
  hasInitializedRouting?: boolean;
32
38
  scopedErrors: Record<ErrorScope, string | undefined>;
39
+ showFind?: boolean;
33
40
  visibleScanJobCount?: number;
34
41
  selectedScanLocation?: string;
35
42
  visibleScannerResults: ScanResultSummary[];
@@ -66,6 +73,8 @@ interface StoreState {
66
73
  transcripts?: TranscriptInfo[];
67
74
  transcriptsDir?: string;
68
75
  transcriptsTableState: TranscriptsTableState;
76
+ transcriptState: TranscriptState;
77
+ setShowFind: (show: boolean) => void;
69
78
  setSingleFileMode: (enabled: boolean) => void;
70
79
  setHasInitializedEmbeddedData: (initialized: boolean) => void;
71
80
  setHasInitializedRouting: (initialized: boolean) => void;
@@ -125,6 +134,7 @@ interface StoreState {
125
134
  setTranscripts: (transcripts: TranscriptInfo[]) => void;
126
135
  setTranscriptsDir: (path: string) => void;
127
136
  setTranscriptsTableState: (updater: TranscriptsTableState | ((prev: TranscriptsTableState) => TranscriptsTableState)) => void;
137
+ setTranscriptState: (updater: TranscriptState | ((prev: TranscriptState) => TranscriptState)) => void;
128
138
  }
129
139
  export declare const createStore: (api: ScanApi) => import('zustand').UseBoundStore<Omit<Omit<Omit<import('zustand').StoreApi<StoreState>, "setState" | "devtools"> & {
130
140
  setState(partial: StoreState | Partial<StoreState> | ((state: StoreState) => StoreState | Partial<StoreState>), replace?: false | undefined, action?: (string | {