@etrepum/lexical-builder-devtools-core 0.0.20 → 0.0.22-nightly.20240612.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { lazy as m, useMemo as
|
1
|
+
import { jsxs as y, jsx as s } from "react/jsx-runtime";
|
2
|
+
import { lazy as m, useMemo as G, Suspense as v } from "react";
|
3
3
|
import { LexicalBuilder as f, PACKAGE_VERSION as B, definePlan as P, provideOutput as x } from "@etrepum/lexical-builder";
|
4
4
|
import { deflate as A } from "pako";
|
5
5
|
import { fromUint8Array as E } from "js-base64";
|
@@ -64,14 +64,14 @@ function u({
|
|
64
64
|
editor: r,
|
65
65
|
...e
|
66
66
|
}) {
|
67
|
-
const { text: t, href: o } =
|
67
|
+
const { text: t, href: o } = G(() => {
|
68
68
|
const l = b(r);
|
69
69
|
return {
|
70
70
|
text: l,
|
71
71
|
href: C(l)
|
72
72
|
};
|
73
73
|
}, [r]), i = e.className ? {} : { style: { display: "grid", gap: "1rem" } };
|
74
|
-
return /* @__PURE__ */
|
74
|
+
return /* @__PURE__ */ y("div", { ...i, ...e, children: [
|
75
75
|
/* @__PURE__ */ s("a", { href: o, target: "_blank", children: "mermaid.live" }),
|
76
76
|
/* @__PURE__ */ s(S, { text: t })
|
77
77
|
] });
|
@@ -93,10 +93,10 @@ const N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
93
93
|
e !== void 0,
|
94
94
|
"BuilderGraphPlan: Could not get a LexicalBuilder reference"
|
95
95
|
), x({
|
96
|
-
Component: () => /* @__PURE__ */ s(
|
96
|
+
Component: () => /* @__PURE__ */ s(v, { children: /* @__PURE__ */ s(O, { editor: r }) })
|
97
97
|
});
|
98
98
|
}
|
99
|
-
}), T = "0.0.
|
99
|
+
}), T = "0.0.22-nightly.20240612.0";
|
100
100
|
export {
|
101
101
|
u as BuilderGraphComponent,
|
102
102
|
L as BuilderGraphPlan,
|