@powerhousedao/workflow 6.2.3-dev.32 → 6.2.3-dev.34
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 +17 -13
- package/dist/browser/{BlockSelector-BHJQOhie.js → BlockSelector-BQDqIbRZ.js} +4 -2
- package/dist/browser/BlockSelector-BQDqIbRZ.js.map +1 -0
- package/dist/browser/assets/{entry-DhaRsTID.js → entry-D62sYiFV.js} +2 -2
- package/dist/browser/assets/{projection-entry-qrF_MLsE.js → projection-entry-BGcu_9-p.js} +54 -6
- package/dist/browser/{connection-form-CaduwBiu.js → connection-form-BCxGD8Zk.js} +20 -21
- package/dist/browser/connection-form-BCxGD8Zk.js.map +1 -0
- package/dist/browser/{data-tree-8219PVfh.js → data-tree-CZZkfzSH.js} +2 -2
- package/dist/browser/{data-tree-8219PVfh.js.map → data-tree-CZZkfzSH.js.map} +1 -1
- package/dist/browser/{editor-CFcXlZY2.js → editor-BCH8vdej.js} +3 -3
- package/dist/browser/{editor-CFcXlZY2.js.map → editor-BCH8vdej.js.map} +1 -1
- package/dist/browser/{editor-C0C1eB0R.js → editor-Bd2Cu8Mx.js} +3 -3
- package/dist/browser/{editor-C0C1eB0R.js.map → editor-Bd2Cu8Mx.js.map} +1 -1
- package/dist/browser/{editor-BHV1MZS8.js → editor-Bl1Xp7N8.js} +26 -11
- package/dist/browser/editor-Bl1Xp7N8.js.map +1 -0
- 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/index.js +3 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/{trigger-text-BkcklsMX.js → trigger-text-Ld2uv0Cf.js} +4 -4
- package/dist/browser/{trigger-text-BkcklsMX.js.map → trigger-text-Ld2uv0Cf.js.map} +1 -1
- package/dist/node/{BlockSelector-lOcIiaqt.mjs → BlockSelector-C3XYZfPY.mjs} +4 -2
- package/dist/node/BlockSelector-C3XYZfPY.mjs.map +1 -0
- package/dist/node/{connection-form-DWt29kft.mjs → connection-form-CjUay_qz.mjs} +20 -21
- package/dist/node/connection-form-CjUay_qz.mjs.map +1 -0
- package/dist/node/{data-tree-Cdx85Y19.mjs → data-tree-CGfeCLr7.mjs} +2 -2
- package/dist/node/{data-tree-Cdx85Y19.mjs.map → data-tree-CGfeCLr7.mjs.map} +1 -1
- package/dist/node/{editor-D_t8OtZn.mjs → editor-BXtXOryt.mjs} +3 -3
- package/dist/node/{editor-D_t8OtZn.mjs.map → editor-BXtXOryt.mjs.map} +1 -1
- package/dist/node/{editor-CR823u-y.mjs → editor-CXGHkwd9.mjs} +3 -3
- package/dist/node/{editor-CR823u-y.mjs.map → editor-CXGHkwd9.mjs.map} +1 -1
- package/dist/node/{editor-CwX-G2Jv.mjs → editor-D0FCvyPb.mjs} +26 -11
- package/dist/node/editor-D0FCvyPb.mjs.map +1 -0
- 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/index.mjs +3 -2
- package/dist/node/index.mjs.map +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-DJIAQBWg.mjs → trigger-text-CMWxL7t_.mjs} +4 -4
- package/dist/node/{trigger-text-DJIAQBWg.mjs.map → trigger-text-CMWxL7t_.mjs.map} +1 -1
- package/dist/powerhouse.manifest.json +1 -1
- package/dist/types/ai/workflow-tools.d.ts.map +1 -1
- package/dist/types/editors/shared/editor-chrome.d.ts.map +1 -1
- package/dist/types/editors/shared/undo-plan.d.ts +1 -1
- package/dist/types/editors/shared/undo-plan.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/editor.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/ui/WorkflowEditorApp.d.ts.map +1 -1
- package/dist/types/editors/workflow-editor/undo-policy.d.ts +3 -0
- package/dist/types/editors/workflow-editor/undo-policy.d.ts.map +1 -0
- package/dist/types/editors/workflow-editor/undo-policy.test.d.ts +2 -0
- package/dist/types/editors/workflow-editor/undo-policy.test.d.ts.map +1 -0
- package/dist/types/scripts/ui-stack.d.ts +62 -1
- package/dist/types/scripts/ui-stack.d.ts.map +1 -1
- package/dist/types/test/ui/fixtures.d.ts +6 -2
- package/dist/types/test/ui/fixtures.d.ts.map +1 -1
- package/dist/types/test/ui/global-setup.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/browser/BlockSelector-BHJQOhie.js.map +0 -1
- package/dist/browser/connection-form-CaduwBiu.js.map +0 -1
- package/dist/browser/editor-BHV1MZS8.js.map +0 -1
- package/dist/node/BlockSelector-lOcIiaqt.mjs.map +0 -1
- package/dist/node/connection-form-DWt29kft.mjs.map +0 -1
- package/dist/node/editor-CwX-G2Jv.mjs.map +0 -1
|
@@ -2,17 +2,33 @@ 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 { Q as isCoreBlock, X as TRIGGER_PRESETS, Y as STEP_PRESETS, ct as flowPorts, dt as scheduleConfigIssue, et as sameBlock, f as stepOutputTreeQuery, h as blockRefKey, i as outputTreeQuery, it as triggerFields, lt as knownPorts, n as catalogQuery, nt as stepFields, rt as triggerBlock, tt as stepBlock, u as runsQuery, ut as parseScheduleConfig, v as TEST_TRIGGER_KIND, y as realRuns } from "./runtime-queries-D5EGaCrH.mjs";
|
|
4
4
|
import { y as actions } from "./module-Dhe5E-VA.mjs";
|
|
5
|
-
import { $ as formatDuration, A as isEmptyValue, B as blockMeta, C as useOptionSearch, Ct as Hint, D as useTestTrigger, Dt as Switch, E as useTestStepRunner, Et as Select, F as storedSchema, Ft as isIconName, H as pieceLogo, I as stripOptions, It as DocumentErrorBoundary, L as undeclaredPortIssues, M as parsePropList, Mt as textAreaClass, N as resolverInputFor, Nt as textInputClass, O as useWebhookEndpoint, Ot as Tabs, P as settingFor, Pt as Icon, Q as formatAbsolute, R as withSetting, S as useLatestRun, St as FieldLabel, T as useRunById, Tt as Segmented, U as useBlockMeta, V as pieceDisplayName, W as usePieceLogos, X as TONE_TEXT, Y as TONE_DOT, _ as useConnectionList, _t as useRuntime, a as resolutionText, b as useDynamicLookup, bt as Button, c as useResolution, ct as toneOf, d as useBlockForm, f as useBlockFormLoader, g as useCachedBlockForm, gt as useRunsQuery, h as useBlockResolutions, i as VersionSummary, j as isPropVisible, jt as invalidClass, k as blockMissing, l as versionBadge, m as useBlockPorts, n as BlockSelector, nt as formatWhen, o as runsDifferentVersion, p as useBlockForms, q as RUN_TONE, r as BlockResolutionsProvider, s as updateVersion, t as BlockLogo, u as DesignTimeProvider, ut as WorkflowRuntimeProvider, v as useDesignTime, vt as useRuntimeActions, w as useResolvedProp, wt as IconButton, x as useDynamicPrefetch, xt as FieldError, y as useDynamicCache, z as workflowReadiness } from "./BlockSelector-
|
|
5
|
+
import { $ as formatDuration, A as isEmptyValue, B as blockMeta, C as useOptionSearch, Ct as Hint, D as useTestTrigger, Dt as Switch, E as useTestStepRunner, Et as Select, F as storedSchema, Ft as isIconName, H as pieceLogo, I as stripOptions, It as DocumentErrorBoundary, L as undeclaredPortIssues, M as parsePropList, Mt as textAreaClass, N as resolverInputFor, Nt as textInputClass, O as useWebhookEndpoint, Ot as Tabs, P as settingFor, Pt as Icon, Q as formatAbsolute, R as withSetting, S as useLatestRun, St as FieldLabel, T as useRunById, Tt as Segmented, U as useBlockMeta, V as pieceDisplayName, W as usePieceLogos, X as TONE_TEXT, Y as TONE_DOT, _ as useConnectionList, _t as useRuntime, a as resolutionText, b as useDynamicLookup, bt as Button, c as useResolution, ct as toneOf, d as useBlockForm, f as useBlockFormLoader, g as useCachedBlockForm, gt as useRunsQuery, h as useBlockResolutions, i as VersionSummary, j as isPropVisible, jt as invalidClass, k as blockMissing, l as versionBadge, m as useBlockPorts, n as BlockSelector, nt as formatWhen, o as runsDifferentVersion, p as useBlockForms, q as RUN_TONE, r as BlockResolutionsProvider, s as updateVersion, t as BlockLogo, u as DesignTimeProvider, ut as WorkflowRuntimeProvider, v as useDesignTime, vt as useRuntimeActions, w as useResolvedProp, wt as IconButton, x as useDynamicPrefetch, xt as FieldError, y as useDynamicCache, z as workflowReadiness } from "./BlockSelector-C3XYZfPY.mjs";
|
|
6
6
|
import { y as actions$1 } from "./module-BMwJQh65.mjs";
|
|
7
7
|
import { t as useConnectionDocumentById } from "./connection-D544oqVW.mjs";
|
|
8
8
|
import { t as useSelectedWorkflowDocument } from "./workflow-CGzYGZnr.mjs";
|
|
9
|
-
import { a as BackButton, c as newUndoGroup, i as connectionCallbacks, o as UndoRedo, s as groupedAction, t as ConnectionForm } from "./connection-form-
|
|
10
|
-
import { a as Modal, c as PublishState, d as VARIABLES_VIEW, f as
|
|
9
|
+
import { a as BackButton, c as newUndoGroup, i as connectionCallbacks, o as UndoRedo, s as groupedAction, t as ConnectionForm } from "./connection-form-CjUay_qz.mjs";
|
|
10
|
+
import { a as Modal, c as PublishState, d as VARIABLES_VIEW, f as hasDraftChanges, i as DataViewer, l as StatusToggle, n as describeSchedule, o as DraftBanner, p as uniqueStepKey, r as describeTrigger, s as PublishButton, t as describeCron, u as usePublish } from "./trigger-text-CMWxL7t_.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
14
|
import { addDocument, useFileNodesInSelectedDrive, useSelectedDocumentId, useSelectedDriveId } from "@powerhousedao/reactor-browser";
|
|
15
15
|
import { createPortal } from "react-dom";
|
|
16
|
+
//#region editors/workflow-editor/undo-policy.ts
|
|
17
|
+
function placesBlock(edit, id) {
|
|
18
|
+
if (edit.type !== "ADD_STEP" && edit.type !== "SET_TRIGGER") return false;
|
|
19
|
+
return edit.input?.id === id;
|
|
20
|
+
}
|
|
21
|
+
const WORKFLOW_UNDO = {
|
|
22
|
+
skip: /* @__PURE__ */ new Set(["SET_LAST_TEST", "SET_LAST_RUN"]),
|
|
23
|
+
replay: (action, undone) => {
|
|
24
|
+
if (action.type === "SET_LAST_TEST") {
|
|
25
|
+
const input = action.input;
|
|
26
|
+
return undone.some((edit) => placesBlock(edit, input.id)) ? void 0 : actions.setLastTest(input);
|
|
27
|
+
}
|
|
28
|
+
if (action.type === "SET_LAST_RUN") return actions.setLastRun(action.input);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
16
32
|
//#region editors/workflow-editor/ui/prop-defaults.ts
|
|
17
33
|
function asRecord(value) {
|
|
18
34
|
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
@@ -17130,6 +17146,12 @@ function WorkflowEditorApp(props) {
|
|
|
17130
17146
|
status: model.status,
|
|
17131
17147
|
onChange: callbacks.setStatus
|
|
17132
17148
|
}),
|
|
17149
|
+
publishError && !hasDraftChanges(model) ? /* @__PURE__ */ jsx("span", {
|
|
17150
|
+
role: "alert",
|
|
17151
|
+
className: "max-w-64 truncate text-xs text-wf-fail",
|
|
17152
|
+
title: publishError,
|
|
17153
|
+
children: publishError
|
|
17154
|
+
}) : null,
|
|
17133
17155
|
/* @__PURE__ */ jsx(PublishButton, {
|
|
17134
17156
|
model,
|
|
17135
17157
|
readiness,
|
|
@@ -17211,13 +17233,6 @@ async function authoredOutput(runtime, block, config) {
|
|
|
17211
17233
|
}
|
|
17212
17234
|
}
|
|
17213
17235
|
const LAST_RUN_POLL_MS = 1e4;
|
|
17214
|
-
const WORKFLOW_UNDO = {
|
|
17215
|
-
skip: /* @__PURE__ */ new Set(["SET_LAST_TEST", "SET_LAST_RUN"]),
|
|
17216
|
-
replay: (action) => {
|
|
17217
|
-
if (action.type === "SET_LAST_TEST") return actions.setLastTest(action.input);
|
|
17218
|
-
if (action.type === "SET_LAST_RUN") return actions.setLastRun(action.input);
|
|
17219
|
-
}
|
|
17220
|
-
};
|
|
17221
17236
|
function LastRunFact(props) {
|
|
17222
17237
|
const runs = useRunsQuery({
|
|
17223
17238
|
workflowId: props.workflowId,
|
|
@@ -17347,4 +17362,4 @@ function Editor() {
|
|
|
17347
17362
|
//#endregion
|
|
17348
17363
|
export { Editor as default };
|
|
17349
17364
|
|
|
17350
|
-
//# sourceMappingURL=editor-
|
|
17365
|
+
//# sourceMappingURL=editor-D0FCvyPb.mjs.map
|