@arbidocs/blocks 0.5.170 → 0.5.172
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-2LQZTKQD.cjs → ConnectedCallDock-AQRVWENO.cjs} +4 -4
- package/dist/{ConnectedCallDock-2LQZTKQD.cjs.map → ConnectedCallDock-AQRVWENO.cjs.map} +1 -1
- package/dist/{ConnectedCallRoom-YZWAB7E5.cjs → ConnectedCallRoom-7M4YQ4KA.cjs} +4 -4
- package/dist/{ConnectedCallRoom-YZWAB7E5.cjs.map → ConnectedCallRoom-7M4YQ4KA.cjs.map} +1 -1
- package/dist/{ConnectedProductionSetDialog-CTJLD6RF.cjs → ConnectedProductionSetDialog-SHDI7KP6.cjs} +5 -5
- package/dist/{ConnectedProductionSetDialog-CTJLD6RF.cjs.map → ConnectedProductionSetDialog-SHDI7KP6.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-HQFZEDSO.cjs → FilesViewerDialog-KD22ACKY.cjs} +9 -9
- package/dist/{FilesViewerDialog-HQFZEDSO.cjs.map → FilesViewerDialog-KD22ACKY.cjs.map} +1 -1
- package/dist/auth/index.cjs +12 -12
- package/dist/calls/connected/ConnectedConversationCallActions.js +6 -0
- package/dist/calls/connected/ConnectedConversationCallActions.js.map +2 -2
- package/dist/calls/connected/OwnedAgentCallButton.d.ts +4 -0
- package/dist/calls/connected/OwnedAgentCallButton.js +13 -0
- package/dist/calls/connected/OwnedAgentCallButton.js.map +7 -0
- package/dist/calls/index.cjs +22 -22
- package/dist/chat/index.cjs +5 -5
- package/dist/{chunk-3UCRJRNI.cjs → chunk-5OD6DRG7.cjs} +5 -5
- package/dist/{chunk-3UCRJRNI.cjs.map → chunk-5OD6DRG7.cjs.map} +1 -1
- package/dist/{chunk-WWCSRBNZ.cjs → chunk-A7MGQMOV.cjs} +13 -13
- package/dist/{chunk-WWCSRBNZ.cjs.map → chunk-A7MGQMOV.cjs.map} +1 -1
- package/dist/{chunk-O2NHBB3D.cjs → chunk-E23H6FJR.cjs} +4 -4
- package/dist/{chunk-O2NHBB3D.cjs.map → chunk-E23H6FJR.cjs.map} +1 -1
- package/dist/{chunk-2O772C6Y.cjs → chunk-ICZLFE26.cjs} +2 -2
- package/dist/{chunk-2O772C6Y.cjs.map → chunk-ICZLFE26.cjs.map} +1 -1
- package/dist/{chunk-WV3RNWAG.cjs → chunk-KQJUY2OE.cjs} +6 -3
- package/dist/chunk-KQJUY2OE.cjs.map +1 -0
- package/dist/{chunk-Q25CZLK6.cjs → chunk-N33U2SB5.cjs} +28 -4
- package/dist/chunk-N33U2SB5.cjs.map +1 -0
- package/dist/{chunk-IRUQZI6P.cjs → chunk-PIKTGP55.cjs} +3 -2
- package/dist/chunk-PIKTGP55.cjs.map +1 -0
- package/dist/{chunk-7QSZSGUQ.cjs → chunk-QSY2VW7V.cjs} +6 -6
- package/dist/{chunk-7QSZSGUQ.cjs.map → chunk-QSY2VW7V.cjs.map} +1 -1
- package/dist/{chunk-I6SINJQ2.cjs → chunk-RJMKTK4P.cjs} +13 -2
- package/dist/chunk-RJMKTK4P.cjs.map +1 -0
- package/dist/{chunk-6OVP3BUA.cjs → chunk-TV2HTJD6.cjs} +4 -4
- package/dist/{chunk-6OVP3BUA.cjs.map → chunk-TV2HTJD6.cjs.map} +1 -1
- package/dist/{chunk-LYYJDQW6.cjs → chunk-UTYEXDJK.cjs} +28 -28
- package/dist/{chunk-LYYJDQW6.cjs.map → chunk-UTYEXDJK.cjs.map} +1 -1
- package/dist/{chunk-QNNNANQS.cjs → chunk-YOTUWXOV.cjs} +11 -11
- package/dist/{chunk-QNNNANQS.cjs.map → chunk-YOTUWXOV.cjs.map} +1 -1
- package/dist/connect/index.cjs +192 -191
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +7 -7
- package/dist/connection/ConnectedAgentChatPanel.js +2 -0
- package/dist/connection/ConnectedAgentChatPanel.js.map +2 -2
- package/dist/connection/messenger/DmAgentProgress.js +1 -1
- package/dist/connection/messenger/DmAgentProgress.js.map +2 -2
- package/dist/databases/DatabaseTable.js +26 -2
- package/dist/databases/DatabaseTable.js.map +2 -2
- package/dist/databases/index.cjs +52 -52
- package/dist/embed/index.cjs +11 -11
- package/dist/index.cjs +94 -94
- package/dist/lib/entity-id.d.ts +1 -1
- package/dist/lib/entity-id.js +1 -0
- package/dist/lib/entity-id.js.map +2 -2
- package/dist/pages/index.cjs +3 -3
- package/dist/shell/index.cjs +21 -21
- package/dist/shell/use-sidebar-controller.js +4 -1
- package/dist/shell/use-sidebar-controller.js.map +2 -2
- package/dist/styles.css +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/blocks.css +2 -0
- package/dist/chunk-I6SINJQ2.cjs.map +0 -1
- package/dist/chunk-IRUQZI6P.cjs.map +0 -1
- package/dist/chunk-Q25CZLK6.cjs.map +0 -1
- package/dist/chunk-WV3RNWAG.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/auth/SsoLoginButton.tsx","../src/auth/return-url.ts","../src/auth/InstallInstructionsDialog.tsx"],"names":["ARBI_MARK_SRC","useMemo","jsx","testIdOr","jsxs","Button","parseHref","isDeepLinkPath","hrefFor","getInstallInstructions","Dialog","DialogContent","DialogHeader","DialogTitle","DialogDescription"],"mappings":";;;;;;;;;AAUO,IAAM,+BAAA,GAAwD;AAAA,EACnE,SAAA,EAAW,YAAA;AAAA,EACX,YAAA,EAAc;AAChB;AAeO,SAAS,cAAA,CAAe;AAAA,EAC7B,OAAA;AAAA,EACA,YAAA,GAAeA,gBAAA;AAAA,EACf,YAAA;AAAA,EACA,MAAA;AAAA,EACA,eAAA;AAAA,EACA;AACF,CAAA,EAAwB;AACtB,EAAA,MAAM,CAAA,GAAIC,aAAA,CAAQ,OAAO,EAAE,GAAG,+BAAA,EAAiC,GAAG,MAAA,EAAO,CAAA,EAAI,CAAC,MAAM,CAAC,CAAA;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O,QAAA;AAC1C,EAAA,IAAI,EAAE,kBAAkB,QAAQ,CAAA,KAAM,OAAO,CAAC,MAAA,IAAU,CAAC,IAAA,CAAA,EAAO,qBAAA,EAAsB;AACtF,EAAA,OAAO,QAAA;AACT;AC3GO,SAAS,yBAAA,CAA0B,EAAE,IAAA,EAAM,YAAA,EAAa,EAAmC;AAChG,EAAA,MAAM,KAAA,GAAQC,wCAAA,CAAuB,EAAE,OAAA,EAAS,QAAQ,CAAA;AAExD,EAAA,uBACEP,eAACQ,SAAA,EAAA,EAAO,IAAA,EAAY,cAClB,QAAA,kBAAAN,eAAAA,CAACO,gBAAA,EAAA,EAAc,aAAA,EAAY,6BAAA,EACzB,QAAA,EAAA;AAAA,oBAAAP,gBAACQ,eAAA,EAAA,EACC,QAAA,EAAA;AAAA,sBAAAV,cAAAA,CAACW,cAAA,EAAA,EAAa,QAAA,EAAA,KAAA,CAAM,OAAA,EAAQ,CAAA;AAAA,sBAC5BX,cAAAA,CAACY,oBAAA,EAAA,EAAkB,SAAA,EAAU,WAAU,QAAA,EAAA,+CAAA,EAEvC;AAAA,KAAA,EACF,CAAA;AAAA,oBACAZ,cAAAA,CAAC,IAAA,EAAA,EAAG,SAAA,EAAU,wDAAA,EACX,gBAAM,KAAA,CAAM,GAAA,CAAI,CAAC,IAAA,qBAChBA,cAAAA,CAAC,IAAA,EAAA,EAAe,QAAA,EAAA,IAAA,EAAA,EAAP,IAAY,CACtB,CAAA,EACH,CAAA;AAAA,IACC,KAAA,CAAM,wBAAQA,cAAAA,CAAC,OAAE,SAAA,EAAU,oCAAA,EAAsC,gBAAM,IAAA,EAAK;AAAA,GAAA,EAC/E,CAAA,EACF,CAAA;AAEJ","file":"chunk-7QSZSGUQ.cjs","sourcesContent":["import { useMemo } from 'react'\nimport { ARBI_MARK_SRC, Button } from '@arbidocs/react/ui'\nimport { testIdOr } from '../chat/test-id'\n\n/** Every fixed string of the SSO button. `brandIconAlt` prop wins over `brandIconAlt` label. */\nexport interface SsoLoginButtonLabels {\n loginWith: string\n brandIconAlt: string\n}\n\nexport const DEFAULT_SSO_LOGIN_BUTTON_LABELS: SsoLoginButtonLabels = {\n loginWith: 'Login with',\n brandIconAlt: 'ARBI Docs',\n}\n\nexport interface SsoLoginButtonProps {\n labels?: Partial<SsoLoginButtonLabels>\n onClick: () => void\n /** Source of the brand mark shown first. */\n brandIconSrc?: string\n brandIconAlt?: string\n /** Button test id (default `login-with-arbi-button`). */\n testId?: string\n /** Wrapper test id (default `sso-login-button-container`). */\n containerTestId?: string\n}\n\n/** \"Login with\" button showing the ARBI mark and the supported identity providers. */\nexport function SsoLoginButton({\n onClick,\n brandIconSrc = ARBI_MARK_SRC,\n brandIconAlt,\n testId,\n containerTestId,\n labels,\n}: SsoLoginButtonProps) {\n const l = useMemo(() => ({ ...DEFAULT_SSO_LOGIN_BUTTON_LABELS, ...labels }), [labels])\n return (\n <div\n data-slot=\"sso-login\"\n data-testid={testIdOr(containerTestId, { testId: 'sso-login-button-container' })}\n className=\"text-center\"\n >\n <Button\n onClick={onClick}\n className=\"flex w-full items-center justify-center gap-3\"\n variant=\"outline\"\n data-testid={testIdOr(testId, { testId: 'login-with-arbi-button' })}\n >\n <span>{l.loginWith}</span>\n <div className=\"flex items-center gap-3 pr-1\">\n <img\n src={brandIconSrc}\n alt={brandIconAlt ?? l.brandIconAlt}\n className=\"h-5 w-5 rounded object-contain\"\n />\n\n {/* LinkedIn */}\n <svg className=\"h-5 w-5\" viewBox=\"0 0 24 24\" fill=\"#0A66C2\" aria-hidden=\"true\">\n <path d=\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z\" />\n </svg>\n\n {/* Google */}\n <svg className=\"h-5 w-5\" viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path\n fill=\"#4285F4\"\n d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\"\n />\n <path\n fill=\"#34A853\"\n d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\"\n />\n <path\n fill=\"#FBBC05\"\n d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z\"\n />\n <path\n fill=\"#EA4335\"\n d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\"\n />\n </svg>\n\n {/* Apple */}\n <svg className=\"h-5 w-5\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z\" />\n </svg>\n </div>\n </Button>\n </div>\n )\n}\n","import { hrefFor, isDeepLinkPath, parseHref } from '../lib/routes'\n\nconst RETURN_URL_KEY = 'arbi_return_url'\n\n/**\n * Strip trailing slashes so `/login/` compares equal to `/login` (bare `/`\n * stays `/`). External / typed / marketing links commonly arrive with a\n * trailing slash; without normalizing, `/login/` slips past the auth-page\n * guard below, gets saved as the return URL, and the post-auth effect\n * `window.location.href`-reloads straight back into the login shell —\n * racing session persistence and wedging the user on /login.\n */\nexport function normalizeAuthPath(pathname: string): string {\n return pathname.replace(/\\/+$/, '') || '/'\n}\n\n/**\n * Auth shells we must never save as a return URL nor hard-reload into\n * (trailing-slash tolerant).\n */\nexport function isAuthRoutePath(pathname: string): boolean {\n const p = normalizeAuthPath(pathname)\n return p === '/login' || p === '/sso'\n}\n\n/**\n * Saves the current URL for post-authentication redirect\n * Preserves pathname, search params, and hash\n */\nexport function preserveAuthReturnUrl(url?: string): void {\n const { pathname, search, hash } = window.location\n const urlToSave = url || `${pathname}${search}${hash}`\n // Guard against the URL being saved, not the current page — a caller can be\n // on /login itself and still pass an explicit destination to save for after\n // auth (e.g. a resource-share invite link's `&next=` param), which must not\n // be silently dropped just because /login is where it's being parsed. A\n // fixed dummy base (rather than window.location.origin) resolves a bare\n // path like `/wrk-.../doc-...` without depending on window.location being\n // in a valid state — an absolute `url` (e.g. McpConnect's window.location.href)\n // ignores the base entirely, per the URL spec.\n const guard = url ? new URL(url, 'http://dummy-base.invalid') : { pathname, search, hash }\n const path = normalizeAuthPath(guard.pathname)\n\n // Don't save the auth pages themselves, or the bare home with nothing to\n // return to. Deep links are path-based (e.g. `/wrk-…/con-…/msg-…`), so they\n // carry a non-`/` pathname and are preserved naturally. We still save `/`\n // when it carries a query (e.g. `?review_access=…`) so those flows survive\n // the login round-trip.\n const isAuthPage = isAuthRoutePath(guard.pathname)\n const isBareHome = path === '/' && !guard.search && !guard.hash\n // Embedded add-in panels (Word/Chrome) own their own post-auth state and must\n // never become a saved return URL — otherwise the main-app post-auth effect\n // would `window.location.href` into the panel (a full reload that breaks the\n // just-established session inside the Office iframe → bounce back to login).\n const isEmbedded = path.startsWith('/word/') || path.startsWith('/chrome/')\n\n if (!isAuthPage && !isBareHome && !isEmbedded) {\n sessionStorage.setItem(RETURN_URL_KEY, urlToSave)\n }\n}\n\n/** The saved return URL, taken: it is cleared, so only the first reader acts on it. */\nexport function takeAuthReturnUrl(): string | null {\n const returnUrl = sessionStorage.getItem(RETURN_URL_KEY)\n if (returnUrl) sessionStorage.removeItem(RETURN_URL_KEY)\n return returnUrl || null\n}\n\n/** Where a saved return URL leads after the sign-in, decided once. */\nexport type AuthReturnDestination =\n /** The review of an access request (`PENDING_ACCESS_REVIEW_VIEW`). */\n | { type: 'review_access'; notificationId: string }\n /** Where a notification leads (`PENDING_NOTIFICATION_VIEW`). */\n | { type: 'notification'; notificationId: string }\n /** A place the signed-in app opens itself: navigate there client-side (a full load would race\n * the session just established). */\n | { type: 'path'; path: string }\n /** Another page of this site: load it. */\n | { type: 'external'; url: string }\n\n/**\n * Take the saved return URL (`takeAuthReturnUrl`: only the first caller gets it) and decide where\n * it leads; the caller navigates. Only an address of this site counts: another origin is dropped,\n * and so is an auth page, which would bounce straight back into the sign-in.\n */\nexport function resolveAuthReturn(): AuthReturnDestination | null {\n const returnUrl = takeAuthReturnUrl()\n if (!returnUrl) return null\n let url: URL\n try {\n url = new URL(returnUrl, window.location.origin)\n } catch {\n return null\n }\n if (url.origin !== window.location.origin) return null\n const { pathname, search, hash } = url\n const route = parseHref(`${pathname}${search}${hash}`)\n switch (route?.kind) {\n case 'review-access':\n return { type: 'review_access', notificationId: route.notificationId }\n case 'notification':\n return { type: 'notification', notificationId: route.notificationId }\n }\n // A deep link opens in the app, a malformed one too (the app says it cannot be opened).\n if (isDeepLinkPath(pathname)) return { type: 'path', path: `${pathname}${search}${hash}` }\n switch (route?.kind) {\n case 'workspace':\n case 'conversation':\n case 'document':\n case 'action':\n // A legacy hash link (`/#/wrk-…`) opens at its path.\n return { type: 'path', path: hrefFor(route)! }\n // A secure-mail claim's key never rides in the saved address; a call keeps its invite and key.\n case 'secure-mail':\n return { type: 'path', path: pathname }\n case 'call':\n return { type: 'path', path: `${pathname}${search}${hash}` }\n }\n if (isAuthRoutePath(pathname)) return null\n return { type: 'external', url: returnUrl }\n}\n\n/**\n * Where a signed-out visit to a page that needs the sign-in goes: the sign-in, with the page kept\n * for after it (the bare start is not worth keeping).\n */\nexport function signInRedirect(): string {\n const { pathname, search, hash } = window.location\n if (!(normalizeAuthPath(pathname) === '/' && !search && !hash)) preserveAuthReturnUrl()\n return '/login'\n}\n","/**\n * InstallInstructionsDialog\n *\n * Shown when the user asks to install the ARBI app but the browser can't open\n * the install dialog directly (Safari, Firefox, or a Chromium browser that\n * never fired beforeinstallprompt — e.g. it's already installed). The\n * per-browser steps come from @arbidocs/blocks.\n */\n\nimport {\n Dialog,\n DialogContent,\n DialogHeader,\n DialogTitle,\n DialogDescription,\n} from '@arbidocs/react/ui'\nimport { getInstallInstructions } from '../shell/install-instructions'\n\ninterface InstallInstructionsDialogProps {\n open: boolean\n onOpenChange: (open: boolean) => void\n}\n\nexport function InstallInstructionsDialog({ open, onOpenChange }: InstallInstructionsDialogProps) {\n const guide = getInstallInstructions({ appName: 'ARBI' })\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent data-testid=\"install-instructions-dialog\">\n <DialogHeader>\n <DialogTitle>{guide.heading}</DialogTitle>\n <DialogDescription className=\"sr-only\">\n Steps to install the ARBI app on your device.\n </DialogDescription>\n </DialogHeader>\n <ol className=\"list-decimal space-y-2 pl-5 text-sm text-foreground/90\">\n {guide.steps.map((step) => (\n <li key={step}>{step}</li>\n ))}\n </ol>\n {guide.note && <p className=\"mt-3 text-xs text-muted-foreground\">{guide.note}</p>}\n </DialogContent>\n </Dialog>\n )\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/auth/SsoLoginButton.tsx","../src/auth/return-url.ts","../src/auth/InstallInstructionsDialog.tsx"],"names":["ARBI_MARK_SRC","useMemo","jsx","testIdOr","jsxs","Button","parseHref","isDeepLinkPath","hrefFor","getInstallInstructions","Dialog","DialogContent","DialogHeader","DialogTitle","DialogDescription"],"mappings":";;;;;;;;;AAUO,IAAM,+BAAA,GAAwD;AAAA,EACnE,SAAA,EAAW,YAAA;AAAA,EACX,YAAA,EAAc;AAChB;AAeO,SAAS,cAAA,CAAe;AAAA,EAC7B,OAAA;AAAA,EACA,YAAA,GAAeA,gBAAA;AAAA,EACf,YAAA;AAAA,EACA,MAAA;AAAA,EACA,eAAA;AAAA,EACA;AACF,CAAA,EAAwB;AACtB,EAAA,MAAM,CAAA,GAAIC,aAAA,CAAQ,OAAO,EAAE,GAAG,+BAAA,EAAiC,GAAG,MAAA,EAAO,CAAA,EAAI,CAAC,MAAM,CAAC,CAAA;AACrF,EAAA,uBACEC,cAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,WAAA;AAAA,MACV,eAAaC,0BAAA,CAAS,eAAA,EAAiB,EAAE,MAAA,EAAQ,8BAA8B,CAAA;AAAA,MAC/E,SAAA,EAAU,aAAA;AAAA,MAEV,QAAA,kBAAAC,eAAA;AAAA,QAACC,SAAA;AAAA,QAAA;AAAA,UACC,OAAA;AAAA,UACA,SAAA,EAAU,+CAAA;AAAA,UACV,OAAA,EAAQ,SAAA;AAAA,UACR,eAAaF,0BAAA,CAAS,MAAA,EAAQ,EAAE,MAAA,EAAQ,0BAA0B,CAAA;AAAA,UAElE,QAAA,EAAA;AAAA,4BAAAD,cAAA,CAAC,MAAA,EAAA,EAAM,YAAE,SAAA,EAAU,CAAA;AAAA,4BACnBE,eAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,8BAAA,EACb,QAAA,EAAA;AAAA,8BAAAF,cAAA;AAAA,gBAAC,KAAA;AAAA,gBAAA;AAAA,kBACC,GAAA,EAAK,YAAA;AAAA,k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;AAAA,KAAA,EACF,CAAA;AAAA,oBACAZ,cAAAA,CAAC,IAAA,EAAA,EAAG,SAAA,EAAU,wDAAA,EACX,gBAAM,KAAA,CAAM,GAAA,CAAI,CAAC,IAAA,qBAChBA,cAAAA,CAAC,IAAA,EAAA,EAAe,QAAA,EAAA,IAAA,EAAA,EAAP,IAAY,CACtB,CAAA,EACH,CAAA;AAAA,IACC,KAAA,CAAM,wBAAQA,cAAAA,CAAC,OAAE,SAAA,EAAU,oCAAA,EAAsC,gBAAM,IAAA,EAAK;AAAA,GAAA,EAC/E,CAAA,EACF,CAAA;AAEJ","file":"chunk-QSY2VW7V.cjs","sourcesContent":["import { useMemo } from 'react'\nimport { ARBI_MARK_SRC, Button } from '@arbidocs/react/ui'\nimport { testIdOr } from '../chat/test-id'\n\n/** Every fixed string of the SSO button. `brandIconAlt` prop wins over `brandIconAlt` label. */\nexport interface SsoLoginButtonLabels {\n loginWith: string\n brandIconAlt: string\n}\n\nexport const DEFAULT_SSO_LOGIN_BUTTON_LABELS: SsoLoginButtonLabels = {\n loginWith: 'Login with',\n brandIconAlt: 'ARBI Docs',\n}\n\nexport interface SsoLoginButtonProps {\n labels?: Partial<SsoLoginButtonLabels>\n onClick: () => void\n /** Source of the brand mark shown first. */\n brandIconSrc?: string\n brandIconAlt?: string\n /** Button test id (default `login-with-arbi-button`). */\n testId?: string\n /** Wrapper test id (default `sso-login-button-container`). */\n containerTestId?: string\n}\n\n/** \"Login with\" button showing the ARBI mark and the supported identity providers. */\nexport function SsoLoginButton({\n onClick,\n brandIconSrc = ARBI_MARK_SRC,\n brandIconAlt,\n testId,\n containerTestId,\n labels,\n}: SsoLoginButtonProps) {\n const l = useMemo(() => ({ ...DEFAULT_SSO_LOGIN_BUTTON_LABELS, ...labels }), [labels])\n return (\n <div\n data-slot=\"sso-login\"\n data-testid={testIdOr(containerTestId, { testId: 'sso-login-button-container' })}\n className=\"text-center\"\n >\n <Button\n onClick={onClick}\n className=\"flex w-full items-center justify-center gap-3\"\n variant=\"outline\"\n data-testid={testIdOr(testId, { testId: 'login-with-arbi-button' })}\n >\n <span>{l.loginWith}</span>\n <div className=\"flex items-center gap-3 pr-1\">\n <img\n src={brandIconSrc}\n alt={brandIconAlt ?? l.brandIconAlt}\n className=\"h-5 w-5 rounded object-contain\"\n />\n\n {/* LinkedIn */}\n <svg className=\"h-5 w-5\" viewBox=\"0 0 24 24\" fill=\"#0A66C2\" aria-hidden=\"true\">\n <path d=\"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z\" />\n </svg>\n\n {/* Google */}\n <svg className=\"h-5 w-5\" viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path\n fill=\"#4285F4\"\n d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\"\n />\n <path\n fill=\"#34A853\"\n d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\"\n />\n <path\n fill=\"#FBBC05\"\n d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z\"\n />\n <path\n fill=\"#EA4335\"\n d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\"\n />\n </svg>\n\n {/* Apple */}\n <svg className=\"h-5 w-5\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z\" />\n </svg>\n </div>\n </Button>\n </div>\n )\n}\n","import { hrefFor, isDeepLinkPath, parseHref } from '../lib/routes'\n\nconst RETURN_URL_KEY = 'arbi_return_url'\n\n/**\n * Strip trailing slashes so `/login/` compares equal to `/login` (bare `/`\n * stays `/`). External / typed / marketing links commonly arrive with a\n * trailing slash; without normalizing, `/login/` slips past the auth-page\n * guard below, gets saved as the return URL, and the post-auth effect\n * `window.location.href`-reloads straight back into the login shell —\n * racing session persistence and wedging the user on /login.\n */\nexport function normalizeAuthPath(pathname: string): string {\n return pathname.replace(/\\/+$/, '') || '/'\n}\n\n/**\n * Auth shells we must never save as a return URL nor hard-reload into\n * (trailing-slash tolerant).\n */\nexport function isAuthRoutePath(pathname: string): boolean {\n const p = normalizeAuthPath(pathname)\n return p === '/login' || p === '/sso'\n}\n\n/**\n * Saves the current URL for post-authentication redirect\n * Preserves pathname, search params, and hash\n */\nexport function preserveAuthReturnUrl(url?: string): void {\n const { pathname, search, hash } = window.location\n const urlToSave = url || `${pathname}${search}${hash}`\n // Guard against the URL being saved, not the current page — a caller can be\n // on /login itself and still pass an explicit destination to save for after\n // auth (e.g. a resource-share invite link's `&next=` param), which must not\n // be silently dropped just because /login is where it's being parsed. A\n // fixed dummy base (rather than window.location.origin) resolves a bare\n // path like `/wrk-.../doc-...` without depending on window.location being\n // in a valid state — an absolute `url` (e.g. McpConnect's window.location.href)\n // ignores the base entirely, per the URL spec.\n const guard = url ? new URL(url, 'http://dummy-base.invalid') : { pathname, search, hash }\n const path = normalizeAuthPath(guard.pathname)\n\n // Don't save the auth pages themselves, or the bare home with nothing to\n // return to. Deep links are path-based (e.g. `/wrk-…/con-…/msg-…`), so they\n // carry a non-`/` pathname and are preserved naturally. We still save `/`\n // when it carries a query (e.g. `?review_access=…`) so those flows survive\n // the login round-trip.\n const isAuthPage = isAuthRoutePath(guard.pathname)\n const isBareHome = path === '/' && !guard.search && !guard.hash\n // Embedded add-in panels (Word/Chrome) own their own post-auth state and must\n // never become a saved return URL — otherwise the main-app post-auth effect\n // would `window.location.href` into the panel (a full reload that breaks the\n // just-established session inside the Office iframe → bounce back to login).\n const isEmbedded = path.startsWith('/word/') || path.startsWith('/chrome/')\n\n if (!isAuthPage && !isBareHome && !isEmbedded) {\n sessionStorage.setItem(RETURN_URL_KEY, urlToSave)\n }\n}\n\n/** The saved return URL, taken: it is cleared, so only the first reader acts on it. */\nexport function takeAuthReturnUrl(): string | null {\n const returnUrl = sessionStorage.getItem(RETURN_URL_KEY)\n if (returnUrl) sessionStorage.removeItem(RETURN_URL_KEY)\n return returnUrl || null\n}\n\n/** Where a saved return URL leads after the sign-in, decided once. */\nexport type AuthReturnDestination =\n /** The review of an access request (`PENDING_ACCESS_REVIEW_VIEW`). */\n | { type: 'review_access'; notificationId: string }\n /** Where a notification leads (`PENDING_NOTIFICATION_VIEW`). */\n | { type: 'notification'; notificationId: string }\n /** A place the signed-in app opens itself: navigate there client-side (a full load would race\n * the session just established). */\n | { type: 'path'; path: string }\n /** Another page of this site: load it. */\n | { type: 'external'; url: string }\n\n/**\n * Take the saved return URL (`takeAuthReturnUrl`: only the first caller gets it) and decide where\n * it leads; the caller navigates. Only an address of this site counts: another origin is dropped,\n * and so is an auth page, which would bounce straight back into the sign-in.\n */\nexport function resolveAuthReturn(): AuthReturnDestination | null {\n const returnUrl = takeAuthReturnUrl()\n if (!returnUrl) return null\n let url: URL\n try {\n url = new URL(returnUrl, window.location.origin)\n } catch {\n return null\n }\n if (url.origin !== window.location.origin) return null\n const { pathname, search, hash } = url\n const route = parseHref(`${pathname}${search}${hash}`)\n switch (route?.kind) {\n case 'review-access':\n return { type: 'review_access', notificationId: route.notificationId }\n case 'notification':\n return { type: 'notification', notificationId: route.notificationId }\n }\n // A deep link opens in the app, a malformed one too (the app says it cannot be opened).\n if (isDeepLinkPath(pathname)) return { type: 'path', path: `${pathname}${search}${hash}` }\n switch (route?.kind) {\n case 'workspace':\n case 'conversation':\n case 'document':\n case 'action':\n // A legacy hash link (`/#/wrk-…`) opens at its path.\n return { type: 'path', path: hrefFor(route)! }\n // A secure-mail claim's key never rides in the saved address; a call keeps its invite and key.\n case 'secure-mail':\n return { type: 'path', path: pathname }\n case 'call':\n return { type: 'path', path: `${pathname}${search}${hash}` }\n }\n if (isAuthRoutePath(pathname)) return null\n return { type: 'external', url: returnUrl }\n}\n\n/**\n * Where a signed-out visit to a page that needs the sign-in goes: the sign-in, with the page kept\n * for after it (the bare start is not worth keeping).\n */\nexport function signInRedirect(): string {\n const { pathname, search, hash } = window.location\n if (!(normalizeAuthPath(pathname) === '/' && !search && !hash)) preserveAuthReturnUrl()\n return '/login'\n}\n","/**\n * InstallInstructionsDialog\n *\n * Shown when the user asks to install the ARBI app but the browser can't open\n * the install dialog directly (Safari, Firefox, or a Chromium browser that\n * never fired beforeinstallprompt — e.g. it's already installed). The\n * per-browser steps come from @arbidocs/blocks.\n */\n\nimport {\n Dialog,\n DialogContent,\n DialogHeader,\n DialogTitle,\n DialogDescription,\n} from '@arbidocs/react/ui'\nimport { getInstallInstructions } from '../shell/install-instructions'\n\ninterface InstallInstructionsDialogProps {\n open: boolean\n onOpenChange: (open: boolean) => void\n}\n\nexport function InstallInstructionsDialog({ open, onOpenChange }: InstallInstructionsDialogProps) {\n const guide = getInstallInstructions({ appName: 'ARBI' })\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent data-testid=\"install-instructions-dialog\">\n <DialogHeader>\n <DialogTitle>{guide.heading}</DialogTitle>\n <DialogDescription className=\"sr-only\">\n Steps to install the ARBI app on your device.\n </DialogDescription>\n </DialogHeader>\n <ol className=\"list-decimal space-y-2 pl-5 text-sm text-foreground/90\">\n {guide.steps.map((step) => (\n <li key={step}>{step}</li>\n ))}\n </ol>\n {guide.note && <p className=\"mt-3 text-xs text-muted-foreground\">{guide.note}</p>}\n </DialogContent>\n </Dialog>\n )\n}\n"]}
|
|
@@ -702,10 +702,19 @@ function MeetingThreadRecordingsAction({
|
|
|
702
702
|
] }) })
|
|
703
703
|
] });
|
|
704
704
|
}
|
|
705
|
+
function OwnedAgentCallButton({ agentId }) {
|
|
706
|
+
const { data: agents = [] } = react.useAgents();
|
|
707
|
+
const agent = agents.find((item) => item.external_id === agentId);
|
|
708
|
+
return agent?.encryption_public_key ? /* @__PURE__ */ jsxRuntime.jsx(DmCallButton, { peer: agent }) : null;
|
|
709
|
+
}
|
|
705
710
|
function ConnectedConversationCallActions() {
|
|
706
711
|
const conversationId = react.useArbiSessionState((state) => state.conversationId);
|
|
707
712
|
const { conversations } = react.useConversationItems();
|
|
708
713
|
const conversation = conversationId ? conversations.find((c) => c.external_id === conversationId) : void 0;
|
|
714
|
+
const selectedAgentId = react.useArbiSessionState(
|
|
715
|
+
(state) => conversationId ? state.agentChatOwners?.[conversationId] : state.newAgentChat?.workspaceId === state.workspaceId ? state.newAgentChat?.agentId : void 0
|
|
716
|
+
);
|
|
717
|
+
const agentId = selectedAgentId ?? conversation?.created_by_ext_id;
|
|
709
718
|
const meetingCallExtId = conversation?.meeting_call_ext_id ?? null;
|
|
710
719
|
const { messageHistory } = react.useConversationData();
|
|
711
720
|
const threadMessages = useMeetingThreadMessages(meetingCallExtId, messageHistory);
|
|
@@ -717,6 +726,7 @@ function ConnectedConversationCallActions() {
|
|
|
717
726
|
})) : [],
|
|
718
727
|
[meetingCallExtId, threadMessages]
|
|
719
728
|
);
|
|
729
|
+
if (agentId?.startsWith("agt-")) return /* @__PURE__ */ jsxRuntime.jsx(OwnedAgentCallButton, { agentId });
|
|
720
730
|
if (!conversationId) return null;
|
|
721
731
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
722
732
|
/* @__PURE__ */ jsxRuntime.jsx(ThreadCallButton, { conversationId }),
|
|
@@ -1090,6 +1100,7 @@ exports.GroupCallButton = GroupCallButton;
|
|
|
1090
1100
|
exports.MeetingThreadRecordingsAction = MeetingThreadRecordingsAction;
|
|
1091
1101
|
exports.MeetingThreadTranscriptAction = MeetingThreadTranscriptAction;
|
|
1092
1102
|
exports.NewCallChip = NewCallChip;
|
|
1103
|
+
exports.OwnedAgentCallButton = OwnedAgentCallButton;
|
|
1093
1104
|
exports.ProvisionalSpeakers = ProvisionalSpeakers;
|
|
1094
1105
|
exports.StartCallButton = StartCallButton;
|
|
1095
1106
|
exports.ThreadCallButton = ThreadCallButton;
|
|
@@ -1100,5 +1111,5 @@ exports.matchesQuery = matchesQuery;
|
|
|
1100
1111
|
exports.useCallPersonName = useCallPersonName;
|
|
1101
1112
|
exports.useMeetingThreadMessages = useMeetingThreadMessages;
|
|
1102
1113
|
exports.useProvisionalSpeakers = useProvisionalSpeakers;
|
|
1103
|
-
//# sourceMappingURL=chunk-
|
|
1104
|
-
//# sourceMappingURL=chunk-
|
|
1114
|
+
//# sourceMappingURL=chunk-RJMKTK4P.cjs.map
|
|
1115
|
+
//# sourceMappingURL=chunk-RJMKTK4P.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/calls/connected/StartCallButton.tsx","../src/calls/connected/call-people.ts","../src/calls/connected/CallPeoplePicker.tsx","../src/calls/connected/ThreadCallButton.tsx","../src/calls/connected/GroupCallButton.tsx","../src/calls/connected/DmCallButton.tsx","../src/calls/connected/NewCallChip.tsx","../src/connection/conversation/useMeetingThreadMessages.ts","../src/calls/connected/MeetingThreadTranscriptAction.tsx","../src/calls/connected/MeetingThreadRecordingsAction.tsx","../src/calls/connected/OwnedAgentCallButton.tsx","../src/calls/connected/ConnectedConversationCallActions.tsx","../src/calls/connected/ChatCallCard.tsx","../src/calls/connected/call-person-name.ts","../src/calls/connected/CallConversationParts.tsx","../src/calls/connected/provisional-speakers.ts","../src/calls/connected/ConnectedCallChatHistory.tsx"],"names":["useCallsEnabled","useCanHostCalls","useState","useCallSession","Tooltip","jsx","TooltipTrigger","Button","cn","Phone","TooltipContent","getUserDisplayName","isAgent","jsxs","Checkbox","Mail","UserPlus","useBlocksEnvironment","useRevokeCallInviteLink","useCallInviteLinks","X","useCreateContact","useConnectedWorkspace","useWorkspaces","usePeople","usePeopleSearch","useEffect","useMemo","added","ArbiApiError","refusalReason","Dialog","DialogContent","DialogHeader","DialogTitle","DialogDescription","Input","DialogFooter","useArbi","useConnectedConversations","threadLiveCallId","Fragment","openCall","startThreadCall","chatLiveCallId","startChatCall","userDisplayName","startContactsCall","startDmCall","DmInviteChip","contactsCallTitle","hasRecordingTranscript","threadTranscriptRef","useRecordingWindows","supersedeLiveTranscript","useCall","useWorkspaceUsers","threadTranscriptLines","SaveTranscriptToThread","usePendingRecording","HeaderAction","Disc","RecordingsList","useAgents","useArbiSessionState","useConversationItems","useConversationData","ScheduleCallButton","isCallLive","formatCallDuration","PhoneOff","useMyCallStatus","EmptyState","AudioLines","Captions","CaptionsOff","ProvisionalTranscriptLine","CallUserPill","useSpeakingIds","useRef","chats","chatTranscriptRef","supersededTranscriptLines","sortTranscriptMessages","transcriptRuns","TranscriptEntry","DateSeparator","RecordingCard","ConversationFilter"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBO,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A;AAAA,sBAEfQ,eAAAA,CAAC4B,gBAAAA,EAAA,EACE,QAAA,EAAA;AAAA,QAAA,mBAAA,CAAoB,CAAC,CAAA;AAAA,QACrB,QAAA,CAAS,MAAM,CAAC;AAAA,OAAA,EAAA,EAFJ,IAAA,CAAK,QAAQ,WAG5B;AAAA,KACD,CAAA;AAAA,IAAA,CACD,IAAA,KAAS,KAAA,IAAS,IAAA,KAAS,MAAA,KAAW,YAAA;AAAA,IACvC,SAAS,KAAA,oBAASpC,cAAAA,CAAC,mBAAA,EAAA,EAAoB,KAAK,mBAAA,EAAqB;AAAA,GAAA,EACpE,CAAA;AAEJ","file":"chunk-RJMKTK4P.cjs","sourcesContent":["/**\n * Header button that starts (or joins) a call. Renders nothing when calling is\n * not configured on this deployment, and offers only joining a live call to people who may\n * not host calls (Free on the hosted service, external on a Box).\n */\n\nimport { useCallSession, useCallsEnabled, useCanHostCalls } from '@arbidocs/react'\nimport { useState, type ReactElement } from 'react'\nimport { Phone } from 'lucide-react'\nimport { Button, cn, Tooltip, TooltipContent, TooltipTrigger } from '@arbidocs/react/ui'\n\nexport interface StartCallButtonProps {\n /** Starts the call; resolves to whether it opened. */\n onStart(): Promise<boolean>\n /** A call is already running here (the button joins it). */\n isLive?: boolean\n /** Tooltip / accessible label. */\n label?: string\n testId?: string\n}\n\nexport function StartCallButton(props: StartCallButtonProps): ReactElement | null {\n // Gate first so a deployment without calls pays for none of the hooks below.\n const enabled = useCallsEnabled()\n const canHost = useCanHostCalls()\n return enabled && (canHost || props.isLive) ? <EnabledStartCallButton {...props} /> : null\n}\n\nfunction EnabledStartCallButton({\n onStart,\n isLive = false,\n label = 'Start call',\n testId = 'start-call-button',\n}: StartCallButtonProps): ReactElement {\n const [isStarting, setIsStarting] = useState(false)\n const inCall = useCallSession((s) => s.active !== null)\n const text = inCall ? 'Already in a call' : isLive ? 'Join call' : label\n\n return (\n <Tooltip>\n <TooltipTrigger asChild>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon\"\n aria-label={isLive ? 'Join call' : label}\n data-testid={testId}\n data-live={isLive || undefined}\n disabled={isStarting || inCall}\n onClick={() => {\n setIsStarting(true)\n void onStart().finally(() => setIsStarting(false))\n }}\n className={cn(\n 'text-muted-foreground hover:text-foreground',\n isLive && 'text-green-text hover:text-green-text'\n )}\n >\n <Phone className={cn('size-5', isLive && 'animate-pulse')} />\n </Button>\n </TooltipTrigger>\n <TooltipContent>\n <p>{text}</p>\n </TooltipContent>\n </Tooltip>\n )\n}\n","/**\n * Who a call picker offers, in which order, and what picking them does — pure, so the rules are\n * tested without React (see `CallPeoplePicker`).\n *\n * - `workspace` (a thread call): members of the thread's own workspace only. Nobody else may be\n * rung, admitted or knock on a workspace-locked call.\n * - `chat` (a group's call): the group's members.\n * - `contacts` (\"New call\", calendar): members of the current workspace first, then my other\n * contacts. Only contacts can be picked (the server answers `403 not_a_contact` otherwise): a\n * workspace member who is not one yet offers \"Add contact\". Registered contacts are rung (K\n * sealed to them); unregistered ones (invited / expired / a card with an e-mail) get a personal\n * invite link by e-mail: create an ARBI account, then straight into the call (no anonymous\n * guests).\n *\n * Your own assistants are offered separately in the contacts scope. Other agents and I are never offered.\n */\n\nimport type { contacts } from '@arbidocs/sdk/browser'\nimport { getUserDisplayName, isAgent } from '@arbidocs/react/ui'\nimport { type UserResponse } from '@arbidocs/react'\n\ntype Contact = contacts.Contact\n\nexport type CallPickerScope = 'workspace' | 'chat' | 'contacts'\n\n/**\n * - `ring`: an ARBI user, rung in-app.\n * - `invite`: an unregistered contact, e-mailed a personal invite link (register, then join).\n * - `add-contact`: a workspace member who is not my contact yet (add, then pick).\n * - `unavailable`: shown greyed out with `reason`.\n */\ntype CallCandidateStatus = 'ring' | 'invite' | 'add-contact' | 'unavailable'\n\nexport interface CallCandidate {\n /** `usr-…` for a user, `cnt-…` for an unregistered contact. */\n id: string\n name: string\n email: string | null\n section: 'members' | 'contacts' | 'assistants'\n status: CallCandidateStatus\n /** Why it cannot be picked (tooltip), or what picking does (\"will get an e-mail link\"). */\n reason?: string\n user: UserResponse | null\n contactExtId: string | null\n}\n\nexport const INVITE_LINK_HINT = 'will get an invitation to create an ARBI account and join'\nconst NO_KEY_REASON = 'Cannot receive encrypted calls yet'\nconst NO_EMAIL_REASON = 'No e-mail address to send a link to'\n\nfunction contactName(contact: Contact): string {\n return (\n contact.card?.name?.trim() ||\n [contact.card?.given_name, contact.card?.family_name].filter(Boolean).join(' ') ||\n (contact.user ? getUserDisplayName(contact.user) : '') ||\n contactEmail(contact) ||\n 'Contact'\n )\n}\n\nfunction contactEmail(contact: Contact): string | null {\n return contact.email ?? contact.user?.email ?? contact.card?.emails?.[0]?.email ?? null\n}\n\n/** One of my contacts, as the picker needs it (from a people search hit, or a contact just added). */\nexport interface CallContact {\n contactExtId: string\n /** The ARBI account; null for a contact not on ARBI yet. */\n user: UserResponse | null\n name: string\n email: string | null\n}\n\n/** A contact row as a {@link CallContact}; null for one that cannot be called (failed, agent, no id). */\nexport function callContactOf(contact: Contact): CallContact | null {\n if (!contact.external_id || contact.status === 'failed') return null\n if (contact.user && isAgent(contact.user)) return null\n return {\n contactExtId: contact.external_id,\n user: contact.user ?? null,\n name: contactName(contact),\n email: contactEmail(contact),\n }\n}\n\nfunction userCandidate(\n user: UserResponse,\n section: CallCandidate['section'],\n status: CallCandidateStatus,\n contactExtId: string | null = null\n): CallCandidate {\n const ringable = status !== 'ring' || !!user.encryption_public_key\n return {\n id: user.external_id,\n name: getUserDisplayName(user) || user.email,\n email: user.email ?? null,\n section,\n status: ringable ? status : 'unavailable',\n reason: ringable ? undefined : NO_KEY_REASON,\n user,\n contactExtId,\n }\n}\n\nexport function buildCallCandidates(opts: {\n scope: CallPickerScope\n /** `workspace` / `contacts`: the workspace's members; `chat`: the chat's members. */\n members: UserResponse[]\n /** `contacts` only: my contacts to offer (the people search's hits). */\n contacts?: CallContact[]\n /** Owned assistants; supplied by the account's people directory. */\n assistants?: UserResponse[]\n /** `contacts` only: my contact id for a workspace member, null when they are not my contact. */\n contactIdOf?: (user: UserResponse) => string | null\n me: string | null | undefined\n}): CallCandidate[] {\n const seen = new Set<string>()\n const out: CallCandidate[] = []\n const add = (c: CallCandidate) => {\n if (seen.has(c.id)) return\n seen.add(c.id)\n out.push(c)\n }\n const people = (users: UserResponse[]) =>\n users.filter((u) => !isAgent(u) && u.external_id !== opts.me)\n\n if (opts.scope !== 'contacts') {\n for (const u of people(opts.members)) add(userCandidate(u, 'members', 'ring'))\n return out\n }\n\n for (const assistant of opts.assistants ?? []) {\n if (isAgent(assistant) && assistant.parent_ext_id === opts.me)\n add(userCandidate(assistant, 'assistants', 'ring'))\n }\n\n const contacts = (opts.contacts ?? []).filter((c) => !(c.user && isAgent(c.user)))\n const contactOf = new Map(\n contacts.filter((c) => c.user).map((c) => [c.user!.external_id, c.contactExtId] as const)\n )\n // Members of the current workspace first: pickable once they are my contacts.\n for (const u of people(opts.members)) {\n const contactId = contactOf.get(u.external_id) ?? opts.contactIdOf?.(u) ?? null\n add(userCandidate(u, 'members', contactId ? 'ring' : 'add-contact', contactId))\n }\n for (const c of contacts) {\n if (c.user) {\n if (c.user.external_id === opts.me) continue\n add(userCandidate(c.user, 'contacts', 'ring', c.contactExtId))\n continue\n }\n const status: CallCandidateStatus = c.email ? 'invite' : 'unavailable'\n add({\n id: c.contactExtId,\n name: c.name,\n email: c.email,\n section: 'contacts',\n status,\n reason: c.email ? INVITE_LINK_HINT : NO_EMAIL_REASON,\n user: null,\n contactExtId: c.contactExtId,\n })\n }\n return out\n}\n\n/** Whether a candidate can be ticked. */\nexport function isPickable(c: CallCandidate): boolean {\n return c.status === 'ring' || c.status === 'invite'\n}\n\n/** Case-insensitive match on name or e-mail. */\nexport function matchesQuery(c: CallCandidate, query: string): boolean {\n const q = query.trim().toLowerCase()\n if (!q) return true\n return c.name.toLowerCase().includes(q) || (c.email ?? '').toLowerCase().includes(q)\n}\n","/**\n * Pick who a call rings — one picker for every way a call starts:\n *\n * - `workspace` (thread call): members of the thread's own workspace, nobody ticked by default;\n * - `chat` (a group's call): the group's members (the caller decides who is pre-ticked);\n * - `contacts` (\"New call\", or adding people to a running call): members of the current\n * workspace first, then my contacts matching the search (the one people search). Only contacts can be picked; \"Add contact…\" creates\n * one inline (and sends the platform invitation) and ticks it. Registered contacts are rung;\n * unregistered ones are marked \"will get an invitation to create an ARBI account and join\" and\n * get a personal invite link by e-mail.\n *\n * With `callExtId` (a running call I host) the invitations already sent are listed with \"Revoke\".\n * Your own assistants can be invited into an ordinary call. The rules live in `call-people.ts`.\n */\n\nimport {\n useCallInviteLinks,\n useCreateContact,\n useRevokeCallInviteLink,\n useWorkspaces,\n type CallInviteContact,\n usePeople,\n usePeopleSearch,\n type UserResponse,\n} from '@arbidocs/react'\nimport { useEffect, useMemo, useState, type ReactElement } from 'react'\nimport { ArbiApiError, refusalReason } from '@arbidocs/sdk/browser'\nimport { Mail, UserPlus, X } from 'lucide-react'\nimport {\n Button,\n Checkbox,\n cn,\n Dialog,\n DialogContent,\n DialogDescription,\n DialogFooter,\n DialogHeader,\n DialogTitle,\n Input,\n Tooltip,\n TooltipContent,\n TooltipTrigger,\n} from '@arbidocs/react/ui'\nimport type { calls } from '@arbidocs/sdk/browser'\nimport { useBlocksEnvironment } from '../../provider/environment'\nimport { useConnectedWorkspace } from '../../connection/ConnectionProvider'\nimport {\n buildCallCandidates,\n callContactOf,\n type CallContact,\n isPickable,\n matchesQuery,\n type CallCandidate,\n type CallPickerScope,\n} from './call-people'\n\nconst EMAIL_RE = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/\n\nexport interface CallPeopleSelection {\n /** ARBI users to ring (K sealed to each). */\n ring: UserResponse[]\n /** Unregistered contacts to e-mail a personal invite link. */\n invites: CallInviteContact[]\n}\n\nexport interface CallPeoplePickerProps {\n open: boolean\n onOpenChange: (open: boolean) => void\n scope: CallPickerScope\n /** `workspace`: the thread's workspace; `contacts`: the current one (default: the selected one). */\n workspaceExtId?: string | null\n /** `chat`: the chat's members. */\n members?: UserResponse[]\n /** Ticked when the picker opens. */\n preselected?: string[]\n title?: string\n description?: string\n actionLabel?: string\n /** A running call I host: list its invitations (with revoke). */\n callExtId?: string | null\n /** Start / invite. A rejection keeps the picker open. */\n onSubmit: (selection: CallPeopleSelection) => Promise<unknown>\n}\n\nconst COPY: Record<CallPickerScope, { title: string; description: string; action: string }> = {\n workspace: {\n title: 'Call thread members',\n description:\n 'Only members of this thread’s workspace can join. Pick who to ring — or nobody, and share the call from the thread.',\n action: 'Start call',\n },\n chat: {\n title: 'Call the group',\n description: 'The people you pick are rung.',\n action: 'Start call',\n },\n contacts: {\n title: 'New call',\n description:\n 'Your contacts with an ARBI account are rung. Others get an invitation to create an account and join.',\n action: 'Start call',\n },\n}\n\nfunction CandidateRow({\n candidate,\n checked,\n onToggle,\n onAddContact,\n adding,\n}: {\n candidate: CallCandidate\n checked: boolean\n onToggle: () => void\n onAddContact: () => void\n adding: boolean\n}) {\n const pickable = isPickable(candidate)\n const hint =\n candidate.status === 'invite'\n ? candidate.reason\n : candidate.status === 'add-contact'\n ? 'Not in your contacts'\n : undefined\n const row = (\n <li\n className={cn(\n 'flex items-center gap-3 rounded-md px-2 py-1.5',\n pickable ? 'hover:bg-muted' : 'opacity-60'\n )}\n data-testid={`call-picker-row-${candidate.id}`}\n data-status={candidate.status}\n aria-disabled={!pickable || undefined}\n >\n <Checkbox\n checked={checked}\n disabled={!pickable}\n onCheckedChange={onToggle}\n aria-label={`Invite ${candidate.name}`}\n data-testid={`call-picker-check-${candidate.id}`}\n />\n <span className=\"min-w-0 flex-1\">\n <span className=\"block truncate text-sm\">{candidate.name}</span>\n <span className=\"block truncate text-xs text-muted-foreground\">\n {candidate.email}\n {hint && (\n <span className=\"ml-1 inline-flex items-center gap-1\">\n {candidate.status === 'invite' && <Mail className=\"size-3\" aria-hidden />}\n {candidate.email ? `· ${hint}` : hint}\n </span>\n )}\n </span>\n </span>\n {candidate.status === 'add-contact' && (\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"outline\"\n disabled={adding}\n onClick={onAddContact}\n data-testid={`call-picker-add-${candidate.id}`}\n >\n <UserPlus className=\"mr-1 size-3.5\" />\n Add contact\n </Button>\n )}\n </li>\n )\n if (candidate.status !== 'unavailable' || !candidate.reason) return row\n return (\n <Tooltip>\n <TooltipTrigger asChild>{row}</TooltipTrigger>\n <TooltipContent>\n <p>{candidate.reason}</p>\n </TooltipContent>\n </Tooltip>\n )\n}\n\nfunction InviteLinks({ callExtId }: { callExtId: string }) {\n const { notify } = useBlocksEnvironment()\n const revokeLink = useRevokeCallInviteLink(callExtId)\n const { data: invites = [] } = useCallInviteLinks(callExtId)\n const live = invites.filter((i: calls.CallInviteLinkResponse) => !i.revoked_at)\n if (!live.length) return null\n const revoke = async (id: string) => {\n try {\n await revokeLink(id)\n } catch (err) {\n notify(err instanceof Error ? err.message : 'Could not revoke the link', 'error')\n }\n }\n return (\n <section className=\"flex flex-col gap-1\" data-testid=\"call-picker-invite-links\">\n <h3 className=\"text-xs font-medium text-muted-foreground\">Invitations sent</h3>\n <ul className=\"flex flex-col gap-1\">\n {live.map((invite) => (\n <li key={invite.external_id} className=\"flex items-center gap-2 text-sm\">\n <Mail className=\"size-3.5 text-muted-foreground\" aria-hidden />\n <span className=\"min-w-0 flex-1 truncate\">{invite.email}</span>\n {invite.used_at && <span className=\"text-xs text-muted-foreground\">joined</span>}\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"ghost\"\n onClick={() => void revoke(invite.external_id)}\n data-testid={`call-picker-revoke-${invite.external_id}`}\n >\n <X className=\"mr-1 size-3.5\" />\n Revoke\n </Button>\n </li>\n ))}\n </ul>\n </section>\n )\n}\n\nexport function CallPeoplePicker({\n open,\n onOpenChange,\n scope,\n workspaceExtId,\n members: chatMembers = [],\n preselected = [],\n title,\n description,\n actionLabel,\n callExtId,\n onSubmit,\n}: CallPeoplePickerProps): ReactElement {\n const { notify } = useBlocksEnvironment()\n const createContact = useCreateContact()\n const { userId: me, workspaceId: selectedWorkspaceId } = useConnectedWorkspace()\n const { data: workspaces = [] } = useWorkspaces({ enabled: scope !== 'chat' })\n const [picked, setPicked] = useState<Set<string>>(() => new Set(preselected))\n const [query, setQuery] = useState('')\n const [newEmail, setNewEmail] = useState<string | null>(null)\n const [newName, setNewName] = useState('')\n const [adding, setAdding] = useState(false)\n const [busy, setBusy] = useState(false)\n // Contacts added here (the search may not have them yet).\n const [added, setAdded] = useState<CallContact[]>([])\n const { byEmail, users: knownUsers } = usePeople()\n const { people: hits } = usePeopleSearch(open && scope === 'contacts' ? query : '')\n\n const preselectedKey = preselected.join(',')\n useEffect(() => {\n if (open) setPicked(new Set(preselectedKey ? preselectedKey.split(',') : []))\n }, [open, preselectedKey])\n\n const workspaceId = workspaceExtId ?? (scope === 'contacts' ? selectedWorkspaceId : null)\n const workspaceMembers = useMemo(\n () => (workspaces.find((w) => w.external_id === workspaceId)?.users ?? []).map((wu) => wu.user),\n [workspaces, workspaceId]\n )\n const candidates = useMemo(() => {\n // Only my contacts can be picked: the hits that are contacts, and anyone added here.\n const found: CallContact[] = hits.flatMap((p) =>\n p.contactId ? [{ contactExtId: p.contactId, user: p.user, name: p.name, email: p.email }] : []\n )\n return buildCallCandidates({\n scope,\n members: scope === 'chat' ? chatMembers : workspaceMembers,\n contacts: [...added, ...found],\n assistants: knownUsers ?? [],\n contactIdOf: (u) => byEmail(u.email)?.contactId ?? null,\n me,\n })\n }, [scope, chatMembers, workspaceMembers, hits, added, byEmail, me, knownUsers])\n const shown = candidates.filter((c) => matchesQuery(c, query))\n const copy = COPY[scope]\n\n const toggle = (id: string) =>\n setPicked((prev) => {\n const next = new Set(prev)\n if (next.has(id)) next.delete(id)\n else next.add(id)\n return next\n })\n\n /**\n * Add a contact (and send the platform invitation), then tick it. `name` (optional) is kept as the\n * contact card's name, so the invitation and the call title show it instead of the e-mail.\n */\n const addContact = async (email: string, name?: string) => {\n setAdding(true)\n try {\n const cardName = name?.trim()\n const contact = await createContact.mutateAsync({\n email,\n invite: true,\n ...(cardName ? { card: { name: cardName, emails: [{ email }] } } : {}),\n })\n if (contact.status === 'failed') {\n throw new Error(contact.outcome_detail || 'Could not add the contact')\n }\n const added = callContactOf(contact)\n if (added) setAdded((prev) => [...prev, added])\n const id = contact.user?.external_id ?? contact.external_id\n const pickable = contact.user ? !!contact.user.encryption_public_key : !!added?.email\n if (id && pickable) setPicked((prev) => new Set(prev).add(id))\n setNewEmail(null)\n setNewName('')\n } catch (err) {\n notify(\n err instanceof ArbiApiError\n ? refusalReason(err, 'Could not add the contact')\n : err instanceof Error\n ? err.message\n : 'Could not add the contact',\n 'error'\n )\n } finally {\n setAdding(false)\n }\n }\n\n const submit = async () => {\n if (busy) return\n const chosen = candidates.filter((c) => picked.has(c.id) && isPickable(c))\n setBusy(true)\n try {\n await onSubmit({\n ring: chosen.filter((c) => c.status === 'ring' && c.user).map((c) => c.user!),\n invites: chosen\n .filter((c) => c.status === 'invite' && c.contactExtId)\n .map((c) => ({ contactExtId: c.contactExtId!, name: c.name })),\n })\n onOpenChange(false)\n } catch (err) {\n notify(err instanceof Error ? err.message : 'Something went wrong', 'error')\n } finally {\n setBusy(false)\n }\n }\n\n const sections: { id: CallCandidate['section']; label: string }[] =\n scope === 'contacts'\n ? [\n { id: 'assistants', label: 'Your assistants' },\n { id: 'members', label: 'Workspace members' },\n { id: 'contacts', label: 'Contacts' },\n ]\n : [{ id: 'members', label: scope === 'chat' ? 'Members' : 'Workspace members' }]\n const count = candidates.filter((c) => picked.has(c.id) && isPickable(c)).length\n\n return (\n <Dialog open={open} onOpenChange={onOpenChange}>\n <DialogContent className=\"sm:max-w-md\" data-testid=\"call-people-picker\">\n <DialogHeader>\n <DialogTitle>{title ?? copy.title}</DialogTitle>\n <DialogDescription>{description ?? copy.description}</DialogDescription>\n </DialogHeader>\n <div className=\"flex min-h-0 flex-col gap-3\">\n <Input\n placeholder=\"Search people\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n aria-label=\"Search people\"\n data-testid=\"call-picker-search\"\n />\n <div className=\"max-h-80 overflow-y-auto\">\n {sections.map((section) => {\n const rows = shown.filter((c) => c.section === section.id)\n if (!rows.length) return null\n return (\n <section key={section.id} className=\"mb-2\">\n <h3 className=\"px-2 pb-1 text-xs font-medium text-muted-foreground\">\n {section.label}\n </h3>\n <ul data-testid={`call-picker-section-${section.id}`}>\n {rows.map((c) => (\n <CandidateRow\n key={c.id}\n candidate={c}\n checked={picked.has(c.id)}\n onToggle={() => toggle(c.id)}\n adding={adding}\n onAddContact={() => c.email && void addContact(c.email)}\n />\n ))}\n </ul>\n </section>\n )\n })}\n {!shown.length && (\n <p className=\"px-2 py-3 text-sm text-muted-foreground\">\n {scope === 'contacts' && !query.trim()\n ? 'Search your contacts by name or e-mail.'\n : candidates.length\n ? 'Nobody matches.'\n : 'Nobody to call here yet.'}\n </p>\n )}\n </div>\n {scope === 'contacts' &&\n (newEmail === null ? (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n className=\"self-start\"\n onClick={() => setNewEmail(EMAIL_RE.test(query.trim()) ? query.trim() : '')}\n data-testid=\"call-picker-add-contact\"\n >\n <UserPlus className=\"mr-1 size-4\" />\n Add contact…\n </Button>\n ) : (\n <form\n className=\"flex flex-wrap items-center gap-2\"\n onSubmit={(e) => {\n e.preventDefault()\n if (EMAIL_RE.test(newEmail.trim())) void addContact(newEmail.trim(), newName)\n }}\n >\n <Input\n className=\"min-w-[8rem] flex-1\"\n placeholder=\"Name (optional)\"\n value={newName}\n maxLength={200}\n onChange={(e) => setNewName(e.target.value)}\n aria-label=\"New contact's name\"\n autoComplete=\"off\"\n data-testid=\"call-picker-new-name\"\n />\n <Input\n className=\"min-w-[10rem] flex-1\"\n type=\"email\"\n autoFocus\n placeholder=\"name@example.com\"\n value={newEmail}\n onChange={(e) => setNewEmail(e.target.value)}\n aria-label=\"New contact's e-mail\"\n data-testid=\"call-picker-new-email\"\n />\n <Button\n type=\"submit\"\n size=\"sm\"\n disabled={adding || !EMAIL_RE.test(newEmail.trim())}\n data-testid=\"call-picker-new-submit\"\n >\n Add\n </Button>\n <Button\n type=\"button\"\n size=\"sm\"\n variant=\"ghost\"\n onClick={() => {\n setNewEmail(null)\n setNewName('')\n }}\n >\n Cancel\n </Button>\n </form>\n ))}\n {callExtId && scope === 'contacts' && <InviteLinks callExtId={callExtId} />}\n <p className=\"text-xs text-muted-foreground\">Agents can’t join calls.</p>\n </div>\n <DialogFooter>\n <Button variant=\"ghost\" onClick={() => onOpenChange(false)} disabled={busy}>\n Cancel\n </Button>\n <Button onClick={() => void submit()} disabled={busy} data-testid=\"call-picker-submit\">\n {busy ? 'Working…' : `${actionLabel ?? copy.action}${count ? ` (${count})` : ''}`}\n </Button>\n </DialogFooter>\n </DialogContent>\n </Dialog>\n )\n}\n","/**\n * Call button for the open thread — shared threads only. A thread call is locked to the thread's\n * workspace and logged in the thread (a log card). The button opens a members-only picker with\n * nobody ticked: only the members picked are rung (never the whole workspace). While the thread's\n * call is live, the button joins it instead.\n */\n\nimport {\n useArbi,\n threadLiveCallId,\n useCallSession,\n useCanHostCalls,\n openCall,\n startThreadCall,\n} from '@arbidocs/react'\nimport { useState, type ReactElement } from 'react'\nimport { useConnectedConversations } from '../../connection/workspaceData'\nimport { useConnectedWorkspace } from '../../connection/ConnectionProvider'\nimport { StartCallButton } from './StartCallButton'\nimport { CallPeoplePicker } from './CallPeoplePicker'\n\nexport function ThreadCallButton({\n conversationId,\n}: {\n conversationId: string\n}): ReactElement | null {\n const arbi = useArbi()\n const { data: conversations } = useConnectedConversations()\n // The conversation list is the workspace open in this session: the thread's own workspace.\n const { workspaceId: workspaceExtId } = useConnectedWorkspace()\n const liveCallId = useCallSession((s) => threadLiveCallId(s, conversationId))\n const isLive = liveCallId !== null\n const canHost = useCanHostCalls()\n const [picking, setPicking] = useState(false)\n const conversation = conversations.find((c) => c.external_id === conversationId)\n if (!conversation?.is_shared) return null\n const title = conversation.title ?? null\n\n return (\n <>\n <StartCallButton\n onStart={async () => {\n // Live: join the thread's running call (get-or-create), ringing nobody. Someone who may not host\n // opens that call directly: get-or-create would make them the host of a new one.\n if (liveCallId && !canHost) return openCall(arbi, { callExtId: liveCallId })\n if (isLive) return startThreadCall(arbi, { threadExtId: conversationId, title, ring: [] })\n setPicking(true)\n return true\n }}\n isLive={isLive}\n label=\"Call thread members\"\n testId=\"thread-call-button\"\n />\n {picking && (\n <CallPeoplePicker\n open\n onOpenChange={setPicking}\n scope=\"workspace\"\n workspaceExtId={workspaceExtId}\n onSubmit={async ({ ring }) => {\n await startThreadCall(arbi, { threadExtId: conversationId, title, ring })\n }}\n />\n )}\n </>\n )\n}\n","/**\n * Call button for an open group chat: the group's call (the group is its meeting chat). The\n * members picker opens with everyone ticked; only the people left ticked are rung.\n */\n\nimport {\n useArbi,\n chatLiveCallId,\n useCallSession,\n openCall,\n startChatCall,\n useCanHostCalls,\n type UserResponse,\n} from '@arbidocs/react'\nimport { isAgent } from '@arbidocs/react/ui'\nimport { useState, type ReactElement } from 'react'\nimport { useConnectedWorkspace } from '../../connection/ConnectionProvider'\nimport { StartCallButton } from './StartCallButton'\nimport { CallPeoplePicker } from './CallPeoplePicker'\n\nexport function GroupCallButton({\n chatExtId,\n title,\n members,\n}: {\n chatExtId: string\n title: string | null\n members: UserResponse[]\n}): ReactElement {\n const arbi = useArbi()\n const { userId: me } = useConnectedWorkspace()\n const liveCallId = useCallSession((s) => chatLiveCallId(s, chatExtId))\n const isLive = liveCallId !== null\n const canHost = useCanHostCalls()\n const [picking, setPicking] = useState(false)\n const others = members.filter((u) => u.external_id !== me && !isAgent(u))\n\n return (\n <>\n <StartCallButton\n onStart={async () => {\n // Someone who may not host opens the running call itself (a new create would make them its host).\n if (liveCallId && !canHost) return openCall(arbi, { callExtId: liveCallId })\n if (isLive) return startChatCall(arbi, { chatExtId, title, ring: [] })\n setPicking(true)\n return true\n }}\n isLive={isLive}\n label=\"Call the group\"\n testId=\"group-call-button\"\n />\n {picking && (\n <CallPeoplePicker\n open\n onOpenChange={setPicking}\n scope=\"chat\"\n members={others}\n preselected={others.map((u) => u.external_id)}\n onSubmit={async ({ ring }) => {\n await startChatCall(arbi, { chatExtId, title, ring })\n }}\n />\n )}\n </>\n )\n}\n","/** Call button for an open DM thread: a new call with the peer as context, ringing the peer. */\n\nimport {\n useArbi,\n userDisplayName,\n startDmCall,\n startContactsCall,\n type UserResponse,\n} from '@arbidocs/react'\nimport type { ReactElement } from 'react'\nimport { StartCallButton } from './StartCallButton'\n\nexport function DmCallButton({ peer }: { peer: UserResponse }): ReactElement {\n const arbi = useArbi()\n const name = userDisplayName(peer)\n return (\n <StartCallButton\n onStart={() => {\n const recipient = {\n external_id: peer.external_id,\n encryption_public_key: peer.encryption_public_key ?? null,\n name,\n }\n return peer.external_id.startsWith('agt-')\n ? startContactsCall(arbi, { title: name, ring: [recipient], invites: [] })\n : startDmCall(arbi, recipient)\n }}\n label={`Call ${name}`}\n testId=\"dm-call-button\"\n />\n )\n}\n","/**\n * \"New call\" — a call with people from my contacts (no thread or chat). Registered contacts are\n * rung; unregistered ones get a personal invite link by e-mail (register, then join). Its meeting chat is made on first\n * use. Renders nothing unless the person may host calls (server + Settings → Experimental + entitlement).\n */\n\nimport { useArbi, useCallSession, useCanHostCalls, startContactsCall } from '@arbidocs/react'\nimport { getUserDisplayName } from '@arbidocs/react/ui'\nimport { useState, type ReactElement } from 'react'\nimport { DmInviteChip } from '../../collaboration/direct-messages/DirectMessages'\nimport { CallPeoplePicker } from './CallPeoplePicker'\nimport { contactsCallTitle } from '../call-cards'\n\nexport function NewCallChip(): ReactElement | null {\n // Gate first so a deployment without calls pays for none of the hooks below.\n return useCanHostCalls() ? <EnabledNewCallChip /> : null\n}\n\nfunction EnabledNewCallChip(): ReactElement {\n const arbi = useArbi()\n const inCall = useCallSession((s) => s.active !== null)\n const [open, setOpen] = useState(false)\n return (\n <>\n <DmInviteChip\n testId=\"dm-new-call-chip\"\n title=\"New call\"\n description={inCall ? 'You are already in a call' : 'Call people from your contacts'}\n onClick={() => !inCall && setOpen(true)}\n />\n {open && (\n <CallPeoplePicker\n open\n onOpenChange={setOpen}\n scope=\"contacts\"\n onSubmit={async ({ ring, invites }) => {\n await startContactsCall(arbi, {\n title: contactsCallTitle([\n ...ring.map((u) => getUserDisplayName(u)),\n ...invites.map((g) => g.name),\n ]),\n ring,\n invites,\n })\n }}\n />\n )}\n </>\n )\n}\n","/**\n * A conversation's messages as its thread shows them: in a call's meeting thread, a recording's\n * transcript supersedes the live lines spoken while it recorded (else both would show).\n */\nimport { useMemo } from 'react'\nimport {\n hasRecordingTranscript,\n supersedeLiveTranscript,\n threadTranscriptRef,\n useRecordingWindows,\n} from '@arbidocs/react'\nimport type { ChatMessage } from '@arbidocs/sdk/browser'\n\nexport function useMeetingThreadMessages(\n meetingCallExtId: string | null,\n messageHistory: ChatMessage[]\n): ChatMessage[] {\n const hasRecTranscript = useMemo(\n () => !!meetingCallExtId && hasRecordingTranscript(messageHistory, threadTranscriptRef),\n [meetingCallExtId, messageHistory]\n )\n const recordingWindows = useRecordingWindows(meetingCallExtId, hasRecTranscript)\n return useMemo(\n () =>\n hasRecTranscript\n ? supersedeLiveTranscript(messageHistory, threadTranscriptRef, recordingWindows)\n : messageHistory,\n [hasRecTranscript, messageHistory, recordingWindows]\n )\n}\n","/**\n * \"Save transcript to thread\" in a WORKSPACE meeting thread (a thread call's meeting chat): for the\n * call's creator, the thread's `transcript_segment` comments are posted as one attributed transcript\n * comment into another thread they pick. Renders nothing for anyone else or without a transcript.\n */\n\nimport { useMemo, type ReactElement } from 'react'\nimport { useCall, useWorkspaceUsers, threadTranscriptLines } from '@arbidocs/react'\nimport { getUserDisplayName } from '@arbidocs/react/ui'\nimport { SaveTranscriptToThread } from './SaveTranscriptToThread'\n\nexport function MeetingThreadTranscriptAction({\n conversationExtId,\n meetingCallExtId,\n title,\n messages,\n}: {\n conversationExtId: string\n /** The thread's call (`meeting_call_ext_id`), or null when it is not a meeting thread. */\n meetingCallExtId: string | null | undefined\n title: string | null | undefined\n messages: { content?: string | null; created_at?: string | null; tools?: unknown }[]\n}): ReactElement | null {\n const { data: call } = useCall(meetingCallExtId)\n const { data: workspaceUsers = [] } = useWorkspaceUsers()\n const lines = useMemo(\n () =>\n threadTranscriptLines(messages, (id) => {\n const user = workspaceUsers.find((wu) => wu.user.external_id === id)?.user\n return user ? getUserDisplayName(user) : null\n }),\n [messages, workspaceUsers]\n )\n if (!meetingCallExtId || !call?.is_creator) return null\n return (\n <SaveTranscriptToThread\n title={title}\n lines={lines}\n excludeConversationExtId={conversationExtId}\n iconOnly\n />\n )\n}\n","/**\n * \"Recordings\" in a WORKSPACE meeting thread (a thread call's meeting chat): the call's recordings\n * in a dialog — for members of the thread's workspace (the recordings are under its key). A\n * recording link (`/<wrk>/<con>?recording=<crc>`) opens it.\n */\n\nimport { useEffect, useState, type ReactElement } from 'react'\nimport { Disc } from 'lucide-react'\nimport {\n Dialog,\n DialogContent,\n DialogDescription,\n DialogHeader,\n DialogTitle,\n} from '@arbidocs/react/ui'\nimport { usePendingRecording } from '../recording-link'\nimport { HeaderAction } from '../HeaderAction'\nimport { RecordingsList } from './RecordingCard'\n\nexport function MeetingThreadRecordingsAction({\n meetingCallExtId,\n title,\n}: {\n /** The thread's call (`meeting_call_ext_id`). */\n meetingCallExtId: string\n title: string | null | undefined\n}): ReactElement {\n const [open, setOpen] = useState(false)\n const pending = usePendingRecording()\n useEffect(() => {\n if (pending) setOpen(true)\n }, [pending])\n return (\n <>\n <HeaderAction\n label=\"Recordings\"\n icon={<Disc className=\"size-3.5\" aria-hidden />}\n // Icon only, the label in a tooltip: in a crowded header the thread's title keeps the room.\n iconOnly\n onClick={() => setOpen(true)}\n testId=\"meeting-recordings\"\n />\n {open && (\n <Dialog open onOpenChange={(o) => !o && setOpen(false)}>\n <DialogContent className=\"sm:max-w-2xl\" data-testid=\"meeting-recordings-dialog\">\n <DialogHeader>\n <DialogTitle>Recordings</DialogTitle>\n <DialogDescription>\n Recordings of this meeting, encrypted under the workspace key. Playing or\n downloading one decrypts it in this browser.\n </DialogDescription>\n </DialogHeader>\n <RecordingsList\n callExtId={meetingCallExtId}\n title={title}\n className=\"max-h-[60vh] overflow-y-auto\"\n />\n </DialogContent>\n </Dialog>\n )}\n </>\n )\n}\n","/** Call an assistant through the normal encrypted room invitation flow. */\nimport { useAgents } from '@arbidocs/react'\nimport type { ReactElement } from 'react'\nimport { DmCallButton } from './DmCallButton'\n\nexport function OwnedAgentCallButton({ agentId }: { agentId: string }): ReactElement | null {\n const { data: agents = [] } = useAgents()\n const agent = agents.find((item) => item.external_id === agentId)\n return agent?.encryption_public_key ? <DmCallButton peer={agent} /> : null\n}\n","/**\n * The call actions of the open conversation (`ConnectedConversationPage`), for the host's header: call\n * the thread's members (or join its live call), schedule a call, and in a meeting thread the host's\n * \"Save transcript to thread\" and the meeting's Recordings. Renders nothing without an open\n * conversation; each action hides itself when calls are off or it does not apply.\n */\n\nimport { useMemo, type ReactElement } from 'react'\nimport { useArbiSessionState, useConversationData, useConversationItems } from '@arbidocs/react'\nimport { useMeetingThreadMessages } from '../../connection/conversation/useMeetingThreadMessages'\nimport { ThreadCallButton } from './ThreadCallButton'\nimport { OwnedAgentCallButton } from './OwnedAgentCallButton'\nimport { ScheduleCallButton } from './ScheduleCallButton'\nimport { MeetingThreadTranscriptAction } from './MeetingThreadTranscriptAction'\nimport { MeetingThreadRecordingsAction } from './MeetingThreadRecordingsAction'\n\nexport function ConnectedConversationCallActions(): ReactElement | null {\n const conversationId = useArbiSessionState((state) => state.conversationId)\n const { conversations } = useConversationItems()\n const conversation = conversationId\n ? conversations.find((c) => c.external_id === conversationId)\n : undefined\n const selectedAgentId = useArbiSessionState((state) =>\n conversationId\n ? state.agentChatOwners?.[conversationId]\n : state.newAgentChat?.workspaceId === state.workspaceId\n ? state.newAgentChat?.agentId\n : undefined\n )\n const agentId = selectedAgentId ?? conversation?.created_by_ext_id\n const meetingCallExtId = conversation?.meeting_call_ext_id ?? null\n const { messageHistory } = useConversationData()\n // Its transcript lines (a recording's transcript supersedes the live ones), for the host's save.\n const threadMessages = useMeetingThreadMessages(meetingCallExtId, messageHistory)\n const meetingMessages = useMemo(\n () =>\n meetingCallExtId\n ? threadMessages.map((m) => ({\n content: m.content,\n created_at: m.created_at,\n tools: m.tools ?? m.meta?.tools,\n }))\n : [],\n [meetingCallExtId, threadMessages]\n )\n if (agentId?.startsWith('agt-')) return <OwnedAgentCallButton agentId={agentId} />\n if (!conversationId) return null\n return (\n <>\n <ThreadCallButton conversationId={conversationId} />\n <ScheduleCallButton conversationId={conversationId} />\n {meetingCallExtId && (\n <MeetingThreadTranscriptAction\n conversationExtId={conversationId}\n meetingCallExtId={meetingCallExtId}\n title={conversation?.title}\n messages={meetingMessages}\n />\n )}\n {meetingCallExtId && (\n <MeetingThreadRecordingsAction\n meetingCallExtId={meetingCallExtId}\n title={conversation?.title}\n />\n )}\n </>\n )\n}\n","/**\n * A `kind=call` chat message (the server posts one into the call's chat — a DM, a group or a\n * meeting chat — when a session starts). The newest card of a call shows its state:\n *\n * live: \"Ada started a call\" · Join\n * ended: \"Call · 12 min · joined Ada, Bob\"\n *\n * Older cards of the same call (earlier sessions) stay a plain \"Call\" line. The call is re-read on\n * `call.started` / `call.ended` (see `refreshCallCards`).\n */\n\nimport { useArbi, useCallSession, useCall, openCall } from '@arbidocs/react'\nimport { useState, type ReactElement } from 'react'\nimport { Phone, PhoneOff } from 'lucide-react'\nimport { Button } from '@arbidocs/react/ui'\nimport { formatCallDuration, isCallLive } from '../call-cards'\n\nexport function ChatCallCard({\n callExtId,\n senderName,\n latest,\n name,\n time,\n}: {\n callExtId: string\n /** Who started the session (the card's sender). */\n senderName: string | null\n /** The newest card of this call in the chat. */\n latest: boolean\n /** A member's display name by user ext id. */\n name: (userExtId: string) => string\n time?: string\n}): ReactElement {\n const arbi = useArbi()\n const { data: call } = useCall(latest ? callExtId : null)\n const liveNow = useCallSession((s) => callExtId in s.liveCalls)\n const inThisCall = useCallSession((s) => s.active?.callExtId === callExtId)\n const inAnotherCall = useCallSession((s) => !!s.active && s.active.callExtId !== callExtId)\n const [busy, setBusy] = useState(false)\n const live = latest && isCallLive(call, liveNow)\n\n let summary: string\n if (live) summary = senderName ? `${senderName} started a call` : 'Call in progress'\n else if (latest && call?.started_at && call.ended_at) {\n const seconds = (Date.parse(call.ended_at) - Date.parse(call.started_at)) / 1000\n const joined = (call.last_participants ?? []).map(name)\n summary = [\n 'Call',\n formatCallDuration(seconds),\n joined.length ? `joined ${joined.join(', ')}` : null,\n ]\n .filter(Boolean)\n .join(' · ')\n } else summary = senderName ? `Call started by ${senderName}` : 'Call'\n\n return (\n <div\n className=\"mx-auto my-2 flex w-fit max-w-full flex-wrap items-center justify-center gap-2 rounded-md border border-border bg-card px-3 py-2 text-xs\"\n data-testid=\"chat-call-card\"\n data-live={live || undefined}\n >\n {live ? (\n <Phone className=\"size-4 animate-pulse text-green-text\" aria-hidden />\n ) : (\n <PhoneOff className=\"size-4 text-muted-foreground\" aria-hidden />\n )}\n <span data-testid=\"chat-call-card-summary\">{summary}</span>\n {time && <time className=\"text-muted-foreground\">{time}</time>}\n {live && (\n <Button\n type=\"button\"\n size=\"sm\"\n className=\"h-7 bg-green-600 text-white hover:bg-green-700\"\n disabled={busy || inThisCall || inAnotherCall}\n title={inAnotherCall ? 'You are already in a call' : undefined}\n onClick={() => {\n setBusy(true)\n void openCall(arbi, { callExtId }).finally(() => setBusy(false))\n }}\n data-testid=\"chat-call-card-join\"\n >\n {inThisCall ? 'In call' : 'Join'}\n </Button>\n )}\n </div>\n )\n}\n","/** A call participant's name, as the people directory knows them. */\n\nimport { useMemo } from 'react'\nimport { useArbi, usePeople } from '@arbidocs/react'\nimport { getUserDisplayName } from '@arbidocs/react/ui'\n\n/** The name for an identity (user ext id): mine, a known person's, else the call's name for them. */\nexport function useCallPersonName(identity: string, fallbackName?: string | null): string {\n const arbi = useArbi()\n const { byId } = usePeople()\n const me = arbi.isLoggedIn && arbi.user.identity()?.externalId === identity\n const profile = me ? arbi.user.profile() : null\n return useMemo(() => {\n if (profile)\n return getUserDisplayName({ given_name: profile.givenName, family_name: profile.familyName })\n const user = byId(identity)\n if (user) return getUserDisplayName(user)\n return (fallbackName || identity).trim().split(/\\s+/).join(' ')\n }, [profile, byId, identity, fallbackName])\n}\n","/**\n * A call's conversation (meeting chat or meeting thread), call-aware: its empty state (\"Call in\n * progress — the transcript will appear here\", or \"No transcript\" afterwards) instead of the\n * generic one, and provisional \"<speaker> is speaking…\" rows while a line is on its way.\n */\n\nimport { useCallSession } from '@arbidocs/react'\nimport type { ReactElement } from 'react'\nimport { AudioLines, Captions, CaptionsOff } from 'lucide-react'\nimport { EmptyState } from '../../components/EmptyState'\nimport { ProvisionalTranscriptLine } from '../../chat/TranscriptLine'\nimport { useMyCallStatus } from '../call-status'\nimport { CallUserPill } from './CallUserPill'\nimport { useCallPersonName } from './call-person-name'\n\n/** The empty conversation of a call: live while the call runs, \"No transcript\" after. */\nexport function CallConversationEmpty({ callExtId }: { callExtId: string }): ReactElement {\n const { inCall, transcribing } = useMyCallStatus(callExtId)\n const live = useCallSession((s) => !!s.liveCalls[callExtId]) || inCall\n if (!live) {\n return (\n <EmptyState\n icon={AudioLines}\n title=\"No transcript\"\n description=\"This call was not transcribed. When a call here is transcribed, what people say appears in this conversation.\"\n className=\"mx-auto my-8 max-w-xl\"\n testId=\"call-conversation-empty\"\n />\n )\n }\n return (\n <EmptyState\n icon={transcribing ? Captions : CaptionsOff}\n title=\"Call in progress — the transcript will appear here\"\n description={\n transcribing\n ? 'Transcription is on: what people say shows up here as they speak.'\n : 'Transcription is off. The host can turn it on with CC in the call.'\n }\n className=\"mx-auto my-8 max-w-xl\"\n testId=\"call-conversation-empty\"\n />\n )\n}\n\nfunction ProvisionalRow({ identity }: { identity: string }): ReactElement {\n const name = useCallPersonName(identity)\n return (\n <ProvisionalTranscriptLine\n speakerId={identity}\n speakerName={name}\n speaker={<CallUserPill identity={identity} />}\n />\n )\n}\n\n/** The provisional rows at the bottom of a call's conversation (never stored). */\nexport function ProvisionalSpeakers({ ids }: { ids: string[] }): ReactElement | null {\n if (!ids.length) return null\n return (\n <div className=\"pb-2\" data-testid=\"transcript-provisional-rows\">\n {ids.map((id) => (\n <ProvisionalRow key={id} identity={id} />\n ))}\n </div>\n )\n}\n","/** Who gets a provisional \"is speaking…\" row in a call's conversation. */\n\nimport { useEffect, useMemo, useRef, useState } from 'react'\nimport { useMyCallStatus } from '../call-status'\nimport { useSpeakingIds } from '../voice-levels'\n\n/** A spoken stretch whose line has not arrived yet. */\ninterface Pending {\n startedAt: number\n lastHeardAt: number\n}\n\n/** How long after someone stops a provisional row waits for their line before it gives up. */\nconst LINE_WAIT_MS = 10_000\n/** A burst shorter than this (a cough, a word) gets no row. */\nconst MIN_SPEECH_MS = 800\n\n/**\n * Who should show a provisional row: people talking now, and people who stopped but whose line\n * has not arrived yet (a line started at or after their stretch began replaces the row).\n */\nexport function useProvisionalSpeakers(\n callExtId: string | null | undefined,\n lines: { speakerId: string; at: number }[]\n): string[] {\n const { inCall, transcribing } = useMyCallStatus(callExtId)\n const speaking = useSpeakingIds()\n const pending = useRef(new Map<string, Pending>())\n const [, tick] = useState(0)\n const active = inCall && transcribing\n const now = Date.now()\n if (active) {\n for (const id of speaking) {\n const p = pending.current.get(id)\n if (p) p.lastHeardAt = now\n else pending.current.set(id, { startedAt: now, lastHeardAt: now })\n }\n } else if (pending.current.size) {\n pending.current.clear()\n }\n // A line that began within the stretch (a little slack for clock skew) replaces the row.\n const latest = useMemo(() => {\n const m = new Map<string, number>()\n for (const l of lines) m.set(l.speakerId, Math.max(m.get(l.speakerId) ?? 0, l.at))\n return m\n }, [lines])\n for (const [id, p] of [...pending.current]) {\n const arrived = (latest.get(id) ?? 0) >= p.startedAt - 3000\n const stale = !speaking.includes(id) && now - p.lastHeardAt > LINE_WAIT_MS\n if ((arrived && !speaking.includes(id)) || stale) pending.current.delete(id)\n else if (arrived) p.startedAt = now\n }\n // Re-check while rows wait for their lines.\n const waiting = pending.current.size > 0\n useEffect(() => {\n if (!waiting) return\n const id = setInterval(() => tick((n) => n + 1), 1000)\n return () => clearInterval(id)\n }, [waiting])\n return [...pending.current]\n .filter(([, p]) => p.lastHeardAt - p.startedAt >= MIN_SPEECH_MS)\n .map(([id]) => id)\n}\n","/**\n * A chat thread's history with its call: the messenger kit's `ThreadHistory` (blocks\n * `ConnectedChatThread`). A chat with a call (a meeting chat, or a direct or group chat a call was\n * started from) shows its call cards, live transcript, recordings and the speakers talking right\n * now, and filters between everything, the typed chat, the transcript and the recordings. Typed\n * messages are drawn by the kit (`renderItem`).\n */\n\nimport { Fragment, useEffect, useMemo, useState } from 'react'\nimport {\n DateSeparator,\n useArbi,\n type ChatThreadMessage,\n useCall,\n chatTranscriptRef,\n hasRecordingTranscript,\n sortTranscriptMessages,\n supersededTranscriptLines,\n type TranscriptExportLine,\n useRecordingWindows,\n} from '@arbidocs/react'\nimport { chats } from '@arbidocs/sdk/browser'\nimport { ConversationFilter } from '../../chat/TranscriptLine'\nimport { transcriptRuns } from '../../chat/transcript-runs'\nimport type { ChatHistoryProps, ChatThreadItem } from '../../connection/messenger/types'\nimport { usePendingRecording } from '../recording-link'\nimport { ChatCallCard } from './ChatCallCard'\nimport { TranscriptEntry } from './TranscriptEntry'\nimport { CallConversationEmpty, ProvisionalSpeakers } from './CallConversationParts'\nimport { useProvisionalSpeakers } from './provisional-speakers'\nimport { SaveTranscriptToThread } from './SaveTranscriptToThread'\nimport { RecordingCard, RecordingsList } from './RecordingCard'\n\nconst { isTranscriptMessage, parseTranscriptContent } = chats\n\nexport function ConnectedCallChatHistory({\n chat,\n messages,\n items,\n renderItem,\n renderEntriesBefore,\n entriesAfter,\n loadOlder,\n memberById,\n senderName,\n myExtId,\n formatTime,\n formatDay,\n}: ChatHistoryProps) {\n const arbi = useArbi()\n // A call's chat: everything, typed chat only, the transcript only, or the recordings.\n const [view, setView] = useState<'all' | 'chat' | 'transcript' | 'recordings'>('all')\n useEffect(() => setView('all'), [chat?.external_id])\n // A call's chat (meeting, DM or group with a call) lists the call's recordings.\n const recordingsCallExtId = chat?.call_ext_id ?? null\n // A recording link opened this chat: show its recordings.\n const pendingRecording = usePendingRecording()\n useEffect(() => {\n if (pendingRecording && recordingsCallExtId) setView('recordings')\n }, [pendingRecording, recordingsCallExtId])\n\n // The newest call card of each call shows its live / ended state; older ones are a plain line.\n const latestCallCards = useMemo(() => {\n const latest = new Map<string, string>()\n for (const m of messages)\n if (m.kind === 'call' && m.call_ext_id && !m.deleted) latest.set(m.call_ext_id, m.external_id)\n return new Set(latest.values())\n }, [messages])\n\n // A recording's transcript supersedes the live lines spoken while it recorded (else both show).\n const hasRecTranscript = useMemo(\n () => hasRecordingTranscript(messages, chatTranscriptRef),\n [messages]\n )\n const recordingWindows = useRecordingWindows(recordingsCallExtId, hasRecTranscript)\n const supersededTranscript = useMemo(\n () => supersededTranscriptLines(messages, chatTranscriptRef, recordingWindows),\n [messages, recordingWindows]\n )\n const transcriptMessages = useMemo(\n () =>\n sortTranscriptMessages(\n messages.filter((m) => isTranscriptMessage(m) && !m.deleted && !supersededTranscript.has(m))\n ),\n [messages, supersededTranscript]\n )\n const hasTranscript = transcriptMessages.length > 0\n\n // The host can save the decrypted transcript as one comment into a workspace thread.\n const { data: meetingCall } = useCall(hasTranscript ? chat?.call_ext_id : null)\n const isHost = !!meetingCall?.is_creator\n const [meetingTitle, setMeetingTitle] = useState<string | null>(null)\n useEffect(() => {\n if (!chat || (!isHost && !recordingsCallExtId)) return\n let cancelled = false\n arbi.chats\n .title(chat)\n .then((t) => !cancelled && setMeetingTitle(t))\n .catch(() => undefined)\n return () => {\n cancelled = true\n }\n }, [arbi, isHost, chat, recordingsCallExtId])\n\n const transcriptSpeaker = (msg: ChatThreadMessage) => {\n const parsed = msg.decryptFailed ? null : parseTranscriptContent(msg.content)\n return { parsed, speakerId: parsed?.speaker_identity || msg.sender_ext_id || '' }\n }\n const transcriptExport = useMemo<TranscriptExportLine[]>(\n () =>\n transcriptMessages\n .filter((m) => !m.decryptFailed)\n .map((m) => {\n const parsed = parseTranscriptContent(m.content)\n const speakerId = parsed?.speaker_identity || m.sender_ext_id || ''\n return {\n speaker:\n parsed?.speaker_name ||\n (memberById(speakerId) ? senderName(speakerId) : '') ||\n 'Former member',\n at: parsed?.started_at ?? m.created_at,\n text: parsed?.text ?? m.content ?? '',\n }\n }),\n [transcriptMessages, memberById, senderName]\n )\n // Consecutive lines of one speaker are one run (the name once); each speaker's newest line is\n // highlighted while they talk in the call.\n const transcriptLayout = useMemo(() => {\n const shown = view === 'transcript' ? transcriptMessages : messages\n const continued = transcriptRuns(\n shown,\n (m) =>\n isTranscriptMessage(m) && !supersededTranscript.has(m)\n ? transcriptSpeaker(m).speakerId\n : null,\n (m) => Date.parse(transcriptSpeaker(m).parsed?.started_at ?? m.created_at ?? '') || 0\n )\n return { continued }\n }, [view, messages, transcriptMessages, supersededTranscript])\n const transcriptEntry = (msg: ChatThreadMessage) => {\n const { parsed, speakerId } = transcriptSpeaker(msg)\n return (\n <TranscriptEntry\n key={msg.external_id}\n speakerId={speakerId}\n speakerName={\n speakerId === myExtId\n ? 'Me'\n : parsed?.speaker_name ||\n (memberById(speakerId) ? senderName(speakerId) : senderName(msg.sender_ext_id))\n }\n text={parsed?.text ?? msg.content ?? ''}\n at={parsed?.started_at ?? msg.created_at}\n continued={transcriptLayout.continued.has(msg)}\n />\n )\n }\n // While I am in this chat's call: \"<speaker> is speaking…\" until their line arrives.\n const chatLines = useMemo(\n () =>\n transcriptMessages.map((m) => {\n const { parsed, speakerId } = transcriptSpeaker(m)\n return { speakerId, at: Date.parse(parsed?.started_at ?? m.created_at ?? '') || 0 }\n }),\n\n [transcriptMessages]\n )\n const provisionalSpeakers = useProvisionalSpeakers(recordingsCallExtId, chatLines)\n\n // One item of the typed chat or the transcript, drawn its way.\n const chatItem = (item: ChatThreadItem, i: number) => {\n const { message: msg, isFirstOfDay } = item\n const deleted = !!msg.deleted\n // A deleted transcript line is not part of the record (it may be stored again).\n if (deleted && isTranscriptMessage(msg)) return null\n const separator = isFirstOfDay && <DateSeparator>{formatDay(msg.created_at)}</DateSeparator>\n if (isTranscriptMessage(msg)) {\n if (view === 'chat') return null\n // A live line superseded by the recording's transcript is not shown.\n const superseded = supersededTranscript.has(msg)\n if (superseded && !isFirstOfDay) return null\n return (\n <Fragment key={msg.external_id}>\n {separator}\n {!superseded && transcriptEntry(msg)}\n </Fragment>\n )\n }\n if (msg.kind === 'recording' && msg.call_ext_id && !deleted) {\n // The server's Recording card (posted when a recording stops).\n return (\n <Fragment key={msg.external_id}>\n {separator}\n <RecordingCard\n callExtId={msg.call_ext_id}\n recordingExtId={msg.recording_ext_id ?? null}\n title={meetingTitle}\n time={formatTime(msg.created_at)}\n />\n </Fragment>\n )\n }\n if (msg.kind === 'call' && msg.call_ext_id && !deleted) {\n return (\n <Fragment key={msg.external_id}>\n {separator}\n <ChatCallCard\n callExtId={msg.call_ext_id}\n senderName={msg.sender_ext_id ? senderName(msg.sender_ext_id) : null}\n latest={latestCallCards.has(msg.external_id)}\n name={senderName}\n time={formatTime(msg.created_at)}\n />\n </Fragment>\n )\n }\n return renderItem(item, i)\n }\n\n const filterOptions = [\n { value: 'all' as const, label: 'All' },\n { value: 'chat' as const, label: 'Chat', testId: 'chat-filter' },\n {\n value: 'transcript' as const,\n label: 'Transcript',\n count: transcriptMessages.length,\n testId: 'transcript-filter',\n },\n ...(recordingsCallExtId\n ? [{ value: 'recordings' as const, label: 'Recordings', testId: 'recordings-filter' }]\n : []),\n ]\n\n return (\n <>\n {messages.length === 0 && recordingsCallExtId && (\n <CallConversationEmpty callExtId={recordingsCallExtId} />\n )}\n {(hasTranscript || recordingsCallExtId) && (\n <div className=\"sticky top-0 z-10 flex justify-center py-1\">\n <ConversationFilter<typeof view>\n value={view}\n options={filterOptions}\n onChange={setView}\n />\n </div>\n )}\n {view === 'recordings' && recordingsCallExtId && (\n <RecordingsList callExtId={recordingsCallExtId} title={meetingTitle} className=\"py-1\" />\n )}\n {loadOlder}\n {view === 'transcript' && (\n <div className=\"flex flex-col py-1\" data-testid=\"transcript-view\">\n {isHost && (\n <SaveTranscriptToThread\n title={meetingTitle}\n lines={transcriptExport}\n className=\"mx-3 mb-2 self-start\"\n />\n )}\n {transcriptMessages.map((msg) => transcriptEntry(msg))}\n <ProvisionalSpeakers ids={provisionalSpeakers} />\n </div>\n )}\n {(view === 'all' || view === 'chat') &&\n items.map((item, i) => (\n // A shared file's card sits among the messages, by time.\n <Fragment key={item.message.external_id}>\n {renderEntriesBefore(i)}\n {chatItem(item, i)}\n </Fragment>\n ))}\n {(view === 'all' || view === 'chat') && entriesAfter}\n {view === 'all' && <ProvisionalSpeakers ids={provisionalSpeakers} />}\n </>\n )\n}\n"]}
|
|
@@ -12,7 +12,7 @@ var chunkJ5CBCUQE_cjs = require('./chunk-J5CBCUQE.cjs');
|
|
|
12
12
|
var chunkF6SXNJU3_cjs = require('./chunk-F6SXNJU3.cjs');
|
|
13
13
|
var chunkD4SJT3NG_cjs = require('./chunk-D4SJT3NG.cjs');
|
|
14
14
|
var chunkOUYBYZ7Y_cjs = require('./chunk-OUYBYZ7Y.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunkA7MGQMOV_cjs = require('./chunk-A7MGQMOV.cjs');
|
|
16
16
|
var chunk4LCLVVYD_cjs = require('./chunk-4LCLVVYD.cjs');
|
|
17
17
|
var chunkSTPBNALX_cjs = require('./chunk-STPBNALX.cjs');
|
|
18
18
|
var chunkDTMBAFIL_cjs = require('./chunk-DTMBAFIL.cjs');
|
|
@@ -1320,7 +1320,7 @@ var ParsedPassage = React.memo(function ParsedPassage2({
|
|
|
1320
1320
|
items: passageItems
|
|
1321
1321
|
}
|
|
1322
1322
|
) : void 0,
|
|
1323
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1323
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkA7MGQMOV_cjs.ConnectedMarkdown, { children: chunk.content })
|
|
1324
1324
|
}
|
|
1325
1325
|
);
|
|
1326
1326
|
});
|
|
@@ -3309,5 +3309,5 @@ function DocumentViewerContent({
|
|
|
3309
3309
|
}
|
|
3310
3310
|
|
|
3311
3311
|
exports.ConnectedDocumentViewer = ConnectedDocumentViewer;
|
|
3312
|
-
//# sourceMappingURL=chunk-
|
|
3313
|
-
//# sourceMappingURL=chunk-
|
|
3312
|
+
//# sourceMappingURL=chunk-TV2HTJD6.cjs.map
|
|
3313
|
+
//# sourceMappingURL=chunk-TV2HTJD6.cjs.map
|