@arbidocs/blocks 0.5.1 → 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.
Files changed (35) hide show
  1. package/dist/{ConnectedCallDock-7O6VPYVI.cjs → ConnectedCallDock-NNX5PEPK.cjs} +3 -3
  2. package/dist/{ConnectedCallDock-7O6VPYVI.cjs.map → ConnectedCallDock-NNX5PEPK.cjs.map} +1 -1
  3. package/dist/{ConnectedCallDock-74BBCKXO.js → ConnectedCallDock-UGGY6YUK.js} +3 -3
  4. package/dist/{ConnectedCallDock-74BBCKXO.js.map → ConnectedCallDock-UGGY6YUK.js.map} +1 -1
  5. package/dist/{ConnectedCallRoom-2HCE5YD2.cjs → ConnectedCallRoom-B7SZHQNV.cjs} +3 -3
  6. package/dist/{ConnectedCallRoom-2HCE5YD2.cjs.map → ConnectedCallRoom-B7SZHQNV.cjs.map} +1 -1
  7. package/dist/{ConnectedCallRoom-KAHBN5KO.js → ConnectedCallRoom-I4HPWMK2.js} +3 -3
  8. package/dist/{ConnectedCallRoom-KAHBN5KO.js.map → ConnectedCallRoom-I4HPWMK2.js.map} +1 -1
  9. package/dist/calls/index.cjs +2 -2
  10. package/dist/calls/index.js +2 -2
  11. package/dist/chat/index.cjs +4 -4
  12. package/dist/chat/index.js +1 -1
  13. package/dist/{chunk-KJXJRX33.js → chunk-DDCMLHXF.js} +4 -4
  14. package/dist/chunk-DDCMLHXF.js.map +1 -0
  15. package/dist/{chunk-LDRHUYRE.cjs → chunk-EBRYYVNH.cjs} +7 -7
  16. package/dist/{chunk-LDRHUYRE.cjs.map → chunk-EBRYYVNH.cjs.map} +1 -1
  17. package/dist/{chunk-26EQQQBX.js → chunk-PY5D6HBD.js} +5 -5
  18. package/dist/{chunk-26EQQQBX.js.map → chunk-PY5D6HBD.js.map} +1 -1
  19. package/dist/{chunk-OK3UJMO4.cjs → chunk-Z2XZ2D4N.cjs} +4 -4
  20. package/dist/chunk-Z2XZ2D4N.cjs.map +1 -0
  21. package/dist/connect/index.cjs +193 -109
  22. package/dist/connect/index.cjs.map +1 -1
  23. package/dist/connect/index.js +173 -89
  24. package/dist/connect/index.js.map +1 -1
  25. package/dist/connect/viewer.cjs +13 -13
  26. package/dist/connect/viewer.js +3 -3
  27. package/dist/connection/files/grid/documentGridBus.d.ts +12 -10
  28. package/dist/connection/messenger/ConnectedChatThread.d.ts +3 -1
  29. package/dist/connection/messenger/ConnectedMessenger.d.ts +21 -3
  30. package/dist/index.cjs +4 -4
  31. package/dist/index.js +1 -1
  32. package/node_modules/@arbidocs/coedit/package.json +1 -1
  33. package/package.json +5 -5
  34. package/dist/chunk-KJXJRX33.js.map +0 -1
  35. package/dist/chunk-OK3UJMO4.cjs.map +0 -1
@@ -11,7 +11,7 @@ require('../chunk-REH7PX3N.cjs');
11
11
  var chunkDAEDRTIN_cjs = require('../chunk-DAEDRTIN.cjs');
12
12
  var chunk5D32XL3E_cjs = require('../chunk-5D32XL3E.cjs');
13
13
  var chunkMDFXGRLY_cjs = require('../chunk-MDFXGRLY.cjs');
