@mhamz.01/easyflow-texteditor 0.1.33 → 0.1.37

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,14 +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(
539
+ return /* @__PURE__ */ jsx7("div", { className: "easyflow-editor", children: /* @__PURE__ */ jsx7(
540
540
  "div",
541
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 ",
542
+ className: "\r\n \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
543
  "data-easyflow-editor": true,
544
544
  children: /* @__PURE__ */ jsx7(SidebarProvider, { children })
545
545
  }
546
- );
546
+ ) });
547
547
  }
548
548
 
549
549
  // src/components/editorLayout/editorLayout.tsx
@@ -7727,8 +7727,8 @@ function SimpleEditor() {
7727
7727
 
7728
7728
  // src/components/editor/editor.tsx
7729
7729
  import { jsx as jsx77 } from "react/jsx-runtime";
7730
- function Editor({ onChange, className, style, onTabsChange }) {
7731
- return /* @__PURE__ */ jsx77("div", { className, style, children: /* @__PURE__ */ jsx77(EditorShell, { children: /* @__PURE__ */ jsx77(EditorLayout, { onChange, onTabsChange, children: /* @__PURE__ */ jsx77(SimpleEditor, {}) }) }) });
7730
+ function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
7731
+ return /* @__PURE__ */ jsx77("div", { className, style, children: /* @__PURE__ */ jsx77(EditorShell, { children: /* @__PURE__ */ jsx77(EditorLayout, { onChange, initialTabs, onTabsChange, children: /* @__PURE__ */ jsx77(SimpleEditor, {}) }) }) });
7732
7732
  }
7733
7733
 
7734
7734
  // src/hooks/use-scrolling.ts