@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.
- package/lib/app/appearance/icons.d.ts +5 -0
- package/lib/app/components/ColumnHeader.d.ts +6 -0
- package/lib/app/result/ScanResultHeader.d.ts +2 -0
- package/lib/app/result/metadata/MetadataPanel.d.ts +7 -0
- package/lib/app/result/{input/InputPanel.d.ts → result/ResultBody.d.ts} +2 -2
- package/lib/app/result/result/ResultSidebar.d.ts +7 -0
- package/lib/app/scanner/results/ScanDataframeClearFiltersButton.d.ts +2 -0
- package/lib/app/scanner/results/ScanDataframeColumnsPopover.d.ts +5 -0
- package/lib/app/scanner/results/ScanDataframeFilterColumnsButton.d.ts +1 -0
- package/lib/app/scanner/results/ScanDataframeWrapTextButton.d.ts +2 -0
- package/lib/app/scanner/results/ScanResultsGroup.d.ts +2 -1
- package/lib/app/scanner/results/types.d.ts +1 -0
- package/lib/app/types.d.ts +1 -0
- package/lib/app/utils/arrow.d.ts +1 -1
- package/lib/app/utils/refs.d.ts +1 -0
- package/lib/app/values/Explanation.d.ts +5 -0
- package/lib/app/values/ValidationResult.d.ts +6 -0
- package/lib/app/values/Value.d.ts +7 -0
- package/lib/components/CopyButton.d.ts +2 -1
- package/lib/components/DataframeView.d.ts +4 -0
- package/lib/components/MarkdownDivWithReferences.d.ts +3 -0
- package/lib/content/MetaDataGrid.d.ts +5 -2
- package/lib/content/RenderedText.d.ts +3 -0
- package/lib/content/types.d.ts +1 -0
- package/lib/index.js +1847 -1000
- package/lib/index.js.map +1 -1
- package/lib/state/store.d.ts +11 -3
- package/lib/styles/index.css +206 -62
- package/lib/types/index.d.ts +11 -10
- package/lib/utils/format.d.ts +1 -0
- 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
|
};
|
|
@@ -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 {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ScannerData } from '../../types';
|
|
3
|
-
export interface
|
|
3
|
+
export interface ResultBodyProps {
|
|
4
4
|
result?: ScannerData;
|
|
5
5
|
}
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const ResultBody: FC<ResultBodyProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ScanDataframeFilterColumnsButton: import('react').ForwardRefExoticComponent<import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { ResultGroup } from '../../types';
|
|
2
3
|
interface ScanResultsGroupProps {
|
|
3
|
-
options: Array<
|
|
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[];
|
package/lib/app/types.d.ts
CHANGED
|
@@ -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 {
|
package/lib/app/utils/arrow.d.ts
CHANGED
|
@@ -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>;
|
package/lib/app/utils/refs.d.ts
CHANGED
|
@@ -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 {};
|
|
@@ -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
|
-
|
|
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 {};
|