@mhamz.01/easyflow-texteditor 0.1.42 → 0.1.43
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 +15 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -536,7 +536,7 @@ 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
|
|
539
|
+
return /* @__PURE__ */ jsx7("div", { className: "easyflow-editor", children: /* @__PURE__ */ jsx7("div", { className: "flex flex-1 min-h-0 overflow-hidden", children: /* @__PURE__ */ jsx7(SidebarProvider, { children }) }) });
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
// src/components/editorLayout/editorLayout.tsx
|
|
@@ -1183,7 +1183,7 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
|
|
|
1183
1183
|
editorContent: editor,
|
|
1184
1184
|
setEditorContent: setEditor,
|
|
1185
1185
|
debouncedSave
|
|
1186
|
-
}, children: /* @__PURE__ */ jsx11(SidebarProvider, { children: /* @__PURE__ */ jsxs6("div", { className: "flex h-
|
|
1186
|
+
}, children: /* @__PURE__ */ jsx11(SidebarProvider, { children: /* @__PURE__ */ jsxs6("div", { className: "flex h-full w-full min-h-0", children: [
|
|
1187
1187
|
/* @__PURE__ */ jsx11(
|
|
1188
1188
|
AppSidebar,
|
|
1189
1189
|
{
|
|
@@ -1202,7 +1202,7 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
|
|
|
1202
1202
|
),
|
|
1203
1203
|
/* @__PURE__ */ jsxs6(SidebarInset, { className: "flex flex-col flex-1 min-h-0", children: [
|
|
1204
1204
|
/* @__PURE__ */ jsx11("header", { className: "h-12 flex-shrink-0 border-b", children: /* @__PURE__ */ jsx11(SidebarTrigger, {}) }),
|
|
1205
|
-
children
|
|
1205
|
+
/* @__PURE__ */ jsx11("div", { className: "flex-1 min-h-0 overflow-hidden", children })
|
|
1206
1206
|
] })
|
|
1207
1207
|
] }) }) });
|
|
1208
1208
|
}
|
|
@@ -7719,9 +7719,20 @@ function SimpleEditor() {
|
|
|
7719
7719
|
}
|
|
7720
7720
|
|
|
7721
7721
|
// src/components/editor/editor.tsx
|
|
7722
|
+
import clsx2 from "clsx";
|
|
7722
7723
|
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
7723
7724
|
function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
|
|
7724
|
-
return /* @__PURE__ */ jsx77(
|
|
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
|
+
);
|
|
7725
7736
|
}
|
|
7726
7737
|
|
|
7727
7738
|
// src/hooks/use-scrolling.ts
|