@fv-ui/ai-chat 2.0.0 → 2.0.2
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/README.md +48 -6
- package/dist/index.d.ts +177 -106
- package/dist/style.css +1 -1
- package/es/index.mjs +263 -77
- package/lib/index.js +262 -76
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -946,7 +946,7 @@
|
|
|
946
946
|
operationFailed: "\uC791\uC5C5 \uC2E4\uD328",
|
|
947
947
|
listLoading: "\uBD88\uB7EC\uC624\uB294 \uC911\u2026",
|
|
948
948
|
folders: "\uC774\uC804 \uB300\uD654",
|
|
949
|
-
/** 列表 섹션 제목(
|
|
949
|
+
/** 列表 섹션 제목(폴더 모드) */
|
|
950
950
|
historySessions: "\uC774\uC804 \uB300\uD654",
|
|
951
951
|
newFolder: "\uC0C8 \uD3F4\uB354",
|
|
952
952
|
ungrouped: "\uADF8\uB8F9 \uC5C6\uC74C",
|
|
@@ -985,8 +985,8 @@
|
|
|
985
985
|
searchHistory: "\uAC80\uC0C9 \uAE30\uB85D",
|
|
986
986
|
/** 검색 기록 전체 삭제 버튼 */
|
|
987
987
|
clearHistory: "\uC804\uCCB4 \uC0AD\uC81C",
|
|
988
|
-
/** 이동 대화상자:
|
|
989
|
-
folderFilterPlaceholder: "\uD3F4\
|
|
988
|
+
/** 이동 대화상자: 폴더 필터 입력 placeholder */
|
|
989
|
+
folderFilterPlaceholder: "\uD3F4\uB354 \uD544\uD130"
|
|
990
990
|
},
|
|
991
991
|
scroll: {
|
|
992
992
|
toBottom: "\uB9E8 \uC544\uB798\uB85C \uC2A4\uD06C\uB864"
|
|
@@ -40690,7 +40690,7 @@
|
|
|
40690
40690
|
}
|
|
40691
40691
|
});
|
|
40692
40692
|
|
|
40693
|
-
const _hoisted_1$c = ["onClick"];
|
|
40693
|
+
const _hoisted_1$c = ["data-session-id", "onClick"];
|
|
40694
40694
|
const _hoisted_2$b = ["data-group-key"];
|
|
40695
40695
|
const _hoisted_3$b = { class: "fv-conversations-item-content" };
|
|
40696
40696
|
const _hoisted_4$9 = ["title"];
|
|
@@ -40718,6 +40718,10 @@
|
|
|
40718
40718
|
rowHeight: { type: Number, required: false, default: 32 },
|
|
40719
40719
|
virtualThreshold: { type: Number, required: false, default: 8 },
|
|
40720
40720
|
virtualDisabled: { type: Boolean, required: false, default: true },
|
|
40721
|
+
externalScroll: { type: Boolean, required: false, default: false },
|
|
40722
|
+
scrollTop: { type: Number, required: false, default: 0 },
|
|
40723
|
+
viewportHeight: { type: Number, required: false, default: 0 },
|
|
40724
|
+
offsetTop: { type: Number, required: false, default: 0 },
|
|
40721
40725
|
locale: { type: null, required: false, default: void 0 }
|
|
40722
40726
|
}, {
|
|
40723
40727
|
"selectedKeys": { type: Array, ...{ default: () => [] } },
|
|
@@ -40774,10 +40778,10 @@
|
|
|
40774
40778
|
emit("change", item);
|
|
40775
40779
|
}
|
|
40776
40780
|
const virtualEnabled = vue.computed(
|
|
40777
|
-
() => !props.virtualDisabled && flatItems.value.length > props.virtualThreshold * 2 && props.rowHeight > 0
|
|
40781
|
+
() => (props.externalScroll || !props.virtualDisabled) && flatItems.value.length > props.virtualThreshold * 2 && props.rowHeight > 0
|
|
40778
40782
|
);
|
|
40779
|
-
const
|
|
40780
|
-
const
|
|
40783
|
+
const innerScrollTop = vue.ref(0);
|
|
40784
|
+
const innerViewportHeight = vue.ref(0);
|
|
40781
40785
|
const flatItems = vue.computed(() => {
|
|
40782
40786
|
const list = [];
|
|
40783
40787
|
for (const grp of groupedItems.value) {
|
|
@@ -40788,10 +40792,16 @@
|
|
|
40788
40792
|
const visibleRange = vue.computed(() => {
|
|
40789
40793
|
const total = flatItems.value.length;
|
|
40790
40794
|
if (!virtualEnabled.value) return [0, total];
|
|
40791
|
-
const
|
|
40795
|
+
const viewport = props.externalScroll ? props.viewportHeight : innerViewportHeight.value || props.virtualThreshold * 2 * props.rowHeight;
|
|
40796
|
+
const relativeTop = props.externalScroll ? props.scrollTop - props.offsetTop : innerScrollTop.value;
|
|
40797
|
+
const start = Math.max(0, Math.min(
|
|
40798
|
+
total,
|
|
40799
|
+
Math.floor(relativeTop / props.rowHeight) - props.virtualThreshold
|
|
40800
|
+
));
|
|
40801
|
+
if (viewport <= 0) return [start, start];
|
|
40792
40802
|
const end = Math.min(
|
|
40793
40803
|
total,
|
|
40794
|
-
Math.ceil((
|
|
40804
|
+
Math.max(start, Math.ceil((relativeTop + viewport) / props.rowHeight) + props.virtualThreshold)
|
|
40795
40805
|
);
|
|
40796
40806
|
return [start, end];
|
|
40797
40807
|
});
|
|
@@ -40823,8 +40833,8 @@
|
|
|
40823
40833
|
function onScroll() {
|
|
40824
40834
|
const el = rootRef.value;
|
|
40825
40835
|
if (!el) return;
|
|
40826
|
-
|
|
40827
|
-
|
|
40836
|
+
innerScrollTop.value = el.scrollTop;
|
|
40837
|
+
innerViewportHeight.value = el.clientHeight;
|
|
40828
40838
|
if (!props.hasMore || props.loading) return;
|
|
40829
40839
|
if (el.scrollHeight - el.scrollTop - el.clientHeight > 24) return;
|
|
40830
40840
|
if (loadMoreTimer) return;
|
|
@@ -40836,14 +40846,14 @@
|
|
|
40836
40846
|
function updateViewport() {
|
|
40837
40847
|
const el = rootRef.value;
|
|
40838
40848
|
if (!el) return;
|
|
40839
|
-
|
|
40840
|
-
|
|
40849
|
+
innerScrollTop.value = el.scrollTop;
|
|
40850
|
+
innerViewportHeight.value = el.clientHeight;
|
|
40841
40851
|
}
|
|
40842
40852
|
vue.watch([virtualEnabled, () => flatItems.value.length], () => {
|
|
40843
|
-
if (virtualEnabled.value) vue.nextTick(updateViewport);
|
|
40853
|
+
if (virtualEnabled.value && !props.externalScroll) vue.nextTick(updateViewport);
|
|
40844
40854
|
});
|
|
40845
40855
|
vue.onMounted(() => {
|
|
40846
|
-
if (virtualEnabled.value) updateViewport();
|
|
40856
|
+
if (virtualEnabled.value && !props.externalScroll) updateViewport();
|
|
40847
40857
|
});
|
|
40848
40858
|
vue.onBeforeUnmount(() => {
|
|
40849
40859
|
if (loadMoreTimer) clearTimeout(loadMoreTimer);
|
|
@@ -40922,6 +40932,7 @@
|
|
|
40922
40932
|
"is-first-of-group": row.isFirstOfGroup,
|
|
40923
40933
|
"is-menu-open": menuOpenKey.value === row.item.key
|
|
40924
40934
|
}]),
|
|
40935
|
+
"data-session-id": String(row.item.key),
|
|
40925
40936
|
onClick: ($event) => onItemClick(row.item)
|
|
40926
40937
|
}, [
|
|
40927
40938
|
row.isFirstOfGroup ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -45274,6 +45285,21 @@
|
|
|
45274
45285
|
function useFolderSections(options) {
|
|
45275
45286
|
const folders = vue.ref([]);
|
|
45276
45287
|
const ungroupedCount = vue.ref(0);
|
|
45288
|
+
let sessionStatusCache = /* @__PURE__ */ new Map();
|
|
45289
|
+
function rebuildSessionStatusCache(sessions, folderPages2, ungroupedPage2) {
|
|
45290
|
+
sessionStatusCache = /* @__PURE__ */ new Map();
|
|
45291
|
+
for (const s of sessions) {
|
|
45292
|
+
if (s.status) sessionStatusCache.set(s.id, s.status);
|
|
45293
|
+
}
|
|
45294
|
+
for (const page of Object.values(folderPages2)) {
|
|
45295
|
+
for (const s of page.items) {
|
|
45296
|
+
if (s.status) sessionStatusCache.set(s.id, s.status);
|
|
45297
|
+
}
|
|
45298
|
+
}
|
|
45299
|
+
for (const s of ungroupedPage2.items) {
|
|
45300
|
+
if (s.status) sessionStatusCache.set(s.id, s.status);
|
|
45301
|
+
}
|
|
45302
|
+
}
|
|
45277
45303
|
const expandedFolderIds = vue.ref(/* @__PURE__ */ new Set());
|
|
45278
45304
|
function isFolderExpanded(id) {
|
|
45279
45305
|
return expandedFolderIds.value.has(id);
|
|
@@ -45296,12 +45322,24 @@
|
|
|
45296
45322
|
return folderPages[folderId];
|
|
45297
45323
|
}
|
|
45298
45324
|
const ungroupedPage = vue.reactive(emptyBlockPage());
|
|
45299
|
-
|
|
45300
|
-
|
|
45301
|
-
|
|
45302
|
-
|
|
45303
|
-
|
|
45325
|
+
const folderItems = vue.reactive({});
|
|
45326
|
+
function ensureFolderItemsComputed(folderId) {
|
|
45327
|
+
if (folderId in folderItems) return;
|
|
45328
|
+
const c = vue.computed(
|
|
45329
|
+
() => folderPageOf(folderId).items.map((s) => sessionToConversationItem(s))
|
|
45330
|
+
);
|
|
45331
|
+
folderItems[folderId] = c;
|
|
45304
45332
|
}
|
|
45333
|
+
const ungroupedItems = vue.computed(
|
|
45334
|
+
() => ungroupedPage.items.map((s) => sessionToConversationItem(s))
|
|
45335
|
+
);
|
|
45336
|
+
vue.watch(
|
|
45337
|
+
() => folders.value.map((f) => String(f.folderId)),
|
|
45338
|
+
(ids) => {
|
|
45339
|
+
for (const id of ids) ensureFolderItemsComputed(id);
|
|
45340
|
+
},
|
|
45341
|
+
{ immediate: true }
|
|
45342
|
+
);
|
|
45305
45343
|
let sectionsToken = 0;
|
|
45306
45344
|
async function reloadFolders() {
|
|
45307
45345
|
const token = ++sectionsToken;
|
|
@@ -45326,6 +45364,7 @@
|
|
|
45326
45364
|
for (const key of Object.keys(folderPages)) {
|
|
45327
45365
|
if (!alive.has(key)) delete folderPages[key];
|
|
45328
45366
|
}
|
|
45367
|
+
rebuildSessionStatusCache([], folderPages, ungroupedPage);
|
|
45329
45368
|
} catch {
|
|
45330
45369
|
}
|
|
45331
45370
|
}
|
|
@@ -45340,10 +45379,12 @@
|
|
|
45340
45379
|
status: "ACTIVE",
|
|
45341
45380
|
folderId
|
|
45342
45381
|
});
|
|
45382
|
+
if (folderPages[folderId] !== p) return;
|
|
45343
45383
|
p.items = res.items ?? [];
|
|
45344
45384
|
p.pageNum = 1;
|
|
45345
45385
|
p.hasMore = res.hasMore;
|
|
45346
45386
|
p.loaded = true;
|
|
45387
|
+
rebuildSessionStatusCache([], folderPages, ungroupedPage);
|
|
45347
45388
|
} catch {
|
|
45348
45389
|
} finally {
|
|
45349
45390
|
p.loading = false;
|
|
@@ -45352,17 +45393,20 @@
|
|
|
45352
45393
|
async function loadMoreFolder(folderId) {
|
|
45353
45394
|
const p = folderPageOf(folderId);
|
|
45354
45395
|
if (p.loading || !p.hasMore || !p.loaded) return;
|
|
45396
|
+
const snapshotPageNum = p.pageNum;
|
|
45355
45397
|
p.loading = true;
|
|
45356
45398
|
try {
|
|
45357
45399
|
const res = await options.service().list({
|
|
45358
|
-
pageNum:
|
|
45400
|
+
pageNum: snapshotPageNum + 1,
|
|
45359
45401
|
pageSize: options.pageSize(),
|
|
45360
45402
|
status: "ACTIVE",
|
|
45361
45403
|
folderId
|
|
45362
45404
|
});
|
|
45363
|
-
p
|
|
45405
|
+
if (folderPages[folderId] !== p) return;
|
|
45406
|
+
p.pageNum = snapshotPageNum + 1;
|
|
45364
45407
|
p.items.push(...res.items ?? []);
|
|
45365
45408
|
p.hasMore = res.hasMore;
|
|
45409
|
+
rebuildSessionStatusCache([], folderPages, ungroupedPage);
|
|
45366
45410
|
} catch {
|
|
45367
45411
|
} finally {
|
|
45368
45412
|
p.loading = false;
|
|
@@ -45370,17 +45414,21 @@
|
|
|
45370
45414
|
}
|
|
45371
45415
|
async function loadMoreUngrouped() {
|
|
45372
45416
|
if (ungroupedPage.loading || !ungroupedPage.hasMore || !ungroupedPage.loaded) return;
|
|
45417
|
+
const snapshotPageNum = ungroupedPage.pageNum;
|
|
45418
|
+
const snapshotToken = sectionsToken;
|
|
45373
45419
|
ungroupedPage.loading = true;
|
|
45374
45420
|
try {
|
|
45375
45421
|
const res = await options.service().list({
|
|
45376
|
-
pageNum:
|
|
45422
|
+
pageNum: snapshotPageNum + 1,
|
|
45377
45423
|
pageSize: options.pageSize(),
|
|
45378
45424
|
status: "ACTIVE",
|
|
45379
45425
|
folderId: 0
|
|
45380
45426
|
});
|
|
45381
|
-
ungroupedPage.pageNum
|
|
45427
|
+
if (snapshotToken !== sectionsToken || ungroupedPage.pageNum !== snapshotPageNum) return;
|
|
45428
|
+
ungroupedPage.pageNum = snapshotPageNum + 1;
|
|
45382
45429
|
ungroupedPage.items.push(...res.items ?? []);
|
|
45383
45430
|
ungroupedPage.hasMore = res.hasMore;
|
|
45431
|
+
rebuildSessionStatusCache([], folderPages, ungroupedPage);
|
|
45384
45432
|
} catch {
|
|
45385
45433
|
} finally {
|
|
45386
45434
|
ungroupedPage.loading = false;
|
|
@@ -45416,6 +45464,7 @@
|
|
|
45416
45464
|
for (const folderId of affectedFolderIds) {
|
|
45417
45465
|
if (expandedFolderIds.value.has(folderId)) void ensureFolderPage(folderId);
|
|
45418
45466
|
}
|
|
45467
|
+
rebuildSessionStatusCache([], folderPages, ungroupedPage);
|
|
45419
45468
|
}
|
|
45420
45469
|
return {
|
|
45421
45470
|
folders,
|
|
@@ -45425,14 +45474,18 @@
|
|
|
45425
45474
|
ungroupedPage,
|
|
45426
45475
|
isFolderExpanded,
|
|
45427
45476
|
toggleFolderExpanded,
|
|
45477
|
+
/** folderId → 该区块会话项 computed(响应式对象,读 [id] 即稳定引用数组) */
|
|
45428
45478
|
folderItems,
|
|
45479
|
+
/** 未分组会话项 computed(读 .value 即稳定引用数组) */
|
|
45429
45480
|
ungroupedItems,
|
|
45430
45481
|
reloadFolders,
|
|
45431
45482
|
ensureFolderPage,
|
|
45432
45483
|
loadMoreFolder,
|
|
45433
45484
|
loadMoreUngrouped,
|
|
45434
45485
|
loadMoreSectionsAtBottom,
|
|
45435
|
-
invalidateSessions
|
|
45486
|
+
invalidateSessions,
|
|
45487
|
+
/** 会话状态缓存查找(替代 O(n) 线性查找) */
|
|
45488
|
+
isSessionArchived: (sessionId) => sessionStatusCache.get(sessionId) === "ARCHIVED"
|
|
45436
45489
|
};
|
|
45437
45490
|
}
|
|
45438
45491
|
|
|
@@ -45498,7 +45551,7 @@
|
|
|
45498
45551
|
props: /* @__PURE__ */ vue.mergeModels({
|
|
45499
45552
|
service: { type: Object, required: true },
|
|
45500
45553
|
activeId: { type: String, required: true },
|
|
45501
|
-
pageSize: { type: Number, required: false, default:
|
|
45554
|
+
pageSize: { type: Number, required: false, default: 30 },
|
|
45502
45555
|
searchable: { type: Boolean, required: false, default: true },
|
|
45503
45556
|
brandName: { type: String, required: false, default: "Gizmo" },
|
|
45504
45557
|
brandIcon: { type: String, required: false, default: defaultAvatar },
|
|
@@ -45508,7 +45561,8 @@
|
|
|
45508
45561
|
searchContentPlaceholder: { type: String, required: false, default: "" },
|
|
45509
45562
|
searchHistoryEnabled: { type: Boolean, required: false, default: true },
|
|
45510
45563
|
searchHistoryKey: { type: String, required: false, default: "fv-ai-search-history" },
|
|
45511
|
-
searchHistoryPinned: { type: Boolean, required: false, default: false }
|
|
45564
|
+
searchHistoryPinned: { type: Boolean, required: false, default: false },
|
|
45565
|
+
showOperationError: { type: Boolean, required: false, default: false }
|
|
45512
45566
|
}, {
|
|
45513
45567
|
"collapsed": { type: Boolean, ...{ default: false } },
|
|
45514
45568
|
"collapsedModifiers": {}
|
|
@@ -45524,7 +45578,7 @@
|
|
|
45524
45578
|
);
|
|
45525
45579
|
const folderCapable = vue.computed(() => foldersEnabled(props.service));
|
|
45526
45580
|
const folderMode = vue.computed(
|
|
45527
|
-
() => folderCapable.value && statusFilter.value === "ACTIVE"
|
|
45581
|
+
() => folderCapable.value && statusFilter.value === "ACTIVE" && !keyword.value.trim()
|
|
45528
45582
|
);
|
|
45529
45583
|
const selectMode = vue.ref(false);
|
|
45530
45584
|
const selectedKeys = vue.ref([]);
|
|
@@ -45579,7 +45633,7 @@
|
|
|
45579
45633
|
async function locateSessionInList(sessionId) {
|
|
45580
45634
|
await refreshQuietly();
|
|
45581
45635
|
await vue.nextTick();
|
|
45582
|
-
const inList = sessions.value.
|
|
45636
|
+
const inList = sessions.value.some((s) => s.id === sessionId) || ungroupedPage.items.some((s) => s.id === sessionId) || Object.values(folderPages).some((p) => p.items.some((s) => s.id === sessionId));
|
|
45583
45637
|
if (!inList) return;
|
|
45584
45638
|
const listEl = listScrollbarRef.value?.wrapRef;
|
|
45585
45639
|
if (!listEl) return;
|
|
@@ -45621,7 +45675,8 @@
|
|
|
45621
45675
|
ungroupedItems: ungroupedSessionItems,
|
|
45622
45676
|
reloadFolders,
|
|
45623
45677
|
loadMoreSectionsAtBottom,
|
|
45624
|
-
invalidateSessions: invalidateSessionBlocks
|
|
45678
|
+
invalidateSessions: invalidateSessionBlocks,
|
|
45679
|
+
isSessionArchived
|
|
45625
45680
|
} = useFolderSections({
|
|
45626
45681
|
service: () => props.service,
|
|
45627
45682
|
pageSize: () => props.pageSize
|
|
@@ -45636,6 +45691,96 @@
|
|
|
45636
45691
|
if (wrap.scrollHeight - wrap.scrollTop - wrap.clientHeight > 24) return;
|
|
45637
45692
|
void loadMoreAtBottom();
|
|
45638
45693
|
}
|
|
45694
|
+
const listScrollTop = vue.ref(0);
|
|
45695
|
+
const listViewportHeight = vue.ref(0);
|
|
45696
|
+
const folderItemsOffset = vue.reactive({});
|
|
45697
|
+
const ungroupedOffset = vue.ref(0);
|
|
45698
|
+
function updateSectionOffsets() {
|
|
45699
|
+
let acc = 0;
|
|
45700
|
+
for (const f of folders.value) {
|
|
45701
|
+
const id = String(f.folderId);
|
|
45702
|
+
acc += 32;
|
|
45703
|
+
if (isFolderExpanded(id)) {
|
|
45704
|
+
folderItemsOffset[id] = acc;
|
|
45705
|
+
acc += (folderPages[id]?.items.length ?? 0) * 32;
|
|
45706
|
+
} else {
|
|
45707
|
+
folderItemsOffset[id] = 0;
|
|
45708
|
+
}
|
|
45709
|
+
}
|
|
45710
|
+
ungroupedOffset.value = acc;
|
|
45711
|
+
}
|
|
45712
|
+
function syncListViewport() {
|
|
45713
|
+
const wrap = listScrollbarRef.value?.wrapRef;
|
|
45714
|
+
if (!wrap) return;
|
|
45715
|
+
listScrollTop.value = wrap.scrollTop;
|
|
45716
|
+
listViewportHeight.value = wrap.clientHeight;
|
|
45717
|
+
}
|
|
45718
|
+
const listScrollbarRef = vue.ref();
|
|
45719
|
+
function onListScroll({ scrollTop }) {
|
|
45720
|
+
const wrap = listScrollbarRef.value?.wrapRef;
|
|
45721
|
+
if (!wrap) return;
|
|
45722
|
+
listScrollTop.value = scrollTop;
|
|
45723
|
+
listViewportHeight.value = wrap.clientHeight;
|
|
45724
|
+
if (wrap.scrollHeight - scrollTop - wrap.clientHeight > 24) return;
|
|
45725
|
+
if (folderMode.value) void onBlockScroll();
|
|
45726
|
+
else loadMore();
|
|
45727
|
+
}
|
|
45728
|
+
vue.onMounted(() => {
|
|
45729
|
+
void vue.nextTick(() => {
|
|
45730
|
+
syncListViewport();
|
|
45731
|
+
updateSectionOffsets();
|
|
45732
|
+
});
|
|
45733
|
+
});
|
|
45734
|
+
vue.onActivated(() => {
|
|
45735
|
+
void vue.nextTick(() => {
|
|
45736
|
+
syncListViewport();
|
|
45737
|
+
updateSectionOffsets();
|
|
45738
|
+
});
|
|
45739
|
+
});
|
|
45740
|
+
vue.watch(
|
|
45741
|
+
() => [
|
|
45742
|
+
folders.value.map((f) => String(f.folderId)).join(","),
|
|
45743
|
+
folders.value.map((f) => folderPages[String(f.folderId)]?.items.length ?? 0).join(","),
|
|
45744
|
+
ungroupedPage.items.length,
|
|
45745
|
+
[...expandedFolderIds.value].join(",")
|
|
45746
|
+
],
|
|
45747
|
+
() => {
|
|
45748
|
+
void vue.nextTick(() => {
|
|
45749
|
+
syncListViewport();
|
|
45750
|
+
updateSectionOffsets();
|
|
45751
|
+
});
|
|
45752
|
+
}
|
|
45753
|
+
);
|
|
45754
|
+
vue.watch(
|
|
45755
|
+
collapsed,
|
|
45756
|
+
(c) => {
|
|
45757
|
+
if (c) return;
|
|
45758
|
+
void vue.nextTick(() => {
|
|
45759
|
+
syncListViewport();
|
|
45760
|
+
updateSectionOffsets();
|
|
45761
|
+
});
|
|
45762
|
+
}
|
|
45763
|
+
);
|
|
45764
|
+
let resizeObserver = null;
|
|
45765
|
+
vue.watch(
|
|
45766
|
+
listScrollbarRef,
|
|
45767
|
+
(el) => {
|
|
45768
|
+
resizeObserver?.disconnect();
|
|
45769
|
+
resizeObserver = null;
|
|
45770
|
+
const wrap = el?.wrapRef;
|
|
45771
|
+
if (!wrap || typeof ResizeObserver === "undefined") return;
|
|
45772
|
+
resizeObserver = new ResizeObserver(() => {
|
|
45773
|
+
syncListViewport();
|
|
45774
|
+
updateSectionOffsets();
|
|
45775
|
+
});
|
|
45776
|
+
resizeObserver.observe(wrap);
|
|
45777
|
+
},
|
|
45778
|
+
{ immediate: true, flush: "post" }
|
|
45779
|
+
);
|
|
45780
|
+
vue.onBeforeUnmount(() => {
|
|
45781
|
+
resizeObserver?.disconnect();
|
|
45782
|
+
resizeObserver = null;
|
|
45783
|
+
});
|
|
45639
45784
|
async function loadMoreAtBottom() {
|
|
45640
45785
|
if (!folderMode.value) {
|
|
45641
45786
|
await loadMore();
|
|
@@ -45644,13 +45789,9 @@
|
|
|
45644
45789
|
await loadMoreSectionsAtBottom();
|
|
45645
45790
|
}
|
|
45646
45791
|
function isArchived(id) {
|
|
45792
|
+
if (folderMode.value) return isSessionArchived(id);
|
|
45647
45793
|
const inList = sessions.value.find((s) => s.id === id);
|
|
45648
|
-
|
|
45649
|
-
const all = [
|
|
45650
|
-
...ungroupedPage.items,
|
|
45651
|
-
...Object.values(folderPages).flatMap((p) => p.items)
|
|
45652
|
-
];
|
|
45653
|
-
return all.find((s) => s.id === id)?.status === "ARCHIVED";
|
|
45794
|
+
return inList ? inList.status === "ARCHIVED" : false;
|
|
45654
45795
|
}
|
|
45655
45796
|
async function reload(silent = false) {
|
|
45656
45797
|
pageNum.value = 1;
|
|
@@ -45697,14 +45838,6 @@
|
|
|
45697
45838
|
if (token === reloadToken) loading.value = false;
|
|
45698
45839
|
}
|
|
45699
45840
|
}
|
|
45700
|
-
const listScrollbarRef = vue.ref();
|
|
45701
|
-
function onListScroll({ scrollTop }) {
|
|
45702
|
-
const wrap = listScrollbarRef.value?.wrapRef;
|
|
45703
|
-
if (!wrap) return;
|
|
45704
|
-
if (wrap.scrollHeight - scrollTop - wrap.clientHeight > 24) return;
|
|
45705
|
-
if (folderMode.value) void onBlockScroll();
|
|
45706
|
-
else loadMore();
|
|
45707
|
-
}
|
|
45708
45841
|
function onCreate() {
|
|
45709
45842
|
if (contentSearchVisible.value) closeContentSearch();
|
|
45710
45843
|
searchModalRef.value?.reset();
|
|
@@ -45758,7 +45891,9 @@
|
|
|
45758
45891
|
openMoveSingle(sessionId);
|
|
45759
45892
|
}
|
|
45760
45893
|
} catch {
|
|
45761
|
-
|
|
45894
|
+
if (props.showOperationError) {
|
|
45895
|
+
elementPlus.ElMessage.error(dict.value.sessionSidebar.operationFailed);
|
|
45896
|
+
}
|
|
45762
45897
|
}
|
|
45763
45898
|
}
|
|
45764
45899
|
async function promptRenameSession(sessionId) {
|
|
@@ -45856,7 +45991,9 @@
|
|
|
45856
45991
|
delete folderPages[String(folderId)];
|
|
45857
45992
|
await refreshQuietly();
|
|
45858
45993
|
} catch {
|
|
45859
|
-
|
|
45994
|
+
if (props.showOperationError) {
|
|
45995
|
+
elementPlus.ElMessage.error(dict.value.sessionSidebar.operationFailed);
|
|
45996
|
+
}
|
|
45860
45997
|
}
|
|
45861
45998
|
}
|
|
45862
45999
|
function openMoveSingle(sessionId) {
|
|
@@ -45901,7 +46038,9 @@
|
|
|
45901
46038
|
}
|
|
45902
46039
|
await refreshQuietly();
|
|
45903
46040
|
} catch {
|
|
45904
|
-
|
|
46041
|
+
if (props.showOperationError) {
|
|
46042
|
+
elementPlus.ElMessage.error(dict.value.sessionSidebar.operationFailed);
|
|
46043
|
+
}
|
|
45905
46044
|
}
|
|
45906
46045
|
}
|
|
45907
46046
|
function onFolderMenuCommand(cmd, folderId) {
|
|
@@ -46392,16 +46531,19 @@
|
|
|
46392
46531
|
vue.Fragment,
|
|
46393
46532
|
{ key: 0 },
|
|
46394
46533
|
[
|
|
46395
|
-
vue.unref(folderSessionItems)
|
|
46534
|
+
vue.unref(folderSessionItems)[String(f.folderId)].length || vue.unref(folderPages)[String(f.folderId)]?.loading || vue.unref(folderPages)[String(f.folderId)]?.hasMore ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
|
|
46396
46535
|
key: 0,
|
|
46397
46536
|
class: "fv-ai-sidebar-folder-items",
|
|
46398
|
-
items: vue.unref(folderSessionItems)
|
|
46537
|
+
items: vue.unref(folderSessionItems)[String(f.folderId)],
|
|
46399
46538
|
active: __props.activeId ?? void 0,
|
|
46400
46539
|
loading: vue.unref(folderPages)[String(f.folderId)]?.loading,
|
|
46401
46540
|
"has-more": vue.unref(folderPages)[String(f.folderId)]?.hasMore,
|
|
46402
46541
|
locale: __props.locale,
|
|
46403
46542
|
selectable: selectMode.value,
|
|
46404
|
-
"
|
|
46543
|
+
"external-scroll": "",
|
|
46544
|
+
"scroll-top": listScrollTop.value,
|
|
46545
|
+
"viewport-height": listViewportHeight.value,
|
|
46546
|
+
"offset-top": folderItemsOffset[String(f.folderId)] ?? 0,
|
|
46405
46547
|
"selected-keys": selectedKeys.value,
|
|
46406
46548
|
"onUpdate:selectedKeys": _cache[6] || (_cache[6] = ($event) => selectedKeys.value = $event),
|
|
46407
46549
|
"onUpdate:active": onSelect,
|
|
@@ -46490,8 +46632,8 @@
|
|
|
46490
46632
|
]),
|
|
46491
46633
|
_: 3
|
|
46492
46634
|
/* FORWARDED */
|
|
46493
|
-
}, 8, ["items", "active", "loading", "has-more", "locale", "selectable", "selected-keys"])) : vue.createCommentVNode("v-if", true),
|
|
46494
|
-
vue.unref(folderPages)[String(f.folderId)]?.loading && vue.unref(folderSessionItems)
|
|
46635
|
+
}, 8, ["items", "active", "loading", "has-more", "locale", "selectable", "scroll-top", "viewport-height", "offset-top", "selected-keys"])) : vue.createCommentVNode("v-if", true),
|
|
46636
|
+
vue.unref(folderPages)[String(f.folderId)]?.loading && vue.unref(folderSessionItems)[String(f.folderId)].length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_28$1, [
|
|
46495
46637
|
vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "is-loading" }, {
|
|
46496
46638
|
default: vue.withCtx(() => [
|
|
46497
46639
|
vue.createVNode(vue.unref(ElementPlusIconsVue.Loading))
|
|
@@ -46519,13 +46661,16 @@
|
|
|
46519
46661
|
ungroupedSessions.value.length || vue.unref(ungroupedPage).loading || vue.unref(ungroupedPage).hasMore ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
|
|
46520
46662
|
key: 0,
|
|
46521
46663
|
class: "fv-ai-sidebar-ungrouped-items",
|
|
46522
|
-
items: vue.unref(ungroupedSessionItems)
|
|
46664
|
+
items: vue.unref(ungroupedSessionItems),
|
|
46523
46665
|
active: __props.activeId ?? void 0,
|
|
46524
46666
|
loading: vue.unref(ungroupedPage).loading,
|
|
46525
46667
|
"has-more": vue.unref(ungroupedPage).hasMore,
|
|
46526
46668
|
locale: __props.locale,
|
|
46527
46669
|
selectable: selectMode.value,
|
|
46528
|
-
"
|
|
46670
|
+
"external-scroll": "",
|
|
46671
|
+
"scroll-top": listScrollTop.value,
|
|
46672
|
+
"viewport-height": listViewportHeight.value,
|
|
46673
|
+
"offset-top": ungroupedOffset.value,
|
|
46529
46674
|
"selected-keys": selectedKeys.value,
|
|
46530
46675
|
"onUpdate:selectedKeys": _cache[7] || (_cache[7] = ($event) => selectedKeys.value = $event),
|
|
46531
46676
|
"onUpdate:active": onSelect,
|
|
@@ -46614,7 +46759,7 @@
|
|
|
46614
46759
|
]),
|
|
46615
46760
|
_: 3
|
|
46616
46761
|
/* FORWARDED */
|
|
46617
|
-
}, 8, ["items", "active", "loading", "has-more", "locale", "selectable", "selected-keys"])) : vue.createCommentVNode("v-if", true)
|
|
46762
|
+
}, 8, ["items", "active", "loading", "has-more", "locale", "selectable", "scroll-top", "viewport-height", "offset-top", "selected-keys"])) : vue.createCommentVNode("v-if", true)
|
|
46618
46763
|
],
|
|
46619
46764
|
64
|
|
46620
46765
|
/* STABLE_FRAGMENT */
|
|
@@ -46812,9 +46957,12 @@
|
|
|
46812
46957
|
"page-size": __props.pageSize,
|
|
46813
46958
|
locale: __props.locale,
|
|
46814
46959
|
placeholder: __props.searchContentPlaceholder,
|
|
46960
|
+
"search-history-enabled": __props.searchHistoryEnabled,
|
|
46961
|
+
"search-history-key": __props.searchHistoryKey,
|
|
46962
|
+
"search-history-pinned": __props.searchHistoryPinned,
|
|
46815
46963
|
onSelect: onSearchSessionSelect,
|
|
46816
46964
|
onContentSelect: onSearchContentSelect
|
|
46817
|
-
}, null, 8, ["modelValue", "service", "page-size", "locale", "placeholder"])) : vue.createCommentVNode("v-if", true)
|
|
46965
|
+
}, null, 8, ["modelValue", "service", "page-size", "locale", "placeholder", "search-history-enabled", "search-history-key", "search-history-pinned"])) : vue.createCommentVNode("v-if", true)
|
|
46818
46966
|
]));
|
|
46819
46967
|
};
|
|
46820
46968
|
}
|
|
@@ -47522,6 +47670,7 @@
|
|
|
47522
47670
|
title: { type: String, required: false, default: "" },
|
|
47523
47671
|
avatar: { type: String, required: false, default: "" },
|
|
47524
47672
|
service: { type: Object, required: true },
|
|
47673
|
+
showOperationError: { type: Boolean, required: false, default: false },
|
|
47525
47674
|
adapter: { type: Object, required: true },
|
|
47526
47675
|
sessionId: { type: String, required: false, default: "" },
|
|
47527
47676
|
placeholder: { type: String, required: false, default: "" },
|
|
@@ -47538,6 +47687,9 @@
|
|
|
47538
47687
|
searchContent: { type: Boolean, required: false, default: true },
|
|
47539
47688
|
searchPlaceholder: { type: String, required: false, default: "" },
|
|
47540
47689
|
searchContentPlaceholder: { type: String, required: false, default: "" },
|
|
47690
|
+
searchHistoryEnabled: { type: Boolean, required: false, default: true },
|
|
47691
|
+
searchHistoryKey: { type: String, required: false, default: "" },
|
|
47692
|
+
searchHistoryPinned: { type: Boolean, required: false, default: false },
|
|
47541
47693
|
toolStepLabel: { type: Function, required: false, default: void 0 },
|
|
47542
47694
|
allowAttachments: { type: Boolean, required: false, default: false },
|
|
47543
47695
|
accept: { type: String, required: false, default: "" },
|
|
@@ -47685,24 +47837,37 @@
|
|
|
47685
47837
|
const folder = historyFolders.value.find((f) => String(f.folderId) === folderId);
|
|
47686
47838
|
if (!folder) return;
|
|
47687
47839
|
if (cmd === "rename-folder") {
|
|
47840
|
+
if (!props.service.renameFolder) return;
|
|
47841
|
+
let value;
|
|
47688
47842
|
try {
|
|
47689
|
-
|
|
47843
|
+
;
|
|
47844
|
+
({ value } = await elementPlus.ElMessageBox.prompt(
|
|
47690
47845
|
dict.value.sessionSidebar.folderNamePlaceholder,
|
|
47691
47846
|
dict.value.sessionSidebar.renameFolder,
|
|
47692
47847
|
{
|
|
47693
47848
|
confirmButtonText: dict.value.common.confirm,
|
|
47694
47849
|
cancelButtonText: dict.value.common.cancel,
|
|
47695
|
-
inputValue: folder.name
|
|
47850
|
+
inputValue: folder.name,
|
|
47851
|
+
// 与侧栏 FvAiFolderDialog 同上限(30 字),超长直接拒收
|
|
47852
|
+
inputValidator: (v) => !v || !v.trim() ? dict.value.sessionSidebar.folderNameRequired : v.trim().length > 30 ? dict.value.sessionSidebar.folderNameRequired : true
|
|
47696
47853
|
}
|
|
47697
|
-
);
|
|
47698
|
-
|
|
47699
|
-
|
|
47700
|
-
|
|
47701
|
-
|
|
47702
|
-
|
|
47854
|
+
));
|
|
47855
|
+
} catch {
|
|
47856
|
+
return;
|
|
47857
|
+
}
|
|
47858
|
+
const name = value.trim().slice(0, 30);
|
|
47859
|
+
if (!name) return;
|
|
47860
|
+
try {
|
|
47861
|
+
await props.service.renameFolder({ folderId, name });
|
|
47862
|
+
elementPlus.ElMessage.success(dict.value.sessionSidebar.folderRenamed);
|
|
47863
|
+
await loadHistory(true);
|
|
47703
47864
|
} catch {
|
|
47865
|
+
if (props.showOperationError) {
|
|
47866
|
+
elementPlus.ElMessage.error(dict.value.sessionSidebar.operationFailed);
|
|
47867
|
+
}
|
|
47704
47868
|
}
|
|
47705
47869
|
} else if (cmd === "delete-folder") {
|
|
47870
|
+
if (!props.service.removeFolder) return;
|
|
47706
47871
|
try {
|
|
47707
47872
|
await elementPlus.ElMessageBox.confirm(
|
|
47708
47873
|
dict.value.sessionSidebar.deleteFolderConfirm.split("{name}").join(folder.name),
|
|
@@ -47713,10 +47878,17 @@
|
|
|
47713
47878
|
type: "warning"
|
|
47714
47879
|
}
|
|
47715
47880
|
);
|
|
47881
|
+
} catch {
|
|
47882
|
+
return;
|
|
47883
|
+
}
|
|
47884
|
+
try {
|
|
47716
47885
|
await props.service.removeFolder(folderId);
|
|
47717
47886
|
elementPlus.ElMessage.success(dict.value.sessionSidebar.folderDeleted);
|
|
47718
47887
|
await loadHistory(true);
|
|
47719
47888
|
} catch {
|
|
47889
|
+
if (props.showOperationError) {
|
|
47890
|
+
elementPlus.ElMessage.error(dict.value.sessionSidebar.operationFailed);
|
|
47891
|
+
}
|
|
47720
47892
|
}
|
|
47721
47893
|
}
|
|
47722
47894
|
}
|
|
@@ -47762,7 +47934,9 @@
|
|
|
47762
47934
|
moveDialogVisible.value = true;
|
|
47763
47935
|
}
|
|
47764
47936
|
} catch {
|
|
47765
|
-
|
|
47937
|
+
if (props.showOperationError) {
|
|
47938
|
+
elementPlus.ElMessage.error(dict.value.sessionSidebar.operationFailed);
|
|
47939
|
+
}
|
|
47766
47940
|
}
|
|
47767
47941
|
}
|
|
47768
47942
|
async function promptRenameHistorySession(sessionId) {
|
|
@@ -47836,7 +48010,9 @@
|
|
|
47836
48010
|
target != null && target !== "" ? String(target) : void 0
|
|
47837
48011
|
);
|
|
47838
48012
|
} catch {
|
|
47839
|
-
|
|
48013
|
+
if (props.showOperationError) {
|
|
48014
|
+
elementPlus.ElMessage.error(dict.value.sessionSidebar.operationFailed);
|
|
48015
|
+
}
|
|
47840
48016
|
}
|
|
47841
48017
|
}
|
|
47842
48018
|
function onNewChat() {
|
|
@@ -48068,6 +48244,7 @@
|
|
|
48068
48244
|
isMaximized.value = !isMaximized.value;
|
|
48069
48245
|
historyOpen.value = false;
|
|
48070
48246
|
searchVisible.value = false;
|
|
48247
|
+
moveDialogVisible.value = false;
|
|
48071
48248
|
}
|
|
48072
48249
|
vue.watch(
|
|
48073
48250
|
() => props.modelValue,
|
|
@@ -48075,6 +48252,7 @@
|
|
|
48075
48252
|
if (!v) {
|
|
48076
48253
|
isMaximized.value = false;
|
|
48077
48254
|
searchVisible.value = false;
|
|
48255
|
+
moveDialogVisible.value = false;
|
|
48078
48256
|
sidebarRef.value?.closeSearch();
|
|
48079
48257
|
}
|
|
48080
48258
|
}
|
|
@@ -48389,11 +48567,15 @@
|
|
|
48389
48567
|
"search-content": __props.searchContent,
|
|
48390
48568
|
"search-placeholder": __props.searchPlaceholder,
|
|
48391
48569
|
"search-content-placeholder": __props.searchContentPlaceholder,
|
|
48570
|
+
"search-history-enabled": __props.searchHistoryEnabled,
|
|
48571
|
+
"search-history-key": __props.searchHistoryKey,
|
|
48572
|
+
"search-history-pinned": __props.searchHistoryPinned,
|
|
48573
|
+
"show-operation-error": __props.showOperationError,
|
|
48392
48574
|
onSelect: onSidebarSelect,
|
|
48393
48575
|
onNewChat,
|
|
48394
48576
|
onRemoved: onSidebarRemoved,
|
|
48395
48577
|
onContentSelect
|
|
48396
|
-
}, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale", "search-content", "search-placeholder", "search-content-placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
48578
|
+
}, null, 8, ["collapsed", "service", "active-id", "brand-name", "brand-icon", "locale", "search-content", "search-placeholder", "search-content-placeholder", "search-history-enabled", "search-history-key", "search-history-pinned", "show-operation-error"])) : vue.createCommentVNode("v-if", true),
|
|
48397
48579
|
vue.createElementVNode(
|
|
48398
48580
|
"div",
|
|
48399
48581
|
{
|
|
@@ -48602,9 +48784,12 @@
|
|
|
48602
48784
|
service: __props.service,
|
|
48603
48785
|
locale: __props.locale,
|
|
48604
48786
|
placeholder: __props.searchContentPlaceholder,
|
|
48787
|
+
"search-history-enabled": __props.searchHistoryEnabled,
|
|
48788
|
+
"search-history-key": __props.searchHistoryKey,
|
|
48789
|
+
"search-history-pinned": __props.searchHistoryPinned,
|
|
48605
48790
|
onSelect: onSearchSessionSelect,
|
|
48606
48791
|
onContentSelect: onSearchContentSelect
|
|
48607
|
-
}, null, 8, ["modelValue", "service", "locale", "placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
48792
|
+
}, null, 8, ["modelValue", "service", "locale", "placeholder", "search-history-enabled", "search-history-key", "search-history-pinned"])) : vue.createCommentVNode("v-if", true),
|
|
48608
48793
|
vue.createElementVNode(
|
|
48609
48794
|
"div",
|
|
48610
48795
|
{
|
|
@@ -48770,10 +48955,10 @@
|
|
|
48770
48955
|
vue.Fragment,
|
|
48771
48956
|
{ key: 0 },
|
|
48772
48957
|
[
|
|
48773
|
-
vue.unref(historyFolderItems)
|
|
48958
|
+
vue.unref(historyFolderItems)[String(f.folderId)].length || vue.unref(historyFolderPages)[String(f.folderId)]?.loading || vue.unref(historyFolderPages)[String(f.folderId)]?.hasMore ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
|
|
48774
48959
|
key: 0,
|
|
48775
48960
|
class: "fv-ai-sidebar-folder-items",
|
|
48776
|
-
items: vue.unref(historyFolderItems)
|
|
48961
|
+
items: vue.unref(historyFolderItems)[String(f.folderId)],
|
|
48777
48962
|
active: activeSessionId.value,
|
|
48778
48963
|
loading: vue.unref(historyFolderPages)[String(f.folderId)]?.loading,
|
|
48779
48964
|
"has-more": vue.unref(historyFolderPages)[String(f.folderId)]?.hasMore,
|
|
@@ -48782,7 +48967,7 @@
|
|
|
48782
48967
|
"onUpdate:active": onSelectSession,
|
|
48783
48968
|
onMenuCommand: onHistoryMenuCommand
|
|
48784
48969
|
}, {
|
|
48785
|
-
menu: vue.withCtx((
|
|
48970
|
+
menu: vue.withCtx(() => [
|
|
48786
48971
|
vue.createVNode(vue.unref(elementPlus.ElDropdownItem), { command: "prompt-rename" }, {
|
|
48787
48972
|
default: vue.withCtx(() => [
|
|
48788
48973
|
vue.createTextVNode(
|
|
@@ -48839,7 +49024,7 @@
|
|
|
48839
49024
|
_: 1
|
|
48840
49025
|
/* STABLE */
|
|
48841
49026
|
}, 8, ["items", "active", "loading", "has-more", "locale"])) : vue.createCommentVNode("v-if", true),
|
|
48842
|
-
vue.unref(historyFolderPages)[String(f.folderId)]?.loading && vue.unref(historyFolderItems)
|
|
49027
|
+
vue.unref(historyFolderPages)[String(f.folderId)]?.loading && vue.unref(historyFolderItems)[String(f.folderId)].length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_25, [
|
|
48843
49028
|
vue.createVNode(vue.unref(elementPlus.ElIcon), { class: "is-loading" }, {
|
|
48844
49029
|
default: vue.withCtx(() => [
|
|
48845
49030
|
vue.createVNode(vue.unref(ElementPlusIconsVue.Loading))
|
|
@@ -48867,7 +49052,7 @@
|
|
|
48867
49052
|
vue.unref(historyUngroupedPage).items.length || vue.unref(historyUngroupedPage).loading || vue.unref(historyUngroupedPage).hasMore ? (vue.openBlock(), vue.createBlock(_sfc_main$c, {
|
|
48868
49053
|
key: 0,
|
|
48869
49054
|
class: "fv-ai-sidebar-ungrouped-items",
|
|
48870
|
-
items: vue.unref(historyUngroupedItems)
|
|
49055
|
+
items: vue.unref(historyUngroupedItems),
|
|
48871
49056
|
active: activeSessionId.value,
|
|
48872
49057
|
loading: vue.unref(historyUngroupedPage).loading,
|
|
48873
49058
|
"has-more": vue.unref(historyUngroupedPage).hasMore,
|
|
@@ -48876,7 +49061,7 @@
|
|
|
48876
49061
|
"onUpdate:active": onSelectSession,
|
|
48877
49062
|
onMenuCommand: onHistoryMenuCommand
|
|
48878
49063
|
}, {
|
|
48879
|
-
menu: vue.withCtx((
|
|
49064
|
+
menu: vue.withCtx(() => [
|
|
48880
49065
|
vue.createVNode(vue.unref(elementPlus.ElDropdownItem), { command: "prompt-rename" }, {
|
|
48881
49066
|
default: vue.withCtx(() => [
|
|
48882
49067
|
vue.createTextVNode(
|
|
@@ -48950,7 +49135,7 @@
|
|
|
48950
49135
|
"onUpdate:active": onSelectSession,
|
|
48951
49136
|
onMenuCommand: onHistoryMenuCommand
|
|
48952
49137
|
}, {
|
|
48953
|
-
menu: vue.withCtx((
|
|
49138
|
+
menu: vue.withCtx(() => [
|
|
48954
49139
|
vue.createVNode(vue.unref(elementPlus.ElDropdownItem), { command: "prompt-rename" }, {
|
|
48955
49140
|
default: vue.withCtx(() => [
|
|
48956
49141
|
vue.createTextVNode(
|
|
@@ -49483,7 +49668,7 @@
|
|
|
49483
49668
|
});
|
|
49484
49669
|
|
|
49485
49670
|
setPlatformBridge(createWebBridge());
|
|
49486
|
-
const version = "
|
|
49671
|
+
const version = "2.0.0";
|
|
49487
49672
|
const FvSparkleIcon = vue.defineComponent({
|
|
49488
49673
|
name: "FvSparkleIcon",
|
|
49489
49674
|
inheritAttrs: false,
|
|
@@ -49502,6 +49687,7 @@
|
|
|
49502
49687
|
exports.FvAiFolderDialog = _sfc_main$b;
|
|
49503
49688
|
exports.FvAiMessage = _sfc_main$8;
|
|
49504
49689
|
exports.FvAiMessages = _sfc_main$7;
|
|
49690
|
+
exports.FvAiSearchModal = _sfc_main$4;
|
|
49505
49691
|
exports.FvAiSessionSidebar = _sfc_main$3;
|
|
49506
49692
|
exports.FvAttachments = _sfc_main$d;
|
|
49507
49693
|
exports.FvBlobHalo = _sfc_main$a;
|