@lincyaw/aegis-ui 0.9.4 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/ask/AskOverlay.cjs +3 -1
- package/dist/agent/ask/AskOverlay.cjs.map +1 -1
- package/dist/agent/ask/AskOverlay.d.ts +17 -1
- package/dist/agent/ask/AskOverlay.js +115 -58
- package/dist/agent/ask/AskOverlay.js.map +1 -1
- package/dist/agent/ask/AskPanel.cjs +1 -1
- package/dist/agent/ask/AskPanel.cjs.map +1 -1
- package/dist/agent/ask/AskPanel.d.ts +13 -3
- package/dist/agent/ask/AskPanel.js +130 -109
- package/dist/agent/ask/AskPanel.js.map +1 -1
- package/dist/agent/chat/chat.cjs +1 -1
- package/dist/agent/chat/chat.cjs.map +1 -1
- package/dist/agent/chat/chat.d.ts +1 -1
- package/dist/agent/chat/chat.js +3 -5
- package/dist/agent/chat/chat.js.map +1 -1
- package/dist/agent/chat/useAgentChat.cjs +1 -1
- package/dist/agent/chat/useAgentChat.cjs.map +1 -1
- package/dist/agent/chat/useAgentChat.d.ts +2 -0
- package/dist/agent/chat/useAgentChat.js +8 -4
- package/dist/agent/chat/useAgentChat.js.map +1 -1
- package/dist/agent/core/AegisRuntimeProvider.cjs.map +1 -1
- package/dist/agent/core/AegisRuntimeProvider.d.ts +2 -2
- package/dist/agent/core/AegisRuntimeProvider.js.map +1 -1
- package/dist/agent/core/hooks.cjs +1 -1
- package/dist/agent/core/hooks.cjs.map +1 -1
- package/dist/agent/core/hooks.js +21 -20
- package/dist/agent/core/hooks.js.map +1 -1
- package/dist/agent/core/runtime.cjs +1 -1
- package/dist/agent/core/runtime.cjs.map +1 -1
- package/dist/agent/core/runtime.d.ts +28 -9
- package/dist/agent/core/runtime.js +435 -268
- package/dist/agent/core/runtime.js.map +1 -1
- package/dist/agent/core/types.d.ts +65 -10
- package/dist/agent/index.d.ts +4 -3
- package/dist/commands/CommandProvider.cjs +1 -1
- package/dist/commands/CommandProvider.cjs.map +1 -1
- package/dist/commands/CommandProvider.js +33 -37
- package/dist/commands/CommandProvider.js.map +1 -1
- package/dist/commands/commandContext.cjs +1 -1
- package/dist/commands/commandContext.cjs.map +1 -1
- package/dist/commands/commandContext.d.ts +2 -5
- package/dist/commands/commandContext.js +3 -17
- package/dist/commands/commandContext.js.map +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/useCommands.cjs +1 -1
- package/dist/commands/useCommands.cjs.map +1 -1
- package/dist/commands/useCommands.d.ts +4 -2
- package/dist/commands/useCommands.js +21 -5
- package/dist/commands/useCommands.js.map +1 -1
- package/dist/commands/useRegisterCommands.cjs +2 -1
- package/dist/commands/useRegisterCommands.cjs.map +1 -1
- package/dist/commands/useRegisterCommands.d.ts +3 -2
- package/dist/commands/useRegisterCommands.js +35 -8
- package/dist/commands/useRegisterCommands.js.map +1 -1
- package/dist/components/ui/Alert.cjs +1 -1
- package/dist/components/ui/Alert.cjs.map +1 -1
- package/dist/components/ui/Alert.js +11 -11
- package/dist/components/ui/Alert.js.map +1 -1
- package/dist/components/ui/BlastRadiusBar.cjs +1 -1
- package/dist/components/ui/BlastRadiusBar.cjs.map +1 -1
- package/dist/components/ui/BlastRadiusBar.d.ts +3 -1
- package/dist/components/ui/BlastRadiusBar.js +20 -17
- package/dist/components/ui/BlastRadiusBar.js.map +1 -1
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.d.ts +1 -1
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/ChatComposer.cjs +1 -1
- package/dist/components/ui/ChatComposer.cjs.map +1 -1
- package/dist/components/ui/ChatComposer.js +3 -3
- package/dist/components/ui/ChatComposer.js.map +1 -1
- package/dist/components/ui/ChatSessionList.cjs +1 -1
- package/dist/components/ui/ChatSessionList.cjs.map +1 -1
- package/dist/components/ui/ChatSessionList.js +127 -150
- package/dist/components/ui/ChatSessionList.js.map +1 -1
- package/dist/components/ui/Checkbox.cjs +1 -1
- package/dist/components/ui/Checkbox.cjs.map +1 -1
- package/dist/components/ui/Checkbox.d.ts +3 -1
- package/dist/components/ui/Checkbox.js +19 -17
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/Chip.cjs +1 -1
- package/dist/components/ui/Chip.cjs.map +1 -1
- package/dist/components/ui/Chip.d.ts +6 -1
- package/dist/components/ui/Chip.js +20 -18
- package/dist/components/ui/Chip.js.map +1 -1
- package/dist/components/ui/ChoiceCardGroup.cjs +2 -0
- package/dist/components/ui/ChoiceCardGroup.cjs.map +1 -0
- package/dist/components/ui/ChoiceCardGroup.d.ts +25 -0
- package/dist/components/ui/ChoiceCardGroup.js +44 -0
- package/dist/components/ui/ChoiceCardGroup.js.map +1 -0
- package/dist/components/ui/CodeBlock.cjs +2 -2
- package/dist/components/ui/CodeBlock.cjs.map +1 -1
- package/dist/components/ui/CodeBlock.js +31 -27
- package/dist/components/ui/CodeBlock.js.map +1 -1
- package/dist/components/ui/CodeEditor.cjs +1 -1
- package/dist/components/ui/CodeEditor.cjs.map +1 -1
- package/dist/components/ui/CodeEditor.d.ts +5 -4
- package/dist/components/ui/CodeEditor.js +210 -63
- package/dist/components/ui/CodeEditor.js.map +1 -1
- package/dist/components/ui/Collapse.cjs +1 -1
- package/dist/components/ui/Collapse.cjs.map +1 -1
- package/dist/components/ui/Collapse.js +23 -23
- package/dist/components/ui/Collapse.js.map +1 -1
- package/dist/components/ui/ColumnChart.cjs +1 -1
- package/dist/components/ui/ColumnChart.cjs.map +1 -1
- package/dist/components/ui/ColumnChart.js +21 -20
- package/dist/components/ui/ColumnChart.js.map +1 -1
- package/dist/components/ui/CommandPalette.cjs +1 -1
- package/dist/components/ui/CommandPalette.cjs.map +1 -1
- package/dist/components/ui/CommandPalette.d.ts +23 -1
- package/dist/components/ui/CommandPalette.js +145 -120
- package/dist/components/ui/CommandPalette.js.map +1 -1
- package/dist/components/ui/CommitGraph.cjs +2 -0
- package/dist/components/ui/CommitGraph.cjs.map +1 -0
- package/dist/components/ui/CommitGraph.d.ts +77 -0
- package/dist/components/ui/CommitGraph.js +380 -0
- package/dist/components/ui/CommitGraph.js.map +1 -0
- package/dist/components/ui/ContentInspectorDialog.cjs +1 -3
- package/dist/components/ui/ContentInspectorDialog.cjs.map +1 -1
- package/dist/components/ui/ContentInspectorDialog.d.ts +4 -10
- package/dist/components/ui/ContentInspectorDialog.js +40 -193
- package/dist/components/ui/ContentInspectorDialog.js.map +1 -1
- package/dist/components/ui/ContentPreview.cjs +3 -0
- package/dist/components/ui/ContentPreview.cjs.map +1 -0
- package/dist/components/ui/ContentPreview.d.ts +13 -0
- package/dist/components/ui/ContentPreview.js +134 -0
- package/dist/components/ui/ContentPreview.js.map +1 -0
- package/dist/components/ui/CopyGlyph.cjs +2 -0
- package/dist/components/ui/CopyGlyph.cjs.map +1 -0
- package/dist/components/ui/CopyGlyph.d.ts +7 -0
- package/dist/components/ui/CopyGlyph.js +48 -0
- package/dist/components/ui/CopyGlyph.js.map +1 -0
- package/dist/components/ui/DataList.cjs +1 -1
- package/dist/components/ui/DataList.cjs.map +1 -1
- package/dist/components/ui/DataList.d.ts +7 -1
- package/dist/components/ui/DataList.js +87 -32
- package/dist/components/ui/DataList.js.map +1 -1
- package/dist/components/ui/DataTable.cjs +1 -1
- package/dist/components/ui/DataTable.cjs.map +1 -1
- package/dist/components/ui/DataTable.d.ts +22 -18
- package/dist/components/ui/DataTable.js +279 -341
- package/dist/components/ui/DataTable.js.map +1 -1
- package/dist/components/ui/DropdownMenu.cjs +1 -1
- package/dist/components/ui/DropdownMenu.cjs.map +1 -1
- package/dist/components/ui/DropdownMenu.d.ts +8 -1
- package/dist/components/ui/DropdownMenu.js +66 -50
- package/dist/components/ui/DropdownMenu.js.map +1 -1
- package/dist/components/ui/ErrorState.cjs +1 -1
- package/dist/components/ui/ErrorState.cjs.map +1 -1
- package/dist/components/ui/ErrorState.d.ts +1 -0
- package/dist/components/ui/ErrorState.js +1 -1
- package/dist/components/ui/ErrorState.js.map +1 -1
- package/dist/components/ui/EventTable.cjs +1 -1
- package/dist/components/ui/EventTable.cjs.map +1 -1
- package/dist/components/ui/EventTable.d.ts +16 -2
- package/dist/components/ui/EventTable.js +190 -164
- package/dist/components/ui/EventTable.js.map +1 -1
- package/dist/components/ui/FileDropzone.cjs +1 -1
- package/dist/components/ui/FileDropzone.cjs.map +1 -1
- package/dist/components/ui/FileDropzone.d.ts +3 -21
- package/dist/components/ui/FileDropzone.js +41 -64
- package/dist/components/ui/FileDropzone.js.map +1 -1
- package/dist/components/ui/FilePreview.cjs +1 -1
- package/dist/components/ui/FilePreview.cjs.map +1 -1
- package/dist/components/ui/FilePreview.d.ts +4 -1
- package/dist/components/ui/FilePreview.js +45 -42
- package/dist/components/ui/FilePreview.js.map +1 -1
- package/dist/components/ui/FileTree.cjs +1 -1
- package/dist/components/ui/FileTree.cjs.map +1 -1
- package/dist/components/ui/FileTree.d.ts +18 -2
- package/dist/components/ui/FileTree.js +141 -110
- package/dist/components/ui/FileTree.js.map +1 -1
- package/dist/components/ui/FolderDropzone.cjs +1 -1
- package/dist/components/ui/FolderDropzone.cjs.map +1 -1
- package/dist/components/ui/FolderDropzone.d.ts +10 -1
- package/dist/components/ui/FolderDropzone.js +108 -128
- package/dist/components/ui/FolderDropzone.js.map +1 -1
- package/dist/components/ui/ForgotPasswordForm.cjs +1 -1
- package/dist/components/ui/ForgotPasswordForm.cjs.map +1 -1
- package/dist/components/ui/ForgotPasswordForm.d.ts +1 -0
- package/dist/components/ui/ForgotPasswordForm.js +21 -19
- package/dist/components/ui/ForgotPasswordForm.js.map +1 -1
- package/dist/components/ui/FormRow.cjs +1 -1
- package/dist/components/ui/FormRow.cjs.map +1 -1
- package/dist/components/ui/FormRow.d.ts +10 -1
- package/dist/components/ui/FormRow.js +22 -11
- package/dist/components/ui/FormRow.js.map +1 -1
- package/dist/components/ui/HeadlineStat.cjs +1 -1
- package/dist/components/ui/HeadlineStat.cjs.map +1 -1
- package/dist/components/ui/HeadlineStat.js +6 -5
- package/dist/components/ui/HeadlineStat.js.map +1 -1
- package/dist/components/ui/InboxPage.cjs +1 -1
- package/dist/components/ui/InboxPage.cjs.map +1 -1
- package/dist/components/ui/InboxPage.d.ts +16 -2
- package/dist/components/ui/InboxPage.js +54 -52
- package/dist/components/ui/InboxPage.js.map +1 -1
- package/dist/components/ui/KeyValueList.cjs +1 -1
- package/dist/components/ui/KeyValueList.cjs.map +1 -1
- package/dist/components/ui/KeyValueList.d.ts +6 -5
- package/dist/components/ui/KeyValueList.js +14 -17
- package/dist/components/ui/KeyValueList.js.map +1 -1
- package/dist/components/ui/LoginForm.cjs +1 -1
- package/dist/components/ui/LoginForm.cjs.map +1 -1
- package/dist/components/ui/LoginForm.d.ts +1 -0
- package/dist/components/ui/LoginForm.js +56 -48
- package/dist/components/ui/LoginForm.js.map +1 -1
- package/dist/components/ui/Markdown.cjs +1 -1
- package/dist/components/ui/Markdown.cjs.map +1 -1
- package/dist/components/ui/Markdown.d.ts +3 -2
- package/dist/components/ui/Markdown.js +57 -49
- package/dist/components/ui/Markdown.js.map +1 -1
- package/dist/components/ui/MdxDocument.cjs +1 -1
- package/dist/components/ui/MdxDocument.cjs.map +1 -1
- package/dist/components/ui/MdxDocument.d.ts +7 -2
- package/dist/components/ui/MdxDocument.js +34 -49
- package/dist/components/ui/MdxDocument.js.map +1 -1
- package/dist/components/ui/MetadataList.cjs +1 -1
- package/dist/components/ui/MetadataList.cjs.map +1 -1
- package/dist/components/ui/MetadataList.d.ts +7 -1
- package/dist/components/ui/MetadataList.js +29 -20
- package/dist/components/ui/MetadataList.js.map +1 -1
- package/dist/components/ui/MetricCard.cjs +1 -1
- package/dist/components/ui/MetricCard.cjs.map +1 -1
- package/dist/components/ui/MetricCard.js +16 -16
- package/dist/components/ui/MetricCard.js.map +1 -1
- package/dist/components/ui/MonoValue.cjs +1 -1
- package/dist/components/ui/MonoValue.cjs.map +1 -1
- package/dist/components/ui/MonoValue.d.ts +8 -1
- package/dist/components/ui/MonoValue.js +15 -13
- package/dist/components/ui/MonoValue.js.map +1 -1
- package/dist/components/ui/NotificationBell.cjs +1 -1
- package/dist/components/ui/NotificationBell.cjs.map +1 -1
- package/dist/components/ui/NotificationBell.d.ts +15 -3
- package/dist/components/ui/NotificationBell.js +41 -39
- package/dist/components/ui/NotificationBell.js.map +1 -1
- package/dist/components/ui/NumberField.cjs +2 -0
- package/dist/components/ui/NumberField.cjs.map +1 -0
- package/dist/components/ui/NumberField.d.ts +32 -0
- package/dist/components/ui/NumberField.js +77 -0
- package/dist/components/ui/NumberField.js.map +1 -0
- package/dist/components/ui/ObjectBrowser.cjs +1 -1
- package/dist/components/ui/ObjectBrowser.cjs.map +1 -1
- package/dist/components/ui/ObjectBrowser.js +38 -30
- package/dist/components/ui/ObjectBrowser.js.map +1 -1
- package/dist/components/ui/ObjectInspector.cjs +1 -1
- package/dist/components/ui/ObjectInspector.cjs.map +1 -1
- package/dist/components/ui/ObjectInspector.d.ts +5 -0
- package/dist/components/ui/ObjectInspector.js +61 -69
- package/dist/components/ui/ObjectInspector.js.map +1 -1
- package/dist/components/ui/PageSizeSelect.cjs.map +1 -1
- package/dist/components/ui/PageSizeSelect.d.ts +3 -4
- package/dist/components/ui/PageSizeSelect.js.map +1 -1
- package/dist/components/ui/Pagination.cjs +1 -1
- package/dist/components/ui/Pagination.cjs.map +1 -1
- package/dist/components/ui/Pagination.d.ts +16 -6
- package/dist/components/ui/Pagination.js +58 -45
- package/dist/components/ui/Pagination.js.map +1 -1
- package/dist/components/ui/Panel.cjs +1 -1
- package/dist/components/ui/Panel.cjs.map +1 -1
- package/dist/components/ui/Panel.d.ts +12 -2
- package/dist/components/ui/Panel.js +53 -40
- package/dist/components/ui/Panel.js.map +1 -1
- package/dist/components/ui/ParquetViewer.cjs +1 -1
- package/dist/components/ui/ParquetViewer.cjs.map +1 -1
- package/dist/components/ui/ParquetViewer.d.ts +1 -1
- package/dist/components/ui/ParquetViewer.js +124 -118
- package/dist/components/ui/ParquetViewer.js.map +1 -1
- package/dist/components/ui/ProjectSelector.cjs +1 -1
- package/dist/components/ui/ProjectSelector.cjs.map +1 -1
- package/dist/components/ui/ProjectSelector.js +9 -9
- package/dist/components/ui/ProjectSelector.js.map +1 -1
- package/dist/components/ui/QueryAutocomplete.cjs +1 -1
- package/dist/components/ui/QueryAutocomplete.cjs.map +1 -1
- package/dist/components/ui/QueryAutocomplete.js +123 -107
- package/dist/components/ui/QueryAutocomplete.js.map +1 -1
- package/dist/components/ui/RegisterForm.cjs +1 -1
- package/dist/components/ui/RegisterForm.cjs.map +1 -1
- package/dist/components/ui/RegisterForm.d.ts +1 -0
- package/dist/components/ui/RegisterForm.js +46 -38
- package/dist/components/ui/RegisterForm.js.map +1 -1
- package/dist/components/ui/RollingValue.cjs +2 -0
- package/dist/components/ui/RollingValue.cjs.map +1 -0
- package/dist/components/ui/RollingValue.d.ts +14 -0
- package/dist/components/ui/RollingValue.js +39 -0
- package/dist/components/ui/RollingValue.js.map +1 -0
- package/dist/components/ui/SavedQueryBar.cjs +1 -1
- package/dist/components/ui/SavedQueryBar.cjs.map +1 -1
- package/dist/components/ui/SavedQueryBar.d.ts +8 -2
- package/dist/components/ui/SavedQueryBar.js +162 -161
- package/dist/components/ui/SavedQueryBar.js.map +1 -1
- package/dist/components/ui/ScrollStory.cjs +1 -2
- package/dist/components/ui/ScrollStory.cjs.map +1 -1
- package/dist/components/ui/ScrollStory.js +57 -75
- package/dist/components/ui/ScrollStory.js.map +1 -1
- package/dist/components/ui/Select.cjs +1 -1
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.d.ts +1 -1
- package/dist/components/ui/Select.js +33 -32
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/ServiceMap.cjs +1 -1
- package/dist/components/ui/ServiceMap.cjs.map +1 -1
- package/dist/components/ui/ServiceMap.d.ts +51 -2
- package/dist/components/ui/ServiceMap.js +314 -117
- package/dist/components/ui/ServiceMap.js.map +1 -1
- package/dist/components/ui/ShareLinkDialog.cjs +1 -1
- package/dist/components/ui/ShareLinkDialog.cjs.map +1 -1
- package/dist/components/ui/ShareLinkDialog.d.ts +5 -3
- package/dist/components/ui/ShareLinkDialog.js +107 -98
- package/dist/components/ui/ShareLinkDialog.js.map +1 -1
- package/dist/components/ui/Slider.cjs +2 -0
- package/dist/components/ui/Slider.cjs.map +1 -0
- package/dist/components/ui/Slider.d.ts +22 -0
- package/dist/components/ui/Slider.js +53 -0
- package/dist/components/ui/Slider.js.map +1 -0
- package/dist/components/ui/SparkLine.cjs +1 -1
- package/dist/components/ui/SparkLine.cjs.map +1 -1
- package/dist/components/ui/SparkLine.d.ts +4 -1
- package/dist/components/ui/SparkLine.js +30 -25
- package/dist/components/ui/SparkLine.js.map +1 -1
- package/dist/components/ui/StatBlock.cjs +1 -1
- package/dist/components/ui/StatBlock.cjs.map +1 -1
- package/dist/components/ui/StatBlock.js +17 -16
- package/dist/components/ui/StatBlock.js.map +1 -1
- package/dist/components/ui/StatusDot.cjs.map +1 -1
- package/dist/components/ui/StatusDot.d.ts +5 -1
- package/dist/components/ui/StatusDot.js.map +1 -1
- package/dist/components/ui/Steps.cjs +2 -0
- package/dist/components/ui/Steps.cjs.map +1 -0
- package/dist/components/ui/Steps.d.ts +19 -0
- package/dist/components/ui/Steps.js +57 -0
- package/dist/components/ui/Steps.js.map +1 -0
- package/dist/components/ui/TableOfContents.cjs +1 -1
- package/dist/components/ui/TableOfContents.cjs.map +1 -1
- package/dist/components/ui/TableOfContents.d.ts +3 -3
- package/dist/components/ui/TableOfContents.js +47 -28
- package/dist/components/ui/TableOfContents.js.map +1 -1
- package/dist/components/ui/Tabs.cjs +2 -2
- package/dist/components/ui/Tabs.cjs.map +1 -1
- package/dist/components/ui/Tabs.d.ts +37 -3
- package/dist/components/ui/Tabs.js +169 -109
- package/dist/components/ui/Tabs.js.map +1 -1
- package/dist/components/ui/TextField.cjs +1 -1
- package/dist/components/ui/TextField.cjs.map +1 -1
- package/dist/components/ui/TextField.js +16 -15
- package/dist/components/ui/TextField.js.map +1 -1
- package/dist/components/ui/TimeDisplay.cjs +1 -1
- package/dist/components/ui/TimeDisplay.cjs.map +1 -1
- package/dist/components/ui/TimeDisplay.d.ts +14 -4
- package/dist/components/ui/TimeDisplay.js +43 -44
- package/dist/components/ui/TimeDisplay.js.map +1 -1
- package/dist/components/ui/TimelineChart.cjs +2 -1
- package/dist/components/ui/TimelineChart.cjs.map +1 -1
- package/dist/components/ui/TimelineChart.d.ts +1 -0
- package/dist/components/ui/TimelineChart.js +221 -169
- package/dist/components/ui/TimelineChart.js.map +1 -1
- package/dist/components/ui/ToolCallCard.cjs +1 -1
- package/dist/components/ui/ToolCallCard.cjs.map +1 -1
- package/dist/components/ui/ToolCallCard.js +22 -22
- package/dist/components/ui/ToolCallCard.js.map +1 -1
- package/dist/components/ui/Toolbar.cjs +1 -1
- package/dist/components/ui/Toolbar.cjs.map +1 -1
- package/dist/components/ui/Toolbar.d.ts +4 -16
- package/dist/components/ui/Toolbar.js +8 -62
- package/dist/components/ui/Toolbar.js.map +1 -1
- package/dist/components/ui/TraceSpanInspector.cjs +1 -1
- package/dist/components/ui/TraceSpanInspector.cjs.map +1 -1
- package/dist/components/ui/TraceSpanInspector.js +93 -72
- package/dist/components/ui/TraceSpanInspector.js.map +1 -1
- package/dist/components/ui/TraceTree.cjs +1 -1
- package/dist/components/ui/TraceTree.cjs.map +1 -1
- package/dist/components/ui/TraceTree.d.ts +36 -2
- package/dist/components/ui/TraceTree.js +278 -170
- package/dist/components/ui/TraceTree.js.map +1 -1
- package/dist/components/ui/TrajectoryStep.cjs +1 -1
- package/dist/components/ui/TrajectoryStep.cjs.map +1 -1
- package/dist/components/ui/TrajectoryStep.js +39 -43
- package/dist/components/ui/TrajectoryStep.js.map +1 -1
- package/dist/components/ui/TrajectoryTimeline.cjs +1 -1
- package/dist/components/ui/TrajectoryTimeline.cjs.map +1 -1
- package/dist/components/ui/TrajectoryTimeline.js +31 -28
- package/dist/components/ui/TrajectoryTimeline.js.map +1 -1
- package/dist/components/ui/UploadQueue.cjs +1 -1
- package/dist/components/ui/UploadQueue.cjs.map +1 -1
- package/dist/components/ui/UploadQueue.d.ts +18 -2
- package/dist/components/ui/UploadQueue.js +56 -63
- package/dist/components/ui/UploadQueue.js.map +1 -1
- package/dist/components/ui/authValidation.cjs +2 -0
- package/dist/components/ui/authValidation.cjs.map +1 -0
- package/dist/components/ui/authValidation.d.ts +3 -0
- package/dist/components/ui/authValidation.js +9 -0
- package/dist/components/ui/authValidation.js.map +1 -0
- package/dist/components/ui/classifyContent.cjs +6 -0
- package/dist/components/ui/classifyContent.cjs.map +1 -0
- package/dist/components/ui/classifyContent.d.ts +39 -0
- package/dist/components/ui/classifyContent.js +169 -0
- package/dist/components/ui/classifyContent.js.map +1 -0
- package/dist/components/ui/dropFiles.cjs +2 -0
- package/dist/components/ui/dropFiles.cjs.map +1 -0
- package/dist/components/ui/dropFiles.d.ts +7 -0
- package/dist/components/ui/dropFiles.js +16 -0
- package/dist/components/ui/dropFiles.js.map +1 -0
- package/dist/components/ui/index.d.ts +23 -10
- package/dist/components/ui/linkComponent.cjs +1 -1
- package/dist/components/ui/linkComponent.cjs.map +1 -1
- package/dist/components/ui/linkComponent.d.ts +4 -2
- package/dist/components/ui/linkComponent.js +15 -5
- package/dist/components/ui/linkComponent.js.map +1 -1
- package/dist/components/ui/markdownDocument.cjs +2 -0
- package/dist/components/ui/markdownDocument.cjs.map +1 -0
- package/dist/components/ui/markdownDocument.d.ts +40 -0
- package/dist/components/ui/markdownDocument.js +39 -0
- package/dist/components/ui/markdownDocument.js.map +1 -0
- package/dist/components/ui/traceStatus.cjs +2 -0
- package/dist/components/ui/traceStatus.cjs.map +1 -0
- package/dist/components/ui/{traceFormat.d.ts → traceStatus.d.ts} +0 -1
- package/dist/components/ui/traceStatus.js +7 -0
- package/dist/components/ui/traceStatus.js.map +1 -0
- package/dist/components/ui/useColumnWidths.cjs +2 -0
- package/dist/components/ui/useColumnWidths.cjs.map +1 -0
- package/dist/components/ui/useColumnWidths.d.ts +60 -0
- package/dist/components/ui/useColumnWidths.js +196 -0
- package/dist/components/ui/useColumnWidths.js.map +1 -0
- package/dist/hooks/useDevelopAfterLoad.cjs +2 -0
- package/dist/hooks/useDevelopAfterLoad.cjs.map +1 -0
- package/dist/hooks/useDevelopAfterLoad.d.ts +8 -0
- package/dist/hooks/useDevelopAfterLoad.js +9 -0
- package/dist/hooks/useDevelopAfterLoad.js.map +1 -0
- package/dist/hooks/useResizable.cjs +1 -1
- package/dist/hooks/useResizable.cjs.map +1 -1
- package/dist/hooks/useResizable.js +87 -78
- package/dist/hooks/useResizable.js.map +1 -1
- package/dist/hooks/useSavedQueries.cjs +1 -1
- package/dist/hooks/useSavedQueries.cjs.map +1 -1
- package/dist/hooks/useSavedQueries.d.ts +6 -0
- package/dist/hooks/useSavedQueries.js +49 -58
- package/dist/hooks/useSavedQueries.js.map +1 -1
- package/dist/hooks/useSectionSpy.cjs +1 -1
- package/dist/hooks/useSectionSpy.cjs.map +1 -1
- package/dist/hooks/useSectionSpy.d.ts +6 -1
- package/dist/hooks/useSectionSpy.js +87 -57
- package/dist/hooks/useSectionSpy.js.map +1 -1
- package/dist/hooks/useStorageItem.cjs +2 -0
- package/dist/hooks/useStorageItem.cjs.map +1 -0
- package/dist/hooks/useStorageItem.d.ts +6 -0
- package/dist/hooks/useStorageItem.js +36 -0
- package/dist/hooks/useStorageItem.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +321 -313
- package/dist/index.js.map +1 -1
- package/dist/layouts/shell/AegisShell.cjs +1 -1
- package/dist/layouts/shell/AegisShell.cjs.map +1 -1
- package/dist/layouts/shell/AegisShell.d.ts +4 -2
- package/dist/layouts/shell/AegisShell.js +149 -242
- package/dist/layouts/shell/AegisShell.js.map +1 -1
- package/dist/layouts/shell/AppRoutes.cjs +2 -0
- package/dist/layouts/shell/AppRoutes.cjs.map +1 -0
- package/dist/layouts/shell/AppRoutes.d.ts +5 -0
- package/dist/layouts/shell/AppRoutes.js +8 -0
- package/dist/layouts/shell/AppRoutes.js.map +1 -0
- package/dist/layouts/shell/BreadcrumbBar.cjs +1 -1
- package/dist/layouts/shell/BreadcrumbBar.cjs.map +1 -1
- package/dist/layouts/shell/BreadcrumbBar.d.ts +1 -2
- package/dist/layouts/shell/BreadcrumbBar.js +19 -26
- package/dist/layouts/shell/BreadcrumbBar.js.map +1 -1
- package/dist/layouts/shell/RouteErrorBoundary.cjs +2 -0
- package/dist/layouts/shell/RouteErrorBoundary.cjs.map +1 -0
- package/dist/layouts/shell/RouteErrorBoundary.d.ts +23 -0
- package/dist/layouts/shell/RouteErrorBoundary.js +35 -0
- package/dist/layouts/shell/RouteErrorBoundary.js.map +1 -0
- package/dist/layouts/shell/RouterLink.cjs +2 -0
- package/dist/layouts/shell/RouterLink.cjs.map +1 -0
- package/dist/layouts/shell/RouterLink.d.ts +3 -0
- package/dist/layouts/shell/RouterLink.js +22 -0
- package/dist/layouts/shell/RouterLink.js.map +1 -0
- package/dist/layouts/shell/ShellCommandPalette.cjs +2 -0
- package/dist/layouts/shell/ShellCommandPalette.cjs.map +1 -0
- package/dist/layouts/shell/ShellCommandPalette.d.ts +7 -0
- package/dist/layouts/shell/ShellCommandPalette.js +32 -0
- package/dist/layouts/shell/ShellCommandPalette.js.map +1 -0
- package/dist/layouts/shell/ShellInboxPage.cjs +2 -0
- package/dist/layouts/shell/ShellInboxPage.cjs.map +1 -0
- package/dist/layouts/shell/ShellInboxPage.d.ts +12 -0
- package/dist/layouts/shell/ShellInboxPage.js +32 -0
- package/dist/layouts/shell/ShellInboxPage.js.map +1 -0
- package/dist/layouts/shell/ShellNotificationBell.cjs +2 -0
- package/dist/layouts/shell/ShellNotificationBell.cjs.map +1 -0
- package/dist/layouts/shell/ShellNotificationBell.d.ts +5 -0
- package/dist/layouts/shell/ShellNotificationBell.js +24 -0
- package/dist/layouts/shell/ShellNotificationBell.js.map +1 -0
- package/dist/layouts/shell/Sidebar.cjs +1 -1
- package/dist/layouts/shell/Sidebar.cjs.map +1 -1
- package/dist/layouts/shell/Sidebar.d.ts +4 -2
- package/dist/layouts/shell/Sidebar.js +14 -11
- package/dist/layouts/shell/Sidebar.js.map +1 -1
- package/dist/layouts/shell/TopHeader.cjs +1 -1
- package/dist/layouts/shell/TopHeader.cjs.map +1 -1
- package/dist/layouts/shell/TopHeader.d.ts +6 -2
- package/dist/layouts/shell/TopHeader.js +77 -65
- package/dist/layouts/shell/TopHeader.js.map +1 -1
- package/dist/layouts/shell/apps.cjs +2 -0
- package/dist/layouts/shell/apps.cjs.map +1 -0
- package/dist/layouts/shell/apps.d.ts +12 -0
- package/dist/layouts/shell/apps.js +34 -0
- package/dist/layouts/shell/apps.js.map +1 -0
- package/dist/layouts/shell/buildRouteTree.cjs +2 -0
- package/dist/layouts/shell/buildRouteTree.cjs.map +1 -0
- package/dist/layouts/shell/buildRouteTree.d.ts +22 -0
- package/dist/layouts/shell/buildRouteTree.js +49 -0
- package/dist/layouts/shell/buildRouteTree.js.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.cjs +2 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.cjs.map +1 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.d.ts +13 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.js +90 -0
- package/dist/layouts/shell/environments/EnvironmentProvider.js.map +1 -0
- package/dist/layouts/shell/environments/{context.cjs → environmentContext.cjs} +2 -2
- package/dist/layouts/shell/environments/environmentContext.cjs.map +1 -0
- package/dist/layouts/shell/environments/environmentContext.d.ts +6 -0
- package/dist/layouts/shell/environments/environmentContext.js +8 -0
- package/dist/layouts/shell/environments/environmentContext.js.map +1 -0
- package/dist/layouts/shell/environments/index.d.ts +2 -3
- package/dist/layouts/shell/environments/types.cjs.map +1 -1
- package/dist/layouts/shell/environments/types.d.ts +23 -15
- package/dist/layouts/shell/environments/types.js.map +1 -1
- package/dist/layouts/shell/environments/useEnvironment.cjs +2 -0
- package/dist/layouts/shell/environments/useEnvironment.cjs.map +1 -0
- package/dist/layouts/shell/environments/{hooks.d.ts → useEnvironment.d.ts} +3 -2
- package/dist/layouts/shell/environments/useEnvironment.js +25 -0
- package/dist/layouts/shell/environments/useEnvironment.js.map +1 -0
- package/dist/layouts/shell/index.d.ts +3 -1
- package/dist/layouts/shell/types.d.ts +14 -14
- package/dist/layouts/shell/useAgentPanel.cjs +2 -0
- package/dist/layouts/shell/useAgentPanel.cjs.map +1 -0
- package/dist/layouts/shell/useAgentPanel.d.ts +13 -0
- package/dist/layouts/shell/useAgentPanel.js +21 -0
- package/dist/layouts/shell/useAgentPanel.js.map +1 -0
- package/dist/layouts/shell/useAppCommands.cjs +2 -0
- package/dist/layouts/shell/useAppCommands.cjs.map +1 -0
- package/dist/layouts/shell/useAppCommands.d.ts +6 -0
- package/dist/layouts/shell/useAppCommands.js +19 -0
- package/dist/layouts/shell/useAppCommands.js.map +1 -0
- package/dist/layouts/shell/useMobileNav.cjs +2 -0
- package/dist/layouts/shell/useMobileNav.cjs.map +1 -0
- package/dist/layouts/shell/useMobileNav.d.ts +20 -0
- package/dist/layouts/shell/useMobileNav.js +54 -0
- package/dist/layouts/shell/useMobileNav.js.map +1 -0
- package/dist/layouts/shell/useOpenNotification.cjs +2 -0
- package/dist/layouts/shell/useOpenNotification.cjs.map +1 -0
- package/dist/layouts/shell/useOpenNotification.d.ts +3 -0
- package/dist/layouts/shell/useOpenNotification.js +16 -0
- package/dist/layouts/shell/useOpenNotification.js.map +1 -0
- package/dist/layouts/shell/useShellUser.cjs +2 -0
- package/dist/layouts/shell/useShellUser.cjs.map +1 -0
- package/dist/layouts/shell/useShellUser.d.ts +7 -0
- package/dist/layouts/shell/useShellUser.js +21 -0
- package/dist/layouts/shell/useShellUser.js.map +1 -0
- package/dist/layouts/shell/useWarnOnce.cjs +2 -0
- package/dist/layouts/shell/useWarnOnce.cjs.map +1 -0
- package/dist/layouts/shell/useWarnOnce.d.ts +1 -0
- package/dist/layouts/shell/useWarnOnce.js +11 -0
- package/dist/layouts/shell/useWarnOnce.js.map +1 -0
- package/dist/lib/format.cjs +1 -1
- package/dist/lib/format.cjs.map +1 -1
- package/dist/lib/format.d.ts +34 -0
- package/dist/lib/format.js +98 -9
- package/dist/lib/format.js.map +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.cjs.map +1 -1
- package/dist/lib/luceneQuery/tokenizeAtCursor.js +29 -29
- package/dist/lib/luceneQuery/tokenizeAtCursor.js.map +1 -1
- package/dist/lib/storage.cjs +1 -1
- package/dist/lib/storage.cjs.map +1 -1
- package/dist/lib/storage.js +19 -12
- package/dist/lib/storage.js.map +1 -1
- package/dist/lib/timeRange.cjs +1 -1
- package/dist/lib/timeRange.cjs.map +1 -1
- package/dist/lib/timeRange.js +4 -1
- package/dist/lib/timeRange.js.map +1 -1
- package/dist/locale/strings.cjs +1 -1
- package/dist/locale/strings.cjs.map +1 -1
- package/dist/locale/strings.d.ts +2 -0
- package/dist/locale/strings.js +2 -0
- package/dist/locale/strings.js.map +1 -1
- package/dist/notifications/notificationContext.cjs.map +1 -1
- package/dist/notifications/notificationContext.d.ts +5 -0
- package/dist/notifications/notificationContext.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/ThemeProvider.cjs +1 -1
- package/dist/theme/ThemeProvider.cjs.map +1 -1
- package/dist/theme/ThemeProvider.d.ts +2 -1
- package/dist/theme/ThemeProvider.js +47 -33
- package/dist/theme/ThemeProvider.js.map +1 -1
- package/dist/theme/antdTheme.cjs +1 -1
- package/dist/theme/antdTheme.cjs.map +1 -1
- package/dist/theme/antdTheme.d.ts +0 -2
- package/dist/theme/antdTheme.js +26 -20
- package/dist/theme/antdTheme.js.map +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.cjs +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.d.ts +1 -0
- package/dist/transports/agentm/AgentmChannelProvider.js +119 -131
- package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -1
- package/dist/transports/agentm/agentmChannelClient.cjs +1 -1
- package/dist/transports/agentm/agentmChannelClient.cjs.map +1 -1
- package/dist/transports/agentm/agentmChannelClient.d.ts +8 -3
- package/dist/transports/agentm/agentmChannelClient.js +133 -89
- package/dist/transports/agentm/agentmChannelClient.js.map +1 -1
- package/dist/transports/index.d.ts +2 -2
- package/dist/transports/mcpBridge.cjs +2 -0
- package/dist/transports/mcpBridge.cjs.map +1 -0
- package/dist/transports/{bridge.d.ts → mcpBridge.d.ts} +2 -1
- package/dist/transports/mcpBridge.js +144 -0
- package/dist/transports/mcpBridge.js.map +1 -0
- package/dist/transports/mcpTools.cjs +2 -0
- package/dist/transports/mcpTools.cjs.map +1 -0
- package/dist/transports/mcpTools.d.ts +15 -0
- package/dist/transports/mcpTools.js +283 -0
- package/dist/transports/mcpTools.js.map +1 -0
- package/dist/transports.cjs +1 -1
- package/dist/transports.js +1 -1
- package/package.json +5 -4
- package/dist/agent/core/mcpToolCatalogue.cjs +0 -2
- package/dist/agent/core/mcpToolCatalogue.cjs.map +0 -1
- package/dist/agent/core/mcpToolCatalogue.d.ts +0 -2
- package/dist/agent/core/mcpToolCatalogue.js +0 -101
- package/dist/agent/core/mcpToolCatalogue.js.map +0 -1
- package/dist/components/ui/BucketCard.cjs +0 -2
- package/dist/components/ui/BucketCard.cjs.map +0 -1
- package/dist/components/ui/BucketCard.d.ts +0 -24
- package/dist/components/ui/BucketCard.js +0 -73
- package/dist/components/ui/BucketCard.js.map +0 -1
- package/dist/components/ui/ContentInspectorContent.cjs +0 -5
- package/dist/components/ui/ContentInspectorContent.cjs.map +0 -1
- package/dist/components/ui/ContentInspectorContent.d.ts +0 -14
- package/dist/components/ui/ContentInspectorContent.js +0 -101
- package/dist/components/ui/ContentInspectorContent.js.map +0 -1
- package/dist/components/ui/traceFormat.cjs +0 -2
- package/dist/components/ui/traceFormat.cjs.map +0 -1
- package/dist/components/ui/traceFormat.js +0 -11
- package/dist/components/ui/traceFormat.js.map +0 -1
- package/dist/layouts/shell/environments/EnvironmentContext.cjs +0 -2
- package/dist/layouts/shell/environments/EnvironmentContext.cjs.map +0 -1
- package/dist/layouts/shell/environments/EnvironmentContext.d.ts +0 -12
- package/dist/layouts/shell/environments/EnvironmentContext.js +0 -94
- package/dist/layouts/shell/environments/EnvironmentContext.js.map +0 -1
- package/dist/layouts/shell/environments/context.cjs.map +0 -1
- package/dist/layouts/shell/environments/context.d.ts +0 -6
- package/dist/layouts/shell/environments/context.js +0 -6
- package/dist/layouts/shell/environments/context.js.map +0 -1
- package/dist/layouts/shell/environments/hooks.cjs +0 -2
- package/dist/layouts/shell/environments/hooks.cjs.map +0 -1
- package/dist/layouts/shell/environments/hooks.js +0 -24
- package/dist/layouts/shell/environments/hooks.js.map +0 -1
- package/dist/layouts/shell/environments/manifest.cjs +0 -2
- package/dist/layouts/shell/environments/manifest.cjs.map +0 -1
- package/dist/layouts/shell/environments/manifest.d.ts +0 -26
- package/dist/layouts/shell/environments/manifest.js +0 -82
- package/dist/layouts/shell/environments/manifest.js.map +0 -1
- package/dist/transports/bridge.cjs +0 -2
- package/dist/transports/bridge.cjs.map +0 -1
- package/dist/transports/bridge.js +0 -143
- package/dist/transports/bridge.js.map +0 -1
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useId as t } from "react";
|
|
2
3
|
/* empty css */
|
|
3
|
-
function
|
|
4
|
+
function g({
|
|
4
5
|
label: s,
|
|
5
6
|
description: r,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
controlId: e,
|
|
8
|
+
children: o,
|
|
9
|
+
className: d
|
|
8
10
|
}) {
|
|
9
|
-
const i = ["aegis-form-row",
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
r && /* @__PURE__ */
|
|
11
|
+
const i = t(), l = `${i}-label`, m = r ? `${e ?? i}-description` : void 0, n = ["aegis-form-row", d ?? ""].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ c("div", { className: n, children: [
|
|
13
|
+
/* @__PURE__ */ c("div", { className: "aegis-form-row__label-group", children: [
|
|
14
|
+
e ? /* @__PURE__ */ a("label", { className: "aegis-form-row__label", htmlFor: e, children: s }) : /* @__PURE__ */ a("span", { id: l, className: "aegis-form-row__label", children: s }),
|
|
15
|
+
r && /* @__PURE__ */ a("span", { id: m, className: "aegis-form-row__description", children: r })
|
|
14
16
|
] }),
|
|
15
|
-
/* @__PURE__ */
|
|
17
|
+
e ? /* @__PURE__ */ a("div", { className: "aegis-form-row__control", children: o }) : /* @__PURE__ */ a(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: "aegis-form-row__control",
|
|
21
|
+
role: "group",
|
|
22
|
+
"aria-labelledby": l,
|
|
23
|
+
"aria-describedby": m,
|
|
24
|
+
children: o
|
|
25
|
+
}
|
|
26
|
+
)
|
|
16
27
|
] });
|
|
17
28
|
}
|
|
18
29
|
export {
|
|
19
|
-
|
|
30
|
+
g as FormRow
|
|
20
31
|
};
|
|
21
32
|
//# sourceMappingURL=FormRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormRow.js","sources":["../../../src/components/ui/FormRow.tsx"],"sourcesContent":["import type
|
|
1
|
+
{"version":3,"file":"FormRow.js","sources":["../../../src/components/ui/FormRow.tsx"],"sourcesContent":["import { type ReactNode, useId } from 'react';\n\nimport './FormRow.css';\n\ninterface FormRowProps {\n label: string;\n description?: string;\n /**\n * Id of the one control the label names; put the same id on that\n * control. Inside an antd `Form.Item`, put it on the input, not on the\n * item. The description's id is then `${controlId}-description`; set\n * it as the control's `aria-describedby`. Without a controlId the row is\n * a group the label names and the description describes, for several\n * controls or a value that isn't a control.\n */\n controlId?: string;\n children: ReactNode;\n className?: string;\n}\n\nexport function FormRow({\n label,\n description,\n controlId,\n children,\n className,\n}: FormRowProps) {\n const baseId = useId();\n const labelId = `${baseId}-label`;\n const descriptionId = description\n ? `${controlId ?? baseId}-description`\n : undefined;\n const cls = ['aegis-form-row', className ?? ''].filter(Boolean).join(' ');\n\n return (\n <div className={cls}>\n <div className=\"aegis-form-row__label-group\">\n {controlId ? (\n <label className=\"aegis-form-row__label\" htmlFor={controlId}>\n {label}\n </label>\n ) : (\n <span id={labelId} className=\"aegis-form-row__label\">\n {label}\n </span>\n )}\n {description && (\n <span id={descriptionId} className=\"aegis-form-row__description\">\n {description}\n </span>\n )}\n </div>\n {controlId ? (\n <div className=\"aegis-form-row__control\">{children}</div>\n ) : (\n <div\n className=\"aegis-form-row__control\"\n role=\"group\"\n aria-labelledby={labelId}\n aria-describedby={descriptionId}\n >\n {children}\n </div>\n )}\n </div>\n );\n}\n"],"names":["FormRow","label","description","controlId","children","className","baseId","useId","labelId","descriptionId","cls","jsxs","jsx"],"mappings":";;;AAoBO,SAASA,EAAQ;AAAA,EACtB,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,GAAiB;AACf,QAAMC,IAASC,EAAA,GACTC,IAAU,GAAGF,CAAM,UACnBG,IAAgBP,IAClB,GAAGC,KAAaG,CAAM,iBACtB,QACEI,IAAM,CAAC,kBAAkBL,KAAa,EAAE,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAExE,SACE,gBAAAM,EAAC,OAAA,EAAI,WAAWD,GACd,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,+BACZ,UAAA;AAAA,MAAAR,IACC,gBAAAS,EAAC,SAAA,EAAM,WAAU,yBAAwB,SAAST,GAC/C,UAAAF,EAAA,CACH,IAEA,gBAAAW,EAAC,QAAA,EAAK,IAAIJ,GAAS,WAAU,yBAC1B,UAAAP,GACH;AAAA,MAEDC,KACC,gBAAAU,EAAC,QAAA,EAAK,IAAIH,GAAe,WAAU,+BAChC,UAAAP,EAAA,CACH;AAAA,IAAA,GAEJ;AAAA,IACCC,IACC,gBAAAS,EAAC,OAAA,EAAI,WAAU,2BAA2B,UAAAR,GAAS,IAEnD,gBAAAQ;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,MAAK;AAAA,QACL,mBAAiBJ;AAAA,QACjB,oBAAkBC;AAAA,QAEjB,UAAAL;AAAA,MAAA;AAAA,IAAA;AAAA,EACH,GAEJ;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */const l=require("./RollingValue.cjs");function n({value:a,caption:i,className:s}){return e.jsxs("div",{className:["aegis-headline-stat",s??""].filter(Boolean).join(" "),children:[e.jsx("span",{className:"aegis-headline-stat__value",children:e.jsx(l.RollingValue,{value:a})}),e.jsx("span",{className:"aegis-headline-stat__caption",children:i})]})}exports.HeadlineStat=n;
|
|
2
2
|
//# sourceMappingURL=HeadlineStat.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadlineStat.cjs","sources":["../../../src/components/ui/HeadlineStat.tsx"],"sourcesContent":["import type { ReactElement, ReactNode } from 'react';\n\nimport './HeadlineStat.css';\n\nexport interface HeadlineStatProps {\n /** The figure, e.g. \"97.6%\" or \"46 / 47\". */\n value: ReactNode;\n /** The sentence that reads the figure. */\n caption: ReactNode;\n className?: string;\n}\n\n/** The figure behind a finding: one large number over the sentence that reads it. */\nexport function HeadlineStat({\n value,\n caption,\n className,\n}: HeadlineStatProps): ReactElement {\n return (\n <div\n className={['aegis-headline-stat', className ?? '']\n .filter(Boolean)\n .join(' ')}\n >\n <span className=\"aegis-headline-stat__value\"
|
|
1
|
+
{"version":3,"file":"HeadlineStat.cjs","sources":["../../../src/components/ui/HeadlineStat.tsx"],"sourcesContent":["import type { ReactElement, ReactNode } from 'react';\n\nimport './HeadlineStat.css';\nimport { RollingValue } from './RollingValue';\n\nexport interface HeadlineStatProps {\n /** The figure, e.g. \"97.6%\" or \"46 / 47\". */\n value: ReactNode;\n /** The sentence that reads the figure. */\n caption: ReactNode;\n className?: string;\n}\n\n/** The figure behind a finding: one large number over the sentence that reads it. */\nexport function HeadlineStat({\n value,\n caption,\n className,\n}: HeadlineStatProps): ReactElement {\n return (\n <div\n className={['aegis-headline-stat', className ?? '']\n .filter(Boolean)\n .join(' ')}\n >\n <span className=\"aegis-headline-stat__value\">\n <RollingValue value={value} />\n </span>\n <span className=\"aegis-headline-stat__caption\">{caption}</span>\n </div>\n );\n}\n"],"names":["HeadlineStat","value","caption","className","jsxs","jsx","RollingValue"],"mappings":"6LAcO,SAASA,EAAa,CAC3B,MAAAC,EACA,QAAAC,EACA,UAAAC,CACF,EAAoC,CAClC,OACEC,EAAAA,KAAC,MAAA,CACC,UAAW,CAAC,sBAAuBD,GAAa,EAAE,EAC/C,OAAO,OAAO,EACd,KAAK,GAAG,EAEX,SAAA,CAAAE,EAAAA,IAAC,QAAK,UAAU,6BACd,SAAAA,EAAAA,IAACC,eAAA,CAAa,MAAAL,EAAc,EAC9B,EACAI,EAAAA,IAAC,OAAA,CAAK,UAAU,+BAAgC,SAAAH,CAAA,CAAQ,CAAA,CAAA,CAAA,CAG9D"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
/* empty css */
|
|
3
|
-
|
|
3
|
+
import { RollingValue as n } from "./RollingValue.js";
|
|
4
|
+
function c({
|
|
4
5
|
value: e,
|
|
5
6
|
caption: i,
|
|
6
7
|
className: s
|
|
7
8
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ l(
|
|
9
10
|
"div",
|
|
10
11
|
{
|
|
11
12
|
className: ["aegis-headline-stat", s ?? ""].filter(Boolean).join(" "),
|
|
12
13
|
children: [
|
|
13
|
-
/* @__PURE__ */ a("span", { className: "aegis-headline-stat__value", children: e }),
|
|
14
|
+
/* @__PURE__ */ a("span", { className: "aegis-headline-stat__value", children: /* @__PURE__ */ a(n, { value: e }) }),
|
|
14
15
|
/* @__PURE__ */ a("span", { className: "aegis-headline-stat__caption", children: i })
|
|
15
16
|
]
|
|
16
17
|
}
|
|
17
18
|
);
|
|
18
19
|
}
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
c as HeadlineStat
|
|
21
22
|
};
|
|
22
23
|
//# sourceMappingURL=HeadlineStat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadlineStat.js","sources":["../../../src/components/ui/HeadlineStat.tsx"],"sourcesContent":["import type { ReactElement, ReactNode } from 'react';\n\nimport './HeadlineStat.css';\n\nexport interface HeadlineStatProps {\n /** The figure, e.g. \"97.6%\" or \"46 / 47\". */\n value: ReactNode;\n /** The sentence that reads the figure. */\n caption: ReactNode;\n className?: string;\n}\n\n/** The figure behind a finding: one large number over the sentence that reads it. */\nexport function HeadlineStat({\n value,\n caption,\n className,\n}: HeadlineStatProps): ReactElement {\n return (\n <div\n className={['aegis-headline-stat', className ?? '']\n .filter(Boolean)\n .join(' ')}\n >\n <span className=\"aegis-headline-stat__value\"
|
|
1
|
+
{"version":3,"file":"HeadlineStat.js","sources":["../../../src/components/ui/HeadlineStat.tsx"],"sourcesContent":["import type { ReactElement, ReactNode } from 'react';\n\nimport './HeadlineStat.css';\nimport { RollingValue } from './RollingValue';\n\nexport interface HeadlineStatProps {\n /** The figure, e.g. \"97.6%\" or \"46 / 47\". */\n value: ReactNode;\n /** The sentence that reads the figure. */\n caption: ReactNode;\n className?: string;\n}\n\n/** The figure behind a finding: one large number over the sentence that reads it. */\nexport function HeadlineStat({\n value,\n caption,\n className,\n}: HeadlineStatProps): ReactElement {\n return (\n <div\n className={['aegis-headline-stat', className ?? '']\n .filter(Boolean)\n .join(' ')}\n >\n <span className=\"aegis-headline-stat__value\">\n <RollingValue value={value} />\n </span>\n <span className=\"aegis-headline-stat__caption\">{caption}</span>\n </div>\n );\n}\n"],"names":["HeadlineStat","value","caption","className","jsxs","jsx","RollingValue"],"mappings":";;;AAcO,SAASA,EAAa;AAAA,EAC3B,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AACF,GAAoC;AAClC,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,CAAC,uBAAuBD,KAAa,EAAE,EAC/C,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MAEX,UAAA;AAAA,QAAA,gBAAAE,EAAC,UAAK,WAAU,8BACd,UAAA,gBAAAA,EAACC,GAAA,EAAa,OAAAL,GAAc,GAC9B;AAAA,QACA,gBAAAI,EAAC,QAAA,EAAK,WAAU,gCAAgC,UAAAH,EAAA,CAAQ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG9D;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("react"),v=require("../../agent/core/usePrimitiveSurface.cjs"),y=require("./Avatar.cjs"),u=require("./Button.cjs"),x=require("./Chip.cjs"),_=require("./EmptyState.cjs"),f=require("./ErrorState.cjs");;/* empty css */const w=require("./PageHeader.cjs"),N=require("./Tabs.cjs"),q=require("./relativeTime.cjs"),m={info:"ghost",success:"default",warning:"caution",error:"warning"};function S({items:s,unreadCount:r=s.filter(i=>!i.read).length,onOpen:g,onMarkAllRead:n,error:o,onRetry:l,defaultFilter:h="all",surface:b}){const[i,p]=t.useState(h),c=t.useRef(null),j=v.usePrimitiveSurface(b,s,"list",c),d=t.useMemo(()=>i==="unread"?s.filter(e=>!e.read):s,[s,i]);return a.jsxs("div",{ref:c,className:"aegis-inbox",...j,children:[a.jsx(w.PageHeader,{title:"Inbox",description:"Workspace activity, alerts, and invites in one place.",action:n&&r>0?a.jsx(u.Button,{tone:"secondary",onClick:n,children:"Mark all as read"}):void 0}),a.jsx(N.Tabs,{activeKey:i,onChange:e=>{p(e==="unread"?"unread":"all")},items:[{key:"all",label:"All"},{key:"unread",label:`Unread${r>0?` (${String(r)})`:""}`}],children:o?a.jsx(f.ErrorState,{size:"compact",title:"Couldn't load notifications",description:o.message,action:l&&a.jsx(u.Button,{tone:"secondary",onClick:l,children:"Try again"})}):d.length===0?a.jsx(_.EmptyState,{title:i==="unread"?"No unread items":"No notifications",description:i==="unread"?"You're all caught up.":"Activity will appear here as it happens."}):a.jsx("ul",{className:"aegis-inbox__list",children:d.map(e=>a.jsx("li",{className:"aegis-inbox__row-wrap",children:a.jsxs("button",{type:"button",className:["aegis-inbox__row",e.read?"":"aegis-inbox__row--unread"].filter(Boolean).join(" "),onClick:()=>{g?.(e)},children:[a.jsx(y.Avatar,{name:e.actor??e.title,size:"md"}),a.jsxs("div",{className:"aegis-inbox__row-body",children:[a.jsxs("div",{className:"aegis-inbox__row-head",children:[a.jsx("span",{className:"aegis-inbox__row-title",children:e.title}),a.jsx("span",{className:"aegis-inbox__row-time",children:q.relativeTime(e.timestamp)})]}),e.body&&a.jsx("div",{className:"aegis-inbox__row-text",children:e.body}),(e.category??e.severity)&&a.jsxs("div",{className:"aegis-inbox__row-meta",children:[e.severity&&a.jsx(x.Chip,{tone:m[e.severity],children:e.severity}),e.category&&a.jsx(x.Chip,{tone:"ghost",children:e.category})]})]})]})},e.id))})})]})}exports.InboxPage=S;
|
|
2
2
|
//# sourceMappingURL=InboxPage.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InboxPage.cjs","sources":["../../../src/components/ui/InboxPage.tsx"],"sourcesContent":["import { type ReactElement, useMemo, useRef, useState } from 'react';\n\nimport {
|
|
1
|
+
{"version":3,"file":"InboxPage.cjs","sources":["../../../src/components/ui/InboxPage.tsx"],"sourcesContent":["import { type ReactElement, useMemo, useRef, useState } from 'react';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport type { AegisNotification } from '../../notifications';\nimport { Avatar } from './Avatar';\nimport { Button } from './Button';\nimport { Chip } from './Chip';\nimport { EmptyState } from './EmptyState';\nimport { ErrorState } from './ErrorState';\nimport './InboxPage.css';\nimport { PageHeader } from './PageHeader';\nimport { Tabs } from './Tabs';\nimport { relativeTime } from './relativeTime';\n\ntype Filter = 'all' | 'unread';\n\nexport type InboxPageSurface = PrimitiveSurface<AegisNotification[]>;\n\nexport interface InboxPageProps {\n items: AegisNotification[];\n /** Shown on the Unread tab. Defaults to the number of unread `items`. */\n unreadCount?: number;\n /**\n * Fired when the user opens an item. The host marks it read and\n * navigates to `item.to`.\n */\n onOpen?: (item: AegisNotification) => void;\n /** Renders \"Mark all as read\" while anything is unread. */\n onMarkAllRead?: () => void;\n /** Set when the items failed to load; shown in place of the list. */\n error?: Error | null;\n /** Renders a retry button alongside `error`. */\n onRetry?: () => void;\n defaultFilter?: Filter;\n surface?: InboxPageSurface;\n}\n\nconst SEVERITY_TONE: Record<\n NonNullable<AegisNotification['severity']>,\n 'default' | 'caution' | 'warning' | 'ghost'\n> = {\n info: 'ghost',\n success: 'default',\n warning: 'caution',\n error: 'warning',\n};\n\nexport function InboxPage({\n items,\n unreadCount = items.filter((n) => !n.read).length,\n onOpen,\n onMarkAllRead,\n error,\n onRetry,\n defaultFilter = 'all',\n surface,\n}: InboxPageProps): ReactElement {\n const [filter, setFilter] = useState<Filter>(defaultFilter);\n const wrapRef = useRef<HTMLDivElement>(null);\n const agentAttrs = usePrimitiveSurface(surface, items, 'list', wrapRef);\n\n const visible = useMemo(\n () => (filter === 'unread' ? items.filter((n) => !n.read) : items),\n [items, filter],\n );\n\n return (\n <div ref={wrapRef} className=\"aegis-inbox\" {...agentAttrs}>\n <PageHeader\n title=\"Inbox\"\n description=\"Workspace activity, alerts, and invites in one place.\"\n action={\n onMarkAllRead && unreadCount > 0 ? (\n <Button tone=\"secondary\" onClick={onMarkAllRead}>\n Mark all as read\n </Button>\n ) : undefined\n }\n />\n\n <Tabs\n activeKey={filter}\n onChange={(key) => {\n setFilter(key === 'unread' ? 'unread' : 'all');\n }}\n items={[\n { key: 'all', label: 'All' },\n {\n key: 'unread',\n label: `Unread${unreadCount > 0 ? ` (${String(unreadCount)})` : ''}`,\n },\n ]}\n >\n {error ? (\n <ErrorState\n size=\"compact\"\n title=\"Couldn't load notifications\"\n description={error.message}\n action={\n onRetry && (\n <Button tone=\"secondary\" onClick={onRetry}>\n Try again\n </Button>\n )\n }\n />\n ) : visible.length === 0 ? (\n <EmptyState\n title={filter === 'unread' ? 'No unread items' : 'No notifications'}\n description={\n filter === 'unread'\n ? \"You're all caught up.\"\n : 'Activity will appear here as it happens.'\n }\n />\n ) : (\n <ul className=\"aegis-inbox__list\">\n {visible.map((item) => (\n <li key={item.id} className=\"aegis-inbox__row-wrap\">\n <button\n type=\"button\"\n className={[\n 'aegis-inbox__row',\n item.read ? '' : 'aegis-inbox__row--unread',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={() => {\n onOpen?.(item);\n }}\n >\n <Avatar name={item.actor ?? item.title} size=\"md\" />\n <div className=\"aegis-inbox__row-body\">\n <div className=\"aegis-inbox__row-head\">\n <span className=\"aegis-inbox__row-title\">\n {item.title}\n </span>\n <span className=\"aegis-inbox__row-time\">\n {relativeTime(item.timestamp)}\n </span>\n </div>\n {item.body && (\n <div className=\"aegis-inbox__row-text\">{item.body}</div>\n )}\n {(item.category ?? item.severity) && (\n <div className=\"aegis-inbox__row-meta\">\n {item.severity && (\n <Chip tone={SEVERITY_TONE[item.severity]}>\n {item.severity}\n </Chip>\n )}\n {item.category && (\n <Chip tone=\"ghost\">{item.category}</Chip>\n )}\n </div>\n )}\n </div>\n </button>\n </li>\n ))}\n </ul>\n )}\n </Tabs>\n </div>\n );\n}\n"],"names":["SEVERITY_TONE","InboxPage","items","unreadCount","n","onOpen","onMarkAllRead","error","onRetry","defaultFilter","surface","filter","setFilter","useState","wrapRef","useRef","agentAttrs","usePrimitiveSurface","visible","useMemo","jsx","PageHeader","Button","Tabs","key","ErrorState","EmptyState","item","jsxs","Avatar","relativeTime","Chip"],"mappings":"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"}
|
|
@@ -3,9 +3,23 @@ import { PrimitiveSurface } from '../../agent/core/usePrimitiveSurface';
|
|
|
3
3
|
import { AegisNotification } from '../../notifications';
|
|
4
4
|
type Filter = 'all' | 'unread';
|
|
5
5
|
export type InboxPageSurface = PrimitiveSurface<AegisNotification[]>;
|
|
6
|
-
interface InboxPageProps {
|
|
6
|
+
export interface InboxPageProps {
|
|
7
|
+
items: AegisNotification[];
|
|
8
|
+
/** Shown on the Unread tab. Defaults to the number of unread `items`. */
|
|
9
|
+
unreadCount?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Fired when the user opens an item. The host marks it read and
|
|
12
|
+
* navigates to `item.to`.
|
|
13
|
+
*/
|
|
14
|
+
onOpen?: (item: AegisNotification) => void;
|
|
15
|
+
/** Renders "Mark all as read" while anything is unread. */
|
|
16
|
+
onMarkAllRead?: () => void;
|
|
17
|
+
/** Set when the items failed to load; shown in place of the list. */
|
|
18
|
+
error?: Error | null;
|
|
19
|
+
/** Renders a retry button alongside `error`. */
|
|
20
|
+
onRetry?: () => void;
|
|
7
21
|
defaultFilter?: Filter;
|
|
8
22
|
surface?: InboxPageSurface;
|
|
9
23
|
}
|
|
10
|
-
export declare function InboxPage({ defaultFilter, surface, }: InboxPageProps): ReactElement;
|
|
24
|
+
export declare function InboxPage({ items, unreadCount, onOpen, onMarkAllRead, error, onRetry, defaultFilter, surface, }: InboxPageProps): ReactElement;
|
|
11
25
|
export {};
|
|
@@ -1,54 +1,48 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useNavigate as y } from "react-router-dom";
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as _, useRef as y, useMemo as v } from "react";
|
|
4
3
|
import { usePrimitiveSurface as x } from "../../agent/core/usePrimitiveSurface.js";
|
|
5
4
|
import { Avatar as w } from "./Avatar.js";
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Chip as
|
|
8
|
-
import { EmptyState as
|
|
5
|
+
import { Button as p } from "./Button.js";
|
|
6
|
+
import { Chip as m } from "./Chip.js";
|
|
7
|
+
import { EmptyState as N } from "./EmptyState.js";
|
|
8
|
+
import { ErrorState as k } from "./ErrorState.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { PageHeader as
|
|
11
|
-
import { Tabs as
|
|
12
|
-
import { relativeTime as
|
|
13
|
-
|
|
14
|
-
const E = {
|
|
10
|
+
import { PageHeader as S } from "./PageHeader.js";
|
|
11
|
+
import { Tabs as E } from "./Tabs.js";
|
|
12
|
+
import { relativeTime as T } from "./relativeTime.js";
|
|
13
|
+
const C = {
|
|
15
14
|
info: "ghost",
|
|
16
15
|
success: "default",
|
|
17
|
-
warning: "
|
|
16
|
+
warning: "caution",
|
|
18
17
|
error: "warning"
|
|
19
18
|
};
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
function O({
|
|
20
|
+
items: r,
|
|
21
|
+
unreadCount: n = r.filter((a) => !a.read).length,
|
|
22
|
+
onOpen: g,
|
|
23
|
+
onMarkAllRead: t,
|
|
24
|
+
error: s,
|
|
25
|
+
onRetry: l,
|
|
26
|
+
defaultFilter: h = "all",
|
|
27
|
+
surface: f
|
|
23
28
|
}) {
|
|
24
|
-
const
|
|
25
|
-
() =>
|
|
26
|
-
[
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/* @__PURE__ */ a(
|
|
32
|
-
C,
|
|
29
|
+
const [a, u] = _(h), c = y(null), b = x(f, r, "list", c), d = v(
|
|
30
|
+
() => a === "unread" ? r.filter((e) => !e.read) : r,
|
|
31
|
+
[r, a]
|
|
32
|
+
);
|
|
33
|
+
return /* @__PURE__ */ o("div", { ref: c, className: "aegis-inbox", ...b, children: [
|
|
34
|
+
/* @__PURE__ */ i(
|
|
35
|
+
S,
|
|
33
36
|
{
|
|
34
37
|
title: "Inbox",
|
|
35
38
|
description: "Workspace activity, alerts, and invites in one place.",
|
|
36
|
-
action:
|
|
37
|
-
N,
|
|
38
|
-
{
|
|
39
|
-
tone: "secondary",
|
|
40
|
-
onClick: () => {
|
|
41
|
-
s();
|
|
42
|
-
},
|
|
43
|
-
children: "Mark all as read"
|
|
44
|
-
}
|
|
45
|
-
) : void 0
|
|
39
|
+
action: t && n > 0 ? /* @__PURE__ */ i(p, { tone: "secondary", onClick: t, children: "Mark all as read" }) : void 0
|
|
46
40
|
}
|
|
47
41
|
),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
42
|
+
/* @__PURE__ */ i(
|
|
43
|
+
E,
|
|
50
44
|
{
|
|
51
|
-
activeKey:
|
|
45
|
+
activeKey: a,
|
|
52
46
|
onChange: (e) => {
|
|
53
47
|
u(e === "unread" ? "unread" : "all");
|
|
54
48
|
},
|
|
@@ -59,13 +53,21 @@ function U({
|
|
|
59
53
|
label: `Unread${n > 0 ? ` (${String(n)})` : ""}`
|
|
60
54
|
}
|
|
61
55
|
],
|
|
62
|
-
children:
|
|
56
|
+
children: s ? /* @__PURE__ */ i(
|
|
63
57
|
k,
|
|
64
58
|
{
|
|
65
|
-
|
|
66
|
-
|
|
59
|
+
size: "compact",
|
|
60
|
+
title: "Couldn't load notifications",
|
|
61
|
+
description: s.message,
|
|
62
|
+
action: l && /* @__PURE__ */ i(p, { tone: "secondary", onClick: l, children: "Try again" })
|
|
63
|
+
}
|
|
64
|
+
) : d.length === 0 ? /* @__PURE__ */ i(
|
|
65
|
+
N,
|
|
66
|
+
{
|
|
67
|
+
title: a === "unread" ? "No unread items" : "No notifications",
|
|
68
|
+
description: a === "unread" ? "You're all caught up." : "Activity will appear here as it happens."
|
|
67
69
|
}
|
|
68
|
-
) : /* @__PURE__ */
|
|
70
|
+
) : /* @__PURE__ */ i("ul", { className: "aegis-inbox__list", children: d.map((e) => /* @__PURE__ */ i("li", { className: "aegis-inbox__row-wrap", children: /* @__PURE__ */ o(
|
|
69
71
|
"button",
|
|
70
72
|
{
|
|
71
73
|
type: "button",
|
|
@@ -74,19 +76,19 @@ function U({
|
|
|
74
76
|
e.read ? "" : "aegis-inbox__row--unread"
|
|
75
77
|
].filter(Boolean).join(" "),
|
|
76
78
|
onClick: () => {
|
|
77
|
-
|
|
79
|
+
g?.(e);
|
|
78
80
|
},
|
|
79
81
|
children: [
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ i(w, { name: e.actor ?? e.title, size: "md" }),
|
|
83
|
+
/* @__PURE__ */ o("div", { className: "aegis-inbox__row-body", children: [
|
|
84
|
+
/* @__PURE__ */ o("div", { className: "aegis-inbox__row-head", children: [
|
|
85
|
+
/* @__PURE__ */ i("span", { className: "aegis-inbox__row-title", children: e.title }),
|
|
86
|
+
/* @__PURE__ */ i("span", { className: "aegis-inbox__row-time", children: T(e.timestamp) })
|
|
85
87
|
] }),
|
|
86
|
-
e.body && /* @__PURE__ */
|
|
87
|
-
(e.category ?? e.severity) && /* @__PURE__ */
|
|
88
|
-
e.severity && /* @__PURE__ */
|
|
89
|
-
e.category && /* @__PURE__ */
|
|
88
|
+
e.body && /* @__PURE__ */ i("div", { className: "aegis-inbox__row-text", children: e.body }),
|
|
89
|
+
(e.category ?? e.severity) && /* @__PURE__ */ o("div", { className: "aegis-inbox__row-meta", children: [
|
|
90
|
+
e.severity && /* @__PURE__ */ i(m, { tone: C[e.severity], children: e.severity }),
|
|
91
|
+
e.category && /* @__PURE__ */ i(m, { tone: "ghost", children: e.category })
|
|
90
92
|
] })
|
|
91
93
|
] })
|
|
92
94
|
]
|
|
@@ -97,6 +99,6 @@ function U({
|
|
|
97
99
|
] });
|
|
98
100
|
}
|
|
99
101
|
export {
|
|
100
|
-
|
|
102
|
+
O as InboxPage
|
|
101
103
|
};
|
|
102
104
|
//# sourceMappingURL=InboxPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InboxPage.js","sources":["../../../src/components/ui/InboxPage.tsx"],"sourcesContent":["import { type ReactElement, useMemo, useRef, useState } from 'react';\n\nimport {
|
|
1
|
+
{"version":3,"file":"InboxPage.js","sources":["../../../src/components/ui/InboxPage.tsx"],"sourcesContent":["import { type ReactElement, useMemo, useRef, useState } from 'react';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport type { AegisNotification } from '../../notifications';\nimport { Avatar } from './Avatar';\nimport { Button } from './Button';\nimport { Chip } from './Chip';\nimport { EmptyState } from './EmptyState';\nimport { ErrorState } from './ErrorState';\nimport './InboxPage.css';\nimport { PageHeader } from './PageHeader';\nimport { Tabs } from './Tabs';\nimport { relativeTime } from './relativeTime';\n\ntype Filter = 'all' | 'unread';\n\nexport type InboxPageSurface = PrimitiveSurface<AegisNotification[]>;\n\nexport interface InboxPageProps {\n items: AegisNotification[];\n /** Shown on the Unread tab. Defaults to the number of unread `items`. */\n unreadCount?: number;\n /**\n * Fired when the user opens an item. The host marks it read and\n * navigates to `item.to`.\n */\n onOpen?: (item: AegisNotification) => void;\n /** Renders \"Mark all as read\" while anything is unread. */\n onMarkAllRead?: () => void;\n /** Set when the items failed to load; shown in place of the list. */\n error?: Error | null;\n /** Renders a retry button alongside `error`. */\n onRetry?: () => void;\n defaultFilter?: Filter;\n surface?: InboxPageSurface;\n}\n\nconst SEVERITY_TONE: Record<\n NonNullable<AegisNotification['severity']>,\n 'default' | 'caution' | 'warning' | 'ghost'\n> = {\n info: 'ghost',\n success: 'default',\n warning: 'caution',\n error: 'warning',\n};\n\nexport function InboxPage({\n items,\n unreadCount = items.filter((n) => !n.read).length,\n onOpen,\n onMarkAllRead,\n error,\n onRetry,\n defaultFilter = 'all',\n surface,\n}: InboxPageProps): ReactElement {\n const [filter, setFilter] = useState<Filter>(defaultFilter);\n const wrapRef = useRef<HTMLDivElement>(null);\n const agentAttrs = usePrimitiveSurface(surface, items, 'list', wrapRef);\n\n const visible = useMemo(\n () => (filter === 'unread' ? items.filter((n) => !n.read) : items),\n [items, filter],\n );\n\n return (\n <div ref={wrapRef} className=\"aegis-inbox\" {...agentAttrs}>\n <PageHeader\n title=\"Inbox\"\n description=\"Workspace activity, alerts, and invites in one place.\"\n action={\n onMarkAllRead && unreadCount > 0 ? (\n <Button tone=\"secondary\" onClick={onMarkAllRead}>\n Mark all as read\n </Button>\n ) : undefined\n }\n />\n\n <Tabs\n activeKey={filter}\n onChange={(key) => {\n setFilter(key === 'unread' ? 'unread' : 'all');\n }}\n items={[\n { key: 'all', label: 'All' },\n {\n key: 'unread',\n label: `Unread${unreadCount > 0 ? ` (${String(unreadCount)})` : ''}`,\n },\n ]}\n >\n {error ? (\n <ErrorState\n size=\"compact\"\n title=\"Couldn't load notifications\"\n description={error.message}\n action={\n onRetry && (\n <Button tone=\"secondary\" onClick={onRetry}>\n Try again\n </Button>\n )\n }\n />\n ) : visible.length === 0 ? (\n <EmptyState\n title={filter === 'unread' ? 'No unread items' : 'No notifications'}\n description={\n filter === 'unread'\n ? \"You're all caught up.\"\n : 'Activity will appear here as it happens.'\n }\n />\n ) : (\n <ul className=\"aegis-inbox__list\">\n {visible.map((item) => (\n <li key={item.id} className=\"aegis-inbox__row-wrap\">\n <button\n type=\"button\"\n className={[\n 'aegis-inbox__row',\n item.read ? '' : 'aegis-inbox__row--unread',\n ]\n .filter(Boolean)\n .join(' ')}\n onClick={() => {\n onOpen?.(item);\n }}\n >\n <Avatar name={item.actor ?? item.title} size=\"md\" />\n <div className=\"aegis-inbox__row-body\">\n <div className=\"aegis-inbox__row-head\">\n <span className=\"aegis-inbox__row-title\">\n {item.title}\n </span>\n <span className=\"aegis-inbox__row-time\">\n {relativeTime(item.timestamp)}\n </span>\n </div>\n {item.body && (\n <div className=\"aegis-inbox__row-text\">{item.body}</div>\n )}\n {(item.category ?? item.severity) && (\n <div className=\"aegis-inbox__row-meta\">\n {item.severity && (\n <Chip tone={SEVERITY_TONE[item.severity]}>\n {item.severity}\n </Chip>\n )}\n {item.category && (\n <Chip tone=\"ghost\">{item.category}</Chip>\n )}\n </div>\n )}\n </div>\n </button>\n </li>\n ))}\n </ul>\n )}\n </Tabs>\n </div>\n );\n}\n"],"names":["SEVERITY_TONE","InboxPage","items","unreadCount","n","onOpen","onMarkAllRead","error","onRetry","defaultFilter","surface","filter","setFilter","useState","wrapRef","useRef","agentAttrs","usePrimitiveSurface","visible","useMemo","jsx","PageHeader","Button","Tabs","key","ErrorState","EmptyState","item","jsxs","Avatar","relativeTime","Chip"],"mappings":";;;;;;;;;;;;AAwCA,MAAMA,IAGF;AAAA,EACF,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACT;AAEO,SAASC,EAAU;AAAA,EACxB,OAAAC;AAAA,EACA,aAAAC,IAAcD,EAAM,OAAO,CAACE,MAAM,CAACA,EAAE,IAAI,EAAE;AAAA,EAC3C,QAAAC;AAAA,EACA,eAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,SAAAC;AACF,GAAiC;AAC/B,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAiBJ,CAAa,GACpDK,IAAUC,EAAuB,IAAI,GACrCC,IAAaC,EAAoBP,GAASR,GAAO,QAAQY,CAAO,GAEhEI,IAAUC;AAAA,IACd,MAAOR,MAAW,WAAWT,EAAM,OAAO,CAACE,MAAM,CAACA,EAAE,IAAI,IAAIF;AAAA,IAC5D,CAACA,GAAOS,CAAM;AAAA,EAAA;AAGhB,2BACG,OAAA,EAAI,KAAKG,GAAS,WAAU,eAAe,GAAGE,GAC7C,UAAA;AAAA,IAAA,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,OAAM;AAAA,QACN,aAAY;AAAA,QACZ,QACEf,KAAiBH,IAAc,IAC7B,gBAAAiB,EAACE,GAAA,EAAO,MAAK,aAAY,SAAShB,GAAe,UAAA,mBAAA,CAEjD,IACE;AAAA,MAAA;AAAA,IAAA;AAAA,IAIR,gBAAAc;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,WAAWZ;AAAA,QACX,UAAU,CAACa,MAAQ;AACjB,UAAAZ,EAAUY,MAAQ,WAAW,WAAW,KAAK;AAAA,QAC/C;AAAA,QACA,OAAO;AAAA,UACL,EAAE,KAAK,OAAO,OAAO,MAAA;AAAA,UACrB;AAAA,YACE,KAAK;AAAA,YACL,OAAO,SAASrB,IAAc,IAAI,KAAK,OAAOA,CAAW,CAAC,MAAM,EAAE;AAAA,UAAA;AAAA,QACpE;AAAA,QAGD,UAAAI,IACC,gBAAAa;AAAA,UAACK;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,OAAM;AAAA,YACN,aAAalB,EAAM;AAAA,YACnB,QACEC,KACE,gBAAAY,EAACE,GAAA,EAAO,MAAK,aAAY,SAASd,GAAS,UAAA,YAAA,CAE3C;AAAA,UAAA;AAAA,QAAA,IAIJU,EAAQ,WAAW,IACrB,gBAAAE;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,OAAOf,MAAW,WAAW,oBAAoB;AAAA,YACjD,aACEA,MAAW,WACP,0BACA;AAAA,UAAA;AAAA,QAAA,IAIR,gBAAAS,EAAC,MAAA,EAAG,WAAU,qBACX,UAAAF,EAAQ,IAAI,CAACS,MACZ,gBAAAP,EAAC,MAAA,EAAiB,WAAU,yBAC1B,UAAA,gBAAAQ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAW;AAAA,cACT;AAAA,cACAD,EAAK,OAAO,KAAK;AAAA,YAAA,EAEhB,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,YACX,SAAS,MAAM;AACb,cAAAtB,IAASsB,CAAI;AAAA,YACf;AAAA,YAEA,UAAA;AAAA,cAAA,gBAAAP,EAACS,KAAO,MAAMF,EAAK,SAASA,EAAK,OAAO,MAAK,MAAK;AAAA,cAClD,gBAAAC,EAAC,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,gBAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,kBAAA,gBAAAR,EAAC,QAAA,EAAK,WAAU,0BACb,UAAAO,EAAK,OACR;AAAA,oCACC,QAAA,EAAK,WAAU,yBACb,UAAAG,EAAaH,EAAK,SAAS,EAAA,CAC9B;AAAA,gBAAA,GACF;AAAA,gBACCA,EAAK,QACJ,gBAAAP,EAAC,SAAI,WAAU,yBAAyB,YAAK,MAAK;AAAA,iBAElDO,EAAK,YAAYA,EAAK,aACtB,gBAAAC,EAAC,OAAA,EAAI,WAAU,yBACZ,UAAA;AAAA,kBAAAD,EAAK,8BACHI,GAAA,EAAK,MAAM/B,EAAc2B,EAAK,QAAQ,GACpC,UAAAA,EAAK,SAAA,CACR;AAAA,kBAEDA,EAAK,YACJ,gBAAAP,EAACW,KAAK,MAAK,SAAS,YAAK,SAAA,CAAS;AAAA,gBAAA,EAAA,CAEtC;AAAA,cAAA,EAAA,CAEJ;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA,KAtCKJ,EAAK,EAwCd,CACD,EAAA,CACH;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ,GACF;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"),o=require("react"),d=require("../../agent/core/usePrimitiveSurface.cjs");;/* empty css */function v({items:s,ruled:a=!0,className:t,surface:c}){const r=o.useRef(null),l=d.usePrimitiveSurface(c,s,"detail",r),n=["aegis-kv",a?"aegis-kv--ruled":"",t??""].filter(Boolean).join(" ");return e.jsx("dl",{ref:r,className:n,...l,children:s.map((i,u)=>e.jsxs("div",{className:"aegis-kv__row",children:[e.jsx("dt",{className:"aegis-kv__k",children:i.k}),e.jsx("dd",{className:"aegis-kv__v",children:i.v})]},u))})}exports.KeyValueList=v;
|
|
2
2
|
//# sourceMappingURL=KeyValueList.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueList.cjs","sources":["../../../src/components/ui/KeyValueList.tsx"],"sourcesContent":["import { type ReactNode, useRef } from 'react';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './KeyValueList.css';\
|
|
1
|
+
{"version":3,"file":"KeyValueList.cjs","sources":["../../../src/components/ui/KeyValueList.tsx"],"sourcesContent":["import { type ReactNode, useRef } from 'react';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './KeyValueList.css';\n\nexport interface KeyValueItem {\n /** Left key, a muted label. */\n k: ReactNode;\n /**\n * Right value, in UI type with tabular figures. Wrap ids, paths and code\n * in `MonoValue`.\n */\n v: ReactNode;\n}\n\nexport type KeyValueListSurface = PrimitiveSurface<KeyValueItem[]>;\n\ninterface KeyValueListProps {\n items: KeyValueItem[];\n /** Top hairline above the first row. */\n ruled?: boolean;\n className?: string;\n surface?: KeyValueListSurface;\n}\n\nexport function KeyValueList({\n items,\n ruled = true,\n className,\n surface,\n}: KeyValueListProps) {\n const wrapRef = useRef<HTMLDListElement>(null);\n\n const agentAttrs = usePrimitiveSurface(surface, items, 'detail', wrapRef);\n\n const cls = ['aegis-kv', ruled ? 'aegis-kv--ruled' : '', className ?? '']\n .filter(Boolean)\n .join(' ');\n return (\n <dl ref={wrapRef} className={cls} {...agentAttrs}>\n {items.map((item, i) => (\n <div className=\"aegis-kv__row\" key={i}>\n <dt className=\"aegis-kv__k\">{item.k}</dt>\n <dd className=\"aegis-kv__v\">{item.v}</dd>\n </div>\n ))}\n </dl>\n );\n}\n"],"names":["KeyValueList","items","ruled","className","surface","wrapRef","useRef","agentAttrs","usePrimitiveSurface","cls","item","i","jsxs","jsx"],"mappings":"gOA4BO,SAASA,EAAa,CAC3B,MAAAC,EACA,MAAAC,EAAQ,GACR,UAAAC,EACA,QAAAC,CACF,EAAsB,CACpB,MAAMC,EAAUC,EAAAA,OAAyB,IAAI,EAEvCC,EAAaC,EAAAA,oBAAoBJ,EAASH,EAAO,SAAUI,CAAO,EAElEI,EAAM,CAAC,WAAYP,EAAQ,kBAAoB,GAAIC,GAAa,EAAE,EACrE,OAAO,OAAO,EACd,KAAK,GAAG,EACX,aACG,KAAA,CAAG,IAAKE,EAAS,UAAWI,EAAM,GAAGF,EACnC,SAAAN,EAAM,IAAI,CAACS,EAAMC,IAChBC,EAAAA,KAAC,MAAA,CAAI,UAAU,gBACb,SAAA,CAAAC,EAAAA,IAAC,KAAA,CAAG,UAAU,cAAe,SAAAH,EAAK,EAAE,EACpCG,EAAAA,IAAC,KAAA,CAAG,UAAU,cAAe,WAAK,CAAA,CAAE,CAAA,GAFFF,CAGpC,CACD,EACH,CAEJ"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { PrimitiveSurface } from '../../agent/core/usePrimitiveSurface';
|
|
3
3
|
export interface KeyValueItem {
|
|
4
|
-
/** Left key
|
|
4
|
+
/** Left key, a muted label. */
|
|
5
5
|
k: ReactNode;
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Right value, in UI type with tabular figures. Wrap ids, paths and code
|
|
8
|
+
* in `MonoValue`.
|
|
9
|
+
*/
|
|
7
10
|
v: ReactNode;
|
|
8
11
|
}
|
|
9
12
|
export type KeyValueListSurface = PrimitiveSurface<KeyValueItem[]>;
|
|
10
13
|
interface KeyValueListProps {
|
|
11
14
|
items: KeyValueItem[];
|
|
12
|
-
/** Render keys as uppercase tracked labels instead of mono. */
|
|
13
|
-
uppercaseKeys?: boolean;
|
|
14
15
|
/** Top hairline above the first row. */
|
|
15
16
|
ruled?: boolean;
|
|
16
17
|
className?: string;
|
|
17
18
|
surface?: KeyValueListSurface;
|
|
18
19
|
}
|
|
19
|
-
export declare function KeyValueList({ items,
|
|
20
|
+
export declare function KeyValueList({ items, ruled, className, surface, }: KeyValueListProps): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { usePrimitiveSurface as
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as m } from "react";
|
|
3
|
+
import { usePrimitiveSurface as f } from "../../agent/core/usePrimitiveSurface.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
ruled: o = !0,
|
|
11
|
-
className: t,
|
|
12
|
-
surface: c
|
|
5
|
+
function g({
|
|
6
|
+
items: r,
|
|
7
|
+
ruled: i = !0,
|
|
8
|
+
className: l,
|
|
9
|
+
surface: t
|
|
13
10
|
}) {
|
|
14
|
-
const s =
|
|
15
|
-
return /* @__PURE__ */ e("dl", { ref: s, className:
|
|
16
|
-
/* @__PURE__ */ e("dt", { className: "aegis-kv__k", children:
|
|
17
|
-
/* @__PURE__ */ e("dd", { className: "aegis-kv__v", children:
|
|
18
|
-
] },
|
|
11
|
+
const s = m(null), o = f(t, r, "detail", s), c = ["aegis-kv", i ? "aegis-kv--ruled" : "", l ?? ""].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ e("dl", { ref: s, className: c, ...o, children: r.map((a, n) => /* @__PURE__ */ d("div", { className: "aegis-kv__row", children: [
|
|
13
|
+
/* @__PURE__ */ e("dt", { className: "aegis-kv__k", children: a.k }),
|
|
14
|
+
/* @__PURE__ */ e("dd", { className: "aegis-kv__v", children: a.v })
|
|
15
|
+
] }, n)) });
|
|
19
16
|
}
|
|
20
17
|
export {
|
|
21
|
-
|
|
18
|
+
g as KeyValueList
|
|
22
19
|
};
|
|
23
20
|
//# sourceMappingURL=KeyValueList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueList.js","sources":["../../../src/components/ui/KeyValueList.tsx"],"sourcesContent":["import { type ReactNode, useRef } from 'react';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './KeyValueList.css';\
|
|
1
|
+
{"version":3,"file":"KeyValueList.js","sources":["../../../src/components/ui/KeyValueList.tsx"],"sourcesContent":["import { type ReactNode, useRef } from 'react';\n\nimport {\n type PrimitiveSurface,\n usePrimitiveSurface,\n} from '../../agent/core/usePrimitiveSurface';\nimport './KeyValueList.css';\n\nexport interface KeyValueItem {\n /** Left key, a muted label. */\n k: ReactNode;\n /**\n * Right value, in UI type with tabular figures. Wrap ids, paths and code\n * in `MonoValue`.\n */\n v: ReactNode;\n}\n\nexport type KeyValueListSurface = PrimitiveSurface<KeyValueItem[]>;\n\ninterface KeyValueListProps {\n items: KeyValueItem[];\n /** Top hairline above the first row. */\n ruled?: boolean;\n className?: string;\n surface?: KeyValueListSurface;\n}\n\nexport function KeyValueList({\n items,\n ruled = true,\n className,\n surface,\n}: KeyValueListProps) {\n const wrapRef = useRef<HTMLDListElement>(null);\n\n const agentAttrs = usePrimitiveSurface(surface, items, 'detail', wrapRef);\n\n const cls = ['aegis-kv', ruled ? 'aegis-kv--ruled' : '', className ?? '']\n .filter(Boolean)\n .join(' ');\n return (\n <dl ref={wrapRef} className={cls} {...agentAttrs}>\n {items.map((item, i) => (\n <div className=\"aegis-kv__row\" key={i}>\n <dt className=\"aegis-kv__k\">{item.k}</dt>\n <dd className=\"aegis-kv__v\">{item.v}</dd>\n </div>\n ))}\n </dl>\n );\n}\n"],"names":["KeyValueList","items","ruled","className","surface","wrapRef","useRef","agentAttrs","usePrimitiveSurface","cls","item","i","jsxs","jsx"],"mappings":";;;;AA4BO,SAASA,EAAa;AAAA,EAC3B,OAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,WAAAC;AAAA,EACA,SAAAC;AACF,GAAsB;AACpB,QAAMC,IAAUC,EAAyB,IAAI,GAEvCC,IAAaC,EAAoBJ,GAASH,GAAO,UAAUI,CAAO,GAElEI,IAAM,CAAC,YAAYP,IAAQ,oBAAoB,IAAIC,KAAa,EAAE,EACrE,OAAO,OAAO,EACd,KAAK,GAAG;AACX,2BACG,MAAA,EAAG,KAAKE,GAAS,WAAWI,GAAM,GAAGF,GACnC,UAAAN,EAAM,IAAI,CAACS,GAAMC,MAChB,gBAAAC,EAAC,OAAA,EAAI,WAAU,iBACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,MAAA,EAAG,WAAU,eAAe,UAAAH,EAAK,GAAE;AAAA,IACpC,gBAAAG,EAAC,MAAA,EAAG,WAAU,eAAe,YAAK,EAAA,CAAE;AAAA,EAAA,KAFFF,CAGpC,CACD,GACH;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("react"),y=require("./Alert.cjs"),w=require("./Button.cjs"),C=require("./Checkbox.cjs");;/* empty css */const E=require("./PasswordField.cjs"),_=require("./TextField.cjs"),O=require("./authValidation.cjs");function F({onSubmit:x,submitting:t=!1,error:n,onForgotPassword:o,showRememberMe:u=!0,action:i,method:f="POST",hiddenFields:d}){const[m,g]=s.useState(""),[l,h]=s.useState(""),[c,v]=s.useState(!1),[p,j]=s.useState(!1),b=m.trim(),a={email:b===""?O.EMAIL_REQUIRED:void 0,password:l===""?"Enter your password.":void 0},S=r=>{if(j(!0),a.email??a.password){r.preventDefault();return}i||r.preventDefault(),x?.({email:b,password:l,remember:c})};return e.jsxs("form",{className:"aegis-loginform",onSubmit:S,action:i,method:i?f:void 0,noValidate:!0,children:[n&&e.jsx(y.Alert,{tone:"error",children:n}),d&&Object.entries(d).map(([r,q])=>e.jsx("input",{type:"hidden",name:r,value:q},r)),e.jsx(_.TextField,{label:"Email",type:"email",name:"username",autoComplete:"username",placeholder:"you@example.com",value:m,onChange:r=>g(r.target.value),readOnly:t,required:!0,error:p?a.email:void 0}),e.jsx(E.PasswordField,{label:"Password",name:"password",autoComplete:"current-password",placeholder:"••••••••",value:l,onChange:r=>h(r.target.value),readOnly:t,required:!0,error:p?a.password:void 0}),(u||o)&&e.jsxs("div",{className:"aegis-loginform__row",children:[u?e.jsx(C.Checkbox,{checked:c,onChange:v,disabled:t,label:"Remember me"}):e.jsx("span",{}),o&&e.jsx("button",{type:"button",className:"aegis-loginform__forgot",onClick:o,disabled:t,children:"Forgot password?"})]}),e.jsx(w.Button,{tone:"primary",type:"submit",className:"aegis-loginform__submit",disabled:t,children:t?"Signing in…":"Sign in"})]})}exports.LoginForm=F;
|
|
2
2
|
//# sourceMappingURL=LoginForm.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.cjs","sources":["../../../src/components/ui/LoginForm.tsx"],"sourcesContent":["import { type FormEvent, type ReactElement, useState } from 'react';\n\nimport './
|
|
1
|
+
{"version":3,"file":"LoginForm.cjs","sources":["../../../src/components/ui/LoginForm.tsx"],"sourcesContent":["import { type FormEvent, type ReactElement, useState } from 'react';\n\nimport { Alert } from './Alert';\nimport { Button } from './Button';\nimport { Checkbox } from './Checkbox';\nimport './LoginForm.css';\nimport { PasswordField } from './PasswordField';\nimport { TextField } from './TextField';\nimport { EMAIL_REQUIRED } from './authValidation';\n\ninterface LoginFormValues {\n email: string;\n password: string;\n remember: boolean;\n}\n\ninterface LoginFormProps {\n /** Called only once both fields are filled; `email` arrives trimmed. */\n onSubmit?: (values: LoginFormValues) => void | Promise<void>;\n submitting?: boolean;\n error?: string;\n onForgotPassword?: () => void;\n showRememberMe?: boolean;\n // When set, a filled-in form submits natively to this URL so the\n // browser's password manager can detect the credential submission.\n // onSubmit is still invoked (without preventDefault) for caller-side\n // bookkeeping.\n action?: string;\n method?: 'GET' | 'POST';\n // Extra hidden inputs co-submitted with username/password — e.g. PKCE\n // params for an SSO authorization endpoint.\n hiddenFields?: Record<string, string>;\n}\n\nexport function LoginForm({\n onSubmit,\n submitting = false,\n error,\n onForgotPassword,\n showRememberMe = true,\n action,\n method = 'POST',\n hiddenFields,\n}: LoginFormProps): ReactElement {\n const [email, setEmail] = useState('');\n const [password, setPassword] = useState('');\n const [remember, setRemember] = useState(false);\n const [submitted, setSubmitted] = useState(false);\n\n const trimmedEmail = email.trim();\n const errors = {\n email: trimmedEmail === '' ? EMAIL_REQUIRED : undefined,\n password: password === '' ? 'Enter your password.' : undefined,\n };\n\n const handleSubmit = (e: FormEvent<HTMLFormElement>): void => {\n setSubmitted(true);\n if (errors.email ?? errors.password) {\n e.preventDefault();\n return;\n }\n if (!action) {\n e.preventDefault();\n }\n void onSubmit?.({ email: trimmedEmail, password, remember });\n };\n\n return (\n <form\n className=\"aegis-loginform\"\n onSubmit={handleSubmit}\n action={action}\n method={action ? method : undefined}\n noValidate\n >\n {error && <Alert tone=\"error\">{error}</Alert>}\n {hiddenFields &&\n Object.entries(hiddenFields).map(([k, v]) => (\n <input key={k} type=\"hidden\" name={k} value={v} />\n ))}\n {/* readOnly (not disabled) while submitting: disabled inputs are excluded\n from native form submission per the HTML spec, which breaks the\n action-URL path (SSO/PKCE) since React flushes setSubmitting(true)\n synchronously inside the submit handler — the browser would then\n serialize the form with username/password missing. */}\n <TextField\n label=\"Email\"\n type=\"email\"\n name=\"username\"\n autoComplete=\"username\"\n placeholder=\"you@example.com\"\n value={email}\n onChange={(e) => setEmail(e.target.value)}\n readOnly={submitting}\n required\n error={submitted ? errors.email : undefined}\n />\n <PasswordField\n label=\"Password\"\n name=\"password\"\n autoComplete=\"current-password\"\n placeholder=\"••••••••\"\n value={password}\n onChange={(e) => setPassword(e.target.value)}\n readOnly={submitting}\n required\n error={submitted ? errors.password : undefined}\n />\n {(showRememberMe || onForgotPassword) && (\n <div className=\"aegis-loginform__row\">\n {showRememberMe ? (\n <Checkbox\n checked={remember}\n onChange={setRemember}\n disabled={submitting}\n label=\"Remember me\"\n />\n ) : (\n <span />\n )}\n {onForgotPassword && (\n <button\n type=\"button\"\n className=\"aegis-loginform__forgot\"\n onClick={onForgotPassword}\n disabled={submitting}\n >\n Forgot password?\n </button>\n )}\n </div>\n )}\n <Button\n tone=\"primary\"\n type=\"submit\"\n className=\"aegis-loginform__submit\"\n disabled={submitting}\n >\n {submitting ? 'Signing in…' : 'Sign in'}\n </Button>\n </form>\n );\n}\n"],"names":["LoginForm","onSubmit","submitting","error","onForgotPassword","showRememberMe","action","method","hiddenFields","email","setEmail","useState","password","setPassword","remember","setRemember","submitted","setSubmitted","trimmedEmail","errors","EMAIL_REQUIRED","handleSubmit","e","jsxs","jsx","Alert","k","v","TextField","PasswordField","Checkbox","Button"],"mappings":"4VAkCO,SAASA,EAAU,CACxB,SAAAC,EACA,WAAAC,EAAa,GACb,MAAAC,EACA,iBAAAC,EACA,eAAAC,EAAiB,GACjB,OAAAC,EACA,OAAAC,EAAS,OACT,aAAAC,CACF,EAAiC,CAC/B,KAAM,CAACC,EAAOC,CAAQ,EAAIC,EAAAA,SAAS,EAAE,EAC/B,CAACC,EAAUC,CAAW,EAAIF,EAAAA,SAAS,EAAE,EACrC,CAACG,EAAUC,CAAW,EAAIJ,EAAAA,SAAS,EAAK,EACxC,CAACK,EAAWC,CAAY,EAAIN,EAAAA,SAAS,EAAK,EAE1CO,EAAeT,EAAM,KAAA,EACrBU,EAAS,CACb,MAAOD,IAAiB,GAAKE,EAAAA,eAAiB,OAC9C,SAAUR,IAAa,GAAK,uBAAyB,MAAA,EAGjDS,EAAgBC,GAAwC,CAE5D,GADAL,EAAa,EAAI,EACbE,EAAO,OAASA,EAAO,SAAU,CACnCG,EAAE,eAAA,EACF,MACF,CACKhB,GACHgB,EAAE,eAAA,EAECrB,IAAW,CAAE,MAAOiB,EAAc,SAAAN,EAAU,SAAAE,EAAU,CAC7D,EAEA,OACES,EAAAA,KAAC,OAAA,CACC,UAAU,kBACV,SAAUF,EACV,OAAAf,EACA,OAAQA,EAASC,EAAS,OAC1B,WAAU,GAET,SAAA,CAAAJ,GAASqB,EAAAA,IAACC,QAAA,CAAM,KAAK,QAAS,SAAAtB,EAAM,EACpCK,GACC,OAAO,QAAQA,CAAY,EAAE,IAAI,CAAC,CAACkB,EAAGC,CAAC,IACrCH,EAAAA,IAAC,QAAA,CAAc,KAAK,SAAS,KAAME,EAAG,MAAOC,GAAjCD,CAAoC,CACjD,EAMHF,EAAAA,IAACI,EAAAA,UAAA,CACC,MAAM,QACN,KAAK,QACL,KAAK,WACL,aAAa,WACb,YAAY,kBACZ,MAAOnB,EACP,SAAWa,GAAMZ,EAASY,EAAE,OAAO,KAAK,EACxC,SAAUpB,EACV,SAAQ,GACR,MAAOc,EAAYG,EAAO,MAAQ,MAAA,CAAA,EAEpCK,EAAAA,IAACK,EAAAA,cAAA,CACC,MAAM,WACN,KAAK,WACL,aAAa,mBACb,YAAY,WACZ,MAAOjB,EACP,SAAWU,GAAMT,EAAYS,EAAE,OAAO,KAAK,EAC3C,SAAUpB,EACV,SAAQ,GACR,MAAOc,EAAYG,EAAO,SAAW,MAAA,CAAA,GAErCd,GAAkBD,IAClBmB,EAAAA,KAAC,MAAA,CAAI,UAAU,uBACZ,SAAA,CAAAlB,EACCmB,EAAAA,IAACM,EAAAA,SAAA,CACC,QAAShB,EACT,SAAUC,EACV,SAAUb,EACV,MAAM,aAAA,CAAA,QAGP,OAAA,EAAK,EAEPE,GACCoB,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAU,0BACV,QAASpB,EACT,SAAUF,EACX,SAAA,kBAAA,CAAA,CAED,EAEJ,EAEFsB,EAAAA,IAACO,EAAAA,OAAA,CACC,KAAK,UACL,KAAK,SACL,UAAU,0BACV,SAAU7B,EAET,WAAa,cAAgB,SAAA,CAAA,CAChC,CAAA,CAAA,CAGN"}
|