@meridianlabs/inspect-scout-viewer 0.4.21 → 0.4.38
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/README.md +2 -0
- package/package.json +47 -58
- package/lib/_commonjsHelpers-DWwsNxpa.js +0 -9
- package/lib/_commonjsHelpers-DWwsNxpa.js.map +0 -1
- package/lib/chunk-DfAF0w94-Oj7OW_Zs.js +0 -9
- package/lib/chunk-DfAF0w94-Oj7OW_Zs.js.map +0 -1
- package/lib/e2e/app-navigation.spec.d.ts +0 -1
- package/lib/e2e/fixtures/app.d.ts +0 -7
- package/lib/e2e/fixtures/handlers.d.ts +0 -2
- package/lib/e2e/fixtures/test-data.d.ts +0 -14
- package/lib/e2e/scan.spec.d.ts +0 -1
- package/lib/e2e/scans.spec.d.ts +0 -1
- package/lib/e2e/transcript.spec.d.ts +0 -1
- package/lib/e2e/transcripts.spec.d.ts +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -161737
- package/lib/index.js.map +0 -1
- package/lib/lib-CBtriEt5-CU1RYBHb.js +0 -1070
- package/lib/lib-CBtriEt5-CU1RYBHb.js.map +0 -1
- package/lib/liteDOM-Cp0aN3bP-DXyQNx3e.js +0 -644
- package/lib/liteDOM-Cp0aN3bP-DXyQNx3e.js.map +0 -1
- package/lib/src/App.d.ts +0 -6
- package/lib/src/AppErrorBoundary.d.ts +0 -15
- package/lib/src/AppRouter.d.ts +0 -6
- package/lib/src/api/api-scout-server.d.ts +0 -8
- package/lib/src/api/api-vscode.d.ts +0 -3
- package/lib/src/api/api.d.ts +0 -44
- package/lib/src/api/attachmentsHelpers.d.ts +0 -1
- package/lib/src/api/expandInputEvents.d.ts +0 -6
- package/lib/src/api/jsonrpc-fetch.d.ts +0 -20
- package/lib/src/api/jsonrpc.d.ts +0 -50
- package/lib/src/api/request.d.ts +0 -34
- package/lib/src/api/vscode-storage.d.ts +0 -3
- package/lib/src/app/components/ActivityBar.d.ts +0 -23
- package/lib/src/app/components/ActivityBarLayout.d.ts +0 -11
- package/lib/src/app/components/AddFilterButton.d.ts +0 -37
- package/lib/src/app/components/BreadCrumbs.d.ts +0 -10
- package/lib/src/app/components/Chip.d.ts +0 -12
- package/lib/src/app/components/ChipGroup.d.ts +0 -7
- package/lib/src/app/components/ColumnHeader.d.ts +0 -11
- package/lib/src/app/components/ColumnPickerButton.d.ts +0 -19
- package/lib/src/app/components/ColumnsPopover.d.ts +0 -25
- package/lib/src/app/components/EditablePath.d.ts +0 -15
- package/lib/src/app/components/EditableText.d.ts +0 -16
- package/lib/src/app/components/Error.d.ts +0 -7
- package/lib/src/app/components/Explanation.d.ts +0 -12
- package/lib/src/app/components/FilterBar.d.ts +0 -35
- package/lib/src/app/components/Footer.d.ts +0 -21
- package/lib/src/app/components/HeadingGrid.d.ts +0 -15
- package/lib/src/app/components/Identifier.d.ts +0 -7
- package/lib/src/app/components/NavButtons.d.ts +0 -12
- package/lib/src/app/components/Navbar.d.ts +0 -11
- package/lib/src/app/components/NextPreviousNav.d.ts +0 -11
- package/lib/src/app/components/Pager.d.ts +0 -9
- package/lib/src/app/components/ProjectBar.d.ts +0 -7
- package/lib/src/app/components/ScansNavbar.d.ts +0 -10
- package/lib/src/app/components/ScoreValue.d.ts +0 -10
- package/lib/src/app/components/TaskName.d.ts +0 -8
- package/lib/src/app/components/TranscriptsNavbar.d.ts +0 -11
- package/lib/src/app/components/ValidationResult.d.ts +0 -9
- package/lib/src/app/components/Value.d.ts +0 -15
- package/lib/src/app/components/columnFilter/ColumnFilterButton.d.ts +0 -6
- package/lib/src/app/components/columnFilter/ColumnFilterControl.d.ts +0 -16
- package/lib/src/app/components/columnFilter/ColumnFilterEditor.d.ts +0 -32
- package/lib/src/app/components/columnFilter/DurationInput.d.ts +0 -9
- package/lib/src/app/components/columnFilter/index.d.ts +0 -12
- package/lib/src/app/components/columnFilter/useAddFilterPopover.d.ts +0 -36
- package/lib/src/app/components/columnFilter/useColumnFilter.d.ts +0 -27
- package/lib/src/app/components/columnFilter/useColumnFilterPopover.d.ts +0 -25
- package/lib/src/app/components/columnSizing/defaultStrategy.d.ts +0 -2
- package/lib/src/app/components/columnSizing/fitContentStrategy.d.ts +0 -2
- package/lib/src/app/components/columnSizing/index.d.ts +0 -5
- package/lib/src/app/components/columnSizing/strategies.d.ts +0 -10
- package/lib/src/app/components/columnSizing/types.d.ts +0 -60
- package/lib/src/app/components/columnTypes.d.ts +0 -46
- package/lib/src/app/components/dataGrid/DataGrid.d.ts +0 -8
- package/lib/src/app/components/dataGrid/index.d.ts +0 -2
- package/lib/src/app/components/dataGrid/types.d.ts +0 -70
- package/lib/src/app/components/useBreadcrumbTruncation.d.ts +0 -12
- package/lib/src/app/components/useFilterBarHandlers.d.ts +0 -41
- package/lib/src/app/hooks/useFilterConditions.d.ts +0 -6
- package/lib/src/app/hooks/useScanFilterConditions.d.ts +0 -6
- package/lib/src/app/hooks/useScanResultSummaries.d.ts +0 -6
- package/lib/src/app/hooks/useScanRoute.d.ts +0 -8
- package/lib/src/app/hooks/useScansFilterBarProps.d.ts +0 -13
- package/lib/src/app/hooks/useSelectedScan.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanDataframe.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanResultData.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanResultInputData.d.ts +0 -3
- package/lib/src/app/hooks/useSelectedScanner.d.ts +0 -2
- package/lib/src/app/hooks/useTranscriptsFilterBarProps.d.ts +0 -18
- package/lib/src/app/project/ProjectPanel.d.ts +0 -7
- package/lib/src/app/project/SettingsContent.d.ts +0 -7
- package/lib/src/app/project/components/FormFields.d.ts +0 -73
- package/lib/src/app/project/configUtils.d.ts +0 -30
- package/lib/src/app/project/hooks/useNestedConfig.d.ts +0 -28
- package/lib/src/app/runScan/ActiveScanView.d.ts +0 -6
- package/lib/src/app/runScan/DefineScannerSection.d.ts +0 -6
- package/lib/src/app/runScan/LlmScannerParams.d.ts +0 -14
- package/lib/src/app/runScan/RunScanPanel.d.ts +0 -2
- package/lib/src/app/runScan/ScannerParamsPlaceholder.d.ts +0 -6
- package/lib/src/app/scan/ScanPanel.d.ts +0 -2
- package/lib/src/app/scan/ScanPanelBody.d.ts +0 -6
- package/lib/src/app/scan/ScanPanelTitle.d.ts +0 -6
- package/lib/src/app/scan/info/ScanInfo.d.ts +0 -5
- package/lib/src/app/scan/scanners/ScannerPanel.d.ts +0 -5
- package/lib/src/app/scan/scanners/ScannerSidebar.d.ts +0 -5
- package/lib/src/app/scan/scanners/dataframe/DataframeGridApiContext.d.ts +0 -7
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeCSVButtons.d.ts +0 -11
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeClearFiltersButton.d.ts +0 -2
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeColumnsPopover.d.ts +0 -5
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeFilterColumnsButton.d.ts +0 -1
- package/lib/src/app/scan/scanners/dataframe/ScannerDataframeWrapTextButton.d.ts +0 -2
- package/lib/src/app/scan/scanners/dataframe/useOperationStatus.d.ts +0 -7
- package/lib/src/app/scan/scanners/list/ScannerResultsGroup.d.ts +0 -6
- package/lib/src/app/scan/scanners/list/ScannerResultsHeader.d.ts +0 -7
- package/lib/src/app/scan/scanners/list/ScannerResultsList.d.ts +0 -14
- package/lib/src/app/scan/scanners/list/ScannerResultsRow.d.ts +0 -9
- package/lib/src/app/scan/scanners/results/ScannerResultsBody.d.ts +0 -12
- package/lib/src/app/scan/scanners/results/ScannerResultsFilter.d.ts +0 -4
- package/lib/src/app/scan/scanners/results/ScannerResultsGroup.d.ts +0 -7
- package/lib/src/app/scan/scanners/results/ScannerResultsSearch.d.ts +0 -2
- package/lib/src/app/scan/scanners/types.d.ts +0 -1
- package/lib/src/app/scannerResult/ScannerResultHeader.d.ts +0 -9
- package/lib/src/app/scannerResult/ScannerResultNav.d.ts +0 -2
- package/lib/src/app/scannerResult/ScannerResultPanel.d.ts +0 -2
- package/lib/src/app/scannerResult/error/ErrorPanel.d.ts +0 -7
- package/lib/src/app/scannerResult/info/InfoPanel.d.ts +0 -9
- package/lib/src/app/scannerResult/metadata/MetadataPanel.d.ts +0 -7
- package/lib/src/app/scannerResult/result/ResultBody.d.ts +0 -10
- package/lib/src/app/scannerResult/result/ResultPanel.d.ts +0 -11
- package/lib/src/app/scannerResult/result/ResultSidebar.d.ts +0 -9
- package/lib/src/app/scannerResult/transcript/TranscriptPanel.d.ts +0 -10
- package/lib/src/app/scans/ScansFilterBar.d.ts +0 -7
- package/lib/src/app/scans/ScansGrid.d.ts +0 -21
- package/lib/src/app/scans/ScansPanel.d.ts +0 -2
- package/lib/src/app/scans/columnSizing/index.d.ts +0 -3
- package/lib/src/app/scans/columnSizing/useColumnSizing.d.ts +0 -33
- package/lib/src/app/scans/columns.d.ts +0 -25
- package/lib/src/app/scans/constants.d.ts +0 -35
- package/lib/src/app/server/index.d.ts +0 -6
- package/lib/src/app/server/useActiveScan.d.ts +0 -3
- package/lib/src/app/server/useActiveScans.d.ts +0 -3
- package/lib/src/app/server/useAdjacentTranscriptIds.d.ts +0 -10
- package/lib/src/app/server/useAppConfig.d.ts +0 -20
- package/lib/src/app/server/useCode.d.ts +0 -4
- package/lib/src/app/server/useHasTranscript.d.ts +0 -8
- package/lib/src/app/server/useProjectConfig.d.ts +0 -30
- package/lib/src/app/server/useScan.d.ts +0 -9
- package/lib/src/app/server/useScanDataframe.d.ts +0 -10
- package/lib/src/app/server/useScanDataframeInput.d.ts +0 -11
- package/lib/src/app/server/useScanners.d.ts +0 -3
- package/lib/src/app/server/useScans.d.ts +0 -3
- package/lib/src/app/server/useScansColumnValues.d.ts +0 -11
- package/lib/src/app/server/useScansInfinite.d.ts +0 -6
- package/lib/src/app/server/useServerTranscripts.d.ts +0 -5
- package/lib/src/app/server/useServerTranscriptsInfinite.d.ts +0 -13
- package/lib/src/app/server/useStartScan.d.ts +0 -3
- package/lib/src/app/server/useTopicInvalidation.d.ts +0 -11
- package/lib/src/app/server/useTranscript.d.ts +0 -9
- package/lib/src/app/server/useTranscriptsColumnValues.d.ts +0 -11
- package/lib/src/app/server/useValidations.d.ts +0 -83
- package/lib/src/app/timeline/components/TimelineEventsView.d.ts +0 -41
- package/lib/src/app/timeline/components/TimelineMinimap.d.ts +0 -30
- package/lib/src/app/timeline/components/TimelineOptionsPopover.d.ts +0 -10
- package/lib/src/app/timeline/components/TimelineSelector.d.ts +0 -11
- package/lib/src/app/timeline/components/TimelineSwimLanes.d.ts +0 -62
- package/lib/src/app/timeline/contentItems.d.ts +0 -29
- package/lib/src/app/timeline/hooks/useActiveTimeline.d.ts +0 -12
- package/lib/src/app/timeline/hooks/useScrubberPercent.d.ts +0 -8
- package/lib/src/app/timeline/hooks/useTimeline.d.ts +0 -46
- package/lib/src/app/timeline/hooks/useTimelineConfig.d.ts +0 -22
- package/lib/src/app/timeline/hooks/useTranscriptTimeline.d.ts +0 -37
- package/lib/src/app/timeline/syntheticNodes.d.ts +0 -7
- package/lib/src/app/timeline/testHelpers.d.ts +0 -26
- package/lib/src/app/timeline/timelineEventNodes.d.ts +0 -93
- package/lib/src/app/timeline/utils/markers.d.ts +0 -41
- package/lib/src/app/timeline/utils/swimlaneLayout.d.ts +0 -96
- package/lib/src/app/timeline/utils/swimlaneRows.d.ts +0 -62
- package/lib/src/app/timeline/utils/timeMapping.d.ts +0 -41
- package/lib/src/app/transcript/TranscriptBody.d.ts +0 -17
- package/lib/src/app/transcript/TranscriptFilterPopover.d.ts +0 -7
- package/lib/src/app/transcript/TranscriptNav.d.ts +0 -10
- package/lib/src/app/transcript/TranscriptPanel.d.ts +0 -2
- package/lib/src/app/transcript/TranscriptTitle.d.ts +0 -7
- package/lib/src/app/transcript/debugEventTree.d.ts +0 -4
- package/lib/src/app/transcript/hooks/useTranscriptColumnFilter.d.ts +0 -11
- package/lib/src/app/transcript/hooks/useTranscriptNavigation.d.ts +0 -12
- package/lib/src/app/transcript/hooks/useTranscriptTimeline.d.ts +0 -1
- package/lib/src/app/transcripts/TranscriptFilterBar.d.ts +0 -8
- package/lib/src/app/transcripts/TranscriptsGrid.d.ts +0 -21
- package/lib/src/app/transcripts/TranscriptsPanel.d.ts +0 -2
- package/lib/src/app/transcripts/columnSizing/index.d.ts +0 -3
- package/lib/src/app/transcripts/columnSizing/types.d.ts +0 -22
- package/lib/src/app/transcripts/columnSizing/useColumnSizing.d.ts +0 -34
- package/lib/src/app/transcripts/columns.d.ts +0 -37
- package/lib/src/app/transcripts/constants.d.ts +0 -35
- package/lib/src/app/types.d.ts +0 -112
- package/lib/src/app/utils/arrow.d.ts +0 -2
- package/lib/src/app/utils/arrowHelpers.d.ts +0 -4
- package/lib/src/app/utils/expandEvents.d.ts +0 -8
- package/lib/src/app/utils/messages.d.ts +0 -7
- package/lib/src/app/utils/refs.d.ts +0 -6
- package/lib/src/app/utils/results.d.ts +0 -10
- package/lib/src/app/utils/router.d.ts +0 -1
- package/lib/src/app/utils/scan.d.ts +0 -12
- package/lib/src/app/utils/transcript.d.ts +0 -29
- package/lib/src/app/utils/useScansDir.d.ts +0 -8
- package/lib/src/app/utils/useTranscriptsDir.d.ts +0 -8
- package/lib/src/app/validation/ValidationPanel.d.ts +0 -2
- package/lib/src/app/validation/components/CopyMoveCasesModal.d.ts +0 -24
- package/lib/src/app/validation/components/ValidationBulkActions.d.ts +0 -16
- package/lib/src/app/validation/components/ValidationCaseCard.d.ts +0 -23
- package/lib/src/app/validation/components/ValidationCaseEditor.d.ts +0 -23
- package/lib/src/app/validation/components/ValidationCaseLabelsEditor.d.ts +0 -20
- package/lib/src/app/validation/components/ValidationCasePredicateSelector.d.ts +0 -19
- package/lib/src/app/validation/components/ValidationCaseTargetEditor.d.ts +0 -13
- package/lib/src/app/validation/components/ValidationCasesList.d.ts +0 -19
- package/lib/src/app/validation/components/ValidationFilterBar.d.ts +0 -14
- package/lib/src/app/validation/components/ValidationSetSelector.d.ts +0 -21
- package/lib/src/app/validation/components/ValidationSplitSelector.d.ts +0 -23
- package/lib/src/app/validation/components/ValidationSummary.d.ts +0 -11
- package/lib/src/app/validation/hooks/useTranscriptsByIds.d.ts +0 -13
- package/lib/src/app/validation/utils.d.ts +0 -55
- package/lib/src/components/AnsiDisplay.d.ts +0 -8
- package/lib/src/components/AsciinemaPlayer.d.ts +0 -19
- package/lib/src/components/AutocompleteInput.d.ts +0 -19
- package/lib/src/components/Card.d.ts +0 -32
- package/lib/src/components/ConfirmationDialog.d.ts +0 -15
- package/lib/src/components/CopyButton.d.ts +0 -12
- package/lib/src/components/DataframeView.d.ts +0 -17
- package/lib/src/components/DownloadScanButton.d.ts +0 -9
- package/lib/src/components/EmptyPanel.d.ts +0 -6
- package/lib/src/components/ErrorPanel.d.ts +0 -12
- package/lib/src/components/ExpandablePanel.d.ts +0 -12
- package/lib/src/components/ExtendedFindContext.d.ts +0 -7
- package/lib/src/components/ExtendedFindProvider.d.ts +0 -6
- package/lib/src/components/FindBand.d.ts +0 -6
- package/lib/src/components/HumanBaselineView.d.ts +0 -21
- package/lib/src/components/JsonPanel.d.ts +0 -11
- package/lib/src/components/LabeledValue.d.ts +0 -11
- package/lib/src/components/LightboxCarousel.d.ts +0 -14
- package/lib/src/components/LiveVirtualList.d.ts +0 -22
- package/lib/src/components/LoadingBar.d.ts +0 -6
- package/lib/src/components/MarkdownDiv.d.ts +0 -11
- package/lib/src/components/MarkdownDivWithReferences.d.ts +0 -18
- package/lib/src/components/MenuActionButton.d.ts +0 -15
- package/lib/src/components/Modal.d.ts +0 -11
- package/lib/src/components/NavPills.d.ts +0 -11
- package/lib/src/components/NoContentsPanel.d.ts +0 -7
- package/lib/src/components/NonIdealState.d.ts +0 -10
- package/lib/src/components/PopOver.d.ts +0 -23
- package/lib/src/components/Preformatted.d.ts +0 -7
- package/lib/src/components/ProgressBar.d.ts +0 -9
- package/lib/src/components/PulsingDots.d.ts +0 -10
- package/lib/src/components/SegmentedControl.d.ts +0 -14
- package/lib/src/components/SourceCodePanel.d.ts +0 -11
- package/lib/src/components/StickyScroll.d.ts +0 -18
- package/lib/src/components/TabSet.d.ts +0 -27
- package/lib/src/components/TextInput.d.ts +0 -10
- package/lib/src/components/ToolButton.d.ts +0 -10
- package/lib/src/components/ToolDropdownButton.d.ts +0 -11
- package/lib/src/components/chat/ChatMessage.d.ts +0 -13
- package/lib/src/components/chat/ChatMessageRenderer.d.ts +0 -15
- package/lib/src/components/chat/ChatMessageRow.d.ts +0 -22
- package/lib/src/components/chat/ChatView.d.ts +0 -21
- package/lib/src/components/chat/ChatViewVirtualList.d.ts +0 -30
- package/lib/src/components/chat/JsonMessageContent.d.ts +0 -7
- package/lib/src/components/chat/MessageCitations.d.ts +0 -6
- package/lib/src/components/chat/MessageContent.d.ts +0 -18
- package/lib/src/components/chat/MessageContents.d.ts +0 -15
- package/lib/src/components/chat/content-data/CompactionData.d.ts +0 -6
- package/lib/src/components/chat/content-data/ContentDataView.d.ts +0 -19
- package/lib/src/components/chat/content-data/WebSearch.d.ts +0 -4
- package/lib/src/components/chat/content-data/WebSearchResults.d.ts +0 -9
- package/lib/src/components/chat/documents/ContentDocumentView.d.ts +0 -8
- package/lib/src/components/chat/messageSearchText.d.ts +0 -5
- package/lib/src/components/chat/messages.d.ts +0 -8
- package/lib/src/components/chat/server-tools/ServerToolCall.d.ts +0 -12
- package/lib/src/components/chat/tools/ToolCallView.d.ts +0 -19
- package/lib/src/components/chat/tools/ToolInput.d.ts +0 -10
- package/lib/src/components/chat/tools/ToolOutput.d.ts +0 -11
- package/lib/src/components/chat/tools/ToolTitle.d.ts +0 -10
- package/lib/src/components/chat/tools/customToolRendering.d.ts +0 -2
- package/lib/src/components/chat/tools/tool-input/TodoWriteInput.d.ts +0 -5
- package/lib/src/components/chat/tools/tool.d.ts +0 -18
- package/lib/src/components/chat/types.d.ts +0 -8
- package/lib/src/components/content/DisplayModeContext.d.ts +0 -9
- package/lib/src/components/content/MetaDataGrid.d.ts +0 -20
- package/lib/src/components/content/RecordTree.d.ts +0 -24
- package/lib/src/components/content/RenderedContent.d.ts +0 -18
- package/lib/src/components/content/RenderedText.d.ts +0 -15
- package/lib/src/components/content/record_processors/store.d.ts +0 -2
- package/lib/src/components/content/record_processors/types.d.ts +0 -1
- package/lib/src/components/content/types.d.ts +0 -18
- package/lib/src/components/icons.d.ts +0 -151
- package/lib/src/components/prism.d.ts +0 -2
- package/lib/src/components/transcript/AgentCardView.d.ts +0 -8
- package/lib/src/components/transcript/ApprovalEventView.d.ts +0 -12
- package/lib/src/components/transcript/CompactionEventView.d.ts +0 -12
- package/lib/src/components/transcript/ErrorEventView.d.ts +0 -12
- package/lib/src/components/transcript/InfoEventView.d.ts +0 -12
- package/lib/src/components/transcript/InputEventView.d.ts +0 -12
- package/lib/src/components/transcript/LoggerEventView.d.ts +0 -12
- package/lib/src/components/transcript/ModelEventView.d.ts +0 -25
- package/lib/src/components/transcript/SampleInitEventView.d.ts +0 -12
- package/lib/src/components/transcript/SampleLimitEventView.d.ts +0 -12
- package/lib/src/components/transcript/SandboxEventView.d.ts +0 -12
- package/lib/src/components/transcript/ScoreEditEventView.d.ts +0 -12
- package/lib/src/components/transcript/ScoreEventView.d.ts +0 -12
- package/lib/src/components/transcript/SpanEventView.d.ts +0 -13
- package/lib/src/components/transcript/StepEventView.d.ts +0 -13
- package/lib/src/components/transcript/SubtaskEventView.d.ts +0 -13
- package/lib/src/components/transcript/TimelineSelectContext.d.ts +0 -7
- package/lib/src/components/transcript/ToolEventView.d.ts +0 -13
- package/lib/src/components/transcript/TranscriptView.d.ts +0 -13
- package/lib/src/components/transcript/TranscriptViewNodes.d.ts +0 -19
- package/lib/src/components/transcript/TranscriptVirtualList.d.ts +0 -31
- package/lib/src/components/transcript/TranscriptVirtualListComponent.d.ts +0 -18
- package/lib/src/components/transcript/event/EventNav.d.ts +0 -12
- package/lib/src/components/transcript/event/EventNavs.d.ts +0 -15
- package/lib/src/components/transcript/event/EventPanel.d.ts +0 -20
- package/lib/src/components/transcript/event/EventProgressPanel.d.ts +0 -6
- package/lib/src/components/transcript/event/EventRow.d.ts +0 -12
- package/lib/src/components/transcript/event/EventSection.d.ts +0 -12
- package/lib/src/components/transcript/event/EventTimingPanel.d.ts +0 -12
- package/lib/src/components/transcript/event/utils.d.ts +0 -2
- package/lib/src/components/transcript/eventSearchText.d.ts +0 -5
- package/lib/src/components/transcript/hooks/useCollapseTranscriptEvent.d.ts +0 -1
- package/lib/src/components/transcript/hooks/useEventNodes.d.ts +0 -7
- package/lib/src/components/transcript/outline/OutlineRow.d.ts +0 -19
- package/lib/src/components/transcript/outline/TranscriptOutline.d.ts +0 -22
- package/lib/src/components/transcript/outline/tree-visitors.d.ts +0 -13
- package/lib/src/components/transcript/outline/useOutlineWidth.d.ts +0 -9
- package/lib/src/components/transcript/resolveMessageToEvent.d.ts +0 -19
- package/lib/src/components/transcript/state/StateDiffView.d.ts +0 -11
- package/lib/src/components/transcript/state/StateEventRenderers.d.ts +0 -48
- package/lib/src/components/transcript/state/StateEventView.d.ts +0 -13
- package/lib/src/components/transcript/timeline.d.ts +0 -128
- package/lib/src/components/transcript/transform/fixups.d.ts +0 -291
- package/lib/src/components/transcript/transform/flatten.d.ts +0 -15
- package/lib/src/components/transcript/transform/transform.d.ts +0 -2
- package/lib/src/components/transcript/transform/treeify.d.ts +0 -3
- package/lib/src/components/transcript/transform/utils.d.ts +0 -18
- package/lib/src/components/transcript/types.d.ts +0 -28
- package/lib/src/components/usage/ModelTokenTable.d.ts +0 -8
- package/lib/src/components/usage/ModelUsagePanel.d.ts +0 -11
- package/lib/src/components/usage/TokenTable.d.ts +0 -14
- package/lib/src/components/usage/UsageCard.d.ts +0 -10
- package/lib/src/debugging/navigationDebugging.d.ts +0 -8
- package/lib/src/hooks/useDocumentTitle.d.ts +0 -26
- package/lib/src/hooks/useDropdownPosition.d.ts +0 -40
- package/lib/src/hooks/useMapAsyncData.d.ts +0 -27
- package/lib/src/hooks/usePreviousValue.d.ts +0 -25
- package/lib/src/hooks/useScrollDirection.d.ts +0 -43
- package/lib/src/hooks/useWindowMessaging.d.ts +0 -19
- package/lib/src/index.d.ts +0 -5
- package/lib/src/main.d.ts +0 -6
- package/lib/src/query/column.d.ts +0 -23
- package/lib/src/query/conditionBuilder.d.ts +0 -29
- package/lib/src/query/index.d.ts +0 -96
- package/lib/src/query/transcriptColumns.d.ts +0 -32
- package/lib/src/query/types.d.ts +0 -62
- package/lib/src/router/activities.d.ts +0 -11
- package/lib/src/router/url.d.ts +0 -76
- package/lib/src/state/hooks/useCollapsedState.d.ts +0 -1
- package/lib/src/state/hooks/useCollapsibleIds.d.ts +0 -1
- package/lib/src/state/hooks/useProperty.d.ts +0 -4
- package/lib/src/state/scrolling.d.ts +0 -27
- package/lib/src/state/store.d.ts +0 -277
- package/lib/src/state/userSettings.d.ts +0 -22
- package/lib/src/test/objectFactories.d.ts +0 -4
- package/lib/src/test/setup-msw.d.ts +0 -1
- package/lib/src/test/test-utils.d.ts +0 -2
- package/lib/src/types/api-types.d.ts +0 -97
- package/lib/src/types/generated.d.ts +0 -5031
- package/lib/src/types/json-value.d.ts +0 -12
- package/lib/src/utils/ansi.d.ts +0 -12
- package/lib/src/utils/array.d.ts +0 -1
- package/lib/src/utils/arrow.d.ts +0 -3
- package/lib/src/utils/asyncData.d.ts +0 -66
- package/lib/src/utils/asyncDataFromQuery.d.ts +0 -13
- package/lib/src/utils/base64.d.ts +0 -4
- package/lib/src/utils/base64url.d.ts +0 -38
- package/lib/src/utils/brand.d.ts +0 -70
- package/lib/src/utils/chatMessage.d.ts +0 -3
- package/lib/src/utils/date.d.ts +0 -34
- package/lib/src/utils/dom.d.ts +0 -1
- package/lib/src/utils/format.d.ts +0 -53
- package/lib/src/utils/html.d.ts +0 -5
- package/lib/src/utils/json-worker.d.ts +0 -2
- package/lib/src/utils/json.d.ts +0 -4
- package/lib/src/utils/logger.d.ts +0 -7
- package/lib/src/utils/mime.d.ts +0 -1
- package/lib/src/utils/object.d.ts +0 -1
- package/lib/src/utils/path.d.ts +0 -28
- package/lib/src/utils/python.d.ts +0 -11
- package/lib/src/utils/react-query.d.ts +0 -4
- package/lib/src/utils/react.d.ts +0 -6
- package/lib/src/utils/router.d.ts +0 -1
- package/lib/src/utils/sync.d.ts +0 -21
- package/lib/src/utils/type.d.ts +0 -15
- package/lib/src/utils/uri.d.ts +0 -19
- package/lib/src/utils/useDebouncedCallback.d.ts +0 -20
- package/lib/src/utils/vscode.d.ts +0 -20
- package/lib/styles/index.css +0 -9030
- package/lib/tex-svg-full-BI3fonbT-FZEHFXiJ.js +0 -27979
- package/lib/tex-svg-full-BI3fonbT-FZEHFXiJ.js.map +0 -1
- package/lib/wgxpath.install-node-Csk64Aj9-Ckau6iLd.js +0 -1081
- package/lib/wgxpath.install-node-Csk64Aj9-Ckau6iLd.js.map +0 -1
- package/lib/xypic-DrMJn58R-DRoJoooA.js +0 -9542
- package/lib/xypic-DrMJn58R-DRoJoooA.js.map +0 -1
|
@@ -1,15 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,12 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { JsonValue } from '../../types/api-types';
|
|
3
|
-
interface ScoreProps {
|
|
4
|
-
score: JsonValue;
|
|
5
|
-
className?: string | string[];
|
|
6
|
-
maxRows?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const ScoreValue: FC<ScoreProps>;
|
|
9
|
-
export declare const renderScore: (value: JsonValue, maxRows?: number) => string | import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { JsonValue } from '../../types/json-value';
|
|
3
|
-
interface ValidationResultProps {
|
|
4
|
-
result: boolean | Record<string, boolean>;
|
|
5
|
-
target?: JsonValue;
|
|
6
|
-
label?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const ValidationResult: FC<ValidationResultProps>;
|
|
9
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { MarkdownReference } from '../../components/MarkdownDivWithReferences';
|
|
3
|
-
import { ScanResultSummary } from '../types';
|
|
4
|
-
interface ValueProps {
|
|
5
|
-
summary: ScanResultSummary;
|
|
6
|
-
references: MarkdownReference[];
|
|
7
|
-
style: "inline" | "block";
|
|
8
|
-
maxTableSize?: number;
|
|
9
|
-
interactive?: boolean;
|
|
10
|
-
options?: {
|
|
11
|
-
previewRefsOnHover?: boolean;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare const Value: FC<ValueProps>;
|
|
15
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export interface ColumnFilterButtonProps {
|
|
2
|
-
columnId: string;
|
|
3
|
-
isActive: boolean;
|
|
4
|
-
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const ColumnFilterButton: import('react').ForwardRefExoticComponent<ColumnFilterButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ScalarValue } from '../../../api/api';
|
|
3
|
-
import { SimpleCondition } from '../../../query/types';
|
|
4
|
-
import { FilterType } from '../../../state/store';
|
|
5
|
-
interface ColumnFilterControlProps {
|
|
6
|
-
columnId: string;
|
|
7
|
-
filterType: FilterType;
|
|
8
|
-
condition: SimpleCondition | null;
|
|
9
|
-
onChange: (condition: SimpleCondition | null) => void;
|
|
10
|
-
/** Autocomplete suggestions for the filter value */
|
|
11
|
-
suggestions?: ScalarValue[];
|
|
12
|
-
/** Called when the popover opens/closes (for fetching suggestions) */
|
|
13
|
-
onOpenChange?: (columnId: string | null) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const ColumnFilterControl: FC<ColumnFilterControlProps>;
|
|
16
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ScalarValue } from '../../../api/api';
|
|
3
|
-
import { OperatorModel } from '../../../query';
|
|
4
|
-
import { FilterType } from '../../../state/store';
|
|
5
|
-
export interface AvailableColumn {
|
|
6
|
-
id: string;
|
|
7
|
-
label: string;
|
|
8
|
-
filterType: FilterType;
|
|
9
|
-
}
|
|
10
|
-
export interface ColumnFilterEditorProps {
|
|
11
|
-
columnId: string;
|
|
12
|
-
filterType: FilterType;
|
|
13
|
-
operator: OperatorModel;
|
|
14
|
-
operatorOptions: OperatorModel[];
|
|
15
|
-
rawValue: string;
|
|
16
|
-
/** Second value for BETWEEN/NOT BETWEEN operators */
|
|
17
|
-
rawValue2?: string;
|
|
18
|
-
isValueDisabled: boolean;
|
|
19
|
-
/** True if operator expects a range with two values (BETWEEN, NOT BETWEEN) */
|
|
20
|
-
isRangeOperator?: boolean;
|
|
21
|
-
onOperatorChange: (operator: OperatorModel) => void;
|
|
22
|
-
onValueChange: (value: string) => void;
|
|
23
|
-
/** Handler for second value changes (BETWEEN operators) */
|
|
24
|
-
onValue2Change?: (value: string) => void;
|
|
25
|
-
onCommit?: () => void;
|
|
26
|
-
onCancel?: () => void;
|
|
27
|
-
suggestions?: ScalarValue[];
|
|
28
|
-
mode?: "add" | "edit";
|
|
29
|
-
columns?: AvailableColumn[];
|
|
30
|
-
onColumnChange?: (columnId: string) => void;
|
|
31
|
-
}
|
|
32
|
-
export declare const ColumnFilterEditor: FC<ColumnFilterEditorProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent, FC } from 'react';
|
|
2
|
-
export interface DurationInputProps {
|
|
3
|
-
id: string;
|
|
4
|
-
value: string;
|
|
5
|
-
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
autoFocus?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const DurationInput: FC<DurationInputProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export { ColumnFilterControl } from './ColumnFilterControl';
|
|
2
|
-
export { ColumnFilterButton } from './ColumnFilterButton';
|
|
3
|
-
export { ColumnFilterEditor } from './ColumnFilterEditor';
|
|
4
|
-
export { DurationInput } from './DurationInput';
|
|
5
|
-
export { useColumnFilter } from './useColumnFilter';
|
|
6
|
-
export { useColumnFilterPopover } from './useColumnFilterPopover';
|
|
7
|
-
export { useAddFilterPopover } from './useAddFilterPopover';
|
|
8
|
-
export type { UseColumnFilterParams, UseColumnFilterReturn, } from './useColumnFilter';
|
|
9
|
-
export type { ColumnFilterEditorProps, AvailableColumn, } from './ColumnFilterEditor';
|
|
10
|
-
export type { ColumnFilterButtonProps } from './ColumnFilterButton';
|
|
11
|
-
export type { UseColumnFilterPopoverParams, UseColumnFilterPopoverReturn, } from './useColumnFilterPopover';
|
|
12
|
-
export type { UseAddFilterPopoverParams } from './useAddFilterPopover';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { OperatorModel } from '../../../query';
|
|
2
|
-
import { ColumnFilter } from '../../../state/store';
|
|
3
|
-
import { AvailableColumn } from './ColumnFilterEditor';
|
|
4
|
-
export interface UseAddFilterPopoverParams {
|
|
5
|
-
/** Columns available for filtering */
|
|
6
|
-
columns: AvailableColumn[];
|
|
7
|
-
/** Current filters */
|
|
8
|
-
filters: Record<string, ColumnFilter>;
|
|
9
|
-
/** Callback when a filter is added */
|
|
10
|
-
onAddFilter: (filter: ColumnFilter) => void;
|
|
11
|
-
/** Callback when the selected column changes (for fetching suggestions) */
|
|
12
|
-
onFilterColumnChange?: (columnId: string | null) => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Generic hook for managing the "Add Filter" popover state.
|
|
16
|
-
* Wraps useColumnFilter with column selection and open/close logic.
|
|
17
|
-
*/
|
|
18
|
-
export declare function useAddFilterPopover({ columns, filters, onAddFilter, onFilterColumnChange, }: UseAddFilterPopoverParams): {
|
|
19
|
-
isOpen: boolean;
|
|
20
|
-
setIsOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
21
|
-
selectedColumnId: string | null;
|
|
22
|
-
columns: AvailableColumn[];
|
|
23
|
-
filterType: import('../../../state/store').FilterType;
|
|
24
|
-
operator: "=" | "!=" | "<" | "<=" | ">" | ">=" | "IN" | "NOT IN" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IS NULL" | "IS NOT NULL" | "BETWEEN" | "NOT BETWEEN";
|
|
25
|
-
setOperator: (op: OperatorModel) => void;
|
|
26
|
-
operatorOptions: ("=" | "!=" | "<" | "<=" | ">" | ">=" | "IN" | "NOT IN" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IS NULL" | "IS NOT NULL" | "BETWEEN" | "NOT BETWEEN")[];
|
|
27
|
-
value: string;
|
|
28
|
-
setValue: (value: string) => void;
|
|
29
|
-
value2: string;
|
|
30
|
-
setValue2: (value: string) => void;
|
|
31
|
-
isValueDisabled: boolean;
|
|
32
|
-
isRangeOperator: boolean;
|
|
33
|
-
handleColumnChange: (newColumnId: string) => void;
|
|
34
|
-
commitAndClose: () => void;
|
|
35
|
-
cancelAndClose: () => void;
|
|
36
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { OperatorModel } from '../../../query';
|
|
2
|
-
import { SimpleCondition } from '../../../query/types';
|
|
3
|
-
import { FilterType } from '../../../state/store';
|
|
4
|
-
export interface UseColumnFilterParams {
|
|
5
|
-
columnId: string;
|
|
6
|
-
filterType: FilterType;
|
|
7
|
-
condition: SimpleCondition | null;
|
|
8
|
-
isOpen: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface UseColumnFilterReturn {
|
|
11
|
-
operator: OperatorModel;
|
|
12
|
-
setOperator: (operator: OperatorModel) => void;
|
|
13
|
-
operatorOptions: OperatorModel[];
|
|
14
|
-
value: string;
|
|
15
|
-
setValue: (value: string) => void;
|
|
16
|
-
/** Second value for BETWEEN/NOT BETWEEN operators */
|
|
17
|
-
value2: string;
|
|
18
|
-
setValue2: (value: string) => void;
|
|
19
|
-
/** True if operator requires no value (IS NULL, IS NOT NULL) */
|
|
20
|
-
usesValue: boolean;
|
|
21
|
-
/** True if operator expects a list of values (IN, NOT IN) */
|
|
22
|
-
usesListValue: boolean;
|
|
23
|
-
/** True if operator expects a range with two values (BETWEEN, NOT BETWEEN) */
|
|
24
|
-
usesRangeValue: boolean;
|
|
25
|
-
buildCondition: (operator: OperatorModel, value: string, value2?: string) => SimpleCondition | null | undefined;
|
|
26
|
-
}
|
|
27
|
-
export declare function useColumnFilter({ columnId, filterType, condition, isOpen, }: UseColumnFilterParams): UseColumnFilterReturn;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { SimpleCondition } from '../../../query/types';
|
|
2
|
-
import { FilterType } from '../../../state/store';
|
|
3
|
-
import { useColumnFilter } from './useColumnFilter';
|
|
4
|
-
export interface UseColumnFilterPopoverParams {
|
|
5
|
-
columnId: string;
|
|
6
|
-
filterType: FilterType;
|
|
7
|
-
condition: SimpleCondition | null;
|
|
8
|
-
onChange: (condition: SimpleCondition | null) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface UseColumnFilterPopoverReturn {
|
|
11
|
-
isOpen: boolean;
|
|
12
|
-
setIsOpen: (open: boolean) => void;
|
|
13
|
-
operator: ReturnType<typeof useColumnFilter>["operator"];
|
|
14
|
-
setOperator: ReturnType<typeof useColumnFilter>["setOperator"];
|
|
15
|
-
operatorOptions: ReturnType<typeof useColumnFilter>["operatorOptions"];
|
|
16
|
-
value: ReturnType<typeof useColumnFilter>["value"];
|
|
17
|
-
setValue: ReturnType<typeof useColumnFilter>["setValue"];
|
|
18
|
-
value2: ReturnType<typeof useColumnFilter>["value2"];
|
|
19
|
-
setValue2: ReturnType<typeof useColumnFilter>["setValue2"];
|
|
20
|
-
isValueDisabled: ReturnType<typeof useColumnFilter>["usesValue"];
|
|
21
|
-
isRangeOperator: ReturnType<typeof useColumnFilter>["usesRangeValue"];
|
|
22
|
-
commitAndClose: () => void;
|
|
23
|
-
cancelAndClose: () => void;
|
|
24
|
-
}
|
|
25
|
-
export declare function useColumnFilterPopover({ columnId, filterType, condition, onChange, }: UseColumnFilterPopoverParams): UseColumnFilterPopoverReturn;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { clampSize, getColumnConstraints, getColumnId, DEFAULT_MAX_SIZE, DEFAULT_MIN_SIZE, DEFAULT_SIZE, } from './types';
|
|
2
|
-
export type { ColumnSizeConstraints, ColumnSizingStrategyKey, SizingStrategy, SizingStrategyContext, } from './types';
|
|
3
|
-
export { defaultStrategy } from './defaultStrategy';
|
|
4
|
-
export { fitContentStrategy } from './fitContentStrategy';
|
|
5
|
-
export { getSizingStrategy, sizingStrategies } from './strategies';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ColumnSizingStrategyKey, SizingStrategy } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Registry of all available sizing strategies.
|
|
4
|
-
*/
|
|
5
|
-
export declare const sizingStrategies: Record<ColumnSizingStrategyKey, SizingStrategy>;
|
|
6
|
-
/**
|
|
7
|
-
* Get a sizing strategy by key.
|
|
8
|
-
* Falls back to default strategy if key is not found.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getSizingStrategy(key: ColumnSizingStrategyKey): SizingStrategy;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ColumnSizingState } from '@tanstack/react-table';
|
|
2
|
-
import { ExtendedColumnDef, BaseColumnMeta } from '../columnTypes';
|
|
3
|
-
/**
|
|
4
|
-
* Size constraints for a column.
|
|
5
|
-
*/
|
|
6
|
-
export interface ColumnSizeConstraints {
|
|
7
|
-
/** Default size in pixels */
|
|
8
|
-
size: number;
|
|
9
|
-
/** Minimum allowed size in pixels */
|
|
10
|
-
minSize: number;
|
|
11
|
-
/** Maximum allowed size in pixels */
|
|
12
|
-
maxSize: number;
|
|
13
|
-
}
|
|
14
|
-
/** Default minimum column size in pixels */
|
|
15
|
-
export declare const DEFAULT_MIN_SIZE = 40;
|
|
16
|
-
/** Default maximum column size in pixels */
|
|
17
|
-
export declare const DEFAULT_MAX_SIZE = 600;
|
|
18
|
-
/** Default column size in pixels when not specified */
|
|
19
|
-
export declare const DEFAULT_SIZE = 150;
|
|
20
|
-
/**
|
|
21
|
-
* Context provided to sizing strategies for computing column sizes.
|
|
22
|
-
* Generic over TData (row data type).
|
|
23
|
-
*/
|
|
24
|
-
export interface SizingStrategyContext<TData> {
|
|
25
|
-
/** The table element for DOM measurements (may be null) */
|
|
26
|
-
tableElement: HTMLTableElement | null;
|
|
27
|
-
/** Column definitions */
|
|
28
|
-
columns: ExtendedColumnDef<TData, BaseColumnMeta>[];
|
|
29
|
-
/** Current data for content measurement */
|
|
30
|
-
data: TData[];
|
|
31
|
-
/** Pre-computed constraints for each column */
|
|
32
|
-
constraints: Map<string, ColumnSizeConstraints>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Interface for column sizing strategies.
|
|
36
|
-
* Each strategy computes column sizes differently.
|
|
37
|
-
* Generic over TData (row data type).
|
|
38
|
-
*/
|
|
39
|
-
export interface SizingStrategy<TData = unknown> {
|
|
40
|
-
/** Compute sizes for all columns */
|
|
41
|
-
computeSizes(context: SizingStrategyContext<TData>): ColumnSizingState;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Available sizing strategy keys.
|
|
45
|
-
* - "default": Uses the column's defined `size` property
|
|
46
|
-
* - "fit-content": Measures content and sizes columns to fit within min/max constraints
|
|
47
|
-
*/
|
|
48
|
-
export type ColumnSizingStrategyKey = "default" | "fit-content";
|
|
49
|
-
/**
|
|
50
|
-
* Clamp a size value to min/max constraints.
|
|
51
|
-
*/
|
|
52
|
-
export declare function clampSize(size: number, constraints: ColumnSizeConstraints): number;
|
|
53
|
-
/**
|
|
54
|
-
* Get the column ID from a column definition.
|
|
55
|
-
*/
|
|
56
|
-
export declare function getColumnId<TData>(column: ExtendedColumnDef<TData, BaseColumnMeta>): string;
|
|
57
|
-
/**
|
|
58
|
-
* Extract size constraints from column definitions.
|
|
59
|
-
*/
|
|
60
|
-
export declare function getColumnConstraints<TData>(columns: ExtendedColumnDef<TData, BaseColumnMeta>[]): Map<string, ColumnSizeConstraints>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
-
import { FilterType } from '../../state/store';
|
|
3
|
-
/**
|
|
4
|
-
* Common column metadata properties shared across all data grids.
|
|
5
|
-
*/
|
|
6
|
-
export interface BaseColumnMeta {
|
|
7
|
-
/** Text alignment for the column */
|
|
8
|
-
align?: "left" | "center" | "right";
|
|
9
|
-
/** Whether the column can be filtered */
|
|
10
|
-
filterable?: boolean;
|
|
11
|
-
/** Filter type for the column */
|
|
12
|
-
filterType?: FilterType;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Extended column definition with custom properties for data grids.
|
|
16
|
-
* Extends TanStack Table's ColumnDef with additional rendering helpers.
|
|
17
|
-
*/
|
|
18
|
-
export type ExtendedColumnDef<TData, TMeta extends BaseColumnMeta = BaseColumnMeta> = ColumnDef<TData> & {
|
|
19
|
-
meta?: TMeta;
|
|
20
|
-
/** Returns string for tooltip display */
|
|
21
|
-
titleValue?: (value: unknown) => string;
|
|
22
|
-
/** Returns string representation for column width measurement. Return null to skip content measurement. */
|
|
23
|
-
textValue?: (value: unknown) => string | null;
|
|
24
|
-
/** Minimum column width in pixels */
|
|
25
|
-
minSize?: number;
|
|
26
|
-
/** Maximum column width in pixels */
|
|
27
|
-
maxSize?: number;
|
|
28
|
-
/** Tooltip text for the column header */
|
|
29
|
-
headerTitle?: string;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Configuration for the column picker component.
|
|
33
|
-
*/
|
|
34
|
-
export interface ColumnInfo {
|
|
35
|
-
/** Column identifier */
|
|
36
|
-
id: string;
|
|
37
|
-
/** Display label for the column */
|
|
38
|
-
label: string;
|
|
39
|
-
/** Optional tooltip for the column header */
|
|
40
|
-
headerTitle?: string;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Extract title value for tooltip from a cell.
|
|
44
|
-
* Uses custom titleValue function if provided, otherwise falls back to default formatting.
|
|
45
|
-
*/
|
|
46
|
-
export declare function getCellTitleValue<TData>(value: unknown, columnDef: ExtendedColumnDef<TData>): string;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { ExtendedColumnDef, BaseColumnMeta } from '../columnTypes';
|
|
3
|
-
import { DataGridProps, DataGridTableState } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Shared DataGrid component with virtual scrolling, sorting, filtering,
|
|
6
|
-
* row selection, keyboard navigation, and column reordering.
|
|
7
|
-
*/
|
|
8
|
-
export declare function DataGrid<TData, TColumn extends ExtendedColumnDef<TData, BaseColumnMeta>, TState extends DataGridTableState = DataGridTableState>({ data, columns, getRowId, getRowKey, state, onStateChange, getRowRoute, onScrollNearEnd, hasMore, fetchThreshold, filterSuggestions, onFilterColumnChange, onColumnSizingChange, onResetColumnSize, className, loading, emptyMessage, noConfigMessage, }: DataGridProps<TData, TColumn, TState>): ReactElement;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { ColumnSizingState, RowSelectionState, SortingState } from '@tanstack/react-table';
|
|
2
|
-
import { ScalarValue } from '../../../api/api';
|
|
3
|
-
import { SimpleCondition } from '../../../query/types';
|
|
4
|
-
import { ColumnFilter, FilterType } from '../../../state/store';
|
|
5
|
-
import { ExtendedColumnDef, BaseColumnMeta } from '../columnTypes';
|
|
6
|
-
/**
|
|
7
|
-
* Props for the shared DataGrid component.
|
|
8
|
-
* Designed to work with any data type and column configuration.
|
|
9
|
-
*
|
|
10
|
-
* @template TData - The row data type
|
|
11
|
-
* @template TColumn - The column definition type
|
|
12
|
-
* @template TState - The table state type (must extend DataGridTableState)
|
|
13
|
-
*/
|
|
14
|
-
export interface DataGridProps<TData, TColumn extends ExtendedColumnDef<TData>, TState extends DataGridTableState = DataGridTableState> {
|
|
15
|
-
/** Array of row data to display */
|
|
16
|
-
data: TData[];
|
|
17
|
-
/** Column definitions for the grid */
|
|
18
|
-
columns: TColumn[];
|
|
19
|
-
/** Get unique ID for a row */
|
|
20
|
-
getRowId: (row: TData) => string;
|
|
21
|
-
/** Get stable key for virtualizer (defaults to getRowId) */
|
|
22
|
-
getRowKey?: (index: number, row?: TData) => string;
|
|
23
|
-
/** All table state managed by parent store */
|
|
24
|
-
state: DataGridTableState;
|
|
25
|
-
onStateChange: (updater: TState | ((prev: TState) => TState)) => void;
|
|
26
|
-
/** Get the route for a row (for navigation) */
|
|
27
|
-
getRowRoute: (row: TData) => string;
|
|
28
|
-
/** Called when scroll position nears end. Receives distance from bottom in px. */
|
|
29
|
-
onScrollNearEnd?: (distanceFromBottom: number) => void;
|
|
30
|
-
/** Whether more data is available to fetch */
|
|
31
|
-
hasMore?: boolean;
|
|
32
|
-
/** Distance from bottom (in px) at which to trigger callback */
|
|
33
|
-
fetchThreshold?: number;
|
|
34
|
-
/** Autocomplete suggestions for the currently editing filter column */
|
|
35
|
-
filterSuggestions?: ScalarValue[];
|
|
36
|
-
/** Called when a filter column starts/stops being edited */
|
|
37
|
-
onFilterColumnChange?: (columnId: string | null) => void;
|
|
38
|
-
/** Handler for column sizing changes */
|
|
39
|
-
onColumnSizingChange?: (sizing: ColumnSizingState) => void;
|
|
40
|
-
/** Reset a single column to its auto-calculated size */
|
|
41
|
-
onResetColumnSize?: (columnId: string) => void;
|
|
42
|
-
/** Additional CSS class names */
|
|
43
|
-
className?: string | string[];
|
|
44
|
-
/** Whether data is loading */
|
|
45
|
-
loading?: boolean;
|
|
46
|
-
/** Message to show when there's no data */
|
|
47
|
-
emptyMessage?: string;
|
|
48
|
-
/** Message to show when there's no configuration (e.g., no directory) */
|
|
49
|
-
noConfigMessage?: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Table state managed by parent store.
|
|
53
|
-
* This is the shape of state that setTableState updater receives.
|
|
54
|
-
*/
|
|
55
|
-
export interface DataGridTableState {
|
|
56
|
-
columnSizing: ColumnSizingState;
|
|
57
|
-
columnOrder: string[];
|
|
58
|
-
sorting: SortingState;
|
|
59
|
-
rowSelection: RowSelectionState;
|
|
60
|
-
focusedRowId: string | null;
|
|
61
|
-
columnFilters: Record<string, ColumnFilter>;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Handler for column filter changes.
|
|
65
|
-
*/
|
|
66
|
-
export type ColumnFilterChangeHandler = (columnId: string, filterType: FilterType, condition: SimpleCondition | null) => void;
|
|
67
|
-
/**
|
|
68
|
-
* Re-export column types for convenience
|
|
69
|
-
*/
|
|
70
|
-
export type { ExtendedColumnDef, BaseColumnMeta };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
export interface BreadcrumbSegment {
|
|
3
|
-
text: string;
|
|
4
|
-
url?: string;
|
|
5
|
-
}
|
|
6
|
-
interface TruncatedBreadcrumbs {
|
|
7
|
-
visibleSegments: BreadcrumbSegment[];
|
|
8
|
-
hiddenCount: number;
|
|
9
|
-
showEllipsis: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const useBreadcrumbTruncation: (segments: BreadcrumbSegment[], containerRef: RefObject<HTMLElement | null>) => TruncatedBreadcrumbs;
|
|
12
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { SimpleCondition } from '../../query/types';
|
|
2
|
-
import { ColumnFilter } from '../../state/store';
|
|
3
|
-
/**
|
|
4
|
-
* Base table state interface that filter bar handlers can work with.
|
|
5
|
-
* Both ScansTableState and TranscriptsTableState conform to this.
|
|
6
|
-
*/
|
|
7
|
-
interface BaseTableState {
|
|
8
|
-
columnFilters: Record<string, ColumnFilter>;
|
|
9
|
-
visibleColumns?: string[];
|
|
10
|
-
columnOrder: string[];
|
|
11
|
-
}
|
|
12
|
-
interface FilterBarHandlers {
|
|
13
|
-
/**
|
|
14
|
-
* Update a filter's condition or remove it if condition is null
|
|
15
|
-
*/
|
|
16
|
-
handleFilterChange: (columnId: string, condition: SimpleCondition | null) => void;
|
|
17
|
-
/**
|
|
18
|
-
* Remove a filter by column ID
|
|
19
|
-
*/
|
|
20
|
-
removeFilter: (column: string) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Add a new filter, ensuring the column is visible
|
|
23
|
-
*/
|
|
24
|
-
handleAddFilter: (filter: ColumnFilter) => void;
|
|
25
|
-
}
|
|
26
|
-
interface UseFilterBarHandlersOptions<TColumnKey extends string, TState extends BaseTableState = BaseTableState> {
|
|
27
|
-
/**
|
|
28
|
-
* Store setter function that accepts an updater
|
|
29
|
-
*/
|
|
30
|
-
setTableState: (updater: TState | ((prev: TState) => TState)) => void;
|
|
31
|
-
/**
|
|
32
|
-
* Default visible columns to use when state doesn't have them set
|
|
33
|
-
*/
|
|
34
|
-
defaultVisibleColumns: readonly TColumnKey[];
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Hook that provides common filter bar handlers for both scans and transcripts tables.
|
|
38
|
-
* Extracts the duplicated logic from ScansFilterBar and TranscriptFilterBar.
|
|
39
|
-
*/
|
|
40
|
-
export declare function useFilterBarHandlers<TColumnKey extends string, TState extends BaseTableState = BaseTableState>({ setTableState, defaultVisibleColumns, }: UseFilterBarHandlersOptions<TColumnKey, TState>): FilterBarHandlers;
|
|
41
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Condition } from '../../query';
|
|
2
|
-
/**
|
|
3
|
-
* Build a combined filter condition from column filters.
|
|
4
|
-
* @param excludeColumnId - Optional column ID to exclude from the condition
|
|
5
|
-
*/
|
|
6
|
-
export declare const useFilterConditions: (excludeColumnId?: string) => Condition | undefined;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Condition } from '../../query';
|
|
2
|
-
/**
|
|
3
|
-
* Build a combined filter condition from scans column filters.
|
|
4
|
-
* @param excludeColumnId - Optional column ID to exclude from the condition
|
|
5
|
-
*/
|
|
6
|
-
export declare const useScanFilterConditions: (excludeColumnId?: string) => Condition | undefined;
|