@metrevals/inspect-scout-viewer 0.3.2-beta.1764377954 → 0.3.3-beta.1765542109

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 (31) hide show
  1. package/lib/app/appearance/icons.d.ts +5 -0
  2. package/lib/app/components/ColumnHeader.d.ts +6 -0
  3. package/lib/app/result/ScanResultHeader.d.ts +2 -0
  4. package/lib/app/result/metadata/MetadataPanel.d.ts +7 -0
  5. package/lib/app/result/{input/InputPanel.d.ts → result/ResultBody.d.ts} +2 -2
  6. package/lib/app/result/result/ResultSidebar.d.ts +7 -0
  7. package/lib/app/scanner/results/ScanDataframeClearFiltersButton.d.ts +2 -0
  8. package/lib/app/scanner/results/ScanDataframeColumnsPopover.d.ts +5 -0
  9. package/lib/app/scanner/results/ScanDataframeFilterColumnsButton.d.ts +1 -0
  10. package/lib/app/scanner/results/ScanDataframeWrapTextButton.d.ts +2 -0
  11. package/lib/app/scanner/results/ScanResultsGroup.d.ts +2 -1
  12. package/lib/app/scanner/results/types.d.ts +1 -0
  13. package/lib/app/types.d.ts +1 -0
  14. package/lib/app/utils/arrow.d.ts +1 -1
  15. package/lib/app/utils/refs.d.ts +1 -0
  16. package/lib/app/values/Explanation.d.ts +5 -0
  17. package/lib/app/values/ValidationResult.d.ts +6 -0
  18. package/lib/app/values/Value.d.ts +7 -0
  19. package/lib/components/CopyButton.d.ts +2 -1
  20. package/lib/components/DataframeView.d.ts +4 -0
  21. package/lib/components/MarkdownDivWithReferences.d.ts +3 -0
  22. package/lib/content/MetaDataGrid.d.ts +5 -2
  23. package/lib/content/RenderedText.d.ts +3 -0
  24. package/lib/content/types.d.ts +1 -0
  25. package/lib/index.js +1847 -1000
  26. package/lib/index.js.map +1 -1
  27. package/lib/state/store.d.ts +11 -3
  28. package/lib/styles/index.css +206 -62
  29. package/lib/types/index.d.ts +11 -10
  30. package/lib/utils/format.d.ts +1 -0
  31. package/package.json +6 -2
@@ -24,6 +24,7 @@ export declare const ApplicationIcons: {
24
24
  remove: string;
25
25
  replace: string;
26
26
  };
