@fileverse-dev/ddoc 2.1.0-patch-8 → 2.1.0-patch-9
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 +63 -69
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -99364,78 +99364,72 @@ const Qg = ({
|
|
99364
99364
|
},
|
99365
99365
|
content: to("pretend-to-work")
|
99366
99366
|
}
|
99367
|
-
], urt = (t, e, n, r, i) => /* @__PURE__ */ P.jsxs(
|
99368
|
-
|
99369
|
-
|
99370
|
-
|
99371
|
-
|
99372
|
-
|
99367
|
+
], urt = (t, e, n, r, i) => /* @__PURE__ */ P.jsxs(Aq, { 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: [
|
99368
|
+
t.map((s, o) => /* @__PURE__ */ P.jsxs(
|
99369
|
+
zn,
|
99370
|
+
{
|
99371
|
+
onClick: s.onClick,
|
99372
|
+
variant: "ghost",
|
99373
|
+
className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all min-w-fit",
|
99374
|
+
children: [
|
99375
|
+
NO(s.icon),
|
99376
|
+
/* @__PURE__ */ P.jsx("span", { children: s.label })
|
99377
|
+
]
|
99378
|
+
},
|
99379
|
+
o
|
99380
|
+
)),
|
99381
|
+
/* @__PURE__ */ P.jsx(
|
99382
|
+
Aa,
|
99383
|
+
{
|
99384
|
+
align: "end",
|
99385
|
+
sideOffset: 10,
|
99386
|
+
anchorTrigger: /* @__PURE__ */ P.jsx(
|
99373
99387
|
zn,
|
99374
99388
|
{
|
99375
|
-
onClick: s.onClick,
|
99376
99389
|
variant: "ghost",
|
99377
|
-
className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all min-w-
|
99378
|
-
children:
|
99379
|
-
|
99380
|
-
|
99381
|
-
|
99382
|
-
|
99383
|
-
|
99384
|
-
|
99385
|
-
|
99386
|
-
|
99387
|
-
|
99388
|
-
|
99389
|
-
|
99390
|
-
|
99391
|
-
|
99392
|
-
|
99393
|
-
|
99394
|
-
|
99395
|
-
|
99396
|
-
|
99397
|
-
|
99398
|
-
|
99399
|
-
|
99400
|
-
|
99401
|
-
|
99402
|
-
|
99403
|
-
|
99404
|
-
|
99405
|
-
|
99406
|
-
|
99407
|
-
|
99408
|
-
|
99409
|
-
|
99410
|
-
|
99411
|
-
|
99412
|
-
|
99413
|
-
|
99414
|
-
|
99415
|
-
|
99416
|
-
|
99417
|
-
|
99418
|
-
|
99419
|
-
|
99420
|
-
/* @__PURE__ */ P.jsx("span", { children: i ? "Less" : "More" }),
|
99421
|
-
/* @__PURE__ */ P.jsx(
|
99422
|
-
Qe,
|
99423
|
-
{
|
99424
|
-
name: "ChevronDown",
|
99425
|
-
size: "sm",
|
99426
|
-
className: Pe(i ? "rotate-180" : "")
|
99427
|
-
}
|
99428
|
-
)
|
99429
|
-
]
|
99430
|
-
}
|
99431
|
-
)
|
99432
|
-
] })
|
99433
|
-
},
|
99434
|
-
"More Templates"
|
99435
|
-
)
|
99436
|
-
]
|
99437
|
-
}
|
99438
|
-
), frt = ({ node: t, getPos: e, editor: n, deleteNode: r, secureImageUploadUrl: i }) => {
|
99390
|
+
className: "gap-2 color-bg-default-hover text-body-sm color-text-default rounded-lg hover:brightness-95 transition-all w-full min-w-0 !p-[10px]",
|
99391
|
+
children: /* @__PURE__ */ P.jsx(Qe, { name: "Ellipsis", className: "color-text-default" })
|
99392
|
+
}
|
99393
|
+
),
|
99394
|
+
content: /* @__PURE__ */ P.jsxs("div", { className: "flex flex-col gap-1 p-2 w-[12rem]", children: [
|
99395
|
+
/* @__PURE__ */ P.jsx("div", { className: "max-h-44 overflow-auto gap-1 flex flex-col", children: e.slice(0, n).map((s, o) => /* @__PURE__ */ P.jsxs(
|
99396
|
+
zn,
|
99397
|
+
{
|
99398
|
+
onClick: s.onClick,
|
99399
|
+
variant: "ghost",
|
99400
|
+
className: "justify-start gap-2 text-body-sm color-text-default min-w-fit px-2 rounded-lg",
|
99401
|
+
children: [
|
99402
|
+
NO(s.icon),
|
99403
|
+
/* @__PURE__ */ P.jsx("span", { children: s.label })
|
99404
|
+
]
|
99405
|
+
},
|
99406
|
+
o
|
99407
|
+
)) }),
|
99408
|
+
/* @__PURE__ */ P.jsx(o8, { className: "w-full !border-t-[1px]" }),
|
99409
|
+
/* @__PURE__ */ P.jsxs(
|
99410
|
+
zn,
|
99411
|
+
{
|
99412
|
+
variant: "ghost",
|
99413
|
+
className: "justify-between gap-2 text-body-sm color-text-default min-w-fit px-2 rounded-lg",
|
99414
|
+
onClick: r,
|
99415
|
+
children: [
|
99416
|
+
/* @__PURE__ */ P.jsx("span", { children: i ? "Less" : "More" }),
|
99417
|
+
/* @__PURE__ */ P.jsx(
|
99418
|
+
Qe,
|
99419
|
+
{
|
99420
|
+
name: "ChevronDown",
|
99421
|
+
size: "sm",
|
99422
|
+
className: Pe(i ? "rotate-180" : "")
|
99423
|
+
}
|
99424
|
+
)
|
99425
|
+
]
|
99426
|
+
}
|
99427
|
+
)
|
99428
|
+
] })
|
99429
|
+
},
|
99430
|
+
"More Templates"
|
99431
|
+
)
|
99432
|
+
] }), frt = ({ node: t, getPos: e, editor: n, deleteNode: r, secureImageUploadUrl: i }) => {
|
99439
99433
|
const [s, o] = qe(!1), a = ort(n, t, e()), l = u8(), c = yn(() => {
|
99440
99434
|
const { content: G } = t.content;
|
99441
99435
|
return G[0].type.name === "table";
|