@mhamz.01/easyflow-texteditor 0.1.45 → 0.1.47

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.mjs CHANGED
@@ -536,7 +536,14 @@ var sidebarMenuButtonVariants = cva2(
536
536
  // src/components/editor-shell/EditorShell.tsx
537
537
  import { jsx as jsx7 } from "react/jsx-runtime";
538
538
  function EditorShell({ children }) {
539
- return /* @__PURE__ */ jsx7("div", { className: "easyflow-editor", children: /* @__PURE__ */ jsx7(SidebarProvider, { children }) });
539
+ return /* @__PURE__ */ jsx7(
540
+ "div",
541
+ {
542
+ className: "\r\n relative\r\n w-full\r\n h-full\r\n overflow-hidden\r\n border\r\n rounded-md\r\n bg-background\r\n ",
543
+ "data-easyflow-editor": true,
544
+ children: /* @__PURE__ */ jsx7(SidebarProvider, { children })
545
+ }
546
+ );
540
547
  }
541
548
 
542
549
  // src/components/editorLayout/editorLayout.tsx
@@ -1183,7 +1190,7 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
1183
1190
  editorContent: editor,
1184
1191
  setEditorContent: setEditor,
1185
1192
  debouncedSave
1186
- }, children: /* @__PURE__ */ jsx11(SidebarProvider, { children: /* @__PURE__ */ jsxs6("div", { className: "flex h-full w-full min-h-0", children: [
1193
+ }, children: /* @__PURE__ */ jsx11(SidebarProvider, { children: /* @__PURE__ */ jsxs6("div", { className: "flex h-screen w-full min-h-0", children: [
1187
1194
  /* @__PURE__ */ jsx11(
1188
1195
  AppSidebar,
1189
1196
  {
@@ -7719,20 +7726,9 @@ function SimpleEditor() {
7719
7726
  }
7720
7727
 
7721
7728
  // src/components/editor/editor.tsx
7722
- import clsx2 from "clsx";
7723
7729
  import { jsx as jsx77 } from "react/jsx-runtime";
7724
7730
  function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
7725
- return /* @__PURE__ */ jsx77(
7726
- "div",
7727
- {
7728
- className: clsx2(
7729
- "flex flex-1 min-h-0 flex-col overflow-hidden",
7730
- className
7731
- ),
7732
- style,
7733
- children: /* @__PURE__ */ jsx77(EditorShell, { children: /* @__PURE__ */ jsx77(EditorLayout, { onChange, initialTabs, onTabsChange, children: /* @__PURE__ */ jsx77(SimpleEditor, {}) }) })
7734
- }
7735
- );
7731
+ return /* @__PURE__ */ jsx77("div", { className, style, children: /* @__PURE__ */ jsx77(EditorShell, { children: /* @__PURE__ */ jsx77(EditorLayout, { onChange, initialTabs, onTabsChange, children: /* @__PURE__ */ jsx77(SimpleEditor, {}) }) }) });
7736
7732
  }
7737
7733
 
7738
7734
  // src/hooks/use-scrolling.ts