@parallelworks/ui 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +348 -25
- package/dist/ai/agent/diff.d.ts +2 -1
- package/dist/ai/agent/diff.js +4 -12
- package/dist/ai/agent/diffHighlight.d.ts +1 -1
- package/dist/ai/agent/diffHighlight.js +4 -3
- package/dist/ai/agent/index.d.ts +2 -1
- package/dist/ai/agent/toolStrings.d.ts +37 -0
- package/dist/ai/agent/toolStrings.js +35 -0
- package/dist/ai/agent/toolfmt.d.ts +8 -3
- package/dist/ai/agent/toolfmt.js +50 -65
- package/dist/ai/ai.css +18 -31
- package/dist/ai/components/AllocationSelector.js +2 -2
- package/dist/ai/components/AttachmentManager.js +28 -29
- package/dist/ai/components/AttachmentUpload.js +25 -30
- package/dist/ai/components/BlockedGroupBanner.js +2 -2
- package/dist/ai/components/BranchNavigator.js +3 -4
- package/dist/ai/components/ChatEmptyState.js +8 -7
- package/dist/ai/components/ChatInput.js +10 -12
- package/dist/ai/components/ChatLayout.js +3 -3
- package/dist/ai/components/ChatMessage.js +49 -61
- package/dist/ai/components/ChatMessageList.js +46 -42
- package/dist/ai/components/ChatSidebar.js +26 -34
- package/dist/ai/components/ChatStage.js +1 -1
- package/dist/ai/components/ComposerChrome.js +3 -4
- package/dist/ai/components/DragOverlay.js +6 -4
- package/dist/ai/components/ModelSelector.js +14 -15
- package/dist/ai/components/PastedText.js +18 -14
- package/dist/ai/components/ProviderIssueBanner.js +3 -4
- package/dist/ai/components/Reasoning.d.ts +12 -6
- package/dist/ai/components/Reasoning.js +31 -18
- package/dist/ai/components/ShareDialog.js +25 -28
- package/dist/ai/components/SlashMenu.js +3 -3
- package/dist/ai/components/agent/ActivityLine.d.ts +0 -5
- package/dist/ai/components/agent/ActivityLine.js +17 -54
- package/dist/ai/components/agent/AgentMessageParts.js +139 -149
- package/dist/ai/components/conversationActions.js +16 -16
- package/dist/ai/core/ChatProvider.d.ts +2 -4
- package/dist/ai/core/ChatProvider.js +25 -38
- package/dist/ai/core/exportConversation.js +4 -4
- package/dist/ai/core/sidebarState.d.ts +8 -6
- package/dist/ai/core/sidebarState.js +21 -28
- package/dist/ai/core/useKeyboardShortcuts.js +14 -5
- package/dist/ai/index.d.ts +4 -5
- package/dist/ai/index.js +7 -7
- package/dist/ai/strings.d.ts +14 -31
- package/dist/ai/strings.js +19 -39
- package/dist/ai/types.d.ts +0 -5
- package/dist/ai/ui/ConversationSidebar.d.ts +12 -9
- package/dist/ai/ui/ConversationSidebar.js +43 -87
- package/dist/ai/ui/Markdown.d.ts +3 -6
- package/dist/ai/ui/Markdown.js +6 -73
- package/dist/ai/ui/Notice.js +10 -12
- package/dist/ai/ui/chip.d.ts +2 -2
- package/dist/ai/ui/chip.js +1 -1
- package/dist/ai/ui/sidebar.d.ts +4 -20
- package/dist/ai/ui/sidebar.js +30 -67
- package/dist/ai/utils.d.ts +0 -1
- package/dist/ai/utils.js +1 -14
- package/dist/brandIcons.d.ts +51 -0
- package/dist/brandIcons.js +75 -0
- package/dist/components/Avatar.d.ts +3 -1
- package/dist/components/Avatar.js +34 -28
- package/dist/components/Button.d.ts +12 -7
- package/dist/components/Button.js +39 -44
- package/dist/components/Callout.js +18 -12
- package/dist/components/Card.d.ts +18 -8
- package/dist/components/Card.js +17 -6
- package/dist/components/Checkbox.d.ts +9 -0
- package/dist/components/Checkbox.js +30 -0
- package/dist/components/Combobox.d.ts +9 -1
- package/dist/components/Combobox.js +71 -44
- package/dist/components/ConfirmModal.js +11 -11
- package/dist/components/ContextMenu.d.ts +2 -8
- package/dist/components/ContextMenu.js +2 -29
- package/dist/components/CopyToClipboard.js +17 -36
- package/dist/components/CreateModal.d.ts +3 -24
- package/dist/components/CreateModal.js +46 -113
- package/dist/components/DatePicker.d.ts +31 -0
- package/dist/components/DatePicker.js +191 -0
- package/dist/components/DescriptionList.js +4 -4
- package/dist/components/Disclosure.d.ts +34 -0
- package/dist/components/Disclosure.js +46 -0
- package/dist/components/Drawer.d.ts +47 -0
- package/dist/components/Drawer.js +120 -0
- package/dist/components/EmptyState.d.ts +15 -10
- package/dist/components/EmptyState.js +13 -8
- package/dist/components/ExternalLink.d.ts +8 -0
- package/dist/components/ExternalLink.js +29 -0
- package/dist/components/Field.d.ts +70 -0
- package/dist/components/Field.js +159 -0
- package/dist/components/HoverCard.js +11 -14
- package/dist/components/IconButton.d.ts +16 -13
- package/dist/components/IconButton.js +27 -18
- package/dist/components/InfoTip.js +16 -23
- package/dist/components/Input.d.ts +10 -9
- package/dist/components/Input.js +54 -96
- package/dist/components/LetterBadge.js +2 -2
- package/dist/components/Loader.d.ts +15 -8
- package/dist/components/Loader.js +29 -19
- package/dist/components/Markdown.d.ts +7 -1
- package/dist/components/Markdown.js +2 -0
- package/dist/components/MarkdownImpl.d.ts +1 -1
- package/dist/components/MarkdownImpl.js +55 -14
- package/dist/components/Menu.js +13 -15
- package/dist/components/MenuEntries.js +11 -16
- package/dist/components/Meter.d.ts +48 -0
- package/dist/components/Meter.js +94 -0
- package/dist/components/Modal.js +11 -14
- package/dist/components/NumberInput.d.ts +25 -0
- package/dist/components/NumberInput.js +55 -0
- package/dist/components/Overview.js +12 -10
- package/dist/components/PageHeader.d.ts +2 -3
- package/dist/components/PageHeader.js +30 -21
- package/dist/components/Pagination.d.ts +27 -14
- package/dist/components/Pagination.js +86 -25
- package/dist/components/Popover.d.ts +47 -0
- package/dist/components/Popover.js +63 -0
- package/dist/components/Provider.d.ts +197 -80
- package/dist/components/Provider.js +200 -118
- package/dist/components/Radio.d.ts +1 -1
- package/dist/components/Radio.js +4 -4
- package/dist/components/RefreshButton.d.ts +15 -0
- package/dist/components/RefreshButton.js +53 -0
- package/dist/components/RunStatusIcon.d.ts +12 -0
- package/dist/components/RunStatusIcon.js +84 -0
- package/dist/components/SearchInput.d.ts +16 -0
- package/dist/components/SearchInput.js +52 -0
- package/dist/components/Section.d.ts +28 -0
- package/dist/components/Section.js +76 -0
- package/dist/components/SegmentedControl.d.ts +7 -11
- package/dist/components/SegmentedControl.js +25 -56
- package/dist/components/Select.d.ts +5 -1
- package/dist/components/Select.js +43 -44
- package/dist/components/SettingModeOption.d.ts +3 -5
- package/dist/components/SettingModeOption.js +5 -6
- package/dist/components/SettingsCard.d.ts +32 -19
- package/dist/components/SettingsCard.js +40 -13
- package/dist/components/Skeleton.d.ts +22 -0
- package/dist/components/Skeleton.js +34 -0
- package/dist/components/Slider.d.ts +16 -0
- package/dist/components/Slider.js +30 -0
- package/dist/components/Sort.js +4 -6
- package/dist/components/StatusBadge.d.ts +3 -1
- package/dist/components/StatusBadge.js +9 -32
- package/dist/components/StatusIcons.d.ts +0 -4
- package/dist/components/StatusIcons.js +5 -13
- package/dist/components/Switch.d.ts +5 -1
- package/dist/components/Switch.js +23 -6
- package/dist/components/Table.js +13 -20
- package/dist/components/Tabs.d.ts +52 -0
- package/dist/components/Tabs.js +75 -0
- package/dist/components/ThemeEditor.d.ts +29 -0
- package/dist/components/ThemeEditor.js +397 -0
- package/dist/components/Toast.d.ts +57 -0
- package/dist/components/Toast.js +203 -0
- package/dist/components/Tooltip.js +12 -15
- package/dist/components/buttonClasses.d.ts +18 -0
- package/dist/components/buttonClasses.js +31 -0
- package/dist/components/codeTheme.d.ts +5 -0
- package/dist/components/codeTheme.js +93 -0
- package/dist/components/fieldBox.d.ts +14 -0
- package/dist/components/fieldBox.js +29 -0
- package/dist/components/floating.d.ts +26 -5
- package/dist/components/floating.js +31 -9
- package/dist/{ai/ui/codeBreaks.js → components/markdownCodeBreaks.js} +1 -1
- package/dist/components/persistedState.d.ts +2 -0
- package/dist/components/persistedState.js +63 -0
- package/dist/components/relativeTime.d.ts +36 -8
- package/dist/components/relativeTime.js +106 -23
- package/dist/components/segmented.d.ts +17 -0
- package/dist/components/segmented.js +27 -0
- package/dist/components/shortcutKey.d.ts +4 -0
- package/dist/components/shortcutKey.js +27 -0
- package/dist/components/splitter.d.ts +26 -0
- package/dist/components/splitter.js +69 -0
- package/dist/components/tone.d.ts +9 -0
- package/dist/components/tone.js +30 -0
- package/dist/components/useCopy.d.ts +14 -0
- package/dist/components/useCopy.js +31 -0
- package/dist/components/useCssIsDark.d.ts +2 -0
- package/dist/components/useCssIsDark.js +2 -1
- package/dist/components/useTheme.d.ts +10 -0
- package/dist/components/useTheme.js +40 -0
- package/dist/cx.d.ts +5 -0
- package/dist/cx.js +11 -0
- package/dist/editor/Editor.js +2 -2
- package/dist/editor/EditorField.js +7 -10
- package/dist/editor/FormCodePanel.js +10 -23
- package/dist/editor/Monaco.js +7 -4
- package/dist/editor/index.d.ts +1 -1
- package/dist/editor/index.js +2 -2
- package/dist/editor/themes.d.ts +4 -0
- package/dist/editor/themes.js +75 -76
- package/dist/file-explorer/FileExplorer.js +180 -187
- package/dist/file-explorer/FileExplorerContext.js +36 -58
- package/dist/file-explorer/FilePreview/CodePreviewEditor.js +2 -1
- package/dist/file-explorer/FilePreview/Inline.js +9 -7
- package/dist/file-explorer/FilePreview/StreamedBadge.js +2 -2
- package/dist/file-explorer/FilePreview/Viewer.js +32 -34
- package/dist/file-explorer/FilePreview/index.js +60 -92
- package/dist/file-explorer/FileRow.js +10 -15
- package/dist/file-explorer/FileRowsWindow.js +2 -6
- package/dist/file-explorer/FileTable.js +2 -2
- package/dist/file-explorer/FileTableHeaders.js +8 -11
- package/dist/file-explorer/LoadMoreRow.js +8 -9
- package/dist/file-explorer/TreeView.js +16 -16
- package/dist/file-explorer/helpers.d.ts +1 -4
- package/dist/file-explorer/helpers.js +101 -114
- package/dist/file-explorer/lib/utils.d.ts +0 -2
- package/dist/file-explorer/lib/utils.js +1 -25
- package/dist/file-explorer/toasts.js +104 -185
- package/dist/form/Fields/BooleanField.js +12 -14
- package/dist/form/Fields/CheckboxGroupField.d.ts +1 -1
- package/dist/form/Fields/CheckboxGroupField.js +16 -18
- package/dist/form/Fields/ColorField.js +11 -11
- package/dist/form/Fields/DropdownField.d.ts +1 -1
- package/dist/form/Fields/DropdownField.js +20 -36
- package/dist/form/Fields/DurationField.d.ts +1 -1
- package/dist/form/Fields/DurationField.js +36 -50
- package/dist/form/Fields/LabelField.js +2 -2
- package/dist/form/Fields/MultiDropdownField.d.ts +1 -1
- package/dist/form/Fields/MultiDropdownField.js +9 -14
- package/dist/form/Fields/NumberField.d.ts +1 -1
- package/dist/form/Fields/NumberField.js +13 -48
- package/dist/form/Fields/ObjectField.js +3 -3
- package/dist/form/Fields/RadioField.d.ts +1 -1
- package/dist/form/Fields/RadioField.js +15 -18
- package/dist/form/Fields/RangeField.js +34 -35
- package/dist/form/Fields/StringField.d.ts +1 -1
- package/dist/form/Fields/StringField.js +15 -25
- package/dist/form/Fields/TextAreaField.js +10 -15
- package/dist/form/Form.d.ts +7 -2
- package/dist/form/Form.js +144 -49
- package/dist/form/FormLayout.js +18 -12
- package/dist/form/Wizard/WizardContainer.js +44 -18
- package/dist/form/Wizard/WizardNavigation.d.ts +1 -1
- package/dist/form/Wizard/WizardNavigation.js +31 -56
- package/dist/form/Wizard/WizardStepIndicator.d.ts +3 -0
- package/dist/form/Wizard/WizardStepIndicator.js +98 -114
- package/dist/form/Wizard/types.d.ts +2 -2
- package/dist/form/fieldFrame.d.ts +7 -0
- package/dist/form/fieldFrame.js +19 -0
- package/dist/form/index.d.ts +5 -5
- package/dist/form/index.js +4 -6
- package/dist/form/layoutCSS.js +5 -4
- package/dist/form/types/fieldComponentTypes.d.ts +5 -3
- package/dist/form/useChoiceField.js +2 -3
- package/dist/form/useFieldValue.d.ts +3 -0
- package/dist/form/useFieldValue.js +24 -7
- package/dist/form/utils/duration.d.ts +2 -2
- package/dist/form/utils/duration.js +3 -3
- package/dist/form/utils/fieldPath.d.ts +5 -3
- package/dist/form/utils/fieldPath.js +18 -3
- package/dist/form/utils/secondaryField.d.ts +0 -7
- package/dist/form/utils/secondaryField.js +1 -12
- package/dist/form/validation.d.ts +29 -0
- package/dist/form/validation.js +14 -0
- package/dist/format.d.ts +28 -0
- package/dist/format.js +64 -0
- package/dist/graph/AnnotationBanner.js +20 -31
- package/dist/graph/Connectors.js +1 -1
- package/dist/graph/DependencyGraph.js +51 -65
- package/dist/graph/GraphEditor.js +24 -28
- package/dist/graph/GraphEditorDialogs.js +239 -245
- package/dist/graph/InputDialog.js +93 -112
- package/dist/graph/InputsEditor.js +83 -84
- package/dist/graph/JobSummary.js +10 -11
- package/dist/graph/MatrixGroup.js +3 -3
- package/dist/graph/ProblemsButton.js +9 -10
- package/dist/graph/ShortcutsButton.js +12 -17
- package/dist/graph/SuggestionInput.d.ts +1 -2
- package/dist/graph/SuggestionInput.js +1 -3
- package/dist/graph/TreeView.js +47 -45
- package/dist/graph/WorkflowSettingsDialog.js +97 -102
- package/dist/graph/editorChrome.js +10 -12
- package/dist/graph/editorFields.d.ts +19 -16
- package/dist/graph/editorFields.js +97 -135
- package/dist/graph/editorPrimitives.js +2 -2
- package/dist/graph/editorRows.js +22 -25
- package/dist/graph/editorStrings.d.ts +16 -19
- package/dist/graph/editorStrings.js +11 -23
- package/dist/graph/fieldProblems.js +2 -2
- package/dist/graph/graphEditorState.d.ts +4 -4
- package/dist/graph/inputRefs.d.ts +0 -13
- package/dist/graph/inputRefs.js +121 -159
- package/dist/graph/settingsViews.js +5 -3
- package/dist/graph/stepWith.js +100 -100
- package/dist/graph/toolbarPanel.d.ts +8 -0
- package/dist/graph/toolbarPanel.js +11 -0
- package/dist/icons.d.ts +234 -23
- package/dist/icons.js +249 -264
- package/dist/index.d.ts +38 -21
- package/dist/index.js +42 -21
- package/dist/list/ActionToolbar.d.ts +1 -5
- package/dist/list/ActionToolbar.js +21 -20
- package/dist/list/ListPage.js +7 -7
- package/dist/list/ListTable.d.ts +3 -2
- package/dist/list/ListTable.js +33 -29
- package/dist/list/ListViewControls.d.ts +0 -17
- package/dist/list/ListViewControls.js +50 -118
- package/dist/list/UserHoverCard.js +24 -32
- package/dist/list/index.d.ts +2 -4
- package/dist/list/index.js +3 -5
- package/dist/list/listSearch.d.ts +1 -1
- package/dist/list/listSearch.js +19 -14
- package/dist/list/rowMenu.js +20 -26
- package/dist/logviewer/LogViewer.js +268 -382
- package/dist/logviewer/logviewer.css +53 -41
- package/dist/styles/base.css +16 -40
- package/dist/styles/theme.css +75 -106
- package/dist/styles.css +1 -1
- package/dist/theme/color.d.ts +40 -0
- package/dist/theme/color.js +228 -0
- package/dist/theme/contrast.d.ts +42 -0
- package/dist/theme/contrast.js +145 -0
- package/dist/theme/derive.d.ts +25 -0
- package/dist/theme/derive.js +475 -0
- package/dist/theme/fit.d.ts +35 -0
- package/dist/theme/fit.js +185 -0
- package/dist/theme/index.d.ts +14 -29
- package/dist/theme/index.js +20 -279
- package/dist/theme/model.d.ts +64 -0
- package/dist/theme/model.js +219 -0
- package/package.json +9 -5
- package/dist/ai/ui/Avatar.d.ts +0 -7
- package/dist/ai/ui/Avatar.js +0 -24
- package/dist/components/Filter.d.ts +0 -15
- package/dist/components/Filter.js +0 -32
- package/dist/components/FilterPill.d.ts +0 -7
- package/dist/components/FilterPill.js +0 -14
- package/dist/components/Indicator.d.ts +0 -4
- package/dist/components/Indicator.js +0 -44
- package/dist/components/SectionHeader.d.ts +0 -8
- package/dist/components/SectionHeader.js +0 -11
- package/dist/components/SettingRow.d.ts +0 -18
- package/dist/components/SettingRow.js +0 -35
- package/dist/components/SettingsGroup.d.ts +0 -8
- package/dist/components/SettingsGroup.js +0 -17
- package/dist/components/ghostButton.d.ts +0 -4
- package/dist/components/ghostButton.js +0 -7
- package/dist/components/inputClasses.d.ts +0 -1
- package/dist/components/inputClasses.js +0 -4
- package/dist/duration.d.ts +0 -3
- package/dist/duration.js +0 -17
- package/dist/form/FieldGroup.d.ts +0 -11
- package/dist/form/FieldGroup.js +0 -36
- package/dist/form/FieldWrapper.d.ts +0 -16
- package/dist/form/FieldWrapper.js +0 -55
- package/dist/form/fieldContext.d.ts +0 -19
- package/dist/form/fieldContext.js +0 -26
- package/dist/graph/Collapse.d.ts +0 -7
- package/dist/graph/Collapse.js +0 -15
- package/dist/graph/ToolbarPopover.d.ts +0 -13
- package/dist/graph/ToolbarPopover.js +0 -39
- package/dist/icons/ai/AiOutlineRollback.js +0 -16
- package/dist/icons/bi/BiBell.js +0 -16
- package/dist/icons/bi/BiBellOff.js +0 -16
- package/dist/icons/bi/BiBuildings.js +0 -20
- package/dist/icons/bi/BiError.js +0 -20
- package/dist/icons/bi/BiExpandVertical.js +0 -16
- package/dist/icons/bi/BiPause.js +0 -16
- package/dist/icons/bi/BiPlay.js +0 -16
- package/dist/icons/bi/BiRedo.js +0 -16
- package/dist/icons/bi/BiSolidCheckShield.js +0 -16
- package/dist/icons/bi/BiSolidTrashAlt.js +0 -16
- package/dist/icons/bi/BiStop.js +0 -16
- package/dist/icons/bi/BiUndo.js +0 -16
- package/dist/icons/bs/BsArrowsCollapse.js +0 -22
- package/dist/icons/bs/BsBank2.js +0 -19
- package/dist/icons/bs/BsBriefcase.js +0 -19
- package/dist/icons/bs/BsBucket.js +0 -19
- package/dist/icons/bs/BsCalendarX.js +0 -23
- package/dist/icons/bs/BsChatLeft.js +0 -19
- package/dist/icons/bs/BsChevronDoubleDown.js +0 -29
- package/dist/icons/bs/BsChevronDoubleUp.js +0 -29
- package/dist/icons/bs/BsClipboardCheck.js +0 -34
- package/dist/icons/bs/BsCurrencyDollar.js +0 -19
- package/dist/icons/bs/BsDash.js +0 -19
- package/dist/icons/bs/BsFileEarmarkZip.js +0 -23
- package/dist/icons/bs/BsFiles.js +0 -19
- package/dist/icons/bs/BsGeoAlt.js +0 -23
- package/dist/icons/bs/BsGrid.js +0 -19
- package/dist/icons/bs/BsLayers.js +0 -19
- package/dist/icons/bs/BsLayoutThreeColumns.js +0 -19
- package/dist/icons/bs/BsListUl.js +0 -22
- package/dist/icons/bs/BsMortarboard.js +0 -23
- package/dist/icons/bs/BsMusicNoteBeamed.js +0 -34
- package/dist/icons/bs/BsOpenai.js +0 -19
- package/dist/icons/bs/BsPersonPlus.js +0 -26
- package/dist/icons/bs/BsSearch.js +0 -19
- package/dist/icons/bs/BsSend.js +0 -19
- package/dist/icons/bs/BsShieldSlash.js +0 -22
- package/dist/icons/bs/BsStar.js +0 -19
- package/dist/icons/bs/BsStarFill.js +0 -19
- package/dist/icons/bs/BsStopCircle.js +0 -23
- package/dist/icons/bs/BsTag.js +0 -23
- package/dist/icons/bs/BsTelephone.js +0 -19
- package/dist/icons/bs/BsTerminal.js +0 -23
- package/dist/icons/bs/BsTerminalFill.js +0 -19
- package/dist/icons/bs/BsThreeDots.js +0 -19
- package/dist/icons/bs/BsThreeDotsVertical.js +0 -19
- package/dist/icons/bs/BsZoomIn.js +0 -37
- package/dist/icons/fa/FaAmazon.js +0 -16
- package/dist/icons/fa/FaAngleDown.js +0 -16
- package/dist/icons/fa/FaAngleLeft.js +0 -16
- package/dist/icons/fa/FaAngleRight.js +0 -16
- package/dist/icons/fa/FaAngleUp.js +0 -16
- package/dist/icons/fa/FaArrowDown.js +0 -16
- package/dist/icons/fa/FaArrowLeft.js +0 -16
- package/dist/icons/fa/FaArrowRight.js +0 -16
- package/dist/icons/fa/FaArrowUp.js +0 -16
- package/dist/icons/fa/FaBalanceScale.js +0 -16
- package/dist/icons/fa/FaCaretDown.js +0 -16
- package/dist/icons/fa/FaCentos.js +0 -16
- package/dist/icons/fa/FaChartLine.js +0 -16
- package/dist/icons/fa/FaChartPie.js +0 -16
- package/dist/icons/fa/FaCheck.js +0 -16
- package/dist/icons/fa/FaChevronDown.js +0 -16
- package/dist/icons/fa/FaChevronUp.js +0 -16
- package/dist/icons/fa/FaChrome.js +0 -16
- package/dist/icons/fa/FaCircleNotch.js +0 -16
- package/dist/icons/fa/FaCloud.js +0 -16
- package/dist/icons/fa/FaCloudDownloadAlt.js +0 -16
- package/dist/icons/fa/FaCog.js +0 -16
- package/dist/icons/fa/FaCogs.js +0 -16
- package/dist/icons/fa/FaComments.js +0 -16
- package/dist/icons/fa/FaCompress.js +0 -16
- package/dist/icons/fa/FaDesktop.js +0 -16
- package/dist/icons/fa/FaDocker.js +0 -16
- package/dist/icons/fa/FaDollarSign.js +0 -16
- package/dist/icons/fa/FaEdge.js +0 -16
- package/dist/icons/fa/FaEdit.js +0 -16
- package/dist/icons/fa/FaExclamationTriangle.js +0 -16
- package/dist/icons/fa/FaExpand.js +0 -16
- package/dist/icons/fa/FaEye.js +0 -16
- package/dist/icons/fa/FaEyeSlash.js +0 -16
- package/dist/icons/fa/FaFile.js +0 -16
- package/dist/icons/fa/FaFilePdf.js +0 -16
- package/dist/icons/fa/FaFilter.js +0 -16
- package/dist/icons/fa/FaFirefoxBrowser.js +0 -16
- package/dist/icons/fa/FaFlask.js +0 -16
- package/dist/icons/fa/FaFolder.js +0 -16
- package/dist/icons/fa/FaGithub.js +0 -16
- package/dist/icons/fa/FaGitlab.js +0 -16
- package/dist/icons/fa/FaGlobe.js +0 -16
- package/dist/icons/fa/FaGlobeAmericas.js +0 -16
- package/dist/icons/fa/FaImage.js +0 -16
- package/dist/icons/fa/FaInfoCircle.js +0 -16
- package/dist/icons/fa/FaKey.js +0 -16
- package/dist/icons/fa/FaLayerGroup.js +0 -16
- package/dist/icons/fa/FaLink.js +0 -16
- package/dist/icons/fa/FaLinkedin.js +0 -16
- package/dist/icons/fa/FaLinux.js +0 -16
- package/dist/icons/fa/FaList.js +0 -16
- package/dist/icons/fa/FaLock.js +0 -16
- package/dist/icons/fa/FaOpenid.js +0 -16
- package/dist/icons/fa/FaOpera.js +0 -16
- package/dist/icons/fa/FaPaperclip.js +0 -16
- package/dist/icons/fa/FaPlus.js +0 -16
- package/dist/icons/fa/FaPowerOff.js +0 -16
- package/dist/icons/fa/FaPrint.js +0 -16
- package/dist/icons/fa/FaQrcode.js +0 -16
- package/dist/icons/fa/FaQuestionCircle.js +0 -16
- package/dist/icons/fa/FaRedhat.js +0 -16
- package/dist/icons/fa/FaRegCircle.js +0 -16
- package/dist/icons/fa/FaRegFileImage.js +0 -16
- package/dist/icons/fa/FaRegFolder.js +0 -16
- package/dist/icons/fa/FaRobot.js +0 -16
- package/dist/icons/fa/FaRocket.js +0 -16
- package/dist/icons/fa/FaRunning.js +0 -16
- package/dist/icons/fa/FaSafari.js +0 -16
- package/dist/icons/fa/FaSave.js +0 -16
- package/dist/icons/fa/FaSearch.js +0 -16
- package/dist/icons/fa/FaShieldAlt.js +0 -16
- package/dist/icons/fa/FaSlack.js +0 -16
- package/dist/icons/fa/FaStar.js +0 -16
- package/dist/icons/fa/FaStop.js +0 -16
- package/dist/icons/fa/FaSuse.js +0 -16
- package/dist/icons/fa/FaTerminal.js +0 -16
- package/dist/icons/fa/FaTimes.js +0 -16
- package/dist/icons/fa/FaUbuntu.js +0 -16
- package/dist/icons/fa/FaUndoAlt.js +0 -16
- package/dist/icons/fa/FaUnlink.js +0 -16
- package/dist/icons/fa/FaUser.js +0 -16
- package/dist/icons/fa/FaUsers.js +0 -16
- package/dist/icons/fa/FaWindows.js +0 -16
- package/dist/icons/fa6/FaApple.js +0 -16
- package/dist/icons/fa6/FaArrowsRotate.js +0 -16
- package/dist/icons/fa6/FaDebian.js +0 -16
- package/dist/icons/fa6/FaFilterCircleXmark.js +0 -16
- package/dist/icons/fa6/FaInbox.js +0 -16
- package/dist/icons/fa6/FaLocationDot.js +0 -16
- package/dist/icons/fa6/FaRegFilePdf.js +0 -16
- package/dist/icons/fa6/FaRegFolderOpen.js +0 -16
- package/dist/icons/fa6/FaUpRightFromSquare.js +0 -16
- package/dist/icons/fa6/FaWandMagicSparkles.js +0 -16
- package/dist/icons/fa6/FaXTwitter.js +0 -16
- package/dist/icons/fi/FiActivity.js +0 -23
- package/dist/icons/fi/FiAlertCircle.js +0 -49
- package/dist/icons/fi/FiChevronDown.js +0 -23
- package/dist/icons/fi/FiClock.js +0 -31
- package/dist/icons/fi/FiCopy.js +0 -34
- package/dist/icons/fi/FiDownload.js +0 -40
- package/dist/icons/fi/FiFile.js +0 -27
- package/dist/icons/fi/FiFileText.js +0 -55
- package/dist/icons/fi/FiHardDrive.js +0 -55
- package/dist/icons/fi/FiRotateCcw.js +0 -27
- package/dist/icons/fi/FiUpload.js +0 -40
- package/dist/icons/fi/FiX.js +0 -37
- package/dist/icons/fi/FiZap.js +0 -23
- package/dist/icons/gi/GiSpy.js +0 -16
- package/dist/icons/go/GoGitCommit.js +0 -16
- package/dist/icons/go/GoGitPullRequest.js +0 -20
- package/dist/icons/go/GoIssueOpened.js +0 -16
- package/dist/icons/go/GoPlus.js +0 -16
- package/dist/icons/go/GoRepoForked.js +0 -28
- package/dist/icons/go/GoSignOut.js +0 -16
- package/dist/icons/go/GoSkip.js +0 -20
- package/dist/icons/go/GoVideo.js +0 -20
- package/dist/icons/gr/GrCloudComputer.js +0 -20
- package/dist/icons/gr/GrInbox.js +0 -20
- package/dist/icons/gr/GrServerCluster.js +0 -20
- package/dist/icons/gr/GrStorage.js +0 -20
- package/dist/icons/gr/GrTasks.js +0 -20
- package/dist/icons/hi/HiCog.js +0 -24
- package/dist/icons/hi/HiDuplicate.js +0 -24
- package/dist/icons/hi/HiOutlineArchive.js +0 -26
- package/dist/icons/hi/HiOutlineClipboardCopy.js +0 -26
- package/dist/icons/hi/HiOutlineHome.js +0 -26
- package/dist/icons/hi/HiQuestionMarkCircle.js +0 -24
- package/dist/icons/hi/HiServer.js +0 -24
- package/dist/icons/hi2/HiMiniCheckCircle.js +0 -24
- package/dist/icons/hi2/HiMiniLanguage.js +0 -28
- package/dist/icons/hi2/HiMiniMinusCircle.js +0 -24
- package/dist/icons/hi2/HiMiniXCircle.js +0 -24
- package/dist/icons/hi2/HiSparkles.js +0 -24
- package/dist/icons/im/ImSpinner5.js +0 -19
- package/dist/icons/io/IoIosNotifications.js +0 -16
- package/dist/icons/io/IoMdBuild.js +0 -16
- package/dist/icons/io/IoMdClose.js +0 -16
- package/dist/icons/io5/IoCloudUploadOutline.js +0 -32
- package/dist/icons/io5/IoDocumentTextOutline.js +0 -31
- package/dist/icons/io5/IoFileTrayFullOutline.js +0 -31
- package/dist/icons/io5/IoHeart.js +0 -16
- package/dist/icons/io5/IoHeartDislike.js +0 -16
- package/dist/icons/io5/IoHeartOutline.js +0 -22
- package/dist/icons/io5/IoInformationCircleOutline.js +0 -50
- package/dist/icons/io5/IoSettingsOutline.js +0 -22
- package/dist/icons/io5/IoWarningOutline.js +0 -40
- package/dist/icons/lu/LuArrowRight.js +0 -27
- package/dist/icons/lu/LuBadgeCheck.js +0 -27
- package/dist/icons/lu/LuBraces.js +0 -27
- package/dist/icons/lu/LuBrainCircuit.js +0 -101
- package/dist/icons/lu/LuCalendar.js +0 -46
- package/dist/icons/lu/LuCheck.js +0 -23
- package/dist/icons/lu/LuChevronLeft.js +0 -23
- package/dist/icons/lu/LuChevronRight.js +0 -23
- package/dist/icons/lu/LuCode.js +0 -27
- package/dist/icons/lu/LuExternalLink.js +0 -35
- package/dist/icons/lu/LuEye.js +0 -31
- package/dist/icons/lu/LuEyeOff.js +0 -40
- package/dist/icons/lu/LuFolderTree.js +0 -40
- package/dist/icons/lu/LuIdCard.js +0 -55
- package/dist/icons/lu/LuKeyboard.js +0 -71
- package/dist/icons/lu/LuLogs.js +0 -65
- package/dist/icons/lu/LuMail.js +0 -33
- package/dist/icons/lu/LuMegaphone.js +0 -27
- package/dist/icons/lu/LuMoon.js +0 -23
- package/dist/icons/lu/LuNetwork.js +0 -63
- package/dist/icons/lu/LuPartyPopper.js +0 -65
- package/dist/icons/lu/LuSettings2.js +0 -48
- package/dist/icons/lu/LuSheet.js +0 -72
- package/dist/icons/lu/LuShield.js +0 -23
- package/dist/icons/lu/LuSun.js +0 -69
- package/dist/icons/lu/LuTextCursorInput.js +0 -45
- package/dist/icons/lu/LuX.js +0 -27
- package/dist/icons/lu/LuZoomIn.js +0 -59
- package/dist/icons/lu/LuZoomOut.js +0 -49
- package/dist/icons/md/MdClear.js +0 -23
- package/dist/icons/md/MdDragHandle.js +0 -23
- package/dist/icons/md/MdInstallDesktop.js +0 -31
- package/dist/icons/md/MdOutlineAttachMoney.js +0 -23
- package/dist/icons/md/MdOutlineMoneyOff.js +0 -23
- package/dist/icons/md/MdPieChart.js +0 -23
- package/dist/icons/md/MdRefresh.js +0 -23
- package/dist/icons/md/MdReplay.js +0 -23
- package/dist/icons/md/MdSmartphone.js +0 -23
- package/dist/icons/pi/PiArrowBendUpRightBold.js +0 -19
- package/dist/icons/pi/PiPlugsConnectedFill.js +0 -19
- package/dist/icons/pi/PiRectangleDashed.js +0 -19
- package/dist/icons/pi/PiShareBold.js +0 -19
- package/dist/icons/si/SiAnthropic.js +0 -19
- package/dist/icons/si/SiHelm.js +0 -19
- package/dist/icons/si/SiKubernetes.js +0 -19
- package/dist/icons/tb/TbAlertTriangle.js +0 -35
- package/dist/icons/tb/TbAlertTriangleFilled.js +0 -19
- package/dist/icons/tb/TbApi.js +0 -40
- package/dist/icons/tb/TbBrain.js +0 -50
- package/dist/icons/tb/TbBuildingTunnel.js +0 -65
- package/dist/icons/tb/TbEdit.js +0 -35
- package/dist/icons/tb/TbLayoutSidebar.js +0 -27
- package/dist/icons/tb/TbLayoutSidebarLeftCollapse.js +0 -35
- package/dist/icons/tb/TbLayoutSidebarRightCollapse.js +0 -35
- package/dist/icons/tb/TbUser.js +0 -27
- package/dist/icons/tb/TbUserOff.js +0 -35
- package/dist/icons/tb/TbWorldShare.js +0 -55
- package/dist/icons/tb/TbWorldWww.js +0 -65
- package/dist/icons/ti/TiArrowSortedDown.js +0 -20
- package/dist/icons/ti/TiArrowSortedUp.js +0 -20
- package/dist/icons/ti/TiArrowUnsorted.js +0 -20
- package/dist/icons/ti/TiCancel.js +0 -20
- package/dist/icons/vsc/VscChromeMinimize.js +0 -19
- package/dist/icons/vsc/VscJson.js +0 -19
- package/dist/icons/vsc/VscLayoutSidebarLeft.js +0 -19
- package/dist/icons/vsc/VscPass.js +0 -27
- package/dist/icons/vsc/VscSplitHorizontal.js +0 -19
- package/dist/icons/vsc/VscTerminalPowershell.js +0 -19
- package/dist/list/ListPager.d.ts +0 -14
- package/dist/list/ListPager.js +0 -62
- package/dist/list/textEntry.d.ts +0 -2
- package/dist/list/textEntry.js +0 -10
- /package/dist/{ai/ui/codeBreaks.d.ts → components/markdownCodeBreaks.d.ts} +0 -0
package/dist/graph/TreeView.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { cx } from "../cx.js";
|
|
2
|
+
import { ChevronRightIcon } from "../icons.js";
|
|
3
|
+
import { EmptyState } from "../components/EmptyState.js";
|
|
4
|
+
import { Loader } from "../components/Loader.js";
|
|
3
5
|
import { useRunFile, useSlots, useStrings, useWorkflowEngine } from "../components/Provider.js";
|
|
4
|
-
import {
|
|
6
|
+
import { DisclosurePanel } from "../components/Disclosure.js";
|
|
7
|
+
import { Elapsed } from "../components/relativeTime.js";
|
|
8
|
+
import { RunStatusIcon } from "../components/RunStatusIcon.js";
|
|
5
9
|
import { LogViewer } from "../logviewer/LogViewer.js";
|
|
6
|
-
import { toAbsHumanDuration } from "../duration.js";
|
|
7
|
-
import { Collapse } from "./Collapse.js";
|
|
8
10
|
import { jobLabel, toggled } from "./util.js";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
import { useCallback, useId, useMemo, useState } from "react";
|
|
12
|
-
import { DateTime } from "luxon";
|
|
13
13
|
//#region src/graph/TreeView.tsx
|
|
14
|
-
function elapsed({ startedAt, completedAt }) {
|
|
15
|
-
if (!startedAt) return "";
|
|
16
|
-
const end = completedAt ? DateTime.fromISO(completedAt) : DateTime.now();
|
|
17
|
-
return toAbsHumanDuration(DateTime.fromISO(startedAt), end);
|
|
18
|
-
}
|
|
19
14
|
function Chevron({ open, hidden = false }) {
|
|
20
15
|
return /* @__PURE__ */ jsx("div", {
|
|
21
|
-
className:
|
|
22
|
-
children: /* @__PURE__ */ jsx(
|
|
16
|
+
className: cx("flex-shrink-0 transition-transform duration-150", open && "rotate-90", hidden ? "invisible" : "text-[var(--theme-muted-text-color)]"),
|
|
17
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, { className: cx("w-4 h-4", open && "text-[var(--theme-accent)]") })
|
|
23
18
|
});
|
|
24
19
|
}
|
|
25
20
|
function StepLogs({ slug, prefix, jobName, stepIndex }) {
|
|
26
21
|
const logPath = useWorkflowEngine().stepLogPath(prefix, jobName, stepIndex);
|
|
27
22
|
const { data: logs, isLoading, error } = useRunFile(slug, logPath, { refreshInterval: 2e3 });
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
const { dag: t } = useStrings();
|
|
24
|
+
if (isLoading && !logs) return /* @__PURE__ */ jsx("div", {
|
|
25
|
+
className: "px-5 py-4",
|
|
26
|
+
children: /* @__PURE__ */ jsx(Loader, {
|
|
27
|
+
size: 16,
|
|
28
|
+
inline: true,
|
|
29
|
+
label: t.loadingLogs
|
|
30
|
+
})
|
|
31
31
|
});
|
|
32
|
-
if (error || !logs) return /* @__PURE__ */ jsx(
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
if (error || !logs) return /* @__PURE__ */ jsx(EmptyState, {
|
|
33
|
+
variant: "bare",
|
|
34
|
+
title: t.noLogFound
|
|
35
35
|
});
|
|
36
36
|
return /* @__PURE__ */ jsx("div", {
|
|
37
37
|
className: "border-t border-[var(--theme-border)]",
|
|
@@ -48,22 +48,22 @@ function StepLogs({ slug, prefix, jobName, stepIndex }) {
|
|
|
48
48
|
function JobRow({ jobName, job, isExpanded, onToggle, prefix, state }) {
|
|
49
49
|
const hasSteps = !!job.steps?.length;
|
|
50
50
|
const dependencies = Array.isArray(job.needs) ? job.needs : [];
|
|
51
|
-
const duration = elapsed(job);
|
|
52
51
|
const panelId = useId();
|
|
52
|
+
const { dag: t } = useStrings();
|
|
53
53
|
return /* @__PURE__ */ jsxs("div", {
|
|
54
54
|
className: "border-b border-[var(--theme-border)] last:border-b-0",
|
|
55
55
|
children: [/* @__PURE__ */ jsxs("button", {
|
|
56
56
|
type: "button",
|
|
57
57
|
"aria-expanded": isExpanded,
|
|
58
58
|
"aria-controls": hasSteps ? panelId : void 0,
|
|
59
|
-
className:
|
|
59
|
+
className: cx("flex items-center gap-3 px-5 py-3 transition-colors w-full text-left", job.status === "skipped" || job.status === "skipped-failed" ? "cursor-default" : "cursor-pointer", isExpanded && "bg-[var(--theme-panel-bg)]"),
|
|
60
60
|
onClick: onToggle,
|
|
61
61
|
children: [
|
|
62
62
|
/* @__PURE__ */ jsx(Chevron, {
|
|
63
63
|
open: isExpanded,
|
|
64
64
|
hidden: !hasSteps
|
|
65
65
|
}),
|
|
66
|
-
/* @__PURE__ */ jsx(
|
|
66
|
+
/* @__PURE__ */ jsx(RunStatusIcon, { status: job.status }),
|
|
67
67
|
/* @__PURE__ */ jsxs("div", {
|
|
68
68
|
className: "flex flex-col gap-1 min-w-0 flex-1",
|
|
69
69
|
children: [/* @__PURE__ */ jsx("span", {
|
|
@@ -73,7 +73,7 @@ function JobRow({ jobName, job, isExpanded, onToggle, prefix, state }) {
|
|
|
73
73
|
className: "flex items-center gap-1.5",
|
|
74
74
|
children: [/* @__PURE__ */ jsx("span", {
|
|
75
75
|
className: "text-[10px] text-[var(--theme-muted-text-color)]",
|
|
76
|
-
children:
|
|
76
|
+
children: t.dependsOn
|
|
77
77
|
}), dependencies.map((dep) => /* @__PURE__ */ jsx("span", {
|
|
78
78
|
className: "text-[10px] px-1.5 py-0.5 rounded bg-[var(--theme-muted-panel-bg)] text-[var(--theme-muted-text-color)]",
|
|
79
79
|
children: jobLabel(dep)
|
|
@@ -81,13 +81,14 @@ function JobRow({ jobName, job, isExpanded, onToggle, prefix, state }) {
|
|
|
81
81
|
})]
|
|
82
82
|
}),
|
|
83
83
|
/* @__PURE__ */ jsx("div", { className: "flex-1" }),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
/* @__PURE__ */ jsx(Elapsed, {
|
|
85
|
+
start: job.startedAt,
|
|
86
|
+
end: job.completedAt,
|
|
87
|
+
className: "font-mono text-xs text-[var(--theme-muted-text-color)] flex-shrink-0"
|
|
87
88
|
})
|
|
88
89
|
]
|
|
89
|
-
}), /* @__PURE__ */ jsx(
|
|
90
|
-
|
|
90
|
+
}), /* @__PURE__ */ jsx(DisclosurePanel, {
|
|
91
|
+
open: isExpanded && hasSteps,
|
|
91
92
|
id: panelId,
|
|
92
93
|
children: /* @__PURE__ */ jsx("div", {
|
|
93
94
|
className: "ml-[38px] border-l-2 border-[var(--theme-border)]",
|
|
@@ -110,10 +111,10 @@ function JobRow({ jobName, job, isExpanded, onToggle, prefix, state }) {
|
|
|
110
111
|
function StepRow({ step, index, isExpanded, onToggle, prefix, jobName, state }) {
|
|
111
112
|
const engine = useWorkflowEngine();
|
|
112
113
|
const slots = useSlots();
|
|
113
|
-
const duration = elapsed(step);
|
|
114
114
|
const label = engine.stepLabel(step, index);
|
|
115
115
|
const subworkflow = step.subworkflow;
|
|
116
116
|
const panelId = useId();
|
|
117
|
+
const { dag: t } = useStrings();
|
|
117
118
|
const subworkflowJobs = subworkflow?.jobs ?? {};
|
|
118
119
|
const subworkflowJobNames = Object.keys(subworkflowJobs).filter((name) => subworkflowJobs[name]?.if !== false);
|
|
119
120
|
const subworkflowPrefix = `${prefix}subworkflows/${jobName}/step_${index}/`;
|
|
@@ -122,11 +123,11 @@ function StepRow({ step, index, isExpanded, onToggle, prefix, jobName, state })
|
|
|
122
123
|
type: "button",
|
|
123
124
|
"aria-expanded": isExpanded,
|
|
124
125
|
"aria-controls": panelId,
|
|
125
|
-
className:
|
|
126
|
+
className: cx("flex items-center gap-3 px-5 py-2.5 cursor-pointer transition-colors w-full text-left", isExpanded ? "" : "hover:bg-[var(--theme-hover)]"),
|
|
126
127
|
onClick: onToggle,
|
|
127
128
|
children: [
|
|
128
129
|
/* @__PURE__ */ jsx(Chevron, { open: isExpanded }),
|
|
129
|
-
/* @__PURE__ */ jsx(
|
|
130
|
+
/* @__PURE__ */ jsx(RunStatusIcon, { status: step.status }),
|
|
130
131
|
subworkflow && slots.workflowIcon?.({
|
|
131
132
|
image: subworkflow.image,
|
|
132
133
|
type: subworkflow.type,
|
|
@@ -136,17 +137,18 @@ function StepRow({ step, index, isExpanded, onToggle, prefix, jobName, state })
|
|
|
136
137
|
className: "font-mono text-sm text-[var(--theme-app)] truncate flex-1",
|
|
137
138
|
children: [label, subworkflow && /* @__PURE__ */ jsx("span", {
|
|
138
139
|
className: "ml-2 text-xs text-[var(--theme-muted-text-color)]",
|
|
139
|
-
children:
|
|
140
|
+
children: t.subworkflow
|
|
140
141
|
})]
|
|
141
142
|
}),
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
/* @__PURE__ */ jsx(Elapsed, {
|
|
144
|
+
start: step.startedAt,
|
|
145
|
+
end: step.completedAt,
|
|
146
|
+
className: "font-mono text-xs text-[var(--theme-muted-text-color)] flex-shrink-0"
|
|
145
147
|
})
|
|
146
148
|
]
|
|
147
149
|
}),
|
|
148
|
-
/* @__PURE__ */ jsx(
|
|
149
|
-
|
|
150
|
+
/* @__PURE__ */ jsx(DisclosurePanel, {
|
|
151
|
+
open: isExpanded && !subworkflow,
|
|
150
152
|
id: panelId,
|
|
151
153
|
children: /* @__PURE__ */ jsx(StepLogs, {
|
|
152
154
|
slug: state.slug,
|
|
@@ -155,8 +157,8 @@ function StepRow({ step, index, isExpanded, onToggle, prefix, jobName, state })
|
|
|
155
157
|
stepIndex: index
|
|
156
158
|
})
|
|
157
159
|
}),
|
|
158
|
-
/* @__PURE__ */ jsx(
|
|
159
|
-
|
|
160
|
+
/* @__PURE__ */ jsx(DisclosurePanel, {
|
|
161
|
+
open: isExpanded && !!subworkflow && subworkflowJobNames.length > 0,
|
|
160
162
|
id: panelId,
|
|
161
163
|
children: /* @__PURE__ */ jsx("div", {
|
|
162
164
|
className: "ml-[38px] border-l-2 border-[var(--theme-border)]",
|
|
@@ -179,7 +181,7 @@ function StepRow({ step, index, isExpanded, onToggle, prefix, jobName, state })
|
|
|
179
181
|
}
|
|
180
182
|
function TreeView({ jobs, slug, expandedJobs, setExpandedJobs }) {
|
|
181
183
|
const engine = useWorkflowEngine();
|
|
182
|
-
const { dag } = useStrings();
|
|
184
|
+
const { common, dag } = useStrings();
|
|
183
185
|
const visibleJobNames = useMemo(() => {
|
|
184
186
|
return Object.keys(jobs).filter((jobName) => jobs[jobName]?.if !== false);
|
|
185
187
|
}, [jobs]);
|
|
@@ -223,7 +225,7 @@ function TreeView({ jobs, slug, expandedJobs, setExpandedJobs }) {
|
|
|
223
225
|
type: "button",
|
|
224
226
|
onClick: allExpanded ? collapseAll : expandAll,
|
|
225
227
|
className: "text-xs font-mono text-[var(--theme-muted-text-color)] hover:text-[var(--theme-app)] transition-colors px-3 py-1.5 border border-[var(--theme-border)] rounded",
|
|
226
|
-
children: allExpanded ?
|
|
228
|
+
children: allExpanded ? common.collapseAll : common.expandAll
|
|
227
229
|
})
|
|
228
230
|
}), /* @__PURE__ */ jsx("div", { children: (() => {
|
|
229
231
|
const matrixGroups = {};
|
|
@@ -265,7 +267,7 @@ function TreeView({ jobs, slug, expandedJobs, setExpandedJobs }) {
|
|
|
265
267
|
onClick: () => toggleJob(`matrix:${matrixOrigin}`),
|
|
266
268
|
children: [
|
|
267
269
|
/* @__PURE__ */ jsx(Chevron, { open: isGroupExpanded }),
|
|
268
|
-
/* @__PURE__ */ jsx(
|
|
270
|
+
/* @__PURE__ */ jsx(RunStatusIcon, { status: aggStatus }),
|
|
269
271
|
/* @__PURE__ */ jsxs("span", {
|
|
270
272
|
className: "font-mono text-sm text-[var(--theme-app)]",
|
|
271
273
|
children: [
|
|
@@ -276,8 +278,8 @@ function TreeView({ jobs, slug, expandedJobs, setExpandedJobs }) {
|
|
|
276
278
|
]
|
|
277
279
|
})
|
|
278
280
|
]
|
|
279
|
-
}), /* @__PURE__ */ jsx(
|
|
280
|
-
|
|
281
|
+
}), /* @__PURE__ */ jsx(DisclosurePanel, {
|
|
282
|
+
open: isGroupExpanded,
|
|
281
283
|
id: `matrix-panel-${matrixOrigin}`,
|
|
282
284
|
children: /* @__PURE__ */ jsx("div", {
|
|
283
285
|
className: "pl-4",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RemoveIcon } from "../icons.js";
|
|
2
2
|
import { useWorkflowEditing } from "../components/Provider.js";
|
|
3
|
+
import { ErrorText } from "../components/Field.js";
|
|
3
4
|
import { IconButton } from "../components/IconButton.js";
|
|
4
5
|
import { Input } from "../components/Input.js";
|
|
5
6
|
import { useGraphEditorStrings, useInputsEditorStrings } from "./editorStrings.js";
|
|
6
7
|
import { asRecord } from "./records.js";
|
|
7
8
|
import { SETTINGS_YAML_PATH } from "../editor/settingsYaml.js";
|
|
8
|
-
import { AddRowButton, ChoiceButtons, DialogShell, ENV_KEY, ExpressionToggle,
|
|
9
|
+
import { AddRowButton, ChoiceButtons, DialogSection, DialogShell, ENV_KEY, ExpressionToggle, KeyValueEditor, StringListEditor, ToggleField, YamlField, diffPatch, durationError, expressionError, flagError, flagOf, isEmptyPatch, labelled, orUndefined, rowsError, rowsFrom, rowsTo, text, withoutUndefined } from "./editorFields.js";
|
|
9
10
|
import { FlagField, refSuggestions } from "./inputRefs.js";
|
|
10
11
|
import { expressionRefs } from "./expressionRefs.js";
|
|
11
12
|
import { useNewInputs } from "./InputDialog.js";
|
|
@@ -151,7 +152,7 @@ function Card({ onRemove, removeLabel, children }) {
|
|
|
151
152
|
className: "flex flex-1 flex-col gap-3 rounded-md border theme-border p-3",
|
|
152
153
|
children
|
|
153
154
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
154
|
-
icon: /* @__PURE__ */ jsx(
|
|
155
|
+
icon: /* @__PURE__ */ jsx(RemoveIcon, {}),
|
|
155
156
|
label: removeLabel,
|
|
156
157
|
variant: "ghost",
|
|
157
158
|
size: "sm",
|
|
@@ -262,7 +263,7 @@ function SettingsForm({ workflow, onEdit, onClose, renderShell, onDraft, pending
|
|
|
262
263
|
links: namesError(links.map((link) => link.name), LINK_NAME, t.invalidLinkName, t) ?? (links.some((link) => !link.value.trim()) ? t.required : void 0) ?? links.flatMap((link) => LINK_FLAGS.map((f) => link.flags[f])).map((value) => flagError(value, t)).find(Boolean),
|
|
263
264
|
redirect: redirects > 1 ? t.oneRedirect : void 0,
|
|
264
265
|
orgVariables: namesError(orgVariables, ORG_VARIABLE, t.invalidOrganizationVariable, t),
|
|
265
|
-
userVariables: userVariables.expression !== void 0 ? expressionError(userVariables.expression, t) : rowsError(userVariables.rows, USER_VARIABLE, t.
|
|
266
|
+
userVariables: userVariables.expression !== void 0 ? expressionError(userVariables.expression, t) : rowsError(userVariables.rows, USER_VARIABLE, t.common.invalidName, t),
|
|
266
267
|
wizard: wizardOn ? WIZARD_FLAGS.map((flag) => flagError(wizardFlags[flag], t)).find(Boolean) : void 0
|
|
267
268
|
};
|
|
268
269
|
const nextNeeds = () => {
|
|
@@ -333,32 +334,29 @@ function SettingsForm({ workflow, onEdit, onClose, renderShell, onDraft, pending
|
|
|
333
334
|
onDraft?.(saveEdit, invalid);
|
|
334
335
|
const children = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
335
336
|
newInputs.dialog,
|
|
336
|
-
/* @__PURE__ */ jsxs(
|
|
337
|
+
/* @__PURE__ */ jsxs(DialogSection, {
|
|
337
338
|
title: t.sectionGeneral,
|
|
338
339
|
open: true,
|
|
339
|
-
children: [
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
}),
|
|
345
|
-
/* @__PURE__ */ jsx(KeyValueEditor, {
|
|
340
|
+
children: [/* @__PURE__ */ jsx(YamlField, {
|
|
341
|
+
label: t.fields.env,
|
|
342
|
+
yamlKey: "env",
|
|
343
|
+
description: t.help.workflowEnv,
|
|
344
|
+
children: /* @__PURE__ */ jsx(KeyValueEditor, {
|
|
346
345
|
rows: env,
|
|
347
346
|
onChange: setEnv,
|
|
348
347
|
error: errors.env,
|
|
349
348
|
valueSuggestions: refSuggestions(source)
|
|
350
|
-
}),
|
|
351
|
-
/* @__PURE__ */ jsx(Input, {
|
|
352
|
-
mono: true,
|
|
353
|
-
...labelled(t.fields.timeout, "timeout"),
|
|
354
|
-
description: t.help.workflowTimeout,
|
|
355
|
-
value: timeout,
|
|
356
|
-
error: errors.timeout,
|
|
357
|
-
onChange: (e) => changeTimeout(e.target.value)
|
|
358
349
|
})
|
|
359
|
-
|
|
350
|
+
}), /* @__PURE__ */ jsx(Input, {
|
|
351
|
+
mono: true,
|
|
352
|
+
...labelled(t.fields.timeout, "timeout"),
|
|
353
|
+
description: t.help.workflowTimeout,
|
|
354
|
+
value: timeout,
|
|
355
|
+
error: errors.timeout,
|
|
356
|
+
onChange: (e) => changeTimeout(e.target.value)
|
|
357
|
+
})]
|
|
360
358
|
}),
|
|
361
|
-
/* @__PURE__ */ jsx(
|
|
359
|
+
/* @__PURE__ */ jsx(DialogSection, {
|
|
362
360
|
title: t.sectionPermissions,
|
|
363
361
|
description: t.help.permissions,
|
|
364
362
|
open: permissions.length > 0,
|
|
@@ -372,14 +370,14 @@ function SettingsForm({ workflow, onEdit, onClose, renderShell, onDraft, pending
|
|
|
372
370
|
error: errors.permissions
|
|
373
371
|
})
|
|
374
372
|
}),
|
|
375
|
-
/* @__PURE__ */ jsxs(
|
|
373
|
+
/* @__PURE__ */ jsxs(DialogSection, {
|
|
376
374
|
title: t.sectionSessions,
|
|
377
375
|
description: t.help.sessions,
|
|
378
376
|
open: sessions.length > 0,
|
|
379
377
|
alert: !!(errors.sessions || errors.redirect),
|
|
380
378
|
children: [
|
|
381
379
|
sessions.map((session, i) => /* @__PURE__ */ jsxs(Card, {
|
|
382
|
-
removeLabel: t.
|
|
380
|
+
removeLabel: t.common.remove,
|
|
383
381
|
onRemove: () => setSessions(sessions.filter((_, j) => j !== i)),
|
|
384
382
|
children: [
|
|
385
383
|
/* @__PURE__ */ jsx(Input, {
|
|
@@ -389,37 +387,37 @@ function SettingsForm({ workflow, onEdit, onClose, renderShell, onDraft, pending
|
|
|
389
387
|
value: session.name,
|
|
390
388
|
onChange: (e) => updateSession(i, { name: e.target.value })
|
|
391
389
|
}),
|
|
392
|
-
/* @__PURE__ */ jsx(
|
|
390
|
+
/* @__PURE__ */ jsx(YamlField, {
|
|
393
391
|
label: t.fields.sessionType,
|
|
394
392
|
yamlKey: "type",
|
|
395
|
-
description: t.help.sessionType
|
|
393
|
+
description: t.help.sessionType,
|
|
394
|
+
children: /* @__PURE__ */ jsx(ChoiceButtons, {
|
|
395
|
+
options: [{
|
|
396
|
+
value: "tunnel",
|
|
397
|
+
label: t.sessionTypeTunnel
|
|
398
|
+
}, {
|
|
399
|
+
value: "link",
|
|
400
|
+
label: t.sessionTypeLink
|
|
401
|
+
}],
|
|
402
|
+
value: session.type,
|
|
403
|
+
onChange: (type) => updateSession(i, { type })
|
|
404
|
+
})
|
|
396
405
|
}),
|
|
397
|
-
/* @__PURE__ */ jsx(
|
|
398
|
-
options: [{
|
|
399
|
-
value: "tunnel",
|
|
400
|
-
label: t.sessionTypeTunnel
|
|
401
|
-
}, {
|
|
402
|
-
value: "link",
|
|
403
|
-
label: t.sessionTypeLink
|
|
404
|
-
}],
|
|
405
|
-
value: session.type,
|
|
406
|
-
onChange: (type) => updateSession(i, { type })
|
|
407
|
-
}),
|
|
408
|
-
/* @__PURE__ */ jsx(FieldLabel, {
|
|
406
|
+
/* @__PURE__ */ jsx(YamlField, {
|
|
409
407
|
label: t.fields.promptForName,
|
|
410
408
|
yamlKey: "prompt-for-name",
|
|
411
|
-
description: t.help.promptForName
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
409
|
+
description: t.help.promptForName,
|
|
410
|
+
children: /* @__PURE__ */ jsx(ChoiceButtons, {
|
|
411
|
+
options: [{
|
|
412
|
+
value: "off",
|
|
413
|
+
label: t.promptOff
|
|
414
|
+
}, {
|
|
415
|
+
value: "ask",
|
|
416
|
+
label: t.promptAsk
|
|
417
|
+
}],
|
|
418
|
+
value: session.prompt ? "ask" : "off",
|
|
419
|
+
onChange: (mode) => updateSession(i, { prompt: mode === "ask" })
|
|
420
|
+
})
|
|
423
421
|
}),
|
|
424
422
|
session.prompt && /* @__PURE__ */ jsx(Input, {
|
|
425
423
|
...labelled(t.fields.promptDefault, "default"),
|
|
@@ -441,7 +439,7 @@ function SettingsForm({ workflow, onEdit, onClose, renderShell, onDraft, pending
|
|
|
441
439
|
}, flag))
|
|
442
440
|
]
|
|
443
441
|
}, session.key)),
|
|
444
|
-
/* @__PURE__ */ jsx(
|
|
442
|
+
/* @__PURE__ */ jsx(ErrorText, { children: errors.sessions ?? errors.redirect }),
|
|
445
443
|
/* @__PURE__ */ jsx(AddRowButton, {
|
|
446
444
|
label: t.addSession,
|
|
447
445
|
onClick: () => setSessions([...sessions, {
|
|
@@ -462,14 +460,14 @@ function SettingsForm({ workflow, onEdit, onClose, renderShell, onDraft, pending
|
|
|
462
460
|
})
|
|
463
461
|
]
|
|
464
462
|
}),
|
|
465
|
-
/* @__PURE__ */ jsxs(
|
|
463
|
+
/* @__PURE__ */ jsxs(DialogSection, {
|
|
466
464
|
title: t.sectionLinks,
|
|
467
465
|
description: t.help.links,
|
|
468
466
|
open: links.length > 0,
|
|
469
467
|
alert: !!(errors.links || errors.redirect),
|
|
470
468
|
children: [
|
|
471
469
|
links.map((link, i) => /* @__PURE__ */ jsxs(Card, {
|
|
472
|
-
removeLabel: t.
|
|
470
|
+
removeLabel: t.common.remove,
|
|
473
471
|
onRemove: () => setLinks(links.filter((_, j) => j !== i)),
|
|
474
472
|
children: [
|
|
475
473
|
/* @__PURE__ */ jsx(Input, {
|
|
@@ -479,20 +477,20 @@ function SettingsForm({ workflow, onEdit, onClose, renderShell, onDraft, pending
|
|
|
479
477
|
value: link.name,
|
|
480
478
|
onChange: (e) => updateLink(i, { name: e.target.value })
|
|
481
479
|
}),
|
|
482
|
-
/* @__PURE__ */ jsx(
|
|
480
|
+
/* @__PURE__ */ jsx(YamlField, {
|
|
483
481
|
label: t.fields.linkTarget,
|
|
484
|
-
description: t.help.linkTarget
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
482
|
+
description: t.help.linkTarget,
|
|
483
|
+
children: /* @__PURE__ */ jsx(ChoiceButtons, {
|
|
484
|
+
options: [{
|
|
485
|
+
value: "endpoint",
|
|
486
|
+
label: t.linkToEndpoint
|
|
487
|
+
}, {
|
|
488
|
+
value: "url",
|
|
489
|
+
label: t.linkToUrl
|
|
490
|
+
}],
|
|
491
|
+
value: link.target,
|
|
492
|
+
onChange: (target) => updateLink(i, { target })
|
|
493
|
+
})
|
|
496
494
|
}),
|
|
497
495
|
/* @__PURE__ */ jsx(Input, {
|
|
498
496
|
mono: true,
|
|
@@ -516,7 +514,7 @@ function SettingsForm({ workflow, onEdit, onClose, renderShell, onDraft, pending
|
|
|
516
514
|
}, flag))
|
|
517
515
|
]
|
|
518
516
|
}, link.key)),
|
|
519
|
-
/* @__PURE__ */ jsx(
|
|
517
|
+
/* @__PURE__ */ jsx(ErrorText, { children: errors.links ?? errors.redirect }),
|
|
520
518
|
/* @__PURE__ */ jsx(AddRowButton, {
|
|
521
519
|
label: t.addLink,
|
|
522
520
|
onClick: () => setLinks([...links, {
|
|
@@ -533,37 +531,34 @@ function SettingsForm({ workflow, onEdit, onClose, renderShell, onDraft, pending
|
|
|
533
531
|
})
|
|
534
532
|
]
|
|
535
533
|
}),
|
|
536
|
-
/* @__PURE__ */ jsxs(
|
|
534
|
+
/* @__PURE__ */ jsxs(DialogSection, {
|
|
537
535
|
title: t.sectionRequiredVariables,
|
|
538
536
|
open: orgVariables.length > 0 || userVariables.rows.length > 0 || userVariables.expression !== void 0,
|
|
539
537
|
alert: !!(errors.orgVariables || errors.userVariables),
|
|
540
|
-
children: [
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
}),
|
|
546
|
-
/* @__PURE__ */ jsx(StringListEditor, {
|
|
538
|
+
children: [/* @__PURE__ */ jsx(YamlField, {
|
|
539
|
+
label: t.fields.organizationVariables,
|
|
540
|
+
yamlKey: "needs.organizationVariables",
|
|
541
|
+
description: t.help.organizationVariables,
|
|
542
|
+
children: /* @__PURE__ */ jsx(StringListEditor, {
|
|
547
543
|
label: t.fields.organizationVariables,
|
|
548
544
|
values: orgVariables,
|
|
549
545
|
onChange: setOrgVariables,
|
|
550
546
|
addLabel: t.addOrganizationVariable,
|
|
551
547
|
placeholder: "MY_VARIABLE",
|
|
552
548
|
error: errors.orgVariables
|
|
553
|
-
})
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
})
|
|
549
|
+
})
|
|
550
|
+
}), /* @__PURE__ */ jsx(YamlField, {
|
|
551
|
+
label: t.fields.userVariables,
|
|
552
|
+
yamlKey: "needs.userVariables",
|
|
553
|
+
description: t.help.userVariables,
|
|
554
|
+
actions: /* @__PURE__ */ jsx(ExpressionToggle, {
|
|
555
|
+
active: userVariables.expression !== void 0,
|
|
556
|
+
onChange: (on) => setUserVariables({
|
|
557
|
+
...userVariables,
|
|
558
|
+
expression: on ? "" : void 0
|
|
564
559
|
})
|
|
565
560
|
}),
|
|
566
|
-
userVariables.expression !== void 0 ? /* @__PURE__ */ jsx(Input, {
|
|
561
|
+
children: userVariables.expression !== void 0 ? /* @__PURE__ */ jsx(Input, {
|
|
567
562
|
mono: true,
|
|
568
563
|
"aria-label": t.fields.userVariables,
|
|
569
564
|
value: userVariables.expression,
|
|
@@ -583,28 +578,28 @@ function SettingsForm({ workflow, onEdit, onClose, renderShell, onDraft, pending
|
|
|
583
578
|
valuePlaceholder: t.help.userVariableHint,
|
|
584
579
|
addLabel: t.addUserVariable
|
|
585
580
|
})
|
|
586
|
-
]
|
|
581
|
+
})]
|
|
587
582
|
}),
|
|
588
|
-
/* @__PURE__ */ jsxs(
|
|
583
|
+
/* @__PURE__ */ jsxs(DialogSection, {
|
|
589
584
|
title: t.sectionInputForm,
|
|
590
585
|
open: wizardOn,
|
|
591
586
|
alert: !!errors.wizard,
|
|
592
587
|
children: [
|
|
593
|
-
/* @__PURE__ */ jsx(
|
|
588
|
+
/* @__PURE__ */ jsx(YamlField, {
|
|
594
589
|
label: t.fields.labelPosition,
|
|
595
590
|
yamlKey: "labelPosition",
|
|
596
|
-
description: t.help.labelPosition
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
591
|
+
description: t.help.labelPosition,
|
|
592
|
+
children: /* @__PURE__ */ jsx(ChoiceButtons, {
|
|
593
|
+
options: [{
|
|
594
|
+
value: "left",
|
|
595
|
+
label: t.labelsBeside
|
|
596
|
+
}, {
|
|
597
|
+
value: "top",
|
|
598
|
+
label: t.labelsAbove
|
|
599
|
+
}],
|
|
600
|
+
value: labelPosition,
|
|
601
|
+
onChange: setLabelPosition
|
|
602
|
+
})
|
|
608
603
|
}),
|
|
609
604
|
/* @__PURE__ */ jsx(ToggleField, {
|
|
610
605
|
label: t.fields.wizard,
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IoSettingsOutline } from "../icons/io5/IoSettingsOutline.js";
|
|
1
|
+
import { cx } from "../cx.js";
|
|
2
|
+
import { RedoIcon, SettingsIcon, UndoIcon } from "../icons.js";
|
|
4
3
|
import { Tooltip } from "../components/Tooltip.js";
|
|
5
4
|
import { IconButton } from "../components/IconButton.js";
|
|
6
5
|
import { useGraphEditorStrings } from "./editorStrings.js";
|
|
7
6
|
import { ProblemsButton } from "./ProblemsButton.js";
|
|
8
7
|
import { ShortcutsButton } from "./ShortcutsButton.js";
|
|
9
|
-
import { clsx } from "clsx";
|
|
10
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
9
|
//#region src/graph/editorChrome.tsx
|
|
12
10
|
/** What a drag carries, beside the pointer at `at` in its layer's coordinates. */
|
|
13
11
|
function DragLabel({ at, text, refused = false }) {
|
|
14
12
|
return /* @__PURE__ */ jsx("div", {
|
|
15
|
-
className:
|
|
13
|
+
className: cx("pointer-events-none absolute z-30 rounded-md border bg-(--theme-panel-bg) px-2 py-1 text-xs shadow", refused ? "border-(--theme-error) text-(--theme-error)" : "theme-border"),
|
|
16
14
|
style: {
|
|
17
15
|
left: at.x + 12,
|
|
18
16
|
top: at.y + 12
|
|
@@ -29,7 +27,7 @@ function AddChip({ icon, label, hint, className, onPointerDown, onClick }) {
|
|
|
29
27
|
content: hint,
|
|
30
28
|
children: /* @__PURE__ */ jsxs("button", {
|
|
31
29
|
type: "button",
|
|
32
|
-
className:
|
|
30
|
+
className: cx("flex h-7 items-center gap-1 whitespace-nowrap rounded px-2 text-xs theme-hover", onPointerDown ? "cursor-grab" : "cursor-pointer", className),
|
|
33
31
|
onPointerDown,
|
|
34
32
|
onClick,
|
|
35
33
|
children: [icon, label]
|
|
@@ -40,20 +38,20 @@ function AddChip({ icon, label, hint, className, onPointerDown, onClick }) {
|
|
|
40
38
|
function EditorBar({ editor, groups, className, children }) {
|
|
41
39
|
const t = useGraphEditorStrings();
|
|
42
40
|
return /* @__PURE__ */ jsxs("div", {
|
|
43
|
-
className:
|
|
41
|
+
className: cx("flex max-w-full flex-wrap items-center justify-end gap-0.5 rounded-md border theme-border bg-(--theme-panel-bg) p-0.5", className),
|
|
44
42
|
children: [
|
|
45
43
|
!!editor.listedProblems?.length && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ProblemsButton, { problems: editor.listedProblems }), /* @__PURE__ */ jsx(BarDivider, {})] }),
|
|
46
44
|
/* @__PURE__ */ jsx(IconButton, {
|
|
47
|
-
icon: /* @__PURE__ */ jsx(
|
|
48
|
-
label: t.undo,
|
|
45
|
+
icon: /* @__PURE__ */ jsx(UndoIcon, {}),
|
|
46
|
+
label: t.common.undo,
|
|
49
47
|
size: "sm",
|
|
50
48
|
variant: "ghost",
|
|
51
49
|
disabled: !editor.canUndo,
|
|
52
50
|
onClick: editor.onUndo
|
|
53
51
|
}),
|
|
54
52
|
/* @__PURE__ */ jsx(IconButton, {
|
|
55
|
-
icon: /* @__PURE__ */ jsx(
|
|
56
|
-
label: t.redo,
|
|
53
|
+
icon: /* @__PURE__ */ jsx(RedoIcon, {}),
|
|
54
|
+
label: t.common.redo,
|
|
57
55
|
size: "sm",
|
|
58
56
|
variant: "ghost",
|
|
59
57
|
disabled: !editor.canRedo,
|
|
@@ -62,7 +60,7 @@ function EditorBar({ editor, groups, className, children }) {
|
|
|
62
60
|
/* @__PURE__ */ jsx(BarDivider, {}),
|
|
63
61
|
children,
|
|
64
62
|
editor.onOpenSettings && /* @__PURE__ */ jsx(IconButton, {
|
|
65
|
-
icon: /* @__PURE__ */ jsx(
|
|
63
|
+
icon: /* @__PURE__ */ jsx(SettingsIcon, {}),
|
|
66
64
|
label: t.workflowSettings,
|
|
67
65
|
size: "sm",
|
|
68
66
|
variant: "ghost",
|