@arbidocs/blocks 0.5.102 → 0.5.103
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-NEZJNTKH.js +1 -1
- package/dist/ConnectedCallDock-P7LK2HYF.cjs +1 -1
- package/dist/ConnectedCallRoom-FXTR4YFI.cjs +1 -1
- package/dist/ConnectedCallRoom-K3X6ICCG.js +1 -1
- package/dist/ConnectedNativeDocxComparison-7VJKOKYU.cjs +2 -2
- package/dist/ConnectedNativeDocxComparison-FENZYWDH.js +2 -2
- package/dist/ConnectedNativeDocxEditor-CNQAMO2N.js +2 -2
- package/dist/ConnectedNativeDocxEditor-HB5BHGZ2.cjs +2 -2
- package/dist/ConnectedStreamedWordArtifact-BF6JET2D.cjs +2 -2
- package/dist/ConnectedStreamedWordArtifact-ILMKFCDC.js +2 -2
- package/dist/{DocumentReviewCard-UUMBYSHO.cjs → DocumentReviewCard-FSOBIVED.cjs} +14 -14
- package/dist/{DocumentReviewCard-UUMBYSHO.cjs.map → DocumentReviewCard-FSOBIVED.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-UEFTDEOL.js → DocumentReviewCard-XB7BE7MZ.js} +9 -9
- package/dist/{DocumentReviewCard-UEFTDEOL.js.map → DocumentReviewCard-XB7BE7MZ.js.map} +1 -1
- package/dist/{FilesViewerDialog-R5VNYH72.js → FilesViewerDialog-5PL3HGYO.js} +8 -8
- package/dist/{FilesViewerDialog-R5VNYH72.js.map → FilesViewerDialog-5PL3HGYO.js.map} +1 -1
- package/dist/{FilesViewerDialog-B6AQP2UB.cjs → FilesViewerDialog-GEIQCBBK.cjs} +9 -9
- package/dist/{FilesViewerDialog-B6AQP2UB.cjs.map → FilesViewerDialog-GEIQCBBK.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-WD754UBK.js → WorkspaceTableView-SX5FIC4C.js} +3 -3
- package/dist/{WorkspaceTableView-WD754UBK.js.map → WorkspaceTableView-SX5FIC4C.js.map} +1 -1
- package/dist/{WorkspaceTableView-3D6SYOWT.cjs → WorkspaceTableView-Y2GX5GB2.cjs} +3 -3
- package/dist/{WorkspaceTableView-3D6SYOWT.cjs.map → WorkspaceTableView-Y2GX5GB2.cjs.map} +1 -1
- package/dist/agents/index.cjs +178 -177
- package/dist/agents/index.js +5 -4
- package/dist/chat/index.cjs +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/{chunk-D3DOHXBQ.cjs → chunk-4LK74S7T.cjs} +24 -24
- package/dist/{chunk-D3DOHXBQ.cjs.map → chunk-4LK74S7T.cjs.map} +1 -1
- package/dist/{chunk-PL2CVHBB.cjs → chunk-7Z5CSFYV.cjs} +5 -5
- package/dist/{chunk-PL2CVHBB.cjs.map → chunk-7Z5CSFYV.cjs.map} +1 -1
- package/dist/{chunk-FKFUAU4F.js → chunk-ASOPBELQ.js} +7 -6
- package/dist/chunk-ASOPBELQ.js.map +1 -0
- package/dist/{chunk-ICE2ZKN4.js → chunk-BQHTBUOA.js} +3 -3
- package/dist/{chunk-ICE2ZKN4.js.map → chunk-BQHTBUOA.js.map} +1 -1
- package/dist/{chunk-JJ5BXK3Q.cjs → chunk-COCZMF7B.cjs} +7 -6
- package/dist/chunk-COCZMF7B.cjs.map +1 -0
- package/dist/{chunk-CMEIU2GA.cjs → chunk-CRKWD7B5.cjs} +28 -28
- package/dist/{chunk-CMEIU2GA.cjs.map → chunk-CRKWD7B5.cjs.map} +1 -1
- package/dist/{chunk-AMIPT72L.cjs → chunk-DGOVO2QO.cjs} +8 -8
- package/dist/{chunk-AMIPT72L.cjs.map → chunk-DGOVO2QO.cjs.map} +1 -1
- package/dist/{chunk-L3CWX2BN.cjs → chunk-DZGLEEUT.cjs} +4 -4
- package/dist/{chunk-L3CWX2BN.cjs.map → chunk-DZGLEEUT.cjs.map} +1 -1
- package/dist/{chunk-ZGAUD357.cjs → chunk-EIV4H2PZ.cjs} +4 -4
- package/dist/{chunk-ZGAUD357.cjs.map → chunk-EIV4H2PZ.cjs.map} +1 -1
- package/dist/{chunk-VVCSEYDP.cjs → chunk-G4D4UGSW.cjs} +4 -4
- package/dist/{chunk-VVCSEYDP.cjs.map → chunk-G4D4UGSW.cjs.map} +1 -1
- package/dist/{chunk-GCW7PS3D.js → chunk-I6WRLTWU.js} +3 -3
- package/dist/{chunk-GCW7PS3D.js.map → chunk-I6WRLTWU.js.map} +1 -1
- package/dist/{chunk-AUQF6UJZ.js → chunk-JAIMJTXQ.js} +4 -4
- package/dist/{chunk-AUQF6UJZ.js.map → chunk-JAIMJTXQ.js.map} +1 -1
- package/dist/chunk-JCMKYQGZ.js +26 -0
- package/dist/chunk-JCMKYQGZ.js.map +1 -0
- package/dist/{chunk-6AETD75K.js → chunk-K2G2P66L.js} +3 -3
- package/dist/{chunk-6AETD75K.js.map → chunk-K2G2P66L.js.map} +1 -1
- package/dist/{chunk-W4QYNRBU.cjs → chunk-KVQ6O54R.cjs} +46 -46
- package/dist/{chunk-W4QYNRBU.cjs.map → chunk-KVQ6O54R.cjs.map} +1 -1
- package/dist/{chunk-4YQBT5EL.cjs → chunk-KXNC24EF.cjs} +35 -35
- package/dist/{chunk-4YQBT5EL.cjs.map → chunk-KXNC24EF.cjs.map} +1 -1
- package/dist/{chunk-PCSJODXV.js → chunk-M6DTLHCN.js} +3 -3
- package/dist/{chunk-PCSJODXV.js.map → chunk-M6DTLHCN.js.map} +1 -1
- package/dist/{chunk-S67KFB54.js → chunk-NTXO6IYE.js} +3 -3
- package/dist/{chunk-S67KFB54.js.map → chunk-NTXO6IYE.js.map} +1 -1
- package/dist/{chunk-HC54CTGN.cjs → chunk-OSR3GCJG.cjs} +11 -11
- package/dist/chunk-OSR3GCJG.cjs.map +1 -0
- package/dist/{chunk-6TYZ33WH.cjs → chunk-OSWKA2NQ.cjs} +6 -6
- package/dist/chunk-OSWKA2NQ.cjs.map +1 -0
- package/dist/{chunk-TOT4HHHN.js → chunk-P5RTO2WL.js} +3 -24
- package/dist/chunk-P5RTO2WL.js.map +1 -0
- package/dist/chunk-QECKDZ47.cjs +31 -0
- package/dist/chunk-QECKDZ47.cjs.map +1 -0
- package/dist/{chunk-QM6OI62U.js → chunk-QVY5DH2R.js} +5 -5
- package/dist/{chunk-QM6OI62U.js.map → chunk-QVY5DH2R.js.map} +1 -1
- package/dist/{chunk-PP2NXTOP.js → chunk-RUV2ERID.js} +12 -12
- package/dist/{chunk-PP2NXTOP.js.map → chunk-RUV2ERID.js.map} +1 -1
- package/dist/{chunk-MDMQDVCA.cjs → chunk-S3SWSAUB.cjs} +4 -4
- package/dist/{chunk-MDMQDVCA.cjs.map → chunk-S3SWSAUB.cjs.map} +1 -1
- package/dist/{chunk-CDOW3H4B.js → chunk-SOY6UUFS.js} +3 -3
- package/dist/{chunk-CDOW3H4B.js.map → chunk-SOY6UUFS.js.map} +1 -1
- package/dist/{chunk-6S2LRXJ4.js → chunk-SYMZ6L3C.js} +6 -6
- package/dist/chunk-SYMZ6L3C.js.map +1 -0
- package/dist/{chunk-ZKTMTYFN.js → chunk-UYFWLP74.js} +6 -6
- package/dist/{chunk-ZKTMTYFN.js.map → chunk-UYFWLP74.js.map} +1 -1
- package/dist/{chunk-SOS2WASA.cjs → chunk-WZAHVTTO.cjs} +2 -26
- package/dist/chunk-WZAHVTTO.cjs.map +1 -0
- package/dist/{chunk-4RQDYXLE.js → chunk-ZR4TH6DZ.js} +5 -5
- package/dist/{chunk-4RQDYXLE.js.map → chunk-ZR4TH6DZ.js.map} +1 -1
- package/dist/collaboration/index.cjs +69 -69
- package/dist/collaboration/index.js +1 -1
- package/dist/collaboration/mail/MailActionBar.d.ts +3 -2
- package/dist/collaboration/mail/MailAddToWorkspaceDialog.d.ts +20 -0
- package/dist/collaboration/mail/MailFiledChips.d.ts +15 -0
- package/dist/collaboration/mail/MailMessageView.d.ts +3 -3
- package/dist/connect/docx.cjs +2 -2
- package/dist/connect/docx.js +2 -2
- package/dist/connect/index.cjs +1083 -810
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +503 -230
- package/dist/connect/index.js.map +1 -1
- package/dist/connect/viewer.cjs +7 -7
- package/dist/connect/viewer.js +6 -6
- package/dist/connection/connectors/ConnectedMailboxSyncDialog.d.ts +3 -1
- package/dist/connection/connectors/native-mailbox.d.ts +19 -0
- package/dist/connection/files/imports/EmailImportPanel.d.ts +2 -2
- package/dist/connection/files/imports/NativeMailImportRow.d.ts +11 -0
- package/dist/connection/mail/ConnectedMailConversation.d.ts +3 -4
- package/dist/connection/mail/ConnectedMailbox.d.ts +1 -4
- package/dist/connection/mail/types.d.ts +2 -4
- package/dist/connection/mail/useMailMessageChange.d.ts +11 -2
- package/dist/connection/mail/useMailboxDefaults.d.ts +6 -3
- package/dist/connection/workspace-access/ConnectedGrantWorkspaceAccessDialog.d.ts +1 -1
- package/dist/document-tools/viewer/index.cjs +1 -1
- package/dist/document-tools/viewer/index.cjs.map +1 -1
- package/dist/document-tools/viewer/index.js +1 -1
- package/dist/document-tools/viewer/index.js.map +1 -1
- package/dist/embed/index.cjs +13 -13
- package/dist/embed/index.js +7 -7
- package/dist/files/import/ImportParts.d.ts +6 -3
- package/dist/files/index.cjs +224 -224
- package/dist/files/index.js +3 -3
- package/dist/index.cjs +337 -336
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +1 -1
- package/dist/studio/index.js +1 -1
- package/dist/workflow-canvas/index.cjs +21 -20
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/dist/workflow-canvas/index.js +11 -10
- package/dist/workflow-canvas/index.js.map +1 -1
- package/dist/workspaces/index.cjs +33 -28
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.d.ts +1 -1
- package/dist/workspaces/index.js +3 -2
- package/dist/workspaces/index.js.map +1 -1
- package/dist/workspaces/workspace-roles.d.ts +11 -4
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/chunk-6S2LRXJ4.js.map +0 -1
- package/dist/chunk-6TYZ33WH.cjs.map +0 -1
- package/dist/chunk-FKFUAU4F.js.map +0 -1
- package/dist/chunk-HC54CTGN.cjs.map +0 -1
- package/dist/chunk-JJ5BXK3Q.cjs.map +0 -1
- package/dist/chunk-SOS2WASA.cjs.map +0 -1
- package/dist/chunk-TOT4HHHN.js.map +0 -1
package/dist/connect/viewer.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkKVQ6O54R_cjs = require('../chunk-KVQ6O54R.cjs');
|
|
5
5
|
require('../chunk-JXKNPKU6.cjs');
|
|
6
6
|
var chunkRNX5LAQK_cjs = require('../chunk-RNX5LAQK.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-G4D4UGSW.cjs');
|
|
8
8
|
require('../chunk-6KQVTMRL.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-KXNC24EF.cjs');
|
|
10
10
|
require('../chunk-MMSHLHTA.cjs');
|
|
11
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-OSWKA2NQ.cjs');
|
|
12
12
|
require('../chunk-223D4727.cjs');
|
|
13
13
|
require('../chunk-SNUBQMIS.cjs');
|
|
14
14
|
require('../chunk-YYPZOEED.cjs');
|
|
@@ -38,8 +38,8 @@ require('../chunk-4PA6VCCR.cjs');
|
|
|
38
38
|
require('../chunk-AHDJXIUB.cjs');
|
|
39
39
|
require('../chunk-RL2HI6NP.cjs');
|
|
40
40
|
require('../chunk-6UZC4XVV.cjs');
|
|
41
|
-
require('../chunk-TTPJ2G3G.cjs');
|
|
42
41
|
require('../chunk-XNXNLXIC.cjs');
|
|
42
|
+
require('../chunk-TTPJ2G3G.cjs');
|
|
43
43
|
require('../chunk-CYKHYFI3.cjs');
|
|
44
44
|
require('../chunk-VG24E4JJ.cjs');
|
|
45
45
|
require('../chunk-U2FFG2B3.cjs');
|
|
@@ -60,8 +60,8 @@ require('../chunk-MCXS6X37.cjs');
|
|
|
60
60
|
require('../chunk-KQF7POTG.cjs');
|
|
61
61
|
require('../chunk-75BNMCUX.cjs');
|
|
62
62
|
require('../chunk-UDSHVNU3.cjs');
|
|
63
|
-
require('../chunk-IPSHAMO2.cjs');
|
|
64
63
|
require('../chunk-FX3K6LNZ.cjs');
|
|
64
|
+
require('../chunk-IPSHAMO2.cjs');
|
|
65
65
|
require('../chunk-PPCATBOY.cjs');
|
|
66
66
|
require('../chunk-WGWP4ATS.cjs');
|
|
67
67
|
require('../chunk-JDFBEGQO.cjs');
|
|
@@ -74,7 +74,7 @@ require('../chunk-DES3K4SD.cjs');
|
|
|
74
74
|
|
|
75
75
|
Object.defineProperty(exports, "ConnectedDocumentViewer", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkKVQ6O54R_cjs.ConnectedDocumentViewer; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
80
80
|
enumerable: true,
|
package/dist/connect/viewer.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { ConnectedDocumentViewer } from '../chunk-
|
|
2
|
+
export { ConnectedDocumentViewer } from '../chunk-UYFWLP74.js';
|
|
3
3
|
import '../chunk-QTSNHGSI.js';
|
|
4
4
|
export { ConnectedDocumentToolsProvider } from '../chunk-KYLQRS3O.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-NTXO6IYE.js';
|
|
6
6
|
import '../chunk-3PV25ICC.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-I6WRLTWU.js';
|
|
8
8
|
import '../chunk-N77UYRV7.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-SYMZ6L3C.js';
|
|
10
10
|
import '../chunk-RC6VTY2H.js';
|
|
11
11
|
import '../chunk-OHRWYRTH.js';
|
|
12
12
|
import '../chunk-IIUR73K2.js';
|
|
@@ -36,8 +36,8 @@ import '../chunk-ZQ5YTC3P.js';
|
|
|
36
36
|
import '../chunk-RLWIUUQ5.js';
|
|
37
37
|
import '../chunk-L3BEWZWT.js';
|
|
38
38
|
import '../chunk-P4CH2ATT.js';
|
|
39
|
-
import '../chunk-U53SIJES.js';
|
|
40
39
|
import '../chunk-IU5CHOEU.js';
|
|
40
|
+
import '../chunk-U53SIJES.js';
|
|
41
41
|
import '../chunk-MB5B7E2Y.js';
|
|
42
42
|
import '../chunk-NS4JD2VR.js';
|
|
43
43
|
import '../chunk-Z42EEBON.js';
|
|
@@ -58,8 +58,8 @@ import '../chunk-5B74B62N.js';
|
|
|
58
58
|
import '../chunk-UH7LTR2B.js';
|
|
59
59
|
import '../chunk-7SQVZML4.js';
|
|
60
60
|
import '../chunk-XDDORJPA.js';
|
|
61
|
-
import '../chunk-X5YMI6A7.js';
|
|
62
61
|
import '../chunk-SLSBJRWW.js';
|
|
62
|
+
import '../chunk-X5YMI6A7.js';
|
|
63
63
|
import '../chunk-NPLYHR2E.js';
|
|
64
64
|
import '../chunk-YUHSDOPW.js';
|
|
65
65
|
import '../chunk-WTTPZMZ7.js';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type ConnectorCatalogEntry, type UserConnectorEntry } from '@arbidocs/react';
|
|
2
|
+
import { type NativeMailboxSource } from './native-mailbox';
|
|
2
3
|
export interface ConnectedMailboxSyncDialogProps {
|
|
3
|
-
|
|
4
|
+
/** The mailbox: a connector's catalog entry, or the user's own mailbox (`NATIVE_MAILBOX_SOURCE`). */
|
|
5
|
+
catalog: ConnectorCatalogEntry | NativeMailboxSource;
|
|
4
6
|
userConnector: UserConnectorEntry | undefined;
|
|
5
7
|
open: boolean;
|
|
6
8
|
onOpenChange: (open: boolean) => void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** The user's own mailbox as a mailbox-sync source (`vendor_key = 'native'` on the server). */
|
|
2
|
+
export declare const NATIVE_MAILBOX = "native";
|
|
3
|
+
/** Its folders that can be filed into a workspace, ongoing. */
|
|
4
|
+
export declare const NATIVE_MAILBOX_FOLDERS: readonly [{
|
|
5
|
+
readonly id: "inbox";
|
|
6
|
+
readonly name: "Inbox";
|
|
7
|
+
}, {
|
|
8
|
+
readonly id: "sent";
|
|
9
|
+
readonly name: "Sent";
|
|
10
|
+
}, {
|
|
11
|
+
readonly id: "archive";
|
|
12
|
+
readonly name: "Archive";
|
|
13
|
+
}];
|
|
14
|
+
/** The user's own mailbox as a source of the mailbox sync dialog. */
|
|
15
|
+
export interface NativeMailboxSource {
|
|
16
|
+
vendor_key: typeof NATIVE_MAILBOX;
|
|
17
|
+
display_name: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const NATIVE_MAILBOX_SOURCE: NativeMailboxSource;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* EmailImportPanel
|
|
3
3
|
*
|
|
4
|
-
* Rendered under "Import from Email" in the workspace upload flow. Shows
|
|
5
|
-
* mailbox provider (Gmail, Outlook) inline with its
|
|
4
|
+
* Rendered under "Import from Email" in the workspace upload flow. Shows the
|
|
5
|
+
* user's own mailbox and each mailbox provider (Gmail, Outlook) inline with its account and sync
|
|
6
6
|
* details, and a compact "Sync now" action plus a gear that opens the settings
|
|
7
7
|
* dialog. Reuses the shared EnableSyncDialog and useEmailSyncTrigger so behavior
|
|
8
8
|
* matches the Connected Apps settings tab exactly.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type MailAccount } from '@arbidocs/react';
|
|
2
|
+
/**
|
|
3
|
+
* The user's own mailbox, when its mail can be added to this workspace: they have mail, and the
|
|
4
|
+
* workspace is private (mail added is private; a public workspace's key is shared with everyone).
|
|
5
|
+
*/
|
|
6
|
+
export declare function useOwnMailboxForImport(workspaceExtId: string): MailAccount | undefined;
|
|
7
|
+
export declare function NativeMailImportSection({ workspaceExtId, native, }: {
|
|
8
|
+
workspaceExtId: string;
|
|
9
|
+
/** The user's own mailbox (`useOwnMailboxForImport`). */
|
|
10
|
+
native: MailAccount;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
@@ -31,12 +31,11 @@ export interface ConnectedMailConversationProps {
|
|
|
31
31
|
/** Reply, Reply all, Forward or Edit draft: the message to open in the composer. */
|
|
32
32
|
onCompose: (initial: MailCompose) => void;
|
|
33
33
|
onReplyWithArbi?: (message: MailMessage, account: MailAccount) => void;
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
savePending?: boolean;
|
|
34
|
+
/** Open a document (offered as "Open" once mail is added to a workspace). */
|
|
35
|
+
onOpenDocument?: (documentId: string, workspaceId: string) => void;
|
|
37
36
|
/** ARBI mail's Trash: delete these for good (the host confirms). */
|
|
38
37
|
onDeleteForever?: (messages: MailMessage[]) => void;
|
|
39
38
|
onError: (message: string) => void;
|
|
40
39
|
renderInvite?: (message: MailMessage) => ReactNode;
|
|
41
40
|
}
|
|
42
|
-
export declare function ConnectedMailConversation({ account, threadId, single, onShowConversation, conversation, folderId, folderRole, folders, ready, offline, messageChange, personLabel, onClose, onCompose, onReplyWithArbi,
|
|
41
|
+
export declare function ConnectedMailConversation({ account, threadId, single, onShowConversation, conversation, folderId, folderRole, folders, ready, offline, messageChange, personLabel, onClose, onCompose, onReplyWithArbi, onOpenDocument, onDeleteForever, onError, renderInvite, }: ConnectedMailConversationProps): import("react").JSX.Element;
|
|
@@ -28,10 +28,7 @@ export interface ConnectedMailboxProps {
|
|
|
28
28
|
/** Open this folder (a role such as `inbox`, or an id); taken once, then `onFolderOpened`. */
|
|
29
29
|
folder?: string | null;
|
|
30
30
|
onFolderOpened?: () => void;
|
|
31
|
-
/**
|
|
32
|
-
* Open a document: offered as "Open" on the notice after an email is saved into a workspace
|
|
33
|
-
* (when `saveToWorkspace.save` resolves with the new document's id).
|
|
34
|
-
*/
|
|
31
|
+
/** Open a document: offered as "Open" on the notice after an email is added to a workspace. */
|
|
35
32
|
onOpenDocument?: (documentId: string, workspaceId: string) => void;
|
|
36
33
|
/** The user, for the suggested native address (`given.family`). Default: the signed-in user. */
|
|
37
34
|
user?: MailAliasUser | null;
|
|
@@ -94,16 +94,14 @@ export interface MailDocumentSource {
|
|
|
94
94
|
/** The document's file as an attachment; rejects when it can't be fetched or exceeds `maxBytes`. */
|
|
95
95
|
toAttachment(documentId: string, maxBytes: number): Promise<MailAttachment>;
|
|
96
96
|
}
|
|
97
|
-
/**
|
|
98
|
-
export interface
|
|
97
|
+
/** The workspaces mail can be added to; the open one is preselected. */
|
|
98
|
+
export interface MailWorkspaces {
|
|
99
99
|
workspaces: {
|
|
100
100
|
id: string;
|
|
101
101
|
name: string;
|
|
102
102
|
}[];
|
|
103
103
|
/** Preselected in the dialog (e.g. the open workspace). Default: the first. */
|
|
104
104
|
defaultWorkspaceId?: string | null;
|
|
105
|
-
/** Upload the .eml; resolves with the new document's id when known. */
|
|
106
|
-
save(workspaceId: string, file: File): Promise<string | void>;
|
|
107
105
|
}
|
|
108
106
|
/**
|
|
109
107
|
* A native draft's body in the Word editor (the compact `NativeDocxEditor`), so it is edited like a
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Changing a message (mark read or unread, move or archive, Trash, restore, delete forever
|
|
2
|
+
* Changing a message (mark read or unread, flag, move or archive, Trash, restore, delete forever, add
|
|
3
|
+
* to a workspace) on the
|
|
3
4
|
* mail client in scope. With device storage that keeps changes (`MailOfflineSupport.queueChange`),
|
|
4
5
|
* a change made offline, under "Work offline", or whose request gets no answer is done on the
|
|
5
6
|
* device at once and applied to the mailbox on reconnect; without it, changes need a connection.
|
|
6
7
|
* Online, a message that still has a change waiting on the device is changed through the device
|
|
7
8
|
* too, so the new change combines with the waiting one (and goes out after it, never before).
|
|
8
9
|
*/
|
|
9
|
-
import { type MailAccount, type MailChange } from '@arbidocs/react';
|
|
10
|
+
import { type MailAccount, type MailChange, type MailFiled, type MailFileRequest } from '@arbidocs/react';
|
|
10
11
|
import type { MailOfflineSupport } from './types';
|
|
11
12
|
/** `'sent'`: the server has it; `'queued'`: done on this device, applied on reconnect. */
|
|
12
13
|
type MailChangeOutcome = 'sent' | 'queued';
|
|
13
14
|
interface MailMessageChange {
|
|
14
15
|
/** Change `messageId` (in `folderId`); rejects with the server's reason when refused. */
|
|
15
16
|
change(messageId: string, folderId: string, change: MailChange): Promise<MailChangeOutcome>;
|
|
17
|
+
/**
|
|
18
|
+
* Add `messageId` (or, with `threadId`, its conversation) to a workspace: online at once (with
|
|
19
|
+
* where it went), else kept on the device and added on reconnect.
|
|
20
|
+
*/
|
|
21
|
+
file(messageId: string, folderId: string, request: MailFileRequest): Promise<{
|
|
22
|
+
outcome: MailChangeOutcome;
|
|
23
|
+
filed?: MailFiled;
|
|
24
|
+
}>;
|
|
16
25
|
/** Whether changes can be made offline (they wait on the device). */
|
|
17
26
|
queuesOffline: boolean;
|
|
18
27
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* documents to attach, and saving an email into a workspace.
|
|
5
5
|
*/
|
|
6
6
|
import { type MailAddress } from '@arbidocs/react';
|
|
7
|
-
import type { MailDocumentSource, MailRecipientSuggestions,
|
|
7
|
+
import type { MailDocumentSource, MailRecipientSuggestions, MailWorkspaces } from './types';
|
|
8
8
|
/** Recipient suggestions while an address is typed: contacts and workspace co-members. */
|
|
9
9
|
export declare const peopleRecipients: MailRecipientSuggestions;
|
|
10
10
|
/**
|
|
@@ -18,5 +18,8 @@ export declare function useMailPersonLabel(): (person: MailAddress) => string;
|
|
|
18
18
|
* uploaded as a file are left out. None without an open workspace.
|
|
19
19
|
*/
|
|
20
20
|
export declare function useWorkspaceMailDocuments(): MailDocumentSource | undefined;
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/**
|
|
22
|
+
* The user's workspaces mail can be added to: the private ones (mail added is private, and a
|
|
23
|
+
* public workspace's key is shared with everyone); the open one is preselected.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useMailWorkspaces(): MailWorkspaces;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* External requesters (`temporary_access_only`) only receive fixed-expiry grants
|
|
22
22
|
* (up to 24 hours) with no live session key required, and never as owner.
|
|
23
23
|
*
|
|
24
|
-
* Role: default collaborator; guest is read-only; owner is allowed only for
|
|
24
|
+
* Role: default collaborator; guest is read-only (shown as "Read only"); owner is allowed only for
|
|
25
25
|
* permanent grants (a temporary grant can never be owner).
|
|
26
26
|
*/
|
|
27
27
|
import type { components } from '@arbidocs/client';
|
|
@@ -827,7 +827,7 @@ function SignatureRequestEditor({
|
|
|
827
827
|
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: confirmInvite.map(nameAndEmailOf).join(", ") }),
|
|
828
828
|
".",
|
|
829
829
|
" ",
|
|
830
|
-
me?.role === "owner" ? "They are invited
|
|
830
|
+
me?.role === "owner" ? "They are invited with read-only access and asked to sign when they join." : "Ask a workspace owner to invite them: they are asked to sign when they join."
|
|
831
831
|
] }),
|
|
832
832
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2", children: [
|
|
833
833
|
/* @__PURE__ */ jsxRuntime.jsx(
|