@fileverse-dev/ddoc 3.0.53-patch-23 → 3.0.53-patch-25

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
@@ -184003,19 +184003,19 @@ const Aqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184003
184003
  tabConfig: h,
184004
184004
  isVersionHistoryMode: f
184005
184005
  }) => {
184006
- var _, N;
184007
- const [g, m] = Ne(!0), b = e.findIndex((C) => C.id === t), y = e.find((C) => C.id === t), x = (h == null ? void 0 : h.defaultTabId) || ku, v = (y == null ? void 0 : y.id) === x, D = b > 0, w = b >= 0 && b < e.length - 1, k = (C, j) => {
184008
- a(C, { newName: j });
184009
- }, E = (C, j) => {
184010
- a(C, { emoji: j });
184006
+ var N, C;
184007
+ const [g, m] = Ne(!0), b = e.findIndex((j) => j.id === t), y = e.find((j) => j.id === t), x = (h == null ? void 0 : h.defaultTabId) || ku, v = (y == null ? void 0 : y.id) === x, D = b > 0, w = b >= 0 && b < e.length - 1, k = (j, T) => {
184008
+ a(j, { newName: T });
184009
+ }, E = (j, T) => {
184010
+ a(j, { emoji: T });
184011
184011
  }, A = () => {
184012
184012
  if (!D) return;
184013
- const C = e[b - 1];
184014
- C && n(C.id);
184013
+ const j = e[b - 1];
184014
+ j && n(j.id);
184015
184015
  }, I = () => {
184016
184016
  if (!w) return;
184017
- const C = e[b + 1];
184018
- C && n(C.id);
184017
+ const j = e[b + 1];
184018
+ j && n(j.id);
184019
184019
  }, O = [
184020
184020
  [
184021
184021
  {
@@ -184032,10 +184032,10 @@ const Aqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184032
184032
  icon: "SquarePen",
184033
184033
  onSelect: () => {
184034
184034
  if (!y || typeof window > "u") return;
184035
- const C = window.prompt("Rename tab", y.name);
184036
- if (!C) return;
184037
- const j = C.trim();
184038
- j && a(y.id, { newName: j });
184035
+ const j = window.prompt("Rename tab", y.name);
184036
+ if (!j) return;
184037
+ const T = j.trim();
184038
+ T && a(y.id, { newName: T });
184039
184039
  },
184040
184040
  visible: !!y
184041
184041
  },
@@ -184055,8 +184055,8 @@ const Aqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184055
184055
  label: "Copy link",
184056
184056
  icon: "Share2",
184057
184057
  onSelect: () => {
184058
- var C;
184059
- y && ((C = h == null ? void 0 : h.onCopyTabLink) == null || C.call(h, y.id));
184058
+ var j;
184059
+ y && ((j = h == null ? void 0 : h.onCopyTabLink) == null || j.call(h, y.id));
184060
184060
  },
184061
184061
  visible: !!(y && (h != null && h.onCopyTabLink))
184062
184062
  }
@@ -184074,11 +184074,11 @@ const Aqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184074
184074
  visible: !!(y && c && !v)
184075
184075
  }
184076
184076
  ]
184077
- ];
184078
- return /* @__PURE__ */ F.jsx(
184077
+ ], _ = f || p;
184078
+ return console.log({ isVersionHistoryMode: f, isPreviewMode: p }), /* @__PURE__ */ F.jsx(
184079
184079
  "div",
184080
184080
  {
184081
- className: "fixed z-[9] w-full flex flex-col transition-[bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]",
184081
+ className: "fixed z-[999] w-full flex flex-col transition-[bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]",
184082
184082
  style: {
184083
184083
  bottom: g ? "0px" : f ? "var(--version-sheet-bottom, 24px)" : "24px"
184084
184084
  },
@@ -184120,7 +184120,7 @@ const Aqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184120
184120
  "h-[calc(100dvh-437px)]",
184121
184121
  "transition-opacity duration-300"
184122
184122
  ),
184123
- children: e.map((C) => /* @__PURE__ */ F.jsxs(
184123
+ children: e.map((j) => /* @__PURE__ */ F.jsxs(
184124
184124
  "div",
184125
184125
  {
184126
184126
  className: "w-full flex mt-[8px] flex-col gap-[8px]",
@@ -184128,20 +184128,20 @@ const Aqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184128
184128
  /* @__PURE__ */ F.jsx(
184129
184129
  aQ,
184130
184130
  {
184131
- tabId: C.id,
184131
+ tabId: j.id,
184132
184132
  hideContentMenu: !0,
184133
- name: C.name,
184134
- emoji: C.emoji || "",
184135
- onNameChange: (j) => k(C.id, j),
184136
- onEmojiChange: (j) => E(C.id, j),
184137
- onDuplicate: () => u(C.id),
184138
- isActive: C.id === t,
184139
- onClick: () => n(C.id),
184140
- commentCount: d[C.id] || 0,
184133
+ name: j.name,
184134
+ emoji: j.emoji || "",
184135
+ onNameChange: (T) => k(j.id, T),
184136
+ onEmojiChange: (T) => E(j.id, T),
184137
+ onDuplicate: () => u(j.id),
184138
+ isActive: j.id === t,
184139
+ onClick: () => n(j.id),
184140
+ commentCount: d[j.id] || 0,
184141
184141
  isPreviewMode: p,
184142
184142
  onCopyLink: () => {
184143
- var j;
184144
- return (j = h == null ? void 0 : h.onCopyTabLink) == null ? void 0 : j.call(h, C.id);
184143
+ var T;
184144
+ return (T = h == null ? void 0 : h.onCopyTabLink) == null ? void 0 : T.call(h, j.id);
184145
184145
  }
184146
184146
  }
184147
184147
  ),
@@ -184150,7 +184150,7 @@ const Aqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184150
184150
  {
184151
184151
  className: ut(
184152
184152
  "table-of-contents transition-all duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]",
184153
- C.id === t ? "opacity-100 translate-x-0" : "opacity-0 -translate-x-2 h-0 overflow-hidden"
184153
+ j.id === t ? "opacity-100 translate-x-0" : "opacity-0 -translate-x-2 h-0 overflow-hidden"
184154
184154
  ),
184155
184155
  children: /* @__PURE__ */ F.jsx(
184156
184156
  oQ,
@@ -184165,11 +184165,11 @@ const Aqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184165
184165
  )
184166
184166
  ]
184167
184167
  },
184168
- C.id
184168
+ j.id
184169
184169
  ))
184170
184170
  }
184171
184171
  )
184172
- ] }) : p ? /* @__PURE__ */ F.jsxs(
184172
+ ] }) : _ ? /* @__PURE__ */ F.jsxs(
184173
184173
  "div",
184174
184174
  {
184175
184175
  id: "tab-nav",
@@ -184206,7 +184206,7 @@ const Aqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184206
184206
  className: "w-[16px] h-[16px] transition-transform duration-200 group-hover:scale-105"
184207
184207
  }
184208
184208
  ),
