@fileverse-dev/ddoc 3.0.13 → 3.0.14
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-B16L3kYY.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;
|
|
@@ -93960,7 +93960,7 @@ async function vF(e, t) {
|
|
|
93960
93960
|
});
|
|
93961
93961
|
return ne === "0x" ? { data: void 0 } : { data: ne };
|
|
93962
93962
|
} catch (R) {
|
|
93963
|
-
const I = fKt(R), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-
|
|
93963
|
+
const I = fKt(R), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-DUqbcjPB.mjs");
|
|
93964
93964
|
if (e.ccipRead !== !1 && (I == null ? void 0 : I.slice(0, 10)) === $ && x)
|
|
93965
93965
|
return { data: await H(e, { data: I, to: x }) };
|
|
93966
93966
|
throw B && (I == null ? void 0 : I.slice(0, 10)) === "0x101bb98d" ? new WGt({ factory: f }) : cge(R, {
|
|
@@ -133178,12 +133178,18 @@ const u6e = Gt.create({
|
|
|
133178
133178
|
// Tab: Indent list item (sink)
|
|
133179
133179
|
// DBlock has priority 1000, so we need to explicitly handle Tab for lists
|
|
133180
133180
|
Tab: ({ editor: e }) => {
|
|
133181
|
-
const { selection: t } = e.state, { $from: n } = t;
|
|
133182
|
-
|
|
133183
|
-
|
|
133184
|
-
|
|
133181
|
+
const { selection: t } = e.state, { $from: n } = t, r = n.node(n.depth), o = r.type.name === "paragraph", i = r.type.name === "heading", a = n.depth, s = a > 0 ? n.node(a - 1) : null, l = o && (s == null ? void 0 : s.type.name) === "dBlock";
|
|
133182
|
+
if (i || l)
|
|
133183
|
+
return e.commands.insertContent(" ", {
|
|
133184
|
+
parseOptions: {
|
|
133185
|
+
preserveWhitespace: "full"
|
|
133186
|
+
}
|
|
133187
|
+
}), !0;
|
|
133188
|
+
for (let u = n.depth; u > 0; u--) {
|
|
133189
|
+
const c = n.node(u);
|
|
133190
|
+
if (c.type.name === "listItem")
|
|
133185
133191
|
return e.commands.sinkListItem("listItem"), !0;
|
|
133186
|
-
if (
|
|
133192
|
+
if (c.type.name === "taskItem")
|
|
133187
133193
|
return e.commands.sinkListItem("taskItem"), !0;
|
|
133188
133194
|
}
|
|
133189
133195
|
return !1;
|
|
@@ -133191,6 +133197,13 @@ const u6e = Gt.create({
|
|
|
133191
133197
|
// Shift+Tab: Unindent list item (lift)
|
|
133192
133198
|
"Shift-Tab": ({ editor: e }) => {
|
|
133193
133199
|
const { selection: t } = e.state, { $from: n } = t;
|
|
133200
|
+
if (n.pos > 0 && e.state.doc.textBetween(
|
|
133201
|
+
n.pos - 1,
|
|
133202
|
+
n.pos,
|
|
133203
|
+
"\0"
|
|
133204
|
+
// Separator for textBetween, '\0' for no separator
|
|
133205
|
+
) === " ")
|
|
133206
|
+
return e.chain().deleteRange({ from: n.pos - 2, to: n.pos }).run(), !0;
|
|
133194
133207
|
for (let r = n.depth; r > 0; r--) {
|
|
133195
133208
|
const o = n.node(r);
|
|
133196
133209
|
if (o.type.name === "listItem")
|
package/dist/index.es.js
CHANGED
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.
|
|
5
|
+
"version": "3.0.14",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
@@ -149,4 +149,4 @@
|
|
|
149
149
|
"typescript": "^5.2.2",
|
|
150
150
|
"vite": "^5.0.0"
|
|
151
151
|
}
|
|
152
|
-
}
|
|
152
|
+
}
|