@genfeedai/workflow-ui 0.2.4 → 0.2.5

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/index.d.ts CHANGED
@@ -45,4 +45,4 @@ interface WorkflowEditorShellProps {
45
45
  }
46
46
  declare function WorkflowEditorShell({ modalContent, nodePalette, nodeTypes, onDownloadAsZip, rightPanel, showBottomBar, showNodePalette, showSmallGraphViewportGuard, toolbar, }: WorkflowEditorShellProps): react_jsx_runtime.JSX.Element;
47
47
 
48
- export { DEFAULT_GROUP_COLORS, GROUP_COLORS, GlobalImageHistory, NotificationToast, SmallGraphViewportGuard, WorkflowEditorShell };
48
+ export { DEFAULT_GROUP_COLORS, GROUP_COLORS, GlobalImageHistory, NotificationToast, SmallGraphViewportGuard, WorkflowEditorShell, type WorkflowEditorShellProps };
package/dist/index.mjs CHANGED
@@ -78,7 +78,13 @@ function WorkflowEditorShell({
78
78
  /* @__PURE__ */ jsxs("main", { className: "flex min-h-0 flex-1 flex-col overflow-hidden bg-[var(--background)]", children: [
79
79
  toolbar,
80
80
  /* @__PURE__ */ jsxs("div", { className: "flex flex-1 overflow-hidden", children: [
81
- showNodePalette && showPalette && (nodePalette ?? /* @__PURE__ */ jsx(NodePalette, {})),
81
+ showNodePalette && /* @__PURE__ */ jsx(
82
+ "div",
83
+ {
84
+ className: `overflow-hidden transition-all duration-300 ease-in-out ${showPalette ? "w-64 opacity-100" : "w-0 opacity-0"}`,
85
+ children: nodePalette ?? /* @__PURE__ */ jsx(NodePalette, {})
86
+ }
87
+ ),
82
88
  /* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
83
89
  showSmallGraphViewportGuard && /* @__PURE__ */ jsx(SmallGraphViewportGuard, {}),
84
90
  /* @__PURE__ */ jsx(
package/package.json CHANGED
@@ -112,5 +112,5 @@
112
112
  ],
113
113
  "type": "module",
114
114
  "types": "./dist/index.d.ts",
115
- "version": "0.2.4"
115
+ "version": "0.2.5"
116
116
  }