@fileverse-dev/ddoc 3.0.36 → 3.0.38-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-
|
|
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-w34xTa7V.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-
|
|
93966
|
+
const I = IKt(O), { offchainLookup: H, offchainLookupSignature: $ } = await import("./ccip-hyYizKDg.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, {
|
|
@@ -106299,22 +106299,19 @@ Rn.addRule("inlineCode", {
|
|
|
106299
106299
|
Rn.addRule("listItem", {
|
|
106300
106300
|
filter: "li",
|
|
106301
106301
|
replacement: function(e, t, n) {
|
|
106302
|
-
e = e.replace(/^\n+/, "").replace(/\n+$/, "").replace(
|
|
106303
|
-
`).replace(/\n/gm, `
|
|
106302
|
+
e = e.replace(/^\n+/, "").replace(/\n+$/, "").replace(/^\s*(===|<!--\s*page-break\s*-->)\s*$/gm, "").replace(/\n/gm, `
|
|
106304
106303
|
`);
|
|
106305
106304
|
let r = n.bulletListMarker + " ";
|
|
106306
106305
|
const o = t.parentNode;
|
|
106307
106306
|
if (o && o.nodeName === "OL") {
|
|
106308
|
-
const
|
|
106309
|
-
r = (
|
|
106307
|
+
const s = o.getAttribute("start"), l = Array.prototype.indexOf.call(o.children, t);
|
|
106308
|
+
r = (s ? Number(s) + l : l + 1) + ". ";
|
|
106310
106309
|
}
|
|
106311
106310
|
let i = 0, a = t.parentNode;
|
|
106312
106311
|
for (; a && (a.nodeName === "UL" || a.nodeName === "OL"); )
|
|
106313
106312
|
i++, a = a.parentNode;
|
|
106314
|
-
i > 1 && (r = " ".repeat(i - 1) + r)
|
|
106315
|
-
|
|
106316
|
-
return r + e + (s ? `
|
|
106317
|
-
` : "");
|
|
106313
|
+
return i > 1 && (r = " ".repeat(i - 1) + r), r + e + `
|
|
106314
|
+
`;
|
|
106318
106315
|
}
|
|
106319
106316
|
});
|
|
106320
106317
|
Rn.addRule("iframe", {
|
|
@@ -109104,6 +109101,7 @@ const GE = (e) => {
|
|
|
109104
109101
|
"div",
|
|
109105
109102
|
{
|
|
109106
109103
|
ref: k,
|
|
109104
|
+
"data-testid": d ? `comment-card-${d}` : "comment-card",
|
|
109107
109105
|
className: Te(
|
|
109108
109106
|
"flex flex-col gap-0 px-3 group comment-card",
|
|
109109
109107
|
l && "opacity-70",
|
|
@@ -109354,6 +109352,7 @@ const GE = (e) => {
|
|
|
109354
109352
|
/* @__PURE__ */ E.jsx(
|
|
109355
109353
|
l4,
|
|
109356
109354
|
{
|
|
109355
|
+
"data-testid": "comment-dropdown-input",
|
|
109357
109356
|
value: a,
|
|
109358
109357
|
onChange: oe,
|
|
109359
109358
|
onKeyDown: le,
|
|
@@ -109366,6 +109365,7 @@ const GE = (e) => {
|
|
|
109366
109365
|
/* @__PURE__ */ E.jsx("div", { className: "h-full flex items-center justify-end", children: /* @__PURE__ */ E.jsx(
|
|
109367
109366
|
$t,
|
|
109368
109367
|
{
|
|
109368
|
+
"data-testid": "comment-dropdown-send",
|
|
109369
109369
|
onClick: ee,
|
|
109370
109370
|
className: "px-4 py-2 w-20 min-w-20 h-9 font-medium text-sm",
|
|
109371
109371
|
disabled: !a.trim(),
|
|
@@ -109411,6 +109411,7 @@ const GE = (e) => {
|
|
|
109411
109411
|
children: /* @__PURE__ */ E.jsxs(
|
|
109412
109412
|
"button",
|
|
109413
109413
|
{
|
|
109414
|
+
"data-testid": "comment-delete-btn",
|
|
109414
109415
|
className: "flex items-center color-text-danger text-sm font-medium gap-2 rounded p-2 transition-all hover:color-bg-default-hover w-full",
|
|
109415
109416
|
onClick: te,
|
|
109416
109417
|
onTouchEnd: te,
|
|
@@ -109434,6 +109435,7 @@ const GE = (e) => {
|
|
|
109434
109435
|
children: /* @__PURE__ */ E.jsx(
|
|
109435
109436
|
_n,
|
|
109436
109437
|
{
|
|
109438
|
+
"data-testid": C != null && C.resolved ? "comment-unresolve-btn" : "comment-resolve-btn",
|
|
109437
109439
|
icon: C != null && C.resolved ? "CircleCheck2" : "CircleCheck",
|
|
109438
109440
|
variant: "ghost",
|
|
109439
109441
|
disabled: o,
|
|
@@ -109499,6 +109501,7 @@ const GE = (e) => {
|
|
|
109499
109501
|
"div",
|
|
109500
109502
|
{
|
|
109501
109503
|
ref: T,
|
|
109504
|
+
"data-testid": "comment-dropdown",
|
|
109502
109505
|
className: "w-[300px] color-bg-default shadow-elevation-4 md:shadow-none rounded-md select-text",
|
|
109503
109506
|
children: ce
|
|
109504
109507
|
}
|
|
@@ -110377,6 +110380,7 @@ const rin = /* @__PURE__ */ y0(nin), y3 = () => {
|
|
|
110377
110380
|
Gr,
|
|
110378
110381
|
{
|
|
110379
110382
|
ref: $,
|
|
110383
|
+
"data-testid": "inline-comment-btn-mobile",
|
|
110380
110384
|
icon: "MessageSquarePlus",
|
|
110381
110385
|
size: "sm",
|
|
110382
110386
|
disabled: z || !s || l,
|
|
@@ -110651,6 +110655,7 @@ const rin = /* @__PURE__ */ y0(nin), y3 = () => {
|
|
|
110651
110655
|
Gr,
|
|
110652
110656
|
{
|
|
110653
110657
|
ref: $,
|
|
110658
|
+
"data-testid": "inline-comment-btn",
|
|
110654
110659
|
icon: "MessageSquarePlus",
|
|
110655
110660
|
variant: "ghost",
|
|
110656
110661
|
size: "sm",
|
|
@@ -134046,7 +134051,7 @@ const _6e = Yt.create({
|
|
|
134046
134051
|
}
|
|
134047
134052
|
}
|
|
134048
134053
|
if ((s == null ? void 0 : s.type.name) === "blockquote" && a.type.name === "paragraph" && a.textContent === "")
|
|
134049
|
-
return e.chain().setDBlock().focus(n +
|
|
134054
|
+
return e.chain().setDBlock().focus(n + 2).setMark("textStyle", i).run();
|
|
134050
134055
|
if ((s == null ? void 0 : s.type.name) !== "dBlock" && f)
|
|
134051
134056
|
return !1;
|
|
134052
134057
|
if ((s == null ? void 0 : s.type.name) === "dBlock") {
|
|
@@ -136922,17 +136927,8 @@ const X3n = zt.create({
|
|
|
136922
136927
|
if (!e.getState(o)) return;
|
|
136923
136928
|
const u = i.content.size, c = s.nodes[this.options.node], d = {
|
|
136924
136929
|
class: "trailing-node"
|
|
136925
|
-
};
|
|
136926
|
-
|
|
136927
|
-
const h = this.editor.getAttributes("textStyle");
|
|
136928
|
-
if (s.marks.textStyle) {
|
|
136929
|
-
const g = s.marks.textStyle.create({
|
|
136930
|
-
...h
|
|
136931
|
-
});
|
|
136932
|
-
f = s.text(" ", [g]);
|
|
136933
|
-
}
|
|
136934
|
-
const p = c.create(d, f);
|
|
136935
|
-
return a.insert(u, p);
|
|
136930
|
+
}, f = c.create(d);
|
|
136931
|
+
return a.insert(u, f);
|
|
136936
136932
|
},
|
|
136937
136933
|
state: {
|
|
136938
136934
|
init: (n, r) => {
|
|
@@ -263739,6 +263735,7 @@ const $Pn = ({
|
|
|
263739
263735
|
}, [e, g]), D ? /* @__PURE__ */ E.jsxs(
|
|
263740
263736
|
"div",
|
|
263741
263737
|
{
|
|
263738
|
+
"data-testid": "comment-section",
|
|
263742
263739
|
className: Te(
|
|
263743
263740
|
"flex flex-col h-[100dvh] sm:h-[calc(100vh-40px)] xl:h-[calc(100vh-210px)] !color-bg-default !rounded-b-lg",
|
|
263744
263741
|
"pb-[3rem] sm:pb-0",
|
|
@@ -263820,6 +263817,7 @@ const $Pn = ({
|
|
|
263820
263817
|
/* @__PURE__ */ E.jsx(
|
|
263821
263818
|
l4,
|
|
263822
263819
|
{
|
|
263820
|
+
"data-testid": "comment-reply-input",
|
|
263823
263821
|
placeholder: "Reply",
|
|
263824
263822
|
value: b,
|
|
263825
263823
|
className: Te(
|
|
@@ -263848,6 +263846,7 @@ const $Pn = ({
|
|
|
263848
263846
|
/* @__PURE__ */ E.jsx(
|
|
263849
263847
|
$t,
|
|
263850
263848
|
{
|
|
263849
|
+
"data-testid": "comment-reply-send",
|
|
263851
263850
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
263852
263851
|
disabled: !b.trim(),
|
|
263853
263852
|
onClick: c,
|
|
@@ -263885,6 +263884,7 @@ const $Pn = ({
|
|
|
263885
263884
|
/* @__PURE__ */ E.jsx(
|
|
263886
263885
|
l4,
|
|
263887
263886
|
{
|
|
263887
|
+
"data-testid": "comment-section-input",
|
|
263888
263888
|
value: y,
|
|
263889
263889
|
onChange: l,
|
|
263890
263890
|
onKeyDown: u,
|
|
@@ -263896,6 +263896,7 @@ const $Pn = ({
|
|
|
263896
263896
|
/* @__PURE__ */ E.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ E.jsx(
|
|
263897
263897
|
$t,
|
|
263898
263898
|
{
|
|
263899
|
+
"data-testid": "comment-section-send",
|
|
263899
263900
|
onClick: v,
|
|
263900
263901
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
263901
263902
|
disabled: !y.trim() || !o,
|
|
@@ -263927,7 +263928,7 @@ const $Pn = ({
|
|
|
263927
263928
|
const { toggleResolved: a, showResolved: s, isConnected: l } = c1(), { isBelow1280px: u } = j1();
|
|
263928
263929
|
return z3e(() => {
|
|
263929
263930
|
t();
|
|
263930
|
-
}), /* @__PURE__ */ E.jsx("div", { children: u ? /* @__PURE__ */ E.jsx(
|
|
263931
|
+
}), /* @__PURE__ */ E.jsx("div", { "data-testid": "comment-drawer", children: u ? /* @__PURE__ */ E.jsx(
|
|
263931
263932
|
NOt,
|
|
263932
263933
|
{
|
|
263933
263934
|
open: e,
|
package/dist/index.es.js
CHANGED