14
- var chunkLDRHUYRE_cjs = require('../chunk-LDRHUYRE.cjs');
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');
@@ -70,7 +70,7 @@ 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
72
  var chunkLHWKA2XI_cjs = require('../chunk-LHWKA2XI.cjs');
73
- var chunkOK3UJMO4_cjs = require('../chunk-OK3UJMO4.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');
@@ -22408,16 +22408,13 @@ function liveApi() {
22408
22408
  }
22409
22409
  return registeredApi;
22410
22410
  }
22411
- function applyDocumentRowChange({ add, update, remove }) {
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
- const tx = {};
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(tx);
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();
@@ -26223,7 +26221,7 @@ function ConnectedChatThread({
26223
26221
  /* @__PURE__ */ jsxRuntime.jsx(
26224
26222
  react.DmComposer,
26225
26223
  {
26226
- placeholder: "Type a message\u2026",
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
- if (!activeId) {
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
- /* @__PURE__ */ jsxRuntime.jsx(
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
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkDAEDRTIN_cjs.PanelFrame, { testId: "dm-messenger", children: [
26583
- groupChat ? /* @__PURE__ */ jsxRuntime.jsx(
26584
- chunkMOIZ2R5X_cjs.DmThreadHeader,
26585
- {
26586
- avatar: groupChat.kind === "meeting" ? /* @__PURE__ */ jsxRuntime.jsx(MeetingAvatar, {}) : /* @__PURE__ */ jsxRuntime.jsx(GroupAvatars, { users: active.others, host }),
26587
- name: groupTitle ?? (groupChat.kind === "meeting" ? "Meeting" : "Group"),
26588
- email: `${groupChat.members.length} members`,
26589
- menu: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
26590
- groupActions?.(groupChat, groupTitle),
26591
- /* @__PURE__ */ jsxRuntime.jsx(
26592
- ui.Button,
26593
- {
26594
- size: "sm",
26595
- variant: "ghost",
26596
- onClick: () => setMembersOpen(true),
26597
- "data-testid": "group-members-button",
26598
- "aria-label": "Group members",
26599
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UsersRound, { className: "size-4" })
26600
- }
26601
- )
26602
- ] })
26603
- }
26604
- ) : /* @__PURE__ */ jsxRuntime.jsx(
26605
- chunkMOIZ2R5X_cjs.DmThreadHeader,
26606
- {
26607
- avatar: activePeer ? avatar(activePeer) : void 0,
26608
- name: activePeer ? react.userDisplayName(activePeer) : "Conversation",
26609
- badge: activePeer && isAgent5(activePeer) ? /* @__PURE__ */ jsxRuntime.jsx(ui.AgentBadge, {}) : void 0,
26610
- presence: presence ? /* @__PURE__ */ jsxRuntime.jsx(ui.PresenceLabel, { status: presence }) : void 0,
26611
- email: activePeer?.email,
26612
- menu: activePeer ? directActions?.(activePeer, {
26613
- // A personal agent never carries over into a group, and a self-chat has no peer.
26614
- addPeople: isAgent5(activePeer) || activeIsSelf || !PeoplePicker ? void 0 : () => setPicker({ mode: "from-direct", fixed: [activePeer] })
26615
- }) : void 0
26616
- }
26617
- ),
26618
- groupChat ? /* @__PURE__ */ jsxRuntime.jsx(
26619
- ConnectedGroupMembers,
26620
- {
26621
- chat: groupChat,
26622
- title: groupTitle,
26623
- open: membersOpen,
26624
- onOpenChange: setMembersOpen,
26625
- onLeft: () => onClose?.(activeId),
26626
- host
26627
- },
26628
- groupChat.external_id
26629
- ) : null,
26630
- peoplePicker,
26631
- /* @__PURE__ */ jsxRuntime.jsx(chunkDAEDRTIN_cjs.PanelFrameBody, { className: "flex flex-col overflow-visible", children: active ? /* @__PURE__ */ jsxRuntime.jsx(ConnectedChatThread, { chat: active.chat, peer: activePeer, host }, activeId) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: isLoading ? "Loading conversation\u2026" : "This conversation is no longer available." }) })
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(chunkLDRHUYRE_cjs.ConnectedMarkdown, { isStreaming: false, children: summary }) })
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(chunkLDRHUYRE_cjs.ConnectedMarkdown, { components: withAnswerTable(components), isStreaming, children });
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 = chunkOK3UJMO4_cjs.workspaceDocIdFromHref(href, chunk25YFJLFP_cjs.useBlocksEnvironment().runtimeConfig.deploymentDomain);
30712
+ const docId = chunkZ2XZ2D4N_cjs.workspaceDocIdFromHref(href, chunk25YFJLFP_cjs.useBlocksEnvironment().runtimeConfig.deploymentDomain);
30629
30713
  if (docId) {
30630
- return /* @__PURE__ */ jsxRuntime.jsx(chunkLDRHUYRE_cjs.InternalDocLink, { docId, href, ...props, children });
30714
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkEBRYYVNH_cjs.InternalDocLink, { docId, href, ...props, children });
30631
30715
  }
