@mhamz.01/easyflow-texteditor 0.1.42 → 0.1.43

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.js CHANGED
@@ -597,7 +597,7 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority2.cva)(
597
597
  // src/components/editor-shell/EditorShell.tsx
598
598
  var import_jsx_runtime7 = require("react/jsx-runtime");
599
599
  function EditorShell({ children }) {
600
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "easyflow-editor dark", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SidebarProvider, { children }) });
600
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "easyflow-editor", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex flex-1 min-h-0 overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SidebarProvider, { children }) }) });
601
601
  }
602
602
 
603
603
  // src/components/editorLayout/editorLayout.tsx
@@ -1244,7 +1244,7 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
1244
1244
  editorContent: editor,
1245
1245
  setEditorContent: setEditor,
1246
1246
  debouncedSave
1247
- }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SidebarProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex h-screen w-full min-h-0", children: [
1247
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SidebarProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex h-full w-full min-h-0", children: [
1248
1248
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1249
1249
  AppSidebar,
1250
1250
  {
@@ -1263,7 +1263,7 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
1263
1263
  ),
1264
1264
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(SidebarInset, { className: "flex flex-col flex-1 min-h-0", children: [
1265
1265
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("header", { className: "h-12 flex-shrink-0 border-b", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SidebarTrigger, {}) }),
1266
- children
1266
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex-1 min-h-0 overflow-hidden", children })
1267
1267
  ] })
1268
1268
  ] }) }) });
1269
1269
  }
@@ -7744,9 +7744,20 @@ function SimpleEditor() {
7744
7744
  }
7745
7745
 
7746
7746
  // src/components/editor/editor.tsx
7747
+ var import_clsx2 = __toESM(require("clsx"));
7747
7748
  var import_jsx_runtime77 = require("react/jsx-runtime");
7748
7749
  function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
7749
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className, style, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(EditorShell, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(EditorLayout, { onChange, initialTabs, onTabsChange, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SimpleEditor, {}) }) }) });
7750
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7751
+ "div",
7752
+ {
7753
+ className: (0, import_clsx2.default)(
7754
+ "flex flex-1 min-h-0 flex-col overflow-hidden",
7755
+ className
7756
+ ),
7757
+ style,
7758
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(EditorShell, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(EditorLayout, { onChange, initialTabs, onTabsChange, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SimpleEditor, {}) }) })
7759
+ }
7760
+ );
7750
7761
  }
7751
7762
 
7752
7763
  // src/hooks/use-scrolling.ts