@lincyaw/aegis-ui 0.9.4 → 0.10.0
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/dist/agent/ask/AskOverlay.cjs +3 -1
- package/dist/agent/ask/AskOverlay.cjs.map +1 -1
- package/dist/agent/ask/AskOverlay.d.ts +17 -1
- package/dist/agent/ask/AskOverlay.js +115 -58
- package/dist/agent/ask/AskOverlay.js.map +1 -1
- package/dist/agent/ask/AskPanel.cjs +1 -1
- package/dist/agent/ask/AskPanel.cjs.map +1 -1
- package/dist/agent/ask/AskPanel.d.ts +13 -3
- package/dist/agent/ask/AskPanel.js +130 -109
- package/dist/agent/ask/AskPanel.js.map +1 -1
- package/dist/agent/chat/chat.cjs +1 -1
- package/dist/agent/chat/chat.cjs.map +1 -1
- package/dist/agent/chat/chat.d.ts +1 -1
- package/dist/agent/chat/chat.js +3 -5
- package/dist/agent/chat/chat.js.map +1 -1
- package/dist/agent/chat/useAgentChat.cjs +1 -1
- package/dist/agent/chat/useAgentChat.cjs.map +1 -1
- package/dist/agent/chat/useAgentChat.d.ts +2 -0
- package/dist/agent/chat/useAgentChat.js +8 -4
- package/dist/agent/chat/useAgentChat.js.map +1 -1
- package/dist/agent/core/AegisRuntimeProvider.cjs.map +1 -1
- package/dist/agent/core/AegisRuntimeProvider.d.ts +2 -2
- package/dist/agent/core/AegisRuntimeProvider.js.map +1 -1
- package/dist/agent/core/hooks.cjs +1 -1
- package/dist/agent/core/hooks.cjs.map +1 -1
- package/dist/agent/core/hooks.js +21 -20
- package/dist/agent/core/hooks.js.map +1 -1
- package/dist/agent/core/runtime.cjs +1 -1
- package/dist/agent/core/runtime.cjs.map +1 -1
- package/dist/agent/core/runtime.d.ts +28 -9
- package/dist/agent/core/runtime.js +435 -268
- package/dist/agent/core/runtime.js.map +1 -1
- package/dist/agent/core/types.d.ts +65 -10
- package/dist/agent/index.d.ts +4 -3
- package/dist/commands/CommandProvider.cjs +1 -1
- package/dist/commands/CommandProvider.cjs.map +1 -1
- package/dist/commands/CommandProvider.js +33 -37
- package/dist/commands/CommandProvider.js.map +1 -1
- package/dist/commands/commandContext.cjs +1 -1
- package/dist/commands/commandContext.cjs.map +1 -1
- package/dist/commands/commandContext.d.ts +2 -5
- package/dist/commands/commandContext.js +3 -17
- package/dist/commands/commandContext.js.map +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/useCommands.cjs +1 -1
- package/dist/commands/useCommands.cjs.map +1 -1
- package/dist/commands/useCommands.d.ts +4 -2
- package/dist/commands/useCommands.js +21 -5
- package/dist/commands/useCommands.js.map +1 -1
- package/dist/commands/useRegisterCommands.cjs +2 -1
- package/dist/commands/useRegisterCommands.cjs.map +1 -1
- package/dist/commands/useRegisterCommands.d.ts +3 -2
- package/dist/commands/useRegisterCommands.js +35 -8
- package/dist/commands/useRegisterCommands.js.map +1 -1
- package/dist/components/ui/Alert.cjs +1 -1
- package/dist/components/ui/Alert.cjs.map +1 -1
- package/dist/components/ui/Alert.js +11 -11
- package/dist/components/ui/Alert.js.map +1 -1
- package/dist/components/ui/BlastRadiusBar.cjs +1 -1
- package/dist/components/ui/BlastRadiusBar.cjs.map +1 -1
- package/dist/components/ui/BlastRadiusBar.d.ts +3 -1
- package/dist/components/ui/BlastRadiusBar.js +20 -17
- package/dist/components/ui/BlastRadiusBar.js.map +1 -1
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/ChatComposer.cjs +1 -1
- package/dist/components/ui/ChatComposer.cjs.map +1 -1
- package/dist/components/ui/ChatComposer.js +3 -3
- package/dist/components/ui/ChatComposer.js.map +1 -1
- package/dist/components/ui/ChatSessionList.cjs +1 -1
- package/dist/components/ui/ChatSessionList.cjs.map +1 -1
- package/dist/components/ui/ChatSessionList.js +127 -150
- package/dist/components/ui/ChatSessionList.js.map +1 -1
- package/dist/components/ui/Checkbox.cjs +1 -1
- package/dist/components/ui/Checkbox.cjs.map +1 -1
- package/dist/components/ui/Checkbox.d.ts +3 -1
- package/dist/components/ui/Checkbox.js +19 -17
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/Chip.cjs +1 -1
- package/dist/components/ui/Chip.cjs.map +1 -1
- package/dist/components/ui/Chip.d.ts +6 -1
- package/dist/components/ui/Chip.js +20 -18
- package/dist/components/ui/Chip.js.map +1 -1
- package/dist/components/ui/ChoiceCardGroup.cjs +2 -0
- package/dist/components/ui/ChoiceCardGroup.cjs.map +1 -0
- package/dist/components/ui/ChoiceCardGroup.d.ts +25 -0
- package/dist/components/ui/ChoiceCardGroup.js +44 -0
- package/dist/components/ui/ChoiceCardGroup.js.map +1 -0
- package/dist/components/ui/CodeBlock.cjs +2 -2
- package/dist/components/ui/CodeBlock.cjs.map +1 -1
- package/dist/components/ui/CodeBlock.js +31 -27
- package/dist/components/ui/CodeBlock.js.map +1 -1
- package/dist/components/ui/CodeEditor.cjs +1 -1
- package/dist/components/ui/CodeEditor.cjs.map +1 -1
- package/dist/components/ui/CodeEditor.d.ts +5 -4
- package/dist/components/ui/CodeEditor.js +210 -63
- package/dist/components/ui/CodeEditor.js.map +1 -1
- package/dist/components/ui/Collapse.cjs +1 -1
- package/dist/components/ui/Collapse.cjs.map +1 -1
- package/dist/components/ui/Collapse.js +23 -23
- package/dist/components/ui/Collapse.js.map +1 -1
- package/dist/components/ui/ColumnChart.cjs +1 -1
- package/dist/components/ui/ColumnChart.cjs.map +1 -1
- package/dist/components/ui/ColumnChart.js +21 -20
- package/dist/components/ui/ColumnChart.js.map +1 -1
- package/dist/components/ui/CommandPalette.cjs +1 -1
- package/dist/components/ui/CommandPalette.cjs.map +1 -1
- package/dist/components/ui/CommandPalette.d.ts +23 -1
- package/dist/components/ui/CommandPalette.js +145 -120
- package/dist/components/ui/CommandPalette.js.map +1 -1
- package/dist/components/ui/CommitGraph.cjs +2 -0
- package/dist/components/ui/CommitGraph.cjs.map +1 -0
- package/dist/components/ui/CommitGraph.d.ts +77 -0
- package/dist/components/ui/CommitGraph.js +380 -0
- package/dist/components/ui/CommitGraph.js.map +1 -0
- package/dist/components/ui/ContentInspectorDialog.cjs +1 -3
- package/dist/components/ui/ContentInspectorDialog.cjs.map +1 -1
- package/dist/components/ui/ContentInspectorDialog.d.ts +4 -10
- package/dist/components/ui/ContentInspectorDialog.js +40 -193
- package/dist/components/ui/ContentInspectorDialog.js.map +1 -1
- package/dist/components/ui/ContentPreview.cjs +3 -0
- package/dist/components/ui/ContentPreview.cjs.map +1 -0
- package/dist/components/ui/ContentPreview.d.ts +13 -0
- package/dist/components/ui/ContentPreview.js +134 -0
- package/dist/components/ui/ContentPreview.js.map +1 -0
- package/dist/components/ui/CopyGlyph.cjs +2 -0
- package/dist/components/ui/CopyGlyph.cjs.map +1 -0
- package/dist/components/ui/CopyGlyph.d.ts +7 -0
- package/dist/components/ui/CopyGlyph.js +48 -0
- package/dist/components/ui/CopyGlyph.js.map +1 -0
- package/dist/components/ui/DataList.cjs +1 -1
- package/dist/components/ui/DataList.cjs.map +1 -1
- package/dist/components/ui/DataList.d.ts +7 -1
- package/dist/components/ui/DataList.js +87 -32
- package/dist/components/ui/DataList.js.map +1 -1
- package/dist/components/ui/DataTable.cjs +1 -1
- package/dist/components/ui/DataTable.cjs.map +1 -1
- package/dist/components/ui/DataTable.d.ts +22 -18
- package/dist/components/ui/DataTable.js +279 -341
- package/dist/components/ui/DataTable.js.map +1 -1
- package/dist/components/ui/DropdownMenu.cjs +1 -1
- package/dist/components/ui/DropdownMenu.cjs.map +1 -1
- package/dist/components/ui/DropdownMenu.d.ts +8 -1
- package/dist/components/ui/DropdownMenu.js +66 -50
- package/dist/components/ui/DropdownMenu.js.map +1 -1
- package/dist/components/ui/ErrorState.cjs +1 -1
- package/dist/components/ui/ErrorState.cjs.map +1 -1
- package/dist/components/ui/ErrorState.d.ts +1 -0
- package/dist/components/ui/ErrorState.js +1 -1
- package/dist/components/ui/ErrorState.js.map +1 -1
- package/dist/components/ui/EventTable.cjs +1 -1
- package/dist/components/ui/EventTable.cjs.map +1 -1
- package/dist/components/ui/EventTable.d.ts +16 -2
- package/dist/components/ui/EventTable.js +190 -164
- package/dist/components/ui/EventTable.js.map +1 -1
- package/dist/components/ui/FileDropzone.cjs +1 -1
- package/dist/components/ui/FileDropzone.cjs.map +1 -1
- package/dist/components/ui/FileDropzone.d.ts +3 -21
- package/dist/components/ui/FileDropzone.js +41 -64
- package/dist/components/ui/FileDropzone.js.map +1 -1
- package/dist/components/ui/FilePreview.cjs +1 -1
- package/dist/components/ui/FilePreview.cjs.map +1 -1
- package/dist/components/ui/FilePreview.d.ts +4 -1
- package/dist/components/ui/FilePreview.js +45 -42
- package/dist/components/ui/FilePreview.js.map +1 -1
- package/dist/components/ui/FileTree.cjs +1 -1
- package/dist/components/ui/FileTree.cjs.map +1 -1
- package/dist/components/ui/FileTree.d.ts +18 -2
- package/dist/components/ui/FileTree.js +141 -110
- package/dist/components/ui/FileTree.js.map +1 -1
- package/dist/components/ui/FolderDropzone.cjs +1 -1
- package/dist/components/ui/FolderDropzone.cjs.map +1 -1
- package/dist/components/ui/FolderDropzone.d.ts +10 -1
- package/dist/components/ui/FolderDropzone.js +108 -128
- package/dist/components/ui/FolderDropzone.js.map +1 -1
- package/dist/components/ui/ForgotPasswordForm.cjs +1 -1
- package/dist/components/ui/ForgotPasswordForm.cjs.map +1 -1
- package/dist/components/ui/ForgotPasswordForm.d.ts +1 -0
- package/dist/components/ui/ForgotPasswordForm.js +21 -19
- package/dist/components/ui/ForgotPasswordForm.js.map +1 -1
- package/dist/components/ui/FormRow.cjs +1 -1
- package/dist/components/ui/FormRow.cjs.map +1 -1
- package/dist/components/ui/FormRow.d.ts +10 -1
- package/dist/components/ui/FormRow.js +22 -11
- package/dist/components/ui/FormRow.js.map +1 -1
- package/dist/components/ui/HeadlineStat.cjs +1 -1
- package/dist/components/ui/HeadlineStat.cjs.map +1 -1
- package/dist/components/ui/HeadlineStat.js +6 -5
- package/dist/components/ui/HeadlineStat.js.map +1 -1
- package/dist/components/ui/InboxPage.cjs +1 -1
- package/dist/components/ui/InboxPage.cjs.map +1 -1
- package/dist/components/ui/InboxPage.d.ts +16 -2
- package/dist/components/ui/InboxPage.js +54 -52
- package/dist/components/ui/InboxPage.js.map +1 -1
- package/dist/components/ui/KeyValueList.cjs +1 -1
- package/dist/components/ui/KeyValueList.cjs.map +1 -1
- package/dist/components/ui/KeyValueList.d.ts +6 -5
- package/dist/components/ui/KeyValueList.js +14 -17
- package/dist/components/ui/KeyValueList.js.map +1 -1
- package/dist/components/ui/LoginForm.cjs +1 -1
- package/dist/components/ui/LoginForm.cjs.map +1 -1
- package/dist/components/ui/LoginForm.d.ts +1 -0
- package/dist/components/ui/LoginForm.js +56 -48
- package/dist/components/ui/LoginForm.js.map +1 -1
- package/dist/components/ui/Markdown.cjs +1 -1
- package/dist/components/ui/Markdown.cjs.map +1 -1
- package/dist/components/ui/Markdown.d.ts +3 -2
- package/dist/components/ui/Markdown.js +57 -49
- package/dist/components/ui/Markdown.js.map +1 -1
- package/dist/components/ui/MdxDocument.cjs +1 -1
- package/dist/components/ui/MdxDocument.cjs.map +1 -1
- package/dist/components/ui/MdxDocument.d.ts +7 -2
- package/dist/components/ui/MdxDocument.js +34 -49
- package/dist/components/ui/MdxDocument.js.map +1 -1
- package/dist/components/ui/MetadataList.cjs +1 -1
- package/dist/components/ui/MetadataList.cjs.map +1 -1
- package/dist/components/ui/MetadataList.d.ts +7 -1
- package/dist/components/ui/MetadataList.js +29 -20
- package/dist/components/ui/MetadataList.js.map +1 -1
- package/dist/components/ui/MetricCard.cjs +1 -1
- package/dist/components/ui/MetricCard.cjs.map +1 -1
- package/dist/components/ui/MetricCard.js +16 -16
- package/dist/components/ui/MetricCard.js.map +1 -1
- package/dist/components/ui/MonoValue.cjs +1 -1
- package/dist/components/ui/MonoValue.cjs.map +1 -1
- package/dist/components/ui/MonoValue.d.ts +8 -1
- package/dist/components/ui/MonoValue.js +15 -13
- package/dist/components/ui/MonoValue.js.map +1 -1
- package/dist/components/ui/NotificationBell.cjs +1 -1
- package/dist/components/ui/NotificationBell.cjs.map +1 -1
- package/dist/components/ui/NotificationBell.d.ts +15 -3
- package/dist/components/ui/NotificationBell.js +41 -39
- package/dist/components/ui/NotificationBell.js.map +1 -1
- package/dist/components/ui/NumberField.cjs +2 -0
- package/dist/components/ui/NumberField.cjs.map +1 -0
- package/dist/components/ui/NumberField.d.ts +32 -0
- package/dist/components/ui/NumberField.js +77 -0
- package/dist/components/ui/NumberField.js.map +1 -0
- package/dist/components/ui/ObjectBrowser.cjs +1 -1
- package/dist/components/ui/ObjectBrowser.cjs.map +1 -1
- package/dist/components/ui/ObjectBrowser.js +38 -30
- package/dist/components/ui/ObjectBrowser.js.map +1 -1
- package/dist/components/ui/ObjectInspector.cjs +1 -1
- package/dist/components/ui/ObjectInspector.cjs.map +1 -1
- package/dist/components/ui/ObjectInspector.d.ts +5 -0
- package/dist/components/ui/ObjectInspector.js +61 -69
- package/dist/components/ui/ObjectInspector.js.map +1 -1
- package/dist/components/ui/PageSizeSelect.cjs.map +1 -1
- package/dist/components/ui/PageSizeSelect.d.ts +3 -4
- package/dist/components/ui/PageSizeSelect.js.map +1 -1
- package/dist/components/ui/Pagination.cjs +1 -1
- package/dist/components/ui/Pagination.cjs.map +1 -1
- package/dist/components/ui/Pagination.d.ts +16 -6
- package/dist/components/ui/Pagination.js +58 -45
- package/dist/components/ui/Pagination.js.map +1 -1
- package/dist/components/ui/Panel.cjs +1 -1
- package/dist/components/ui/Panel.cjs.map +1 -1
- package/dist/components/ui/Panel.d.ts +12 -2
- package/dist/components/ui/Panel.js +53 -40
- package/dist/components/ui/Panel.js.map +1 -1
- package/dist/components/ui/ParquetViewer.cjs +1 -1
- package/dist/components/ui/ParquetViewer.cjs.map +1 -1
- package/dist/components/ui/ParquetViewer.d.ts +1 -1
- package/dist/components/ui/ParquetViewer.js +124 -118
- package/dist/components/ui/ParquetViewer.js.map +1 -1
- package/dist/components/ui/ProjectSelector.cjs +1 -1
- package/dist/components/ui/ProjectSelector.cjs.map +1 -1
- package/dist/components/ui/ProjectSelector.js +9 -9
- package/dist/components/ui/ProjectSelector.js.map +1 -1
- package/dist/components/ui/QueryAutocomplete.cjs +1 -1
- package/dist/components/ui/QueryAutocomplete.cjs.map +1 -1
- package/dist/components/ui/QueryAutocomplete.js +123 -107
- package/dist/components/ui/QueryAutocomplete.js.map +1 -1
- package/dist/components/ui/RegisterForm.cjs +1 -1
- package/dist/components/ui/RegisterForm.cjs.map +1 -1
- package/dist/components/ui/RegisterForm.d.ts +1 -0
- package/dist/components/ui/RegisterForm.js +46 -38
- package/dist/components/ui/RegisterForm.js.map +1 -1
- package/dist/components/ui/RollingValue.cjs +2 -0
- package/dist/components/ui/RollingValue.cjs.map +1 -0
- package/dist/components/ui/RollingValue.d.ts +14 -0
- package/dist/components/ui/RollingValue.js +39 -0
- package/dist/components/ui/RollingValue.js.map +1 -0
- package/dist/components/ui/SavedQueryBar.cjs +1 -1
- package/dist/components/ui/SavedQueryBar.cjs.map +1 -1
- package/dist/components/ui/SavedQueryBar.d.ts +8 -2
- package/dist/components/ui/SavedQueryBar.js +162 -161
- package/dist/components/ui/SavedQueryBar.js.map +1 -1
- package/dist/components/ui/ScrollStory.cjs +1 -2
- package/dist/components/ui/ScrollStory.cjs.map +1 -1
- package/dist/components/ui/ScrollStory.js +57 -75
- package/dist/components/ui/ScrollStory.js.map +1 -1
- package/dist/components/ui/Select.cjs +1 -1
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.d.ts +1 -1
- package/dist/components/ui/Select.js +33 -32
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/ServiceMap.cjs +1 -1
- package/dist/components/ui/ServiceMap.cjs.map +1 -1
- package/dist/components/ui/ServiceMap.d.ts +51 -2
- package/dist/components/ui/ServiceMap.js +314 -117
- package/dist/components/ui/ServiceMap.js.map +1 -1
- package/dist/components/ui/ShareLinkDialog.cjs +1 -1
- package/dist/components/ui/ShareLinkDialog.cjs.map +1 -1
- package/dist/components/ui/ShareLinkDialog.d.ts +5 -3
- package/dist/components/ui/ShareLinkDialog.js +107 -98
- package/dist/components/ui/ShareLinkDialog.js.map +1 -1
- package/dist/components/ui/Slider.cjs +2 -0
- package/dist/components/ui/Slider.cjs.map +1 -0
- package/dist/components/ui/Slider.d.ts +22 -0
- package/dist/components/ui/Slider.js +53 -0
- package/dist/components/ui/Slider.js.map +1 -0
- package/dist/components/ui/SparkLine.cjs +1 -1
- package/dist/components/ui/SparkLine.cjs.map +1 -1
- package/dist/components/ui/SparkLine.d.ts +4 -1
- package/dist/components/ui/SparkLine.js +30 -25
- package/dist/components/ui/SparkLine.js.map +1 -1
- package/dist/components/ui/StatBlock.cjs +1 -1
- package/dist/components/ui/StatBlock.cjs.map +1 -1
- package/dist/components/ui/StatBlock.js +17 -16
- package/dist/components/ui/StatBlock.js.map +1 -1
- package/dist/components/ui/StatusDot.cjs.map +1 -1
- package/dist/components/ui/StatusDot.d.ts +5 -1
- package/dist/components/ui/StatusDot.js.map +1 -1
- package/dist/components/ui/Steps.cjs +2 -0
- package/dist/components/ui/Steps.cjs.map +1 -0
- package/dist/components/ui/Steps.d.ts +19 -0
- package/dist/components/ui/Steps.js +57 -0
- package/dist/components/ui/Steps.js.map +1 -0
- package/dist/components/ui/TableOfContents.cjs +1 -1
- package/dist/components/ui/TableOfContents.cjs.map +1 -1
- package/dist/components/ui/TableOfContents.d.ts +3 -3
- package/dist/components/ui/TableOfContents.js +47 -28
- package/dist/components/ui/TableOfContents.js.map +1 -1
- package/dist/components/ui/Tabs.cjs +2 -2
- package/dist/components/ui/Tabs.cjs.map +1 -1
- package/dist/components/ui/Tabs.d.ts +37 -3
- package/dist/components/ui/Tabs.js +169 -109
- package/dist/components/ui/Tabs.js.map +1 -1
- package/dist/components/ui/TextField.cjs +1 -1
- package/dist/components/ui/TextField.cjs.map +1 -1
- package/dist/components/ui/TextField.js +16 -15
- package/dist/components/ui/TextField.js.map +1 -1
- package/dist/components/ui/TimeDisplay.cjs +1 -1
- package/dist/components/ui/TimeDisplay.cjs.map +1 -1
- package/dist/components/ui/TimeDisplay.d.ts +14 -4
- package/dist/components/ui/TimeDisplay.js +43 -44
- package/dist/components/ui/TimeDisplay.js.map +1 -1
- package/dist/components/ui/TimelineChart.cjs +2 -1
- package/dist/components/ui/TimelineChart.cjs.map +1 -1
- package/dist/components/ui/TimelineChart.d.ts +1 -0
- package/dist/components/ui/TimelineChart.js +221 -169
- package/dist/components/ui/TimelineChart.js.map +1 -1
- package/dist/components/ui/ToolCallCard.cjs +1 -1
- package/dist/components/ui/ToolCallCard.cjs.map +1 -1
- package/dist/components/ui/ToolCallCard.js +22 -22
- package/dist/components/ui/ToolCallCard.js.map +1 -1
- package/dist/components/ui/Toolbar.cjs +1 -1
- package/dist/components/ui/Toolbar.cjs.map +1 -1
- package/dist/components/ui/Toolbar.d.ts +4 -16
- package/dist/components/ui/Toolbar.js +8 -62
- package/dist/components/ui/Toolbar.js.map +1 -1
- package/dist/components/ui/TraceSpanInspector.cjs +1 -1
- package/dist/components/ui/TraceSpanInspector.cjs.map +1 -1
- package/dist/components/ui/TraceSpanInspector.js +93 -72
- package/dist/components/ui/TraceSpanInspector.js.map +1 -1
- package/dist/components/ui/TraceTree.cjs +1 -1
- package/dist/components/ui/TraceTree.cjs.map +1 -1
- package/dist/components/ui/TraceTree.d.ts +36 -2
- package/dist/components/ui/TraceTree.js +278 -170
- package/dist/components/ui/TraceTree.js.map +1 -1
- package/dist/components/ui/TrajectoryStep.cjs +1 -1
- package/dist/components/ui/TrajectoryStep.cjs.map +1 -1
- package/dist/components/ui/TrajectoryStep.js +39 -43
- package/dist/components/ui/TrajectoryStep.js.map +1 -1
- package/dist/components/ui/TrajectoryTimeline.cjs +1 -1
- package/dist/components/ui/TrajectoryTimeline.cjs.map +1 -1
- package/dist/components/ui/TrajectoryTimeline.js +31 -28
- package/dist/components/ui/TrajectoryTimeline.js.map +1 -1
- package/dist/components/ui/UploadQueue.cjs +1 -1
- package/dist/components/ui/UploadQueue.cjs.map +1 -1
- package/dist/components/ui/UploadQueue.d.ts +18 -2
- package/dist/components/ui/UploadQueue.js +56 -63
- package/dist/components/ui/UploadQueue.js.map +1 -1
- package/dist/components/ui/authValidation.cjs +2 -0
- package/dist/components/ui/authValidation.cjs.map +1 -0
- package/dist/components/ui/authValidation.d.ts +3 -0
- package/dist/components/ui/authValidation.js +9 -0
- package/dist/components/ui/authValidation.js.map +1 -0
- package/dist/components/ui/classifyContent.cjs +6 -0
- package/dist/components/ui/classifyContent.cjs.map +1 -0
- package/dist/components/ui/classifyContent.d.ts +39 -0
- package/dist/components/ui/classifyContent.js +169 -0
- package/dist/components/ui/classifyContent.js.map +1 -0
- package/dist/components/ui/dropFiles.cjs +2 -0
- package/dist/components/ui/dropFiles.cjs.map +1 -0
- package/dist/components/ui/dropFiles.d.ts +7 -0
- package/dist/components/ui/dropFiles.js +16 -0
- package/dist/components/ui/dropFiles.js.map +1 -0
- package/dist/components/ui/index.d.ts +23 -10
- package/dist/components/ui/linkComponent.cjs +1 -1
- package/dist/components/ui/linkComponent.cjs.map +1 -1
- package/dist/components/ui/linkComponent.d.ts +4 -2
- package/dist/components/ui/linkComponent.js +15 -5
- package/dist/components/ui/linkComponent.js.map +1 -1
- package/dist/components/ui/markdownDocument.cjs +2 -0
- package/dist/components/ui/markdownDocument.cjs.map +1 -0
- package/dist/components/ui/markdownDocument.d.ts +40 -0
- package/dist/components/ui/markdownDocument.js +39 -0
- package/dist/components/ui/markdownDocument.js.map +1 -0
- package/dist/components/ui/traceStatus.cjs +2 -0
- package/dist/components/ui/traceStatus.cjs.map +1 -0
- package/dist/components/ui/{traceFormat.d.ts → traceStatus.d.ts} +0 -1
- package/dist/components/ui/traceStatus.js +7 -0
- package/dist/components/ui/traceStatus.js.map +1 -0
- package/dist/components/ui/useColumnWidths.cjs +2 -0
- package/dist/components/ui/useColumnWidths.cjs.map +1 -0
- package/dist/components/ui/useColumnWidths.d.ts +60 -0
- package/dist/components/ui/useColumnWidths.js +196 -0
- package/dist/components/ui/useColumnWidths.js.map +1 -0
- package/dist/hooks/useDevelopAfterLoad.cjs +2 -0
- package/dist/hooks/useDevelopAfterLoad.cjs.map +1 -0
- package/dist/hooks/useDevelopAfterLoad.d.ts +8 -0
- package/dist/hooks/useDevelopAfterLoad.js +9 -0
- package/dist/hooks/useDevelopAfterLoad.js.map +1 -0
- package/dist/hooks/useResizable.cjs +1 -1
- package/dist/hooks/useResizable.cjs.map +1 -1
- package/dist/hooks/useResizable.js +87 -78
- package/dist/hooks/useResizable.js.map +1 -1
- package/dist/hooks/useSavedQueries.cjs +1 -1
- package/dist/hooks/useSavedQueries.cjs.map +1 -1
- package/dist/hooks/useSavedQueries.d.ts +6 -0
- package/dist/hooks/useSavedQueries.js +49 -58
- package/dist/hooks/useSavedQueries.js.map +1 -1
- package/dist/hooks/useSectionSpy.cjs +1 -1
- package/dist/hooks/useSectionSpy.cjs.map +1 -1
- package/dist/hooks/useSectionSpy.d.ts +6 -1
- package/dist/hooks/useSectionSpy.js +87 -57
- package/dist/hooks/useSectionSpy.js.map +1 -1
- package/dist/hooks/useStorageItem.cjs +2 -0
- package/dist/hooks/useStorageItem.cjs.map +1 -0
- package/dist/hooks/useStorageItem.d.ts +6 -0
- package/dist/hooks/useStorageItem.js +36 -0
- package/dist/hooks/useStorageItem.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +321 -313
- package/dist/index.js.map +1 -1
- package/dist/layouts/shell/AegisShell.cjs +1 -1
- package/dist/layouts/shell/AegisShell.cjs.map +1 -1
- package/dist/layouts/shell/AegisShell.d.ts +4 -2
- package/dist/layouts/shell/AegisShell.js +149 -242
- package/dist/layouts/shell/AegisShell.js.map +1 -1
- package/dist/layouts/shell/AppRoutes.cjs +2 -0
- package/dist/layouts/shell/AppRoutes.cjs.map +1 -0
- package/dist/layouts/shell/AppRoutes.d.ts +5 -0
- package/dist/layouts/shell/AppRoutes.js +8 -0
- package/dist/layouts/shell/AppRoutes.js.map +1 -0
- package/dist/layouts/shell/BreadcrumbBar.cjs +1 -1
- package/dist/layouts/shell/BreadcrumbBar.cjs.map +1 -1
- package/dist/layouts/shell/BreadcrumbBar.d.ts +1 -2
- package/dist/layouts/shell/BreadcrumbBar.js +19 -26
- package/dist/layouts/shell/BreadcrumbBar.js.map +1 -1
- package/dist/layouts/shell/RouteErrorBoundary.cjs +2 -0
- package/dist/layouts/shell/RouteErrorBoundary.cjs.map +1 -0
- package/dist/layouts/shell/RouteErrorBoundary.d.ts +23 -0
- package/dist/layouts/shell/RouteErrorBoundary.js +35 -0
- package/dist/layouts/shell/RouteErrorBoundary.js.map +1 -0
- package/dist/layouts/shell/RouterLink.cjs +2 -0
- package/dist/layouts/shell/RouterLink.cjs.map +1 -0
- package/dist/layouts/shell/RouterLink.d.ts +3 -0
- package/dist/layouts/shell/RouterLink.js +22 -0
- package/dist/layouts/shell/RouterLink.js.map +1 -0
- package/dist/layouts/shell/ShellCommandPalette.cjs +2 -0
- package/dist/layouts/shell/ShellCommandPalette.cjs.map +1 -0
- package/dist/layouts/shell/ShellCommandPalette.d.ts +7 -0
- package/dist/layouts/shell/ShellCommandPalette.js +32 -0
- package/dist/layouts/shell/ShellCommandPalette.js.map +1 -0
- package/dist/layouts/shell/ShellInboxPage.cjs +2 -0
- package/dist/layouts/shell/ShellInboxPage.cjs.map +1 -0
- package/dist/layouts/shell/ShellInboxPage.d.ts +12 -0
- package/dist/layouts/shell/ShellInboxPage.js +32 -0
- package/dist/layouts/shell/ShellInboxPage.js.map +1 -0
- package/dist/layouts/shell/ShellNotificationBell.cjs +2 -0
- package/dist/layouts/shell/ShellNotificationBell.cjs.map +1 -0
- package/dist/layouts/shell/ShellNotificationBell.d.ts +5 -0
- package/dist/layouts/shell/ShellNotificationBell.js +24 -0
- package/dist/layouts/shell/ShellNotificationBell.js.map +1 -0
- package/dist/layouts/shell/Sidebar.cjs +1 -1
- package/dist/layouts/shell/Sidebar.cjs.map +1 -1
- package/dist/layouts/shell/Sidebar.d.ts +4 -2
- package/dist/layouts/shell/Sidebar.js +14 -11
- package/dist/layouts/shell/Sidebar.js.map +1 -1
- package/dist/layouts/shell/TopHeader.cjs +1 -1
- package/dist/layouts/shell/TopHeader.cjs.map +1 -1
- package/dist/layouts/shell/TopHeader.d.ts +6 -2
- package/dist/layouts/shell/TopHeader.js +77 -65
- package/dist/layouts/shell/TopHeader.js.map +1 -1
- package/dist/layouts/shell/apps.cjs +2 -0
- package/dist/layouts/shell/apps.cjs.map +1 -0
- package/dist/layouts/shell/apps.d.ts +12 -0
- package/dist/layouts/shell/apps.js +34 -0
- package/dist/layouts/shell/apps.js.map +1 -0
- package/dist/layouts/shell/buildRouteTree.cjs +2 -0
- package/dist/layouts/shell/buildRouteTree.cjs.map +1 -0
- package/dist/layouts/shell/buildRouteTree.d.ts +22 -0
- package/dist/layouts/shell/buildRouteTree.js +49 -0
- package/dist/layouts/shell/buildRouteTree.js.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.cjs +2 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.cjs.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.d.ts +13 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.js +90 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.js.map +1 -0
- package/dist/layouts/shell/environments/{context.cjs → environmentContext.cjs} +2 -2
- package/dist/layouts/shell/environments/environmentContext.cjs.map +1 -0
- package/dist/layouts/shell/environments/environmentContext.d.ts +6 -0
- package/dist/layouts/shell/environments/environmentContext.js +8 -0
- package/dist/layouts/shell/environments/environmentContext.js.map +1 -0
- package/dist/layouts/shell/environments/index.d.ts +2 -3
- package/dist/layouts/shell/environments/types.cjs.map +1 -1
- package/dist/layouts/shell/environments/types.d.ts +23 -15
- package/dist/layouts/shell/environments/types.js.map +1 -1
- package/dist/layouts/shell/environments/useEnvironment.cjs +2 -0
- package/dist/layouts/shell/environments/useEnvironment.cjs.map +1 -0
- package/dist/layouts/shell/environments/{hooks.d.ts → useEnvironment.d.ts} +3 -2
- package/dist/layouts/shell/environments/useEnvironment.js +25 -0
- package/dist/layouts/shell/environments/useEnvironment.js.map +1 -0
- package/dist/layouts/shell/index.d.ts +3 -1
- package/dist/layouts/shell/types.d.ts +14 -14
- package/dist/layouts/shell/useAgentPanel.cjs +2 -0
- package/dist/layouts/shell/useAgentPanel.cjs.map +1 -0
- package/dist/layouts/shell/useAgentPanel.d.ts +13 -0
- package/dist/layouts/shell/useAgentPanel.js +21 -0
- package/dist/layouts/shell/useAgentPanel.js.map +1 -0
- package/dist/layouts/shell/useAppCommands.cjs +2 -0
- package/dist/layouts/shell/useAppCommands.cjs.map +1 -0
- package/dist/layouts/shell/useAppCommands.d.ts +6 -0
- package/dist/layouts/shell/useAppCommands.js +19 -0
- package/dist/layouts/shell/useAppCommands.js.map +1 -0
- package/dist/layouts/shell/useMobileNav.cjs +2 -0
- package/dist/layouts/shell/useMobileNav.cjs.map +1 -0
- package/dist/layouts/shell/useMobileNav.d.ts +20 -0
- package/dist/layouts/shell/useMobileNav.js +54 -0
- package/dist/layouts/shell/useMobileNav.js.map +1 -0
- package/dist/layouts/shell/useOpenNotification.cjs +2 -0
- package/dist/layouts/shell/useOpenNotification.cjs.map +1 -0
- package/dist/layouts/shell/useOpenNotification.d.ts +3 -0
- package/dist/layouts/shell/useOpenNotification.js +16 -0
- package/dist/layouts/shell/useOpenNotification.js.map +1 -0
- package/dist/layouts/shell/useShellUser.cjs +2 -0
- package/dist/layouts/shell/useShellUser.cjs.map +1 -0
- package/dist/layouts/shell/useShellUser.d.ts +7 -0
- package/dist/layouts/shell/useShellUser.js +21 -0
- package/dist/layouts/shell/useShellUser.js.map +1 -0
- package/dist/layouts/shell/useWarnOnce.cjs +2 -0
- package/dist/layouts/shell/useWarnOnce.cjs.map +1 -0
- package/dist/layouts/shell/useWarnOnce.d.ts +1 -0
- package/dist/layouts/shell/useWarnOnce.js +11 -0
- package/dist/layouts/shell/useWarnOnce.js.map +1 -0
- package/dist/lib/format.cjs +1 -1
- package/dist/lib/format.cjs.map +1 -1
- package/dist/lib/format.d.ts +34 -0
- package/dist/lib/format.js +98 -9
- package/dist/lib/format.js.map +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs.map +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.js +29 -29
- package/dist/lib/luceneQuery/tokenizeAtCursor.js.map +1 -1
- package/dist/lib/storage.cjs +1 -1
- package/dist/lib/storage.cjs.map +1 -1
- package/dist/lib/storage.js +19 -12
- package/dist/lib/storage.js.map +1 -1
- package/dist/lib/timeRange.cjs +1 -1
- package/dist/lib/timeRange.cjs.map +1 -1
- package/dist/lib/timeRange.js +4 -1
- package/dist/lib/timeRange.js.map +1 -1
- package/dist/locale/strings.cjs +1 -1
- package/dist/locale/strings.cjs.map +1 -1
- package/dist/locale/strings.d.ts +2 -0
- package/dist/locale/strings.js +2 -0
- package/dist/locale/strings.js.map +1 -1
- package/dist/notifications/notificationContext.cjs.map +1 -1
- package/dist/notifications/notificationContext.d.ts +5 -0
- package/dist/notifications/notificationContext.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/ThemeProvider.cjs +1 -1
- package/dist/theme/ThemeProvider.cjs.map +1 -1
- package/dist/theme/ThemeProvider.d.ts +2 -1
- package/dist/theme/ThemeProvider.js +47 -33
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/antdTheme.cjs +1 -1
- package/dist/theme/antdTheme.cjs.map +1 -1
- package/dist/theme/antdTheme.d.ts +0 -2
- package/dist/theme/antdTheme.js +26 -20
- package/dist/theme/antdTheme.js.map +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.cjs +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.d.ts +1 -0
- package/dist/transports/agentm/AgentmChannelProvider.js +119 -131
- package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -1
- package/dist/transports/agentm/agentmChannelClient.cjs +1 -1
- package/dist/transports/agentm/agentmChannelClient.cjs.map +1 -1
- package/dist/transports/agentm/agentmChannelClient.d.ts +8 -3
- package/dist/transports/agentm/agentmChannelClient.js +133 -89
- package/dist/transports/agentm/agentmChannelClient.js.map +1 -1
- package/dist/transports/index.d.ts +2 -2
- package/dist/transports/mcpBridge.cjs +2 -0
- package/dist/transports/mcpBridge.cjs.map +1 -0
- package/dist/transports/{bridge.d.ts → mcpBridge.d.ts} +2 -1
- package/dist/transports/mcpBridge.js +144 -0
- package/dist/transports/mcpBridge.js.map +1 -0
- package/dist/transports/mcpTools.cjs +2 -0
- package/dist/transports/mcpTools.cjs.map +1 -0
- package/dist/transports/mcpTools.d.ts +15 -0
- package/dist/transports/mcpTools.js +283 -0
- package/dist/transports/mcpTools.js.map +1 -0
- package/dist/transports.cjs +1 -1
- package/dist/transports.js +1 -1
- package/package.json +5 -4
- package/dist/agent/core/mcpToolCatalogue.cjs +0 -2
- package/dist/agent/core/mcpToolCatalogue.cjs.map +0 -1
- package/dist/agent/core/mcpToolCatalogue.d.ts +0 -2
- package/dist/agent/core/mcpToolCatalogue.js +0 -101
- package/dist/agent/core/mcpToolCatalogue.js.map +0 -1
- package/dist/components/ui/BucketCard.cjs +0 -2
- package/dist/components/ui/BucketCard.cjs.map +0 -1
- package/dist/components/ui/BucketCard.d.ts +0 -24
- package/dist/components/ui/BucketCard.js +0 -73
- package/dist/components/ui/BucketCard.js.map +0 -1
- package/dist/components/ui/ContentInspectorContent.cjs +0 -5
- package/dist/components/ui/ContentInspectorContent.cjs.map +0 -1
- package/dist/components/ui/ContentInspectorContent.d.ts +0 -14
- package/dist/components/ui/ContentInspectorContent.js +0 -101
- package/dist/components/ui/ContentInspectorContent.js.map +0 -1
- package/dist/components/ui/traceFormat.cjs +0 -2
- package/dist/components/ui/traceFormat.cjs.map +0 -1
- package/dist/components/ui/traceFormat.js +0 -11
- package/dist/components/ui/traceFormat.js.map +0 -1
- package/dist/layouts/shell/environments/EnvironmentContext.cjs +0 -2
- package/dist/layouts/shell/environments/EnvironmentContext.cjs.map +0 -1
- package/dist/layouts/shell/environments/EnvironmentContext.d.ts +0 -12
- package/dist/layouts/shell/environments/EnvironmentContext.js +0 -94
- package/dist/layouts/shell/environments/EnvironmentContext.js.map +0 -1
- package/dist/layouts/shell/environments/context.cjs.map +0 -1
- package/dist/layouts/shell/environments/context.d.ts +0 -6
- package/dist/layouts/shell/environments/context.js +0 -6
- package/dist/layouts/shell/environments/context.js.map +0 -1
- package/dist/layouts/shell/environments/hooks.cjs +0 -2
- package/dist/layouts/shell/environments/hooks.cjs.map +0 -1
- package/dist/layouts/shell/environments/hooks.js +0 -24
- package/dist/layouts/shell/environments/hooks.js.map +0 -1
- package/dist/layouts/shell/environments/manifest.cjs +0 -2
- package/dist/layouts/shell/environments/manifest.cjs.map +0 -1
- package/dist/layouts/shell/environments/manifest.d.ts +0 -26
- package/dist/layouts/shell/environments/manifest.js +0 -82
- package/dist/layouts/shell/environments/manifest.js.map +0 -1
- package/dist/transports/bridge.cjs +0 -2
- package/dist/transports/bridge.cjs.map +0 -1
- package/dist/transports/bridge.js +0 -143
- package/dist/transports/bridge.js.map +0 -1
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* '@/components/ui'` without knowing the file layout.
|
|
6
6
|
*/
|
|
7
7
|
export { Button, ButtonLink } from './Button';
|
|
8
|
+
export type { ButtonTone } from './Button';
|
|
8
9
|
export { Panel } from './Panel';
|
|
9
10
|
export type { PanelElevation, PanelSurface, PanelVariant } from './Panel';
|
|
10
11
|
export { PanelTitle } from './PanelTitle';
|
|
@@ -32,10 +33,13 @@ export { ControlListItem } from './ControlListItem';
|
|
|
32
33
|
export { Chip } from './Chip';
|
|
33
34
|
export type { ChipSurface } from './Chip';
|
|
34
35
|
export { Checkbox } from './Checkbox';
|
|
36
|
+
export { ChoiceCardGroup } from './ChoiceCardGroup';
|
|
37
|
+
export type { ChoiceCardOption } from './ChoiceCardGroup';
|
|
35
38
|
export { Collapse } from './Collapse';
|
|
36
39
|
export type { CollapseItem } from './Collapse';
|
|
37
40
|
export { Alert } from './Alert';
|
|
38
41
|
export { Pagination } from './Pagination';
|
|
42
|
+
export type { PaginationProps } from './Pagination';
|
|
39
43
|
export { Select } from './Select';
|
|
40
44
|
export type { SelectOption } from './Select';
|
|
41
45
|
export { RankBar } from './RankBar';
|
|
@@ -102,10 +106,12 @@ export { CodeBlock } from './CodeBlock';
|
|
|
102
106
|
export type { CodeBlockSurface } from './CodeBlock';
|
|
103
107
|
export { FileTree } from './FileTree';
|
|
104
108
|
export type { FileTreeFile, FileTreeProps } from './FileTree';
|
|
105
|
-
export { ContentInspectorDialog
|
|
106
|
-
export type { ContentInspectorDialogProps
|
|
107
|
-
export {
|
|
108
|
-
export type {
|
|
109
|
+
export { ContentInspectorDialog } from './ContentInspectorDialog';
|
|
110
|
+
export type { ContentInspectorDialogProps } from './ContentInspectorDialog';
|
|
111
|
+
export { ContentPreview } from './ContentPreview';
|
|
112
|
+
export type { ContentPreviewProps } from './ContentPreview';
|
|
113
|
+
export { prepareInspectableContent } from './classifyContent';
|
|
114
|
+
export type { InspectableContent, InspectableContentKind, InspectableContentOptions, PreparedInspectableContent, } from './classifyContent';
|
|
109
115
|
export { DataTable } from './DataTable';
|
|
110
116
|
export type { DataTableCellTone, DataTableColumn, DataTablePagination, DataTableSort, DataTableSortDirection, DataTableSurface, } from './DataTable';
|
|
111
117
|
export { EventTable } from './EventTable';
|
|
@@ -113,7 +119,7 @@ export type { EventTableColumn, EventTableProps } from './EventTable';
|
|
|
113
119
|
export { DataList } from './DataList';
|
|
114
120
|
export type { DataListColumn, DataListItem, DataListSurface } from './DataList';
|
|
115
121
|
export { Toolbar } from './Toolbar';
|
|
116
|
-
export type {
|
|
122
|
+
export type { ToolbarProps } from './Toolbar';
|
|
117
123
|
export { SearchInput } from './SearchInput';
|
|
118
124
|
export type { SearchInputProps } from './SearchInput';
|
|
119
125
|
export { QueryAutocomplete } from './QueryAutocomplete';
|
|
@@ -123,7 +129,9 @@ export type { MetadataEntry, MetadataListProps } from './MetadataList';
|
|
|
123
129
|
export { ObjectInspector } from './ObjectInspector';
|
|
124
130
|
export type { ObjectInspectorProps, ObjectInspectorTab, } from './ObjectInspector';
|
|
125
131
|
export { Tabs } from './Tabs';
|
|
126
|
-
export type { TabItem } from './Tabs';
|
|
132
|
+
export type { TabItem, TabLink } from './Tabs';
|
|
133
|
+
export { Steps } from './Steps';
|
|
134
|
+
export type { StepsItem } from './Steps';
|
|
127
135
|
export { Carousel } from './Carousel';
|
|
128
136
|
export type { CarouselProps, CarouselSlide } from './Carousel';
|
|
129
137
|
export { Breadcrumb } from './Breadcrumb';
|
|
@@ -146,6 +154,8 @@ export { FormRow } from './FormRow';
|
|
|
146
154
|
export { DangerZone } from './DangerZone';
|
|
147
155
|
export { ThemeToggle } from './ThemeToggle';
|
|
148
156
|
export { TextField } from './TextField';
|
|
157
|
+
export { NumberField } from './NumberField';
|
|
158
|
+
export { Slider } from './Slider';
|
|
149
159
|
export { PasswordField } from './PasswordField';
|
|
150
160
|
export { AuthLayout } from './AuthLayout';
|
|
151
161
|
export { LoginForm } from './LoginForm';
|
|
@@ -153,9 +163,11 @@ export { RegisterForm } from './RegisterForm';
|
|
|
153
163
|
export { ForgotPasswordForm } from './ForgotPasswordForm';
|
|
154
164
|
export { ErrorState } from './ErrorState';
|
|
155
165
|
export { NotificationBell } from './NotificationBell';
|
|
166
|
+
export type { NotificationBellProps } from './NotificationBell';
|
|
156
167
|
export { InboxPage } from './InboxPage';
|
|
157
|
-
export type { InboxPageSurface } from './InboxPage';
|
|
168
|
+
export type { InboxPageProps, InboxPageSurface } from './InboxPage';
|
|
158
169
|
export { CommandPalette } from './CommandPalette';
|
|
170
|
+
export type { CommandPaletteProps } from './CommandPalette';
|
|
159
171
|
export { ChatMessage } from './ChatMessage';
|
|
160
172
|
export type { ChatMessageSurface } from './ChatMessage';
|
|
161
173
|
export { ChatMessageList } from './ChatMessageList';
|
|
@@ -168,7 +180,6 @@ export type { CommandInvocationCardSurface } from './CommandInvocationCard';
|
|
|
168
180
|
export { AgentPanel } from './AgentPanel';
|
|
169
181
|
export type { AgentPanelSurface } from './AgentPanel';
|
|
170
182
|
export { FileDropzone } from './FileDropzone';
|
|
171
|
-
export type { FileDropzoneItem } from './FileDropzone';
|
|
172
183
|
export { FolderDropzone } from './FolderDropzone';
|
|
173
184
|
export type { FolderDropzoneProps } from './FolderDropzone';
|
|
174
185
|
export { FilePreview } from './FilePreview';
|
|
@@ -187,11 +198,11 @@ export { TraceSpanInspector } from './TraceSpanInspector';
|
|
|
187
198
|
export type { TraceSpanInspectorProps } from './TraceSpanInspector';
|
|
188
199
|
export { TimelineChart } from './TimelineChart';
|
|
189
200
|
export type { TimelineChartProps } from './TimelineChart';
|
|
190
|
-
export { BucketCard } from './BucketCard';
|
|
191
201
|
export { ObjectBrowser } from './ObjectBrowser';
|
|
192
202
|
export { ShareLinkDialog } from './ShareLinkDialog';
|
|
193
203
|
export type { ShareLinkOptions, ShareLinkResult } from './ShareLinkDialog';
|
|
194
204
|
export { UploadQueue } from './UploadQueue';
|
|
205
|
+
export type { UploadQueueItem } from './UploadQueue';
|
|
195
206
|
export { ResizableSidePanel } from './ResizableSidePanel';
|
|
196
207
|
export type { ResizableSidePanelProps } from './ResizableSidePanel';
|
|
197
208
|
export { EnvironmentSwitcher } from './EnvironmentSwitcher';
|
|
@@ -199,6 +210,8 @@ export type { EnvironmentSwitcherBadge, EnvironmentSwitcherOption, EnvironmentSw
|
|
|
199
210
|
export { TimeRangePicker } from './TimeRangePicker';
|
|
200
211
|
export type { TimeRangePickerProps } from './TimeRangePicker';
|
|
201
212
|
export { ServiceMap } from './ServiceMap';
|
|
202
|
-
export type { ServiceMapDirection, ServiceMapEdge, ServiceMapNode, ServiceMapProps, ServiceMapStatus, } from './ServiceMap';
|
|
213
|
+
export type { ServiceMapDirection, ServiceMapEdge, ServiceMapGroup, ServiceMapNode, ServiceMapProps, ServiceMapStatus, } from './ServiceMap';
|
|
214
|
+
export { CommitGraph } from './CommitGraph';
|
|
215
|
+
export type { CommitGraphColumn, CommitGraphCommit, CommitGraphLane, CommitGraphProps, } from './CommitGraph';
|
|
203
216
|
export { SavedQueryBar } from './SavedQueryBar';
|
|
204
217
|
export type { SavedQueryBarProps } from './SavedQueryBar';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),u=({to:e,className:r,"aria-current":t,tabIndex:a,children:i})=>n.jsx("a",{href:e,className:r,"aria-current":t,tabIndex:a,children:i});exports.DefaultLink=u;
|
|
2
2
|
//# sourceMappingURL=linkComponent.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkComponent.cjs","sources":["../../../src/components/ui/linkComponent.tsx"],"sourcesContent":["import type { ComponentType, ReactNode } from 'react';\n\n/**\n * Router link adapter for primitives that render links. Routed apps pass a\n * wrapper around their router's `<Link>`; without one the primitive renders\n * a plain `<a href>`, so primitives stay router-agnostic. Pass\n * `aria-current` on to the anchor: navigation primitives mark the current\n *
|
|
1
|
+
{"version":3,"file":"linkComponent.cjs","sources":["../../../src/components/ui/linkComponent.tsx"],"sourcesContent":["import type { ComponentType, ReactNode } from 'react';\n\n/**\n * Router link adapter for primitives that render links. Routed apps pass a\n * wrapper around their router's `<Link>`; without one the primitive renders\n * a plain `<a href>`, so primitives stay router-agnostic. Pass\n * `aria-current` and `tabIndex` on to the anchor: navigation primitives\n * mark the current page with the first, and a tree keeps the links in its\n * rows out of the tab order with the second.\n */\nexport type LinkComponent = ComponentType<{\n to: string;\n className?: string;\n 'aria-current'?: 'page';\n tabIndex?: number;\n children: ReactNode;\n}>;\n\nexport const DefaultLink: LinkComponent = ({\n to,\n className,\n 'aria-current': ariaCurrent,\n tabIndex,\n children,\n}) => (\n <a\n href={to}\n className={className}\n aria-current={ariaCurrent}\n tabIndex={tabIndex}\n >\n {children}\n </a>\n);\n"],"names":["DefaultLink","to","className","ariaCurrent","tabIndex","children","jsx"],"mappings":"qHAkBaA,EAA6B,CAAC,CACzC,GAAAC,EACA,UAAAC,EACA,eAAgBC,EAChB,SAAAC,EACA,SAAAC,CACF,IACEC,EAAAA,IAAC,IAAA,CACC,KAAML,EACN,UAAAC,EACA,eAAcC,EACd,SAAAC,EAEC,SAAAC,CAAA,CACH"}
|
|
@@ -3,13 +3,15 @@ import { ComponentType, ReactNode } from 'react';
|
|
|
3
3
|
* Router link adapter for primitives that render links. Routed apps pass a
|
|
4
4
|
* wrapper around their router's `<Link>`; without one the primitive renders
|
|
5
5
|
* a plain `<a href>`, so primitives stay router-agnostic. Pass
|
|
6
|
-
* `aria-current` on to the anchor: navigation primitives
|
|
7
|
-
* page with
|
|
6
|
+
* `aria-current` and `tabIndex` on to the anchor: navigation primitives
|
|
7
|
+
* mark the current page with the first, and a tree keeps the links in its
|
|
8
|
+
* rows out of the tab order with the second.
|
|
8
9
|
*/
|
|
9
10
|
export type LinkComponent = ComponentType<{
|
|
10
11
|
to: string;
|
|
11
12
|
className?: string;
|
|
12
13
|
'aria-current'?: 'page';
|
|
14
|
+
tabIndex?: number;
|
|
13
15
|
children: ReactNode;
|
|
14
16
|
}>;
|
|
15
17
|
export declare const DefaultLink: LinkComponent;
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
const c = ({
|
|
3
3
|
to: r,
|
|
4
4
|
className: a,
|
|
5
5
|
"aria-current": t,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
tabIndex: e,
|
|
7
|
+
children: i
|
|
8
|
+
}) => /* @__PURE__ */ n(
|
|
9
|
+
"a",
|
|
10
|
+
{
|
|
11
|
+
href: r,
|
|
12
|
+
className: a,
|
|
13
|
+
"aria-current": t,
|
|
14
|
+
tabIndex: e,
|
|
15
|
+
children: i
|
|
16
|
+
}
|
|
17
|
+
);
|
|
8
18
|
export {
|
|
9
|
-
|
|
19
|
+
c as DefaultLink
|
|
10
20
|
};
|
|
11
21
|
//# sourceMappingURL=linkComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linkComponent.js","sources":["../../../src/components/ui/linkComponent.tsx"],"sourcesContent":["import type { ComponentType, ReactNode } from 'react';\n\n/**\n * Router link adapter for primitives that render links. Routed apps pass a\n * wrapper around their router's `<Link>`; without one the primitive renders\n * a plain `<a href>`, so primitives stay router-agnostic. Pass\n * `aria-current` on to the anchor: navigation primitives mark the current\n *
|
|
1
|
+
{"version":3,"file":"linkComponent.js","sources":["../../../src/components/ui/linkComponent.tsx"],"sourcesContent":["import type { ComponentType, ReactNode } from 'react';\n\n/**\n * Router link adapter for primitives that render links. Routed apps pass a\n * wrapper around their router's `<Link>`; without one the primitive renders\n * a plain `<a href>`, so primitives stay router-agnostic. Pass\n * `aria-current` and `tabIndex` on to the anchor: navigation primitives\n * mark the current page with the first, and a tree keeps the links in its\n * rows out of the tab order with the second.\n */\nexport type LinkComponent = ComponentType<{\n to: string;\n className?: string;\n 'aria-current'?: 'page';\n tabIndex?: number;\n children: ReactNode;\n}>;\n\nexport const DefaultLink: LinkComponent = ({\n to,\n className,\n 'aria-current': ariaCurrent,\n tabIndex,\n children,\n}) => (\n <a\n href={to}\n className={className}\n aria-current={ariaCurrent}\n tabIndex={tabIndex}\n >\n {children}\n </a>\n);\n"],"names":["DefaultLink","to","className","ariaCurrent","tabIndex","children","jsx"],"mappings":";AAkBO,MAAMA,IAA6B,CAAC;AAAA,EACzC,IAAAC;AAAA,EACA,WAAAC;AAAA,EACA,gBAAgBC;AAAA,EAChB,UAAAC;AAAA,EACA,UAAAC;AACF,MACE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAML;AAAA,IACN,WAAAC;AAAA,IACA,gBAAcC;AAAA,IACd,UAAAC;AAAA,IAEC,UAAAC;AAAA,EAAA;AACH;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react");;/* empty css */const s="aegis-document",u="aegis-document__code-block",c={h1:"aegis-document__title",h2:"aegis-document__heading",h3:"aegis-document__subheading",h4:"aegis-document__minor-heading",h5:"aegis-document__minor-heading",h6:"aegis-document__minor-heading",p:"aegis-document__paragraph",ul:"aegis-document__list",ol:"aegis-document__list",strong:"aegis-document__strong",code:"aegis-document__code",blockquote:"aegis-document__quote",table:"aegis-document__table",hr:"aegis-document__rule",img:"aegis-document__image",a:"aegis-document__link"},m=Object.keys(c);function d(e,t){return function({className:i,node:a,...n}){const o=[c[e],i??""].filter(Boolean).join(" ");return t===void 0?_.createElement(e,{...n,className:o}):_.createElement(t,{...n,node:a,className:o})}}exports.DOCUMENT_CLASS=s;exports.DOCUMENT_CODE_BLOCK_CLASS=u;exports.DOCUMENT_TAGS=m;exports.documentElement=d;
|
|
2
|
+
//# sourceMappingURL=markdownDocument.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownDocument.cjs","sources":["../../../src/components/ui/markdownDocument.ts"],"sourcesContent":["import { type ComponentProps, type ElementType, createElement } from 'react';\n\nimport './markdownDocument.css';\n\n/**\n * The one style of a long-form document, shared by `MdxDocument` and\n * `Markdown variant=\"document\"`: the root takes `DOCUMENT_CLASS` and each\n * Markdown element its class here. Only these classes are styled, so the\n * components a document embeds keep their own type and spacing.\n */\nexport const DOCUMENT_CLASS = 'aegis-document';\n\nexport const DOCUMENT_CODE_BLOCK_CLASS = 'aegis-document__code-block';\n\nconst DOCUMENT_ELEMENT_CLASSES = {\n h1: 'aegis-document__title',\n h2: 'aegis-document__heading',\n h3: 'aegis-document__subheading',\n h4: 'aegis-document__minor-heading',\n h5: 'aegis-document__minor-heading',\n h6: 'aegis-document__minor-heading',\n p: 'aegis-document__paragraph',\n ul: 'aegis-document__list',\n ol: 'aegis-document__list',\n strong: 'aegis-document__strong',\n code: 'aegis-document__code',\n blockquote: 'aegis-document__quote',\n table: 'aegis-document__table',\n hr: 'aegis-document__rule',\n img: 'aegis-document__image',\n a: 'aegis-document__link',\n} as const;\n\nexport type DocumentTag = keyof typeof DOCUMENT_ELEMENT_CLASSES;\n\nexport const DOCUMENT_TAGS = Object.keys(\n DOCUMENT_ELEMENT_CLASSES,\n) as DocumentTag[];\n\ntype DocumentElementProps = ComponentProps<DocumentTag> & {\n /** react-markdown's syntax-tree node; only a host component receives it. */\n node?: unknown;\n};\n\n/**\n * A Markdown element with its document class. A host component that\n * replaces the element receives the class in `className` and applies it to\n * keep the document's style.\n */\nexport function documentElement(tag: DocumentTag, host?: ElementType) {\n return function DocumentElement({\n className,\n node,\n ...rest\n }: DocumentElementProps) {\n const documentClass = [DOCUMENT_ELEMENT_CLASSES[tag], className ?? '']\n .filter(Boolean)\n .join(' ');\n return host === undefined\n ? createElement(tag, { ...rest, className: documentClass })\n : createElement(host, { ...rest, node, className: documentClass });\n };\n}\n"],"names":["DOCUMENT_CLASS","DOCUMENT_CODE_BLOCK_CLASS","DOCUMENT_ELEMENT_CLASSES","DOCUMENT_TAGS","documentElement","tag","host","className","node","rest","documentClass","createElement"],"mappings":"+IAUO,MAAMA,EAAiB,iBAEjBC,EAA4B,6BAEnCC,EAA2B,CAC/B,GAAI,wBACJ,GAAI,0BACJ,GAAI,6BACJ,GAAI,gCACJ,GAAI,gCACJ,GAAI,gCACJ,EAAG,4BACH,GAAI,uBACJ,GAAI,uBACJ,OAAQ,yBACR,KAAM,uBACN,WAAY,wBACZ,MAAO,wBACP,GAAI,uBACJ,IAAK,wBACL,EAAG,sBACL,EAIaC,EAAgB,OAAO,KAClCD,CACF,EAYO,SAASE,EAAgBC,EAAkBC,EAAoB,CACpE,OAAO,SAAyB,CAC9B,UAAAC,EACA,KAAAC,EACA,GAAGC,CAAA,EACoB,CACvB,MAAMC,EAAgB,CAACR,EAAyBG,CAAG,EAAGE,GAAa,EAAE,EAClE,OAAO,OAAO,EACd,KAAK,GAAG,EACX,OAAOD,IAAS,OACZK,EAAAA,cAAcN,EAAK,CAAE,GAAGI,EAAM,UAAWC,CAAA,CAAe,EACxDC,EAAAA,cAAcL,EAAM,CAAE,GAAGG,EAAM,KAAAD,EAAM,UAAWE,EAAe,CACrE,CACF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ComponentProps, ElementType } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The one style of a long-form document, shared by `MdxDocument` and
|
|
4
|
+
* `Markdown variant="document"`: the root takes `DOCUMENT_CLASS` and each
|
|
5
|
+
* Markdown element its class here. Only these classes are styled, so the
|
|
6
|
+
* components a document embeds keep their own type and spacing.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DOCUMENT_CLASS = "aegis-document";
|
|
9
|
+
export declare const DOCUMENT_CODE_BLOCK_CLASS = "aegis-document__code-block";
|
|
10
|
+
declare const DOCUMENT_ELEMENT_CLASSES: {
|
|
11
|
+
readonly h1: "aegis-document__title";
|
|
12
|
+
readonly h2: "aegis-document__heading";
|
|
13
|
+
readonly h3: "aegis-document__subheading";
|
|
14
|
+
readonly h4: "aegis-document__minor-heading";
|
|
15
|
+
readonly h5: "aegis-document__minor-heading";
|
|
16
|
+
readonly h6: "aegis-document__minor-heading";
|
|
17
|
+
readonly p: "aegis-document__paragraph";
|
|
18
|
+
readonly ul: "aegis-document__list";
|
|
19
|
+
readonly ol: "aegis-document__list";
|
|
20
|
+
readonly strong: "aegis-document__strong";
|
|
21
|
+
readonly code: "aegis-document__code";
|
|
22
|
+
readonly blockquote: "aegis-document__quote";
|
|
23
|
+
readonly table: "aegis-document__table";
|
|
24
|
+
readonly hr: "aegis-document__rule";
|
|
25
|
+
readonly img: "aegis-document__image";
|
|
26
|
+
readonly a: "aegis-document__link";
|
|
27
|
+
};
|
|
28
|
+
export type DocumentTag = keyof typeof DOCUMENT_ELEMENT_CLASSES;
|
|
29
|
+
export declare const DOCUMENT_TAGS: DocumentTag[];
|
|
30
|
+
type DocumentElementProps = ComponentProps<DocumentTag> & {
|
|
31
|
+
/** react-markdown's syntax-tree node; only a host component receives it. */
|
|
32
|
+
node?: unknown;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* A Markdown element with its document class. A host component that
|
|
36
|
+
* replaces the element receives the class in `className` and applies it to
|
|
37
|
+
* keep the document's style.
|
|
38
|
+
*/
|
|
39
|
+
export declare function documentElement(tag: DocumentTag, host?: ElementType): ({ className, node, ...rest }: DocumentElementProps) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createElement as _ } from "react";
|
|
2
|
+
/* empty css */
|
|
3
|
+
const d = "aegis-document", g = "aegis-document__code-block", i = {
|
|
4
|
+
h1: "aegis-document__title",
|
|
5
|
+
h2: "aegis-document__heading",
|
|
6
|
+
h3: "aegis-document__subheading",
|
|
7
|
+
h4: "aegis-document__minor-heading",
|
|
8
|
+
h5: "aegis-document__minor-heading",
|
|
9
|
+
h6: "aegis-document__minor-heading",
|
|
10
|
+
p: "aegis-document__paragraph",
|
|
11
|
+
ul: "aegis-document__list",
|
|
12
|
+
ol: "aegis-document__list",
|
|
13
|
+
strong: "aegis-document__strong",
|
|
14
|
+
code: "aegis-document__code",
|
|
15
|
+
blockquote: "aegis-document__quote",
|
|
16
|
+
table: "aegis-document__table",
|
|
17
|
+
hr: "aegis-document__rule",
|
|
18
|
+
img: "aegis-document__image",
|
|
19
|
+
a: "aegis-document__link"
|
|
20
|
+
}, l = Object.keys(
|
|
21
|
+
i
|
|
22
|
+
);
|
|
23
|
+
function r(e, n) {
|
|
24
|
+
return function({
|
|
25
|
+
className: c,
|
|
26
|
+
node: a,
|
|
27
|
+
...o
|
|
28
|
+
}) {
|
|
29
|
+
const t = [i[e], c ?? ""].filter(Boolean).join(" ");
|
|
30
|
+
return n === void 0 ? _(e, { ...o, className: t }) : _(n, { ...o, node: a, className: t });
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
d as DOCUMENT_CLASS,
|
|
35
|
+
g as DOCUMENT_CODE_BLOCK_CLASS,
|
|
36
|
+
l as DOCUMENT_TAGS,
|
|
37
|
+
r as documentElement
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=markdownDocument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdownDocument.js","sources":["../../../src/components/ui/markdownDocument.ts"],"sourcesContent":["import { type ComponentProps, type ElementType, createElement } from 'react';\n\nimport './markdownDocument.css';\n\n/**\n * The one style of a long-form document, shared by `MdxDocument` and\n * `Markdown variant=\"document\"`: the root takes `DOCUMENT_CLASS` and each\n * Markdown element its class here. Only these classes are styled, so the\n * components a document embeds keep their own type and spacing.\n */\nexport const DOCUMENT_CLASS = 'aegis-document';\n\nexport const DOCUMENT_CODE_BLOCK_CLASS = 'aegis-document__code-block';\n\nconst DOCUMENT_ELEMENT_CLASSES = {\n h1: 'aegis-document__title',\n h2: 'aegis-document__heading',\n h3: 'aegis-document__subheading',\n h4: 'aegis-document__minor-heading',\n h5: 'aegis-document__minor-heading',\n h6: 'aegis-document__minor-heading',\n p: 'aegis-document__paragraph',\n ul: 'aegis-document__list',\n ol: 'aegis-document__list',\n strong: 'aegis-document__strong',\n code: 'aegis-document__code',\n blockquote: 'aegis-document__quote',\n table: 'aegis-document__table',\n hr: 'aegis-document__rule',\n img: 'aegis-document__image',\n a: 'aegis-document__link',\n} as const;\n\nexport type DocumentTag = keyof typeof DOCUMENT_ELEMENT_CLASSES;\n\nexport const DOCUMENT_TAGS = Object.keys(\n DOCUMENT_ELEMENT_CLASSES,\n) as DocumentTag[];\n\ntype DocumentElementProps = ComponentProps<DocumentTag> & {\n /** react-markdown's syntax-tree node; only a host component receives it. */\n node?: unknown;\n};\n\n/**\n * A Markdown element with its document class. A host component that\n * replaces the element receives the class in `className` and applies it to\n * keep the document's style.\n */\nexport function documentElement(tag: DocumentTag, host?: ElementType) {\n return function DocumentElement({\n className,\n node,\n ...rest\n }: DocumentElementProps) {\n const documentClass = [DOCUMENT_ELEMENT_CLASSES[tag], className ?? '']\n .filter(Boolean)\n .join(' ');\n return host === undefined\n ? createElement(tag, { ...rest, className: documentClass })\n : createElement(host, { ...rest, node, className: documentClass });\n };\n}\n"],"names":["DOCUMENT_CLASS","DOCUMENT_CODE_BLOCK_CLASS","DOCUMENT_ELEMENT_CLASSES","DOCUMENT_TAGS","documentElement","tag","host","className","node","rest","documentClass","createElement"],"mappings":";;AAUO,MAAMA,IAAiB,kBAEjBC,IAA4B,8BAEnCC,IAA2B;AAAA,EAC/B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,GAAG;AACL,GAIaC,IAAgB,OAAO;AAAA,EAClCD;AACF;AAYO,SAASE,EAAgBC,GAAkBC,GAAoB;AACpE,SAAO,SAAyB;AAAA,IAC9B,WAAAC;AAAA,IACA,MAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GACoB;AACvB,UAAMC,IAAgB,CAACR,EAAyBG,CAAG,GAAGE,KAAa,EAAE,EAClE,OAAO,OAAO,EACd,KAAK,GAAG;AACX,WAAOD,MAAS,SACZK,EAAcN,GAAK,EAAE,GAAGI,GAAM,WAAWC,EAAA,CAAe,IACxDC,EAAcL,GAAM,EAAE,GAAGG,GAAM,MAAAD,GAAM,WAAWE,GAAe;AAAA,EACrE;AACF;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traceStatus.cjs","sources":["../../../src/components/ui/traceStatus.ts"],"sourcesContent":["import type { TraceSpan } from './TraceTree';\n\nexport function statusTone(\n status?: TraceSpan['status'],\n): 'warning' | 'ink' | 'muted' {\n if (status === 'error') {\n return 'warning';\n }\n if (status === 'ok') {\n return 'ink';\n }\n return 'muted';\n}\n"],"names":["statusTone","status"],"mappings":"gFAEO,SAASA,EACdC,EAC6B,CAC7B,OAAIA,IAAW,QACN,UAELA,IAAW,KACN,MAEF,OACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traceStatus.js","sources":["../../../src/components/ui/traceStatus.ts"],"sourcesContent":["import type { TraceSpan } from './TraceTree';\n\nexport function statusTone(\n status?: TraceSpan['status'],\n): 'warning' | 'ink' | 'muted' {\n if (status === 'error') {\n return 'warning';\n }\n if (status === 'ok') {\n return 'ink';\n }\n return 'muted';\n}\n"],"names":["statusTone","status"],"mappings":"AAEO,SAASA,EACdC,GAC6B;AAC7B,SAAIA,MAAW,UACN,YAELA,MAAW,OACN,QAEF;AACT;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),W=require("../../hooks/useIsomorphicLayoutEffect.cjs"),F=require("../../lib/storage.cjs"),ee=60,te=120,H=16,ne="thead th[data-column-key]";function x(t){return`aegis-data-table:${t}`}function z(t){const n=F.readStorage(x(t));if(!n)return{};try{const r=JSON.parse(n);return r&&typeof r=="object"?r:{}}catch{return{}}}function v(t){return`${t.toString()}px`}function re(t){if(t!==void 0)return typeof t=="number"?v(t):t}function U(t){return t.minWidth??(t.resizable?ee:0)}function X(t,n){return Math.min(Math.max(n,U(t)),t.maxWidth??1/0)}function J(t){return Array.from(t.querySelectorAll(ne))}function oe(t){const n={};return J(t).forEach(r=>{const c=r.dataset.columnKey;c!==void 0&&(n[c]=Math.round(r.getBoundingClientRect().width))}),n}function ie(t,n,r,c){const f=J(t),u=t.getBoundingClientRect(),b={};let p=r;return f.forEach((S,g)=>{const l=Math.round(S.getBoundingClientRect().right-u.left),k=g===f.length-1?Math.min(l,Math.floor(u.width)-c):l,w=n.find(y=>y.key===S.dataset.columnKey);w&&(b[w.key]=X(w,k-p)),p=k}),b}function se(t,n){const r=Object.keys(t);return r.length===Object.keys(n).length&&r.every(c=>t[c]===n[c])}function ce({columns:t,persistKey:n,leadWidth:r,trailWidth:c,tableRef:f}){const[u,b]=d.useState(()=>n?z(n):{}),[p,S]=d.useState({}),g=d.useRef(null),l=t.some(e=>e.resizable===!0);d.useEffect(()=>{const e=g;return()=>{e.current?.()}},[]),W.useIsomorphicLayoutEffect(()=>{if(!n)return;const e=o=>{o.key===x(n)&&b(z(n))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}},[n]);const k=d.useCallback(()=>{const e=f.current;if(!e)return;const o=oe(e);S(i=>se(i,o)?i:o)},[f]);W.useIsomorphicLayoutEffect(()=>{l&&k()}),W.useIsomorphicLayoutEffect(()=>{const e=f.current;if(!l||!e||typeof ResizeObserver>"u")return;const o=new ResizeObserver(k);return o.observe(e),()=>{o.disconnect()}},[l,f,k]);const w=d.useCallback(e=>{b(o=>({...o,...e})),n&&F.writeStorage(x(n),JSON.stringify({...z(n),...e}))},[n]),y=t.length>0&&t.every(e=>e.key in u),A=t.some(e=>e.width!==void 0||e.resizable===!0||e.key in u),$=d.useMemo(()=>t.map(e=>e.key in u?v(u[e.key]):re(e.width??e.minWidth)),[t,u]),L=d.useCallback(e=>t.reduce((o,i)=>o+e[i.key],r+c),[t,r,c]),Y=d.useMemo(()=>{if(!A)return;if(y)return{minWidth:v(L(u))};const e=t.reduce((o,i)=>{const M=i.key in u?u[i.key]:typeof i.width=="number"?i.width:void 0;return o+(M??i.minWidth??te)},r+c);return{minWidth:v(e)}},[A,y,L,u,t,r,c]),G=d.useMemo(()=>l?{width:y?void 0:0}:void 0,[l,y]),Q=d.useCallback(e=>{const o=U(e),i=e.maxWidth??1/0,M=s=>X(e,s),N=s=>y?u:ie(s,t,r,c),V=s=>{if(s.button!==0)return;s.preventDefault(),s.stopPropagation();const h=f.current;if(!h)return;g.current?.();const m=s.currentTarget,a=N(h),K=s.clientX,T=a[e.key],_=Array.from(h.querySelectorAll("col[data-column-key]")),q=_.find(I=>I.dataset.columnKey===e.key),P=h.querySelector("col[data-column-filler]");let E=T,D=!1;const R=I=>{D||(D=!0,_.forEach(B=>{const O=B.dataset.columnKey;O!==void 0&&O in a&&(B.style.width=v(a[O]))}),P&&(P.style.width="")),E=M(Math.round(T+I.clientX-K)),q&&(q.style.width=v(E)),h.style.minWidth=v(L({...a,[e.key]:E})),m.setAttribute("aria-valuenow",E.toString())},j=()=>{window.removeEventListener("pointermove",R),window.removeEventListener("pointerup",C),window.removeEventListener("pointercancel",C),document.body.style.cursor="",document.body.style.userSelect="",g.current=null},C=()=>{j(),D&&w({...a,[e.key]:E})};document.body.style.cursor="col-resize",document.body.style.userSelect="none",window.addEventListener("pointermove",R),window.addEventListener("pointerup",C),window.addEventListener("pointercancel",C),g.current=j},Z=s=>{const h=f.current;if(!h)return;let m;if(s.key==="ArrowLeft"?m=a=>a-H:s.key==="ArrowRight"?m=a=>a+H:s.key==="Home"?m=()=>o:s.key==="End"&&Number.isFinite(i)&&(m=()=>i),m){s.preventDefault();const a=N(h);w({...a,[e.key]:M(m(a[e.key]))})}};return{role:"separator",tabIndex:0,"aria-orientation":"vertical","aria-valuemin":o,"aria-valuemax":Number.isFinite(i)?i:void 0,"aria-valuenow":p[e.key],onPointerDown:V,onKeyDown:Z}},[y,u,p,t,f,L,w,r,c]);return{widths:$,sized:A,tableStyle:Y,fillerStyle:G,handleProps:Q}}exports.useColumnWidths=ce;
|
|
2
|
+
//# sourceMappingURL=useColumnWidths.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useColumnWidths.cjs","sources":["../../../src/components/ui/useColumnWidths.ts"],"sourcesContent":["import {\n type CSSProperties,\n type HTMLAttributes,\n type KeyboardEvent as ReactKeyboardEvent,\n type PointerEvent as ReactPointerEvent,\n type RefObject,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport { useIsomorphicLayoutEffect } from '../../hooks/useIsomorphicLayoutEffect';\nimport { readStorage, writeStorage } from '../../lib/storage';\n\nconst DEFAULT_MIN_WIDTH = 60;\nconst AUTO_COLUMN_MIN_WIDTH = 120;\nconst KEYBOARD_STEP = 16;\nconst HEADER_CELLS = 'thead th[data-column-key]';\n\nexport interface ColumnWidthSpec {\n key: string;\n /** Initial width. Number → px, string → as-is (e.g. '20%'). */\n width?: number | string;\n minWidth?: number;\n maxWidth?: number;\n resizable?: boolean;\n}\n\ninterface UseColumnWidthsOptions {\n columns: ColumnWidthSpec[];\n /** Persists resized widths in localStorage under `aegis-data-table:<key>`. */\n persistKey?: string;\n /** Px taken by the fixed columns before the data columns. */\n leadWidth: number;\n /** Px taken by the fixed columns after the data columns. */\n trailWidth: number;\n /**\n * The table; its data columns' `<col>` and header `<th>` elements carry\n * `data-column-key`, and the filler's `<col>` carries\n * `data-column-filler`.\n */\n tableRef: RefObject<HTMLTableElement>;\n}\n\ninterface ColumnWidths {\n /** CSS width of each column's `<col>`, in column order. */\n widths: Array<string | undefined>;\n /** True when any column has a width, so the table lays out fixed. */\n sized: boolean;\n /**\n * A floor under the table's width: the sum of its columns once a user\n * has resized them, otherwise one that keeps width-less columns from\n * collapsing.\n */\n tableStyle: CSSProperties | undefined;\n /**\n * Style of an empty column after the data columns, or undefined when no\n * column is resizable and the table needs none. Once every column has a\n * resized width it takes whatever width they leave, so they keep exactly\n * those widths and the table still fills its container; before that it\n * takes none.\n */\n fillerStyle: CSSProperties | undefined;\n /** Props of the resize handle of a resizable column's header. */\n handleProps: (column: ColumnWidthSpec) => HTMLAttributes<HTMLElement>;\n}\n\ntype Widths = Record<string, number>;\n\nfunction storageKey(persistKey: string): string {\n return `aegis-data-table:${persistKey}`;\n}\n\nfunction readPersisted(persistKey: string): Widths {\n const raw = readStorage(storageKey(persistKey));\n if (!raw) {\n return {};\n }\n try {\n const parsed: unknown = JSON.parse(raw);\n if (parsed && typeof parsed === 'object') {\n return parsed as Widths;\n }\n return {};\n } catch {\n return {};\n }\n}\n\nfunction px(w: number): string {\n return `${w.toString()}px`;\n}\n\nfunction toCssWidth(w: number | string | undefined): string | undefined {\n if (w === undefined) {\n return undefined;\n }\n return typeof w === 'number' ? px(w) : w;\n}\n\n/** The narrowest a column renders or resizes to. */\nfunction columnMin(column: ColumnWidthSpec): number {\n return column.minWidth ?? (column.resizable ? DEFAULT_MIN_WIDTH : 0);\n}\n\nfunction clampWidth(column: ColumnWidthSpec, w: number): number {\n return Math.min(Math.max(w, columnMin(column)), column.maxWidth ?? Infinity);\n}\n\nfunction headerCells(table: HTMLTableElement): HTMLTableCellElement[] {\n return Array.from(table.querySelectorAll<HTMLTableCellElement>(HEADER_CELLS));\n}\n\n/** Rendered width of each data column, to the nearest pixel. */\nfunction renderedWidths(table: HTMLTableElement): Widths {\n const widths: Widths = {};\n headerCells(table).forEach((cell) => {\n const key = cell.dataset.columnKey;\n if (key !== undefined) {\n widths[key] = Math.round(cell.getBoundingClientRect().width);\n }\n });\n return widths;\n}\n\n/**\n * Whole-pixel widths that keep each column edge where the table renders\n * it, with the lead and trail columns back at their own widths (a table\n * wider than its columns stretches those too) and each column within its\n * own bounds. Edges are rounded rather than widths, and the table's right\n * edge rounds down, so the columns never add up to more than the table\n * they fill.\n */\nfunction frozenWidths(\n table: HTMLTableElement,\n columns: ColumnWidthSpec[],\n leadWidth: number,\n trailWidth: number,\n): Widths {\n const cells = headerCells(table);\n const rect = table.getBoundingClientRect();\n const widths: Widths = {};\n let edge = leadWidth;\n cells.forEach((cell, i) => {\n const right = Math.round(cell.getBoundingClientRect().right - rect.left);\n const next =\n i === cells.length - 1\n ? Math.min(right, Math.floor(rect.width) - trailWidth)\n : right;\n const column = columns.find((c) => c.key === cell.dataset.columnKey);\n if (column) {\n widths[column.key] = clampWidth(column, next - edge);\n }\n edge = next;\n });\n return widths;\n}\n\nfunction sameWidths(a: Widths, b: Widths): boolean {\n const keys = Object.keys(a);\n return (\n keys.length === Object.keys(b).length && keys.every((k) => a[k] === b[k])\n );\n}\n\n/**\n * Column widths of a DataTable: the declared widths, the widths a user\n * resized (persisted when `persistKey` is set) and the handles that resize\n * them. A column without a width that declares a minimum is laid out at\n * that minimum, so it never renders narrower; columns without either take\n * the slack. A resize first fixes every column at its rendered width and\n * hands the table's spare width to the filler column, so a step or a drag\n * moves the edge by exactly the distance asked for. A drag writes widths\n * straight to the `<col>`s and only commits them to state and storage when\n * the pointer is released, so the rows do not re-render while the pointer\n * moves.\n */\nexport function useColumnWidths({\n columns,\n persistKey,\n leadWidth,\n trailWidth,\n tableRef,\n}: UseColumnWidthsOptions): ColumnWidths {\n const [overrides, setOverrides] = useState<Widths>(() =>\n persistKey ? readPersisted(persistKey) : {},\n );\n const [rendered, setRendered] = useState<Widths>({});\n const stopDragRef = useRef<(() => void) | null>(null);\n const resizable = columns.some((c) => c.resizable === true);\n\n useEffect(() => {\n const stopDrag = stopDragRef;\n return () => {\n stopDrag.current?.();\n };\n }, []);\n\n // Another tab resized the same table.\n useIsomorphicLayoutEffect(() => {\n if (!persistKey) {\n return undefined;\n }\n const onStorage = (e: StorageEvent): void => {\n if (e.key === storageKey(persistKey)) {\n setOverrides(readPersisted(persistKey));\n }\n };\n window.addEventListener('storage', onStorage);\n return () => {\n window.removeEventListener('storage', onStorage);\n };\n }, [persistKey]);\n\n const measure = useCallback(() => {\n const table = tableRef.current;\n if (!table) {\n return;\n }\n const next = renderedWidths(table);\n setRendered((prev) => (sameWidths(prev, next) ? prev : next));\n }, [tableRef]);\n\n // The handles report their column's width before anyone resizes it.\n useIsomorphicLayoutEffect(() => {\n if (resizable) {\n measure();\n }\n });\n\n useIsomorphicLayoutEffect(() => {\n const table = tableRef.current;\n if (!resizable || !table || typeof ResizeObserver === 'undefined') {\n return undefined;\n }\n const observer = new ResizeObserver(measure);\n observer.observe(table);\n return () => {\n observer.disconnect();\n };\n }, [resizable, tableRef, measure]);\n\n const commit = useCallback(\n (next: Widths) => {\n setOverrides((prev) => ({ ...prev, ...next }));\n if (persistKey) {\n writeStorage(\n storageKey(persistKey),\n JSON.stringify({ ...readPersisted(persistKey), ...next }),\n );\n }\n },\n [persistKey],\n );\n\n const frozen = columns.length > 0 && columns.every((c) => c.key in overrides);\n const sized = columns.some(\n (c) => c.width !== undefined || c.resizable === true || c.key in overrides,\n );\n\n const widths = useMemo(\n () =>\n columns.map((c) =>\n c.key in overrides\n ? px(overrides[c.key])\n : toCssWidth(c.width ?? c.minWidth),\n ),\n [columns, overrides],\n );\n\n const totalWidth = useCallback(\n (w: Widths): number =>\n columns.reduce((sum, c) => sum + w[c.key], leadWidth + trailWidth),\n [columns, leadWidth, trailWidth],\n );\n\n const tableStyle = useMemo((): CSSProperties | undefined => {\n if (!sized) {\n return undefined;\n }\n if (frozen) {\n return { minWidth: px(totalWidth(overrides)) };\n }\n const minWidth = columns.reduce((sum, c) => {\n const w =\n c.key in overrides\n ? overrides[c.key]\n : typeof c.width === 'number'\n ? c.width\n : undefined;\n return sum + (w ?? c.minWidth ?? AUTO_COLUMN_MIN_WIDTH);\n }, leadWidth + trailWidth);\n return { minWidth: px(minWidth) };\n }, [sized, frozen, totalWidth, overrides, columns, leadWidth, trailWidth]);\n\n const fillerStyle = useMemo(\n (): CSSProperties | undefined =>\n resizable ? { width: frozen ? undefined : 0 } : undefined,\n [resizable, frozen],\n );\n\n const handleProps = useCallback(\n (column: ColumnWidthSpec): HTMLAttributes<HTMLElement> => {\n const min = columnMin(column);\n const max = column.maxWidth ?? Infinity;\n const clamp = (w: number): number => clampWidth(column, w);\n const startWidths = (table: HTMLTableElement): Widths =>\n frozen\n ? overrides\n : frozenWidths(table, columns, leadWidth, trailWidth);\n\n const onPointerDown = (event: ReactPointerEvent<HTMLElement>): void => {\n if (event.button !== 0) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n const table = tableRef.current;\n if (!table) {\n return;\n }\n stopDragRef.current?.();\n const handle = event.currentTarget;\n const start = startWidths(table);\n const startX = event.clientX;\n const startWidth = start[column.key];\n const cols = Array.from(\n table.querySelectorAll<HTMLTableColElement>('col[data-column-key]'),\n );\n const col = cols.find((c) => c.dataset.columnKey === column.key);\n const fillerCol = table.querySelector<HTMLTableColElement>(\n 'col[data-column-filler]',\n );\n let width = startWidth;\n let moved = false;\n\n const onMove = (e: PointerEvent): void => {\n if (!moved) {\n moved = true;\n cols.forEach((c) => {\n const key = c.dataset.columnKey;\n if (key !== undefined && key in start) {\n c.style.width = px(start[key]);\n }\n });\n if (fillerCol) {\n fillerCol.style.width = '';\n }\n }\n width = clamp(Math.round(startWidth + e.clientX - startX));\n if (col) {\n col.style.width = px(width);\n }\n table.style.minWidth = px(\n totalWidth({ ...start, [column.key]: width }),\n );\n handle.setAttribute('aria-valuenow', width.toString());\n };\n const stop = (): void => {\n window.removeEventListener('pointermove', onMove);\n window.removeEventListener('pointerup', onEnd);\n window.removeEventListener('pointercancel', onEnd);\n document.body.style.cursor = '';\n document.body.style.userSelect = '';\n stopDragRef.current = null;\n };\n const onEnd = (): void => {\n stop();\n if (moved) {\n commit({ ...start, [column.key]: width });\n }\n };\n\n document.body.style.cursor = 'col-resize';\n document.body.style.userSelect = 'none';\n window.addEventListener('pointermove', onMove);\n window.addEventListener('pointerup', onEnd);\n window.addEventListener('pointercancel', onEnd);\n stopDragRef.current = stop;\n };\n\n const onKeyDown = (event: ReactKeyboardEvent<HTMLElement>): void => {\n const table = tableRef.current;\n if (!table) {\n return;\n }\n let step: ((current: number) => number) | undefined;\n if (event.key === 'ArrowLeft') {\n step = (current) => current - KEYBOARD_STEP;\n } else if (event.key === 'ArrowRight') {\n step = (current) => current + KEYBOARD_STEP;\n } else if (event.key === 'Home') {\n step = () => min;\n } else if (event.key === 'End' && Number.isFinite(max)) {\n step = () => max;\n }\n if (step) {\n event.preventDefault();\n const start = startWidths(table);\n commit({ ...start, [column.key]: clamp(step(start[column.key])) });\n }\n };\n\n return {\n role: 'separator',\n tabIndex: 0,\n 'aria-orientation': 'vertical',\n 'aria-valuemin': min,\n 'aria-valuemax': Number.isFinite(max) ? max : undefined,\n 'aria-valuenow': rendered[column.key],\n onPointerDown,\n onKeyDown,\n };\n },\n [\n frozen,\n overrides,\n rendered,\n columns,\n tableRef,\n totalWidth,\n commit,\n leadWidth,\n trailWidth,\n ],\n );\n\n return { widths, sized, tableStyle, fillerStyle, handleProps };\n}\n"],"names":["DEFAULT_MIN_WIDTH","AUTO_COLUMN_MIN_WIDTH","KEYBOARD_STEP","HEADER_CELLS","storageKey","persistKey","readPersisted","raw","readStorage","parsed","px","w","toCssWidth","columnMin","column","clampWidth","headerCells","table","renderedWidths","widths","cell","key","frozenWidths","columns","leadWidth","trailWidth","cells","rect","edge","i","right","next","c","sameWidths","a","b","keys","k","useColumnWidths","tableRef","overrides","setOverrides","useState","rendered","setRendered","stopDragRef","useRef","resizable","useEffect","stopDrag","useIsomorphicLayoutEffect","onStorage","e","measure","useCallback","prev","observer","commit","writeStorage","frozen","sized","useMemo","totalWidth","sum","tableStyle","minWidth","fillerStyle","handleProps","min","max","clamp","startWidths","onPointerDown","event","handle","start","startX","startWidth","cols","col","fillerCol","width","moved","onMove","stop","onEnd","onKeyDown","step","current"],"mappings":"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"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes, RefObject } from 'react';
|
|
2
|
+
export interface ColumnWidthSpec {
|
|
3
|
+
key: string;
|
|
4
|
+
/** Initial width. Number → px, string → as-is (e.g. '20%'). */
|
|
5
|
+
width?: number | string;
|
|
6
|
+
minWidth?: number;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
resizable?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface UseColumnWidthsOptions {
|
|
11
|
+
columns: ColumnWidthSpec[];
|
|
12
|
+
/** Persists resized widths in localStorage under `aegis-data-table:<key>`. */
|
|
13
|
+
persistKey?: string;
|
|
14
|
+
/** Px taken by the fixed columns before the data columns. */
|
|
15
|
+
leadWidth: number;
|
|
16
|
+
/** Px taken by the fixed columns after the data columns. */
|
|
17
|
+
trailWidth: number;
|
|
18
|
+
/**
|
|
19
|
+
* The table; its data columns' `<col>` and header `<th>` elements carry
|
|
20
|
+
* `data-column-key`, and the filler's `<col>` carries
|
|
21
|
+
* `data-column-filler`.
|
|
22
|
+
*/
|
|
23
|
+
tableRef: RefObject<HTMLTableElement>;
|
|
24
|
+
}
|
|
25
|
+
interface ColumnWidths {
|
|
26
|
+
/** CSS width of each column's `<col>`, in column order. */
|
|
27
|
+
widths: Array<string | undefined>;
|
|
28
|
+
/** True when any column has a width, so the table lays out fixed. */
|
|
29
|
+
sized: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* A floor under the table's width: the sum of its columns once a user
|
|
32
|
+
* has resized them, otherwise one that keeps width-less columns from
|
|
33
|
+
* collapsing.
|
|
34
|
+
*/
|
|
35
|
+
tableStyle: CSSProperties | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Style of an empty column after the data columns, or undefined when no
|
|
38
|
+
* column is resizable and the table needs none. Once every column has a
|
|
39
|
+
* resized width it takes whatever width they leave, so they keep exactly
|
|
40
|
+
* those widths and the table still fills its container; before that it
|
|
41
|
+
* takes none.
|
|
42
|
+
*/
|
|
43
|
+
fillerStyle: CSSProperties | undefined;
|
|
44
|
+
/** Props of the resize handle of a resizable column's header. */
|
|
45
|
+
handleProps: (column: ColumnWidthSpec) => HTMLAttributes<HTMLElement>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Column widths of a DataTable: the declared widths, the widths a user
|
|
49
|
+
* resized (persisted when `persistKey` is set) and the handles that resize
|
|
50
|
+
* them. A column without a width that declares a minimum is laid out at
|
|
51
|
+
* that minimum, so it never renders narrower; columns without either take
|
|
52
|
+
* the slack. A resize first fixes every column at its rendered width and
|
|
53
|
+
* hands the table's spare width to the filler column, so a step or a drag
|
|
54
|
+
* moves the edge by exactly the distance asked for. A drag writes widths
|
|
55
|
+
* straight to the `<col>`s and only commits them to state and storage when
|
|
56
|
+
* the pointer is released, so the rows do not re-render while the pointer
|
|
57
|
+
* moves.
|
|
58
|
+
*/
|
|
59
|
+
export declare function useColumnWidths({ columns, persistKey, leadWidth, trailWidth, tableRef, }: UseColumnWidthsOptions): ColumnWidths;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { useState as F, useRef as et, useEffect as nt, useCallback as A, useMemo as O } from "react";
|
|
2
|
+
import { useIsomorphicLayoutEffect as W } from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
3
|
+
import { writeStorage as rt, readStorage as ot } from "../../lib/storage.js";
|
|
4
|
+
const it = 60, st = 120, U = 16, ct = "thead th[data-column-key]";
|
|
5
|
+
function N(e) {
|
|
6
|
+
return `aegis-data-table:${e}`;
|
|
7
|
+
}
|
|
8
|
+
function I(e) {
|
|
9
|
+
const n = ot(N(e));
|
|
10
|
+
if (!n)
|
|
11
|
+
return {};
|
|
12
|
+
try {
|
|
13
|
+
const r = JSON.parse(n);
|
|
14
|
+
return r && typeof r == "object" ? r : {};
|
|
15
|
+
} catch {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function w(e) {
|
|
20
|
+
return `${e.toString()}px`;
|
|
21
|
+
}
|
|
22
|
+
function dt(e) {
|
|
23
|
+
if (e !== void 0)
|
|
24
|
+
return typeof e == "number" ? w(e) : e;
|
|
25
|
+
}
|
|
26
|
+
function X(e) {
|
|
27
|
+
return e.minWidth ?? (e.resizable ? it : 0);
|
|
28
|
+
}
|
|
29
|
+
function J(e, n) {
|
|
30
|
+
return Math.min(Math.max(n, X(e)), e.maxWidth ?? 1 / 0);
|
|
31
|
+
}
|
|
32
|
+
function $(e) {
|
|
33
|
+
return Array.from(e.querySelectorAll(ct));
|
|
34
|
+
}
|
|
35
|
+
function at(e) {
|
|
36
|
+
const n = {};
|
|
37
|
+
return $(e).forEach((r) => {
|
|
38
|
+
const c = r.dataset.columnKey;
|
|
39
|
+
c !== void 0 && (n[c] = Math.round(r.getBoundingClientRect().width));
|
|
40
|
+
}), n;
|
|
41
|
+
}
|
|
42
|
+
function ut(e, n, r, c) {
|
|
43
|
+
const u = $(e), d = e.getBoundingClientRect(), k = {};
|
|
44
|
+
let p = r;
|
|
45
|
+
return u.forEach((E, v) => {
|
|
46
|
+
const f = Math.round(E.getBoundingClientRect().right - d.left), g = v === u.length - 1 ? Math.min(f, Math.floor(d.width) - c) : f, m = n.find((y) => y.key === E.dataset.columnKey);
|
|
47
|
+
m && (k[m.key] = J(m, g - p)), p = g;
|
|
48
|
+
}), k;
|
|
49
|
+
}
|
|
50
|
+
function ft(e, n) {
|
|
51
|
+
const r = Object.keys(e);
|
|
52
|
+
return r.length === Object.keys(n).length && r.every((c) => e[c] === n[c]);
|
|
53
|
+
}
|
|
54
|
+
function mt({
|
|
55
|
+
columns: e,
|
|
56
|
+
persistKey: n,
|
|
57
|
+
leadWidth: r,
|
|
58
|
+
trailWidth: c,
|
|
59
|
+
tableRef: u
|
|
60
|
+
}) {
|
|
61
|
+
const [d, k] = F(
|
|
62
|
+
() => n ? I(n) : {}
|
|
63
|
+
), [p, E] = F({}), v = et(null), f = e.some((t) => t.resizable === !0);
|
|
64
|
+
nt(() => {
|
|
65
|
+
const t = v;
|
|
66
|
+
return () => {
|
|
67
|
+
t.current?.();
|
|
68
|
+
};
|
|
69
|
+
}, []), W(() => {
|
|
70
|
+
if (!n)
|
|
71
|
+
return;
|
|
72
|
+
const t = (o) => {
|
|
73
|
+
o.key === N(n) && k(I(n));
|
|
74
|
+
};
|
|
75
|
+
return window.addEventListener("storage", t), () => {
|
|
76
|
+
window.removeEventListener("storage", t);
|
|
77
|
+
};
|
|
78
|
+
}, [n]);
|
|
79
|
+
const g = A(() => {
|
|
80
|
+
const t = u.current;
|
|
81
|
+
if (!t)
|
|
82
|
+
return;
|
|
83
|
+
const o = at(t);
|
|
84
|
+
E((i) => ft(i, o) ? i : o);
|
|
85
|
+
}, [u]);
|
|
86
|
+
W(() => {
|
|
87
|
+
f && g();
|
|
88
|
+
}), W(() => {
|
|
89
|
+
const t = u.current;
|
|
90
|
+
if (!f || !t || typeof ResizeObserver > "u")
|
|
91
|
+
return;
|
|
92
|
+
const o = new ResizeObserver(g);
|
|
93
|
+
return o.observe(t), () => {
|
|
94
|
+
o.disconnect();
|
|
95
|
+
};
|
|
96
|
+
}, [f, u, g]);
|
|
97
|
+
const m = A(
|
|
98
|
+
(t) => {
|
|
99
|
+
k((o) => ({ ...o, ...t })), n && rt(
|
|
100
|
+
N(n),
|
|
101
|
+
JSON.stringify({ ...I(n), ...t })
|
|
102
|
+
);
|
|
103
|
+
},
|
|
104
|
+
[n]
|
|
105
|
+
), y = e.length > 0 && e.every((t) => t.key in d), D = e.some(
|
|
106
|
+
(t) => t.width !== void 0 || t.resizable === !0 || t.key in d
|
|
107
|
+
), Y = O(
|
|
108
|
+
() => e.map(
|
|
109
|
+
(t) => t.key in d ? w(d[t.key]) : dt(t.width ?? t.minWidth)
|
|
110
|
+
),
|
|
111
|
+
[e, d]
|
|
112
|
+
), S = A(
|
|
113
|
+
(t) => e.reduce((o, i) => o + t[i.key], r + c),
|
|
114
|
+
[e, r, c]
|
|
115
|
+
), G = O(() => {
|
|
116
|
+
if (!D)
|
|
117
|
+
return;
|
|
118
|
+
if (y)
|
|
119
|
+
return { minWidth: w(S(d)) };
|
|
120
|
+
const t = e.reduce((o, i) => {
|
|
121
|
+
const L = i.key in d ? d[i.key] : typeof i.width == "number" ? i.width : void 0;
|
|
122
|
+
return o + (L ?? i.minWidth ?? st);
|
|
123
|
+
}, r + c);
|
|
124
|
+
return { minWidth: w(t) };
|
|
125
|
+
}, [D, y, S, d, e, r, c]), Q = O(
|
|
126
|
+
() => f ? { width: y ? void 0 : 0 } : void 0,
|
|
127
|
+
[f, y]
|
|
128
|
+
), V = A(
|
|
129
|
+
(t) => {
|
|
130
|
+
const o = X(t), i = t.maxWidth ?? 1 / 0, L = (s) => J(t, s), _ = (s) => y ? d : ut(s, e, r, c), Z = (s) => {
|
|
131
|
+
if (s.button !== 0)
|
|
132
|
+
return;
|
|
133
|
+
s.preventDefault(), s.stopPropagation();
|
|
134
|
+
const l = u.current;
|
|
135
|
+
if (!l)
|
|
136
|
+
return;
|
|
137
|
+
v.current?.();
|
|
138
|
+
const h = s.currentTarget, a = _(l), tt = s.clientX, T = a[t.key], P = Array.from(
|
|
139
|
+
l.querySelectorAll("col[data-column-key]")
|
|
140
|
+
), R = P.find((z) => z.dataset.columnKey === t.key), B = l.querySelector(
|
|
141
|
+
"col[data-column-filler]"
|
|
142
|
+
);
|
|
143
|
+
let b = T, x = !1;
|
|
144
|
+
const H = (z) => {
|
|
145
|
+
x || (x = !0, P.forEach((q) => {
|
|
146
|
+
const C = q.dataset.columnKey;
|
|
147
|
+
C !== void 0 && C in a && (q.style.width = w(a[C]));
|
|
148
|
+
}), B && (B.style.width = "")), b = L(Math.round(T + z.clientX - tt)), R && (R.style.width = w(b)), l.style.minWidth = w(
|
|
149
|
+
S({ ...a, [t.key]: b })
|
|
150
|
+
), h.setAttribute("aria-valuenow", b.toString());
|
|
151
|
+
}, j = () => {
|
|
152
|
+
window.removeEventListener("pointermove", H), window.removeEventListener("pointerup", M), window.removeEventListener("pointercancel", M), document.body.style.cursor = "", document.body.style.userSelect = "", v.current = null;
|
|
153
|
+
}, M = () => {
|
|
154
|
+
j(), x && m({ ...a, [t.key]: b });
|
|
155
|
+
};
|
|
156
|
+
document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", window.addEventListener("pointermove", H), window.addEventListener("pointerup", M), window.addEventListener("pointercancel", M), v.current = j;
|
|
157
|
+
}, K = (s) => {
|
|
158
|
+
const l = u.current;
|
|
159
|
+
if (!l)
|
|
160
|
+
return;
|
|
161
|
+
let h;
|
|
162
|
+
if (s.key === "ArrowLeft" ? h = (a) => a - U : s.key === "ArrowRight" ? h = (a) => a + U : s.key === "Home" ? h = () => o : s.key === "End" && Number.isFinite(i) && (h = () => i), h) {
|
|
163
|
+
s.preventDefault();
|
|
164
|
+
const a = _(l);
|
|
165
|
+
m({ ...a, [t.key]: L(h(a[t.key])) });
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
return {
|
|
169
|
+
role: "separator",
|
|
170
|
+
tabIndex: 0,
|
|
171
|
+
"aria-orientation": "vertical",
|
|
172
|
+
"aria-valuemin": o,
|
|
173
|
+
"aria-valuemax": Number.isFinite(i) ? i : void 0,
|
|
174
|
+
"aria-valuenow": p[t.key],
|
|
175
|
+
onPointerDown: Z,
|
|
176
|
+
onKeyDown: K
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
[
|
|
180
|
+
y,
|
|
181
|
+
d,
|
|
182
|
+
p,
|
|
183
|
+
e,
|
|
184
|
+
u,
|
|
185
|
+
S,
|
|
186
|
+
m,
|
|
187
|
+
r,
|
|
188
|
+
c
|
|
189
|
+
]
|
|
190
|
+
);
|
|
191
|
+
return { widths: Y, sized: D, tableStyle: G, fillerStyle: Q, handleProps: V };
|
|
192
|
+
}
|
|
193
|
+
export {
|
|
194
|
+
mt as useColumnWidths
|
|
195
|
+
};
|
|
196
|
+
//# sourceMappingURL=useColumnWidths.js.map
|