@fileverse-dev/ddoc 3.0.38-patch-1 → 3.0.39-test-1

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.
@@ -1,4 +1,4 @@
1
- import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-w34xTa7V.mjs";
1
+ import { B as p, g as m, s as w, d as k, i as b, l as L, a as O, c as E, b as x, e as R, H as y, f as M } from "./index-Hi3pGU4K.mjs";
2
2
  class S extends p {
3
3
  constructor({ callbackSelector: r, cause: a, data: n, extraData: i, sender: f, urls: t }) {
4
4
  var o;
@@ -93963,7 +93963,7 @@ async function TF(e, t) {
93963
93963
  });
93964
93964
  return oe === "0x" ? { data: void 0 } : { data: oe };
93965
93965
  } catch (O) {
93966
- const I = IKt(O), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-hyYizKDg.mjs");
93966
+ const I = IKt(O), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-BJOYAKjt.mjs");
93967
93967
  if (e.ccipRead !== !1 && (I == null ? void 0 : I.slice(0, 10)) === $ && x)
93968
93968
  return { data: await H(e, { data: I, to: x }) };
93969
93969
  throw _ && (I == null ? void 0 : I.slice(0, 10)) === "0x101bb98d" ? new pZt({ factory: f }) : Sge(O, {
@@ -106299,19 +106299,22 @@ Rn.addRule("inlineCode", {
106299
106299
  Rn.addRule("listItem", {
106300
106300
  filter: "li",
106301
106301
  replacement: function(e, t, n) {
106302
- e = e.replace(/^\n+/, "").replace(/\n+$/, "").replace(/^\s*(===|<!--\s*page-break\s*-->)\s*$/gm, "").replace(/\n/gm, `
106302
+ e = e.replace(/^\n+/, "").replace(/\n+$/, "").replace(/\n\s*\n/g, `
106303
+ `).replace(/\n/gm, `
106303
106304
  `);
106304
106305
  let r = n.bulletListMarker + " ";
106305
106306
  const o = t.parentNode;
106306
106307
  if (o && o.nodeName === "OL") {
106307
- const s = o.getAttribute("start"), l = Array.prototype.indexOf.call(o.children, t);
106308
- r = (s ? Number(s) + l : l + 1) + ". ";
106308
+ const l = o.getAttribute("start"), u = Array.prototype.indexOf.call(o.children, t);
106309
+ r = (l ? Number(l) + u : u + 1) + ". ";
106309
106310
  }
106310
106311
  let i = 0, a = t.parentNode;
106311
106312
  for (; a && (a.nodeName === "UL" || a.nodeName === "OL"); )
106312
106313
  i++, a = a.parentNode;
106313
- return i > 1 && (r = " ".repeat(i - 1) + r), r + e + `
106314
- `;
106314
+ i > 1 && (r = " ".repeat(i - 1) + r);
106315
+ const s = !t.nextSibling || i === 1;
106316
+ return r + e + (s ? `
106317
+ ` : "");
106315
106318
  }
106316
106319
  });
106317
106320
  Rn.addRule("iframe", {
@@ -115920,7 +115923,8 @@ const Uun = (e, t) => az(e) ? new zun(t) : new Pun(t, {
115920
115923
  ),
115921
115924
  onClick: () => {
115922
115925
  t((d) => !d), o(!1);
115923
- }
115926
+ },
115927
+ "data-testid": "export-import-dropdown"
115924
115928
  }
115925
115929
  ) }),
115926
115930
  content: /* @__PURE__ */ E.jsxs("div", { className: "w-[220px] rounded-lg p-2 flex flex-col gap-1 scroll-smooth color-bg-default shadow-elevation-3 transition-all color-text-default", children: [
@@ -115935,6 +115939,7 @@ const Uun = (e, t) => az(e) ? new zun(t) : new Pun(t, {
115935
115939
  u = setTimeout(() => l(!1), 300);
115936
115940
  },
115937
115941
  className: "appearance-none bg-transparent hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
115942
+ "data-testid": "export-dropdown",
115938
115943
  children: [
115939
115944
  /* @__PURE__ */ E.jsxs("div", { className: "flex items-center space-x-2", children: [
115940
115945
  /* @__PURE__ */ E.jsx(Ve, { name: "FileExport", className: "w-5 h-5" }),
@@ -115957,24 +115962,28 @@ const Uun = (e, t) => az(e) ? new zun(t) : new Pun(t, {
115957
115962
  u = setTimeout(() => l(!1), 300);
115958
115963
  },
115959
115964
  className: "w-[220px] rounded-lg p-2 flex flex-col gap-1 scroll-smooth color-bg-default shadow-elevation-3 transition-all color-text-default",
115960
- children: n.filter((d) => d !== null).map((d, f) => /* @__PURE__ */ E.jsxs(
115961
- "button",
115962
- {
115963
- disabled: d == null ? void 0 : d.disabled,
115964
- onClick: () => {
115965
- d != null && d.disabled || (t(!1), d == null || d.onClick());
115965
+ children: n.filter((d) => d !== null).map((d, f) => {
115966
+ var h, p, g;
115967
+ return /* @__PURE__ */ E.jsxs(
115968
+ "button",
115969
+ {
115970
+ disabled: d == null ? void 0 : d.disabled,
115971
+ onClick: () => {
115972
+ d != null && d.disabled || (t(!1), d == null || d.onClick());
115973
+ },
115974
+ className: Te(
115975
+ "h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
115976
+ d != null && d.disabled ? "opacity-50 cursor-not-allowed" : "hover:color-bg-default-hover"
115977
+ ),
115978
+ "data-testid": `export-${((p = (h = d == null ? void 0 : d.title) == null ? void 0 : h.match(/\(\.(\w+)\)/)) == null ? void 0 : p[1]) || ((g = d == null ? void 0 : d.title) == null ? void 0 : g.toLowerCase().replace(/[^a-z]/g, "-"))}`,
115979
+ children: [
115980
+ /* @__PURE__ */ E.jsx("span", { className: "text-body-sm", children: d == null ? void 0 : d.title }),
115981
+ (d == null ? void 0 : d.isNew) && /* @__PURE__ */ E.jsx("p", { className: "max-h-[16px] flex items-center text-[8px] color-bg-brand text-black rounded p-1 font-semibold", children: "NEW" })
115982
+ ]
115966
115983
  },
115967
- className: Te(
115968
- "h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
115969
- d != null && d.disabled ? "opacity-50 cursor-not-allowed" : "hover:color-bg-default-hover"
115970
- ),
115971
- children: [
115972
- /* @__PURE__ */ E.jsx("span", { className: "text-body-sm", children: d == null ? void 0 : d.title }),
115973
- (d == null ? void 0 : d.isNew) && /* @__PURE__ */ E.jsx("p", { className: "max-h-[16px] flex items-center text-[8px] color-bg-brand text-black rounded p-1 font-semibold", children: "NEW" })
115974
- ]
115975
- },
115976
- f
115977
- ))
115984
+ f
115985
+ );
115986
+ })
115978
115987
  }
115979
115988
  )
115980
115989
  ] }),
@@ -115989,6 +115998,7 @@ const Uun = (e, t) => az(e) ? new zun(t) : new Pun(t, {
115989
115998
  c = setTimeout(() => a(!1), 300);
115990
115999
  },
115991
116000
  className: "appearance-none bg-transparent hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
116001
+ "data-testid": "import-dropdown",
115992
116002
  children: [
115993
116003
  /* @__PURE__ */ E.jsxs("div", { className: "flex items-center space-x-2", children: [
115994
116004
  /* @__PURE__ */ E.jsx(Ve, { name: "FileImport", className: "w-5 h-5" }),
@@ -116011,20 +116021,24 @@ const Uun = (e, t) => az(e) ? new zun(t) : new Pun(t, {
116011
116021
  c = setTimeout(() => a(!1), 300);
116012
116022
  },
116013
116023
  className: "w-[220px] rounded-lg p-2 flex flex-col gap-1 scroll-smooth color-bg-default shadow-elevation-3 transition-all color-text-default",
116014
- children: r.filter((d) => d !== null).map((d, f) => /* @__PURE__ */ E.jsxs(
116015
- "button",
116016
- {
116017
- onClick: () => {
116018
- t(!1), d == null || d.onClick();
116024
+ children: r.filter((d) => d !== null).map((d, f) => {
116025
+ var h, p, g;
116026
+ return /* @__PURE__ */ E.jsxs(
116027
+ "button",
116028
+ {
116029
+ onClick: () => {
116030
+ t(!1), d == null || d.onClick();
116031
+ },
116032
+ className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
116033
+ "data-testid": `import-${((p = (h = d == null ? void 0 : d.title) == null ? void 0 : h.match(/\(\.(\w+)\)/)) == null ? void 0 : p[1]) || ((g = d == null ? void 0 : d.title) == null ? void 0 : g.toLowerCase().replace(/[^a-z]/g, "-"))}`,
116034
+ children: [
116035
+ /* @__PURE__ */ E.jsx("span", { className: "text-body-sm", children: d == null ? void 0 : d.title }),
116036
+ (d == null ? void 0 : d.isNew) && /* @__PURE__ */ E.jsx("p", { className: "max-h-[16px] flex items-center text-[8px] color-bg-brand text-black rounded p-1 font-semibold", children: "NEW" })
116037
+ ]
116019
116038
  },
116020
- className: "hover:color-bg-default-hover h-8 rounded p-2 w-full text-left flex items-center justify-between transition text-body-sm",
116021
- children: [
116022
- /* @__PURE__ */ E.jsx("span", { className: "text-body-sm", children: d == null ? void 0 : d.title }),
116023
- (d == null ? void 0 : d.isNew) && /* @__PURE__ */ E.jsx("p", { className: "max-h-[16px] flex items-center text-[8px] color-bg-brand text-black rounded p-1 font-semibold", children: "NEW" })
116024
- ]
116025
- },
116026
- f
116027
- ))
116039
+ f
116040
+ );
116041
+ })
116028
116042
  }
116029
116043
  )
116030
116044
  ] })
@@ -263560,6 +263574,7 @@ const $Pn = ({
263560
263574
  }) => /* @__PURE__ */ E.jsx(
263561
263575
  "div",
263562
263576
  {
263577
+ "data-testid": "comment-auth-modal",
263563
263578
  className: Te(
263564
263579
  "flex flex-col h-screen xl:!h-[80vh] !color-bg-default !rounded-b-lg",
263565
263580
  !n && "xl:!h-[calc(100vh-150px)]"
@@ -263582,6 +263597,7 @@ const $Pn = ({
263582
263597
  /* @__PURE__ */ E.jsx(
263583
263598
  ml,
263584
263599
  {
263600
+ "data-testid": "comment-name-input",
263585
263601
  type: "text",
263586
263602
  value: e,
263587
263603
  onChange: (s) => t == null ? void 0 : t(s.target.value),
@@ -263595,6 +263611,7 @@ const $Pn = ({
263595
263611
  /* @__PURE__ */ E.jsx(
263596
263612
  $t,
263597
263613
  {
263614
+ "data-testid": "comment-join-btn",
263598
263615
  onClick: () => o == null ? void 0 : o(e),
263599
263616
  disabled: !e || a,
263600
263617
  isLoading: a,
@@ -263627,6 +263644,7 @@ const $Pn = ({
263627
263644
  /* @__PURE__ */ E.jsx("div", { className: "text-center", children: /* @__PURE__ */ E.jsxs(
263628
263645
  $t,
263629
263646
  {
263647
+ "data-testid": "comment-ens-btn",
263630
263648
  onClick: r ? () => null : i,
263631
263649
  disabled: a,
263632
263650
  className: "custom-ens-button",
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-w34xTa7V.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-Hi3pGU4K.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as Editor,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.0.38-patch-1",
5
+ "version": "3.0.39-test-1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {