@burdenoff/fluidgrids-fe-sdk 2026.721.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.
@@ -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, useInsertNode, useSaveWorkflow, useNodeExecution, getNodeDetail, ConnectionSelector, NODES_METADATA, NODE_CONFIGS, isNodeConfigsInitialized, NODES, NodePropertyPanel } from './chunk-4IMAQMRN.js';
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
- return {
2274
- nodeType,
2275
- isPrebuilt,
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 = config?.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-S63X5XLG.js');
4081
+ const { NODE_CONFIGS: NODE_CONFIGS3, ensureNodeConfigsLoaded: ensureNodeConfigsLoaded2 } = await import('./blocks-RO3MCVHA.js');
4072
4082
  await ensureNodeConfigsLoaded2().catch(() => {
4073
4083
  });
4074
4084
  const workflowNodeTypes = [
@@ -13842,7 +13852,7 @@ function WorkflowItem({
13842
13852
  };
13843
13853
  const requiredNodeTypes = [];
13844
13854
  try {
13845
- const { NODE_CONFIGS: NODE_CONFIGS3, ensureNodeConfigsLoaded: ensureNodeConfigsLoaded2 } = await import('./blocks-S63X5XLG.js');
13855
+ const { NODE_CONFIGS: NODE_CONFIGS3, ensureNodeConfigsLoaded: ensureNodeConfigsLoaded2 } = await import('./blocks-RO3MCVHA.js');
13846
13856
  await ensureNodeConfigsLoaded2().catch(() => {
13847
13857
  });
13848
13858
  const workflowNodeTypes = [
@@ -14111,5 +14121,5 @@ function WorkflowBuilder() {
14111
14121
  }
14112
14122
 
14113
14123
  export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, FlowBuilderPage, FluidGridsProvider, TemplateCard, WorkflowBuilder, useFluidGridsContext, useImportWorkflowTemplate, useWorkflowTemplates };
14114
- //# sourceMappingURL=chunk-X6I7YBLP.js.map
14115
- //# sourceMappingURL=chunk-X6I7YBLP.js.map
14124
+ //# sourceMappingURL=chunk-R72R5HRD.js.map
14125
+ //# sourceMappingURL=chunk-R72R5HRD.js.map