@cepoltd/lpeditor 0.9.3 → 0.9.5
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/LICENSE +49 -0
- package/dist/index.css +1 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -39715,6 +39715,10 @@ const Button = React.forwardRef(({ className, variant, size, asChild = false, ..
|
|
|
39715
39715
|
);
|
|
39716
39716
|
});
|
|
39717
39717
|
Button.displayName = "Button";
|
|
39718
|
+
const LpePortalContext = createContext(null);
|
|
39719
|
+
function useLpePortal() {
|
|
39720
|
+
return useContext(LpePortalContext);
|
|
39721
|
+
}
|
|
39718
39722
|
function Dialog({
|
|
39719
39723
|
...props
|
|
39720
39724
|
}) {
|
|
@@ -39728,7 +39732,8 @@ function DialogTrigger({
|
|
|
39728
39732
|
function DialogPortal({
|
|
39729
39733
|
...props
|
|
39730
39734
|
}) {
|
|
39731
|
-
|
|
39735
|
+
const portalContainer = useLpePortal();
|
|
39736
|
+
return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", container: portalContainer ?? void 0, ...props });
|
|
39732
39737
|
}
|
|
39733
39738
|
const DialogOverlay = React.forwardRef(({ className, ...props }, ref2) => {
|
|
39734
39739
|
return /* @__PURE__ */ jsx(
|
|
@@ -40096,7 +40101,8 @@ function ContextMenuContent({
|
|
|
40096
40101
|
className,
|
|
40097
40102
|
...props
|
|
40098
40103
|
}) {
|
|
40099
|
-
|
|
40104
|
+
const portalContainer = useLpePortal();
|
|
40105
|
+
return /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { container: portalContainer ?? void 0, children: /* @__PURE__ */ jsx(
|
|
40100
40106
|
ContextMenuPrimitive.Content,
|
|
40101
40107
|
{
|
|
40102
40108
|
"data-slot": "context-menu-content",
|
|
@@ -42875,7 +42881,8 @@ function DropdownMenuContent({
|
|
|
42875
42881
|
sideOffset = 4,
|
|
42876
42882
|
...props
|
|
42877
42883
|
}) {
|
|
42878
|
-
|
|
42884
|
+
const portalContainer = useLpePortal();
|
|
42885
|
+
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { container: portalContainer ?? void 0, children: /* @__PURE__ */ jsx(
|
|
42879
42886
|
DropdownMenuPrimitive.Content,
|
|
42880
42887
|
{
|
|
42881
42888
|
"data-slot": "dropdown-menu-content",
|
|
@@ -42981,7 +42988,8 @@ function PopoverContent({
|
|
|
42981
42988
|
sideOffset = 4,
|
|
42982
42989
|
...props
|
|
42983
42990
|
}) {
|
|
42984
|
-
|
|
42991
|
+
const portalContainer = useLpePortal();
|
|
42992
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: portalContainer ?? void 0, children: /* @__PURE__ */ jsx(
|
|
42985
42993
|
PopoverPrimitive.Content,
|
|
42986
42994
|
{
|
|
42987
42995
|
"data-slot": "popover-content",
|
|
@@ -46951,7 +46959,8 @@ function SelectContent({
|
|
|
46951
46959
|
position: position2 = "popper",
|
|
46952
46960
|
...props
|
|
46953
46961
|
}) {
|
|
46954
|
-
|
|
46962
|
+
const portalContainer = useLpePortal();
|
|
46963
|
+
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container: portalContainer ?? void 0, children: /* @__PURE__ */ jsxs(
|
|
46955
46964
|
SelectPrimitive.Content,
|
|
46956
46965
|
{
|
|
46957
46966
|
"data-slot": "select-content",
|
|
@@ -73867,7 +73876,7 @@ const LpEditor = forwardRef(
|
|
|
73867
73876
|
return () => clearTimeout(timer);
|
|
73868
73877
|
}
|
|
73869
73878
|
}, [lexicalEditorRef.current, onInitialized, ref2]);
|
|
73870
|
-
return /* @__PURE__ */ jsx("div", { className: "min-h-screen bg-gray-100 flex flex-col", children: /* @__PURE__ */ jsx(
|
|
73879
|
+
return /* @__PURE__ */ jsx("div", { className: "lpe-root min-h-screen bg-gray-100 flex flex-col", children: /* @__PURE__ */ jsx(
|
|
73871
73880
|
f$6,
|
|
73872
73881
|
{
|
|
73873
73882
|
initialConfig,
|