@fileverse-dev/ddoc 3.0.37 → 3.0.39
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-CMVfdBuf.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-CZeqZBtz.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",
|
|
@@ -263555,6 +263563,7 @@ const $Pn = ({
|
|
|
263555
263563
|
}) => /* @__PURE__ */ E.jsx(
|
|
263556
263564
|
"div",
|
|
263557
263565
|
{
|
|
263566
|
+
"data-testid": "comment-auth-modal",
|
|
263558
263567
|
className: Te(
|
|
263559
263568
|
"flex flex-col h-screen xl:!h-[80vh] !color-bg-default !rounded-b-lg",
|
|
263560
263569
|
!n && "xl:!h-[calc(100vh-150px)]"
|
|
@@ -263577,6 +263586,7 @@ const $Pn = ({
|
|
|
263577
263586
|
/* @__PURE__ */ E.jsx(
|
|
263578
263587
|
ml,
|
|
263579
263588
|
{
|
|
263589
|
+
"data-testid": "comment-name-input",
|
|
263580
263590
|
type: "text",
|
|
263581
263591
|
value: e,
|
|
263582
263592
|
onChange: (s) => t == null ? void 0 : t(s.target.value),
|
|
@@ -263590,6 +263600,7 @@ const $Pn = ({
|
|
|
263590
263600
|
/* @__PURE__ */ E.jsx(
|
|
263591
263601
|
$t,
|
|
263592
263602
|
{
|
|
263603
|
+
"data-testid": "comment-join-btn",
|
|
263593
263604
|
onClick: () => o == null ? void 0 : o(e),
|
|
263594
263605
|
disabled: !e || a,
|
|
263595
263606
|
isLoading: a,
|
|
@@ -263622,6 +263633,7 @@ const $Pn = ({
|
|
|
263622
263633
|
/* @__PURE__ */ E.jsx("div", { className: "text-center", children: /* @__PURE__ */ E.jsxs(
|
|
263623
263634
|
$t,
|
|
263624
263635
|
{
|
|
263636
|
+
"data-testid": "comment-ens-btn",
|
|
263625
263637
|
onClick: r ? () => null : i,
|
|
263626
263638
|
disabled: a,
|
|
263627
263639
|
className: "custom-ens-button",
|
|
@@ -263730,6 +263742,7 @@ const $Pn = ({
|
|
|
263730
263742
|
}, [e, g]), D ? /* @__PURE__ */ E.jsxs(
|
|
263731
263743
|
"div",
|
|
263732
263744
|
{
|
|
263745
|
+
"data-testid": "comment-section",
|
|
263733
263746
|
className: Te(
|
|
263734
263747
|
"flex flex-col h-[100dvh] sm:h-[calc(100vh-40px)] xl:h-[calc(100vh-210px)] !color-bg-default !rounded-b-lg",
|
|
263735
263748
|
"pb-[3rem] sm:pb-0",
|
|
@@ -263811,6 +263824,7 @@ const $Pn = ({
|
|
|
263811
263824
|
/* @__PURE__ */ E.jsx(
|
|
263812
263825
|
l4,
|
|
263813
263826
|
{
|
|
263827
|
+
"data-testid": "comment-reply-input",
|
|
263814
263828
|
placeholder: "Reply",
|
|
263815
263829
|
value: b,
|
|
263816
263830
|
className: Te(
|
|
@@ -263839,6 +263853,7 @@ const $Pn = ({
|
|
|
263839
263853
|
/* @__PURE__ */ E.jsx(
|
|
263840
263854
|
$t,
|
|
263841
263855
|
{
|
|
263856
|
+
"data-testid": "comment-reply-send",
|
|
263842
263857
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
263843
263858
|
disabled: !b.trim(),
|
|
263844
263859
|
onClick: c,
|
|
@@ -263876,6 +263891,7 @@ const $Pn = ({
|
|
|
263876
263891
|
/* @__PURE__ */ E.jsx(
|
|
263877
263892
|
l4,
|
|
263878
263893
|
{
|
|
263894
|
+
"data-testid": "comment-section-input",
|
|
263879
263895
|
value: y,
|
|
263880
263896
|
onChange: l,
|
|
263881
263897
|
onKeyDown: u,
|
|
@@ -263887,6 +263903,7 @@ const $Pn = ({
|
|
|
263887
263903
|
/* @__PURE__ */ E.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ E.jsx(
|
|
263888
263904
|
$t,
|
|
263889
263905
|
{
|
|
263906
|
+
"data-testid": "comment-section-send",
|
|
263890
263907
|
onClick: v,
|
|
263891
263908
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
263892
263909
|
disabled: !y.trim() || !o,
|
|
@@ -263918,7 +263935,7 @@ const $Pn = ({
|
|
|
263918
263935
|
const { toggleResolved: a, showResolved: s, isConnected: l } = c1(), { isBelow1280px: u } = j1();
|
|
263919
263936
|
return z3e(() => {
|
|
263920
263937
|
t();
|
|
263921
|
-
}), /* @__PURE__ */ E.jsx("div", { children: u ? /* @__PURE__ */ E.jsx(
|
|
263938
|
+
}), /* @__PURE__ */ E.jsx("div", { "data-testid": "comment-drawer", children: u ? /* @__PURE__ */ E.jsx(
|
|
263922
263939
|
NOt,
|
|
263923
263940
|
{
|
|
263924
263941
|
open: e,
|
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.39",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
@@ -150,4 +150,4 @@
|
|
|
150
150
|
"typescript": "^5.2.2",
|
|
151
151
|
"vite": "^5.0.0"
|
|
152
152
|
}
|
|
153
|
-
}
|
|
153
|
+
}
|