@fileverse-dev/ddoc 3.3.5-mermaid-2 → 3.3.5-mermaid-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 CHANGED
@@ -98025,7 +98025,7 @@ function VUe({
98025
98025
  view: D,
98026
98026
  error: w,
98027
98027
  svg: k
98028
- } = F, C = u && (D === "preview" || c), _ = Te({
98028
+ } = F, C = u && D === "preview", _ = Te({
98029
98029
  source: "",
98030
98030
  svg: ""
98031
98031
  }), I = Te(D);
@@ -98105,11 +98105,11 @@ function VUe({
98105
98105
  {
98106
98106
  className: qe(
98107
98107
  "flex flex-row gap-2 items-center justify-between color-bg-secondary absolute top-0 left-0 z-10 rounded-t-lg w-full border-b color-border-default px-2 py-1",
98108
- c && "hidden"
98108
+ c && !u && "hidden"
98109
98109
  ),
98110
98110
  children: [
98111
98111
  /* @__PURE__ */ x.jsxs("div", { className: "flex flex-row gap-0 items-center", children: [
98112
- /* @__PURE__ */ x.jsxs(
98112
+ c ? /* @__PURE__ */ x.jsx("span", { className: "text-helper-text-sm px-2 py-1", children: l }) : /* @__PURE__ */ x.jsxs(
98113
98113
  Ed,
98114
98114
  {
98115
98115
  value: l,
@@ -98286,7 +98286,7 @@ function VUe({
98286
98286
  {
98287
98287
  className: qe(
98288
98288
  "absolute top-3 right-3 hidden z-10 color-bg-default",
98289
- c && "flex"
98289
+ c && !u && "flex"
98290
98290
  ),
98291
98291
  children: /* @__PURE__ */ x.jsx(cn, { text: "Copy code", children: /* @__PURE__ */ x.jsxs("div", { className: "relative w-4 h-4", onClick: M, children: [
98292
98292
  /* @__PURE__ */ x.jsx(
@@ -98318,8 +98318,8 @@ function VUe({
98318
98318
  "div",
98319
98319
  {
98320
98320
  className: qe(
98321
- "bg-transparent w-full p-0 font-mono select-text pointer-events-auto overflow-y-auto no-scrollbar max-w-[650px]",
98322
- !c && "pt-8",
98321
+ "bg-transparent w-full p-0 font-mono select-text pointer-events-auto overflow-auto no-scrollbar max-w-[650px]",
98322
+ (!c || u) && "pt-8",
98323
98323
  j.length > 20 && "max-h-[500px]"
98324
98324
  ),
98325
98325
  children: [
@@ -98329,7 +98329,7 @@ function VUe({
98329
98329
  className: qe(
98330
98330
  "flex flex-row gap-3",
98331
98331
  C && "hidden",
98332
- p ? g ? "w-[330px]" : "w-[650px]" : "w-[720px]"
98332
+ !p && "w-max"
98333
98333
  ),
98334
98334
  children: [
98335
98335
  d && /* @__PURE__ */ x.jsx("div", { className: "flex-none text-right", children: j.map((E, B) => /* @__PURE__ */ x.jsx(