@arbidocs/blocks 0.5.153 → 0.5.155
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/{ConnectedNativeDocxComparison-244UIHSM.cjs → ConnectedNativeDocxComparison-2DAQX5GX.cjs} +8 -8
- package/dist/{ConnectedStreamedWordArtifact-V6BRZMEQ.cjs.map → ConnectedNativeDocxComparison-2DAQX5GX.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-JUXIXKYN.cjs → ConnectedPresentation-J42JPUVR.cjs} +13 -13
- package/dist/{ConnectedPresentation-JUXIXKYN.cjs.map → ConnectedPresentation-J42JPUVR.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-JA3VB66W.cjs → ConnectedSlidesTab-BYS7HFNK.cjs} +12 -12
- package/dist/{ConnectedSlidesTab-JA3VB66W.cjs.map → ConnectedSlidesTab-BYS7HFNK.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-V6BRZMEQ.cjs → ConnectedStreamedWordArtifact-LTYB62VM.cjs} +8 -8
- package/dist/{ConnectedNativeDocxComparison-244UIHSM.cjs.map → ConnectedStreamedWordArtifact-LTYB62VM.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-5W2QQWKA.cjs → DocumentReviewCard-5AP55NGZ.cjs} +4 -3
- package/dist/DocumentReviewCard-5AP55NGZ.cjs.map +1 -0
- package/dist/{FilesViewerDialog-63QUTG4L.cjs → FilesViewerDialog-SHWCE3UN.cjs} +21 -19
- package/dist/FilesViewerDialog-SHWCE3UN.cjs.map +1 -0
- package/dist/{RechartsRenderer-NU6WUZJS.cjs → RechartsRenderer-EPVL5QZA.cjs} +2 -2
- package/dist/{RechartsRenderer-NU6WUZJS.cjs.map → RechartsRenderer-EPVL5QZA.cjs.map} +1 -1
- package/dist/{SpotlightStrip-HXQFPAAL.cjs → SpotlightStrip-JE6MXUBT.cjs} +6 -6
- package/dist/{SpotlightStrip-HXQFPAAL.cjs.map → SpotlightStrip-JE6MXUBT.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-2QP2HJLK.cjs → WorkspaceTableView-S4IBYQVF.cjs} +13 -11
- package/dist/WorkspaceTableView-S4IBYQVF.cjs.map +1 -0
- package/dist/agents/index.cjs +244 -243
- package/dist/agents/workflows/WorkflowLauncher.d.ts +3 -1
- package/dist/agents/workflows/WorkflowLauncher.js +2 -0
- package/dist/agents/workflows/WorkflowLauncher.js.map +2 -2
- package/dist/{ai-ODGRIL6Y.cjs → ai-QFY4LYQZ.cjs} +16 -16
- package/dist/ai-QFY4LYQZ.cjs.map +1 -0
- package/dist/calls/index.cjs +25 -24
- package/dist/calls/index.cjs.map +1 -1
- package/dist/{chunk-4I2PCP7O.cjs → chunk-2XOIULVN.cjs} +36 -35
- package/dist/chunk-2XOIULVN.cjs.map +1 -0
- package/dist/{chunk-D5DOK2AE.cjs → chunk-3SGFIDID.cjs} +10 -10
- package/dist/{chunk-D5DOK2AE.cjs.map → chunk-3SGFIDID.cjs.map} +1 -1
- package/dist/{chunk-WUM76MJU.cjs → chunk-4UDGCXUR.cjs} +7 -7
- package/dist/{chunk-WUM76MJU.cjs.map → chunk-4UDGCXUR.cjs.map} +1 -1
- package/dist/{chunk-LYKT336H.cjs → chunk-6I5HHWCD.cjs} +5 -5
- package/dist/{chunk-LYKT336H.cjs.map → chunk-6I5HHWCD.cjs.map} +1 -1
- package/dist/{chunk-KWJW5TMH.cjs → chunk-6OPDKROP.cjs} +4 -41
- package/dist/chunk-6OPDKROP.cjs.map +1 -0
- package/dist/{chunk-QWOPEBH2.cjs → chunk-6P4U63HO.cjs} +4 -4
- package/dist/{chunk-QWOPEBH2.cjs.map → chunk-6P4U63HO.cjs.map} +1 -1
- package/dist/chunk-74RUAGVD.cjs +1533 -0
- package/dist/chunk-74RUAGVD.cjs.map +1 -0
- package/dist/{chunk-QKCFV36K.cjs → chunk-7UPEFZCV.cjs} +9 -9
- package/dist/{chunk-QKCFV36K.cjs.map → chunk-7UPEFZCV.cjs.map} +1 -1
- package/dist/{chunk-DUNXLT63.cjs → chunk-AHUEBRLX.cjs} +2 -238
- package/dist/chunk-AHUEBRLX.cjs.map +1 -0
- package/dist/chunk-BH322H5B.cjs +594 -0
- package/dist/chunk-BH322H5B.cjs.map +1 -0
- package/dist/{chunk-AG6KAGAX.cjs → chunk-BTQ7IAOH.cjs} +4 -4
- package/dist/{chunk-AG6KAGAX.cjs.map → chunk-BTQ7IAOH.cjs.map} +1 -1
- package/dist/{chunk-FCT62ZPE.cjs → chunk-BZVK7JW5.cjs} +5 -5
- package/dist/{chunk-FCT62ZPE.cjs.map → chunk-BZVK7JW5.cjs.map} +1 -1
- package/dist/{chunk-HNLNRAEU.cjs → chunk-DSLMJ24E.cjs} +2 -261
- package/dist/chunk-DSLMJ24E.cjs.map +1 -0
- package/dist/chunk-DWRUGOTQ.cjs +35 -0
- package/dist/chunk-DWRUGOTQ.cjs.map +1 -0
- package/dist/{chunk-GAA222SK.cjs → chunk-EG3DPKXM.cjs} +5 -5
- package/dist/{chunk-GAA222SK.cjs.map → chunk-EG3DPKXM.cjs.map} +1 -1
- package/dist/{chunk-VSDD5TH5.cjs → chunk-G3MRW4WB.cjs} +10 -8
- package/dist/chunk-G3MRW4WB.cjs.map +1 -0
- package/dist/{chunk-TFRCNIUY.cjs → chunk-GF6AYAMI.cjs} +9 -9
- package/dist/{chunk-TFRCNIUY.cjs.map → chunk-GF6AYAMI.cjs.map} +1 -1
- package/dist/{chunk-4ZR4O5SP.cjs → chunk-GK3U3FWY.cjs} +60 -28
- package/dist/chunk-GK3U3FWY.cjs.map +1 -0
- package/dist/{chunk-3CJTO6RV.cjs → chunk-GXRD5OSU.cjs} +8 -8
- package/dist/{chunk-3CJTO6RV.cjs.map → chunk-GXRD5OSU.cjs.map} +1 -1
- package/dist/chunk-JWCVA4LC.cjs +248 -0
- package/dist/chunk-JWCVA4LC.cjs.map +1 -0
- package/dist/{chunk-UM3EWCDE.cjs → chunk-K5F2VNCX.cjs} +35 -10
- package/dist/chunk-K5F2VNCX.cjs.map +1 -0
- package/dist/chunk-KD66CBYO.cjs +44 -0
- package/dist/chunk-KD66CBYO.cjs.map +1 -0
- package/dist/chunk-LLVE5TST.cjs +318 -0
- package/dist/chunk-LLVE5TST.cjs.map +1 -0
- package/dist/{chunk-CVVQHFLR.cjs → chunk-OZJENXU3.cjs} +71 -649
- package/dist/chunk-OZJENXU3.cjs.map +1 -0
- package/dist/{chunk-JLNKD56X.cjs → chunk-QEH375MU.cjs} +4 -4
- package/dist/{chunk-JLNKD56X.cjs.map → chunk-QEH375MU.cjs.map} +1 -1
- package/dist/chunk-SGYURQ23.cjs +271 -0
- package/dist/chunk-SGYURQ23.cjs.map +1 -0
- package/dist/{chunk-A5SKK3CU.cjs → chunk-SLCH5JRI.cjs} +64 -35
- package/dist/chunk-SLCH5JRI.cjs.map +1 -0
- package/dist/chunk-T26UYA6Q.cjs +64 -0
- package/dist/chunk-T26UYA6Q.cjs.map +1 -0
- package/dist/{chunk-SMO4SPPB.cjs → chunk-TD5V5BZ3.cjs} +5 -5
- package/dist/{chunk-SMO4SPPB.cjs.map → chunk-TD5V5BZ3.cjs.map} +1 -1
- package/dist/{chunk-IXTDOPSB.cjs → chunk-TSAZWUPZ.cjs} +4 -4
- package/dist/{chunk-IXTDOPSB.cjs.map → chunk-TSAZWUPZ.cjs.map} +1 -1
- package/dist/{chunk-5DGNJ6VJ.cjs → chunk-UD3LPATQ.cjs} +6 -6
- package/dist/{chunk-5DGNJ6VJ.cjs.map → chunk-UD3LPATQ.cjs.map} +1 -1
- package/dist/{chunk-OF7KMG6R.cjs → chunk-UJHQ4DA4.cjs} +5 -5
- package/dist/{chunk-OF7KMG6R.cjs.map → chunk-UJHQ4DA4.cjs.map} +1 -1
- package/dist/{chunk-NUFZFWHZ.cjs → chunk-W5QSKW7T.cjs} +3 -29
- package/dist/chunk-W5QSKW7T.cjs.map +1 -0
- package/dist/{chunk-NNZFZYTI.cjs → chunk-WOVNXJK5.cjs} +4 -54
- package/dist/chunk-WOVNXJK5.cjs.map +1 -0
- package/dist/{chunk-E6BM5ENI.cjs → chunk-WRTEKOQP.cjs} +2 -309
- package/dist/chunk-WRTEKOQP.cjs.map +1 -0
- package/dist/{chunk-Z3N32LL4.cjs → chunk-Y2Z5UHHV.cjs} +29 -27
- package/dist/chunk-Y2Z5UHHV.cjs.map +1 -0
- package/dist/{chunk-KRQCUVH7.cjs → chunk-YSAUOJA7.cjs} +9 -3
- package/dist/chunk-YSAUOJA7.cjs.map +1 -0
- package/dist/components/gestures/usePointerGesture.d.ts +13 -1
- package/dist/components/gestures/usePointerGesture.js +33 -8
- package/dist/components/gestures/usePointerGesture.js.map +2 -2
- package/dist/connect/docx.cjs +11 -11
- package/dist/connect/index.cjs +1064 -2179
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -0
- package/dist/connect/index.js +1 -0
- package/dist/connect/index.js.map +2 -2
- package/dist/connect/viewer.cjs +11 -9
- package/dist/connection/dashboards/DashboardPanel.d.ts +2 -0
- package/dist/connection/dashboards/DashboardPanel.js +4 -0
- package/dist/connection/dashboards/DashboardPanel.js.map +2 -2
- package/dist/connection/dashboards/index.d.ts +1 -1
- package/dist/connection/dashboards/index.js +2 -0
- package/dist/connection/dashboards/index.js.map +2 -2
- package/dist/connection/dashboards/templates.d.ts +10 -5
- package/dist/connection/dashboards/templates.js +7 -1
- package/dist/connection/dashboards/templates.js.map +2 -2
- package/dist/connection/export/ConnectedExportPanel.js +19 -78
- package/dist/connection/export/ConnectedExportPanel.js.map +2 -2
- package/dist/connection/export/transfer-targets.d.ts +66 -0
- package/dist/connection/export/transfer-targets.js +93 -0
- package/dist/connection/export/transfer-targets.js.map +7 -0
- package/dist/connection/export/transfer-text.js +5 -0
- package/dist/connection/export/transfer-text.js.map +2 -2
- package/dist/connection/live-blocks/ConnectedAgendaBlock.d.ts +13 -0
- package/dist/connection/live-blocks/ConnectedAgendaBlock.js +19 -0
- package/dist/connection/live-blocks/ConnectedAgendaBlock.js.map +7 -0
- package/dist/connection/live-blocks/ConnectedCarouselBlock.d.ts +7 -0
- package/dist/connection/live-blocks/ConnectedCarouselBlock.js +84 -0
- package/dist/connection/live-blocks/ConnectedCarouselBlock.js.map +7 -0
- package/dist/connection/live-blocks/ConnectedListBlock.d.ts +29 -0
- package/dist/connection/live-blocks/ConnectedListBlock.js +193 -0
- package/dist/connection/live-blocks/ConnectedListBlock.js.map +7 -0
- package/dist/connection/live-blocks/ConnectedStartBlock.d.ts +7 -0
- package/dist/connection/live-blocks/ConnectedStartBlock.js +16 -0
- package/dist/connection/live-blocks/ConnectedStartBlock.js.map +7 -0
- package/dist/connection/live-blocks/DashboardAgenda.d.ts +10 -0
- package/dist/connection/{workspace-dashboard → live-blocks}/DashboardAgenda.js +10 -2
- package/dist/connection/live-blocks/DashboardAgenda.js.map +7 -0
- package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.js.map +1 -1
- package/dist/connection/live-blocks/LiveBlockRoot.d.ts +11 -0
- package/dist/connection/live-blocks/LiveBlockRoot.js +22 -0
- package/dist/connection/live-blocks/LiveBlockRoot.js.map +7 -0
- package/dist/connection/live-blocks/index.d.ts +5 -0
- package/dist/connection/live-blocks/index.js +20 -0
- package/dist/connection/live-blocks/index.js.map +7 -0
- package/dist/connection/{workspace-dashboard/dashboard-rows.d.ts → live-blocks/list-rows.d.ts} +22 -4
- package/dist/connection/{workspace-dashboard/dashboard-rows.js → live-blocks/list-rows.js} +13 -8
- package/dist/connection/live-blocks/list-rows.js.map +7 -0
- package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.js.map +1 -1
- package/dist/connection/live-blocks/workspace-dashboard-blocks.d.ts +23 -0
- package/dist/connection/live-blocks/workspace-dashboard-blocks.js +58 -0
- package/dist/connection/live-blocks/workspace-dashboard-blocks.js.map +7 -0
- package/dist/connection/pages/BlockEditor.d.ts +3 -1
- package/dist/connection/pages/BlockEditor.js +18 -1
- package/dist/connection/pages/BlockEditor.js.map +2 -2
- package/dist/connection/pages/ConnectedPagesPage.d.ts +9 -5
- package/dist/connection/pages/ConnectedPagesPage.js +144 -48
- package/dist/connection/pages/ConnectedPagesPage.js.map +2 -2
- package/dist/connection/pages/EditablePageGrid.d.ts +25 -15
- package/dist/connection/pages/EditablePageGrid.js +145 -50
- package/dist/connection/pages/EditablePageGrid.js.map +2 -2
- package/dist/connection/pages/LiveBlockEditor.d.ts +30 -0
- package/dist/connection/pages/LiveBlockEditor.js +175 -0
- package/dist/connection/pages/LiveBlockEditor.js.map +7 -0
- package/dist/connection/pages/PageBlockView.d.ts +5 -3
- package/dist/connection/pages/PageBlockView.js +69 -4
- package/dist/connection/pages/PageBlockView.js.map +2 -2
- package/dist/connection/pages/PageGrid.d.ts +4 -3
- package/dist/connection/pages/PageGrid.js +4 -2
- package/dist/connection/pages/PageGrid.js.map +2 -2
- package/dist/connection/pages/PageTransferDialog.d.ts +38 -0
- package/dist/connection/pages/PageTransferDialog.js +219 -0
- package/dist/connection/pages/PageTransferDialog.js.map +7 -0
- package/dist/connection/pages/PageView.d.ts +6 -2
- package/dist/connection/pages/PageView.js +40 -15
- package/dist/connection/pages/PageView.js.map +2 -2
- package/dist/connection/pages/PagesList.d.ts +4 -3
- package/dist/connection/pages/PagesList.js.map +2 -2
- package/dist/connection/pages/grid-layout.d.ts +44 -12
- package/dist/connection/pages/grid-layout.js +71 -27
- package/dist/connection/pages/grid-layout.js.map +2 -2
- package/dist/connection/pages/index.d.ts +5 -2
- package/dist/connection/pages/index.js +40 -5
- package/dist/connection/pages/index.js.map +2 -2
- package/dist/connection/pages/labels.d.ts +3 -1
- package/dist/connection/pages/labels.js +7 -1
- package/dist/connection/pages/labels.js.map +2 -2
- package/dist/connection/pages/page-templates.d.ts +10 -0
- package/dist/connection/pages/page-templates.js +16 -0
- package/dist/connection/pages/page-templates.js.map +7 -0
- package/dist/connection/workflows/ConnectedWorkflowStart.d.ts +2 -0
- package/dist/connection/workflows/ConnectedWorkflowStart.js.map +2 -2
- package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.d.ts +10 -7
- package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.js +31 -171
- package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.js.map +3 -3
- package/dist/dashboards/ChartRenderer.d.ts +5 -3
- package/dist/dashboards/ChartRenderer.js +29 -18
- package/dist/dashboards/ChartRenderer.js.map +2 -2
- package/dist/dashboards/PanelView.d.ts +6 -1
- package/dist/dashboards/PanelView.js +24 -7
- package/dist/dashboards/PanelView.js.map +2 -2
- package/dist/dashboards/RechartsRenderer.d.ts +2 -1
- package/dist/dashboards/RechartsRenderer.js.map +2 -2
- package/dist/dashboards/index.cjs +25 -21
- package/dist/embed/index.cjs +17 -15
- package/dist/home/FactsStrip.d.ts +3 -1
- package/dist/home/FactsStrip.js +3 -2
- package/dist/home/FactsStrip.js.map +2 -2
- package/dist/home/RecentList.d.ts +4 -2
- package/dist/home/RecentList.js +3 -2
- package/dist/home/RecentList.js.map +2 -2
- package/dist/home/StartTiles.d.ts +6 -1
- package/dist/home/StartTiles.js +55 -33
- package/dist/home/StartTiles.js.map +2 -2
- package/dist/home/index.cjs +62 -57
- package/dist/home/index.d.ts +1 -1
- package/dist/home/index.js +2 -1
- package/dist/home/index.js.map +2 -2
- package/dist/home/sections.d.ts +5 -0
- package/dist/home/sections.js +7 -0
- package/dist/home/sections.js.map +2 -2
- package/dist/index.cjs +326 -324
- package/dist/index.cjs.map +1 -1
- package/dist/pages/index.cjs +864 -155
- package/dist/pages/index.cjs.map +1 -1
- package/dist/settings/index.cjs +164 -163
- package/dist/shell/index.cjs +34 -33
- package/dist/studio/index.cjs +12 -12
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +24 -21
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workspaces/index.cjs +49 -47
- package/dist/workspaces/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/DocumentReviewCard-5W2QQWKA.cjs.map +0 -1
- package/dist/FilesViewerDialog-63QUTG4L.cjs.map +0 -1
- package/dist/WorkspaceTableView-2QP2HJLK.cjs.map +0 -1
- package/dist/ai-ODGRIL6Y.cjs.map +0 -1
- package/dist/chunk-4I2PCP7O.cjs.map +0 -1
- package/dist/chunk-4ZR4O5SP.cjs.map +0 -1
- package/dist/chunk-A5SKK3CU.cjs.map +0 -1
- package/dist/chunk-CVVQHFLR.cjs.map +0 -1
- package/dist/chunk-DUNXLT63.cjs.map +0 -1
- package/dist/chunk-E6BM5ENI.cjs.map +0 -1
- package/dist/chunk-HNLNRAEU.cjs.map +0 -1
- package/dist/chunk-KRQCUVH7.cjs.map +0 -1
- package/dist/chunk-KWJW5TMH.cjs.map +0 -1
- package/dist/chunk-NNZFZYTI.cjs.map +0 -1
- package/dist/chunk-NUFZFWHZ.cjs.map +0 -1
- package/dist/chunk-UM3EWCDE.cjs.map +0 -1
- package/dist/chunk-VSDD5TH5.cjs.map +0 -1
- package/dist/chunk-Z3N32LL4.cjs.map +0 -1
- package/dist/connection/workspace-dashboard/DashboardAgenda.d.ts +0 -1
- package/dist/connection/workspace-dashboard/DashboardAgenda.js.map +0 -7
- package/dist/connection/workspace-dashboard/dashboard-rows.js.map +0 -7
- /package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.d.ts +0 -0
- /package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.js +0 -0
- /package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.d.ts +0 -0
- /package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.js +0 -0
|
@@ -3912,157 +3912,6 @@ function ProfileCard({
|
|
|
3912
3912
|
] }) }) })
|
|
3913
3913
|
] });
|
|
3914
3914
|
}
|
|
3915
|
-
var DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS = {
|
|
3916
|
-
title: "Email this workspace",
|
|
3917
|
-
description: "Send documents and questions here from your registered email address \u2014 your Assistant reads the email and replies.",
|
|
3918
|
-
compose: "Compose email",
|
|
3919
|
-
paHintBefore: "Don\u2019t need this specific workspace? Send general questions to ",
|
|
3920
|
-
paHintAfter: " instead.",
|
|
3921
|
-
checking: "Checking your Assistant\u2019s access\u2026",
|
|
3922
|
-
noAssistant: "You don\u2019t have a default Assistant yet \u2014 one is created automatically the first time you email a workspace.",
|
|
3923
|
-
authorizedExpires: (ttl) => `Authorized \u2014 expires in ${ttl}`,
|
|
3924
|
-
end: "End",
|
|
3925
|
-
authorizePrompt: (ttl) => `Authorize your Assistant to act in this workspace${ttl ? ` for ${ttl}` : ""}, so it\u2019s ready as soon as it wakes.`,
|
|
3926
|
-
authorize: "Authorize",
|
|
3927
|
-
authorizing: "Authorizing\u2026",
|
|
3928
|
-
advanced: "Advanced",
|
|
3929
|
-
alreadyGranted: "Your Assistant already has standing access to this workspace.",
|
|
3930
|
-
standingWarning: "Standing access never expires and doesn\u2019t need re-authorizing \u2014 only use it if you trust the Assistant\u2019s environment long-term.",
|
|
3931
|
-
grant: "Grant standing access",
|
|
3932
|
-
granting: "Granting\u2026"
|
|
3933
|
-
};
|
|
3934
|
-
function EmailWorkspaceDialogView({
|
|
3935
|
-
open,
|
|
3936
|
-
onOpenChange,
|
|
3937
|
-
email,
|
|
3938
|
-
mailtoHref,
|
|
3939
|
-
paDomain,
|
|
3940
|
-
copyButton,
|
|
3941
|
-
access,
|
|
3942
|
-
standing,
|
|
3943
|
-
labels
|
|
3944
|
-
}) {
|
|
3945
|
-
const l = react.useMemo(() => ({ ...DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS, ...labels }), [labels]);
|
|
3946
|
-
const [advancedOpen, setAdvancedOpen] = react.useState(false);
|
|
3947
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Dialog, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogContent, { className: "sm:max-w-md", "data-testid": "email-workspace-dialog", children: [
|
|
3948
|
-
/* @__PURE__ */ jsxRuntime.jsxs(ui.DialogHeader, { className: "-m-6 mb-4 bg-muted p-6 pb-4", children: [
|
|
3949
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
3950
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "size-6" }),
|
|
3951
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: l.title })
|
|
3952
|
-
] }),
|
|
3953
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: l.description })
|
|
3954
|
-
] }),
|
|
3955
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 rounded-lg border border-border bg-muted/30 px-3 py-2", children: [
|
|
3956
|
-
/* @__PURE__ */ jsxRuntime.jsx("code", { className: "flex-1 truncate font-mono text-sm", "data-testid": "email-workspace-address", children: email }),
|
|
3957
|
-
copyButton
|
|
3958
|
-
] }),
|
|
3959
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { asChild: true, "data-testid": "email-workspace-compose-button", children: /* @__PURE__ */ jsxRuntime.jsxs("a", { href: mailtoHref, children: [
|
|
3960
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Send, { className: "mr-1.5 size-4" }),
|
|
3961
|
-
l.compose
|
|
3962
|
-
] }) }),
|
|
3963
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-muted-foreground", "data-testid": "email-workspace-pa-hint", children: [
|
|
3964
|
-
l.paHintBefore,
|
|
3965
|
-
/* @__PURE__ */ jsxRuntime.jsxs("code", { className: "font-mono", children: [
|
|
3966
|
-
"pa@",
|
|
3967
|
-
paDomain
|
|
3968
|
-
] }),
|
|
3969
|
-
l.paHintAfter
|
|
3970
|
-
] }),
|
|
3971
|
-
access && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2 rounded-md border border-border bg-muted/30 p-3", children: [
|
|
3972
|
-
access.kind === "loading" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3973
|
-
"p",
|
|
3974
|
-
{
|
|
3975
|
-
className: "text-xs text-muted-foreground",
|
|
3976
|
-
"data-testid": "email-workspace-authorize-loading",
|
|
3977
|
-
children: l.checking
|
|
3978
|
-
}
|
|
3979
|
-
) : access.kind === "none" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3980
|
-
"p",
|
|
3981
|
-
{
|
|
3982
|
-
className: "text-xs text-muted-foreground",
|
|
3983
|
-
"data-testid": "email-workspace-no-assistant",
|
|
3984
|
-
children: l.noAssistant
|
|
3985
|
-
}
|
|
3986
|
-
) : access.kind === "session" ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3987
|
-
"div",
|
|
3988
|
-
{
|
|
3989
|
-
className: "flex items-center justify-between gap-3",
|
|
3990
|
-
"data-testid": "email-workspace-active-session",
|
|
3991
|
-
children: [
|
|
3992
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
3993
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, { className: "size-3.5" }),
|
|
3994
|
-
l.authorizedExpires(access.expiresIn)
|
|
3995
|
-
] }),
|
|
3996
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3997
|
-
ui.Button,
|
|
3998
|
-
{
|
|
3999
|
-
variant: "ghost",
|
|
4000
|
-
size: "sm",
|
|
4001
|
-
onClick: access.onEnd,
|
|
4002
|
-
disabled: access.isEnding,
|
|
4003
|
-
className: "h-7 shrink-0 gap-1 px-2 text-xs text-destructive hover:bg-destructive/10 hover:text-destructive pointer-coarse:h-11",
|
|
4004
|
-
"data-testid": "email-workspace-end-session-button",
|
|
4005
|
-
children: [
|
|
4006
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-3" }),
|
|
4007
|
-
l.end
|
|
4008
|
-
]
|
|
4009
|
-
}
|
|
4010
|
-
)
|
|
4011
|
-
]
|
|
4012
|
-
}
|
|
4013
|
-
) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
|
|
4014
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: l.authorizePrompt(access.defaultTtl) }),
|
|
4015
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4016
|
-
ui.Button,
|
|
4017
|
-
{
|
|
4018
|
-
variant: "outline",
|
|
4019
|
-
size: "sm",
|
|
4020
|
-
onClick: access.onAuthorize,
|
|
4021
|
-
disabled: access.isAuthorizing,
|
|
4022
|
-
className: "shrink-0 gap-1.5",
|
|
4023
|
-
"data-testid": "email-workspace-authorize-button",
|
|
4024
|
-
children: [
|
|
4025
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, { className: "size-3.5" }),
|
|
4026
|
-
access.isAuthorizing ? l.authorizing : l.authorize
|
|
4027
|
-
]
|
|
4028
|
-
}
|
|
4029
|
-
)
|
|
4030
|
-
] }),
|
|
4031
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4032
|
-
"button",
|
|
4033
|
-
{
|
|
4034
|
-
type: "button",
|
|
4035
|
-
onClick: () => setAdvancedOpen((o) => !o),
|
|
4036
|
-
"aria-expanded": advancedOpen,
|
|
4037
|
-
className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring pointer-coarse:min-h-11",
|
|
4038
|
-
"data-testid": "email-workspace-advanced-toggle",
|
|
4039
|
-
children: l.advanced
|
|
4040
|
-
}
|
|
4041
|
-
),
|
|
4042
|
-
advancedOpen && standing && (standing.alreadyGranted ? /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
|
|
4043
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-3.5 text-green-solid" }),
|
|
4044
|
-
l.alreadyGranted
|
|
4045
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4046
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: l.standingWarning }),
|
|
4047
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4048
|
-
ui.Button,
|
|
4049
|
-
{
|
|
4050
|
-
variant: "outline",
|
|
4051
|
-
size: "sm",
|
|
4052
|
-
onClick: standing.onGrant,
|
|
4053
|
-
disabled: standing.isGranting,
|
|
4054
|
-
className: "gap-1.5",
|
|
4055
|
-
"data-testid": "email-workspace-grant-access-button",
|
|
4056
|
-
children: [
|
|
4057
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Infinity, { className: "size-3.5" }),
|
|
4058
|
-
standing.isGranting ? l.granting : l.grant
|
|
4059
|
-
]
|
|
4060
|
-
}
|
|
4061
|
-
)
|
|
4062
|
-
] }))
|
|
4063
|
-
] })
|
|
4064
|
-
] }) });
|
|
4065
|
-
}
|
|
4066
3915
|
function PlanNotice({
|
|
4067
3916
|
tone = "muted",
|
|
4068
3917
|
className,
|
|
@@ -4563,82 +4412,6 @@ function formatErrorReport({
|
|
|
4563
4412
|
RULE
|
|
4564
4413
|
].join("\n");
|
|
4565
4414
|
}
|
|
4566
|
-
|
|
4567
|
-
// src/settings/account-views.ts
|
|
4568
|
-
function formatSessionTtl(totalSeconds) {
|
|
4569
|
-
if (totalSeconds <= 0) return "expired";
|
|
4570
|
-
const days = Math.floor(totalSeconds / 86400);
|
|
4571
|
-
const hours = Math.floor(totalSeconds % 86400 / 3600);
|
|
4572
|
-
const minutes = Math.floor(totalSeconds % 3600 / 60);
|
|
4573
|
-
const parts = [];
|
|
4574
|
-
if (days > 0) parts.push(`${days}d`);
|
|
4575
|
-
if (hours > 0) parts.push(`${hours}h`);
|
|
4576
|
-
if (minutes > 0) parts.push(`${minutes}m`);
|
|
4577
|
-
return parts.length > 0 ? parts.join(" ") : "<1m";
|
|
4578
|
-
}
|
|
4579
|
-
function toActiveSessionViews(sessions, {
|
|
4580
|
-
currentSessionId,
|
|
4581
|
-
terminatingId,
|
|
4582
|
-
renderIcon,
|
|
4583
|
-
formatTtl = formatSessionTtl
|
|
4584
|
-
}) {
|
|
4585
|
-
return sessions.map((session) => {
|
|
4586
|
-
const status = session.status || "user";
|
|
4587
|
-
const count = session.workspaces.length;
|
|
4588
|
-
return {
|
|
4589
|
-
id: session.session_id,
|
|
4590
|
-
name: session.name || (status === "agent" ? "Agent session" : "Browser session"),
|
|
4591
|
-
isCurrent: session.session_id === currentSessionId,
|
|
4592
|
-
isAgent: status === "agent",
|
|
4593
|
-
detail: `${session.ip_address ?? "Unknown IP"} \xB7 expires in ${formatTtl(session.ttl)}${count > 0 ? ` \xB7 ${count} workspace${count > 1 ? "s" : ""}` : ""}`,
|
|
4594
|
-
isTerminating: terminatingId === session.session_id,
|
|
4595
|
-
icon: renderIcon?.(status)
|
|
4596
|
-
};
|
|
4597
|
-
}).sort((a, b) => Number(b.isCurrent) - Number(a.isCurrent));
|
|
4598
|
-
}
|
|
4599
|
-
function toLogoutSessionViews(sessions, formatTtl = formatSessionTtl) {
|
|
4600
|
-
return sessions.map((session) => ({
|
|
4601
|
-
id: session.session_id,
|
|
4602
|
-
status: session.status || "user",
|
|
4603
|
-
ipAddress: session.ip_address,
|
|
4604
|
-
ttlLabel: formatTtl(session.ttl),
|
|
4605
|
-
workspaceCount: session.workspaces.length
|
|
4606
|
-
}));
|
|
4607
|
-
}
|
|
4608
|
-
function toDeleteBlockerViews(blockers, renderSubscriptionLink) {
|
|
4609
|
-
return blockers.flatMap(
|
|
4610
|
-
(blocker) => blocker.type === "active_subscription" ? [
|
|
4611
|
-
{
|
|
4612
|
-
key: "active_subscription",
|
|
4613
|
-
content: renderSubscriptionLink ? renderSubscriptionLink() : "Active subscription: cancel it in your subscription settings first"
|
|
4614
|
-
}
|
|
4615
|
-
] : blocker.workspaces.map((ws) => ({
|
|
4616
|
-
key: `workspace-${ws}`,
|
|
4617
|
-
content: `You are the sole admin of workspace "${ws}" \u2014 transfer admin rights or remove all other members first`
|
|
4618
|
-
}))
|
|
4619
|
-
);
|
|
4620
|
-
}
|
|
4621
|
-
var EMAIL_NOTIFICATION_CATEGORIES = [
|
|
4622
|
-
{ key: "messages", label: "New messages", description: "A direct message while you\u2019re offline" },
|
|
4623
|
-
{ key: "workspace_added", label: "Workspace access", description: "You\u2019re added to a workspace" },
|
|
4624
|
-
{
|
|
4625
|
-
key: "contact_accepted",
|
|
4626
|
-
label: "Invitation accepted",
|
|
4627
|
-
description: "Someone accepts your invitation"
|
|
4628
|
-
},
|
|
4629
|
-
{ key: "referral_reward", label: "Rewards", description: "You earn a reward" },
|
|
4630
|
-
{
|
|
4631
|
-
key: "product_updates",
|
|
4632
|
-
label: "ARBI update",
|
|
4633
|
-
description: "Weekly digest of new features and highlights"
|
|
4634
|
-
}
|
|
4635
|
-
];
|
|
4636
|
-
var EMAIL_NOTIFICATION_KEYS = EMAIL_NOTIFICATION_CATEGORIES.map(
|
|
4637
|
-
(c) => c.key
|
|
4638
|
-
);
|
|
4639
|
-
function toNotificationCategories(checked, defs = EMAIL_NOTIFICATION_CATEGORIES) {
|
|
4640
|
-
return defs.map((def) => ({ ...def, checked: checked[def.key] ?? true }));
|
|
4641
|
-
}
|
|
4642
4415
|
var DEFAULT_IDENTITY_VERIFICATION_LABELS = {
|
|
4643
4416
|
title: "Identity verification",
|
|
4644
4417
|
intro: "Check your ID once to get a verified tick next to your name.",
|
|
@@ -5052,7 +4825,6 @@ exports.DEFAULT_CONNECTION_CARD_LABELS = DEFAULT_CONNECTION_CARD_LABELS;
|
|
|
5052
4825
|
exports.DEFAULT_CONVERSATION_TITLE_SECTION_LABELS = DEFAULT_CONVERSATION_TITLE_SECTION_LABELS;
|
|
5053
4826
|
exports.DEFAULT_DAILY_CAP_FIELD_LABELS = DEFAULT_DAILY_CAP_FIELD_LABELS;
|
|
5054
4827
|
exports.DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS = DEFAULT_DELETE_ACCOUNT_DIALOG_LABELS;
|
|
5055
|
-
exports.DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS = DEFAULT_EMAIL_WORKSPACE_DIALOG_LABELS;
|
|
5056
4828
|
exports.DEFAULT_ERROR_DIALOG_LABELS = DEFAULT_ERROR_DIALOG_LABELS;
|
|
5057
4829
|
exports.DEFAULT_IDENTITY_VERIFICATION_LABELS = DEFAULT_IDENTITY_VERIFICATION_LABELS;
|
|
5058
4830
|
exports.DEFAULT_INVITE_CONTACTS_DIALOG_LABELS = DEFAULT_INVITE_CONTACTS_DIALOG_LABELS;
|
|
@@ -5080,9 +4852,6 @@ exports.DEFAULT_WORK_OFFLINE_LABELS = DEFAULT_WORK_OFFLINE_LABELS;
|
|
|
5080
4852
|
exports.DailyCapField = DailyCapField;
|
|
5081
4853
|
exports.DeleteAccountDialog = DeleteAccountDialog;
|
|
5082
4854
|
exports.DraggableHeader = DraggableHeader;
|
|
5083
|
-
exports.EMAIL_NOTIFICATION_CATEGORIES = EMAIL_NOTIFICATION_CATEGORIES;
|
|
5084
|
-
exports.EMAIL_NOTIFICATION_KEYS = EMAIL_NOTIFICATION_KEYS;
|
|
5085
|
-
exports.EmailWorkspaceDialogView = EmailWorkspaceDialogView;
|
|
5086
4855
|
exports.ErrorDialog = ErrorDialog;
|
|
5087
4856
|
exports.FilterChip = FilterChip;
|
|
5088
4857
|
exports.IdentityVerificationCard = IdentityVerificationCard;
|
|
@@ -5168,12 +4937,7 @@ exports.applyTriStateFilters = applyTriStateFilters;
|
|
|
5168
4937
|
exports.buildInvertedIndex = buildInvertedIndex;
|
|
5169
4938
|
exports.callsSwitchState = callsSwitchState;
|
|
5170
4939
|
exports.formatErrorReport = formatErrorReport;
|
|
5171
|
-
exports.formatSessionTtl = formatSessionTtl;
|
|
5172
4940
|
exports.resolveSettingsSection = resolveSettingsSection;
|
|
5173
4941
|
exports.serverConnectionView = serverConnectionView;
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
exports.toLogoutSessionViews = toLogoutSessionViews;
|
|
5177
|
-
exports.toNotificationCategories = toNotificationCategories;
|
|
5178
|
-
//# sourceMappingURL=chunk-DUNXLT63.cjs.map
|
|
5179
|
-
//# sourceMappingURL=chunk-DUNXLT63.cjs.map
|
|
4942
|
+
//# sourceMappingURL=chunk-AHUEBRLX.cjs.map
|
|
4943
|
+
//# sourceMappingURL=chunk-AHUEBRLX.cjs.map
|