@lincyaw/aegis-ui 0.9.4 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/ask/AskOverlay.cjs +3 -1
- package/dist/agent/ask/AskOverlay.cjs.map +1 -1
- package/dist/agent/ask/AskOverlay.d.ts +17 -1
- package/dist/agent/ask/AskOverlay.js +115 -58
- package/dist/agent/ask/AskOverlay.js.map +1 -1
- package/dist/agent/ask/AskPanel.cjs +1 -1
- package/dist/agent/ask/AskPanel.cjs.map +1 -1
- package/dist/agent/ask/AskPanel.d.ts +18 -3
- package/dist/agent/ask/AskPanel.js +147 -119
- package/dist/agent/ask/AskPanel.js.map +1 -1
- package/dist/agent/chat/chat.cjs +1 -1
- package/dist/agent/chat/chat.cjs.map +1 -1
- package/dist/agent/chat/chat.d.ts +1 -1
- package/dist/agent/chat/chat.js +3 -5
- package/dist/agent/chat/chat.js.map +1 -1
- package/dist/agent/chat/useAgentChat.cjs +1 -1
- package/dist/agent/chat/useAgentChat.cjs.map +1 -1
- package/dist/agent/chat/useAgentChat.d.ts +2 -0
- package/dist/agent/chat/useAgentChat.js +8 -4
- package/dist/agent/chat/useAgentChat.js.map +1 -1
- package/dist/agent/core/AegisRuntimeProvider.cjs.map +1 -1
- package/dist/agent/core/AegisRuntimeProvider.d.ts +2 -2
- package/dist/agent/core/AegisRuntimeProvider.js.map +1 -1
- package/dist/agent/core/hooks.cjs +1 -1
- package/dist/agent/core/hooks.cjs.map +1 -1
- package/dist/agent/core/hooks.js +21 -20
- package/dist/agent/core/hooks.js.map +1 -1
- package/dist/agent/core/runtime.cjs +1 -1
- package/dist/agent/core/runtime.cjs.map +1 -1
- package/dist/agent/core/runtime.d.ts +28 -9
- package/dist/agent/core/runtime.js +435 -268
- package/dist/agent/core/runtime.js.map +1 -1
- package/dist/agent/core/types.d.ts +65 -10
- package/dist/agent/index.d.ts +4 -3
- package/dist/commands/CommandProvider.cjs +1 -1
- package/dist/commands/CommandProvider.cjs.map +1 -1
- package/dist/commands/CommandProvider.js +33 -37
- package/dist/commands/CommandProvider.js.map +1 -1
- package/dist/commands/commandContext.cjs +1 -1
- package/dist/commands/commandContext.cjs.map +1 -1
- package/dist/commands/commandContext.d.ts +6 -6
- package/dist/commands/commandContext.js +3 -17
- package/dist/commands/commandContext.js.map +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/useCommands.cjs +1 -1
- package/dist/commands/useCommands.cjs.map +1 -1
- package/dist/commands/useCommands.d.ts +4 -2
- package/dist/commands/useCommands.js +21 -5
- package/dist/commands/useCommands.js.map +1 -1
- package/dist/commands/useRegisterCommands.cjs +2 -1
- package/dist/commands/useRegisterCommands.cjs.map +1 -1
- package/dist/commands/useRegisterCommands.d.ts +3 -2
- package/dist/commands/useRegisterCommands.js +35 -8
- package/dist/commands/useRegisterCommands.js.map +1 -1
- package/dist/components/ui/AgentPanel.cjs +1 -1
- package/dist/components/ui/AgentPanel.cjs.map +1 -1
- package/dist/components/ui/AgentPanel.js +15 -14
- package/dist/components/ui/AgentPanel.js.map +1 -1
- package/dist/components/ui/Alert.cjs +1 -1
- package/dist/components/ui/Alert.cjs.map +1 -1
- package/dist/components/ui/Alert.js +11 -11
- package/dist/components/ui/Alert.js.map +1 -1
- package/dist/components/ui/Avatar.cjs +1 -1
- package/dist/components/ui/Avatar.cjs.map +1 -1
- package/dist/components/ui/Avatar.js +21 -19
- package/dist/components/ui/Avatar.js.map +1 -1
- package/dist/components/ui/BlastRadiusBar.cjs +1 -1
- package/dist/components/ui/BlastRadiusBar.cjs.map +1 -1
- package/dist/components/ui/BlastRadiusBar.d.ts +16 -2
- package/dist/components/ui/BlastRadiusBar.js +27 -20
- package/dist/components/ui/BlastRadiusBar.js.map +1 -1
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/ChatComposer.cjs +1 -1
- package/dist/components/ui/ChatComposer.cjs.map +1 -1
- package/dist/components/ui/ChatComposer.js +30 -29
- package/dist/components/ui/ChatComposer.js.map +1 -1
- package/dist/components/ui/ChatSessionList.cjs +1 -1
- package/dist/components/ui/ChatSessionList.cjs.map +1 -1
- package/dist/components/ui/ChatSessionList.js +136 -157
- package/dist/components/ui/ChatSessionList.js.map +1 -1
- package/dist/components/ui/Checkbox.cjs +1 -1
- package/dist/components/ui/Checkbox.cjs.map +1 -1
- package/dist/components/ui/Checkbox.d.ts +7 -1
- package/dist/components/ui/Checkbox.js +26 -20
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/Chip.cjs +1 -1
- package/dist/components/ui/Chip.cjs.map +1 -1
- package/dist/components/ui/Chip.d.ts +6 -1
- package/dist/components/ui/Chip.js +20 -18
- package/dist/components/ui/Chip.js.map +1 -1
- package/dist/components/ui/ChoiceCardGroup.cjs +2 -0
- package/dist/components/ui/ChoiceCardGroup.cjs.map +1 -0
- package/dist/components/ui/ChoiceCardGroup.d.ts +34 -0
- package/dist/components/ui/ChoiceCardGroup.js +56 -0
- package/dist/components/ui/ChoiceCardGroup.js.map +1 -0
- package/dist/components/ui/CodeBlock.cjs +2 -2
- package/dist/components/ui/CodeBlock.cjs.map +1 -1
- package/dist/components/ui/CodeBlock.js +31 -27
- package/dist/components/ui/CodeBlock.js.map +1 -1
- package/dist/components/ui/CodeEditor.cjs +1 -1
- package/dist/components/ui/CodeEditor.cjs.map +1 -1
- package/dist/components/ui/CodeEditor.d.ts +15 -4
- package/dist/components/ui/CodeEditor.js +243 -70
- package/dist/components/ui/CodeEditor.js.map +1 -1
- package/dist/components/ui/Collapse.cjs +1 -1
- package/dist/components/ui/Collapse.cjs.map +1 -1
- package/dist/components/ui/Collapse.js +23 -23
- package/dist/components/ui/Collapse.js.map +1 -1
- package/dist/components/ui/ColumnChart.cjs +1 -1
- package/dist/components/ui/ColumnChart.cjs.map +1 -1
- package/dist/components/ui/ColumnChart.js +21 -20
- package/dist/components/ui/ColumnChart.js.map +1 -1
- package/dist/components/ui/CommandInvocationCard.cjs +1 -1
- package/dist/components/ui/CommandInvocationCard.cjs.map +1 -1
- package/dist/components/ui/CommandInvocationCard.js +28 -31
- package/dist/components/ui/CommandInvocationCard.js.map +1 -1
- package/dist/components/ui/CommandPalette.cjs +1 -1
- package/dist/components/ui/CommandPalette.cjs.map +1 -1
- package/dist/components/ui/CommandPalette.d.ts +23 -1
- package/dist/components/ui/CommandPalette.js +146 -121
- package/dist/components/ui/CommandPalette.js.map +1 -1
- package/dist/components/ui/CommitGraph.cjs +2 -0
- package/dist/components/ui/CommitGraph.cjs.map +1 -0
- package/dist/components/ui/CommitGraph.d.ts +79 -0
- package/dist/components/ui/CommitGraph.js +383 -0
- package/dist/components/ui/CommitGraph.js.map +1 -0
- package/dist/components/ui/ContentInspectorDialog.cjs +1 -3
- package/dist/components/ui/ContentInspectorDialog.cjs.map +1 -1
- package/dist/components/ui/ContentInspectorDialog.d.ts +4 -10
- package/dist/components/ui/ContentInspectorDialog.js +42 -201
- package/dist/components/ui/ContentInspectorDialog.js.map +1 -1
- package/dist/components/ui/ContentPreview.cjs +3 -0
- package/dist/components/ui/ContentPreview.cjs.map +1 -0
- package/dist/components/ui/ContentPreview.d.ts +13 -0
- package/dist/components/ui/ContentPreview.js +133 -0
- package/dist/components/ui/ContentPreview.js.map +1 -0
- package/dist/components/ui/CopyGlyph.cjs +2 -0
- package/dist/components/ui/CopyGlyph.cjs.map +1 -0
- package/dist/components/ui/CopyGlyph.d.ts +7 -0
- package/dist/components/ui/CopyGlyph.js +48 -0
- package/dist/components/ui/CopyGlyph.js.map +1 -0
- package/dist/components/ui/DangerZone.cjs +1 -1
- package/dist/components/ui/DangerZone.cjs.map +1 -1
- package/dist/components/ui/DangerZone.js +13 -12
- package/dist/components/ui/DangerZone.js.map +1 -1
- package/dist/components/ui/DataList.cjs +1 -1
- package/dist/components/ui/DataList.cjs.map +1 -1
- package/dist/components/ui/DataList.d.ts +7 -1
- package/dist/components/ui/DataList.js +89 -33
- package/dist/components/ui/DataList.js.map +1 -1
- package/dist/components/ui/DataTable.cjs +1 -1
- package/dist/components/ui/DataTable.cjs.map +1 -1
- package/dist/components/ui/DataTable.d.ts +22 -18
- package/dist/components/ui/DataTable.js +279 -341
- package/dist/components/ui/DataTable.js.map +1 -1
- package/dist/components/ui/DropdownMenu.cjs +1 -1
- package/dist/components/ui/DropdownMenu.cjs.map +1 -1
- package/dist/components/ui/DropdownMenu.d.ts +8 -1
- package/dist/components/ui/DropdownMenu.js +63 -46
- package/dist/components/ui/DropdownMenu.js.map +1 -1
- package/dist/components/ui/EnvironmentSwitcher.cjs +1 -1
- package/dist/components/ui/EnvironmentSwitcher.cjs.map +1 -1
- package/dist/components/ui/EnvironmentSwitcher.js +26 -24
- package/dist/components/ui/EnvironmentSwitcher.js.map +1 -1
- package/dist/components/ui/ErrorState.cjs +1 -1
- package/dist/components/ui/ErrorState.cjs.map +1 -1
- package/dist/components/ui/ErrorState.d.ts +1 -0
- package/dist/components/ui/ErrorState.js +1 -1
- package/dist/components/ui/ErrorState.js.map +1 -1
- package/dist/components/ui/EventTable.cjs +1 -1
- package/dist/components/ui/EventTable.cjs.map +1 -1
- package/dist/components/ui/EventTable.d.ts +16 -2
- package/dist/components/ui/EventTable.js +198 -165
- package/dist/components/ui/EventTable.js.map +1 -1
- package/dist/components/ui/FileDropzone.cjs +1 -1
- package/dist/components/ui/FileDropzone.cjs.map +1 -1
- package/dist/components/ui/FileDropzone.d.ts +3 -21
- package/dist/components/ui/FileDropzone.js +42 -67
- package/dist/components/ui/FileDropzone.js.map +1 -1
- package/dist/components/ui/FilePreview.cjs +1 -1
- package/dist/components/ui/FilePreview.cjs.map +1 -1
- package/dist/components/ui/FilePreview.d.ts +4 -1
- package/dist/components/ui/FilePreview.js +62 -60
- package/dist/components/ui/FilePreview.js.map +1 -1
- package/dist/components/ui/FileTree.cjs +1 -1
- package/dist/components/ui/FileTree.cjs.map +1 -1
- package/dist/components/ui/FileTree.d.ts +18 -2
- package/dist/components/ui/FileTree.js +141 -110
- package/dist/components/ui/FileTree.js.map +1 -1
- package/dist/components/ui/FolderDropzone.cjs +1 -1
- package/dist/components/ui/FolderDropzone.cjs.map +1 -1
- package/dist/components/ui/FolderDropzone.d.ts +10 -1
- package/dist/components/ui/FolderDropzone.js +140 -130
- package/dist/components/ui/FolderDropzone.js.map +1 -1
- package/dist/components/ui/ForgotPasswordForm.cjs +1 -1
- package/dist/components/ui/ForgotPasswordForm.cjs.map +1 -1
- package/dist/components/ui/ForgotPasswordForm.d.ts +1 -0
- package/dist/components/ui/ForgotPasswordForm.js +23 -20
- package/dist/components/ui/ForgotPasswordForm.js.map +1 -1
- package/dist/components/ui/FormRow.cjs +1 -1
- package/dist/components/ui/FormRow.cjs.map +1 -1
- package/dist/components/ui/FormRow.d.ts +32 -2
- package/dist/components/ui/FormRow.js +33 -13
- package/dist/components/ui/FormRow.js.map +1 -1
- package/dist/components/ui/HeadlineStat.cjs +1 -1
- package/dist/components/ui/HeadlineStat.cjs.map +1 -1
- package/dist/components/ui/HeadlineStat.js +6 -5
- package/dist/components/ui/HeadlineStat.js.map +1 -1
- package/dist/components/ui/InboxPage.cjs +1 -1
- package/dist/components/ui/InboxPage.cjs.map +1 -1
- package/dist/components/ui/InboxPage.d.ts +25 -2
- package/dist/components/ui/InboxPage.js +93 -77
- package/dist/components/ui/InboxPage.js.map +1 -1
- package/dist/components/ui/KeyValueList.cjs +1 -1
- package/dist/components/ui/KeyValueList.cjs.map +1 -1
- package/dist/components/ui/KeyValueList.d.ts +6 -5
- package/dist/components/ui/KeyValueList.js +14 -17
- package/dist/components/ui/KeyValueList.js.map +1 -1
- package/dist/components/ui/LoginForm.cjs +1 -1
- package/dist/components/ui/LoginForm.cjs.map +1 -1
- package/dist/components/ui/LoginForm.d.ts +1 -0
- package/dist/components/ui/LoginForm.js +63 -55
- package/dist/components/ui/LoginForm.js.map +1 -1
- package/dist/components/ui/Markdown.cjs +1 -1
- package/dist/components/ui/Markdown.cjs.map +1 -1
- package/dist/components/ui/Markdown.d.ts +3 -2
- package/dist/components/ui/Markdown.js +57 -49
- package/dist/components/ui/Markdown.js.map +1 -1
- package/dist/components/ui/MdxDocument.cjs +1 -1
- package/dist/components/ui/MdxDocument.cjs.map +1 -1
- package/dist/components/ui/MdxDocument.d.ts +7 -2
- package/dist/components/ui/MdxDocument.js +34 -49
- package/dist/components/ui/MdxDocument.js.map +1 -1
- package/dist/components/ui/MetadataList.cjs +1 -1
- package/dist/components/ui/MetadataList.cjs.map +1 -1
- package/dist/components/ui/MetadataList.d.ts +7 -1
- package/dist/components/ui/MetadataList.js +29 -20
- package/dist/components/ui/MetadataList.js.map +1 -1
- package/dist/components/ui/MetricCard.cjs +1 -1
- package/dist/components/ui/MetricCard.cjs.map +1 -1
- package/dist/components/ui/MetricCard.js +16 -16
- package/dist/components/ui/MetricCard.js.map +1 -1
- package/dist/components/ui/MonoValue.cjs +1 -1
- package/dist/components/ui/MonoValue.cjs.map +1 -1
- package/dist/components/ui/MonoValue.d.ts +12 -1
- package/dist/components/ui/MonoValue.js +19 -17
- package/dist/components/ui/MonoValue.js.map +1 -1
- package/dist/components/ui/NotificationBell.cjs +1 -1
- package/dist/components/ui/NotificationBell.cjs.map +1 -1
- package/dist/components/ui/NotificationBell.d.ts +31 -3
- package/dist/components/ui/NotificationBell.js +127 -71
- package/dist/components/ui/NotificationBell.js.map +1 -1
- package/dist/components/ui/NumberField.cjs +2 -0
- package/dist/components/ui/NumberField.cjs.map +1 -0
- package/dist/components/ui/NumberField.d.ts +34 -0
- package/dist/components/ui/NumberField.js +80 -0
- package/dist/components/ui/NumberField.js.map +1 -0
- package/dist/components/ui/ObjectBrowser.cjs +1 -1
- package/dist/components/ui/ObjectBrowser.cjs.map +1 -1
- package/dist/components/ui/ObjectBrowser.js +107 -94
- package/dist/components/ui/ObjectBrowser.js.map +1 -1
- package/dist/components/ui/ObjectInspector.cjs +1 -1
- package/dist/components/ui/ObjectInspector.cjs.map +1 -1
- package/dist/components/ui/ObjectInspector.d.ts +5 -0
- package/dist/components/ui/ObjectInspector.js +61 -69
- package/dist/components/ui/ObjectInspector.js.map +1 -1
- package/dist/components/ui/PageSizeSelect.cjs +1 -1
- package/dist/components/ui/PageSizeSelect.cjs.map +1 -1
- package/dist/components/ui/PageSizeSelect.d.ts +3 -4
- package/dist/components/ui/PageSizeSelect.js +30 -29
- package/dist/components/ui/PageSizeSelect.js.map +1 -1
- package/dist/components/ui/Pagination.cjs +1 -1
- package/dist/components/ui/Pagination.cjs.map +1 -1
- package/dist/components/ui/Pagination.d.ts +16 -6
- package/dist/components/ui/Pagination.js +58 -45
- package/dist/components/ui/Pagination.js.map +1 -1
- package/dist/components/ui/Panel.cjs +1 -1
- package/dist/components/ui/Panel.cjs.map +1 -1
- package/dist/components/ui/Panel.d.ts +17 -4
- package/dist/components/ui/Panel.js +53 -40
- package/dist/components/ui/Panel.js.map +1 -1
- package/dist/components/ui/ParquetViewer.cjs +1 -1
- package/dist/components/ui/ParquetViewer.cjs.map +1 -1
- package/dist/components/ui/ParquetViewer.d.ts +1 -1
- package/dist/components/ui/ParquetViewer.js +121 -120
- package/dist/components/ui/ParquetViewer.js.map +1 -1
- package/dist/components/ui/PasswordField.cjs +1 -1
- package/dist/components/ui/PasswordField.cjs.map +1 -1
- package/dist/components/ui/PasswordField.js +28 -27
- package/dist/components/ui/PasswordField.js.map +1 -1
- package/dist/components/ui/PickerField.cjs +1 -1
- package/dist/components/ui/PickerField.cjs.map +1 -1
- package/dist/components/ui/PickerField.d.ts +25 -6
- package/dist/components/ui/PickerField.js +20 -17
- package/dist/components/ui/PickerField.js.map +1 -1
- package/dist/components/ui/ProjectSelector.cjs +1 -1
- package/dist/components/ui/ProjectSelector.cjs.map +1 -1
- package/dist/components/ui/ProjectSelector.js +39 -36
- package/dist/components/ui/ProjectSelector.js.map +1 -1
- package/dist/components/ui/QueryAutocomplete.cjs +1 -1
- package/dist/components/ui/QueryAutocomplete.cjs.map +1 -1
- package/dist/components/ui/QueryAutocomplete.d.ts +7 -1
- package/dist/components/ui/QueryAutocomplete.js +150 -127
- package/dist/components/ui/QueryAutocomplete.js.map +1 -1
- package/dist/components/ui/RegisterForm.cjs +1 -1
- package/dist/components/ui/RegisterForm.cjs.map +1 -1
- package/dist/components/ui/RegisterForm.d.ts +1 -0
- package/dist/components/ui/RegisterForm.js +52 -43
- package/dist/components/ui/RegisterForm.js.map +1 -1
- package/dist/components/ui/ResizableSidePanel.cjs +1 -1
- package/dist/components/ui/ResizableSidePanel.cjs.map +1 -1
- package/dist/components/ui/ResizableSidePanel.js +41 -40
- package/dist/components/ui/ResizableSidePanel.js.map +1 -1
- package/dist/components/ui/RollingValue.cjs +2 -0
- package/dist/components/ui/RollingValue.cjs.map +1 -0
- package/dist/components/ui/RollingValue.d.ts +14 -0
- package/dist/components/ui/RollingValue.js +39 -0
- package/dist/components/ui/RollingValue.js.map +1 -0
- package/dist/components/ui/SavedQueryBar.cjs +1 -1
- package/dist/components/ui/SavedQueryBar.cjs.map +1 -1
- package/dist/components/ui/SavedQueryBar.d.ts +9 -3
- package/dist/components/ui/SavedQueryBar.js +390 -291
- package/dist/components/ui/SavedQueryBar.js.map +1 -1
- package/dist/components/ui/ScrollStory.cjs +1 -2
- package/dist/components/ui/ScrollStory.cjs.map +1 -1
- package/dist/components/ui/ScrollStory.js +57 -75
- package/dist/components/ui/ScrollStory.js.map +1 -1
- package/dist/components/ui/SearchInput.cjs +1 -1
- package/dist/components/ui/SearchInput.cjs.map +1 -1
- package/dist/components/ui/SearchInput.d.ts +5 -1
- package/dist/components/ui/SearchInput.js +28 -24
- package/dist/components/ui/SearchInput.js.map +1 -1
- package/dist/components/ui/Select.cjs +1 -1
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.d.ts +4 -2
- package/dist/components/ui/Select.js +34 -31
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/ServiceMap.cjs +1 -1
- package/dist/components/ui/ServiceMap.cjs.map +1 -1
- package/dist/components/ui/ServiceMap.d.ts +57 -2
- package/dist/components/ui/ServiceMap.js +374 -117
- package/dist/components/ui/ServiceMap.js.map +1 -1
- package/dist/components/ui/ShareLinkDialog.cjs +1 -1
- package/dist/components/ui/ShareLinkDialog.cjs.map +1 -1
- package/dist/components/ui/ShareLinkDialog.d.ts +5 -3
- package/dist/components/ui/ShareLinkDialog.js +107 -98
- package/dist/components/ui/ShareLinkDialog.js.map +1 -1
- package/dist/components/ui/Slider.cjs +2 -0
- package/dist/components/ui/Slider.cjs.map +1 -0
- package/dist/components/ui/Slider.d.ts +24 -0
- package/dist/components/ui/Slider.js +55 -0
- package/dist/components/ui/Slider.js.map +1 -0
- package/dist/components/ui/SparkLine.cjs +1 -1
- package/dist/components/ui/SparkLine.cjs.map +1 -1
- package/dist/components/ui/SparkLine.d.ts +4 -1
- package/dist/components/ui/SparkLine.js +29 -23
- package/dist/components/ui/SparkLine.js.map +1 -1
- package/dist/components/ui/StatBlock.cjs +1 -1
- package/dist/components/ui/StatBlock.cjs.map +1 -1
- package/dist/components/ui/StatBlock.js +17 -16
- package/dist/components/ui/StatBlock.js.map +1 -1
- package/dist/components/ui/StatusDot.cjs.map +1 -1
- package/dist/components/ui/StatusDot.d.ts +5 -1
- package/dist/components/ui/StatusDot.js.map +1 -1
- package/dist/components/ui/Steps.cjs +2 -0
- package/dist/components/ui/Steps.cjs.map +1 -0
- package/dist/components/ui/Steps.d.ts +19 -0
- package/dist/components/ui/Steps.js +53 -0
- package/dist/components/ui/Steps.js.map +1 -0
- package/dist/components/ui/TableOfContents.cjs +1 -1
- package/dist/components/ui/TableOfContents.cjs.map +1 -1
- package/dist/components/ui/TableOfContents.d.ts +3 -3
- package/dist/components/ui/TableOfContents.js +47 -28
- package/dist/components/ui/TableOfContents.js.map +1 -1
- package/dist/components/ui/Tabs.cjs +2 -2
- package/dist/components/ui/Tabs.cjs.map +1 -1
- package/dist/components/ui/Tabs.d.ts +37 -3
- package/dist/components/ui/Tabs.js +169 -109
- package/dist/components/ui/Tabs.js.map +1 -1
- package/dist/components/ui/Terminal.cjs +1 -1
- package/dist/components/ui/Terminal.cjs.map +1 -1
- package/dist/components/ui/Terminal.js +18 -17
- package/dist/components/ui/Terminal.js.map +1 -1
- package/dist/components/ui/TextField.cjs +1 -1
- package/dist/components/ui/TextField.cjs.map +1 -1
- package/dist/components/ui/TextField.js +19 -18
- package/dist/components/ui/TextField.js.map +1 -1
- package/dist/components/ui/ThemeToggle.cjs +1 -1
- package/dist/components/ui/ThemeToggle.cjs.map +1 -1
- package/dist/components/ui/ThemeToggle.js +15 -18
- package/dist/components/ui/ThemeToggle.js.map +1 -1
- package/dist/components/ui/TimeDisplay.cjs +1 -1
- package/dist/components/ui/TimeDisplay.cjs.map +1 -1
- package/dist/components/ui/TimeDisplay.d.ts +14 -4
- package/dist/components/ui/TimeDisplay.js +43 -44
- package/dist/components/ui/TimeDisplay.js.map +1 -1
- package/dist/components/ui/TimeRangePicker.cjs +1 -1
- package/dist/components/ui/TimeRangePicker.cjs.map +1 -1
- package/dist/components/ui/TimeRangePicker.js +128 -111
- package/dist/components/ui/TimeRangePicker.js.map +1 -1
- package/dist/components/ui/TimelineChart.cjs +2 -1
- package/dist/components/ui/TimelineChart.cjs.map +1 -1
- package/dist/components/ui/TimelineChart.d.ts +1 -0
- package/dist/components/ui/TimelineChart.js +221 -169
- package/dist/components/ui/TimelineChart.js.map +1 -1
- package/dist/components/ui/ToolCallCard.cjs +1 -1
- package/dist/components/ui/ToolCallCard.cjs.map +1 -1
- package/dist/components/ui/ToolCallCard.js +22 -22
- package/dist/components/ui/ToolCallCard.js.map +1 -1
- package/dist/components/ui/Toolbar.cjs +1 -1
- package/dist/components/ui/Toolbar.cjs.map +1 -1
- package/dist/components/ui/Toolbar.d.ts +4 -16
- package/dist/components/ui/Toolbar.js +8 -62
- package/dist/components/ui/Toolbar.js.map +1 -1
- package/dist/components/ui/TraceSpanInspector.cjs +1 -1
- package/dist/components/ui/TraceSpanInspector.cjs.map +1 -1
- package/dist/components/ui/TraceSpanInspector.js +94 -76
- package/dist/components/ui/TraceSpanInspector.js.map +1 -1
- package/dist/components/ui/TraceTree.cjs +1 -1
- package/dist/components/ui/TraceTree.cjs.map +1 -1
- package/dist/components/ui/TraceTree.d.ts +36 -2
- package/dist/components/ui/TraceTree.js +278 -170
- package/dist/components/ui/TraceTree.js.map +1 -1
- package/dist/components/ui/TrajectoryStep.cjs +1 -1
- package/dist/components/ui/TrajectoryStep.cjs.map +1 -1
- package/dist/components/ui/TrajectoryStep.js +39 -43
- package/dist/components/ui/TrajectoryStep.js.map +1 -1
- package/dist/components/ui/TrajectoryTimeline.cjs +1 -1
- package/dist/components/ui/TrajectoryTimeline.cjs.map +1 -1
- package/dist/components/ui/TrajectoryTimeline.js +31 -28
- package/dist/components/ui/TrajectoryTimeline.js.map +1 -1
- package/dist/components/ui/UploadQueue.cjs +1 -1
- package/dist/components/ui/UploadQueue.cjs.map +1 -1
- package/dist/components/ui/UploadQueue.d.ts +18 -2
- package/dist/components/ui/UploadQueue.js +53 -71
- package/dist/components/ui/UploadQueue.js.map +1 -1
- package/dist/components/ui/authValidation.cjs +2 -0
- package/dist/components/ui/authValidation.cjs.map +1 -0
- package/dist/components/ui/authValidation.d.ts +3 -0
- package/dist/components/ui/authValidation.js +8 -0
- package/dist/components/ui/authValidation.js.map +1 -0
- package/dist/components/ui/classifyContent.cjs +6 -0
- package/dist/components/ui/classifyContent.cjs.map +1 -0
- package/dist/components/ui/classifyContent.d.ts +40 -0
- package/dist/components/ui/classifyContent.js +167 -0
- package/dist/components/ui/classifyContent.js.map +1 -0
- package/dist/components/ui/dropFiles.cjs +2 -0
- package/dist/components/ui/dropFiles.cjs.map +1 -0
- package/dist/components/ui/dropFiles.d.ts +7 -0
- package/dist/components/ui/dropFiles.js +16 -0
- package/dist/components/ui/dropFiles.js.map +1 -0
- package/dist/components/ui/index.d.ts +23 -10
- package/dist/components/ui/linkComponent.cjs +1 -1
- package/dist/components/ui/linkComponent.cjs.map +1 -1
- package/dist/components/ui/linkComponent.d.ts +4 -2
- package/dist/components/ui/linkComponent.js +15 -5
- package/dist/components/ui/linkComponent.js.map +1 -1
- package/dist/components/ui/markdownDocument.cjs +2 -0
- package/dist/components/ui/markdownDocument.cjs.map +1 -0
- package/dist/components/ui/markdownDocument.d.ts +40 -0
- package/dist/components/ui/markdownDocument.js +39 -0
- package/dist/components/ui/markdownDocument.js.map +1 -0
- package/dist/components/ui/relativeTime.cjs +1 -1
- package/dist/components/ui/relativeTime.cjs.map +1 -1
- package/dist/components/ui/relativeTime.d.ts +5 -3
- package/dist/components/ui/relativeTime.js +15 -6
- package/dist/components/ui/relativeTime.js.map +1 -1
- package/dist/components/ui/traceStatus.cjs +2 -0
- package/dist/components/ui/traceStatus.cjs.map +1 -0
- package/dist/components/ui/{traceFormat.d.ts → traceStatus.d.ts} +0 -1
- package/dist/components/ui/traceStatus.js +7 -0
- package/dist/components/ui/traceStatus.js.map +1 -0
- package/dist/components/ui/useColumnWidths.cjs +2 -0
- package/dist/components/ui/useColumnWidths.cjs.map +1 -0
- package/dist/components/ui/useColumnWidths.d.ts +60 -0
- package/dist/components/ui/useColumnWidths.js +196 -0
- package/dist/components/ui/useColumnWidths.js.map +1 -0
- package/dist/hooks/popoverOverflow.cjs +2 -0
- package/dist/hooks/popoverOverflow.cjs.map +1 -0
- package/dist/hooks/popoverOverflow.d.ts +8 -0
- package/dist/hooks/popoverOverflow.js +9 -0
- package/dist/hooks/popoverOverflow.js.map +1 -0
- package/dist/hooks/useDevelopAfterLoad.cjs +2 -0
- package/dist/hooks/useDevelopAfterLoad.cjs.map +1 -0
- package/dist/hooks/useDevelopAfterLoad.d.ts +8 -0
- package/dist/hooks/useDevelopAfterLoad.js +9 -0
- package/dist/hooks/useDevelopAfterLoad.js.map +1 -0
- package/dist/hooks/useDialogPopover.cjs +2 -0
- package/dist/hooks/useDialogPopover.cjs.map +1 -0
- package/dist/hooks/useDialogPopover.d.ts +23 -0
- package/dist/hooks/useDialogPopover.js +48 -0
- package/dist/hooks/useDialogPopover.js.map +1 -0
- package/dist/hooks/useMenuPopover.cjs +1 -1
- package/dist/hooks/useMenuPopover.cjs.map +1 -1
- package/dist/hooks/useMenuPopover.d.ts +0 -8
- package/dist/hooks/useMenuPopover.js +17 -22
- package/dist/hooks/useMenuPopover.js.map +1 -1
- package/dist/hooks/useResizable.cjs +1 -1
- package/dist/hooks/useResizable.cjs.map +1 -1
- package/dist/hooks/useResizable.js +87 -78
- package/dist/hooks/useResizable.js.map +1 -1
- package/dist/hooks/useSavedQueries.cjs +1 -1
- package/dist/hooks/useSavedQueries.cjs.map +1 -1
- package/dist/hooks/useSavedQueries.d.ts +6 -0
- package/dist/hooks/useSavedQueries.js +52 -60
- package/dist/hooks/useSavedQueries.js.map +1 -1
- package/dist/hooks/useSectionSpy.cjs +1 -1
- package/dist/hooks/useSectionSpy.cjs.map +1 -1
- package/dist/hooks/useSectionSpy.d.ts +6 -1
- package/dist/hooks/useSectionSpy.js +87 -57
- package/dist/hooks/useSectionSpy.js.map +1 -1
- package/dist/hooks/useStorageItem.cjs +2 -0
- package/dist/hooks/useStorageItem.cjs.map +1 -0
- package/dist/hooks/useStorageItem.d.ts +6 -0
- package/dist/hooks/useStorageItem.js +36 -0
- package/dist/hooks/useStorageItem.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +321 -313
- package/dist/index.js.map +1 -1
- package/dist/layouts/shell/AegisShell.cjs +1 -1
- package/dist/layouts/shell/AegisShell.cjs.map +1 -1
- package/dist/layouts/shell/AegisShell.d.ts +4 -2
- package/dist/layouts/shell/AegisShell.js +150 -243
- package/dist/layouts/shell/AegisShell.js.map +1 -1
- package/dist/layouts/shell/AppRoutes.cjs +2 -0
- package/dist/layouts/shell/AppRoutes.cjs.map +1 -0
- package/dist/layouts/shell/AppRoutes.d.ts +5 -0
- package/dist/layouts/shell/AppRoutes.js +8 -0
- package/dist/layouts/shell/AppRoutes.js.map +1 -0
- package/dist/layouts/shell/AppSwitcher.cjs +1 -1
- package/dist/layouts/shell/AppSwitcher.cjs.map +1 -1
- package/dist/layouts/shell/AppSwitcher.js +53 -36
- package/dist/layouts/shell/AppSwitcher.js.map +1 -1
- package/dist/layouts/shell/AuthRequiredCard.cjs +1 -1
- package/dist/layouts/shell/AuthRequiredCard.cjs.map +1 -1
- package/dist/layouts/shell/AuthRequiredCard.js +24 -22
- package/dist/layouts/shell/AuthRequiredCard.js.map +1 -1
- package/dist/layouts/shell/BreadcrumbBar.cjs +1 -1
- package/dist/layouts/shell/BreadcrumbBar.cjs.map +1 -1
- package/dist/layouts/shell/BreadcrumbBar.d.ts +1 -2
- package/dist/layouts/shell/BreadcrumbBar.js +19 -26
- package/dist/layouts/shell/BreadcrumbBar.js.map +1 -1
- package/dist/layouts/shell/RouteErrorBoundary.cjs +2 -0
- package/dist/layouts/shell/RouteErrorBoundary.cjs.map +1 -0
- package/dist/layouts/shell/RouteErrorBoundary.d.ts +26 -0
- package/dist/layouts/shell/RouteErrorBoundary.js +40 -0
- package/dist/layouts/shell/RouteErrorBoundary.js.map +1 -0
- package/dist/layouts/shell/RouterLink.cjs +2 -0
- package/dist/layouts/shell/RouterLink.cjs.map +1 -0
- package/dist/layouts/shell/RouterLink.d.ts +3 -0
- package/dist/layouts/shell/RouterLink.js +22 -0
- package/dist/layouts/shell/RouterLink.js.map +1 -0
- package/dist/layouts/shell/ShellCommandPalette.cjs +2 -0
- package/dist/layouts/shell/ShellCommandPalette.cjs.map +1 -0
- package/dist/layouts/shell/ShellCommandPalette.d.ts +7 -0
- package/dist/layouts/shell/ShellCommandPalette.js +32 -0
- package/dist/layouts/shell/ShellCommandPalette.js.map +1 -0
- package/dist/layouts/shell/ShellInboxPage.cjs +2 -0
- package/dist/layouts/shell/ShellInboxPage.cjs.map +1 -0
- package/dist/layouts/shell/ShellInboxPage.d.ts +12 -0
- package/dist/layouts/shell/ShellInboxPage.js +33 -0
- package/dist/layouts/shell/ShellInboxPage.js.map +1 -0
- package/dist/layouts/shell/ShellNotificationBell.cjs +2 -0
- package/dist/layouts/shell/ShellNotificationBell.cjs.map +1 -0
- package/dist/layouts/shell/ShellNotificationBell.d.ts +5 -0
- package/dist/layouts/shell/ShellNotificationBell.js +30 -0
- package/dist/layouts/shell/ShellNotificationBell.js.map +1 -0
- package/dist/layouts/shell/Sidebar.cjs +1 -1
- package/dist/layouts/shell/Sidebar.cjs.map +1 -1
- package/dist/layouts/shell/Sidebar.d.ts +4 -2
- package/dist/layouts/shell/Sidebar.js +14 -11
- package/dist/layouts/shell/Sidebar.js.map +1 -1
- package/dist/layouts/shell/TopHeader.cjs +1 -1
- package/dist/layouts/shell/TopHeader.cjs.map +1 -1
- package/dist/layouts/shell/TopHeader.d.ts +6 -2
- package/dist/layouts/shell/TopHeader.js +87 -75
- package/dist/layouts/shell/TopHeader.js.map +1 -1
- package/dist/layouts/shell/apps.cjs +2 -0
- package/dist/layouts/shell/apps.cjs.map +1 -0
- package/dist/layouts/shell/apps.d.ts +12 -0
- package/dist/layouts/shell/apps.js +34 -0
- package/dist/layouts/shell/apps.js.map +1 -0
- package/dist/layouts/shell/buildRouteTree.cjs +2 -0
- package/dist/layouts/shell/buildRouteTree.cjs.map +1 -0
- package/dist/layouts/shell/buildRouteTree.d.ts +22 -0
- package/dist/layouts/shell/buildRouteTree.js +49 -0
- package/dist/layouts/shell/buildRouteTree.js.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.cjs +2 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.cjs.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.d.ts +13 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.js +90 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.js.map +1 -0
- package/dist/layouts/shell/environments/{context.cjs → environmentContext.cjs} +2 -2
- package/dist/layouts/shell/environments/environmentContext.cjs.map +1 -0
- package/dist/layouts/shell/environments/environmentContext.d.ts +6 -0
- package/dist/layouts/shell/environments/environmentContext.js +8 -0
- package/dist/layouts/shell/environments/environmentContext.js.map +1 -0
- package/dist/layouts/shell/environments/index.d.ts +2 -3
- package/dist/layouts/shell/environments/types.cjs.map +1 -1
- package/dist/layouts/shell/environments/types.d.ts +23 -15
- package/dist/layouts/shell/environments/types.js.map +1 -1
- package/dist/layouts/shell/environments/useEnvironment.cjs +2 -0
- package/dist/layouts/shell/environments/useEnvironment.cjs.map +1 -0
- package/dist/layouts/shell/environments/{hooks.d.ts → useEnvironment.d.ts} +3 -2
- package/dist/layouts/shell/environments/useEnvironment.js +25 -0
- package/dist/layouts/shell/environments/useEnvironment.js.map +1 -0
- package/dist/layouts/shell/index.d.ts +3 -1
- package/dist/layouts/shell/types.d.ts +14 -14
- package/dist/layouts/shell/useAgentPanel.cjs +2 -0
- package/dist/layouts/shell/useAgentPanel.cjs.map +1 -0
- package/dist/layouts/shell/useAgentPanel.d.ts +13 -0
- package/dist/layouts/shell/useAgentPanel.js +21 -0
- package/dist/layouts/shell/useAgentPanel.js.map +1 -0
- package/dist/layouts/shell/useAppCommands.cjs +2 -0
- package/dist/layouts/shell/useAppCommands.cjs.map +1 -0
- package/dist/layouts/shell/useAppCommands.d.ts +6 -0
- package/dist/layouts/shell/useAppCommands.js +19 -0
- package/dist/layouts/shell/useAppCommands.js.map +1 -0
- package/dist/layouts/shell/useMobileNav.cjs +2 -0
- package/dist/layouts/shell/useMobileNav.cjs.map +1 -0
- package/dist/layouts/shell/useMobileNav.d.ts +20 -0
- package/dist/layouts/shell/useMobileNav.js +54 -0
- package/dist/layouts/shell/useMobileNav.js.map +1 -0
- package/dist/layouts/shell/useOpenNotification.cjs +2 -0
- package/dist/layouts/shell/useOpenNotification.cjs.map +1 -0
- package/dist/layouts/shell/useOpenNotification.d.ts +3 -0
- package/dist/layouts/shell/useOpenNotification.js +16 -0
- package/dist/layouts/shell/useOpenNotification.js.map +1 -0
- package/dist/layouts/shell/useShellUser.cjs +2 -0
- package/dist/layouts/shell/useShellUser.cjs.map +1 -0
- package/dist/layouts/shell/useShellUser.d.ts +7 -0
- package/dist/layouts/shell/useShellUser.js +23 -0
- package/dist/layouts/shell/useShellUser.js.map +1 -0
- package/dist/layouts/shell/useWarnOnce.cjs +2 -0
- package/dist/layouts/shell/useWarnOnce.cjs.map +1 -0
- package/dist/layouts/shell/useWarnOnce.d.ts +1 -0
- package/dist/layouts/shell/useWarnOnce.js +11 -0
- package/dist/layouts/shell/useWarnOnce.js.map +1 -0
- package/dist/lib/chart.cjs +1 -1
- package/dist/lib/chart.cjs.map +1 -1
- package/dist/lib/chart.d.ts +5 -7
- package/dist/lib/chart.js +49 -34
- package/dist/lib/chart.js.map +1 -1
- package/dist/lib/format.cjs +1 -1
- package/dist/lib/format.cjs.map +1 -1
- package/dist/lib/format.d.ts +34 -0
- package/dist/lib/format.js +98 -9
- package/dist/lib/format.js.map +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs.map +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.js +29 -29
- package/dist/lib/luceneQuery/tokenizeAtCursor.js.map +1 -1
- package/dist/lib/storage.cjs +1 -1
- package/dist/lib/storage.cjs.map +1 -1
- package/dist/lib/storage.js +19 -12
- package/dist/lib/storage.js.map +1 -1
- package/dist/lib/timeRange.cjs +1 -1
- package/dist/lib/timeRange.cjs.map +1 -1
- package/dist/lib/timeRange.d.ts +14 -4
- package/dist/lib/timeRange.js +43 -39
- package/dist/lib/timeRange.js.map +1 -1
- package/dist/locale/strings.cjs +1 -1
- package/dist/locale/strings.cjs.map +1 -1
- package/dist/locale/strings.d.ts +243 -2
- package/dist/locale/strings.js +545 -26
- package/dist/locale/strings.js.map +1 -1
- package/dist/notifications/notificationContext.cjs.map +1 -1
- package/dist/notifications/notificationContext.d.ts +15 -0
- package/dist/notifications/notificationContext.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/ThemeProvider.cjs +1 -1
- package/dist/theme/ThemeProvider.cjs.map +1 -1
- package/dist/theme/ThemeProvider.d.ts +2 -1
- package/dist/theme/ThemeProvider.js +47 -33
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/antdTheme.cjs +1 -1
- package/dist/theme/antdTheme.cjs.map +1 -1
- package/dist/theme/antdTheme.d.ts +0 -2
- package/dist/theme/antdTheme.js +28 -20
- package/dist/theme/antdTheme.js.map +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.cjs +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.d.ts +1 -0
- package/dist/transports/agentm/AgentmChannelProvider.js +119 -131
- package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -1
- package/dist/transports/agentm/agentmChannelClient.cjs +1 -1
- package/dist/transports/agentm/agentmChannelClient.cjs.map +1 -1
- package/dist/transports/agentm/agentmChannelClient.d.ts +8 -3
- package/dist/transports/agentm/agentmChannelClient.js +133 -89
- package/dist/transports/agentm/agentmChannelClient.js.map +1 -1
- package/dist/transports/index.d.ts +2 -2
- package/dist/transports/mcpBridge.cjs +2 -0
- package/dist/transports/mcpBridge.cjs.map +1 -0
- package/dist/transports/{bridge.d.ts → mcpBridge.d.ts} +2 -1
- package/dist/transports/mcpBridge.js +144 -0
- package/dist/transports/mcpBridge.js.map +1 -0
- package/dist/transports/mcpTools.cjs +2 -0
- package/dist/transports/mcpTools.cjs.map +1 -0
- package/dist/transports/mcpTools.d.ts +15 -0
- package/dist/transports/mcpTools.js +283 -0
- package/dist/transports/mcpTools.js.map +1 -0
- package/dist/transports.cjs +1 -1
- package/dist/transports.js +1 -1
- package/package.json +5 -4
- package/dist/agent/core/mcpToolCatalogue.cjs +0 -2
- package/dist/agent/core/mcpToolCatalogue.cjs.map +0 -1
- package/dist/agent/core/mcpToolCatalogue.d.ts +0 -2
- package/dist/agent/core/mcpToolCatalogue.js +0 -101
- package/dist/agent/core/mcpToolCatalogue.js.map +0 -1
- package/dist/components/ui/BucketCard.cjs +0 -2
- package/dist/components/ui/BucketCard.cjs.map +0 -1
- package/dist/components/ui/BucketCard.d.ts +0 -24
- package/dist/components/ui/BucketCard.js +0 -73
- package/dist/components/ui/BucketCard.js.map +0 -1
- package/dist/components/ui/ContentInspectorContent.cjs +0 -5
- package/dist/components/ui/ContentInspectorContent.cjs.map +0 -1
- package/dist/components/ui/ContentInspectorContent.d.ts +0 -14
- package/dist/components/ui/ContentInspectorContent.js +0 -101
- package/dist/components/ui/ContentInspectorContent.js.map +0 -1
- package/dist/components/ui/traceFormat.cjs +0 -2
- package/dist/components/ui/traceFormat.cjs.map +0 -1
- package/dist/components/ui/traceFormat.js +0 -11
- package/dist/components/ui/traceFormat.js.map +0 -1
- package/dist/layouts/shell/environments/EnvironmentContext.cjs +0 -2
- package/dist/layouts/shell/environments/EnvironmentContext.cjs.map +0 -1
- package/dist/layouts/shell/environments/EnvironmentContext.d.ts +0 -12
- package/dist/layouts/shell/environments/EnvironmentContext.js +0 -94
- package/dist/layouts/shell/environments/EnvironmentContext.js.map +0 -1
- package/dist/layouts/shell/environments/context.cjs.map +0 -1
- package/dist/layouts/shell/environments/context.d.ts +0 -6
- package/dist/layouts/shell/environments/context.js +0 -6
- package/dist/layouts/shell/environments/context.js.map +0 -1
- package/dist/layouts/shell/environments/hooks.cjs +0 -2
- package/dist/layouts/shell/environments/hooks.cjs.map +0 -1
- package/dist/layouts/shell/environments/hooks.js +0 -24
- package/dist/layouts/shell/environments/hooks.js.map +0 -1
- package/dist/layouts/shell/environments/manifest.cjs +0 -2
- package/dist/layouts/shell/environments/manifest.cjs.map +0 -1
- package/dist/layouts/shell/environments/manifest.d.ts +0 -26
- package/dist/layouts/shell/environments/manifest.js +0 -82
- package/dist/layouts/shell/environments/manifest.js.map +0 -1
- package/dist/transports/bridge.cjs +0 -2
- package/dist/transports/bridge.cjs.map +0 -1
- package/dist/transports/bridge.js +0 -143
- package/dist/transports/bridge.js.map +0 -1
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
import { createContext as
|
|
2
|
-
const
|
|
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
|
-
);
|
|
1
|
+
import { createContext as t } from "react";
|
|
2
|
+
const e = t(null);
|
|
16
3
|
export {
|
|
17
|
-
|
|
18
|
-
o as defaultCommandContextValue
|
|
4
|
+
e as CommandContext
|
|
19
5
|
};
|
|
20
6
|
//# sourceMappingURL=commandContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandContext.js","sources":["../../src/commands/commandContext.ts"],"sourcesContent":["import { type ReactNode, createContext } from 'react';\n\
|
|
1
|
+
{"version":3,"file":"commandContext.js","sources":["../../src/commands/commandContext.ts"],"sourcesContent":["import { type ReactNode, createContext } from 'react';\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 /**\n * UI grouping (e.g. 'Quick actions', 'Navigate'). Without one, the\n * palette files the command under the locale's `commandGroupOther`.\n */\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}\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\n/** Null until a `<CommandProvider>` is mounted; `useCommands` reads it. */\nexport const CommandContext = createContext<CommandContextValue | null>(null);\n"],"names":["CommandContext","createContext"],"mappings":";AA2DO,MAAMA,IAAiBC,EAA0C,IAAI;"}
|
package/dist/commands/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CommandProvider } from './CommandProvider';
|
|
2
|
-
export { useCommands } from './useCommands';
|
|
2
|
+
export { useCommands, useHasCommandProvider } from './useCommands';
|
|
3
3
|
export { useRegisterCommands } from './useRegisterCommands';
|
|
4
4
|
export { formatShortcut } from './shortcut';
|
|
5
5
|
export type { Command, CommandContextValue } from './commandContext';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),o=require("./commandContext.cjs"),t={commands:[],allCommands:[],register:()=>()=>{},setActiveScope:()=>{},execute:()=>Promise.reject(new Error("No <CommandProvider> mounted above caller.")),setPaletteOpen:()=>{},paletteOpen:!1};function n(){return e.useContext(o.CommandContext)??t}function r(){return e.useContext(o.CommandContext)!==null}exports.useCommands=n;exports.useHasCommandProvider=r;
|
|
2
2
|
//# sourceMappingURL=useCommands.cjs.map
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"file":"useCommands.cjs","sources":["../../src/commands/useCommands.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { CommandContext, type CommandContextValue } from './commandContext';\n\nconst noProviderValue: 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\n/**\n * Read the command registry context. Returns a no-op value when no\n * <CommandProvider> is mounted above the caller.\n */\nexport function useCommands(): CommandContextValue {\n return useContext(CommandContext) ?? noProviderValue;\n}\n\n/** Whether a <CommandProvider> is mounted above the caller. */\nexport function useHasCommandProvider(): boolean {\n return useContext(CommandContext) !== null;\n}\n"],"names":["noProviderValue","useCommands","useContext","CommandContext","useHasCommandProvider"],"mappings":"2IAIMA,EAAuC,CAC3C,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,EAMO,SAASC,GAAmC,CACjD,OAAOC,EAAAA,WAAWC,EAAAA,cAAc,GAAKH,CACvC,CAGO,SAASI,GAAiC,CAC/C,OAAOF,EAAAA,WAAWC,EAAAA,cAAc,IAAM,IACxC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CommandContextValue } from './commandContext';
|
|
2
2
|
/**
|
|
3
|
-
* Read the command registry context. Returns
|
|
4
|
-
*
|
|
3
|
+
* Read the command registry context. Returns a no-op value when no
|
|
4
|
+
* <CommandProvider> is mounted above the caller.
|
|
5
5
|
*/
|
|
6
6
|
export declare function useCommands(): CommandContextValue;
|
|
7
|
+
/** Whether a <CommandProvider> is mounted above the caller. */
|
|
8
|
+
export declare function useHasCommandProvider(): boolean;
|
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
import { useContext as
|
|
2
|
-
import { CommandContext as
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { useContext as e } from "react";
|
|
2
|
+
import { CommandContext as o } from "./commandContext.js";
|
|
3
|
+
const r = {
|
|
4
|
+
commands: [],
|
|
5
|
+
allCommands: [],
|
|
6
|
+
register: () => () => {
|
|
7
|
+
},
|
|
8
|
+
setActiveScope: () => {
|
|
9
|
+
},
|
|
10
|
+
execute: () => Promise.reject(new Error("No <CommandProvider> mounted above caller.")),
|
|
11
|
+
setPaletteOpen: () => {
|
|
12
|
+
},
|
|
13
|
+
paletteOpen: !1
|
|
14
|
+
};
|
|
15
|
+
function m() {
|
|
16
|
+
return e(o) ?? r;
|
|
17
|
+
}
|
|
18
|
+
function a() {
|
|
19
|
+
return e(o) !== null;
|
|
5
20
|
}
|
|
6
21
|
export {
|
|
7
|
-
|
|
22
|
+
m as useCommands,
|
|
23
|
+
a as useHasCommandProvider
|
|
8
24
|
};
|
|
9
25
|
//# sourceMappingURL=useCommands.js.map
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"file":"useCommands.js","sources":["../../src/commands/useCommands.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { CommandContext, type CommandContextValue } from './commandContext';\n\nconst noProviderValue: 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\n/**\n * Read the command registry context. Returns a no-op value when no\n * <CommandProvider> is mounted above the caller.\n */\nexport function useCommands(): CommandContextValue {\n return useContext(CommandContext) ?? noProviderValue;\n}\n\n/** Whether a <CommandProvider> is mounted above the caller. */\nexport function useHasCommandProvider(): boolean {\n return useContext(CommandContext) !== null;\n}\n"],"names":["noProviderValue","useCommands","useContext","CommandContext","useHasCommandProvider"],"mappings":";;AAIA,MAAMA,IAAuC;AAAA,EAC3C,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;AAMO,SAASC,IAAmC;AACjD,SAAOC,EAAWC,CAAc,KAAKH;AACvC;AAGO,SAASI,IAAiC;AAC/C,SAAOF,EAAWC,CAAc,MAAM;AACxC;"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),f=require("../hooks/useIsomorphicLayoutEffect.cjs"),c=require("./useCommands.cjs");function g(e){return JSON.stringify([e.id,e.label,e.description,e.keywords,e.group,e.shortcut,e.scope,e.agentOnly,e.schema,e.undo!==void 0])}function l(e){const{register:o}=c.useCommands(),r=u.useRef(e);f.useIsomorphicLayoutEffect(()=>{r.current=e});const i=e.map(g).join(`
|
|
2
|
+
`);u.useEffect(()=>{const s=t=>r.current.find(n=>n.id===t),a=r.current.map(t=>({...t,handler:n=>(s(t.id)??t).handler(n),undo:t.undo&&(()=>(s(t.id)??t).undo?.())}));return o(a)},[o,i])}exports.useRegisterCommands=l;
|
|
2
3
|
//# sourceMappingURL=useRegisterCommands.cjs.map
|
|
@@ -1 +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 *
|
|
1
|
+
{"version":3,"file":"useRegisterCommands.cjs","sources":["../../src/commands/useRegisterCommands.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\nimport { useIsomorphicLayoutEffect } from '../hooks/useIsomorphicLayoutEffect';\nimport type { Command } from './commandContext';\nimport { useCommands } from './useCommands';\n\n/** Every field the palette, the shortcuts and agents read, except the icon and the functions' identity. */\nfunction describe(cmd: Command): string {\n return JSON.stringify([\n cmd.id,\n cmd.label,\n cmd.description,\n cmd.keywords,\n cmd.group,\n cmd.shortcut,\n cmd.scope,\n cmd.agentOnly,\n cmd.schema,\n cmd.undo !== undefined,\n ]);\n}\n\n/**\n * Register a batch of commands while the calling component is mounted.\n * A new array literal every render does not thrash the registry: the\n * commands re-register only when a described field changes, and `handler`\n * and `undo` always run the latest render's functions.\n */\nexport function useRegisterCommands(cmds: Command[]): void {\n const { register } = useCommands();\n const cmdsRef = useRef(cmds);\n useIsomorphicLayoutEffect(() => {\n cmdsRef.current = cmds;\n });\n\n const key = cmds.map(describe).join('\\n');\n\n useEffect(() => {\n const latest = (id: string): Command | undefined =>\n cmdsRef.current.find((c) => c.id === id);\n const registered = cmdsRef.current.map(\n (cmd): Command => ({\n ...cmd,\n handler: (args) => (latest(cmd.id) ?? cmd).handler(args),\n undo: cmd.undo && (() => (latest(cmd.id) ?? cmd).undo?.()),\n }),\n );\n return register(registered);\n }, [register, key]);\n}\n"],"names":["describe","cmd","useRegisterCommands","cmds","register","useCommands","cmdsRef","useRef","useIsomorphicLayoutEffect","key","useEffect","latest","id","c","registered","args"],"mappings":"4LAOA,SAASA,EAASC,EAAsB,CACtC,OAAO,KAAK,UAAU,CACpBA,EAAI,GACJA,EAAI,MACJA,EAAI,YACJA,EAAI,SACJA,EAAI,MACJA,EAAI,SACJA,EAAI,MACJA,EAAI,UACJA,EAAI,OACJA,EAAI,OAAS,MAAA,CACd,CACH,CAQO,SAASC,EAAoBC,EAAuB,CACzD,KAAM,CAAE,SAAAC,CAAA,EAAaC,cAAA,EACfC,EAAUC,EAAAA,OAAOJ,CAAI,EAC3BK,EAAAA,0BAA0B,IAAM,CAC9BF,EAAQ,QAAUH,CACpB,CAAC,EAED,MAAMM,EAAMN,EAAK,IAAIH,CAAQ,EAAE,KAAK;AAAA,CAAI,EAExCU,EAAAA,UAAU,IAAM,CACd,MAAMC,EAAUC,GACdN,EAAQ,QAAQ,KAAMO,GAAMA,EAAE,KAAOD,CAAE,EACnCE,EAAaR,EAAQ,QAAQ,IAChCL,IAAkB,CACjB,GAAGA,EACH,QAAUc,IAAUJ,EAAOV,EAAI,EAAE,GAAKA,GAAK,QAAQc,CAAI,EACvD,KAAMd,EAAI,OAAS,KAAOU,EAAOV,EAAI,EAAE,GAAKA,GAAK,OAAA,EAAO,EAC1D,EAEF,OAAOG,EAASU,CAAU,CAC5B,EAAG,CAACV,EAAUK,CAAG,CAAC,CACpB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Command } from './commandContext';
|
|
2
2
|
/**
|
|
3
3
|
* Register a batch of commands while the calling component is mounted.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* A new array literal every render does not thrash the registry: the
|
|
5
|
+
* commands re-register only when a described field changes, and `handler`
|
|
6
|
+
* and `undo` always run the latest render's functions.
|
|
6
7
|
*/
|
|
7
8
|
export declare function useRegisterCommands(cmds: Command[]): void;
|
|
@@ -1,12 +1,39 @@
|
|
|
1
|
-
import { useRef as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { useRef as f, useEffect as a } from "react";
|
|
2
|
+
import { useIsomorphicLayoutEffect as p } from "../hooks/useIsomorphicLayoutEffect.js";
|
|
3
|
+
import { useCommands as g } from "./useCommands.js";
|
|
4
|
+
function l(e) {
|
|
5
|
+
return JSON.stringify([
|
|
6
|
+
e.id,
|
|
7
|
+
e.label,
|
|
8
|
+
e.description,
|
|
9
|
+
e.keywords,
|
|
10
|
+
e.group,
|
|
11
|
+
e.shortcut,
|
|
12
|
+
e.scope,
|
|
13
|
+
e.agentOnly,
|
|
14
|
+
e.schema,
|
|
15
|
+
e.undo !== void 0
|
|
16
|
+
]);
|
|
17
|
+
}
|
|
18
|
+
function d(e) {
|
|
19
|
+
const { register: t } = g(), o = f(e);
|
|
20
|
+
p(() => {
|
|
21
|
+
o.current = e;
|
|
22
|
+
});
|
|
23
|
+
const i = e.map(l).join(`
|
|
24
|
+
`);
|
|
25
|
+
a(() => {
|
|
26
|
+
const s = (r) => o.current.find((n) => n.id === r), u = o.current.map(
|
|
27
|
+
(r) => ({
|
|
28
|
+
...r,
|
|
29
|
+
handler: (n) => (s(r.id) ?? r).handler(n),
|
|
30
|
+
undo: r.undo && (() => (s(r.id) ?? r).undo?.())
|
|
31
|
+
})
|
|
32
|
+
);
|
|
33
|
+
return t(u);
|
|
34
|
+
}, [t, i]);
|
|
8
35
|
}
|
|
9
36
|
export {
|
|
10
|
-
|
|
37
|
+
d as useRegisterCommands
|
|
11
38
|
};
|
|
12
39
|
//# sourceMappingURL=useRegisterCommands.js.map
|
|
@@ -1 +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 *
|
|
1
|
+
{"version":3,"file":"useRegisterCommands.js","sources":["../../src/commands/useRegisterCommands.ts"],"sourcesContent":["import { useEffect, useRef } from 'react';\n\nimport { useIsomorphicLayoutEffect } from '../hooks/useIsomorphicLayoutEffect';\nimport type { Command } from './commandContext';\nimport { useCommands } from './useCommands';\n\n/** Every field the palette, the shortcuts and agents read, except the icon and the functions' identity. */\nfunction describe(cmd: Command): string {\n return JSON.stringify([\n cmd.id,\n cmd.label,\n cmd.description,\n cmd.keywords,\n cmd.group,\n cmd.shortcut,\n cmd.scope,\n cmd.agentOnly,\n cmd.schema,\n cmd.undo !== undefined,\n ]);\n}\n\n/**\n * Register a batch of commands while the calling component is mounted.\n * A new array literal every render does not thrash the registry: the\n * commands re-register only when a described field changes, and `handler`\n * and `undo` always run the latest render's functions.\n */\nexport function useRegisterCommands(cmds: Command[]): void {\n const { register } = useCommands();\n const cmdsRef = useRef(cmds);\n useIsomorphicLayoutEffect(() => {\n cmdsRef.current = cmds;\n });\n\n const key = cmds.map(describe).join('\\n');\n\n useEffect(() => {\n const latest = (id: string): Command | undefined =>\n cmdsRef.current.find((c) => c.id === id);\n const registered = cmdsRef.current.map(\n (cmd): Command => ({\n ...cmd,\n handler: (args) => (latest(cmd.id) ?? cmd).handler(args),\n undo: cmd.undo && (() => (latest(cmd.id) ?? cmd).undo?.()),\n }),\n );\n return register(registered);\n }, [register, key]);\n}\n"],"names":["describe","cmd","useRegisterCommands","cmds","register","useCommands","cmdsRef","useRef","useIsomorphicLayoutEffect","key","useEffect","latest","id","c","registered","args"],"mappings":";;;AAOA,SAASA,EAASC,GAAsB;AACtC,SAAO,KAAK,UAAU;AAAA,IACpBA,EAAI;AAAA,IACJA,EAAI;AAAA,IACJA,EAAI;AAAA,IACJA,EAAI;AAAA,IACJA,EAAI;AAAA,IACJA,EAAI;AAAA,IACJA,EAAI;AAAA,IACJA,EAAI;AAAA,IACJA,EAAI;AAAA,IACJA,EAAI,SAAS;AAAA,EAAA,CACd;AACH;AAQO,SAASC,EAAoBC,GAAuB;AACzD,QAAM,EAAE,UAAAC,EAAA,IAAaC,EAAA,GACfC,IAAUC,EAAOJ,CAAI;AAC3B,EAAAK,EAA0B,MAAM;AAC9B,IAAAF,EAAQ,UAAUH;AAAA,EACpB,CAAC;AAED,QAAMM,IAAMN,EAAK,IAAIH,CAAQ,EAAE,KAAK;AAAA,CAAI;AAExC,EAAAU,EAAU,MAAM;AACd,UAAMC,IAAS,CAACC,MACdN,EAAQ,QAAQ,KAAK,CAACO,MAAMA,EAAE,OAAOD,CAAE,GACnCE,IAAaR,EAAQ,QAAQ;AAAA,MACjC,CAACL,OAAkB;AAAA,QACjB,GAAGA;AAAA,QACH,SAAS,CAACc,OAAUJ,EAAOV,EAAI,EAAE,KAAKA,GAAK,QAAQc,CAAI;AAAA,QACvD,MAAMd,EAAI,SAAS,OAAOU,EAAOV,EAAI,EAAE,KAAKA,GAAK,OAAA;AAAA,MAAO;AAAA,IAC1D;AAEF,WAAOG,EAASU,CAAU;AAAA,EAC5B,GAAG,CAACV,GAAUK,CAAG,CAAC;AACpB;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),d=require("../../agent/core/usePrimitiveSurface.cjs");;/* empty css */const m=require("../../locale/useStrings.cjs");function _({title:s,headerActions:a,children:t,footer:n,className:r,surface:l}){const c=m.useStrings(),i=o.useRef(null),g=d.usePrimitiveSurface(l,null,"panel",i),u=["aegis-agent-panel",r??""].filter(Boolean).join(" ");return e.jsxs("aside",{ref:i,className:u,"aria-label":c.agentPanel,...g,children:[(s??a)&&e.jsxs("header",{className:"aegis-agent-panel__header",children:[e.jsx("div",{className:"aegis-agent-panel__title",children:s}),a&&e.jsx("div",{className:"aegis-agent-panel__actions",children:a})]}),e.jsx("div",{className:"aegis-agent-panel__body",children:t}),n&&e.jsx("div",{className:"aegis-agent-panel__footer",children:n})]})}exports.AgentPanel=_;
|
|
2
2
|
//# sourceMappingURL=AgentPanel.cjs.map
|
|
@@ -1 +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
|
|
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 { useStrings } from '../../locale';\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 strings = useStrings();\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={strings.agentPanel}\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","strings","useStrings","wrapRef","useRef","agentAttrs","usePrimitiveSurface","cls","jsxs","jsx"],"mappings":"6QAuBO,SAASA,EAAW,CACzB,MAAAC,EACA,cAAAC,EACA,SAAAC,EACA,OAAAC,EACA,UAAAC,EACA,QAAAC,CACF,EAAoB,CAClB,MAAMC,EAAUC,EAAAA,WAAA,EACVC,EAAUC,EAAAA,OAAoB,IAAI,EAClCC,EAAaC,EAAAA,oBAAoBN,EAAS,KAAM,QAASG,CAAO,EAChEI,EAAM,CAAC,oBAAqBR,GAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAE3E,OACES,EAAAA,KAAC,QAAA,CACC,IAAKL,EACL,UAAWI,EACX,aAAYN,EAAQ,WACnB,GAAGI,EAEF,SAAA,EAAAV,GAASC,IACTY,EAAAA,KAAC,SAAA,CAAO,UAAU,4BAChB,SAAA,CAAAC,EAAAA,IAAC,MAAA,CAAI,UAAU,2BAA4B,SAAAd,EAAM,EAChDC,GACCa,EAAAA,IAAC,MAAA,CAAI,UAAU,6BAA8B,SAAAb,CAAA,CAAc,CAAA,EAE/D,EAEFa,EAAAA,IAAC,MAAA,CAAI,UAAU,0BAA2B,SAAAZ,CAAA,CAAS,EAClDC,GAAUW,EAAAA,IAAC,MAAA,CAAI,UAAU,4BAA6B,SAAAX,CAAA,CAAO,CAAA,CAAA,CAAA,CAGpE"}
|
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { usePrimitiveSurface as
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as p } from "react";
|
|
3
|
+
import { usePrimitiveSurface as d } from "../../agent/core/usePrimitiveSurface.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
5
|
+
import { useStrings as f } from "../../locale/useStrings.js";
|
|
6
|
+
function j({
|
|
6
7
|
title: n,
|
|
7
8
|
headerActions: a,
|
|
8
9
|
children: r,
|
|
9
|
-
footer:
|
|
10
|
+
footer: s,
|
|
10
11
|
className: t,
|
|
11
|
-
surface:
|
|
12
|
+
surface: o
|
|
12
13
|
}) {
|
|
13
|
-
const
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
const c = f(), i = p(null), g = d(o, null, "panel", i), m = ["aegis-agent-panel", t ?? ""].filter(Boolean).join(" ");
|
|
15
|
+
return /* @__PURE__ */ l(
|
|
15
16
|
"aside",
|
|
16
17
|
{
|
|
17
|
-
ref:
|
|
18
|
-
className:
|
|
19
|
-
"aria-label":
|
|
18
|
+
ref: i,
|
|
19
|
+
className: m,
|
|
20
|
+
"aria-label": c.agentPanel,
|
|
20
21
|
...g,
|
|
21
22
|
children: [
|
|
22
|
-
(n ?? a) && /* @__PURE__ */
|
|
23
|
+
(n ?? a) && /* @__PURE__ */ l("header", { className: "aegis-agent-panel__header", children: [
|
|
23
24
|
/* @__PURE__ */ e("div", { className: "aegis-agent-panel__title", children: n }),
|
|
24
25
|
a && /* @__PURE__ */ e("div", { className: "aegis-agent-panel__actions", children: a })
|
|
25
26
|
] }),
|
|
26
27
|
/* @__PURE__ */ e("div", { className: "aegis-agent-panel__body", children: r }),
|
|
27
|
-
|
|
28
|
+
s && /* @__PURE__ */ e("div", { className: "aegis-agent-panel__footer", children: s })
|
|
28
29
|
]
|
|
29
30
|
}
|
|
30
31
|
);
|
|
31
32
|
}
|
|
32
33
|
export {
|
|
33
|
-
|
|
34
|
+
j as AgentPanel
|
|
34
35
|
};
|
|
35
36
|
//# sourceMappingURL=AgentPanel.js.map
|
|
@@ -1 +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
|
|
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 { useStrings } from '../../locale';\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 strings = useStrings();\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={strings.agentPanel}\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","strings","useStrings","wrapRef","useRef","agentAttrs","usePrimitiveSurface","cls","jsxs","jsx"],"mappings":";;;;;AAuBO,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,EAAA,GACVC,IAAUC,EAAoB,IAAI,GAClCC,IAAaC,EAAoBN,GAAS,MAAM,SAASG,CAAO,GAChEI,IAAM,CAAC,qBAAqBR,KAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAE3E,SACE,gBAAAS;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAKL;AAAA,MACL,WAAWI;AAAA,MACX,cAAYN,EAAQ;AAAA,MACnB,GAAGI;AAAA,MAEF,UAAA;AAAA,SAAAV,KAASC,MACT,gBAAAY,EAAC,UAAA,EAAO,WAAU,6BAChB,UAAA;AAAA,UAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,4BAA4B,UAAAd,GAAM;AAAA,UAChDC,KACC,gBAAAa,EAAC,OAAA,EAAI,WAAU,8BAA8B,UAAAb,EAAA,CAAc;AAAA,QAAA,GAE/D;AAAA,QAEF,gBAAAa,EAAC,OAAA,EAAI,WAAU,2BAA2B,UAAAZ,EAAA,CAAS;AAAA,QAClDC,KAAU,gBAAAW,EAAC,OAAA,EAAI,WAAU,6BAA6B,UAAAX,EAAA,CAAO;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGpE;"}
|
|
@@ -1,2 +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:
|
|
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:s="info",title:a,icon:r,children:t,className:i}){const l=c.useStrings(),n=["aegis-alert",`aegis-alert--${s}`,a===void 0?"":"aegis-alert--titled",i??""].filter(Boolean).join(" ");return e.jsxs("div",{className:n,role:s==="error"?"alert":"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(s)}),a!==void 0&&e.jsx("span",{className:"aegis-alert__title",children:a}),e.jsx("span",{className:"aegis-alert__body",children:t})]})]})}exports.Alert=o;
|
|
2
2
|
//# sourceMappingURL=Alert.cjs.map
|
|
@@ -1 +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
|
|
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={tone === 'error' ? 'alert' : '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,OAAC,OAAI,UAAWD,EAAK,KAAMP,IAAS,QAAU,QAAU,SACtD,SAAA,CAAAS,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"}
|
|
@@ -2,24 +2,24 @@ import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { useStrings as c } from "../../locale/useStrings.js";
|
|
4
4
|
function g({
|
|
5
|
-
tone:
|
|
6
|
-
title:
|
|
5
|
+
tone: e = "info",
|
|
6
|
+
title: s,
|
|
7
7
|
icon: i,
|
|
8
|
-
children:
|
|
9
|
-
className:
|
|
8
|
+
children: l,
|
|
9
|
+
className: t
|
|
10
10
|
}) {
|
|
11
11
|
const n = c(), o = [
|
|
12
12
|
"aegis-alert",
|
|
13
|
-
`aegis-alert--${
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
`aegis-alert--${e}`,
|
|
14
|
+
s === void 0 ? "" : "aegis-alert--titled",
|
|
15
|
+
t ?? ""
|
|
16
16
|
].filter(Boolean).join(" ");
|
|
17
|
-
return /* @__PURE__ */ r("div", { className: o, role: "status", children: [
|
|
17
|
+
return /* @__PURE__ */ r("div", { className: o, role: e === "error" ? "alert" : "status", children: [
|
|
18
18
|
/* @__PURE__ */ a("span", { className: "aegis-alert__marker", "aria-hidden": "true", children: i ?? /* @__PURE__ */ a("span", { className: "aegis-alert__dot" }) }),
|
|
19
19
|
/* @__PURE__ */ r("div", { className: "aegis-alert__content", children: [
|
|
20
|
-
/* @__PURE__ */ a("span", { className: "aegis-alert__tone", children: n.alertTone(
|
|
21
|
-
|
|
22
|
-
/* @__PURE__ */ a("span", { className: "aegis-alert__body", children:
|
|
20
|
+
/* @__PURE__ */ a("span", { className: "aegis-alert__tone", children: n.alertTone(e) }),
|
|
21
|
+
s !== void 0 && /* @__PURE__ */ a("span", { className: "aegis-alert__title", children: s }),
|
|
22
|
+
/* @__PURE__ */ a("span", { className: "aegis-alert__body", children: l })
|
|
23
23
|
] })
|
|
24
24
|
] });
|
|
25
25
|
}
|
|
@@ -1 +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
|
|
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={tone === 'error' ? 'alert' : '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,SAAI,WAAWD,GAAK,MAAMP,MAAS,UAAU,UAAU,UACtD,UAAA;AAAA,IAAA,gBAAAS,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;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),f=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),f=require("react"),h=require("../../agent/core/usePrimitiveSurface.cjs");;/* empty css */const j=require("../../locale/useStrings.cjs");function d(a){return a.trim().split(/\s+/).slice(0,2).map(e=>e.charAt(0)).join("").toUpperCase()}const N=5;function $(a){let e=0;for(let r=0;r<a.length;r++)e=e*31+a.charCodeAt(r)>>>0;return e%N+1}function x({name:a,src:e,size:r="md",status:s,icon:v,colorSlot:o,className:m,surface:c}){const p=j.useStrings(),i=f.useRef(null),l=h.usePrimitiveSurface(c,{name:a,status:s},"entity",i),u=["aegis-avatar",`aegis-avatar--${r}`,m].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} ${o===void 0?`aegis-avatar--hue-${$(a)}`:`aegis-avatar--slot-${o}`}`,"aria-label":a,role:"img",children:v??d(a)});return s?t.jsxs("span",{ref:i,className:g,...l,children:[n,t.jsx("span",{className:`aegis-avatar__status aegis-avatar__status--${s}`,role:"img","aria-label":p.avatarStatus(s)})]}):c?t.jsx("span",{ref:i,className:g,...l,children:n}):n}exports.Avatar=x;
|
|
2
2
|
//# sourceMappingURL=Avatar.cjs.map
|
|
@@ -1 +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":"
|
|
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 { useStrings } from '../../locale';\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 strings = useStrings();\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 role=\"img\"\n aria-label={strings.avatarStatus(status)}\n />\n </span>\n );\n}\n"],"names":["initialsFromName","name","w","HUE_COUNT","hueFromName","hash","i","Avatar","src","size","status","icon","colorSlot","className","surface","strings","useStrings","wrapRef","useRef","agentAttrs","usePrimitiveSurface","cls","wrapperCls","content","jsx"],"mappings":"yQAkCA,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,WAAA,EACVC,EAAUC,EAAAA,OAAwB,IAAI,EACtCC,EAAaC,EAAAA,oBACjBN,EACA,CAAE,KAAAb,EAAM,OAAAS,CAAA,EACR,SACAO,CAAA,EAGII,EAAM,CAAC,eAAgB,iBAAiBZ,CAAI,GAAII,CAAS,EAC5D,OAAO,OAAO,EACd,KAAK,GAAG,EAELS,EAAa,CAAC,oBAAqB,sBAAsBb,CAAI,EAAE,EAAE,KACrE,GAAA,EAGIc,EAAUf,EACdgB,EAAAA,IAAC,MAAA,CAAI,IAAAhB,EAAU,IAAKP,EAAM,UAAWoB,CAAA,CAAK,EAE1CG,EAAAA,IAAC,OAAA,CACC,UAAW,GAAGH,CAAG,IACfT,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,IAAKO,EAAS,UAAWK,EAAa,GAAGH,EAC5C,SAAA,CAAAI,EACDC,EAAAA,IAAC,OAAA,CACC,UAAW,8CAA8Cd,CAAM,GAC/D,KAAK,MACL,aAAYK,EAAQ,aAAaL,CAAM,CAAA,CAAA,CACzC,EACF,EAlBKI,EAIHU,MAAC,QAAK,IAAKP,EAAS,UAAWK,EAAa,GAAGH,EAC5C,SAAAI,CAAA,CACH,EALOA,CAmBb"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { usePrimitiveSurface as
|
|
1
|
+
import { jsx as s, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as h } from "react";
|
|
3
|
+
import { usePrimitiveSurface as N } from "../../agent/core/usePrimitiveSurface.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
5
|
+
import { useStrings as $ } from "../../locale/useStrings.js";
|
|
6
|
+
function d(a) {
|
|
6
7
|
return a.trim().split(/\s+/).slice(0, 2).map((r) => r.charAt(0)).join("").toUpperCase();
|
|
7
8
|
}
|
|
8
|
-
const
|
|
9
|
-
function
|
|
9
|
+
const j = 5;
|
|
10
|
+
function _(a) {
|
|
10
11
|
let r = 0;
|
|
11
12
|
for (let t = 0; t < a.length; t++)
|
|
12
13
|
r = r * 31 + a.charCodeAt(t) >>> 0;
|
|
13
|
-
return r %
|
|
14
|
+
return r % j + 1;
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
+
function b({
|
|
16
17
|
name: a,
|
|
17
18
|
src: r,
|
|
18
19
|
size: t = "md",
|
|
@@ -22,34 +23,35 @@ function C({
|
|
|
22
23
|
className: g,
|
|
23
24
|
surface: l
|
|
24
25
|
}) {
|
|
25
|
-
const
|
|
26
|
+
const u = $(), i = h(null), c = N(
|
|
26
27
|
l,
|
|
27
28
|
{ name: a, status: e },
|
|
28
29
|
"entity",
|
|
29
|
-
|
|
30
|
-
),
|
|
30
|
+
i
|
|
31
|
+
), m = ["aegis-avatar", `aegis-avatar--${t}`, g].filter(Boolean).join(" "), p = ["aegis-avatar-wrap", `aegis-avatar-wrap--${t}`].join(
|
|
31
32
|
" "
|
|
32
|
-
), n = r ? /* @__PURE__ */
|
|
33
|
+
), n = r ? /* @__PURE__ */ s("img", { src: r, alt: a, className: m }) : /* @__PURE__ */ s(
|
|
33
34
|
"span",
|
|
34
35
|
{
|
|
35
|
-
className: `${
|
|
36
|
+
className: `${m} ${o === void 0 ? `aegis-avatar--hue-${_(a)}` : `aegis-avatar--slot-${o}`}`,
|
|
36
37
|
"aria-label": a,
|
|
37
38
|
role: "img",
|
|
38
|
-
children: f ??
|
|
39
|
+
children: f ?? d(a)
|
|
39
40
|
}
|
|
40
41
|
);
|
|
41
|
-
return e ? /* @__PURE__ */
|
|
42
|
+
return e ? /* @__PURE__ */ v("span", { ref: i, className: p, ...c, children: [
|
|
42
43
|
n,
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ s(
|
|
44
45
|
"span",
|
|
45
46
|
{
|
|
46
47
|
className: `aegis-avatar__status aegis-avatar__status--${e}`,
|
|
47
|
-
"
|
|
48
|
+
role: "img",
|
|
49
|
+
"aria-label": u.avatarStatus(e)
|
|
48
50
|
}
|
|
49
51
|
)
|
|
50
|
-
] }) : l ? /* @__PURE__ */
|
|
52
|
+
] }) : l ? /* @__PURE__ */ s("span", { ref: i, className: p, ...c, children: n }) : n;
|
|
51
53
|
}
|
|
52
54
|
export {
|
|
53
|
-
|
|
55
|
+
b as Avatar
|
|
54
56
|
};
|
|
55
57
|
//# sourceMappingURL=Avatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.js","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":"
|
|
1
|
+
{"version":3,"file":"Avatar.js","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 { useStrings } from '../../locale';\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 strings = useStrings();\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 role=\"img\"\n aria-label={strings.avatarStatus(status)}\n />\n </span>\n );\n}\n"],"names":["initialsFromName","name","w","HUE_COUNT","hueFromName","hash","i","Avatar","src","size","status","icon","colorSlot","className","surface","strings","useStrings","wrapRef","useRef","agentAttrs","usePrimitiveSurface","cls","wrapperCls","content","jsx"],"mappings":";;;;;AAkCA,SAASA,EAAiBC,GAAsB;AAC9C,SAAOA,EACJ,OACA,MAAM,KAAK,EACX,MAAM,GAAG,CAAC,EACV,IAAI,CAACC,MAAMA,EAAE,OAAO,CAAC,CAAC,EACtB,KAAK,EAAE,EACP,YAAA;AACL;AAEA,MAAMC,IAAY;AAElB,SAASC,EAAYH,GAAsB;AACzC,MAAII,IAAO;AACX,WAASC,IAAI,GAAGA,IAAIL,EAAK,QAAQK;AAC/B,IAAAD,IAAQA,IAAO,KAAKJ,EAAK,WAAWK,CAAC,MAAO;AAE9C,SAAQD,IAAOF,IAAa;AAC9B;AAEO,SAASI,EAAO;AAAA,EACrB,MAAAN;AAAA,EACA,KAAAO;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,SAAAC;AACF,GAAgB;AACd,QAAMC,IAAUC,EAAA,GACVC,IAAUC,EAAwB,IAAI,GACtCC,IAAaC;AAAA,IACjBN;AAAA,IACA,EAAE,MAAAb,GAAM,QAAAS,EAAA;AAAA,IACR;AAAA,IACAO;AAAA,EAAA,GAGII,IAAM,CAAC,gBAAgB,iBAAiBZ,CAAI,IAAII,CAAS,EAC5D,OAAO,OAAO,EACd,KAAK,GAAG,GAELS,IAAa,CAAC,qBAAqB,sBAAsBb,CAAI,EAAE,EAAE;AAAA,IACrE;AAAA,EAAA,GAGIc,IAAUf,IACd,gBAAAgB,EAAC,OAAA,EAAI,KAAAhB,GAAU,KAAKP,GAAM,WAAWoB,EAAA,CAAK,IAE1C,gBAAAG;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,GAAGH,CAAG,IACfT,MAAc,SACV,qBAAqBR,EAAYH,CAAI,CAAC,KACtC,sBAAsBW,CAAS,EACrC;AAAA,MACA,cAAYX;AAAA,MACZ,MAAK;AAAA,MAEJ,UAAAU,KAAQX,EAAiBC,CAAI;AAAA,IAAA;AAAA,EAAA;AAIlC,SAAKS,sBAYF,QAAA,EAAK,KAAKO,GAAS,WAAWK,GAAa,GAAGH,GAC5C,UAAA;AAAA,IAAAI;AAAA,IACD,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW,8CAA8Cd,CAAM;AAAA,QAC/D,MAAK;AAAA,QACL,cAAYK,EAAQ,aAAaL,CAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EACzC,GACF,IAlBKI,IAIH,gBAAAU,EAAC,UAAK,KAAKP,GAAS,WAAWK,GAAa,GAAGH,GAC5C,UAAAI,EAAA,CACH,IALOA;AAmBb;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),b=require("react"),_=require("../../agent/core/usePrimitiveSurface.cjs");;/* empty css */function g({value:e,ariaLabel:t,"aria-labelledby":l,centerLabel:s,hideTicks:c=!1,"aria-describedby":d,className:u,surface:n}){const r=b.useRef(null),m=_.usePrimitiveSurface(n,{value:e,centerLabel:s},"metric",r),i=Math.max(0,Math.min(100,e)),o=["aegis-blast-radius",u??""].filter(Boolean).join(" ");return a.jsxs("div",{ref:r,className:o,...m,children:[a.jsx("div",{className:"aegis-blast-radius__track",role:"meter","aria-label":t,"aria-labelledby":l,"aria-describedby":d,"aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-valuetext":s??`${i.toString()}%`,children:a.jsx("div",{className:"aegis-blast-radius__fill",style:{width:`${i}%`}})}),!c&&a.jsxs("div",{className:"aegis-blast-radius__ticks",children:[a.jsx("span",{className:"aegis-blast-radius__tick",children:"0%"}),s&&a.jsx("span",{className:"aegis-blast-radius__tick aegis-blast-radius__tick--center",children:s}),a.jsx("span",{className:"aegis-blast-radius__tick",children:"100%"})]})]})}exports.BlastRadiusBar=g;
|
|
2
2
|
//# sourceMappingURL=BlastRadiusBar.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlastRadiusBar.cjs","sources":["../../../src/components/ui/BlastRadiusBar.tsx"],"sourcesContent":["import { useRef } from 'react';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './BlastRadiusBar.css';\n\nexport type BlastRadiusBarSurface = PrimitiveSurface<{\n value: number;\n centerLabel?: string;\n}>;\n\ninterface
|
|
1
|
+
{"version":3,"file":"BlastRadiusBar.cjs","sources":["../../../src/components/ui/BlastRadiusBar.tsx"],"sourcesContent":["import { useRef } from 'react';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './BlastRadiusBar.css';\n\nexport type BlastRadiusBarSurface = PrimitiveSurface<{\n value: number;\n centerLabel?: string;\n}>;\n\ninterface BlastRadiusBarBaseProps {\n /** 0 – 100 */\n value: number;\n /** Optional descriptive label for the current value (right-aligned, mid). */\n centerLabel?: string;\n /** Hide the 0 / 100 endpoints. */\n hideTicks?: boolean;\n /** Ids of the text that describes the measure, such as a FormRow's description. */\n 'aria-describedby'?: string;\n className?: string;\n surface?: BlastRadiusBarSurface;\n}\n\ntype BlastRadiusBarProps = BlastRadiusBarBaseProps &\n (\n | {\n /** Accessible name of the measure, e.g. \"Estimated blast radius\". */\n ariaLabel: string;\n 'aria-labelledby'?: never;\n }\n | {\n /**\n * Id of visible text that names the measure, such as a FormRow's\n * label (`${controlId}-label` with `labelBy='aria-labelledby'`).\n */\n 'aria-labelledby': string;\n ariaLabel?: never;\n }\n );\n\nexport function BlastRadiusBar({\n value,\n ariaLabel,\n 'aria-labelledby': labelledBy,\n centerLabel,\n hideTicks = false,\n 'aria-describedby': describedBy,\n className,\n surface,\n}: BlastRadiusBarProps) {\n const wrapRef = useRef<HTMLDivElement>(null);\n const agentAttrs = usePrimitiveSurface(\n surface,\n { value, centerLabel },\n 'metric',\n wrapRef,\n );\n const clamped = Math.max(0, Math.min(100, value));\n const cls = ['aegis-blast-radius', className ?? ''].filter(Boolean).join(' ');\n\n return (\n <div ref={wrapRef} className={cls} {...agentAttrs}>\n <div\n className=\"aegis-blast-radius__track\"\n role=\"meter\"\n aria-label={ariaLabel}\n aria-labelledby={labelledBy}\n aria-describedby={describedBy}\n aria-valuenow={clamped}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuetext={centerLabel ?? `${clamped.toString()}%`}\n >\n <div\n className=\"aegis-blast-radius__fill\"\n style={{ width: `${clamped}%` }}\n />\n </div>\n {!hideTicks && (\n <div className=\"aegis-blast-radius__ticks\">\n <span className=\"aegis-blast-radius__tick\">0%</span>\n {centerLabel && (\n <span className=\"aegis-blast-radius__tick aegis-blast-radius__tick--center\">\n {centerLabel}\n </span>\n )}\n <span className=\"aegis-blast-radius__tick\">100%</span>\n </div>\n )}\n </div>\n );\n}\n"],"names":["BlastRadiusBar","value","ariaLabel","labelledBy","centerLabel","hideTicks","describedBy","className","surface","wrapRef","useRef","agentAttrs","usePrimitiveSurface","clamped","cls","jsx","jsxs"],"mappings":"kOA2CO,SAASA,EAAe,CAC7B,MAAAC,EACA,UAAAC,EACA,kBAAmBC,EACnB,YAAAC,EACA,UAAAC,EAAY,GACZ,mBAAoBC,EACpB,UAAAC,EACA,QAAAC,CACF,EAAwB,CACtB,MAAMC,EAAUC,EAAAA,OAAuB,IAAI,EACrCC,EAAaC,EAAAA,oBACjBJ,EACA,CAAE,MAAAP,EAAO,YAAAG,CAAA,EACT,SACAK,CAAA,EAEII,EAAU,KAAK,IAAI,EAAG,KAAK,IAAI,IAAKZ,CAAK,CAAC,EAC1Ca,EAAM,CAAC,qBAAsBP,GAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAE5E,cACG,MAAA,CAAI,IAAKE,EAAS,UAAWK,EAAM,GAAGH,EACrC,SAAA,CAAAI,EAAAA,IAAC,MAAA,CACC,UAAU,4BACV,KAAK,QACL,aAAYb,EACZ,kBAAiBC,EACjB,mBAAkBG,EAClB,gBAAeO,EACf,gBAAe,EACf,gBAAe,IACf,iBAAgBT,GAAe,GAAGS,EAAQ,UAAU,IAEpD,SAAAE,EAAAA,IAAC,MAAA,CACC,UAAU,2BACV,MAAO,CAAE,MAAO,GAAGF,CAAO,GAAA,CAAI,CAAA,CAChC,CAAA,EAED,CAACR,GACAW,EAAAA,KAAC,MAAA,CAAI,UAAU,4BACb,SAAA,CAAAD,EAAAA,IAAC,OAAA,CAAK,UAAU,2BAA2B,SAAA,KAAE,EAC5CX,GACCW,EAAAA,IAAC,OAAA,CAAK,UAAU,4DACb,SAAAX,EACH,EAEFW,EAAAA,IAAC,OAAA,CAAK,UAAU,2BAA2B,SAAA,MAAA,CAAI,CAAA,CAAA,CACjD,CAAA,EAEJ,CAEJ"}
|