@burdenoff/fluidgrids-fe-sdk 2026.616.2 → 2026.624.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,5 +1,5 @@
1
- export { WorkflowBuilder } from './chunk-TYOU6RYA.js';
2
- import './chunk-C5VIFUNU.js';
1
+ export { WorkflowBuilder } from './chunk-EVUQS7DK.js';
2
+ import './chunk-2YP4QVEZ.js';
3
3
  import './chunk-7VEOUEIN.js';
4
4
  import './chunk-Z54K22LP.js';
5
5
  import './chunk-Z2ZEVYDE.js';
@@ -11,5 +11,5 @@ import './chunk-BQXHJIER.js';
11
11
  import './chunk-5BDQNSP3.js';
12
12
  import './chunk-WWU2O2SR.js';
13
13
  import './chunk-XQP33UJR.js';
14
- //# sourceMappingURL=WorkflowBuilder-BIAKKNKM.js.map
15
- //# sourceMappingURL=WorkflowBuilder-BIAKKNKM.js.map
14
+ //# sourceMappingURL=WorkflowBuilder-MITXVIMZ.js.map
15
+ //# sourceMappingURL=WorkflowBuilder-MITXVIMZ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-BIAKKNKM.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"WorkflowBuilder-MITXVIMZ.js"}
@@ -901,6 +901,35 @@ var components_default = AdaptiveCardRenderer;
901
901
  function isRecord(value) {
902
902
  return typeof value === "object" && value !== null && !Array.isArray(value);
903
903
  }
904
+ function humanizeFieldName(name) {
905
+ return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (c) => c.toUpperCase());
906
+ }
907
+ function synthesizeCardFromInputFields(inputFields) {
908
+ const names = Object.keys(inputFields);
909
+ if (names.length === 0) return null;
910
+ const body = [];
911
+ for (const name of names) {
912
+ const field = isRecord(inputFields[name]) ? inputFields[name] : {};
913
+ const description = typeof field.description === "string" ? field.description : void 0;
914
+ const required = field.required === true;
915
+ const multiline = name === "body" || name === "htmlBody";
916
+ const label = humanizeFieldName(name);
917
+ body.push({ type: "TextBlock", text: required ? `${label} *` : label, wrap: true });
918
+ body.push({
919
+ type: "Input.Text",
920
+ id: `args.state.${name}`,
921
+ value: `\${${name}}`,
922
+ ...description ? { placeholder: description } : {},
923
+ ...multiline ? { isMultiline: true } : {},
924
+ ...required ? { isRequired: true, errorMessage: `${label} is required` } : {}
925
+ });
926
+ }
927
+ body.push({
928
+ type: "ActionSet",
929
+ actions: [{ type: "Action.Submit", title: "Apply" }]
930
+ });
931
+ return { type: "AdaptiveCard", version: "1.5", body };
932
+ }
904
933
  function validateUiSpec(raw) {
905
934
  if (!isRecord(raw)) return "ui is not an object";
906
935
  if (raw.version !== 1)
@@ -961,6 +990,18 @@ function resolveUiSpec(operation) {
961
990
  synthesized: true
962
991
  };
963
992
  }
993
+ if (isRecord(operation.input_fields)) {
994
+ const card = synthesizeCardFromInputFields(operation.input_fields);
995
+ if (card) {
996
+ return {
997
+ spec: {
998
+ version: 1,
999
+ blocks: [{ id: "main", type: "adaptive_card", card }]
1000
+ },
1001
+ synthesized: true
1002
+ };
1003
+ }
1004
+ }
964
1005
  return null;
965
1006
  }
966
1007
  function isSubmitAction(action) {
@@ -9439,5 +9480,5 @@ function useImportWorkflowTemplate() {
9439
9480
  }
9440
9481
 
9441
9482
  export { AVAILABLE_NODES, ConfigSchemaForm, ConnectionFormDialog, ConnectionSelector, HeaderWithIcon, NODES, NODES_METADATA, NODE_CONFIGS, NODE_TYPES, NodePropertyPanel, ProviderPicker, createNodeWithDefaultData, ensureNodeConfigsLoaded, getNodeDetail, getNodeMetadata, getProviderForm, isNodeConfigsInitialized, listCustomBlocks, onNodeTypesUpdate, registerCustomBlock, registerWorkflowNodeTypes, resolveUiSpec, stripSubmitActions, useConnection, useConnectionDialog, useConnections, useConnectionsByProvider, useCreateConnection, useImportWorkflowTemplate, useInitiateOAuth, useInstallNode, useInstalledNodes, useNodeExecution, useProviderByKey, useProviderCatalog, useProviders, useRefreshAvailableNodes };
9442
- //# sourceMappingURL=chunk-C5VIFUNU.js.map
9443
- //# sourceMappingURL=chunk-C5VIFUNU.js.map
9483
+ //# sourceMappingURL=chunk-2YP4QVEZ.js.map
9484
+ //# sourceMappingURL=chunk-2YP4QVEZ.js.map