@fileverse-dev/ddoc 3.0.36 → 3.0.38
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-g9V-5uzZ.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-CsmyuzYS.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, {
|
|
@@ -109104,6 +109104,7 @@ const GE = (e) => {
|
|
|
109104
109104
|
"div",
|
|
109105
109105
|
{
|
|
109106
109106
|
ref: k,
|
|
109107
|
+
"data-testid": d ? `comment-card-${d}` : "comment-card",
|
|
109107
109108
|
className: Te(
|
|
109108
109109
|
"flex flex-col gap-0 px-3 group comment-card",
|
|
109109
109110
|
l && "opacity-70",
|
|
@@ -109354,6 +109355,7 @@ const GE = (e) => {
|
|
|
109354
109355
|
/* @__PURE__ */ E.jsx(
|
|
109355
109356
|
l4,
|
|
109356
109357
|
{
|
|
109358
|
+
"data-testid": "comment-dropdown-input",
|
|
109357
109359
|
value: a,
|
|
109358
109360
|
onChange: oe,
|
|
109359
109361
|
onKeyDown: le,
|
|
@@ -109366,6 +109368,7 @@ const GE = (e) => {
|
|
|
109366
109368
|
/* @__PURE__ */ E.jsx("div", { className: "h-full flex items-center justify-end", children: /* @__PURE__ */ E.jsx(
|
|
109367
109369
|
$t,
|
|
109368
109370
|
{
|
|
109371
|
+
"data-testid": "comment-dropdown-send",
|
|
109369
109372
|
onClick: ee,
|
|
109370
109373
|
className: "px-4 py-2 w-20 min-w-20 h-9 font-medium text-sm",
|
|
109371
109374
|
disabled: !a.trim(),
|
|
@@ -109411,6 +109414,7 @@ const GE = (e) => {
|
|
|
109411
109414
|
children: /* @__PURE__ */ E.jsxs(
|
|
109412
109415
|
"button",
|
|
109413
109416
|
{
|
|
109417
|
+
"data-testid": "comment-delete-btn",
|
|
109414
109418
|
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
109419
|
onClick: te,
|
|
109416
109420
|
onTouchEnd: te,
|
|
@@ -109434,6 +109438,7 @@ const GE = (e) => {
|
|
|
109434
109438
|
children: /* @__PURE__ */ E.jsx(
|
|
109435
109439
|
_n,
|
|
109436
109440
|
{
|
|
109441
|
+
"data-testid": C != null && C.resolved ? "comment-unresolve-btn" : "comment-resolve-btn",
|
|
109437
109442
|
icon: C != null && C.resolved ? "CircleCheck2" : "CircleCheck",
|
|
109438
109443
|
variant: "ghost",
|
|
109439
109444
|
disabled: o,
|
|
@@ -109499,6 +109504,7 @@ const GE = (e) => {
|
|
|
109499
109504
|
"div",
|
|
109500
109505
|
{
|
|
109501
109506
|
ref: T,
|
|
109507
|
+
"data-testid": "comment-dropdown",
|
|
109502
109508
|
className: "w-[300px] color-bg-default shadow-elevation-4 md:shadow-none rounded-md select-text",
|
|
109503
109509
|
children: ce
|
|
109504
109510
|
}
|
|
@@ -110377,6 +110383,7 @@ const rin = /* @__PURE__ */ y0(nin), y3 = () => {
|
|
|
110377
110383
|
Gr,
|
|
110378
110384
|
{
|
|
110379
110385
|
ref: $,
|
|
110386
|
+
"data-testid": "inline-comment-btn-mobile",
|
|
110380
110387
|
icon: "MessageSquarePlus",
|
|
110381
110388
|
size: "sm",
|
|
110382
110389
|
disabled: z || !s || l,
|
|
@@ -110651,6 +110658,7 @@ const rin = /* @__PURE__ */ y0(nin), y3 = () => {
|
|
|
110651
110658
|
Gr,
|
|
110652
110659
|
{
|
|
110653
110660
|
ref: $,
|
|
110661
|
+
"data-testid": "inline-comment-btn",
|
|
110654
110662
|
icon: "MessageSquarePlus",
|
|
110655
110663
|
variant: "ghost",
|
|
110656
110664
|
size: "sm",
|
|
@@ -134046,7 +134054,7 @@ const _6e = Yt.create({
|
|
|
134046
134054
|
}
|
|
134047
134055
|
}
|
|
134048
134056
|
if ((s == null ? void 0 : s.type.name) === "blockquote" && a.type.name === "paragraph" && a.textContent === "")
|
|
134049
|
-
return e.chain().setDBlock().focus(n +
|
|
134057
|
+
return e.chain().setDBlock().focus(n + 2).setMark("textStyle", i).run();
|
|
134050
134058
|
if ((s == null ? void 0 : s.type.name) !== "dBlock" && f)
|
|
134051
134059
|
return !1;
|
|
134052
134060
|
if ((s == null ? void 0 : s.type.name) === "dBlock") {
|
|
@@ -136922,17 +136930,8 @@ const X3n = zt.create({
|
|
|
136922
136930
|
if (!e.getState(o)) return;
|
|
136923
136931
|
const u = i.content.size, c = s.nodes[this.options.node], d = {
|
|
136924
136932
|
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);
|
|
136933
|
+
}, f = c.create(d);
|
|
136934
|
+
return a.insert(u, f);
|
|
136936
136935
|
},
|
|
136937
136936
|
state: {
|
|
136938
136937
|
init: (n, r) => {
|
|
@@ -263739,6 +263738,7 @@ const $Pn = ({
|
|
|
263739
263738
|
}, [e, g]), D ? /* @__PURE__ */ E.jsxs(
|
|
263740
263739
|
"div",
|
|
263741
263740
|
{
|
|
263741
|
+
"data-testid": "comment-section",
|
|
263742
263742
|
className: Te(
|
|
263743
263743
|
"flex flex-col h-[100dvh] sm:h-[calc(100vh-40px)] xl:h-[calc(100vh-210px)] !color-bg-default !rounded-b-lg",
|
|
263744
263744
|
"pb-[3rem] sm:pb-0",
|
|
@@ -263820,6 +263820,7 @@ const $Pn = ({
|
|
|
263820
263820
|
/* @__PURE__ */ E.jsx(
|
|
263821
263821
|
l4,
|
|
263822
263822
|
{
|
|
263823
|
+
"data-testid": "comment-reply-input",
|
|
263823
263824
|
placeholder: "Reply",
|
|
263824
263825
|
value: b,
|
|
263825
263826
|
className: Te(
|
|
@@ -263848,6 +263849,7 @@ const $Pn = ({
|
|
|
263848
263849
|
/* @__PURE__ */ E.jsx(
|
|
263849
263850
|
$t,
|
|
263850
263851
|
{
|
|
263852
|
+
"data-testid": "comment-reply-send",
|
|
263851
263853
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
263852
263854
|
disabled: !b.trim(),
|
|
263853
263855
|
onClick: c,
|
|
@@ -263885,6 +263887,7 @@ const $Pn = ({
|
|
|
263885
263887
|
/* @__PURE__ */ E.jsx(
|
|
263886
263888
|
l4,
|
|
263887
263889
|
{
|
|
263890
|
+
"data-testid": "comment-section-input",
|
|
263888
263891
|
value: y,
|
|
263889
263892
|
onChange: l,
|
|
263890
263893
|
onKeyDown: u,
|
|
@@ -263896,6 +263899,7 @@ const $Pn = ({
|
|
|
263896
263899
|
/* @__PURE__ */ E.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ E.jsx(
|
|
263897
263900
|
$t,
|
|
263898
263901
|
{
|
|
263902
|
+
"data-testid": "comment-section-send",
|
|
263899
263903
|
onClick: v,
|
|
263900
263904
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
263901
263905
|
disabled: !y.trim() || !o,
|
|
@@ -263927,7 +263931,7 @@ const $Pn = ({
|
|
|
263927
263931
|
const { toggleResolved: a, showResolved: s, isConnected: l } = c1(), { isBelow1280px: u } = j1();
|
|
263928
263932
|
return z3e(() => {
|
|
263929
263933
|
t();
|
|
263930
|
-
}), /* @__PURE__ */ E.jsx("div", { children: u ? /* @__PURE__ */ E.jsx(
|
|
263934
|
+
}), /* @__PURE__ */ E.jsx("div", { "data-testid": "comment-drawer", children: u ? /* @__PURE__ */ E.jsx(
|
|
263931
263935
|
NOt,
|
|
263932
263936
|
{
|
|
263933
263937
|
open: e,
|
package/dist/index.es.js
CHANGED