30632
- return /* @__PURE__ */ jsxRuntime.jsx(chunkLDRHUYRE_cjs.ExternalLink, { href, ...props, children });
30716
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkEBRYYVNH_cjs.ExternalLink, { href, ...props, children });
30633
30717
  }
30634
30718
  var ConnectedCitationRendererComponent = ({
30635
30719
  alwaysInteractive,
@@ -31801,7 +31885,7 @@ var MessageComponent = ({
31801
31885
  ),
31802
31886
  subagentTaskRecord && /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageSubagentBadge, { messageId }),
31803
31887
  /* @__PURE__ */ jsxRuntime.jsxs(chunkLHWKA2XI_cjs.MessageBody, { messageId, children: [
31804
- settledNarration ? /* @__PURE__ */ jsxRuntime.jsx(chunkLHWKA2XI_cjs.MessageNarration, { messageId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLDRHUYRE_cjs.ConnectedMarkdown, { isStreaming: false, children: settledNarration }) }) : null,
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(chunkLDRHUYRE_cjs.ConnectedMarkdown, { isStreaming: isGenerating, children: shell.linkMentions(
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,
@@ -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(chunkLDRHUYRE_cjs.DocumentWorkspaceContext.Provider, { value: workspaceId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkLDRHUYRE_cjs.ConnectedMarkdown, { isStreaming: message.status === "streaming", children: message.content }) })
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
  ] });
@@ -35521,63 +35605,63 @@ Object.defineProperty(exports, "useNativeDocxSupport", {
35521
35605
  });
35522
35606
  Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
35523
35607
  enumerable: true,
35524
- get: function () { return chunkLDRHUYRE_cjs.ConnectedDocumentToolsProvider; }
35608
+ get: function () { return chunkEBRYYVNH_cjs.ConnectedDocumentToolsProvider; }
35525
35609
  });
35526
35610
  Object.defineProperty(exports, "ConnectedMarkdown", {
35527
35611
  enumerable: true,
35528
- get: function () { return chunkLDRHUYRE_cjs.ConnectedMarkdown; }
35612
+ get: function () { return chunkEBRYYVNH_cjs.ConnectedMarkdown; }
35529
35613
  });
35530
35614
  Object.defineProperty(exports, "DocumentChip", {
35531
35615
  enumerable: true,
35532
- get: function () { return chunkLDRHUYRE_cjs.DocumentChip; }
35616
+ get: function () { return chunkEBRYYVNH_cjs.DocumentChip; }
35533
35617
  });
35534
35618
  Object.defineProperty(exports, "DocumentWorkspaceContext", {
35535
35619
  enumerable: true,
35536
- get: function () { return chunkLDRHUYRE_cjs.DocumentWorkspaceContext; }
35620
+ get: function () { return chunkEBRYYVNH_cjs.DocumentWorkspaceContext; }
35537
35621
  });
35538
35622
  Object.defineProperty(exports, "ExternalLink", {
35539
35623
  enumerable: true,
35540
- get: function () { return chunkLDRHUYRE_cjs.ExternalLink; }
35624
+ get: function () { return chunkEBRYYVNH_cjs.ExternalLink; }
35541
35625
  });
35542
35626
  Object.defineProperty(exports, "InternalDocLink", {
35543
35627
  enumerable: true,
35544
- get: function () { return chunkLDRHUYRE_cjs.InternalDocLink; }
35628
+ get: function () { return chunkEBRYYVNH_cjs.InternalDocLink; }
35545
35629
  });
35546
35630
  Object.defineProperty(exports, "MailChip", {
35547
35631
  enumerable: true,
35548
- get: function () { return chunkLDRHUYRE_cjs.MailChip; }
35632
+ get: function () { return chunkEBRYYVNH_cjs.MailChip; }
35549
35633
  });
35550
35634
  Object.defineProperty(exports, "MermaidDiagram", {
35551
35635
  enumerable: true,
35552
- get: function () { return chunkLDRHUYRE_cjs.MermaidDiagram; }
35636
+ get: function () { return chunkEBRYYVNH_cjs.MermaidDiagram; }
35553
35637
  });
35554
35638
  Object.defineProperty(exports, "WorkspaceDocumentReference", {
35555
35639
  enumerable: true,
35556
- get: function () { return chunkLDRHUYRE_cjs.WorkspaceDocumentReference; }
35640
+ get: function () { return chunkEBRYYVNH_cjs.WorkspaceDocumentReference; }
35557
35641
  });
35558
35642
  Object.defineProperty(exports, "useDocumentViewerSupport", {
35559
35643
  enumerable: true,
35560
- get: function () { return chunkLDRHUYRE_cjs.useDocumentViewerSupport; }
35644
+ get: function () { return chunkEBRYYVNH_cjs.useDocumentViewerSupport; }
35561
35645
  });
35562
35646
  Object.defineProperty(exports, "useDocumentWorkspace", {
35563
35647
  enumerable: true,
35564
- get: function () { return chunkLDRHUYRE_cjs.useDocumentWorkspace; }
35648
+ get: function () { return chunkEBRYYVNH_cjs.useDocumentWorkspace; }
35565
35649
  });
35566
35650
  Object.defineProperty(exports, "useViewerDraftDocument", {
35567
35651
  enumerable: true,
35568
- get: function () { return chunkLDRHUYRE_cjs.useViewerDraftDocument; }
35652
+ get: function () { return chunkEBRYYVNH_cjs.useViewerDraftDocument; }
35569
35653
  });
35570
35654
  Object.defineProperty(exports, "useViewerIsDetached", {
35571
35655
  enumerable: true,
35572
- get: function () { return chunkLDRHUYRE_cjs.useViewerIsDetached; }
35656
+ get: function () { return chunkEBRYYVNH_cjs.useViewerIsDetached; }
35573
35657
  });
35574
35658
  Object.defineProperty(exports, "useViewerPassageCitation", {
35575
35659
  enumerable: true,
35576
- get: function () { return chunkLDRHUYRE_cjs.useViewerPassageCitation; }
35660
+ get: function () { return chunkEBRYYVNH_cjs.useViewerPassageCitation; }
35577
35661
  });
35578
35662
  Object.defineProperty(exports, "useViewerStreamingDocument", {
35579
35663
  enumerable: true,
35580
- get: function () { return chunkLDRHUYRE_cjs.useViewerStreamingDocument; }
35664
+ get: function () { return chunkEBRYYVNH_cjs.useViewerStreamingDocument; }
35581
35665
  });
35582
35666
  Object.defineProperty(exports, "requestCalendarComposer", {
35583
35667
  enumerable: true,