@fileverse-dev/ddoc 3.0.37 → 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",
|
|
@@ -263730,6 +263735,7 @@ const $Pn = ({
|
|
|
263730
263735
|
}, [e, g]), D ? /* @__PURE__ */ E.jsxs(
|
|
263731
263736
|
"div",
|
|
263732
263737
|
{
|
|
263738
|
+
"data-testid": "comment-section",
|
|
263733
263739
|
className: Te(
|
|
263734
263740
|
"flex flex-col h-[100dvh] sm:h-[calc(100vh-40px)] xl:h-[calc(100vh-210px)] !color-bg-default !rounded-b-lg",
|
|
263735
263741
|
"pb-[3rem] sm:pb-0",
|
|
@@ -263811,6 +263817,7 @@ const $Pn = ({
|
|
|
263811
263817
|
/* @__PURE__ */ E.jsx(
|
|
263812
263818
|
l4,
|
|
263813
263819
|
{
|
|
263820
|
+
"data-testid": "comment-reply-input",
|
|
263814
263821
|
placeholder: "Reply",
|
|
263815
263822
|
value: b,
|
|
263816
263823
|
className: Te(
|
|
@@ -263839,6 +263846,7 @@ const $Pn = ({
|
|
|
263839
263846
|
/* @__PURE__ */ E.jsx(
|
|
263840
263847
|
$t,
|
|
263841
263848
|
{
|
|
263849
|
+
"data-testid": "comment-reply-send",
|
|
263842
263850
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
263843
263851
|
disabled: !b.trim(),
|
|
263844
263852
|
onClick: c,
|
|
@@ -263876,6 +263884,7 @@ const $Pn = ({
|
|
|
263876
263884
|
/* @__PURE__ */ E.jsx(
|
|
263877
263885
|
l4,
|
|
263878
263886
|
{
|
|
263887
|
+
"data-testid": "comment-section-input",
|
|
263879
263888
|
value: y,
|
|
263880
263889
|
onChange: l,
|
|
263881
263890
|
onKeyDown: u,
|
|
@@ -263887,6 +263896,7 @@ const $Pn = ({
|
|
|
263887
263896
|
/* @__PURE__ */ E.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ E.jsx(
|
|
263888
263897
|
$t,
|
|
263889
263898
|
{
|
|
263899
|
+
"data-testid": "comment-section-send",
|
|
263890
263900
|
onClick: v,
|
|
263891
263901
|
className: "px-4 py-2 w-20 min-w-20 h-9",
|
|
263892
263902
|
disabled: !y.trim() || !o,
|
|
@@ -263918,7 +263928,7 @@ const $Pn = ({
|
|
|
263918
263928
|
const { toggleResolved: a, showResolved: s, isConnected: l } = c1(), { isBelow1280px: u } = j1();
|
|
263919
263929
|
return z3e(() => {
|
|
263920
263930
|
t();
|
|
263921
|
-
}), /* @__PURE__ */ E.jsx("div", { children: u ? /* @__PURE__ */ E.jsx(
|
|
263931
|
+
}), /* @__PURE__ */ E.jsx("div", { "data-testid": "comment-drawer", children: u ? /* @__PURE__ */ E.jsx(
|
|
263922
263932
|
NOt,
|
|
263923
263933
|
{
|
|
263924
263934
|
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.38-patch-1",
|
|
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
|
+
}
|