@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,16 +2,16 @@ import { i as __require, o as __toESM, t as __commonJSMin } from "./rolldown-run
|
|
|
2
2
|
import { c as planFromAuth, o as packageFromConnectorId, r as connectorIdForPiece } from "./piece-auth-BS5CtQOG.mjs";
|
|
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-BM6I7dDA.mjs";
|
|
4
4
|
import { y as actions } from "./module-BsqRZox1.mjs";
|
|
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-CrPnitOU.mjs";
|
|
6
6
|
import { A as REACTOR_CONNECTOR_ID, y as actions$1 } from "./module-BlT-atBQ.mjs";
|
|
7
7
|
import { t as useConnectionDocumentById } from "./connection-BxJoL8js.mjs";
|
|
8
8
|
import { t as useSelectedWorkflowDocument } from "./workflow-BpfdBHyS.mjs";
|
|
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-MHDKPohk.mjs";
|
|
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-qK_Nr5Pw.mjs";
|
|
11
11
|
import React, { Fragment, Suspense, createContext, forwardRef, lazy, memo, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { generateId } from "document-model";
|
|
14
|
-
import { addDocument, dispatchActions, useDocumentModelModules, useFileNodesInSelectedDrive, useSelectedDocumentId, useSelectedDriveId } from "@powerhousedao/reactor-browser";
|
|
14
|
+
import { addDocument, dispatchActions, useDocumentModelModules, useDocumentSafe, useFileNodesInSelectedDrive, useSelectedDocumentId, useSelectedDriveId } from "@powerhousedao/reactor-browser";
|
|
15
15
|
import { createPortal } from "react-dom";
|
|
16
16
|
//#region editors/workflow-editor/undo-policy.ts
|
|
17
17
|
function placesBlock(edit, id) {
|
|
@@ -93,6 +93,7 @@ function settingsInput(settings) {
|
|
|
93
93
|
function toModel(state) {
|
|
94
94
|
return {
|
|
95
95
|
name: state.name,
|
|
96
|
+
description: state.description ?? null,
|
|
96
97
|
status: state.status,
|
|
97
98
|
version: state.version,
|
|
98
99
|
published: state.published ? {
|
|
@@ -181,6 +182,7 @@ function useWorkflowModel() {
|
|
|
181
182
|
dispatch(actions.setWorkflowName({ name }));
|
|
182
183
|
dispatch(actions.setName(name));
|
|
183
184
|
},
|
|
185
|
+
setDescription: (description) => dispatch(actions.setWorkflowDescription({ description })),
|
|
184
186
|
setStatus: (status) => dispatch(actions.setWorkflowStatus({ status })),
|
|
185
187
|
setTrigger: (input) => {
|
|
186
188
|
const id = state.trigger?.id ?? generateId();
|
|
@@ -1433,6 +1435,28 @@ function connectionDraftFor(input) {
|
|
|
1433
1435
|
};
|
|
1434
1436
|
}
|
|
1435
1437
|
//#endregion
|
|
1438
|
+
//#region editors/workflow-editor/ui/ConnectionName.tsx
|
|
1439
|
+
function useConnectionName(id) {
|
|
1440
|
+
const { status, data } = useDocumentSafe(id || null);
|
|
1441
|
+
if (!id || status === "pending") return { invalid: false };
|
|
1442
|
+
const document = data;
|
|
1443
|
+
if (!document) return {
|
|
1444
|
+
name: id,
|
|
1445
|
+
invalid: true
|
|
1446
|
+
};
|
|
1447
|
+
return {
|
|
1448
|
+
name: document.state.global.name || document.header.name || id,
|
|
1449
|
+
invalid: document.header.documentType !== CONNECTION_TYPE
|
|
1450
|
+
};
|
|
1451
|
+
}
|
|
1452
|
+
function ConnectionName(props) {
|
|
1453
|
+
if (props.name === void 0) return /* @__PURE__ */ jsx("span", {
|
|
1454
|
+
"aria-label": "Loading connection",
|
|
1455
|
+
className: "inline-block h-3.5 w-28 animate-pulse rounded bg-foreground/10 align-middle"
|
|
1456
|
+
});
|
|
1457
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: props.name });
|
|
1458
|
+
}
|
|
1459
|
+
//#endregion
|
|
1436
1460
|
//#region editors/workflow-editor/ui/CreateConnectionModal.tsx
|
|
1437
1461
|
function CreateConnectionModal(props) {
|
|
1438
1462
|
const [document, dispatch] = useConnectionDocumentById(props.connectionId);
|
|
@@ -1609,6 +1633,7 @@ function ConnectionField(props) {
|
|
|
1609
1633
|
return () => window.removeEventListener("mousedown", handler);
|
|
1610
1634
|
}, [open]);
|
|
1611
1635
|
const selected = connections.find((connection) => connection.id === props.value);
|
|
1636
|
+
const bound = useConnectionName(selected ? null : props.value);
|
|
1612
1637
|
const authMode = form === "loading" ? "loading" : form?.auth ?? "optional";
|
|
1613
1638
|
if ((authMode === "none" || authMode === "loading") && !props.value) return null;
|
|
1614
1639
|
const compatible = compatibleConnections(connections, props.block);
|
|
@@ -1702,13 +1727,13 @@ function ConnectionField(props) {
|
|
|
1702
1727
|
})
|
|
1703
1728
|
] }) : /* @__PURE__ */ jsx("span", {
|
|
1704
1729
|
className: "flex-1 truncate text-muted-foreground/70",
|
|
1705
|
-
children: props.value ?
|
|
1730
|
+
children: props.value ? /* @__PURE__ */ jsx(ConnectionName, { name: bound.name }) : "Choose a connection"
|
|
1706
1731
|
}), /* @__PURE__ */ jsx(Icon, {
|
|
1707
1732
|
name: "chevronDown",
|
|
1708
1733
|
className: "h-3.5 w-3.5 text-muted-foreground"
|
|
1709
1734
|
})]
|
|
1710
1735
|
}),
|
|
1711
|
-
props.value && !selected ? /* @__PURE__ */ jsx(Hint, { children: "Not a known connection document." }) : null,
|
|
1736
|
+
props.value && !selected && bound.invalid ? /* @__PURE__ */ jsx(Hint, { children: "Not a known connection document." }) : null,
|
|
1712
1737
|
selected && packageFromConnectorId(selected.connectorId) !== props.block.pieceName ? /* @__PURE__ */ jsxs("p", {
|
|
1713
1738
|
className: "mt-1.5 text-xs text-wf-warn",
|
|
1714
1739
|
children: [
|
|
@@ -1810,7 +1835,9 @@ function ReactorConnectionField(props) {
|
|
|
1810
1835
|
});
|
|
1811
1836
|
const [error, setError] = useState(null);
|
|
1812
1837
|
const linking = props.value || null;
|
|
1813
|
-
const
|
|
1838
|
+
const listing = connections.find((connection) => connection.id === linking);
|
|
1839
|
+
const listed = Boolean(listing);
|
|
1840
|
+
const bound = useConnectionName(listed ? null : props.value);
|
|
1814
1841
|
useEffect(() => {
|
|
1815
1842
|
if (!linking || listed) return;
|
|
1816
1843
|
let attempts = 0;
|
|
@@ -1866,6 +1893,7 @@ function ReactorConnectionField(props) {
|
|
|
1866
1893
|
ariaLabel: "Reactor connection",
|
|
1867
1894
|
value: props.value,
|
|
1868
1895
|
options,
|
|
1896
|
+
valueLabel: props.value ? /* @__PURE__ */ jsx(ConnectionName, { name: listing ? listing.name || listing.id : bound.name }) : void 0,
|
|
1869
1897
|
invalid: Boolean(declared) && !props.value,
|
|
1870
1898
|
placeholder: creating ? "Creating connection…" : "Choose a reactor connection",
|
|
1871
1899
|
emptyText: "No reactor connection in this drive yet.",
|
|
@@ -1887,7 +1915,7 @@ function ReactorConnectionField(props) {
|
|
|
1887
1915
|
children: runsAs
|
|
1888
1916
|
}) : null
|
|
1889
1917
|
] }) : /* @__PURE__ */ jsx(Hint, { children: "This block takes no reactor connection." }),
|
|
1890
|
-
props.value &&
|
|
1918
|
+
props.value && !known && (listed || bound.invalid) ? /* @__PURE__ */ jsx("p", {
|
|
1891
1919
|
className: "mt-1.5 text-xs text-wf-warn",
|
|
1892
1920
|
children: "Not a reactor connection in this drive."
|
|
1893
1921
|
}) : null,
|
|
@@ -16778,8 +16806,8 @@ function ApStepNode(props) {
|
|
|
16778
16806
|
}
|
|
16779
16807
|
const PORT_LABEL_CLASSES = {
|
|
16780
16808
|
true: "bg-wf-ok/10 text-wf-ok hover:bg-green-200",
|
|
16781
|
-
false: "bg-
|
|
16782
|
-
error: "bg-wf-
|
|
16809
|
+
false: "bg-foreground/5 text-muted-foreground hover:bg-foreground/10",
|
|
16810
|
+
error: "bg-wf-fail/10 text-wf-fail hover:bg-red-200"
|
|
16783
16811
|
};
|
|
16784
16812
|
function AddButton(props) {
|
|
16785
16813
|
const [open, setOpen] = useState(false);
|
|
@@ -17373,7 +17401,7 @@ function WorkflowEditorApp(props) {
|
|
|
17373
17401
|
})] }) : null,
|
|
17374
17402
|
/* @__PURE__ */ jsx("input", {
|
|
17375
17403
|
"aria-label": "Workflow name",
|
|
17376
|
-
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",
|
|
17404
|
+
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",
|
|
17377
17405
|
defaultValue: model.name,
|
|
17378
17406
|
placeholder: "Untitled workflow",
|
|
17379
17407
|
spellCheck: false,
|
|
@@ -17389,6 +17417,20 @@ function WorkflowEditorApp(props) {
|
|
|
17389
17417
|
className: "text-xs tabular-nums text-muted-foreground",
|
|
17390
17418
|
children: ["v", model.version]
|
|
17391
17419
|
}),
|
|
17420
|
+
/* @__PURE__ */ jsx("input", {
|
|
17421
|
+
"aria-label": "Workflow description",
|
|
17422
|
+
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",
|
|
17423
|
+
defaultValue: model.description ?? "",
|
|
17424
|
+
placeholder: "Add a description",
|
|
17425
|
+
title: model.description ?? void 0,
|
|
17426
|
+
onKeyDown: (event) => {
|
|
17427
|
+
if (event.key === "Enter") event.currentTarget.blur();
|
|
17428
|
+
},
|
|
17429
|
+
onBlur: (event) => {
|
|
17430
|
+
const description = event.target.value.trim();
|
|
17431
|
+
if (description !== (model.description ?? "")) callbacks.setDescription(description);
|
|
17432
|
+
}
|
|
17433
|
+
}, model.description ?? ""),
|
|
17392
17434
|
/* @__PURE__ */ jsx(PublishState, { model }),
|
|
17393
17435
|
/* @__PURE__ */ jsx(PublishedMissingNote, { missing: publishedMissing }),
|
|
17394
17436
|
/* @__PURE__ */ jsx(ReactorDenialNote, { denial }),
|
|
@@ -17654,4 +17696,4 @@ function Editor() {
|
|
|
17654
17696
|
//#endregion
|
|
17655
17697
|
export { Editor as default };
|
|
17656
17698
|
|
|
17657
|
-
//# sourceMappingURL=editor-
|
|
17699
|
+
//# sourceMappingURL=editor-B4TEgA0j.mjs.map
|