@fileverse-dev/ddoc 3.2.2 → 3.2.3
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.es.js +25 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -50598,6 +50598,23 @@ const Up = (e) => {
|
|
|
50598
50598
|
isActive: !1,
|
|
50599
50599
|
group: "More",
|
|
50600
50600
|
notVisible: 1560
|
|
50601
|
+
},
|
|
50602
|
+
null,
|
|
50603
|
+
{
|
|
50604
|
+
icon: "PilcrowRight",
|
|
50605
|
+
title: "Set text direction to left-to-right",
|
|
50606
|
+
onClick: () => e == null ? void 0 : e.commands.setTextDirection("ltr"),
|
|
50607
|
+
isActive: (e == null ? void 0 : e.isActive("paragraph", { dir: "ltr" })) ?? !1,
|
|
50608
|
+
group: "More",
|
|
50609
|
+
notVisible: 1560
|
|
50610
|
+
},
|
|
50611
|
+
{
|
|
50612
|
+
icon: "PilcrowLeft",
|
|
50613
|
+
title: "Set text direction to right-to-left",
|
|
50614
|
+
onClick: () => e == null ? void 0 : e.commands.setTextDirection("rtl"),
|
|
50615
|
+
isActive: (e == null ? void 0 : e.isActive("paragraph", { dir: "rtl" })) ?? !1,
|
|
50616
|
+
group: "More",
|
|
50617
|
+
notVisible: 1560
|
|
50601
50618
|
}
|
|
50602
50619
|
], C = [
|
|
50603
50620
|
{
|
|
@@ -66694,7 +66711,7 @@ const I5e = (e) => {
|
|
|
66694
66711
|
name: e,
|
|
66695
66712
|
className: t
|
|
66696
66713
|
}
|
|
66697
|
-
) : typeof e == "string" ? /* @__PURE__ */ F.jsx("span", { className: t, children: e }) : null, mB = (e, t, n, r, o, i, s) => i || s ? null : /* @__PURE__ */ F.jsxs(zte, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-y-1 md:!right-0 md:!top-0 z-40", children: [
|
|
66714
|
+
) : typeof e == "string" ? /* @__PURE__ */ F.jsx("span", { className: t, children: e }) : null, mB = (e, t, n, r, o, i, s) => i || s ? null : /* @__PURE__ */ F.jsxs(zte, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-y-1 md:!right-0 md:!top-0 z-40 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!left-0 group-has-[.is-editor-empty[dir='rtl']]/collision:md:!right-[unset]", children: [
|
|
66698
66715
|
e.map((a, l) => /* @__PURE__ */ F.jsxs(
|
|
66699
66716
|
It,
|
|
66700
66717
|
{
|
|
@@ -67412,7 +67429,7 @@ const hDe = Ct.memo(
|
|
|
67412
67429
|
"div",
|
|
67413
67430
|
{
|
|
67414
67431
|
className: Ve(
|
|
67415
|
-
"node-view-content w-full relative self-center",
|
|
67432
|
+
"node-view-content w-full relative self-center group/collision",
|
|
67416
67433
|
{
|
|
67417
67434
|
"is-table max-w-full lg:max-w-[90%]": C,
|
|
67418
67435
|
"invalid-content": (ie = e.attrs) == null ? void 0 : ie.isCorrupted,
|
|
@@ -173176,6 +173193,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
173176
173193
|
spellCheck: "true"
|
|
173177
173194
|
}
|
|
173178
173195
|
},
|
|
173196
|
+
textDirection: "auto",
|
|
173179
173197
|
autofocus: _ || !ve.current ? !1 : "start",
|
|
173180
173198
|
immediatelyRender: !1,
|
|
173181
173199
|
shouldRerenderOnTransaction: !1
|
|
@@ -190591,7 +190609,11 @@ const SGe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190591
190609
|
Sq.configure({ document: p }),
|
|
190592
190610
|
...h()
|
|
190593
190611
|
];
|
|
190594
|
-
return { editor: new Ax({
|
|
190612
|
+
return { editor: new Ax({
|
|
190613
|
+
extensions: f,
|
|
190614
|
+
textDirection: "auto",
|
|
190615
|
+
autofocus: !1
|
|
190616
|
+
}), ydoc: p };
|
|
190595
190617
|
}, n = (p) => Array.isArray(p) || typeof p == "string" && !aQ(p), r = (p, h) => {
|
|
190596
190618
|
js(h, ho(eD(p)));
|
|
190597
190619
|
}, o = (p) => eD(p), i = (p, h, f) => {
|