184209
- /* @__PURE__ */ F.jsx("p", { className: "text-heading-xsm", children: ((_ = e.find((C) => C.id === t)) == null ? void 0 : _.name) ?? "Tab name" })
184209
+ /* @__PURE__ */ F.jsx("p", { className: "text-heading-xsm", children: ((N = e.find((j) => j.id === t)) == null ? void 0 : N.name) ?? "Tab name" })
184210
184210
  ] }),
184211
184211
  /* @__PURE__ */ F.jsxs("div", { className: "h-[16px] flex items-center", children: [
184212
184212
  /* @__PURE__ */ F.jsxs("span", { className: "text-helper-text-sm color-text-secondary", children: [
@@ -184256,7 +184256,7 @@ const Aqe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
184256
184256
  className: "w-[16px] h-[16px] transition-transform duration-200 group-hover:scale-105"
184257
184257
  }
184258
184258
  ),
184259
- /* @__PURE__ */ F.jsx("p", { className: "text-heading-xsm", children: ((N = e.find((C) => C.id === t)) == null ? void 0 : N.name) ?? "Tab name" })
184259
+ /* @__PURE__ */ F.jsx("p", { className: "text-heading-xsm", children: ((C = e.find((j) => j.id === t)) == null ? void 0 : C.name) ?? "Tab name" })
184260
184260
  ] }),
184261
184261
  /* @__PURE__ */ F.jsxs("div", { className: "h-[16px] flex items-center", children: [
184262
184262
  /* @__PURE__ */ F.jsxs("span", { className: "text-helper-text-sm color-text-secondary", children: [