@fileverse-dev/ddoc 3.0.38 → 3.0.40-patch-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-g9V-5uzZ.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-De6aVEP1.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-CsmyuzYS.mjs");
93966
+ const I = IKt(O), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-CPS6xdPU.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, {
@@ -106239,7 +106239,9 @@ Rn.addRule("taskListItem", {
106239
106239
  }
106240
106240
  });
106241
106241
  Rn.addRule("pageBreak", {
106242
- filter: "br",
106242
+ filter: function(e) {
106243
+ return e.nodeName === "BR" && e.getAttribute("data-page-break") === "true";
106244
+ },
106243
106245
  replacement: function() {
106244
106246
  return `
106245
106247
 
@@ -106299,8 +106301,7 @@ Rn.addRule("inlineCode", {
106299
106301
  Rn.addRule("listItem", {
106300
106302
  filter: "li",
106301
106303
  replacement: function(e, t, n) {
106302
- e = e.replace(/^\n+/, "").replace(/\n+$/, "").replace(/\n\s*\n/g, `
106303
- `).replace(/\n/gm, `
106304
+ e = e.replace(/^\n+/, "").replace(/\n+$/, "").replace(/^\s*(===)\s*$/gm, "").replace(/\n/gm, `
106304
106305
  `);
106305
106306
  let r = n.bulletListMarker + " ";
106306
106307
  const o = t.parentNode;
@@ -262640,7 +262641,9 @@ new So({
262640
262641
  typographer: !0
262641
262642
  }).enable("table");
262642
262643
  Rn.addRule("pageBreak", {
262643
- filter: "br",
262644
+ filter: function(e) {
262645
+ return e.nodeName === "BR" && e.getAttribute("data-page-break") === "true";
262646
+ },
262644
262647
  replacement: function() {
262645
262648
  return `
262646
262649
 
@@ -263563,6 +263566,7 @@ const $Pn = ({
263563
263566
  }) => /* @__PURE__ */ E.jsx(
263564
263567
  "div",
263565
263568
  {
263569
+ "data-testid": "comment-auth-modal",
263566
263570
  className: Te(
263567
263571
  "flex flex-col h-screen xl:!h-[80vh] !color-bg-default !rounded-b-lg",
263568
263572
  !n && "xl:!h-[calc(100vh-150px)]"
@@ -263585,6 +263589,7 @@ const $Pn = ({
263585
263589
  /* @__PURE__ */ E.jsx(
263586
263590
  ml,
263587
263591
  {
263592
+ "data-testid": "comment-name-input",
263588
263593
  type: "text",
263589
263594
  value: e,
263590
263595
  onChange: (s) => t == null ? void 0 : t(s.target.value),
@@ -263598,6 +263603,7 @@ const $Pn = ({
263598
263603
  /* @__PURE__ */ E.jsx(
263599
263604
  $t,
263600
263605
  {
263606
+ "data-testid": "comment-join-btn",
263601
263607
  onClick: () => o == null ? void 0 : o(e),
263602
263608
  disabled: !e || a,
263603
263609
  isLoading: a,
@@ -263630,6 +263636,7 @@ const $Pn = ({
263630
263636
  /* @__PURE__ */ E.jsx("div", { className: "text-center", children: /* @__PURE__ */ E.jsxs(
263631
263637
  $t,
263632
263638
  {
263639
+ "data-testid": "comment-ens-btn",
263633
263640
  onClick: r ? () => null : i,
263634
263641
  disabled: a,
263635
263642
  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-g9V-5uzZ.mjs";
1
+ import { D as d, E as r, P as s, R as a, h as t, u as i } from "./index-De6aVEP1.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",
5
+ "version": "3.0.40-patch-1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {