@fileverse-dev/ddoc 3.0.96-zustand-46 → 3.0.96-zustand-47
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.
- package/dist/index.es.js +49 -57
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -181977,14 +181977,15 @@ const yI = ({
|
|
|
181977
181977
|
onResolve: c,
|
|
181978
181978
|
onUnresolve: d,
|
|
181979
181979
|
onDelete: p,
|
|
181980
|
-
onSetOpenReplyId: h
|
|
181980
|
+
onSetOpenReplyId: h,
|
|
181981
|
+
isCollaborationEnabled: f
|
|
181981
181982
|
}) => {
|
|
181982
|
-
var
|
|
181983
|
-
const [
|
|
181983
|
+
var v, D;
|
|
181984
|
+
const [g, m] = Be(!1), { isBelow1280px: b } = Si(), y = UHe(
|
|
181984
181985
|
e.id,
|
|
181985
181986
|
e.selectedContent
|
|
181986
|
-
),
|
|
181987
|
-
e.resolved && !
|
|
181987
|
+
), x = () => {
|
|
181988
|
+
e.resolved && !b ? h(null) : e.id && h(e.id), u(e);
|
|
181988
181989
|
};
|
|
181989
181990
|
return /* @__PURE__ */ F.jsxs(
|
|
181990
181991
|
"div",
|
|
@@ -181993,11 +181994,11 @@ const yI = ({
|
|
|
181993
181994
|
className: qe(
|
|
181994
181995
|
"relative flex border flex-col w-full mt-[8px] pb-[12px] box-border transition-all color-border-default rounded-[12px]",
|
|
181995
181996
|
r && a !== e.id && "hidden",
|
|
181996
|
-
e.id === n && (r || !
|
|
181997
|
-
((
|
|
181997
|
+
e.id === n && (r || !b) ? "color-bg-default" : "hover:color-bg-default-hover bg-[#00000005] ",
|
|
181998
|
+
((v = e.replies) == null ? void 0 : v.length) > 0 && "gap-0",
|
|
181998
181999
|
o && e.resolved ? "color-bg-default color-border-default" : r && e.resolved && "color-bg-default-hover"
|
|
181999
182000
|
),
|
|
182000
|
-
onClick:
|
|
182001
|
+
onClick: x,
|
|
182001
182002
|
children: [
|
|
182002
182003
|
o && e.resolved && /* @__PURE__ */ F.jsxs("div", { className: "w-full px-[16px] py-[8px] rounded-b-[4px] rounded-t-[12px] items-center flex justify-between color-bg-secondary", children: [
|
|
182003
182004
|
/* @__PURE__ */ F.jsx("p", { className: "color-text-secondary text-body-sm", children: "Resolved comment" }),
|
|
@@ -182014,7 +182015,7 @@ const yI = ({
|
|
|
182014
182015
|
}
|
|
182015
182016
|
)
|
|
182016
182017
|
] }),
|
|
182017
|
-
/* @__PURE__ */ F.jsx("div", { className: "px-[12px] pt-[12px] gap-[8px] items-center flex", children: /* @__PURE__ */ F.jsx(F.Fragment, { children:
|
|
182018
|
+
/* @__PURE__ */ F.jsx("div", { className: "px-[12px] pt-[12px] gap-[8px] items-center flex", children: /* @__PURE__ */ F.jsx(F.Fragment, { children: y ? /* @__PURE__ */ F.jsx("p", { className: "text-helper-text-sm font-[500] color-text-default", children: "Original content deleted" }) : /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
|
|
182018
182019
|
/* @__PURE__ */ F.jsx("p", { className: "text-helper-text-sm color-text-secondary", children: t }),
|
|
182019
182020
|
/* @__PURE__ */ F.jsx("p", { className: "text-helper-text-sm flex-1 grow truncate color-text-secondary", children: e.selectedContent })
|
|
182020
182021
|
] }) }) }),
|
|
@@ -182024,7 +182025,7 @@ const yI = ({
|
|
|
182024
182025
|
id: e.id,
|
|
182025
182026
|
activeCommentId: n,
|
|
182026
182027
|
isFocused: a === e.id,
|
|
182027
|
-
onFocusRequest:
|
|
182028
|
+
onFocusRequest: x,
|
|
182028
182029
|
username: e.username,
|
|
182029
182030
|
selectedContent: e.selectedContent,
|
|
182030
182031
|
createdAt: e.createdAt,
|
|
@@ -182033,7 +182034,7 @@ const yI = ({
|
|
|
182033
182034
|
isCommentDrawerContext: !0,
|
|
182034
182035
|
onResolve: c,
|
|
182035
182036
|
onUnresolve: d,
|
|
182036
|
-
onRequestDelete: () =>
|
|
182037
|
+
onRequestDelete: () => m(!0),
|
|
182037
182038
|
isResolved: e.resolved,
|
|
182038
182039
|
isDisabled: e && !Object.hasOwn(e, "commentIndex"),
|
|
182039
182040
|
isCommentOwner: e.username === i || s,
|
|
@@ -182046,14 +182047,14 @@ const yI = ({
|
|
|
182046
182047
|
{
|
|
182047
182048
|
ref: l,
|
|
182048
182049
|
className: qe("flex flex-col gap-2", e.resolved && "hidden"),
|
|
182049
|
-
onClick: (
|
|
182050
|
+
onClick: (w) => w.stopPropagation(),
|
|
182050
182051
|
children: a === e.id && /* @__PURE__ */ F.jsx(
|
|
182051
182052
|
RHe,
|
|
182052
182053
|
{
|
|
182053
182054
|
commentId: e.id,
|
|
182054
182055
|
commentUsername: e.username,
|
|
182055
|
-
replyCount: ((
|
|
182056
|
-
isCollaborationEnabled
|
|
182056
|
+
replyCount: ((D = e.replies) == null ? void 0 : D.length) ?? 0,
|
|
182057
|
+
isCollaborationEnabled: f
|
|
182057
182058
|
}
|
|
182058
182059
|
)
|
|
182059
182060
|
}
|
|
@@ -182061,11 +182062,11 @@ const yI = ({
|
|
|
182061
182062
|
/* @__PURE__ */ F.jsx(
|
|
182062
182063
|
Ox,
|
|
182063
182064
|
{
|
|
182064
|
-
isVisible:
|
|
182065
|
+
isVisible: g,
|
|
182065
182066
|
title: "Delete this comment?",
|
|
182066
|
-
onCancel: () =>
|
|
182067
|
+
onCancel: () => m(!1),
|
|
182067
182068
|
onConfirm: () => {
|
|
182068
|
-
|
|
182069
|
+
m(!1), p(e.id);
|
|
182069
182070
|
}
|
|
182070
182071
|
}
|
|
182071
182072
|
)
|
|
@@ -182397,46 +182398,37 @@ const yI = ({
|
|
|
182397
182398
|
headerClassName: "border-b color-border-default !color-bg-default px-4 pb-[12px] !rounded-t-lg",
|
|
182398
182399
|
contentClassName: "!rounded-lg !px-0 !h-full select-text color-bg-secondary",
|
|
182399
182400
|
title: "Comments",
|
|
182400
|
-
content: /* @__PURE__ */ F.jsxs(
|
|
182401
|
-
"div",
|
|
182402
|
-
|
|
182403
|
-
|
|
182404
|
-
|
|
182405
|
-
|
|
182406
|
-
|
|
182407
|
-
|
|
182408
|
-
|
|
182409
|
-
|
|
182410
|
-
|
|
182411
|
-
|
|
182412
|
-
|
|
182413
|
-
|
|
182414
|
-
|
|
182415
|
-
|
|
182416
|
-
|
|
182417
|
-
|
|
182418
|
-
|
|
182419
|
-
|
|
182420
|
-
|
|
182421
|
-
|
|
182422
|
-
|
|
182423
|
-
|
|
182424
|
-
|
|
182425
|
-
|
|
182426
|
-
|
|
182427
|
-
|
|
182428
|
-
|
|
182429
|
-
|
|
182430
|
-
|
|
182431
|
-
onReset: () => {
|
|
182432
|
-
P("all"), oe(Bf);
|
|
182433
|
-
},
|
|
182434
|
-
isCollaborationEnabled: u
|
|
182435
|
-
}
|
|
182436
|
-
)
|
|
182437
|
-
]
|
|
182438
|
-
}
|
|
182439
|
-
)
|
|
182401
|
+
content: /* @__PURE__ */ F.jsxs("div", { className: et("pt-4"), children: [
|
|
182402
|
+
/* @__PURE__ */ F.jsxs("div", { className: "flex mb-[16px] px-4 gap-[8px]", children: [
|
|
182403
|
+
/* @__PURE__ */ F.jsxs(ed, { value: q, onValueChange: P, children: [
|
|
182404
|
+
/* @__PURE__ */ F.jsx(td, { className: "w-[148px]", children: /* @__PURE__ */ F.jsx($p, { placeholder: "Active" }) }),
|
|
182405
|
+
/* @__PURE__ */ F.jsx(nd, { children: T.map((ee) => /* @__PURE__ */ F.jsx(rd, { value: ee.id, children: ee.label }, ee.id)) })
|
|
182406
|
+
] }),
|
|
182407
|
+
/* @__PURE__ */ F.jsxs(ed, { value: $, onValueChange: Q, children: [
|
|
182408
|
+
/* @__PURE__ */ F.jsx(td, { className: "w-[148px]", children: /* @__PURE__ */ F.jsx($p, { placeholder: "All tabs" }) }),
|
|
182409
|
+
/* @__PURE__ */ F.jsx(nd, { children: R.map((ee) => /* @__PURE__ */ F.jsx(rd, { value: ee.id, children: ee.label }, ee.id)) })
|
|
182410
|
+
] })
|
|
182411
|
+
] }),
|
|
182412
|
+
/* @__PURE__ */ F.jsx(
|
|
182413
|
+
yI,
|
|
182414
|
+
{
|
|
182415
|
+
activeCommentId: o,
|
|
182416
|
+
isNavbarVisible: n,
|
|
182417
|
+
isPresentationMode: r,
|
|
182418
|
+
comments: G,
|
|
182419
|
+
commentType: q,
|
|
182420
|
+
sectionLabel: K,
|
|
182421
|
+
tabNameById: L,
|
|
182422
|
+
selectedTabLabel: ne,
|
|
182423
|
+
newCommentTabId: se,
|
|
182424
|
+
onCommentFocus: le,
|
|
182425
|
+
onReset: () => {
|
|
182426
|
+
P("all"), oe(Bf);
|
|
182427
|
+
},
|
|
182428
|
+
isCollaborationEnabled: u
|
|
182429
|
+
}
|
|
182430
|
+
)
|
|
182431
|
+
] })
|
|
182440
182432
|
}
|
|
182441
182433
|
) });
|
|
182442
182434
|
}, WHe = ({
|