@nivaro/react 0.3.116 → 0.3.118
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +140 -14
- package/dist/index.js +488 -485
- package/dist/shared/components/ActivityEntry.js +130 -125
- package/dist/shared/components/AgentPresenceChip.js +36 -26
- package/dist/shared/components/CellCopyLayer.js +50 -45
- package/dist/shared/components/CollectionBrowserView.js +3855 -3785
- package/dist/shared/components/FilePreviewLightbox.js +96 -58
- package/dist/shared/components/InStep.js +18 -17
- package/dist/shared/components/ItemEditForm.js +4220 -4175
- package/dist/shared/components/JobsTray.js +8 -8
- package/dist/shared/components/LiveNewMatchesPill.js +21 -14
- package/dist/shared/components/LiveOffNote.js +3 -2
- package/dist/shared/components/LiveRowMark.js +53 -23
- package/dist/shared/components/LiveTraceView.js +162 -123
- package/dist/shared/components/MyWorkView.js +320 -299
- package/dist/shared/components/NotificationBell.js +14 -14
- package/dist/shared/components/OverflowRail.js +1 -1
- package/dist/shared/components/PageRenderer.js +120 -116
- package/dist/shared/components/ProfileView.js +203 -202
- package/dist/shared/components/RealtimeStatusBanner.js +31 -29
- package/dist/shared/components/RecordDrilldownSheet.js +7 -7
- package/dist/shared/components/RecordHoverCard.js +102 -84
- package/dist/shared/components/RecordReadView.js +146 -146
- package/dist/shared/components/ReportView.js +1086 -1091
- package/dist/shared/components/ScreenRefreshButton.js +34 -32
- package/dist/shared/components/TipLayer.js +65 -58
- package/dist/shared/components/WidgetImageMenu.js +83 -43
- package/dist/shared/components/activity/RecordActivityStream.js +175 -173
- package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
- package/dist/shared/components/cbv/column-totals.js +62 -57
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
- package/dist/shared/components/charts/category-axis.js +93 -0
- package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
- package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
- package/dist/shared/components/collections-directory/page-model.js +72 -67
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
- package/dist/shared/components/integrations/SendStatus.js +65 -59
- package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
- package/dist/shared/components/integrations/console/SignalCard.js +237 -230
- package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +131 -92
- package/dist/shared/components/item-edit/CloneDialog.js +191 -161
- package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
- package/dist/shared/components/item-edit/FieldComments.js +54 -53
- package/dist/shared/components/item-edit/FieldPointer.js +82 -67
- package/dist/shared/components/item-edit/FieldRow.js +106 -100
- package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
- package/dist/shared/components/item-edit/FilePickerField.js +452 -387
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
- package/dist/shared/components/item-edit/HeaderTools.js +94 -85
- package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
- package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
- package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
- package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
- package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
- package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
- package/dist/shared/components/item-edit/RecalcValue.js +57 -32
- package/dist/shared/components/item-edit/RecordHelpChip.js +21 -22
- package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
- package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
- package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
- package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
- package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
- package/dist/shared/components/item-edit/SectionPresence.js +18 -10
- package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
- package/dist/shared/components/item-edit/UserChip.js +1 -1
- package/dist/shared/components/item-edit/file-live.js +69 -54
- package/dist/shared/components/item-edit/layout-switch.js +98 -89
- package/dist/shared/components/item-edit/partner-needs.js +12 -12
- package/dist/shared/components/item-edit/removed-line.js +31 -25
- package/dist/shared/components/layout-editor/pickers/field-picker.js +112 -104
- package/dist/shared/components/list/ListViewers.js +46 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
- package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
- package/dist/shared/components/panels/AlertBanners.js +82 -72
- package/dist/shared/components/panels/BranchLanes.js +22 -22
- package/dist/shared/components/panels/CommentImages.js +123 -102
- package/dist/shared/components/panels/CommentPanel.js +186 -185
- package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
- package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
- package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
- package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
- package/dist/shared/components/pipeline/BindingStartStateSettings.js +163 -0
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +320 -299
- package/dist/shared/components/profile/AgentNameField.js +107 -81
- package/dist/shared/components/profile/AgentsPanel.js +184 -184
- package/dist/shared/components/profile/PersonAccess.js +599 -495
- package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
- package/dist/shared/components/profile/SignedInDevices.js +17 -17
- package/dist/shared/components/profile/primitives.js +1 -1
- package/dist/shared/components/queue/OwnerAvatars.js +91 -54
- package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
- package/dist/shared/components/queue/QueueWorklist.js +1002 -983
- package/dist/shared/components/support/AssignRules.js +1733 -0
- package/dist/shared/components/support/PersonPick.js +88 -0
- package/dist/shared/components/support/RequestList.js +790 -0
- package/dist/shared/components/support/ScreenShare.js +158 -152
- package/dist/shared/components/support/SupportRequestDialog.js +50 -48
- package/dist/shared/components/support/SupportView.js +140 -246
- package/dist/shared/components/support/TicketDetailSheet.js +82 -75
- package/dist/shared/components/support/TicketSlowScreens.js +9 -9
- package/dist/shared/components/support/assign-rules-text.js +171 -0
- package/dist/shared/components/support/support-list.js +125 -0
- package/dist/shared/components/ui/SimpleSelect.js +28 -20
- package/dist/shared/components/ui/checkbox.js +6 -6
- package/dist/shared/components/ui/select.js +43 -39
- package/dist/shared/components/ui/sheet.js +9 -9
- package/dist/shared/components/ui/switch.js +12 -11
- package/dist/shared/components/watch-list/WatchDock.js +532 -459
- package/dist/shared/components/watch-list/WatchExtras.js +332 -286
- package/dist/shared/components/watch-list/WatchRows.js +164 -140
- package/dist/shared/lib/activity-sentence.js +103 -91
- package/dist/shared/lib/agent-presence.js +27 -21
- package/dist/shared/lib/approval-progress.js +2 -2
- package/dist/shared/lib/copy-rules.js +31 -24
- package/dist/shared/lib/derived-causes.js +113 -78
- package/dist/shared/lib/grid-cursors.js +26 -26
- package/dist/shared/lib/label-flash.js +27 -0
- package/dist/shared/lib/list-return.js +137 -125
- package/dist/shared/lib/live-deltas.js +40 -34
- package/dist/shared/lib/live-groups.js +56 -52
- package/dist/shared/lib/live-preference.js +64 -59
- package/dist/shared/lib/live-screen.js +223 -192
- package/dist/shared/lib/partner-failure.js +11 -11
- package/dist/shared/lib/rollup-recalc.js +68 -64
- package/dist/shared/lib/screen-refresh.js +74 -68
- package/dist/shared/lib/screen-share.js +108 -104
- package/dist/shared/lib/send-status.js +77 -61
- package/dist/shared/lib/text-diff-window.js +29 -0
- package/dist/shared/lib/use-query-entry.js +17 -0
- package/dist/shared/lib/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- package/package.json +1 -1
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { X as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { toast as
|
|
5
|
-
import { useApiFetchConfig as
|
|
6
|
-
import { MAX_COMMENT_IMAGES as
|
|
7
|
-
import { startFileUpload as
|
|
1
|
+
import { jsx as o, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { X as U, ImageOff as j } from "lucide-react";
|
|
3
|
+
import { useState as v, useRef as M, useEffect as O, useCallback as b } from "react";
|
|
4
|
+
import { toast as D } from "sonner";
|
|
5
|
+
import { useApiFetchConfig as I, useNivaroClient as C } from "../../context.js";
|
|
6
|
+
import { MAX_COMMENT_IMAGES as k, withCommentImages as L, splitCommentImages as $, imageFilesFrom as w } from "../../lib/comment-images.js";
|
|
7
|
+
import { startFileUpload as A } from "../../lib/upload-file.js";
|
|
8
8
|
import { cn as y } from "../../lib/utils.js";
|
|
9
|
-
import { AutolinkedText as
|
|
10
|
-
import { FilePreviewLightbox as
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
|
|
9
|
+
import { AutolinkedText as N } from "../AutolinkedText.js";
|
|
10
|
+
import { FilePreviewLightbox as F } from "../FilePreviewLightbox.js";
|
|
11
|
+
function H() {
|
|
12
|
+
const l = I(), [t, e] = v([]), d = M([]);
|
|
13
|
+
d.current = t, O(
|
|
14
14
|
() => () => {
|
|
15
|
-
for (const
|
|
16
|
-
|
|
15
|
+
for (const r of d.current)
|
|
16
|
+
r.id || r.abort(), URL.revokeObjectURL(r.preview);
|
|
17
17
|
},
|
|
18
18
|
[]
|
|
19
19
|
);
|
|
20
|
-
const
|
|
21
|
-
(
|
|
22
|
-
const n =
|
|
20
|
+
const p = b(
|
|
21
|
+
(r) => {
|
|
22
|
+
const n = r.filter((s) => s.type.startsWith("image/"));
|
|
23
23
|
if (n.length === 0) return;
|
|
24
|
-
const
|
|
25
|
-
(
|
|
26
|
-
for (const
|
|
27
|
-
const
|
|
28
|
-
onProgress: (
|
|
29
|
-
onDone: (
|
|
30
|
-
onError: (
|
|
24
|
+
const i = k - d.current.length;
|
|
25
|
+
(i <= 0 || n.length > i) && D.error(`A comment can carry up to ${k} images.`);
|
|
26
|
+
for (const s of n.slice(0, Math.max(0, i))) {
|
|
27
|
+
const a = `${Date.now()}-${Math.random().toString(36).slice(2)}`, f = (m) => e((R) => R.map((h) => h.key === a ? { ...h, ...m } : h)), { abort: g } = A(l, s, {
|
|
28
|
+
onProgress: (m) => f({ progress: m }),
|
|
29
|
+
onDone: (m) => f({ id: m, progress: 1 }),
|
|
30
|
+
onError: (m) => f({ error: m })
|
|
31
31
|
});
|
|
32
|
-
e((
|
|
33
|
-
...
|
|
32
|
+
e((m) => [
|
|
33
|
+
...m,
|
|
34
34
|
{
|
|
35
|
-
key:
|
|
36
|
-
name:
|
|
37
|
-
preview: URL.createObjectURL(
|
|
35
|
+
key: a,
|
|
36
|
+
name: s.name,
|
|
37
|
+
preview: URL.createObjectURL(s),
|
|
38
38
|
progress: 0,
|
|
39
39
|
id: null,
|
|
40
40
|
error: null,
|
|
41
|
-
abort:
|
|
41
|
+
abort: g
|
|
42
42
|
}
|
|
43
43
|
]);
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
[
|
|
47
|
-
), c =
|
|
46
|
+
[l]
|
|
47
|
+
), c = b((r) => {
|
|
48
48
|
e((n) => {
|
|
49
|
-
const
|
|
50
|
-
return
|
|
49
|
+
const i = n.find((s) => s.key === r);
|
|
50
|
+
return i && (!i.id && !i.error && i.abort(), URL.revokeObjectURL(i.preview)), n.filter((s) => s.key !== r);
|
|
51
51
|
});
|
|
52
|
-
}, []), u =
|
|
53
|
-
for (const
|
|
52
|
+
}, []), u = b(() => {
|
|
53
|
+
for (const r of d.current) URL.revokeObjectURL(r.preview);
|
|
54
54
|
e([]);
|
|
55
55
|
}, []);
|
|
56
56
|
return {
|
|
57
|
-
items:
|
|
58
|
-
addFiles:
|
|
57
|
+
items: t,
|
|
58
|
+
addFiles: p,
|
|
59
59
|
remove: c,
|
|
60
60
|
reset: u,
|
|
61
|
-
uploading:
|
|
62
|
-
hasReady:
|
|
63
|
-
compose: (
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
uploading: t.some((r) => !r.id && !r.error),
|
|
62
|
+
hasReady: t.some((r) => r.id),
|
|
63
|
+
compose: (r) => L(
|
|
64
|
+
r,
|
|
65
|
+
t.filter((n) => n.id).map((n) => ({ id: n.id, name: n.name }))
|
|
66
66
|
)
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function J(l) {
|
|
70
70
|
return {
|
|
71
|
-
onPaste: (
|
|
72
|
-
const e =
|
|
73
|
-
e.length !== 0 && (
|
|
71
|
+
onPaste: (t) => {
|
|
72
|
+
const e = w(t.clipboardData);
|
|
73
|
+
e.length !== 0 && (t.preventDefault(), l(e));
|
|
74
74
|
},
|
|
75
|
-
onDragOver: (
|
|
75
|
+
onDragOver: (t) => {
|
|
76
76
|
var e;
|
|
77
|
-
Array.from(((e =
|
|
77
|
+
Array.from(((e = t.dataTransfer) == null ? void 0 : e.types) ?? []).includes("Files") && t.preventDefault();
|
|
78
78
|
},
|
|
79
|
-
onDrop: (
|
|
80
|
-
const e =
|
|
81
|
-
e.length !== 0 && (
|
|
79
|
+
onDrop: (t) => {
|
|
80
|
+
const e = w(t.dataTransfer);
|
|
81
|
+
e.length !== 0 && (t.preventDefault(), l(e));
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
images:
|
|
87
|
-
className:
|
|
85
|
+
function K({
|
|
86
|
+
images: l,
|
|
87
|
+
className: t
|
|
88
88
|
}) {
|
|
89
|
-
return
|
|
89
|
+
return l.items.length === 0 ? null : /* @__PURE__ */ o(
|
|
90
90
|
"ul",
|
|
91
91
|
{
|
|
92
92
|
"data-comment-images": "",
|
|
93
|
-
className: y("m-0 flex list-none flex-wrap gap-2 p-0",
|
|
93
|
+
className: y("m-0 flex list-none flex-wrap gap-2 p-0", t),
|
|
94
94
|
"aria-label": "Attached images",
|
|
95
|
-
children:
|
|
95
|
+
children: l.items.map((e) => /* @__PURE__ */ x(
|
|
96
96
|
"li",
|
|
97
97
|
{
|
|
98
98
|
"data-comment-image": e.id ? "done" : e.error ? "failed" : "uploading",
|
|
@@ -135,10 +135,10 @@ function Q({
|
|
|
135
135
|
"button",
|
|
136
136
|
{
|
|
137
137
|
type: "button",
|
|
138
|
-
onClick: () =>
|
|
138
|
+
onClick: () => l.remove(e.key),
|
|
139
139
|
"aria-label": `Remove ${e.name}`,
|
|
140
140
|
className: "absolute right-0.5 top-0.5 flex h-4 w-4 items-center justify-center rounded-full bg-slate-900/70 text-white opacity-90 transition-opacity hover:bg-slate-900 focus-visible:opacity-100",
|
|
141
|
-
children: /* @__PURE__ */ o(
|
|
141
|
+
children: /* @__PURE__ */ o(U, { "aria-hidden": !0, className: "h-2.5 w-2.5" })
|
|
142
142
|
}
|
|
143
143
|
)
|
|
144
144
|
]
|
|
@@ -148,72 +148,93 @@ function Q({
|
|
|
148
148
|
}
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
|
-
function P({
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
record: e
|
|
155
|
-
}) {
|
|
156
|
-
const s = O(), [i, c] = h(!1), [u, t] = h(!1), n = s.fileUrl(a);
|
|
157
|
-
return u ? /* @__PURE__ */ b(
|
|
151
|
+
function P({ id: l, name: t, onOpen: e }) {
|
|
152
|
+
const d = C(), [p, c] = v(!1), u = d.fileUrl(l);
|
|
153
|
+
return p ? /* @__PURE__ */ x(
|
|
158
154
|
"span",
|
|
159
155
|
{
|
|
160
156
|
"data-comment-image": "unavailable",
|
|
161
|
-
className: "inline-flex items-center gap-1 rounded-md border border-dashed border-slate-
|
|
157
|
+
className: "inline-flex items-center gap-1 rounded-md border border-dashed border-slate-300 px-2 py-1 text-[11.5px] text-slate-500 dark:border-border dark:text-muted-foreground",
|
|
162
158
|
children: [
|
|
163
|
-
/* @__PURE__ */ o(
|
|
159
|
+
/* @__PURE__ */ o(j, { "aria-hidden": !0, className: "h-3 w-3" }),
|
|
164
160
|
" Image not available"
|
|
165
161
|
]
|
|
166
162
|
}
|
|
167
|
-
) :
|
|
163
|
+
) : (
|
|
164
|
+
// On a phone the image takes the comment's width (contained, never cropped) instead of
|
|
165
|
+
// shrinking with the column; on wider screens it keeps its own size up to 176 px tall.
|
|
168
166
|
/* @__PURE__ */ o(
|
|
169
167
|
"button",
|
|
170
168
|
{
|
|
171
169
|
type: "button",
|
|
172
|
-
onClick:
|
|
170
|
+
onClick: e,
|
|
173
171
|
"data-comment-image": "posted",
|
|
174
|
-
"aria-label": `Open ${
|
|
175
|
-
className: "block max-w-full overflow-hidden rounded-md border border-slate-200 bg-slate-50 transition-colors hover:border-nvr-cyan dark:border-border dark:bg-muted",
|
|
172
|
+
"aria-label": `Open ${t}`,
|
|
173
|
+
className: "block max-w-full overflow-hidden rounded-md border border-slate-200 bg-slate-50 transition-colors hover:border-nvr-cyan max-sm:w-full dark:border-border dark:bg-muted",
|
|
176
174
|
children: /* @__PURE__ */ o(
|
|
177
175
|
"img",
|
|
178
176
|
{
|
|
179
|
-
src:
|
|
180
|
-
alt:
|
|
177
|
+
src: u,
|
|
178
|
+
alt: t,
|
|
181
179
|
loading: "lazy",
|
|
182
|
-
onError: () =>
|
|
183
|
-
className: "block max-h-44 max-w-full object-contain"
|
|
180
|
+
onError: () => c(!0),
|
|
181
|
+
className: "block max-h-44 max-w-full object-contain max-sm:mx-auto max-sm:min-h-24"
|
|
184
182
|
}
|
|
185
183
|
)
|
|
186
184
|
}
|
|
187
|
-
)
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
)
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
function Q({
|
|
189
|
+
text: l,
|
|
190
|
+
className: t,
|
|
191
|
+
record: e,
|
|
192
|
+
caption: d
|
|
193
|
+
}) {
|
|
194
|
+
const p = C(), [c, u] = v(null), r = $(l), n = r.flatMap((a) => a.kind === "image" ? [{ id: a.id, name: a.name }] : []);
|
|
195
|
+
if (n.length === 0)
|
|
196
|
+
return /* @__PURE__ */ o("p", { className: t, children: /* @__PURE__ */ o(N, { text: l }) });
|
|
197
|
+
const i = c != null ? n[c] : null;
|
|
198
|
+
let s = -1;
|
|
199
|
+
return /* @__PURE__ */ x("div", { className: t, children: [
|
|
200
|
+
r.map((a, f) => {
|
|
201
|
+
if (a.kind === "text")
|
|
202
|
+
return a.text.trim() ? (
|
|
203
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: parts are positional and never reorder
|
|
204
|
+
/* @__PURE__ */ o("p", { className: "m-0", children: /* @__PURE__ */ o(N, { text: a.text.replace(/^\n+|\n+$/g, "") }) }, `t${f}`)
|
|
205
|
+
) : null;
|
|
206
|
+
s += 1;
|
|
207
|
+
const g = s;
|
|
208
|
+
return (
|
|
209
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: parts are positional and never reorder
|
|
210
|
+
/* @__PURE__ */ o("div", { className: "my-1.5 whitespace-normal", children: /* @__PURE__ */ o(P, { id: a.id, name: a.name, onOpen: () => u(g) }) }, `i${f}`)
|
|
211
|
+
);
|
|
212
|
+
}),
|
|
213
|
+
i && c != null && /* @__PURE__ */ o(
|
|
214
|
+
F,
|
|
190
215
|
{
|
|
191
|
-
file: {
|
|
216
|
+
file: {
|
|
217
|
+
id: i.id,
|
|
218
|
+
url: p.fileUrl(i.id),
|
|
219
|
+
name: i.name,
|
|
220
|
+
type: "image/png"
|
|
221
|
+
},
|
|
192
222
|
record: e,
|
|
193
|
-
|
|
223
|
+
caption: d,
|
|
224
|
+
nav: n.length > 1 ? {
|
|
225
|
+
index: c,
|
|
226
|
+
count: n.length,
|
|
227
|
+
onPrev: () => u((a) => ((a ?? 0) - 1 + n.length) % n.length),
|
|
228
|
+
onNext: () => u((a) => ((a ?? 0) + 1) % n.length)
|
|
229
|
+
} : null,
|
|
230
|
+
onClose: () => u(null)
|
|
194
231
|
}
|
|
195
232
|
)
|
|
196
233
|
] });
|
|
197
234
|
}
|
|
198
|
-
function V({
|
|
199
|
-
text: a,
|
|
200
|
-
className: r,
|
|
201
|
-
record: e
|
|
202
|
-
}) {
|
|
203
|
-
const s = A(a);
|
|
204
|
-
return s.some((i) => i.kind === "image") ? /* @__PURE__ */ o("div", { className: r, children: s.map(
|
|
205
|
-
(i, c) => i.kind === "text" ? i.text.trim() ? (
|
|
206
|
-
// biome-ignore lint/suspicious/noArrayIndexKey: parts are positional and never reorder
|
|
207
|
-
/* @__PURE__ */ o("p", { className: "m-0", children: /* @__PURE__ */ o(w, { text: i.text.replace(/^\n+|\n+$/g, "") }) }, `t${c}`)
|
|
208
|
-
) : null : (
|
|
209
|
-
// biome-ignore lint/suspicious/noArrayIndexKey: parts are positional and never reorder
|
|
210
|
-
/* @__PURE__ */ o("div", { className: "my-1.5 whitespace-normal", children: /* @__PURE__ */ o(P, { id: i.id, name: i.name, record: e }) }, `i${c}`)
|
|
211
|
-
)
|
|
212
|
-
) }) : /* @__PURE__ */ o("p", { className: r, children: /* @__PURE__ */ o(w, { text: a }) });
|
|
213
|
-
}
|
|
214
235
|
export {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
236
|
+
Q as CommentBody,
|
|
237
|
+
K as CommentImageStrip,
|
|
238
|
+
J as imageDropProps,
|
|
239
|
+
H as useCommentImages
|
|
219
240
|
};
|