@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouteErrorBoundary.cjs","sources":["../../../src/layouts/shell/RouteErrorBoundary.tsx"],"sourcesContent":["import { Component, type ContextType, type ReactNode } from 'react';\n\nimport { Button } from '../../components/ui/Button';\nimport { ErrorState } from '../../components/ui/ErrorState';\nimport { LocaleContext } from '../../locale/localeContext';\nimport { PageWrapper } from '../PageWrapper';\n\ninterface RouteErrorBoundaryProps {\n /** A new key — the next location — clears the error and renders the route again. */\n resetKey: string;\n children: ReactNode;\n}\n\ninterface RouteErrorBoundaryState {\n error: Error | null;\n resetKey: string;\n}\n\n/**\n * Catches a render error in the routed page, so the shell around it stays\n * up. Shows the error in the page area with a retry; navigating elsewhere\n * clears it.\n */\nexport class RouteErrorBoundary extends Component<\n RouteErrorBoundaryProps,\n RouteErrorBoundaryState\n> {\n static override contextType = LocaleContext;\n declare context: ContextType<typeof LocaleContext>;\n\n override state: RouteErrorBoundaryState = {\n error: null,\n resetKey: this.props.resetKey,\n };\n\n static getDerivedStateFromError(\n error: unknown,\n ): Partial<RouteErrorBoundaryState> {\n return { error: error instanceof Error ? error : new Error(String(error)) };\n }\n\n static getDerivedStateFromProps(\n props: RouteErrorBoundaryProps,\n state: RouteErrorBoundaryState,\n ): Partial<RouteErrorBoundaryState> | null {\n return props.resetKey === state.resetKey\n ? null\n : { error: null, resetKey: props.resetKey };\n }\n\n private readonly retry = (): void => {\n this.setState({ error: null });\n };\n\n override render(): ReactNode {\n const { error } = this.state;\n if (!error) {\n return this.props.children;\n }\n const strings = this.context;\n return (\n <PageWrapper>\n <ErrorState\n title={strings.routeErrorTitle}\n description={error.message}\n action={\n <Button tone=\"secondary\" onClick={this.retry}>\n {strings.retry}\n </Button>\n }\n />\n </PageWrapper>\n );\n }\n}\n"],"names":["RouteErrorBoundary","Component","LocaleContext","error","props","state","strings","PageWrapper","jsx","ErrorState","Button"],"mappings":"gTAuBO,MAAMA,UAA2BC,EAAAA,SAGtC,CACA,OAAgB,YAAcC,EAAAA,cAGrB,MAAiC,CACxC,MAAO,KACP,SAAU,KAAK,MAAM,QAAA,EAGvB,OAAO,yBACLC,EACkC,CAClC,MAAO,CAAE,MAAOA,aAAiB,MAAQA,EAAQ,IAAI,MAAM,OAAOA,CAAK,CAAC,CAAA,CAC1E,CAEA,OAAO,yBACLC,EACAC,EACyC,CACzC,OAAOD,EAAM,WAAaC,EAAM,SAC5B,KACA,CAAE,MAAO,KAAM,SAAUD,EAAM,QAAA,CACrC,CAEiB,MAAQ,IAAY,CACnC,KAAK,SAAS,CAAE,MAAO,IAAA,CAAM,CAC/B,EAES,QAAoB,CAC3B,KAAM,CAAE,MAAAD,GAAU,KAAK,MACvB,GAAI,CAACA,EACH,OAAO,KAAK,MAAM,SAEpB,MAAMG,EAAU,KAAK,QACrB,aACGC,EAAAA,YAAA,CACC,SAAAC,EAAAA,IAACC,EAAAA,WAAA,CACC,MAAOH,EAAQ,gBACf,YAAaH,EAAM,QACnB,aACGO,SAAA,CAAO,KAAK,YAAY,QAAS,KAAK,MACpC,SAAAJ,EAAQ,KAAA,CACX,CAAA,CAAA,EAGN,CAEJ,CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Component, ContextType, ReactNode } from 'react';
|
|
2
|
+
import { LocaleContext } from '../../locale/localeContext';
|
|
3
|
+
interface RouteErrorBoundaryProps {
|
|
4
|
+
/** A new key — the next location — clears the error and renders the route again. */
|
|
5
|
+
resetKey: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
interface RouteErrorBoundaryState {
|
|
9
|
+
error: Error | null;
|
|
10
|
+
resetKey: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Catches a render error in the routed page, so the shell around it stays
|
|
14
|
+
* up. Shows the error in the page area with a retry; navigating elsewhere
|
|
15
|
+
* clears it.
|
|
16
|
+
*/
|
|
17
|
+
export declare class RouteErrorBoundary extends Component<RouteErrorBoundaryProps, RouteErrorBoundaryState> {
|
|
18
|
+
static contextType: import('react').Context<import('../..').AegisStrings>;
|
|
19
|
+
context: ContextType<typeof LocaleContext>;
|
|
20
|
+
state: RouteErrorBoundaryState;
|
|
21
|
+
static getDerivedStateFromError(error: unknown): Partial<RouteErrorBoundaryState>;
|
|
22
|
+
static getDerivedStateFromProps(props: RouteErrorBoundaryProps, state: RouteErrorBoundaryState): Partial<RouteErrorBoundaryState> | null;
|
|
23
|
+
private readonly retry;
|
|
24
|
+
render(): ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Component as o } from "react";
|
|
3
|
+
import { Button as s } from "../../components/ui/Button.js";
|
|
4
|
+
import { ErrorState as n } from "../../components/ui/ErrorState.js";
|
|
5
|
+
import { LocaleContext as i } from "../../locale/localeContext.js";
|
|
6
|
+
import { PageWrapper as a } from "../PageWrapper.js";
|
|
7
|
+
class h extends o {
|
|
8
|
+
static contextType = i;
|
|
9
|
+
state = {
|
|
10
|
+
error: null,
|
|
11
|
+
resetKey: this.props.resetKey
|
|
12
|
+
};
|
|
13
|
+
static getDerivedStateFromError(r) {
|
|
14
|
+
return { error: r instanceof Error ? r : new Error(String(r)) };
|
|
15
|
+
}
|
|
16
|
+
static getDerivedStateFromProps(r, t) {
|
|
17
|
+
return r.resetKey === t.resetKey ? null : { error: null, resetKey: r.resetKey };
|
|
18
|
+
}
|
|
19
|
+
retry = () => {
|
|
20
|
+
this.setState({ error: null });
|
|
21
|
+
};
|
|
22
|
+
render() {
|
|
23
|
+
const { error: r } = this.state;
|
|
24
|
+
if (!r)
|
|
25
|
+
return this.props.children;
|
|
26
|
+
const t = this.context;
|
|
27
|
+
return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
|
|
28
|
+
n,
|
|
29
|
+
{
|
|
30
|
+
title: t.routeErrorTitle,
|
|
31
|
+
description: r.message,
|
|
32
|
+
action: /* @__PURE__ */ e(s, { tone: "secondary", onClick: this.retry, children: t.retry })
|
|
33
|
+
}
|
|
34
|
+
) });
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
h as RouteErrorBoundary
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=RouteErrorBoundary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouteErrorBoundary.js","sources":["../../../src/layouts/shell/RouteErrorBoundary.tsx"],"sourcesContent":["import { Component, type ContextType, type ReactNode } from 'react';\n\nimport { Button } from '../../components/ui/Button';\nimport { ErrorState } from '../../components/ui/ErrorState';\nimport { LocaleContext } from '../../locale/localeContext';\nimport { PageWrapper } from '../PageWrapper';\n\ninterface RouteErrorBoundaryProps {\n /** A new key — the next location — clears the error and renders the route again. */\n resetKey: string;\n children: ReactNode;\n}\n\ninterface RouteErrorBoundaryState {\n error: Error | null;\n resetKey: string;\n}\n\n/**\n * Catches a render error in the routed page, so the shell around it stays\n * up. Shows the error in the page area with a retry; navigating elsewhere\n * clears it.\n */\nexport class RouteErrorBoundary extends Component<\n RouteErrorBoundaryProps,\n RouteErrorBoundaryState\n> {\n static override contextType = LocaleContext;\n declare context: ContextType<typeof LocaleContext>;\n\n override state: RouteErrorBoundaryState = {\n error: null,\n resetKey: this.props.resetKey,\n };\n\n static getDerivedStateFromError(\n error: unknown,\n ): Partial<RouteErrorBoundaryState> {\n return { error: error instanceof Error ? error : new Error(String(error)) };\n }\n\n static getDerivedStateFromProps(\n props: RouteErrorBoundaryProps,\n state: RouteErrorBoundaryState,\n ): Partial<RouteErrorBoundaryState> | null {\n return props.resetKey === state.resetKey\n ? null\n : { error: null, resetKey: props.resetKey };\n }\n\n private readonly retry = (): void => {\n this.setState({ error: null });\n };\n\n override render(): ReactNode {\n const { error } = this.state;\n if (!error) {\n return this.props.children;\n }\n const strings = this.context;\n return (\n <PageWrapper>\n <ErrorState\n title={strings.routeErrorTitle}\n description={error.message}\n action={\n <Button tone=\"secondary\" onClick={this.retry}>\n {strings.retry}\n </Button>\n }\n />\n </PageWrapper>\n );\n }\n}\n"],"names":["RouteErrorBoundary","Component","LocaleContext","error","props","state","strings","PageWrapper","jsx","ErrorState","Button"],"mappings":";;;;;;AAuBO,MAAMA,UAA2BC,EAGtC;AAAA,EACA,OAAgB,cAAcC;AAAA,EAGrB,QAAiC;AAAA,IACxC,OAAO;AAAA,IACP,UAAU,KAAK,MAAM;AAAA,EAAA;AAAA,EAGvB,OAAO,yBACLC,GACkC;AAClC,WAAO,EAAE,OAAOA,aAAiB,QAAQA,IAAQ,IAAI,MAAM,OAAOA,CAAK,CAAC,EAAA;AAAA,EAC1E;AAAA,EAEA,OAAO,yBACLC,GACAC,GACyC;AACzC,WAAOD,EAAM,aAAaC,EAAM,WAC5B,OACA,EAAE,OAAO,MAAM,UAAUD,EAAM,SAAA;AAAA,EACrC;AAAA,EAEiB,QAAQ,MAAY;AACnC,SAAK,SAAS,EAAE,OAAO,KAAA,CAAM;AAAA,EAC/B;AAAA,EAES,SAAoB;AAC3B,UAAM,EAAE,OAAAD,MAAU,KAAK;AACvB,QAAI,CAACA;AACH,aAAO,KAAK,MAAM;AAEpB,UAAMG,IAAU,KAAK;AACrB,6BACGC,GAAA,EACC,UAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,OAAOH,EAAQ;AAAA,QACf,aAAaH,EAAM;AAAA,QACnB,0BACGO,GAAA,EAAO,MAAK,aAAY,SAAS,KAAK,OACpC,UAAAJ,EAAQ,MAAA,CACX;AAAA,MAAA;AAAA,IAAA,GAGN;AAAA,EAEJ;AACF;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),u=require("react-router-dom"),c=({to:e,className:r,"aria-current":t,tabIndex:i,children:n})=>o.jsx(u.Link,{to:e,className:r,"aria-current":t,tabIndex:i,children:n});exports.RouterLink=c;
|
|
2
|
+
//# sourceMappingURL=RouterLink.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterLink.cjs","sources":["../../../src/layouts/shell/RouterLink.tsx"],"sourcesContent":["import { Link } from 'react-router-dom';\n\nimport type { LinkComponent } from '../../components/ui/linkComponent';\n\n/** `LinkComponent` adapter over react-router's `<Link>`. */\nexport const RouterLink: LinkComponent = ({\n to,\n className,\n 'aria-current': ariaCurrent,\n tabIndex,\n children,\n}) => (\n <Link\n to={to}\n className={className}\n aria-current={ariaCurrent}\n tabIndex={tabIndex}\n >\n {children}\n </Link>\n);\n"],"names":["RouterLink","to","className","ariaCurrent","tabIndex","children","jsx","Link"],"mappings":"mJAKaA,EAA4B,CAAC,CACxC,GAAAC,EACA,UAAAC,EACA,eAAgBC,EAChB,SAAAC,EACA,SAAAC,CACF,IACEC,EAAAA,IAACC,EAAAA,KAAA,CACC,GAAAN,EACA,UAAAC,EACA,eAAcC,EACd,SAAAC,EAEC,SAAAC,CAAA,CACH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Link as e } from "react-router-dom";
|
|
3
|
+
const p = ({
|
|
4
|
+
to: r,
|
|
5
|
+
className: o,
|
|
6
|
+
"aria-current": t,
|
|
7
|
+
tabIndex: i,
|
|
8
|
+
children: n
|
|
9
|
+
}) => /* @__PURE__ */ a(
|
|
10
|
+
e,
|
|
11
|
+
{
|
|
12
|
+
to: r,
|
|
13
|
+
className: o,
|
|
14
|
+
"aria-current": t,
|
|
15
|
+
tabIndex: i,
|
|
16
|
+
children: n
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
p as RouterLink
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=RouterLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterLink.js","sources":["../../../src/layouts/shell/RouterLink.tsx"],"sourcesContent":["import { Link } from 'react-router-dom';\n\nimport type { LinkComponent } from '../../components/ui/linkComponent';\n\n/** `LinkComponent` adapter over react-router's `<Link>`. */\nexport const RouterLink: LinkComponent = ({\n to,\n className,\n 'aria-current': ariaCurrent,\n tabIndex,\n children,\n}) => (\n <Link\n to={to}\n className={className}\n aria-current={ariaCurrent}\n tabIndex={tabIndex}\n >\n {children}\n </Link>\n);\n"],"names":["RouterLink","to","className","ariaCurrent","tabIndex","children","jsx","Link"],"mappings":";;AAKO,MAAMA,IAA4B,CAAC;AAAA,EACxC,IAAAC;AAAA,EACA,WAAAC;AAAA,EACA,gBAAgBC;AAAA,EAChB,UAAAC;AAAA,EACA,UAAAC;AACF,MACE,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,IAAAN;AAAA,IACA,WAAAC;AAAA,IACA,gBAAcC;AAAA,IACd,UAAAC;AAAA,IAEC,UAAAC;AAAA,EAAA;AACH;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),o=require("react"),d=require("../../components/ui/CommandPalette.cjs"),i=require("../../commands/useCommands.cjs");function C({groupOrder:a}){const{commands:l,paletteOpen:s,setPaletteOpen:e,execute:t}=i.useCommands(),c=o.useCallback(()=>{e(!1)},[e]),r=o.useCallback(n=>{t(n.id).catch(m=>{console.error(`Command "${n.id}" failed.`,m)})},[t]);return u.jsx(d.CommandPalette,{open:s,commands:l,onSelect:r,onClose:c,groupOrder:a})}exports.ShellCommandPalette=C;
|
|
2
|
+
//# sourceMappingURL=ShellCommandPalette.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShellCommandPalette.cjs","sources":["../../../src/layouts/shell/ShellCommandPalette.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport { type Command, useCommands } from '../../commands';\nimport { CommandPalette } from '../../components/ui/CommandPalette';\n\ninterface ShellCommandPaletteProps {\n groupOrder?: string[];\n}\n\n/** The CommandPalette filled from `<CommandProvider>` and opened by its mod+k. */\nexport function ShellCommandPalette({\n groupOrder,\n}: ShellCommandPaletteProps): ReactElement {\n const { commands, paletteOpen, setPaletteOpen, execute } = useCommands();\n const close = useCallback(() => {\n setPaletteOpen(false);\n }, [setPaletteOpen]);\n const run = useCallback(\n (cmd: Command) => {\n execute(cmd.id).catch((error: unknown) => {\n console.error(`Command \"${cmd.id}\" failed.`, error);\n });\n },\n [execute],\n );\n return (\n <CommandPalette\n open={paletteOpen}\n commands={commands}\n onSelect={run}\n onClose={close}\n groupOrder={groupOrder}\n />\n );\n}\n"],"names":["ShellCommandPalette","groupOrder","commands","paletteOpen","setPaletteOpen","execute","useCommands","close","useCallback","run","cmd","error","jsx","CommandPalette"],"mappings":"wOAUO,SAASA,EAAoB,CAClC,WAAAC,CACF,EAA2C,CACzC,KAAM,CAAE,SAAAC,EAAU,YAAAC,EAAa,eAAAC,EAAgB,QAAAC,CAAA,EAAYC,EAAAA,YAAA,EACrDC,EAAQC,EAAAA,YAAY,IAAM,CAC9BJ,EAAe,EAAK,CACtB,EAAG,CAACA,CAAc,CAAC,EACbK,EAAMD,EAAAA,YACTE,GAAiB,CAChBL,EAAQK,EAAI,EAAE,EAAE,MAAOC,GAAmB,CACxC,QAAQ,MAAM,YAAYD,EAAI,EAAE,YAAaC,CAAK,CACpD,CAAC,CACH,EACA,CAACN,CAAO,CAAA,EAEV,OACEO,EAAAA,IAACC,EAAAA,eAAA,CACC,KAAMV,EACN,SAAAD,EACA,SAAUO,EACV,QAASF,EACT,WAAAN,CAAA,CAAA,CAGN"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
interface ShellCommandPaletteProps {
|
|
3
|
+
groupOrder?: string[];
|
|
4
|
+
}
|
|
5
|
+
/** The CommandPalette filled from `<CommandProvider>` and opened by its mod+k. */
|
|
6
|
+
export declare function ShellCommandPalette({ groupOrder, }: ShellCommandPaletteProps): ReactElement;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as n } from "react";
|
|
3
|
+
import { CommandPalette as i } from "../../components/ui/CommandPalette.js";
|
|
4
|
+
import { useCommands as d } from "../../commands/useCommands.js";
|
|
5
|
+
function P({
|
|
6
|
+
groupOrder: m
|
|
7
|
+
}) {
|
|
8
|
+
const { commands: r, paletteOpen: a, setPaletteOpen: e, execute: o } = d(), l = n(() => {
|
|
9
|
+
e(!1);
|
|
10
|
+
}, [e]), s = n(
|
|
11
|
+
(t) => {
|
|
12
|
+
o(t.id).catch((c) => {
|
|
13
|
+
console.error(`Command "${t.id}" failed.`, c);
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
[o]
|
|
17
|
+
);
|
|
18
|
+
return /* @__PURE__ */ p(
|
|
19
|
+
i,
|
|
20
|
+
{
|
|
21
|
+
open: a,
|
|
22
|
+
commands: r,
|
|
23
|
+
onSelect: s,
|
|
24
|
+
onClose: l,
|
|
25
|
+
groupOrder: m
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
P as ShellCommandPalette
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=ShellCommandPalette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShellCommandPalette.js","sources":["../../../src/layouts/shell/ShellCommandPalette.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport { type Command, useCommands } from '../../commands';\nimport { CommandPalette } from '../../components/ui/CommandPalette';\n\ninterface ShellCommandPaletteProps {\n groupOrder?: string[];\n}\n\n/** The CommandPalette filled from `<CommandProvider>` and opened by its mod+k. */\nexport function ShellCommandPalette({\n groupOrder,\n}: ShellCommandPaletteProps): ReactElement {\n const { commands, paletteOpen, setPaletteOpen, execute } = useCommands();\n const close = useCallback(() => {\n setPaletteOpen(false);\n }, [setPaletteOpen]);\n const run = useCallback(\n (cmd: Command) => {\n execute(cmd.id).catch((error: unknown) => {\n console.error(`Command \"${cmd.id}\" failed.`, error);\n });\n },\n [execute],\n );\n return (\n <CommandPalette\n open={paletteOpen}\n commands={commands}\n onSelect={run}\n onClose={close}\n groupOrder={groupOrder}\n />\n );\n}\n"],"names":["ShellCommandPalette","groupOrder","commands","paletteOpen","setPaletteOpen","execute","useCommands","close","useCallback","run","cmd","error","jsx","CommandPalette"],"mappings":";;;;AAUO,SAASA,EAAoB;AAAA,EAClC,YAAAC;AACF,GAA2C;AACzC,QAAM,EAAE,UAAAC,GAAU,aAAAC,GAAa,gBAAAC,GAAgB,SAAAC,EAAA,IAAYC,EAAA,GACrDC,IAAQC,EAAY,MAAM;AAC9B,IAAAJ,EAAe,EAAK;AAAA,EACtB,GAAG,CAACA,CAAc,CAAC,GACbK,IAAMD;AAAA,IACV,CAACE,MAAiB;AAChB,MAAAL,EAAQK,EAAI,EAAE,EAAE,MAAM,CAACC,MAAmB;AACxC,gBAAQ,MAAM,YAAYD,EAAI,EAAE,aAAaC,CAAK;AAAA,MACpD,CAAC;AAAA,IACH;AAAA,IACA,CAACN,CAAO;AAAA,EAAA;AAEV,SACE,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAMV;AAAA,MACN,UAAAD;AAAA,MACA,UAAUO;AAAA,MACV,SAASF;AAAA,MACT,YAAAN;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),n=require("react"),f=require("../../components/ui/InboxPage.cjs"),g=require("./useOpenNotification.cjs"),v=require("../../notifications/useNotifications.cjs");function x({defaultFilter:t,surface:r}){const{items:i,unreadCount:s,markAllRead:e,error:a,liveError:c,refetch:o}=v.useNotifications(),u=g.useOpenNotification(),l=n.useCallback(()=>{e?.()},[e]),d=n.useCallback(()=>{o?.()},[o]);return b.jsx(f.InboxPage,{items:i,unreadCount:s,onOpen:u,onMarkAllRead:e?l:void 0,error:a,liveError:c,onRetry:o?d:void 0,defaultFilter:t,surface:r})}exports.ShellInboxPage=x;
|
|
2
|
+
//# sourceMappingURL=ShellInboxPage.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShellInboxPage.cjs","sources":["../../../src/layouts/shell/ShellInboxPage.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport {\n InboxPage,\n type InboxPageSurface,\n} from '../../components/ui/InboxPage';\nimport { useNotifications } from '../../notifications';\nimport { useOpenNotification } from './useOpenNotification';\n\ninterface ShellInboxPageProps {\n defaultFilter?: 'all' | 'unread';\n surface?: InboxPageSurface;\n}\n\n/**\n * The InboxPage filled from `<NotificationProvider>`: opening an item marks\n * it read and follows its `to`. Mount it on the route `inboxPath` names.\n */\nexport function ShellInboxPage({\n defaultFilter,\n surface,\n}: ShellInboxPageProps): ReactElement {\n const { items, unreadCount, markAllRead, error, liveError, refetch } =\n useNotifications();\n const open = useOpenNotification();\n const markAll = useCallback(() => {\n void markAllRead?.();\n }, [markAllRead]);\n const retry = useCallback(() => {\n void refetch?.();\n }, [refetch]);\n return (\n <InboxPage\n items={items}\n unreadCount={unreadCount}\n onOpen={open}\n onMarkAllRead={markAllRead ? markAll : undefined}\n error={error}\n liveError={liveError}\n onRetry={refetch ? retry : undefined}\n defaultFilter={defaultFilter}\n surface={surface}\n />\n );\n}\n"],"names":["ShellInboxPage","defaultFilter","surface","items","unreadCount","markAllRead","error","liveError","refetch","useNotifications","open","useOpenNotification","markAll","useCallback","retry","jsx","InboxPage"],"mappings":"oRAkBO,SAASA,EAAe,CAC7B,cAAAC,EACA,QAAAC,CACF,EAAsC,CACpC,KAAM,CAAE,MAAAC,EAAO,YAAAC,EAAa,YAAAC,EAAa,MAAAC,EAAO,UAAAC,EAAW,QAAAC,CAAA,EACzDC,mBAAA,EACIC,EAAOC,EAAAA,oBAAA,EACPC,EAAUC,EAAAA,YAAY,IAAM,CAC3BR,IAAA,CACP,EAAG,CAACA,CAAW,CAAC,EACVS,EAAQD,EAAAA,YAAY,IAAM,CACzBL,IAAA,CACP,EAAG,CAACA,CAAO,CAAC,EACZ,OACEO,EAAAA,IAACC,EAAAA,UAAA,CACC,MAAAb,EACA,YAAAC,EACA,OAAQM,EACR,cAAeL,EAAcO,EAAU,OACvC,MAAAN,EACA,UAAAC,EACA,QAASC,EAAUM,EAAQ,OAC3B,cAAAb,EACA,QAAAC,CAAA,CAAA,CAGN"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { InboxPageSurface } from '../../components/ui/InboxPage';
|
|
3
|
+
interface ShellInboxPageProps {
|
|
4
|
+
defaultFilter?: 'all' | 'unread';
|
|
5
|
+
surface?: InboxPageSurface;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The InboxPage filled from `<NotificationProvider>`: opening an item marks
|
|
9
|
+
* it read and follows its `to`. Mount it on the route `inboxPath` names.
|
|
10
|
+
*/
|
|
11
|
+
export declare function ShellInboxPage({ defaultFilter, surface, }: ShellInboxPageProps): ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as e } from "react";
|
|
3
|
+
import { InboxPage as d } from "../../components/ui/InboxPage.js";
|
|
4
|
+
import { useOpenNotification as u } from "./useOpenNotification.js";
|
|
5
|
+
import { useNotifications as v } from "../../notifications/useNotifications.js";
|
|
6
|
+
function g({
|
|
7
|
+
defaultFilter: t,
|
|
8
|
+
surface: n
|
|
9
|
+
}) {
|
|
10
|
+
const { items: i, unreadCount: m, markAllRead: o, error: a, liveError: l, refetch: r } = v(), s = u(), c = e(() => {
|
|
11
|
+
o?.();
|
|
12
|
+
}, [o]), f = e(() => {
|
|
13
|
+
r?.();
|
|
14
|
+
}, [r]);
|
|
15
|
+
return /* @__PURE__ */ p(
|
|
16
|
+
d,
|
|
17
|
+
{
|
|
18
|
+
items: i,
|
|
19
|
+
unreadCount: m,
|
|
20
|
+
onOpen: s,
|
|
21
|
+
onMarkAllRead: o ? c : void 0,
|
|
22
|
+
error: a,
|
|
23
|
+
liveError: l,
|
|
24
|
+
onRetry: r ? f : void 0,
|
|
25
|
+
defaultFilter: t,
|
|
26
|
+
surface: n
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
g as ShellInboxPage
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=ShellInboxPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShellInboxPage.js","sources":["../../../src/layouts/shell/ShellInboxPage.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport {\n InboxPage,\n type InboxPageSurface,\n} from '../../components/ui/InboxPage';\nimport { useNotifications } from '../../notifications';\nimport { useOpenNotification } from './useOpenNotification';\n\ninterface ShellInboxPageProps {\n defaultFilter?: 'all' | 'unread';\n surface?: InboxPageSurface;\n}\n\n/**\n * The InboxPage filled from `<NotificationProvider>`: opening an item marks\n * it read and follows its `to`. Mount it on the route `inboxPath` names.\n */\nexport function ShellInboxPage({\n defaultFilter,\n surface,\n}: ShellInboxPageProps): ReactElement {\n const { items, unreadCount, markAllRead, error, liveError, refetch } =\n useNotifications();\n const open = useOpenNotification();\n const markAll = useCallback(() => {\n void markAllRead?.();\n }, [markAllRead]);\n const retry = useCallback(() => {\n void refetch?.();\n }, [refetch]);\n return (\n <InboxPage\n items={items}\n unreadCount={unreadCount}\n onOpen={open}\n onMarkAllRead={markAllRead ? markAll : undefined}\n error={error}\n liveError={liveError}\n onRetry={refetch ? retry : undefined}\n defaultFilter={defaultFilter}\n surface={surface}\n />\n );\n}\n"],"names":["ShellInboxPage","defaultFilter","surface","items","unreadCount","markAllRead","error","liveError","refetch","useNotifications","open","useOpenNotification","markAll","useCallback","retry","jsx","InboxPage"],"mappings":";;;;;AAkBO,SAASA,EAAe;AAAA,EAC7B,eAAAC;AAAA,EACA,SAAAC;AACF,GAAsC;AACpC,QAAM,EAAE,OAAAC,GAAO,aAAAC,GAAa,aAAAC,GAAa,OAAAC,GAAO,WAAAC,GAAW,SAAAC,EAAA,IACzDC,EAAA,GACIC,IAAOC,EAAA,GACPC,IAAUC,EAAY,MAAM;AAChC,IAAKR,IAAA;AAAA,EACP,GAAG,CAACA,CAAW,CAAC,GACVS,IAAQD,EAAY,MAAM;AAC9B,IAAKL,IAAA;AAAA,EACP,GAAG,CAACA,CAAO,CAAC;AACZ,SACE,gBAAAO;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAb;AAAA,MACA,aAAAC;AAAA,MACA,QAAQM;AAAA,MACR,eAAeL,IAAcO,IAAU;AAAA,MACvC,OAAAN;AAAA,MACA,WAAAC;AAAA,MACA,SAASC,IAAUM,IAAQ;AAAA,MAC3B,eAAAb;AAAA,MACA,SAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),l=require("react"),a=require("../../components/ui/NotificationBell.cjs"),f=require("./RouterLink.cjs"),N=require("./useOpenNotification.cjs"),p=require("../../notifications/useNotifications.cjs");function q({inboxPath:t}){const{items:i,unreadCount:o,error:n,liveError:r,refetch:e}=p.useNotifications(),c=N.useOpenNotification(),s=l.useCallback(()=>{e?.()},[e]);return u.jsx(a.NotificationBell,{items:i,unreadCount:o,error:n,liveError:r,onRetry:e?s:void 0,onOpen:c,inboxPath:t,linkComponent:f.RouterLink})}exports.ShellNotificationBell=q;
|
|
2
|
+
//# sourceMappingURL=ShellNotificationBell.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShellNotificationBell.cjs","sources":["../../../src/layouts/shell/ShellNotificationBell.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport { NotificationBell } from '../../components/ui/NotificationBell';\nimport { useNotifications } from '../../notifications';\nimport { RouterLink } from './RouterLink';\nimport { useOpenNotification } from './useOpenNotification';\n\n/** The NotificationBell filled from `<NotificationProvider>`. */\nexport function ShellNotificationBell({\n inboxPath,\n}: {\n inboxPath: string;\n}): ReactElement {\n const { items, unreadCount, error, liveError, refetch } = useNotifications();\n const open = useOpenNotification();\n const retry = useCallback(() => {\n void refetch?.();\n }, [refetch]);\n return (\n <NotificationBell\n items={items}\n unreadCount={unreadCount}\n error={error}\n liveError={liveError}\n onRetry={refetch ? retry : undefined}\n onOpen={open}\n inboxPath={inboxPath}\n linkComponent={RouterLink}\n />\n );\n}\n"],"names":["ShellNotificationBell","inboxPath","items","unreadCount","error","liveError","refetch","useNotifications","open","useOpenNotification","retry","useCallback","jsx","NotificationBell","RouterLink"],"mappings":"yTAQO,SAASA,EAAsB,CACpC,UAAAC,CACF,EAEiB,CACf,KAAM,CAAE,MAAAC,EAAO,YAAAC,EAAa,MAAAC,EAAO,UAAAC,EAAW,QAAAC,CAAA,EAAYC,mBAAA,EACpDC,EAAOC,EAAAA,oBAAA,EACPC,EAAQC,EAAAA,YAAY,IAAM,CACzBL,IAAA,CACP,EAAG,CAACA,CAAO,CAAC,EACZ,OACEM,EAAAA,IAACC,EAAAA,iBAAA,CACC,MAAAX,EACA,YAAAC,EACA,MAAAC,EACA,UAAAC,EACA,QAASC,EAAUI,EAAQ,OAC3B,OAAQF,EACR,UAAAP,EACA,cAAea,EAAAA,UAAA,CAAA,CAGrB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as c } from "react";
|
|
3
|
+
import { NotificationBell as l } from "../../components/ui/NotificationBell.js";
|
|
4
|
+
import { RouterLink as s } from "./RouterLink.js";
|
|
5
|
+
import { useOpenNotification as u } from "./useOpenNotification.js";
|
|
6
|
+
import { useNotifications as a } from "../../notifications/useNotifications.js";
|
|
7
|
+
function x({
|
|
8
|
+
inboxPath: r
|
|
9
|
+
}) {
|
|
10
|
+
const { items: t, unreadCount: i, error: e, liveError: n, refetch: o } = a(), m = u(), f = c(() => {
|
|
11
|
+
o?.();
|
|
12
|
+
}, [o]);
|
|
13
|
+
return /* @__PURE__ */ p(
|
|
14
|
+
l,
|
|
15
|
+
{
|
|
16
|
+
items: t,
|
|
17
|
+
unreadCount: i,
|
|
18
|
+
error: e,
|
|
19
|
+
liveError: n,
|
|
20
|
+
onRetry: o ? f : void 0,
|
|
21
|
+
onOpen: m,
|
|
22
|
+
inboxPath: r,
|
|
23
|
+
linkComponent: s
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
x as ShellNotificationBell
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=ShellNotificationBell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShellNotificationBell.js","sources":["../../../src/layouts/shell/ShellNotificationBell.tsx"],"sourcesContent":["import { type ReactElement, useCallback } from 'react';\n\nimport { NotificationBell } from '../../components/ui/NotificationBell';\nimport { useNotifications } from '../../notifications';\nimport { RouterLink } from './RouterLink';\nimport { useOpenNotification } from './useOpenNotification';\n\n/** The NotificationBell filled from `<NotificationProvider>`. */\nexport function ShellNotificationBell({\n inboxPath,\n}: {\n inboxPath: string;\n}): ReactElement {\n const { items, unreadCount, error, liveError, refetch } = useNotifications();\n const open = useOpenNotification();\n const retry = useCallback(() => {\n void refetch?.();\n }, [refetch]);\n return (\n <NotificationBell\n items={items}\n unreadCount={unreadCount}\n error={error}\n liveError={liveError}\n onRetry={refetch ? retry : undefined}\n onOpen={open}\n inboxPath={inboxPath}\n linkComponent={RouterLink}\n />\n );\n}\n"],"names":["ShellNotificationBell","inboxPath","items","unreadCount","error","liveError","refetch","useNotifications","open","useOpenNotification","retry","useCallback","jsx","NotificationBell","RouterLink"],"mappings":";;;;;;AAQO,SAASA,EAAsB;AAAA,EACpC,WAAAC;AACF,GAEiB;AACf,QAAM,EAAE,OAAAC,GAAO,aAAAC,GAAa,OAAAC,GAAO,WAAAC,GAAW,SAAAC,EAAA,IAAYC,EAAA,GACpDC,IAAOC,EAAA,GACPC,IAAQC,EAAY,MAAM;AAC9B,IAAKL,IAAA;AAAA,EACP,GAAG,CAACA,CAAO,CAAC;AACZ,SACE,gBAAAM;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAX;AAAA,MACA,aAAAC;AAAA,MACA,OAAAC;AAAA,MACA,WAAAC;AAAA,MACA,SAASC,IAAUI,IAAQ;AAAA,MAC3B,QAAQF;AAAA,MACR,WAAAP;AAAA,MACA,eAAea;AAAA,IAAA;AAAA,EAAA;AAGrB;"}
|
|
@@ -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"),c=require("react-router-dom"),h=require("./paths.cjs");function t({activeApp:s,drawerRef:n}){return!s?.sidebar||s.sidebar.length===0?null:e.jsx("aside",{ref:n,className:"aegis-shell__sidebar",children:e.jsxs("section",{className:"aegis-shell__sidebar-section",children:[e.jsx("div",{className:"aegis-shell__sidebar-heading",children:s.label}),s.sidebar.map((l,r)=>e.jsxs("div",{children:[l.label&&e.jsx("div",{className:"aegis-shell__sidebar-heading",children:l.label}),l.items.map(a=>{const i=h.joinPath(s.basePath,a.to);return e.jsxs(c.NavLink,{to:i,end:a.end,className:({isActive:d})=>["aegis-shell__nav-link",d?"aegis-shell__nav-link--active":""].filter(Boolean).join(" "),children:[a.icon&&e.jsx("span",{className:"aegis-shell__nav-icon",children:a.icon}),e.jsx("span",{children:a.label})]},i)})]},r))]})})}exports.Sidebar=t;
|
|
2
2
|
//# sourceMappingURL=Sidebar.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.cjs","sources":["../../../src/layouts/shell/Sidebar.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { NavLink } from 'react-router-dom';\n\nimport { joinPath } from './paths';\nimport type { AegisApp } from './types';\n\ninterface SidebarProps {\n activeApp: AegisApp | undefined;\n}\n\n/**\n * Per-app inner nav. The global app list lives in the header's\n * `AppSwitcher`, not here — sidebar only ever shows the current app.\n */\nexport function Sidebar({
|
|
1
|
+
{"version":3,"file":"Sidebar.cjs","sources":["../../../src/layouts/shell/Sidebar.tsx"],"sourcesContent":["import type { ReactElement, Ref } from 'react';\n\nimport { NavLink } from 'react-router-dom';\n\nimport { joinPath } from './paths';\nimport type { AegisApp } from './types';\n\ninterface SidebarProps {\n activeApp: AegisApp | undefined;\n /** The sidebar element, which is the navigation drawer at 768 px and below. */\n drawerRef?: Ref<HTMLElement>;\n}\n\n/**\n * Per-app inner nav. The global app list lives in the header's\n * `AppSwitcher`, not here — sidebar only ever shows the current app.\n */\nexport function Sidebar({\n activeApp,\n drawerRef,\n}: SidebarProps): ReactElement | null {\n if (!activeApp?.sidebar || activeApp.sidebar.length === 0) {\n return null;\n }\n\n return (\n <aside ref={drawerRef} className=\"aegis-shell__sidebar\">\n <section className=\"aegis-shell__sidebar-section\">\n <div className=\"aegis-shell__sidebar-heading\">{activeApp.label}</div>\n {activeApp.sidebar.map((group, idx) => (\n <div key={idx}>\n {group.label && (\n <div className=\"aegis-shell__sidebar-heading\">{group.label}</div>\n )}\n {group.items.map((item) => {\n const path = joinPath(activeApp.basePath, item.to);\n return (\n <NavLink\n key={path}\n to={path}\n end={item.end}\n className={({ isActive }) =>\n [\n 'aegis-shell__nav-link',\n isActive ? 'aegis-shell__nav-link--active' : '',\n ]\n .filter(Boolean)\n .join(' ')\n }\n >\n {item.icon && (\n <span className=\"aegis-shell__nav-icon\">{item.icon}</span>\n )}\n <span>{item.label}</span>\n </NavLink>\n );\n })}\n </div>\n ))}\n </section>\n </aside>\n );\n}\n"],"names":["Sidebar","activeApp","drawerRef","jsx","jsxs","group","idx","item","path","joinPath","NavLink","isActive"],"mappings":"4KAiBO,SAASA,EAAQ,CACtB,UAAAC,EACA,UAAAC,CACF,EAAsC,CACpC,MAAI,CAACD,GAAW,SAAWA,EAAU,QAAQ,SAAW,EAC/C,KAIPE,EAAAA,IAAC,SAAM,IAAKD,EAAW,UAAU,uBAC/B,SAAAE,EAAAA,KAAC,UAAA,CAAQ,UAAU,+BACjB,SAAA,CAAAD,EAAAA,IAAC,MAAA,CAAI,UAAU,+BAAgC,SAAAF,EAAU,MAAM,EAC9DA,EAAU,QAAQ,IAAI,CAACI,EAAOC,WAC5B,MAAA,CACE,SAAA,CAAAD,EAAM,OACLF,EAAAA,IAAC,MAAA,CAAI,UAAU,+BAAgC,WAAM,MAAM,EAE5DE,EAAM,MAAM,IAAKE,GAAS,CACzB,MAAMC,EAAOC,EAAAA,SAASR,EAAU,SAAUM,EAAK,EAAE,EACjD,OACEH,EAAAA,KAACM,EAAAA,QAAA,CAEC,GAAIF,EACJ,IAAKD,EAAK,IACV,UAAW,CAAC,CAAE,SAAAI,KACZ,CACE,wBACAA,EAAW,gCAAkC,EAAA,EAE5C,OAAO,OAAO,EACd,KAAK,GAAG,EAGZ,SAAA,CAAAJ,EAAK,MACJJ,EAAAA,IAAC,OAAA,CAAK,UAAU,wBAAyB,WAAK,KAAK,EAErDA,EAAAA,IAAC,OAAA,CAAM,SAAAI,EAAK,KAAA,CAAM,CAAA,CAAA,EAfbC,CAAA,CAkBX,CAAC,CAAA,CAAA,EA1BOF,CA2BV,CACD,CAAA,CAAA,CACH,CAAA,CACF,CAEJ"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import { ReactElement, Ref } from 'react';
|
|
2
2
|
import { AegisApp } from './types';
|
|
3
3
|
interface SidebarProps {
|
|
4
4
|
activeApp: AegisApp | undefined;
|
|
5
|
+
/** The sidebar element, which is the navigation drawer at 768 px and below. */
|
|
6
|
+
drawerRef?: Ref<HTMLElement>;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* Per-app inner nav. The global app list lives in the header's
|
|
8
10
|
* `AppSwitcher`, not here — sidebar only ever shows the current app.
|
|
9
11
|
*/
|
|
10
|
-
export declare function Sidebar({ activeApp }: SidebarProps): ReactElement | null;
|
|
12
|
+
export declare function Sidebar({ activeApp, drawerRef, }: SidebarProps): ReactElement | null;
|
|
11
13
|
export {};
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { jsx as s, jsxs as i } from "react/jsx-runtime";
|
|
2
|
-
import { NavLink as
|
|
3
|
-
import { joinPath as
|
|
4
|
-
function
|
|
5
|
-
|
|
2
|
+
import { NavLink as c } from "react-router-dom";
|
|
3
|
+
import { joinPath as o } from "./paths.js";
|
|
4
|
+
function m({
|
|
5
|
+
activeApp: e,
|
|
6
|
+
drawerRef: r
|
|
7
|
+
}) {
|
|
8
|
+
return !e?.sidebar || e.sidebar.length === 0 ? null : /* @__PURE__ */ s("aside", { ref: r, className: "aegis-shell__sidebar", children: /* @__PURE__ */ i("section", { className: "aegis-shell__sidebar-section", children: [
|
|
6
9
|
/* @__PURE__ */ s("div", { className: "aegis-shell__sidebar-heading", children: e.label }),
|
|
7
|
-
e.sidebar.map((l,
|
|
10
|
+
e.sidebar.map((l, d) => /* @__PURE__ */ i("div", { children: [
|
|
8
11
|
l.label && /* @__PURE__ */ s("div", { className: "aegis-shell__sidebar-heading", children: l.label }),
|
|
9
12
|
l.items.map((a) => {
|
|
10
|
-
const n =
|
|
13
|
+
const n = o(e.basePath, a.to);
|
|
11
14
|
return /* @__PURE__ */ i(
|
|
12
|
-
|
|
15
|
+
c,
|
|
13
16
|
{
|
|
14
17
|
to: n,
|
|
15
18
|
end: a.end,
|
|
16
|
-
className: ({ isActive:
|
|
19
|
+
className: ({ isActive: h }) => [
|
|
17
20
|
"aegis-shell__nav-link",
|
|
18
|
-
|
|
21
|
+
h ? "aegis-shell__nav-link--active" : ""
|
|
19
22
|
].filter(Boolean).join(" "),
|
|
20
23
|
children: [
|
|
21
24
|
a.icon && /* @__PURE__ */ s("span", { className: "aegis-shell__nav-icon", children: a.icon }),
|
|
@@ -25,10 +28,10 @@ function t({ activeApp: e }) {
|
|
|
25
28
|
n
|
|
26
29
|
);
|
|
27
30
|
})
|
|
28
|
-
] },
|
|
31
|
+
] }, d))
|
|
29
32
|
] }) });
|
|
30
33
|
}
|
|
31
34
|
export {
|
|
32
|
-
|
|
35
|
+
m as Sidebar
|
|
33
36
|
};
|
|
34
37
|
//# sourceMappingURL=Sidebar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.js","sources":["../../../src/layouts/shell/Sidebar.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\n\nimport { NavLink } from 'react-router-dom';\n\nimport { joinPath } from './paths';\nimport type { AegisApp } from './types';\n\ninterface SidebarProps {\n activeApp: AegisApp | undefined;\n}\n\n/**\n * Per-app inner nav. The global app list lives in the header's\n * `AppSwitcher`, not here — sidebar only ever shows the current app.\n */\nexport function Sidebar({
|
|
1
|
+
{"version":3,"file":"Sidebar.js","sources":["../../../src/layouts/shell/Sidebar.tsx"],"sourcesContent":["import type { ReactElement, Ref } from 'react';\n\nimport { NavLink } from 'react-router-dom';\n\nimport { joinPath } from './paths';\nimport type { AegisApp } from './types';\n\ninterface SidebarProps {\n activeApp: AegisApp | undefined;\n /** The sidebar element, which is the navigation drawer at 768 px and below. */\n drawerRef?: Ref<HTMLElement>;\n}\n\n/**\n * Per-app inner nav. The global app list lives in the header's\n * `AppSwitcher`, not here — sidebar only ever shows the current app.\n */\nexport function Sidebar({\n activeApp,\n drawerRef,\n}: SidebarProps): ReactElement | null {\n if (!activeApp?.sidebar || activeApp.sidebar.length === 0) {\n return null;\n }\n\n return (\n <aside ref={drawerRef} className=\"aegis-shell__sidebar\">\n <section className=\"aegis-shell__sidebar-section\">\n <div className=\"aegis-shell__sidebar-heading\">{activeApp.label}</div>\n {activeApp.sidebar.map((group, idx) => (\n <div key={idx}>\n {group.label && (\n <div className=\"aegis-shell__sidebar-heading\">{group.label}</div>\n )}\n {group.items.map((item) => {\n const path = joinPath(activeApp.basePath, item.to);\n return (\n <NavLink\n key={path}\n to={path}\n end={item.end}\n className={({ isActive }) =>\n [\n 'aegis-shell__nav-link',\n isActive ? 'aegis-shell__nav-link--active' : '',\n ]\n .filter(Boolean)\n .join(' ')\n }\n >\n {item.icon && (\n <span className=\"aegis-shell__nav-icon\">{item.icon}</span>\n )}\n <span>{item.label}</span>\n </NavLink>\n );\n })}\n </div>\n ))}\n </section>\n </aside>\n );\n}\n"],"names":["Sidebar","activeApp","drawerRef","jsx","jsxs","group","idx","item","path","joinPath","NavLink","isActive"],"mappings":";;;AAiBO,SAASA,EAAQ;AAAA,EACtB,WAAAC;AAAA,EACA,WAAAC;AACF,GAAsC;AACpC,SAAI,CAACD,GAAW,WAAWA,EAAU,QAAQ,WAAW,IAC/C,OAIP,gBAAAE,EAAC,WAAM,KAAKD,GAAW,WAAU,wBAC/B,UAAA,gBAAAE,EAAC,WAAA,EAAQ,WAAU,gCACjB,UAAA;AAAA,IAAA,gBAAAD,EAAC,OAAA,EAAI,WAAU,gCAAgC,UAAAF,EAAU,OAAM;AAAA,IAC9DA,EAAU,QAAQ,IAAI,CAACI,GAAOC,wBAC5B,OAAA,EACE,UAAA;AAAA,MAAAD,EAAM,SACL,gBAAAF,EAAC,OAAA,EAAI,WAAU,gCAAgC,YAAM,OAAM;AAAA,MAE5DE,EAAM,MAAM,IAAI,CAACE,MAAS;AACzB,cAAMC,IAAOC,EAASR,EAAU,UAAUM,EAAK,EAAE;AACjD,eACE,gBAAAH;AAAA,UAACM;AAAA,UAAA;AAAA,YAEC,IAAIF;AAAA,YACJ,KAAKD,EAAK;AAAA,YACV,WAAW,CAAC,EAAE,UAAAI,QACZ;AAAA,cACE;AAAA,cACAA,IAAW,kCAAkC;AAAA,YAAA,EAE5C,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,YAGZ,UAAA;AAAA,cAAAJ,EAAK,QACJ,gBAAAJ,EAAC,QAAA,EAAK,WAAU,yBAAyB,YAAK,MAAK;AAAA,cAErD,gBAAAA,EAAC,QAAA,EAAM,UAAAI,EAAK,MAAA,CAAM;AAAA,YAAA;AAAA,UAAA;AAAA,UAfbC;AAAA,QAAA;AAAA,MAkBX,CAAC;AAAA,IAAA,EAAA,GA1BOF,CA2BV,CACD;AAAA,EAAA,EAAA,CACH,EAAA,CACF;AAEJ;"}
|
|
@@ -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"),S=require("antd"),p=require("react-router-dom"),q=require("../../components/ui/Avatar.cjs"),C=require("../../components/ui/Chip.cjs"),A=require("../../components/ui/DropdownMenu.cjs"),E=require("../../components/ui/EnvironmentSwitcher.cjs"),B=require("./AppSwitcher.cjs"),U=require("./ShellNotificationBell.cjs"),v=require("../../locale/useStrings.cjs"),D=require("./environments/useEnvironment.cjs");function I({brand:s,apps:n,activeAppId:i,onAppSwitch:a,appSwitcher:o=!0,scrolled:l=!1,user:t,headerCenter:w,headerActions:N,inboxPath:d,onMobileMenuToggle:g,mobileMenuOpen:u=!1,menuToggleRef:b,showMobileMenu:f,sidebarCollapsible:y,sidebarCollapsed:h,onSidebarToggle:_,inlineSlotRef:k,inlineSlotActive:m,agentPanelOpen:c=!1,onAgentPanelToggle:x}){const r=v.useStrings(),j=e.jsxs(e.Fragment,{children:[s.logo&&e.jsx("span",{className:"aegis-shell__brand-logo",children:s.logo}),e.jsx("span",{className:"aegis-shell__brand-name",children:s.name})]});return e.jsxs("header",{className:l?"aegis-shell__header aegis-shell__header--scrolled":"aegis-shell__header",children:[e.jsxs("div",{className:"aegis-shell__header-left",children:[f&&g&&e.jsx("button",{ref:b,type:"button",className:"aegis-shell__menu-toggle",onClick:g,"aria-label":u?r.closeNavigation:r.openNavigation,"aria-expanded":u,children:e.jsx("span",{className:"aegis-shell__menu-toggle-glyph","aria-hidden":"true",children:"☰"})}),y&&_&&e.jsx("button",{type:"button",className:"aegis-shell__sidebar-toggle",onClick:_,"aria-label":h?r.showSidebar:r.hideSidebar,"aria-pressed":h,title:h?r.showSidebar:r.hideSidebar,children:e.jsx("span",{className:"aegis-shell__sidebar-toggle-glyph","aria-hidden":"true",children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{x:"2.5",y:"3.5",width:"15",height:"13",rx:"2"}),e.jsx("line",{x1:"8",y1:"3.5",x2:"8",y2:"16.5"})]})})}),o?e.jsx(B.AppSwitcher,{apps:n,activeAppId:i,onAppSwitch:a}):null,s.href?e.jsx(p.Link,{to:s.href,className:"aegis-shell__brand",children:j}):e.jsx("span",{className:"aegis-shell__brand",children:j})]}),e.jsx("div",{className:m?"aegis-shell__header-center aegis-shell__header-center--app":"aegis-shell__header-center",ref:k,"data-aegis-inline-slot":"",children:!m&&w}),e.jsxs("div",{className:"aegis-shell__header-right",children:[e.jsx(L,{}),N,d&&e.jsx(U.ShellNotificationBell,{inboxPath:d}),t&&e.jsx(R,{user:t}),x&&e.jsx("button",{type:"button",className:"aegis-shell__agent-toggle",onClick:x,"aria-label":c?r.hideAgentPanel:r.showAgentPanel,"aria-pressed":c,title:c?r.hideAgentPanel:r.showAgentPanel,children:e.jsx("span",{className:"aegis-shell__agent-toggle-glyph","aria-hidden":"true",children:e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{x:"2.5",y:"3.5",width:"15",height:"13",rx:"2"}),e.jsx("line",{x1:"12",y1:"3.5",x2:"12",y2:"16.5"})]})})})]})]})}function L(){const s=v.useStrings(),n=D.useEnvironmentManifest();if(n.status==="error")return e.jsx(S.Tooltip,{title:s.environmentsRetry(n.error.message),children:e.jsx("span",{className:"aegis-shell__env-error",children:e.jsxs(C.Chip,{tone:"warning",onClick:n.retry,children:[e.jsx("span",{className:"aegis-shell__env-error-full",children:s.environmentsUnavailable}),e.jsx("span",{className:"aegis-shell__env-error-short",children:s.environmentsUnavailableShort})]})})});if(n.status!=="ready")return null;const i=n.manifest.environments.map(a=>({id:a.id,label:a.label,badge:a.badge,hint:a.baseUrl}));return e.jsx(E.EnvironmentSwitcher,{className:"aegis-shell__env-switcher",options:i,currentId:n.currentEnvId,onChange:n.setCurrentEnv})}function R({user:s}){const n=p.useNavigate(),i=(s.menu??[]).map(l=>{const t=l.to;return{key:l.key,label:l.label,onClick:t?()=>{n(t)}:l.onClick}}),a=s.avatar??(typeof s.name=="string"?e.jsx(q.Avatar,{name:s.name,size:"sm",className:"aegis-shell__user-initials"}):null),o=e.jsxs("span",{className:a?"aegis-shell__user aegis-shell__user--badge":"aegis-shell__user",children:[a,e.jsx("span",{className:"aegis-shell__user-name",children:s.name})]});return i.length===0?o:e.jsx(A.DropdownMenu,{trigger:o,items:i})}exports.TopHeader=I;
|
|
2
2
|
//# sourceMappingURL=TopHeader.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopHeader.cjs","sources":["../../../src/layouts/shell/TopHeader.tsx"],"sourcesContent":["import type { ReactElement, ReactNode } from 'react';\n\nimport { Link, useNavigate } from 'react-router-dom';\n\nimport { Avatar } from '../../components/ui/Avatar';\nimport {\n type DropdownItem,\n DropdownMenu,\n} from '../../components/ui/DropdownMenu';\nimport { EnvironmentSwitcher } from '../../components/ui/EnvironmentSwitcher';\nimport { NotificationBell } from '../../components/ui/NotificationBell';\nimport { useStrings } from '../../locale';\nimport { AppSwitcher } from './AppSwitcher';\nimport { useEnvironmentManifest } from './environments';\nimport type { AegisApp, AegisBrand, AegisUser } from './types';\n\ninterface TopHeaderProps {\n brand: AegisBrand;\n apps: AegisApp[];\n activeAppId?: string;\n onAppSwitch?: (appId: string) => void;\n /** Whether to render the app launcher. */\n appSwitcher?: boolean;\n /** The page has scrolled under the header; it gets a shadow. */\n scrolled?: boolean;\n user?: AegisUser;\n headerCenter?: ReactNode;\n headerActions?: ReactNode;\n /** When set, render a notification bell linking to this path. */\n inboxPath?: string;\n /** Fired by the mobile hamburger; the shell owns the open state. */\n onMobileMenuToggle?: () => void;\n /** Whether to render the mobile hamburger at all (only when sidebar exists). */\n showMobileMenu?: boolean;\n /** Whether to render the desktop sidebar collapse toggle. */\n sidebarCollapsible?: boolean;\n /** Current collapsed state — drives aria-pressed on the toggle. */\n sidebarCollapsed?: boolean;\n /** Fired by the desktop collapse button; the shell owns the state. */\n onSidebarToggle?: () => void;\n /**\n * Ref callback for the inline app-header slot. The active app's\n * `header` is portalled into this node so it appears inside the shell\n * header instead of below it.\n */\n inlineSlotRef?: (node: HTMLDivElement | null) => void;\n /** When true, hide the global `headerCenter` (an app header took it over). */\n inlineSlotActive?: boolean;\n /** Current agent panel state — drives aria-pressed on its toggle. */\n agentPanelOpen?: boolean;\n /** Fired by the agent panel toggle; the toggle renders only when set. */\n onAgentPanelToggle?: () => void;\n}\n\nexport function TopHeader({\n brand,\n apps,\n activeAppId,\n onAppSwitch,\n appSwitcher = true,\n scrolled = false,\n user,\n headerCenter,\n headerActions,\n inboxPath,\n onMobileMenuToggle,\n showMobileMenu,\n sidebarCollapsible,\n sidebarCollapsed,\n onSidebarToggle,\n inlineSlotRef,\n inlineSlotActive,\n agentPanelOpen = false,\n onAgentPanelToggle,\n}: TopHeaderProps): ReactElement {\n const strings = useStrings();\n const brandInner = (\n <>\n {brand.logo && (\n <span className=\"aegis-shell__brand-logo\">{brand.logo}</span>\n )}\n <span className=\"aegis-shell__brand-name\">{brand.name}</span>\n </>\n );\n\n return (\n <header\n className={\n scrolled\n ? 'aegis-shell__header aegis-shell__header--scrolled'\n : 'aegis-shell__header'\n }\n >\n <div className=\"aegis-shell__header-left\">\n {showMobileMenu && onMobileMenuToggle && (\n <button\n type=\"button\"\n className=\"aegis-shell__menu-toggle\"\n onClick={onMobileMenuToggle}\n aria-label={strings.openNavigation}\n >\n <span className=\"aegis-shell__menu-toggle-glyph\" aria-hidden=\"true\">\n ☰\n </span>\n </button>\n )}\n {sidebarCollapsible && onSidebarToggle && (\n <button\n type=\"button\"\n className=\"aegis-shell__sidebar-toggle\"\n onClick={onSidebarToggle}\n aria-label={\n sidebarCollapsed ? strings.showSidebar : strings.hideSidebar\n }\n aria-pressed={sidebarCollapsed}\n title={sidebarCollapsed ? strings.showSidebar : strings.hideSidebar}\n >\n <span\n className=\"aegis-shell__sidebar-toggle-glyph\"\n aria-hidden=\"true\"\n >\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" />\n <line x1=\"8\" y1=\"3.5\" x2=\"8\" y2=\"16.5\" />\n </svg>\n </span>\n </button>\n )}\n {appSwitcher ? (\n <AppSwitcher\n apps={apps}\n activeAppId={activeAppId}\n onAppSwitch={onAppSwitch}\n />\n ) : null}\n {brand.href ? (\n <Link to={brand.href} className=\"aegis-shell__brand\">\n {brandInner}\n </Link>\n ) : (\n <span className=\"aegis-shell__brand\">{brandInner}</span>\n )}\n </div>\n <div\n className={\n inlineSlotActive\n ? 'aegis-shell__header-center aegis-shell__header-center--app'\n : 'aegis-shell__header-center'\n }\n ref={inlineSlotRef}\n data-aegis-inline-slot=\"\"\n >\n {!inlineSlotActive && headerCenter}\n </div>\n <div className=\"aegis-shell__header-right\">\n <ActiveEnvironmentSwitcher />\n {headerActions}\n {inboxPath && <NotificationBell inboxPath={inboxPath} />}\n {user && <UserMenu user={user} />}\n {onAgentPanelToggle && (\n <button\n type=\"button\"\n className=\"aegis-shell__agent-toggle\"\n onClick={onAgentPanelToggle}\n aria-label={\n agentPanelOpen ? 'Hide agent panel' : 'Show agent panel'\n }\n aria-pressed={agentPanelOpen}\n title={agentPanelOpen ? 'Hide agent panel' : 'Show agent panel'}\n >\n <span\n className=\"aegis-shell__agent-toggle-glyph\"\n aria-hidden=\"true\"\n >\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" />\n <line x1=\"12\" y1=\"3.5\" x2=\"12\" y2=\"16.5\" />\n </svg>\n </span>\n </button>\n )}\n </div>\n </header>\n );\n}\n\nfunction ActiveEnvironmentSwitcher(): ReactElement | null {\n const state = useEnvironmentManifest();\n if (state.status !== 'ready') {\n return null;\n }\n const options = state.manifest.environments.map((e) => ({\n id: e.id,\n label: e.label,\n badge: e.badge,\n hint: e.baseUrl,\n }));\n return (\n <EnvironmentSwitcher\n options={options}\n currentId={state.currentEnvId}\n onChange={state.setCurrentEnv}\n />\n );\n}\n\nfunction UserMenu({ user }: { user: AegisUser }): ReactElement {\n const navigate = useNavigate();\n const items: DropdownItem[] = (user.menu ?? []).map((entry) => {\n const to = entry.to;\n return {\n key: entry.key,\n label: entry.label,\n onClick: to\n ? () => {\n navigate(to);\n }\n : entry.onClick,\n };\n });\n const badge =\n user.avatar ??\n (typeof user.name === 'string' ? (\n <Avatar\n name={user.name}\n size=\"sm\"\n className=\"aegis-shell__user-initials\"\n />\n ) : null);\n const trigger = (\n <span\n className={\n badge\n ? 'aegis-shell__user aegis-shell__user--badge'\n : 'aegis-shell__user'\n }\n >\n {badge}\n <span className=\"aegis-shell__user-name\">{user.name}</span>\n </span>\n );\n if (items.length === 0) {\n return trigger;\n }\n return <DropdownMenu trigger={trigger} items={items} />;\n}\n"],"names":["TopHeader","brand","apps","activeAppId","onAppSwitch","appSwitcher","scrolled","user","headerCenter","headerActions","inboxPath","onMobileMenuToggle","showMobileMenu","sidebarCollapsible","sidebarCollapsed","onSidebarToggle","inlineSlotRef","inlineSlotActive","agentPanelOpen","onAgentPanelToggle","strings","useStrings","brandInner","jsxs","Fragment","jsx","AppSwitcher","Link","ActiveEnvironmentSwitcher","NotificationBell","UserMenu","state","useEnvironmentManifest","options","e","EnvironmentSwitcher","navigate","useNavigate","items","entry","to","badge","Avatar","trigger","DropdownMenu"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"TopHeader.cjs","sources":["../../../src/layouts/shell/TopHeader.tsx"],"sourcesContent":["import type { ReactElement, ReactNode, Ref } from 'react';\n\nimport { Tooltip } from 'antd';\nimport { Link, useNavigate } from 'react-router-dom';\n\nimport { Avatar } from '../../components/ui/Avatar';\nimport { Chip } from '../../components/ui/Chip';\nimport {\n type DropdownItem,\n DropdownMenu,\n} from '../../components/ui/DropdownMenu';\nimport { EnvironmentSwitcher } from '../../components/ui/EnvironmentSwitcher';\nimport { useStrings } from '../../locale';\nimport { AppSwitcher } from './AppSwitcher';\nimport { ShellNotificationBell } from './ShellNotificationBell';\nimport { useEnvironmentManifest } from './environments';\nimport type { AegisApp, AegisBrand, AegisUser } from './types';\n\ninterface TopHeaderProps {\n brand: AegisBrand;\n apps: AegisApp[];\n activeAppId?: string;\n onAppSwitch?: (appId: string) => void;\n /** Whether to render the app launcher. */\n appSwitcher?: boolean;\n /** The page has scrolled under the header; it gets a shadow. */\n scrolled?: boolean;\n user?: AegisUser;\n headerCenter?: ReactNode;\n headerActions?: ReactNode;\n /** When set, render a notification bell linking to this path. */\n inboxPath?: string;\n /** Fired by the mobile hamburger; the shell owns the open state. */\n onMobileMenuToggle?: () => void;\n /** Whether the navigation drawer is open — drives aria-expanded on the hamburger. */\n mobileMenuOpen?: boolean;\n /** The hamburger button, which takes focus back when the drawer is dismissed. */\n menuToggleRef?: Ref<HTMLButtonElement>;\n /** Whether to render the mobile hamburger at all (only when sidebar exists). */\n showMobileMenu?: boolean;\n /** Whether to render the desktop sidebar collapse toggle. */\n sidebarCollapsible?: boolean;\n /** Current collapsed state — drives aria-pressed on the toggle. */\n sidebarCollapsed?: boolean;\n /** Fired by the desktop collapse button; the shell owns the state. */\n onSidebarToggle?: () => void;\n /**\n * Ref callback for the inline app-header slot. The active app's\n * `header` is portalled into this node so it appears inside the shell\n * header instead of below it.\n */\n inlineSlotRef?: (node: HTMLDivElement | null) => void;\n /** When true, hide the global `headerCenter` (an app header took it over). */\n inlineSlotActive?: boolean;\n /** Current agent panel state — drives aria-pressed on its toggle. */\n agentPanelOpen?: boolean;\n /** Fired by the agent panel toggle; the toggle renders only when set. */\n onAgentPanelToggle?: () => void;\n}\n\nexport function TopHeader({\n brand,\n apps,\n activeAppId,\n onAppSwitch,\n appSwitcher = true,\n scrolled = false,\n user,\n headerCenter,\n headerActions,\n inboxPath,\n onMobileMenuToggle,\n mobileMenuOpen = false,\n menuToggleRef,\n showMobileMenu,\n sidebarCollapsible,\n sidebarCollapsed,\n onSidebarToggle,\n inlineSlotRef,\n inlineSlotActive,\n agentPanelOpen = false,\n onAgentPanelToggle,\n}: TopHeaderProps): ReactElement {\n const strings = useStrings();\n const brandInner = (\n <>\n {brand.logo && (\n <span className=\"aegis-shell__brand-logo\">{brand.logo}</span>\n )}\n <span className=\"aegis-shell__brand-name\">{brand.name}</span>\n </>\n );\n\n return (\n <header\n className={\n scrolled\n ? 'aegis-shell__header aegis-shell__header--scrolled'\n : 'aegis-shell__header'\n }\n >\n <div className=\"aegis-shell__header-left\">\n {showMobileMenu && onMobileMenuToggle && (\n <button\n ref={menuToggleRef}\n type=\"button\"\n className=\"aegis-shell__menu-toggle\"\n onClick={onMobileMenuToggle}\n aria-label={\n mobileMenuOpen ? strings.closeNavigation : strings.openNavigation\n }\n aria-expanded={mobileMenuOpen}\n >\n <span className=\"aegis-shell__menu-toggle-glyph\" aria-hidden=\"true\">\n ☰\n </span>\n </button>\n )}\n {sidebarCollapsible && onSidebarToggle && (\n <button\n type=\"button\"\n className=\"aegis-shell__sidebar-toggle\"\n onClick={onSidebarToggle}\n aria-label={\n sidebarCollapsed ? strings.showSidebar : strings.hideSidebar\n }\n aria-pressed={sidebarCollapsed}\n title={sidebarCollapsed ? strings.showSidebar : strings.hideSidebar}\n >\n <span\n className=\"aegis-shell__sidebar-toggle-glyph\"\n aria-hidden=\"true\"\n >\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" />\n <line x1=\"8\" y1=\"3.5\" x2=\"8\" y2=\"16.5\" />\n </svg>\n </span>\n </button>\n )}\n {appSwitcher ? (\n <AppSwitcher\n apps={apps}\n activeAppId={activeAppId}\n onAppSwitch={onAppSwitch}\n />\n ) : null}\n {brand.href ? (\n <Link to={brand.href} className=\"aegis-shell__brand\">\n {brandInner}\n </Link>\n ) : (\n <span className=\"aegis-shell__brand\">{brandInner}</span>\n )}\n </div>\n <div\n className={\n inlineSlotActive\n ? 'aegis-shell__header-center aegis-shell__header-center--app'\n : 'aegis-shell__header-center'\n }\n ref={inlineSlotRef}\n data-aegis-inline-slot=\"\"\n >\n {!inlineSlotActive && headerCenter}\n </div>\n <div className=\"aegis-shell__header-right\">\n <ActiveEnvironmentSwitcher />\n {headerActions}\n {inboxPath && <ShellNotificationBell inboxPath={inboxPath} />}\n {user && <UserMenu user={user} />}\n {onAgentPanelToggle && (\n <button\n type=\"button\"\n className=\"aegis-shell__agent-toggle\"\n onClick={onAgentPanelToggle}\n aria-label={\n agentPanelOpen ? strings.hideAgentPanel : strings.showAgentPanel\n }\n aria-pressed={agentPanelOpen}\n title={\n agentPanelOpen ? strings.hideAgentPanel : strings.showAgentPanel\n }\n >\n <span\n className=\"aegis-shell__agent-toggle-glyph\"\n aria-hidden=\"true\"\n >\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect x=\"2.5\" y=\"3.5\" width=\"15\" height=\"13\" rx=\"2\" />\n <line x1=\"12\" y1=\"3.5\" x2=\"12\" y2=\"16.5\" />\n </svg>\n </span>\n </button>\n )}\n </div>\n </header>\n );\n}\n\nfunction ActiveEnvironmentSwitcher(): ReactElement | null {\n const strings = useStrings();\n const state = useEnvironmentManifest();\n if (state.status === 'error') {\n return (\n <Tooltip title={strings.environmentsRetry(state.error.message)}>\n <span className=\"aegis-shell__env-error\">\n <Chip tone=\"warning\" onClick={state.retry}>\n <span className=\"aegis-shell__env-error-full\">\n {strings.environmentsUnavailable}\n </span>\n <span className=\"aegis-shell__env-error-short\">\n {strings.environmentsUnavailableShort}\n </span>\n </Chip>\n </span>\n </Tooltip>\n );\n }\n if (state.status !== 'ready') {\n return null;\n }\n const options = state.manifest.environments.map((e) => ({\n id: e.id,\n label: e.label,\n badge: e.badge,\n hint: e.baseUrl,\n }));\n return (\n <EnvironmentSwitcher\n className=\"aegis-shell__env-switcher\"\n options={options}\n currentId={state.currentEnvId}\n onChange={state.setCurrentEnv}\n />\n );\n}\n\nfunction UserMenu({ user }: { user: AegisUser }): ReactElement {\n const navigate = useNavigate();\n const items: DropdownItem[] = (user.menu ?? []).map((entry) => {\n const to = entry.to;\n return {\n key: entry.key,\n label: entry.label,\n onClick: to\n ? () => {\n navigate(to);\n }\n : entry.onClick,\n };\n });\n const badge =\n user.avatar ??\n (typeof user.name === 'string' ? (\n <Avatar\n name={user.name}\n size=\"sm\"\n className=\"aegis-shell__user-initials\"\n />\n ) : null);\n const trigger = (\n <span\n className={\n badge\n ? 'aegis-shell__user aegis-shell__user--badge'\n : 'aegis-shell__user'\n }\n >\n {badge}\n <span className=\"aegis-shell__user-name\">{user.name}</span>\n </span>\n );\n if (items.length === 0) {\n return trigger;\n }\n return <DropdownMenu trigger={trigger} items={items} />;\n}\n"],"names":["TopHeader","brand","apps","activeAppId","onAppSwitch","appSwitcher","scrolled","user","headerCenter","headerActions","inboxPath","onMobileMenuToggle","mobileMenuOpen","menuToggleRef","showMobileMenu","sidebarCollapsible","sidebarCollapsed","onSidebarToggle","inlineSlotRef","inlineSlotActive","agentPanelOpen","onAgentPanelToggle","strings","useStrings","brandInner","jsxs","Fragment","jsx","AppSwitcher","Link","ActiveEnvironmentSwitcher","ShellNotificationBell","UserMenu","state","useEnvironmentManifest","Tooltip","Chip","options","e","EnvironmentSwitcher","navigate","useNavigate","items","entry","to","badge","Avatar","trigger","DropdownMenu"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
1
|
+
import { ReactElement, ReactNode, Ref } from 'react';
|
|
2
2
|
import { AegisApp, AegisBrand, AegisUser } from './types';
|
|
3
3
|
interface TopHeaderProps {
|
|
4
4
|
brand: AegisBrand;
|
|
@@ -16,6 +16,10 @@ interface TopHeaderProps {
|
|
|
16
16
|
inboxPath?: string;
|
|
17
17
|
/** Fired by the mobile hamburger; the shell owns the open state. */
|
|
18
18
|
onMobileMenuToggle?: () => void;
|
|
19
|
+
/** Whether the navigation drawer is open — drives aria-expanded on the hamburger. */
|
|
20
|
+
mobileMenuOpen?: boolean;
|
|
21
|
+
/** The hamburger button, which takes focus back when the drawer is dismissed. */
|
|
22
|
+
menuToggleRef?: Ref<HTMLButtonElement>;
|
|
19
23
|
/** Whether to render the mobile hamburger at all (only when sidebar exists). */
|
|
20
24
|
showMobileMenu?: boolean;
|
|
21
25
|
/** Whether to render the desktop sidebar collapse toggle. */
|
|
@@ -37,5 +41,5 @@ interface TopHeaderProps {
|
|
|
37
41
|
/** Fired by the agent panel toggle; the toggle renders only when set. */
|
|
38
42
|
onAgentPanelToggle?: () => void;
|
|
39
43
|
}
|
|
40
|
-
export declare function TopHeader({ brand, apps, activeAppId, onAppSwitch, appSwitcher, scrolled, user, headerCenter, headerActions, inboxPath, onMobileMenuToggle, showMobileMenu, sidebarCollapsible, sidebarCollapsed, onSidebarToggle, inlineSlotRef, inlineSlotActive, agentPanelOpen, onAgentPanelToggle, }: TopHeaderProps): ReactElement;
|
|
44
|
+
export declare function TopHeader({ brand, apps, activeAppId, onAppSwitch, appSwitcher, scrolled, user, headerCenter, headerActions, inboxPath, onMobileMenuToggle, mobileMenuOpen, menuToggleRef, showMobileMenu, sidebarCollapsible, sidebarCollapsed, onSidebarToggle, inlineSlotRef, inlineSlotActive, agentPanelOpen, onAgentPanelToggle, }: TopHeaderProps): ReactElement;
|
|
41
45
|
export {};
|