@arbidocs/blocks 0.5.0 → 0.5.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/dist/{ConnectedCallDock-BNKBAKIT.cjs → ConnectedCallDock-NNX5PEPK.cjs} +7 -7
- package/dist/{ConnectedCallDock-BNKBAKIT.cjs.map → ConnectedCallDock-NNX5PEPK.cjs.map} +1 -1
- package/dist/{ConnectedCallDock-MBAAUETC.js → ConnectedCallDock-UGGY6YUK.js} +6 -6
- package/dist/{ConnectedCallDock-MBAAUETC.js.map → ConnectedCallDock-UGGY6YUK.js.map} +1 -1
- package/dist/{ConnectedCallRoom-QRWD2SDG.cjs → ConnectedCallRoom-B7SZHQNV.cjs} +7 -7
- package/dist/{ConnectedCallRoom-QRWD2SDG.cjs.map → ConnectedCallRoom-B7SZHQNV.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-XJUXVNMB.js → ConnectedCallRoom-I4HPWMK2.js} +6 -6
- package/dist/{ConnectedCallRoom-XJUXVNMB.js.map → ConnectedCallRoom-I4HPWMK2.js.map} +1 -1
- package/dist/calls/index.cjs +2 -2
- package/dist/calls/index.js +2 -2
- package/dist/chat/chat-page-types.d.ts +5 -0
- package/dist/chat/index.cjs +83 -83
- package/dist/chat/index.js +3 -3
- package/dist/{chunk-CEAUPIRB.cjs → chunk-4KMYUM7Q.cjs} +5 -5
- package/dist/{chunk-CEAUPIRB.cjs.map → chunk-4KMYUM7Q.cjs.map} +1 -1
- package/dist/{chunk-3BJIS4GV.cjs → chunk-5D32XL3E.cjs} +5 -4
- package/dist/chunk-5D32XL3E.cjs.map +1 -0
- package/dist/{chunk-XKTYKZWV.js → chunk-7GAS4N7L.js} +4 -3
- package/dist/chunk-7GAS4N7L.js.map +1 -0
- package/dist/{chunk-YMBDPI7X.js → chunk-BKNHCORH.js} +23 -15
- package/dist/chunk-BKNHCORH.js.map +1 -0
- package/dist/{chunk-G4O5AKUO.js → chunk-BWKBLCWC.js} +3 -3
- package/dist/{chunk-G4O5AKUO.js.map → chunk-BWKBLCWC.js.map} +1 -1
- package/dist/{chunk-KJXJRX33.js → chunk-DDCMLHXF.js} +4 -4
- package/dist/chunk-DDCMLHXF.js.map +1 -0
- package/dist/{chunk-LDRHUYRE.cjs → chunk-EBRYYVNH.cjs} +7 -7
- package/dist/{chunk-LDRHUYRE.cjs.map → chunk-EBRYYVNH.cjs.map} +1 -1
- package/dist/{chunk-6TEYZRY5.cjs → chunk-LHWKA2XI.cjs} +23 -15
- package/dist/chunk-LHWKA2XI.cjs.map +1 -0
- package/dist/{chunk-QSC6Y55X.cjs → chunk-PAW2PC2M.cjs} +9 -9
- package/dist/{chunk-QSC6Y55X.cjs.map → chunk-PAW2PC2M.cjs.map} +1 -1
- package/dist/{chunk-26EQQQBX.js → chunk-PY5D6HBD.js} +5 -5
- package/dist/{chunk-26EQQQBX.js.map → chunk-PY5D6HBD.js.map} +1 -1
- package/dist/{chunk-TBRX5RNH.js → chunk-XSA46YJV.js} +3 -3
- package/dist/{chunk-TBRX5RNH.js.map → chunk-XSA46YJV.js.map} +1 -1
- package/dist/{chunk-OK3UJMO4.cjs → chunk-Z2XZ2D4N.cjs} +4 -4
- package/dist/chunk-Z2XZ2D4N.cjs.map +1 -0
- package/dist/connect/index.cjs +243 -159
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +175 -91
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +13 -13
- package/dist/connect/viewer.js +3 -3
- package/dist/connection/files/grid/documentGridBus.d.ts +12 -10
- package/dist/connection/messenger/ConnectedChatThread.d.ts +3 -1
- package/dist/connection/messenger/ConnectedMessenger.d.ts +21 -3
- package/dist/index.cjs +83 -83
- package/dist/index.js +3 -3
- package/dist/studio/index.cjs +3 -3
- package/dist/studio/index.js +2 -2
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/chunk-3BJIS4GV.cjs.map +0 -1
- package/dist/chunk-6TEYZRY5.cjs.map +0 -1
- package/dist/chunk-KJXJRX33.js.map +0 -1
- package/dist/chunk-OK3UJMO4.cjs.map +0 -1
- package/dist/chunk-XKTYKZWV.js.map +0 -1
- package/dist/chunk-YMBDPI7X.js.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -9,9 +9,9 @@ var chunkBMFXDDJG_cjs = require('../chunk-BMFXDDJG.cjs');
|
|
|
9
9
|
var chunkOU3RGQFX_cjs = require('../chunk-OU3RGQFX.cjs');
|
|
10
10
|
require('../chunk-REH7PX3N.cjs');
|
|
11
11
|
var chunkDAEDRTIN_cjs = require('../chunk-DAEDRTIN.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunk5D32XL3E_cjs = require('../chunk-5D32XL3E.cjs');
|
|
13
13
|
var chunkMDFXGRLY_cjs = require('../chunk-MDFXGRLY.cjs');
|
|
14
|
-
var
|
|
14
|
+
var chunkEBRYYVNH_cjs = require('../chunk-EBRYYVNH.cjs');
|
|
15
15
|
var chunkIFAIUKQQ_cjs = require('../chunk-IFAIUKQQ.cjs');
|
|
16
16
|
var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
|
|
17
17
|
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
@@ -69,8 +69,8 @@ require('../chunk-ZW6FPIFC.cjs');
|
|
|
69
69
|
var chunk25YFJLFP_cjs = require('../chunk-25YFJLFP.cjs');
|
|
70
70
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
71
71
|
var chunkF66OH26L_cjs = require('../chunk-F66OH26L.cjs');
|
|
72
|
-
var
|
|
73
|
-
var
|
|
72
|
+
var chunkLHWKA2XI_cjs = require('../chunk-LHWKA2XI.cjs');
|
|
73
|
+
var chunkZ2XZ2D4N_cjs = require('../chunk-Z2XZ2D4N.cjs');
|
|
74
74
|
require('../chunk-B6MVQCXW.cjs');
|
|
75
75
|
var chunkDHOIO3B7_cjs = require('../chunk-DHOIO3B7.cjs');
|
|
76
76
|
var chunk76L6LOP3_cjs = require('../chunk-76L6LOP3.cjs');
|
|
@@ -2013,7 +2013,7 @@ function RunThread({
|
|
|
2013
2013
|
}) {
|
|
2014
2014
|
const chat = react.useConversation({ workspaceId });
|
|
2015
2015
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2016
|
-
|
|
2016
|
+
chunkLHWKA2XI_cjs.ChatPage,
|
|
2017
2017
|
{
|
|
2018
2018
|
chat: { ...chat, threads: chat.threads.filter((t) => t.id === conversationId) },
|
|
2019
2019
|
singleThread: true,
|
|
@@ -22408,16 +22408,13 @@ function liveApi() {
|
|
|
22408
22408
|
}
|
|
22409
22409
|
return registeredApi;
|
|
22410
22410
|
}
|
|
22411
|
-
function applyDocumentRowChange({ add, update
|
|
22411
|
+
function applyDocumentRowChange({ add, update }) {
|
|
22412
22412
|
const api = liveApi();
|
|
22413
22413
|
if (!api) return;
|
|
22414
22414
|
const present = [...update, ...add].filter((doc) => api.getRowNode(doc.external_id));
|
|
22415
|
-
|
|
22416
|
-
if (present.length) tx.update = present;
|
|
22417
|
-
if (remove.length) tx.remove = remove.map((id) => ({ external_id: id }));
|
|
22418
|
-
if (!tx.update && !tx.remove) return;
|
|
22415
|
+
if (!present.length) return;
|
|
22419
22416
|
try {
|
|
22420
|
-
api.applyTransactionAsync(
|
|
22417
|
+
api.applyTransactionAsync({ update: present });
|
|
22421
22418
|
} catch (err) {
|
|
22422
22419
|
console.error("[documentGridBus] applyTransactionAsync failed:", err);
|
|
22423
22420
|
}
|
|
@@ -25929,7 +25926,8 @@ function ConnectedChatThread({
|
|
|
25929
25926
|
chat,
|
|
25930
25927
|
peer,
|
|
25931
25928
|
host = {},
|
|
25932
|
-
onMessageSent
|
|
25929
|
+
onMessageSent,
|
|
25930
|
+
placeholder = "Type a message\u2026"
|
|
25933
25931
|
}) {
|
|
25934
25932
|
const arbi = react.useArbi();
|
|
25935
25933
|
const { notify: notify17 } = chunk25YFJLFP_cjs.useBlocksEnvironment();
|
|
@@ -26129,7 +26127,7 @@ function ConnectedChatThread({
|
|
|
26129
26127
|
}
|
|
26130
26128
|
return /* @__PURE__ */ jsxRuntime.jsxs(React7.Fragment, { children: [
|
|
26131
26129
|
isFirstOfDay && /* @__PURE__ */ jsxRuntime.jsx(react.DateSeparator, { children: formatDay(msg.created_at) }),
|
|
26132
|
-
!isSent && startsPeerRun(i) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
26130
|
+
!isSent && startsPeerRun(i) && /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageAuthor, { children: renderUser2(memberById(msg.sender_ext_id) ?? null) }),
|
|
26133
26131
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
26134
26132
|
react.ChatBubble,
|
|
26135
26133
|
{
|
|
@@ -26223,7 +26221,7 @@ function ConnectedChatThread({
|
|
|
26223
26221
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
26224
26222
|
react.DmComposer,
|
|
26225
26223
|
{
|
|
26226
|
-
placeholder
|
|
26224
|
+
placeholder,
|
|
26227
26225
|
allowAttachments: !isAgentChat,
|
|
26228
26226
|
disabled: !chat && !peerId,
|
|
26229
26227
|
busy: isSending,
|
|
@@ -26491,8 +26489,14 @@ function ConnectedMessenger({
|
|
|
26491
26489
|
listActions,
|
|
26492
26490
|
directActions,
|
|
26493
26491
|
groupActions,
|
|
26494
|
-
host = {}
|
|
26492
|
+
host = {},
|
|
26493
|
+
layout = "panel",
|
|
26494
|
+
emptyThread,
|
|
26495
|
+
onBack,
|
|
26496
|
+
className,
|
|
26497
|
+
style
|
|
26495
26498
|
}) {
|
|
26499
|
+
const isPhone = chunkFX3K6LNZ_cjs.useIsPhone();
|
|
26496
26500
|
const meId = react.myChatId(react.useArbi());
|
|
26497
26501
|
const { rows: chatRows, isLoading, findRow } = useMessengerRows(people);
|
|
26498
26502
|
const { data: userSettings } = react.useUserSettings();
|
|
@@ -26548,88 +26552,168 @@ function ConnectedMessenger({
|
|
|
26548
26552
|
}
|
|
26549
26553
|
) : null;
|
|
26550
26554
|
const emptyState = isLoading ? "Loading conversations\u2026" : "No one to message yet \u2014 invite a colleague above.";
|
|
26551
|
-
|
|
26555
|
+
const isSplit = layout === "split";
|
|
26556
|
+
const chips = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
26557
|
+
onInvite && /* @__PURE__ */ jsxRuntime.jsx(chunkMOIZ2R5X_cjs.DmInviteChip, { onClick: onInvite }),
|
|
26558
|
+
PeoplePicker && /* @__PURE__ */ jsxRuntime.jsx(
|
|
26559
|
+
chunkMOIZ2R5X_cjs.DmInviteChip,
|
|
26560
|
+
{
|
|
26561
|
+
testId: "dm-new-group-chip",
|
|
26562
|
+
title: "New group",
|
|
26563
|
+
description: "Message several people at once",
|
|
26564
|
+
onClick: () => setPicker({ mode: "new-group", fixed: [] })
|
|
26565
|
+
}
|
|
26566
|
+
),
|
|
26567
|
+
listActions
|
|
26568
|
+
] });
|
|
26569
|
+
const list = isSplit ? (
|
|
26570
|
+
// The page's rail: the "Conversations · N colleagues" heading, the chips pinned under it.
|
|
26571
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
26572
|
+
react.ConversationList,
|
|
26573
|
+
{
|
|
26574
|
+
conversations: rows,
|
|
26575
|
+
selectedPeerId: activeId,
|
|
26576
|
+
onSelect: onOpen,
|
|
26577
|
+
emptyState,
|
|
26578
|
+
lead: chips,
|
|
26579
|
+
className: isPhone ? "w-full flex-1 border-b-0" : void 0
|
|
26580
|
+
}
|
|
26581
|
+
)
|
|
26582
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
26583
|
+
react.ConversationList,
|
|
26584
|
+
{
|
|
26585
|
+
conversations: rows,
|
|
26586
|
+
selectedPeerId: null,
|
|
26587
|
+
onSelect: onOpen,
|
|
26588
|
+
emptyState,
|
|
26589
|
+
header: chips,
|
|
26590
|
+
className: "w-full flex-1 border-b-0 border-r-0 md:w-full md:border-r-0"
|
|
26591
|
+
}
|
|
26592
|
+
);
|
|
26593
|
+
if (!activeId && layout === "panel") {
|
|
26552
26594
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkDAEDRTIN_cjs.PanelFrame, { testId: "dm-messenger", children: [
|
|
26553
|
-
|
|
26554
|
-
react.ConversationList,
|
|
26555
|
-
{
|
|
26556
|
-
conversations: rows,
|
|
26557
|
-
selectedPeerId: null,
|
|
26558
|
-
onSelect: onOpen,
|
|
26559
|
-
emptyState,
|
|
26560
|
-
header: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
26561
|
-
onInvite && /* @__PURE__ */ jsxRuntime.jsx(chunkMOIZ2R5X_cjs.DmInviteChip, { onClick: onInvite }),
|
|
26562
|
-
PeoplePicker && /* @__PURE__ */ jsxRuntime.jsx(
|
|
26563
|
-
chunkMOIZ2R5X_cjs.DmInviteChip,
|
|
26564
|
-
{
|
|
26565
|
-
testId: "dm-new-group-chip",
|
|
26566
|
-
title: "New group",
|
|
26567
|
-
description: "Message several people at once",
|
|
26568
|
-
onClick: () => setPicker({ mode: "new-group", fixed: [] })
|
|
26569
|
-
}
|
|
26570
|
-
),
|
|
26571
|
-
listActions
|
|
26572
|
-
] }),
|
|
26573
|
-
className: "w-full flex-1 border-b-0 border-r-0 md:w-full md:border-r-0"
|
|
26574
|
-
}
|
|
26575
|
-
),
|
|
26595
|
+
list,
|
|
26576
26596
|
peoplePicker
|
|
26577
26597
|
] });
|
|
26578
26598
|
}
|
|
26579
26599
|
const groupChat = activeIsGroup ? active.chat : null;
|
|
26580
26600
|
const groupTitle = active?.title ?? null;
|
|
26581
26601
|
const presence = activePeer ? host.presenceOf?.(activePeer.external_id) : void 0;
|
|
26582
|
-
|
|
26583
|
-
|
|
26584
|
-
|
|
26585
|
-
|
|
26586
|
-
|
|
26587
|
-
|
|
26588
|
-
|
|
26589
|
-
|
|
26590
|
-
|
|
26591
|
-
|
|
26592
|
-
|
|
26593
|
-
|
|
26594
|
-
|
|
26595
|
-
|
|
26596
|
-
|
|
26597
|
-
|
|
26598
|
-
"
|
|
26599
|
-
|
|
26600
|
-
|
|
26601
|
-
|
|
26602
|
-
|
|
26603
|
-
|
|
26604
|
-
|
|
26605
|
-
|
|
26606
|
-
|
|
26607
|
-
|
|
26608
|
-
|
|
26609
|
-
|
|
26610
|
-
|
|
26611
|
-
|
|
26612
|
-
|
|
26613
|
-
|
|
26614
|
-
|
|
26615
|
-
|
|
26616
|
-
|
|
26617
|
-
|
|
26618
|
-
|
|
26619
|
-
|
|
26620
|
-
|
|
26621
|
-
|
|
26622
|
-
|
|
26623
|
-
|
|
26624
|
-
|
|
26625
|
-
|
|
26626
|
-
|
|
26627
|
-
|
|
26628
|
-
|
|
26629
|
-
|
|
26630
|
-
|
|
26631
|
-
|
|
26632
|
-
|
|
26602
|
+
const threadName = active?.title ?? (activePeer ? react.userDisplayName(activePeer) : null);
|
|
26603
|
+
const thread = activeId ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26604
|
+
chunkDAEDRTIN_cjs.PanelFrame,
|
|
26605
|
+
{
|
|
26606
|
+
testId: isSplit ? "dm-messenger-thread" : "dm-messenger",
|
|
26607
|
+
className: isSplit ? "min-w-0 flex-1 bg-card" : void 0,
|
|
26608
|
+
children: [
|
|
26609
|
+
isSplit && isPhone && onBack && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26610
|
+
ui.Button,
|
|
26611
|
+
{
|
|
26612
|
+
size: "sm",
|
|
26613
|
+
variant: "ghost",
|
|
26614
|
+
className: "self-start",
|
|
26615
|
+
onClick: onBack,
|
|
26616
|
+
"data-testid": "dm-messenger-back",
|
|
26617
|
+
children: [
|
|
26618
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "size-4" }),
|
|
26619
|
+
" All conversations"
|
|
26620
|
+
]
|
|
26621
|
+
}
|
|
26622
|
+
),
|
|
26623
|
+
groupChat ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
26624
|
+
chunkMOIZ2R5X_cjs.DmThreadHeader,
|
|
26625
|
+
{
|
|
26626
|
+
avatar: groupChat.kind === "meeting" ? /* @__PURE__ */ jsxRuntime.jsx(MeetingAvatar, {}) : /* @__PURE__ */ jsxRuntime.jsx(GroupAvatars, { users: active.others, host }),
|
|
26627
|
+
name: groupTitle ?? (groupChat.kind === "meeting" ? "Meeting" : "Group"),
|
|
26628
|
+
email: `${groupChat.members.length} members`,
|
|
26629
|
+
menu: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
26630
|
+
groupActions?.(groupChat, groupTitle),
|
|
26631
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
26632
|
+
ui.Button,
|
|
26633
|
+
{
|
|
26634
|
+
size: "sm",
|
|
26635
|
+
variant: "ghost",
|
|
26636
|
+
onClick: () => setMembersOpen(true),
|
|
26637
|
+
"data-testid": "group-members-button",
|
|
26638
|
+
"aria-label": "Group members",
|
|
26639
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UsersRound, { className: "size-4" })
|
|
26640
|
+
}
|
|
26641
|
+
)
|
|
26642
|
+
] })
|
|
26643
|
+
}
|
|
26644
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
26645
|
+
chunkMOIZ2R5X_cjs.DmThreadHeader,
|
|
26646
|
+
{
|
|
26647
|
+
avatar: activePeer ? avatar(activePeer) : void 0,
|
|
26648
|
+
name: activePeer ? react.userDisplayName(activePeer) : "Conversation",
|
|
26649
|
+
badge: activePeer && isAgent5(activePeer) ? /* @__PURE__ */ jsxRuntime.jsx(ui.AgentBadge, {}) : void 0,
|
|
26650
|
+
presence: presence ? /* @__PURE__ */ jsxRuntime.jsx(ui.PresenceLabel, { status: presence }) : void 0,
|
|
26651
|
+
email: activePeer?.email,
|
|
26652
|
+
menu: activePeer ? directActions?.(activePeer, {
|
|
26653
|
+
// A personal agent never carries over into a group, and a self-chat has no peer.
|
|
26654
|
+
addPeople: isAgent5(activePeer) || activeIsSelf || !PeoplePicker ? void 0 : () => setPicker({ mode: "from-direct", fixed: [activePeer] })
|
|
26655
|
+
}) : void 0
|
|
26656
|
+
}
|
|
26657
|
+
),
|
|
26658
|
+
groupChat ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
26659
|
+
ConnectedGroupMembers,
|
|
26660
|
+
{
|
|
26661
|
+
chat: groupChat,
|
|
26662
|
+
title: groupTitle,
|
|
26663
|
+
open: membersOpen,
|
|
26664
|
+
onOpenChange: setMembersOpen,
|
|
26665
|
+
onLeft: () => onClose?.(activeId),
|
|
26666
|
+
host
|
|
26667
|
+
},
|
|
26668
|
+
groupChat.external_id
|
|
26669
|
+
) : null,
|
|
26670
|
+
peoplePicker,
|
|
26671
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkDAEDRTIN_cjs.PanelFrameBody, { className: "flex flex-col overflow-visible", children: active ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
26672
|
+
ConnectedChatThread,
|
|
26673
|
+
{
|
|
26674
|
+
chat: active.chat,
|
|
26675
|
+
peer: activePeer,
|
|
26676
|
+
host,
|
|
26677
|
+
placeholder: isSplit && threadName ? `Message ${threadName.split(" ")[0]}\u2026` : void 0
|
|
26678
|
+
},
|
|
26679
|
+
activeId
|
|
26680
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: isLoading ? "Loading conversation\u2026" : "This conversation is no longer available." }) })
|
|
26681
|
+
]
|
|
26682
|
+
}
|
|
26683
|
+
) : null;
|
|
26684
|
+
if (layout === "panel") return thread;
|
|
26685
|
+
const showList = !isPhone || !activeId;
|
|
26686
|
+
const showThread = !isPhone || !!activeId;
|
|
26687
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26688
|
+
"div",
|
|
26689
|
+
{
|
|
26690
|
+
"data-testid": "dm-messenger",
|
|
26691
|
+
"data-layout": "split",
|
|
26692
|
+
style: style ?? { height: "calc(100vh - 16rem)", minHeight: "28rem" },
|
|
26693
|
+
className: ui.cn(
|
|
26694
|
+
"relative flex flex-col overflow-hidden rounded-xl border border-border bg-card md:flex-row",
|
|
26695
|
+
className
|
|
26696
|
+
),
|
|
26697
|
+
children: [
|
|
26698
|
+
showList && list,
|
|
26699
|
+
showThread && (thread ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
26700
|
+
"section",
|
|
26701
|
+
{
|
|
26702
|
+
className: "flex min-h-0 min-w-0 flex-1 flex-col items-center justify-center gap-3 p-8 text-center",
|
|
26703
|
+
"data-testid": "dm-messenger-empty-thread",
|
|
26704
|
+
children: emptyThread ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
26705
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-14 items-center justify-center rounded-full bg-accent", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessagesSquare, { className: "size-6 text-muted-foreground" }) }),
|
|
26706
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
26707
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold text-foreground", children: "No conversation selected" }),
|
|
26708
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mx-auto mt-1 max-w-xs text-xs text-muted-foreground", children: "Choose a colleague from the list to read the thread and send a direct message." })
|
|
26709
|
+
] })
|
|
26710
|
+
] })
|
|
26711
|
+
}
|
|
26712
|
+
)),
|
|
26713
|
+
!thread && peoplePicker
|
|
26714
|
+
]
|
|
26715
|
+
}
|
|
26716
|
+
);
|
|
26633
26717
|
}
|
|
26634
26718
|
var STANDARD_TIER_TAG = "Standard";
|
|
26635
26719
|
var PREMIUM_TIER_TAG = "Premium";
|
|
@@ -30063,7 +30147,7 @@ var AgentStepsComponent = ({
|
|
|
30063
30147
|
summary && !isActive && (step.narration ? (
|
|
30064
30148
|
/* Narration is PROSE (headings, bold, lists): render markdown, not raw asterisks.
|
|
30065
30149
|
Tool summaries stay plain text: one-line headlines where a clamp matters. */
|
|
30066
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkQEE4DOEU_cjs.StepNarration, { index: step.index, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30150
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQEE4DOEU_cjs.StepNarration, { index: step.index, children: /* @__PURE__ */ jsxRuntime.jsx(chunkEBRYYVNH_cjs.ConnectedMarkdown, { isStreaming: false, children: summary }) })
|
|
30067
30151
|
) : /* @__PURE__ */ jsxRuntime.jsx(chunkQEE4DOEU_cjs.StepSummary, { index: step.index, multiLine: isMultiLine, children: summary })),
|
|
30068
30152
|
details.map((d, di) => /* @__PURE__ */ jsxRuntime.jsx(chunkQEE4DOEU_cjs.StepDetail, { index: step.index, children: d }, di)),
|
|
30069
30153
|
showOutcome && /* @__PURE__ */ jsxRuntime.jsx(chunkQEE4DOEU_cjs.StepOutcome, { index: step.index, failed: outcomeFailed, children: step.outcome }),
|
|
@@ -30623,13 +30707,13 @@ function withAnswerTable(components) {
|
|
|
30623
30707
|
}
|
|
30624
30708
|
return merged;
|
|
30625
30709
|
}
|
|
30626
|
-
var renderMarkdown = ({ components, isStreaming, children }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
30710
|
+
var renderMarkdown = ({ components, isStreaming, children }) => /* @__PURE__ */ jsxRuntime.jsx(chunkEBRYYVNH_cjs.ConnectedMarkdown, { components: withAnswerTable(components), isStreaming, children });
|
|
30627
30711
|
function LinkInAnswer({ href, children, ...props }) {
|
|
30628
|
-
const docId =
|
|
30712
|
+
const docId = chunkZ2XZ2D4N_cjs.workspaceDocIdFromHref(href, chunk25YFJLFP_cjs.useBlocksEnvironment().runtimeConfig.deploymentDomain);
|
|
30629
30713
|
if (docId) {
|
|
30630
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30714
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEBRYYVNH_cjs.InternalDocLink, { docId, href, ...props, children });
|
|
30631
30715
|
}
|
|
30632
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30716
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEBRYYVNH_cjs.ExternalLink, { href, ...props, children });
|
|
30633
30717
|
}
|
|
30634
30718
|
var ConnectedCitationRendererComponent = ({
|
|
30635
30719
|
alwaysInteractive,
|
|
@@ -30732,7 +30816,7 @@ var SourceChips = ({ messageId, citations, citationData }) => {
|
|
|
30732
30816
|
session.setActiveCitationKey(`${messageId}-${num}`);
|
|
30733
30817
|
if (source.chunk.metadata.chunk_ext_id) openChunk(source.chunk);
|
|
30734
30818
|
};
|
|
30735
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30819
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageSources, { messageId, sources, onOpenSource: open });
|
|
30736
30820
|
};
|
|
30737
30821
|
function MessageDetailsModal({
|
|
30738
30822
|
open,
|
|
@@ -30975,13 +31059,13 @@ var ConversationComposerComponent = function ConversationComposer({
|
|
|
30975
31059
|
if (recipient.hasBody) sendDraft();
|
|
30976
31060
|
};
|
|
30977
31061
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30978
|
-
|
|
31062
|
+
chunkLHWKA2XI_cjs.Composer.Root,
|
|
30979
31063
|
{
|
|
30980
31064
|
onSubmit: handleSubmit,
|
|
30981
31065
|
formRef,
|
|
30982
31066
|
isBranching,
|
|
30983
|
-
notice: isBranching ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
30984
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31067
|
+
notice: isBranching ? /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.Composer.Notice, { onCancel: onCancelBranching }) : void 0,
|
|
31068
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkLHWKA2XI_cjs.Composer.Frame, { children: [
|
|
30985
31069
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30986
31070
|
chunkF66OH26L_cjs.SlashMenu,
|
|
30987
31071
|
{
|
|
@@ -31043,7 +31127,7 @@ var ConversationComposerComponent = function ConversationComposer({
|
|
|
31043
31127
|
)
|
|
31044
31128
|
] }),
|
|
31045
31129
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31046
|
-
|
|
31130
|
+
chunkLHWKA2XI_cjs.Composer.Input,
|
|
31047
31131
|
{
|
|
31048
31132
|
value: newMessage,
|
|
31049
31133
|
onValueChange: (next) => {
|
|
@@ -31067,7 +31151,7 @@ var ConversationComposerComponent = function ConversationComposer({
|
|
|
31067
31151
|
}
|
|
31068
31152
|
),
|
|
31069
31153
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31070
|
-
|
|
31154
|
+
chunkLHWKA2XI_cjs.Composer.Toolbar,
|
|
31071
31155
|
{
|
|
31072
31156
|
leading: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
31073
31157
|
leftButton,
|
|
@@ -31105,7 +31189,7 @@ var ConversationSendButton = React7.memo(function ConversationSendButton2({
|
|
|
31105
31189
|
const draftMessage = react.useArbiSessionState(react.selectDraft);
|
|
31106
31190
|
const showRetryIcon = hasOrphanedMessage && draftMessage === "";
|
|
31107
31191
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31108
|
-
|
|
31192
|
+
chunkLHWKA2XI_cjs.ComposerSend,
|
|
31109
31193
|
{
|
|
31110
31194
|
onSend: onClick,
|
|
31111
31195
|
isRetry: showRetryIcon,
|
|
@@ -31167,7 +31251,7 @@ var MicButton = React7.memo(function MicButton2({
|
|
|
31167
31251
|
const isBusy = isTranscribing;
|
|
31168
31252
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
31169
31253
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31170
|
-
|
|
31254
|
+
chunkLHWKA2XI_cjs.ComposerVoiceButton,
|
|
31171
31255
|
{
|
|
31172
31256
|
isRecording,
|
|
31173
31257
|
isBusy,
|
|
@@ -31211,7 +31295,7 @@ function WorkflowStepMessage({
|
|
|
31211
31295
|
const docId = ref ? chunkDHOIO3B7_cjs.splitDocRef(ref).id : void 0;
|
|
31212
31296
|
const doc = documents.find((d) => d.external_id === docId);
|
|
31213
31297
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31214
|
-
|
|
31298
|
+
chunkLHWKA2XI_cjs.WorkflowStepChip,
|
|
31215
31299
|
{
|
|
31216
31300
|
step,
|
|
31217
31301
|
title: found?.title,
|
|
@@ -31603,7 +31687,7 @@ var MessageComponent = ({
|
|
|
31603
31687
|
const actions = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
31604
31688
|
branchControl,
|
|
31605
31689
|
isUser ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31606
|
-
|
|
31690
|
+
chunkLHWKA2XI_cjs.MessageActionMenu,
|
|
31607
31691
|
{
|
|
31608
31692
|
items: menuItems,
|
|
31609
31693
|
heading: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -31614,7 +31698,7 @@ var MessageComponent = ({
|
|
|
31614
31698
|
}
|
|
31615
31699
|
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
31616
31700
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31617
|
-
|
|
31701
|
+
chunkLHWKA2XI_cjs.MessageActionButton,
|
|
31618
31702
|
{
|
|
31619
31703
|
onClick: (e) => {
|
|
31620
31704
|
e.stopPropagation();
|
|
@@ -31629,7 +31713,7 @@ var MessageComponent = ({
|
|
|
31629
31713
|
}
|
|
31630
31714
|
),
|
|
31631
31715
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31632
|
-
|
|
31716
|
+
chunkLHWKA2XI_cjs.MessageActionButton,
|
|
31633
31717
|
{
|
|
31634
31718
|
onClick: (e) => {
|
|
31635
31719
|
e.stopPropagation();
|
|
@@ -31642,7 +31726,7 @@ var MessageComponent = ({
|
|
|
31642
31726
|
}
|
|
31643
31727
|
),
|
|
31644
31728
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31645
|
-
|
|
31729
|
+
chunkLHWKA2XI_cjs.MessageActionMenu,
|
|
31646
31730
|
{
|
|
31647
31731
|
items: menuItems,
|
|
31648
31732
|
heading: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -31660,7 +31744,7 @@ var MessageComponent = ({
|
|
|
31660
31744
|
] });
|
|
31661
31745
|
const isBareStopped = isEmptyStopped && visibleStepCount === 0;
|
|
31662
31746
|
const footer = settledForHeader && !isBareStopped && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31663
|
-
|
|
31747
|
+
chunkLHWKA2XI_cjs.MessageFooter,
|
|
31664
31748
|
{
|
|
31665
31749
|
role: messageRole,
|
|
31666
31750
|
align: isOtherPerson ? "start" : "end",
|
|
@@ -31758,7 +31842,7 @@ var MessageComponent = ({
|
|
|
31758
31842
|
);
|
|
31759
31843
|
}
|
|
31760
31844
|
return /* @__PURE__ */ jsxRuntime.jsx(chunkTM2D4XT4_cjs.ErrorBoundary, { testId: "message-error-boundary", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31761
|
-
|
|
31845
|
+
chunkLHWKA2XI_cjs.MessageRoot,
|
|
31762
31846
|
{
|
|
31763
31847
|
role: messageRole,
|
|
31764
31848
|
messageId,
|
|
@@ -31766,15 +31850,15 @@ var MessageComponent = ({
|
|
|
31766
31850
|
...rest,
|
|
31767
31851
|
children: [
|
|
31768
31852
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
31769
|
-
|
|
31853
|
+
chunkLHWKA2XI_cjs.MessageContent,
|
|
31770
31854
|
{
|
|
31771
31855
|
role: messageRole,
|
|
31772
31856
|
messageId,
|
|
31773
31857
|
align: isOtherPerson ? "start" : "end",
|
|
31774
31858
|
children: [
|
|
31775
|
-
startsAuthorRun && messageAuthorUser && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31859
|
+
startsAuthorRun && messageAuthorUser && /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageAuthor, { children: /* @__PURE__ */ jsxRuntime.jsx(DocumentUser, { user: messageAuthorUser, variant: "pill" }) }),
|
|
31776
31860
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
31777
|
-
|
|
31861
|
+
chunkLHWKA2XI_cjs.MessageBubble,
|
|
31778
31862
|
{
|
|
31779
31863
|
ref: messageRef,
|
|
31780
31864
|
role: messageRole,
|
|
@@ -31784,7 +31868,7 @@ var MessageComponent = ({
|
|
|
31784
31868
|
className: isOtherPerson ? "border border-border bg-card" : void 0,
|
|
31785
31869
|
children: [
|
|
31786
31870
|
!isUser && isGenerating && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31787
|
-
|
|
31871
|
+
chunkLHWKA2XI_cjs.MessageByline,
|
|
31788
31872
|
{
|
|
31789
31873
|
messageId,
|
|
31790
31874
|
identity: (
|
|
@@ -31799,9 +31883,9 @@ var MessageComponent = ({
|
|
|
31799
31883
|
statusLabel
|
|
31800
31884
|
}
|
|
31801
31885
|
),
|
|
31802
|
-
subagentTaskRecord && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31803
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
31804
|
-
settledNarration ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31886
|
+
subagentTaskRecord && /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageSubagentBadge, { messageId }),
|
|
31887
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkLHWKA2XI_cjs.MessageBody, { messageId, children: [
|
|
31888
|
+
settledNarration ? /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageNarration, { messageId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkEBRYYVNH_cjs.ConnectedMarkdown, { isStreaming: false, children: settledNarration }) }) : null,
|
|
31805
31889
|
liveContent ? role === "assistant" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31806
31890
|
ConnectedCitationRenderer,
|
|
31807
31891
|
{
|
|
@@ -31811,7 +31895,7 @@ var MessageComponent = ({
|
|
|
31811
31895
|
messageId: message.external_id || "unknown",
|
|
31812
31896
|
isStreaming: isGenerating
|
|
31813
31897
|
}
|
|
31814
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
31898
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(chunkEBRYYVNH_cjs.ConnectedMarkdown, { isStreaming: isGenerating, children: shell.linkMentions(
|
|
31815
31899
|
isUser && liveContent.startsWith("/pa ") ? liveContent.slice(4) : liveContent,
|
|
31816
31900
|
message.mentions
|
|
31817
31901
|
) }) : null,
|
|
@@ -32144,7 +32228,7 @@ function ConnectedMessageList({ messages }) {
|
|
|
32144
32228
|
const isGenerating = react.useArbiSessionState((state) => state.generating[currentConversationId || ""]?.isGenerating) ?? false;
|
|
32145
32229
|
const isLiveTurn = isGenerating && messages[messages.length - 1]?.isLoading === true;
|
|
32146
32230
|
const lastMessage = displayMessages[displayMessages.length - 1];
|
|
32147
|
-
const statusMessage =
|
|
32231
|
+
const statusMessage = chunkLHWKA2XI_cjs.useStreamAnnouncement({
|
|
32148
32232
|
isStreaming: isGenerating,
|
|
32149
32233
|
text: lastMessage?.role === "assistant" ? stripThinking(lastMessage.content ?? "") : "",
|
|
32150
32234
|
resetKey: currentConversationId
|
|
@@ -32234,22 +32318,22 @@ function ConnectedMessageList({ messages }) {
|
|
|
32234
32318
|
chunkF66OH26L_cjs.flashMessage(target);
|
|
32235
32319
|
session.setDeepLinkMessageId(null);
|
|
32236
32320
|
}, [deepLinkMessageId, virtualItems, session]);
|
|
32237
|
-
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
32321
|
+
const status = /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageList.Status, { message: statusMessage });
|
|
32238
32322
|
if (transcript.length === 0) {
|
|
32239
32323
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
32240
32324
|
status,
|
|
32241
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32325
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageList.Empty, {})
|
|
32242
32326
|
] });
|
|
32243
32327
|
}
|
|
32244
32328
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
32245
32329
|
status,
|
|
32246
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
32247
|
-
mainSiblingLeaf && /* @__PURE__ */ jsxRuntime.jsx(
|
|
32248
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32330
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkLHWKA2XI_cjs.MessageList.Root, { isBusy: isGenerating, children: [
|
|
32331
|
+
mainSiblingLeaf && /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageList.Banner, { onBack: () => setParentMessageId(mainSiblingLeaf) }),
|
|
32332
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageList.Rows, { totalSize: rowVirtualizer.getTotalSize(), children: virtualItems.map((virtualItem) => {
|
|
32249
32333
|
const entry = transcript[virtualItem.index];
|
|
32250
32334
|
if (entry.type === "activity") {
|
|
32251
32335
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32252
|
-
|
|
32336
|
+
chunkLHWKA2XI_cjs.MessageList.Row,
|
|
32253
32337
|
{
|
|
32254
32338
|
ref: rowVirtualizer.measureElement,
|
|
32255
32339
|
index: virtualItem.index,
|
|
@@ -32272,7 +32356,7 @@ function ConnectedMessageList({ messages }) {
|
|
|
32272
32356
|
const messageId = message.external_id;
|
|
32273
32357
|
const branchPoint = messageId ? getBranchControlForMessage(messageId) : null;
|
|
32274
32358
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32275
|
-
|
|
32359
|
+
chunkLHWKA2XI_cjs.MessageList.Row,
|
|
32276
32360
|
{
|
|
32277
32361
|
ref: rowVirtualizer.measureElement,
|
|
32278
32362
|
index: virtualItem.index,
|
|
@@ -32303,7 +32387,7 @@ function ConnectedMessageList({ messages }) {
|
|
|
32303
32387
|
message.external_id ?? `msg-${virtualItem.index}`
|
|
32304
32388
|
);
|
|
32305
32389
|
}) }),
|
|
32306
|
-
isLiveTurn ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
32390
|
+
isLiveTurn ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageList.Tail, {})
|
|
32307
32391
|
] }),
|
|
32308
32392
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedThreadsPreview, { open: previewOpen, onOpenChange: setPreviewOpen })
|
|
32309
32393
|
] });
|
|
@@ -32325,7 +32409,7 @@ function ConnectedConversationEmpty({
|
|
|
32325
32409
|
below
|
|
32326
32410
|
}) {
|
|
32327
32411
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32328
|
-
|
|
32412
|
+
chunkLHWKA2XI_cjs.ConversationEmpty,
|
|
32329
32413
|
{
|
|
32330
32414
|
hasDocuments,
|
|
32331
32415
|
prompts: EXAMPLE_PROMPTS,
|
|
@@ -32387,7 +32471,7 @@ function ConversationAlert({
|
|
|
32387
32471
|
}, [message, onRetryOrphaned, notify17]);
|
|
32388
32472
|
if (type === "send-failed") {
|
|
32389
32473
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32390
|
-
|
|
32474
|
+
chunkLHWKA2XI_cjs.MessageAlert,
|
|
32391
32475
|
{
|
|
32392
32476
|
title: "Message failed to send",
|
|
32393
32477
|
description: errorMessage2 || "An error occurred while sending your message.",
|
|
@@ -32416,7 +32500,7 @@ function ConversationAlert({
|
|
|
32416
32500
|
);
|
|
32417
32501
|
}
|
|
32418
32502
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32419
|
-
|
|
32503
|
+
chunkLHWKA2XI_cjs.MessageAlert,
|
|
32420
32504
|
{
|
|
32421
32505
|
title: type === "backend-failed" ? "Response Failed" : "Response Incomplete",
|
|
32422
32506
|
description: type === "backend-failed" ? "The assistant's response failed. Use Retry to try again." : "Use Retry to try again, or type a new query.",
|
|
@@ -33221,17 +33305,17 @@ function ConnectedConversation({
|
|
|
33221
33305
|
}
|
|
33222
33306
|
) }),
|
|
33223
33307
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33224
|
-
|
|
33308
|
+
chunkLHWKA2XI_cjs.ComposerDock,
|
|
33225
33309
|
{
|
|
33226
33310
|
floating: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33227
|
-
|
|
33311
|
+
chunkLHWKA2XI_cjs.ScrollToBottom,
|
|
33228
33312
|
{
|
|
33229
33313
|
className: "left-auto right-3 translate-x-0",
|
|
33230
33314
|
show: showScrollToBottom,
|
|
33231
33315
|
onClick: scrollToBottom
|
|
33232
33316
|
}
|
|
33233
33317
|
),
|
|
33234
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33318
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkLHWKA2XI_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: [
|
|
33235
33319
|
orphanedMessage ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
33236
33320
|
ConversationAlert,
|
|
33237
33321
|
{
|
|
@@ -33325,7 +33409,7 @@ function ConnectedCompactConversation() {
|
|
|
33325
33409
|
const currentConversationId = react.useArbiSessionState((state) => state.conversationId);
|
|
33326
33410
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col flex-1 min-h-0", "data-testid": "embedded-chat", children: [
|
|
33327
33411
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex-1 min-h-0", children: messageHistory.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(ConnectedMessageArea, { ref: containerRef, messages: messageHistory }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center h-full text-muted-foreground text-sm p-4", children: currentConversationId ? "Loading messages..." : "Start a conversation by typing below." }) }),
|
|
33328
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky bottom-0 w-full bg-background border-t z-10", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33412
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky bottom-0 w-full bg-background border-t z-10", children: /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.ComposerContainer, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33329
33413
|
ConversationComposer2,
|
|
33330
33414
|
{
|
|
33331
33415
|
handleSendMessage,
|
|
@@ -33479,7 +33563,7 @@ function AgentChat({ agentId, workspaceId, onOpenFull }) {
|
|
|
33479
33563
|
/* @__PURE__ */ jsxRuntime.jsx("ol", { className: "mt-2 space-y-1", children: activity.map((name, i) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "whitespace-pre-wrap break-all", children: name }) }, i)) })
|
|
33480
33564
|
] }),
|
|
33481
33565
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33482
|
-
|
|
33566
|
+
chunkLHWKA2XI_cjs.ChatPage,
|
|
33483
33567
|
{
|
|
33484
33568
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
33485
33569
|
surface: "dock",
|
|
@@ -33499,7 +33583,7 @@ function AgentChat({ agentId, workspaceId, onOpenFull }) {
|
|
|
33499
33583
|
placeholder: "Ask your agent\u2026",
|
|
33500
33584
|
conversations: "Agent chats"
|
|
33501
33585
|
},
|
|
33502
|
-
renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
33586
|
+
renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(chunkEBRYYVNH_cjs.DocumentWorkspaceContext.Provider, { value: workspaceId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkEBRYYVNH_cjs.ConnectedMarkdown, { isStreaming: message.status === "streaming", children: message.content }) })
|
|
33503
33587
|
}
|
|
33504
33588
|
)
|
|
33505
33589
|
] });
|
|
@@ -35449,35 +35533,35 @@ Object.defineProperty(exports, "useRewardBalance", {
|
|
|
35449
35533
|
});
|
|
35450
35534
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
35451
35535
|
enumerable: true,
|
|
35452
|
-
get: function () { return
|
|
35536
|
+
get: function () { return chunk5D32XL3E_cjs.ConnectedAssistantDock; }
|
|
35453
35537
|
});
|
|
35454
35538
|
Object.defineProperty(exports, "redlineStats", {
|
|
35455
35539
|
enumerable: true,
|
|
35456
|
-
get: function () { return
|
|
35540
|
+
get: function () { return chunk5D32XL3E_cjs.redlineStats; }
|
|
35457
35541
|
});
|
|
35458
35542
|
Object.defineProperty(exports, "textToArtifact", {
|
|
35459
35543
|
enumerable: true,
|
|
35460
|
-
get: function () { return
|
|
35544
|
+
get: function () { return chunk5D32XL3E_cjs.textToArtifact; }
|
|
35461
35545
|
});
|
|
35462
35546
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
35463
35547
|
enumerable: true,
|
|
35464
|
-
get: function () { return
|
|
35548
|
+
get: function () { return chunk5D32XL3E_cjs.toRedlineMarkdown; }
|
|
35465
35549
|
});
|
|
35466
35550
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
35467
35551
|
enumerable: true,
|
|
35468
|
-
get: function () { return
|
|
35552
|
+
get: function () { return chunk5D32XL3E_cjs.useConnectedAiTask; }
|
|
35469
35553
|
});
|
|
35470
35554
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
35471
35555
|
enumerable: true,
|
|
35472
|
-
get: function () { return
|
|
35556
|
+
get: function () { return chunk5D32XL3E_cjs.useConnectedChat; }
|
|
35473
35557
|
});
|
|
35474
35558
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
35475
35559
|
enumerable: true,
|
|
35476
|
-
get: function () { return
|
|
35560
|
+
get: function () { return chunk5D32XL3E_cjs.useSemanticSearch; }
|
|
35477
35561
|
});
|
|
35478
35562
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
35479
35563
|
enumerable: true,
|
|
35480
|
-
get: function () { return
|
|
35564
|
+
get: function () { return chunk5D32XL3E_cjs.useWorkspaceDocs; }
|
|
35481
35565
|
});
|
|
35482
35566
|
Object.defineProperty(exports, "ConnectedWorkflowDocumentsField", {
|
|
35483
35567
|
enumerable: true,
|
|
@@ -35521,63 +35605,63 @@ Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
|
35521
35605
|
});
|
|
35522
35606
|
Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
35523
35607
|
enumerable: true,
|
|
35524
|
-
get: function () { return
|
|
35608
|
+
get: function () { return chunkEBRYYVNH_cjs.ConnectedDocumentToolsProvider; }
|
|
35525
35609
|
});
|
|
35526
35610
|
Object.defineProperty(exports, "ConnectedMarkdown", {
|
|
35527
35611
|
enumerable: true,
|
|
35528
|
-
get: function () { return
|
|
35612
|
+
get: function () { return chunkEBRYYVNH_cjs.ConnectedMarkdown; }
|
|
35529
35613
|
});
|
|
35530
35614
|
Object.defineProperty(exports, "DocumentChip", {
|
|
35531
35615
|
enumerable: true,
|
|
35532
|
-
get: function () { return
|
|
35616
|
+
get: function () { return chunkEBRYYVNH_cjs.DocumentChip; }
|
|
35533
35617
|
});
|
|
35534
35618
|
Object.defineProperty(exports, "DocumentWorkspaceContext", {
|
|
35535
35619
|
enumerable: true,
|
|
35536
|
-
get: function () { return
|
|
35620
|
+
get: function () { return chunkEBRYYVNH_cjs.DocumentWorkspaceContext; }
|
|
35537
35621
|
});
|
|
35538
35622
|
Object.defineProperty(exports, "ExternalLink", {
|
|
35539
35623
|
enumerable: true,
|
|
35540
|
-
get: function () { return
|
|
35624
|
+
get: function () { return chunkEBRYYVNH_cjs.ExternalLink; }
|
|
35541
35625
|
});
|
|
35542
35626
|
Object.defineProperty(exports, "InternalDocLink", {
|
|
35543
35627
|
enumerable: true,
|
|
35544
|
-
get: function () { return
|
|
35628
|
+
get: function () { return chunkEBRYYVNH_cjs.InternalDocLink; }
|
|
35545
35629
|
});
|
|
35546
35630
|
Object.defineProperty(exports, "MailChip", {
|
|
35547
35631
|
enumerable: true,
|
|
35548
|
-
get: function () { return
|
|
35632
|
+
get: function () { return chunkEBRYYVNH_cjs.MailChip; }
|
|
35549
35633
|
});
|
|
35550
35634
|
Object.defineProperty(exports, "MermaidDiagram", {
|
|
35551
35635
|
enumerable: true,
|
|
35552
|
-
get: function () { return
|
|
35636
|
+
get: function () { return chunkEBRYYVNH_cjs.MermaidDiagram; }
|
|
35553
35637
|
});
|
|
35554
35638
|
Object.defineProperty(exports, "WorkspaceDocumentReference", {
|
|
35555
35639
|
enumerable: true,
|
|
35556
|
-
get: function () { return
|
|
35640
|
+
get: function () { return chunkEBRYYVNH_cjs.WorkspaceDocumentReference; }
|
|
35557
35641
|
});
|
|
35558
35642
|
Object.defineProperty(exports, "useDocumentViewerSupport", {
|
|
35559
35643
|
enumerable: true,
|
|
35560
|
-
get: function () { return
|
|
35644
|
+
get: function () { return chunkEBRYYVNH_cjs.useDocumentViewerSupport; }
|
|
35561
35645
|
});
|
|
35562
35646
|
Object.defineProperty(exports, "useDocumentWorkspace", {
|
|
35563
35647
|
enumerable: true,
|
|
35564
|
-
get: function () { return
|
|
35648
|
+
get: function () { return chunkEBRYYVNH_cjs.useDocumentWorkspace; }
|
|
35565
35649
|
});
|
|
35566
35650
|
Object.defineProperty(exports, "useViewerDraftDocument", {
|
|
35567
35651
|
enumerable: true,
|
|
35568
|
-
get: function () { return
|
|
35652
|
+
get: function () { return chunkEBRYYVNH_cjs.useViewerDraftDocument; }
|
|
35569
35653
|
});
|
|
35570
35654
|
Object.defineProperty(exports, "useViewerIsDetached", {
|
|
35571
35655
|
enumerable: true,
|
|
35572
|
-
get: function () { return
|
|
35656
|
+
get: function () { return chunkEBRYYVNH_cjs.useViewerIsDetached; }
|
|
35573
35657
|
});
|
|
35574
35658
|
Object.defineProperty(exports, "useViewerPassageCitation", {
|
|
35575
35659
|
enumerable: true,
|
|
35576
|
-
get: function () { return
|
|
35660
|
+
get: function () { return chunkEBRYYVNH_cjs.useViewerPassageCitation; }
|
|
35577
35661
|
});
|
|
35578
35662
|
Object.defineProperty(exports, "useViewerStreamingDocument", {
|
|
35579
35663
|
enumerable: true,
|
|
35580
|
-
get: function () { return
|
|
35664
|
+
get: function () { return chunkEBRYYVNH_cjs.useViewerStreamingDocument; }
|
|
35581
35665
|
});
|
|
35582
35666
|
Object.defineProperty(exports, "requestCalendarComposer", {
|
|
35583
35667
|
enumerable: true,
|