@parallelworks/ui 0.20.0 → 0.21.1
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 +5 -0
- package/dist/ai/adapter/openai/createOpenAIStream.js +3 -2
- package/dist/ai/agent/diff.d.ts +0 -1
- package/dist/ai/agent/diff.js +3 -2
- package/dist/ai/agent/toolfmt.js +2 -3
- package/dist/ai/ai.css +5 -0
- package/dist/ai/components/AllocationSelector.js +3 -2
- package/dist/ai/components/AttachmentManager.js +7 -5
- package/dist/ai/components/AttachmentUpload.js +11 -7
- package/dist/ai/components/BlockedGroupBanner.js +2 -2
- package/dist/ai/components/BranchNavigator.js +8 -5
- package/dist/ai/components/ChatEmptyState.js +8 -5
- package/dist/ai/components/ChatInput.d.ts +2 -5
- package/dist/ai/components/ChatInput.js +16 -11
- package/dist/ai/components/ChatMessage.js +25 -17
- package/dist/ai/components/ChatMessageList.js +4 -3
- package/dist/ai/components/ChatSidebar.d.ts +0 -1
- package/dist/ai/components/ChatSidebar.js +22 -16
- package/dist/ai/components/ChatThread.js +9 -11
- package/dist/ai/components/ComposerChrome.js +2 -2
- package/dist/ai/components/ModelSelector.js +20 -14
- package/dist/ai/components/ShareDialog.js +10 -6
- package/dist/ai/components/SlashMenu.d.ts +0 -1
- package/dist/ai/components/agent/ActivityLine.d.ts +0 -1
- package/dist/ai/components/agent/ActivityLine.js +5 -4
- package/dist/ai/components/agent/AgentMessageParts.d.ts +1 -26
- package/dist/ai/components/agent/AgentMessageParts.js +13 -12
- package/dist/ai/core/ChatProvider.d.ts +2 -6
- package/dist/ai/core/ChatProvider.js +42 -67
- package/dist/ai/core/KeyboardShortcutsProvider.js +1 -1
- package/dist/ai/core/chatReducer.d.ts +0 -6
- package/dist/ai/core/chatReducer.js +1 -15
- package/dist/ai/core/useKeyboardShortcuts.d.ts +3 -1
- package/dist/ai/core/useKeyboardShortcuts.js +9 -11
- package/dist/ai/core/useSSEStream.d.ts +0 -1
- package/dist/ai/core/useSSEStream.js +5 -17
- package/dist/ai/strings.d.ts +0 -1
- package/dist/ai/strings.js +0 -1
- package/dist/ai/types.d.ts +1 -1
- package/dist/ai/ui/Avatar.d.ts +1 -2
- package/dist/ai/ui/Avatar.js +7 -18
- package/dist/ai/ui/Dropdown.js +2 -2
- package/dist/ai/ui/Markdown.d.ts +1 -3
- package/dist/ai/ui/Markdown.js +1 -2
- package/dist/ai/ui/Notice.js +5 -3
- package/dist/ai/ui/sidebar.d.ts +0 -1
- package/dist/ai/ui/sidebar.js +5 -3
- package/dist/ai/utils.js +1 -1
- package/dist/components/Avatar.js +4 -2
- package/dist/components/BareModal.js +1 -5
- package/dist/components/Breadcrumbs.js +21 -14
- package/dist/components/Button.js +3 -2
- package/dist/components/Callout.js +4 -3
- package/dist/components/CollapsiblePanel.d.ts +1 -3
- package/dist/components/CollapsiblePanel.js +7 -7
- package/dist/components/CopyToClipboard.js +8 -4
- package/dist/components/CreateModal.js +11 -7
- package/dist/components/Dropdown.d.ts +0 -4
- package/dist/components/Dropdown.js +7 -8
- package/dist/components/Filter.js +2 -2
- package/dist/components/Indicator.js +14 -9
- package/dist/components/Input.js +6 -4
- package/dist/components/Listbox.js +16 -20
- package/dist/components/Loader.js +1 -1
- package/dist/components/MultiSelect.js +5 -8
- package/dist/components/PageHeader.js +10 -7
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Provider.d.ts +0 -8
- package/dist/components/Sort.js +6 -4
- package/dist/components/StatusIcons.d.ts +11 -0
- package/dist/components/StatusIcons.js +20 -0
- package/dist/components/SwitchToggle.js +3 -5
- package/dist/components/Table.d.ts +1 -3
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/dropdownUtils.js +7 -8
- package/dist/components/relativeTime.d.ts +0 -7
- package/dist/components/relativeTime.js +1 -1
- package/dist/duration.js +1 -1
- package/dist/editor/Editor.d.ts +1 -1
- package/dist/editor/Editor.js +1 -1
- package/dist/editor/EditorField.d.ts +0 -1
- package/dist/editor/EditorField.js +8 -8
- package/dist/editor/FormCodePanel.js +20 -23
- package/dist/editor/yamlLanguage.js +2 -2
- package/dist/file-explorer/FileExplorer.js +94 -82
- package/dist/file-explorer/FileExplorerContext.d.ts +1 -2
- package/dist/file-explorer/FileExplorerContext.js +92 -125
- package/dist/file-explorer/FilePreview/Inline.d.ts +1 -2
- package/dist/file-explorer/FilePreview/Inline.js +4 -4
- package/dist/file-explorer/FilePreview/StreamedBadge.js +2 -2
- package/dist/file-explorer/FilePreview/Viewer.js +14 -14
- package/dist/file-explorer/FilePreview/index.d.ts +1 -2
- package/dist/file-explorer/FilePreview/index.js +20 -13
- package/dist/file-explorer/FilePreview/parse.d.ts +2 -1
- package/dist/file-explorer/FilePreview/useObjectBlobUrl.d.ts +5 -4
- package/dist/file-explorer/FilePreview/useObjectBlobUrl.js +23 -36
- package/dist/file-explorer/FilePreview/useObjectText.d.ts +1 -2
- package/dist/file-explorer/FilePreview/useObjectText.js +5 -7
- package/dist/file-explorer/FileRow.js +3 -3
- package/dist/file-explorer/FileRowsWindow.d.ts +5 -12
- package/dist/file-explorer/FileRowsWindow.js +3 -2
- package/dist/file-explorer/FileTable.d.ts +2 -6
- package/dist/file-explorer/LoadMoreRow.d.ts +8 -0
- package/dist/file-explorer/TreeView.d.ts +0 -1
- package/dist/file-explorer/TreeView.js +11 -9
- package/dist/file-explorer/helpers.js +45 -33
- package/dist/file-explorer/lib/fileExplorer.d.ts +0 -2
- package/dist/file-explorer/lib/types.d.ts +0 -1
- package/dist/file-explorer/lib/utils.js +15 -20
- package/dist/file-explorer/toasts.js +54 -45
- package/dist/form/Fields/BooleanField.js +5 -4
- package/dist/form/Fields/CheckboxGroupField.js +5 -4
- package/dist/form/Fields/ColorField.js +5 -4
- package/dist/form/Fields/DropdownField.d.ts +0 -1
- package/dist/form/Fields/DropdownField.js +10 -13
- package/dist/form/Fields/DurationField.js +2 -2
- package/dist/form/Fields/LabelField.js +5 -5
- package/dist/form/Fields/MultiDropdownField.d.ts +1 -1
- package/dist/form/Fields/MultiDropdownField.js +8 -11
- package/dist/form/Fields/NumberField.js +6 -5
- package/dist/form/Fields/ObjectField.d.ts +1 -2
- package/dist/form/Fields/ObjectField.js +22 -21
- package/dist/form/Fields/RadioField.js +4 -3
- package/dist/form/Fields/RangeField.js +7 -6
- package/dist/form/Fields/StringField.js +2 -1
- package/dist/form/Fields/TextAreaField.js +2 -1
- package/dist/form/Form.d.ts +7 -8
- package/dist/form/Form.js +56 -81
- package/dist/form/SpecialTypes/DropdownWrapper.d.ts +0 -2
- package/dist/form/SpecialTypes/DropdownWrapper.js +1 -3
- package/dist/form/SpecialTypes/FormikCustomDropdown.d.ts +1 -3
- package/dist/form/SpecialTypes/FormikCustomDropdown.js +4 -7
- package/dist/form/SpecialTypes/FormikCustomInput.js +16 -13
- package/dist/form/Wizard/WizardContainer.js +8 -25
- package/dist/form/Wizard/WizardNavigation.d.ts +1 -1
- package/dist/form/Wizard/WizardNavigation.js +5 -6
- package/dist/form/Wizard/WizardStepContent.d.ts +1 -1
- package/dist/form/Wizard/WizardStepContent.js +2 -2
- package/dist/form/Wizard/WizardStepIndicator.js +7 -17
- package/dist/form/Wizard/types.d.ts +4 -46
- package/dist/form/Wizard/useWizardState.d.ts +2 -10
- package/dist/form/Wizard/useWizardState.js +42 -92
- package/dist/form/Wizard/utils.js +6 -11
- package/dist/form/lib.js +28 -54
- package/dist/form/types/fieldTypes.d.ts +4 -5
- package/dist/form/utils/dependentOptions.d.ts +6 -0
- package/dist/form/utils/dependentOptions.js +21 -0
- package/dist/form/utils/getParentValue.d.ts +2 -1
- package/dist/form/utils/getParentValue.js +10 -15
- package/dist/form/utils/getValueUsingPath.js +1 -1
- package/dist/graph/AnnotationBanner.d.ts +1 -1
- package/dist/graph/AnnotationBanner.js +10 -6
- package/dist/graph/Collapse.d.ts +3 -3
- package/dist/graph/Collapse.js +3 -8
- package/dist/graph/DependencyGraph.d.ts +5 -4
- package/dist/graph/DependencyGraph.js +178 -226
- package/dist/graph/JobSummary.d.ts +10 -8
- package/dist/graph/JobSummary.js +17 -16
- package/dist/graph/MatrixGroup.d.ts +5 -17
- package/dist/graph/MatrixGroup.js +11 -22
- package/dist/graph/TreeView.d.ts +1 -3
- package/dist/graph/TreeView.js +106 -492
- package/dist/graph/types.d.ts +3 -2
- package/dist/graph/util.d.ts +5 -0
- package/dist/graph/util.js +18 -0
- package/dist/icons/ai/AiOutlineRollback.js +16 -0
- package/dist/icons/bi/BiBell.js +16 -0
- package/dist/icons/bi/BiBellOff.js +16 -0
- package/dist/icons/bi/BiBuildings.js +20 -0
- package/dist/icons/bi/BiError.js +20 -0
- package/dist/icons/bi/BiExpandVertical.js +16 -0
- package/dist/icons/bi/BiPause.js +16 -0
- package/dist/icons/bi/BiPlay.js +16 -0
- package/dist/icons/bi/BiSolidCheckShield.js +16 -0
- package/dist/icons/bi/BiSolidTrashAlt.js +16 -0
- package/dist/icons/bi/BiStop.js +16 -0
- package/dist/icons/bs/BsArrowsCollapse.js +22 -0
- package/dist/icons/bs/BsBank2.js +19 -0
- package/dist/icons/bs/BsBriefcase.js +19 -0
- package/dist/icons/bs/BsBucket.js +19 -0
- package/dist/icons/bs/BsCalendarX.js +23 -0
- package/dist/icons/bs/BsChatLeft.js +19 -0
- package/dist/icons/bs/BsChevronDoubleDown.js +29 -0
- package/dist/icons/bs/BsChevronDoubleUp.js +29 -0
- package/dist/icons/bs/BsClipboardCheck.js +34 -0
- package/dist/icons/bs/BsCurrencyDollar.js +19 -0
- package/dist/icons/bs/BsDash.js +19 -0
- package/dist/icons/bs/BsFileEarmarkZip.js +23 -0
- package/dist/icons/bs/BsFiles.js +19 -0
- package/dist/icons/bs/BsGeoAlt.js +23 -0
- package/dist/icons/bs/BsGrid.js +19 -0
- package/dist/icons/bs/BsLayers.js +19 -0
- package/dist/icons/bs/BsLayoutThreeColumns.js +19 -0
- package/dist/icons/bs/BsListUl.js +22 -0
- package/dist/icons/bs/BsMortarboard.js +23 -0
- package/dist/icons/bs/BsMusicNoteBeamed.js +34 -0
- package/dist/icons/bs/BsOpenai.js +19 -0
- package/dist/icons/bs/BsPersonPlus.js +26 -0
- package/dist/icons/bs/BsSearch.js +19 -0
- package/dist/icons/bs/BsSend.js +19 -0
- package/dist/icons/bs/BsShieldSlash.js +22 -0
- package/dist/icons/bs/BsStar.js +19 -0
- package/dist/icons/bs/BsStarFill.js +19 -0
- package/dist/icons/bs/BsStopCircle.js +23 -0
- package/dist/icons/bs/BsTag.js +23 -0
- package/dist/icons/bs/BsTelephone.js +19 -0
- package/dist/icons/bs/BsTerminal.js +23 -0
- package/dist/icons/bs/BsTerminalFill.js +19 -0
- package/dist/icons/bs/BsThreeDots.js +19 -0
- package/dist/icons/bs/BsThreeDotsVertical.js +19 -0
- package/dist/icons/bs/BsZoomIn.js +37 -0
- package/dist/icons/fa/FaAmazon.js +16 -0
- package/dist/icons/fa/FaAngleDown.js +16 -0
- package/dist/icons/fa/FaAngleLeft.js +16 -0
- package/dist/icons/fa/FaAngleRight.js +16 -0
- package/dist/icons/fa/FaAngleUp.js +16 -0
- package/dist/icons/fa/FaArrowDown.js +16 -0
- package/dist/icons/fa/FaArrowLeft.js +16 -0
- package/dist/icons/fa/FaArrowRight.js +16 -0
- package/dist/icons/fa/FaArrowUp.js +16 -0
- package/dist/icons/fa/FaBalanceScale.js +16 -0
- package/dist/icons/fa/FaCaretDown.js +16 -0
- package/dist/icons/fa/FaCentos.js +16 -0
- package/dist/icons/fa/FaChartLine.js +16 -0
- package/dist/icons/fa/FaChartPie.js +16 -0
- package/dist/icons/fa/FaCheck.js +16 -0
- package/dist/icons/fa/FaChevronDown.js +16 -0
- package/dist/icons/fa/FaChevronUp.js +16 -0
- package/dist/icons/fa/FaChrome.js +16 -0
- package/dist/icons/fa/FaCircleNotch.js +16 -0
- package/dist/icons/fa/FaCloud.js +16 -0
- package/dist/icons/fa/FaCloudDownloadAlt.js +16 -0
- package/dist/icons/fa/FaCog.js +16 -0
- package/dist/icons/fa/FaCogs.js +16 -0
- package/dist/icons/fa/FaComments.js +16 -0
- package/dist/icons/fa/FaCompress.js +16 -0
- package/dist/icons/fa/FaDesktop.js +16 -0
- package/dist/icons/fa/FaDocker.js +16 -0
- package/dist/icons/fa/FaDollarSign.js +16 -0
- package/dist/icons/fa/FaEdge.js +16 -0
- package/dist/icons/fa/FaEdit.js +16 -0
- package/dist/icons/fa/FaExclamationTriangle.js +16 -0
- package/dist/icons/fa/FaExpand.js +16 -0
- package/dist/icons/fa/FaEye.js +16 -0
- package/dist/icons/fa/FaEyeSlash.js +16 -0
- package/dist/icons/fa/FaFile.js +16 -0
- package/dist/icons/fa/FaFilePdf.js +16 -0
- package/dist/icons/fa/FaFilter.js +16 -0
- package/dist/icons/fa/FaFirefoxBrowser.js +16 -0
- package/dist/icons/fa/FaFlask.js +16 -0
- package/dist/icons/fa/FaFolder.js +16 -0
- package/dist/icons/fa/FaGithub.js +16 -0
- package/dist/icons/fa/FaGitlab.js +16 -0
- package/dist/icons/fa/FaGlobe.js +16 -0
- package/dist/icons/fa/FaGlobeAmericas.js +16 -0
- package/dist/icons/fa/FaImage.js +16 -0
- package/dist/icons/fa/FaInfoCircle.js +16 -0
- package/dist/icons/fa/FaKey.js +16 -0
- package/dist/icons/fa/FaLayerGroup.js +16 -0
- package/dist/icons/fa/FaLink.js +16 -0
- package/dist/icons/fa/FaLinkedin.js +16 -0
- package/dist/icons/fa/FaLinux.js +16 -0
- package/dist/icons/fa/FaList.js +16 -0
- package/dist/icons/fa/FaLock.js +16 -0
- package/dist/icons/fa/FaOpenid.js +16 -0
- package/dist/icons/fa/FaOpera.js +16 -0
- package/dist/icons/fa/FaPaperclip.js +16 -0
- package/dist/icons/fa/FaPlus.js +16 -0
- package/dist/icons/fa/FaPowerOff.js +16 -0
- package/dist/icons/fa/FaPrint.js +16 -0
- package/dist/icons/fa/FaQrcode.js +16 -0
- package/dist/icons/fa/FaQuestionCircle.js +16 -0
- package/dist/icons/fa/FaRedhat.js +16 -0
- package/dist/icons/fa/FaRegCircle.js +16 -0
- package/dist/icons/fa/FaRegFileImage.js +16 -0
- package/dist/icons/fa/FaRegFolder.js +16 -0
- package/dist/icons/fa/FaRobot.js +16 -0
- package/dist/icons/fa/FaRocket.js +16 -0
- package/dist/icons/fa/FaRunning.js +16 -0
- package/dist/icons/fa/FaSafari.js +16 -0
- package/dist/icons/fa/FaSave.js +16 -0
- package/dist/icons/fa/FaSearch.js +16 -0
- package/dist/icons/fa/FaShieldAlt.js +16 -0
- package/dist/icons/fa/FaSlack.js +16 -0
- package/dist/icons/fa/FaStar.js +16 -0
- package/dist/icons/fa/FaStop.js +16 -0
- package/dist/icons/fa/FaSuse.js +16 -0
- package/dist/icons/fa/FaTerminal.js +16 -0
- package/dist/icons/fa/FaTimes.js +16 -0
- package/dist/icons/fa/FaUbuntu.js +16 -0
- package/dist/icons/fa/FaUndoAlt.js +16 -0
- package/dist/icons/fa/FaUnlink.js +16 -0
- package/dist/icons/fa/FaUser.js +16 -0
- package/dist/icons/fa/FaUsers.js +16 -0
- package/dist/icons/fa/FaWindows.js +16 -0
- package/dist/icons/fa6/FaApple.js +16 -0
- package/dist/icons/fa6/FaArrowsRotate.js +16 -0
- package/dist/icons/fa6/FaDebian.js +16 -0
- package/dist/icons/fa6/FaFilterCircleXmark.js +16 -0
- package/dist/icons/fa6/FaInbox.js +16 -0
- package/dist/icons/fa6/FaLocationDot.js +16 -0
- package/dist/icons/fa6/FaRegFilePdf.js +16 -0
- package/dist/icons/fa6/FaRegFolderOpen.js +16 -0
- package/dist/icons/fa6/FaUpRightFromSquare.js +16 -0
- package/dist/icons/fa6/FaWandMagicSparkles.js +16 -0
- package/dist/icons/fa6/FaXTwitter.js +16 -0
- package/dist/icons/fi/FiActivity.js +23 -0
- package/dist/icons/fi/FiAlertCircle.js +49 -0
- package/dist/icons/fi/FiChevronDown.js +23 -0
- package/dist/icons/fi/FiClock.js +31 -0
- package/dist/icons/fi/FiCopy.js +34 -0
- package/dist/icons/fi/FiDownload.js +40 -0
- package/dist/icons/fi/FiFile.js +27 -0
- package/dist/icons/fi/FiFileText.js +55 -0
- package/dist/icons/fi/FiHardDrive.js +55 -0
- package/dist/icons/fi/FiRotateCcw.js +27 -0
- package/dist/icons/fi/FiUpload.js +40 -0
- package/dist/icons/fi/FiX.js +37 -0
- package/dist/icons/fi/FiZap.js +23 -0
- package/dist/icons/gi/GiSpy.js +16 -0
- package/dist/icons/go/GoGitCommit.js +16 -0
- package/dist/icons/go/GoGitPullRequest.js +20 -0
- package/dist/icons/go/GoIssueOpened.js +16 -0
- package/dist/icons/go/GoPlus.js +16 -0
- package/dist/icons/go/GoRepoForked.js +28 -0
- package/dist/icons/go/GoSignOut.js +16 -0
- package/dist/icons/go/GoSkip.js +20 -0
- package/dist/icons/go/GoVideo.js +20 -0
- package/dist/icons/gr/GrCloudComputer.js +20 -0
- package/dist/icons/gr/GrInbox.js +20 -0
- package/dist/icons/gr/GrServerCluster.js +20 -0
- package/dist/icons/gr/GrStorage.js +20 -0
- package/dist/icons/gr/GrTasks.js +20 -0
- package/dist/icons/hi/HiCog.js +24 -0
- package/dist/icons/hi/HiDuplicate.js +24 -0
- package/dist/icons/hi/HiOutlineArchive.js +26 -0
- package/dist/icons/hi/HiOutlineClipboardCopy.js +26 -0
- package/dist/icons/hi/HiOutlineHome.js +26 -0
- package/dist/icons/hi/HiQuestionMarkCircle.js +24 -0
- package/dist/icons/hi/HiServer.js +24 -0
- package/dist/icons/hi2/HiMiniCheckCircle.js +24 -0
- package/dist/icons/hi2/HiMiniLanguage.js +28 -0
- package/dist/icons/hi2/HiMiniMinusCircle.js +24 -0
- package/dist/icons/hi2/HiMiniXCircle.js +24 -0
- package/dist/icons/hi2/HiSparkles.js +24 -0
- package/dist/icons/im/ImSpinner5.js +19 -0
- package/dist/icons/io/IoIosNotifications.js +16 -0
- package/dist/icons/io/IoMdBuild.js +16 -0
- package/dist/icons/io/IoMdClose.js +16 -0
- package/dist/icons/io5/IoCloudUploadOutline.js +32 -0
- package/dist/icons/io5/IoDocumentTextOutline.js +31 -0
- package/dist/icons/io5/IoFileTrayFullOutline.js +31 -0
- package/dist/icons/io5/IoHeart.js +16 -0
- package/dist/icons/io5/IoHeartDislike.js +16 -0
- package/dist/icons/io5/IoHeartOutline.js +22 -0
- package/dist/icons/io5/IoInformationCircleOutline.js +50 -0
- package/dist/icons/io5/IoSettingsOutline.js +22 -0
- package/dist/icons/io5/IoWarningOutline.js +40 -0
- package/dist/icons/lu/LuArrowRight.js +27 -0
- package/dist/icons/lu/LuBadgeCheck.js +27 -0
- package/dist/icons/lu/LuBrainCircuit.js +101 -0
- package/dist/icons/lu/LuCalendar.js +46 -0
- package/dist/icons/lu/LuCheck.js +23 -0
- package/dist/icons/lu/LuChevronLeft.js +23 -0
- package/dist/icons/lu/LuChevronRight.js +23 -0
- package/dist/icons/lu/LuExternalLink.js +35 -0
- package/dist/icons/lu/LuEye.js +31 -0
- package/dist/icons/lu/LuEyeOff.js +40 -0
- package/dist/icons/lu/LuFolderTree.js +40 -0
- package/dist/icons/lu/LuIdCard.js +55 -0
- package/dist/icons/lu/LuLogs.js +65 -0
- package/dist/icons/lu/LuMail.js +33 -0
- package/dist/icons/lu/LuMegaphone.js +27 -0
- package/dist/icons/lu/LuMoon.js +23 -0
- package/dist/icons/lu/LuPartyPopper.js +65 -0
- package/dist/icons/lu/LuSettings2.js +48 -0
- package/dist/icons/lu/LuSheet.js +72 -0
- package/dist/icons/lu/LuShield.js +23 -0
- package/dist/icons/lu/LuSun.js +69 -0
- package/dist/icons/lu/LuX.js +27 -0
- package/dist/icons/lu/LuZoomIn.js +59 -0
- package/dist/icons/lu/LuZoomOut.js +49 -0
- package/dist/icons/md/MdClear.js +23 -0
- package/dist/icons/md/MdDragHandle.js +23 -0
- package/dist/icons/md/MdInstallDesktop.js +31 -0
- package/dist/icons/md/MdOutlineAttachMoney.js +23 -0
- package/dist/icons/md/MdOutlineMoneyOff.js +23 -0
- package/dist/icons/md/MdPieChart.js +23 -0
- package/dist/icons/md/MdRefresh.js +23 -0
- package/dist/icons/md/MdReplay.js +23 -0
- package/dist/icons/md/MdSmartphone.js +23 -0
- package/dist/icons/pi/PiArrowBendUpRightBold.js +19 -0
- package/dist/icons/pi/PiPlugsConnectedFill.js +19 -0
- package/dist/icons/pi/PiRectangleDashed.js +19 -0
- package/dist/icons/pi/PiShareBold.js +19 -0
- package/dist/icons/si/SiAnthropic.js +19 -0
- package/dist/icons/si/SiHelm.js +19 -0
- package/dist/icons/si/SiKubernetes.js +19 -0
- package/dist/icons/tb/TbAlertTriangle.js +35 -0
- package/dist/icons/tb/TbAlertTriangleFilled.js +19 -0
- package/dist/icons/tb/TbApi.js +40 -0
- package/dist/icons/tb/TbBrain.js +50 -0
- package/dist/icons/tb/TbBuildingTunnel.js +65 -0
- package/dist/icons/tb/TbEdit.js +35 -0
- package/dist/icons/tb/TbLayoutSidebar.js +27 -0
- package/dist/icons/tb/TbLayoutSidebarLeftCollapse.js +35 -0
- package/dist/icons/tb/TbLayoutSidebarRightCollapse.js +35 -0
- package/dist/icons/tb/TbUser.js +27 -0
- package/dist/icons/tb/TbUserOff.js +35 -0
- package/dist/icons/tb/TbWorldShare.js +55 -0
- package/dist/icons/tb/TbWorldWww.js +65 -0
- package/dist/icons/ti/TiArrowSortedDown.js +20 -0
- package/dist/icons/ti/TiArrowSortedUp.js +20 -0
- package/dist/icons/ti/TiArrowUnsorted.js +20 -0
- package/dist/icons/ti/TiCancel.js +20 -0
- package/dist/icons/vsc/VscChromeMinimize.js +19 -0
- package/dist/icons/vsc/VscJson.js +19 -0
- package/dist/icons/vsc/VscLayoutSidebarLeft.js +19 -0
- package/dist/icons/vsc/VscPass.js +27 -0
- package/dist/icons/vsc/VscSplitHorizontal.js +19 -0
- package/dist/icons/vsc/VscTerminalPowershell.js +19 -0
- package/dist/icons.d.ts +7 -22
- package/dist/icons.js +257 -38
- package/dist/index.d.ts +1 -1
- package/dist/list/ActionToolbar.js +2 -2
- package/dist/list/ListPager.js +4 -3
- package/dist/list/ListTable.js +2 -2
- package/dist/list/ListViewControls.js +29 -42
- package/dist/list/RowContextMenu.js +28 -19
- package/dist/list/listSearch.js +6 -5
- package/dist/logviewer/LogViewer.js +28 -20
- package/dist/logviewer/segments.js +2 -2
- package/dist/styles/theme.css +1 -0
- package/dist/styles.css +1 -1
- package/dist/theme/index.js +5 -5
- package/package.json +28 -30
- package/dist/ai/ui/buttons.d.ts +0 -1
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { safeUrl } from "../safeUrl.js";
|
|
2
2
|
import { useLink, useNotify, useStrings } from "../components/Provider.js";
|
|
3
|
-
import {
|
|
3
|
+
import { BsThreeDots } from "../icons/bs/BsThreeDots.js";
|
|
4
|
+
import { FaCheck } from "../icons/fa/FaCheck.js";
|
|
5
|
+
import { FaKey } from "../icons/fa/FaKey.js";
|
|
6
|
+
import { FaLink } from "../icons/fa/FaLink.js";
|
|
7
|
+
import { FaUser } from "../icons/fa/FaUser.js";
|
|
8
|
+
import { FiCopy } from "../icons/fi/FiCopy.js";
|
|
9
|
+
import { HiOutlineClipboardCopy } from "../icons/hi/HiOutlineClipboardCopy.js";
|
|
10
|
+
import { LuChevronRight } from "../icons/lu/LuChevronRight.js";
|
|
11
|
+
import { LuIdCard } from "../icons/lu/LuIdCard.js";
|
|
12
|
+
import { LuMail } from "../icons/lu/LuMail.js";
|
|
4
13
|
import { keyedByContent } from "../components/keys.js";
|
|
5
14
|
import { TOOLTIP_ID } from "../components/Tooltip.js";
|
|
6
15
|
import cx from "classnames";
|
|
@@ -21,7 +30,7 @@ function toRowMenuItem(action) {
|
|
|
21
30
|
kind: "action",
|
|
22
31
|
label: action.label,
|
|
23
32
|
icon: action.icon,
|
|
24
|
-
onSelect: action.onSelect
|
|
33
|
+
onSelect: action.onSelect,
|
|
25
34
|
disabled: action.disabled,
|
|
26
35
|
destructive: action.destructive,
|
|
27
36
|
tooltip: action.tooltip
|
|
@@ -224,7 +233,7 @@ function MenuRow({ item, onClose, side }) {
|
|
|
224
233
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
225
234
|
className: "flex items-center gap-2.5",
|
|
226
235
|
children: [item.icon, item.label]
|
|
227
|
-
}), /* @__PURE__ */ jsx(
|
|
236
|
+
}), /* @__PURE__ */ jsx(LuChevronRight, { className: "h-3 w-3 shrink-0 opacity-60" })]
|
|
228
237
|
}), openSub && /* @__PURE__ */ jsx("div", {
|
|
229
238
|
className: cx("absolute -top-1 z-10 min-w-44 rounded-lg border border-(--theme-border) bg-(--theme-panel-bg) py-1 shadow-lg", side === "left" ? "right-full" : "left-full"),
|
|
230
239
|
children: /* @__PURE__ */ jsx(MenuItemList, {
|
|
@@ -271,7 +280,7 @@ function MenuRow({ item, onClose, side }) {
|
|
|
271
280
|
children: [
|
|
272
281
|
item.icon,
|
|
273
282
|
item.label,
|
|
274
|
-
item.selected && /* @__PURE__ */ jsx(
|
|
283
|
+
item.selected && /* @__PURE__ */ jsx(FaCheck, { className: "ml-auto opacity-80" })
|
|
275
284
|
]
|
|
276
285
|
});
|
|
277
286
|
}
|
|
@@ -283,51 +292,51 @@ function useCopySubmenu() {
|
|
|
283
292
|
{
|
|
284
293
|
label: nameLabel ?? t.labelName,
|
|
285
294
|
value: name,
|
|
286
|
-
icon: /* @__PURE__ */ jsx(
|
|
295
|
+
icon: /* @__PURE__ */ jsx(FiCopy, {})
|
|
287
296
|
},
|
|
288
297
|
{
|
|
289
298
|
label: t.labelEmail,
|
|
290
299
|
value: email,
|
|
291
|
-
icon: /* @__PURE__ */ jsx(
|
|
300
|
+
icon: /* @__PURE__ */ jsx(LuMail, {})
|
|
292
301
|
},
|
|
293
302
|
{
|
|
294
303
|
label: t.labelUsername,
|
|
295
304
|
value: username,
|
|
296
|
-
icon: /* @__PURE__ */ jsx(
|
|
305
|
+
icon: /* @__PURE__ */ jsx(FaUser, {})
|
|
297
306
|
},
|
|
298
307
|
{
|
|
299
308
|
label: t.labelUid,
|
|
300
309
|
value: uid === null || uid === void 0 ? null : String(uid),
|
|
301
|
-
icon: /* @__PURE__ */ jsx(
|
|
310
|
+
icon: /* @__PURE__ */ jsx(FaKey, {})
|
|
302
311
|
},
|
|
303
312
|
{
|
|
304
313
|
label: t.labelId,
|
|
305
314
|
value: id,
|
|
306
|
-
icon: /* @__PURE__ */ jsx(
|
|
315
|
+
icon: /* @__PURE__ */ jsx(LuIdCard, {})
|
|
307
316
|
},
|
|
308
317
|
{
|
|
309
318
|
label: t.labelUrl,
|
|
310
319
|
value: url,
|
|
311
|
-
icon: /* @__PURE__ */ jsx(
|
|
320
|
+
icon: /* @__PURE__ */ jsx(FaLink, {})
|
|
312
321
|
},
|
|
313
322
|
...(extra ?? []).map((e) => ({
|
|
314
323
|
label: e.label,
|
|
315
324
|
value: e.value,
|
|
316
|
-
icon: e.icon ?? /* @__PURE__ */ jsx(
|
|
325
|
+
icon: e.icon ?? /* @__PURE__ */ jsx(FiCopy, {})
|
|
317
326
|
}))
|
|
318
|
-
].
|
|
327
|
+
].flatMap(({ label, value, icon }) => value ? [{
|
|
319
328
|
kind: "action",
|
|
320
|
-
label: t.copy(
|
|
321
|
-
icon
|
|
329
|
+
label: t.copy(label),
|
|
330
|
+
icon,
|
|
322
331
|
copy: {
|
|
323
|
-
text:
|
|
324
|
-
label
|
|
332
|
+
text: value,
|
|
333
|
+
label
|
|
325
334
|
}
|
|
326
|
-
})
|
|
335
|
+
}] : []);
|
|
327
336
|
return {
|
|
328
337
|
kind: "submenu",
|
|
329
338
|
label: t.copyMenu,
|
|
330
|
-
icon: /* @__PURE__ */ jsx(
|
|
339
|
+
icon: /* @__PURE__ */ jsx(HiOutlineClipboardCopy, {}),
|
|
331
340
|
items
|
|
332
341
|
};
|
|
333
342
|
}, [t]);
|
|
@@ -344,7 +353,7 @@ function MoreButton({ onOpen, active, className }) {
|
|
|
344
353
|
onOpen(r.right, r.bottom);
|
|
345
354
|
},
|
|
346
355
|
className: cx("rounded p-1 cursor-pointer text-(--theme-muted-text-color) transition-colors hover:bg-(--theme-muted-panel-bg) hover:text-(--theme-app) focus-visible:opacity-100", active ? "opacity-100" : "opacity-0 group-hover:opacity-100", className),
|
|
347
|
-
children: /* @__PURE__ */ jsx(
|
|
356
|
+
children: /* @__PURE__ */ jsx(BsThreeDots, { className: "h-4 w-4" })
|
|
348
357
|
});
|
|
349
358
|
}
|
|
350
359
|
//#endregion
|
package/dist/list/listSearch.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FaSearch } from "../icons/fa/FaSearch.js";
|
|
2
|
+
import { FiX } from "../icons/fi/FiX.js";
|
|
2
3
|
import { TOOLTIP_ID } from "../components/Tooltip.js";
|
|
3
4
|
import { isTextEntryContext } from "./textEntry.js";
|
|
4
5
|
import { listControlButtonClasses } from "./ListViewControls.js";
|
|
@@ -73,7 +74,7 @@ function ListSearchControl({ search, placeholder, label = "Search" }) {
|
|
|
73
74
|
if (search.searchOpen || search.terms.length > 0) return /* @__PURE__ */ jsxs("div", {
|
|
74
75
|
className: "flex min-h-7 w-72 max-w-[55vw] flex-wrap items-center gap-1.5 rounded-md border border-(--theme-border) bg-(--theme-muted-panel-bg) px-2 py-0.5",
|
|
75
76
|
children: [
|
|
76
|
-
/* @__PURE__ */ jsx(
|
|
77
|
+
/* @__PURE__ */ jsx(FaSearch, { className: "w-3.5 h-3.5 shrink-0 text-(--theme-muted-text-color)" }),
|
|
77
78
|
search.terms.map((term) => /* @__PURE__ */ jsxs("span", {
|
|
78
79
|
className: "flex max-w-40 items-center gap-1 rounded border border-(--theme-border) bg-(--theme-app-bg) px-1.5 py-px text-[12px] text-(--theme-app)",
|
|
79
80
|
children: [/* @__PURE__ */ jsx("span", {
|
|
@@ -84,7 +85,7 @@ function ListSearchControl({ search, placeholder, label = "Search" }) {
|
|
|
84
85
|
onClick: () => search.removeTerm(term),
|
|
85
86
|
"aria-label": `Remove filter ${term}`,
|
|
86
87
|
className: "shrink-0 rounded p-0.5 text-(--theme-muted-text-color) hover:text-(--theme-app) transition-colors",
|
|
87
|
-
children: /* @__PURE__ */ jsx(
|
|
88
|
+
children: /* @__PURE__ */ jsx(FiX, { className: "w-2.5 h-2.5" })
|
|
88
89
|
})]
|
|
89
90
|
}, term)),
|
|
90
91
|
/* @__PURE__ */ jsx("input", {
|
|
@@ -109,7 +110,7 @@ function ListSearchControl({ search, placeholder, label = "Search" }) {
|
|
|
109
110
|
onClick: search.clearSearch,
|
|
110
111
|
"aria-label": "Clear search",
|
|
111
112
|
className: "shrink-0 rounded p-0.5 text-(--theme-muted-text-color) hover:text-(--theme-app) transition-colors",
|
|
112
|
-
children: /* @__PURE__ */ jsx(
|
|
113
|
+
children: /* @__PURE__ */ jsx(FiX, { className: "w-3 h-3" })
|
|
113
114
|
})
|
|
114
115
|
]
|
|
115
116
|
});
|
|
@@ -121,7 +122,7 @@ function ListSearchControl({ search, placeholder, label = "Search" }) {
|
|
|
121
122
|
"data-tooltip-content": label,
|
|
122
123
|
"data-tooltip-shortcut": "⌘+F",
|
|
123
124
|
className: listControlButtonClasses,
|
|
124
|
-
children: /* @__PURE__ */ jsx(
|
|
125
|
+
children: /* @__PURE__ */ jsx(FaSearch, { className: "w-3.5 h-3.5" })
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
128
|
function ListCount({ total, matches, filterActive, noun, nounPlural }) {
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { useNotify, useOptionalWorkflowEngine, useStrings } from "../components/Provider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { FaArrowDown } from "../icons/fa/FaArrowDown.js";
|
|
3
|
+
import { FaArrowUp } from "../icons/fa/FaArrowUp.js";
|
|
4
|
+
import { FaCheck } from "../icons/fa/FaCheck.js";
|
|
5
|
+
import { FaChevronDown } from "../icons/fa/FaChevronDown.js";
|
|
6
|
+
import { FaCloudDownloadAlt } from "../icons/fa/FaCloudDownloadAlt.js";
|
|
7
|
+
import { FaCompress } from "../icons/fa/FaCompress.js";
|
|
8
|
+
import { FaExpand } from "../icons/fa/FaExpand.js";
|
|
9
|
+
import { FiClock } from "../icons/fi/FiClock.js";
|
|
10
|
+
import { FiCopy } from "../icons/fi/FiCopy.js";
|
|
11
|
+
import { FiX } from "../icons/fi/FiX.js";
|
|
12
|
+
import { LuChevronRight } from "../icons/lu/LuChevronRight.js";
|
|
3
13
|
import { TooltipInfo } from "../components/Tooltip.js";
|
|
4
14
|
import { highlightSegments, parseAnsiSegments, plainSegments } from "./segments.js";
|
|
5
15
|
import cx from "classnames";
|
|
@@ -76,7 +86,7 @@ var LogLine = memo(function LogLine({ index, segments, lineNumbers, isSelected,
|
|
|
76
86
|
children: [
|
|
77
87
|
command?.type === "group" && /* @__PURE__ */ jsx("span", {
|
|
78
88
|
className: "mr-1 shrink-0 inline-flex items-center",
|
|
79
|
-
children: isGroupCollapsed ? /* @__PURE__ */ jsx(
|
|
89
|
+
children: isGroupCollapsed ? /* @__PURE__ */ jsx(LuChevronRight, { className: "w-3 h-3" }) : /* @__PURE__ */ jsx(FaChevronDown, { className: "w-3 h-3" })
|
|
80
90
|
}),
|
|
81
91
|
annotationLabel,
|
|
82
92
|
/* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(LogSegments, { segments: displaySegments }) })
|
|
@@ -336,15 +346,13 @@ function LogViewer({ log, height = "unset", width, roundedBottom = false, lineNu
|
|
|
336
346
|
};
|
|
337
347
|
scrollAnimationRef.current = requestAnimationFrame(animate);
|
|
338
348
|
}, []);
|
|
339
|
-
const
|
|
340
|
-
|
|
341
|
-
if (location === "top") ref.current.scroll({
|
|
349
|
+
const scrollToTop = () => {
|
|
350
|
+
logContainerRef.current?.scroll({
|
|
342
351
|
top: 0,
|
|
343
352
|
left: 0,
|
|
344
353
|
behavior: "smooth"
|
|
345
354
|
});
|
|
346
|
-
|
|
347
|
-
}, [smoothScrollToBottom]);
|
|
355
|
+
};
|
|
348
356
|
useEffect(() => {
|
|
349
357
|
const container = logContainerRef.current;
|
|
350
358
|
if (!container || inline) return;
|
|
@@ -400,7 +408,7 @@ function LogViewer({ log, height = "unset", width, roundedBottom = false, lineNu
|
|
|
400
408
|
};
|
|
401
409
|
useEffect(() => {
|
|
402
410
|
if (!log) return;
|
|
403
|
-
const lines =
|
|
411
|
+
const lines = log.split("\n");
|
|
404
412
|
const cleanedLines = lines[lines.length - 1] === "" ? lines.slice(0, -1) : lines;
|
|
405
413
|
const isAppending = cleanedLines.length > prevLogLengthRef.current;
|
|
406
414
|
prevLogLengthRef.current = cleanedLines.length;
|
|
@@ -495,13 +503,13 @@ function LogViewer({ log, height = "unset", width, roundedBottom = false, lineNu
|
|
|
495
503
|
const visibleCount = Math.ceil(clientHeight / LINE_HEIGHT) + 40;
|
|
496
504
|
setVisibleStart(0);
|
|
497
505
|
setVisibleEnd(Math.min(parsedLog.length, visibleCount));
|
|
498
|
-
|
|
506
|
+
scrollToTop();
|
|
499
507
|
} else {
|
|
500
508
|
setVisibleStart(0);
|
|
501
509
|
setVisibleEnd(50);
|
|
502
510
|
}
|
|
503
511
|
};
|
|
504
|
-
const ExpandButtonIcon = fullscreen ?
|
|
512
|
+
const ExpandButtonIcon = fullscreen ? FaCompress : FaExpand;
|
|
505
513
|
const expandButtonText = fullscreen ? "Collapse" : "Expand";
|
|
506
514
|
const paddingTop = visibleStart * LINE_HEIGHT;
|
|
507
515
|
const paddingBottom = Math.max(0, parsedLog.length - visibleEnd) * LINE_HEIGHT;
|
|
@@ -533,10 +541,10 @@ function LogViewer({ log, height = "unset", width, roundedBottom = false, lineNu
|
|
|
533
541
|
type: "button",
|
|
534
542
|
className: "btn btn-neutral",
|
|
535
543
|
onClick: () => {
|
|
536
|
-
|
|
544
|
+
scrollToTop();
|
|
537
545
|
updateFollow(false);
|
|
538
546
|
},
|
|
539
|
-
children: [/* @__PURE__ */ jsx(
|
|
547
|
+
children: [/* @__PURE__ */ jsx(FaArrowUp, {}), /* @__PURE__ */ jsx("span", { children: t.top })]
|
|
540
548
|
}), /* @__PURE__ */ jsxs("button", {
|
|
541
549
|
type: "button",
|
|
542
550
|
className: "btn btn-neutral",
|
|
@@ -549,7 +557,7 @@ function LogViewer({ log, height = "unset", width, roundedBottom = false, lineNu
|
|
|
549
557
|
});
|
|
550
558
|
} else updateFollow(false);
|
|
551
559
|
},
|
|
552
|
-
children: [/* @__PURE__ */ jsx(
|
|
560
|
+
children: [/* @__PURE__ */ jsx(FaArrowDown, {}), /* @__PURE__ */ jsx("span", { children: !follow ? "Follow" : "Following" })]
|
|
553
561
|
})] }),
|
|
554
562
|
selectedLines.size > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
555
563
|
className: "relative flex items-center h-full",
|
|
@@ -557,20 +565,20 @@ function LogViewer({ log, height = "unset", width, roundedBottom = false, lineNu
|
|
|
557
565
|
type: "button",
|
|
558
566
|
className: "btn btn-neutral",
|
|
559
567
|
onClick: copySelectedLines,
|
|
560
|
-
children: [copied ? /* @__PURE__ */ jsx(
|
|
568
|
+
children: [copied ? /* @__PURE__ */ jsx(FaCheck, { className: "text-green-500" }) : /* @__PURE__ */ jsx(FiCopy, {}), /* @__PURE__ */ jsx("span", { children: copied ? tCommon.copied : t.copyLines(selectedLines.size) })]
|
|
561
569
|
}), /* @__PURE__ */ jsx("button", {
|
|
562
570
|
type: "button",
|
|
563
571
|
"aria-label": t.clearSelection,
|
|
564
572
|
className: "absolute -top-1.5 -right-1.5 btn-neutral rounded-full p-1 border transition-colors shadow-sm cursor-pointer z-10",
|
|
565
573
|
onClick: () => setSelectedLines(/* @__PURE__ */ new Set()),
|
|
566
574
|
title: t.clearSelection,
|
|
567
|
-
children: /* @__PURE__ */ jsx(
|
|
575
|
+
children: /* @__PURE__ */ jsx(FiX, { className: "text-[10px]" })
|
|
568
576
|
})]
|
|
569
577
|
}) : /* @__PURE__ */ jsxs("button", {
|
|
570
578
|
type: "button",
|
|
571
579
|
className: "btn btn-neutral",
|
|
572
580
|
onClick: copyAllLogs,
|
|
573
|
-
children: [copied ? /* @__PURE__ */ jsx(
|
|
581
|
+
children: [copied ? /* @__PURE__ */ jsx(FaCheck, { className: "text-green-500" }) : /* @__PURE__ */ jsx(FiCopy, {}), /* @__PURE__ */ jsx("span", { children: copied ? tCommon.copied : t.copyAll })]
|
|
574
582
|
}),
|
|
575
583
|
additionalLeftBarComponents,
|
|
576
584
|
enableWorkflowCommands && /* @__PURE__ */ jsx("button", {
|
|
@@ -587,7 +595,7 @@ function LogViewer({ log, height = "unset", width, roundedBottom = false, lineNu
|
|
|
587
595
|
className: "btn btn-neutral",
|
|
588
596
|
onClick: () => setTimeRangeOpen((o) => !o),
|
|
589
597
|
children: [
|
|
590
|
-
/* @__PURE__ */ jsx(
|
|
598
|
+
/* @__PURE__ */ jsx(FiClock, {}),
|
|
591
599
|
/* @__PURE__ */ jsx("span", { children: t.timeRange }),
|
|
592
600
|
(timeRangeFrom !== "" || timeRangeTo !== "") && /* @__PURE__ */ jsx("span", {
|
|
593
601
|
title: t.timeRangeActive,
|
|
@@ -672,7 +680,7 @@ function LogViewer({ log, height = "unset", width, roundedBottom = false, lineNu
|
|
|
672
680
|
href: logUrl,
|
|
673
681
|
className: cx(!logUrl && "disabled", "btn btn-neutral"),
|
|
674
682
|
download: true,
|
|
675
|
-
children: [/* @__PURE__ */ jsx(
|
|
683
|
+
children: [/* @__PURE__ */ jsx(FaCloudDownloadAlt, {}), /* @__PURE__ */ jsx("span", { children: t.download })]
|
|
676
684
|
}),
|
|
677
685
|
/* @__PURE__ */ jsxs("button", {
|
|
678
686
|
type: "button",
|
|
@@ -731,10 +739,10 @@ function LogViewer({ log, height = "unset", width, roundedBottom = false, lineNu
|
|
|
731
739
|
transform: "translateX(-50%)"
|
|
732
740
|
},
|
|
733
741
|
onClick: copyHighlightedText,
|
|
734
|
-
children: copied ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(
|
|
742
|
+
children: copied ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(FaCheck, { className: "text-green-500 w-3.5 h-3.5" }), /* @__PURE__ */ jsx("span", { children: tCommon.copied })] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(FiCopy, { className: "w-3.5 h-3.5" }), /* @__PURE__ */ jsx("span", { children: tCommon.copy })] })
|
|
735
743
|
}),
|
|
736
744
|
(additionalBottomLeftBarComponents || additionalBottomRightBarComponents) && /* @__PURE__ */ jsxs("div", {
|
|
737
|
-
className:
|
|
745
|
+
className: "flex theme-panel select-none items-center gap-x-2 p-2",
|
|
738
746
|
children: [/* @__PURE__ */ jsx("div", {
|
|
739
747
|
className: cx("w-full flex flex-row gap-x-2 items-center", hideExpand && "justify-between"),
|
|
740
748
|
children: /* @__PURE__ */ jsx("div", {
|
|
@@ -31,9 +31,9 @@ function highlightSegments(segments, searchTerm) {
|
|
|
31
31
|
if (!searchTerm) return segments;
|
|
32
32
|
const haystack = segments.map((segment) => segment.content).join("").toLowerCase();
|
|
33
33
|
const needle = searchTerm.toLowerCase();
|
|
34
|
-
if (!haystack.includes(needle)) return segments;
|
|
35
|
-
const matchStarts = [];
|
|
36
34
|
let found = haystack.indexOf(needle);
|
|
35
|
+
if (found === -1) return segments;
|
|
36
|
+
const matchStarts = [];
|
|
37
37
|
while (found !== -1) {
|
|
38
38
|
matchStarts.push(found);
|
|
39
39
|
found = haystack.indexOf(needle, found + needle.length);
|