@mhamz.01/easyflow-texteditor 0.1.47 → 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 +27 -30
- package/dist/index.css.map +1 -1
- package/dist/index.js +21 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -8
- 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",
|
|
@@ -600,7 +602,7 @@ function EditorShell({ children }) {
|
|
|
600
602
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
601
603
|
"div",
|
|
602
604
|
{
|
|
603
|
-
className: "\r\n
|
|
605
|
+
className: "\r\n relative w-full h-full flex flex-col min-h-0 isolate\r\n ",
|
|
604
606
|
"data-easyflow-editor": true,
|
|
605
607
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SidebarProvider, { children })
|
|
606
608
|
}
|
|
@@ -1251,7 +1253,7 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
|
|
|
1251
1253
|
editorContent: editor,
|
|
1252
1254
|
setEditorContent: setEditor,
|
|
1253
1255
|
debouncedSave
|
|
1254
|
-
}, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SidebarProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex h-
|
|
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: [
|
|
1255
1257
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1256
1258
|
AppSidebar,
|
|
1257
1259
|
{
|
|
@@ -1268,9 +1270,9 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
|
|
|
1268
1270
|
onDeleteSubTab: deleteSubTab
|
|
1269
1271
|
}
|
|
1270
1272
|
),
|
|
1271
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(SidebarInset, { className: "flex flex-col flex-1 min-h-0", children: [
|
|
1272
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("header", { className: "h-12 flex-shrink-0 border-b", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SidebarTrigger, {}) }),
|
|
1273
|
-
children
|
|
1273
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(SidebarInset, { className: "flex flex-col flex-1 min-h-0 overflow-hidden", children: [
|
|
1274
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("header", { className: "h-12 flex-shrink-0 border-b flex items-center px-4", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SidebarTrigger, {}) }),
|
|
1275
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex-1 min-h-0 overflow-auto", children })
|
|
1274
1276
|
] })
|
|
1275
1277
|
] }) }) });
|
|
1276
1278
|
}
|
|
@@ -7751,9 +7753,20 @@ function SimpleEditor() {
|
|
|
7751
7753
|
}
|
|
7752
7754
|
|
|
7753
7755
|
// src/components/editor/editor.tsx
|
|
7756
|
+
var import_clsx2 = __toESM(require("clsx"));
|
|
7754
7757
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
7755
7758
|
function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
|
|
7756
|
-
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
7759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
7760
|
+
"div",
|
|
7761
|
+
{
|
|
7762
|
+
className: (0, import_clsx2.default)(
|
|
7763
|
+
"flex flex-col flex-1 min-h-0 overflow-hidden",
|
|
7764
|
+
className
|
|
7765
|
+
),
|
|
7766
|
+
style,
|
|
7767
|
+
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, {}) }) })
|
|
7768
|
+
}
|
|
7769
|
+
);
|
|
7757
7770
|
}
|
|
7758
7771
|
|
|
7759
7772
|
// src/hooks/use-scrolling.ts
|