@fileverse-dev/ddoc 3.0.39 → 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-CMVfdBuf.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-CZeqZBtz.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
 
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-CMVfdBuf.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.39",
5
+ "version": "3.0.40-patch-1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {