@burdenoff/fluidgrids-fe-sdk 2026.720.1 → 2026.721.2
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/{WorkflowBuilder-COJQ2YBJ.js → WorkflowBuilder-UADGCKNH.js} +4 -4
- package/dist/{WorkflowBuilder-COJQ2YBJ.js.map → WorkflowBuilder-UADGCKNH.js.map} +1 -1
- package/dist/{blocks-J3YIE73T.js → blocks-RO3MCVHA.js} +3 -3
- package/dist/{blocks-J3YIE73T.js.map → blocks-RO3MCVHA.js.map} +1 -1
- package/dist/{chunk-S2Z7ZTGV.js → chunk-2MQR3DMF.js} +287 -68
- package/dist/chunk-2MQR3DMF.js.map +1 -0
- package/dist/{chunk-JVARXRIW.js → chunk-R72R5HRD.js} +21 -79
- package/dist/chunk-R72R5HRD.js.map +1 -0
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-JVARXRIW.js.map +0 -1
- package/dist/chunk-S2Z7ZTGV.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dialog as Dialog$1, DialogContent as DialogContent$1, DialogHeader as DialogHeader$1, DialogTitle as DialogTitle$1, DialogDescription as DialogDescription$1, Input as Input$1, DialogFooter } from './chunk-MRVS73S2.js';
|
|
2
2
|
import { Badge as Badge$1, Button } from './chunk-DBOMRIP5.js';
|
|
3
|
-
import { refetchStoreNodes, registerWorkflowNodeTypes, ensureNodeConfigsLoaded, onNodeTypesUpdate, NODE_TYPES, getNodeMetadata, AVAILABLE_NODES, useSaveWorkflow, useNodeExecution, getNodeDetail, ConnectionSelector,
|
|
3
|
+
import { refetchStoreNodes, registerWorkflowNodeTypes, ensureNodeConfigsLoaded, onNodeTypesUpdate, NODE_TYPES, getNodeMetadata, AVAILABLE_NODES, useInsertNode, useSaveWorkflow, useNodeExecution, getNodeDetail, ConnectionSelector, NODES_METADATA, NODE_CONFIGS, isNodeConfigsInitialized, NODES, NodePropertyPanel } from './chunk-2MQR3DMF.js';
|
|
4
4
|
import { createGlobalStoreClient, setGlobalStoreClient, resetGlobalStoreClient, getGlobalStoreClient } from './chunk-BQXHJIER.js';
|
|
5
5
|
import { BrowseWorkflowTemplatesDocument, InstallWorkflowNodeDocument, InstallPurchasedNodeDocument, GetMyNodeInstallationsDocument, BrowseWorkflowNodesDocument, UninstallWorkflowNodeDocument, CreateStoreOrderDocument } from './chunk-PNOA7CQV.js';
|
|
6
6
|
import { useLazyWorkflowDefinition, useCreateWorkflow, useWorkflowVersions, useRestoreWorkflowVersion, useActivateWorkflow, useDeactivateWorkflow } from './chunk-OHIRHNRJ.js';
|
|
@@ -2259,6 +2259,11 @@ gql$1`
|
|
|
2259
2259
|
`;
|
|
2260
2260
|
|
|
2261
2261
|
// src/builder/components/flow-builder/components/store/store-node-availability.ts
|
|
2262
|
+
function userSelectableOperationCount(nodeType) {
|
|
2263
|
+
if (!nodeType) return 0;
|
|
2264
|
+
const ops = NODE_CONFIGS.find((c) => c.type === nodeType)?.operations ?? [];
|
|
2265
|
+
return ops.filter((op) => !op.isAdapterOperation && !op.internal).length;
|
|
2266
|
+
}
|
|
2262
2267
|
function getStoreNodeType(node, isInstalled) {
|
|
2263
2268
|
const manifestNodeType = node.manifest?.nodeType;
|
|
2264
2269
|
return manifestNodeType ?? (isInstalled ? `store/${node.slug}` : void 0);
|
|
@@ -2270,11 +2275,9 @@ function getStoreNodeAvailability(node, isInstalled) {
|
|
|
2270
2275
|
(availableNode) => availableNode.type === nodeType && (availableNode.publishType === "BUILTIN" || availableNode.publishType === void 0)
|
|
2271
2276
|
);
|
|
2272
2277
|
const isPrebuilt = !isInstalled && (isInternalBuiltin || isRegistryBacked);
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
isDraggable: !!nodeType && (isInstalled || isPrebuilt)
|
|
2277
|
-
};
|
|
2278
|
+
const available = !!nodeType && (isInstalled || isPrebuilt);
|
|
2279
|
+
const isDraggable = available && userSelectableOperationCount(nodeType) <= 1;
|
|
2280
|
+
return { nodeType, isPrebuilt, isDraggable };
|
|
2278
2281
|
}
|
|
2279
2282
|
|
|
2280
2283
|
// src/builder/contants/symbols.ts
|
|
@@ -2871,11 +2874,18 @@ var UninstallNodeDialog = ({
|
|
|
2871
2874
|
function isTriggerOperation(op) {
|
|
2872
2875
|
return op.role === "trigger" || !!op.delivery || op.type === "subscription";
|
|
2873
2876
|
}
|
|
2877
|
+
function userSelectableOperations(ops) {
|
|
2878
|
+
return (ops ?? []).filter(
|
|
2879
|
+
(op) => !op.isAdapterOperation && !op.internal
|
|
2880
|
+
);
|
|
2881
|
+
}
|
|
2874
2882
|
function StoreNodeOperations({ nodeType }) {
|
|
2875
2883
|
const [, bump] = useState(0);
|
|
2876
2884
|
useEffect(() => onNodeTypesUpdate(() => bump((n) => n + 1)), []);
|
|
2877
2885
|
const config = nodeType ? NODE_CONFIGS.find((c) => c.type === nodeType) : void 0;
|
|
2878
|
-
const operations =
|
|
2886
|
+
const operations = userSelectableOperations(
|
|
2887
|
+
config?.operations
|
|
2888
|
+
);
|
|
2879
2889
|
const handleDragStart = useCallback(
|
|
2880
2890
|
(e, opName) => {
|
|
2881
2891
|
if (!nodeType) return;
|
|
@@ -4068,7 +4078,7 @@ function DesktopSidebarFragment({
|
|
|
4068
4078
|
if (nodes) {
|
|
4069
4079
|
const requiredNodeTypes = [];
|
|
4070
4080
|
try {
|
|
4071
|
-
const { NODE_CONFIGS: NODE_CONFIGS3, ensureNodeConfigsLoaded: ensureNodeConfigsLoaded2 } = await import('./blocks-
|
|
4081
|
+
const { NODE_CONFIGS: NODE_CONFIGS3, ensureNodeConfigsLoaded: ensureNodeConfigsLoaded2 } = await import('./blocks-RO3MCVHA.js');
|
|
4072
4082
|
await ensureNodeConfigsLoaded2().catch(() => {
|
|
4073
4083
|
});
|
|
4074
4084
|
const workflowNodeTypes = [
|
|
@@ -10385,74 +10395,6 @@ var useAddNodeOnEdgeDropStore = create()(
|
|
|
10385
10395
|
}
|
|
10386
10396
|
})
|
|
10387
10397
|
);
|
|
10388
|
-
function buildOperationSeed(type, operationName, existingData) {
|
|
10389
|
-
const config = NODE_CONFIGS.find((c) => c.type === type);
|
|
10390
|
-
if (!config) return null;
|
|
10391
|
-
const operations = config.operations ?? [];
|
|
10392
|
-
const op = operations.find((o) => o.name === operationName);
|
|
10393
|
-
if (!op) return null;
|
|
10394
|
-
const manifest = config.defaultData?.nodeData;
|
|
10395
|
-
const prevArgs = existingData.args ?? {};
|
|
10396
|
-
const manifestOps = manifest?.operations;
|
|
10397
|
-
const outputHandles = manifest?.outputHandles ?? manifestOps?.outputHandles;
|
|
10398
|
-
const inputHandles = manifest?.inputHandles ?? manifestOps?.inputHandles;
|
|
10399
|
-
return {
|
|
10400
|
-
...existingData,
|
|
10401
|
-
operation_name: op.name,
|
|
10402
|
-
operation_type: op.type,
|
|
10403
|
-
args: {
|
|
10404
|
-
// Preserve default context/credentials; seed state from the op defaults.
|
|
10405
|
-
...prevArgs,
|
|
10406
|
-
state: { ...op.adaptive_card?.defaultValue ?? {} }
|
|
10407
|
-
},
|
|
10408
|
-
// Slim manifest: keep node-level metadata but only the pinned operation.
|
|
10409
|
-
nodeData: {
|
|
10410
|
-
...manifest ?? {},
|
|
10411
|
-
...outputHandles !== void 0 ? { outputHandles } : {},
|
|
10412
|
-
...inputHandles !== void 0 ? { inputHandles } : {},
|
|
10413
|
-
operations: [op]
|
|
10414
|
-
}
|
|
10415
|
-
};
|
|
10416
|
-
}
|
|
10417
|
-
function useInsertNode() {
|
|
10418
|
-
const { addNodes, screenToFlowPosition, getNodes, updateNode } = useReactFlow();
|
|
10419
|
-
return useCallback(
|
|
10420
|
-
(type, pos, operationName) => {
|
|
10421
|
-
const _pos = pos || screenToFlowPosition({
|
|
10422
|
-
x: window.innerWidth / 2,
|
|
10423
|
-
y: window.innerHeight / 2
|
|
10424
|
-
});
|
|
10425
|
-
getNodes().forEach((node) => {
|
|
10426
|
-
if (node.selected) {
|
|
10427
|
-
updateNode(node.id, { selected: false });
|
|
10428
|
-
}
|
|
10429
|
-
});
|
|
10430
|
-
const newNode = createNodeWithDefaultData(type, {
|
|
10431
|
-
position: _pos,
|
|
10432
|
-
selected: true
|
|
10433
|
-
});
|
|
10434
|
-
let pinTo = operationName;
|
|
10435
|
-
if (!pinTo) {
|
|
10436
|
-
const config = NODE_CONFIGS.find((c) => c.type === type);
|
|
10437
|
-
const ops = config?.operations ?? [];
|
|
10438
|
-
if (ops.length === 1 && ops[0]?.name) {
|
|
10439
|
-
pinTo = ops[0].name;
|
|
10440
|
-
}
|
|
10441
|
-
}
|
|
10442
|
-
if (pinTo) {
|
|
10443
|
-
const seeded = buildOperationSeed(
|
|
10444
|
-
type,
|
|
10445
|
-
pinTo,
|
|
10446
|
-
newNode.data ?? {}
|
|
10447
|
-
);
|
|
10448
|
-
if (seeded) newNode.data = seeded;
|
|
10449
|
-
}
|
|
10450
|
-
addNodes(newNode);
|
|
10451
|
-
return newNode;
|
|
10452
|
-
},
|
|
10453
|
-
[screenToFlowPosition, getNodes, addNodes, updateNode]
|
|
10454
|
-
);
|
|
10455
|
-
}
|
|
10456
10398
|
function useAddNodeOnEdgeDrop() {
|
|
10457
10399
|
const [
|
|
10458
10400
|
dropPosition,
|
|
@@ -13910,7 +13852,7 @@ function WorkflowItem({
|
|
|
13910
13852
|
};
|
|
13911
13853
|
const requiredNodeTypes = [];
|
|
13912
13854
|
try {
|
|
13913
|
-
const { NODE_CONFIGS: NODE_CONFIGS3, ensureNodeConfigsLoaded: ensureNodeConfigsLoaded2 } = await import('./blocks-
|
|
13855
|
+
const { NODE_CONFIGS: NODE_CONFIGS3, ensureNodeConfigsLoaded: ensureNodeConfigsLoaded2 } = await import('./blocks-RO3MCVHA.js');
|
|
13914
13856
|
await ensureNodeConfigsLoaded2().catch(() => {
|
|
13915
13857
|
});
|
|
13916
13858
|
const workflowNodeTypes = [
|
|
@@ -14179,5 +14121,5 @@ function WorkflowBuilder() {
|
|
|
14179
14121
|
}
|
|
14180
14122
|
|
|
14181
14123
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, FlowBuilderPage, FluidGridsProvider, TemplateCard, WorkflowBuilder, useFluidGridsContext, useImportWorkflowTemplate, useWorkflowTemplates };
|
|
14182
|
-
//# sourceMappingURL=chunk-
|
|
14183
|
-
//# sourceMappingURL=chunk-
|
|
14124
|
+
//# sourceMappingURL=chunk-R72R5HRD.js.map
|
|
14125
|
+
//# sourceMappingURL=chunk-R72R5HRD.js.map
|