@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 @@
|
|
|
1
|
+
{"version":3,"file":"authContext.js","sources":["../../src/auth/authContext.ts"],"sourcesContent":["import { createContext } from 'react';\n\nexport type AuthStatus = 'loading' | 'authenticated' | 'unauthenticated';\n\n/**\n * Minimal user shape consumed by the shell + auth-aware primitives.\n * SSO callers can extend with a custom generic on `AuthContextValue`.\n */\nexport interface AegisAuthUser {\n id: string;\n name: string;\n email?: string;\n avatar?: string;\n /**\n * Optional role / permission tags. The shell uses these to gate apps\n * marked with `requiredRoles`. Empty / missing means \"no role claims\";\n * apps without `requiredRoles` are unaffected.\n */\n roles?: string[];\n}\n\n/**\n * Contract every auth integration implements. The library does not own\n * state — callers wire their own SSO / form / token-refresh logic and\n * pass the resulting value through `<AuthProvider value={...}>`.\n *\n * `signIn` / `signOut` are optional: SSO flows typically redirect away\n * and have no in-process credential exchange.\n */\nexport interface AuthContextValue<TUser = AegisAuthUser> {\n status: AuthStatus;\n user: TUser | null;\n signIn?: (credentials: unknown) => Promise<void> | void;\n signOut?: () => Promise<void> | void;\n}\n\nexport const defaultAuthContextValue: AuthContextValue<unknown> = {\n status: 'unauthenticated',\n user: null,\n};\n\nexport const AuthContext = createContext<AuthContextValue<unknown>>(\n defaultAuthContextValue,\n);\n"],"names":["defaultAuthContextValue","AuthContext","createContext"],"mappings":";AAoCO,MAAMA,IAAqD;AAAA,EAChE,QAAQ;AAAA,EACR,MAAM;AACR,GAEaC,IAAcC;AAAA,EACzBF;AACF;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuth.cjs","sources":["../../src/auth/useAuth.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport {\n type AegisAuthUser,\n AuthContext,\n type AuthContextValue,\n} from './authContext';\n\n/**\n * Read the current auth context. Returns the default unauthenticated\n * state when no `<AuthProvider>` is mounted, so render code does not\n * have to special-case \"auth not wired yet\".\n */\nexport function useAuth<TUser = AegisAuthUser>(): AuthContextValue<TUser> {\n return useContext(AuthContext) as AuthContextValue<TUser>;\n}\n"],"names":["useAuth","useContext","AuthContext"],"mappings":"wIAaO,SAASA,GAA0D,CACxE,OAAOC,EAAAA,WAAWC,EAAAA,WAAW,CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuth.js","sources":["../../src/auth/useAuth.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport {\n type AegisAuthUser,\n AuthContext,\n type AuthContextValue,\n} from './authContext';\n\n/**\n * Read the current auth context. Returns the default unauthenticated\n * state when no `<AuthProvider>` is mounted, so render code does not\n * have to special-case \"auth not wired yet\".\n */\nexport function useAuth<TUser = AegisAuthUser>(): AuthContextValue<TUser> {\n return useContext(AuthContext) as AuthContextValue<TUser>;\n}\n"],"names":["useAuth","useContext","AuthContext"],"mappings":";;AAaO,SAASA,IAA0D;AACxE,SAAOC,EAAWC,CAAW;AAC/B;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),r=require("react"),C=require("./commandContext.cjs"),w=require("./shortcut.cjs");function S({children:y}){const[s,d]=r.useState(()=>new Map),[c,v]=r.useState(void 0),[o,i]=r.useState(!1),f=r.useRef(s);f.current=s;const l=r.useCallback(t=>(d(n=>{const e=new Map(n);for(const a of t)e.set(a.id,a);return e}),()=>{d(n=>{const e=new Map(n);for(const a of t)e.delete(a.id);return e})}),[]),m=r.useCallback(async(t,n)=>{const e=f.current.get(t);if(!e)throw new Error(`Command not found: ${t}`);await e.handler(n)},[]),u=r.useMemo(()=>Array.from(s.values()),[s]),p=r.useMemo(()=>u.filter(t=>!(t.agentOnly||t.scope&&t.scope!==c)),[u,c]);r.useEffect(()=>{function t(n){if(w.matchShortcut(n,"mod+k")){n.preventDefault(),i(e=>!e);return}if(n.key==="Escape"&&o){i(!1);return}if(!o){for(const e of f.current.values())if(e.shortcut&&!e.agentOnly&&!(e.scope&&e.scope!==c)&&w.matchShortcut(n,e.shortcut)){n.preventDefault(),e.handler();return}}}return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[c,o]);const h=r.useMemo(()=>({commands:p,allCommands:u,register:l,setActiveScope:v,execute:m,setPaletteOpen:i,paletteOpen:o}),[p,u,l,m,o]);return g.jsx(C.CommandContext.Provider,{value:h,children:y})}exports.CommandProvider=S;
|
|
2
|
+
//# sourceMappingURL=CommandProvider.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandProvider.cjs","sources":["../../src/commands/CommandProvider.tsx"],"sourcesContent":["import {\n type ReactElement,\n type ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport {\n type Command,\n CommandContext,\n type CommandContextValue,\n} from './commandContext';\nimport { matchShortcut } from './shortcut';\n\ninterface CommandProviderProps {\n children: ReactNode;\n}\n\n/**\n * Owns the command registry, the palette open-state, and the global\n * `mod+k` opener. Components register commands via\n * `useRegisterCommands`; AegisShell registers each `AegisApp.commands`\n * and flips the active scope as the user navigates between sub-apps.\n */\nexport function CommandProvider({\n children,\n}: CommandProviderProps): ReactElement {\n const [registry, setRegistry] = useState<Map<string, Command>>(\n () => new Map(),\n );\n const [activeScope, setActiveScope] = useState<string | undefined>(undefined);\n const [paletteOpen, setPaletteOpen] = useState(false);\n\n const registryRef = useRef(registry);\n registryRef.current = registry;\n\n const register = useCallback((cmds: Command[]) => {\n setRegistry((prev) => {\n const next = new Map(prev);\n for (const cmd of cmds) {\n next.set(cmd.id, cmd);\n }\n return next;\n });\n return () => {\n setRegistry((prev) => {\n const next = new Map(prev);\n for (const cmd of cmds) {\n next.delete(cmd.id);\n }\n return next;\n });\n };\n }, []);\n\n const execute = useCallback(\n async (id: string, args?: unknown): Promise<void> => {\n const cmd = registryRef.current.get(id);\n if (!cmd) {\n throw new Error(`Command not found: ${id}`);\n }\n await cmd.handler(args);\n },\n [],\n );\n\n const allCommands = useMemo<Command[]>(\n () => Array.from(registry.values()),\n [registry],\n );\n\n const commands = useMemo<Command[]>(\n () =>\n allCommands.filter((c) => {\n if (c.agentOnly) {\n return false;\n }\n if (c.scope && c.scope !== activeScope) {\n return false;\n }\n return true;\n }),\n [allCommands, activeScope],\n );\n\n // mod+k toggles the palette globally. We add it once at the provider\n // level so consumers don't have to register their own opener.\n useEffect(() => {\n function handleKeyDown(event: KeyboardEvent): void {\n if (matchShortcut(event, 'mod+k')) {\n event.preventDefault();\n setPaletteOpen((v) => !v);\n return;\n }\n if (event.key === 'Escape' && paletteOpen) {\n setPaletteOpen(false);\n return;\n }\n // App-defined shortcuts. Only fire when palette is closed —\n // arrows / Enter while the palette is open belong to it.\n if (paletteOpen) {\n return;\n }\n for (const cmd of registryRef.current.values()) {\n if (!cmd.shortcut) {\n continue;\n }\n if (cmd.agentOnly) {\n continue;\n }\n if (cmd.scope && cmd.scope !== activeScope) {\n continue;\n }\n if (matchShortcut(event, cmd.shortcut)) {\n event.preventDefault();\n void cmd.handler();\n return;\n }\n }\n }\n window.addEventListener('keydown', handleKeyDown);\n return () => window.removeEventListener('keydown', handleKeyDown);\n }, [activeScope, paletteOpen]);\n\n const value = useMemo<CommandContextValue>(\n () => ({\n commands,\n allCommands,\n register,\n setActiveScope,\n execute,\n setPaletteOpen,\n paletteOpen,\n }),\n [commands, allCommands, register, execute, paletteOpen],\n );\n\n return (\n <CommandContext.Provider value={value}>{children}</CommandContext.Provider>\n );\n}\n"],"names":["CommandProvider","children","registry","setRegistry","useState","activeScope","setActiveScope","paletteOpen","setPaletteOpen","registryRef","useRef","register","useCallback","cmds","prev","next","cmd","execute","id","args","allCommands","useMemo","commands","c","useEffect","handleKeyDown","event","matchShortcut","v","value","jsx","CommandContext"],"mappings":"sMA2BO,SAASA,EAAgB,CAC9B,SAAAC,CACF,EAAuC,CACrC,KAAM,CAACC,EAAUC,CAAW,EAAIC,EAAAA,SAC9B,QAAU,GAAI,EAEV,CAACC,EAAaC,CAAc,EAAIF,EAAAA,SAA6B,MAAS,EACtE,CAACG,EAAaC,CAAc,EAAIJ,EAAAA,SAAS,EAAK,EAE9CK,EAAcC,EAAAA,OAAOR,CAAQ,EACnCO,EAAY,QAAUP,EAEtB,MAAMS,EAAWC,cAAaC,IAC5BV,EAAaW,GAAS,CACpB,MAAMC,EAAO,IAAI,IAAID,CAAI,EACzB,UAAWE,KAAOH,EAChBE,EAAK,IAAIC,EAAI,GAAIA,CAAG,EAEtB,OAAOD,CACT,CAAC,EACM,IAAM,CACXZ,EAAaW,GAAS,CACpB,MAAMC,EAAO,IAAI,IAAID,CAAI,EACzB,UAAWE,KAAOH,EAChBE,EAAK,OAAOC,EAAI,EAAE,EAEpB,OAAOD,CACT,CAAC,CACH,GACC,CAAA,CAAE,EAECE,EAAUL,EAAAA,YACd,MAAOM,EAAYC,IAAkC,CACnD,MAAMH,EAAMP,EAAY,QAAQ,IAAIS,CAAE,EACtC,GAAI,CAACF,EACH,MAAM,IAAI,MAAM,sBAAsBE,CAAE,EAAE,EAE5C,MAAMF,EAAI,QAAQG,CAAI,CACxB,EACA,CAAA,CAAC,EAGGC,EAAcC,EAAAA,QAClB,IAAM,MAAM,KAAKnB,EAAS,QAAQ,EAClC,CAACA,CAAQ,CAAA,EAGLoB,EAAWD,EAAAA,QACf,IACED,EAAY,OAAQG,GACd,EAAAA,EAAE,WAGFA,EAAE,OAASA,EAAE,QAAUlB,EAI5B,EACH,CAACe,EAAaf,CAAW,CAAA,EAK3BmB,EAAAA,UAAU,IAAM,CACd,SAASC,EAAcC,EAA4B,CACjD,GAAIC,EAAAA,cAAcD,EAAO,OAAO,EAAG,CACjCA,EAAM,eAAA,EACNlB,EAAgBoB,GAAM,CAACA,CAAC,EACxB,MACF,CACA,GAAIF,EAAM,MAAQ,UAAYnB,EAAa,CACzCC,EAAe,EAAK,EACpB,MACF,CAGA,GAAI,CAAAD,GAGJ,UAAWS,KAAOP,EAAY,QAAQ,OAAA,EACpC,GAAKO,EAAI,UAGL,CAAAA,EAAI,WAGJ,EAAAA,EAAI,OAASA,EAAI,QAAUX,IAG3BsB,gBAAcD,EAAOV,EAAI,QAAQ,EAAG,CACtCU,EAAM,eAAA,EACDV,EAAI,QAAA,EACT,MACF,EAEJ,CACA,cAAO,iBAAiB,UAAWS,CAAa,EACzC,IAAM,OAAO,oBAAoB,UAAWA,CAAa,CAClE,EAAG,CAACpB,EAAaE,CAAW,CAAC,EAE7B,MAAMsB,EAAQR,EAAAA,QACZ,KAAO,CACL,SAAAC,EACA,YAAAF,EACA,SAAAT,EACA,eAAAL,EACA,QAAAW,EACA,eAAAT,EACA,YAAAD,CAAA,GAEF,CAACe,EAAUF,EAAaT,EAAUM,EAASV,CAAW,CAAA,EAGxD,OACEuB,EAAAA,IAACC,EAAAA,eAAe,SAAf,CAAwB,MAAAF,EAAe,SAAA5B,CAAA,CAAS,CAErD"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useRef as k, useCallback as y, useMemo as m, useEffect as E } from "react";
|
|
3
|
+
import { CommandContext as M } from "./commandContext.js";
|
|
4
|
+
import { matchShortcut as v } from "./shortcut.js";
|
|
5
|
+
function R({
|
|
6
|
+
children: h
|
|
7
|
+
}) {
|
|
8
|
+
const [o, d] = f(
|
|
9
|
+
() => /* @__PURE__ */ new Map()
|
|
10
|
+
), [s, g] = f(void 0), [n, i] = f(!1), u = k(o);
|
|
11
|
+
u.current = o;
|
|
12
|
+
const l = y((t) => (d((r) => {
|
|
13
|
+
const e = new Map(r);
|
|
14
|
+
for (const a of t)
|
|
15
|
+
e.set(a.id, a);
|
|
16
|
+
return e;
|
|
17
|
+
}), () => {
|
|
18
|
+
d((r) => {
|
|
19
|
+
const e = new Map(r);
|
|
20
|
+
for (const a of t)
|
|
21
|
+
e.delete(a.id);
|
|
22
|
+
return e;
|
|
23
|
+
});
|
|
24
|
+
}), []), p = y(
|
|
25
|
+
async (t, r) => {
|
|
26
|
+
const e = u.current.get(t);
|
|
27
|
+
if (!e)
|
|
28
|
+
throw new Error(`Command not found: ${t}`);
|
|
29
|
+
await e.handler(r);
|
|
30
|
+
},
|
|
31
|
+
[]
|
|
32
|
+
), c = m(
|
|
33
|
+
() => Array.from(o.values()),
|
|
34
|
+
[o]
|
|
35
|
+
), w = m(
|
|
36
|
+
() => c.filter((t) => !(t.agentOnly || t.scope && t.scope !== s)),
|
|
37
|
+
[c, s]
|
|
38
|
+
);
|
|
39
|
+
E(() => {
|
|
40
|
+
function t(r) {
|
|
41
|
+
if (v(r, "mod+k")) {
|
|
42
|
+
r.preventDefault(), i((e) => !e);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (r.key === "Escape" && n) {
|
|
46
|
+
i(!1);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
if (!n) {
|
|
50
|
+
for (const e of u.current.values())
|
|
51
|
+
if (e.shortcut && !e.agentOnly && !(e.scope && e.scope !== s) && v(r, e.shortcut)) {
|
|
52
|
+
r.preventDefault(), e.handler();
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
|
|
58
|
+
}, [s, n]);
|
|
59
|
+
const x = m(
|
|
60
|
+
() => ({
|
|
61
|
+
commands: w,
|
|
62
|
+
allCommands: c,
|
|
63
|
+
register: l,
|
|
64
|
+
setActiveScope: g,
|
|
65
|
+
execute: p,
|
|
66
|
+
setPaletteOpen: i,
|
|
67
|
+
paletteOpen: n
|
|
68
|
+
}),
|
|
69
|
+
[w, c, l, p, n]
|
|
70
|
+
);
|
|
71
|
+
return /* @__PURE__ */ C(M.Provider, { value: x, children: h });
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
R as CommandProvider
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=CommandProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommandProvider.js","sources":["../../src/commands/CommandProvider.tsx"],"sourcesContent":["import {\n type ReactElement,\n type ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport {\n type Command,\n CommandContext,\n type CommandContextValue,\n} from './commandContext';\nimport { matchShortcut } from './shortcut';\n\ninterface CommandProviderProps {\n children: ReactNode;\n}\n\n/**\n * Owns the command registry, the palette open-state, and the global\n * `mod+k` opener. Components register commands via\n * `useRegisterCommands`; AegisShell registers each `AegisApp.commands`\n * and flips the active scope as the user navigates between sub-apps.\n */\nexport function CommandProvider({\n children,\n}: CommandProviderProps): ReactElement {\n const [registry, setRegistry] = useState<Map<string, Command>>(\n () => new Map(),\n );\n const [activeScope, setActiveScope] = useState<string | undefined>(undefined);\n const [paletteOpen, setPaletteOpen] = useState(false);\n\n const registryRef = useRef(registry);\n registryRef.current = registry;\n\n const register = useCallback((cmds: Command[]) => {\n setRegistry((prev) => {\n const next = new Map(prev);\n for (const cmd of cmds) {\n next.set(cmd.id, cmd);\n }\n return next;\n });\n return () => {\n setRegistry((prev) => {\n const next = new Map(prev);\n for (const cmd of cmds) {\n next.delete(cmd.id);\n }\n return next;\n });\n };\n }, []);\n\n const execute = useCallback(\n async (id: string, args?: unknown): Promise<void> => {\n const cmd = registryRef.current.get(id);\n if (!cmd) {\n throw new Error(`Command not found: ${id}`);\n }\n await cmd.handler(args);\n },\n [],\n );\n\n const allCommands = useMemo<Command[]>(\n () => Array.from(registry.values()),\n [registry],\n );\n\n const commands = useMemo<Command[]>(\n () =>\n allCommands.filter((c) => {\n if (c.agentOnly) {\n return false;\n }\n if (c.scope && c.scope !== activeScope) {\n return false;\n }\n return true;\n }),\n [allCommands, activeScope],\n );\n\n // mod+k toggles the palette globally. We add it once at the provider\n // level so consumers don't have to register their own opener.\n useEffect(() => {\n function handleKeyDown(event: KeyboardEvent): void {\n if (matchShortcut(event, 'mod+k')) {\n event.preventDefault();\n setPaletteOpen((v) => !v);\n return;\n }\n if (event.key === 'Escape' && paletteOpen) {\n setPaletteOpen(false);\n return;\n }\n // App-defined shortcuts. Only fire when palette is closed —\n // arrows / Enter while the palette is open belong to it.\n if (paletteOpen) {\n return;\n }\n for (const cmd of registryRef.current.values()) {\n if (!cmd.shortcut) {\n continue;\n }\n if (cmd.agentOnly) {\n continue;\n }\n if (cmd.scope && cmd.scope !== activeScope) {\n continue;\n }\n if (matchShortcut(event, cmd.shortcut)) {\n event.preventDefault();\n void cmd.handler();\n return;\n }\n }\n }\n window.addEventListener('keydown', handleKeyDown);\n return () => window.removeEventListener('keydown', handleKeyDown);\n }, [activeScope, paletteOpen]);\n\n const value = useMemo<CommandContextValue>(\n () => ({\n commands,\n allCommands,\n register,\n setActiveScope,\n execute,\n setPaletteOpen,\n paletteOpen,\n }),\n [commands, allCommands, register, execute, paletteOpen],\n );\n\n return (\n <CommandContext.Provider value={value}>{children}</CommandContext.Provider>\n );\n}\n"],"names":["CommandProvider","children","registry","setRegistry","useState","activeScope","setActiveScope","paletteOpen","setPaletteOpen","registryRef","useRef","register","useCallback","cmds","prev","next","cmd","execute","id","args","allCommands","useMemo","commands","c","useEffect","handleKeyDown","event","matchShortcut","v","value","jsx","CommandContext"],"mappings":";;;;AA2BO,SAASA,EAAgB;AAAA,EAC9B,UAAAC;AACF,GAAuC;AACrC,QAAM,CAACC,GAAUC,CAAW,IAAIC;AAAA,IAC9B,0BAAU,IAAA;AAAA,EAAI,GAEV,CAACC,GAAaC,CAAc,IAAIF,EAA6B,MAAS,GACtE,CAACG,GAAaC,CAAc,IAAIJ,EAAS,EAAK,GAE9CK,IAAcC,EAAOR,CAAQ;AACnC,EAAAO,EAAY,UAAUP;AAEtB,QAAMS,IAAWC,EAAY,CAACC,OAC5BV,EAAY,CAACW,MAAS;AACpB,UAAMC,IAAO,IAAI,IAAID,CAAI;AACzB,eAAWE,KAAOH;AAChB,MAAAE,EAAK,IAAIC,EAAI,IAAIA,CAAG;AAEtB,WAAOD;AAAA,EACT,CAAC,GACM,MAAM;AACX,IAAAZ,EAAY,CAACW,MAAS;AACpB,YAAMC,IAAO,IAAI,IAAID,CAAI;AACzB,iBAAWE,KAAOH;AAChB,QAAAE,EAAK,OAAOC,EAAI,EAAE;AAEpB,aAAOD;AAAA,IACT,CAAC;AAAA,EACH,IACC,CAAA,CAAE,GAECE,IAAUL;AAAA,IACd,OAAOM,GAAYC,MAAkC;AACnD,YAAMH,IAAMP,EAAY,QAAQ,IAAIS,CAAE;AACtC,UAAI,CAACF;AACH,cAAM,IAAI,MAAM,sBAAsBE,CAAE,EAAE;AAE5C,YAAMF,EAAI,QAAQG,CAAI;AAAA,IACxB;AAAA,IACA,CAAA;AAAA,EAAC,GAGGC,IAAcC;AAAA,IAClB,MAAM,MAAM,KAAKnB,EAAS,QAAQ;AAAA,IAClC,CAACA,CAAQ;AAAA,EAAA,GAGLoB,IAAWD;AAAA,IACf,MACED,EAAY,OAAO,CAACG,MACd,EAAAA,EAAE,aAGFA,EAAE,SAASA,EAAE,UAAUlB,EAI5B;AAAA,IACH,CAACe,GAAaf,CAAW;AAAA,EAAA;AAK3B,EAAAmB,EAAU,MAAM;AACd,aAASC,EAAcC,GAA4B;AACjD,UAAIC,EAAcD,GAAO,OAAO,GAAG;AACjC,QAAAA,EAAM,eAAA,GACNlB,EAAe,CAACoB,MAAM,CAACA,CAAC;AACxB;AAAA,MACF;AACA,UAAIF,EAAM,QAAQ,YAAYnB,GAAa;AACzC,QAAAC,EAAe,EAAK;AACpB;AAAA,MACF;AAGA,UAAI,CAAAD;AAGJ,mBAAWS,KAAOP,EAAY,QAAQ,OAAA;AACpC,cAAKO,EAAI,YAGL,CAAAA,EAAI,aAGJ,EAAAA,EAAI,SAASA,EAAI,UAAUX,MAG3BsB,EAAcD,GAAOV,EAAI,QAAQ,GAAG;AACtC,YAAAU,EAAM,eAAA,GACDV,EAAI,QAAA;AACT;AAAA,UACF;AAAA;AAAA,IAEJ;AACA,kBAAO,iBAAiB,WAAWS,CAAa,GACzC,MAAM,OAAO,oBAAoB,WAAWA,CAAa;AAAA,EAClE,GAAG,CAACpB,GAAaE,CAAW,CAAC;AAE7B,QAAMsB,IAAQR;AAAA,IACZ,OAAO;AAAA,MACL,UAAAC;AAAA,MACA,aAAAF;AAAA,MACA,UAAAT;AAAA,MACA,gBAAAL;AAAA,MACA,SAAAW;AAAA,MACA,gBAAAT;AAAA,MACA,aAAAD;AAAA,IAAA;AAAA,IAEF,CAACe,GAAUF,GAAaT,GAAUM,GAASV,CAAW;AAAA,EAAA;AAGxD,SACE,gBAAAuB,EAACC,EAAe,UAAf,EAAwB,OAAAF,GAAe,UAAA5B,EAAA,CAAS;AAErD;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e={commands:[],allCommands:[],register:()=>()=>{},setActiveScope:()=>{},execute:()=>Promise.reject(new Error("No <CommandProvider> mounted above caller.")),setPaletteOpen:()=>{},paletteOpen:!1},o=t.createContext(e);exports.CommandContext=o;exports.defaultCommandContextValue=e;
|
|
2
|
+
//# sourceMappingURL=commandContext.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandContext.cjs","sources":["../../src/commands/commandContext.ts"],"sourcesContent":["import { type ReactNode, createContext } from 'react';\n\nimport type { AegisAction } from '../agent/core/types';\n\n/**\n * A single executable action surfaced through the command palette and,\n * eventually, agent tool-calls. Commands are presentational contracts —\n * the host owns the side-effect inside `handler`.\n */\nexport interface Command<TArgs = unknown> {\n /** Globally unique id. Convention: 'app.action' e.g. 'projects.create'. */\n id: string;\n /** Human label shown in the palette. */\n label: string;\n /** Longer description — also shown to agents as tool description. */\n description?: string;\n /** Search keywords (lowercase). */\n keywords?: string[];\n /** Icon node shown in the palette row. */\n icon?: ReactNode;\n /** UI grouping (e.g. 'Quick actions', 'Navigate'). Default: 'Other'. */\n group?: string;\n /** Keybinding using 'mod' for Cmd/Ctrl, e.g. 'mod+shift+p'. */\n shortcut?: string;\n /** When set, command is only available while this AegisApp is active. */\n scope?: string;\n /** Hide from palette UI; still callable via execute() (used by agents). */\n agentOnly?: boolean;\n /** JSON-schema-ish param description for agents. Library doesn't parse it. */\n schema?: Record<string, unknown>;\n /** The actual side-effect. */\n handler: (args?: TArgs) => void | Promise<void>;\n /** Optional undo callback for hosts that offer Undo; CommandPalette never calls it. */\n undo?: () => void | Promise<void>;\n /** Optional aegis-ui agent action, registered while the palette row is rendered. */\n action?: AegisAction<void, unknown>;\n}\n\n/**\n * Contract exposed by the CommandProvider. Unlike auth/notifications,\n * the library owns this state — the registry only makes sense as a\n * library-managed runtime.\n */\nexport interface CommandContextValue {\n /** All registered commands, scope-filtered for the current active app. */\n commands: Command[];\n /** All registered commands regardless of scope (for agents). */\n allCommands: Command[];\n /** Register a batch of commands. Returns an unregister function. */\n register: (cmds: Command[]) => () => void;\n /** Set the active scope (called by AegisShell — apps don't touch this). */\n setActiveScope: (scope: string | undefined) => void;\n /** Execute by id. Throws if no command with that id. */\n execute: (id: string, args?: unknown) => Promise<void>;\n /** Open or close the palette. */\n setPaletteOpen: (open: boolean) => void;\n paletteOpen: boolean;\n}\n\nexport const defaultCommandContextValue: CommandContextValue = {\n commands: [],\n allCommands: [],\n register: () => () => undefined,\n setActiveScope: () => undefined,\n execute: () =>\n Promise.reject(new Error('No <CommandProvider> mounted above caller.')),\n setPaletteOpen: () => undefined,\n paletteOpen: false,\n};\n\nexport const CommandContext = createContext<CommandContextValue>(\n defaultCommandContextValue,\n);\n"],"names":["defaultCommandContextValue","CommandContext","createContext"],"mappings":"yGA2DaA,EAAkD,CAC7D,SAAU,CAAA,EACV,YAAa,CAAA,EACb,SAAU,IAAM,IAAA,GAChB,eAAgB,IAAA,GAChB,QAAS,IACP,QAAQ,OAAO,IAAI,MAAM,4CAA4C,CAAC,EACxE,eAAgB,IAAA,GAChB,YAAa,EACf,EAEaC,EAAiBC,EAAAA,cAC5BF,CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AegisAction } from '../agent/types';
|
|
2
|
+
import { AegisAction } from '../agent/core/types';
|
|
3
3
|
/**
|
|
4
4
|
* A single executable action surfaced through the command palette and,
|
|
5
5
|
* eventually, agent tool-calls. Commands are presentational contracts —
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createContext as e } from "react";
|
|
2
|
+
const o = {
|
|
3
|
+
commands: [],
|
|
4
|
+
allCommands: [],
|
|
5
|
+
register: () => () => {
|
|
6
|
+
},
|
|
7
|
+
setActiveScope: () => {
|
|
8
|
+
},
|
|
9
|
+
execute: () => Promise.reject(new Error("No <CommandProvider> mounted above caller.")),
|
|
10
|
+
setPaletteOpen: () => {
|
|
11
|
+
},
|
|
12
|
+
paletteOpen: !1
|
|
13
|
+
}, a = e(
|
|
14
|
+
o
|
|
15
|
+
);
|
|
16
|
+
export {
|
|
17
|
+
a as CommandContext,
|
|
18
|
+
o as defaultCommandContextValue
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=commandContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commandContext.js","sources":["../../src/commands/commandContext.ts"],"sourcesContent":["import { type ReactNode, createContext } from 'react';\n\nimport type { AegisAction } from '../agent/core/types';\n\n/**\n * A single executable action surfaced through the command palette and,\n * eventually, agent tool-calls. Commands are presentational contracts —\n * the host owns the side-effect inside `handler`.\n */\nexport interface Command<TArgs = unknown> {\n /** Globally unique id. Convention: 'app.action' e.g. 'projects.create'. */\n id: string;\n /** Human label shown in the palette. */\n label: string;\n /** Longer description — also shown to agents as tool description. */\n description?: string;\n /** Search keywords (lowercase). */\n keywords?: string[];\n /** Icon node shown in the palette row. */\n icon?: ReactNode;\n /** UI grouping (e.g. 'Quick actions', 'Navigate'). Default: 'Other'. */\n group?: string;\n /** Keybinding using 'mod' for Cmd/Ctrl, e.g. 'mod+shift+p'. */\n shortcut?: string;\n /** When set, command is only available while this AegisApp is active. */\n scope?: string;\n /** Hide from palette UI; still callable via execute() (used by agents). */\n agentOnly?: boolean;\n /** JSON-schema-ish param description for agents. Library doesn't parse it. */\n schema?: Record<string, unknown>;\n /** The actual side-effect. */\n handler: (args?: TArgs) => void | Promise<void>;\n /** Optional undo callback for hosts that offer Undo; CommandPalette never calls it. */\n undo?: () => void | Promise<void>;\n /** Optional aegis-ui agent action, registered while the palette row is rendered. */\n action?: AegisAction<void, unknown>;\n}\n\n/**\n * Contract exposed by the CommandProvider. Unlike auth/notifications,\n * the library owns this state — the registry only makes sense as a\n * library-managed runtime.\n */\nexport interface CommandContextValue {\n /** All registered commands, scope-filtered for the current active app. */\n commands: Command[];\n /** All registered commands regardless of scope (for agents). */\n allCommands: Command[];\n /** Register a batch of commands. Returns an unregister function. */\n register: (cmds: Command[]) => () => void;\n /** Set the active scope (called by AegisShell — apps don't touch this). */\n setActiveScope: (scope: string | undefined) => void;\n /** Execute by id. Throws if no command with that id. */\n execute: (id: string, args?: unknown) => Promise<void>;\n /** Open or close the palette. */\n setPaletteOpen: (open: boolean) => void;\n paletteOpen: boolean;\n}\n\nexport const defaultCommandContextValue: CommandContextValue = {\n commands: [],\n allCommands: [],\n register: () => () => undefined,\n setActiveScope: () => undefined,\n execute: () =>\n Promise.reject(new Error('No <CommandProvider> mounted above caller.')),\n setPaletteOpen: () => undefined,\n paletteOpen: false,\n};\n\nexport const CommandContext = createContext<CommandContextValue>(\n defaultCommandContextValue,\n);\n"],"names":["defaultCommandContextValue","CommandContext","createContext"],"mappings":";AA2DO,MAAMA,IAAkD;AAAA,EAC7D,UAAU,CAAA;AAAA,EACV,aAAa,CAAA;AAAA,EACb,UAAU,MAAM,MAAA;AAAA;AAAA,EAChB,gBAAgB,MAAA;AAAA;AAAA,EAChB,SAAS,MACP,QAAQ,OAAO,IAAI,MAAM,4CAA4C,CAAC;AAAA,EACxE,gBAAgB,MAAA;AAAA;AAAA,EAChB,aAAa;AACf,GAEaC,IAAiBC;AAAA,EAC5BF;AACF;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(){return typeof navigator>"u"?!1:/Mac|iPhone|iPad|iPod/i.test(navigator.platform)}function o(e){const r=e.toLowerCase().split("+").map(a=>a.trim()).filter(Boolean),t={mod:!1,ctrl:!1,shift:!1,alt:!1,key:""};for(const a of r)switch(a){case"mod":case"cmd":case"meta":t.mod=!0;break;case"ctrl":case"control":t.ctrl=!0;break;case"shift":t.shift=!0;break;case"alt":case"option":t.alt=!0;break;default:t.key=a}return t}function i(e){if(!(e instanceof HTMLElement))return!1;const r=e.tagName;return r==="INPUT"||r==="TEXTAREA"||r==="SELECT"?!0:e.isContentEditable}function f(e,r){const t=o(r);if(!t.key)return!1;if(t.mod){if(!(s()?e.metaKey:e.ctrlKey))return!1}else if(i(e.target)||e.metaKey||e.ctrlKey)return!1;return t.ctrl&&!e.ctrlKey||t.shift!==e.shiftKey||t.alt!==e.altKey?!1:e.key.toLowerCase()===t.key}function c(e){const r=o(e),t=s(),a=[];return r.mod&&a.push(t?"⌘":"Ctrl"),r.ctrl&&a.push(t?"⌃":"Ctrl"),r.alt&&a.push(t?"⌥":"Alt"),r.shift&&a.push(t?"⇧":"Shift"),r.key&&a.push(r.key.length===1?r.key.toUpperCase():r.key),t?a.join(""):a.join("+")}exports.formatShortcut=c;exports.matchShortcut=f;
|
|
2
|
+
//# sourceMappingURL=shortcut.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut.cjs","sources":["../../src/commands/shortcut.ts"],"sourcesContent":["/**\n * Tiny shortcut helper — parses 'mod+shift+p'-style bindings, matches\n * KeyboardEvents, and formats for display.\n *\n * 'mod' resolves to ⌘ on macOS and Ctrl elsewhere. Single-character\n * keys are matched case-insensitively against `event.key`.\n */\n\ninterface ParsedBinding {\n mod: boolean;\n ctrl: boolean;\n shift: boolean;\n alt: boolean;\n key: string;\n}\n\nfunction isMacPlatform(): boolean {\n if (typeof navigator === 'undefined') {\n return false;\n }\n return /Mac|iPhone|iPad|iPod/i.test(navigator.platform);\n}\n\nfunction parseBinding(binding: string): ParsedBinding {\n const parts = binding\n .toLowerCase()\n .split('+')\n .map((p) => p.trim())\n .filter(Boolean);\n const result: ParsedBinding = {\n mod: false,\n ctrl: false,\n shift: false,\n alt: false,\n key: '',\n };\n for (const part of parts) {\n switch (part) {\n case 'mod':\n case 'cmd':\n case 'meta':\n result.mod = true;\n break;\n case 'ctrl':\n case 'control':\n result.ctrl = true;\n break;\n case 'shift':\n result.shift = true;\n break;\n case 'alt':\n case 'option':\n result.alt = true;\n break;\n default:\n result.key = part;\n }\n }\n return result;\n}\n\nfunction isEditableTarget(target: EventTarget | null): boolean {\n if (!(target instanceof HTMLElement)) {\n return false;\n }\n const tag = target.tagName;\n if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT') {\n return true;\n }\n return target.isContentEditable;\n}\n\nexport function matchShortcut(event: KeyboardEvent, binding: string): boolean {\n const parsed = parseBinding(binding);\n if (!parsed.key) {\n return false;\n }\n\n if (parsed.mod) {\n const isMac = isMacPlatform();\n const modPressed = isMac ? event.metaKey : event.ctrlKey;\n if (!modPressed) {\n return false;\n }\n } else {\n if (isEditableTarget(event.target)) {\n return false;\n }\n if (event.metaKey || event.ctrlKey) {\n return false;\n }\n }\n\n if (parsed.ctrl && !event.ctrlKey) {\n return false;\n }\n if (parsed.shift !== event.shiftKey) {\n return false;\n }\n if (parsed.alt !== event.altKey) {\n return false;\n }\n\n return event.key.toLowerCase() === parsed.key;\n}\n\nexport function formatShortcut(binding: string): string {\n const parsed = parseBinding(binding);\n const isMac = isMacPlatform();\n const tokens: string[] = [];\n if (parsed.mod) {\n tokens.push(isMac ? '⌘' : 'Ctrl');\n }\n if (parsed.ctrl) {\n tokens.push(isMac ? '⌃' : 'Ctrl');\n }\n if (parsed.alt) {\n tokens.push(isMac ? '⌥' : 'Alt');\n }\n if (parsed.shift) {\n tokens.push(isMac ? '⇧' : 'Shift');\n }\n if (parsed.key) {\n tokens.push(\n parsed.key.length === 1 ? parsed.key.toUpperCase() : parsed.key,\n );\n }\n return isMac ? tokens.join('') : tokens.join('+');\n}\n"],"names":["isMacPlatform","parseBinding","binding","parts","p","result","part","isEditableTarget","target","tag","matchShortcut","event","parsed","formatShortcut","isMac","tokens"],"mappings":"gFAgBA,SAASA,GAAyB,CAChC,OAAI,OAAO,UAAc,IAChB,GAEF,wBAAwB,KAAK,UAAU,QAAQ,CACxD,CAEA,SAASC,EAAaC,EAAgC,CACpD,MAAMC,EAAQD,EACX,YAAA,EACA,MAAM,GAAG,EACT,IAAKE,GAAMA,EAAE,KAAA,CAAM,EACnB,OAAO,OAAO,EACXC,EAAwB,CAC5B,IAAK,GACL,KAAM,GACN,MAAO,GACP,IAAK,GACL,IAAK,EAAA,EAEP,UAAWC,KAAQH,EACjB,OAAQG,EAAA,CACN,IAAK,MACL,IAAK,MACL,IAAK,OACHD,EAAO,IAAM,GACb,MACF,IAAK,OACL,IAAK,UACHA,EAAO,KAAO,GACd,MACF,IAAK,QACHA,EAAO,MAAQ,GACf,MACF,IAAK,MACL,IAAK,SACHA,EAAO,IAAM,GACb,MACF,QACEA,EAAO,IAAMC,CAAA,CAGnB,OAAOD,CACT,CAEA,SAASE,EAAiBC,EAAqC,CAC7D,GAAI,EAAEA,aAAkB,aACtB,MAAO,GAET,MAAMC,EAAMD,EAAO,QACnB,OAAIC,IAAQ,SAAWA,IAAQ,YAAcA,IAAQ,SAC5C,GAEFD,EAAO,iBAChB,CAEO,SAASE,EAAcC,EAAsBT,EAA0B,CAC5E,MAAMU,EAASX,EAAaC,CAAO,EACnC,GAAI,CAACU,EAAO,IACV,MAAO,GAGT,GAAIA,EAAO,KAGT,GAAI,EAFUZ,EAAA,EACaW,EAAM,QAAUA,EAAM,SAE/C,MAAO,WAGLJ,EAAiBI,EAAM,MAAM,GAG7BA,EAAM,SAAWA,EAAM,QACzB,MAAO,GAUX,OANIC,EAAO,MAAQ,CAACD,EAAM,SAGtBC,EAAO,QAAUD,EAAM,UAGvBC,EAAO,MAAQD,EAAM,OAChB,GAGFA,EAAM,IAAI,YAAA,IAAkBC,EAAO,GAC5C,CAEO,SAASC,EAAeX,EAAyB,CACtD,MAAMU,EAASX,EAAaC,CAAO,EAC7BY,EAAQd,EAAA,EACRe,EAAmB,CAAA,EACzB,OAAIH,EAAO,KACTG,EAAO,KAAKD,EAAQ,IAAM,MAAM,EAE9BF,EAAO,MACTG,EAAO,KAAKD,EAAQ,IAAM,MAAM,EAE9BF,EAAO,KACTG,EAAO,KAAKD,EAAQ,IAAM,KAAK,EAE7BF,EAAO,OACTG,EAAO,KAAKD,EAAQ,IAAM,OAAO,EAE/BF,EAAO,KACTG,EAAO,KACLH,EAAO,IAAI,SAAW,EAAIA,EAAO,IAAI,YAAA,EAAgBA,EAAO,GAAA,EAGzDE,EAAQC,EAAO,KAAK,EAAE,EAAIA,EAAO,KAAK,GAAG,CAClD"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
function a() {
|
|
2
|
+
return typeof navigator > "u" ? !1 : /Mac|iPhone|iPad|iPod/i.test(navigator.platform);
|
|
3
|
+
}
|
|
4
|
+
function i(e) {
|
|
5
|
+
const r = e.toLowerCase().split("+").map((s) => s.trim()).filter(Boolean), t = {
|
|
6
|
+
mod: !1,
|
|
7
|
+
ctrl: !1,
|
|
8
|
+
shift: !1,
|
|
9
|
+
alt: !1,
|
|
10
|
+
key: ""
|
|
11
|
+
};
|
|
12
|
+
for (const s of r)
|
|
13
|
+
switch (s) {
|
|
14
|
+
case "mod":
|
|
15
|
+
case "cmd":
|
|
16
|
+
case "meta":
|
|
17
|
+
t.mod = !0;
|
|
18
|
+
break;
|
|
19
|
+
case "ctrl":
|
|
20
|
+
case "control":
|
|
21
|
+
t.ctrl = !0;
|
|
22
|
+
break;
|
|
23
|
+
case "shift":
|
|
24
|
+
t.shift = !0;
|
|
25
|
+
break;
|
|
26
|
+
case "alt":
|
|
27
|
+
case "option":
|
|
28
|
+
t.alt = !0;
|
|
29
|
+
break;
|
|
30
|
+
default:
|
|
31
|
+
t.key = s;
|
|
32
|
+
}
|
|
33
|
+
return t;
|
|
34
|
+
}
|
|
35
|
+
function f(e) {
|
|
36
|
+
if (!(e instanceof HTMLElement))
|
|
37
|
+
return !1;
|
|
38
|
+
const r = e.tagName;
|
|
39
|
+
return r === "INPUT" || r === "TEXTAREA" || r === "SELECT" ? !0 : e.isContentEditable;
|
|
40
|
+
}
|
|
41
|
+
function n(e, r) {
|
|
42
|
+
const t = i(r);
|
|
43
|
+
if (!t.key)
|
|
44
|
+
return !1;
|
|
45
|
+
if (t.mod) {
|
|
46
|
+
if (!(a() ? e.metaKey : e.ctrlKey))
|
|
47
|
+
return !1;
|
|
48
|
+
} else if (f(e.target) || e.metaKey || e.ctrlKey)
|
|
49
|
+
return !1;
|
|
50
|
+
return t.ctrl && !e.ctrlKey || t.shift !== e.shiftKey || t.alt !== e.altKey ? !1 : e.key.toLowerCase() === t.key;
|
|
51
|
+
}
|
|
52
|
+
function c(e) {
|
|
53
|
+
const r = i(e), t = a(), s = [];
|
|
54
|
+
return r.mod && s.push(t ? "⌘" : "Ctrl"), r.ctrl && s.push(t ? "⌃" : "Ctrl"), r.alt && s.push(t ? "⌥" : "Alt"), r.shift && s.push(t ? "⇧" : "Shift"), r.key && s.push(
|
|
55
|
+
r.key.length === 1 ? r.key.toUpperCase() : r.key
|
|
56
|
+
), t ? s.join("") : s.join("+");
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
c as formatShortcut,
|
|
60
|
+
n as matchShortcut
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=shortcut.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortcut.js","sources":["../../src/commands/shortcut.ts"],"sourcesContent":["/**\n * Tiny shortcut helper — parses 'mod+shift+p'-style bindings, matches\n * KeyboardEvents, and formats for display.\n *\n * 'mod' resolves to ⌘ on macOS and Ctrl elsewhere. Single-character\n * keys are matched case-insensitively against `event.key`.\n */\n\ninterface ParsedBinding {\n mod: boolean;\n ctrl: boolean;\n shift: boolean;\n alt: boolean;\n key: string;\n}\n\nfunction isMacPlatform(): boolean {\n if (typeof navigator === 'undefined') {\n return false;\n }\n return /Mac|iPhone|iPad|iPod/i.test(navigator.platform);\n}\n\nfunction parseBinding(binding: string): ParsedBinding {\n const parts = binding\n .toLowerCase()\n .split('+')\n .map((p) => p.trim())\n .filter(Boolean);\n const result: ParsedBinding = {\n mod: false,\n ctrl: false,\n shift: false,\n alt: false,\n key: '',\n };\n for (const part of parts) {\n switch (part) {\n case 'mod':\n case 'cmd':\n case 'meta':\n result.mod = true;\n break;\n case 'ctrl':\n case 'control':\n result.ctrl = true;\n break;\n case 'shift':\n result.shift = true;\n break;\n case 'alt':\n case 'option':\n result.alt = true;\n break;\n default:\n result.key = part;\n }\n }\n return result;\n}\n\nfunction isEditableTarget(target: EventTarget | null): boolean {\n if (!(target instanceof HTMLElement)) {\n return false;\n }\n const tag = target.tagName;\n if (tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT') {\n return true;\n }\n return target.isContentEditable;\n}\n\nexport function matchShortcut(event: KeyboardEvent, binding: string): boolean {\n const parsed = parseBinding(binding);\n if (!parsed.key) {\n return false;\n }\n\n if (parsed.mod) {\n const isMac = isMacPlatform();\n const modPressed = isMac ? event.metaKey : event.ctrlKey;\n if (!modPressed) {\n return false;\n }\n } else {\n if (isEditableTarget(event.target)) {\n return false;\n }\n if (event.metaKey || event.ctrlKey) {\n return false;\n }\n }\n\n if (parsed.ctrl && !event.ctrlKey) {\n return false;\n }\n if (parsed.shift !== event.shiftKey) {\n return false;\n }\n if (parsed.alt !== event.altKey) {\n return false;\n }\n\n return event.key.toLowerCase() === parsed.key;\n}\n\nexport function formatShortcut(binding: string): string {\n const parsed = parseBinding(binding);\n const isMac = isMacPlatform();\n const tokens: string[] = [];\n if (parsed.mod) {\n tokens.push(isMac ? '⌘' : 'Ctrl');\n }\n if (parsed.ctrl) {\n tokens.push(isMac ? '⌃' : 'Ctrl');\n }\n if (parsed.alt) {\n tokens.push(isMac ? '⌥' : 'Alt');\n }\n if (parsed.shift) {\n tokens.push(isMac ? '⇧' : 'Shift');\n }\n if (parsed.key) {\n tokens.push(\n parsed.key.length === 1 ? parsed.key.toUpperCase() : parsed.key,\n );\n }\n return isMac ? tokens.join('') : tokens.join('+');\n}\n"],"names":["isMacPlatform","parseBinding","binding","parts","p","result","part","isEditableTarget","target","tag","matchShortcut","event","parsed","formatShortcut","isMac","tokens"],"mappings":"AAgBA,SAASA,IAAyB;AAChC,SAAI,OAAO,YAAc,MAChB,KAEF,wBAAwB,KAAK,UAAU,QAAQ;AACxD;AAEA,SAASC,EAAaC,GAAgC;AACpD,QAAMC,IAAQD,EACX,YAAA,EACA,MAAM,GAAG,EACT,IAAI,CAACE,MAAMA,EAAE,KAAA,CAAM,EACnB,OAAO,OAAO,GACXC,IAAwB;AAAA,IAC5B,KAAK;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,KAAK;AAAA,IACL,KAAK;AAAA,EAAA;AAEP,aAAWC,KAAQH;AACjB,YAAQG,GAAA;AAAA,MACN,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AACH,QAAAD,EAAO,MAAM;AACb;AAAA,MACF,KAAK;AAAA,MACL,KAAK;AACH,QAAAA,EAAO,OAAO;AACd;AAAA,MACF,KAAK;AACH,QAAAA,EAAO,QAAQ;AACf;AAAA,MACF,KAAK;AAAA,MACL,KAAK;AACH,QAAAA,EAAO,MAAM;AACb;AAAA,MACF;AACE,QAAAA,EAAO,MAAMC;AAAA,IAAA;AAGnB,SAAOD;AACT;AAEA,SAASE,EAAiBC,GAAqC;AAC7D,MAAI,EAAEA,aAAkB;AACtB,WAAO;AAET,QAAMC,IAAMD,EAAO;AACnB,SAAIC,MAAQ,WAAWA,MAAQ,cAAcA,MAAQ,WAC5C,KAEFD,EAAO;AAChB;AAEO,SAASE,EAAcC,GAAsBT,GAA0B;AAC5E,QAAMU,IAASX,EAAaC,CAAO;AACnC,MAAI,CAACU,EAAO;AACV,WAAO;AAGT,MAAIA,EAAO;AAGT,QAAI,EAFUZ,EAAA,IACaW,EAAM,UAAUA,EAAM;AAE/C,aAAO;AAAA,aAGLJ,EAAiBI,EAAM,MAAM,KAG7BA,EAAM,WAAWA,EAAM;AACzB,WAAO;AAUX,SANIC,EAAO,QAAQ,CAACD,EAAM,WAGtBC,EAAO,UAAUD,EAAM,YAGvBC,EAAO,QAAQD,EAAM,SAChB,KAGFA,EAAM,IAAI,YAAA,MAAkBC,EAAO;AAC5C;AAEO,SAASC,EAAeX,GAAyB;AACtD,QAAMU,IAASX,EAAaC,CAAO,GAC7BY,IAAQd,EAAA,GACRe,IAAmB,CAAA;AACzB,SAAIH,EAAO,OACTG,EAAO,KAAKD,IAAQ,MAAM,MAAM,GAE9BF,EAAO,QACTG,EAAO,KAAKD,IAAQ,MAAM,MAAM,GAE9BF,EAAO,OACTG,EAAO,KAAKD,IAAQ,MAAM,KAAK,GAE7BF,EAAO,SACTG,EAAO,KAAKD,IAAQ,MAAM,OAAO,GAE/BF,EAAO,OACTG,EAAO;AAAA,IACLH,EAAO,IAAI,WAAW,IAAIA,EAAO,IAAI,YAAA,IAAgBA,EAAO;AAAA,EAAA,GAGzDE,IAAQC,EAAO,KAAK,EAAE,IAAIA,EAAO,KAAK,GAAG;AAClD;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCommands.cjs","sources":["../../src/commands/useCommands.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { CommandContext, type CommandContextValue } from './commandContext';\n\n/**\n * Read the command registry context. Returns the default no-op value\n * when no <CommandProvider> is mounted above the caller.\n */\nexport function useCommands(): CommandContextValue {\n return useContext(CommandContext);\n}\n"],"names":["useCommands","useContext","CommandContext"],"mappings":"2IAQO,SAASA,GAAmC,CACjD,OAAOC,EAAAA,WAAWC,EAAAA,cAAc,CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCommands.js","sources":["../../src/commands/useCommands.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { CommandContext, type CommandContextValue } from './commandContext';\n\n/**\n * Read the command registry context. Returns the default no-op value\n * when no <CommandProvider> is mounted above the caller.\n */\nexport function useCommands(): CommandContextValue {\n return useContext(CommandContext);\n}\n"],"names":["useCommands","useContext","CommandContext"],"mappings":";;AAQO,SAASA,IAAmC;AACjD,SAAOC,EAAWC,CAAc;AAClC;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),o=require("./useCommands.cjs");function i(e){const{register:r}=o.useCommands(),s=n.useRef(e);s.current=e;const u=e.map(t=>t.id).join("|");n.useEffect(()=>r(s.current),[r,u])}exports.useRegisterCommands=i;
|
|
2
|
+
//# sourceMappingURL=useRegisterCommands.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRegisterCommands.cjs","sources":["../../src/commands/useRegisterCommands.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\nimport type { Command } from './commandContext';\nimport { useCommands } from './useCommands';\n\n/**\n * Register a batch of commands while the calling component is mounted.\n * The effect re-runs only when the set of command ids changes — passing\n * a new array literal every render does not thrash the registry.\n */\nexport function useRegisterCommands(cmds: Command[]): void {\n const { register } = useCommands();\n const cmdsRef = useRef(cmds);\n cmdsRef.current = cmds;\n\n const idsKey = cmds.map((c) => c.id).join('|');\n\n useEffect(() => {\n const unregister = register(cmdsRef.current);\n return unregister;\n }, [register, idsKey]);\n}\n"],"names":["useRegisterCommands","cmds","register","useCommands","cmdsRef","useRef","idsKey","c","useEffect"],"mappings":"wIAUO,SAASA,EAAoBC,EAAuB,CACzD,KAAM,CAAE,SAAAC,CAAA,EAAaC,cAAA,EACfC,EAAUC,EAAAA,OAAOJ,CAAI,EAC3BG,EAAQ,QAAUH,EAElB,MAAMK,EAASL,EAAK,IAAKM,GAAMA,EAAE,EAAE,EAAE,KAAK,GAAG,EAE7CC,EAAAA,UAAU,IACWN,EAASE,EAAQ,OAAO,EAE1C,CAACF,EAAUI,CAAM,CAAC,CACvB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useRef as o, useEffect as i } from "react";
|
|
2
|
+
import { useCommands as u } from "./useCommands.js";
|
|
3
|
+
function f(e) {
|
|
4
|
+
const { register: r } = u(), t = o(e);
|
|
5
|
+
t.current = e;
|
|
6
|
+
const s = e.map((n) => n.id).join("|");
|
|
7
|
+
i(() => r(t.current), [r, s]);
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
f as useRegisterCommands
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=useRegisterCommands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRegisterCommands.js","sources":["../../src/commands/useRegisterCommands.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\nimport type { Command } from './commandContext';\nimport { useCommands } from './useCommands';\n\n/**\n * Register a batch of commands while the calling component is mounted.\n * The effect re-runs only when the set of command ids changes — passing\n * a new array literal every render does not thrash the registry.\n */\nexport function useRegisterCommands(cmds: Command[]): void {\n const { register } = useCommands();\n const cmdsRef = useRef(cmds);\n cmdsRef.current = cmds;\n\n const idsKey = cmds.map((c) => c.id).join('|');\n\n useEffect(() => {\n const unregister = register(cmdsRef.current);\n return unregister;\n }, [register, idsKey]);\n}\n"],"names":["useRegisterCommands","cmds","register","useCommands","cmdsRef","useRef","idsKey","c","useEffect"],"mappings":";;AAUO,SAASA,EAAoBC,GAAuB;AACzD,QAAM,EAAE,UAAAC,EAAA,IAAaC,EAAA,GACfC,IAAUC,EAAOJ,CAAI;AAC3B,EAAAG,EAAQ,UAAUH;AAElB,QAAMK,IAASL,EAAK,IAAI,CAACM,MAAMA,EAAE,EAAE,EAAE,KAAK,GAAG;AAE7C,EAAAC,EAAU,MACWN,EAASE,EAAQ,OAAO,GAE1C,CAACF,GAAUI,CAAM,CAAC;AACvB;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),o=require("../../agent/core/usePrimitiveSurface.cjs");;/* empty css */function d({title:n,headerActions:a,children:l,footer:s,className:t,surface:r}){const i=u.useRef(null),c=o.usePrimitiveSurface(r,null,"panel",i),g=["aegis-agent-panel",t??""].filter(Boolean).join(" ");return e.jsxs("aside",{ref:i,className:g,"aria-label":"Agent panel",...c,children:[(n??a)&&e.jsxs("header",{className:"aegis-agent-panel__header",children:[e.jsx("div",{className:"aegis-agent-panel__title",children:n}),a&&e.jsx("div",{className:"aegis-agent-panel__actions",children:a})]}),e.jsx("div",{className:"aegis-agent-panel__body",children:l}),s&&e.jsx("div",{className:"aegis-agent-panel__footer",children:s})]})}exports.AgentPanel=d;
|
|
2
|
+
//# sourceMappingURL=AgentPanel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentPanel.cjs","sources":["../../../src/components/ui/AgentPanel.tsx"],"sourcesContent":["import { type ReactNode, useRef } from 'react';\n\nimport {\n type ContainerSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './AgentPanel.css';\n\nexport type AgentPanelSurface = ContainerSurface;\n\ninterface AgentPanelProps {\n title?: ReactNode;\n /** Header right-side slot (e.g. close button). */\n headerActions?: ReactNode;\n /** The conversation area — typically ChatMessageList. */\n children: ReactNode;\n /** Sticky footer — typically ChatComposer. */\n footer?: ReactNode;\n className?: string;\n surface?: AgentPanelSurface;\n}\n\nexport function AgentPanel({\n title,\n headerActions,\n children,\n footer,\n className,\n surface,\n}: AgentPanelProps) {\n const wrapRef = useRef<HTMLElement>(null);\n const agentAttrs = usePrimitiveSurface(surface, null, 'panel', wrapRef);\n const cls = ['aegis-agent-panel', className ?? ''].filter(Boolean).join(' ');\n\n return (\n <aside\n ref={wrapRef}\n className={cls}\n aria-label=\"Agent panel\"\n {...agentAttrs}\n >\n {(title ?? headerActions) && (\n <header className=\"aegis-agent-panel__header\">\n <div className=\"aegis-agent-panel__title\">{title}</div>\n {headerActions && (\n <div className=\"aegis-agent-panel__actions\">{headerActions}</div>\n )}\n </header>\n )}\n <div className=\"aegis-agent-panel__body\">{children}</div>\n {footer && <div className=\"aegis-agent-panel__footer\">{footer}</div>}\n </aside>\n );\n}\n"],"names":["AgentPanel","title","headerActions","children","footer","className","surface","wrapRef","useRef","agentAttrs","usePrimitiveSurface","cls","jsxs","jsx"],"mappings":"8NAsBO,SAASA,EAAW,CACzB,MAAAC,EACA,cAAAC,EACA,SAAAC,EACA,OAAAC,EACA,UAAAC,EACA,QAAAC,CACF,EAAoB,CAClB,MAAMC,EAAUC,EAAAA,OAAoB,IAAI,EAClCC,EAAaC,EAAAA,oBAAoBJ,EAAS,KAAM,QAASC,CAAO,EAChEI,EAAM,CAAC,oBAAqBN,GAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAE3E,OACEO,EAAAA,KAAC,QAAA,CACC,IAAKL,EACL,UAAWI,EACX,aAAW,cACV,GAAGF,EAEF,SAAA,EAAAR,GAASC,IACTU,EAAAA,KAAC,SAAA,CAAO,UAAU,4BAChB,SAAA,CAAAC,EAAAA,IAAC,MAAA,CAAI,UAAU,2BAA4B,SAAAZ,EAAM,EAChDC,GACCW,EAAAA,IAAC,MAAA,CAAI,UAAU,6BAA8B,SAAAX,CAAA,CAAc,CAAA,EAE/D,EAEFW,EAAAA,IAAC,MAAA,CAAI,UAAU,0BAA2B,SAAAV,CAAA,CAAS,EAClDC,GAAUS,EAAAA,IAAC,MAAA,CAAI,UAAU,4BAA6B,SAAAT,CAAA,CAAO,CAAA,CAAA,CAAA,CAGpE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { ContainerSurface } from '../../agent/usePrimitiveSurface';
|
|
2
|
+
import { ContainerSurface } from '../../agent/core/usePrimitiveSurface';
|
|
3
3
|
export type AgentPanelSurface = ContainerSurface;
|
|
4
4
|
interface AgentPanelProps {
|
|
5
5
|
title?: ReactNode;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as m } from "react";
|
|
3
|
+
import { usePrimitiveSurface as p } from "../../agent/core/usePrimitiveSurface.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function N({
|
|
6
|
+
title: n,
|
|
7
|
+
headerActions: a,
|
|
8
|
+
children: r,
|
|
9
|
+
footer: l,
|
|
10
|
+
className: t,
|
|
11
|
+
surface: c
|
|
12
|
+
}) {
|
|
13
|
+
const s = m(null), g = p(c, null, "panel", s), o = ["aegis-agent-panel", t ?? ""].filter(Boolean).join(" ");
|
|
14
|
+
return /* @__PURE__ */ i(
|
|
15
|
+
"aside",
|
|
16
|
+
{
|
|
17
|
+
ref: s,
|
|
18
|
+
className: o,
|
|
19
|
+
"aria-label": "Agent panel",
|
|
20
|
+
...g,
|
|
21
|
+
children: [
|
|
22
|
+
(n ?? a) && /* @__PURE__ */ i("header", { className: "aegis-agent-panel__header", children: [
|
|
23
|
+
/* @__PURE__ */ e("div", { className: "aegis-agent-panel__title", children: n }),
|
|
24
|
+
a && /* @__PURE__ */ e("div", { className: "aegis-agent-panel__actions", children: a })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ e("div", { className: "aegis-agent-panel__body", children: r }),
|
|
27
|
+
l && /* @__PURE__ */ e("div", { className: "aegis-agent-panel__footer", children: l })
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
N as AgentPanel
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=AgentPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AgentPanel.js","sources":["../../../src/components/ui/AgentPanel.tsx"],"sourcesContent":["import { type ReactNode, useRef } from 'react';\n\nimport {\n type ContainerSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './AgentPanel.css';\n\nexport type AgentPanelSurface = ContainerSurface;\n\ninterface AgentPanelProps {\n title?: ReactNode;\n /** Header right-side slot (e.g. close button). */\n headerActions?: ReactNode;\n /** The conversation area — typically ChatMessageList. */\n children: ReactNode;\n /** Sticky footer — typically ChatComposer. */\n footer?: ReactNode;\n className?: string;\n surface?: AgentPanelSurface;\n}\n\nexport function AgentPanel({\n title,\n headerActions,\n children,\n footer,\n className,\n surface,\n}: AgentPanelProps) {\n const wrapRef = useRef<HTMLElement>(null);\n const agentAttrs = usePrimitiveSurface(surface, null, 'panel', wrapRef);\n const cls = ['aegis-agent-panel', className ?? ''].filter(Boolean).join(' ');\n\n return (\n <aside\n ref={wrapRef}\n className={cls}\n aria-label=\"Agent panel\"\n {...agentAttrs}\n >\n {(title ?? headerActions) && (\n <header className=\"aegis-agent-panel__header\">\n <div className=\"aegis-agent-panel__title\">{title}</div>\n {headerActions && (\n <div className=\"aegis-agent-panel__actions\">{headerActions}</div>\n )}\n </header>\n )}\n <div className=\"aegis-agent-panel__body\">{children}</div>\n {footer && <div className=\"aegis-agent-panel__footer\">{footer}</div>}\n </aside>\n );\n}\n"],"names":["AgentPanel","title","headerActions","children","footer","className","surface","wrapRef","useRef","agentAttrs","usePrimitiveSurface","cls","jsxs","jsx"],"mappings":";;;;AAsBO,SAASA,EAAW;AAAA,EACzB,OAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AACF,GAAoB;AAClB,QAAMC,IAAUC,EAAoB,IAAI,GAClCC,IAAaC,EAAoBJ,GAAS,MAAM,SAASC,CAAO,GAChEI,IAAM,CAAC,qBAAqBN,KAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAE3E,SACE,gBAAAO;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAKL;AAAA,MACL,WAAWI;AAAA,MACX,cAAW;AAAA,MACV,GAAGF;AAAA,MAEF,UAAA;AAAA,SAAAR,KAASC,MACT,gBAAAU,EAAC,UAAA,EAAO,WAAU,6BAChB,UAAA;AAAA,UAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,4BAA4B,UAAAZ,GAAM;AAAA,UAChDC,KACC,gBAAAW,EAAC,OAAA,EAAI,WAAU,8BAA8B,UAAAX,EAAA,CAAc;AAAA,QAAA,GAE/D;AAAA,QAEF,gBAAAW,EAAC,OAAA,EAAI,WAAU,2BAA2B,UAAAV,EAAA,CAAS;AAAA,QAClDC,KAAU,gBAAAS,EAAC,OAAA,EAAI,WAAU,6BAA6B,UAAAT,EAAA,CAAO;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGpE;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */const c=require("../../locale/useStrings.cjs");function o({tone:a="info",title:s,icon:r,children:t,className:i}){const l=c.useStrings(),n=["aegis-alert",`aegis-alert--${a}`,s===void 0?"":"aegis-alert--titled",i??""].filter(Boolean).join(" ");return e.jsxs("div",{className:n,role:"status",children:[e.jsx("span",{className:"aegis-alert__marker","aria-hidden":"true",children:r??e.jsx("span",{className:"aegis-alert__dot"})}),e.jsxs("div",{className:"aegis-alert__content",children:[e.jsx("span",{className:"aegis-alert__tone",children:l.alertTone(a)}),s!==void 0&&e.jsx("span",{className:"aegis-alert__title",children:s}),e.jsx("span",{className:"aegis-alert__body",children:t})]})]})}exports.Alert=o;
|
|
2
|
+
//# sourceMappingURL=Alert.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.cjs","sources":["../../../src/components/ui/Alert.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { useStrings } from '../../locale';\nimport './Alert.css';\n\ntype AlertTone = 'info' | 'success' | 'warning' | 'error';\n\ninterface AlertProps {\n /** `error` is the anomaly tone — only for failures, never for emphasis. */\n tone?: AlertTone;\n /** Strong heading over a muted body, e.g. a verdict and its summary. */\n title?: ReactNode;\n /** Leading icon in place of the tone dot, e.g. a verdict glyph. */\n icon?: ReactNode;\n children: ReactNode;\n className?: string;\n}\n\nexport function Alert({\n tone = 'info',\n title,\n icon,\n children,\n className,\n}: AlertProps) {\n const strings = useStrings();\n const cls = [\n 'aegis-alert',\n `aegis-alert--${tone}`,\n title === undefined ? '' : 'aegis-alert--titled',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n return (\n <div className={cls} role=\"status\">\n <span className=\"aegis-alert__marker\" aria-hidden=\"true\">\n {icon ?? <span className=\"aegis-alert__dot\" />}\n </span>\n <div className=\"aegis-alert__content\">\n <span className=\"aegis-alert__tone\">{strings.alertTone(tone)}</span>\n {title !== undefined && (\n <span className=\"aegis-alert__title\">{title}</span>\n )}\n <span className=\"aegis-alert__body\">{children}</span>\n </div>\n </div>\n );\n}\n"],"names":["Alert","tone","title","icon","children","className","strings","useStrings","cls","jsxs","jsx"],"mappings":"+LAkBO,SAASA,EAAM,CACpB,KAAAC,EAAO,OACP,MAAAC,EACA,KAAAC,EACA,SAAAC,EACA,UAAAC,CACF,EAAe,CACb,MAAMC,EAAUC,EAAAA,WAAA,EACVC,EAAM,CACV,cACA,gBAAgBP,CAAI,GACpBC,IAAU,OAAY,GAAK,sBAC3BG,GAAa,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG,EACX,OACEI,EAAAA,KAAC,MAAA,CAAI,UAAWD,EAAK,KAAK,SACxB,SAAA,CAAAE,EAAAA,IAAC,OAAA,CAAK,UAAU,sBAAsB,cAAY,OAC/C,YAAQA,EAAAA,IAAC,OAAA,CAAK,UAAU,kBAAA,CAAmB,CAAA,CAC9C,EACAD,EAAAA,KAAC,MAAA,CAAI,UAAU,uBACb,SAAA,CAAAC,MAAC,QAAK,UAAU,oBAAqB,SAAAJ,EAAQ,UAAUL,CAAI,EAAE,EAC5DC,IAAU,QACTQ,EAAAA,IAAC,OAAA,CAAK,UAAU,qBAAsB,SAAAR,EAAM,EAE9CQ,EAAAA,IAAC,OAAA,CAAK,UAAU,oBAAqB,SAAAN,CAAA,CAAS,CAAA,CAAA,CAChD,CAAA,EACF,CAEJ"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { useStrings as c } from "../../locale/useStrings.js";
|
|
4
|
+
function g({
|
|
5
|
+
tone: s = "info",
|
|
6
|
+
title: e,
|
|
7
|
+
icon: i,
|
|
8
|
+
children: t,
|
|
9
|
+
className: l
|
|
10
|
+
}) {
|
|
11
|
+
const n = c(), o = [
|
|
12
|
+
"aegis-alert",
|
|
13
|
+
`aegis-alert--${s}`,
|
|
14
|
+
e === void 0 ? "" : "aegis-alert--titled",
|
|
15
|
+
l ?? ""
|
|
16
|
+
].filter(Boolean).join(" ");
|
|
17
|
+
return /* @__PURE__ */ r("div", { className: o, role: "status", children: [
|
|
18
|
+
/* @__PURE__ */ a("span", { className: "aegis-alert__marker", "aria-hidden": "true", children: i ?? /* @__PURE__ */ a("span", { className: "aegis-alert__dot" }) }),
|
|
19
|
+
/* @__PURE__ */ r("div", { className: "aegis-alert__content", children: [
|
|
20
|
+
/* @__PURE__ */ a("span", { className: "aegis-alert__tone", children: n.alertTone(s) }),
|
|
21
|
+
e !== void 0 && /* @__PURE__ */ a("span", { className: "aegis-alert__title", children: e }),
|
|
22
|
+
/* @__PURE__ */ a("span", { className: "aegis-alert__body", children: t })
|
|
23
|
+
] })
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
g as Alert
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=Alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.js","sources":["../../../src/components/ui/Alert.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { useStrings } from '../../locale';\nimport './Alert.css';\n\ntype AlertTone = 'info' | 'success' | 'warning' | 'error';\n\ninterface AlertProps {\n /** `error` is the anomaly tone — only for failures, never for emphasis. */\n tone?: AlertTone;\n /** Strong heading over a muted body, e.g. a verdict and its summary. */\n title?: ReactNode;\n /** Leading icon in place of the tone dot, e.g. a verdict glyph. */\n icon?: ReactNode;\n children: ReactNode;\n className?: string;\n}\n\nexport function Alert({\n tone = 'info',\n title,\n icon,\n children,\n className,\n}: AlertProps) {\n const strings = useStrings();\n const cls = [\n 'aegis-alert',\n `aegis-alert--${tone}`,\n title === undefined ? '' : 'aegis-alert--titled',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n return (\n <div className={cls} role=\"status\">\n <span className=\"aegis-alert__marker\" aria-hidden=\"true\">\n {icon ?? <span className=\"aegis-alert__dot\" />}\n </span>\n <div className=\"aegis-alert__content\">\n <span className=\"aegis-alert__tone\">{strings.alertTone(tone)}</span>\n {title !== undefined && (\n <span className=\"aegis-alert__title\">{title}</span>\n )}\n <span className=\"aegis-alert__body\">{children}</span>\n </div>\n </div>\n );\n}\n"],"names":["Alert","tone","title","icon","children","className","strings","useStrings","cls","jsxs","jsx"],"mappings":";;;AAkBO,SAASA,EAAM;AAAA,EACpB,MAAAC,IAAO;AAAA,EACP,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,GAAe;AACb,QAAMC,IAAUC,EAAA,GACVC,IAAM;AAAA,IACV;AAAA,IACA,gBAAgBP,CAAI;AAAA,IACpBC,MAAU,SAAY,KAAK;AAAA,IAC3BG,KAAa;AAAA,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG;AACX,SACE,gBAAAI,EAAC,OAAA,EAAI,WAAWD,GAAK,MAAK,UACxB,UAAA;AAAA,IAAA,gBAAAE,EAAC,QAAA,EAAK,WAAU,uBAAsB,eAAY,QAC/C,eAAQ,gBAAAA,EAAC,QAAA,EAAK,WAAU,mBAAA,CAAmB,EAAA,CAC9C;AAAA,IACA,gBAAAD,EAAC,OAAA,EAAI,WAAU,wBACb,UAAA;AAAA,MAAA,gBAAAC,EAAC,UAAK,WAAU,qBAAqB,UAAAJ,EAAQ,UAAUL,CAAI,GAAE;AAAA,MAC5DC,MAAU,UACT,gBAAAQ,EAAC,QAAA,EAAK,WAAU,sBAAsB,UAAAR,GAAM;AAAA,MAE9C,gBAAAQ,EAAC,QAAA,EAAK,WAAU,qBAAqB,UAAAN,EAAA,CAAS;AAAA,IAAA,EAAA,CAChD;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../hooks/usePageHidden.cjs");;/* empty css */function t({variant:a="page",height:n,className:i}){const s=o.usePageHidden(),b=["aegis-ambient-background",`aegis-ambient-background--${a}`,s?"aegis-ambient-background--paused":"",i??""].filter(Boolean).join(" ");return e.jsxs("div",{className:b,style:{height:n},"aria-hidden":"true",children:[e.jsx("span",{className:"aegis-ambient-background__blob aegis-ambient-background__blob--blue"}),e.jsx("span",{className:"aegis-ambient-background__blob aegis-ambient-background__blob--teal"}),e.jsx("span",{className:"aegis-ambient-background__blob aegis-ambient-background__blob--violet"})]})}exports.AmbientBackground=t;
|
|
2
|
+
//# sourceMappingURL=AmbientBackground.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmbientBackground.cjs","sources":["../../../src/components/ui/AmbientBackground.tsx"],"sourcesContent":["import { usePageHidden } from '../../hooks/usePageHidden';\nimport './AmbientBackground.css';\n\nexport type AmbientBackgroundVariant = 'page' | 'hero';\n\nexport interface AmbientBackgroundProps {\n /**\n * `page` for app pages; `hero` for overview and article heroes, with\n * stronger glows that drift 1.6 times as far.\n */\n variant?: AmbientBackgroundVariant;\n /**\n * Layer height. Defaults to `--ambient-page-height` or\n * `--ambient-hero-height`; the glows scale with the width, not the height.\n */\n height?: number | string;\n className?: string;\n}\n\n/**\n * Blue, teal and violet glows drifting across the top of a surface.\n * Render it as the first child of a `position: relative; isolation:\n * isolate` container: the layer spans that container's top edge and\n * paints above its background and beneath its content. The drift pauses\n * while the document is hidden and stays still under\n * prefers-reduced-motion.\n */\nexport function AmbientBackground({\n variant = 'page',\n height,\n className,\n}: AmbientBackgroundProps) {\n const hidden = usePageHidden();\n const cls = [\n 'aegis-ambient-background',\n `aegis-ambient-background--${variant}`,\n hidden ? 'aegis-ambient-background--paused' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n return (\n <div className={cls} style={{ height }} aria-hidden=\"true\">\n <span className=\"aegis-ambient-background__blob aegis-ambient-background__blob--blue\" />\n <span className=\"aegis-ambient-background__blob aegis-ambient-background__blob--teal\" />\n <span className=\"aegis-ambient-background__blob aegis-ambient-background__blob--violet\" />\n </div>\n );\n}\n"],"names":["AmbientBackground","variant","height","className","hidden","usePageHidden","cls","jsxs","jsx"],"mappings":"uMA2BO,SAASA,EAAkB,CAChC,QAAAC,EAAU,OACV,OAAAC,EACA,UAAAC,CACF,EAA2B,CACzB,MAAMC,EAASC,EAAAA,cAAA,EACTC,EAAM,CACV,2BACA,6BAA6BL,CAAO,GACpCG,EAAS,mCAAqC,GAC9CD,GAAa,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG,EACX,OACEI,OAAC,OAAI,UAAWD,EAAK,MAAO,CAAE,OAAAJ,CAAA,EAAU,cAAY,OAClD,SAAA,CAAAM,EAAAA,IAAC,OAAA,CAAK,UAAU,qEAAA,CAAsE,EACtFA,EAAAA,IAAC,OAAA,CAAK,UAAU,qEAAA,CAAsE,EACtFA,EAAAA,IAAC,OAAA,CAAK,UAAU,uEAAA,CAAwE,CAAA,EAC1F,CAEJ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { usePageHidden as t } from "../../hooks/usePageHidden.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
function d({
|
|
5
|
+
variant: e = "page",
|
|
6
|
+
height: n,
|
|
7
|
+
className: b
|
|
8
|
+
}) {
|
|
9
|
+
const i = t(), o = [
|
|
10
|
+
"aegis-ambient-background",
|
|
11
|
+
`aegis-ambient-background--${e}`,
|
|
12
|
+
i ? "aegis-ambient-background--paused" : "",
|
|
13
|
+
b ?? ""
|
|
14
|
+
].filter(Boolean).join(" ");
|
|
15
|
+
return /* @__PURE__ */ s("div", { className: o, style: { height: n }, "aria-hidden": "true", children: [
|
|
16
|
+
/* @__PURE__ */ a("span", { className: "aegis-ambient-background__blob aegis-ambient-background__blob--blue" }),
|
|
17
|
+
/* @__PURE__ */ a("span", { className: "aegis-ambient-background__blob aegis-ambient-background__blob--teal" }),
|
|
18
|
+
/* @__PURE__ */ a("span", { className: "aegis-ambient-background__blob aegis-ambient-background__blob--violet" })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
d as AmbientBackground
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=AmbientBackground.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmbientBackground.js","sources":["../../../src/components/ui/AmbientBackground.tsx"],"sourcesContent":["import { usePageHidden } from '../../hooks/usePageHidden';\nimport './AmbientBackground.css';\n\nexport type AmbientBackgroundVariant = 'page' | 'hero';\n\nexport interface AmbientBackgroundProps {\n /**\n * `page` for app pages; `hero` for overview and article heroes, with\n * stronger glows that drift 1.6 times as far.\n */\n variant?: AmbientBackgroundVariant;\n /**\n * Layer height. Defaults to `--ambient-page-height` or\n * `--ambient-hero-height`; the glows scale with the width, not the height.\n */\n height?: number | string;\n className?: string;\n}\n\n/**\n * Blue, teal and violet glows drifting across the top of a surface.\n * Render it as the first child of a `position: relative; isolation:\n * isolate` container: the layer spans that container's top edge and\n * paints above its background and beneath its content. The drift pauses\n * while the document is hidden and stays still under\n * prefers-reduced-motion.\n */\nexport function AmbientBackground({\n variant = 'page',\n height,\n className,\n}: AmbientBackgroundProps) {\n const hidden = usePageHidden();\n const cls = [\n 'aegis-ambient-background',\n `aegis-ambient-background--${variant}`,\n hidden ? 'aegis-ambient-background--paused' : '',\n className ?? '',\n ]\n .filter(Boolean)\n .join(' ');\n return (\n <div className={cls} style={{ height }} aria-hidden=\"true\">\n <span className=\"aegis-ambient-background__blob aegis-ambient-background__blob--blue\" />\n <span className=\"aegis-ambient-background__blob aegis-ambient-background__blob--teal\" />\n <span className=\"aegis-ambient-background__blob aegis-ambient-background__blob--violet\" />\n </div>\n );\n}\n"],"names":["AmbientBackground","variant","height","className","hidden","usePageHidden","cls","jsxs","jsx"],"mappings":";;;AA2BO,SAASA,EAAkB;AAAA,EAChC,SAAAC,IAAU;AAAA,EACV,QAAAC;AAAA,EACA,WAAAC;AACF,GAA2B;AACzB,QAAMC,IAASC,EAAA,GACTC,IAAM;AAAA,IACV;AAAA,IACA,6BAA6BL,CAAO;AAAA,IACpCG,IAAS,qCAAqC;AAAA,IAC9CD,KAAa;AAAA,EAAA,EAEZ,OAAO,OAAO,EACd,KAAK,GAAG;AACX,SACE,gBAAAI,EAAC,SAAI,WAAWD,GAAK,OAAO,EAAE,QAAAJ,EAAA,GAAU,eAAY,QAClD,UAAA;AAAA,IAAA,gBAAAM,EAAC,QAAA,EAAK,WAAU,sEAAA,CAAsE;AAAA,IACtF,gBAAAA,EAAC,QAAA,EAAK,WAAU,sEAAA,CAAsE;AAAA,IACtF,gBAAAA,EAAC,QAAA,EAAK,WAAU,wEAAA,CAAwE;AAAA,EAAA,GAC1F;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime");;/* empty css */function h({brand:e,title:l,description:s,children:i,footer:t,className:u}){const c=["aegis-auth-layout",u??""].filter(Boolean).join(" ");return a.jsx("div",{className:c,children:a.jsxs("div",{className:"aegis-auth-layout__inner",children:[e&&a.jsx("div",{className:"aegis-auth-layout__brand",children:e}),a.jsxs("section",{className:"aegis-auth-layout__card",children:[a.jsxs("header",{className:"aegis-auth-layout__header",children:[a.jsx("h1",{className:"aegis-auth-layout__title",children:l}),s&&a.jsx("p",{className:"aegis-auth-layout__desc",children:s})]}),a.jsx("div",{className:"aegis-auth-layout__body",children:i})]}),t&&a.jsx("div",{className:"aegis-auth-layout__footer",children:t})]})})}exports.AuthLayout=h;
|
|
2
|
+
//# sourceMappingURL=AuthLayout.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthLayout.cjs","sources":["../../../src/components/ui/AuthLayout.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport './AuthLayout.css';\n\ninterface AuthLayoutProps {\n brand?: ReactNode;\n title: string;\n description?: ReactNode;\n children: ReactNode;\n footer?: ReactNode;\n className?: string;\n}\n\nexport function AuthLayout({\n brand,\n title,\n description,\n children,\n footer,\n className,\n}: AuthLayoutProps) {\n const cls = ['aegis-auth-layout', className ?? ''].filter(Boolean).join(' ');\n return (\n <div className={cls}>\n <div className=\"aegis-auth-layout__inner\">\n {brand && <div className=\"aegis-auth-layout__brand\">{brand}</div>}\n <section className=\"aegis-auth-layout__card\">\n <header className=\"aegis-auth-layout__header\">\n <h1 className=\"aegis-auth-layout__title\">{title}</h1>\n {description && (\n <p className=\"aegis-auth-layout__desc\">{description}</p>\n )}\n </header>\n <div className=\"aegis-auth-layout__body\">{children}</div>\n </section>\n {footer && <div className=\"aegis-auth-layout__footer\">{footer}</div>}\n </div>\n </div>\n );\n}\n"],"names":["AuthLayout","brand","title","description","children","footer","className","cls","jsxs","jsx"],"mappings":"qJAaO,SAASA,EAAW,CACzB,MAAAC,EACA,MAAAC,EACA,YAAAC,EACA,SAAAC,EACA,OAAAC,EACA,UAAAC,CACF,EAAoB,CAClB,MAAMC,EAAM,CAAC,oBAAqBD,GAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAC3E,aACG,MAAA,CAAI,UAAWC,EACd,SAAAC,EAAAA,KAAC,MAAA,CAAI,UAAU,2BACZ,SAAA,CAAAP,GAASQ,EAAAA,IAAC,MAAA,CAAI,UAAU,2BAA4B,SAAAR,EAAM,EAC3DO,EAAAA,KAAC,UAAA,CAAQ,UAAU,0BACjB,SAAA,CAAAA,EAAAA,KAAC,SAAA,CAAO,UAAU,4BAChB,SAAA,CAAAC,EAAAA,IAAC,KAAA,CAAG,UAAU,2BAA4B,SAAAP,EAAM,EAC/CC,GACCM,EAAAA,IAAC,IAAA,CAAE,UAAU,0BAA2B,SAAAN,CAAA,CAAY,CAAA,EAExD,EACAM,EAAAA,IAAC,MAAA,CAAI,UAAU,0BAA2B,SAAAL,CAAA,CAAS,CAAA,EACrD,EACCC,GAAUI,EAAAA,IAAC,MAAA,CAAI,UAAU,4BAA6B,SAAAJ,CAAA,CAAO,CAAA,CAAA,CAChE,CAAA,CACF,CAEJ"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as a, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
function d({
|
|
4
|
+
brand: s,
|
|
5
|
+
title: i,
|
|
6
|
+
description: l,
|
|
7
|
+
children: c,
|
|
8
|
+
footer: t,
|
|
9
|
+
className: u
|
|
10
|
+
}) {
|
|
11
|
+
const h = ["aegis-auth-layout", u ?? ""].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ a("div", { className: h, children: /* @__PURE__ */ e("div", { className: "aegis-auth-layout__inner", children: [
|
|
13
|
+
s && /* @__PURE__ */ a("div", { className: "aegis-auth-layout__brand", children: s }),
|
|
14
|
+
/* @__PURE__ */ e("section", { className: "aegis-auth-layout__card", children: [
|
|
15
|
+
/* @__PURE__ */ e("header", { className: "aegis-auth-layout__header", children: [
|
|
16
|
+
/* @__PURE__ */ a("h1", { className: "aegis-auth-layout__title", children: i }),
|
|
17
|
+
l && /* @__PURE__ */ a("p", { className: "aegis-auth-layout__desc", children: l })
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ a("div", { className: "aegis-auth-layout__body", children: c })
|
|
20
|
+
] }),
|
|
21
|
+
t && /* @__PURE__ */ a("div", { className: "aegis-auth-layout__footer", children: t })
|
|
22
|
+
] }) });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
d as AuthLayout
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=AuthLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthLayout.js","sources":["../../../src/components/ui/AuthLayout.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport './AuthLayout.css';\n\ninterface AuthLayoutProps {\n brand?: ReactNode;\n title: string;\n description?: ReactNode;\n children: ReactNode;\n footer?: ReactNode;\n className?: string;\n}\n\nexport function AuthLayout({\n brand,\n title,\n description,\n children,\n footer,\n className,\n}: AuthLayoutProps) {\n const cls = ['aegis-auth-layout', className ?? ''].filter(Boolean).join(' ');\n return (\n <div className={cls}>\n <div className=\"aegis-auth-layout__inner\">\n {brand && <div className=\"aegis-auth-layout__brand\">{brand}</div>}\n <section className=\"aegis-auth-layout__card\">\n <header className=\"aegis-auth-layout__header\">\n <h1 className=\"aegis-auth-layout__title\">{title}</h1>\n {description && (\n <p className=\"aegis-auth-layout__desc\">{description}</p>\n )}\n </header>\n <div className=\"aegis-auth-layout__body\">{children}</div>\n </section>\n {footer && <div className=\"aegis-auth-layout__footer\">{footer}</div>}\n </div>\n </div>\n );\n}\n"],"names":["AuthLayout","brand","title","description","children","footer","className","cls","jsxs","jsx"],"mappings":";;AAaO,SAASA,EAAW;AAAA,EACzB,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AACF,GAAoB;AAClB,QAAMC,IAAM,CAAC,qBAAqBD,KAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAC3E,2BACG,OAAA,EAAI,WAAWC,GACd,UAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,4BACZ,UAAA;AAAA,IAAAP,KAAS,gBAAAQ,EAAC,OAAA,EAAI,WAAU,4BAA4B,UAAAR,GAAM;AAAA,IAC3D,gBAAAO,EAAC,WAAA,EAAQ,WAAU,2BACjB,UAAA;AAAA,MAAA,gBAAAA,EAAC,UAAA,EAAO,WAAU,6BAChB,UAAA;AAAA,QAAA,gBAAAC,EAAC,MAAA,EAAG,WAAU,4BAA4B,UAAAP,GAAM;AAAA,QAC/CC,KACC,gBAAAM,EAAC,KAAA,EAAE,WAAU,2BAA2B,UAAAN,EAAA,CAAY;AAAA,MAAA,GAExD;AAAA,MACA,gBAAAM,EAAC,OAAA,EAAI,WAAU,2BAA2B,UAAAL,EAAA,CAAS;AAAA,IAAA,GACrD;AAAA,IACCC,KAAU,gBAAAI,EAAC,OAAA,EAAI,WAAU,6BAA6B,UAAAJ,EAAA,CAAO;AAAA,EAAA,EAAA,CAChE,EAAA,CACF;AAEJ;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),f=require("react"),m=require("../../agent/core/usePrimitiveSurface.cjs");;/* empty css */function h(a){return a.trim().split(/\s+/).slice(0,2).map(e=>e.charAt(0)).join("").toUpperCase()}const j=5;function d(a){let e=0;for(let r=0;r<a.length;r++)e=e*31+a.charCodeAt(r)>>>0;return e%j+1}function N({name:a,src:e,size:r="md",status:s,icon:p,colorSlot:l,className:v,surface:c}){const i=f.useRef(null),o=m.usePrimitiveSurface(c,{name:a,status:s},"entity",i),u=["aegis-avatar",`aegis-avatar--${r}`,v].filter(Boolean).join(" "),g=["aegis-avatar-wrap",`aegis-avatar-wrap--${r}`].join(" "),n=e?t.jsx("img",{src:e,alt:a,className:u}):t.jsx("span",{className:`${u} ${l===void 0?`aegis-avatar--hue-${d(a)}`:`aegis-avatar--slot-${l}`}`,"aria-label":a,role:"img",children:p??h(a)});return s?t.jsxs("span",{ref:i,className:g,...o,children:[n,t.jsx("span",{className:`aegis-avatar__status aegis-avatar__status--${s}`,"aria-label":s})]}):c?t.jsx("span",{ref:i,className:g,...o,children:n}):n}exports.Avatar=N;
|
|
2
|
+
//# sourceMappingURL=Avatar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.cjs","sources":["../../../src/components/ui/Avatar.tsx"],"sourcesContent":["import { type ReactNode, useRef } from 'react';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './Avatar.css';\n\ntype AvatarSize = 'sm' | 'md' | 'lg';\ntype AvatarStatus = 'online' | 'offline' | 'busy' | 'away';\n/** Index into `--data-cat-1` … `--data-cat-6`, the chart series colours. */\nexport type AvatarColorSlot = 1 | 2 | 3 | 4 | 5 | 6;\n\nexport type AvatarSurface = PrimitiveSurface<{\n name: string;\n status?: AvatarStatus;\n}>;\n\ninterface AvatarProps {\n name: string;\n src?: string;\n size?: AvatarSize;\n status?: AvatarStatus;\n icon?: ReactNode;\n /**\n * Colours the initials fallback with `--data-cat-<n>` instead of the\n * name-hashed hue, so it matches that series in charts.\n */\n colorSlot?: AvatarColorSlot;\n className?: string;\n surface?: AvatarSurface;\n}\n\nfunction initialsFromName(name: string): string {\n return name\n .trim()\n .split(/\\s+/)\n .slice(0, 2)\n .map((w) => w.charAt(0))\n .join('')\n .toUpperCase();\n}\n\nconst HUE_COUNT = 5;\n\nfunction hueFromName(name: string): number {\n let hash = 0;\n for (let i = 0; i < name.length; i++) {\n hash = (hash * 31 + name.charCodeAt(i)) >>> 0;\n }\n return (hash % HUE_COUNT) + 1;\n}\n\nexport function Avatar({\n name,\n src,\n size = 'md',\n status,\n icon,\n colorSlot,\n className,\n surface,\n}: AvatarProps) {\n const wrapRef = useRef<HTMLSpanElement>(null);\n const agentAttrs = usePrimitiveSurface(\n surface,\n { name, status },\n 'entity',\n wrapRef,\n );\n\n const cls = ['aegis-avatar', `aegis-avatar--${size}`, className]\n .filter(Boolean)\n .join(' ');\n\n const wrapperCls = ['aegis-avatar-wrap', `aegis-avatar-wrap--${size}`].join(\n ' ',\n );\n\n const content = src ? (\n <img src={src} alt={name} className={cls} />\n ) : (\n <span\n className={`${cls} ${\n colorSlot === undefined\n ? `aegis-avatar--hue-${hueFromName(name)}`\n : `aegis-avatar--slot-${colorSlot}`\n }`}\n aria-label={name}\n role=\"img\"\n >\n {icon ?? initialsFromName(name)}\n </span>\n );\n\n if (!status) {\n if (!surface) {\n return content;\n }\n return (\n <span ref={wrapRef} className={wrapperCls} {...agentAttrs}>\n {content}\n </span>\n );\n }\n\n return (\n <span ref={wrapRef} className={wrapperCls} {...agentAttrs}>\n {content}\n <span\n className={`aegis-avatar__status aegis-avatar__status--${status}`}\n aria-label={status}\n />\n </span>\n );\n}\n"],"names":["initialsFromName","name","w","HUE_COUNT","hueFromName","hash","i","Avatar","src","size","status","icon","colorSlot","className","surface","wrapRef","useRef","agentAttrs","usePrimitiveSurface","cls","wrapperCls","content","jsx"],"mappings":"0NAiCA,SAASA,EAAiBC,EAAsB,CAC9C,OAAOA,EACJ,OACA,MAAM,KAAK,EACX,MAAM,EAAG,CAAC,EACV,IAAKC,GAAMA,EAAE,OAAO,CAAC,CAAC,EACtB,KAAK,EAAE,EACP,YAAA,CACL,CAEA,MAAMC,EAAY,EAElB,SAASC,EAAYH,EAAsB,CACzC,IAAII,EAAO,EACX,QAASC,EAAI,EAAGA,EAAIL,EAAK,OAAQK,IAC/BD,EAAQA,EAAO,GAAKJ,EAAK,WAAWK,CAAC,IAAO,EAE9C,OAAQD,EAAOF,EAAa,CAC9B,CAEO,SAASI,EAAO,CACrB,KAAAN,EACA,IAAAO,EACA,KAAAC,EAAO,KACP,OAAAC,EACA,KAAAC,EACA,UAAAC,EACA,UAAAC,EACA,QAAAC,CACF,EAAgB,CACd,MAAMC,EAAUC,EAAAA,OAAwB,IAAI,EACtCC,EAAaC,EAAAA,oBACjBJ,EACA,CAAE,KAAAb,EAAM,OAAAS,CAAA,EACR,SACAK,CAAA,EAGII,EAAM,CAAC,eAAgB,iBAAiBV,CAAI,GAAII,CAAS,EAC5D,OAAO,OAAO,EACd,KAAK,GAAG,EAELO,EAAa,CAAC,oBAAqB,sBAAsBX,CAAI,EAAE,EAAE,KACrE,GAAA,EAGIY,EAAUb,EACdc,EAAAA,IAAC,MAAA,CAAI,IAAAd,EAAU,IAAKP,EAAM,UAAWkB,CAAA,CAAK,EAE1CG,EAAAA,IAAC,OAAA,CACC,UAAW,GAAGH,CAAG,IACfP,IAAc,OACV,qBAAqBR,EAAYH,CAAI,CAAC,GACtC,sBAAsBW,CAAS,EACrC,GACA,aAAYX,EACZ,KAAK,MAEJ,SAAAU,GAAQX,EAAiBC,CAAI,CAAA,CAAA,EAIlC,OAAKS,SAYF,OAAA,CAAK,IAAKK,EAAS,UAAWK,EAAa,GAAGH,EAC5C,SAAA,CAAAI,EACDC,EAAAA,IAAC,OAAA,CACC,UAAW,8CAA8CZ,CAAM,GAC/D,aAAYA,CAAA,CAAA,CACd,EACF,EAjBKI,EAIHQ,MAAC,QAAK,IAAKP,EAAS,UAAWK,EAAa,GAAGH,EAC5C,SAAAI,CAAA,CACH,EALOA,CAkBb"}
|