@fileverse-dev/ddoc 2.2.8-patch-8 → 2.2.8-patch-10

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-Bez21zaB.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-CSJ6y3Tr.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;
@@ -86505,7 +86505,7 @@ async function o6(e, t) {
86505
86505
  });
86506
86506
  return K === "0x" ? { data: void 0 } : { data: K };
86507
86507
  } catch (U) {
86508
- const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-MGxVBDYq.mjs");
86508
+ const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-BSf45KwY.mjs");
86509
86509
  if (e.ccipRead !== !1 && (P == null ? void 0 : P.slice(0, 10)) === G && k)
86510
86510
  return { data: await _(e, { data: P, to: k }) };
86511
86511
  throw D && (P == null ? void 0 : P.slice(0, 10)) === "0x101bb98d" ? new v5t({ factory: c }) : r$(U, {
@@ -143087,19 +143087,20 @@ const AUt = ({
143087
143087
  key: e,
143088
143088
  props: {
143089
143089
  transformPasted(t, n) {
143090
- const r = n.state, { selection: o } = r, i = o.$from;
143091
- let a = !1;
143092
- for (let u = i.depth; u >= 0; u--)
143093
- if (i.node(u).type.name === "callout") {
143094
- a = !0;
143090
+ const { selection: r } = n.state, o = r.$from;
143091
+ let i = !1;
143092
+ for (let u = o.depth; u >= 0; u--)
143093
+ if (o.node(u).type.name === "callout") {
143094
+ i = !0;
143095
143095
  break;
143096
143096
  }
143097
- if (!a) return t;
143098
- const s = [];
143099
- t.content.forEach((u) => {
143100
- u.type.name === "callout" || u.type.name === "dBlock" ? u.content.forEach((c) => s.push(c)) : s.push(u);
143101
- });
143102
- const l = Oe.fromArray(s);
143097
+ if (!i) return t;
143098
+ const a = (u) => {
143099
+ const c = [];
143100
+ return u.forEach((d) => {
143101
+ d.type.name === "callout" || d.type.name === "dBlock" ? c.push(...a(d.content)) : c.push(d);
143102
+ }), c;
143103
+ }, s = a(t.content), l = Oe.fromArray(s);
143103
143104
  return new Qe(l, 0, 0);
143104
143105
  }
143105
143106
  }
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, P as r, h as s, u as t } from "./index-Bez21zaB.mjs";
1
+ import { D as d, P as r, h as s, u as t } from "./index-CSJ6y3Tr.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as PreviewDdocEditor,
@@ -1,3 +1,3 @@
1
- import { Node } from '@tiptap/core';
1
+ import { Node as TiptapNode } from '@tiptap/core';
2
2
 
3
- export declare const Callout: Node<any, any>;
3
+ export declare const Callout: TiptapNode<any, any>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "2.2.8-patch-8",
5
+ "version": "2.2.8-patch-10",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {