@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
package/dist/form/lib.js
CHANGED
|
@@ -23,56 +23,44 @@ function enforceOneMustBeTrue(items, options, promoteIndex) {
|
|
|
23
23
|
const fieldSchema = options[fieldKey];
|
|
24
24
|
const opts = typeof fieldSchema === "object" && fieldSchema && "options" in fieldSchema ? fieldSchema.options : void 0;
|
|
25
25
|
const trueOption = typeof opts === "object" && opts && !Array.isArray(opts) && "onOption" in opts ? opts.onOption || true : true;
|
|
26
|
-
|
|
26
|
+
const hasTrue = items.some((item) => item[fieldKey] === trueOption);
|
|
27
|
+
const promoted = items[clampedIndex];
|
|
28
|
+
if (!hasTrue && promoted) promoted[fieldKey] = trueOption;
|
|
27
29
|
}
|
|
28
30
|
return items;
|
|
29
31
|
}
|
|
30
32
|
function flattenGroups(schema) {
|
|
31
33
|
if (!schema || typeof schema !== "object") return {};
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const flattenedGroup = flattenGroups(entry.options);
|
|
38
|
-
flattenedFields = {
|
|
39
|
-
...flattenedFields,
|
|
40
|
-
...flattenedGroup
|
|
41
|
-
};
|
|
42
|
-
} else if (entry?.type === "object") {
|
|
43
|
-
const flattenedGroup = flattenGroups(entry.options);
|
|
44
|
-
flattenedFields = {
|
|
45
|
-
...flattenedFields,
|
|
46
|
-
[key]: flattenedGroup
|
|
47
|
-
};
|
|
48
|
-
} else flattenedFields[key] = entry;
|
|
49
|
-
});
|
|
50
|
-
return flattenedFields;
|
|
34
|
+
const flattened = {};
|
|
35
|
+
for (const [key, entry] of Object.entries(schema)) if (entry?.type === "group") Object.assign(flattened, flattenGroups(entry.options));
|
|
36
|
+
else if (entry?.type === "object") flattened[key] = flattenGroups(entry.options);
|
|
37
|
+
else flattened[key] = entry;
|
|
38
|
+
return flattened;
|
|
51
39
|
}
|
|
52
40
|
/**Not a pure function. Edits 'obj' passed into function */
|
|
53
41
|
function impureSetValueFromPath(obj, path, value) {
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
obj[pathArray[0]] = value;
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
42
|
+
const parents = path.split(".");
|
|
43
|
+
const leaf = parents.pop() ?? "";
|
|
59
44
|
let current = obj;
|
|
60
|
-
for (
|
|
61
|
-
const segment = pathArray[i];
|
|
45
|
+
for (const segment of parents) {
|
|
62
46
|
const arrayMatch = segment.match(/^(.+)\[(\d+)\]$/);
|
|
63
47
|
if (arrayMatch) {
|
|
64
|
-
const key = arrayMatch
|
|
65
|
-
const index = Number(
|
|
48
|
+
const [, key = "", indexText] = arrayMatch;
|
|
49
|
+
const index = Number(indexText);
|
|
66
50
|
if (!current[key]) current[key] = [];
|
|
67
51
|
const list = current[key];
|
|
68
|
-
|
|
69
|
-
|
|
52
|
+
let item = list[index];
|
|
53
|
+
if (!item) {
|
|
54
|
+
item = {};
|
|
55
|
+
list[index] = item;
|
|
56
|
+
}
|
|
57
|
+
current = item;
|
|
70
58
|
} else {
|
|
71
59
|
if (!current[segment]) current[segment] = {};
|
|
72
60
|
current = current[segment];
|
|
73
61
|
}
|
|
74
62
|
}
|
|
75
|
-
current[
|
|
63
|
+
current[leaf] = value;
|
|
76
64
|
}
|
|
77
65
|
function initializeValues(options, srcData = {}, blankDefault) {
|
|
78
66
|
if (!options || typeof options !== "object") return;
|
|
@@ -82,25 +70,13 @@ function initializeValues(options, srcData = {}, blankDefault) {
|
|
|
82
70
|
return Object.keys(schema).reduce((acc, field) => {
|
|
83
71
|
if (field.startsWith("$")) return acc;
|
|
84
72
|
const fieldSchema = schema[field] ?? EMPTY_ENTRY;
|
|
85
|
-
|
|
73
|
+
const flattenStep = fieldSchema.type === "step" && schema["$meta"]?.wizard?.flatten !== false;
|
|
74
|
+
if (fieldSchema.type === "group" || flattenStep) {
|
|
86
75
|
const values = initializeValues(fieldSchema.options, data);
|
|
87
|
-
|
|
88
|
-
Object.keys(values).forEach((key) => {
|
|
89
|
-
acc[key] = data[key] ?? values[key];
|
|
90
|
-
});
|
|
91
|
-
return acc;
|
|
92
|
-
}
|
|
93
|
-
if (fieldSchema.type === "step") {
|
|
94
|
-
if (schema["$meta"]?.wizard?.flatten !== false) {
|
|
95
|
-
const values = initializeValues(fieldSchema.options, data);
|
|
96
|
-
if (!values) return acc;
|
|
97
|
-
Object.keys(values).forEach((key) => {
|
|
98
|
-
acc[key] = data[key] ?? values[key];
|
|
99
|
-
});
|
|
100
|
-
} else acc[field] = initializeValues(fieldSchema.options, asRecord(data[field]));
|
|
76
|
+
for (const key of Object.keys(values ?? {})) acc[key] = data[key] ?? values?.[key];
|
|
101
77
|
return acc;
|
|
102
78
|
}
|
|
103
|
-
if (fieldSchema.type === "object") {
|
|
79
|
+
if (fieldSchema.type === "step" || fieldSchema.type === "object") {
|
|
104
80
|
acc[field] = initializeValues(fieldSchema.options, asRecord(data[field]));
|
|
105
81
|
return acc;
|
|
106
82
|
}
|
|
@@ -110,14 +86,12 @@ function initializeValues(options, srcData = {}, blankDefault) {
|
|
|
110
86
|
acc[field] = Array.isArray(listData) ? [...listData] : [];
|
|
111
87
|
return acc;
|
|
112
88
|
}
|
|
113
|
-
|
|
114
|
-
if (Array.isArray(listData)) for (let i = 0; i < listData.length; i++) arr.push(initializeValues(fieldSchema.options, asRecord(listData[i])));
|
|
115
|
-
acc[field] = arr;
|
|
89
|
+
acc[field] = Array.isArray(listData) ? listData.map((item) => initializeValues(fieldSchema.options, asRecord(item))) : [];
|
|
116
90
|
return acc;
|
|
117
91
|
}
|
|
118
92
|
if (data[field] !== void 0) {
|
|
119
93
|
acc[field] = data[field];
|
|
120
|
-
if ((fieldSchema.type === "dropdown" || fieldSchema.type === "storage") && fieldSchema.secondaryField &&
|
|
94
|
+
if ((fieldSchema.type === "dropdown" || fieldSchema.type === "storage") && fieldSchema.secondaryField && Array.isArray(fieldSchema.options)) {
|
|
121
95
|
const option = findSecondaryOption(fieldSchema.options, data[field]);
|
|
122
96
|
applySecondaryField(fieldSchema.secondaryField, option?.secondaryValue, (secondaryField, secondaryValue) => {
|
|
123
97
|
if (!(fieldSchema.type === "storage" && Object.hasOwn(options, secondaryField) && source[secondaryField] !== void 0)) impureSetValueFromPath(acc, secondaryField, secondaryValue);
|
|
@@ -135,8 +109,8 @@ function initializeValues(options, srcData = {}, blankDefault) {
|
|
|
135
109
|
else acc[field] = false;
|
|
136
110
|
}
|
|
137
111
|
if (fieldSchema.type === "dropdown") {
|
|
138
|
-
if (
|
|
139
|
-
if (fieldSchema.
|
|
112
|
+
if (Array.isArray(fieldSchema.options) && fieldSchema.options.length > 0) acc[field] = fieldSchema.options[0].value;
|
|
113
|
+
if (fieldSchema.secondaryField && Array.isArray(fieldSchema.options)) {
|
|
140
114
|
const option = fieldSchema.options.find((option) => option.value === data[field]);
|
|
141
115
|
const secondaryField = Array.isArray(fieldSchema.secondaryField) ? fieldSchema.secondaryField : [fieldSchema.secondaryField];
|
|
142
116
|
const secondaryValue = Array.isArray(option?.secondaryValue) ? option?.secondaryValue : [option?.secondaryValue];
|
|
@@ -15,7 +15,8 @@ export interface RuntimeFieldExtensions {
|
|
|
15
15
|
one_must_be_true?: boolean;
|
|
16
16
|
computeOn?: boolean;
|
|
17
17
|
labelPosition?: LabelPosition;
|
|
18
|
-
|
|
18
|
+
/** Path of another field; when its value changes, this field's value is cleared. */
|
|
19
|
+
resetOnChange?: string;
|
|
19
20
|
options?: unknown;
|
|
20
21
|
}
|
|
21
22
|
export interface BaseField extends RuntimeFieldExtensions {
|
|
@@ -36,14 +37,13 @@ interface WizardConfig {
|
|
|
36
37
|
/** Navigation UI options */
|
|
37
38
|
navigation?: {
|
|
38
39
|
showSteps?: boolean;
|
|
39
|
-
showProgress?: boolean;
|
|
40
40
|
allowJump?: boolean;
|
|
41
41
|
hideStepNumbers?: boolean;
|
|
42
42
|
};
|
|
43
43
|
/** Label for the final submit button */
|
|
44
44
|
submitLabel?: string;
|
|
45
|
-
/**
|
|
46
|
-
|
|
45
|
+
/** Flatten step fields into top-level inputs (default: true). Set false to keep each step's fields under its key. */
|
|
46
|
+
flatten?: boolean;
|
|
47
47
|
}
|
|
48
48
|
interface StepField extends BaseField {
|
|
49
49
|
type: 'step';
|
|
@@ -51,7 +51,6 @@ interface StepField extends BaseField {
|
|
|
51
51
|
description?: string;
|
|
52
52
|
options: Record<string, AnyField>;
|
|
53
53
|
validateOnNext?: boolean;
|
|
54
|
-
canSkip?: boolean;
|
|
55
54
|
nextLabel?: string;
|
|
56
55
|
prevLabel?: string;
|
|
57
56
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Options for a field whose list is keyed by another field's value: with
|
|
2
|
+
* depends_on, the list follows whatever is currently chosen at that path. */
|
|
3
|
+
export declare function dependentOptions<T>(options: T[] | Record<string, T[]>, dependsOn: string | undefined, values: Record<string, unknown>): {
|
|
4
|
+
options: T[];
|
|
5
|
+
parentValue: unknown;
|
|
6
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getValueUsingPath } from "./getValueUsingPath.js";
|
|
2
|
+
//#region src/form/utils/dependentOptions.ts
|
|
3
|
+
/** Options for a field whose list is keyed by another field's value: with
|
|
4
|
+
* depends_on, the list follows whatever is currently chosen at that path. */
|
|
5
|
+
function dependentOptions(options, dependsOn, values) {
|
|
6
|
+
if (Array.isArray(options)) return {
|
|
7
|
+
options,
|
|
8
|
+
parentValue: void 0
|
|
9
|
+
};
|
|
10
|
+
const parentValue = dependsOn ? getValueUsingPath(values, dependsOn) : void 0;
|
|
11
|
+
if (parentValue === void 0 || parentValue === null) return {
|
|
12
|
+
options: [],
|
|
13
|
+
parentValue
|
|
14
|
+
};
|
|
15
|
+
return {
|
|
16
|
+
options: options[String(parentValue)] ?? [],
|
|
17
|
+
parentValue
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { dependentOptions };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/** `index` replaces a path's `[index]` placeholder when the field sits in a list row. */
|
|
2
|
+
export declare function getParentValue(index: number | undefined, targetField: unknown, values: object, field: {
|
|
2
3
|
depends_on?: string | undefined;
|
|
3
4
|
}): unknown;
|
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
import { getValueUsingPath } from "./getValueUsingPath.js";
|
|
2
2
|
import { checkShowIfObject } from "./checkShowIfObject.js";
|
|
3
3
|
//#region src/form/utils/getParentValue.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const dependsOnValue = getValueUsingPath(values, dependentPath);
|
|
4
|
+
/** `index` replaces a path's `[index]` placeholder when the field sits in a list row. */
|
|
5
|
+
function getParentValue(index, targetField, values, field) {
|
|
6
|
+
const atIndex = (path) => index === void 0 ? path : path.replace("[index]", `[${index}]`);
|
|
7
|
+
if (typeof targetField === "object" && targetField !== null && !Array.isArray(targetField)) return !checkShowIfObject(targetField, values, index).includes(false);
|
|
8
|
+
if (field.depends_on) {
|
|
9
|
+
const dependsOnValue = getValueUsingPath(values, atIndex(field.depends_on));
|
|
11
10
|
const dependsOnText = dependsOnValue === null || dependsOnValue === void 0 ? void 0 : String(dependsOnValue);
|
|
12
|
-
if (Array.isArray(targetField))
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} else {
|
|
16
|
-
dependentPath = typeof targetField === "string" ? targetField : "";
|
|
17
|
-
if (index !== void 0 && typeof targetField === "string") dependentPath = targetField.replace("[index]", `[${index}]`);
|
|
18
|
-
parentValue = getValueUsingPath(values, dependentPath);
|
|
11
|
+
if (Array.isArray(targetField)) return targetField.includes(dependsOnValue) || targetField.includes(dependsOnText);
|
|
12
|
+
if (typeof targetField === "string") return dependsOnText !== void 0 && targetField.includes(dependsOnText);
|
|
13
|
+
return targetField === dependsOnValue;
|
|
19
14
|
}
|
|
20
|
-
return
|
|
15
|
+
return getValueUsingPath(values, typeof targetField === "string" ? atIndex(targetField) : "");
|
|
21
16
|
}
|
|
22
17
|
//#endregion
|
|
23
18
|
export { getParentValue };
|
|
@@ -10,7 +10,7 @@ function getValueUsingPath(obj, path) {
|
|
|
10
10
|
const [arrayKey = "", indexStr = ""] = key.split("[");
|
|
11
11
|
const index = parseInt(indexStr.slice(0, -1), 10);
|
|
12
12
|
const list = container[arrayKey];
|
|
13
|
-
if (!Array.isArray(list) || isNaN(index)) return;
|
|
13
|
+
if (!Array.isArray(list) || Number.isNaN(index)) return;
|
|
14
14
|
current = list[index];
|
|
15
15
|
} else {
|
|
16
16
|
if (!(key in container)) return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { WorkflowJob } from './types.js';
|
|
2
2
|
interface AnnotationBannerProps {
|
|
3
|
-
executedJobs: Record<string, WorkflowJob
|
|
3
|
+
executedJobs: Record<string, WorkflowJob>;
|
|
4
4
|
}
|
|
5
5
|
export declare function AnnotationBanner({ executedJobs }: AnnotationBannerProps): import("react").JSX.Element | null;
|
|
6
6
|
export {};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BiError } from "../icons/bi/BiError.js";
|
|
2
|
+
import { FaChevronDown } from "../icons/fa/FaChevronDown.js";
|
|
3
|
+
import { FaInfoCircle } from "../icons/fa/FaInfoCircle.js";
|
|
4
|
+
import { IoWarningOutline } from "../icons/io5/IoWarningOutline.js";
|
|
5
|
+
import { LuChevronRight } from "../icons/lu/LuChevronRight.js";
|
|
2
6
|
import { keyedByContent } from "../components/keys.js";
|
|
3
7
|
import cx from "classnames";
|
|
4
8
|
import { useState } from "react";
|
|
@@ -11,21 +15,21 @@ var typeOrder = {
|
|
|
11
15
|
};
|
|
12
16
|
var typeConfig = {
|
|
13
17
|
error: {
|
|
14
|
-
icon:
|
|
18
|
+
icon: BiError,
|
|
15
19
|
label: "Error",
|
|
16
20
|
accentClass: "text-red-500",
|
|
17
21
|
bgClass: "bg-red-500/5 dark:bg-red-500/10",
|
|
18
22
|
countBg: "bg-red-500/15 text-red-700 dark:text-red-400"
|
|
19
23
|
},
|
|
20
24
|
warning: {
|
|
21
|
-
icon:
|
|
25
|
+
icon: IoWarningOutline,
|
|
22
26
|
label: "Warning",
|
|
23
27
|
accentClass: "text-yellow-500",
|
|
24
28
|
bgClass: "bg-yellow-500/5 dark:bg-yellow-500/10",
|
|
25
29
|
countBg: "bg-yellow-500/15 text-yellow-700 dark:text-yellow-400"
|
|
26
30
|
},
|
|
27
31
|
notice: {
|
|
28
|
-
icon:
|
|
32
|
+
icon: FaInfoCircle,
|
|
29
33
|
label: "Notice",
|
|
30
34
|
accentClass: "text-blue-500",
|
|
31
35
|
bgClass: "bg-blue-500/5 dark:bg-blue-500/10",
|
|
@@ -48,6 +52,7 @@ function collectAnnotations(executedJobs, parentPath) {
|
|
|
48
52
|
title: annotation.title,
|
|
49
53
|
file: annotation.file,
|
|
50
54
|
line: annotation.line,
|
|
55
|
+
id: annotation.id,
|
|
51
56
|
jobName: fullJobName,
|
|
52
57
|
stepName: step?.name,
|
|
53
58
|
stepIndex
|
|
@@ -62,7 +67,6 @@ function collectAnnotations(executedJobs, parentPath) {
|
|
|
62
67
|
}
|
|
63
68
|
function AnnotationBanner({ executedJobs }) {
|
|
64
69
|
const [expanded, setExpanded] = useState(false);
|
|
65
|
-
if (!executedJobs) return null;
|
|
66
70
|
const annotations = collectAnnotations(executedJobs);
|
|
67
71
|
if (annotations.length === 0) return null;
|
|
68
72
|
const counts = {
|
|
@@ -71,7 +75,7 @@ function AnnotationBanner({ executedJobs }) {
|
|
|
71
75
|
notice: 0
|
|
72
76
|
};
|
|
73
77
|
for (const a of annotations) counts[a.type]++;
|
|
74
|
-
const ChevronIcon = expanded ?
|
|
78
|
+
const ChevronIcon = expanded ? FaChevronDown : LuChevronRight;
|
|
75
79
|
return /* @__PURE__ */ jsxs("div", {
|
|
76
80
|
className: cx("rounded-lg border border-[var(--theme-border)] overflow-hidden", "bg-[var(--theme-panel-bg)]"),
|
|
77
81
|
children: [/* @__PURE__ */ jsxs("button", {
|
package/dist/graph/Collapse.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function Collapse({ expanded,
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export declare function Collapse({ expanded, id, children, }: {
|
|
3
3
|
expanded: boolean;
|
|
4
|
+
id?: string;
|
|
4
5
|
children: ReactNode;
|
|
5
|
-
releaseOverflow?: boolean;
|
|
6
6
|
}): import("react").JSX.Element;
|
package/dist/graph/Collapse.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
1
|
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { AnimatePresence, motion } from "framer-motion";
|
|
4
3
|
//#region src/graph/Collapse.tsx
|
|
5
|
-
function Collapse({ expanded,
|
|
6
|
-
const [overflowVisible, setOverflowVisible] = useState(false);
|
|
4
|
+
function Collapse({ expanded, id, children }) {
|
|
7
5
|
return /* @__PURE__ */ jsx(AnimatePresence, {
|
|
8
6
|
initial: false,
|
|
9
7
|
children: expanded && /* @__PURE__ */ jsx(motion.div, {
|
|
8
|
+
id,
|
|
10
9
|
initial: {
|
|
11
10
|
height: 0,
|
|
12
11
|
opacity: 0
|
|
@@ -28,11 +27,7 @@ function Collapse({ expanded, children, releaseOverflow = true }) {
|
|
|
28
27
|
1
|
|
29
28
|
]
|
|
30
29
|
},
|
|
31
|
-
|
|
32
|
-
onAnimationStart: () => setOverflowVisible(false),
|
|
33
|
-
onAnimationComplete: () => {
|
|
34
|
-
if (expanded && releaseOverflow) setOverflowVisible(true);
|
|
35
|
-
},
|
|
30
|
+
className: "overflow-hidden",
|
|
36
31
|
children
|
|
37
32
|
}, "collapse")
|
|
38
33
|
});
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type RunLink } from './types.js';
|
|
2
|
+
import { type RunLink, type WorkflowJob } from './types.js';
|
|
3
3
|
export type ViewMode = 'dag' | 'tree';
|
|
4
|
+
export declare const addCleanupSteps: ({ jobs }: {
|
|
5
|
+
jobs: Record<string, WorkflowJob>;
|
|
6
|
+
}) => Record<string, WorkflowJob>;
|
|
4
7
|
interface GraphRun {
|
|
5
8
|
id?: string | undefined;
|
|
6
9
|
number?: number | undefined;
|
|
@@ -13,17 +16,15 @@ interface GraphRun {
|
|
|
13
16
|
executedJobs?: Record<string, unknown> | undefined;
|
|
14
17
|
links?: Record<string, RunLink> | undefined;
|
|
15
18
|
}
|
|
16
|
-
export default function DependencyGraph({ run, preview,
|
|
19
|
+
export default function DependencyGraph({ run, preview, removeBorder, viewMode, setViewMode, }: {
|
|
17
20
|
run: GraphRun;
|
|
18
21
|
preview?: boolean;
|
|
19
|
-
initialScale?: number;
|
|
20
22
|
removeBorder?: boolean | undefined;
|
|
21
23
|
viewMode?: ViewMode;
|
|
22
24
|
setViewMode?: (mode: ViewMode) => void;
|
|
23
25
|
}): React.JSX.Element | undefined;
|
|
24
26
|
export declare function DependencyGraphPreview(inputs: {
|
|
25
27
|
yml?: Record<string, unknown>;
|
|
26
|
-
initialScale?: number;
|
|
27
28
|
removeBorder?: boolean;
|
|
28
29
|
}): React.JSX.Element;
|
|
29
30
|
export {};
|