@flamingo-stack/openframe-frontend-core 0.0.321 → 0.0.322
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/{chunk-PDOTUMJC.cjs → chunk-27UIZKPP.cjs} +31 -31
- package/dist/{chunk-PDOTUMJC.cjs.map → chunk-27UIZKPP.cjs.map} +1 -1
- package/dist/{chunk-TFCGMQPK.cjs → chunk-2JFIPRZM.cjs} +25 -25
- package/dist/{chunk-TFCGMQPK.cjs.map → chunk-2JFIPRZM.cjs.map} +1 -1
- package/dist/{chunk-DEEBJBFQ.js → chunk-2L6XJRWU.js} +2 -2
- package/dist/{chunk-WCRJWZUA.js → chunk-2ZMEIVHB.js} +4 -4
- package/dist/{chunk-TV6VD6LP.js → chunk-3CUHOXPN.js} +4 -4
- package/dist/{chunk-J65CQLX6.js → chunk-3NOGHXE5.js} +2 -2
- package/dist/{chunk-CD56IAXU.cjs → chunk-6GHEXJ6H.cjs} +5 -5
- package/dist/{chunk-CD56IAXU.cjs.map → chunk-6GHEXJ6H.cjs.map} +1 -1
- package/dist/{chunk-WCCZGPPP.cjs → chunk-AOD7KNNL.cjs} +62 -62
- package/dist/{chunk-WCCZGPPP.cjs.map → chunk-AOD7KNNL.cjs.map} +1 -1
- package/dist/{chunk-MN2WQYXS.cjs → chunk-APGXPHP2.cjs} +15 -15
- package/dist/{chunk-MN2WQYXS.cjs.map → chunk-APGXPHP2.cjs.map} +1 -1
- package/dist/{chunk-FNK67HTC.js → chunk-HYW3BYDX.js} +2 -2
- package/dist/{chunk-6DH2TCRH.js → chunk-KFEIMA2T.js} +2 -2
- package/dist/{chunk-563D7EB2.js → chunk-KJNTCTV4.js} +4 -4
- package/dist/{chunk-NEY347ME.cjs → chunk-M5RW5ASP.cjs} +26 -26
- package/dist/{chunk-NEY347ME.cjs.map → chunk-M5RW5ASP.cjs.map} +1 -1
- package/dist/{chunk-Y2TJ64S5.cjs → chunk-MQFGEYOG.cjs} +12 -12
- package/dist/{chunk-Y2TJ64S5.cjs.map → chunk-MQFGEYOG.cjs.map} +1 -1
- package/dist/{chunk-TPJJJ6KC.js → chunk-MQHD6CTN.js} +145 -90
- package/dist/chunk-MQHD6CTN.js.map +1 -0
- package/dist/{chunk-7M3QIYFW.cjs → chunk-NCFCQWMH.cjs} +56 -56
- package/dist/{chunk-7M3QIYFW.cjs.map → chunk-NCFCQWMH.cjs.map} +1 -1
- package/dist/{chunk-GAQAPTBU.cjs → chunk-NTEAD4ZM.cjs} +37 -37
- package/dist/{chunk-GAQAPTBU.cjs.map → chunk-NTEAD4ZM.cjs.map} +1 -1
- package/dist/{chunk-VNWWOPIY.js → chunk-PZYSR23M.js} +2 -2
- package/dist/{chunk-HALW7FPF.js → chunk-S3X2KEFA.js} +2 -2
- package/dist/{chunk-ZFER75HU.cjs → chunk-S6W5YPAB.cjs} +9 -9
- package/dist/{chunk-ZFER75HU.cjs.map → chunk-S6W5YPAB.cjs.map} +1 -1
- package/dist/{chunk-7C5G45KU.cjs → chunk-UFUOM6ZT.cjs} +732 -677
- package/dist/chunk-UFUOM6ZT.cjs.map +1 -0
- package/dist/{chunk-V4U7ASRM.js → chunk-WQ4OIM4E.js} +2 -2
- package/dist/{chunk-BRERE4E5.js → chunk-XF3GIE5U.js} +4 -4
- package/dist/{chunk-5HQIFRRE.cjs → chunk-YKIU2GXU.cjs} +7 -7
- package/dist/{chunk-5HQIFRRE.cjs.map → chunk-YKIU2GXU.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/chat/embeddable-chat.d.ts +2 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/chat/mingo-chat-history.d.ts +11 -2
- package/dist/components/chat/mingo-chat-history.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.d.ts +5 -1
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +5 -5
- package/dist/components/docs/index.js +4 -4
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +20 -20
- package/dist/components/help-center-pages/index.js +11 -11
- package/dist/components/index.cjs +120 -120
- package/dist/components/index.js +9 -9
- package/dist/components/navigation/index.cjs +2 -2
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/related-content/index.cjs +3 -3
- package/dist/components/related-content/index.js +2 -2
- package/dist/components/tickets/index.cjs +5 -5
- package/dist/components/tickets/index.js +4 -4
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/chat/embeddable-chat.tsx +15 -1
- package/src/components/chat/mingo-chat-history.tsx +136 -53
- package/src/components/chat/mingo-welcome.tsx +6 -1
- package/dist/chunk-7C5G45KU.cjs.map +0 -1
- package/dist/chunk-TPJJJ6KC.js.map +0 -1
- /package/dist/{chunk-DEEBJBFQ.js.map → chunk-2L6XJRWU.js.map} +0 -0
- /package/dist/{chunk-WCRJWZUA.js.map → chunk-2ZMEIVHB.js.map} +0 -0
- /package/dist/{chunk-TV6VD6LP.js.map → chunk-3CUHOXPN.js.map} +0 -0
- /package/dist/{chunk-J65CQLX6.js.map → chunk-3NOGHXE5.js.map} +0 -0
- /package/dist/{chunk-FNK67HTC.js.map → chunk-HYW3BYDX.js.map} +0 -0
- /package/dist/{chunk-6DH2TCRH.js.map → chunk-KFEIMA2T.js.map} +0 -0
- /package/dist/{chunk-563D7EB2.js.map → chunk-KJNTCTV4.js.map} +0 -0
- /package/dist/{chunk-VNWWOPIY.js.map → chunk-PZYSR23M.js.map} +0 -0
- /package/dist/{chunk-HALW7FPF.js.map → chunk-S3X2KEFA.js.map} +0 -0
- /package/dist/{chunk-V4U7ASRM.js.map → chunk-WQ4OIM4E.js.map} +0 -0
- /package/dist/{chunk-BRERE4E5.js.map → chunk-XF3GIE5U.js.map} +0 -0
|
@@ -6143,12 +6143,15 @@ function MingoChatHistoryRow({
|
|
|
6143
6143
|
}
|
|
6144
6144
|
);
|
|
6145
6145
|
}
|
|
6146
|
-
function MingoChatHistorySkeleton({
|
|
6146
|
+
function MingoChatHistorySkeleton({
|
|
6147
|
+
className,
|
|
6148
|
+
searchable = false
|
|
6149
|
+
}) {
|
|
6147
6150
|
const groups = [
|
|
6148
6151
|
{ withBadge: 2, widths: ["w-3/5", "w-4/5", "w-2/5", "w-3/4"] },
|
|
6149
6152
|
{ withBadge: 0, widths: ["w-1/2", "w-3/5", "w-2/3"] }
|
|
6150
6153
|
];
|
|
6151
|
-
return /* @__PURE__ */
|
|
6154
|
+
return /* @__PURE__ */ jsxs30(
|
|
6152
6155
|
"div",
|
|
6153
6156
|
{
|
|
6154
6157
|
"aria-hidden": true,
|
|
@@ -6156,20 +6159,51 @@ function MingoChatHistorySkeleton({ className }) {
|
|
|
6156
6159
|
"flex flex-1 min-h-0 flex-col gap-[var(--spacing-system-m)] overflow-hidden",
|
|
6157
6160
|
className
|
|
6158
6161
|
),
|
|
6159
|
-
children:
|
|
6160
|
-
/* @__PURE__ */
|
|
6161
|
-
|
|
6162
|
-
"div",
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6162
|
+
children: [
|
|
6163
|
+
searchable && /* @__PURE__ */ jsxs30("div", { className: "flex h-11 md:h-12 shrink-0 items-center gap-2 rounded-[6px] border border-ods-border bg-ods-card px-3", children: [
|
|
6164
|
+
/* @__PURE__ */ jsx34("div", { className: "size-4 md:size-6 shrink-0 animate-pulse rounded bg-ods-border" }),
|
|
6165
|
+
/* @__PURE__ */ jsx34("div", { className: "h-4 w-32 animate-pulse rounded bg-ods-border" })
|
|
6166
|
+
] }),
|
|
6167
|
+
groups.map((group, g) => /* @__PURE__ */ jsxs30("div", { className: "flex shrink-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
6168
|
+
/* @__PURE__ */ jsx34("div", { className: "h-3 w-16 animate-pulse rounded bg-ods-border" }),
|
|
6169
|
+
/* @__PURE__ */ jsx34("div", { className: "overflow-hidden rounded-md border border-ods-border", children: group.widths.map((w, i) => /* @__PURE__ */ jsxs30(
|
|
6170
|
+
"div",
|
|
6171
|
+
{
|
|
6172
|
+
className: "flex h-12 items-center gap-[var(--spacing-system-xsf)] bg-ods-bg border-b border-ods-border px-[var(--spacing-system-s)] last:border-b-0",
|
|
6173
|
+
children: [
|
|
6174
|
+
i < group.withBadge && /* @__PURE__ */ jsx34("div", { className: "h-8 w-8 shrink-0 animate-pulse rounded-md bg-ods-border" }),
|
|
6175
|
+
/* @__PURE__ */ jsx34("div", { className: cn("h-4 animate-pulse rounded bg-ods-border", w) })
|
|
6176
|
+
]
|
|
6177
|
+
},
|
|
6178
|
+
i
|
|
6179
|
+
)) })
|
|
6180
|
+
] }, g))
|
|
6181
|
+
]
|
|
6182
|
+
}
|
|
6183
|
+
);
|
|
6184
|
+
}
|
|
6185
|
+
function DialogSearchBar({
|
|
6186
|
+
initialValue,
|
|
6187
|
+
onSearchChange
|
|
6188
|
+
}) {
|
|
6189
|
+
const [value, setValue] = React13.useState(initialValue ?? "");
|
|
6190
|
+
const debounced = useDebounce(value, 300);
|
|
6191
|
+
const lastEmitted = React13.useRef(initialValue ?? "");
|
|
6192
|
+
React13.useEffect(() => {
|
|
6193
|
+
if (debounced === lastEmitted.current) return;
|
|
6194
|
+
lastEmitted.current = debounced;
|
|
6195
|
+
onSearchChange(debounced);
|
|
6196
|
+
}, [debounced, onSearchChange]);
|
|
6197
|
+
return /* @__PURE__ */ jsx34(
|
|
6198
|
+
Input,
|
|
6199
|
+
{
|
|
6200
|
+
type: "text",
|
|
6201
|
+
value,
|
|
6202
|
+
onChange: (e) => setValue(e.target.value),
|
|
6203
|
+
placeholder: "Search for Chats",
|
|
6204
|
+
"aria-label": "Search chats",
|
|
6205
|
+
startAdornment: /* @__PURE__ */ jsx34(SearchIcon, {}),
|
|
6206
|
+
className: "shrink-0"
|
|
6173
6207
|
}
|
|
6174
6208
|
);
|
|
6175
6209
|
}
|
|
@@ -6179,12 +6213,15 @@ function MingoChatHistory({
|
|
|
6179
6213
|
onSelectDialog,
|
|
6180
6214
|
onRequestRename,
|
|
6181
6215
|
onRequestArchive,
|
|
6216
|
+
searchQuery,
|
|
6217
|
+
onSearchChange,
|
|
6182
6218
|
hasMore = false,
|
|
6183
6219
|
isLoadingMore = false,
|
|
6184
6220
|
onLoadMore,
|
|
6185
6221
|
className
|
|
6186
6222
|
}) {
|
|
6187
6223
|
const groups = React13.useMemo(() => groupDialogs(dialogs), [dialogs]);
|
|
6224
|
+
const noSearchResults = groups.length === 0 && !!searchQuery?.trim();
|
|
6188
6225
|
const scrollRef = React13.useRef(null);
|
|
6189
6226
|
const [fade, setFade] = React13.useState({ top: false, bottom: false });
|
|
6190
6227
|
const updateFade = React13.useCallback(() => {
|
|
@@ -6223,65 +6260,68 @@ function MingoChatHistory({
|
|
|
6223
6260
|
io.observe(sentinel);
|
|
6224
6261
|
return () => io.disconnect();
|
|
6225
6262
|
}, [hasMore]);
|
|
6226
|
-
return /* @__PURE__ */ jsxs30("div", { className: cn("relative flex flex-1 min-h-0 flex-col", className), children: [
|
|
6227
|
-
/* @__PURE__ */
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
{
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
{
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
/* @__PURE__ */ jsx34(
|
|
6260
|
-
"div",
|
|
6261
|
-
{
|
|
6262
|
-
"aria-hidden": true,
|
|
6263
|
-
className: cn(
|
|
6264
|
-
"pointer-events-none absolute inset-x-0 top-0 h-12 transition-opacity duration-150",
|
|
6265
|
-
fade.top ? "opacity-100" : "opacity-0"
|
|
6266
|
-
),
|
|
6267
|
-
style: {
|
|
6268
|
-
background: "linear-gradient(0deg, transparent 0%, var(--color-bg-card) 100%)"
|
|
6263
|
+
return /* @__PURE__ */ jsxs30("div", { className: cn("relative flex flex-1 min-h-0 flex-col gap-[var(--spacing-system-m)]", className), children: [
|
|
6264
|
+
onSearchChange ? /* @__PURE__ */ jsx34(DialogSearchBar, { initialValue: searchQuery, onSearchChange }) : null,
|
|
6265
|
+
/* @__PURE__ */ jsxs30("div", { className: "relative flex flex-1 min-h-0 flex-col", children: [
|
|
6266
|
+
/* @__PURE__ */ jsxs30(
|
|
6267
|
+
"div",
|
|
6268
|
+
{
|
|
6269
|
+
ref: scrollRef,
|
|
6270
|
+
onScroll: updateFade,
|
|
6271
|
+
className: "flex flex-1 min-h-0 flex-col gap-[var(--spacing-system-m)] overflow-y-auto",
|
|
6272
|
+
children: [
|
|
6273
|
+
noSearchResults ? /* @__PURE__ */ jsx34("p", { className: "py-[var(--spacing-system-m)] text-center text-h5 text-ods-text-secondary", children: "No chats found" }) : groups.map((group) => /* @__PURE__ */ jsxs30(
|
|
6274
|
+
"div",
|
|
6275
|
+
{
|
|
6276
|
+
className: "flex flex-col gap-[var(--spacing-system-xxs)]",
|
|
6277
|
+
children: [
|
|
6278
|
+
/* @__PURE__ */ jsx34("p", { className: "text-h5 text-ods-text-secondary", children: group.label }),
|
|
6279
|
+
/* @__PURE__ */ jsx34("div", { className: "overflow-hidden rounded-md border border-ods-border", children: group.items.map((dialog) => /* @__PURE__ */ jsx34(
|
|
6280
|
+
MingoChatHistoryRow,
|
|
6281
|
+
{
|
|
6282
|
+
dialog,
|
|
6283
|
+
isActive: dialog.id === activeDialogId,
|
|
6284
|
+
onSelect: onSelectDialog,
|
|
6285
|
+
onRequestRename,
|
|
6286
|
+
onRequestArchive
|
|
6287
|
+
},
|
|
6288
|
+
dialog.id
|
|
6289
|
+
)) })
|
|
6290
|
+
]
|
|
6291
|
+
},
|
|
6292
|
+
group.key
|
|
6293
|
+
)),
|
|
6294
|
+
hasMore ? /* @__PURE__ */ jsx34("div", { ref: sentinelRef, className: "h-px shrink-0" }) : null
|
|
6295
|
+
]
|
|
6269
6296
|
}
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6297
|
+
),
|
|
6298
|
+
/* @__PURE__ */ jsx34(
|
|
6299
|
+
"div",
|
|
6300
|
+
{
|
|
6301
|
+
"aria-hidden": true,
|
|
6302
|
+
className: cn(
|
|
6303
|
+
"pointer-events-none absolute inset-x-0 top-0 h-12 transition-opacity duration-150",
|
|
6304
|
+
fade.top ? "opacity-100" : "opacity-0"
|
|
6305
|
+
),
|
|
6306
|
+
style: {
|
|
6307
|
+
background: "linear-gradient(0deg, transparent 0%, var(--color-bg-card) 100%)"
|
|
6308
|
+
}
|
|
6282
6309
|
}
|
|
6283
|
-
|
|
6284
|
-
|
|
6310
|
+
),
|
|
6311
|
+
/* @__PURE__ */ jsx34(
|
|
6312
|
+
"div",
|
|
6313
|
+
{
|
|
6314
|
+
"aria-hidden": true,
|
|
6315
|
+
className: cn(
|
|
6316
|
+
"pointer-events-none absolute inset-x-0 bottom-0 h-12 transition-opacity duration-150",
|
|
6317
|
+
fade.bottom ? "opacity-100" : "opacity-0"
|
|
6318
|
+
),
|
|
6319
|
+
style: {
|
|
6320
|
+
background: "linear-gradient(180deg, transparent 0%, var(--color-bg-card) 100%)"
|
|
6321
|
+
}
|
|
6322
|
+
}
|
|
6323
|
+
)
|
|
6324
|
+
] })
|
|
6285
6325
|
] });
|
|
6286
6326
|
}
|
|
6287
6327
|
|
|
@@ -6330,6 +6370,7 @@ function MingoWelcome({
|
|
|
6330
6370
|
isLoadingHistory = false,
|
|
6331
6371
|
loadError = false,
|
|
6332
6372
|
onRetry,
|
|
6373
|
+
historySearchable = false,
|
|
6333
6374
|
onStartGuideChat,
|
|
6334
6375
|
className
|
|
6335
6376
|
}) {
|
|
@@ -6401,7 +6442,7 @@ function MingoWelcome({
|
|
|
6401
6442
|
children: "Try again"
|
|
6402
6443
|
}
|
|
6403
6444
|
)
|
|
6404
|
-
] }) : isLoadingHistory ? /* @__PURE__ */ jsx35(MingoChatHistorySkeleton, {}) : /* @__PURE__ */ jsx35(Fragment7, { children: /* @__PURE__ */ jsxs31("div", { className: "relative flex flex-1 min-h-0 flex-col", children: [
|
|
6445
|
+
] }) : isLoadingHistory ? /* @__PURE__ */ jsx35(MingoChatHistorySkeleton, { searchable: historySearchable }) : /* @__PURE__ */ jsx35(Fragment7, { children: /* @__PURE__ */ jsxs31("div", { className: "relative flex flex-1 min-h-0 flex-col", children: [
|
|
6405
6446
|
/* @__PURE__ */ jsxs31(
|
|
6406
6447
|
"div",
|
|
6407
6448
|
{
|
|
@@ -47960,14 +48001,18 @@ function EmbeddableChatInner({
|
|
|
47960
48001
|
canRename: mingoDialogCapabilities?.canRename ?? false,
|
|
47961
48002
|
canArchive: mingoDialogCapabilities?.canArchive ?? false,
|
|
47962
48003
|
fetchArchivedDialogs: mingoDialogCapabilities?.fetchArchivedDialogs,
|
|
47963
|
-
unarchiveDialog: mingoDialogCapabilities?.unarchiveDialog
|
|
48004
|
+
unarchiveDialog: mingoDialogCapabilities?.unarchiveDialog,
|
|
48005
|
+
searchQuery: mingoDialogCapabilities?.searchQuery,
|
|
48006
|
+
onSearchChange: mingoDialogCapabilities?.onSearchChange
|
|
47964
48007
|
};
|
|
47965
48008
|
}
|
|
47966
48009
|
return {
|
|
47967
48010
|
canRename: !!effectiveModes.mingo?.renameDialog,
|
|
47968
48011
|
canArchive: !!effectiveModes.mingo?.archiveDialog,
|
|
47969
48012
|
fetchArchivedDialogs: effectiveModes.mingo?.fetchArchivedDialogs,
|
|
47970
|
-
unarchiveDialog: effectiveModes.mingo?.unarchiveDialog
|
|
48013
|
+
unarchiveDialog: effectiveModes.mingo?.unarchiveDialog,
|
|
48014
|
+
searchQuery: void 0,
|
|
48015
|
+
onSearchChange: void 0
|
|
47971
48016
|
};
|
|
47972
48017
|
}, [mingoState, mingoDialogCapabilities, effectiveModes]);
|
|
47973
48018
|
const hasMingoMode = !!effectiveModes.mingo || !!mingoState;
|
|
@@ -48420,20 +48465,30 @@ function EmbeddableChatInner({
|
|
|
48420
48465
|
isLoadingHistory: dialogsInitialLoading,
|
|
48421
48466
|
loadError: dialogsLoadError,
|
|
48422
48467
|
onRetry: reloadDialogs,
|
|
48423
|
-
|
|
48424
|
-
|
|
48425
|
-
|
|
48426
|
-
|
|
48427
|
-
|
|
48428
|
-
|
|
48429
|
-
|
|
48430
|
-
|
|
48431
|
-
|
|
48432
|
-
|
|
48433
|
-
|
|
48468
|
+
historySearchable: !!mingoCaps.onSearchChange,
|
|
48469
|
+
dialogHistory: (
|
|
48470
|
+
// Keep the history (and its search bar) mounted during an
|
|
48471
|
+
// active search even at 0 results — otherwise a no-match
|
|
48472
|
+
// query would unmount the bar and flash the new-user
|
|
48473
|
+
// greeting. `MingoWelcome` renders `dialogHistory` with top
|
|
48474
|
+
// priority, so this wins over the greeting.
|
|
48475
|
+
dialogs.length > 0 || !!mingoCaps.searchQuery ? /* @__PURE__ */ jsx326(
|
|
48476
|
+
MingoChatHistory,
|
|
48477
|
+
{
|
|
48478
|
+
dialogs,
|
|
48479
|
+
onSelectDialog: handleSelectDialog,
|
|
48480
|
+
onRequestRename: mingoCaps.canRename ? setRenameTarget : void 0,
|
|
48481
|
+
onRequestArchive: mingoCaps.canArchive ? setArchiveTarget : void 0,
|
|
48482
|
+
searchQuery: mingoCaps.searchQuery,
|
|
48483
|
+
onSearchChange: mingoCaps.onSearchChange,
|
|
48484
|
+
hasMore: hasMoreDialogs,
|
|
48485
|
+
isLoadingMore: isDialogsLoading && dialogs.length > 0,
|
|
48486
|
+
onLoadMore: () => {
|
|
48487
|
+
void loadMoreDialogs();
|
|
48488
|
+
}
|
|
48434
48489
|
}
|
|
48435
|
-
|
|
48436
|
-
)
|
|
48490
|
+
) : void 0
|
|
48491
|
+
)
|
|
48437
48492
|
}
|
|
48438
48493
|
)
|
|
48439
48494
|
) : (
|
|
@@ -49516,4 +49571,4 @@ export {
|
|
|
49516
49571
|
LogsList,
|
|
49517
49572
|
assets
|
|
49518
49573
|
};
|
|
49519
|
-
//# sourceMappingURL=chunk-
|
|
49574
|
+
//# sourceMappingURL=chunk-MQHD6CTN.js.map
|