@datatechsolutions/ui 2.11.56 → 2.11.58

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
1
  "use client";
2
- import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-GWLWSE2C.mjs';
2
+ import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-7L2ASZLV.mjs';
3
3
  import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
4
4
  import { GraphNodeHeader, GraphNodeMeta, GraphNodeBadge, GraphNodeIconBubble } from './chunk-OZNTQROP.mjs';
5
5
  import { getAgentTier, createDefaultLogicNodeConfig, applyDagreLayout } from './chunk-WNCPAWLC.mjs';
@@ -4155,6 +4155,7 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
4155
4155
  const [headerEntries, setHeaderEntries] = useState(headersToEntries(config.headers));
4156
4156
  const [body, setBody] = useState(config.body ?? "");
4157
4157
  const [timeoutMs, setTimeoutMs] = useState(config.timeoutMs);
4158
+ const [parseResponse, setParseResponse] = useState(config.parseResponse ?? "json");
4158
4159
  const handleAddHeader = () => {
4159
4160
  setHeaderEntries([...headerEntries, { key: "", value: "" }]);
4160
4161
  };
@@ -4173,7 +4174,8 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
4173
4174
  url,
4174
4175
  headers: entriesToHeaders(headerEntries),
4175
4176
  body: method === "GET" ? "" : body,
4176
- timeoutMs
4177
+ timeoutMs,
4178
+ parseResponse
4177
4179
  });
4178
4180
  };
4179
4181
  return /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
@@ -4264,6 +4266,18 @@ function HttpRequestNodeConfigForm({ config, onSave, onCancel }) {
4264
4266
  step: 1e3
4265
4267
  }
4266
4268
  ),
4269
+ /* @__PURE__ */ jsx(
4270
+ FormSelect,
4271
+ {
4272
+ label: t("parseResponseLabel"),
4273
+ value: parseResponse,
4274
+ onValueChange: (value) => setParseResponse(value),
4275
+ options: [
4276
+ { value: "json", label: t("parseResponseJson") },
4277
+ { value: "text", label: t("parseResponseText") }
4278
+ ]
4279
+ }
4280
+ ),
4267
4281
  /* @__PURE__ */ jsx(
4268
4282
  ConfigFormActions,
4269
4283
  {
@@ -7829,5 +7843,5 @@ function Workspace({
7829
7843
  }
7830
7844
 
7831
7845
  export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CATEGORY_COLORS, CATEGORY_PILL_COLORS, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EndFlowNode, EntityFlowNode, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, HttpRequestFlowNode, ICON_MAP, IfElseFlowNode, IterationFlowNode, IterationStartFlowNode, KnowledgeBaseFlowNode, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, ListOperatorFlowNode, LogicNodeModal, MINIMAP_NODE_COLORS, ModelProviderFlowNode, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeContextMenu, NoteFlowNode, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, QuestionClassifierFlowNode, RuleFlowNode, SelectionContextMenu, StartFlowNode, StrandsIcon, TemplateTransformFlowNode, ToolFlowNode, VariableAggregatorFlowNode, VariableAssignerFlowNode, WorkflowBuilderProvider, WorkflowCanvas, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isFrameworkCompatibleWithProviders, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
7832
- //# sourceMappingURL=chunk-FXJBJ77I.mjs.map
7833
- //# sourceMappingURL=chunk-FXJBJ77I.mjs.map
7846
+ //# sourceMappingURL=chunk-ESC5OVLF.mjs.map
7847
+ //# sourceMappingURL=chunk-ESC5OVLF.mjs.map