@fileverse-dev/ddoc 3.4.8-mp-fixes-1 → 3.4.8-mp-fixes-2
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 +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -65241,7 +65241,7 @@ class Zke {
|
|
|
65241
65241
|
Ve(this, "decorations");
|
|
65242
65242
|
Ve(this, "getRuntimeState");
|
|
65243
65243
|
Ve(this, "unregister");
|
|
65244
|
-
this.editor = t, this.node = n, this.getPos = r, this.decorations = o, this.getRuntimeState = s, this.id = Qh(), this.dom = document.createElement("div"), this.dom.dataset.type = "d-block", this.dom.dataset.dblockNodeView = "true", this.dom.dataset.nodeViewWrapper = "true", this.dom.setAttribute("data-dblock-id", this.id), Yke(this.dom, i), this.gutterElement = document.createElement("section"), this.gutterElement.className = "flex gap-[2px] min-w-5 lg:min-w-16 justify-end", this.gutterElement.setAttribute("aria-label", "left-menu"), this.gutterElement.setAttribute("contenteditable", "false"), this.gutterElement.dataset.dblockGutter = "true", this.contentElement = document.createElement("div"), this.contentElement.dataset.dblockContentShell = "true", this.contentDOM = document.createElement("div"), this.contentDOM.dataset.nodeViewContent = "true", this.contentElement.appendChild(this.contentDOM), this.dom.append(this.gutterElement, this.contentElement), this.unregister = Vke({
|
|
65244
|
+
this.editor = t, this.node = n, this.getPos = r, this.decorations = o, this.getRuntimeState = s, this.id = Qh(), this.dom = document.createElement("div"), this.dom.dataset.type = "d-block", this.dom.dataset.dblockNodeView = "true", this.dom.dataset.nodeViewWrapper = "true", this.dom.setAttribute("data-dblock-id", this.id), Yke(this.dom, i), this.gutterElement = document.createElement("section"), this.gutterElement.className = "flex h-0 lg:h-6 shrink-0 items-center gap-[2px] min-w-5 lg:min-w-16 justify-end", this.gutterElement.setAttribute("aria-label", "left-menu"), this.gutterElement.setAttribute("contenteditable", "false"), this.gutterElement.dataset.dblockGutter = "true", this.contentElement = document.createElement("div"), this.contentElement.dataset.dblockContentShell = "true", this.contentDOM = document.createElement("div"), this.contentDOM.dataset.nodeViewContent = "true", this.contentElement.appendChild(this.contentDOM), this.dom.append(this.gutterElement, this.contentElement), this.unregister = Vke({
|
|
65245
65245
|
id: this.id,
|
|
65246
65246
|
dom: this.dom,
|
|
65247
65247
|
gutterElement: this.gutterElement,
|
|
@@ -189315,7 +189315,7 @@ function wZe(e) {
|
|
|
189315
189315
|
);
|
|
189316
189316
|
}
|
|
189317
189317
|
const DZe = (e, t) => {
|
|
189318
|
-
const n = wZe(e), r = Ae(() => {
|
|
189318
|
+
const { hasAIWriter: n } = wZe(e), r = Ae(() => {
|
|
189319
189319
|
const a = t();
|
|
189320
189320
|
if (!a)
|
|
189321
189321
|
return;
|
|
@@ -192706,10 +192706,10 @@ const JZe = Dt.memo(
|
|
|
192706
192706
|
const v = jke(F.node, F.pos);
|
|
192707
192707
|
v && ((D = (w = F.handle).onCopyHeadingLink) == null || D.call(w, v));
|
|
192708
192708
|
}, g = Ge(
|
|
192709
|
-
"d-block-button color-text-default hover:color-bg-default-hover aspect-square
|
|
192709
|
+
"d-block-button color-text-default hover:color-bg-default-hover aspect-square h-5 w-5 shrink-0"
|
|
192710
192710
|
), m = !n.isPreviewMode && !o, b = c.isHeading, y = n.isPreviewMode && c.isHeading && !n.isPreviewEditor && !o;
|
|
192711
192711
|
return n.isPresentationMode && n.isPreviewMode || !a.handle.gutterElement.isConnected || !m && !b && !y ? null : bf(
|
|
192712
|
-
/* @__PURE__ */ x.jsxs("div", { className: "flex
|
|
192712
|
+
/* @__PURE__ */ x.jsxs("div", { className: "flex h-6 w-full items-center justify-end gap-[2px]", children: [
|
|
192713
192713
|
m ? /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
192714
192714
|
/* @__PURE__ */ x.jsx(QZe, { children: /* @__PURE__ */ x.jsx(
|
|
192715
192715
|
jZe,
|
|
@@ -192747,7 +192747,7 @@ const JZe = Dt.memo(
|
|
|
192747
192747
|
{
|
|
192748
192748
|
onClick: f,
|
|
192749
192749
|
className: Ge(
|
|
192750
|
-
"d-block-button color-text-default color-bg-default-hover aspect-square w-6
|
|
192750
|
+
"d-block-button color-text-default color-bg-default-hover aspect-square h-6 w-6 shrink-0"
|
|
192751
192751
|
)
|
|
192752
192752
|
}
|
|
192753
192753
|
) }) : null
|