@meridianlabs/inspect-scout-viewer 0.4.38 → 0.4.39
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/AsciinemaPlayerImpl-6ZAkt1g5.js +5854 -0
- package/lib/AsciinemaPlayerImpl-6ZAkt1g5.js.map +1 -0
- package/lib/e2e/app-navigation.spec.d.ts +1 -0
- package/lib/e2e/chat-components.spec.d.ts +1 -0
- package/lib/e2e/fixtures/app.d.ts +7 -0
- package/lib/e2e/fixtures/handlers.d.ts +2 -0
- package/lib/e2e/fixtures/test-data.d.ts +42 -0
- package/lib/e2e/scan.spec.d.ts +1 -0
- package/lib/e2e/scans.spec.d.ts +1 -0
- package/lib/e2e/shared-components.spec.d.ts +1 -0
- package/lib/e2e/timeline-migration-baseline.spec.d.ts +8 -0
- package/lib/e2e/timeline.spec.d.ts +1 -0
- package/lib/e2e/transcript-events.spec.d.ts +1 -0
- package/lib/e2e/transcript.spec.d.ts +1 -0
- package/lib/e2e/transcripts.spec.d.ts +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +128052 -0
- package/lib/index.js.map +1 -0
- package/lib/src/App.d.ts +6 -0
- package/lib/src/AppRouter.d.ts +6 -0
- package/lib/src/api/api-scout-server.d.ts +8 -0
- package/lib/src/api/api-vscode.d.ts +3 -0
- package/lib/src/api/api.d.ts +56 -0
- package/lib/src/api/attachmentsHelpers.d.ts +1 -0
- package/lib/src/api/expandInputEvents.d.ts +6 -0
- package/lib/src/api/jsonrpc-fetch.d.ts +20 -0
- package/lib/src/api/jsonrpc.d.ts +50 -0
- package/lib/src/api/request.d.ts +30 -0
- package/lib/src/api/vscode-storage.d.ts +3 -0
- package/lib/src/app/components/ActivityBar.d.ts +23 -0
- package/lib/src/app/components/ActivityBarLayout.d.ts +11 -0
- package/lib/src/app/components/AddFilterButton.d.ts +37 -0
- package/lib/src/app/components/BreadCrumbs.d.ts +10 -0
- package/lib/src/app/components/Chip.d.ts +12 -0
- package/lib/src/app/components/ChipGroup.d.ts +7 -0
- package/lib/src/app/components/ColumnHeader.d.ts +11 -0
- package/lib/src/app/components/ColumnPickerButton.d.ts +19 -0
- package/lib/src/app/components/ColumnsPopover.d.ts +25 -0
- package/lib/src/app/components/DataframeView.d.ts +17 -0
- package/lib/src/app/components/DownloadScanButton.d.ts +9 -0
- package/lib/src/app/components/EditablePath.d.ts +15 -0
- package/lib/src/app/components/EditableText.d.ts +16 -0
- package/lib/src/app/components/Error.d.ts +7 -0
- package/lib/src/app/components/FilterBar.d.ts +35 -0
- package/lib/src/app/components/FindBand.d.ts +6 -0
- package/lib/src/app/components/Footer.d.ts +21 -0
- package/lib/src/app/components/HeadingGrid.d.ts +15 -0
- package/lib/src/app/components/Identifier.d.ts +7 -0
- package/lib/src/app/components/NavButtons.d.ts +12 -0
- package/lib/src/app/components/Navbar.d.ts +11 -0
- package/lib/src/app/components/NextPreviousNav.d.ts +11 -0
- package/lib/src/app/components/Pager.d.ts +9 -0
- package/lib/src/app/components/ProjectBar.d.ts +7 -0
- package/lib/src/app/components/ScansNavbar.d.ts +10 -0
- package/lib/src/app/components/ScoreValue.d.ts +12 -0
- package/lib/src/app/components/TaskName.d.ts +8 -0
- package/lib/src/app/components/TranscriptsNavbar.d.ts +11 -0
- package/lib/src/app/components/agGridSetup.d.ts +1 -0
- package/lib/src/app/components/columnFilter/ColumnFilterButton.d.ts +6 -0
- package/lib/src/app/components/columnFilter/ColumnFilterControl.d.ts +16 -0
- package/lib/src/app/components/columnFilter/ColumnFilterEditor.d.ts +32 -0
- package/lib/src/app/components/columnFilter/DurationInput.d.ts +9 -0
- package/lib/src/app/components/columnFilter/index.d.ts +12 -0
- package/lib/src/app/components/columnFilter/useAddFilterPopover.d.ts +35 -0
- package/lib/src/app/components/columnFilter/useColumnFilter.d.ts +27 -0
- package/lib/src/app/components/columnFilter/useColumnFilterPopover.d.ts +25 -0
- package/lib/src/app/components/columnSizing/defaultStrategy.d.ts +2 -0
- package/lib/src/app/components/columnSizing/fitContentStrategy.d.ts +2 -0
- package/lib/src/app/components/columnSizing/index.d.ts +5 -0
- package/lib/src/app/components/columnSizing/strategies.d.ts +10 -0
- package/lib/src/app/components/columnSizing/types.d.ts +60 -0
- package/lib/src/app/components/columnTypes.d.ts +46 -0
- package/lib/src/app/components/dataGrid/DataGrid.d.ts +8 -0
- package/lib/src/app/components/dataGrid/index.d.ts +2 -0
- package/lib/src/app/components/dataGrid/types.d.ts +70 -0
- package/lib/src/app/components/useFilterBarHandlers.d.ts +41 -0
- package/lib/src/app/hooks/useFilterConditions.d.ts +6 -0
- package/lib/src/app/hooks/useScanFilterConditions.d.ts +6 -0
- package/lib/src/app/hooks/useScanResultSummaries.d.ts +6 -0
- package/lib/src/app/hooks/useScanRoute.d.ts +8 -0
- package/lib/src/app/hooks/useScansFilterBarProps.d.ts +13 -0
- package/lib/src/app/hooks/useSelectedScan.d.ts +3 -0
- package/lib/src/app/hooks/useSelectedScanDataframe.d.ts +3 -0
- package/lib/src/app/hooks/useSelectedScanResultData.d.ts +3 -0
- package/lib/src/app/hooks/useSelectedScanResultDetail.d.ts +3 -0
- package/lib/src/app/hooks/useSelectedScanner.d.ts +2 -0
- package/lib/src/app/hooks/useTranscriptsFilterBarProps.d.ts +18 -0
- package/lib/src/app/hooks/useWindowMessaging.d.ts +19 -0
- package/lib/src/app/project/ProjectPanel.d.ts +7 -0
- package/lib/src/app/project/SettingsContent.d.ts +7 -0
- package/lib/src/app/project/components/FormFields.d.ts +73 -0
- package/lib/src/app/project/configUtils.d.ts +30 -0
- package/lib/src/app/project/hooks/useNestedConfig.d.ts +28 -0
- package/lib/src/app/runScan/ActiveScanView.d.ts +6 -0
- package/lib/src/app/runScan/DefineScannerSection.d.ts +6 -0
- package/lib/src/app/runScan/LlmScannerParams.d.ts +14 -0
- package/lib/src/app/runScan/RunScanPanel.d.ts +2 -0
- package/lib/src/app/runScan/ScannerParamsPlaceholder.d.ts +6 -0
- package/lib/src/app/scan/ScanPanel.d.ts +2 -0
- package/lib/src/app/scan/ScanPanelBody.d.ts +6 -0
- package/lib/src/app/scan/ScanPanelTitle.d.ts +6 -0
- package/lib/src/app/scan/info/ScanInfo.d.ts +5 -0
- package/lib/src/app/scan/scanners/ScannerPanel.d.ts +5 -0
- package/lib/src/app/scan/scanners/ScannerSidebar.d.ts +5 -0
- package/lib/src/app/scan/scanners/dataframe/DataframeGridApiContext.d.ts +7 -0
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeCSVButtons.d.ts +11 -0
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeClearFiltersButton.d.ts +2 -0
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeColumnsPopover.d.ts +5 -0
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeFilterColumnsButton.d.ts +1 -0
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeWrapTextButton.d.ts +2 -0
- package/lib/src/app/scan/scanners/dataframe/useOperationStatus.d.ts +7 -0
- package/lib/src/app/scan/scanners/list/ScannerResultsGroup.d.ts +6 -0
- package/lib/src/app/scan/scanners/list/ScannerResultsHeader.d.ts +7 -0
- package/lib/src/app/scan/scanners/list/ScannerResultsList.d.ts +14 -0
- package/lib/src/app/scan/scanners/list/ScannerResultsRow.d.ts +9 -0
- package/lib/src/app/scan/scanners/results/ScannerResultsBody.d.ts +12 -0
- package/lib/src/app/scan/scanners/results/ScannerResultsFilter.d.ts +5 -0
- package/lib/src/app/scan/scanners/results/ScannerResultsGroup.d.ts +7 -0
- package/lib/src/app/scan/scanners/results/ScannerResultsSearch.d.ts +2 -0
- package/lib/src/app/scan/scanners/types.d.ts +1 -0
- package/lib/src/app/scannerResult/AllScoresDialog.d.ts +9 -0
- package/lib/src/app/scannerResult/ScannerResultHeader.d.ts +13 -0
- package/lib/src/app/scannerResult/ScannerResultNav.d.ts +2 -0
- package/lib/src/app/scannerResult/ScannerResultPanel.d.ts +2 -0
- package/lib/src/app/scannerResult/ScoreColumn.d.ts +15 -0
- package/lib/src/app/scannerResult/SourcePath.d.ts +9 -0
- package/lib/src/app/scannerResult/error/ErrorPanel.d.ts +7 -0
- package/lib/src/app/scannerResult/info/InfoPanel.d.ts +9 -0
- package/lib/src/app/scannerResult/metadata/MetadataPanel.d.ts +7 -0
- package/lib/src/app/scannerResult/result/ResultBody.d.ts +8 -0
- package/lib/src/app/scannerResult/result/ResultPanel.d.ts +9 -0
- package/lib/src/app/scannerResult/result/ResultSidebar.d.ts +9 -0
- package/lib/src/app/scannerResult/transcript/TranscriptPanel.d.ts +15 -0
- package/lib/src/app/scans/ScansFilterBar.d.ts +7 -0
- package/lib/src/app/scans/ScansGrid.d.ts +21 -0
- package/lib/src/app/scans/ScansPanel.d.ts +2 -0
- package/lib/src/app/scans/columnSizing/index.d.ts +3 -0
- package/lib/src/app/scans/columnSizing/useColumnSizing.d.ts +33 -0
- package/lib/src/app/scans/columns.d.ts +25 -0
- package/lib/src/app/scans/constants.d.ts +35 -0
- package/lib/src/app/server/index.d.ts +6 -0
- package/lib/src/app/server/useActiveScan.d.ts +3 -0
- package/lib/src/app/server/useActiveScans.d.ts +3 -0
- package/lib/src/app/server/useAdjacentTranscriptIds.d.ts +10 -0
- package/lib/src/app/server/useAppConfig.d.ts +20 -0
- package/lib/src/app/server/useCode.d.ts +4 -0
- package/lib/src/app/server/useHasTranscript.d.ts +8 -0
- package/lib/src/app/server/useProjectConfig.d.ts +30 -0
- package/lib/src/app/server/useScan.d.ts +9 -0
- package/lib/src/app/server/useScanDataframe.d.ts +11 -0
- package/lib/src/app/server/useScanDataframeDetail.d.ts +11 -0
- package/lib/src/app/server/useScanners.d.ts +3 -0
- package/lib/src/app/server/useScansColumnValues.d.ts +11 -0
- package/lib/src/app/server/useScansInfinite.d.ts +6 -0
- package/lib/src/app/server/useSearches.d.ts +43 -0
- package/lib/src/app/server/useServerTranscripts.d.ts +5 -0
- package/lib/src/app/server/useServerTranscriptsInfinite.d.ts +13 -0
- package/lib/src/app/server/useStartScan.d.ts +3 -0
- package/lib/src/app/server/useTopicInvalidation.d.ts +11 -0
- package/lib/src/app/server/useTranscript.d.ts +9 -0
- package/lib/src/app/server/useTranscriptsColumnValues.d.ts +11 -0
- package/lib/src/app/server/useValidations.d.ts +87 -0
- package/lib/src/app/settings/SettingsPanel.d.ts +2 -0
- package/lib/src/app/timeline/components/TimelineEventsView.d.ts +50 -0
- package/lib/src/app/timeline/hooks/useActiveTimeline.d.ts +5 -0
- package/lib/src/app/timeline/hooks/useTimeline.d.ts +6 -0
- package/lib/src/app/timeline/hooks/useTimelineConfig.d.ts +7 -0
- package/lib/src/app/timeline/hooks/useTranscriptTimeline.d.ts +6 -0
- package/lib/src/app/transcript/SearchPanel.d.ts +9 -0
- package/lib/src/app/transcript/TranscriptBody.d.ts +17 -0
- package/lib/src/app/transcript/TranscriptFilterPopover.d.ts +7 -0
- package/lib/src/app/transcript/TranscriptNav.d.ts +10 -0
- package/lib/src/app/transcript/TranscriptPanel.d.ts +2 -0
- package/lib/src/app/transcript/TranscriptTitle.d.ts +7 -0
- package/lib/src/app/transcript/debugEventTree.d.ts +4 -0
- package/lib/src/app/transcript/hooks/useSearchReferenceLabels.d.ts +12 -0
- package/lib/src/app/transcript/hooks/useTranscriptColumnFilter.d.ts +11 -0
- package/lib/src/app/transcript/hooks/useTranscriptNavigation.d.ts +14 -0
- package/lib/src/app/transcript/hooks/useTranscriptTimeline.d.ts +1 -0
- package/lib/src/app/transcript/searchPanelState.d.ts +35 -0
- package/lib/src/app/transcript/searchRequest.d.ts +22 -0
- package/lib/src/app/transcripts/TranscriptFilterBar.d.ts +8 -0
- package/lib/src/app/transcripts/TranscriptsGrid.d.ts +21 -0
- package/lib/src/app/transcripts/TranscriptsPanel.d.ts +2 -0
- package/lib/src/app/transcripts/columnSizing/index.d.ts +3 -0
- package/lib/src/app/transcripts/columnSizing/types.d.ts +22 -0
- package/lib/src/app/transcripts/columnSizing/useColumnSizing.d.ts +34 -0
- package/lib/src/app/transcripts/columns.d.ts +37 -0
- package/lib/src/app/transcripts/constants.d.ts +35 -0
- package/lib/src/app/types.d.ts +111 -0
- package/lib/src/app/utils/arrow.d.ts +2 -0
- package/lib/src/app/utils/arrowHelpers.d.ts +4 -0
- package/lib/src/app/utils/autosizeTextarea.d.ts +5 -0
- package/lib/src/app/utils/refs.d.ts +6 -0
- package/lib/src/app/utils/results.d.ts +17 -0
- package/lib/src/app/utils/router.d.ts +1 -0
- package/lib/src/app/utils/scan.d.ts +12 -0
- package/lib/src/app/utils/transcript.d.ts +29 -0
- package/lib/src/app/utils/useScansDir.d.ts +8 -0
- package/lib/src/app/utils/useTranscriptsDir.d.ts +8 -0
- package/lib/src/app/validation/ValidationPanel.d.ts +2 -0
- package/lib/src/app/validation/components/CopyMoveCasesModal.d.ts +24 -0
- package/lib/src/app/validation/components/ValidationBulkActions.d.ts +16 -0
- package/lib/src/app/validation/components/ValidationCaseCard.d.ts +23 -0
- package/lib/src/app/validation/components/ValidationCaseEditor.d.ts +25 -0
- package/lib/src/app/validation/components/ValidationCaseLabelsEditor.d.ts +20 -0
- package/lib/src/app/validation/components/ValidationCasePredicateSelector.d.ts +19 -0
- package/lib/src/app/validation/components/ValidationCaseTargetEditor.d.ts +13 -0
- package/lib/src/app/validation/components/ValidationCasesList.d.ts +19 -0
- package/lib/src/app/validation/components/ValidationFilterBar.d.ts +14 -0
- package/lib/src/app/validation/components/ValidationSetSelector.d.ts +23 -0
- package/lib/src/app/validation/components/ValidationSplitSelector.d.ts +23 -0
- package/lib/src/app/validation/components/ValidationSummary.d.ts +11 -0
- package/lib/src/app/validation/hooks/useTranscriptsByIds.d.ts +13 -0
- package/lib/src/app/validation/utils.d.ts +55 -0
- package/lib/src/debugging/navigationDebugging.d.ts +8 -0
- package/lib/src/icons.d.ts +153 -0
- package/lib/src/index.d.ts +5 -0
- package/lib/src/main.d.ts +6 -0
- package/lib/src/query/column.d.ts +23 -0
- package/lib/src/query/conditionBuilder.d.ts +29 -0
- package/lib/src/query/index.d.ts +96 -0
- package/lib/src/query/transcriptColumns.d.ts +32 -0
- package/lib/src/query/types.d.ts +62 -0
- package/lib/src/router/activities.d.ts +11 -0
- package/lib/src/router/url.d.ts +80 -0
- package/lib/src/state/componentStateAdapter.d.ts +2 -0
- package/lib/src/state/userSettings.d.ts +28 -0
- package/lib/src/test/objectFactories.d.ts +4 -0
- package/lib/src/test/setup-msw.d.ts +1 -0
- package/lib/src/test/test-utils.d.ts +7 -0
- package/lib/src/theme/bootstrap.d.ts +6 -0
- package/lib/src/theme/resolveTheme.d.ts +19 -0
- package/lib/src/types/api-types.d.ts +50 -0
- package/lib/src/types/generated.d.ts +5182 -0
- package/lib/src/types/json-value.d.ts +12 -0
- package/lib/styles/index.css +10953 -0
- package/package.json +2 -1
package/lib/src/App.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ScoutApiV2 } from './api';
|
|
2
|
+
export type HeaderProvider = () => Promise<Record<string, string>>;
|
|
3
|
+
export declare const apiScoutServer: (options?: {
|
|
4
|
+
apiBaseUrl?: string;
|
|
5
|
+
headerProvider?: HeaderProvider;
|
|
6
|
+
customFetch?: typeof fetch;
|
|
7
|
+
disableSSE?: boolean;
|
|
8
|
+
}) => ScoutApiV2;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { StateStorage } from 'zustand/middleware';
|
|
2
|
+
import { Event } from '@tsmono/inspect-common/types';
|
|
3
|
+
import { Condition, OrderByModel } from '../query';
|
|
4
|
+
import { ActiveScansResponse, AppConfig, CreateValidationSetRequest, InvalidationTopic, Pagination, ProjectConfig, ProjectConfigInput, Result, ScanJobConfig, ScannerInput, ScannersResponse, ScansResponse, SearchInputListResponse, SearchRequest, SearchResponse, Status, Transcript, TranscriptsResponse, ValidationCase, ValidationCaseRequest } from '../types/api-types';
|
|
5
|
+
export type ClientStorage = StateStorage;
|
|
6
|
+
export type ScalarValue = string | number | boolean | null;
|
|
7
|
+
export interface ScanResultDetail {
|
|
8
|
+
input: ScannerInput;
|
|
9
|
+
scanEvents: Event[];
|
|
10
|
+
}
|
|
11
|
+
export interface SearchResultScope {
|
|
12
|
+
messages?: "all";
|
|
13
|
+
events?: "all";
|
|
14
|
+
}
|
|
15
|
+
/** Topic versions: maps topic name to timestamp. */
|
|
16
|
+
export type TopicVersions = Record<InvalidationTopic, string>;
|
|
17
|
+
export interface ScoutApiV2 {
|
|
18
|
+
getConfig(): Promise<AppConfig>;
|
|
19
|
+
getTranscripts(transcriptsDir: string, filter?: Condition, orderBy?: OrderByModel | OrderByModel[], pagination?: Pagination): Promise<TranscriptsResponse>;
|
|
20
|
+
hasTranscript(transcriptsDir: string, id: string): Promise<boolean>;
|
|
21
|
+
getTranscript(transcriptsDir: string, id: string): Promise<Transcript>;
|
|
22
|
+
getTranscriptsColumnValues(transcriptsDir: string, column: string, filter: Condition | undefined): Promise<ScalarValue[]>;
|
|
23
|
+
getScans(scansDir: string, filter?: Condition, orderBy?: OrderByModel | OrderByModel[], pagination?: Pagination): Promise<ScansResponse>;
|
|
24
|
+
getScansColumnValues(scansDir: string, column: string, filter: Condition | undefined): Promise<ScalarValue[]>;
|
|
25
|
+
getScan(scansDir: string, scanPath: string): Promise<Status>;
|
|
26
|
+
getScannerDataframe(scansDir: string, scanPath: string, scanner: string, excludeColumns?: string[]): Promise<ArrayBuffer | Uint8Array>;
|
|
27
|
+
getScannerDataframeDetail(scansDir: string, scanPath: string, scanner: string, uuid: string): Promise<ScanResultDetail>;
|
|
28
|
+
getActiveScans(): Promise<ActiveScansResponse>;
|
|
29
|
+
postCode(condition: Condition): Promise<Record<string, string>>;
|
|
30
|
+
getProjectConfig(): Promise<{
|
|
31
|
+
config: ProjectConfig;
|
|
32
|
+
etag: string;
|
|
33
|
+
}>;
|
|
34
|
+
updateProjectConfig(config: ProjectConfigInput, etag: string | null): Promise<{
|
|
35
|
+
config: ProjectConfig;
|
|
36
|
+
etag: string;
|
|
37
|
+
}>;
|
|
38
|
+
startScan(config: ScanJobConfig): Promise<Status>;
|
|
39
|
+
getScanners(): Promise<ScannersResponse>;
|
|
40
|
+
connectTopicUpdates(onUpdate: (topVersions: TopicVersions) => void): () => void;
|
|
41
|
+
getValidationSets(): Promise<string[]>;
|
|
42
|
+
getValidationCases(uri: string): Promise<ValidationCase[]>;
|
|
43
|
+
getValidationCase(uri: string, caseId: string): Promise<ValidationCase>;
|
|
44
|
+
createValidationSet(request: CreateValidationSetRequest): Promise<string>;
|
|
45
|
+
upsertValidationCase(uri: string, caseId: string, data: ValidationCaseRequest): Promise<ValidationCase>;
|
|
46
|
+
deleteValidationCase(uri: string, caseId: string): Promise<void>;
|
|
47
|
+
deleteValidationSet(uri: string): Promise<void>;
|
|
48
|
+
renameValidationSet(uri: string, newName: string): Promise<string>;
|
|
49
|
+
postSearch(transcriptDir: string, transcriptId: string, request: SearchRequest): Promise<SearchResponse>;
|
|
50
|
+
getSearches(searchType: SearchRequest["type"], count: number): Promise<SearchInputListResponse>;
|
|
51
|
+
getSearchResult(transcriptDir: string, transcriptId: string, searchId: string, scope: SearchResultScope): Promise<Result | null>;
|
|
52
|
+
downloadScan?(scansDir: string, scanPath: string): Promise<Blob>;
|
|
53
|
+
storage: ClientStorage;
|
|
54
|
+
capability: "scans" | "workbench";
|
|
55
|
+
}
|
|
56
|
+
export declare const NoPersistence: ClientStorage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const resolveAttachments: <T>(obj: T, attachments: Record<string, string>) => T;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ScannerInputResponse } from '../types/api-types';
|
|
2
|
+
/**
|
|
3
|
+
* Expand condensed events in a scan result input.
|
|
4
|
+
* Handles both "transcript" (events inside Transcript object) and "events" input types.
|
|
5
|
+
*/
|
|
6
|
+
export declare function expandInputEvents(input: ScannerInputResponse["input"], inputType: ScannerInputResponse["input_type"], inputData: ScannerInputResponse["input_data"]): ScannerInputResponse["input"];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { JsonValue } from '../types/json-value';
|
|
2
|
+
import { JsonRpcParams, kMethodHttpRequest } from './jsonrpc';
|
|
3
|
+
export { kMethodHttpRequest };
|
|
4
|
+
export type HttpProxyRequest = {
|
|
5
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
6
|
+
path: string;
|
|
7
|
+
headers?: Record<string, string>;
|
|
8
|
+
body?: string;
|
|
9
|
+
};
|
|
10
|
+
export interface HttpProxyResponse {
|
|
11
|
+
status: number;
|
|
12
|
+
headers: Record<string, string>;
|
|
13
|
+
body: string | null;
|
|
14
|
+
bodyEncoding?: "utf8" | "base64";
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Creates a fetch function that proxies requests through JSON-RPC.
|
|
18
|
+
* Used in VS Code webview to route HTTP requests through the extension host.
|
|
19
|
+
*/
|
|
20
|
+
export declare function createJsonRpcFetch(rpcClient: (method: string, params?: JsonRpcParams) => Promise<JsonValue>): typeof fetch;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { VSCodeApi } from '@tsmono/util';
|
|
2
|
+
import { JsonArray, JsonObject, JsonValue } from '../types/json-value';
|
|
3
|
+
export type JsonRpcParams = JsonArray | JsonObject;
|
|
4
|
+
type JsonRpcErrorData = {
|
|
5
|
+
description?: string;
|
|
6
|
+
} & {
|
|
7
|
+
[key: string]: JsonValue;
|
|
8
|
+
};
|
|
9
|
+
export type JsonRpcClient = (method: string, params?: JsonRpcParams) => Promise<JsonValue>;
|
|
10
|
+
interface JsonRpcError {
|
|
11
|
+
code: number;
|
|
12
|
+
message: string;
|
|
13
|
+
data?: JsonRpcErrorData;
|
|
14
|
+
}
|
|
15
|
+
interface PostMessageTarget {
|
|
16
|
+
postMessage: (data: unknown) => void;
|
|
17
|
+
onMessage: (handler: (data: unknown) => void) => () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const kMethodEvalLogDir = "eval_log_dir";
|
|
20
|
+
export declare const kMethodEvalLogs = "eval_logs";
|
|
21
|
+
export declare const kMethodEvalLogFiles = "eval_log_files";
|
|
22
|
+
export declare const kMethodEvalLog = "eval_log";
|
|
23
|
+
export declare const kMethodEvalLogSize = "eval_log_size";
|
|
24
|
+
export declare const kMethodEvalLogBytes = "eval_log_bytes";
|
|
25
|
+
export declare const kMethodEvalLogHeaders = "eval_log_headers";
|
|
26
|
+
export declare const kMethodPendingSamples = "eval_log_pending_samples";
|
|
27
|
+
export declare const kMethodSampleData = "eval_log_sample_data";
|
|
28
|
+
export declare const kMethodLogMessage = "log_message";
|
|
29
|
+
export declare const kMethodGetScan = "get_scan";
|
|
30
|
+
export declare const kMethodGetScans = "get_scans";
|
|
31
|
+
export declare const kMethodGetScannerDataframe = "get_scanner_dataframe";
|
|
32
|
+
export declare const kMethodGetScannerDataframeInput = "get_scanner_dataframe_input";
|
|
33
|
+
export declare const kMethodHttpRequest = "http_request";
|
|
34
|
+
export declare const kJsonRpcParseError = -32700;
|
|
35
|
+
export declare const kJsonRpcInvalidRequest = -32600;
|
|
36
|
+
export declare const kJsonRpcMethodNotFound = -32601;
|
|
37
|
+
export declare const kJsonRpcInvalidParams = -32602;
|
|
38
|
+
export declare const kJsonRpcInternalError = -32603;
|
|
39
|
+
export declare const kJsonRpcVersion = "2.0";
|
|
40
|
+
export declare function webViewJsonRpcClient(vscode: VSCodeApi): JsonRpcClient;
|
|
41
|
+
export declare function jsonRpcError(message: string, data?: unknown, code?: number): JsonRpcError;
|
|
42
|
+
export declare function asJsonRpcError(error: unknown): JsonRpcError;
|
|
43
|
+
export declare function jsonRpcPostMessageRequestTransport(target: PostMessageTarget): {
|
|
44
|
+
request: (method: string, params?: JsonRpcParams) => Promise<JsonValue>;
|
|
45
|
+
disconnect: () => void;
|
|
46
|
+
};
|
|
47
|
+
export declare function jsonRpcPostMessageServer(target: PostMessageTarget, methods: {
|
|
48
|
+
[key: string]: (params: unknown) => Promise<JsonValue>;
|
|
49
|
+
} | ((name: string) => ((params: unknown) => Promise<JsonValue>) | undefined)): () => void;
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "HEAD";
|
|
2
|
+
export interface Request<T> {
|
|
3
|
+
headers?: Record<string, string>;
|
|
4
|
+
body?: string;
|
|
5
|
+
parse?: (text: string) => Promise<T>;
|
|
6
|
+
handleError?: (status: number) => T | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Opt into browser caching. Only use for endpoints that set appropriate caching
|
|
9
|
+
* headers (e.g., ETag). Caching is disabled by default.
|
|
10
|
+
*/
|
|
11
|
+
enableBrowserCache?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type HeaderProvider = () => Promise<Record<string, string>>;
|
|
14
|
+
export interface ServerRequestApi {
|
|
15
|
+
fetchString: (method: HttpMethod, path: string, headers?: Record<string, string>, body?: string) => Promise<{
|
|
16
|
+
raw: string;
|
|
17
|
+
}>;
|
|
18
|
+
fetchVoid: (method: HttpMethod, path: string, headers?: Record<string, string>) => Promise<void>;
|
|
19
|
+
fetchBytes: (method: HttpMethod, path: string, headers?: Record<string, string>, extraAcceptType?: string) => Promise<{
|
|
20
|
+
data: ArrayBuffer;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}>;
|
|
23
|
+
fetchType: <T>(method: HttpMethod, path: string, request?: Request<T>) => Promise<{
|
|
24
|
+
raw: string;
|
|
25
|
+
parsed: T;
|
|
26
|
+
headers: Headers;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
export declare function serverRequestApi(baseUrl?: string, getHeaders?: HeaderProvider, customFetch?: typeof fetch): ServerRequestApi;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface Activity {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
interface ActivityBarProps {
|
|
9
|
+
activities: Activity[];
|
|
10
|
+
onSelectActivity: (id: string, options?: {
|
|
11
|
+
openInNewTab?: boolean;
|
|
12
|
+
}) => void;
|
|
13
|
+
selectedActivity: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const ActivityBar: FC<ActivityBarProps>;
|
|
16
|
+
interface ActivityProps extends Activity {
|
|
17
|
+
selected?: boolean;
|
|
18
|
+
onSelect: (id: string, options?: {
|
|
19
|
+
openInNewTab?: boolean;
|
|
20
|
+
}) => void;
|
|
21
|
+
}
|
|
22
|
+
declare const Activity: FC<ActivityProps>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { AppConfig } from '../../types/api-types';
|
|
3
|
+
interface ActivityBarLayoutProps {
|
|
4
|
+
config: AppConfig;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Layout component that wraps all routes with the ActivityBar navigation
|
|
9
|
+
*/
|
|
10
|
+
export declare const ActivityBarLayout: FC<ActivityBarLayoutProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ScalarValue } from '../../api/api';
|
|
3
|
+
import { OperatorModel } from '../../query';
|
|
4
|
+
import { AvailableColumn } from './columnFilter/ColumnFilterEditor';
|
|
5
|
+
/** Props accepted by AddFilterButton - subset of useAddFilterPopover return */
|
|
6
|
+
export interface AddFilterPopoverState {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
setIsOpen: (open: boolean) => void;
|
|
9
|
+
selectedColumnId: string | null;
|
|
10
|
+
columns: AvailableColumn[];
|
|
11
|
+
filterType: "string" | "number" | "date" | "datetime" | "boolean" | "duration" | "unknown";
|
|
12
|
+
operator: OperatorModel;
|
|
13
|
+
setOperator: (op: OperatorModel) => void;
|
|
14
|
+
operatorOptions: OperatorModel[];
|
|
15
|
+
value: string;
|
|
16
|
+
setValue: (v: string) => void;
|
|
17
|
+
value2: string;
|
|
18
|
+
setValue2: (v: string) => void;
|
|
19
|
+
isValueDisabled: boolean;
|
|
20
|
+
isRangeOperator: boolean;
|
|
21
|
+
handleColumnChange: (columnId: string) => void;
|
|
22
|
+
commitAndClose: () => void;
|
|
23
|
+
cancelAndClose: () => void;
|
|
24
|
+
}
|
|
25
|
+
export interface AddFilterButtonProps {
|
|
26
|
+
/** Unique prefix for popover IDs */
|
|
27
|
+
idPrefix: string;
|
|
28
|
+
/** Popover state from useAddFilterPopover hook */
|
|
29
|
+
popoverState: AddFilterPopoverState;
|
|
30
|
+
/** Suggestions for autocomplete */
|
|
31
|
+
suggestions?: ScalarValue[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* "Add filter" chip + popover pattern extracted for reuse.
|
|
35
|
+
* Accepts popover state from useAddFilterPopover hook.
|
|
36
|
+
*/
|
|
37
|
+
export declare const AddFilterButton: FC<AddFilterButtonProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface BreadCrumbsProps {
|
|
3
|
+
baseDir?: string;
|
|
4
|
+
relativePath: string;
|
|
5
|
+
getRouteForSegment?: (path: string) => string | undefined;
|
|
6
|
+
disableLastSegment?: boolean;
|
|
7
|
+
className?: string | string[];
|
|
8
|
+
}
|
|
9
|
+
export declare const BreadCrumbs: FC<BreadCrumbsProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ChipProps {
|
|
2
|
+
icon?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
value: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
closeTitle?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
onClose?: (event?: React.MouseEvent | React.KeyboardEvent) => void;
|
|
9
|
+
className?: string | string[];
|
|
10
|
+
}
|
|
11
|
+
export declare const Chip: import('react').ForwardRefExoticComponent<ChipProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, FC, ReactNode } from 'react';
|
|
2
|
+
interface ColumnHeaderProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
actions?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const ColumnHeader: FC<ColumnHeaderProps>;
|
|
7
|
+
interface ColumnHeaderButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
8
|
+
icon: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ColumnHeaderButton: import('react').ForwardRefExoticComponent<ColumnHeaderButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface ColumnPickerRenderProps {
|
|
3
|
+
positionEl: HTMLButtonElement | null;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
setIsOpen: (open: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface ColumnPickerButtonProps {
|
|
8
|
+
/**
|
|
9
|
+
* Render prop for the popover content.
|
|
10
|
+
* Receives positionEl, isOpen, and setIsOpen to wire up the popover.
|
|
11
|
+
*/
|
|
12
|
+
children: (props: ColumnPickerRenderProps) => ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Column picker button pattern extracted for reuse.
|
|
16
|
+
* Manages button ref and open/closed state internally.
|
|
17
|
+
* Uses render prop pattern to allow domain-specific popovers.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ColumnPickerButton: FC<ColumnPickerButtonProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface ColumnInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
headerTitle?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ColumnsPopoverProps {
|
|
8
|
+
/** Popover positioning element */
|
|
9
|
+
positionEl: HTMLElement | null;
|
|
10
|
+
/** Whether the popover is open */
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
/** Callback to set open state */
|
|
13
|
+
setIsOpen: (open: boolean) => void;
|
|
14
|
+
/** All available columns in display order */
|
|
15
|
+
columns: ColumnInfo[];
|
|
16
|
+
/** Currently visible column IDs */
|
|
17
|
+
visibleColumns: string[];
|
|
18
|
+
/** Default visible column IDs (for "Default" link) */
|
|
19
|
+
defaultVisibleColumns: string[];
|
|
20
|
+
/** Callback when visible columns change */
|
|
21
|
+
onVisibleColumnsChange: (columns: string[]) => void;
|
|
22
|
+
/** Optional popover ID for accessibility */
|
|
23
|
+
popoverId?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const ColumnsPopover: FC<ColumnsPopoverProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ColumnTable } from 'arquero';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
export declare const GRID_STATE_NAME = "DataframeView";
|
|
4
|
+
interface DataframeViewProps {
|
|
5
|
+
columnTable?: ColumnTable;
|
|
6
|
+
sortedColumns?: string[];
|
|
7
|
+
onRowDoubleClicked?: (rowData: object) => void;
|
|
8
|
+
onVisibleRowCountChanged?: (count: number) => void;
|
|
9
|
+
options?: {
|
|
10
|
+
maxStrLen?: number;
|
|
11
|
+
};
|
|
12
|
+
enableKeyboardNavigation?: boolean;
|
|
13
|
+
showRowNumbers?: boolean;
|
|
14
|
+
wrapText?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const DataframeView: FC<DataframeViewProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
interface DownloadScanButtonProps {
|
|
3
|
+
scansDir: string;
|
|
4
|
+
scanPath: string;
|
|
5
|
+
download: (scansDir: string, scanPath: string) => Promise<Blob>;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DownloadScanButton: ({ scansDir, scanPath, download, className, }: DownloadScanButtonProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface EditablePathProps {
|
|
3
|
+
path?: string | null;
|
|
4
|
+
secondaryText?: string | null;
|
|
5
|
+
onPathChanged: (path: string) => void;
|
|
6
|
+
mru?: string[];
|
|
7
|
+
label?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
editable?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const EditablePath: FC<EditablePathProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface EditableTextProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
secondaryValue?: string | null;
|
|
5
|
+
onValueChanged: (value: string) => void;
|
|
6
|
+
mru?: string[];
|
|
7
|
+
mruMaxItems?: number;
|
|
8
|
+
label?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
editable?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const EditableText: FC<EditableTextProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ScalarValue } from '../../api/api';
|
|
3
|
+
import { SimpleCondition } from '../../query/types';
|
|
4
|
+
import { ColumnFilter } from '../../state/store';
|
|
5
|
+
import { AddFilterPopoverState } from './AddFilterButton';
|
|
6
|
+
import { AvailableColumn } from './columnFilter';
|
|
7
|
+
import { ColumnInfo } from './ColumnsPopover';
|
|
8
|
+
export interface FilterBarProps {
|
|
9
|
+
/** Current column filters */
|
|
10
|
+
filters: Record<string, ColumnFilter>;
|
|
11
|
+
/** Callback when a filter condition is changed */
|
|
12
|
+
onFilterChange: (columnId: string, condition: SimpleCondition | null) => void;
|
|
13
|
+
/** Callback when a filter is removed */
|
|
14
|
+
onRemoveFilter: (columnId: string) => void;
|
|
15
|
+
/** Optional code representations for copy functionality */
|
|
16
|
+
filterCodeValues?: Record<string, string>;
|
|
17
|
+
/** Autocomplete suggestions for filter values */
|
|
18
|
+
filterSuggestions?: ScalarValue[];
|
|
19
|
+
/** Callback when filter column selection changes (for fetching suggestions) */
|
|
20
|
+
onFilterColumnChange?: (columnId: string | null) => void;
|
|
21
|
+
/** Unique ID prefix for popovers */
|
|
22
|
+
popoverIdPrefix?: string;
|
|
23
|
+
/** Popover state from useAddFilterPopover hook */
|
|
24
|
+
addFilterPopoverState: AddFilterPopoverState;
|
|
25
|
+
/** Column definitions for the picker */
|
|
26
|
+
columns?: ColumnInfo[];
|
|
27
|
+
/** Currently visible column IDs */
|
|
28
|
+
visibleColumns?: string[];
|
|
29
|
+
/** Default visible column IDs */
|
|
30
|
+
defaultVisibleColumns?: string[];
|
|
31
|
+
/** Callback when visible columns change */
|
|
32
|
+
onVisibleColumnsChange?: (columns: string[]) => void;
|
|
33
|
+
}
|
|
34
|
+
export declare const FilterBar: FC<FilterBarProps>;
|
|
35
|
+
export type { AddFilterPopoverState, AvailableColumn, ColumnInfo };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
interface FooterProps {
|
|
3
|
+
id: string;
|
|
4
|
+
className?: string | string[];
|
|
5
|
+
itemCount?: number;
|
|
6
|
+
filteredCount?: number;
|
|
7
|
+
left?: ReactNode;
|
|
8
|
+
progressText?: string;
|
|
9
|
+
progressBar?: ReactNode;
|
|
10
|
+
paginated: boolean;
|
|
11
|
+
pagesize?: number;
|
|
12
|
+
page?: number;
|
|
13
|
+
itemsPerPage?: number;
|
|
14
|
+
setPage?: (page: number) => void;
|
|
15
|
+
labels?: {
|
|
16
|
+
singular: string;
|
|
17
|
+
plural: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export declare const Footer: FC<FooterProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface HeadingValue {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
value: ReactNode;
|
|
5
|
+
labelPosition?: "left" | "right" | "above" | "below";
|
|
6
|
+
minWidth?: string;
|
|
7
|
+
}
|
|
8
|
+
interface HeadingGridProps {
|
|
9
|
+
headings: HeadingValue[];
|
|
10
|
+
className?: string | string[];
|
|
11
|
+
labelClassName?: string | string[];
|
|
12
|
+
valueClassName?: string | string[];
|
|
13
|
+
}
|
|
14
|
+
export declare const HeadingGrid: FC<HeadingGridProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface NavButton {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
route: string;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface NavButtonsProps {
|
|
9
|
+
buttons: NavButton[];
|
|
10
|
+
}
|
|
11
|
+
export declare const NavButtons: FC<NavButtonsProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { NavButton } from './NavButtons';
|
|
3
|
+
interface NavbarProps {
|
|
4
|
+
leftButtons?: NavButton[];
|
|
5
|
+
left?: ReactNode;
|
|
6
|
+
right?: ReactNode;
|
|
7
|
+
rightButtons?: NavButton[];
|
|
8
|
+
bordered?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Navbar: FC<NavbarProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
interface NextPreviousNavProps {
|
|
3
|
+
onPrevious?: () => void;
|
|
4
|
+
onNext?: () => void;
|
|
5
|
+
hasPrevious: boolean;
|
|
6
|
+
hasNext: boolean;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
enableKeyboardNav?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const NextPreviousNav: FC<NextPreviousNavProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
interface ScansNavbarProps {
|
|
3
|
+
scansDir: string | null;
|
|
4
|
+
scansDirSource?: "route" | "user" | "project" | "cli";
|
|
5
|
+
setScansDir: (path: string) => void;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
bordered?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ScansNavbar: FC<ScansNavbarProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { JsonValue } from '@tsmono/inspect-common/types';
|
|
3
|
+
interface ScoreProps {
|
|
4
|
+
score: JsonValue;
|
|
5
|
+
className?: string | string[];
|
|
6
|
+
maxRows?: number;
|
|
7
|
+
/** When false, rows beyond maxRows are hidden with no expand toggle. */
|
|
8
|
+
expandable?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const ScoreValue: FC<ScoreProps>;
|
|
11
|
+
export declare const renderScore: (value: JsonValue, maxRows?: number, expandable?: boolean) => string | import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
interface TranscriptsNavbarProps {
|
|
3
|
+
transcriptsDir?: string | null;
|
|
4
|
+
transcriptsDirSource?: "route" | "user" | "project" | "cli" | "unknown";
|
|
5
|
+
filter?: string;
|
|
6
|
+
setTranscriptsDir: (path: string) => void;
|
|
7
|
+
bordered?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const TranscriptsNavbar: FC<TranscriptsNavbarProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|