@powerhousedao/workflow 6.2.3-dev.46 → 6.2.3-dev.48
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/dist/browser/{BlockSelector-B41mSc0W.js → BlockSelector-Do2fNhEF.js} +2 -2
- package/dist/browser/BlockSelector-Do2fNhEF.js.map +1 -0
- package/dist/browser/{connection-form-CkRzKggD.js → connection-form-BfIxO-uq.js} +2 -2
- package/dist/browser/{connection-form-CkRzKggD.js.map → connection-form-BfIxO-uq.js.map} +1 -1
- package/dist/browser/{data-tree-BugZMgLk.js → data-tree-CEBkvtSf.js} +2 -2
- package/dist/browser/{data-tree-BugZMgLk.js.map → data-tree-CEBkvtSf.js.map} +1 -1
- package/dist/browser/{editor-DvK4LPwF.js → editor-BXxj5Do5.js} +1055 -180
- package/dist/browser/editor-BXxj5Do5.js.map +1 -0
- package/dist/browser/{editor-9eSmoDTm.js → editor-C3l2HgXA.js} +54 -12
- package/dist/browser/editor-C3l2HgXA.js.map +1 -0
- package/dist/browser/{editor-ldDYxtLV.js → editor-C6NhkZ3S.js} +3 -3
- package/dist/browser/{editor-ldDYxtLV.js.map → editor-C6NhkZ3S.js.map} +1 -1
- package/dist/browser/editors/connection-editor/module.js +1 -1
- package/dist/browser/editors/workflow-editor/module.js +1 -1
- package/dist/browser/editors/workflow-studio/module.js +1 -1
- package/dist/browser/{trigger-text-C37YRggR.js → trigger-text-Dwaxi16C.js} +36 -3
- package/dist/browser/trigger-text-Dwaxi16C.js.map +1 -0
- package/dist/node/{BlockSelector-BMnBzXcA.mjs → BlockSelector-CrPnitOU.mjs} +2 -2
- package/dist/node/BlockSelector-CrPnitOU.mjs.map +1 -0
- package/dist/node/{connection-form-DZFudcoD.mjs → connection-form-MHDKPohk.mjs} +2 -2
- package/dist/node/{connection-form-DZFudcoD.mjs.map → connection-form-MHDKPohk.mjs.map} +1 -1
- package/dist/node/{data-tree-CR8IOshA.mjs → data-tree-Ccyc8y8I.mjs} +2 -2
- package/dist/node/{data-tree-CR8IOshA.mjs.map → data-tree-Ccyc8y8I.mjs.map} +1 -1
- package/dist/node/{editor-NUaiiO4B.mjs → editor-B4TEgA0j.mjs} +54 -12
- package/dist/node/editor-B4TEgA0j.mjs.map +1 -0
- package/dist/node/{editor-BV5CYmUI.mjs → editor-DKpQGzMS.mjs} +1055 -180
- package/dist/node/editor-DKpQGzMS.mjs.map +1 -0
- package/dist/node/{editor-D_P9-st9.mjs → editor-J42uGqnf.mjs} +3 -3
- package/dist/node/{editor-D_P9-st9.mjs.map → editor-J42uGqnf.mjs.map} +1 -1
- package/dist/node/editors/connection-editor/module.mjs +1 -1
- package/dist/node/editors/workflow-editor/module.mjs +1 -1
- package/dist/node/editors/workflow-studio/module.mjs +1 -1
- package/dist/node/pieces/reactor/descriptor.json +1 -1
- package/dist/node/pieces/reactor/package.json +1 -1
- package/dist/node/{trigger-text-78ZhfT-b.mjs → trigger-text-qK_Nr5Pw.mjs} +36 -3
- package/dist/node/trigger-text-qK_Nr5Pw.mjs.map +1 -0
- package/dist/powerhouse.manifest.json +1 -1
- package/dist/style.css +268 -15
- package/dist/types/editors/shared/controls.d.ts +1 -0
- package/dist/types/editors/shared/controls.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/document/useWorkflowModel.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/ConnectionField.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/ConnectionName.d.ts +8 -0
- package/dist/types/editors/workflow-editor/ui/ConnectionName.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/ui/ReactorConnectionField.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/WorkflowEditorApp.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/ap-nodes.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/model.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/model.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/trigger-text.d.ts +2 -0
- package/dist/types/editors/workflow-editor/ui/trigger-text.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/ScrollFade.d.ts +7 -0
- package/dist/types/editors/workflow-studio/components/ScrollFade.d.ts.map +1 -0
- package/dist/types/editors/workflow-studio/components/Sidebar.d.ts +1 -0
- package/dist/types/editors/workflow-studio/components/Sidebar.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts +1 -0
- package/dist/types/editors/workflow-studio/components/WorkflowBoard.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowGraph.d.ts +41 -0
- package/dist/types/editors/workflow-studio/components/WorkflowGraph.d.ts.map +1 -0
- package/dist/types/editors/workflow-studio/components/WorkflowMenu.d.ts +2 -0
- package/dist/types/editors/workflow-studio/components/WorkflowMenu.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowSteps.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/WorkflowStudio.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/chain.d.ts +4 -0
- package/dist/types/editors/workflow-studio/components/chain.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/fit-geometry.test.d.ts +2 -0
- package/dist/types/editors/workflow-studio/components/fit-geometry.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-studio/components/graph-layout.d.ts +29 -0
- package/dist/types/editors/workflow-studio/components/graph-layout.d.ts.map +1 -0
- package/dist/types/editors/workflow-studio/components/graph-layout.test.d.ts +2 -0
- package/dist/types/editors/workflow-studio/components/graph-layout.test.d.ts.map +1 -0
- package/dist/types/editors/workflow-studio/components/use-collapsed.d.ts +5 -0
- package/dist/types/editors/workflow-studio/components/use-collapsed.d.ts.map +1 -0
- package/dist/types/editors/workflow-studio/components/use-hash-selection.d.ts +4 -4
- package/dist/types/editors/workflow-studio/components/use-hash-selection.d.ts.map +1 -1
- package/dist/types/editors/workflow-studio/components/workflow-order.d.ts +19 -0
- package/dist/types/editors/workflow-studio/components/workflow-order.d.ts.map +1 -0
- package/dist/types/editors/workflow-studio/components/workflow-order.test.d.ts +2 -0
- package/dist/types/editors/workflow-studio/components/workflow-order.test.d.ts.map +1 -0
- package/dist/types/scripts/ui-stack.d.ts +8 -2
- package/dist/types/scripts/ui-stack.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/browser/BlockSelector-B41mSc0W.js.map +0 -1
- package/dist/browser/editor-9eSmoDTm.js.map +0 -1
- package/dist/browser/editor-DvK4LPwF.js.map +0 -1
- package/dist/browser/trigger-text-C37YRggR.js.map +0 -1
- package/dist/node/BlockSelector-BMnBzXcA.mjs.map +0 -1
- package/dist/node/editor-BV5CYmUI.mjs.map +0 -1
- package/dist/node/editor-NUaiiO4B.mjs.map +0 -1
- package/dist/node/trigger-text-78ZhfT-b.mjs.map +0 -1
|
@@ -2,17 +2,17 @@ import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-DC62tzP2.js
|
|
|
2
2
|
import { c as planFromAuth, o as packageFromConnectorId, r as connectorIdForPiece } from "./piece-auth-BS5CtQOG.js";
|
|
3
3
|
import { $ as isCoreBlock, X as STEP_PRESETS, Z as TRIGGER_PRESETS, at as triggerFields, dt as expandDocumentRefs, f as stepOutputTreeQuery, ft as flowPorts, gt as scheduleConfigIssue, h as blockRefKey, ht as parseScheduleConfig, i as outputTreeQuery, it as triggerBlock, mt as knownPorts, n as catalogQuery, nt as stepBlock, rt as stepFields, tt as sameBlock, u as runsQuery, ut as documentRefsIn, v as TEST_TRIGGER_KIND, y as realRuns } from "./runtime-queries-IZG_nonR.js";
|
|
4
4
|
import { y as actions } from "./module-D4UiG9ii.js";
|
|
5
|
-
import { $ as blockMissing, B as useCachedBlockForm, C as formatDuration, Ct as Hint, Dt as Switch, E as formatWhen, Et as Select, F as useBlockForm, Ft as isIconName, G as useDynamicPrefetch, H as useDesignTime, I as useBlockFormLoader, It as DocumentErrorBoundary, J as useResolvedProp, K as useLatestRun, L as useBlockForms, M as toneOf, Mt as textAreaClass, Nt as textInputClass, Ot as Tabs, P as DesignTimeProvider, Pt as Icon, Q as useWebhookEndpoint, R as useBlockPorts, S as formatAbsolute, St as FieldLabel, Tt as Segmented, U as useDynamicCache, V as useConnectionList, W as useDynamicLookup, X as useTestStepRunner, Y as useRunById, Z as useTestTrigger, _ as RUN_TONE, _t as useRuntime, a as resolutionText, at as storedSchema, b as TONE_TEXT, bt as Button, c as useResolution, ct as withSetting, d as pieceDisplayName, et as isEmptyValue, f as pieceLogo, gt as useRunsQuery, i as VersionSummary, it as settingFor, jt as invalidClass, l as versionBadge, lt as workflowReadiness, m as usePieceLogos, n as BlockSelector, nt as parsePropList, o as runsDifferentVersion, ot as stripOptions, p as useBlockMeta, q as useOptionSearch, r as BlockResolutionsProvider, rt as resolverInputFor, s as updateVersion, st as undeclaredPortIssues, t as BlockLogo, tt as isPropVisible, u as blockMeta, ut as WorkflowRuntimeProvider, vt as useRuntimeActions, wt as IconButton, xt as FieldError, y as TONE_DOT, z as useBlockResolutions } from "./BlockSelector-
|
|
5
|
+
import { $ as blockMissing, B as useCachedBlockForm, C as formatDuration, Ct as Hint, Dt as Switch, E as formatWhen, Et as Select, F as useBlockForm, Ft as isIconName, G as useDynamicPrefetch, H as useDesignTime, I as useBlockFormLoader, It as DocumentErrorBoundary, J as useResolvedProp, K as useLatestRun, L as useBlockForms, M as toneOf, Mt as textAreaClass, Nt as textInputClass, Ot as Tabs, P as DesignTimeProvider, Pt as Icon, Q as useWebhookEndpoint, R as useBlockPorts, S as formatAbsolute, St as FieldLabel, Tt as Segmented, U as useDynamicCache, V as useConnectionList, W as useDynamicLookup, X as useTestStepRunner, Y as useRunById, Z as useTestTrigger, _ as RUN_TONE, _t as useRuntime, a as resolutionText, at as storedSchema, b as TONE_TEXT, bt as Button, c as useResolution, ct as withSetting, d as pieceDisplayName, et as isEmptyValue, f as pieceLogo, gt as useRunsQuery, i as VersionSummary, it as settingFor, jt as invalidClass, l as versionBadge, lt as workflowReadiness, m as usePieceLogos, n as BlockSelector, nt as parsePropList, o as runsDifferentVersion, ot as stripOptions, p as useBlockMeta, q as useOptionSearch, r as BlockResolutionsProvider, rt as resolverInputFor, s as updateVersion, st as undeclaredPortIssues, t as BlockLogo, tt as isPropVisible, u as blockMeta, ut as WorkflowRuntimeProvider, vt as useRuntimeActions, wt as IconButton, xt as FieldError, y as TONE_DOT, z as useBlockResolutions } from "./BlockSelector-Do2fNhEF.js";
|
|
6
6
|
import { A as REACTOR_CONNECTOR_ID, y as actions$1 } from "./module-B2BMwu5E.js";
|
|
7
7
|
import { t as useConnectionDocumentById } from "./connection-BP17lpt3.js";
|
|
8
8
|
import { t as useSelectedWorkflowDocument } from "./workflow-DFLQ2cFr.js";
|
|
9
|
-
import { a as useSignInGate, f as connectionCallbacks, g as newUndoGroup, h as groupedAction, i as useReactorAccessDenial, l as reactorConnections, m as UndoRedo, n as SignInPrompt, o as missingInPublished, p as BackButton, r as usePublisher, s as runsAsText, t as ConnectionForm } from "./connection-form-
|
|
10
|
-
import { a as StepError, c as PublishButton, d as ReactorDenialNote, f as StatusToggle, g as uniqueStepKey, h as hasDraftChanges, i as DataViewer, l as PublishState, m as VARIABLES_VIEW, n as describeSchedule, o as Modal, p as usePublish, r as describeTrigger, s as DraftBanner, t as describeCron, u as PublishedMissingNote } from "./trigger-text-
|
|
9
|
+
import { a as useSignInGate, f as connectionCallbacks, g as newUndoGroup, h as groupedAction, i as useReactorAccessDenial, l as reactorConnections, m as UndoRedo, n as SignInPrompt, o as missingInPublished, p as BackButton, r as usePublisher, s as runsAsText, t as ConnectionForm } from "./connection-form-BfIxO-uq.js";
|
|
10
|
+
import { a as StepError, c as PublishButton, d as ReactorDenialNote, f as StatusToggle, g as uniqueStepKey, h as hasDraftChanges, i as DataViewer, l as PublishState, m as VARIABLES_VIEW, n as describeSchedule, o as Modal, p as usePublish, r as describeTrigger, s as DraftBanner, t as describeCron, u as PublishedMissingNote } from "./trigger-text-Dwaxi16C.js";
|
|
11
11
|
import * as m from "react";
|
|
12
12
|
import React, { Fragment, Suspense, createContext, forwardRef, lazy, memo, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
13
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { generateId } from "document-model";
|
|
15
|
-
import { addDocument, dispatchActions, useDocumentModelModules, useFileNodesInSelectedDrive, useSelectedDocumentId, useSelectedDriveId } from "@powerhousedao/reactor-browser";
|
|
15
|
+
import { addDocument, dispatchActions, useDocumentModelModules, useDocumentSafe, useFileNodesInSelectedDrive, useSelectedDocumentId, useSelectedDriveId } from "@powerhousedao/reactor-browser";
|
|
16
16
|
import { createPortal } from "react-dom";
|
|
17
17
|
//#region editors/workflow-editor/undo-policy.ts
|
|
18
18
|
function placesBlock(edit, id) {
|
|
@@ -94,6 +94,7 @@ function settingsInput(settings) {
|
|
|
94
94
|
function toModel(state) {
|
|
95
95
|
return {
|
|
96
96
|
name: state.name,
|
|
97
|
+
description: state.description ?? null,
|
|
97
98
|
status: state.status,
|
|
98
99
|
version: state.version,
|
|
99
100
|
published: state.published ? {
|
|
@@ -182,6 +183,7 @@ function useWorkflowModel() {
|
|
|
182
183
|
dispatch(actions.setWorkflowName({ name }));
|
|
183
184
|
dispatch(actions.setName(name));
|
|
184
185
|
},
|
|
186
|
+
setDescription: (description) => dispatch(actions.setWorkflowDescription({ description })),
|
|
185
187
|
setStatus: (status) => dispatch(actions.setWorkflowStatus({ status })),
|
|
186
188
|
setTrigger: (input) => {
|
|
187
189
|
const id = state.trigger?.id ?? generateId();
|
|
@@ -1434,6 +1436,28 @@ function connectionDraftFor(input) {
|
|
|
1434
1436
|
};
|
|
1435
1437
|
}
|
|
1436
1438
|
//#endregion
|
|
1439
|
+
//#region editors/workflow-editor/ui/ConnectionName.tsx
|
|
1440
|
+
function useConnectionName(id) {
|
|
1441
|
+
const { status, data } = useDocumentSafe(id || null);
|
|
1442
|
+
if (!id || status === "pending") return { invalid: false };
|
|
1443
|
+
const document = data;
|
|
1444
|
+
if (!document) return {
|
|
1445
|
+
name: id,
|
|
1446
|
+
invalid: true
|
|
1447
|
+
};
|
|
1448
|
+
return {
|
|
1449
|
+
name: document.state.global.name || document.header.name || id,
|
|
1450
|
+
invalid: document.header.documentType !== CONNECTION_TYPE
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
function ConnectionName(props) {
|
|
1454
|
+
if (props.name === void 0) return /* @__PURE__ */ jsx("span", {
|
|
1455
|
+
"aria-label": "Loading connection",
|
|
1456
|
+
className: "inline-block h-3.5 w-28 animate-pulse rounded bg-foreground/10 align-middle"
|
|
1457
|
+
});
|
|
1458
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: props.name });
|
|
1459
|
+
}
|
|
1460
|
+
//#endregion
|
|
1437
1461
|
//#region editors/workflow-editor/ui/CreateConnectionModal.tsx
|
|
1438
1462
|
function CreateConnectionModal(props) {
|
|
1439
1463
|
const [document, dispatch] = useConnectionDocumentById(props.connectionId);
|
|
@@ -1610,6 +1634,7 @@ function ConnectionField(props) {
|
|
|
1610
1634
|
return () => window.removeEventListener("mousedown", handler);
|
|
1611
1635
|
}, [open]);
|
|
1612
1636
|
const selected = connections.find((connection) => connection.id === props.value);
|
|
1637
|
+
const bound = useConnectionName(selected ? null : props.value);
|
|
1613
1638
|
const authMode = form === "loading" ? "loading" : form?.auth ?? "optional";
|
|
1614
1639
|
if ((authMode === "none" || authMode === "loading") && !props.value) return null;
|
|
1615
1640
|
const compatible = compatibleConnections(connections, props.block);
|
|
@@ -1703,13 +1728,13 @@ function ConnectionField(props) {
|
|
|
1703
1728
|
})
|
|
1704
1729
|
] }) : /* @__PURE__ */ jsx("span", {
|
|
1705
1730
|
className: "flex-1 truncate text-muted-foreground/70",
|
|
1706
|
-
children: props.value ?
|
|
1731
|
+
children: props.value ? /* @__PURE__ */ jsx(ConnectionName, { name: bound.name }) : "Choose a connection"
|
|
1707
1732
|
}), /* @__PURE__ */ jsx(Icon, {
|
|
1708
1733
|
name: "chevronDown",
|
|
1709
1734
|
className: "h-3.5 w-3.5 text-muted-foreground"
|
|
1710
1735
|
})]
|
|
1711
1736
|
}),
|
|
1712
|
-
props.value && !selected ? /* @__PURE__ */ jsx(Hint, { children: "Not a known connection document." }) : null,
|
|
1737
|
+
props.value && !selected && bound.invalid ? /* @__PURE__ */ jsx(Hint, { children: "Not a known connection document." }) : null,
|
|
1713
1738
|
selected && packageFromConnectorId(selected.connectorId) !== props.block.pieceName ? /* @__PURE__ */ jsxs("p", {
|
|
1714
1739
|
className: "mt-1.5 text-xs text-wf-warn",
|
|
1715
1740
|
children: [
|
|
@@ -1811,7 +1836,9 @@ function ReactorConnectionField(props) {
|
|
|
1811
1836
|
});
|
|
1812
1837
|
const [error, setError] = useState(null);
|
|
1813
1838
|
const linking = props.value || null;
|
|
1814
|
-
const
|
|
1839
|
+
const listing = connections.find((connection) => connection.id === linking);
|
|
1840
|
+
const listed = Boolean(listing);
|
|
1841
|
+
const bound = useConnectionName(listed ? null : props.value);
|
|
1815
1842
|
useEffect(() => {
|
|
1816
1843
|
if (!linking || listed) return;
|
|
1817
1844
|
let attempts = 0;
|
|
@@ -1867,6 +1894,7 @@ function ReactorConnectionField(props) {
|
|
|
1867
1894
|
ariaLabel: "Reactor connection",
|
|
1868
1895
|
value: props.value,
|
|
1869
1896
|
options,
|
|
1897
|
+
valueLabel: props.value ? /* @__PURE__ */ jsx(ConnectionName, { name: listing ? listing.name || listing.id : bound.name }) : void 0,
|
|
1870
1898
|
invalid: Boolean(declared) && !props.value,
|
|
1871
1899
|
placeholder: creating ? "Creating connection…" : "Choose a reactor connection",
|
|
1872
1900
|
emptyText: "No reactor connection in this drive yet.",
|
|
@@ -1888,7 +1916,7 @@ function ReactorConnectionField(props) {
|
|
|
1888
1916
|
children: runsAs
|
|
1889
1917
|
}) : null
|
|
1890
1918
|
] }) : /* @__PURE__ */ jsx(Hint, { children: "This block takes no reactor connection." }),
|
|
1891
|
-
props.value &&
|
|
1919
|
+
props.value && !known && (listed || bound.invalid) ? /* @__PURE__ */ jsx("p", {
|
|
1892
1920
|
className: "mt-1.5 text-xs text-wf-warn",
|
|
1893
1921
|
children: "Not a reactor connection in this drive."
|
|
1894
1922
|
}) : null,
|
|
@@ -16647,8 +16675,8 @@ function ApStepNode(props) {
|
|
|
16647
16675
|
}
|
|
16648
16676
|
const PORT_LABEL_CLASSES = {
|
|
16649
16677
|
true: "bg-wf-ok/10 text-wf-ok hover:bg-green-200",
|
|
16650
|
-
false: "bg-
|
|
16651
|
-
error: "bg-wf-
|
|
16678
|
+
false: "bg-foreground/5 text-muted-foreground hover:bg-foreground/10",
|
|
16679
|
+
error: "bg-wf-fail/10 text-wf-fail hover:bg-red-200"
|
|
16652
16680
|
};
|
|
16653
16681
|
function AddButton(props) {
|
|
16654
16682
|
const [open, setOpen] = useState(false);
|
|
@@ -17242,7 +17270,7 @@ function WorkflowEditorApp(props) {
|
|
|
17242
17270
|
})] }) : null,
|
|
17243
17271
|
/* @__PURE__ */ jsx("input", {
|
|
17244
17272
|
"aria-label": "Workflow name",
|
|
17245
|
-
className: "min-w-16 max-w-72 shrink rounded-md border border-solid border-transparent bg-transparent px-1.5 py-1 text-[15px] font-semibold text-foreground hover:border-foreground/15 focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring/25",
|
|
17273
|
+
className: "min-w-16 max-w-72 shrink rounded-md border border-solid border-transparent bg-transparent px-1.5 py-1 text-[15px] font-semibold [field-sizing:content] text-foreground hover:border-foreground/15 focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring/25",
|
|
17246
17274
|
defaultValue: model.name,
|
|
17247
17275
|
placeholder: "Untitled workflow",
|
|
17248
17276
|
spellCheck: false,
|
|
@@ -17258,6 +17286,20 @@ function WorkflowEditorApp(props) {
|
|
|
17258
17286
|
className: "text-xs tabular-nums text-muted-foreground",
|
|
17259
17287
|
children: ["v", model.version]
|
|
17260
17288
|
}),
|
|
17289
|
+
/* @__PURE__ */ jsx("input", {
|
|
17290
|
+
"aria-label": "Workflow description",
|
|
17291
|
+
className: "min-w-32 max-w-md flex-1 rounded-md border border-solid border-transparent bg-transparent px-1.5 py-1 text-[13px] text-muted-foreground placeholder:text-muted-foreground/60 hover:border-foreground/15 focus:border-ring focus:text-foreground focus:outline-none focus:ring-2 focus:ring-ring/25",
|
|
17292
|
+
defaultValue: model.description ?? "",
|
|
17293
|
+
placeholder: "Add a description",
|
|
17294
|
+
title: model.description ?? void 0,
|
|
17295
|
+
onKeyDown: (event) => {
|
|
17296
|
+
if (event.key === "Enter") event.currentTarget.blur();
|
|
17297
|
+
},
|
|
17298
|
+
onBlur: (event) => {
|
|
17299
|
+
const description = event.target.value.trim();
|
|
17300
|
+
if (description !== (model.description ?? "")) callbacks.setDescription(description);
|
|
17301
|
+
}
|
|
17302
|
+
}, model.description ?? ""),
|
|
17261
17303
|
/* @__PURE__ */ jsx(PublishState, { model }),
|
|
17262
17304
|
/* @__PURE__ */ jsx(PublishedMissingNote, { missing: publishedMissing }),
|
|
17263
17305
|
/* @__PURE__ */ jsx(ReactorDenialNote, { denial }),
|
|
@@ -17523,4 +17565,4 @@ function Editor() {
|
|
|
17523
17565
|
//#endregion
|
|
17524
17566
|
export { Editor as default };
|
|
17525
17567
|
|
|
17526
|
-
//# sourceMappingURL=editor-
|
|
17568
|
+
//# sourceMappingURL=editor-C3l2HgXA.js.map
|