@mhamz.01/easyflow-texteditor 0.1.46 → 0.1.49

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
@@ -303,7 +303,8 @@ function SidebarProvider({
303
303
  ...style
304
304
  },
305
305
  className: cn(
306
- "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
306
+ // CHANGED: removed min-h-svh, added h-full and relative positioning
307
+ "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full relative",
307
308
  className
308
309
  ),
309
310
  ...props,
@@ -383,7 +384,8 @@ function Sidebar({
383
384
  {
384
385
  "data-slot": "sidebar-container",
385
386
  className: cn(
386
- "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
387
+ // CHANGED: fixed → absolute, inset-y-0 → top-0 bottom-0, h-svh h-full
388
+ "absolute top-0 bottom-0 z-10 hidden h-full w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
387
389
  side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
388
390
  // Adjust the padding for floating and inset variants.
389
391
  variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
@@ -536,7 +538,14 @@ var sidebarMenuButtonVariants = cva2(
536
538
  // src/components/editor-shell/EditorShell.tsx
537
539
  import { jsx as jsx7 } from "react/jsx-runtime";
538
540
  function EditorShell({ children }) {
539
- return /* @__PURE__ */ jsx7("div", { className: "isolate relative w-full h-full flex flex-col min-h-0", children: /* @__PURE__ */ jsx7(SidebarProvider, { children }) });
541
+ return /* @__PURE__ */ jsx7(
542
+ "div",
543
+ {
544
+ className: "\r\n relative w-full h-full flex flex-col min-h-0 isolate\r\n ",
545
+ "data-easyflow-editor": true,
546
+ children: /* @__PURE__ */ jsx7(SidebarProvider, { children })
547
+ }
548
+ );
540
549
  }
541
550
 
542
551
  // src/components/editorLayout/editorLayout.tsx
@@ -1183,7 +1192,7 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
1183
1192
  editorContent: editor,
1184
1193
  setEditorContent: setEditor,
1185
1194
  debouncedSave
1186
- }, children: /* @__PURE__ */ jsx11(SidebarProvider, { children: /* @__PURE__ */ jsxs6("div", { className: "flex h-full w-full min-h-0", children: [
1195
+ }, children: /* @__PURE__ */ jsx11(SidebarProvider, { children: /* @__PURE__ */ jsxs6("div", { className: "flex h-full w-full min-h-0 relative", children: [
1187
1196
  /* @__PURE__ */ jsx11(
1188
1197
  AppSidebar,
1189
1198
  {
@@ -7726,9 +7735,7 @@ function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
7726
7735
  "div",
7727
7736
  {
7728
7737
  className: clsx2(
7729
- // Core editor wrapper classes
7730
7738
  "flex flex-col flex-1 min-h-0 overflow-hidden",
7731
- // Consumer can override with their classes
7732
7739
  className
7733
7740
  ),
7734
7741
  style,