@parallelworks/ui 0.44.0 → 0.46.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/README.md +348 -25
- package/dist/ai/agent/diff.d.ts +2 -1
- package/dist/ai/agent/diff.js +4 -12
- package/dist/ai/agent/diffHighlight.d.ts +1 -1
- package/dist/ai/agent/diffHighlight.js +4 -3
- package/dist/ai/agent/index.d.ts +2 -1
- package/dist/ai/agent/permissions.d.ts +1 -1
- package/dist/ai/agent/permissions.js +1 -1
- package/dist/ai/agent/toolStrings.d.ts +37 -0
- package/dist/ai/agent/toolStrings.js +35 -0
- package/dist/ai/agent/toolfmt.d.ts +8 -3
- package/dist/ai/agent/toolfmt.js +50 -65
- package/dist/ai/ai.css +22 -35
- package/dist/ai/components/AllocationSelector.js +2 -2
- package/dist/ai/components/AttachmentManager.js +28 -29
- package/dist/ai/components/AttachmentUpload.js +25 -30
- package/dist/ai/components/BlockedGroupBanner.js +2 -2
- package/dist/ai/components/BranchNavigator.js +3 -4
- package/dist/ai/components/ChatEmptyState.js +8 -7
- package/dist/ai/components/ChatInput.js +10 -12
- package/dist/ai/components/ChatLayout.js +3 -3
- package/dist/ai/components/ChatMessage.js +49 -61
- package/dist/ai/components/ChatMessageList.js +46 -42
- package/dist/ai/components/ChatSidebar.js +26 -34
- package/dist/ai/components/ChatStage.d.ts +1 -1
- package/dist/ai/components/ChatStage.js +2 -2
- package/dist/ai/components/ComposerChrome.js +3 -4
- package/dist/ai/components/DragOverlay.js +6 -4
- package/dist/ai/components/ModelSelector.js +14 -15
- package/dist/ai/components/PastedText.js +18 -14
- package/dist/ai/components/ProviderIssueBanner.js +3 -4
- package/dist/ai/components/Reasoning.d.ts +12 -6
- package/dist/ai/components/Reasoning.js +31 -18
- package/dist/ai/components/ShareDialog.js +25 -28
- package/dist/ai/components/SlashMenu.js +3 -3
- package/dist/ai/components/agent/ActivityLine.d.ts +0 -5
- package/dist/ai/components/agent/ActivityLine.js +17 -54
- package/dist/ai/components/agent/AgentMessageParts.js +139 -149
- package/dist/ai/components/conversationActions.js +16 -16
- package/dist/ai/core/ChatProvider.d.ts +2 -4
- package/dist/ai/core/ChatProvider.js +25 -38
- package/dist/ai/core/exportConversation.js +4 -4
- package/dist/ai/core/pasteLanguage.d.ts +1 -1
- package/dist/ai/core/pasteLanguage.js +1 -1
- package/dist/ai/core/sidebarState.d.ts +8 -6
- package/dist/ai/core/sidebarState.js +21 -28
- package/dist/ai/core/useKeyboardShortcuts.js +14 -5
- package/dist/ai/index.d.ts +4 -5
- package/dist/ai/index.js +7 -7
- package/dist/ai/strings.d.ts +14 -31
- package/dist/ai/strings.js +19 -39
- package/dist/ai/types.d.ts +0 -5
- package/dist/ai/ui/ConversationSidebar.d.ts +12 -9
- package/dist/ai/ui/ConversationSidebar.js +43 -87
- package/dist/ai/ui/Markdown.d.ts +3 -6
- package/dist/ai/ui/Markdown.js +6 -73
- package/dist/ai/ui/Notice.js +10 -12
- package/dist/ai/ui/chip.d.ts +2 -2
- package/dist/ai/ui/chip.js +1 -1
- package/dist/ai/ui/sidebar.d.ts +4 -20
- package/dist/ai/ui/sidebar.js +30 -67
- package/dist/ai/utils.d.ts +0 -1
- package/dist/ai/utils.js +1 -14
- package/dist/brandIcons.d.ts +51 -0
- package/dist/brandIcons.js +75 -0
- package/dist/components/Avatar.d.ts +3 -1
- package/dist/components/Avatar.js +34 -28
- package/dist/components/Button.d.ts +12 -7
- package/dist/components/Button.js +39 -44
- package/dist/components/Callout.js +18 -12
- package/dist/components/Card.d.ts +18 -8
- package/dist/components/Card.js +17 -6
- package/dist/components/Checkbox.d.ts +9 -0
- package/dist/components/Checkbox.js +30 -0
- package/dist/components/Combobox.d.ts +9 -1
- package/dist/components/Combobox.js +71 -44
- package/dist/components/ConfirmModal.js +11 -11
- package/dist/components/ContextMenu.d.ts +2 -8
- package/dist/components/ContextMenu.js +2 -29
- package/dist/components/CopyToClipboard.js +17 -36
- package/dist/components/CreateModal.d.ts +3 -24
- package/dist/components/CreateModal.js +46 -113
- package/dist/components/DatePicker.d.ts +31 -0
- package/dist/components/DatePicker.js +191 -0
- package/dist/components/DescriptionList.js +4 -4
- package/dist/components/Disclosure.d.ts +34 -0
- package/dist/components/Disclosure.js +46 -0
- package/dist/components/Drawer.d.ts +47 -0
- package/dist/components/Drawer.js +120 -0
- package/dist/components/EmptyState.d.ts +15 -10
- package/dist/components/EmptyState.js +13 -8
- package/dist/components/ExternalLink.d.ts +8 -0
- package/dist/components/ExternalLink.js +29 -0
- package/dist/components/Field.d.ts +70 -0
- package/dist/components/Field.js +159 -0
- package/dist/components/HoverCard.js +11 -14
- package/dist/components/IconButton.d.ts +16 -13
- package/dist/components/IconButton.js +27 -18
- package/dist/components/InfoTip.js +16 -23
- package/dist/components/Input.d.ts +10 -9
- package/dist/components/Input.js +54 -96
- package/dist/components/LetterBadge.js +2 -2
- package/dist/components/Loader.d.ts +15 -8
- package/dist/components/Loader.js +29 -19
- package/dist/components/Markdown.d.ts +7 -1
- package/dist/components/Markdown.js +2 -0
- package/dist/components/MarkdownImpl.d.ts +1 -1
- package/dist/components/MarkdownImpl.js +55 -14
- package/dist/components/Menu.js +13 -15
- package/dist/components/MenuEntries.js +11 -16
- package/dist/components/Meter.d.ts +48 -0
- package/dist/components/Meter.js +94 -0
- package/dist/components/Modal.js +11 -14
- package/dist/components/NumberInput.d.ts +25 -0
- package/dist/components/NumberInput.js +55 -0
- package/dist/components/Overview.js +12 -10
- package/dist/components/PageHeader.d.ts +2 -3
- package/dist/components/PageHeader.js +30 -21
- package/dist/components/Pagination.d.ts +27 -14
- package/dist/components/Pagination.js +86 -25
- package/dist/components/Popover.d.ts +47 -0
- package/dist/components/Popover.js +63 -0
- package/dist/components/Provider.d.ts +200 -83
- package/dist/components/Provider.js +203 -121
- package/dist/components/Radio.d.ts +1 -1
- package/dist/components/Radio.js +4 -4
- package/dist/components/RefreshButton.d.ts +15 -0
- package/dist/components/RefreshButton.js +53 -0
- package/dist/components/RunStatusIcon.d.ts +12 -0
- package/dist/components/RunStatusIcon.js +84 -0
- package/dist/components/SearchInput.d.ts +16 -0
- package/dist/components/SearchInput.js +52 -0
- package/dist/components/Section.d.ts +28 -0
- package/dist/components/Section.js +76 -0
- package/dist/components/SegmentedControl.d.ts +7 -11
- package/dist/components/SegmentedControl.js +25 -56
- package/dist/components/Select.d.ts +5 -1
- package/dist/components/Select.js +43 -44
- package/dist/components/SettingModeOption.d.ts +3 -5
- package/dist/components/SettingModeOption.js +5 -6
- package/dist/components/SettingsCard.d.ts +32 -19
- package/dist/components/SettingsCard.js +40 -13
- package/dist/components/Skeleton.d.ts +22 -0
- package/dist/components/Skeleton.js +34 -0
- package/dist/components/Slider.d.ts +16 -0
- package/dist/components/Slider.js +30 -0
- package/dist/components/Sort.js +4 -6
- package/dist/components/StatusBadge.d.ts +5 -3
- package/dist/components/StatusBadge.js +10 -33
- package/dist/components/StatusIcons.d.ts +0 -4
- package/dist/components/StatusIcons.js +5 -13
- package/dist/components/Switch.d.ts +5 -1
- package/dist/components/Switch.js +23 -6
- package/dist/components/Table.js +13 -20
- package/dist/components/Tabs.d.ts +52 -0
- package/dist/components/Tabs.js +75 -0
- package/dist/components/ThemeEditor.d.ts +29 -0
- package/dist/components/ThemeEditor.js +397 -0
- package/dist/components/Toast.d.ts +57 -0
- package/dist/components/Toast.js +203 -0
- package/dist/components/Tooltip.js +12 -15
- package/dist/components/buttonClasses.d.ts +18 -0
- package/dist/components/buttonClasses.js +31 -0
- package/dist/components/codeTheme.d.ts +5 -0
- package/dist/components/codeTheme.js +93 -0
- package/dist/components/comboboxItems.d.ts +1 -1
- package/dist/components/fieldBox.d.ts +14 -0
- package/dist/components/fieldBox.js +29 -0
- package/dist/components/floating.d.ts +26 -5
- package/dist/components/floating.js +31 -9
- package/dist/{ai/ui/codeBreaks.js → components/markdownCodeBreaks.js} +1 -1
- package/dist/components/persistedState.d.ts +2 -0
- package/dist/components/persistedState.js +63 -0
- package/dist/components/relativeTime.d.ts +36 -8
- package/dist/components/relativeTime.js +106 -23
- package/dist/components/segmented.d.ts +17 -0
- package/dist/components/segmented.js +27 -0
- package/dist/components/shortcutKey.d.ts +4 -0
- package/dist/components/shortcutKey.js +27 -0
- package/dist/components/splitter.d.ts +26 -0
- package/dist/components/splitter.js +69 -0
- package/dist/components/tone.d.ts +9 -0
- package/dist/components/tone.js +30 -0
- package/dist/components/useCopy.d.ts +14 -0
- package/dist/components/useCopy.js +31 -0
- package/dist/components/useCssIsDark.d.ts +2 -0
- package/dist/components/useCssIsDark.js +2 -1
- package/dist/components/useTheme.d.ts +10 -0
- package/dist/components/useTheme.js +40 -0
- package/dist/cx.d.ts +5 -0
- package/dist/cx.js +11 -0
- package/dist/editing.d.ts +1 -1
- package/dist/editor/Editor.js +2 -2
- package/dist/editor/EditorField.js +7 -10
- package/dist/editor/FormCodePanel.js +10 -23
- package/dist/editor/Monaco.js +7 -4
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/index.js +2 -2
- package/dist/editor/themes.d.ts +4 -0
- package/dist/editor/themes.js +75 -76
- package/dist/file-explorer/FileExplorer.js +180 -187
- package/dist/file-explorer/FileExplorerContext.js +45 -67
- package/dist/file-explorer/FilePreview/CodePreviewEditor.js +2 -1
- package/dist/file-explorer/FilePreview/Inline.js +9 -7
- package/dist/file-explorer/FilePreview/StreamedBadge.js +2 -2
- package/dist/file-explorer/FilePreview/Viewer.js +32 -34
- package/dist/file-explorer/FilePreview/index.js +60 -92
- package/dist/file-explorer/FilePreview/useObjectBlobUrl.js +4 -4
- package/dist/file-explorer/FilePreview/useObjectText.js +4 -4
- package/dist/file-explorer/FilePreview/usePresignedUrl.js +4 -4
- package/dist/file-explorer/FileRow.js +10 -15
- package/dist/file-explorer/FileRowsWindow.js +2 -6
- package/dist/file-explorer/FileTable.js +2 -2
- package/dist/file-explorer/FileTableHeaders.js +8 -11
- package/dist/file-explorer/LoadMoreRow.js +8 -9
- package/dist/file-explorer/TreeView.js +16 -16
- package/dist/file-explorer/helpers.d.ts +1 -4
- package/dist/file-explorer/helpers.js +101 -114
- package/dist/file-explorer/lib/types.d.ts +2 -2
- package/dist/file-explorer/lib/utils.d.ts +0 -2
- package/dist/file-explorer/lib/utils.js +1 -25
- package/dist/file-explorer/toasts.js +109 -190
- package/dist/form/Fields/BooleanField.js +12 -14
- package/dist/form/Fields/CheckboxGroupField.d.ts +1 -1
- package/dist/form/Fields/CheckboxGroupField.js +16 -18
- package/dist/form/Fields/ColorField.js +11 -11
- package/dist/form/Fields/DropdownField.d.ts +1 -1
- package/dist/form/Fields/DropdownField.js +20 -36
- package/dist/form/Fields/DurationField.d.ts +1 -1
- package/dist/form/Fields/DurationField.js +36 -50
- package/dist/form/Fields/LabelField.js +2 -2
- package/dist/form/Fields/MultiDropdownField.d.ts +1 -1
- package/dist/form/Fields/MultiDropdownField.js +9 -14
- package/dist/form/Fields/NumberField.d.ts +1 -1
- package/dist/form/Fields/NumberField.js +13 -48
- package/dist/form/Fields/ObjectField.js +3 -3
- package/dist/form/Fields/RadioField.d.ts +1 -1
- package/dist/form/Fields/RadioField.js +15 -18
- package/dist/form/Fields/RangeField.js +34 -35
- package/dist/form/Fields/StringField.d.ts +1 -1
- package/dist/form/Fields/StringField.js +15 -25
- package/dist/form/Fields/TextAreaField.js +10 -15
- package/dist/form/Form.d.ts +7 -2
- package/dist/form/Form.js +144 -49
- package/dist/form/FormLayout.js +18 -12
- package/dist/form/Wizard/WizardContainer.js +44 -18
- package/dist/form/Wizard/WizardNavigation.d.ts +1 -1
- package/dist/form/Wizard/WizardNavigation.js +31 -56
- package/dist/form/Wizard/WizardStepIndicator.d.ts +3 -0
- package/dist/form/Wizard/WizardStepIndicator.js +98 -114
- package/dist/form/Wizard/types.d.ts +2 -2
- package/dist/form/fieldFrame.d.ts +7 -0
- package/dist/form/fieldFrame.js +19 -0
- package/dist/form/index.d.ts +5 -5
- package/dist/form/index.js +4 -6
- package/dist/form/layoutCSS.js +5 -4
- package/dist/form/types/fieldComponentTypes.d.ts +5 -3
- package/dist/form/useChoiceField.js +2 -3
- package/dist/form/useFieldValue.d.ts +3 -0
- package/dist/form/useFieldValue.js +24 -7
- package/dist/form/utils/duration.d.ts +2 -2
- package/dist/form/utils/duration.js +3 -3
- package/dist/form/utils/fieldItems.d.ts +1 -1
- package/dist/form/utils/fieldPath.d.ts +5 -3
- package/dist/form/utils/fieldPath.js +18 -3
- package/dist/form/utils/secondaryField.d.ts +0 -7
- package/dist/form/utils/secondaryField.js +1 -12
- package/dist/form/validation.d.ts +29 -0
- package/dist/form/validation.js +14 -0
- package/dist/format.d.ts +28 -0
- package/dist/format.js +64 -0
- package/dist/graph/AnnotationBanner.js +20 -31
- package/dist/graph/Connectors.js +1 -1
- package/dist/graph/DependencyGraph.js +51 -65
- package/dist/graph/GraphEditor.js +24 -28
- package/dist/graph/GraphEditorDialogs.js +239 -245
- package/dist/graph/InputDialog.js +93 -112
- package/dist/graph/InputsEditor.js +83 -84
- package/dist/graph/JobSummary.js +10 -11
- package/dist/graph/MatrixGroup.js +3 -3
- package/dist/graph/ProblemsButton.js +9 -10
- package/dist/graph/ShortcutsButton.js +12 -17
- package/dist/graph/SuggestionInput.d.ts +2 -3
- package/dist/graph/SuggestionInput.js +2 -4
- package/dist/graph/TreeView.js +47 -45
- package/dist/graph/WorkflowSettingsDialog.js +97 -102
- package/dist/graph/editorChrome.js +10 -12
- package/dist/graph/editorFields.d.ts +19 -16
- package/dist/graph/editorFields.js +97 -135
- package/dist/graph/editorPrimitives.d.ts +2 -2
- package/dist/graph/editorPrimitives.js +3 -3
- package/dist/graph/editorRows.js +22 -25
- package/dist/graph/editorStrings.d.ts +18 -21
- package/dist/graph/editorStrings.js +15 -27
- package/dist/graph/fieldProblems.js +2 -2
- package/dist/graph/graphEditorState.d.ts +4 -4
- package/dist/graph/inputRefs.d.ts +0 -13
- package/dist/graph/inputRefs.js +122 -160
- package/dist/graph/settingsViews.js +5 -3
- package/dist/graph/stepWith.js +100 -100
- package/dist/graph/toolbarPanel.d.ts +8 -0
- package/dist/graph/toolbarPanel.js +11 -0
- package/dist/icons.d.ts +234 -23
- package/dist/icons.js +249 -264
- package/dist/index.d.ts +38 -21
- package/dist/index.js +42 -21
- package/dist/list/ActionToolbar.d.ts +1 -5
- package/dist/list/ActionToolbar.js +21 -20
- package/dist/list/ListPage.js +7 -7
- package/dist/list/ListTable.d.ts +3 -2
- package/dist/list/ListTable.js +33 -29
- package/dist/list/ListViewControls.d.ts +0 -17
- package/dist/list/ListViewControls.js +50 -118
- package/dist/list/UserHoverCard.js +24 -32
- package/dist/list/index.d.ts +2 -4
- package/dist/list/index.js +3 -5
- package/dist/list/listSearch.d.ts +1 -1
- package/dist/list/listSearch.js +19 -14
- package/dist/list/rowMenu.js +20 -26
- package/dist/logviewer/LogViewer.js +268 -382
- package/dist/logviewer/logviewer.css +53 -41
- package/dist/logviewer/segments.d.ts +1 -1
- package/dist/logviewer/segments.js +1 -1
- package/dist/styles/base.css +16 -40
- package/dist/styles/theme.css +75 -106
- package/dist/styles.css +1 -1
- package/dist/theme/color.d.ts +40 -0
- package/dist/theme/color.js +228 -0
- package/dist/theme/contrast.d.ts +42 -0
- package/dist/theme/contrast.js +145 -0
- package/dist/theme/derive.d.ts +25 -0
- package/dist/theme/derive.js +475 -0
- package/dist/theme/fit.d.ts +35 -0
- package/dist/theme/fit.js +185 -0
- package/dist/theme/index.d.ts +14 -29
- package/dist/theme/index.js +20 -279
- package/dist/theme/model.d.ts +64 -0
- package/dist/theme/model.js +219 -0
- package/package.json +9 -5
- package/dist/ai/ui/Avatar.d.ts +0 -7
- package/dist/ai/ui/Avatar.js +0 -24
- package/dist/components/Filter.d.ts +0 -15
- package/dist/components/Filter.js +0 -32
- package/dist/components/FilterPill.d.ts +0 -7
- package/dist/components/FilterPill.js +0 -14
- package/dist/components/Indicator.d.ts +0 -4
- package/dist/components/Indicator.js +0 -44
- package/dist/components/SectionHeader.d.ts +0 -8
- package/dist/components/SectionHeader.js +0 -11
- package/dist/components/SettingRow.d.ts +0 -18
- package/dist/components/SettingRow.js +0 -35
- package/dist/components/SettingsGroup.d.ts +0 -8
- package/dist/components/SettingsGroup.js +0 -17
- package/dist/components/ghostButton.d.ts +0 -4
- package/dist/components/ghostButton.js +0 -7
- package/dist/components/inputClasses.d.ts +0 -1
- package/dist/components/inputClasses.js +0 -4
- package/dist/duration.d.ts +0 -3
- package/dist/duration.js +0 -17
- package/dist/form/FieldGroup.d.ts +0 -11
- package/dist/form/FieldGroup.js +0 -36
- package/dist/form/FieldWrapper.d.ts +0 -16
- package/dist/form/FieldWrapper.js +0 -55
- package/dist/form/fieldContext.d.ts +0 -19
- package/dist/form/fieldContext.js +0 -26
- package/dist/graph/Collapse.d.ts +0 -7
- package/dist/graph/Collapse.js +0 -15
- package/dist/graph/ToolbarPopover.d.ts +0 -13
- package/dist/graph/ToolbarPopover.js +0 -39
- package/dist/icons/ai/AiOutlineRollback.js +0 -16
- package/dist/icons/bi/BiBell.js +0 -16
- package/dist/icons/bi/BiBellOff.js +0 -16
- package/dist/icons/bi/BiBuildings.js +0 -20
- package/dist/icons/bi/BiError.js +0 -20
- package/dist/icons/bi/BiExpandVertical.js +0 -16
- package/dist/icons/bi/BiPause.js +0 -16
- package/dist/icons/bi/BiPlay.js +0 -16
- package/dist/icons/bi/BiRedo.js +0 -16
- package/dist/icons/bi/BiSolidCheckShield.js +0 -16
- package/dist/icons/bi/BiSolidTrashAlt.js +0 -16
- package/dist/icons/bi/BiStop.js +0 -16
- package/dist/icons/bi/BiUndo.js +0 -16
- package/dist/icons/bs/BsArrowsCollapse.js +0 -22
- package/dist/icons/bs/BsBank2.js +0 -19
- package/dist/icons/bs/BsBriefcase.js +0 -19
- package/dist/icons/bs/BsBucket.js +0 -19
- package/dist/icons/bs/BsCalendarX.js +0 -23
- package/dist/icons/bs/BsChatLeft.js +0 -19
- package/dist/icons/bs/BsChevronDoubleDown.js +0 -29
- package/dist/icons/bs/BsChevronDoubleUp.js +0 -29
- package/dist/icons/bs/BsClipboardCheck.js +0 -34
- package/dist/icons/bs/BsCurrencyDollar.js +0 -19
- package/dist/icons/bs/BsDash.js +0 -19
- package/dist/icons/bs/BsFileEarmarkZip.js +0 -23
- package/dist/icons/bs/BsFiles.js +0 -19
- package/dist/icons/bs/BsGeoAlt.js +0 -23
- package/dist/icons/bs/BsGrid.js +0 -19
- package/dist/icons/bs/BsLayers.js +0 -19
- package/dist/icons/bs/BsLayoutThreeColumns.js +0 -19
- package/dist/icons/bs/BsListUl.js +0 -22
- package/dist/icons/bs/BsMortarboard.js +0 -23
- package/dist/icons/bs/BsMusicNoteBeamed.js +0 -34
- package/dist/icons/bs/BsOpenai.js +0 -19
- package/dist/icons/bs/BsPersonPlus.js +0 -26
- package/dist/icons/bs/BsSearch.js +0 -19
- package/dist/icons/bs/BsSend.js +0 -19
- package/dist/icons/bs/BsShieldSlash.js +0 -22
- package/dist/icons/bs/BsStar.js +0 -19
- package/dist/icons/bs/BsStarFill.js +0 -19
- package/dist/icons/bs/BsStopCircle.js +0 -23
- package/dist/icons/bs/BsTag.js +0 -23
- package/dist/icons/bs/BsTelephone.js +0 -19
- package/dist/icons/bs/BsTerminal.js +0 -23
- package/dist/icons/bs/BsTerminalFill.js +0 -19
- package/dist/icons/bs/BsThreeDots.js +0 -19
- package/dist/icons/bs/BsThreeDotsVertical.js +0 -19
- package/dist/icons/bs/BsZoomIn.js +0 -37
- package/dist/icons/fa/FaAmazon.js +0 -16
- package/dist/icons/fa/FaAngleDown.js +0 -16
- package/dist/icons/fa/FaAngleLeft.js +0 -16
- package/dist/icons/fa/FaAngleRight.js +0 -16
- package/dist/icons/fa/FaAngleUp.js +0 -16
- package/dist/icons/fa/FaArrowDown.js +0 -16
- package/dist/icons/fa/FaArrowLeft.js +0 -16
- package/dist/icons/fa/FaArrowRight.js +0 -16
- package/dist/icons/fa/FaArrowUp.js +0 -16
- package/dist/icons/fa/FaBalanceScale.js +0 -16
- package/dist/icons/fa/FaCaretDown.js +0 -16
- package/dist/icons/fa/FaCentos.js +0 -16
- package/dist/icons/fa/FaChartLine.js +0 -16
- package/dist/icons/fa/FaChartPie.js +0 -16
- package/dist/icons/fa/FaCheck.js +0 -16
- package/dist/icons/fa/FaChevronDown.js +0 -16
- package/dist/icons/fa/FaChevronUp.js +0 -16
- package/dist/icons/fa/FaChrome.js +0 -16
- package/dist/icons/fa/FaCircleNotch.js +0 -16
- package/dist/icons/fa/FaCloud.js +0 -16
- package/dist/icons/fa/FaCloudDownloadAlt.js +0 -16
- package/dist/icons/fa/FaCog.js +0 -16
- package/dist/icons/fa/FaCogs.js +0 -16
- package/dist/icons/fa/FaComments.js +0 -16
- package/dist/icons/fa/FaCompress.js +0 -16
- package/dist/icons/fa/FaDesktop.js +0 -16
- package/dist/icons/fa/FaDocker.js +0 -16
- package/dist/icons/fa/FaDollarSign.js +0 -16
- package/dist/icons/fa/FaEdge.js +0 -16
- package/dist/icons/fa/FaEdit.js +0 -16
- package/dist/icons/fa/FaExclamationTriangle.js +0 -16
- package/dist/icons/fa/FaExpand.js +0 -16
- package/dist/icons/fa/FaEye.js +0 -16
- package/dist/icons/fa/FaEyeSlash.js +0 -16
- package/dist/icons/fa/FaFile.js +0 -16
- package/dist/icons/fa/FaFilePdf.js +0 -16
- package/dist/icons/fa/FaFilter.js +0 -16
- package/dist/icons/fa/FaFirefoxBrowser.js +0 -16
- package/dist/icons/fa/FaFlask.js +0 -16
- package/dist/icons/fa/FaFolder.js +0 -16
- package/dist/icons/fa/FaGithub.js +0 -16
- package/dist/icons/fa/FaGitlab.js +0 -16
- package/dist/icons/fa/FaGlobe.js +0 -16
- package/dist/icons/fa/FaGlobeAmericas.js +0 -16
- package/dist/icons/fa/FaImage.js +0 -16
- package/dist/icons/fa/FaInfoCircle.js +0 -16
- package/dist/icons/fa/FaKey.js +0 -16
- package/dist/icons/fa/FaLayerGroup.js +0 -16
- package/dist/icons/fa/FaLink.js +0 -16
- package/dist/icons/fa/FaLinkedin.js +0 -16
- package/dist/icons/fa/FaLinux.js +0 -16
- package/dist/icons/fa/FaList.js +0 -16
- package/dist/icons/fa/FaLock.js +0 -16
- package/dist/icons/fa/FaOpenid.js +0 -16
- package/dist/icons/fa/FaOpera.js +0 -16
- package/dist/icons/fa/FaPaperclip.js +0 -16
- package/dist/icons/fa/FaPlus.js +0 -16
- package/dist/icons/fa/FaPowerOff.js +0 -16
- package/dist/icons/fa/FaPrint.js +0 -16
- package/dist/icons/fa/FaQrcode.js +0 -16
- package/dist/icons/fa/FaQuestionCircle.js +0 -16
- package/dist/icons/fa/FaRedhat.js +0 -16
- package/dist/icons/fa/FaRegCircle.js +0 -16
- package/dist/icons/fa/FaRegFileImage.js +0 -16
- package/dist/icons/fa/FaRegFolder.js +0 -16
- package/dist/icons/fa/FaRobot.js +0 -16
- package/dist/icons/fa/FaRocket.js +0 -16
- package/dist/icons/fa/FaRunning.js +0 -16
- package/dist/icons/fa/FaSafari.js +0 -16
- package/dist/icons/fa/FaSave.js +0 -16
- package/dist/icons/fa/FaSearch.js +0 -16
- package/dist/icons/fa/FaShieldAlt.js +0 -16
- package/dist/icons/fa/FaSlack.js +0 -16
- package/dist/icons/fa/FaStar.js +0 -16
- package/dist/icons/fa/FaStop.js +0 -16
- package/dist/icons/fa/FaSuse.js +0 -16
- package/dist/icons/fa/FaTerminal.js +0 -16
- package/dist/icons/fa/FaTimes.js +0 -16
- package/dist/icons/fa/FaUbuntu.js +0 -16
- package/dist/icons/fa/FaUndoAlt.js +0 -16
- package/dist/icons/fa/FaUnlink.js +0 -16
- package/dist/icons/fa/FaUser.js +0 -16
- package/dist/icons/fa/FaUsers.js +0 -16
- package/dist/icons/fa/FaWindows.js +0 -16
- package/dist/icons/fa6/FaApple.js +0 -16
- package/dist/icons/fa6/FaArrowsRotate.js +0 -16
- package/dist/icons/fa6/FaDebian.js +0 -16
- package/dist/icons/fa6/FaFilterCircleXmark.js +0 -16
- package/dist/icons/fa6/FaInbox.js +0 -16
- package/dist/icons/fa6/FaLocationDot.js +0 -16
- package/dist/icons/fa6/FaRegFilePdf.js +0 -16
- package/dist/icons/fa6/FaRegFolderOpen.js +0 -16
- package/dist/icons/fa6/FaUpRightFromSquare.js +0 -16
- package/dist/icons/fa6/FaWandMagicSparkles.js +0 -16
- package/dist/icons/fa6/FaXTwitter.js +0 -16
- package/dist/icons/fi/FiActivity.js +0 -23
- package/dist/icons/fi/FiAlertCircle.js +0 -49
- package/dist/icons/fi/FiChevronDown.js +0 -23
- package/dist/icons/fi/FiClock.js +0 -31
- package/dist/icons/fi/FiCopy.js +0 -34
- package/dist/icons/fi/FiDownload.js +0 -40
- package/dist/icons/fi/FiFile.js +0 -27
- package/dist/icons/fi/FiFileText.js +0 -55
- package/dist/icons/fi/FiHardDrive.js +0 -55
- package/dist/icons/fi/FiRotateCcw.js +0 -27
- package/dist/icons/fi/FiUpload.js +0 -40
- package/dist/icons/fi/FiX.js +0 -37
- package/dist/icons/fi/FiZap.js +0 -23
- package/dist/icons/gi/GiSpy.js +0 -16
- package/dist/icons/go/GoGitCommit.js +0 -16
- package/dist/icons/go/GoGitPullRequest.js +0 -20
- package/dist/icons/go/GoIssueOpened.js +0 -16
- package/dist/icons/go/GoPlus.js +0 -16
- package/dist/icons/go/GoRepoForked.js +0 -28
- package/dist/icons/go/GoSignOut.js +0 -16
- package/dist/icons/go/GoSkip.js +0 -20
- package/dist/icons/go/GoVideo.js +0 -20
- package/dist/icons/gr/GrCloudComputer.js +0 -20
- package/dist/icons/gr/GrInbox.js +0 -20
- package/dist/icons/gr/GrServerCluster.js +0 -20
- package/dist/icons/gr/GrStorage.js +0 -20
- package/dist/icons/gr/GrTasks.js +0 -20
- package/dist/icons/hi/HiCog.js +0 -24
- package/dist/icons/hi/HiDuplicate.js +0 -24
- package/dist/icons/hi/HiOutlineArchive.js +0 -26
- package/dist/icons/hi/HiOutlineClipboardCopy.js +0 -26
- package/dist/icons/hi/HiOutlineHome.js +0 -26
- package/dist/icons/hi/HiQuestionMarkCircle.js +0 -24
- package/dist/icons/hi/HiServer.js +0 -24
- package/dist/icons/hi2/HiMiniCheckCircle.js +0 -24
- package/dist/icons/hi2/HiMiniLanguage.js +0 -28
- package/dist/icons/hi2/HiMiniMinusCircle.js +0 -24
- package/dist/icons/hi2/HiMiniXCircle.js +0 -24
- package/dist/icons/hi2/HiSparkles.js +0 -24
- package/dist/icons/im/ImSpinner5.js +0 -19
- package/dist/icons/io/IoIosNotifications.js +0 -16
- package/dist/icons/io/IoMdBuild.js +0 -16
- package/dist/icons/io/IoMdClose.js +0 -16
- package/dist/icons/io5/IoCloudUploadOutline.js +0 -32
- package/dist/icons/io5/IoDocumentTextOutline.js +0 -31
- package/dist/icons/io5/IoFileTrayFullOutline.js +0 -31
- package/dist/icons/io5/IoHeart.js +0 -16
- package/dist/icons/io5/IoHeartDislike.js +0 -16
- package/dist/icons/io5/IoHeartOutline.js +0 -22
- package/dist/icons/io5/IoInformationCircleOutline.js +0 -50
- package/dist/icons/io5/IoSettingsOutline.js +0 -22
- package/dist/icons/io5/IoWarningOutline.js +0 -40
- package/dist/icons/lu/LuArrowRight.js +0 -27
- package/dist/icons/lu/LuBadgeCheck.js +0 -27
- package/dist/icons/lu/LuBraces.js +0 -27
- package/dist/icons/lu/LuBrainCircuit.js +0 -101
- package/dist/icons/lu/LuCalendar.js +0 -46
- package/dist/icons/lu/LuCheck.js +0 -23
- package/dist/icons/lu/LuChevronLeft.js +0 -23
- package/dist/icons/lu/LuChevronRight.js +0 -23
- package/dist/icons/lu/LuCode.js +0 -27
- package/dist/icons/lu/LuExternalLink.js +0 -35
- package/dist/icons/lu/LuEye.js +0 -31
- package/dist/icons/lu/LuEyeOff.js +0 -40
- package/dist/icons/lu/LuFolderTree.js +0 -40
- package/dist/icons/lu/LuIdCard.js +0 -55
- package/dist/icons/lu/LuKeyboard.js +0 -71
- package/dist/icons/lu/LuLogs.js +0 -65
- package/dist/icons/lu/LuMail.js +0 -33
- package/dist/icons/lu/LuMegaphone.js +0 -27
- package/dist/icons/lu/LuMoon.js +0 -23
- package/dist/icons/lu/LuNetwork.js +0 -63
- package/dist/icons/lu/LuPartyPopper.js +0 -65
- package/dist/icons/lu/LuSettings2.js +0 -48
- package/dist/icons/lu/LuSheet.js +0 -72
- package/dist/icons/lu/LuShield.js +0 -23
- package/dist/icons/lu/LuSun.js +0 -69
- package/dist/icons/lu/LuTextCursorInput.js +0 -45
- package/dist/icons/lu/LuX.js +0 -27
- package/dist/icons/lu/LuZoomIn.js +0 -59
- package/dist/icons/lu/LuZoomOut.js +0 -49
- package/dist/icons/md/MdClear.js +0 -23
- package/dist/icons/md/MdDragHandle.js +0 -23
- package/dist/icons/md/MdInstallDesktop.js +0 -31
- package/dist/icons/md/MdOutlineAttachMoney.js +0 -23
- package/dist/icons/md/MdOutlineMoneyOff.js +0 -23
- package/dist/icons/md/MdPieChart.js +0 -23
- package/dist/icons/md/MdRefresh.js +0 -23
- package/dist/icons/md/MdReplay.js +0 -23
- package/dist/icons/md/MdSmartphone.js +0 -23
- package/dist/icons/pi/PiArrowBendUpRightBold.js +0 -19
- package/dist/icons/pi/PiPlugsConnectedFill.js +0 -19
- package/dist/icons/pi/PiRectangleDashed.js +0 -19
- package/dist/icons/pi/PiShareBold.js +0 -19
- package/dist/icons/si/SiAnthropic.js +0 -19
- package/dist/icons/si/SiHelm.js +0 -19
- package/dist/icons/si/SiKubernetes.js +0 -19
- package/dist/icons/tb/TbAlertTriangle.js +0 -35
- package/dist/icons/tb/TbAlertTriangleFilled.js +0 -19
- package/dist/icons/tb/TbApi.js +0 -40
- package/dist/icons/tb/TbBrain.js +0 -50
- package/dist/icons/tb/TbBuildingTunnel.js +0 -65
- package/dist/icons/tb/TbEdit.js +0 -35
- package/dist/icons/tb/TbLayoutSidebar.js +0 -27
- package/dist/icons/tb/TbLayoutSidebarLeftCollapse.js +0 -35
- package/dist/icons/tb/TbLayoutSidebarRightCollapse.js +0 -35
- package/dist/icons/tb/TbUser.js +0 -27
- package/dist/icons/tb/TbUserOff.js +0 -35
- package/dist/icons/tb/TbWorldShare.js +0 -55
- package/dist/icons/tb/TbWorldWww.js +0 -65
- package/dist/icons/ti/TiArrowSortedDown.js +0 -20
- package/dist/icons/ti/TiArrowSortedUp.js +0 -20
- package/dist/icons/ti/TiArrowUnsorted.js +0 -20
- package/dist/icons/ti/TiCancel.js +0 -20
- package/dist/icons/vsc/VscChromeMinimize.js +0 -19
- package/dist/icons/vsc/VscJson.js +0 -19
- package/dist/icons/vsc/VscLayoutSidebarLeft.js +0 -19
- package/dist/icons/vsc/VscPass.js +0 -27
- package/dist/icons/vsc/VscSplitHorizontal.js +0 -19
- package/dist/icons/vsc/VscTerminalPowershell.js +0 -19
- package/dist/list/ListPager.d.ts +0 -14
- package/dist/list/ListPager.js +0 -62
- package/dist/list/textEntry.d.ts +0 -2
- package/dist/list/textEntry.js +0 -10
- /package/dist/{ai/ui/codeBreaks.d.ts → components/markdownCodeBreaks.d.ts} +0 -0
package/dist/ai/strings.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import { defaultToolStrings } from "./agent/toolStrings.js";
|
|
1
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
//#region src/ai/strings.tsx
|
|
3
4
|
var defaultChatStrings = {
|
|
4
|
-
modal: {
|
|
5
|
-
cancel: "Cancel",
|
|
6
|
-
save: "Save",
|
|
7
|
-
loading: "Loading…"
|
|
8
|
-
},
|
|
9
5
|
shareConversation: {
|
|
10
6
|
title: "Share Conversation",
|
|
11
7
|
loadError: "Failed to load sharing settings",
|
|
@@ -17,7 +13,6 @@ var defaultChatStrings = {
|
|
|
17
13
|
noGroups: "No groups have access yet",
|
|
18
14
|
viewOnly: "View only",
|
|
19
15
|
canCollaborate: "Can collaborate",
|
|
20
|
-
remove: "Remove",
|
|
21
16
|
addGroups: "Add groups…",
|
|
22
17
|
info: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
23
18
|
/* @__PURE__ */ jsx("strong", { children: "View" }),
|
|
@@ -36,8 +31,7 @@ var defaultChatStrings = {
|
|
|
36
31
|
remove: "Remove queued message",
|
|
37
32
|
waiting: "Queued · sends when this reply finishes",
|
|
38
33
|
waitingNextStep: "Queued · reaches the agent after its current step",
|
|
39
|
-
handedOver: "Sent to the running turn"
|
|
40
|
-
removeShort: "Remove"
|
|
34
|
+
handedOver: "Sent to the running turn"
|
|
41
35
|
},
|
|
42
36
|
providerIssue: {
|
|
43
37
|
keyRejected: "API key rejected",
|
|
@@ -53,12 +47,12 @@ var defaultChatStrings = {
|
|
|
53
47
|
search: "Search models…",
|
|
54
48
|
loading: "Loading models…",
|
|
55
49
|
failed: "Failed to load models",
|
|
56
|
-
retry: "Retry",
|
|
57
50
|
none: "No models available",
|
|
58
51
|
sharedBy: (owner) => `Shared by ${owner}`,
|
|
59
52
|
connecting: "Connecting…",
|
|
60
53
|
notResponding: "Not responding",
|
|
61
|
-
manageProvider: "Manage provider"
|
|
54
|
+
manageProvider: "Manage provider",
|
|
55
|
+
selectFirst: "Select a model first"
|
|
62
56
|
},
|
|
63
57
|
allocationPicker: {
|
|
64
58
|
choose: "Allocation",
|
|
@@ -80,8 +74,7 @@ var defaultChatStrings = {
|
|
|
80
74
|
session,
|
|
81
75
|
"” is not reachable"
|
|
82
76
|
] }),
|
|
83
|
-
sessionUnreachableBody: "The session may be offline or still starting up. You can select a different model to continue."
|
|
84
|
-
retry: "Retry"
|
|
77
|
+
sessionUnreachableBody: "The session may be offline or still starting up. You can select a different model to continue."
|
|
85
78
|
},
|
|
86
79
|
input: {
|
|
87
80
|
placeholder: "Ask anything",
|
|
@@ -90,11 +83,11 @@ var defaultChatStrings = {
|
|
|
90
83
|
attachFiles: "Attach files",
|
|
91
84
|
stopGenerating: "Stop generating (Escape)",
|
|
92
85
|
sendMessage: "Send message (Enter)",
|
|
93
|
-
filesAttached: (count) =>
|
|
86
|
+
filesAttached: (count) => count === 1 ? "1 file attached" : `${count.toLocaleString()} files attached`
|
|
94
87
|
},
|
|
95
88
|
paste: {
|
|
96
89
|
title: "Pasted text",
|
|
97
|
-
lines: (count) =>
|
|
90
|
+
lines: (count) => count === 1 ? "1 line" : `${count.toLocaleString()} lines`,
|
|
98
91
|
saving: "Saving…",
|
|
99
92
|
remove: "Remove paste"
|
|
100
93
|
},
|
|
@@ -102,7 +95,9 @@ var defaultChatStrings = {
|
|
|
102
95
|
label: "Thinking",
|
|
103
96
|
ellipsis: "Thinking...",
|
|
104
97
|
thoughtFor: (duration) => `Thought for ${duration}`,
|
|
105
|
-
|
|
98
|
+
thoughtProcess: "Thought process",
|
|
99
|
+
activity: "Activity",
|
|
100
|
+
ranToolCalls: (count) => count === 1 ? "Ran 1 tool call" : `Ran ${count.toLocaleString()} tool calls`
|
|
106
101
|
},
|
|
107
102
|
thread: { viewOnly: "You have view only access" },
|
|
108
103
|
sidebar: {
|
|
@@ -112,9 +107,6 @@ var defaultChatStrings = {
|
|
|
112
107
|
groupThisMonth: "This Month",
|
|
113
108
|
groupOlder: "Older",
|
|
114
109
|
untitled: "Untitled",
|
|
115
|
-
rename: "Rename",
|
|
116
|
-
share: "Share",
|
|
117
|
-
delete: "Delete",
|
|
118
110
|
sharedWithYou: "Shared with you",
|
|
119
111
|
openSidebar: "Open sidebar",
|
|
120
112
|
closeSidebar: "Close sidebar",
|
|
@@ -128,26 +120,22 @@ var defaultChatStrings = {
|
|
|
128
120
|
noConversations: "No conversations yet",
|
|
129
121
|
deleteTitle: "Delete Conversation",
|
|
130
122
|
deleteBody: "Are you sure you want to delete this conversation? This action cannot be undone.",
|
|
131
|
-
deleteAction: "Delete",
|
|
132
123
|
renameTitle: "Rename Conversation",
|
|
133
|
-
renameAction: "Rename",
|
|
134
124
|
renameLabel: "Conversation title",
|
|
135
125
|
renamePlaceholder: "Enter a new title"
|
|
136
126
|
},
|
|
137
127
|
attachmentUpload: {
|
|
138
128
|
fileTooLarge: (maxSize) => `File too large. Maximum size is ${maxSize}`,
|
|
139
129
|
maxFilesAllowed: (max) => `Maximum ${max} files allowed`,
|
|
140
|
-
remove: "Remove",
|
|
141
130
|
dropFilesHere: "Drop files here",
|
|
142
|
-
|
|
131
|
+
releaseToUpload: "Release to upload",
|
|
132
|
+
addFiles: "Add files (drag or click)",
|
|
133
|
+
maxSizePerFile: (size) => `Max ${size} per file`,
|
|
134
|
+
uploading: "Uploading…"
|
|
143
135
|
},
|
|
144
136
|
attachmentManager: {
|
|
145
137
|
title: "Attachments",
|
|
146
|
-
empty: "No attachments yet"
|
|
147
|
-
download: "Download",
|
|
148
|
-
delete: "Delete",
|
|
149
|
-
loadMore: "Load more",
|
|
150
|
-
loading: "Loading..."
|
|
138
|
+
empty: "No attachments yet"
|
|
151
139
|
},
|
|
152
140
|
branch: {
|
|
153
141
|
previous: "Previous branch",
|
|
@@ -157,24 +145,18 @@ var defaultChatStrings = {
|
|
|
157
145
|
searchPlaceholder: "Search conversations",
|
|
158
146
|
searchLabel: "Search conversations (⌘/Ctrl+Shift+F)",
|
|
159
147
|
noMatches: "No conversations match your search",
|
|
160
|
-
download: "Download",
|
|
161
148
|
exportError: "Failed to export conversation",
|
|
162
149
|
jumpToLatest: "Jump to latest",
|
|
163
|
-
|
|
150
|
+
noResponseToCopy: "No response to copy"
|
|
164
151
|
},
|
|
165
152
|
messageMeta: {
|
|
166
153
|
stopped: "Stopped",
|
|
167
|
-
showMore: "Show more",
|
|
168
|
-
showLess: "Show less",
|
|
169
154
|
tokens: (total) => `${total.toLocaleString()} tokens`,
|
|
170
155
|
tokensBreakdown: (prompt, completion) => `${prompt.toLocaleString()} in · ${completion.toLocaleString()} out`,
|
|
171
156
|
copy: "Copy message",
|
|
172
157
|
edit: "Edit message",
|
|
173
158
|
regenerate: "Regenerate response",
|
|
174
|
-
|
|
175
|
-
editPlaceholder: "Edit your message...",
|
|
176
|
-
cancel: "Cancel",
|
|
177
|
-
send: "Send"
|
|
159
|
+
editPlaceholder: "Edit your message..."
|
|
178
160
|
},
|
|
179
161
|
permissions: {
|
|
180
162
|
choose: "Choose what the agent may do",
|
|
@@ -190,8 +172,6 @@ var defaultChatStrings = {
|
|
|
190
172
|
planHint: "The workspace is left unchanged while a plan is drafted."
|
|
191
173
|
},
|
|
192
174
|
agentTranscript: {
|
|
193
|
-
showMore: "Show more",
|
|
194
|
-
showLess: "Show less",
|
|
195
175
|
running: "Running…",
|
|
196
176
|
done: "Done",
|
|
197
177
|
failed: "Failed",
|
|
@@ -210,7 +190,6 @@ var defaultChatStrings = {
|
|
|
210
190
|
denyCall: "No, deny this call",
|
|
211
191
|
denyWithFeedback: "No, and provide feedback to the agent",
|
|
212
192
|
feedbackPlaceholder: "Tell the agent what to do instead…",
|
|
213
|
-
send: "Send",
|
|
214
193
|
answered: "Answered",
|
|
215
194
|
writeOwnAnswer: "Write my own answer…",
|
|
216
195
|
subagent: "Task",
|
|
@@ -218,7 +197,8 @@ var defaultChatStrings = {
|
|
|
218
197
|
planPending: "Plan awaiting approval in the terminal",
|
|
219
198
|
approvalPending: "Waiting for an answer in the terminal",
|
|
220
199
|
approvalOptions: "Offered choices"
|
|
221
|
-
}
|
|
200
|
+
},
|
|
201
|
+
tools: defaultToolStrings
|
|
222
202
|
};
|
|
223
203
|
//#endregion
|
|
224
204
|
export { defaultChatStrings };
|
package/dist/ai/types.d.ts
CHANGED
|
@@ -228,11 +228,6 @@ export interface ChatNavigation {
|
|
|
228
228
|
toConversation(id: string): void;
|
|
229
229
|
toNewChat(): void;
|
|
230
230
|
}
|
|
231
|
-
export interface ChatNotify {
|
|
232
|
-
success(message: string): void;
|
|
233
|
-
error(message: string): void;
|
|
234
|
-
info(message: string): void;
|
|
235
|
-
}
|
|
236
231
|
export type SharePermissionLevel = 'view' | 'collaborate';
|
|
237
232
|
export interface SharePermission {
|
|
238
233
|
id?: string;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
export declare const SIDEBAR_MIN_WIDTH_PX = 200;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* its
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
/** A conversation list's drawer on a layout too narrow to keep it beside the
|
|
4
|
+
* content: it covers the chat's own positioned container, not the window, and
|
|
5
|
+
* stays mounted so the list keeps its scroll and search between openings. */
|
|
6
|
+
export declare const sidebarDrawerProps: {
|
|
7
|
+
readonly contained: true;
|
|
8
|
+
readonly side: 'left';
|
|
9
|
+
readonly width: 'min(20rem, 85%)';
|
|
10
|
+
readonly modal: 'trap-focus';
|
|
11
|
+
readonly keepMounted: true;
|
|
12
|
+
readonly closeButton: false;
|
|
13
|
+
readonly padded: false;
|
|
12
14
|
};
|
|
15
|
+
export declare const SIDEBAR_MAX_WIDTH_PX = 480;
|
|
13
16
|
export interface ConversationSidebarGroup<T> {
|
|
14
17
|
key: string;
|
|
15
18
|
label: ReactNode;
|
|
@@ -1,66 +1,28 @@
|
|
|
1
|
+
import { cx } from "../../cx.js";
|
|
1
2
|
import { positionKeys } from "../../components/keys.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
3
|
+
import { usePersistedState } from "../../components/Provider.js";
|
|
4
|
+
import { useSplitter } from "../../components/splitter.js";
|
|
5
|
+
import { Drawer } from "../../components/Drawer.js";
|
|
6
|
+
import { LoadingRegion, Skeleton } from "../../components/Skeleton.js";
|
|
7
|
+
import { SidebarGroupHeading, SidebarPanel, SidebarToggle } from "./sidebar.js";
|
|
4
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { Fragment as Fragment$1, useEffect, useRef
|
|
9
|
+
import { Fragment as Fragment$1, useEffect, useRef } from "react";
|
|
10
|
+
/** A conversation list's drawer on a layout too narrow to keep it beside the
|
|
11
|
+
* content: it covers the chat's own positioned container, not the window, and
|
|
12
|
+
* stays mounted so the list keeps its scroll and search between openings. */
|
|
13
|
+
var sidebarDrawerProps = {
|
|
14
|
+
contained: true,
|
|
15
|
+
side: "left",
|
|
16
|
+
width: "min(20rem, 85%)",
|
|
17
|
+
modal: "trap-focus",
|
|
18
|
+
keepMounted: true,
|
|
19
|
+
closeButton: false,
|
|
20
|
+
padded: false
|
|
21
|
+
};
|
|
6
22
|
var SHARED_WIDTH_STORAGE_KEY = "aiChatSidebarWidth";
|
|
7
23
|
function clampSidebarWidth(width) {
|
|
8
24
|
return Math.min(480, Math.max(200, width));
|
|
9
25
|
}
|
|
10
|
-
function readStoredSidebarWidth(storageKey) {
|
|
11
|
-
try {
|
|
12
|
-
const stored = Number(window.localStorage.getItem(storageKey));
|
|
13
|
-
return Number.isFinite(stored) && stored > 0 ? clampSidebarWidth(stored) : 256;
|
|
14
|
-
} catch {
|
|
15
|
-
return 256;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
function storeSidebarWidth(storageKey, width) {
|
|
19
|
-
try {
|
|
20
|
-
window.localStorage.setItem(storageKey, String(width));
|
|
21
|
-
} catch {}
|
|
22
|
-
}
|
|
23
|
-
/** A sidebar width the reader drags, nudges or resets, kept per list under
|
|
24
|
-
* its own storage key. */
|
|
25
|
-
function useResizableSidebarWidth(storageKey) {
|
|
26
|
-
const [width, setWidth] = useState(() => readStoredSidebarWidth(storageKey));
|
|
27
|
-
const [resizing, setResizing] = useState(false);
|
|
28
|
-
const widthRef = useRef(width);
|
|
29
|
-
widthRef.current = width;
|
|
30
|
-
const startResize = (e) => {
|
|
31
|
-
e.preventDefault();
|
|
32
|
-
const startX = e.clientX;
|
|
33
|
-
const startWidth = widthRef.current;
|
|
34
|
-
setResizing(true);
|
|
35
|
-
const onMove = (ev) => {
|
|
36
|
-
setWidth(clampSidebarWidth(startWidth + ev.clientX - startX));
|
|
37
|
-
};
|
|
38
|
-
const onUp = () => {
|
|
39
|
-
window.removeEventListener("pointermove", onMove);
|
|
40
|
-
window.removeEventListener("pointerup", onUp);
|
|
41
|
-
setResizing(false);
|
|
42
|
-
storeSidebarWidth(storageKey, widthRef.current);
|
|
43
|
-
};
|
|
44
|
-
window.addEventListener("pointermove", onMove);
|
|
45
|
-
window.addEventListener("pointerup", onUp);
|
|
46
|
-
};
|
|
47
|
-
const reset = () => {
|
|
48
|
-
setWidth(256);
|
|
49
|
-
storeSidebarWidth(storageKey, 256);
|
|
50
|
-
};
|
|
51
|
-
const nudge = (delta) => {
|
|
52
|
-
const next = clampSidebarWidth(widthRef.current + delta);
|
|
53
|
-
setWidth(next);
|
|
54
|
-
storeSidebarWidth(storageKey, next);
|
|
55
|
-
};
|
|
56
|
-
return {
|
|
57
|
-
width,
|
|
58
|
-
resizing,
|
|
59
|
-
startResize,
|
|
60
|
-
reset,
|
|
61
|
-
nudge
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
26
|
/** Steps through the listed items in order and wraps, so moving between
|
|
65
27
|
* conversations never needs the pointer. */
|
|
66
28
|
function useItemCycling(ordered, cycle) {
|
|
@@ -92,7 +54,16 @@ function useItemCycling(ordered, cycle) {
|
|
|
92
54
|
* collapse to a rail, with an optional drag handle for the width. The host
|
|
93
55
|
* decides what is listed, how it is grouped and how each row reads. */
|
|
94
56
|
function ConversationSidebar({ label, collapsed: collapsedProp, onToggle, toggleLabels, resize, fill: fillProp = false, drawer, groups, getKey, renderRow, loading = false, placeholder, top, rail, footer, cycle, groupTestId, children }) {
|
|
95
|
-
const
|
|
57
|
+
const [storedWidth, setStoredWidth] = usePersistedState(resize?.storageKey ?? SHARED_WIDTH_STORAGE_KEY, 256);
|
|
58
|
+
const splitter = useSplitter({
|
|
59
|
+
width: clampSidebarWidth(storedWidth),
|
|
60
|
+
onWidthChange: setStoredWidth,
|
|
61
|
+
min: 200,
|
|
62
|
+
max: 480,
|
|
63
|
+
side: "right",
|
|
64
|
+
defaultWidth: 256,
|
|
65
|
+
label: resize?.label
|
|
66
|
+
});
|
|
96
67
|
useItemCycling(groups.flatMap((g) => g.items), cycle);
|
|
97
68
|
const fill = fillProp || !!drawer;
|
|
98
69
|
const collapsed = collapsedProp && !fill;
|
|
@@ -101,42 +72,26 @@ function ConversationSidebar({ label, collapsed: collapsedProp, onToggle, toggle
|
|
|
101
72
|
collapsed,
|
|
102
73
|
label,
|
|
103
74
|
...resizable ? {
|
|
104
|
-
width:
|
|
105
|
-
resizing:
|
|
75
|
+
width: splitter.width,
|
|
76
|
+
resizing: splitter.resizing
|
|
106
77
|
} : {},
|
|
107
78
|
...fill ? { style: { width: "100%" } } : {},
|
|
108
79
|
children: [
|
|
109
80
|
resizable && !collapsed && /* @__PURE__ */ jsx("div", {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"aria-orientation": "vertical",
|
|
113
|
-
"aria-label": resize.label,
|
|
114
|
-
"aria-valuemin": 200,
|
|
115
|
-
"aria-valuemax": 480,
|
|
116
|
-
"aria-valuenow": sized.width,
|
|
117
|
-
title: resize.hint,
|
|
118
|
-
onPointerDown: sized.startResize,
|
|
119
|
-
onDoubleClick: sized.reset,
|
|
120
|
-
onKeyDown: (e) => {
|
|
121
|
-
if (e.key === "ArrowLeft") sized.nudge(-16);
|
|
122
|
-
else if (e.key === "ArrowRight") sized.nudge(16);
|
|
123
|
-
},
|
|
124
|
-
className: clsx("absolute inset-y-0 right-0 z-10 w-1 cursor-col-resize touch-none", sized.resizing ? "bg-(--theme-element)" : "hover:bg-(--theme-border)")
|
|
81
|
+
...splitter.separatorProps,
|
|
82
|
+
title: resize.hint
|
|
125
83
|
}),
|
|
126
84
|
top,
|
|
127
85
|
collapsed && rail ? /* @__PURE__ */ jsx("ul", {
|
|
128
86
|
className: "flex min-h-0 flex-1 flex-col items-center gap-1 overflow-y-auto py-1",
|
|
129
87
|
children: rail
|
|
130
88
|
}) : /* @__PURE__ */ jsx("div", {
|
|
131
|
-
className:
|
|
132
|
-
children: loading ? /* @__PURE__ */ jsx(
|
|
89
|
+
className: cx("min-h-0 flex-1 overflow-y-auto px-2 pb-2 transition-opacity duration-200", collapsed ? "pointer-events-none opacity-0" : "opacity-100"),
|
|
90
|
+
children: loading ? /* @__PURE__ */ jsx(LoadingRegion, {
|
|
133
91
|
className: "space-y-3 px-2 pt-2",
|
|
134
|
-
children: positionKeys(5, "skeleton").map((key, i) => /* @__PURE__ */ jsx(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
className: "h-4 rounded theme-muted-panel",
|
|
138
|
-
style: { width: `${70 - i * 10}%` }
|
|
139
|
-
})
|
|
92
|
+
children: positionKeys(5, "skeleton").map((key, i) => /* @__PURE__ */ jsx(Skeleton, {
|
|
93
|
+
width: `${70 - i * 10}%`,
|
|
94
|
+
height: 16
|
|
140
95
|
}, key))
|
|
141
96
|
}) : groups.length === 0 ? placeholder : groups.map((group) => /* @__PURE__ */ jsxs("div", {
|
|
142
97
|
className: "mb-2",
|
|
@@ -151,7 +106,7 @@ function ConversationSidebar({ label, collapsed: collapsedProp, onToggle, toggle
|
|
|
151
106
|
}, group.key))
|
|
152
107
|
}),
|
|
153
108
|
/* @__PURE__ */ jsxs("div", {
|
|
154
|
-
className:
|
|
109
|
+
className: cx("flex shrink-0 items-center gap-1 p-1.5", collapsed ? "justify-center" : footer ? "justify-between" : "justify-end"),
|
|
155
110
|
children: [!collapsed && footer, /* @__PURE__ */ jsx(SidebarToggle, {
|
|
156
111
|
collapsed,
|
|
157
112
|
onToggle,
|
|
@@ -162,12 +117,13 @@ function ConversationSidebar({ label, collapsed: collapsedProp, onToggle, toggle
|
|
|
162
117
|
children
|
|
163
118
|
]
|
|
164
119
|
});
|
|
165
|
-
return drawer ? /* @__PURE__ */ jsx(
|
|
120
|
+
return drawer ? /* @__PURE__ */ jsx(Drawer, {
|
|
121
|
+
...sidebarDrawerProps,
|
|
166
122
|
open: drawer.open,
|
|
167
123
|
onClose: drawer.onClose,
|
|
168
|
-
label: drawer.label,
|
|
124
|
+
"aria-label": drawer.label,
|
|
169
125
|
children: panel
|
|
170
126
|
}) : panel;
|
|
171
127
|
}
|
|
172
128
|
//#endregion
|
|
173
|
-
export { ConversationSidebar,
|
|
129
|
+
export { ConversationSidebar, sidebarDrawerProps };
|
package/dist/ai/ui/Markdown.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export default function Markdown({ children, isStreaming }: MarkdownProps): import("react").JSX.Element;
|
|
6
|
-
export {};
|
|
1
|
+
import { type MarkdownProps } from '../../components/Markdown.js';
|
|
2
|
+
/** Markdown with the chat host's per-tag overrides. */
|
|
3
|
+
export default function Markdown(props: Omit<MarkdownProps, 'components'>): import("react").JSX.Element;
|
package/dist/ai/ui/Markdown.js
CHANGED
|
@@ -1,80 +1,13 @@
|
|
|
1
|
+
import Markdown$1 from "../../components/Markdown.js";
|
|
1
2
|
import { useChatConfig } from "../core/config.js";
|
|
2
|
-
import { rehypeCodeBreaks } from "./codeBreaks.js";
|
|
3
|
-
import { clsx } from "clsx";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { useEffect, useState } from "react";
|
|
6
|
-
import { code } from "@streamdown/code";
|
|
7
|
-
import { math } from "@streamdown/math";
|
|
8
|
-
import { Streamdown, defaultRehypePlugins } from "streamdown";
|
|
9
4
|
//#region src/ai/ui/Markdown.tsx
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const scheme = getComputedStyle(document.documentElement).colorScheme;
|
|
13
|
-
if (scheme.includes("dark") !== scheme.includes("light")) return scheme.includes("dark");
|
|
14
|
-
return typeof window.matchMedia === "function" && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
15
|
-
}
|
|
16
|
-
var basePlugins = {
|
|
17
|
-
code,
|
|
18
|
-
math
|
|
19
|
-
};
|
|
20
|
-
var pluginsWithMermaid;
|
|
21
|
-
var mermaidLoad;
|
|
22
|
-
function loadMermaid() {
|
|
23
|
-
mermaidLoad ??= import("@streamdown/mermaid").then(({ createMermaidPlugin }) => {
|
|
24
|
-
const base = createMermaidPlugin();
|
|
25
|
-
pluginsWithMermaid = {
|
|
26
|
-
...basePlugins,
|
|
27
|
-
mermaid: {
|
|
28
|
-
...base,
|
|
29
|
-
getMermaid: (config) => base.getMermaid({
|
|
30
|
-
theme: schemeIsDark() ? "dark" : "neutral",
|
|
31
|
-
...config
|
|
32
|
-
})
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
});
|
|
36
|
-
return mermaidLoad;
|
|
37
|
-
}
|
|
38
|
-
var shikiTheme = ["github-light", "github-dark"];
|
|
39
|
-
var rehypePlugins = [...Object.values(defaultRehypePlugins), rehypeCodeBreaks];
|
|
40
|
-
function Markdown({ children, isStreaming }) {
|
|
5
|
+
/** Markdown with the chat host's per-tag overrides. */
|
|
6
|
+
function Markdown(props) {
|
|
41
7
|
const { markdownComponents } = useChatConfig();
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (!needsMermaid || pluginsWithMermaid) return;
|
|
46
|
-
let live = true;
|
|
47
|
-
loadMermaid().then(() => {
|
|
48
|
-
if (live) setMermaidReady(true);
|
|
49
|
-
});
|
|
50
|
-
return () => {
|
|
51
|
-
live = false;
|
|
52
|
-
};
|
|
53
|
-
}, [needsMermaid]);
|
|
54
|
-
const plugins = needsMermaid && pluginsWithMermaid ? pluginsWithMermaid : basePlugins;
|
|
55
|
-
return /* @__PURE__ */ jsx("div", {
|
|
56
|
-
className: "markdown whitespace-normal text-start w-full",
|
|
57
|
-
children: /* @__PURE__ */ jsx(Streamdown, {
|
|
58
|
-
mode: isStreaming ? "streaming" : "static",
|
|
59
|
-
...isStreaming === void 0 ? {} : { isAnimating: isStreaming },
|
|
60
|
-
...isStreaming ? {
|
|
61
|
-
caret: "block",
|
|
62
|
-
className: "markdown-streaming"
|
|
63
|
-
} : {},
|
|
64
|
-
plugins,
|
|
65
|
-
rehypePlugins,
|
|
66
|
-
shikiTheme,
|
|
67
|
-
components: {
|
|
68
|
-
a: ({ node, ...props }) => /* @__PURE__ */ jsx("a", {
|
|
69
|
-
...props,
|
|
70
|
-
className: clsx("link wrap-break-word", props.className),
|
|
71
|
-
target: "_blank",
|
|
72
|
-
rel: "noopener noreferrer"
|
|
73
|
-
}),
|
|
74
|
-
...markdownComponents
|
|
75
|
-
},
|
|
76
|
-
children: children || ""
|
|
77
|
-
})
|
|
8
|
+
return /* @__PURE__ */ jsx(Markdown$1, {
|
|
9
|
+
...props,
|
|
10
|
+
...markdownComponents ? { components: markdownComponents } : {}
|
|
78
11
|
});
|
|
79
12
|
}
|
|
80
13
|
//#endregion
|
package/dist/ai/ui/Notice.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IoInformationCircleOutline } from "../../icons/io5/IoInformationCircleOutline.js";
|
|
4
|
-
import { clsx } from "clsx";
|
|
1
|
+
import { cx } from "../../cx.js";
|
|
2
|
+
import { CloseIcon, ErrorIcon, InfoIcon } from "../../icons.js";
|
|
5
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
4
|
//#region src/ai/ui/Notice.tsx
|
|
7
5
|
var barTone = {
|
|
@@ -31,16 +29,16 @@ var cardTone = {
|
|
|
31
29
|
/** A standing condition on the surface: a full-width bar under the header
|
|
32
30
|
* with a title, an explanation, and the one thing the reader can do about it. */
|
|
33
31
|
function NoticeBar({ tone, title, children, action, onAction, testId }) {
|
|
34
|
-
const Icon = tone === "danger" || tone === "warning" ?
|
|
32
|
+
const Icon = tone === "danger" || tone === "warning" ? ErrorIcon : InfoIcon;
|
|
35
33
|
return /* @__PURE__ */ jsxs("div", {
|
|
36
34
|
"data-testid": testId,
|
|
37
|
-
className:
|
|
35
|
+
className: cx("flex shrink-0 items-start gap-3 border-b px-6 py-3", barTone[tone]),
|
|
38
36
|
children: [
|
|
39
|
-
/* @__PURE__ */ jsx(Icon, { className:
|
|
37
|
+
/* @__PURE__ */ jsx(Icon, { className: cx("mt-0.5 h-4 w-4 shrink-0", iconTone[tone]) }),
|
|
40
38
|
/* @__PURE__ */ jsxs("div", {
|
|
41
39
|
className: "min-w-0 flex-1",
|
|
42
40
|
children: [/* @__PURE__ */ jsx("p", {
|
|
43
|
-
className:
|
|
41
|
+
className: cx("text-sm font-medium", titleTone[tone]),
|
|
44
42
|
children: title
|
|
45
43
|
}), children && /* @__PURE__ */ jsx("p", {
|
|
46
44
|
className: "mt-0.5 text-xs theme-muted-text",
|
|
@@ -64,7 +62,7 @@ function OutputCard({ title, text, onDismiss, dismissLabel, testId }) {
|
|
|
64
62
|
className: "relative my-3 rounded-lg border theme-border theme-muted-panel px-3 py-2",
|
|
65
63
|
children: [
|
|
66
64
|
/* @__PURE__ */ jsx("p", {
|
|
67
|
-
className:
|
|
65
|
+
className: cx("font-mono text-[11px] theme-muted-text", onDismiss && "pr-6"),
|
|
68
66
|
children: title
|
|
69
67
|
}),
|
|
70
68
|
/* @__PURE__ */ jsx("pre", {
|
|
@@ -77,7 +75,7 @@ function OutputCard({ title, text, onDismiss, dismissLabel, testId }) {
|
|
|
77
75
|
"aria-label": dismissLabel,
|
|
78
76
|
title: dismissLabel,
|
|
79
77
|
className: "absolute top-1.5 right-1.5 rounded p-1 theme-muted-text hover:theme-hover",
|
|
80
|
-
children: /* @__PURE__ */ jsx(
|
|
78
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { className: "h-3.5 w-3.5" })
|
|
81
79
|
})
|
|
82
80
|
]
|
|
83
81
|
});
|
|
@@ -87,7 +85,7 @@ function OutputCard({ title, text, onDismiss, dismissLabel, testId }) {
|
|
|
87
85
|
function NoticeCard({ tone = "neutral", children, onDismiss, dismissLabel, testId }) {
|
|
88
86
|
return /* @__PURE__ */ jsxs("div", {
|
|
89
87
|
"data-testid": testId,
|
|
90
|
-
className:
|
|
88
|
+
className: cx("flex items-start gap-2 rounded-lg border px-3 py-2 text-xs", cardTone[tone]),
|
|
91
89
|
children: [/* @__PURE__ */ jsx("span", {
|
|
92
90
|
className: "flex-1",
|
|
93
91
|
children
|
|
@@ -97,7 +95,7 @@ function NoticeCard({ tone = "neutral", children, onDismiss, dismissLabel, testI
|
|
|
97
95
|
"aria-label": dismissLabel,
|
|
98
96
|
title: dismissLabel,
|
|
99
97
|
className: "shrink-0 rounded p-0.5 hover:theme-hover",
|
|
100
|
-
children: /* @__PURE__ */ jsx(
|
|
98
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { className: "h-3 w-3" })
|
|
101
99
|
})]
|
|
102
100
|
});
|
|
103
101
|
}
|
package/dist/ai/ui/chip.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** A picker under the composer, beside send. */
|
|
2
|
-
export declare const chipClassName = "inline-flex min-w-0 items-center cursor-pointer outline-none transition-colors theme-muted-text hover:theme-text focus-visible:ring-1 focus-visible:ring-(--theme-
|
|
2
|
+
export declare const chipClassName = "inline-flex min-w-0 items-center cursor-pointer outline-none transition-colors theme-muted-text hover:theme-text focus-visible:ring-1 focus-visible:ring-(--theme-accent) disabled:cursor-not-allowed disabled:opacity-50 h-8 max-w-[280px] gap-1.5 rounded-full px-2.5 text-[13px] hover:chat-tint";
|
|
3
3
|
/** A smaller picker for secondary settings, such as the agent's permissions. */
|
|
4
|
-
export declare const smallChipClassName = "inline-flex min-w-0 items-center cursor-pointer outline-none transition-colors theme-muted-text hover:theme-text focus-visible:ring-1 focus-visible:ring-(--theme-
|
|
4
|
+
export declare const smallChipClassName = "inline-flex min-w-0 items-center cursor-pointer outline-none transition-colors theme-muted-text hover:theme-text focus-visible:ring-1 focus-visible:ring-(--theme-accent) disabled:cursor-not-allowed disabled:opacity-50 gap-1 rounded-md px-1.5 py-0.5 text-[11px] hover:theme-muted-panel";
|
package/dist/ai/ui/chip.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/ai/ui/chip.ts
|
|
2
|
-
var chipBase = "inline-flex min-w-0 items-center cursor-pointer outline-none transition-colors theme-muted-text hover:theme-text focus-visible:ring-1 focus-visible:ring-(--theme-
|
|
2
|
+
var chipBase = "inline-flex min-w-0 items-center cursor-pointer outline-none transition-colors theme-muted-text hover:theme-text focus-visible:ring-1 focus-visible:ring-(--theme-accent) disabled:cursor-not-allowed disabled:opacity-50";
|
|
3
3
|
/** A picker under the composer, beside send. */
|
|
4
4
|
var chipClassName = `${chipBase} h-8 max-w-[280px] gap-1.5 rounded-full px-2.5 text-[13px] hover:chat-tint`;
|
|
5
5
|
/** A smaller picker for secondary settings, such as the agent's permissions. */
|
package/dist/ai/ui/sidebar.d.ts
CHANGED
|
@@ -14,17 +14,6 @@ export declare function SidebarPanel({ collapsed, width, railWidth, resizing, la
|
|
|
14
14
|
style?: CSSProperties;
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
}): import("react").JSX.Element;
|
|
17
|
-
/** The list over the content of a layout too narrow to keep it beside the
|
|
18
|
-
* content. Place it in a positioned container: the drawer covers that
|
|
19
|
-
* container, not the window, so an embedded chat keeps to its own panel.
|
|
20
|
-
* A tap outside, Escape or a swipe to the left closes it, and focus returns
|
|
21
|
-
* where it was. */
|
|
22
|
-
export declare function SidebarDrawer({ open, onClose, label, children, }: {
|
|
23
|
-
open: boolean;
|
|
24
|
-
onClose: () => void;
|
|
25
|
-
label: string;
|
|
26
|
-
children: ReactNode;
|
|
27
|
-
}): import("react").JSX.Element;
|
|
28
17
|
export declare function SidebarToggle({ collapsed, onToggle, openLabel, closeLabel, className, }: {
|
|
29
18
|
collapsed: boolean;
|
|
30
19
|
onToggle: () => void;
|
|
@@ -38,17 +27,12 @@ export declare function SidebarGroupHeading({ children, tone, testId, }: {
|
|
|
38
27
|
tone?: 'default' | 'attention';
|
|
39
28
|
testId?: string | undefined;
|
|
40
29
|
}): import("react").JSX.Element;
|
|
41
|
-
/** What a list says in place of its rows: none yet, no matches, or why it
|
|
42
|
-
* could not load. Plain text, so an empty list reads the same in every list. */
|
|
43
|
-
export declare function SidebarPlaceholder({ children, testId, }: {
|
|
44
|
-
children: ReactNode;
|
|
45
|
-
testId?: string | undefined;
|
|
46
|
-
}): import("react").JSX.Element;
|
|
47
30
|
/** A row's first line, the same in every list: what it is, and when it last
|
|
48
31
|
* moved, abbreviated, on the right. */
|
|
49
32
|
export declare function SidebarRowTitle({ children, time, }: {
|
|
50
33
|
children: ReactNode;
|
|
51
|
-
|
|
34
|
+
/** When it last changed, short: a compact `RelativeTime`. */
|
|
35
|
+
time?: ReactNode;
|
|
52
36
|
}): import("react").JSX.Element;
|
|
53
37
|
/** One entry in the list: the row highlights while it is the open one or
|
|
54
38
|
* while its menu is up, and the menu opens from its button or a right-click. */
|
|
@@ -61,12 +45,12 @@ export declare function SidebarRow({ selected, menuItems, openMenu, className, c
|
|
|
61
45
|
}): import("react").JSX.Element;
|
|
62
46
|
/** One entry in the collapsed rail: a square the size of the toggle, with the
|
|
63
47
|
* same highlight as a row, holding whatever stands in for the item. */
|
|
64
|
-
export declare function SidebarRailItem({ selected, label, onSelect, testId,
|
|
48
|
+
export declare function SidebarRailItem({ selected, label, onSelect, testId, children, }: {
|
|
65
49
|
selected: boolean;
|
|
50
|
+
/** Names the icon-only button, and shows beside it on hover. */
|
|
66
51
|
label: string;
|
|
67
52
|
onSelect: () => void;
|
|
68
53
|
testId?: string;
|
|
69
|
-
tooltipProps?: Record<string, string>;
|
|
70
54
|
children: ReactNode;
|
|
71
55
|
}): import("react").JSX.Element;
|
|
72
56
|
export declare function RenameDialog({ open, title, label, placeholder, confirmLabel, value, onChange, onConfirm, onClose, }: {
|