@arbidocs/blocks 0.4.131 → 0.4.132

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +4 -3
  2. package/dist/agents/index.cjs +216 -216
  3. package/dist/agents/index.js +5 -5
  4. package/dist/calls/index.cjs +3 -3
  5. package/dist/calls/index.js +2 -2
  6. package/dist/chat/index.cjs +5 -5
  7. package/dist/chat/index.js +1 -1
  8. package/dist/chat/open-document.d.ts +5 -1
  9. package/dist/{chunk-DQCYCEDR.js → chunk-2Q7FDZAY.js} +3 -3
  10. package/dist/{chunk-DQCYCEDR.js.map → chunk-2Q7FDZAY.js.map} +1 -1
  11. package/dist/{chunk-P5ST47VY.js → chunk-3FFRYZKV.js} +3 -3
  12. package/dist/{chunk-P5ST47VY.js.map → chunk-3FFRYZKV.js.map} +1 -1
  13. package/dist/{chunk-S7PSMMRG.js → chunk-444XKG46.js} +3 -3
  14. package/dist/{chunk-S7PSMMRG.js.map → chunk-444XKG46.js.map} +1 -1
  15. package/dist/{chunk-ZV3BKLFY.cjs → chunk-44R3CCZT.cjs} +5 -5
  16. package/dist/{chunk-ZV3BKLFY.cjs.map → chunk-44R3CCZT.cjs.map} +1 -1
  17. package/dist/{chunk-7D4W3SAH.js → chunk-4RLCRFZS.js} +15 -12
  18. package/dist/chunk-4RLCRFZS.js.map +1 -0
  19. package/dist/{chunk-P5HOXWYL.js → chunk-4UMXQPNA.js} +20 -8
  20. package/dist/chunk-4UMXQPNA.js.map +1 -0
  21. package/dist/{chunk-OR4CO743.cjs → chunk-AAFX64WD.cjs} +3 -3
  22. package/dist/{chunk-OR4CO743.cjs.map → chunk-AAFX64WD.cjs.map} +1 -1
  23. package/dist/{chunk-LRD7BHAT.cjs → chunk-ARDHLU73.cjs} +13 -10
  24. package/dist/chunk-ARDHLU73.cjs.map +1 -0
  25. package/dist/{chunk-KLOSOT26.js → chunk-BMNNT27D.js} +6 -6
  26. package/dist/{chunk-KLOSOT26.js.map → chunk-BMNNT27D.js.map} +1 -1
  27. package/dist/chunk-C4WSHRR6.cjs +166 -0
  28. package/dist/chunk-C4WSHRR6.cjs.map +1 -0
  29. package/dist/{chunk-ZAVEMQ37.cjs → chunk-DWZXSPMB.cjs} +3 -3
  30. package/dist/{chunk-ZAVEMQ37.cjs.map → chunk-DWZXSPMB.cjs.map} +1 -1
  31. package/dist/{chunk-5HFPRI3W.js → chunk-FUTMU4FR.js} +3 -3
  32. package/dist/{chunk-5HFPRI3W.js.map → chunk-FUTMU4FR.js.map} +1 -1
  33. package/dist/{chunk-CDZVC32G.cjs → chunk-GZPTWHP5.cjs} +22 -10
  34. package/dist/chunk-GZPTWHP5.cjs.map +1 -0
  35. package/dist/{chunk-OUW6G4O2.cjs → chunk-HFGXA5CL.cjs} +4 -4
  36. package/dist/{chunk-OUW6G4O2.cjs.map → chunk-HFGXA5CL.cjs.map} +1 -1
  37. package/dist/{chunk-7KH4M3KY.cjs → chunk-HW2J4JMV.cjs} +8 -8
  38. package/dist/{chunk-7KH4M3KY.cjs.map → chunk-HW2J4JMV.cjs.map} +1 -1
  39. package/dist/{chunk-SWQX6CTT.cjs → chunk-JKB7WT7L.cjs} +2 -2
  40. package/dist/chunk-JKB7WT7L.cjs.map +1 -0
  41. package/dist/{chunk-S6BOINC4.cjs → chunk-OGBXV326.cjs} +7 -7
  42. package/dist/{chunk-S6BOINC4.cjs.map → chunk-OGBXV326.cjs.map} +1 -1
  43. package/dist/{chunk-DJM7DLCT.cjs → chunk-OPTBQSCV.cjs} +3 -3
  44. package/dist/{chunk-DJM7DLCT.cjs.map → chunk-OPTBQSCV.cjs.map} +1 -1
  45. package/dist/{chunk-GFYGYME3.js → chunk-OQ7RUNOC.js} +3 -3
  46. package/dist/{chunk-GFYGYME3.js.map → chunk-OQ7RUNOC.js.map} +1 -1
  47. package/dist/{chunk-W27VK32R.cjs → chunk-QUDCNT63.cjs} +17 -17
  48. package/dist/{chunk-W27VK32R.cjs.map → chunk-QUDCNT63.cjs.map} +1 -1
  49. package/dist/{chunk-OB5F4577.cjs → chunk-R26BK7YL.cjs} +4 -4
  50. package/dist/{chunk-OB5F4577.cjs.map → chunk-R26BK7YL.cjs.map} +1 -1
  51. package/dist/{chunk-A2YAC22G.js → chunk-RI6DZA5X.js} +3 -3
  52. package/dist/{chunk-A2YAC22G.js.map → chunk-RI6DZA5X.js.map} +1 -1
  53. package/dist/{chunk-7QDX2CO4.cjs → chunk-TP6PLDNM.cjs} +4 -4
  54. package/dist/{chunk-7QDX2CO4.cjs.map → chunk-TP6PLDNM.cjs.map} +1 -1
  55. package/dist/{chunk-ECERC6TI.js → chunk-VHJHY7TT.js} +3 -3
  56. package/dist/{chunk-ECERC6TI.js.map → chunk-VHJHY7TT.js.map} +1 -1
  57. package/dist/{chunk-D3N67Q4D.js → chunk-W3VYZXNS.js} +3 -3
  58. package/dist/{chunk-D3N67Q4D.js.map → chunk-W3VYZXNS.js.map} +1 -1
  59. package/dist/{chunk-JK45LSIH.cjs → chunk-WXYQ66KC.cjs} +5 -5
  60. package/dist/{chunk-JK45LSIH.cjs.map → chunk-WXYQ66KC.cjs.map} +1 -1
  61. package/dist/{chunk-ZCF2JJFA.js → chunk-Y3KA6X7B.js} +3 -3
  62. package/dist/{chunk-ZCF2JJFA.js.map → chunk-Y3KA6X7B.js.map} +1 -1
  63. package/dist/{chunk-GYCQ3FNL.js → chunk-YBLIKTJK.js} +2 -2
  64. package/dist/chunk-YBLIKTJK.js.map +1 -0
  65. package/dist/{chunk-DI35D756.js → chunk-YIF6SVSO.js} +4 -4
  66. package/dist/{chunk-DI35D756.js.map → chunk-YIF6SVSO.js.map} +1 -1
  67. package/dist/chunk-YNIBUKV5.js +163 -0
  68. package/dist/chunk-YNIBUKV5.js.map +1 -0
  69. package/dist/citations/index.cjs +12 -11
  70. package/dist/citations/index.js +3 -2
  71. package/dist/collaboration/index.cjs +42 -42
  72. package/dist/collaboration/index.js +2 -2
  73. package/dist/connect/docx.cjs +7 -5
  74. package/dist/connect/docx.cjs.map +1 -1
  75. package/dist/connect/docx.js +6 -4
  76. package/dist/connect/docx.js.map +1 -1
  77. package/dist/connect/index.cjs +129 -123
  78. package/dist/connect/index.cjs.map +1 -1
  79. package/dist/connect/index.d.ts +1 -1
  80. package/dist/connect/index.js +77 -70
  81. package/dist/connect/index.js.map +1 -1
  82. package/dist/connection/ConnectedSettings.d.ts +8 -17
  83. package/dist/connection/ConnectionProvider.d.ts +5 -0
  84. package/dist/connection/mail/ConnectedMailComposer.d.ts +2 -3
  85. package/dist/connection/mail/ConnectedMailbox.d.ts +2 -3
  86. package/dist/connection/mail/MailComposerForm.d.ts +2 -3
  87. package/dist/connection/mail/index.d.ts +2 -2
  88. package/dist/connection/mail/mailbox.d.ts +1 -4
  89. package/dist/connection/mail/types.d.ts +0 -8
  90. package/dist/facts/index.cjs +4 -3
  91. package/dist/facts/index.cjs.map +1 -1
  92. package/dist/facts/index.js +3 -2
  93. package/dist/facts/index.js.map +1 -1
  94. package/dist/files/index.cjs +4 -4
  95. package/dist/files/index.js +3 -3
  96. package/dist/home/index.cjs +20 -19
  97. package/dist/home/index.cjs.map +1 -1
  98. package/dist/home/index.js +5 -4
  99. package/dist/home/index.js.map +1 -1
  100. package/dist/index.cjs +394 -394
  101. package/dist/index.d.ts +2 -1
  102. package/dist/index.js +11 -11
  103. package/dist/provider/BlocksProvider.d.ts +39 -4
  104. package/dist/provider/dialogs.d.ts +31 -0
  105. package/dist/retrieval/index.cjs +5 -4
  106. package/dist/retrieval/index.js +3 -2
  107. package/dist/settings/index.cjs +38 -38
  108. package/dist/settings/index.js +4 -4
  109. package/dist/shell/index.cjs +48 -47
  110. package/dist/shell/index.js +4 -3
  111. package/dist/studio/index.cjs +15 -14
  112. package/dist/studio/index.cjs.map +1 -1
  113. package/dist/studio/index.js +7 -6
  114. package/dist/studio/index.js.map +1 -1
  115. package/dist/workflow-canvas/index.cjs +14 -14
  116. package/dist/workflow-canvas/index.js +6 -6
  117. package/dist/workspaces/index.cjs +3 -3
  118. package/dist/workspaces/index.js +2 -2
  119. package/node_modules/@arbidocs/coedit/package.json +1 -1
  120. package/package.json +4 -4
  121. package/dist/chunk-76JDDMSP.js +0 -31
  122. package/dist/chunk-76JDDMSP.js.map +0 -1
  123. package/dist/chunk-7D4W3SAH.js.map +0 -1
  124. package/dist/chunk-C54XEN5T.cjs +0 -34
  125. package/dist/chunk-C54XEN5T.cjs.map +0 -1
  126. package/dist/chunk-CDZVC32G.cjs.map +0 -1
  127. package/dist/chunk-GYCQ3FNL.js.map +0 -1
  128. package/dist/chunk-LRD7BHAT.cjs.map +0 -1
  129. package/dist/chunk-P5HOXWYL.js.map +0 -1
  130. package/dist/chunk-SWQX6CTT.cjs.map +0 -1
