@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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BiError } from "../icons/bi/BiError.js";
|
|
2
|
+
import { HiMiniCheckCircle } from "../icons/hi2/HiMiniCheckCircle.js";
|
|
3
|
+
import { FaCircleNotch } from "../icons/fa/FaCircleNotch.js";
|
|
4
|
+
import cx from "classnames";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/StatusIcons.tsx
|
|
7
|
+
function SuccessCheckmark({ className, colored = true }) {
|
|
8
|
+
return /* @__PURE__ */ jsx(HiMiniCheckCircle, { className: cx(colored && "text-green-500", className) });
|
|
9
|
+
}
|
|
10
|
+
function ErrorCheckmark({ className, colored = true }) {
|
|
11
|
+
return /* @__PURE__ */ jsx(BiError, { className: cx(colored && "text-red-400", className) });
|
|
12
|
+
}
|
|
13
|
+
function LoaderIcon({ className, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx(FaCircleNotch, {
|
|
15
|
+
className: cx("animate-spin", className),
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { ErrorCheckmark, LoaderIcon, SuccessCheckmark };
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { TOOLTIP_ID } from "./Tooltip.js";
|
|
2
2
|
import { Switch } from "@headlessui/react";
|
|
3
3
|
import cx from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { useState } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/SwitchToggle.tsx
|
|
7
|
-
function SwitchToggle({ onChange, id, "aria-describedby": describedBy, value
|
|
7
|
+
function SwitchToggle({ onChange, id, "aria-describedby": describedBy, value, yesLabel = "Yes", noLabel = "No", disabled = false, datatip = "", invalid = false }) {
|
|
8
8
|
const [enabled, setEnabled] = useState(value ?? false);
|
|
9
9
|
const [isFocused, setIsFocused] = useState(false);
|
|
10
10
|
const setIsEnabled = (e) => {
|
|
11
11
|
setEnabled(e);
|
|
12
12
|
onChange(e);
|
|
13
13
|
};
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
if (value !== void 0) setEnabled(value);
|
|
16
|
-
}, [value]);
|
|
17
14
|
const checked = value ?? enabled;
|
|
18
15
|
return /* @__PURE__ */ jsx("div", {
|
|
19
16
|
...datatip ? {
|
|
@@ -25,6 +22,7 @@ function SwitchToggle({ onChange, id, "aria-describedby": describedBy, value = v
|
|
|
25
22
|
id,
|
|
26
23
|
"aria-describedby": describedBy,
|
|
27
24
|
checked,
|
|
25
|
+
disabled,
|
|
28
26
|
onChange: setIsEnabled,
|
|
29
27
|
className: "text-white text-sm shadow-sm rounded-md cursor-pointer",
|
|
30
28
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -29,8 +29,6 @@ interface ITableProps {
|
|
|
29
29
|
roundedTop?: boolean;
|
|
30
30
|
rounded?: boolean;
|
|
31
31
|
roundedBottom?: boolean;
|
|
32
|
-
Item?: typeof Item;
|
|
33
|
-
Header?: typeof Header;
|
|
34
32
|
isLoading?: boolean;
|
|
35
33
|
/** Forwarded to the `<table>`, for attributes that must sit on the element owning
|
|
36
34
|
* the rows — `role='grid'`, aria-activedescendant, aria-rowcount. `className` is
|
|
@@ -46,7 +44,7 @@ export declare namespace Table {
|
|
|
46
44
|
export { Header };
|
|
47
45
|
export { Item };
|
|
48
46
|
}
|
|
49
|
-
export declare function CompactTable({ wrapperClassName, className, tbodyClassName, children, roundedTop, rounded, roundedBottom, }: ITableProps): React.JSX.Element;
|
|
47
|
+
export declare function CompactTable({ wrapperClassName, className, tbodyClassName, children, roundedTop, rounded, roundedBottom, }: Pick<ITableProps, 'wrapperClassName' | 'className' | 'tbodyClassName' | 'children' | 'roundedTop' | 'rounded' | 'roundedBottom'>): React.JSX.Element;
|
|
50
48
|
export declare namespace CompactTable {
|
|
51
49
|
export { Header };
|
|
52
50
|
export { CompactItem as Item };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HiQuestionMarkCircle } from "../icons/hi/HiQuestionMarkCircle.js";
|
|
2
2
|
import { keyedByContent } from "./keys.js";
|
|
3
3
|
import { Fragment } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -84,14 +84,14 @@ function TooltipInfo({ text, className = "", children, place = "top", tabIndex }
|
|
|
84
84
|
if (children || !text) return /* @__PURE__ */ jsx("div", {
|
|
85
85
|
...anchorProps,
|
|
86
86
|
tabIndex,
|
|
87
|
-
children: children || /* @__PURE__ */ jsx(
|
|
87
|
+
children: children || /* @__PURE__ */ jsx(HiQuestionMarkCircle, { className: "tooltip" })
|
|
88
88
|
});
|
|
89
89
|
return /* @__PURE__ */ jsx("div", {
|
|
90
90
|
...anchorProps,
|
|
91
91
|
role: "img",
|
|
92
92
|
"aria-label": text,
|
|
93
93
|
tabIndex: tabIndex ?? 0,
|
|
94
|
-
children: /* @__PURE__ */ jsx(
|
|
94
|
+
children: /* @__PURE__ */ jsx(HiQuestionMarkCircle, { className: "tooltip" })
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FaCaretDown } from "../icons/fa/FaCaretDown.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/dropdownUtils.tsx
|
|
4
4
|
function isCategory(option) {
|
|
5
|
-
return typeof option === "object" && option !== null &&
|
|
5
|
+
return typeof option === "object" && option !== null && "options" in option;
|
|
6
6
|
}
|
|
7
7
|
function isOption(option) {
|
|
8
8
|
return typeof option === "object" && "label" in option && "value" in option && !("category" in option);
|
|
@@ -12,7 +12,7 @@ function normalizeOption(option) {
|
|
|
12
12
|
label: option,
|
|
13
13
|
value: option
|
|
14
14
|
};
|
|
15
|
-
if (typeof option === "object" && option !== null &&
|
|
15
|
+
if (typeof option === "object" && option !== null && "options" in option) return {
|
|
16
16
|
category: option.category,
|
|
17
17
|
options: Array.isArray(option.options) ? option.options : []
|
|
18
18
|
};
|
|
@@ -30,12 +30,11 @@ function flattenOptions(options) {
|
|
|
30
30
|
}
|
|
31
31
|
return result;
|
|
32
32
|
}
|
|
33
|
+
var normalizeForMatch = (text) => String(text).toLowerCase().replace(/-/g, "");
|
|
33
34
|
function filterOption(option, query) {
|
|
34
35
|
if (query === "") return true;
|
|
35
|
-
const q =
|
|
36
|
-
|
|
37
|
-
const secondary = option.secondaryValue !== void 0 ? String(option.secondaryValue).toLowerCase().replace(/(-)/gm, "") : "";
|
|
38
|
-
return label.includes(q) || secondary.includes(q);
|
|
36
|
+
const q = normalizeForMatch(query);
|
|
37
|
+
return normalizeForMatch(option.label ?? "").includes(q) || option.secondaryValue !== void 0 && normalizeForMatch(option.secondaryValue).includes(q);
|
|
39
38
|
}
|
|
40
39
|
function toggleSetMember(set, member) {
|
|
41
40
|
const next = new Set(set);
|
|
@@ -94,7 +93,7 @@ function flattenDisplayOptions({ options, query, expandedCategories, collapsedLa
|
|
|
94
93
|
return flatOptions;
|
|
95
94
|
}
|
|
96
95
|
function DropdownCaret() {
|
|
97
|
-
return /* @__PURE__ */ jsx(
|
|
96
|
+
return /* @__PURE__ */ jsx(FaCaretDown, { className: "text-neutral-400 absolute top-1/2 -translate-y-1/2 right-0 mr-3 inset-y-0 flex items-center rounded-r-md focus:outline-hidden" });
|
|
98
97
|
}
|
|
99
98
|
//#endregion
|
|
100
99
|
export { DropdownCaret, filterOption, flattenDisplayOptions, flattenOptions, isCategory, isOption, toggleSetMember };
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
|
-
export declare function compactRelativeMinutes(minutes: number, t: {
|
|
3
|
-
now: string;
|
|
4
|
-
minutes: (n: number) => string;
|
|
5
|
-
hours: (n: number) => string;
|
|
6
|
-
days: (n: number) => string;
|
|
7
|
-
years: (n: number) => string;
|
|
8
|
-
}): string;
|
|
9
2
|
/** A clock that re-reads itself, so "5m" ages while the page sits open, with
|
|
10
3
|
* the abbreviated form a row has room for. */
|
|
11
4
|
export declare function useRelativeTime(): {
|
package/dist/duration.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Duration } from "luxon";
|
|
|
3
3
|
var UnitDisplay = { ja: "short" };
|
|
4
4
|
function durationToAbsHumanDuration(d) {
|
|
5
5
|
const duration = d.shiftTo("days", "hours", "minutes", "seconds").toObject();
|
|
6
|
-
if (
|
|
6
|
+
if (duration.seconds !== void 0) duration.seconds = Math.round(duration.seconds);
|
|
7
7
|
const cleanedDuration = Object.fromEntries(Object.entries(duration).filter(([, value]) => value !== 0).map(([key, value]) => [key, Math.abs(value)]));
|
|
8
8
|
if (Object.keys(cleanedDuration).length === 0) cleanedDuration.seconds = 0;
|
|
9
9
|
const human = Duration.fromObject(cleanedDuration);
|
package/dist/editor/Editor.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { IEditorProps } from './Monaco.js';
|
|
2
|
-
export default function Editor(
|
|
2
|
+
export default function Editor(props: IEditorProps): import("react").JSX.Element;
|
package/dist/editor/Editor.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Suspense, lazy } from "react";
|
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/editor/Editor.tsx
|
|
5
5
|
var MonacoEditor = lazy(() => import("./Monaco.js"));
|
|
6
|
-
function Editor(
|
|
6
|
+
function Editor(props) {
|
|
7
7
|
return /* @__PURE__ */ jsx(Suspense, {
|
|
8
8
|
fallback: /* @__PURE__ */ jsx(Loader, { text: "Loading editor..." }),
|
|
9
9
|
children: /* @__PURE__ */ jsx(MonacoEditor, { ...props })
|
|
@@ -10,7 +10,8 @@ function hasResetKeys(obj) {
|
|
|
10
10
|
}
|
|
11
11
|
function EditorField(props) {
|
|
12
12
|
const { field, label, labelPosition, disabled, onChange, tooltipComponent, spaceCompact, setFormDirty } = props;
|
|
13
|
-
const
|
|
13
|
+
const fieldName = field.name ?? "";
|
|
14
|
+
const [fieldState] = useField(fieldName);
|
|
14
15
|
const { setFieldValue, setFieldTouched, values } = useFormikContext();
|
|
15
16
|
const debounceRef = useRef(null);
|
|
16
17
|
const touchedRef = useRef(false);
|
|
@@ -18,9 +19,9 @@ function EditorField(props) {
|
|
|
18
19
|
touchedRef.current = true;
|
|
19
20
|
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
20
21
|
debounceRef.current = setTimeout(() => {
|
|
21
|
-
|
|
22
|
-
setFieldTouched(
|
|
23
|
-
setFieldValue(
|
|
22
|
+
onChange?.(val);
|
|
23
|
+
setFieldTouched(fieldName, true);
|
|
24
|
+
setFieldValue(fieldName, val);
|
|
24
25
|
setFormDirty(true);
|
|
25
26
|
}, 500);
|
|
26
27
|
};
|
|
@@ -30,7 +31,6 @@ function EditorField(props) {
|
|
|
30
31
|
const randomKey = Math.random().toString(36).substring(7);
|
|
31
32
|
return editorKeyPostfix || randomKey;
|
|
32
33
|
}, [editorKeyPostfix]);
|
|
33
|
-
const value = fieldState.value;
|
|
34
34
|
return /* @__PURE__ */ jsx(FieldWrapper, {
|
|
35
35
|
optional: field.optional,
|
|
36
36
|
label,
|
|
@@ -40,13 +40,13 @@ function EditorField(props) {
|
|
|
40
40
|
children: /* @__PURE__ */ jsx(Editor, {
|
|
41
41
|
ariaLabel: label,
|
|
42
42
|
height: "200px",
|
|
43
|
-
path:
|
|
44
|
-
...touchedRef.current ? {} : { value },
|
|
43
|
+
path: fieldName,
|
|
44
|
+
...touchedRef.current ? {} : { value: fieldState.value },
|
|
45
45
|
className: cx("bg-(--theme-input-bg) w-11 border focus:border rounded text-[10px] leading-4 pl-[6px]", disabled && "opacity-75"),
|
|
46
46
|
readOnly: disabled,
|
|
47
47
|
onChange: handleChange,
|
|
48
48
|
language: field.options?.language || "shell"
|
|
49
|
-
},
|
|
49
|
+
}, fieldName + postfixKey)
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { useNotify, useStrings, useWorkflowEngine } from "../components/Provider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { FaCheck } from "../icons/fa/FaCheck.js";
|
|
3
|
+
import { FiCopy } from "../icons/fi/FiCopy.js";
|
|
4
|
+
import { LuEye } from "../icons/lu/LuEye.js";
|
|
5
|
+
import { LuEyeOff } from "../icons/lu/LuEyeOff.js";
|
|
3
6
|
import SwitchToggleSmall from "../components/SwitchToggleSmall.js";
|
|
4
7
|
import Editor from "./Editor.js";
|
|
5
8
|
import { flattenGroups, impureSetValueFromPath } from "../form/lib.js";
|
|
@@ -9,7 +12,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
12
|
//#region src/editor/FormCodePanel.tsx
|
|
10
13
|
var isObject = (value) => typeof value === "object" && value !== null;
|
|
11
14
|
var shouldIgnoreField = (engine, fieldSchema, inputs, arrayIndex) => {
|
|
12
|
-
if (!fieldSchema
|
|
15
|
+
if (!fieldSchema["ignore"] || !fieldSchema["hidden"]) return false;
|
|
13
16
|
if (!engine.isReady()) return false;
|
|
14
17
|
return engine.evaluate({
|
|
15
18
|
inputs,
|
|
@@ -24,35 +27,31 @@ var filterFields = (engine, formJSON, data, prefix, rootData, arrayIndex) => {
|
|
|
24
27
|
filtered: Object.keys(data).reduce((acc, key) => {
|
|
25
28
|
const value = data[key];
|
|
26
29
|
const fieldSchema = formJSON[key];
|
|
27
|
-
if (
|
|
30
|
+
if (Array.isArray(value)) {
|
|
28
31
|
const items = [];
|
|
29
32
|
acc[key] = items;
|
|
30
33
|
if (!fieldSchema) return acc;
|
|
31
34
|
const nestedSchema = isObject(fieldSchema) ? fieldSchema["options"] : void 0;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
filteredFields.push(...filteredFieldsNested);
|
|
42
|
-
items[i] = filteredNested;
|
|
43
|
-
}
|
|
35
|
+
value.forEach((item, i) => {
|
|
36
|
+
if (!isObject(item)) {
|
|
37
|
+
items[i] = item;
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const result = filterFields(engine, isObject(nestedSchema) ? nestedSchema : {}, item, `${key}[${i}].`, rootData || data, i);
|
|
41
|
+
filteredFields.push(...result.filteredFields);
|
|
42
|
+
items[i] = result.filtered;
|
|
43
|
+
});
|
|
44
44
|
return acc;
|
|
45
45
|
}
|
|
46
46
|
if (fieldSchema && isObject(value)) {
|
|
47
|
-
const { filteredFields: filteredFieldsNested, filtered: filteredNested } = filterFields(engine, isObject(fieldSchema) ? fieldSchema : {}, value, key
|
|
47
|
+
const { filteredFields: filteredFieldsNested, filtered: filteredNested } = filterFields(engine, isObject(fieldSchema) ? fieldSchema : {}, value, `${key}.`, rootData || data, arrayIndex);
|
|
48
48
|
filteredFields.push(...filteredFieldsNested);
|
|
49
49
|
acc[key] = filteredNested;
|
|
50
50
|
return acc;
|
|
51
51
|
}
|
|
52
52
|
if (isObject(fieldSchema) && fieldSchema["sensitive"]) {
|
|
53
|
-
const name = prefix ? prefix + key : key;
|
|
54
53
|
filteredFields.push({
|
|
55
|
-
key:
|
|
54
|
+
key: `${prefix ?? ""}${key}`,
|
|
56
55
|
value
|
|
57
56
|
});
|
|
58
57
|
return acc;
|
|
@@ -118,14 +117,14 @@ function FormCodePanel({ formJSON, data, mutate, height = "600px", disabled = fa
|
|
|
118
117
|
onClick: () => setShowHidden((prev) => !prev)
|
|
119
118
|
}), /* @__PURE__ */ jsxs("span", {
|
|
120
119
|
className: "flex items-center gap-1.5",
|
|
121
|
-
children: [showHidden ? /* @__PURE__ */ jsx(
|
|
120
|
+
children: [showHidden ? /* @__PURE__ */ jsx(LuEye, {}) : /* @__PURE__ */ jsx(LuEyeOff, {}), t.showHiddenFields]
|
|
122
121
|
})]
|
|
123
122
|
}), /* @__PURE__ */ jsxs("button", {
|
|
124
123
|
type: "button",
|
|
125
124
|
onClick: handleCopy,
|
|
126
125
|
"aria-label": copied ? t.copied : t.copy,
|
|
127
126
|
className: "ml-auto flex shrink-0 items-center gap-1.5 rounded-md border border-(--theme-border) px-2.5 py-1.5 text-sm text-(--theme-app) transition-colors duration-150 hover:bg-(--theme-hover) focus:outline-none focus-visible:ring-2 focus-visible:ring-(--theme-link)",
|
|
128
|
-
children: [copied ? /* @__PURE__ */ jsx(
|
|
127
|
+
children: [copied ? /* @__PURE__ */ jsx(FaCheck, { className: "text-green-500" }) : /* @__PURE__ */ jsx(FiCopy, { className: "text-(--theme-muted-text-color)" }), copied ? t.copied : t.copy]
|
|
129
128
|
})]
|
|
130
129
|
}), /* @__PURE__ */ jsx("div", {
|
|
131
130
|
className: "min-h-0 flex-1",
|
|
@@ -155,9 +154,7 @@ function FormCodePanel({ formJSON, data, mutate, height = "600px", disabled = fa
|
|
|
155
154
|
const parsed = JSON.parse(e);
|
|
156
155
|
if (!isObject(parsed)) return;
|
|
157
156
|
mutate(showHiddenRef.current ? parsed : populateFiltered(filteredFieldsRef.current, parsed));
|
|
158
|
-
} catch {
|
|
159
|
-
console.log("JSON.parse error in form code editor");
|
|
160
|
-
}
|
|
157
|
+
} catch {}
|
|
161
158
|
},
|
|
162
159
|
language: "json",
|
|
163
160
|
disabled
|
|
@@ -13,11 +13,11 @@ var YAML_SETTINGS = {
|
|
|
13
13
|
};
|
|
14
14
|
/** JSON-RPC over postMessage, the transport the server's web worker build expects. */
|
|
15
15
|
var WorkerConnection = class {
|
|
16
|
-
worker;
|
|
17
|
-
onRequest;
|
|
18
16
|
nextId = 0;
|
|
19
17
|
pending = /* @__PURE__ */ new Map();
|
|
20
18
|
notificationHandlers = /* @__PURE__ */ new Map();
|
|
19
|
+
worker;
|
|
20
|
+
onRequest;
|
|
21
21
|
constructor(worker, onRequest) {
|
|
22
22
|
this.worker = worker;
|
|
23
23
|
this.onRequest = onRequest;
|