@arbidocs/blocks 0.4.145 → 0.4.146
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/agents/index.cjs +267 -267
- package/dist/agents/index.js +10 -10
- package/dist/chat/index.cjs +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/{chunk-J4M37SXY.js → chunk-A6IU4GIW.js} +190 -7
- package/dist/chunk-A6IU4GIW.js.map +1 -0
- package/dist/{chunk-34GDGE77.cjs → chunk-C3CGJK7A.cjs} +192 -6
- package/dist/chunk-C3CGJK7A.cjs.map +1 -0
- package/dist/{chunk-KTSF4HFC.js → chunk-C44TDH54.js} +6 -6
- package/dist/{chunk-KTSF4HFC.js.map → chunk-C44TDH54.js.map} +1 -1
- package/dist/chunk-EV7W64B6.js +134 -0
- package/dist/chunk-EV7W64B6.js.map +1 -0
- package/dist/{chunk-QOL3M4FJ.js → chunk-IJST4EBM.js} +9 -9
- package/dist/{chunk-QOL3M4FJ.js.map → chunk-IJST4EBM.js.map} +1 -1
- package/dist/{chunk-NSNHRZBH.cjs → chunk-LPYEUD2D.cjs} +4 -4
- package/dist/{chunk-NSNHRZBH.cjs.map → chunk-LPYEUD2D.cjs.map} +1 -1
- package/dist/{chunk-ULPFRK3J.cjs → chunk-MFMASSEO.cjs} +8 -8
- package/dist/{chunk-ULPFRK3J.cjs.map → chunk-MFMASSEO.cjs.map} +1 -1
- package/dist/{chunk-KPO67GBR.cjs → chunk-O2GW5IY6.cjs} +33 -33
- package/dist/{chunk-KPO67GBR.cjs.map → chunk-O2GW5IY6.cjs.map} +1 -1
- package/dist/{chunk-NGDXDHLG.js → chunk-OBWYM25Y.js} +3 -3
- package/dist/{chunk-NGDXDHLG.js.map → chunk-OBWYM25Y.js.map} +1 -1
- package/dist/{chunk-WO7QAVTL.cjs → chunk-RB7GX2VT.cjs} +9 -9
- package/dist/{chunk-WO7QAVTL.cjs.map → chunk-RB7GX2VT.cjs.map} +1 -1
- package/dist/chunk-RXK3XP62.cjs +144 -0
- package/dist/chunk-RXK3XP62.cjs.map +1 -0
- package/dist/{chunk-VVZ34A2P.js → chunk-T5B7FM7S.js} +4 -4
- package/dist/{chunk-VVZ34A2P.js.map → chunk-T5B7FM7S.js.map} +1 -1
- package/dist/collaboration/index.cjs +9 -9
- package/dist/collaboration/index.js +1 -1
- package/dist/connect/docx.cjs +10 -10
- package/dist/connect/docx.js +7 -7
- package/dist/connect/index.cjs +433 -74
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -0
- package/dist/connect/index.js +379 -22
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedNotificationRelevance.d.ts +4 -1
- package/dist/connection/workspace-settings/ConnectedWorkspaceSettings.d.ts +53 -0
- package/dist/connection/workspace-settings/index.d.ts +2 -0
- package/dist/connection/workspace-settings/useConnectedWorkspaceSettings.d.ts +85 -0
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +1 -1
- package/dist/files/index.js +1 -1
- package/dist/index.cjs +357 -530
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -203
- package/dist/index.js.map +1 -1
- package/dist/settings/index.cjs +10 -10
- package/dist/settings/index.js +2 -2
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +2 -2
- package/dist/studio/index.js +2 -2
- package/dist/workflow-canvas/index.cjs +23 -23
- package/dist/workflow-canvas/index.js +10 -10
- package/dist/workspaces/CommonWorkspaceToggle.d.ts +15 -0
- package/dist/workspaces/index.cjs +38 -107
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.d.ts +1 -0
- package/dist/workspaces/index.js +5 -102
- package/dist/workspaces/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/dist/chunk-34GDGE77.cjs.map +0 -1
- package/dist/chunk-J4M37SXY.js.map +0 -1
|
@@ -3,7 +3,10 @@ export interface ConnectedWorkspaceNotificationMenuProps extends Pick<WorkspaceN
|
|
|
3
3
|
/** The workspace; default the selected one. */
|
|
4
4
|
workspaceId?: string;
|
|
5
5
|
}
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* The bell menu that follows, mutes or resets a workspace, saved to the user settings. Runs under
|
|
8
|
+
* any host (`useConnectedWorkspace`); a failed save is notified.
|
|
9
|
+
*/
|
|
7
10
|
export declare function ConnectedWorkspaceNotificationMenu({ workspaceId: workspaceProp, ...menuProps }: ConnectedWorkspaceNotificationMenuProps): import("react").JSX.Element | null;
|
|
8
11
|
export interface ConnectedThreadFollowProps {
|
|
9
12
|
conversationId: string | null | undefined;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A workspace's own page, bound to the SDK: the identity bar (name and description edited in
|
|
3
|
+
* place, the workspace's project, visibility, the members and Share), the member list under it, the
|
|
4
|
+
* host's dashboard, "Export, copy or move…" and, for a member who does not own it, Leave.
|
|
5
|
+
*
|
|
6
|
+
* The host supplies what only it has: the project picker, the member table, the share dialog, the
|
|
7
|
+
* dashboard, and where Export and the activity feed open.
|
|
8
|
+
*/
|
|
9
|
+
import { type ReactNode } from 'react';
|
|
10
|
+
import { type WorkspaceRole } from '@arbidocs/react';
|
|
11
|
+
import type { components } from '@arbidocs/client';
|
|
12
|
+
import { type ShareOutcome } from './useConnectedWorkspaceSettings';
|
|
13
|
+
type Workspace = components['schemas']['WorkspaceResponse'];
|
|
14
|
+
type WorkspaceMember = Workspace['users'][number];
|
|
15
|
+
export interface WorkspaceMembersSlot {
|
|
16
|
+
workspace: Workspace;
|
|
17
|
+
members: WorkspaceMember[];
|
|
18
|
+
onRemove: (userExtId: string, email: string, name: string) => Promise<void>;
|
|
19
|
+
isRemoving: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface WorkspaceShareSlot {
|
|
22
|
+
open: boolean;
|
|
23
|
+
onOpenChange: (open: boolean) => void;
|
|
24
|
+
workspace: Workspace;
|
|
25
|
+
members: WorkspaceMember[];
|
|
26
|
+
onShare: (emails: string[], role?: WorkspaceRole) => Promise<ShareOutcome>;
|
|
27
|
+
isSharing: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ConnectedWorkspaceSettingsProps {
|
|
30
|
+
workspaceId: string;
|
|
31
|
+
/** The workspace's project, right of the name: a picker for an owner, else a pill. */
|
|
32
|
+
project?: (ctx: {
|
|
33
|
+
workspace: Workspace;
|
|
34
|
+
isOwner: boolean;
|
|
35
|
+
}) => ReactNode;
|
|
36
|
+
/** The project line under the workspace mark. */
|
|
37
|
+
projectLine?: (workspace: Workspace) => ReactNode;
|
|
38
|
+
/** The full member table, shown when the member avatars are opened. */
|
|
39
|
+
membersTable?: (ctx: WorkspaceMembersSlot) => ReactNode;
|
|
40
|
+
/** The dialog behind Share (owners only). */
|
|
41
|
+
shareDialog?: (ctx: WorkspaceShareSlot) => ReactNode;
|
|
42
|
+
/** The workspace's dashboard, between the identity and the page foot. */
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
/** Open the host's export/copy/move dialog (members only). */
|
|
45
|
+
onExport?: () => void;
|
|
46
|
+
/** Open the workspace's activity feed (from the bell menu). */
|
|
47
|
+
onOpenActivity?: () => void;
|
|
48
|
+
/** After the viewer left the workspace. */
|
|
49
|
+
onLeft?: () => void;
|
|
50
|
+
testId?: string;
|
|
51
|
+
}
|
|
52
|
+
export declare function ConnectedWorkspaceSettings({ workspaceId, project, projectLine, membersTable, shareDialog, children, onExport, onOpenActivity, onLeft, testId, }: ConnectedWorkspaceSettingsProps): import("react").JSX.Element;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ConnectedWorkspaceSettings, type ConnectedWorkspaceSettingsProps, type WorkspaceMembersSlot, type WorkspaceShareSlot, } from './ConnectedWorkspaceSettings';
|
|
2
|
+
export { useConnectedWorkspaceSettings, type ShareOutcome, type UseConnectedWorkspaceSettingsOptions, } from './useConnectedWorkspaceSettings';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { type WorkspaceRole } from '@arbidocs/react';
|
|
2
|
+
/** How a share ended. */
|
|
3
|
+
export type ShareOutcome = 'added' | 'partial' | 'invited' | 'already_member' | 'cancelled' | 'error';
|
|
4
|
+
export interface UseConnectedWorkspaceSettingsOptions {
|
|
5
|
+
/** After the viewer left the workspace (e.g. go back to the list). */
|
|
6
|
+
onLeft?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useConnectedWorkspaceSettings(workspaceId: string, { onLeft }?: UseConnectedWorkspaceSettingsOptions): {
|
|
9
|
+
workspace: {
|
|
10
|
+
external_id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description: string | null;
|
|
13
|
+
is_public: boolean;
|
|
14
|
+
workspace_type: import("@arbidocs/client").components["schemas"]["WorkspaceType"];
|
|
15
|
+
created_by_ext_id: string;
|
|
16
|
+
updated_by_ext_id?: string | null | undefined;
|
|
17
|
+
created_at: string;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
wrapped_key?: string | null | undefined;
|
|
20
|
+
is_member: boolean;
|
|
21
|
+
shared_conversation_count: number;
|
|
22
|
+
private_conversation_count: number;
|
|
23
|
+
shared_document_count: number;
|
|
24
|
+
private_document_count: number;
|
|
25
|
+
user_files_mb: number;
|
|
26
|
+
users: {
|
|
27
|
+
user: {
|
|
28
|
+
external_id: string;
|
|
29
|
+
parent_ext_id?: string | null | undefined;
|
|
30
|
+
email: string;
|
|
31
|
+
given_name: string;
|
|
32
|
+
family_name?: string | null | undefined;
|
|
33
|
+
picture?: string | null | undefined;
|
|
34
|
+
encryption_public_key: string;
|
|
35
|
+
is_sso: boolean;
|
|
36
|
+
is_identity_verified: boolean;
|
|
37
|
+
};
|
|
38
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
39
|
+
joined_at: string;
|
|
40
|
+
conversation_count: number;
|
|
41
|
+
document_count: number;
|
|
42
|
+
files_mb: number;
|
|
43
|
+
agent_ext_id?: string | null | undefined;
|
|
44
|
+
is_temporary: boolean;
|
|
45
|
+
}[];
|
|
46
|
+
project_ext_id?: string | null | undefined;
|
|
47
|
+
project_name?: string | null | undefined;
|
|
48
|
+
project_subscription?: string | null | undefined;
|
|
49
|
+
project_owner_ext_id?: string | null | undefined;
|
|
50
|
+
house_template_ext_id?: string | null | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
members: {
|
|
53
|
+
user: {
|
|
54
|
+
external_id: string;
|
|
55
|
+
parent_ext_id?: string | null | undefined;
|
|
56
|
+
email: string;
|
|
57
|
+
given_name: string;
|
|
58
|
+
family_name?: string | null | undefined;
|
|
59
|
+
picture?: string | null | undefined;
|
|
60
|
+
encryption_public_key: string;
|
|
61
|
+
is_sso: boolean;
|
|
62
|
+
is_identity_verified: boolean;
|
|
63
|
+
};
|
|
64
|
+
role: import("@arbidocs/client").components["schemas"]["WorkspaceRole"];
|
|
65
|
+
joined_at: string;
|
|
66
|
+
conversation_count: number;
|
|
67
|
+
document_count: number;
|
|
68
|
+
files_mb: number;
|
|
69
|
+
agent_ext_id?: string | null | undefined;
|
|
70
|
+
is_temporary: boolean;
|
|
71
|
+
}[];
|
|
72
|
+
role: "owner" | "collaborator" | "guest" | null;
|
|
73
|
+
isOwner: boolean;
|
|
74
|
+
isMember: boolean;
|
|
75
|
+
updateIdentity: (data: {
|
|
76
|
+
name: string;
|
|
77
|
+
description: string;
|
|
78
|
+
}) => Promise<void>;
|
|
79
|
+
setPublic: (isPublic: boolean) => Promise<void>;
|
|
80
|
+
share: (emails: string[], memberRole?: WorkspaceRole) => Promise<ShareOutcome>;
|
|
81
|
+
removeMember: (userExtId: string, email: string, name: string) => Promise<void>;
|
|
82
|
+
leave: () => Promise<void>;
|
|
83
|
+
isSharing: boolean;
|
|
84
|
+
isRemoving: boolean;
|
|
85
|
+
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunk6MG62I5B_cjs = require('../chunk-6MG62I5B.cjs');
|
|
5
|
-
var chunkUWIILWDI_cjs = require('../chunk-UWIILWDI.cjs');
|
|
6
5
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
6
|
+
var chunkUWIILWDI_cjs = require('../chunk-UWIILWDI.cjs');
|
|
7
7
|
require('../chunk-ULWRNGGE.cjs');
|
|
8
8
|
require('../chunk-DES3K4SD.cjs');
|
|
9
9
|
var lucideReact = require('lucide-react');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
export { AdoptSignatureDialog, TYPED_SIGNATURE_STYLE } from '../chunk-EQB3WELX.js';
|
|
3
|
-
import { ViewerStatusNote } from '../chunk-6HKLTYNN.js';
|
|
4
3
|
export { SignDocumentDialog } from '../chunk-2YOVK524.js';
|
|
4
|
+
import { ViewerStatusNote } from '../chunk-6HKLTYNN.js';
|
|
5
5
|
import '../chunk-TX2ZICS7.js';
|
|
6
6
|
import '../chunk-VUNV25KB.js';
|
|
7
7
|
import { PencilLine, FileText, PenLine, Users, Send, FilePenLine, Download } from 'lucide-react';
|
package/dist/facts/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
|
|
5
4
|
var chunk5FYU7ZIU_cjs = require('../chunk-5FYU7ZIU.cjs');
|
|
5
|
+
var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
|
|
6
6
|
var chunkUTTTJSQU_cjs = require('../chunk-UTTTJSQU.cjs');
|
|
7
7
|
var chunkVPPX5XUF_cjs = require('../chunk-VPPX5XUF.cjs');
|
|
8
8
|
var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
|
package/dist/facts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ViewToggle } from '../chunk-JJA6GQKH.js';
|
|
3
2
|
export { DEFAULT_FACT_PASSAGES_LABELS, FactPassageItem, FactSourcesPanel, renderPreviewInline, toPreviewLine } from '../chunk-HFZ45FD3.js';
|
|
3
|
+
import { ViewToggle } from '../chunk-JJA6GQKH.js';
|
|
4
4
|
import { SearchHit } from '../chunk-EF4ZLKRM.js';
|
|
5
5
|
import { formatSpan, TimelineCalendar, TimelineGantt } from '../chunk-4EZVCGRL.js';
|
|
6
6
|
import { decodeWhitespaceEntities } from '../chunk-AF6RDAJF.js';
|
package/dist/files/index.cjs
CHANGED
|
@@ -9,10 +9,10 @@ var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
|
|
|
9
9
|
var chunk3AFWGEDJ_cjs = require('../chunk-3AFWGEDJ.cjs');
|
|
10
10
|
var chunkDVUZTGVL_cjs = require('../chunk-DVUZTGVL.cjs');
|
|
11
11
|
var chunkDETZZBG2_cjs = require('../chunk-DETZZBG2.cjs');
|
|
12
|
+
var chunkDTROMMDX_cjs = require('../chunk-DTROMMDX.cjs');
|
|
12
13
|
var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
|
|
13
14
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
14
15
|
var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
|
|
15
|
-
var chunkDTROMMDX_cjs = require('../chunk-DTROMMDX.cjs');
|
|
16
16
|
var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
|
|
17
17
|
require('../chunk-FX3K6LNZ.cjs');
|
|
18
18
|
require('../chunk-PPCATBOY.cjs');
|
package/dist/files/index.js
CHANGED
|
@@ -8,12 +8,12 @@ import { CellHoverIcon } from '../chunk-RFXJYIDV.js';
|
|
|
8
8
|
export { CellHoverIcon, HoverIconCell } from '../chunk-RFXJYIDV.js';
|
|
9
9
|
import { ToneBadge } from '../chunk-5LXQPP2K.js';
|
|
10
10
|
export { UploadDropzone } from '../chunk-EVUEIBNU.js';
|
|
11
|
+
import { ActionLink } from '../chunk-YKQ2DPIP.js';
|
|
11
12
|
import { SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
|
|
12
13
|
export { DEFAULT_SELECTION_BAR_LABELS, SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
|
|
13
14
|
import { FilterInput } from '../chunk-YU2KUMGE.js';
|
|
14
15
|
import { GridView } from '../chunk-N5YEF3LC.js';
|
|
15
16
|
export { GridView } from '../chunk-N5YEF3LC.js';
|
|
16
|
-
import { ActionLink } from '../chunk-YKQ2DPIP.js';
|
|
17
17
|
import { TONE_SURFACE } from '../chunk-AUS3KBHJ.js';
|
|
18
18
|
import '../chunk-SLSBJRWW.js';
|
|
19
19
|
import '../chunk-NPLYHR2E.js';
|