@oomol-lab/open-flow 0.1.0-beta.79 → 0.1.0-beta.80
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/{FlowCanvas-BQGBcfoL.js → FlowCanvas-CrsiDHK8.js} +50 -51
- package/dist/browser/{createResourceDialog-DkovGogv.js → createResourceDialog-CS3u9ga9.js} +2 -2
- package/dist/browser/{dialog-CFFuRM8s.js → dialog-CFlvkliO.js} +7 -2
- package/dist/browser/{exportSvg-CYwyYiuH.js → exportPng-BOPfjeEi.js} +236 -38
- package/dist/browser/{flowChanges-CN2R-m1M.js → flowChanges-pFjPHU5k.js} +326 -203
- package/dist/browser/{flowWorkspace-CXVL1FNv.js → flowWorkspace-CRlqc403.js} +698 -480
- package/dist/browser/preview.css +153 -132
- package/dist/browser/preview.js +921 -643
- package/dist/browser/ui-logo.d.ts +1 -0
- package/dist/browser/ui.css +29 -4
- package/dist/browser/ui.js +4 -1
- package/dist/browser/workbench.css +153 -132
- package/dist/browser/workbench.js +9 -9
- package/dist/browser/{workbenchSelect-CkOS95gX.js → workbenchSelect-Ci0KCYv9.js} +1 -1
- package/dist/command/index.js +41 -41
- package/dist/common/control-api-conformance.js +49 -19
- package/dist/common/control-api.d.ts +26 -6
- package/dist/common/control-api.js +49 -19
- package/dist/common/control-requests.js +6 -2
- package/dist/common/flow-authoring.js +6 -2
- package/dist/common/flow-change.js +6 -2
- package/dist/common/flow-encoding.js +6 -2
- package/dist/common/flow-semantics.js +6 -2
- package/dist/common/flow-state.d.ts +47 -0
- package/dist/common/flow-state.js +7 -1
- package/dist/common/mcp.js +49 -18
- package/dist/common/scheduler.js +6 -2
- package/package.json +1 -1
- package/src/control/common/api.ts +24 -8
- package/src/control/common/connectorDecoders.ts +11 -30
- package/src/control/common/revisionDecoders.ts +14 -0
- package/src/state/common/state.ts +14 -0
|
@@ -2,8 +2,8 @@ import { A as DropdownMenuSeparator, E as DropdownMenuItem, P as DropdownMenuTri
|
|
|
2
2
|
import { a as derive, i as compute, l as val } from "./dist-bO8nvHFH.js";
|
|
3
3
|
import { c as useLang, l as useTranslate, o as I18nProvider, u as useVal } from "./dist-BFmpkX4P.js";
|
|
4
4
|
import { Cr as cn, i as TooltipTrigger, n as TooltipContent, t as Tooltip, xr as Button } from "./tooltip-BDcVTNpu.js";
|
|
5
|
-
import { C as upgradeManualTrigger,
|
|
6
|
-
import { $ as action, $n as
|
|
5
|
+
import { C as upgradeManualTrigger, M as mapConditionSources, N as nodeInputMappings, Rt as dequal, S as resourceNameIssue, _ as applyFlowChanges, a as DialogFooter, d as Field, g as FlowChangeError, h as FieldLabel, i as DialogDescription, in as Input, l as Icon, m as FieldGroup, o as DialogHeader, p as FieldError, r as DialogContent, s as DialogTitle, t as Dialog, u as Spinner, v as isTriggerNode, w as upgradeRevisionContent } from "./dialog-CFlvkliO.js";
|
|
6
|
+
import { $ as action, $n as normalizeTriggerOutputs, An as EmptyHeader, At as connectionCatalog, Bn as errorNotice, Bt as setNodePositions, C as updateValue, Cn as followWorkbenchLink, Ct as Latest, Dn as Empty, Dr as record, En as InputGroupInput, Er as invalidResponse, Ft as restoreCanvasPresentation, Gt as setConnectorConnection, Hn as normalizeFlowQuery, Ht as repairNodeNames, It as setCanvasLayout, J as scopedValue, Jt as updateStartInputDefs, K as combineSources, Kn as decodeTriggerCatalog, Kt as setInputSources, Ln as createI18n, Lt as setComment, Mn as EmptyTitle, Mt as commentIds, Nn as Badge, Nt as flowPresentation, On as EmptyContent, Or as ApiError, Pn as EventSourcesPage, Pt as removeComments, Q as resourceValue, Qt as IdTooltip, Rt as setFlowViewport, S as updateTriggerConfig, Sn as useFlowQuery, Sr as workflowCandidate, St as flowResourceReferences, Tn as InputGroupAddon, Tt as diagnosticItems, U as addNodeIntent, Un as randomId, Ut as resetInputValues, Vn as WorkbenchClient, Vt as setVerticalNodeWidth, W as deriveAddNodeOptions, Wn as allConnectorConnectionsQuery, Wt as setCodeActions, Xt as dequal$1, Y as CacheResource, Yt as updateTriggerSchedule, Z as resourceData, Zt as WorkflowExportMenuItem, _ as updateOutputPorts, _t as providerIcon, a as nameCreatedNodes, ar as encodeWorkflowFile, b as updateTaskAdditionalInputs, c as setInputVariable, cr as workflowNameFromFile, ct as createPersistentCache, d as updateCondition, dt as designerGraph, en as FlowSettingsDialog, er as sampleErrorOutputs, et as provider, f as updateHttpParameters, g as updateNodeSettings, h as updateNodeName, i as deleteSelection, ir as connectorActionMetadata, it as getActionsCache, jn as EmptyMedia, jt as canvasPresentationChange, kn as EmptyDescription, kr as controlErrorCode, kt as actionWithConnections, l as setTriggerConnection, lt as createSessionCache, m as updateNodeIcon, nn as TagPicker, nt as validateAction, o as selectWebhookResponse, or as parseWorkflowFile, ot as getConnectionsCache, p as updateNodeDescription, qt as setServiceConnections, r as applyFlowChanges$1, rr as connection, s as setInputValue, sr as workflowFileName, st as getProvidersCache, t as addNode, tn as FlowTagChips, tr as triggerOutputDefinitions, tt as proxyResponse, u as setTriggerEventSource, v as updateResolution, vt as RunStore, w as updateWebhook, wn as InputGroup, wt as deriveInspectorDiagnostics, x as updateTaskPorts, xt as revisionView, y as updateTask, zt as setNodeContentHidden } from "./flowChanges-pFjPHU5k.js";
|
|
7
7
|
import { a as uiLanguages, i as uiLanguageNames, n as isUiLanguage, r as resolveUiLanguage, t as importedWorkflowName } from "./languages-gYzoQqCi.js";
|
|
8
8
|
import { i as objectValue, n as isJsonValue } from "./value-BbFQZZ_V.js";
|
|
9
9
|
import { Suspense, forwardRef, lazy, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -517,7 +517,7 @@ function FlowDeletionDialog({ flow, workspace, container, busy, finalFocus, onCl
|
|
|
517
517
|
}
|
|
518
518
|
//#endregion
|
|
519
519
|
//#region src/workbench/browser/runtime/shell/resourceBrowser.tsx
|
|
520
|
-
var CreateResourceDialog = lazy(() => import("./createResourceDialog-
|
|
520
|
+
var CreateResourceDialog = lazy(() => import("./createResourceDialog-CS3u9ga9.js"));
|
|
521
521
|
var flowIdTooltipAlignOffset = 44;
|
|
522
522
|
var renamePopoverAlignOffset = -12;
|
|
523
523
|
function compactFlowId(flowId) {
|
|
@@ -6814,20 +6814,20 @@ var WorkbenchStore = class {
|
|
|
6814
6814
|
dismissNotice() {
|
|
6815
6815
|
if (!this.#disposed) this.#notice.set(void 0);
|
|
6816
6816
|
}
|
|
6817
|
-
async
|
|
6817
|
+
async exportPng(language, options) {
|
|
6818
6818
|
const model = this.$.designer.value;
|
|
6819
6819
|
const title = this.workspace.$.flow.value?.name ?? this.workspace.$.flowId.value ?? "Workflow";
|
|
6820
6820
|
try {
|
|
6821
|
-
const {
|
|
6822
|
-
await
|
|
6821
|
+
const { downloadFlowPng } = await import("./exportPng-BOPfjeEi.js");
|
|
6822
|
+
const result = await downloadFlowPng(model, title, language, options);
|
|
6823
6823
|
if (!this.#disposed) this.#notice.set({
|
|
6824
6824
|
kind: "success",
|
|
6825
|
-
message: this.#i18n.t("resource.
|
|
6825
|
+
message: this.#i18n.t(result.hasImagePlaceholders ? "resource.exportPngPartial" : "resource.exportPngComplete")
|
|
6826
6826
|
});
|
|
6827
6827
|
} catch {
|
|
6828
6828
|
if (!this.#disposed) this.#notice.set({
|
|
6829
6829
|
kind: "error",
|
|
6830
|
-
message: this.#i18n.t("resource.
|
|
6830
|
+
message: this.#i18n.t("resource.exportPngFailed")
|
|
6831
6831
|
});
|
|
6832
6832
|
}
|
|
6833
6833
|
}
|
|
@@ -7078,7 +7078,7 @@ var WorkbenchStore = class {
|
|
|
7078
7078
|
};
|
|
7079
7079
|
//#endregion
|
|
7080
7080
|
//#region src/workbench/browser/runtime/openFlowWorkbench.tsx
|
|
7081
|
-
var FlowWorkspace = lazy(() => import("./flowWorkspace-
|
|
7081
|
+
var FlowWorkspace = lazy(() => import("./flowWorkspace-CRlqc403.js"));
|
|
7082
7082
|
function OpenFlowSessionGate({ action, description, error, onSubmit, onTokenChange, pending = false, title, token, tokenLabel }) {
|
|
7083
7083
|
const hasToken = token != null && tokenLabel != null && onTokenChange != null;
|
|
7084
7084
|
const tokenValue = token ?? "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Cr as cn } from "./tooltip-BDcVTNpu.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Gt as SelectTrigger, Ht as SelectGroup, Kt as SelectValue, Ut as SelectItem, Vt as SelectContent, zt as Select } from "./dialog-CFlvkliO.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
|
|
5
5
|
function WorkbenchSelect({ ariaLabel, className, disabled = false, id, onValueChange, options, portalRoot, size, value, variant }) {
|