@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.css +24 -27
- package/dist/index.css.map +1 -1
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -364,7 +364,8 @@ function SidebarProvider({
|
|
|
364
364
|
...style
|
|
365
365
|
},
|
|
366
366
|
className: cn(
|
|
367
|
-
|
|
367
|
+
// CHANGED: removed min-h-svh, added h-full and relative positioning
|
|
368
|
+
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full relative",
|
|
368
369
|
className
|
|
369
370
|
),
|
|
370
371
|
...props,
|
|
@@ -444,7 +445,8 @@ function Sidebar({
|
|
|
444
445
|
{
|
|
445
446
|
"data-slot": "sidebar-container",
|
|
446
447
|
className: cn(
|
|
447
|
-
|
|
448
|
+
// CHANGED: fixed → absolute, inset-y-0 → top-0 bottom-0, h-svh → h-full
|
|
449
|
+
"absolute top-0 bottom-0 z-10 hidden h-full w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",
|
|
448
450
|
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)]",
|
|
449
451
|
// Adjust the padding for floating and inset variants.
|
|
450
452
|
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",
|
|
@@ -597,7 +599,14 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority2.cva)(
|
|
|
597
599
|
// src/components/editor-shell/EditorShell.tsx
|
|
598
600
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
599
601
|
function EditorShell({ children }) {
|
|
600
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
603
|
+
"div",
|
|
604
|
+
{
|
|
605
|
+
className: "\r\n relative w-full h-full flex flex-col min-h-0 isolate\r\n ",
|
|
606
|
+
"data-easyflow-editor": true,
|
|
607
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SidebarProvider, { children })
|
|
608
|
+
}
|
|
609
|
+
);
|
|
601
610
|
}
|
|
602
611
|
|
|
603
612
|
// src/components/editorLayout/editorLayout.tsx
|
|
@@ -1244,7 +1253,7 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
|
|
|
1244
1253
|
editorContent: editor,
|
|
1245
1254
|
setEditorContent: setEditor,
|
|
1246
1255
|
debouncedSave
|
|
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: [
|
|
1256
|
+
}, 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 relative", children: [
|
|
1248
1257
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1249
1258
|
AppSidebar,
|
|
1250
1259
|
{
|
|
@@ -7751,9 +7760,7 @@ function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
|
|
|
7751
7760
|
"div",
|
|
7752
7761
|
{
|
|
7753
7762
|
className: (0, import_clsx2.default)(
|
|
7754
|
-
// Core editor wrapper classes
|
|
7755
7763
|
"flex flex-col flex-1 min-h-0 overflow-hidden",
|
|
7756
|
-
// Consumer can override with their classes
|
|
7757
7764
|
className
|
|
7758
7765
|
),
|
|
7759
7766
|
style,
|