27
+ check: string;
27
28
  checkbox: {
28
29
  checked: string;
29
30
  unchecked: string;
@@ -91,6 +92,7 @@ export declare const ApplicationIcons: {
91
92
  noSamples: string;
92
93
  options: string;
93
94
  pendingTask: string;
95
+ pendingTaskSubtle: string;
94
96
  play: string;
95
97
  previous: string;
96
98
  refresh: string;
@@ -121,6 +123,7 @@ export declare const ApplicationIcons: {
121
123
  step: string;
122
124
  subtask: string;
123
125
  success: string;
126
+ successSubtle: string;
124
127
  transcript: string;
125
128
  tree: {
126
129
  open: string;
@@ -128,4 +131,6 @@ export declare const ApplicationIcons: {
128
131
  };
129
132
  turns: string;
130
133
  usage: string;
134
+ wrap: string;
135
+ x: string;
131
136
  };
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface ColumnHeaderProps {
3
+ label?: string;
4
+ }
5
+ export declare const ColumnHeader: FC<ColumnHeaderProps>;
6
+ export {};
@@ -1,7 +1,9 @@
1
1
  import { FC } from 'react';
2
+ import { Status } from '../../types';
2
3
  import { ScannerData } from '../types';
3
4
  interface ScanResultHeaderProps {
4
5
  result?: ScannerData;
6
+ status?: Status;
5
7
  }
6
8
  export declare const ScanResultHeader: FC<ScanResultHeaderProps>;
7
9
  export {};
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { ScannerData } from '../../types';
3
+ interface MetadataPanelProps {
4
+ result?: ScannerData;
5
+ }
6
+ export declare const MetadataPanel: FC<MetadataPanelProps>;
7
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { ScannerData } from '../../types';
3
- export interface InputPanelProps {
3
+ export interface ResultBodyProps {
4
4
  result?: ScannerData;
5
5
  }
6
- export declare const InputPanel: FC<InputPanelProps>;
6
+ export declare const ResultBody: FC<ResultBodyProps>;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { ScannerData } from '../../types';
3
+ interface ResultSidebarProps {
4
+ result?: ScannerData;
5
+ }
6
+ export declare const ResultSidebar: FC<ResultSidebarProps>;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const ScanDataframeClearFiltersButton: FC;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ export interface ScanDataframeColumnsPopoverProps {
3
+ positionEl: HTMLElement | null;
4
+ }
5
+ export declare const ScanDataframeColumnsPopover: FC<ScanDataframeColumnsPopoverProps>;
@@ -0,0 +1 @@
1
+ export declare const ScanDataframeFilterColumnsButton: import('react').ForwardRefExoticComponent<import('react').RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const ScanDataframeWrapTextButton: FC;
@@ -1,6 +1,7 @@
1
1
  import { FC } from 'react';
2
+ import { ResultGroup } from '../../types';
2
3
  interface ScanResultsGroupProps {
3
- options: Array<"source" | "label" | "id" | "none">;
4
+ options: Array<ResultGroup>;
4
5
  }
5
6
  export declare const ScanResultsGroup: FC<ScanResultsGroupProps>;
6
7
  export {};
@@ -0,0 +1 @@
1
+ export declare const defaultColumns: string[];
@@ -6,6 +6,7 @@ export interface SortColumn {
6
6
  direction: "asc" | "desc";
7
7
  }
8
8
  export type ErrorScope = "scanjobs" | "scanner" | "dataframe";
9
+ export type ResultGroup = "source" | "label" | "id" | "epoch" | "none";
9
10
  export type ScannerCore = ScannerCoreTranscript | ScannerCoreMessage | ScannerCoreMessages | ScannerCoreEvent | ScannerCoreEvents;
10
11
  export type ValueType = "boolean" | "number" | "string" | "array" | "object" | "null";
11
12
  export interface ScannerCoreBase {
@@ -1,2 +1,2 @@
1
1
  import { ColumnTable } from 'arquero';
2
- export declare function expandResultsetRows(columnTable: ColumnTable): ColumnTable;
2
+ export declare function expandResultsetRows(columnTable: ColumnTable): Promise<ColumnTable>;
@@ -1,4 +1,5 @@
1
1
  import { MarkdownReference } from '../../components/MarkdownDivWithReferences';
2
2
  import { ScannerCore } from '../types';
3
3
  export type MakeReferenceUrl = (ref: string, type: "message" | "event") => string | undefined;
4
+ export declare const useMarkdownRefs: (result?: ScannerCore) => MarkdownReference[];
4
5
  export declare const toMarkdownRefs: (core: ScannerCore, makeReferenceUrl: MakeReferenceUrl) => MarkdownReference[];
@@ -1,7 +1,12 @@
1
1
  import { FC } from 'react';
2
+ import { MarkdownReference } from '../../components/MarkdownDivWithReferences';
2
3
  import { ScannerCore } from '../types';
3
4
  interface ExplanationProps {
4
5
  result?: ScannerCore;
6
+ references?: MarkdownReference[];
7
+ options?: {
8
+ previewRefsOnHover?: boolean;
9
+ };
5
10
  }
6
11
  export declare const Explanation: FC<ExplanationProps>;
7
12
  export {};
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface ValidationResultProps {
3
+ result: boolean | Record<string, boolean>;
4
+ }
5
+ export declare const ValidationResult: FC<ValidationResultProps>;
6
+ export {};
@@ -1,8 +1,15 @@
1
1
  import { FC } from 'react';
2
+ import { MarkdownReference } from '../../components/MarkdownDivWithReferences';
2
3
  import { ScannerCore } from '../types';
3
4
  interface ValueProps {
4
5
  result: ScannerCore;
6
+ references: MarkdownReference[];
5
7
  style: "inline" | "block";
8
+ maxTableSize?: number;
9
+ interactive?: boolean;
10
+ options?: {
11
+ previewRefsOnHover?: boolean;
12
+ };
6
13
  }
7
14
  export declare const Value: FC<ValueProps>;
8
15
  export {};
@@ -1,11 +1,12 @@
1
1
  import { JSX } from 'react';
2
2
  interface CopyButtonProps {
3
3
  icon?: string;
4
+ title?: string;
4
5
  value: string;
5
6
  onCopySuccess?: () => void;
6
7
  onCopyError?: (error: Error) => void;
7
8
  className?: string;
8
9
  ariaLabel?: string;
9
10
  }
10
- export declare const CopyButton: ({ icon, value, onCopySuccess, onCopyError, className, ariaLabel, }: CopyButtonProps) => JSX.Element;
11
+ export declare const CopyButton: ({ icon, title, value, onCopySuccess, onCopyError, className, ariaLabel, }: CopyButtonProps) => JSX.Element;
11
12
  export {};
@@ -1,13 +1,17 @@
1
1
  import { ColumnTable } from 'arquero';
2
2
  import { FC } from 'react';
3
+ export declare const GRID_STATE_NAME = "DataframeView";
3
4
  interface DataframeViewProps {
4
5
  columnTable?: ColumnTable;
5
6
  sortedColumns?: string[];
6
7
  onRowDoubleClicked?: (rowData: object) => void;
8
+ onVisibleRowCountChanged?: (count: number) => void;
7
9
  options?: {
8
10
  maxStrLen?: number;
9
11
  };
10
12
  enableKeyboardNavigation?: boolean;
13
+ showRowNumbers?: boolean;
14
+ wrapText?: boolean;
11
15
  }
12
16
  export declare const DataframeView: FC<DataframeViewProps>;
13
17
  export {};
@@ -7,6 +7,9 @@ export interface MarkdownReference {
7
7
  interface MarkdownDivWithReferencesProps {
8
8
  markdown: string;
9
9
  references?: MarkdownReference[];
10
+ options?: {
11
+ previewRefsOnHover?: boolean;
12
+ };
10
13
  className?: string | string[];
11
14
  style?: React.CSSProperties;
12
15
  omitMedia?: boolean;
@@ -5,9 +5,12 @@ interface MetadataGridProps {
5
5
  className?: string | string[];
6
6
  references?: MarkdownReference[];
7
7
  style?: CSSProperties;
8
- size?: "mini" | "small";
9
8
  entries: Record<string, unknown>;
10
- plain?: boolean;
9
+ options?: {
10
+ size?: "mini" | "small";
11
+ plain?: boolean;
12
+ previewRefsOnHover?: boolean;
13
+ };
11
14
  }
12
15
  /**
13
16
  * Renders the MetaDataView component.
@@ -7,6 +7,9 @@ interface RenderedTextProps {
7
7
  className?: string | string[];
8
8
  forceRender?: boolean;
9
9
  omitMedia?: boolean;
10
+ options?: {
11
+ previewRefsOnHover?: boolean;
12
+ };
10
13
  }
11
14
  export declare const RenderedText: import('react').ForwardRefExoticComponent<RenderedTextProps & import('react').RefAttributes<HTMLDivElement | HTMLPreElement>>;
12
15
  export {};
@@ -7,6 +7,7 @@ export declare const Buckets: {
7
7
  };
8
8
  export interface RenderOptions {
9
9
  renderString: "pre" | "markdown";
10
+ previewRefsOnHover?: boolean;
10
11
  }
11
12
  export interface ContentRenderer {
12
13
  bucket: number;