@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/stepWith.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RemoveIcon } from "../icons.js";
|
|
2
2
|
import { useRepoSuggestions, useWorkflowActions, useWorkflowEditing, useWorkflowJsonResolver } from "../components/Provider.js";
|
|
3
|
+
import { ErrorText } from "../components/Field.js";
|
|
3
4
|
import { IconButton } from "../components/IconButton.js";
|
|
4
5
|
import { Input, Textarea } from "../components/Input.js";
|
|
5
6
|
import { useGraphEditorStrings, useInputsEditorStrings } from "./editorStrings.js";
|
|
@@ -7,7 +8,7 @@ import { asRecord } from "./records.js";
|
|
|
7
8
|
import { loadUsesInputs, splitAtRef } from "./usesInputs.js";
|
|
8
9
|
import { FixButtons, LintScope, useFieldLint, useFieldProblems } from "./fieldProblems.js";
|
|
9
10
|
import { SuggestionInput } from "./SuggestionInput.js";
|
|
10
|
-
import { ChoiceButtons, EXPRESSION,
|
|
11
|
+
import { ChoiceButtons, EXPRESSION, KeyValueEditor, StringListEditor, SuggestedInput, ToggleField, YamlField, isScalar, labelled, parseJson, parseScalar, rowsError, rowsFrom, rowsTo, sameValue } from "./editorFields.js";
|
|
11
12
|
import { ValueOrInputField, refSuggestions } from "./inputRefs.js";
|
|
12
13
|
import { DynamicForm } from "../form/Form.js";
|
|
13
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -125,14 +126,14 @@ function withError(uses, actions, draft, original, t) {
|
|
|
125
126
|
for (const spec of specsFor(uses, actions)) {
|
|
126
127
|
const value = valueFor(spec, draft.values[slot(spec)]);
|
|
127
128
|
if (spec.required && value === void 0) return t.missingInput(spec.key);
|
|
128
|
-
if (spec.kind === "number" && value !== void 0 && typeof value !== "number") return t.
|
|
129
|
+
if (spec.kind === "number" && value !== void 0 && typeof value !== "number") return t.common.invalidNumber;
|
|
129
130
|
if (spec.kind === "choice" && typeof value === "string" && !spec.choices?.includes(value) && !(spec.expression && EXPRESSION.test(value))) return t.invalidChoice(spec.key);
|
|
130
131
|
if (spec.kind === "flags") {
|
|
131
|
-
const error = rowsError(draft.values[slot(spec)], INPUT_KEY, t.
|
|
132
|
+
const error = rowsError(draft.values[slot(spec)], INPUT_KEY, t.common.invalidName, t);
|
|
132
133
|
if (error) return error;
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
|
-
return kind === "action" ? void 0 : rowsError(draft.rows, kind === "other" ? /^\$?[a-zA-Z0-9_-]+$/ : INPUT_KEY, t.
|
|
136
|
+
return kind === "action" ? void 0 : rowsError(draft.rows, kind === "other" ? /^\$?[a-zA-Z0-9_-]+$/ : INPUT_KEY, t.common.invalidName, t);
|
|
136
137
|
}
|
|
137
138
|
function SpecField({ spec, draft, onChange, references, source }) {
|
|
138
139
|
const t = useGraphEditorStrings();
|
|
@@ -149,7 +150,7 @@ function SpecField({ spec, draft, onChange, references, source }) {
|
|
|
149
150
|
suggestions: spec.choices ?? []
|
|
150
151
|
});
|
|
151
152
|
switch (spec.kind) {
|
|
152
|
-
case "list": return /* @__PURE__ */ jsx(
|
|
153
|
+
case "list": return /* @__PURE__ */ jsx(YamlField, {
|
|
153
154
|
label,
|
|
154
155
|
yamlKey: spec.key,
|
|
155
156
|
description,
|
|
@@ -157,7 +158,7 @@ function SpecField({ spec, draft, onChange, references, source }) {
|
|
|
157
158
|
label,
|
|
158
159
|
values: draft,
|
|
159
160
|
onChange,
|
|
160
|
-
addLabel: t.
|
|
161
|
+
addLabel: t.common.add
|
|
161
162
|
})
|
|
162
163
|
});
|
|
163
164
|
case "bool": return /* @__PURE__ */ jsx(ToggleField, {
|
|
@@ -167,7 +168,7 @@ function SpecField({ spec, draft, onChange, references, source }) {
|
|
|
167
168
|
checked: typeof draft === "boolean" ? draft : spec.fallback ?? false,
|
|
168
169
|
onChange: (on) => onChange(on === (spec.fallback ?? false) ? void 0 : on)
|
|
169
170
|
});
|
|
170
|
-
case "flags": return /* @__PURE__ */ jsx(
|
|
171
|
+
case "flags": return /* @__PURE__ */ jsx(YamlField, {
|
|
171
172
|
label,
|
|
172
173
|
yamlKey: spec.key,
|
|
173
174
|
description,
|
|
@@ -180,22 +181,23 @@ function SpecField({ spec, draft, onChange, references, source }) {
|
|
|
180
181
|
});
|
|
181
182
|
case "target": {
|
|
182
183
|
const target = draft;
|
|
183
|
-
return /* @__PURE__ */
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
184
|
+
return /* @__PURE__ */ jsx(YamlField, {
|
|
185
|
+
label,
|
|
186
|
+
yamlKey: spec.key,
|
|
187
|
+
description,
|
|
188
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
189
|
+
className: "flex flex-col gap-2",
|
|
190
|
+
children: (spec.fields ?? []).map((field) => /* @__PURE__ */ jsx(Input, {
|
|
191
|
+
mono: true,
|
|
192
|
+
...labelled(field.label, field.key),
|
|
193
|
+
description: field.description,
|
|
194
|
+
value: target[field.key] ?? "",
|
|
195
|
+
onChange: (e) => onChange({
|
|
196
|
+
...target,
|
|
197
|
+
[field.key]: e.target.value
|
|
198
|
+
})
|
|
199
|
+
}, field.key))
|
|
200
|
+
})
|
|
199
201
|
});
|
|
200
202
|
}
|
|
201
203
|
case "textarea": return /* @__PURE__ */ jsx(Textarea, {
|
|
@@ -311,35 +313,35 @@ function UsesPicker({ uses, onUses, choices, draft, onDraft, error }) {
|
|
|
311
313
|
return /* @__PURE__ */ jsxs("div", {
|
|
312
314
|
className: "flex flex-col gap-2",
|
|
313
315
|
children: [
|
|
314
|
-
/* @__PURE__ */ jsx(
|
|
316
|
+
/* @__PURE__ */ jsx(YamlField, {
|
|
315
317
|
label: t.fields.uses,
|
|
316
318
|
yamlKey: "uses",
|
|
317
|
-
description: t.help.uses
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
319
|
+
description: t.help.uses,
|
|
320
|
+
children: /* @__PURE__ */ jsx(ChoiceButtons, {
|
|
321
|
+
options: [
|
|
322
|
+
{
|
|
323
|
+
value: "action",
|
|
324
|
+
label: t.usesAction
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
value: "workflow",
|
|
328
|
+
label: t.usesWorkflow
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
value: "marketplace",
|
|
332
|
+
label: t.usesMarketplace
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
value: "repository",
|
|
336
|
+
label: t.usesRepository
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
value: mode,
|
|
340
|
+
onChange: (next) => {
|
|
341
|
+
setMode(next);
|
|
342
|
+
if (next !== usesMode(uses, actions)) onUses("");
|
|
336
343
|
}
|
|
337
|
-
|
|
338
|
-
value: mode,
|
|
339
|
-
onChange: (next) => {
|
|
340
|
-
setMode(next);
|
|
341
|
-
if (next !== usesMode(uses, actions)) onUses("");
|
|
342
|
-
}
|
|
344
|
+
})
|
|
343
345
|
}),
|
|
344
346
|
mode === "action" ? select(Object.keys(actions), t.chooseAction, (value) => actions[value]?.description) : mode === "workflow" ? select(options("workflow/"), t.chooseWorkflow) : mode === "marketplace" ? select(options("marketplace/"), t.chooseMarketplace) : /* @__PURE__ */ jsx(RepositoryForm, {
|
|
345
347
|
uses,
|
|
@@ -347,7 +349,7 @@ function UsesPicker({ uses, onUses, choices, draft, onDraft, error }) {
|
|
|
347
349
|
onUses,
|
|
348
350
|
onDraft
|
|
349
351
|
}),
|
|
350
|
-
/* @__PURE__ */ jsx(
|
|
352
|
+
/* @__PURE__ */ jsx(ErrorText, { children: error ?? lint.message })
|
|
351
353
|
]
|
|
352
354
|
});
|
|
353
355
|
}
|
|
@@ -417,38 +419,47 @@ function WithEditor({ uses, draft, original, onChange, error, source }) {
|
|
|
417
419
|
rows
|
|
418
420
|
});
|
|
419
421
|
};
|
|
422
|
+
const otherRows = /* @__PURE__ */ jsx(KeyValueEditor, {
|
|
423
|
+
rows: draft.rows.filter((row) => !knownKeys.has(row.key)),
|
|
424
|
+
onChange: (rows) => onChange({
|
|
425
|
+
...draft,
|
|
426
|
+
rows: [...draft.rows.filter((row) => knownKeys.has(row.key)), ...rows]
|
|
427
|
+
}),
|
|
428
|
+
error: void 0,
|
|
429
|
+
valueSuggestions: references,
|
|
430
|
+
lint: true
|
|
431
|
+
});
|
|
420
432
|
return /* @__PURE__ */ jsx(LintScope, {
|
|
421
433
|
at: "with",
|
|
422
|
-
children: /* @__PURE__ */
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
known.map(([key, raw]) => {
|
|
434
|
+
children: /* @__PURE__ */ jsx(YamlField, {
|
|
435
|
+
label: t.fields.with,
|
|
436
|
+
yamlKey: "with",
|
|
437
|
+
description: t.help.with,
|
|
438
|
+
error,
|
|
439
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
440
|
+
className: "flex flex-col gap-3",
|
|
441
|
+
children: [
|
|
442
|
+
kind === "action" && specsFor(uses, actions).map((spec) => /* @__PURE__ */ jsx(SpecField, {
|
|
443
|
+
spec,
|
|
444
|
+
draft: draft.values[slot(spec)],
|
|
445
|
+
references,
|
|
446
|
+
source,
|
|
447
|
+
onChange: (value) => onChange({
|
|
448
|
+
...draft,
|
|
449
|
+
values: {
|
|
450
|
+
...draft.values,
|
|
451
|
+
[slot(spec)]: value
|
|
452
|
+
}
|
|
453
|
+
})
|
|
454
|
+
}, slot(spec))),
|
|
455
|
+
extras.map((key) => /* @__PURE__ */ jsx(ExtraKey, {
|
|
456
|
+
name: key,
|
|
457
|
+
uses,
|
|
458
|
+
draft,
|
|
459
|
+
original,
|
|
460
|
+
onChange
|
|
461
|
+
}, key)),
|
|
462
|
+
kind !== "action" && /* @__PURE__ */ jsxs(Fragment, { children: [known.map(([key, raw]) => {
|
|
452
463
|
const definition = asRecord(raw);
|
|
453
464
|
const label = String(definition["label"] ?? "");
|
|
454
465
|
const about = String(definition["description"] ?? "");
|
|
@@ -461,24 +472,13 @@ function WithEditor({ uses, draft, original, onChange, error, source }) {
|
|
|
461
472
|
suggestions: references,
|
|
462
473
|
onChange: (value) => setRow(key, value)
|
|
463
474
|
}, key);
|
|
464
|
-
}),
|
|
465
|
-
known.length > 0 && /* @__PURE__ */ jsx(FieldLabel, {
|
|
475
|
+
}), known.length > 0 ? /* @__PURE__ */ jsx(YamlField, {
|
|
466
476
|
label: t.otherInputs,
|
|
467
|
-
description: t.help.withInputs
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
...draft,
|
|
473
|
-
rows: [...draft.rows.filter((row) => knownKeys.has(row.key)), ...rows]
|
|
474
|
-
}),
|
|
475
|
-
error: void 0,
|
|
476
|
-
valueSuggestions: references,
|
|
477
|
-
lint: true
|
|
478
|
-
})
|
|
479
|
-
] }),
|
|
480
|
-
/* @__PURE__ */ jsx(FieldError, { message: error })
|
|
481
|
-
]
|
|
477
|
+
description: t.help.withInputs,
|
|
478
|
+
children: otherRows
|
|
479
|
+
}) : otherRows] })
|
|
480
|
+
]
|
|
481
|
+
})
|
|
482
482
|
})
|
|
483
483
|
});
|
|
484
484
|
}
|
|
@@ -519,8 +519,8 @@ function ExtraKey({ name, uses, draft, original, onChange }) {
|
|
|
519
519
|
children: t.notActionInput
|
|
520
520
|
}),
|
|
521
521
|
/* @__PURE__ */ jsx(IconButton, {
|
|
522
|
-
icon: /* @__PURE__ */ jsx(
|
|
523
|
-
label: t.
|
|
522
|
+
icon: /* @__PURE__ */ jsx(RemoveIcon, {}),
|
|
523
|
+
label: t.common.remove,
|
|
524
524
|
variant: "ghost",
|
|
525
525
|
size: "sm",
|
|
526
526
|
onClick: remove
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** A toolbar button's panel: above the button when there's room, its right edge
|
|
2
|
+
* lined up with the button's, focused itself so a list doesn't open on one item. */
|
|
3
|
+
export declare const toolbarPanel: {
|
|
4
|
+
readonly side: 'top';
|
|
5
|
+
readonly align: 'end';
|
|
6
|
+
readonly initialFocus: 'popup';
|
|
7
|
+
readonly className: 'w-96 text-xs';
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/graph/toolbarPanel.ts
|
|
2
|
+
/** A toolbar button's panel: above the button when there's room, its right edge
|
|
3
|
+
* lined up with the button's, focused itself so a list doesn't open on one item. */
|
|
4
|
+
var toolbarPanel = {
|
|
5
|
+
side: "top",
|
|
6
|
+
align: "end",
|
|
7
|
+
initialFocus: "popup",
|
|
8
|
+
className: "w-96 text-xs"
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { toolbarPanel };
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,23 +1,234 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
1
|
+
import type { LucideProps } from 'lucide-react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export interface IconProps extends LucideProps {
|
|
4
|
+
/** Names the icon for assistive technology. Without it, or an `aria-label`,
|
|
5
|
+
* the icon is decoration and hidden from assistive technology. */
|
|
6
|
+
title?: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
/** An icon from this module or the brand icons. */
|
|
9
|
+
export type IconType = (props: IconProps) => ReactNode;
|
|
10
|
+
export declare const AccessIcon: IconType;
|
|
11
|
+
export declare const AddIcon: IconType;
|
|
12
|
+
export declare const AddUserIcon: IconType;
|
|
13
|
+
export declare const AgentIcon: IconType;
|
|
14
|
+
export declare const AllocationIcon: IconType;
|
|
15
|
+
export declare const APIIcon: IconType;
|
|
16
|
+
export declare const ArchiveIcon: IconType;
|
|
17
|
+
export declare const ArrowDownIcon: IconType;
|
|
18
|
+
export declare const ArrowLeftIcon: IconType;
|
|
19
|
+
export declare const ArrowRightIcon: IconType;
|
|
20
|
+
export declare const ArrowUpIcon: IconType;
|
|
21
|
+
export declare const AttachmentIcon: IconType;
|
|
22
|
+
export declare const AuthenticationIcon: IconType;
|
|
23
|
+
export declare const BillingIcon: IconType;
|
|
24
|
+
export declare const BriefcaseIcon: IconType;
|
|
25
|
+
export declare const BucketIcon: IconType;
|
|
26
|
+
export declare const BuildWorkflowIcon: IconType;
|
|
27
|
+
export declare const CalendarIcon: IconType;
|
|
28
|
+
export declare const CalendarOffIcon: IconType;
|
|
29
|
+
export declare const CancelIcon: IconType;
|
|
30
|
+
export declare const CelebrateIcon: IconType;
|
|
31
|
+
export declare const CertificateIcon: IconType;
|
|
32
|
+
export declare const ChartIcon: IconType;
|
|
33
|
+
export declare const ChatIcon: IconType;
|
|
34
|
+
export declare const CheckIcon: IconType;
|
|
35
|
+
export declare const ChevronDoubleDownIcon: IconType;
|
|
36
|
+
export declare const ChevronDoubleUpIcon: IconType;
|
|
37
|
+
export declare const ChevronDownIcon: IconType;
|
|
38
|
+
export declare const ChevronLeftIcon: IconType;
|
|
39
|
+
export declare const ChevronRightIcon: IconType;
|
|
40
|
+
export declare const ChevronUpIcon: IconType;
|
|
41
|
+
export declare const ClipboardCheckIcon: IconType;
|
|
42
|
+
export declare const ClockIcon: IconType;
|
|
43
|
+
export declare const CloseIcon: IconType;
|
|
44
|
+
export declare const CloudIcon: IconType;
|
|
45
|
+
export declare const ClusterIcon: IconType;
|
|
46
|
+
export declare const CodeIcon: IconType;
|
|
47
|
+
export declare const CollapseIcon: IconType;
|
|
48
|
+
export declare const ColumnsIcon: IconType;
|
|
49
|
+
export declare const CommentIcon: IconType;
|
|
50
|
+
export declare const CommitIcon: IconType;
|
|
51
|
+
export declare const ComputeIcon: IconType;
|
|
52
|
+
export declare const ConnectIcon: IconType;
|
|
53
|
+
export declare const CopyIcon: IconType;
|
|
54
|
+
export declare const CustomizeIcon: IconType;
|
|
55
|
+
export declare const DesktopIcon: IconType;
|
|
56
|
+
export declare const DestroyIcon: IconType;
|
|
57
|
+
export declare const DeviceIcon: IconType;
|
|
58
|
+
export declare const DirectoryIcon: IconType;
|
|
59
|
+
export declare const DisableCostIcon: IconType;
|
|
60
|
+
export declare const DisableUserIcon: IconType;
|
|
61
|
+
export declare const DisconnectIcon: IconType;
|
|
62
|
+
export declare const DiskIcon: IconType;
|
|
63
|
+
export declare const DisplayIcon: IconType;
|
|
64
|
+
export declare const DownloadIcon: IconType;
|
|
65
|
+
export declare const DragHandleIcon: IconType;
|
|
66
|
+
export declare const DuplicateIcon: IconType;
|
|
67
|
+
export declare const EditIcon: IconType;
|
|
68
|
+
export declare const EditorIcon: IconType;
|
|
69
|
+
export declare const EducationIcon: IconType;
|
|
70
|
+
export declare const EnableCostIcon: IconType;
|
|
71
|
+
export declare const EnableUserIcon: IconType;
|
|
72
|
+
export declare const EndpointIcon: IconType;
|
|
73
|
+
export declare const ErrorIcon: IconType;
|
|
74
|
+
export declare const EventsIcon: IconType;
|
|
75
|
+
export declare const ExpandIcon: IconType;
|
|
76
|
+
export declare const ExpandVerticalIcon: IconType;
|
|
77
|
+
export declare const ExpressionIcon: IconType;
|
|
78
|
+
export declare const ExternalLinkIcon: IconType;
|
|
79
|
+
export declare const EyeIcon: IconType;
|
|
80
|
+
export declare const EyeOffIcon: IconType;
|
|
81
|
+
export declare const FailIcon: IconType;
|
|
82
|
+
export declare const FavoriteIcon: IconType;
|
|
83
|
+
export declare const FavoriteOutlineIcon: IconType;
|
|
84
|
+
export declare const FeaturedIcon: IconType;
|
|
85
|
+
export declare const FileIcon: IconType;
|
|
86
|
+
export declare const FilesIcon: IconType;
|
|
87
|
+
export declare const FilesystemIcon: IconType;
|
|
88
|
+
export declare const FileTextIcon: IconType;
|
|
89
|
+
export declare const FilterClearIcon: IconType;
|
|
90
|
+
export declare const FilterIcon: IconType;
|
|
91
|
+
export declare const FlaskIcon: IconType;
|
|
92
|
+
export declare const FolderIcon: IconType;
|
|
93
|
+
export declare const FolderOpenIcon: IconType;
|
|
94
|
+
export declare const FolderTreeIcon: IconType;
|
|
95
|
+
export declare const ForbiddenIcon: IconType;
|
|
96
|
+
export declare const ForkIcon: IconType;
|
|
97
|
+
export declare const GearsIcon: IconType;
|
|
98
|
+
export declare const GlobeIcon: IconType;
|
|
99
|
+
export declare const GovernmentIcon: IconType;
|
|
100
|
+
export declare const GraphIcon: IconType;
|
|
101
|
+
export declare const GridIcon: IconType;
|
|
102
|
+
export declare const HealthMonitoringIcon: IconType;
|
|
103
|
+
export declare const HelpIcon: IconType;
|
|
104
|
+
export declare const HistoryIcon: IconType;
|
|
105
|
+
export declare const HomeIcon: IconType;
|
|
106
|
+
export declare const IdCardIcon: IconType;
|
|
107
|
+
export declare const ImageIcon: IconType;
|
|
108
|
+
export declare const ImpersonateIcon: IconType;
|
|
109
|
+
export declare const InboxIcon: IconType;
|
|
110
|
+
export declare const IndexIcon: IconType;
|
|
111
|
+
export declare const InfoIcon: IconType;
|
|
112
|
+
export declare const InfrastructureLayersIcon: IconType;
|
|
113
|
+
export declare const InputFormIcon: IconType;
|
|
114
|
+
export declare const InstallIcon: IconType;
|
|
115
|
+
export declare const InstanceIcon: IconType;
|
|
116
|
+
export declare const InstanceTypeIcon: IconType;
|
|
117
|
+
export declare const IpAddressIcon: IconType;
|
|
118
|
+
export declare const IssueIcon: IconType;
|
|
119
|
+
export declare const JobIcon: IconType;
|
|
120
|
+
export declare const JsonIcon: IconType;
|
|
121
|
+
export declare const KeyboardIcon: IconType;
|
|
122
|
+
export declare const KeyIcon: IconType;
|
|
123
|
+
export declare const KubernetesNamespaceIcon: IconType;
|
|
124
|
+
export declare const LanguageIcon: IconType;
|
|
125
|
+
export declare const LegalIcon: IconType;
|
|
126
|
+
export declare const LicenseIcon: IconType;
|
|
127
|
+
export declare const LinkIcon: IconType;
|
|
128
|
+
export declare const ListViewIcon: IconType;
|
|
129
|
+
export declare const LockIcon: IconType;
|
|
130
|
+
export declare const MachineImageIcon: IconType;
|
|
131
|
+
export declare const MailIcon: IconType;
|
|
132
|
+
export declare const MapPinIcon: IconType;
|
|
133
|
+
export declare const MarketplaceIcon: IconType;
|
|
134
|
+
export declare const MatrixIcon: IconType;
|
|
135
|
+
export declare const MegaphoneIcon: IconType;
|
|
136
|
+
export declare const MFAIcon: IconType;
|
|
137
|
+
export declare const MigrationIcon: IconType;
|
|
138
|
+
export declare const MinimizeIcon: IconType;
|
|
139
|
+
export declare const MinusIcon: IconType;
|
|
140
|
+
export declare const MlIcon: IconType;
|
|
141
|
+
export declare const MoneyIcon: IconType;
|
|
142
|
+
export declare const MoonIcon: IconType;
|
|
143
|
+
export declare const MoreIcon: IconType;
|
|
144
|
+
export declare const MusicIcon: IconType;
|
|
145
|
+
export declare const MuteIcon: IconType;
|
|
146
|
+
export declare const NetworkInterfaceIcon: IconType;
|
|
147
|
+
export declare const NewChatIcon: IconType;
|
|
148
|
+
export declare const NodeIcon: IconType;
|
|
149
|
+
export declare const NotebookIcon: IconType;
|
|
150
|
+
export declare const NotificationIcon: IconType;
|
|
151
|
+
export declare const NotRunningIcon: IconType;
|
|
152
|
+
export declare const OnboardingIcon: IconType;
|
|
153
|
+
export declare const OpenInNewGraphIcon: IconType;
|
|
154
|
+
export declare const OrganizationIcon: IconType;
|
|
155
|
+
export declare const PartnerIcon: IconType;
|
|
156
|
+
export declare const PasswordIcon: IconType;
|
|
157
|
+
export declare const PauseIcon: IconType;
|
|
158
|
+
export declare const PdfIcon: IconType;
|
|
159
|
+
export declare const PhoneIcon: IconType;
|
|
160
|
+
export declare const PieChartIcon: IconType;
|
|
161
|
+
export declare const PinFilledIcon: IconType;
|
|
162
|
+
export declare const PinIcon: IconType;
|
|
163
|
+
export declare const PowerIcon: IconType;
|
|
164
|
+
export declare const PowershellIcon: IconType;
|
|
165
|
+
export declare const PreviewIcon: IconType;
|
|
166
|
+
export declare const PrintIcon: IconType;
|
|
167
|
+
export declare const PublishIcon: IconType;
|
|
168
|
+
export declare const PullRequestIcon: IconType;
|
|
169
|
+
export declare const QRCodeIcon: IconType;
|
|
170
|
+
export declare const QueueIcon: IconType;
|
|
171
|
+
export declare const QuotaIcon: IconType;
|
|
172
|
+
export declare const RedoIcon: IconType;
|
|
173
|
+
export declare const RefreshIcon: IconType;
|
|
174
|
+
export declare const RemoveIcon: IconType;
|
|
175
|
+
export declare const RenameIcon: IconType;
|
|
176
|
+
export declare const ResetLayoutIcon: IconType;
|
|
177
|
+
export declare const ResourceGroupIcon: IconType;
|
|
178
|
+
export declare const ResourceIcon: IconType;
|
|
179
|
+
export declare const RetryIcon: IconType;
|
|
180
|
+
export declare const RollbackIcon: IconType;
|
|
181
|
+
export declare const RunningIcon: IconType;
|
|
182
|
+
export declare const RunsIcon: IconType;
|
|
183
|
+
export declare const RunWorkflowIcon: IconType;
|
|
184
|
+
export declare const SaveIcon: IconType;
|
|
185
|
+
export declare const SchedulerIcon: IconType;
|
|
186
|
+
export declare const ScriptIcon: IconType;
|
|
187
|
+
export declare const SearchIcon: IconType;
|
|
188
|
+
export declare const SendIcon: IconType;
|
|
189
|
+
export declare const ServiceIcon: IconType;
|
|
190
|
+
export declare const SessionIcon: IconType;
|
|
191
|
+
export declare const SettingsIcon: IconType;
|
|
192
|
+
export declare const ShareIcon: IconType;
|
|
193
|
+
export declare const ShieldIcon: IconType;
|
|
194
|
+
export declare const ShieldOffIcon: IconType;
|
|
195
|
+
export declare const ShrinkIcon: IconType;
|
|
196
|
+
export declare const SidebarCloseIcon: IconType;
|
|
197
|
+
export declare const SidebarIcon: IconType;
|
|
198
|
+
export declare const SidebarOpenIcon: IconType;
|
|
199
|
+
export declare const SignOutIcon: IconType;
|
|
200
|
+
export declare const SkipIcon: IconType;
|
|
201
|
+
export declare const SnapshotIcon: IconType;
|
|
202
|
+
export declare const SortDownIcon: IconType;
|
|
203
|
+
export declare const SortUnsortedIcon: IconType;
|
|
204
|
+
export declare const SortUpIcon: IconType;
|
|
205
|
+
export declare const SparklesIcon: IconType;
|
|
206
|
+
export declare const SplitIcon: IconType;
|
|
207
|
+
export declare const SpreadsheetIcon: IconType;
|
|
208
|
+
export declare const StartIcon: IconType;
|
|
209
|
+
export declare const StopIcon: IconType;
|
|
210
|
+
export declare const StorageIcon: IconType;
|
|
211
|
+
export declare const SubdomainIcon: IconType;
|
|
212
|
+
export declare const SuccessIcon: IconType;
|
|
213
|
+
export declare const SunIcon: IconType;
|
|
214
|
+
export declare const TagIcon: IconType;
|
|
215
|
+
export declare const TerminalIcon: IconType;
|
|
216
|
+
export declare const ThinkingIcon: IconType;
|
|
217
|
+
export declare const TrashIcon: IconType;
|
|
218
|
+
export declare const TunnelIcon: IconType;
|
|
219
|
+
export declare const UndoIcon: IconType;
|
|
220
|
+
export declare const UnfavoriteIcon: IconType;
|
|
221
|
+
export declare const UnlinkIcon: IconType;
|
|
222
|
+
export declare const UnmuteIcon: IconType;
|
|
223
|
+
export declare const UploadIcon: IconType;
|
|
224
|
+
export declare const UserIcon: IconType;
|
|
225
|
+
export declare const UsersIcon: IconType;
|
|
226
|
+
export declare const UserWorkspaceIcon: IconType;
|
|
227
|
+
export declare const VideoIcon: IconType;
|
|
228
|
+
export declare const WarningIcon: IconType;
|
|
229
|
+
export declare const WebhookIcon: IconType;
|
|
230
|
+
export declare const ZapIcon: IconType;
|
|
231
|
+
export declare const ZipIcon: IconType;
|
|
232
|
+
export declare const ZoomInIcon: IconType;
|
|
233
|
+
export declare const ZoomOutIcon: IconType;
|
|
234
|
+
export { ErrorCheckmark, SuccessCheckmark } from './components/StatusIcons.js';
|