@lincyaw/aegis-ui 0.6.0 → 0.8.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 +2 -0
- package/dist/agent/ask/AskOverlay.cjs.map +1 -0
- package/dist/agent/ask/AskOverlay.js +83 -0
- package/dist/agent/ask/AskOverlay.js.map +1 -0
- package/dist/agent/ask/AskPanel.cjs +2 -0
- package/dist/agent/ask/AskPanel.cjs.map +1 -0
- package/dist/agent/{AskPanel.d.ts → ask/AskPanel.d.ts} +1 -1
- package/dist/agent/ask/AskPanel.js +174 -0
- package/dist/agent/ask/AskPanel.js.map +1 -0
- package/dist/agent/ask/buildAskContext.cjs +2 -0
- package/dist/agent/ask/buildAskContext.cjs.map +1 -0
- package/dist/agent/{buildAskContext.d.ts → ask/buildAskContext.d.ts} +2 -2
- package/dist/agent/ask/buildAskContext.js +22 -0
- package/dist/agent/ask/buildAskContext.js.map +1 -0
- package/dist/agent/chat/AgentChatProvider.cjs +2 -0
- package/dist/agent/chat/AgentChatProvider.cjs.map +1 -0
- package/dist/agent/{AgentProvider.d.ts → chat/AgentChatProvider.d.ts} +4 -4
- package/dist/agent/chat/AgentChatProvider.js +26 -0
- package/dist/agent/chat/AgentChatProvider.js.map +1 -0
- package/dist/agent/chat/chat.cjs +2 -0
- package/dist/agent/chat/chat.cjs.map +1 -0
- package/dist/agent/{agentContext.d.ts → chat/chat.d.ts} +5 -6
- package/dist/agent/chat/chat.js +14 -0
- package/dist/agent/chat/chat.js.map +1 -0
- package/dist/agent/chat/useAgentChat.cjs +2 -0
- package/dist/agent/chat/useAgentChat.cjs.map +1 -0
- package/dist/agent/chat/useAgentChat.d.ts +7 -0
- package/dist/agent/chat/useAgentChat.js +9 -0
- package/dist/agent/chat/useAgentChat.js.map +1 -0
- package/dist/agent/core/AegisRuntimeProvider.cjs +2 -0
- package/dist/agent/core/AegisRuntimeProvider.cjs.map +1 -0
- package/dist/agent/core/AegisRuntimeProvider.d.ts +32 -0
- package/dist/agent/core/AegisRuntimeProvider.js +35 -0
- package/dist/agent/core/AegisRuntimeProvider.js.map +1 -0
- package/dist/agent/core/aegisRuntimeContext.cjs +2 -0
- package/dist/agent/core/aegisRuntimeContext.cjs.map +1 -0
- package/dist/agent/core/aegisRuntimeContext.d.ts +6 -0
- package/dist/agent/core/aegisRuntimeContext.js +6 -0
- package/dist/agent/core/aegisRuntimeContext.js.map +1 -0
- package/dist/agent/core/hooks.cjs +2 -0
- package/dist/agent/core/hooks.cjs.map +1 -0
- package/dist/agent/core/hooks.js +83 -0
- package/dist/agent/core/hooks.js.map +1 -0
- package/dist/agent/core/mcpToolCatalogue.cjs +2 -0
- package/dist/agent/core/mcpToolCatalogue.cjs.map +1 -0
- package/dist/agent/core/mcpToolCatalogue.js +101 -0
- package/dist/agent/core/mcpToolCatalogue.js.map +1 -0
- package/dist/agent/core/runtime.cjs +2 -0
- package/dist/agent/core/runtime.cjs.map +1 -0
- package/dist/agent/{runtime.d.ts → core/runtime.d.ts} +3 -7
- package/dist/agent/core/runtime.js +391 -0
- package/dist/agent/core/runtime.js.map +1 -0
- package/dist/agent/core/usePrimitiveSurface.cjs +2 -0
- package/dist/agent/core/usePrimitiveSurface.cjs.map +1 -0
- package/dist/agent/core/usePrimitiveSurface.js +21 -0
- package/dist/agent/core/usePrimitiveSurface.js.map +1 -0
- package/dist/agent/index.d.ts +14 -17
- package/dist/auth/AuthProvider.cjs +2 -0
- package/dist/auth/AuthProvider.cjs.map +1 -0
- package/dist/auth/AuthProvider.js +12 -0
- package/dist/auth/AuthProvider.js.map +1 -0
- package/dist/auth/RequireAuth.cjs +2 -0
- package/dist/auth/RequireAuth.cjs.map +1 -0
- package/dist/auth/RequireAuth.js +15 -0
- package/dist/auth/RequireAuth.js.map +1 -0
- package/dist/auth/authContext.cjs +2 -0
- package/dist/auth/authContext.cjs.map +1 -0
- package/dist/auth/authContext.js +12 -0
- package/dist/auth/authContext.js.map +1 -0
- package/dist/auth/useAuth.cjs +2 -0
- package/dist/auth/useAuth.cjs.map +1 -0
- package/dist/auth/useAuth.js +9 -0
- package/dist/auth/useAuth.js.map +1 -0
- package/dist/commands/CommandProvider.cjs +2 -0
- package/dist/commands/CommandProvider.cjs.map +1 -0
- package/dist/commands/CommandProvider.js +76 -0
- package/dist/commands/CommandProvider.js.map +1 -0
- package/dist/commands/commandContext.cjs +2 -0
- package/dist/commands/commandContext.cjs.map +1 -0
- package/dist/commands/commandContext.d.ts +1 -1
- package/dist/commands/commandContext.js +20 -0
- package/dist/commands/commandContext.js.map +1 -0
- package/dist/commands/shortcut.cjs +2 -0
- package/dist/commands/shortcut.cjs.map +1 -0
- package/dist/commands/shortcut.js +62 -0
- package/dist/commands/shortcut.js.map +1 -0
- package/dist/commands/useCommands.cjs +2 -0
- package/dist/commands/useCommands.cjs.map +1 -0
- package/dist/commands/useCommands.js +9 -0
- package/dist/commands/useCommands.js.map +1 -0
- package/dist/commands/useRegisterCommands.cjs +2 -0
- package/dist/commands/useRegisterCommands.cjs.map +1 -0
- package/dist/commands/useRegisterCommands.js +12 -0
- package/dist/commands/useRegisterCommands.js.map +1 -0
- package/dist/components/ui/AgentPanel.cjs +2 -0
- package/dist/components/ui/AgentPanel.cjs.map +1 -0
- package/dist/components/ui/AgentPanel.d.ts +1 -1
- package/dist/components/ui/AgentPanel.js +35 -0
- package/dist/components/ui/AgentPanel.js.map +1 -0
- package/dist/components/ui/Alert.cjs +2 -0
- package/dist/components/ui/Alert.cjs.map +1 -0
- package/dist/components/ui/Alert.js +29 -0
- package/dist/components/ui/Alert.js.map +1 -0
- package/dist/components/ui/AmbientBackground.cjs +2 -0
- package/dist/components/ui/AmbientBackground.cjs.map +1 -0
- package/dist/components/ui/AmbientBackground.js +24 -0
- package/dist/components/ui/AmbientBackground.js.map +1 -0
- package/dist/components/ui/AuthLayout.cjs +2 -0
- package/dist/components/ui/AuthLayout.cjs.map +1 -0
- package/dist/components/ui/AuthLayout.js +27 -0
- package/dist/components/ui/AuthLayout.js.map +1 -0
- package/dist/components/ui/Avatar.cjs +2 -0
- package/dist/components/ui/Avatar.cjs.map +1 -0
- package/dist/components/ui/Avatar.d.ts +1 -1
- package/dist/components/ui/Avatar.js +55 -0
- package/dist/components/ui/Avatar.js.map +1 -0
- package/dist/components/ui/BlastRadiusBar.cjs +2 -0
- package/dist/components/ui/BlastRadiusBar.cjs.map +1 -0
- package/dist/components/ui/BlastRadiusBar.d.ts +1 -1
- package/dist/components/ui/BlastRadiusBar.js +46 -0
- package/dist/components/ui/BlastRadiusBar.js.map +1 -0
- package/dist/components/ui/Breadcrumb.cjs +2 -0
- package/dist/components/ui/Breadcrumb.cjs.map +1 -0
- package/dist/components/ui/Breadcrumb.js +29 -0
- package/dist/components/ui/Breadcrumb.js.map +1 -0
- package/dist/components/ui/BucketCard.cjs +2 -0
- package/dist/components/ui/BucketCard.cjs.map +1 -0
- package/dist/components/ui/BucketCard.js +73 -0
- package/dist/components/ui/BucketCard.js.map +1 -0
- package/dist/components/ui/Button.cjs +2 -0
- package/dist/components/ui/Button.cjs.map +1 -0
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/Button.js +73 -0
- package/dist/components/ui/Button.js.map +1 -0
- package/dist/components/ui/Carousel.cjs +2 -0
- package/dist/components/ui/Carousel.cjs.map +1 -0
- package/dist/components/ui/Carousel.js +112 -0
- package/dist/components/ui/Carousel.js.map +1 -0
- package/dist/components/ui/ChartLegend.cjs +2 -0
- package/dist/components/ui/ChartLegend.cjs.map +1 -0
- package/dist/components/ui/ChartLegend.d.ts +15 -0
- package/dist/components/ui/ChartLegend.js +36 -0
- package/dist/components/ui/ChartLegend.js.map +1 -0
- package/dist/components/ui/ChatComposer.cjs +2 -0
- package/dist/components/ui/ChatComposer.cjs.map +1 -0
- package/dist/components/ui/ChatComposer.js +63 -0
- package/dist/components/ui/ChatComposer.js.map +1 -0
- package/dist/components/ui/ChatMessage.cjs +2 -0
- package/dist/components/ui/ChatMessage.cjs.map +1 -0
- package/dist/components/ui/ChatMessage.d.ts +2 -2
- package/dist/components/ui/ChatMessage.js +36 -0
- package/dist/components/ui/ChatMessage.js.map +1 -0
- package/dist/components/ui/ChatMessageList.cjs +2 -0
- package/dist/components/ui/ChatMessageList.cjs.map +1 -0
- package/dist/components/ui/ChatMessageList.d.ts +1 -1
- package/dist/components/ui/ChatMessageList.js +35 -0
- package/dist/components/ui/ChatMessageList.js.map +1 -0
- package/dist/components/ui/ChatSessionList.cjs +2 -0
- package/dist/components/ui/ChatSessionList.cjs.map +1 -0
- package/dist/components/ui/ChatSessionList.js +232 -0
- package/dist/components/ui/ChatSessionList.js.map +1 -0
- package/dist/components/ui/CheckGrid.cjs +2 -0
- package/dist/components/ui/CheckGrid.cjs.map +1 -0
- package/dist/components/ui/CheckGrid.js +69 -0
- package/dist/components/ui/CheckGrid.js.map +1 -0
- package/dist/components/ui/Checkbox.cjs +2 -0
- package/dist/components/ui/Checkbox.cjs.map +1 -0
- package/dist/components/ui/Checkbox.js +41 -0
- package/dist/components/ui/Checkbox.js.map +1 -0
- package/dist/components/ui/Chip.cjs +2 -0
- package/dist/components/ui/Chip.cjs.map +1 -0
- package/dist/components/ui/Chip.d.ts +1 -1
- package/dist/components/ui/Chip.js +55 -0
- package/dist/components/ui/Chip.js.map +1 -0
- package/dist/components/ui/CodeBlock.cjs +3 -0
- package/dist/components/ui/CodeBlock.cjs.map +1 -0
- package/dist/components/ui/CodeBlock.d.ts +1 -1
- package/dist/components/ui/CodeBlock.js +54 -0
- package/dist/components/ui/CodeBlock.js.map +1 -0
- package/dist/components/ui/CodeEditor.cjs +2 -0
- package/dist/components/ui/CodeEditor.cjs.map +1 -0
- package/dist/components/ui/CodeEditor.d.ts +1 -1
- package/dist/components/ui/CodeEditor.js +119 -0
- package/dist/components/ui/CodeEditor.js.map +1 -0
- package/dist/components/ui/Collapse.cjs +2 -0
- package/dist/components/ui/Collapse.cjs.map +1 -0
- package/dist/components/ui/Collapse.js +52 -0
- package/dist/components/ui/Collapse.js.map +1 -0
- package/dist/components/ui/ColumnLayout.cjs +2 -0
- package/dist/components/ui/ColumnLayout.cjs.map +1 -0
- package/dist/components/ui/ColumnLayout.js +26 -0
- package/dist/components/ui/ColumnLayout.js.map +1 -0
- package/dist/components/ui/CommandInvocationCard.cjs +2 -0
- package/dist/components/ui/CommandInvocationCard.cjs.map +1 -0
- package/dist/components/ui/CommandInvocationCard.d.ts +1 -1
- package/dist/components/ui/CommandInvocationCard.js +65 -0
- package/dist/components/ui/CommandInvocationCard.js.map +1 -0
- package/dist/components/ui/CommandPalette.cjs +2 -0
- package/dist/components/ui/CommandPalette.cjs.map +1 -0
- package/dist/components/ui/CommandPalette.js +147 -0
- package/dist/components/ui/CommandPalette.js.map +1 -0
- package/dist/components/ui/ContentInspectorContent.cjs +5 -0
- package/dist/components/ui/ContentInspectorContent.cjs.map +1 -0
- package/dist/components/ui/ContentInspectorContent.js +101 -0
- package/dist/components/ui/ContentInspectorContent.js.map +1 -0
- package/dist/components/ui/ContentInspectorDialog.cjs +4 -0
- package/dist/components/ui/ContentInspectorDialog.cjs.map +1 -0
- package/dist/components/ui/ContentInspectorDialog.js +211 -0
- package/dist/components/ui/ContentInspectorDialog.js.map +1 -0
- package/dist/components/ui/ControlListItem.cjs +2 -0
- package/dist/components/ui/ControlListItem.cjs.map +1 -0
- package/dist/components/ui/ControlListItem.d.ts +1 -1
- package/dist/components/ui/ControlListItem.js +48 -0
- package/dist/components/ui/ControlListItem.js.map +1 -0
- package/dist/components/ui/DangerZone.cjs +2 -0
- package/dist/components/ui/DangerZone.cjs.map +1 -0
- package/dist/components/ui/DangerZone.js +23 -0
- package/dist/components/ui/DangerZone.js.map +1 -0
- package/dist/components/ui/DataList.cjs +2 -0
- package/dist/components/ui/DataList.cjs.map +1 -0
- package/dist/components/ui/DataList.d.ts +1 -1
- package/dist/components/ui/DataList.js +41 -0
- package/dist/components/ui/DataList.js.map +1 -0
- package/dist/components/ui/DataTable.cjs +2 -0
- package/dist/components/ui/DataTable.cjs.map +1 -0
- package/dist/components/ui/DataTable.d.ts +26 -2
- package/dist/components/ui/DataTable.js +493 -0
- package/dist/components/ui/DataTable.js.map +1 -0
- package/dist/components/ui/Dialog.cjs +2 -0
- package/dist/components/ui/Dialog.cjs.map +1 -0
- package/dist/components/ui/Dialog.js +110 -0
- package/dist/components/ui/Dialog.js.map +1 -0
- package/dist/components/ui/DiffViewer.cjs +2 -0
- package/dist/components/ui/DiffViewer.cjs.map +1 -0
- package/dist/components/ui/DiffViewer.d.ts +1 -1
- package/dist/components/ui/DiffViewer.js +83 -0
- package/dist/components/ui/DiffViewer.js.map +1 -0
- package/dist/components/ui/DropdownMenu.cjs +2 -0
- package/dist/components/ui/DropdownMenu.cjs.map +1 -0
- package/dist/components/ui/DropdownMenu.d.ts +1 -1
- package/dist/components/ui/DropdownMenu.js +104 -0
- package/dist/components/ui/DropdownMenu.js.map +1 -0
- package/dist/components/ui/EmptyState.cjs +2 -0
- package/dist/components/ui/EmptyState.cjs.map +1 -0
- package/dist/components/ui/EmptyState.js +21 -0
- package/dist/components/ui/EmptyState.js.map +1 -0
- package/dist/components/ui/EnvironmentSwitcher.cjs +2 -0
- package/dist/components/ui/EnvironmentSwitcher.cjs.map +1 -0
- package/dist/components/ui/EnvironmentSwitcher.d.ts +1 -1
- package/dist/components/ui/EnvironmentSwitcher.js +115 -0
- package/dist/components/ui/EnvironmentSwitcher.js.map +1 -0
- package/dist/components/ui/ErrorState.cjs +2 -0
- package/dist/components/ui/ErrorState.cjs.map +1 -0
- package/dist/components/ui/ErrorState.js +28 -0
- package/dist/components/ui/ErrorState.js.map +1 -0
- package/dist/components/ui/EventTable.cjs +2 -0
- package/dist/components/ui/EventTable.cjs.map +1 -0
- package/dist/components/ui/EventTable.js +184 -0
- package/dist/components/ui/EventTable.js.map +1 -0
- package/dist/components/ui/FileDropzone.cjs +2 -0
- package/dist/components/ui/FileDropzone.cjs.map +1 -0
- package/dist/components/ui/FileDropzone.js +84 -0
- package/dist/components/ui/FileDropzone.js.map +1 -0
- package/dist/components/ui/FilePreview.cjs +2 -0
- package/dist/components/ui/FilePreview.cjs.map +1 -0
- package/dist/components/ui/FilePreview.d.ts +2 -2
- package/dist/components/ui/FilePreview.js +102 -0
- package/dist/components/ui/FilePreview.js.map +1 -0
- package/dist/components/ui/FileTree.cjs +2 -0
- package/dist/components/ui/FileTree.cjs.map +1 -0
- package/dist/components/ui/FileTree.js +159 -0
- package/dist/components/ui/FileTree.js.map +1 -0
- package/dist/components/ui/FolderDropzone.cjs +2 -0
- package/dist/components/ui/FolderDropzone.cjs.map +1 -0
- package/dist/components/ui/FolderDropzone.js +158 -0
- package/dist/components/ui/FolderDropzone.js.map +1 -0
- package/dist/components/ui/ForgotPasswordForm.cjs +2 -0
- package/dist/components/ui/ForgotPasswordForm.cjs.map +1 -0
- package/dist/components/ui/ForgotPasswordForm.js +47 -0
- package/dist/components/ui/ForgotPasswordForm.js.map +1 -0
- package/dist/components/ui/FormRow.cjs +2 -0
- package/dist/components/ui/FormRow.cjs.map +1 -0
- package/dist/components/ui/FormRow.js +21 -0
- package/dist/components/ui/FormRow.js.map +1 -0
- package/dist/components/ui/IdentityCell.cjs +2 -0
- package/dist/components/ui/IdentityCell.cjs.map +1 -0
- package/dist/components/ui/IdentityCell.js +47 -0
- package/dist/components/ui/IdentityCell.js.map +1 -0
- package/dist/components/ui/InboxPage.cjs +2 -0
- package/dist/components/ui/InboxPage.cjs.map +1 -0
- package/dist/components/ui/InboxPage.d.ts +1 -1
- package/dist/components/ui/InboxPage.js +102 -0
- package/dist/components/ui/InboxPage.js.map +1 -0
- package/dist/components/ui/KeyValueList.cjs +2 -0
- package/dist/components/ui/KeyValueList.cjs.map +1 -0
- package/dist/components/ui/KeyValueList.d.ts +1 -1
- package/dist/components/ui/KeyValueList.js +23 -0
- package/dist/components/ui/KeyValueList.js.map +1 -0
- package/dist/components/ui/LoginForm.cjs +2 -0
- package/dist/components/ui/LoginForm.cjs.map +1 -0
- package/dist/components/ui/LoginForm.js +100 -0
- package/dist/components/ui/LoginForm.js.map +1 -0
- package/dist/components/ui/Markdown.cjs +2 -0
- package/dist/components/ui/Markdown.cjs.map +1 -0
- package/dist/components/ui/Markdown.js +82 -0
- package/dist/components/ui/Markdown.js.map +1 -0
- package/dist/components/ui/MdxDocument.cjs +2 -0
- package/dist/components/ui/MdxDocument.cjs.map +1 -0
- package/dist/components/ui/MdxDocument.js +66 -0
- package/dist/components/ui/MdxDocument.js.map +1 -0
- package/dist/components/ui/MetadataList.cjs +2 -0
- package/dist/components/ui/MetadataList.cjs.map +1 -0
- package/dist/components/ui/MetadataList.js +36 -0
- package/dist/components/ui/MetadataList.js.map +1 -0
- package/dist/components/ui/MetricCard.cjs +2 -0
- package/dist/components/ui/MetricCard.cjs.map +1 -0
- package/dist/components/ui/MetricCard.d.ts +1 -1
- package/dist/components/ui/MetricCard.js +63 -0
- package/dist/components/ui/MetricCard.js.map +1 -0
- package/dist/components/ui/MetricLabel.cjs +2 -0
- package/dist/components/ui/MetricLabel.cjs.map +1 -0
- package/dist/components/ui/MetricLabel.js +22 -0
- package/dist/components/ui/MetricLabel.js.map +1 -0
- package/dist/components/ui/MonoValue.cjs +2 -0
- package/dist/components/ui/MonoValue.cjs.map +1 -0
- package/dist/components/ui/MonoValue.d.ts +1 -1
- package/dist/components/ui/MonoValue.js +29 -0
- package/dist/components/ui/MonoValue.js.map +1 -0
- package/dist/components/ui/NotificationBell.cjs +2 -0
- package/dist/components/ui/NotificationBell.cjs.map +1 -0
- package/dist/components/ui/NotificationBell.d.ts +1 -1
- package/dist/components/ui/NotificationBell.js +98 -0
- package/dist/components/ui/NotificationBell.js.map +1 -0
- package/dist/components/ui/ObjectBrowser.cjs +2 -0
- package/dist/components/ui/ObjectBrowser.cjs.map +1 -0
- package/dist/components/ui/ObjectBrowser.js +116 -0
- package/dist/components/ui/ObjectBrowser.js.map +1 -0
- package/dist/components/ui/ObjectInspector.cjs +2 -0
- package/dist/components/ui/ObjectInspector.cjs.map +1 -0
- package/dist/components/ui/ObjectInspector.js +117 -0
- package/dist/components/ui/ObjectInspector.js.map +1 -0
- package/dist/components/ui/PageHeader.cjs +2 -0
- package/dist/components/ui/PageHeader.cjs.map +1 -0
- package/dist/components/ui/PageHeader.js +29 -0
- package/dist/components/ui/PageHeader.js.map +1 -0
- package/dist/components/ui/PageSizeSelect.cjs +2 -0
- package/dist/components/ui/PageSizeSelect.cjs.map +1 -0
- package/dist/components/ui/PageSizeSelect.js +88 -0
- package/dist/components/ui/PageSizeSelect.js.map +1 -0
- package/dist/components/ui/Pagination.cjs +2 -0
- package/dist/components/ui/Pagination.cjs.map +1 -0
- package/dist/components/ui/Pagination.js +56 -0
- package/dist/components/ui/Pagination.js.map +1 -0
- package/dist/components/ui/Panel.cjs +2 -0
- package/dist/components/ui/Panel.cjs.map +1 -0
- package/dist/components/ui/Panel.d.ts +1 -1
- package/dist/components/ui/Panel.js +47 -0
- package/dist/components/ui/Panel.js.map +1 -0
- package/dist/components/ui/PanelTitle.cjs +2 -0
- package/dist/components/ui/PanelTitle.cjs.map +1 -0
- package/dist/components/ui/PanelTitle.js +21 -0
- package/dist/components/ui/PanelTitle.js.map +1 -0
- package/dist/components/ui/ParetoChart.cjs +2 -0
- package/dist/components/ui/ParetoChart.cjs.map +1 -0
- package/dist/components/ui/ParetoChart.d.ts +11 -4
- package/dist/components/ui/ParetoChart.js +292 -0
- package/dist/components/ui/ParetoChart.js.map +1 -0
- package/dist/components/ui/ParquetViewer.cjs +2 -0
- package/dist/components/ui/ParquetViewer.cjs.map +1 -0
- package/dist/components/ui/ParquetViewer.d.ts +1 -1
- package/dist/components/ui/ParquetViewer.js +210 -0
- package/dist/components/ui/ParquetViewer.js.map +1 -0
- package/dist/components/ui/PasswordField.cjs +2 -0
- package/dist/components/ui/PasswordField.cjs.map +1 -0
- package/dist/components/ui/PasswordField.js +37 -0
- package/dist/components/ui/PasswordField.js.map +1 -0
- package/dist/components/ui/PickerField.cjs +2 -0
- package/dist/components/ui/PickerField.cjs.map +1 -0
- package/dist/components/ui/PickerField.js +45 -0
- package/dist/components/ui/PickerField.js.map +1 -0
- package/dist/components/ui/ProjectSelector.cjs +2 -0
- package/dist/components/ui/ProjectSelector.cjs.map +1 -0
- package/dist/components/ui/ProjectSelector.d.ts +1 -1
- package/dist/components/ui/ProjectSelector.js +74 -0
- package/dist/components/ui/ProjectSelector.js.map +1 -0
- package/dist/components/ui/QueryAutocomplete.cjs +2 -0
- package/dist/components/ui/QueryAutocomplete.cjs.map +1 -0
- package/dist/components/ui/QueryAutocomplete.js +235 -0
- package/dist/components/ui/QueryAutocomplete.js.map +1 -0
- package/dist/components/ui/RankBar.cjs +2 -0
- package/dist/components/ui/RankBar.cjs.map +1 -0
- package/dist/components/ui/RankBar.d.ts +17 -2
- package/dist/components/ui/RankBar.js +105 -0
- package/dist/components/ui/RankBar.js.map +1 -0
- package/dist/components/ui/RegisterForm.cjs +2 -0
- package/dist/components/ui/RegisterForm.cjs.map +1 -0
- package/dist/components/ui/RegisterForm.js +72 -0
- package/dist/components/ui/RegisterForm.js.map +1 -0
- package/dist/components/ui/ReplayScrubber.cjs +2 -0
- package/dist/components/ui/ReplayScrubber.cjs.map +1 -0
- package/dist/components/ui/ReplayScrubber.d.ts +35 -0
- package/dist/components/ui/ReplayScrubber.js +119 -0
- package/dist/components/ui/ReplayScrubber.js.map +1 -0
- package/dist/components/ui/ReplayStepStrip.cjs +2 -0
- package/dist/components/ui/ReplayStepStrip.cjs.map +1 -0
- package/dist/components/ui/ReplayStepStrip.d.ts +33 -0
- package/dist/components/ui/ReplayStepStrip.js +119 -0
- package/dist/components/ui/ReplayStepStrip.js.map +1 -0
- package/dist/components/ui/ReplayTransport.cjs +2 -0
- package/dist/components/ui/ReplayTransport.cjs.map +1 -0
- package/dist/components/ui/ReplayTransport.d.ts +25 -0
- package/dist/components/ui/ReplayTransport.js +103 -0
- package/dist/components/ui/ReplayTransport.js.map +1 -0
- package/dist/components/ui/ResizableSidePanel.cjs +2 -0
- package/dist/components/ui/ResizableSidePanel.cjs.map +1 -0
- package/dist/components/ui/ResizableSidePanel.js +79 -0
- package/dist/components/ui/ResizableSidePanel.js.map +1 -0
- package/dist/components/ui/Reveal.cjs +2 -0
- package/dist/components/ui/Reveal.cjs.map +1 -0
- package/dist/components/ui/Reveal.js +37 -0
- package/dist/components/ui/Reveal.js.map +1 -0
- package/dist/components/ui/RunPips.cjs +2 -0
- package/dist/components/ui/RunPips.cjs.map +1 -0
- package/dist/components/ui/RunPips.js +53 -0
- package/dist/components/ui/RunPips.js.map +1 -0
- package/dist/components/ui/SavedQueryBar.cjs +2 -0
- package/dist/components/ui/SavedQueryBar.cjs.map +1 -0
- package/dist/components/ui/SavedQueryBar.js +390 -0
- package/dist/components/ui/SavedQueryBar.js.map +1 -0
- package/dist/components/ui/ScoreBar.cjs +2 -0
- package/dist/components/ui/ScoreBar.cjs.map +1 -0
- package/dist/components/ui/ScoreBar.js +44 -0
- package/dist/components/ui/ScoreBar.js.map +1 -0
- package/dist/components/ui/ScrollStory.cjs +3 -0
- package/dist/components/ui/ScrollStory.cjs.map +1 -0
- package/dist/components/ui/ScrollStory.d.ts +33 -0
- package/dist/components/ui/ScrollStory.js +116 -0
- package/dist/components/ui/ScrollStory.js.map +1 -0
- package/dist/components/ui/SearchInput.cjs +2 -0
- package/dist/components/ui/SearchInput.cjs.map +1 -0
- package/dist/components/ui/SearchInput.js +48 -0
- package/dist/components/ui/SearchInput.js.map +1 -0
- package/dist/components/ui/SectionDivider.cjs +2 -0
- package/dist/components/ui/SectionDivider.cjs.map +1 -0
- package/dist/components/ui/SectionDivider.js +22 -0
- package/dist/components/ui/SectionDivider.js.map +1 -0
- package/dist/components/ui/Select.cjs +2 -0
- package/dist/components/ui/Select.cjs.map +1 -0
- package/dist/components/ui/Select.js +70 -0
- package/dist/components/ui/Select.js.map +1 -0
- package/dist/components/ui/ServiceMap.cjs +2 -0
- package/dist/components/ui/ServiceMap.cjs.map +1 -0
- package/dist/components/ui/ServiceMap.js +187 -0
- package/dist/components/ui/ServiceMap.js.map +1 -0
- package/dist/components/ui/SettingsSection.cjs +2 -0
- package/dist/components/ui/SettingsSection.cjs.map +1 -0
- package/dist/components/ui/SettingsSection.js +23 -0
- package/dist/components/ui/SettingsSection.js.map +1 -0
- package/dist/components/ui/ShareLinkDialog.cjs +2 -0
- package/dist/components/ui/ShareLinkDialog.cjs.map +1 -0
- package/dist/components/ui/ShareLinkDialog.js +133 -0
- package/dist/components/ui/ShareLinkDialog.js.map +1 -0
- package/dist/components/ui/Skeleton.cjs +2 -0
- package/dist/components/ui/Skeleton.cjs.map +1 -0
- package/dist/components/ui/Skeleton.js +42 -0
- package/dist/components/ui/Skeleton.js.map +1 -0
- package/dist/components/ui/SparkLine.cjs +2 -0
- package/dist/components/ui/SparkLine.cjs.map +1 -0
- package/dist/components/ui/SparkLine.d.ts +1 -1
- package/dist/components/ui/SparkLine.js +61 -0
- package/dist/components/ui/SparkLine.js.map +1 -0
- package/dist/components/ui/StackedBar.cjs +2 -0
- package/dist/components/ui/StackedBar.cjs.map +1 -0
- package/dist/components/ui/StackedBar.d.ts +9 -8
- package/dist/components/ui/StackedBar.js +125 -0
- package/dist/components/ui/StackedBar.js.map +1 -0
- package/dist/components/ui/StatBlock.cjs +2 -0
- package/dist/components/ui/StatBlock.cjs.map +1 -0
- package/dist/components/ui/StatBlock.d.ts +1 -1
- package/dist/components/ui/StatBlock.js +67 -0
- package/dist/components/ui/StatBlock.js.map +1 -0
- package/dist/components/ui/StatusDot.cjs +2 -0
- package/dist/components/ui/StatusDot.cjs.map +1 -0
- package/dist/components/ui/StatusDot.js +27 -0
- package/dist/components/ui/StatusDot.js.map +1 -0
- package/dist/components/ui/TableOfContents.cjs +2 -0
- package/dist/components/ui/TableOfContents.cjs.map +1 -0
- package/dist/components/ui/TableOfContents.js +104 -0
- package/dist/components/ui/TableOfContents.js.map +1 -0
- package/dist/components/ui/Tabs.cjs +3 -0
- package/dist/components/ui/Tabs.cjs.map +1 -0
- package/dist/components/ui/Tabs.d.ts +1 -1
- package/dist/components/ui/Tabs.js +144 -0
- package/dist/components/ui/Tabs.js.map +1 -0
- package/dist/components/ui/Terminal.cjs +2 -0
- package/dist/components/ui/Terminal.cjs.map +1 -0
- package/dist/components/ui/Terminal.d.ts +1 -1
- package/dist/components/ui/Terminal.js +42 -0
- package/dist/components/ui/Terminal.js.map +1 -0
- package/dist/components/ui/TextField.cjs +2 -0
- package/dist/components/ui/TextField.cjs.map +1 -0
- package/dist/components/ui/TextField.js +56 -0
- package/dist/components/ui/TextField.js.map +1 -0
- package/dist/components/ui/ThemeToggle.cjs +2 -0
- package/dist/components/ui/ThemeToggle.cjs.map +1 -0
- package/dist/components/ui/ThemeToggle.d.ts +1 -1
- package/dist/components/ui/ThemeToggle.js +37 -0
- package/dist/components/ui/ThemeToggle.js.map +1 -0
- package/dist/components/ui/TimeDisplay.cjs +2 -0
- package/dist/components/ui/TimeDisplay.cjs.map +1 -0
- package/dist/components/ui/TimeDisplay.js +56 -0
- package/dist/components/ui/TimeDisplay.js.map +1 -0
- package/dist/components/ui/TimeRangePicker.cjs +2 -0
- package/dist/components/ui/TimeRangePicker.cjs.map +1 -0
- package/dist/components/ui/TimeRangePicker.js +152 -0
- package/dist/components/ui/TimeRangePicker.js.map +1 -0
- package/dist/components/ui/Timeline.cjs +2 -0
- package/dist/components/ui/Timeline.cjs.map +1 -0
- package/dist/components/ui/Timeline.d.ts +1 -1
- package/dist/components/ui/Timeline.js +54 -0
- package/dist/components/ui/Timeline.js.map +1 -0
- package/dist/components/ui/TimelineChart.cjs +2 -0
- package/dist/components/ui/TimelineChart.cjs.map +1 -0
- package/dist/components/ui/TimelineChart.d.ts +12 -15
- package/dist/components/ui/TimelineChart.js +291 -0
- package/dist/components/ui/TimelineChart.js.map +1 -0
- package/dist/components/ui/ToolCallCard.cjs +4 -0
- package/dist/components/ui/ToolCallCard.cjs.map +1 -0
- package/dist/components/ui/ToolCallCard.d.ts +1 -2
- package/dist/components/ui/ToolCallCard.js +56 -0
- package/dist/components/ui/ToolCallCard.js.map +1 -0
- package/dist/components/ui/Toolbar.cjs +2 -0
- package/dist/components/ui/Toolbar.cjs.map +1 -0
- package/dist/components/ui/Toolbar.js +68 -0
- package/dist/components/ui/Toolbar.js.map +1 -0
- package/dist/components/ui/TraceSpanInspector.cjs +2 -0
- package/dist/components/ui/TraceSpanInspector.cjs.map +1 -0
- package/dist/components/ui/TraceSpanInspector.js +148 -0
- package/dist/components/ui/TraceSpanInspector.js.map +1 -0
- package/dist/components/ui/TraceTree.cjs +2 -0
- package/dist/components/ui/TraceTree.cjs.map +1 -0
- package/dist/components/ui/TraceTree.d.ts +14 -3
- package/dist/components/ui/TraceTree.js +195 -0
- package/dist/components/ui/TraceTree.js.map +1 -0
- package/dist/components/ui/TrajectoryStep.cjs +2 -0
- package/dist/components/ui/TrajectoryStep.cjs.map +1 -0
- package/dist/components/ui/TrajectoryStep.d.ts +1 -1
- package/dist/components/ui/TrajectoryStep.js +74 -0
- package/dist/components/ui/TrajectoryStep.js.map +1 -0
- package/dist/components/ui/TrajectoryTimeline.cjs +2 -0
- package/dist/components/ui/TrajectoryTimeline.cjs.map +1 -0
- package/dist/components/ui/TrajectoryTimeline.d.ts +1 -1
- package/dist/components/ui/TrajectoryTimeline.js +51 -0
- package/dist/components/ui/TrajectoryTimeline.js.map +1 -0
- package/dist/components/ui/UploadQueue.cjs +2 -0
- package/dist/components/ui/UploadQueue.cjs.map +1 -0
- package/dist/components/ui/UploadQueue.js +146 -0
- package/dist/components/ui/UploadQueue.js.map +1 -0
- package/dist/components/ui/codeFence.cjs +2 -0
- package/dist/components/ui/codeFence.cjs.map +1 -0
- package/dist/components/ui/codeFence.js +16 -0
- package/dist/components/ui/codeFence.js.map +1 -0
- package/dist/components/ui/index.d.ts +13 -5
- package/dist/components/ui/linkComponent.cjs +2 -0
- package/dist/components/ui/linkComponent.cjs.map +1 -0
- package/dist/components/ui/linkComponent.d.ts +4 -1
- package/dist/components/ui/linkComponent.js +11 -0
- package/dist/components/ui/linkComponent.js.map +1 -0
- package/dist/components/ui/mdxTableOfContents.cjs +2 -0
- package/dist/components/ui/mdxTableOfContents.cjs.map +1 -0
- package/dist/components/ui/mdxTableOfContents.js +13 -0
- package/dist/components/ui/mdxTableOfContents.js.map +1 -0
- package/dist/components/ui/relativeTime.cjs +2 -0
- package/dist/components/ui/relativeTime.cjs.map +1 -0
- package/dist/components/ui/relativeTime.js +11 -0
- package/dist/components/ui/relativeTime.js.map +1 -0
- package/dist/components/ui/tablistKeyboard.cjs +2 -0
- package/dist/components/ui/tablistKeyboard.cjs.map +1 -0
- package/dist/components/ui/tablistKeyboard.js +18 -0
- package/dist/components/ui/tablistKeyboard.js.map +1 -0
- package/dist/components/ui/traceFormat.cjs +2 -0
- package/dist/components/ui/traceFormat.cjs.map +1 -0
- package/dist/components/ui/traceFormat.d.ts +0 -2
- package/dist/components/ui/traceFormat.js +11 -0
- package/dist/components/ui/traceFormat.js.map +1 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useCopyToClipboard.cjs +2 -0
- package/dist/hooks/useCopyToClipboard.cjs.map +1 -0
- package/dist/hooks/useCopyToClipboard.js +24 -0
- package/dist/hooks/useCopyToClipboard.js.map +1 -0
- package/dist/hooks/useElementWidth.cjs +2 -0
- package/dist/hooks/useElementWidth.cjs.map +1 -0
- package/dist/hooks/useElementWidth.js +22 -0
- package/dist/hooks/useElementWidth.js.map +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect.cjs +2 -0
- package/dist/hooks/useIsomorphicLayoutEffect.cjs.map +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +7 -0
- package/dist/hooks/useIsomorphicLayoutEffect.js +6 -0
- package/dist/hooks/useIsomorphicLayoutEffect.js.map +1 -0
- package/dist/hooks/useMediaQuery.cjs +2 -0
- package/dist/hooks/useMediaQuery.cjs.map +1 -0
- package/dist/hooks/useMediaQuery.d.ts +4 -1
- package/dist/hooks/useMediaQuery.js +23 -0
- package/dist/hooks/useMediaQuery.js.map +1 -0
- package/dist/hooks/useMenuPopover.cjs +2 -0
- package/dist/hooks/useMenuPopover.cjs.map +1 -0
- package/dist/hooks/useMenuPopover.js +64 -0
- package/dist/hooks/useMenuPopover.js.map +1 -0
- package/dist/hooks/usePageHidden.cjs +2 -0
- package/dist/hooks/usePageHidden.cjs.map +1 -0
- package/dist/hooks/usePageHidden.js +23 -0
- package/dist/hooks/usePageHidden.js.map +1 -0
- package/dist/hooks/useReplayPlayback.cjs +2 -0
- package/dist/hooks/useReplayPlayback.cjs.map +1 -0
- package/dist/hooks/useReplayPlayback.d.ts +44 -0
- package/dist/hooks/useReplayPlayback.js +73 -0
- package/dist/hooks/useReplayPlayback.js.map +1 -0
- package/dist/hooks/useResizable.cjs +2 -0
- package/dist/hooks/useResizable.cjs.map +1 -0
- package/dist/hooks/useResizable.js +99 -0
- package/dist/hooks/useResizable.js.map +1 -0
- package/dist/hooks/useSavedQueries.cjs +2 -0
- package/dist/hooks/useSavedQueries.cjs.map +1 -0
- package/dist/hooks/useSavedQueries.js +93 -0
- package/dist/hooks/useSavedQueries.js.map +1 -0
- package/dist/hooks/useScrollProgress.cjs +2 -0
- package/dist/hooks/useScrollProgress.cjs.map +1 -0
- package/dist/hooks/useScrollProgress.d.ts +36 -0
- package/dist/hooks/useScrollProgress.js +64 -0
- package/dist/hooks/useScrollProgress.js.map +1 -0
- package/dist/hooks/useWindowScrolled.cjs +2 -0
- package/dist/hooks/useWindowScrolled.cjs.map +1 -0
- package/dist/hooks/useWindowScrolled.d.ts +2 -0
- package/dist/hooks/useWindowScrolled.js +19 -0
- package/dist/hooks/useWindowScrolled.js.map +1 -0
- package/dist/index.cjs +1 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -8
- package/dist/index.js +319 -12124
- package/dist/index.js.map +1 -1
- package/dist/layouts/PageWrapper.cjs +2 -0
- package/dist/layouts/PageWrapper.cjs.map +1 -0
- package/dist/layouts/PageWrapper.js +14 -0
- package/dist/layouts/PageWrapper.js.map +1 -0
- package/dist/layouts/SkipLink.cjs +2 -0
- package/dist/layouts/SkipLink.cjs.map +1 -0
- package/dist/layouts/SkipLink.d.ts +13 -0
- package/dist/layouts/SkipLink.js +21 -0
- package/dist/layouts/SkipLink.js.map +1 -0
- package/dist/layouts/shell/AegisShell.cjs +2 -0
- package/dist/layouts/shell/AegisShell.cjs.map +1 -0
- package/dist/layouts/shell/AegisShell.d.ts +1 -1
- package/dist/layouts/shell/AegisShell.js +292 -0
- package/dist/layouts/shell/AegisShell.js.map +1 -0
- package/dist/layouts/shell/AppSwitcher.cjs +2 -0
- package/dist/layouts/shell/AppSwitcher.cjs.map +1 -0
- package/dist/layouts/shell/AppSwitcher.js +81 -0
- package/dist/layouts/shell/AppSwitcher.js.map +1 -0
- package/dist/layouts/shell/AuthRequiredCard.cjs +2 -0
- package/dist/layouts/shell/AuthRequiredCard.cjs.map +1 -0
- package/dist/layouts/shell/AuthRequiredCard.js +33 -0
- package/dist/layouts/shell/AuthRequiredCard.js.map +1 -0
- package/dist/layouts/shell/BreadcrumbBar.cjs +2 -0
- package/dist/layouts/shell/BreadcrumbBar.cjs.map +1 -0
- package/dist/layouts/shell/BreadcrumbBar.js +38 -0
- package/dist/layouts/shell/BreadcrumbBar.js.map +1 -0
- package/dist/layouts/shell/Sidebar.cjs +2 -0
- package/dist/layouts/shell/Sidebar.cjs.map +1 -0
- package/dist/layouts/shell/Sidebar.js +34 -0
- package/dist/layouts/shell/Sidebar.js.map +1 -0
- package/dist/layouts/shell/TopHeader.cjs +2 -0
- package/dist/layouts/shell/TopHeader.cjs.map +1 -0
- package/dist/layouts/shell/TopHeader.js +201 -0
- package/dist/layouts/shell/TopHeader.js.map +1 -0
- package/dist/layouts/shell/activeAppContext.cjs +2 -0
- package/dist/layouts/shell/activeAppContext.cjs.map +1 -0
- package/dist/layouts/shell/activeAppContext.js +17 -0
- package/dist/layouts/shell/activeAppContext.js.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentContext.cjs +2 -0
- package/dist/layouts/shell/environments/EnvironmentContext.cjs.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentContext.js +94 -0
- package/dist/layouts/shell/environments/EnvironmentContext.js.map +1 -0
- package/dist/layouts/shell/environments/context.cjs +2 -0
- package/dist/layouts/shell/environments/context.cjs.map +1 -0
- package/dist/layouts/shell/environments/context.js +6 -0
- package/dist/layouts/shell/environments/context.js.map +1 -0
- package/dist/layouts/shell/environments/hooks.cjs +2 -0
- package/dist/layouts/shell/environments/hooks.cjs.map +1 -0
- package/dist/layouts/shell/environments/hooks.js +24 -0
- package/dist/layouts/shell/environments/hooks.js.map +1 -0
- package/dist/layouts/shell/environments/manifest.cjs +2 -0
- package/dist/layouts/shell/environments/manifest.cjs.map +1 -0
- package/dist/layouts/shell/environments/manifest.js +82 -0
- package/dist/layouts/shell/environments/manifest.js.map +1 -0
- package/dist/layouts/shell/environments/types.cjs +2 -0
- package/dist/layouts/shell/environments/types.cjs.map +1 -0
- package/dist/layouts/shell/environments/types.js +5 -0
- package/dist/layouts/shell/environments/types.js.map +1 -0
- package/dist/layouts/shell/paths.cjs +2 -0
- package/dist/layouts/shell/paths.cjs.map +1 -0
- package/dist/layouts/shell/paths.js +17 -0
- package/dist/layouts/shell/paths.js.map +1 -0
- package/dist/layouts/shell/types.d.ts +10 -2
- package/dist/layouts/shell/useAppNavigate.cjs +2 -0
- package/dist/layouts/shell/useAppNavigate.cjs.map +1 -0
- package/dist/layouts/shell/useAppNavigate.js +25 -0
- package/dist/layouts/shell/useAppNavigate.js.map +1 -0
- package/dist/layouts/site/SiteFooter.cjs +2 -0
- package/dist/layouts/site/SiteFooter.cjs.map +1 -0
- package/dist/layouts/site/SiteFooter.d.ts +27 -0
- package/dist/layouts/site/SiteFooter.js +58 -0
- package/dist/layouts/site/SiteFooter.js.map +1 -0
- package/dist/layouts/site/SiteLayout.cjs +2 -0
- package/dist/layouts/site/SiteLayout.cjs.map +1 -0
- package/dist/layouts/site/SiteLayout.d.ts +18 -0
- package/dist/layouts/site/SiteLayout.js +34 -0
- package/dist/layouts/site/SiteLayout.js.map +1 -0
- package/dist/layouts/site/SiteNav.cjs +2 -0
- package/dist/layouts/site/SiteNav.cjs.map +1 -0
- package/dist/layouts/site/SiteNav.d.ts +31 -0
- package/dist/layouts/site/SiteNav.js +115 -0
- package/dist/layouts/site/SiteNav.js.map +1 -0
- package/dist/layouts/site/SiteSection.cjs +2 -0
- package/dist/layouts/site/SiteSection.cjs.map +1 -0
- package/dist/layouts/site/SiteSection.d.ts +20 -0
- package/dist/layouts/site/SiteSection.js +27 -0
- package/dist/layouts/site/SiteSection.js.map +1 -0
- package/dist/layouts/site/index.d.ts +8 -0
- package/dist/lib/chart.cjs +2 -0
- package/dist/lib/chart.cjs.map +1 -0
- package/dist/lib/chart.d.ts +33 -0
- package/dist/lib/chart.js +47 -0
- package/dist/lib/chart.js.map +1 -0
- package/dist/lib/format.cjs +2 -0
- package/dist/lib/format.cjs.map +1 -0
- package/dist/lib/format.js +13 -0
- package/dist/lib/format.js.map +1 -0
- package/dist/lib/id.cjs +2 -0
- package/dist/lib/id.cjs.map +1 -0
- package/dist/lib/id.js +7 -0
- package/dist/lib/id.js.map +1 -0
- package/dist/lib/luceneQuery/index.d.ts +0 -2
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs +3 -0
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs.map +1 -0
- package/dist/lib/luceneQuery/tokenizeAtCursor.js +58 -0
- package/dist/lib/luceneQuery/tokenizeAtCursor.js.map +1 -0
- package/dist/lib/scrollView.cjs +2 -0
- package/dist/lib/scrollView.cjs.map +1 -0
- package/dist/lib/scrollView.d.ts +16 -0
- package/dist/lib/scrollView.js +27 -0
- package/dist/lib/scrollView.js.map +1 -0
- package/dist/lib/storage.cjs +2 -0
- package/dist/lib/storage.cjs.map +1 -0
- package/dist/lib/storage.js +35 -0
- package/dist/lib/storage.js.map +1 -0
- package/dist/lib/timeRange.cjs +2 -0
- package/dist/lib/timeRange.cjs.map +1 -0
- package/dist/lib/timeRange.js +70 -0
- package/dist/lib/timeRange.js.map +1 -0
- package/dist/locale/LocaleProvider.cjs +2 -0
- package/dist/locale/LocaleProvider.cjs.map +1 -0
- package/dist/locale/LocaleProvider.js +9 -0
- package/dist/locale/LocaleProvider.js.map +1 -0
- package/dist/locale/localeContext.cjs +2 -0
- package/dist/locale/localeContext.cjs.map +1 -0
- package/dist/locale/localeContext.js +7 -0
- package/dist/locale/localeContext.js.map +1 -0
- package/dist/locale/strings.cjs +2 -0
- package/dist/locale/strings.cjs.map +1 -0
- package/dist/locale/strings.d.ts +13 -8
- package/dist/locale/strings.js +204 -0
- package/dist/locale/strings.js.map +1 -0
- package/dist/locale/useStrings.cjs +2 -0
- package/dist/locale/useStrings.cjs.map +1 -0
- package/dist/locale/useStrings.js +9 -0
- package/dist/locale/useStrings.js.map +1 -0
- package/dist/notifications/NotificationProvider.cjs +2 -0
- package/dist/notifications/NotificationProvider.cjs.map +1 -0
- package/dist/notifications/NotificationProvider.js +18 -0
- package/dist/notifications/NotificationProvider.js.map +1 -0
- package/dist/notifications/notificationContext.cjs +2 -0
- package/dist/notifications/notificationContext.cjs.map +1 -0
- package/dist/notifications/notificationContext.js +11 -0
- package/dist/notifications/notificationContext.js.map +1 -0
- package/dist/notifications/useNotifications.cjs +2 -0
- package/dist/notifications/useNotifications.cjs.map +1 -0
- package/dist/notifications/useNotifications.js +9 -0
- package/dist/notifications/useNotifications.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/theme/ThemeProvider.cjs +2 -0
- package/dist/theme/ThemeProvider.cjs.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +3 -1
- package/dist/theme/ThemeProvider.js +62 -0
- package/dist/theme/ThemeProvider.js.map +1 -0
- package/dist/theme/antdTheme.cjs +2 -0
- package/dist/theme/antdTheme.cjs.map +1 -0
- package/dist/theme/antdTheme.js +230 -0
- package/dist/theme/antdTheme.js.map +1 -0
- package/dist/theme/themeContext.cjs +2 -0
- package/dist/theme/themeContext.cjs.map +1 -0
- package/dist/theme/themeContext.js +6 -0
- package/dist/theme/themeContext.js.map +1 -0
- package/dist/theme/themeInitScript.cjs +2 -0
- package/dist/theme/themeInitScript.cjs.map +1 -0
- package/dist/theme/themeInitScript.d.ts +10 -0
- package/dist/theme/themeInitScript.js +16 -0
- package/dist/theme/themeInitScript.js.map +1 -0
- package/dist/theme/useTheme.cjs +2 -0
- package/dist/theme/useTheme.cjs.map +1 -0
- package/dist/theme/useTheme.js +12 -0
- package/dist/theme/useTheme.js.map +1 -0
- package/dist/transports/agentm/AgentmChannelProvider.cjs +2 -0
- package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -0
- package/dist/{agent → transports/agentm}/AgentmChannelProvider.d.ts +2 -2
- package/dist/transports/agentm/AgentmChannelProvider.js +193 -0
- package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -0
- package/dist/transports/agentm/agentmChannelClient.cjs +2 -0
- package/dist/transports/agentm/agentmChannelClient.cjs.map +1 -0
- package/dist/transports/agentm/agentmChannelClient.js +279 -0
- package/dist/transports/agentm/agentmChannelClient.js.map +1 -0
- package/dist/transports/bridge.cjs +2 -0
- package/dist/transports/bridge.cjs.map +1 -0
- package/dist/transports/bridge.d.ts +17 -0
- package/dist/transports/bridge.js +143 -0
- package/dist/transports/bridge.js.map +1 -0
- package/dist/transports/index.d.ts +5 -0
- package/dist/transports.cjs +2 -0
- package/dist/transports.cjs.map +1 -0
- package/dist/transports.js +10 -0
- package/dist/transports.js.map +1 -0
- package/package.json +6 -2
- package/dist/agent/AegisAgentProvider.d.ts +0 -35
- package/dist/agent/aegisAgentContext.d.ts +0 -6
- package/dist/agent/useAgent.d.ts +0 -7
- package/dist/components/ui/SessionRunView.d.ts +0 -50
- package/dist/lib/luceneQuery/compile.d.ts +0 -29
- package/dist/lib/luceneQuery/lucene.d.ts +0 -63
- /package/dist/agent/{AskOverlay.d.ts → ask/AskOverlay.d.ts} +0 -0
- /package/dist/agent/{hooks.d.ts → core/hooks.d.ts} +0 -0
- /package/dist/agent/{mcpToolCatalogue.d.ts → core/mcpToolCatalogue.d.ts} +0 -0
- /package/dist/agent/{types.d.ts → core/types.d.ts} +0 -0
- /package/dist/agent/{usePrimitiveSurface.d.ts → core/usePrimitiveSurface.d.ts} +0 -0
- /package/dist/{agent → transports/agentm}/agentmChannelClient.d.ts +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { jsxs as S, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as j, useState as R } from "react";
|
|
3
|
+
import { chartColorValue as A } from "../../lib/chart.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { useStrings as B } from "../../locale/useStrings.js";
|
|
6
|
+
function $(o, s) {
|
|
7
|
+
const a = o - 1, n = new Set(o > 0 ? [0, a] : []);
|
|
8
|
+
for (let p = s - 1; p < a; p += s)
|
|
9
|
+
a - p >= s / 2 && n.add(p);
|
|
10
|
+
return n;
|
|
11
|
+
}
|
|
12
|
+
function E({
|
|
13
|
+
steps: o,
|
|
14
|
+
currentIndex: s,
|
|
15
|
+
onSelect: a,
|
|
16
|
+
keyMoments: n = [],
|
|
17
|
+
formatStep: p = (c) => `#${String(c + 1)}`,
|
|
18
|
+
tickEvery: k,
|
|
19
|
+
className: b
|
|
20
|
+
}) {
|
|
21
|
+
const c = B(), u = j(null), r = o.length, d = k ?? Math.max(1, Math.ceil(r / 20) * 5), M = $(r, d), _ = new Map(n.map((e, t) => [e, t + 1])), [N, g] = R(0), y = Math.min(s ?? N, Math.max(r - 1, 0)), w = (e) => {
|
|
22
|
+
if (!a || r === 0)
|
|
23
|
+
return;
|
|
24
|
+
const t = {
|
|
25
|
+
ArrowLeft: y - 1,
|
|
26
|
+
ArrowRight: y + 1,
|
|
27
|
+
Home: 0,
|
|
28
|
+
End: r - 1
|
|
29
|
+
};
|
|
30
|
+
if (!(e.key in t))
|
|
31
|
+
return;
|
|
32
|
+
e.preventDefault();
|
|
33
|
+
const i = Math.min(Math.max(t[e.key], 0), r - 1);
|
|
34
|
+
g(i), a(i), u.current?.querySelectorAll(".aegis-replay-step-strip__step").item(i).focus();
|
|
35
|
+
}, v = {
|
|
36
|
+
"--aegis-replay-step-strip-count": Math.max(r, 1)
|
|
37
|
+
};
|
|
38
|
+
return /* @__PURE__ */ S(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: ["aegis-replay-step-strip", b ?? ""].filter(Boolean).join(" "),
|
|
42
|
+
style: v,
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ l("div", { className: "aegis-replay-step-strip__moments", "aria-hidden": "true", children: o.map((e, t) => {
|
|
45
|
+
const i = _.get(t);
|
|
46
|
+
return i === void 0 ? /* @__PURE__ */ l("span", {}, e.key) : /* @__PURE__ */ l(
|
|
47
|
+
"span",
|
|
48
|
+
{
|
|
49
|
+
className: [
|
|
50
|
+
"aegis-replay-step-strip__moment",
|
|
51
|
+
t === s ? "aegis-replay-step-strip__moment--current" : ""
|
|
52
|
+
].filter(Boolean).join(" "),
|
|
53
|
+
children: i
|
|
54
|
+
},
|
|
55
|
+
e.key
|
|
56
|
+
);
|
|
57
|
+
}) }),
|
|
58
|
+
/* @__PURE__ */ l(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
ref: u,
|
|
62
|
+
className: "aegis-replay-step-strip__bars",
|
|
63
|
+
role: a ? "toolbar" : "list",
|
|
64
|
+
"aria-label": c.replaySteps,
|
|
65
|
+
onKeyDown: w,
|
|
66
|
+
children: o.map((e, t) => {
|
|
67
|
+
const i = _.get(t), m = i === void 0 ? e.label : `${e.label} · ${c.replayKeyMoment(i)}`, h = {
|
|
68
|
+
"--aegis-replay-step-strip-color": A(e.color)
|
|
69
|
+
}, f = [
|
|
70
|
+
"aegis-replay-step-strip__step",
|
|
71
|
+
e.emphasis ? "aegis-replay-step-strip__step--emphasis" : "",
|
|
72
|
+
t === s ? "aegis-replay-step-strip__step--current" : ""
|
|
73
|
+
].filter(Boolean).join(" ");
|
|
74
|
+
return a ? /* @__PURE__ */ l(
|
|
75
|
+
"button",
|
|
76
|
+
{
|
|
77
|
+
type: "button",
|
|
78
|
+
className: f,
|
|
79
|
+
style: h,
|
|
80
|
+
title: m,
|
|
81
|
+
"aria-label": m,
|
|
82
|
+
"aria-current": t === s ? "step" : void 0,
|
|
83
|
+
tabIndex: t === y ? 0 : -1,
|
|
84
|
+
onClick: () => {
|
|
85
|
+
g(t), a(t);
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
e.key
|
|
89
|
+
) : /* @__PURE__ */ l(
|
|
90
|
+
"span",
|
|
91
|
+
{
|
|
92
|
+
role: "listitem",
|
|
93
|
+
className: f,
|
|
94
|
+
style: h,
|
|
95
|
+
title: m,
|
|
96
|
+
"aria-label": m,
|
|
97
|
+
"aria-current": t === s ? "step" : void 0
|
|
98
|
+
},
|
|
99
|
+
e.key
|
|
100
|
+
);
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ l("div", { className: "aegis-replay-step-strip__ticks", "aria-hidden": "true", children: o.map((e, t) => /* @__PURE__ */ l(
|
|
105
|
+
"span",
|
|
106
|
+
{
|
|
107
|
+
className: t === r - 1 && r > 1 ? "aegis-replay-step-strip__tick aegis-replay-step-strip__tick--last" : "aegis-replay-step-strip__tick",
|
|
108
|
+
children: M.has(t) ? p(t) : null
|
|
109
|
+
},
|
|
110
|
+
e.key
|
|
111
|
+
)) })
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
export {
|
|
117
|
+
E as ReplayStepStrip
|
|
118
|
+
};
|
|
119
|
+
//# sourceMappingURL=ReplayStepStrip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReplayStepStrip.js","sources":["../../../src/components/ui/ReplayStepStrip.tsx"],"sourcesContent":["import {\n type CSSProperties,\n type KeyboardEvent,\n type ReactElement,\n type ReactNode,\n useRef,\n useState,\n} from 'react';\n\nimport { type ChartColor, chartColorValue } from '../../lib/chart';\nimport { useStrings } from '../../locale';\nimport './ReplayStepStrip.css';\n\nexport interface ReplayStepStripItem {\n key: string;\n /** The step kind's colour, e.g. thinking, tool call, failure. */\n color: ChartColor;\n /** Names the step for screen readers and its tooltip, e.g. \"#12 · 验证\". */\n label: string;\n /** A step that changes the course (a check, a failure, the goal): taller. */\n emphasis?: boolean;\n}\n\nexport interface ReplayStepStripProps {\n steps: ReplayStepStripItem[];\n /** The step shown elsewhere on the page; outlined. */\n currentIndex?: number;\n /** Makes each step a button that selects it. */\n onSelect?: (index: number) => void;\n /** Step indices of the key moments, numbered above the strip in order. */\n keyMoments?: number[];\n /** The tick label of a step under the strip. Defaults to `#n`. */\n formatStep?: (index: number) => ReactNode;\n /** A tick every this many steps; defaults to about five ticks. */\n tickEvery?: number;\n className?: string;\n}\n\n/**\n * The steps that get a tick: the first, the last, and every `every`\n * steps between, leaving out one that would crowd the last.\n */\nfunction tickedSteps(count: number, every: number): Set<number> {\n const last = count - 1;\n const ticks = new Set<number>(count > 0 ? [0, last] : []);\n for (let index = every - 1; index < last; index += every) {\n if (last - index >= every / 2) {\n ticks.add(index);\n }\n }\n return ticks;\n}\n\n/**\n * Every step of a run as a bar coloured by its kind, with the key\n * moments numbered above it and step ticks below. With `onSelect`, a bar\n * selects its step; arrow keys move between steps with one tab stop.\n * The gap between bars narrows as steps are added, so a long run still\n * draws every step.\n */\nexport function ReplayStepStrip({\n steps,\n currentIndex,\n onSelect,\n keyMoments = [],\n formatStep = (index) => `#${String(index + 1)}`,\n tickEvery,\n className,\n}: ReplayStepStripProps): ReactElement {\n const strings = useStrings();\n const barsRef = useRef<HTMLDivElement>(null);\n const count = steps.length;\n const every = tickEvery ?? Math.max(1, Math.ceil(count / 20) * 5);\n const ticks = tickedSteps(count, every);\n const momentNumber = new Map(keyMoments.map((step, n) => [step, n + 1]));\n\n // The roving tab stop follows the current step, or the last step the\n // keyboard reached when the host does not mark one.\n const [ownFocus, setOwnFocus] = useState(0);\n const focusIndex = Math.min(currentIndex ?? ownFocus, Math.max(count - 1, 0));\n\n const onKeyDown = (event: KeyboardEvent<HTMLDivElement>): void => {\n if (!onSelect || count === 0) {\n return;\n }\n const target: Record<string, number> = {\n ArrowLeft: focusIndex - 1,\n ArrowRight: focusIndex + 1,\n Home: 0,\n End: count - 1,\n };\n if (!(event.key in target)) {\n return;\n }\n event.preventDefault();\n const next = Math.min(Math.max(target[event.key], 0), count - 1);\n setOwnFocus(next);\n onSelect(next);\n barsRef.current\n ?.querySelectorAll<HTMLButtonElement>('.aegis-replay-step-strip__step')\n .item(next)\n .focus();\n };\n\n const style = {\n '--aegis-replay-step-strip-count': Math.max(count, 1),\n } as CSSProperties;\n return (\n <div\n className={['aegis-replay-step-strip', className ?? '']\n .filter(Boolean)\n .join(' ')}\n style={style}\n >\n <div className=\"aegis-replay-step-strip__moments\" aria-hidden=\"true\">\n {steps.map((step, index) => {\n const n = momentNumber.get(index);\n return n === undefined ? (\n <span key={step.key} />\n ) : (\n <span\n key={step.key}\n className={[\n 'aegis-replay-step-strip__moment',\n index === currentIndex\n ? 'aegis-replay-step-strip__moment--current'\n : '',\n ]\n .filter(Boolean)\n .join(' ')}\n >\n {n}\n </span>\n );\n })}\n </div>\n <div\n ref={barsRef}\n className=\"aegis-replay-step-strip__bars\"\n role={onSelect ? 'toolbar' : 'list'}\n aria-label={strings.replaySteps}\n onKeyDown={onKeyDown}\n >\n {steps.map((step, index) => {\n const n = momentNumber.get(index);\n const label =\n n === undefined\n ? step.label\n : `${step.label} · ${strings.replayKeyMoment(n)}`;\n const barStyle = {\n '--aegis-replay-step-strip-color': chartColorValue(step.color),\n } as CSSProperties;\n const cls = [\n 'aegis-replay-step-strip__step',\n step.emphasis ? 'aegis-replay-step-strip__step--emphasis' : '',\n index === currentIndex\n ? 'aegis-replay-step-strip__step--current'\n : '',\n ]\n .filter(Boolean)\n .join(' ');\n return onSelect ? (\n <button\n key={step.key}\n type=\"button\"\n className={cls}\n style={barStyle}\n title={label}\n aria-label={label}\n aria-current={index === currentIndex ? 'step' : undefined}\n tabIndex={index === focusIndex ? 0 : -1}\n onClick={() => {\n setOwnFocus(index);\n onSelect(index);\n }}\n />\n ) : (\n <span\n key={step.key}\n role=\"listitem\"\n className={cls}\n style={barStyle}\n title={label}\n aria-label={label}\n aria-current={index === currentIndex ? 'step' : undefined}\n />\n );\n })}\n </div>\n <div className=\"aegis-replay-step-strip__ticks\" aria-hidden=\"true\">\n {steps.map((step, index) => (\n <span\n key={step.key}\n className={\n index === count - 1 && count > 1\n ? 'aegis-replay-step-strip__tick aegis-replay-step-strip__tick--last'\n : 'aegis-replay-step-strip__tick'\n }\n >\n {ticks.has(index) ? formatStep(index) : null}\n </span>\n ))}\n </div>\n </div>\n );\n}\n"],"names":["tickedSteps","count","every","last","ticks","index","ReplayStepStrip","steps","currentIndex","onSelect","keyMoments","formatStep","tickEvery","className","strings","useStrings","barsRef","useRef","momentNumber","step","n","ownFocus","setOwnFocus","useState","focusIndex","onKeyDown","event","target","next","style","jsxs","jsx","label","barStyle","chartColorValue","cls"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("@ant-design/icons");;/* empty css */const f=require("../../locale/useStrings.cjs");function S({playing:l,onPlayToggle:g,onPrevious:_,onNext:x,canPrevious:d=!0,canNext:u=!0,position:c,speed:i,speeds:e,onSpeedChange:s,extra:p,className:h}){const a=f.useStrings(),o=i!==void 0&&e!==void 0&&s!==void 0,j=t=>{if(!o)return;const y={ArrowLeft:-1,ArrowUp:-1,ArrowRight:1,ArrowDown:1}[t.key];if(y===void 0)return;t.preventDefault();const m=e.indexOf(i),b=e[(m+y+e.length)%e.length];s(b),t.currentTarget.parentElement?.querySelectorAll('[role="radio"]').item(e.indexOf(b)).focus()};return r.jsxs("div",{className:["aegis-replay-transport",h??""].filter(Boolean).join(" "),children:[r.jsxs("div",{className:"aegis-replay-transport__buttons",children:[r.jsx("button",{type:"button",className:"aegis-replay-transport__button","aria-label":a.replayPreviousStep,"aria-disabled":!d,onClick:d?_:void 0,children:r.jsx(n.StepBackwardOutlined,{"aria-hidden":!0})}),r.jsx("button",{type:"button",className:"aegis-replay-transport__button aegis-replay-transport__button--play","aria-label":l?a.replayPause:a.replayPlay,onClick:g,children:l?r.jsx(n.PauseOutlined,{"aria-hidden":!0}):r.jsx(n.CaretRightOutlined,{"aria-hidden":!0})}),r.jsx("button",{type:"button",className:"aegis-replay-transport__button","aria-label":a.replayNextStep,"aria-disabled":!u,onClick:u?x:void 0,children:r.jsx(n.StepForwardOutlined,{"aria-hidden":!0})}),c!==void 0&&r.jsx("span",{className:"aegis-replay-transport__position",children:c})]}),(o||p!==void 0)&&r.jsxs("div",{className:"aegis-replay-transport__end",children:[o&&r.jsx("div",{className:"aegis-replay-transport__speeds",role:"radiogroup","aria-label":a.replaySpeed,children:e.map(t=>r.jsx("button",{type:"button",role:"radio","aria-checked":t===i,tabIndex:t===i?0:-1,onKeyDown:j,className:"aegis-replay-transport__speed",onClick:()=>{s(t)},children:`${String(t)}×`},t))}),p]})]})}exports.ReplayTransport=S;
|
|
2
|
+
//# sourceMappingURL=ReplayTransport.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReplayTransport.cjs","sources":["../../../src/components/ui/ReplayTransport.tsx"],"sourcesContent":["import type { KeyboardEvent, ReactElement, ReactNode } from 'react';\n\nimport {\n CaretRightOutlined,\n PauseOutlined,\n StepBackwardOutlined,\n StepForwardOutlined,\n} from '@ant-design/icons';\n\nimport { useStrings } from '../../locale';\nimport './ReplayTransport.css';\n\nexport interface ReplayTransportProps {\n playing: boolean;\n onPlayToggle: () => void;\n onPrevious: () => void;\n onNext: () => void;\n /** False at the first step. Defaults to true. */\n canPrevious?: boolean;\n /** False at the last step. Defaults to true. */\n canNext?: boolean;\n /** Where the replay is, e.g. `T42 / 80 · 06:12`. */\n position?: ReactNode;\n /** The current speed; with `speeds` and `onSpeedChange`, a speed switch. */\n speed?: number;\n speeds?: number[];\n onSpeedChange?: (speed: number) => void;\n /** Further controls at the end, e.g. a switch between players' views. */\n extra?: ReactNode;\n className?: string;\n}\n\n/**\n * The replay's controls: step back, play or pause, step forward, where\n * the replay is, and optionally its speed and further controls.\n */\nexport function ReplayTransport({\n playing,\n onPlayToggle,\n onPrevious,\n onNext,\n canPrevious = true,\n canNext = true,\n position,\n speed,\n speeds,\n onSpeedChange,\n extra,\n className,\n}: ReplayTransportProps): ReactElement {\n const strings = useStrings();\n const speedTabs =\n speed !== undefined && speeds !== undefined && onSpeedChange !== undefined;\n // Arrow keys move the choice within the group, which is one tab stop.\n const onSpeedKeyDown = (event: KeyboardEvent<HTMLButtonElement>): void => {\n if (!speedTabs) {\n return;\n }\n const step = { ArrowLeft: -1, ArrowUp: -1, ArrowRight: 1, ArrowDown: 1 }[\n event.key\n ];\n if (step === undefined) {\n return;\n }\n event.preventDefault();\n const at = speeds.indexOf(speed);\n const next = speeds[(at + step + speeds.length) % speeds.length];\n onSpeedChange(next);\n event.currentTarget.parentElement\n ?.querySelectorAll<HTMLButtonElement>('[role=\"radio\"]')\n .item(speeds.indexOf(next))\n .focus();\n };\n return (\n <div\n className={['aegis-replay-transport', className ?? '']\n .filter(Boolean)\n .join(' ')}\n >\n <div className=\"aegis-replay-transport__buttons\">\n {/* aria-disabled rather than disabled keeps focus on the button\n * when stepping reaches an end. */}\n <button\n type=\"button\"\n className=\"aegis-replay-transport__button\"\n aria-label={strings.replayPreviousStep}\n aria-disabled={!canPrevious}\n onClick={canPrevious ? onPrevious : undefined}\n >\n <StepBackwardOutlined aria-hidden />\n </button>\n <button\n type=\"button\"\n className=\"aegis-replay-transport__button aegis-replay-transport__button--play\"\n aria-label={playing ? strings.replayPause : strings.replayPlay}\n onClick={onPlayToggle}\n >\n {playing ? (\n <PauseOutlined aria-hidden />\n ) : (\n <CaretRightOutlined aria-hidden />\n )}\n </button>\n <button\n type=\"button\"\n className=\"aegis-replay-transport__button\"\n aria-label={strings.replayNextStep}\n aria-disabled={!canNext}\n onClick={canNext ? onNext : undefined}\n >\n <StepForwardOutlined aria-hidden />\n </button>\n {position !== undefined && (\n <span className=\"aegis-replay-transport__position\">{position}</span>\n )}\n </div>\n {(speedTabs || extra !== undefined) && (\n <div className=\"aegis-replay-transport__end\">\n {speedTabs && (\n <div\n className=\"aegis-replay-transport__speeds\"\n role=\"radiogroup\"\n aria-label={strings.replaySpeed}\n >\n {speeds.map((value) => (\n <button\n key={value}\n type=\"button\"\n role=\"radio\"\n aria-checked={value === speed}\n tabIndex={value === speed ? 0 : -1}\n onKeyDown={onSpeedKeyDown}\n className=\"aegis-replay-transport__speed\"\n onClick={() => {\n onSpeedChange(value);\n }}\n >\n {`${String(value)}×`}\n </button>\n ))}\n </div>\n )}\n {extra}\n </div>\n )}\n </div>\n );\n}\n"],"names":["ReplayTransport","playing","onPlayToggle","onPrevious","onNext","canPrevious","canNext","position","speed","speeds","onSpeedChange","extra","className","strings","useStrings","speedTabs","onSpeedKeyDown","event","step","at","next","jsxs","jsx","StepBackwardOutlined","PauseOutlined","CaretRightOutlined","StepForwardOutlined","value"],"mappings":"wOAoCO,SAASA,EAAgB,CAC9B,QAAAC,EACA,aAAAC,EACA,WAAAC,EACA,OAAAC,EACA,YAAAC,EAAc,GACd,QAAAC,EAAU,GACV,SAAAC,EACA,MAAAC,EACA,OAAAC,EACA,cAAAC,EACA,MAAAC,EACA,UAAAC,CACF,EAAuC,CACrC,MAAMC,EAAUC,EAAAA,WAAA,EACVC,EACJP,IAAU,QAAaC,IAAW,QAAaC,IAAkB,OAE7DM,EAAkBC,GAAkD,CACxE,GAAI,CAACF,EACH,OAEF,MAAMG,EAAO,CAAE,UAAW,GAAI,QAAS,GAAI,WAAY,EAAG,UAAW,GACnED,EAAM,GACR,EACA,GAAIC,IAAS,OACX,OAEFD,EAAM,eAAA,EACN,MAAME,EAAKV,EAAO,QAAQD,CAAK,EACzBY,EAAOX,GAAQU,EAAKD,EAAOT,EAAO,QAAUA,EAAO,MAAM,EAC/DC,EAAcU,CAAI,EAClBH,EAAM,cAAc,eAChB,iBAAoC,gBAAgB,EACrD,KAAKR,EAAO,QAAQW,CAAI,CAAC,EACzB,MAAA,CACL,EACA,OACEC,EAAAA,KAAC,MAAA,CACC,UAAW,CAAC,yBAA0BT,GAAa,EAAE,EAClD,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,SAAA,CAAAS,EAAAA,KAAC,MAAA,CAAI,UAAU,kCAGb,SAAA,CAAAC,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAU,iCACV,aAAYT,EAAQ,mBACpB,gBAAe,CAACR,EAChB,QAASA,EAAcF,EAAa,OAEpC,SAAAmB,EAAAA,IAACC,EAAAA,qBAAA,CAAqB,cAAW,EAAA,CAAC,CAAA,CAAA,EAEpCD,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAU,sEACV,aAAYrB,EAAUY,EAAQ,YAAcA,EAAQ,WACpD,QAASX,EAER,SAAAD,QACEuB,EAAAA,cAAA,CAAc,cAAW,GAAC,EAE3BF,EAAAA,IAACG,EAAAA,mBAAA,CAAmB,cAAW,EAAA,CAAC,CAAA,CAAA,EAGpCH,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAU,iCACV,aAAYT,EAAQ,eACpB,gBAAe,CAACP,EAChB,QAASA,EAAUF,EAAS,OAE5B,SAAAkB,EAAAA,IAACI,EAAAA,oBAAA,CAAoB,cAAW,EAAA,CAAC,CAAA,CAAA,EAElCnB,IAAa,QACZe,EAAAA,IAAC,OAAA,CAAK,UAAU,mCAAoC,SAAAf,CAAA,CAAS,CAAA,EAEjE,GACEQ,GAAaJ,IAAU,SACvBU,EAAAA,KAAC,MAAA,CAAI,UAAU,8BACZ,SAAA,CAAAN,GACCO,EAAAA,IAAC,MAAA,CACC,UAAU,iCACV,KAAK,aACL,aAAYT,EAAQ,YAEnB,SAAAJ,EAAO,IAAKkB,GACXL,EAAAA,IAAC,SAAA,CAEC,KAAK,SACL,KAAK,QACL,eAAcK,IAAUnB,EACxB,SAAUmB,IAAUnB,EAAQ,EAAI,GAChC,UAAWQ,EACX,UAAU,gCACV,QAAS,IAAM,CACbN,EAAciB,CAAK,CACrB,EAEC,SAAA,GAAG,OAAOA,CAAK,CAAC,GAAA,EAXZA,CAAA,CAaR,CAAA,CAAA,EAGJhB,CAAA,CAAA,CACH,CAAA,CAAA,CAAA,CAIR"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
export interface ReplayTransportProps {
|
|
3
|
+
playing: boolean;
|
|
4
|
+
onPlayToggle: () => void;
|
|
5
|
+
onPrevious: () => void;
|
|
6
|
+
onNext: () => void;
|
|
7
|
+
/** False at the first step. Defaults to true. */
|
|
8
|
+
canPrevious?: boolean;
|
|
9
|
+
/** False at the last step. Defaults to true. */
|
|
10
|
+
canNext?: boolean;
|
|
11
|
+
/** Where the replay is, e.g. `T42 / 80 · 06:12`. */
|
|
12
|
+
position?: ReactNode;
|
|
13
|
+
/** The current speed; with `speeds` and `onSpeedChange`, a speed switch. */
|
|
14
|
+
speed?: number;
|
|
15
|
+
speeds?: number[];
|
|
16
|
+
onSpeedChange?: (speed: number) => void;
|
|
17
|
+
/** Further controls at the end, e.g. a switch between players' views. */
|
|
18
|
+
extra?: ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The replay's controls: step back, play or pause, step forward, where
|
|
23
|
+
* the replay is, and optionally its speed and further controls.
|
|
24
|
+
*/
|
|
25
|
+
export declare function ReplayTransport({ playing, onPlayToggle, onPrevious, onNext, canPrevious, canNext, position, speed, speeds, onSpeedChange, extra, className, }: ReplayTransportProps): ReactElement;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { StepBackwardOutlined as N, PauseOutlined as k, CaretRightOutlined as v, StepForwardOutlined as S } from "@ant-design/icons";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { useStrings as x } from "../../locale/useStrings.js";
|
|
5
|
+
function C({
|
|
6
|
+
playing: s,
|
|
7
|
+
onPlayToggle: m,
|
|
8
|
+
onPrevious: _,
|
|
9
|
+
onNext: g,
|
|
10
|
+
canPrevious: d = !0,
|
|
11
|
+
canNext: p = !0,
|
|
12
|
+
position: c,
|
|
13
|
+
speed: i,
|
|
14
|
+
speeds: a,
|
|
15
|
+
onSpeedChange: o,
|
|
16
|
+
extra: u,
|
|
17
|
+
className: h
|
|
18
|
+
}) {
|
|
19
|
+
const e = x(), n = i !== void 0 && a !== void 0 && o !== void 0, f = (t) => {
|
|
20
|
+
if (!n)
|
|
21
|
+
return;
|
|
22
|
+
const y = { ArrowLeft: -1, ArrowUp: -1, ArrowRight: 1, ArrowDown: 1 }[t.key];
|
|
23
|
+
if (y === void 0)
|
|
24
|
+
return;
|
|
25
|
+
t.preventDefault();
|
|
26
|
+
const w = a.indexOf(i), b = a[(w + y + a.length) % a.length];
|
|
27
|
+
o(b), t.currentTarget.parentElement?.querySelectorAll('[role="radio"]').item(a.indexOf(b)).focus();
|
|
28
|
+
};
|
|
29
|
+
return /* @__PURE__ */ l(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: ["aegis-replay-transport", h ?? ""].filter(Boolean).join(" "),
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ l("div", { className: "aegis-replay-transport__buttons", children: [
|
|
35
|
+
/* @__PURE__ */ r(
|
|
36
|
+
"button",
|
|
37
|
+
{
|
|
38
|
+
type: "button",
|
|
39
|
+
className: "aegis-replay-transport__button",
|
|
40
|
+
"aria-label": e.replayPreviousStep,
|
|
41
|
+
"aria-disabled": !d,
|
|
42
|
+
onClick: d ? _ : void 0,
|
|
43
|
+
children: /* @__PURE__ */ r(N, { "aria-hidden": !0 })
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ r(
|
|
47
|
+
"button",
|
|
48
|
+
{
|
|
49
|
+
type: "button",
|
|
50
|
+
className: "aegis-replay-transport__button aegis-replay-transport__button--play",
|
|
51
|
+
"aria-label": s ? e.replayPause : e.replayPlay,
|
|
52
|
+
onClick: m,
|
|
53
|
+
children: s ? /* @__PURE__ */ r(k, { "aria-hidden": !0 }) : /* @__PURE__ */ r(v, { "aria-hidden": !0 })
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ r(
|
|
57
|
+
"button",
|
|
58
|
+
{
|
|
59
|
+
type: "button",
|
|
60
|
+
className: "aegis-replay-transport__button",
|
|
61
|
+
"aria-label": e.replayNextStep,
|
|
62
|
+
"aria-disabled": !p,
|
|
63
|
+
onClick: p ? g : void 0,
|
|
64
|
+
children: /* @__PURE__ */ r(S, { "aria-hidden": !0 })
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
c !== void 0 && /* @__PURE__ */ r("span", { className: "aegis-replay-transport__position", children: c })
|
|
68
|
+
] }),
|
|
69
|
+
(n || u !== void 0) && /* @__PURE__ */ l("div", { className: "aegis-replay-transport__end", children: [
|
|
70
|
+
n && /* @__PURE__ */ r(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
className: "aegis-replay-transport__speeds",
|
|
74
|
+
role: "radiogroup",
|
|
75
|
+
"aria-label": e.replaySpeed,
|
|
76
|
+
children: a.map((t) => /* @__PURE__ */ r(
|
|
77
|
+
"button",
|
|
78
|
+
{
|
|
79
|
+
type: "button",
|
|
80
|
+
role: "radio",
|
|
81
|
+
"aria-checked": t === i,
|
|
82
|
+
tabIndex: t === i ? 0 : -1,
|
|
83
|
+
onKeyDown: f,
|
|
84
|
+
className: "aegis-replay-transport__speed",
|
|
85
|
+
onClick: () => {
|
|
86
|
+
o(t);
|
|
87
|
+
},
|
|
88
|
+
children: `${String(t)}×`
|
|
89
|
+
},
|
|
90
|
+
t
|
|
91
|
+
))
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
u
|
|
95
|
+
] })
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
export {
|
|
101
|
+
C as ReplayTransport
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=ReplayTransport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReplayTransport.js","sources":["../../../src/components/ui/ReplayTransport.tsx"],"sourcesContent":["import type { KeyboardEvent, ReactElement, ReactNode } from 'react';\n\nimport {\n CaretRightOutlined,\n PauseOutlined,\n StepBackwardOutlined,\n StepForwardOutlined,\n} from '@ant-design/icons';\n\nimport { useStrings } from '../../locale';\nimport './ReplayTransport.css';\n\nexport interface ReplayTransportProps {\n playing: boolean;\n onPlayToggle: () => void;\n onPrevious: () => void;\n onNext: () => void;\n /** False at the first step. Defaults to true. */\n canPrevious?: boolean;\n /** False at the last step. Defaults to true. */\n canNext?: boolean;\n /** Where the replay is, e.g. `T42 / 80 · 06:12`. */\n position?: ReactNode;\n /** The current speed; with `speeds` and `onSpeedChange`, a speed switch. */\n speed?: number;\n speeds?: number[];\n onSpeedChange?: (speed: number) => void;\n /** Further controls at the end, e.g. a switch between players' views. */\n extra?: ReactNode;\n className?: string;\n}\n\n/**\n * The replay's controls: step back, play or pause, step forward, where\n * the replay is, and optionally its speed and further controls.\n */\nexport function ReplayTransport({\n playing,\n onPlayToggle,\n onPrevious,\n onNext,\n canPrevious = true,\n canNext = true,\n position,\n speed,\n speeds,\n onSpeedChange,\n extra,\n className,\n}: ReplayTransportProps): ReactElement {\n const strings = useStrings();\n const speedTabs =\n speed !== undefined && speeds !== undefined && onSpeedChange !== undefined;\n // Arrow keys move the choice within the group, which is one tab stop.\n const onSpeedKeyDown = (event: KeyboardEvent<HTMLButtonElement>): void => {\n if (!speedTabs) {\n return;\n }\n const step = { ArrowLeft: -1, ArrowUp: -1, ArrowRight: 1, ArrowDown: 1 }[\n event.key\n ];\n if (step === undefined) {\n return;\n }\n event.preventDefault();\n const at = speeds.indexOf(speed);\n const next = speeds[(at + step + speeds.length) % speeds.length];\n onSpeedChange(next);\n event.currentTarget.parentElement\n ?.querySelectorAll<HTMLButtonElement>('[role=\"radio\"]')\n .item(speeds.indexOf(next))\n .focus();\n };\n return (\n <div\n className={['aegis-replay-transport', className ?? '']\n .filter(Boolean)\n .join(' ')}\n >\n <div className=\"aegis-replay-transport__buttons\">\n {/* aria-disabled rather than disabled keeps focus on the button\n * when stepping reaches an end. */}\n <button\n type=\"button\"\n className=\"aegis-replay-transport__button\"\n aria-label={strings.replayPreviousStep}\n aria-disabled={!canPrevious}\n onClick={canPrevious ? onPrevious : undefined}\n >\n <StepBackwardOutlined aria-hidden />\n </button>\n <button\n type=\"button\"\n className=\"aegis-replay-transport__button aegis-replay-transport__button--play\"\n aria-label={playing ? strings.replayPause : strings.replayPlay}\n onClick={onPlayToggle}\n >\n {playing ? (\n <PauseOutlined aria-hidden />\n ) : (\n <CaretRightOutlined aria-hidden />\n )}\n </button>\n <button\n type=\"button\"\n className=\"aegis-replay-transport__button\"\n aria-label={strings.replayNextStep}\n aria-disabled={!canNext}\n onClick={canNext ? onNext : undefined}\n >\n <StepForwardOutlined aria-hidden />\n </button>\n {position !== undefined && (\n <span className=\"aegis-replay-transport__position\">{position}</span>\n )}\n </div>\n {(speedTabs || extra !== undefined) && (\n <div className=\"aegis-replay-transport__end\">\n {speedTabs && (\n <div\n className=\"aegis-replay-transport__speeds\"\n role=\"radiogroup\"\n aria-label={strings.replaySpeed}\n >\n {speeds.map((value) => (\n <button\n key={value}\n type=\"button\"\n role=\"radio\"\n aria-checked={value === speed}\n tabIndex={value === speed ? 0 : -1}\n onKeyDown={onSpeedKeyDown}\n className=\"aegis-replay-transport__speed\"\n onClick={() => {\n onSpeedChange(value);\n }}\n >\n {`${String(value)}×`}\n </button>\n ))}\n </div>\n )}\n {extra}\n </div>\n )}\n </div>\n );\n}\n"],"names":["ReplayTransport","playing","onPlayToggle","onPrevious","onNext","canPrevious","canNext","position","speed","speeds","onSpeedChange","extra","className","strings","useStrings","speedTabs","onSpeedKeyDown","event","step","at","next","jsxs","jsx","StepBackwardOutlined","PauseOutlined","CaretRightOutlined","StepForwardOutlined","value"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),b=require("@ant-design/icons"),_=require("../../hooks/useResizable.cjs");;/* empty css */function O({children:d,side:l,defaultWidth:p=320,minWidth:g=200,maxWidth:f=800,persistKey:z,keyboardStep:h,constrainWidth:j,resetOnDoubleClick:x=!1,collapsible:t=!1,collapsed:s,onCollapsedChange:o,stackOnMobile:m=!1,className:C}){const[R,S]=n.useState(!1),r=s??R,i=n.useCallback(a=>{s===void 0&&S(a),o?.(a)},[s,o]),k=n.useCallback(()=>{t&&i(!0)},[t,i]),{width:q,handleProps:v,isDragging:y,reset:N}=_.useResizable({initialWidth:p,minWidth:g,maxWidth:f,side:l,persistKey:z,onCollapse:k,keyboardStep:h,constrainWidth:j}),c=["aegis-resizable-panel",`aegis-resizable-panel--${l}`,y?"aegis-resizable-panel--dragging":"",r?"aegis-resizable-panel--collapsed":"",m?"aegis-resizable-panel--stack-on-mobile":"",C??""].filter(Boolean).join(" ");if(r){const a=()=>{i(!1)};return e.jsx("button",{type:"button",className:c,onClick:a,"aria-label":"Expand panel",children:e.jsx("span",{className:"aegis-resizable-panel__collapse-icon",children:l==="left"?e.jsx(b.DoubleRightOutlined,{}):e.jsx(b.DoubleLeftOutlined,{})})})}const u=e.jsx("div",{...v,className:"aegis-resizable-handle","aria-label":"Resize panel",onDoubleClick:x?N:void 0}),D={"--aegis-resizable-panel-width":`${String(q)}px`};return e.jsxs("aside",{className:c,style:D,children:[l==="left"?null:u,e.jsx("div",{className:"aegis-resizable-panel__body",children:d}),l==="left"?u:null]})}exports.ResizableSidePanel=O;
|
|
2
|
+
//# sourceMappingURL=ResizableSidePanel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizableSidePanel.cjs","sources":["../../../src/components/ui/ResizableSidePanel.tsx"],"sourcesContent":["import {\n type CSSProperties,\n type ReactNode,\n useCallback,\n useState,\n} from 'react';\n\nimport { DoubleLeftOutlined, DoubleRightOutlined } from '@ant-design/icons';\n\nimport { useResizable } from '../../hooks/useResizable';\nimport './ResizableSidePanel.css';\n\nexport interface ResizableSidePanelProps {\n children: ReactNode;\n /** Which edge of the parent the panel attaches to. */\n side: 'left' | 'right';\n /** Initial width in px. */\n defaultWidth?: number;\n minWidth?: number;\n maxWidth?: number;\n /** localStorage key to persist width across reloads. */\n persistKey?: string;\n /** Width change per arrow-key press on the handle, in px. */\n keyboardStep?: number;\n /**\n * Narrows a proposed width after the min/max clamp, e.g. to keep the\n * neighbouring content above its own minimum width.\n */\n constrainWidth?: (width: number) => number;\n /** Double-clicking the handle restores `defaultWidth`. */\n resetOnDoubleClick?: boolean;\n /** Whether the panel can be fully collapsed (rendered as a thin handle bar). */\n collapsible?: boolean;\n /** Controlled collapsed state. If omitted, internal state is used. */\n collapsed?: boolean;\n onCollapsedChange?: (collapsed: boolean) => void;\n /**\n * At ≤768 px, fill the parent's width with a bounded height and hide the\n * resize handle — for layouts that stack the panel above or below its\n * neighbour on narrow screens. The parent still owns the stacking\n * (e.g. `flex-direction: column`).\n */\n stackOnMobile?: boolean;\n /** Optional className appended to the root. */\n className?: string;\n}\n\nexport function ResizableSidePanel({\n children,\n side,\n defaultWidth = 320,\n minWidth = 200,\n maxWidth = 800,\n persistKey,\n keyboardStep,\n constrainWidth,\n resetOnDoubleClick = false,\n collapsible = false,\n collapsed: collapsedProp,\n onCollapsedChange,\n stackOnMobile = false,\n className,\n}: ResizableSidePanelProps) {\n const [internalCollapsed, setInternalCollapsed] = useState(false);\n const collapsed = collapsedProp ?? internalCollapsed;\n\n const setCollapsed = useCallback(\n (next: boolean) => {\n if (collapsedProp === undefined) {\n setInternalCollapsed(next);\n }\n onCollapsedChange?.(next);\n },\n [collapsedProp, onCollapsedChange],\n );\n\n const handleCollapse = useCallback(() => {\n if (collapsible) {\n setCollapsed(true);\n }\n }, [collapsible, setCollapsed]);\n\n const { width, handleProps, isDragging, reset } = useResizable({\n initialWidth: defaultWidth,\n minWidth,\n maxWidth,\n side,\n persistKey,\n onCollapse: handleCollapse,\n keyboardStep,\n constrainWidth,\n });\n\n const rootClass = [\n 'aegis-resizable-panel',\n `aegis-resizable-panel--${side}`,\n isDragging ? 'aegis-resizable-panel--dragging' : '',\n collapsed ? 'aegis-resizable-panel--collapsed' : '',\n stackOnMobile ? 'aegis-resizable-panel--stack-on-mobile' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n if (collapsed) {\n const expand = () => {\n setCollapsed(false);\n };\n return (\n <button\n type=\"button\"\n className={rootClass}\n onClick={expand}\n aria-label=\"Expand panel\"\n >\n <span className=\"aegis-resizable-panel__collapse-icon\">\n {side === 'left' ? <DoubleRightOutlined /> : <DoubleLeftOutlined />}\n </span>\n </button>\n );\n }\n\n const handle = (\n <div\n {...handleProps}\n className=\"aegis-resizable-handle\"\n aria-label=\"Resize panel\"\n onDoubleClick={resetOnDoubleClick ? reset : undefined}\n />\n );\n\n // A custom property rather than an inline width, so the stacked mobile\n // layout can override it from the stylesheet.\n const style = {\n '--aegis-resizable-panel-width': `${String(width)}px`,\n } as CSSProperties;\n\n return (\n <aside className={rootClass} style={style}>\n {side === 'left' ? null : handle}\n <div className=\"aegis-resizable-panel__body\">{children}</div>\n {side === 'left' ? handle : null}\n </aside>\n );\n}\n"],"names":["ResizableSidePanel","children","side","defaultWidth","minWidth","maxWidth","persistKey","keyboardStep","constrainWidth","resetOnDoubleClick","collapsible","collapsedProp","onCollapsedChange","stackOnMobile","className","internalCollapsed","setInternalCollapsed","useState","collapsed","setCollapsed","useCallback","next","handleCollapse","width","handleProps","isDragging","reset","useResizable","rootClass","expand","jsx","DoubleRightOutlined","DoubleLeftOutlined","handle","style","jsxs"],"mappings":"yPA+CO,SAASA,EAAmB,CACjC,SAAAC,EACA,KAAAC,EACA,aAAAC,EAAe,IACf,SAAAC,EAAW,IACX,SAAAC,EAAW,IACX,WAAAC,EACA,aAAAC,EACA,eAAAC,EACA,mBAAAC,EAAqB,GACrB,YAAAC,EAAc,GACd,UAAWC,EACX,kBAAAC,EACA,cAAAC,EAAgB,GAChB,UAAAC,CACF,EAA4B,CAC1B,KAAM,CAACC,EAAmBC,CAAoB,EAAIC,EAAAA,SAAS,EAAK,EAC1DC,EAAYP,GAAiBI,EAE7BI,EAAeC,EAAAA,YAClBC,GAAkB,CACbV,IAAkB,QACpBK,EAAqBK,CAAI,EAE3BT,IAAoBS,CAAI,CAC1B,EACA,CAACV,EAAeC,CAAiB,CAAA,EAG7BU,EAAiBF,EAAAA,YAAY,IAAM,CACnCV,GACFS,EAAa,EAAI,CAErB,EAAG,CAACT,EAAaS,CAAY,CAAC,EAExB,CAAE,MAAAI,EAAO,YAAAC,EAAa,WAAAC,EAAY,MAAAC,CAAA,EAAUC,EAAAA,aAAa,CAC7D,aAAcxB,EACd,SAAAC,EACA,SAAAC,EACA,KAAAH,EACA,WAAAI,EACA,WAAYgB,EACZ,aAAAf,EACA,eAAAC,CAAA,CACD,EAEKoB,EAAY,CAChB,wBACA,0BAA0B1B,CAAI,GAC9BuB,EAAa,kCAAoC,GACjDP,EAAY,mCAAqC,GACjDL,EAAgB,yCAA2C,GAC3DC,GAAa,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,GAAII,EAAW,CACb,MAAMW,EAAS,IAAM,CACnBV,EAAa,EAAK,CACpB,EACA,OACEW,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAWF,EACX,QAASC,EACT,aAAW,eAEX,SAAAC,EAAAA,IAAC,OAAA,CAAK,UAAU,uCACb,SAAA5B,IAAS,OAAS4B,EAAAA,IAACC,EAAAA,oBAAA,CAAA,CAAoB,EAAKD,EAAAA,IAACE,EAAAA,mBAAA,CAAA,CAAmB,CAAA,CACnE,CAAA,CAAA,CAGN,CAEA,MAAMC,EACJH,EAAAA,IAAC,MAAA,CACE,GAAGN,EACJ,UAAU,yBACV,aAAW,eACX,cAAef,EAAqBiB,EAAQ,MAAA,CAAA,EAM1CQ,EAAQ,CACZ,gCAAiC,GAAG,OAAOX,CAAK,CAAC,IAAA,EAGnD,OACEY,EAAAA,KAAC,QAAA,CAAM,UAAWP,EAAW,MAAAM,EAC1B,SAAA,CAAAhC,IAAS,OAAS,KAAO+B,EAC1BH,EAAAA,IAAC,MAAA,CAAI,UAAU,8BAA+B,SAAA7B,CAAA,CAAS,EACtDC,IAAS,OAAS+B,EAAS,IAAA,EAC9B,CAEJ"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx as e, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { useState as w, useCallback as c } from "react";
|
|
3
|
+
import { DoubleRightOutlined as O, DoubleLeftOutlined as $ } from "@ant-design/icons";
|
|
4
|
+
import { useResizable as B } from "../../hooks/useResizable.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
function A({
|
|
7
|
+
children: d,
|
|
8
|
+
side: a,
|
|
9
|
+
defaultWidth: b = 320,
|
|
10
|
+
minWidth: f = 200,
|
|
11
|
+
maxWidth: g = 800,
|
|
12
|
+
persistKey: u,
|
|
13
|
+
keyboardStep: m,
|
|
14
|
+
constrainWidth: z,
|
|
15
|
+
resetOnDoubleClick: h = !1,
|
|
16
|
+
collapsible: n = !1,
|
|
17
|
+
collapsed: l,
|
|
18
|
+
onCollapsedChange: t,
|
|
19
|
+
stackOnMobile: C = !1,
|
|
20
|
+
className: x
|
|
21
|
+
}) {
|
|
22
|
+
const [N, k] = w(!1), o = l ?? N, s = c(
|
|
23
|
+
(i) => {
|
|
24
|
+
l === void 0 && k(i), t?.(i);
|
|
25
|
+
},
|
|
26
|
+
[l, t]
|
|
27
|
+
), v = c(() => {
|
|
28
|
+
n && s(!0);
|
|
29
|
+
}, [n, s]), { width: D, handleProps: R, isDragging: _, reset: j } = B({
|
|
30
|
+
initialWidth: b,
|
|
31
|
+
minWidth: f,
|
|
32
|
+
maxWidth: g,
|
|
33
|
+
side: a,
|
|
34
|
+
persistKey: u,
|
|
35
|
+
onCollapse: v,
|
|
36
|
+
keyboardStep: m,
|
|
37
|
+
constrainWidth: z
|
|
38
|
+
}), r = [
|
|
39
|
+
"aegis-resizable-panel",
|
|
40
|
+
`aegis-resizable-panel--${a}`,
|
|
41
|
+
_ ? "aegis-resizable-panel--dragging" : "",
|
|
42
|
+
o ? "aegis-resizable-panel--collapsed" : "",
|
|
43
|
+
C ? "aegis-resizable-panel--stack-on-mobile" : "",
|
|
44
|
+
x ?? ""
|
|
45
|
+
].filter(Boolean).join(" ");
|
|
46
|
+
if (o)
|
|
47
|
+
return /* @__PURE__ */ e(
|
|
48
|
+
"button",
|
|
49
|
+
{
|
|
50
|
+
type: "button",
|
|
51
|
+
className: r,
|
|
52
|
+
onClick: () => {
|
|
53
|
+
s(!1);
|
|
54
|
+
},
|
|
55
|
+
"aria-label": "Expand panel",
|
|
56
|
+
children: /* @__PURE__ */ e("span", { className: "aegis-resizable-panel__collapse-icon", children: a === "left" ? /* @__PURE__ */ e(O, {}) : /* @__PURE__ */ e($, {}) })
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
const p = /* @__PURE__ */ e(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
...R,
|
|
63
|
+
className: "aegis-resizable-handle",
|
|
64
|
+
"aria-label": "Resize panel",
|
|
65
|
+
onDoubleClick: h ? j : void 0
|
|
66
|
+
}
|
|
67
|
+
), y = {
|
|
68
|
+
"--aegis-resizable-panel-width": `${String(D)}px`
|
|
69
|
+
};
|
|
70
|
+
return /* @__PURE__ */ S("aside", { className: r, style: y, children: [
|
|
71
|
+
a === "left" ? null : p,
|
|
72
|
+
/* @__PURE__ */ e("div", { className: "aegis-resizable-panel__body", children: d }),
|
|
73
|
+
a === "left" ? p : null
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
A as ResizableSidePanel
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=ResizableSidePanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizableSidePanel.js","sources":["../../../src/components/ui/ResizableSidePanel.tsx"],"sourcesContent":["import {\n type CSSProperties,\n type ReactNode,\n useCallback,\n useState,\n} from 'react';\n\nimport { DoubleLeftOutlined, DoubleRightOutlined } from '@ant-design/icons';\n\nimport { useResizable } from '../../hooks/useResizable';\nimport './ResizableSidePanel.css';\n\nexport interface ResizableSidePanelProps {\n children: ReactNode;\n /** Which edge of the parent the panel attaches to. */\n side: 'left' | 'right';\n /** Initial width in px. */\n defaultWidth?: number;\n minWidth?: number;\n maxWidth?: number;\n /** localStorage key to persist width across reloads. */\n persistKey?: string;\n /** Width change per arrow-key press on the handle, in px. */\n keyboardStep?: number;\n /**\n * Narrows a proposed width after the min/max clamp, e.g. to keep the\n * neighbouring content above its own minimum width.\n */\n constrainWidth?: (width: number) => number;\n /** Double-clicking the handle restores `defaultWidth`. */\n resetOnDoubleClick?: boolean;\n /** Whether the panel can be fully collapsed (rendered as a thin handle bar). */\n collapsible?: boolean;\n /** Controlled collapsed state. If omitted, internal state is used. */\n collapsed?: boolean;\n onCollapsedChange?: (collapsed: boolean) => void;\n /**\n * At ≤768 px, fill the parent's width with a bounded height and hide the\n * resize handle — for layouts that stack the panel above or below its\n * neighbour on narrow screens. The parent still owns the stacking\n * (e.g. `flex-direction: column`).\n */\n stackOnMobile?: boolean;\n /** Optional className appended to the root. */\n className?: string;\n}\n\nexport function ResizableSidePanel({\n children,\n side,\n defaultWidth = 320,\n minWidth = 200,\n maxWidth = 800,\n persistKey,\n keyboardStep,\n constrainWidth,\n resetOnDoubleClick = false,\n collapsible = false,\n collapsed: collapsedProp,\n onCollapsedChange,\n stackOnMobile = false,\n className,\n}: ResizableSidePanelProps) {\n const [internalCollapsed, setInternalCollapsed] = useState(false);\n const collapsed = collapsedProp ?? internalCollapsed;\n\n const setCollapsed = useCallback(\n (next: boolean) => {\n if (collapsedProp === undefined) {\n setInternalCollapsed(next);\n }\n onCollapsedChange?.(next);\n },\n [collapsedProp, onCollapsedChange],\n );\n\n const handleCollapse = useCallback(() => {\n if (collapsible) {\n setCollapsed(true);\n }\n }, [collapsible, setCollapsed]);\n\n const { width, handleProps, isDragging, reset } = useResizable({\n initialWidth: defaultWidth,\n minWidth,\n maxWidth,\n side,\n persistKey,\n onCollapse: handleCollapse,\n keyboardStep,\n constrainWidth,\n });\n\n const rootClass = [\n 'aegis-resizable-panel',\n `aegis-resizable-panel--${side}`,\n isDragging ? 'aegis-resizable-panel--dragging' : '',\n collapsed ? 'aegis-resizable-panel--collapsed' : '',\n stackOnMobile ? 'aegis-resizable-panel--stack-on-mobile' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n\n if (collapsed) {\n const expand = () => {\n setCollapsed(false);\n };\n return (\n <button\n type=\"button\"\n className={rootClass}\n onClick={expand}\n aria-label=\"Expand panel\"\n >\n <span className=\"aegis-resizable-panel__collapse-icon\">\n {side === 'left' ? <DoubleRightOutlined /> : <DoubleLeftOutlined />}\n </span>\n </button>\n );\n }\n\n const handle = (\n <div\n {...handleProps}\n className=\"aegis-resizable-handle\"\n aria-label=\"Resize panel\"\n onDoubleClick={resetOnDoubleClick ? reset : undefined}\n />\n );\n\n // A custom property rather than an inline width, so the stacked mobile\n // layout can override it from the stylesheet.\n const style = {\n '--aegis-resizable-panel-width': `${String(width)}px`,\n } as CSSProperties;\n\n return (\n <aside className={rootClass} style={style}>\n {side === 'left' ? null : handle}\n <div className=\"aegis-resizable-panel__body\">{children}</div>\n {side === 'left' ? handle : null}\n </aside>\n );\n}\n"],"names":["ResizableSidePanel","children","side","defaultWidth","minWidth","maxWidth","persistKey","keyboardStep","constrainWidth","resetOnDoubleClick","collapsible","collapsedProp","onCollapsedChange","stackOnMobile","className","internalCollapsed","setInternalCollapsed","useState","collapsed","setCollapsed","useCallback","next","handleCollapse","width","handleProps","isDragging","reset","useResizable","rootClass","jsx","DoubleRightOutlined","DoubleLeftOutlined","handle","style","jsxs"],"mappings":";;;;;AA+CO,SAASA,EAAmB;AAAA,EACjC,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,UAAAC,IAAW;AAAA,EACX,UAAAC,IAAW;AAAA,EACX,YAAAC;AAAA,EACA,cAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,oBAAAC,IAAqB;AAAA,EACrB,aAAAC,IAAc;AAAA,EACd,WAAWC;AAAA,EACX,mBAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,WAAAC;AACF,GAA4B;AAC1B,QAAM,CAACC,GAAmBC,CAAoB,IAAIC,EAAS,EAAK,GAC1DC,IAAYP,KAAiBI,GAE7BI,IAAeC;AAAA,IACnB,CAACC,MAAkB;AACjB,MAAIV,MAAkB,UACpBK,EAAqBK,CAAI,GAE3BT,IAAoBS,CAAI;AAAA,IAC1B;AAAA,IACA,CAACV,GAAeC,CAAiB;AAAA,EAAA,GAG7BU,IAAiBF,EAAY,MAAM;AACvC,IAAIV,KACFS,EAAa,EAAI;AAAA,EAErB,GAAG,CAACT,GAAaS,CAAY,CAAC,GAExB,EAAE,OAAAI,GAAO,aAAAC,GAAa,YAAAC,GAAY,OAAAC,EAAA,IAAUC,EAAa;AAAA,IAC7D,cAAcxB;AAAA,IACd,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAH;AAAA,IACA,YAAAI;AAAA,IACA,YAAYgB;AAAA,IACZ,cAAAf;AAAA,IACA,gBAAAC;AAAA,EAAA,CACD,GAEKoB,IAAY;AAAA,IAChB;AAAA,IACA,0BAA0B1B,CAAI;AAAA,IAC9BuB,IAAa,oCAAoC;AAAA,IACjDP,IAAY,qCAAqC;AAAA,IACjDL,IAAgB,2CAA2C;AAAA,IAC3DC,KAAa;AAAA,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,MAAII;AAIF,WACE,gBAAAW;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAWD;AAAA,QACX,SAPW,MAAM;AACnB,UAAAT,EAAa,EAAK;AAAA,QACpB;AAAA,QAMI,cAAW;AAAA,QAEX,UAAA,gBAAAU,EAAC,QAAA,EAAK,WAAU,wCACb,UAAA3B,MAAS,SAAS,gBAAA2B,EAACC,GAAA,CAAA,CAAoB,IAAK,gBAAAD,EAACE,GAAA,CAAA,CAAmB,EAAA,CACnE;AAAA,MAAA;AAAA,IAAA;AAKN,QAAMC,IACJ,gBAAAH;AAAA,IAAC;AAAA,IAAA;AAAA,MACE,GAAGL;AAAA,MACJ,WAAU;AAAA,MACV,cAAW;AAAA,MACX,eAAef,IAAqBiB,IAAQ;AAAA,IAAA;AAAA,EAAA,GAM1CO,IAAQ;AAAA,IACZ,iCAAiC,GAAG,OAAOV,CAAK,CAAC;AAAA,EAAA;AAGnD,SACE,gBAAAW,EAAC,SAAA,EAAM,WAAWN,GAAW,OAAAK,GAC1B,UAAA;AAAA,IAAA/B,MAAS,SAAS,OAAO8B;AAAA,IAC1B,gBAAAH,EAAC,OAAA,EAAI,WAAU,+BAA+B,UAAA5B,EAAA,CAAS;AAAA,IACtDC,MAAS,SAAS8B,IAAS;AAAA,EAAA,GAC9B;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react/jsx-runtime"),o=require("react"),d=require("../../hooks/useIsomorphicLayoutEffect.cjs");;/* empty css */function b({children:i,staggerIndex:c=0,className:u}){const t=o.useRef(null),[r,s]=o.useState("unobserved");d.useIsomorphicLayoutEffect(()=>{const n=t.current;if(!n||typeof IntersectionObserver>"u")return;s("waiting");const e=new IntersectionObserver(l=>{l.some(v=>v.isIntersecting)&&(e.disconnect(),s("entered"))});return e.observe(n),()=>{e.disconnect()}},[]);const a=["aegis-reveal",r==="unobserved"?"":`aegis-reveal--${r}`,u??""].filter(Boolean).join(" ");return f.jsx("div",{ref:t,className:a,style:{"--aegis-reveal-index":c},children:i})}exports.Reveal=b;
|
|
2
|
+
//# sourceMappingURL=Reveal.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reveal.cjs","sources":["../../../src/components/ui/Reveal.tsx"],"sourcesContent":["import { type CSSProperties, type ReactNode, useRef, useState } from 'react';\n\nimport { useIsomorphicLayoutEffect } from '../../hooks/useIsomorphicLayoutEffect';\nimport './Reveal.css';\n\ntype RevealState = 'unobserved' | 'waiting' | 'entered';\n\nexport interface RevealProps {\n children: ReactNode;\n /**\n * Position within a group that enters together: delays the entrance by\n * that many `--motion-reveal-stagger`s.\n */\n staggerIndex?: number;\n className?: string;\n}\n\n/**\n * Fades its content in and lifts it by `--motion-reveal-offset` the first\n * time it enters the viewport. Content is hidden only while an\n * IntersectionObserver is watching it, so it stays visible without one,\n * and under prefers-reduced-motion it appears without moving.\n */\nexport function Reveal({ children, staggerIndex = 0, className }: RevealProps) {\n const ref = useRef<HTMLDivElement>(null);\n const [state, setState] = useState<RevealState>('unobserved');\n\n useIsomorphicLayoutEffect(() => {\n const el = ref.current;\n if (!el || typeof IntersectionObserver === 'undefined') {\n return undefined;\n }\n setState('waiting');\n const observer = new IntersectionObserver((entries) => {\n if (entries.some((entry) => entry.isIntersecting)) {\n observer.disconnect();\n setState('entered');\n }\n });\n observer.observe(el);\n return () => {\n observer.disconnect();\n };\n }, []);\n\n const cls = [\n 'aegis-reveal',\n state === 'unobserved' ? '' : `aegis-reveal--${state}`,\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n return (\n <div\n ref={ref}\n className={cls}\n style={{ '--aegis-reveal-index': staggerIndex } as CSSProperties}\n >\n {children}\n </div>\n );\n}\n"],"names":["Reveal","children","staggerIndex","className","ref","useRef","state","setState","useState","useIsomorphicLayoutEffect","el","observer","entries","entry","cls","jsx"],"mappings":"2NAuBO,SAASA,EAAO,CAAE,SAAAC,EAAU,aAAAC,EAAe,EAAG,UAAAC,GAA0B,CAC7E,MAAMC,EAAMC,EAAAA,OAAuB,IAAI,EACjC,CAACC,EAAOC,CAAQ,EAAIC,EAAAA,SAAsB,YAAY,EAE5DC,EAAAA,0BAA0B,IAAM,CAC9B,MAAMC,EAAKN,EAAI,QACf,GAAI,CAACM,GAAM,OAAO,qBAAyB,IACzC,OAEFH,EAAS,SAAS,EAClB,MAAMI,EAAW,IAAI,qBAAsBC,GAAY,CACjDA,EAAQ,KAAMC,GAAUA,EAAM,cAAc,IAC9CF,EAAS,WAAA,EACTJ,EAAS,SAAS,EAEtB,CAAC,EACD,OAAAI,EAAS,QAAQD,CAAE,EACZ,IAAM,CACXC,EAAS,WAAA,CACX,CACF,EAAG,CAAA,CAAE,EAEL,MAAMG,EAAM,CACV,eACAR,IAAU,aAAe,GAAK,iBAAiBA,CAAK,GACpDH,GAAa,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG,EACX,OACEY,EAAAA,IAAC,MAAA,CACC,IAAAX,EACA,UAAWU,EACX,MAAO,CAAE,uBAAwBZ,CAAA,EAEhC,SAAAD,CAAA,CAAA,CAGP"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as v, useState as d } from "react";
|
|
3
|
+
import { useIsomorphicLayoutEffect as m } from "../../hooks/useIsomorphicLayoutEffect.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function x({ children: o, staggerIndex: i = 0, className: c }) {
|
|
6
|
+
const t = v(null), [r, n] = d("unobserved");
|
|
7
|
+
m(() => {
|
|
8
|
+
const s = t.current;
|
|
9
|
+
if (!s || typeof IntersectionObserver > "u")
|
|
10
|
+
return;
|
|
11
|
+
n("waiting");
|
|
12
|
+
const e = new IntersectionObserver((f) => {
|
|
13
|
+
f.some((u) => u.isIntersecting) && (e.disconnect(), n("entered"));
|
|
14
|
+
});
|
|
15
|
+
return e.observe(s), () => {
|
|
16
|
+
e.disconnect();
|
|
17
|
+
};
|
|
18
|
+
}, []);
|
|
19
|
+
const a = [
|
|
20
|
+
"aegis-reveal",
|
|
21
|
+
r === "unobserved" ? "" : `aegis-reveal--${r}`,
|
|
22
|
+
c ?? ""
|
|
23
|
+
].filter(Boolean).join(" ");
|
|
24
|
+
return /* @__PURE__ */ l(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
ref: t,
|
|
28
|
+
className: a,
|
|
29
|
+
style: { "--aegis-reveal-index": i },
|
|
30
|
+
children: o
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
x as Reveal
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=Reveal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reveal.js","sources":["../../../src/components/ui/Reveal.tsx"],"sourcesContent":["import { type CSSProperties, type ReactNode, useRef, useState } from 'react';\n\nimport { useIsomorphicLayoutEffect } from '../../hooks/useIsomorphicLayoutEffect';\nimport './Reveal.css';\n\ntype RevealState = 'unobserved' | 'waiting' | 'entered';\n\nexport interface RevealProps {\n children: ReactNode;\n /**\n * Position within a group that enters together: delays the entrance by\n * that many `--motion-reveal-stagger`s.\n */\n staggerIndex?: number;\n className?: string;\n}\n\n/**\n * Fades its content in and lifts it by `--motion-reveal-offset` the first\n * time it enters the viewport. Content is hidden only while an\n * IntersectionObserver is watching it, so it stays visible without one,\n * and under prefers-reduced-motion it appears without moving.\n */\nexport function Reveal({ children, staggerIndex = 0, className }: RevealProps) {\n const ref = useRef<HTMLDivElement>(null);\n const [state, setState] = useState<RevealState>('unobserved');\n\n useIsomorphicLayoutEffect(() => {\n const el = ref.current;\n if (!el || typeof IntersectionObserver === 'undefined') {\n return undefined;\n }\n setState('waiting');\n const observer = new IntersectionObserver((entries) => {\n if (entries.some((entry) => entry.isIntersecting)) {\n observer.disconnect();\n setState('entered');\n }\n });\n observer.observe(el);\n return () => {\n observer.disconnect();\n };\n }, []);\n\n const cls = [\n 'aegis-reveal',\n state === 'unobserved' ? '' : `aegis-reveal--${state}`,\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n return (\n <div\n ref={ref}\n className={cls}\n style={{ '--aegis-reveal-index': staggerIndex } as CSSProperties}\n >\n {children}\n </div>\n );\n}\n"],"names":["Reveal","children","staggerIndex","className","ref","useRef","state","setState","useState","useIsomorphicLayoutEffect","el","observer","entries","entry","cls","jsx"],"mappings":";;;;AAuBO,SAASA,EAAO,EAAE,UAAAC,GAAU,cAAAC,IAAe,GAAG,WAAAC,KAA0B;AAC7E,QAAMC,IAAMC,EAAuB,IAAI,GACjC,CAACC,GAAOC,CAAQ,IAAIC,EAAsB,YAAY;AAE5D,EAAAC,EAA0B,MAAM;AAC9B,UAAMC,IAAKN,EAAI;AACf,QAAI,CAACM,KAAM,OAAO,uBAAyB;AACzC;AAEF,IAAAH,EAAS,SAAS;AAClB,UAAMI,IAAW,IAAI,qBAAqB,CAACC,MAAY;AACrD,MAAIA,EAAQ,KAAK,CAACC,MAAUA,EAAM,cAAc,MAC9CF,EAAS,WAAA,GACTJ,EAAS,SAAS;AAAA,IAEtB,CAAC;AACD,WAAAI,EAAS,QAAQD,CAAE,GACZ,MAAM;AACX,MAAAC,EAAS,WAAA;AAAA,IACX;AAAA,EACF,GAAG,CAAA,CAAE;AAEL,QAAMG,IAAM;AAAA,IACV;AAAA,IACAR,MAAU,eAAe,KAAK,iBAAiBA,CAAK;AAAA,IACpDH,KAAa;AAAA,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG;AACX,SACE,gBAAAY;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAX;AAAA,MACA,WAAWU;AAAA,MACX,OAAO,EAAE,wBAAwBZ,EAAA;AAAA,MAEhC,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime");;/* empty css */const m=require("../../locale/useStrings.cjs");function u({counts:e,maxDots:l=10,ariaLabel:d,className:t}){const g=m.useStrings(),a=e.pending??0,i=e.passed+e.failed+e.errored+a,p=[["passed",e.passed],["failed",e.failed],["errored",e.errored],["pending",a]],o=["aegis-run-pips",t??""].filter(Boolean).join(" ");return r.jsxs("span",{className:o,role:"img","aria-label":d??g.runPipsLabel({passed:e.passed,failed:e.failed,errored:e.errored,pending:a,total:i}),children:[r.jsx("span",{className:"aegis-run-pips__count",children:`${String(e.passed)}/${String(i)}`}),i<=l?r.jsx("span",{className:"aegis-run-pips__dots",children:p.flatMap(([s,n])=>Array.from({length:n},(c,_)=>r.jsx("span",{className:`aegis-run-pips__dot aegis-run-pips__dot--${s}`},`${s}-${String(_)}`)))}):r.jsx("span",{className:"aegis-run-pips__bar",children:p.filter(([,s])=>s>0).map(([s,n])=>r.jsx("span",{className:`aegis-run-pips__segment aegis-run-pips__segment--${s}`,style:{flexGrow:n}},s))})]})}exports.RunPips=u;
|
|
2
|
+
//# sourceMappingURL=RunPips.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunPips.cjs","sources":["../../../src/components/ui/RunPips.tsx"],"sourcesContent":["import { useStrings } from '../../locale';\nimport './RunPips.css';\n\nexport interface RunPipsCounts {\n passed: number;\n /** Ran and was graded as failing. */\n failed: number;\n /** The run itself failed (no gradable answer). */\n errored: number;\n /** Not finished yet. */\n pending?: number;\n}\n\ninterface RunPipsProps {\n counts: RunPipsCounts;\n /** Above this many runs the dots collapse into a proportional bar. */\n maxDots?: number;\n /** Accessible name; defaults to a localized count summary. */\n ariaLabel?: string;\n className?: string;\n}\n\ntype RunKind = 'passed' | 'failed' | 'errored' | 'pending';\n\n/**\n * Per-run outcome strip: \"passed/total\" in the numeric type role, then one\n * dot per run (passed, failed, execution failed as a hollow ring, pending).\n * The text and the accessible name always carry the counts, so colour is\n * never the only signal.\n */\nexport function RunPips({\n counts,\n maxDots = 10,\n ariaLabel,\n className,\n}: RunPipsProps) {\n const strings = useStrings();\n const pending = counts.pending ?? 0;\n const total = counts.passed + counts.failed + counts.errored + pending;\n const parts: Array<[RunKind, number]> = [\n ['passed', counts.passed],\n ['failed', counts.failed],\n ['errored', counts.errored],\n ['pending', pending],\n ];\n const cls = ['aegis-run-pips', className ?? ''].filter(Boolean).join(' ');\n return (\n <span\n className={cls}\n role=\"img\"\n aria-label={\n ariaLabel ??\n strings.runPipsLabel({\n passed: counts.passed,\n failed: counts.failed,\n errored: counts.errored,\n pending,\n total,\n })\n }\n >\n <span className=\"aegis-run-pips__count\">\n {`${String(counts.passed)}/${String(total)}`}\n </span>\n {total <= maxDots ? (\n <span className=\"aegis-run-pips__dots\">\n {parts.flatMap(([kind, count]) =>\n Array.from({ length: count }, (_, i) => (\n <span\n key={`${kind}-${String(i)}`}\n className={`aegis-run-pips__dot aegis-run-pips__dot--${kind}`}\n />\n )),\n )}\n </span>\n ) : (\n <span className=\"aegis-run-pips__bar\">\n {parts\n .filter(([, count]) => count > 0)\n .map(([kind, count]) => (\n <span\n key={kind}\n className={`aegis-run-pips__segment aegis-run-pips__segment--${kind}`}\n style={{ flexGrow: count }}\n />\n ))}\n </span>\n )}\n </span>\n );\n}\n"],"names":["RunPips","counts","maxDots","ariaLabel","className","strings","useStrings","pending","total","parts","cls","jsxs","jsx","kind","count","_","i"],"mappings":"iMA8BO,SAASA,EAAQ,CACtB,OAAAC,EACA,QAAAC,EAAU,GACV,UAAAC,EACA,UAAAC,CACF,EAAiB,CACf,MAAMC,EAAUC,EAAAA,WAAA,EACVC,EAAUN,EAAO,SAAW,EAC5BO,EAAQP,EAAO,OAASA,EAAO,OAASA,EAAO,QAAUM,EACzDE,EAAkC,CACtC,CAAC,SAAUR,EAAO,MAAM,EACxB,CAAC,SAAUA,EAAO,MAAM,EACxB,CAAC,UAAWA,EAAO,OAAO,EAC1B,CAAC,UAAWM,CAAO,CAAA,EAEfG,EAAM,CAAC,iBAAkBN,GAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EACxE,OACEO,EAAAA,KAAC,OAAA,CACC,UAAWD,EACX,KAAK,MACL,aACEP,GACAE,EAAQ,aAAa,CACnB,OAAQJ,EAAO,OACf,OAAQA,EAAO,OACf,QAASA,EAAO,QAChB,QAAAM,EACA,MAAAC,CAAA,CACD,EAGH,SAAA,CAAAI,EAAAA,IAAC,OAAA,CAAK,UAAU,wBACb,SAAA,GAAG,OAAOX,EAAO,MAAM,CAAC,IAAI,OAAOO,CAAK,CAAC,GAC5C,EACCA,GAASN,EACRU,EAAAA,IAAC,OAAA,CAAK,UAAU,uBACb,SAAAH,EAAM,QAAQ,CAAC,CAACI,EAAMC,CAAK,IAC1B,MAAM,KAAK,CAAE,OAAQA,CAAA,EAAS,CAACC,EAAGC,IAChCJ,EAAAA,IAAC,OAAA,CAEC,UAAW,4CAA4CC,CAAI,EAAA,EADtD,GAAGA,CAAI,IAAI,OAAOG,CAAC,CAAC,EAAA,CAG5B,CAAA,EAEL,EAEAJ,EAAAA,IAAC,OAAA,CAAK,UAAU,sBACb,SAAAH,EACE,OAAO,CAAC,CAAA,CAAGK,CAAK,IAAMA,EAAQ,CAAC,EAC/B,IAAI,CAAC,CAACD,EAAMC,CAAK,IAChBF,EAAAA,IAAC,OAAA,CAEC,UAAW,oDAAoDC,CAAI,GACnE,MAAO,CAAE,SAAUC,CAAA,CAAM,EAFpBD,CAAA,CAIR,CAAA,CACL,CAAA,CAAA,CAAA,CAIR"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsxs as _, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { useStrings as f } from "../../locale/useStrings.js";
|
|
4
|
+
function u({
|
|
5
|
+
counts: e,
|
|
6
|
+
maxDots: l = 10,
|
|
7
|
+
ariaLabel: d,
|
|
8
|
+
className: g
|
|
9
|
+
}) {
|
|
10
|
+
const t = f(), a = e.pending ?? 0, i = e.passed + e.failed + e.errored + a, n = [
|
|
11
|
+
["passed", e.passed],
|
|
12
|
+
["failed", e.failed],
|
|
13
|
+
["errored", e.errored],
|
|
14
|
+
["pending", a]
|
|
15
|
+
], o = ["aegis-run-pips", g ?? ""].filter(Boolean).join(" ");
|
|
16
|
+
return /* @__PURE__ */ _(
|
|
17
|
+
"span",
|
|
18
|
+
{
|
|
19
|
+
className: o,
|
|
20
|
+
role: "img",
|
|
21
|
+
"aria-label": d ?? t.runPipsLabel({
|
|
22
|
+
passed: e.passed,
|
|
23
|
+
failed: e.failed,
|
|
24
|
+
errored: e.errored,
|
|
25
|
+
pending: a,
|
|
26
|
+
total: i
|
|
27
|
+
}),
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ r("span", { className: "aegis-run-pips__count", children: `${String(e.passed)}/${String(i)}` }),
|
|
30
|
+
i <= l ? /* @__PURE__ */ r("span", { className: "aegis-run-pips__dots", children: n.flatMap(
|
|
31
|
+
([s, p]) => Array.from({ length: p }, (c, m) => /* @__PURE__ */ r(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
className: `aegis-run-pips__dot aegis-run-pips__dot--${s}`
|
|
35
|
+
},
|
|
36
|
+
`${s}-${String(m)}`
|
|
37
|
+
))
|
|
38
|
+
) }) : /* @__PURE__ */ r("span", { className: "aegis-run-pips__bar", children: n.filter(([, s]) => s > 0).map(([s, p]) => /* @__PURE__ */ r(
|
|
39
|
+
"span",
|
|
40
|
+
{
|
|
41
|
+
className: `aegis-run-pips__segment aegis-run-pips__segment--${s}`,
|
|
42
|
+
style: { flexGrow: p }
|
|
43
|
+
},
|
|
44
|
+
s
|
|
45
|
+
)) })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
u as RunPips
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=RunPips.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RunPips.js","sources":["../../../src/components/ui/RunPips.tsx"],"sourcesContent":["import { useStrings } from '../../locale';\nimport './RunPips.css';\n\nexport interface RunPipsCounts {\n passed: number;\n /** Ran and was graded as failing. */\n failed: number;\n /** The run itself failed (no gradable answer). */\n errored: number;\n /** Not finished yet. */\n pending?: number;\n}\n\ninterface RunPipsProps {\n counts: RunPipsCounts;\n /** Above this many runs the dots collapse into a proportional bar. */\n maxDots?: number;\n /** Accessible name; defaults to a localized count summary. */\n ariaLabel?: string;\n className?: string;\n}\n\ntype RunKind = 'passed' | 'failed' | 'errored' | 'pending';\n\n/**\n * Per-run outcome strip: \"passed/total\" in the numeric type role, then one\n * dot per run (passed, failed, execution failed as a hollow ring, pending).\n * The text and the accessible name always carry the counts, so colour is\n * never the only signal.\n */\nexport function RunPips({\n counts,\n maxDots = 10,\n ariaLabel,\n className,\n}: RunPipsProps) {\n const strings = useStrings();\n const pending = counts.pending ?? 0;\n const total = counts.passed + counts.failed + counts.errored + pending;\n const parts: Array<[RunKind, number]> = [\n ['passed', counts.passed],\n ['failed', counts.failed],\n ['errored', counts.errored],\n ['pending', pending],\n ];\n const cls = ['aegis-run-pips', className ?? ''].filter(Boolean).join(' ');\n return (\n <span\n className={cls}\n role=\"img\"\n aria-label={\n ariaLabel ??\n strings.runPipsLabel({\n passed: counts.passed,\n failed: counts.failed,\n errored: counts.errored,\n pending,\n total,\n })\n }\n >\n <span className=\"aegis-run-pips__count\">\n {`${String(counts.passed)}/${String(total)}`}\n </span>\n {total <= maxDots ? (\n <span className=\"aegis-run-pips__dots\">\n {parts.flatMap(([kind, count]) =>\n Array.from({ length: count }, (_, i) => (\n <span\n key={`${kind}-${String(i)}`}\n className={`aegis-run-pips__dot aegis-run-pips__dot--${kind}`}\n />\n )),\n )}\n </span>\n ) : (\n <span className=\"aegis-run-pips__bar\">\n {parts\n .filter(([, count]) => count > 0)\n .map(([kind, count]) => (\n <span\n key={kind}\n className={`aegis-run-pips__segment aegis-run-pips__segment--${kind}`}\n style={{ flexGrow: count }}\n />\n ))}\n </span>\n )}\n </span>\n );\n}\n"],"names":["RunPips","counts","maxDots","ariaLabel","className","strings","useStrings","pending","total","parts","cls","jsxs","jsx","kind","count","_","i"],"mappings":";;;AA8BO,SAASA,EAAQ;AAAA,EACtB,QAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,WAAAC;AAAA,EACA,WAAAC;AACF,GAAiB;AACf,QAAMC,IAAUC,EAAA,GACVC,IAAUN,EAAO,WAAW,GAC5BO,IAAQP,EAAO,SAASA,EAAO,SAASA,EAAO,UAAUM,GACzDE,IAAkC;AAAA,IACtC,CAAC,UAAUR,EAAO,MAAM;AAAA,IACxB,CAAC,UAAUA,EAAO,MAAM;AAAA,IACxB,CAAC,WAAWA,EAAO,OAAO;AAAA,IAC1B,CAAC,WAAWM,CAAO;AAAA,EAAA,GAEfG,IAAM,CAAC,kBAAkBN,KAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AACxE,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWD;AAAA,MACX,MAAK;AAAA,MACL,cACEP,KACAE,EAAQ,aAAa;AAAA,QACnB,QAAQJ,EAAO;AAAA,QACf,QAAQA,EAAO;AAAA,QACf,SAASA,EAAO;AAAA,QAChB,SAAAM;AAAA,QACA,OAAAC;AAAA,MAAA,CACD;AAAA,MAGH,UAAA;AAAA,QAAA,gBAAAI,EAAC,QAAA,EAAK,WAAU,yBACb,UAAA,GAAG,OAAOX,EAAO,MAAM,CAAC,IAAI,OAAOO,CAAK,CAAC,IAC5C;AAAA,QACCA,KAASN,IACR,gBAAAU,EAAC,QAAA,EAAK,WAAU,wBACb,UAAAH,EAAM;AAAA,UAAQ,CAAC,CAACI,GAAMC,CAAK,MAC1B,MAAM,KAAK,EAAE,QAAQA,EAAA,GAAS,CAACC,GAAGC,MAChC,gBAAAJ;AAAA,YAAC;AAAA,YAAA;AAAA,cAEC,WAAW,4CAA4CC,CAAI;AAAA,YAAA;AAAA,YADtD,GAAGA,CAAI,IAAI,OAAOG,CAAC,CAAC;AAAA,UAAA,CAG5B;AAAA,QAAA,GAEL,IAEA,gBAAAJ,EAAC,QAAA,EAAK,WAAU,uBACb,UAAAH,EACE,OAAO,CAAC,CAAA,EAAGK,CAAK,MAAMA,IAAQ,CAAC,EAC/B,IAAI,CAAC,CAACD,GAAMC,CAAK,MAChB,gBAAAF;AAAA,UAAC;AAAA,UAAA;AAAA,YAEC,WAAW,oDAAoDC,CAAI;AAAA,YACnE,OAAO,EAAE,UAAUC,EAAA;AAAA,UAAM;AAAA,UAFpBD;AAAA,QAAA,CAIR,EAAA,CACL;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),g=require("@ant-design/icons"),v=require("antd"),w=require("../../hooks/useSavedQueries.cjs");;/* empty css */function C({namespace:s,currentValue:i,onApply:o,allowEmptySave:n=!1,className:c,maxInlineUnpinned:t=6}){const{queries:l,save:a,remove:u,rename:p,togglePinned:d,touch:_}=w.useSavedQueries({namespace:s}),{pinned:b,inlineUnpinned:q,overflow:j}=m.useMemo(()=>{const r=l.filter(f=>f.pinned),x=l.filter(f=>!f.pinned);return{pinned:r,inlineUnpinned:x.slice(0,t),overflow:x.slice(t)}},[l,t]),h=r=>{_(r.id),o(r)},S=!n&&i.trim()==="",y=["aegis-sqb",c??""].filter(Boolean).join(" ");return e.jsxs("div",{className:y,role:"toolbar","aria-label":"Saved queries",children:[l.length===0?e.jsx("span",{className:"aegis-sqb__hint",children:"No saved queries yet — save the current view to pin it."}):e.jsxs("ul",{className:"aegis-sqb__list",children:[b.map(r=>e.jsx(N,{query:r,onApply:h,onRename:p,onRemove:u,onTogglePinned:d},r.id)),q.map(r=>e.jsx(N,{query:r,onApply:h,onRename:p,onRemove:u,onTogglePinned:d},r.id)),j.length>0?e.jsx(k,{items:j,onApply:h,onRemove:u,onTogglePinned:d}):null]}),e.jsx(D,{disabled:S,currentValue:i,onSave:r=>a(r,i)})]})}function N({query:s,onApply:i,onRename:o,onRemove:n,onTogglePinned:c}){const[t,l]=m.useState(!1),[a,u]=m.useState(!1),p=()=>{t||i(s)},d=b=>{b.preventDefault(),u(!0)},_=e.jsx(R,{query:s,onRename:()=>{u(!1),l(!0)},onTogglePinned:()=>{u(!1),c(s.id)},onRemove:()=>{u(!1),n(s.id)}});return e.jsx("li",{className:"aegis-sqb__item",onContextMenu:d,children:t?e.jsx(O,{initialName:s.name,onSubmit:b=>{o(s.id,b),l(!1)},onCancel:()=>{l(!1)}}):e.jsxs(e.Fragment,{children:[e.jsxs("button",{type:"button",className:"aegis-sqb__chip",onClick:p,title:s.value,children:[s.pinned?e.jsx(g.StarFilled,{className:"aegis-sqb__chip-star aegis-sqb__chip-star--on","aria-hidden":!0}):null,e.jsx("span",{className:"aegis-sqb__chip-label",children:s.name})]}),e.jsx(v.Popover,{content:_,trigger:"click",open:a,onOpenChange:u,placement:"bottomRight",arrow:!1,classNames:{root:"aegis-sqb__popover"},destroyOnHidden:!0,children:e.jsx("button",{type:"button",className:"aegis-sqb__menu-trigger","aria-label":`Options for ${s.name}`,children:e.jsx(g.EllipsisOutlined,{"aria-hidden":!0})})})]})})}function R({query:s,onRename:i,onTogglePinned:o,onRemove:n}){return e.jsxs("div",{className:"aegis-sqb__menu",role:"menu",children:[e.jsx("button",{type:"button",role:"menuitem",className:"aegis-sqb__menu-item",onClick:i,children:"Rename"}),e.jsx("button",{type:"button",role:"menuitem",className:"aegis-sqb__menu-item",onClick:o,children:s.pinned?"Unpin":"Pin"}),e.jsx("button",{type:"button",role:"menuitem",className:"aegis-sqb__menu-item aegis-sqb__menu-item--danger",onClick:n,children:"Delete"})]})}function O({initialName:s,onSubmit:i,onCancel:o}){const[n,c]=m.useState(s),t=m.useRef(null);m.useEffect(()=>{t.current?.focus(),t.current?.select()},[]);const l=a=>{a.key==="Enter"?(a.preventDefault(),n.trim()!==""?i(n):o()):a.key==="Escape"&&(a.preventDefault(),o())};return e.jsx("input",{ref:t,type:"text",className:"aegis-sqb__rename-input",value:n,onChange:a=>{c(a.target.value)},onKeyDown:l,onBlur:()=>{n.trim()!==""&&n!==s?i(n):o()},"aria-label":"Rename saved query"})}function k({items:s,onApply:i,onRemove:o,onTogglePinned:n}){const[c,t]=m.useState(!1),l=e.jsx("div",{className:"aegis-sqb__menu aegis-sqb__menu--overflow",role:"menu",children:s.map(a=>e.jsx(P,{query:a,onApply:()=>{t(!1),i(a)},onRemove:o,onTogglePinned:n},a.id))});return e.jsx("li",{className:"aegis-sqb__item",children:e.jsx(v.Popover,{content:l,trigger:"click",open:c,onOpenChange:t,placement:"bottomRight",arrow:!1,classNames:{root:"aegis-sqb__popover"},destroyOnHidden:!0,children:e.jsxs("button",{type:"button",className:"aegis-sqb__chip aegis-sqb__chip--ghost",children:["+",s.length.toString()," more"]})})})}function P({query:s,onApply:i,onRemove:o,onTogglePinned:n}){return e.jsxs("div",{className:"aegis-sqb__overflow-row",children:[e.jsx("button",{type:"button",role:"menuitem",className:"aegis-sqb__menu-item aegis-sqb__overflow-apply",onClick:i,title:s.value,children:s.name}),e.jsx("button",{type:"button",className:"aegis-sqb__overflow-icon",onClick:()=>{n(s.id)},"aria-label":s.pinned?"Unpin":"Pin",children:s.pinned?e.jsx(g.StarFilled,{"aria-hidden":!0}):e.jsx(g.StarOutlined,{"aria-hidden":!0})}),e.jsx("button",{type:"button",className:"aegis-sqb__overflow-icon aegis-sqb__overflow-icon--danger",onClick:()=>{o(s.id)},"aria-label":`Delete ${s.name}`,children:"×"})]})}function D({disabled:s,currentValue:i,onSave:o}){const[n,c]=m.useState(!1),[t,l]=m.useState(""),a=m.useRef(null);m.useEffect(()=>{if(n){l(i.slice(0,32));const d=window.setTimeout(()=>{a.current?.focus(),a.current?.select()},0);return()=>{window.clearTimeout(d)}}},[n,i]);const u=d=>{d.preventDefault(),t.trim()!==""&&(o(t),c(!1),l(""))},p=e.jsxs("form",{className:"aegis-sqb__save-form",onSubmit:u,children:[e.jsx("label",{className:"aegis-sqb__save-label",htmlFor:"aegis-sqb__save-name",children:"Name this query"}),e.jsx("input",{id:"aegis-sqb__save-name",ref:a,type:"text",className:"aegis-sqb__save-input",value:t,onChange:d=>{l(d.target.value)},placeholder:"e.g. failed runs last 24h"}),e.jsxs("div",{className:"aegis-sqb__save-actions",children:[e.jsx("button",{type:"button",className:"aegis-sqb__save-cancel",onClick:()=>{c(!1)},children:"Cancel"}),e.jsx("button",{type:"submit",className:"aegis-sqb__save-submit",disabled:t.trim()==="",children:"Save"})]})]});return e.jsx(v.Popover,{content:p,trigger:"click",open:s?!1:n,onOpenChange:c,placement:"bottomRight",arrow:!1,classNames:{root:"aegis-sqb__popover"},destroyOnHidden:!0,children:e.jsxs("button",{type:"button",className:"aegis-sqb__save-trigger",disabled:s,children:[e.jsx(g.PlusOutlined,{"aria-hidden":!0}),e.jsx("span",{children:"Save current"})]})})}exports.SavedQueryBar=C;
|
|
2
|
+
//# sourceMappingURL=SavedQueryBar.cjs.map
|