@bian-womp/spark-workbench 0.2.49 → 0.2.50
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/lib/cjs/index.cjs
CHANGED
|
@@ -3635,7 +3635,7 @@ const WorkbenchCanvas = React.forwardRef(({ showValues, toString, toElement, get
|
|
|
3635
3635
|
}, onConnect: onConnect, onEdgesChange: onEdgesChange, onEdgesDelete: onEdgesDelete, onNodesDelete: onNodesDelete, onNodesChange: onNodesChange, deleteKeyCode: ["Backspace", "Delete"], proOptions: { hideAttribution: true }, noDragClassName: "wb-nodrag", noWheelClassName: "wb-nowheel", noPanClassName: "wb-nopan", fitView: true, children: [jsxRuntime.jsx(react.Background, { id: "workbench-canvas-background", variant: react.BackgroundVariant.Dots, gap: 12, size: 1 }), jsxRuntime.jsx(react.MiniMap, {}), jsxRuntime.jsx(react.Controls, {}), jsxRuntime.jsx(DefaultContextMenu, { open: menuOpen, clientPos: menuPos, onAdd: addNodeAt, onClose: onCloseMenu }), !!nodeAtMenu && (jsxRuntime.jsx(NodeContextMenu, { open: nodeMenuOpen, clientPos: nodeMenuPos, nodeId: nodeAtMenu, onClose: onCloseNodeMenu }))] }) }) }));
|
|
3636
3636
|
});
|
|
3637
3637
|
|
|
3638
|
-
function WorkbenchStudioCanvas({ setRegistry, autoScroll, onAutoScrollChange, example, onExampleChange, engine, onEngineChange, backendKind, onBackendKindChange, httpBaseUrl, onHttpBaseUrlChange, wsUrl, onWsUrlChange, debug, onDebugChange, showValues, onShowValuesChange, hideWorkbench, onHideWorkbenchChange,
|
|
3638
|
+
function WorkbenchStudioCanvas({ setRegistry, autoScroll, onAutoScrollChange, example, onExampleChange, engine, onEngineChange, backendKind, onBackendKindChange, httpBaseUrl, onHttpBaseUrlChange, wsUrl, onWsUrlChange, debug, onDebugChange, showValues, onShowValuesChange, hideWorkbench, onHideWorkbenchChange, overrides, onInit, onChange, }) {
|
|
3639
3639
|
const { wb, runner, registry, def, selectedNodeId, runAutoLayout } = useWorkbenchContext();
|
|
3640
3640
|
const [transportStatus, setTransportStatus] = React.useState({
|
|
3641
3641
|
state: "local",
|
|
@@ -4200,12 +4200,8 @@ function WorkbenchStudio({ engine, onEngineChange, example, onExampleChange, bac
|
|
|
4200
4200
|
const backend = {
|
|
4201
4201
|
kind: "remote-http",
|
|
4202
4202
|
baseUrl: httpBaseUrl,
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
}),
|
|
4206
|
-
...(backendOptions?.onCustomEvent && {
|
|
4207
|
-
onCustomEvent: backendOptions.onCustomEvent,
|
|
4208
|
-
}),
|
|
4203
|
+
connectOptions: backendOptions?.connectOptions,
|
|
4204
|
+
onCustomEvent: backendOptions?.onCustomEvent,
|
|
4209
4205
|
};
|
|
4210
4206
|
newRunner = new RemoteGraphRunner(registry, backend);
|
|
4211
4207
|
}
|
|
@@ -4213,12 +4209,8 @@ function WorkbenchStudio({ engine, onEngineChange, example, onExampleChange, bac
|
|
|
4213
4209
|
const backend = {
|
|
4214
4210
|
kind: "remote-ws",
|
|
4215
4211
|
url: wsUrl,
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
}),
|
|
4219
|
-
...(backendOptions?.onCustomEvent && {
|
|
4220
|
-
onCustomEvent: backendOptions.onCustomEvent,
|
|
4221
|
-
}),
|
|
4212
|
+
connectOptions: backendOptions?.connectOptions,
|
|
4213
|
+
onCustomEvent: backendOptions?.onCustomEvent,
|
|
4222
4214
|
};
|
|
4223
4215
|
newRunner = new RemoteGraphRunner(registry, backend);
|
|
4224
4216
|
}
|
|
@@ -4267,7 +4259,7 @@ function WorkbenchStudio({ engine, onEngineChange, example, onExampleChange, bac
|
|
|
4267
4259
|
runner.dispose();
|
|
4268
4260
|
onBackendKindChange(v);
|
|
4269
4261
|
}, [isGraphRunning]);
|
|
4270
|
-
return (jsxRuntime.jsx(WorkbenchProvider, { wb: wb, runner: runner, registry: registry, setRegistry: setRegistry, overrides: overrides, uiVersion: uiVersion, children: jsxRuntime.jsx(WorkbenchStudioCanvas, { setRegistry: setRegistry, autoScroll: autoScroll, onAutoScrollChange: onAutoScrollChange, example: example, onExampleChange: onExampleChange, engine: engine, onEngineChange: onEngineChange, backendKind: backendKind, onBackendKindChange: onBackendKindChangeWithDispose, httpBaseUrl: httpBaseUrl, onHttpBaseUrlChange: onHttpBaseUrlChange, wsUrl: wsUrl, onWsUrlChange: onWsUrlChange, debug: debug, onDebugChange: onDebugChange, showValues: showValues, onShowValuesChange: onShowValuesChange, hideWorkbench: hideWorkbench, onHideWorkbenchChange: onHideWorkbenchChange,
|
|
4262
|
+
return (jsxRuntime.jsx(WorkbenchProvider, { wb: wb, runner: runner, registry: registry, setRegistry: setRegistry, overrides: overrides, uiVersion: uiVersion, children: jsxRuntime.jsx(WorkbenchStudioCanvas, { setRegistry: setRegistry, autoScroll: autoScroll, onAutoScrollChange: onAutoScrollChange, example: example, onExampleChange: onExampleChange, engine: engine, onEngineChange: onEngineChange, backendKind: backendKind, onBackendKindChange: onBackendKindChangeWithDispose, httpBaseUrl: httpBaseUrl, onHttpBaseUrlChange: onHttpBaseUrlChange, wsUrl: wsUrl, onWsUrlChange: onWsUrlChange, debug: debug, onDebugChange: onDebugChange, showValues: showValues, onShowValuesChange: onShowValuesChange, hideWorkbench: hideWorkbench, onHideWorkbenchChange: onHideWorkbenchChange, overrides: overrides, onInit: onInit, onChange: onChange }) }));
|
|
4271
4263
|
}
|
|
4272
4264
|
|
|
4273
4265
|
exports.AbstractWorkbench = AbstractWorkbench;
|