@@ -3,8 +3,8 @@
3
3
  * to its `@arbidocs/react` hook, so a host drops them in a `SettingsPanel` and owns only the
4
4
  * layout (see the "Settings page recipe" in docs/design/blocks-package.md).
5
5
  *
6
- * Every section takes an optional `notify` for toasts and renders the default test ids of its
7
- * part. Anything the hooks cannot know (the recovery-key download, the billing link of a blocked
6
+ * Every section toasts and confirms through the blocks environment (`useBlocksEnvironment`) and
7
+ * renders the default test ids of its part. Anything the hooks cannot know (the recovery-key download, the billing link of a blocked
8
8
  * deletion, the password policy) is a prop.
9
9
  *
10
10
  * The hooks talk to the account client in scope (`useAccountClient` from `@arbidocs/react`):
@@ -15,9 +15,7 @@ import { type ReactNode } from 'react';
15
15
  import { type IdentityStatus } from '@arbidocs/react/ui';
16
16
  import { type IdentityVerificationLabels } from '../settings/IdentityVerification';
17
17
  import { type EmailNotificationCategoryDef } from '../settings/account-views';
18
- export type SettingsNotify = (message: string, kind: 'success' | 'error') => void;
19
18
  export interface ConnectedProfileCardProps {
20
- notify?: SettingsNotify;
21
19
  /** Section heading; default `Profile`. */
22
20
  title?: ReactNode;
23
21
  /** Classes of the initials avatar shown without a picture (e.g. the host's per-user colour). */
@@ -26,9 +24,8 @@ export interface ConnectedProfileCardProps {
26
24
  children?: ReactNode;
27
25
  }
28
26
  /** Avatar, editable name and email change of the signed-in user (`ProfileCard`). */
29
- export declare function ConnectedProfileCard({ notify, title, avatarClassName, children, }: ConnectedProfileCardProps): import("react").JSX.Element;
27
+ export declare function ConnectedProfileCard({ title, avatarClassName, children, }: ConnectedProfileCardProps): import("react").JSX.Element;
30
28
  export interface ConnectedIdentityVerificationProps {
31
- notify?: SettingsNotify;
32
29
  labels?: Partial<IdentityVerificationLabels>;
33
30
  /** Open the host's billing (card, plan) when the fee cannot be charged. */
34
31
  onManageBilling?: () => void;
@@ -36,7 +33,7 @@ export interface ConnectedIdentityVerificationProps {
36
33
  formatPrice?: (status: IdentityStatus) => string;
37
34
  }
38
35
  /** The ID check card and its dialog, bound to the account. Renders nothing when not offered. */
39
- export declare function ConnectedIdentityVerification({ notify, labels, onManageBilling, formatPrice, }: ConnectedIdentityVerificationProps): import("react").JSX.Element;
36
+ export declare function ConnectedIdentityVerification({ labels, onManageBilling, formatPrice, }: ConnectedIdentityVerificationProps): import("react").JSX.Element;
40
37
  export interface ConnectedRequireVerifiedProps {
41
38
  children?: ReactNode;
42
39
  labels?: Partial<IdentityVerificationLabels>;
@@ -48,7 +45,6 @@ export declare function defaultUnmetPasswordRequirement(password: string): strin
48
45
  export interface ConnectedPasswordChangeDialogProps {
49
46
  open: boolean;
50
47
  onClose: () => void;
51
- notify?: SettingsNotify;
52
48
  /** The host's password policy; default is {@link defaultUnmetPasswordRequirement}. */
53
49
  getUnmetRequirement?: (password: string) => string | null;
54
50
  /** After signing in with a recovery key: set a new password, no current one asked for. */
@@ -57,16 +53,15 @@ export interface ConnectedPasswordChangeDialogProps {
57
53
  onRecoveryComplete?: () => void;
58
54
  }
59
55
  /** Change (or, in recovery mode, set) the master password (`PasswordChangeDialog`). */
60
- export declare function ConnectedPasswordChangeDialog({ open, onClose, notify, getUnmetRequirement, recoveryMode, onRecoveryComplete, }: ConnectedPasswordChangeDialogProps): import("react").JSX.Element;
56
+ export declare function ConnectedPasswordChangeDialog({ open, onClose, getUnmetRequirement, recoveryMode, onRecoveryComplete, }: ConnectedPasswordChangeDialogProps): import("react").JSX.Element;
61
57
  export interface ConnectedSecuritySectionProps {
62
- notify?: SettingsNotify;
63
58
  /** The host's password policy; default is {@link defaultUnmetPasswordRequirement}. */
64
59
  getUnmetRequirement?: (password: string) => string | null;
65
60
  /** Extra rows under "Change password" (e.g. "Save recovery key"). */
66
61
  children?: ReactNode;
67
62
  }
68
63
  /** The Security card: "Change password" and the dialog behind it. */
69
- export declare function ConnectedSecuritySection({ notify, getUnmetRequirement, children, }: ConnectedSecuritySectionProps): import("react").JSX.Element;
64
+ export declare function ConnectedSecuritySection({ getUnmetRequirement, children, }: ConnectedSecuritySectionProps): import("react").JSX.Element;
70
65
  export interface ConnectedNotificationPreferencesProps {
71
66
  /** Categories to offer; default {@link EMAIL_NOTIFICATION_CATEGORIES}. */
72
67
  categories?: readonly EmailNotificationCategoryDef[];
@@ -75,14 +70,11 @@ export interface ConnectedNotificationPreferencesProps {
75
70
  /** The email-notification switches (`NotificationCategoryList`) over the user settings. */
76
71
  export declare function ConnectedNotificationPreferences({ categories, title, }: ConnectedNotificationPreferencesProps): import("react").JSX.Element;
77
72
  export interface ConnectedSessionsRowProps {
78
- notify?: SettingsNotify;
79
- /** Ask before ending a session; resolve `false` to cancel. Default: end at once. */
80
- confirm?: (message: string) => Promise<boolean> | boolean;
81
73
  /** Glyph per session status. */
82
74
  renderSessionIcon?: (status: string) => ReactNode;
83
75
  }
84
76
  /** "Active sessions" row with the manage dialog (`ActiveSessionsDialog`); end any but this device. */
85
- export declare function ConnectedSessionsRow({ notify, confirm, renderSessionIcon, }: ConnectedSessionsRowProps): import("react").JSX.Element;
77
+ export declare function ConnectedSessionsRow({ renderSessionIcon }: ConnectedSessionsRowProps): import("react").JSX.Element;
86
78
  export interface ConnectedLogoutDialogProps {
87
79
  open: boolean;
88
80
  onClose: () => void;
@@ -101,9 +93,8 @@ export interface ConnectedLogoutDialogProps {
101
93
  */
102
94
  export declare function ConnectedLogoutDialog({ open, onClose, canLogoutAll, confirmSignOut, renderSessionIcon, }: ConnectedLogoutDialogProps): import("react").JSX.Element;
103
95
  export interface ConnectedDangerZoneProps {
104
- notify?: SettingsNotify;
105
96
  /** Link to the billing page for a deletion blocked by an active subscription. */
106
97
  renderSubscriptionLink?: () => ReactNode;
107
98
  }
108
99
  /** "Delete your account": the collapsed danger zone and the two-step dialog (`DeleteAccountDialog`). */
109
- export declare function ConnectedDangerZone({ notify, renderSubscriptionLink }: ConnectedDangerZoneProps): import("react").JSX.Element;
100
+ export declare function ConnectedDangerZone({ renderSubscriptionLink }: ConnectedDangerZoneProps): import("react").JSX.Element;
@@ -11,6 +11,7 @@ interface ConnectionValue {
11
11
  mode: ArbiMode;
12
12
  status: ConnectionStatus;
13
13
  user: ArbiUser | null;
14
+ /** The selected workspace: the session state's (`useArbiSessionState`), set by `setWorkspace`. */
14
15
  workspaceId: string | null;
15
16
  apiConfigured: boolean;
16
17
  apiUrl: string;
@@ -48,6 +49,10 @@ interface ConnectionValue {
48
49
  export declare const workspaceStorageKey: (apiUrl: string, userKey: string) => string;
49
50
  /** Shown on the sign-in screen after the session could not be recovered. */
50
51
  export declare const SESSION_EXPIRED_MESSAGE = "Your session expired. Sign in again.";
52
+ /**
53
+ * The connection, over the session state of the host (an `ArbiSessionStateProvider` above), else
54
+ * its own: the selected workspace lives there, so every block reads one value.
55
+ */
51
56
  export declare function ConnectionProvider({ config, children, }: {
52
57
  config: ArbiConnectionConfig;
53
58
  children: ReactNode;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { type RefObject } from 'react';
9
9
  import { type MailAccount, type MailCompose, type MailMessage } from '@arbidocs/react';
10
- import type { MailDocumentSource, MailNotify, MailOfflineSupport, MailWordEditor } from './types';
10
+ import type { MailDocumentSource, MailOfflineSupport, MailWordEditor } from './types';
11
11
  export interface ConnectedMailComposerProps {
12
12
  /** Open this saved draft (from the account's Drafts) instead of a new message. */
13
13
  draftId?: string;
@@ -35,7 +35,6 @@ export interface ConnectedMailComposerProps {
35
35
  offline?: MailOfflineSupport;
36
36
  /** Workspace documents to attach ("From workspace"). Absent: not offered. */
37
37
  documents?: MailDocumentSource;
38
- notify?: MailNotify;
39
38
  /** A native draft's body in the Word editor (see {@link MailWordEditor}). Absent: the rich-text body. */
40
39
  word?: MailWordEditor;
41
40
  /** This compose session, stable across remounts (its Word room is kept for it). */
@@ -47,4 +46,4 @@ export interface ConnectedMailComposerProps {
47
46
  /** The host's header for this message (a panel's title bar): who ARBI's work is billed to shows there. */
48
47
  headerSlot?: HTMLElement | null;
49
48
  }
50
- export declare function ConnectedMailComposer({ draftId, initial, account: accountProp, mailbox, maxBytes: maxBytesProp, ready: readyProp, drafts: draftsProp, notify, offline, replyTo, ...rest }: ConnectedMailComposerProps): import("react").JSX.Element;
49
+ export declare function ConnectedMailComposer({ draftId, initial, account: accountProp, mailbox, maxBytes: maxBytesProp, ready: readyProp, drafts: draftsProp, offline, replyTo, ...rest }: ConnectedMailComposerProps): import("react").JSX.Element;
@@ -12,7 +12,7 @@ import { type ReactNode } from 'react';
12
12
  import type { GridState } from 'ag-grid-community';
13
13
  import { type MailAddress, type MailAccount, type MailAttachment, type MailMessage } from '@arbidocs/react';
14
14
  import { type MailAliasUser } from './ConnectedMailAccounts';
15
- import type { MailDocumentSource, MailNotify, MailOfflineSupport, MailPanelProps, MailSaveToWorkspace, MailWordEditor } from './types';
15
+ import type { MailDocumentSource, MailOfflineSupport, MailPanelProps, MailSaveToWorkspace, MailWordEditor } from './types';
16
16
  export interface ConnectedMailboxProps {
17
17
  /** Which mailbox: an account id, or `'native'` for the user's own inbox. Default: the first. */
18
18
  mailbox?: string;
@@ -64,6 +64,5 @@ export interface ConnectedMailboxProps {
64
64
  onGridStateChange?: (state: GridState) => void;
65
65
  /** The message opened first (e.g. restored after a redirect). */
66
66
  initialMessageId?: string | null;
67
- notify?: MailNotify;
68
67
  }
69
- export declare function ConnectedMailbox({ mailbox, draftId, onDraftOpened, folder: requestedFolder, onFolderOpened, composeAttachments, onComposeOpened, onOpenDocument, user, productName, oauthReturnPath, personLabel, offline, documents, saveToWorkspace, word, onReplyWithArbi, renderInvite, renderPanel, onViewerOpenChange, gridState, onGridStateChange, initialMessageId, notify, }: ConnectedMailboxProps): import("react").JSX.Element;
68
+ export declare function ConnectedMailbox({ mailbox, draftId, onDraftOpened, folder: requestedFolder, onFolderOpened, composeAttachments, onComposeOpened, onOpenDocument, user, productName, oauthReturnPath, personLabel, offline, documents, saveToWorkspace, word, onReplyWithArbi, renderInvite, renderPanel, onViewerOpenChange, gridState, onGridStateChange, initialMessageId, }: ConnectedMailboxProps): import("react").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { type RefObject } from 'react';
2
2
  import { type MailAccount, type MailCompose, type MailMessage } from '@arbidocs/react';
3
- import type { MailDocumentSource, MailNotify, MailOfflineSupport, MailWordEditor } from './types';
3
+ import type { MailDocumentSource, MailOfflineSupport, MailWordEditor } from './types';
4
4
  export interface MailComposerFormProps {
5
5
  account?: MailAccount;
6
6
  initial: MailCompose;
@@ -21,7 +21,6 @@ export interface MailComposerFormProps {
21
21
  localDraftId?: string;
22
22
  offline?: MailOfflineSupport;
23
23
  documents?: MailDocumentSource;
24
- notify: MailNotify;
25
24
  /** A native draft's body in the Word editor. Absent: the rich-text body. */
26
25
  word?: MailWordEditor;
27
26
  /** This compose session, stable across remounts (its Word room is kept for it). */
@@ -32,4 +31,4 @@ export interface MailComposerFormProps {
32
31
  headerSlot?: HTMLElement | null;
33
32
  }
34
33
  /** Write, save and send one message. */
35
- export declare function MailComposerForm({ account, initial, maxBytes, ready, drafts, onClose, onOpenDraft, onReload, onChange, embedded, closeRequestRef, localDraftId: initialLocalDraftId, offline, documents, notify, word, sessionKey, roomId, headerSlot, }: MailComposerFormProps): import("react").JSX.Element;
34
+ export declare function MailComposerForm({ account, initial, maxBytes, ready, drafts, onClose, onOpenDraft, onReload, onChange, embedded, closeRequestRef, localDraftId: initialLocalDraftId, offline, documents, word, sessionKey, roomId, headerSlot, }: MailComposerFormProps): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  export { ConnectedMailbox, type ConnectedMailboxProps } from './ConnectedMailbox';
2
2
  export { ConnectedMailComposer, type ConnectedMailComposerProps } from './ConnectedMailComposer';
3
3
  export { ConnectedMailMessage, type ConnectedMailMessageProps } from './ConnectedMailMessage';
4
- export { defaultMailNotify, resolveMailbox } from './mailbox';
4
+ export { resolveMailbox } from './mailbox';
5
5
  export { ConnectedMailAccounts, type ConnectedMailAccountsProps, type MailAliasUser, } from './ConnectedMailAccounts';
6
6
  export { ConnectedMailSetup } from './ConnectedMailSetup';
7
- export type { MailNotify, MailLocalDraft, MailOutboxEntry, MailOutboxRequest, MailOfflineSupport, MailDocumentSource, MailSaveToWorkspace, MailPanelProps, MailWordEditor, } from './types';
7
+ export type { MailLocalDraft, MailOutboxEntry, MailOutboxRequest, MailOfflineSupport, MailDocumentSource, MailSaveToWorkspace, MailPanelProps, MailWordEditor, } from './types';
@@ -1,6 +1,3 @@
1
- import { type MailAccount } from '@arbidocs/react';
2
- import type { MailNotify } from './types';
3
- /** The default {@link MailNotify}: the shared toast and notification centre. */
4
- export declare const defaultMailNotify: MailNotify;
1
+ import type { MailAccount } from '@arbidocs/react';
5
2
  /** The account a `mailbox` choice names: an account id, or `'native'` for the user's own inbox. */
6
3
  export declare function resolveMailbox(accounts: MailAccount[] | undefined, mailbox: string | undefined): MailAccount | undefined;
@@ -2,14 +2,6 @@ import type { ReactNode } from 'react';
2
2
  import type { MailAccount, MailAttachment, MailCompose } from '@arbidocs/react';
3
3
  import type { MailAttachableDocument } from '../../collaboration/mail/MailDocumentPicker';
4
4
  import type { NativeDocxAdapter } from '../../docx/NativeDocxEditor';
5
- /** Tell the user how an action went (a toast). Default: `notify` from `@arbidocs/react`. */
6
- export type MailNotify = (message: string, variant: 'success' | 'info' | 'error', options?: {
7
- description?: string;
8
- action?: {
9
- label: string;
10
- onClick: () => void;
11
- };
12
- }) => void;
13
5
  /** A draft kept on this device (written offline), not yet in the server's Drafts. */
14
6
  export interface MailLocalDraft {
15
7
  id: string;
@@ -3,7 +3,7 @@
3
3
 
4
4
  var chunk5FYU7ZIU_cjs = require('../chunk-5FYU7ZIU.cjs');
5
5
  var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
6
- var chunkOUW6G4O2_cjs = require('../chunk-OUW6G4O2.cjs');
6
+ var chunkHFGXA5CL_cjs = require('../chunk-HFGXA5CL.cjs');
7
7
  var chunkVPPX5XUF_cjs = require('../chunk-VPPX5XUF.cjs');
8
8
  var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
9
9
  var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
@@ -14,7 +14,8 @@ var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
14
14
  require('../chunk-FX3K6LNZ.cjs');
15
15
  var chunkPPCATBOY_cjs = require('../chunk-PPCATBOY.cjs');
16
16
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
17
- require('../chunk-C54XEN5T.cjs');
17
+ require('../chunk-C4WSHRR6.cjs');
18
+ require('../chunk-ULWRNGGE.cjs');
18
19
  var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
19
20
  require('../chunk-DES3K4SD.cjs');
20
21
  var lucideReact = require('lucide-react');
@@ -2036,7 +2037,7 @@ function FactSearchResult({
2036
2037
  }
2037
2038
  ),
2038
2039
  /* @__PURE__ */ jsxRuntime.jsx(
2039
- chunkOUW6G4O2_cjs.SearchHit,
2040
+ chunkHFGXA5CL_cjs.SearchHit,
2040
2041
  {
2041
2042
  className: "min-w-0 flex-1",
2042
2043
  testId: chunkMHVNT4J3_cjs.testIdOr(testIds?.hit?.(id), { testId: `facts-smart-search-hit-${id}` }),