@mhamz.01/easyflow-texteditor 0.1.45 → 0.1.47
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 -24
- package/dist/index.css.map +1 -1
- package/dist/index.js +10 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -597,7 +597,14 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority2.cva)(
|
|
|
597
597
|
// src/components/editor-shell/EditorShell.tsx
|
|
598
598
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
599
599
|
function EditorShell({ children }) {
|
|
600
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
601
|
+
"div",
|
|
602
|
+
{
|
|
603
|
+
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 ",
|
|
604
|
+
"data-easyflow-editor": true,
|
|
605
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SidebarProvider, { children })
|
|
606
|
+
}
|
|
607
|
+
);
|
|
601
608
|
}
|
|
602
609
|
|
|
603
610
|
// src/components/editorLayout/editorLayout.tsx
|
|
@@ -1244,7 +1251,7 @@ function EditorLayout({ children, onChange, initialTabs, onTabsChange }) {
|
|
|
1244
1251
|
editorContent: editor,
|
|
1245
1252
|
setEditorContent: setEditor,
|
|
1246
1253
|
debouncedSave
|
|
1247
|
-
}, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SidebarProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex h-
|
|
1254
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SidebarProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex h-screen w-full min-h-0", children: [
|
|
1248
1255
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1249
1256
|
AppSidebar,
|
|
1250
1257
|
{
|
|
@@ -7744,20 +7751,9 @@ function SimpleEditor() {
|
|
|
7744
7751
|
}
|
|
7745
7752
|
|
|
7746
7753
|
// src/components/editor/editor.tsx
|
|
7747
|
-
var import_clsx2 = __toESM(require("clsx"));
|
|
7748
7754
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
7749
7755
|
function Editor({ onChange, className, style, onTabsChange, initialTabs }) {
|
|
7750
|
-
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
7751
|
-
"div",
|
|
7752
|
-
{
|
|
7753
|
-
className: (0, import_clsx2.default)(
|
|
7754
|
-
"flex flex-1 min-h-0 flex-col overflow-hidden",
|
|
7755
|
-
className
|
|
7756
|
-
),
|
|
7757
|
-
style,
|
|
7758
|
-
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, {}) }) })
|
|
7759
|
-
}
|
|
7760
|
-
);
|
|
7756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className, style, 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, {}) }) }) });
|
|
7761
7757
|
}
|
|
7762
7758
|
|
|
7763
7759
|
// src/hooks/use-scrolling.ts
|