@fileverse-dev/ddoc 2.2.8-patch-7 → 2.2.8-patch-9
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-
|
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-C70wW9Zd.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-
|
86508
|
+
const P = hxt(U), { offchainLookup: _, offchainLookupSignature: G } = await import("./ccip-BCp4kbxL.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, {
|
@@ -96653,8 +96653,7 @@ async function UN(e, t, n) {
|
|
96653
96653
|
o.innerHTML = r, r = o.value;
|
96654
96654
|
const i = new DOMParser(), a = i.parseFromString(r, "text/html");
|
96655
96655
|
a.querySelectorAll("body > p").forEach((T) => {
|
96656
|
-
|
96657
|
-
((I = T.textContent) == null ? void 0 : I.trim()) === "" && T.remove();
|
96656
|
+
T.childNodes.length === 0 && T.textContent === "" && T.remove();
|
96658
96657
|
}), a.querySelectorAll("aside.callout").forEach((T) => {
|
96659
96658
|
T.setAttribute("data-type", "callout"), T.removeAttribute("class");
|
96660
96659
|
}), a.querySelectorAll('aside[data-type="callout"]').forEach((T) => {
|
@@ -143088,21 +143087,43 @@ const AUt = ({
|
|
143088
143087
|
key: e,
|
143089
143088
|
props: {
|
143090
143089
|
transformPasted(t, n) {
|
143091
|
-
const
|
143092
|
-
let
|
143093
|
-
for (let u =
|
143094
|
-
if (
|
143095
|
-
|
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;
|
143096
143095
|
break;
|
143097
143096
|
}
|
143098
|
-
if (!
|
143099
|
-
const
|
143100
|
-
|
143101
|
-
|
143102
|
-
|
143103
|
-
|
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);
|
143104
143104
|
return new Qe(l, 0, 0);
|
143105
143105
|
}
|
143106
|
+
},
|
143107
|
+
appendTransaction(t, n, r) {
|
143108
|
+
if (!t[t.length - 1].docChanged) return;
|
143109
|
+
const { $from: i } = r.selection;
|
143110
|
+
let a = !1;
|
143111
|
+
for (let s = i.depth; s >= 0; s--)
|
143112
|
+
if (i.node(s).type.name === "callout") {
|
143113
|
+
a = !0;
|
143114
|
+
break;
|
143115
|
+
}
|
143116
|
+
if (!a) {
|
143117
|
+
let s = null;
|
143118
|
+
if (r.doc.descendants((l, u) => (l.type.name === "callout" && (s = u + l.content.size - 1), !0)), s != null) {
|
143119
|
+
const l = ft.create(
|
143120
|
+
r.doc,
|
143121
|
+
s
|
143122
|
+
);
|
143123
|
+
return r.tr.setSelection(l).scrollIntoView();
|
143124
|
+
}
|
143125
|
+
}
|
143126
|
+
return null;
|
143106
143127
|
}
|
143107
143128
|
})
|
143108
143129
|
];
|
package/dist/index.es.js
CHANGED
@@ -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:
|
3
|
+
export declare const Callout: TiptapNode<any, any>;
|