@arbidocs/blocks 0.4.144 → 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 +264 -264
- package/dist/agents/index.js +7 -7
- package/dist/{chunk-ON3TKY5Y.js → chunk-5YHEHEJT.js} +242 -4
- package/dist/chunk-5YHEHEJT.js.map +1 -0
- package/dist/{chunk-7NGAWGA3.js → chunk-A6IU4GIW.js} +190 -7
- package/dist/chunk-A6IU4GIW.js.map +1 -0
- package/dist/{chunk-BUWBXJ2N.cjs → chunk-C3CGJK7A.cjs} +192 -6
- package/dist/chunk-C3CGJK7A.cjs.map +1 -0
- package/dist/{chunk-X3TGXEFS.js → chunk-C44TDH54.js} +6 -6
- package/dist/{chunk-X3TGXEFS.js.map → chunk-C44TDH54.js.map} +1 -1
- package/dist/{chunk-YFY3TQ6Q.cjs → chunk-COCGRJLA.cjs} +7 -7
- package/dist/{chunk-YFY3TQ6Q.cjs.map → chunk-COCGRJLA.cjs.map} +1 -1
- package/dist/{chunk-45LRMW54.js → chunk-DN2KI4BU.js} +8 -10
- package/dist/chunk-DN2KI4BU.js.map +1 -0
- package/dist/{chunk-R26BK7YL.cjs → chunk-DTROMMDX.cjs} +4 -4
- package/dist/{chunk-R26BK7YL.cjs.map → chunk-DTROMMDX.cjs.map} +1 -1
- package/dist/{chunk-65THHQVB.cjs → chunk-ECW2R2KF.cjs} +27 -27
- package/dist/{chunk-65THHQVB.cjs.map → chunk-ECW2R2KF.cjs.map} +1 -1
- package/dist/{chunk-RI6DZA5X.js → chunk-EF4ZLKRM.js} +3 -3
- package/dist/{chunk-RI6DZA5X.js.map → chunk-EF4ZLKRM.js.map} +1 -1
- package/dist/chunk-EV7W64B6.js +134 -0
- package/dist/chunk-EV7W64B6.js.map +1 -0
- package/dist/{chunk-WS5EX7DN.cjs → chunk-EYKISBDO.cjs} +5 -5
- package/dist/{chunk-WS5EX7DN.cjs.map → chunk-EYKISBDO.cjs.map} +1 -1
- package/dist/{chunk-JZNXRMLH.cjs → chunk-GAYMJWTC.cjs} +8 -10
- package/dist/chunk-GAYMJWTC.cjs.map +1 -0
- package/dist/{chunk-I7WG3JRD.js → chunk-H4D7WKDY.js} +3 -3
- package/dist/{chunk-I7WG3JRD.js.map → chunk-H4D7WKDY.js.map} +1 -1
- package/dist/{chunk-2FJMTZNJ.js → chunk-IJST4EBM.js} +8 -8
- package/dist/{chunk-2FJMTZNJ.js.map → chunk-IJST4EBM.js.map} +1 -1
- package/dist/{chunk-3RJN2VTL.js → chunk-IXWJGOM2.js} +3 -3
- package/dist/{chunk-3RJN2VTL.js.map → chunk-IXWJGOM2.js.map} +1 -1
- package/dist/{chunk-CYNF5PZI.js → chunk-J5CWKFSC.js} +3 -3
- package/dist/{chunk-CYNF5PZI.js.map → chunk-J5CWKFSC.js.map} +1 -1
- package/dist/{chunk-TP6PLDNM.cjs → chunk-KMZWKSKO.cjs} +8 -8
- package/dist/{chunk-TP6PLDNM.cjs.map → chunk-KMZWKSKO.cjs.map} +1 -1
- package/dist/{chunk-C4WSHRR6.cjs → chunk-KPZZ5FHE.cjs} +32 -12
- package/dist/chunk-KPZZ5FHE.cjs.map +1 -0
- package/dist/{chunk-O2ODDTMA.cjs → chunk-LPYEUD2D.cjs} +9 -9
- package/dist/{chunk-O2ODDTMA.cjs.map → chunk-LPYEUD2D.cjs.map} +1 -1
- package/dist/{chunk-RA3ZJ45L.cjs → chunk-MFMASSEO.cjs} +25 -44
- package/dist/chunk-MFMASSEO.cjs.map +1 -0
- package/dist/chunk-NHZK64TQ.js +75 -0
- package/dist/chunk-NHZK64TQ.js.map +1 -0
- package/dist/{chunk-BPBSSMRB.js → chunk-NRFAWUVD.js} +3 -3
- package/dist/{chunk-BPBSSMRB.js.map → chunk-NRFAWUVD.js.map} +1 -1
- package/dist/chunk-NWNVWO6L.cjs +80 -0
- package/dist/chunk-NWNVWO6L.cjs.map +1 -0
- package/dist/{chunk-XGZX22ET.cjs → chunk-O2GW5IY6.cjs} +38 -38
- package/dist/{chunk-XGZX22ET.cjs.map → chunk-O2GW5IY6.cjs.map} +1 -1
- package/dist/{chunk-33ZOUJXA.js → chunk-OBWYM25Y.js} +13 -32
- package/dist/chunk-OBWYM25Y.js.map +1 -0
- package/dist/{chunk-Y3KA6X7B.js → chunk-OVR3XMYL.js} +4 -4
- package/dist/{chunk-Y3KA6X7B.js.map → chunk-OVR3XMYL.js.map} +1 -1
- package/dist/{chunk-ABUO6PIQ.cjs → chunk-RB7GX2VT.cjs} +12 -12
- package/dist/{chunk-ABUO6PIQ.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-LYUO3E6V.js → chunk-SZOFGU7W.js} +3 -3
- package/dist/{chunk-LYUO3E6V.js.map → chunk-SZOFGU7W.js.map} +1 -1
- package/dist/{chunk-A6J2IBUG.js → chunk-T5B7FM7S.js} +4 -4
- package/dist/{chunk-A6J2IBUG.js.map → chunk-T5B7FM7S.js.map} +1 -1
- package/dist/{chunk-YNIBUKV5.js → chunk-TBEVGWY3.js} +32 -14
- package/dist/chunk-TBEVGWY3.js.map +1 -0
- package/dist/{chunk-MJCCBMM5.cjs → chunk-TC3RQNEX.cjs} +6 -80
- package/dist/chunk-TC3RQNEX.cjs.map +1 -0
- package/dist/{chunk-QIMVTGKS.cjs → chunk-U73KPFYH.cjs} +255 -2
- package/dist/chunk-U73KPFYH.cjs.map +1 -0
- package/dist/{chunk-HFGXA5CL.cjs → chunk-UTTTJSQU.cjs} +4 -4
- package/dist/{chunk-HFGXA5CL.cjs.map → chunk-UTTTJSQU.cjs.map} +1 -1
- package/dist/{chunk-DLBUFHLY.js → chunk-VTTZZ4FN.js} +4 -74
- package/dist/chunk-VTTZZ4FN.js.map +1 -0
- package/dist/{chunk-5FTIHRZH.cjs → chunk-XVUOMWMD.cjs} +4 -4
- package/dist/{chunk-5FTIHRZH.cjs.map → chunk-XVUOMWMD.cjs.map} +1 -1
- package/dist/{chunk-444XKG46.js → chunk-YKQ2DPIP.js} +3 -3
- package/dist/{chunk-444XKG46.js.map → chunk-YKQ2DPIP.js.map} +1 -1
- package/dist/{chunk-HEMU73OP.cjs → chunk-YSHIC4NJ.cjs} +4 -4
- package/dist/{chunk-HEMU73OP.cjs.map → chunk-YSHIC4NJ.cjs.map} +1 -1
- package/dist/citations/index.cjs +12 -12
- package/dist/citations/index.js +3 -3
- package/dist/connect/docx.cjs +11 -11
- package/dist/connect/docx.js +8 -8
- package/dist/connect/index.cjs +1079 -333
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +2 -0
- package/dist/connect/index.js +953 -222
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedNotificationRelevance.d.ts +4 -1
- package/dist/connection/ConnectedSettings.d.ts +3 -2
- package/dist/connection/ai.d.ts +27 -72
- package/dist/connection/settings-page/ConnectedAccountSettings.d.ts +35 -0
- package/dist/connection/settings-page/ConnectedMailSettings.d.ts +13 -0
- package/dist/connection/settings-page/ConnectedPremiumModels.d.ts +1 -0
- package/dist/connection/settings-page/ConnectedPrivacySettings.d.ts +12 -0
- package/dist/connection/settings-page/ConnectedSettingsPage.d.ts +29 -0
- package/dist/connection/settings-page/SessionStatusIcon.d.ts +7 -0
- package/dist/connection/settings-page/index.d.ts +6 -0
- 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/connection/workspaceData.d.ts +6 -6
- package/dist/facts/index.cjs +3 -3
- package/dist/facts/index.js +2 -2
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +2 -2
- package/dist/home/index.cjs +20 -20
- package/dist/home/index.js +4 -4
- package/dist/index.cjs +468 -632
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +23 -204
- package/dist/index.js.map +1 -1
- package/dist/provider/BlocksProvider.d.ts +5 -1
- package/dist/provider/settings-section.d.ts +9 -0
- package/dist/retrieval/index.cjs +4 -4
- package/dist/retrieval/index.js +2 -2
- package/dist/settings/AppearanceSettings.d.ts +18 -0
- package/dist/settings/ServerConnectionControls.d.ts +16 -0
- package/dist/settings/SettingsPage.d.ts +31 -0
- package/dist/settings/index.cjs +178 -241
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.ts +3 -1
- package/dist/settings/index.js +86 -198
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/index.cjs +44 -44
- package/dist/shell/index.js +3 -3
- package/dist/site/index.cjs +74 -73
- package/dist/site/index.js +3 -2
- package/dist/studio/index.cjs +78 -77
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +10 -9
- package/dist/studio/index.js.map +1 -1
- package/dist/workflow-canvas/index.cjs +25 -25
- package/dist/workflow-canvas/index.js +8 -8
- package/dist/workspaces/CommonWorkspaceToggle.d.ts +15 -0
- package/dist/workspaces/index.cjs +41 -110
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.d.ts +1 -0
- package/dist/workspaces/index.js +7 -104
- 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-33ZOUJXA.js.map +0 -1
- package/dist/chunk-45LRMW54.js.map +0 -1
- package/dist/chunk-7NGAWGA3.js.map +0 -1
- package/dist/chunk-BUWBXJ2N.cjs.map +0 -1
- package/dist/chunk-C4WSHRR6.cjs.map +0 -1
- package/dist/chunk-DLBUFHLY.js.map +0 -1
- package/dist/chunk-JZNXRMLH.cjs.map +0 -1
- package/dist/chunk-MJCCBMM5.cjs.map +0 -1
- package/dist/chunk-ON3TKY5Y.js.map +0 -1
- package/dist/chunk-QIMVTGKS.cjs.map +0 -1
- package/dist/chunk-RA3ZJ45L.cjs.map +0 -1
- package/dist/chunk-YNIBUKV5.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;
|
|
@@ -70,11 +70,11 @@ export interface ConnectedNotificationPreferencesProps {
|
|
|
70
70
|
/** The email-notification switches (`NotificationCategoryList`) over the user settings. */
|
|
71
71
|
export declare function ConnectedNotificationPreferences({ categories, title, }: ConnectedNotificationPreferencesProps): import("react").JSX.Element;
|
|
72
72
|
export interface ConnectedSessionsRowProps {
|
|
73
|
-
/** Glyph per session status
|
|
73
|
+
/** Glyph per session status; default `SessionStatusIcon`. */
|
|
74
74
|
renderSessionIcon?: (status: string) => ReactNode;
|
|
75
75
|
}
|
|
76
76
|
/** "Active sessions" row with the manage dialog (`ActiveSessionsDialog`); end any but this device. */
|
|
77
|
-
export declare function ConnectedSessionsRow({ renderSessionIcon }: ConnectedSessionsRowProps): import("react").JSX.Element;
|
|
77
|
+
export declare function ConnectedSessionsRow({ renderSessionIcon, }: ConnectedSessionsRowProps): import("react").JSX.Element;
|
|
78
78
|
export interface ConnectedLogoutDialogProps {
|
|
79
79
|
open: boolean;
|
|
80
80
|
onClose: () => void;
|
|
@@ -85,6 +85,7 @@ export interface ConnectedLogoutDialogProps {
|
|
|
85
85
|
* signed in. Default: sign out at once.
|
|
86
86
|
*/
|
|
87
87
|
confirmSignOut?: () => Promise<boolean> | boolean;
|
|
88
|
+
/** Glyph per session status; default `SessionStatusIcon`. */
|
|
88
89
|
renderSessionIcon?: (status: string) => ReactNode;
|
|
89
90
|
}
|
|
90
91
|
/**
|
package/dist/connection/ai.d.ts
CHANGED
|
@@ -38,82 +38,37 @@ export declare function useWorkspaceDocs(): {
|
|
|
38
38
|
docs: {
|
|
39
39
|
external_id: string;
|
|
40
40
|
workspace_ext_id: string;
|
|
41
|
-
file_name?: string | null
|
|
42
|
-
status?: string | null
|
|
43
|
-
error_message?: string | null
|
|
44
|
-
failed_stage?: string | null
|
|
45
|
-
n_pages?: number | null
|
|
46
|
-
n_chunks?: number | null
|
|
47
|
-
tokens?: number | null
|
|
48
|
-
file_type?: string | null
|
|
49
|
-
file_size?: number | null
|
|
50
|
-
storage_type?: string | null
|
|
51
|
-
storage_uri?: string | null
|
|
52
|
-
content_hash?: string | null
|
|
53
|
-
shared?: boolean | null
|
|
54
|
-
re_ocred?: boolean | null
|
|
55
|
-
config_ext_id?: string | null
|
|
56
|
-
parent_ext_id?: string | null
|
|
41
|
+
file_name?: string | null;
|
|
42
|
+
status?: string | null;
|
|
43
|
+
error_message?: string | null;
|
|
44
|
+
failed_stage?: string | null;
|
|
45
|
+
n_pages?: number | null;
|
|
46
|
+
n_chunks?: number | null;
|
|
47
|
+
tokens?: number | null;
|
|
48
|
+
file_type?: string | null;
|
|
49
|
+
file_size?: number | null;
|
|
50
|
+
storage_type?: string | null;
|
|
51
|
+
storage_uri?: string | null;
|
|
52
|
+
content_hash?: string | null;
|
|
53
|
+
shared?: boolean | null;
|
|
54
|
+
re_ocred?: boolean | null;
|
|
55
|
+
config_ext_id?: string | null;
|
|
56
|
+
parent_ext_id?: string | null;
|
|
57
57
|
current_version: number;
|
|
58
|
-
versions:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
file_name?: string | null | undefined;
|
|
64
|
-
file_type?: string | null | undefined;
|
|
65
|
-
file_size?: number | null | undefined;
|
|
66
|
-
content_hash?: string | null | undefined;
|
|
67
|
-
status?: string | null | undefined;
|
|
68
|
-
n_pages?: number | null | undefined;
|
|
69
|
-
n_chunks?: number | null | undefined;
|
|
70
|
-
made_from?: number | null | undefined;
|
|
71
|
-
is_current: boolean;
|
|
72
|
-
markup_revision: number;
|
|
73
|
-
markup_count: number;
|
|
74
|
-
source_message_ext_id?: string | null | undefined;
|
|
75
|
-
conversation_ext_id?: string | null | undefined;
|
|
76
|
-
}[];
|
|
77
|
-
thread_id?: string | null | undefined;
|
|
78
|
-
derived_from: {
|
|
79
|
-
doc_ext_id: string;
|
|
80
|
-
role: import("@arbidocs/client").components["schemas"]["DocRelationRole"];
|
|
81
|
-
version?: number | null | undefined;
|
|
82
|
-
}[];
|
|
83
|
-
source_message_ext_id?: string | null | undefined;
|
|
84
|
-
conversation_ext_id?: string | null | undefined;
|
|
58
|
+
versions: import("@arbidocs/client").components["schemas"]["DocVersion"][];
|
|
59
|
+
thread_id?: string | null;
|
|
60
|
+
derived_from: import("@arbidocs/client").components["schemas"]["DerivedFrom"][];
|
|
61
|
+
source_message_ext_id?: string | null;
|
|
62
|
+
conversation_ext_id?: string | null;
|
|
85
63
|
created_by_ext_id: string;
|
|
86
|
-
updated_by_ext_id?: string | null
|
|
64
|
+
updated_by_ext_id?: string | null;
|
|
87
65
|
created_at: string;
|
|
88
66
|
updated_at: string;
|
|
89
|
-
wp_type?: string | null
|
|
90
|
-
folder?: string | null
|
|
91
|
-
sender?: string | null
|
|
92
|
-
doctags:
|
|
93
|
-
|
|
94
|
-
citations?: {
|
|
95
|
-
doc_ext_id: string;
|
|
96
|
-
version?: number | null | undefined;
|
|
97
|
-
chunks?: {
|
|
98
|
-
chunk_id: string;
|
|
99
|
-
page?: number | null | undefined;
|
|
100
|
-
}[] | undefined;
|
|
101
|
-
}[] | null | undefined;
|
|
102
|
-
external_id: string;
|
|
103
|
-
doc_ext_id: string;
|
|
104
|
-
tag_ext_id: string;
|
|
105
|
-
created_by_ext_id: string;
|
|
106
|
-
updated_by_ext_id?: string | null | undefined;
|
|
107
|
-
created_at: string;
|
|
108
|
-
updated_at: string;
|
|
109
|
-
}[];
|
|
110
|
-
doc_metadata?: {
|
|
111
|
-
doc_nature?: string | null | undefined;
|
|
112
|
-
doc_author?: string | null | undefined;
|
|
113
|
-
doc_subject?: string | null | undefined;
|
|
114
|
-
doc_date?: string | null | undefined;
|
|
115
|
-
title?: string | null | undefined;
|
|
116
|
-
} | null | undefined;
|
|
67
|
+
wp_type?: string | null;
|
|
68
|
+
folder?: string | null;
|
|
69
|
+
sender?: string | null;
|
|
70
|
+
doctags: import("@arbidocs/client").components["schemas"]["DocTagResponse"][];
|
|
71
|
+
doc_metadata?: import("@arbidocs/client").components["schemas"]["DocMetadata"] | null;
|
|
117
72
|
}[];
|
|
118
73
|
docIds: string[];
|
|
119
74
|
isLoading: boolean;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Account section of a settings page, bound to the signed-in account: profile and ID check,
|
|
3
|
+
* security, the session card (server connection, active sessions, sign out) and the danger zone.
|
|
4
|
+
* What only the host knows is a prop: the recovery-key download, its admin links, its socket and
|
|
5
|
+
* its billing page.
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
|
+
import type { IdentityStatus } from '@arbidocs/react/ui';
|
|
9
|
+
import { type ServerConnectionStatus } from '../../settings/ServerConnectionControls';
|
|
10
|
+
export interface ConnectedServerConnection extends ServerConnectionStatus {
|
|
11
|
+
/** Refresh the session (re-authenticate, reconnect); the button spins until it settles. */
|
|
12
|
+
onRefresh: () => Promise<unknown>;
|
|
13
|
+
}
|
|
14
|
+
export interface ConnectedAccountSettingsProps {
|
|
15
|
+
/** Classes of the initials avatar shown without a picture (e.g. the host's per-user colour). */
|
|
16
|
+
avatarClassName?: string;
|
|
17
|
+
/** Open the host's billing when the ID-check fee cannot be charged. */
|
|
18
|
+
onManageBilling?: () => void;
|
|
19
|
+
/** The ID-check price format. */
|
|
20
|
+
formatIdentityPrice?: (status: IdentityStatus) => string;
|
|
21
|
+
/** Sections between Profile and Security (e.g. a link to the host's admin portal). */
|
|
22
|
+
afterProfile?: ReactNode;
|
|
23
|
+
/** The host's password policy. */
|
|
24
|
+
getUnmetPasswordRequirement?: (password: string) => string | null;
|
|
25
|
+
/** More Security rows under "Change password" (e.g. "Save recovery key"). */
|
|
26
|
+
securityRows?: ReactNode;
|
|
27
|
+
/** The server-connection row; none when the host has no live connection to show. */
|
|
28
|
+
connection?: ConnectedServerConnection;
|
|
29
|
+
/** Sign out through the host's own dialog. Default: the built-in `ConnectedLogoutDialog`. */
|
|
30
|
+
onLogout?: () => void;
|
|
31
|
+
renderSessionIcon?: (status: string) => ReactNode;
|
|
32
|
+
/** Link to the billing page for a deletion blocked by an active subscription. */
|
|
33
|
+
renderSubscriptionLink?: () => ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare function ConnectedAccountSettings({ avatarClassName, onManageBilling, formatIdentityPrice, afterProfile, getUnmetPasswordRequirement, securityRows, connection, onLogout, renderSessionIcon, renderSubscriptionLink, }: ConnectedAccountSettingsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Mail section of a settings page: the native address and the connected mailboxes
|
|
3
|
+
* (`ConnectedMailAccounts`, in place). Answered from the device when offline, like the mailbox,
|
|
4
|
+
* so the section never hangs on "Loading mail accounts…" without a connection.
|
|
5
|
+
*/
|
|
6
|
+
import type { ReactNode } from 'react';
|
|
7
|
+
export interface ConnectedMailSettingsProps {
|
|
8
|
+
/** Where a provider's OAuth returns after connecting a mailbox. Default: the current page. */
|
|
9
|
+
oauthReturnPath?: string;
|
|
10
|
+
/** More settings under the accounts (e.g. keeping mail on this device). */
|
|
11
|
+
settings?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare function ConnectedMailSettings({ oauthReturnPath, settings }: ConnectedMailSettingsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ConnectedPremiumModels(): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Privacy section of a settings page, over the user settings: whether others see you online,
|
|
3
|
+
* the host's own privacy rows, "Reset tips", and the email notifications.
|
|
4
|
+
*/
|
|
5
|
+
import type { ReactNode } from 'react';
|
|
6
|
+
export interface ConnectedPrivacySettingsProps {
|
|
7
|
+
/** More rows after "Show Online Status" (e.g. the host's remote-control switch). */
|
|
8
|
+
rows?: ReactNode;
|
|
9
|
+
/** Offer "Reset tips" (the host shows tips the user can hide with "don't show again"). */
|
|
10
|
+
showTipsReset?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function ConnectedPrivacySettings({ rows, showTipsReset, }: ConnectedPrivacySettingsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type SettingsPageProps, type SettingsPageSection } from '../../settings/SettingsPage';
|
|
2
|
+
import { type ConnectedAccountSettingsProps } from './ConnectedAccountSettings';
|
|
3
|
+
import { type ConnectedMailSettingsProps } from './ConnectedMailSettings';
|
|
4
|
+
import { type ConnectedPrivacySettingsProps } from './ConnectedPrivacySettings';
|
|
5
|
+
/** The section ids of the connected sections. */
|
|
6
|
+
export declare const SETTINGS_SECTION_IDS: {
|
|
7
|
+
readonly account: "account";
|
|
8
|
+
readonly mail: "mail";
|
|
9
|
+
readonly privacy: "privacy";
|
|
10
|
+
readonly chat: "chat";
|
|
11
|
+
};
|
|
12
|
+
/** Account: profile, ID check, security, sessions, sign out, delete. */
|
|
13
|
+
export declare function accountSettingsSection(props?: ConnectedAccountSettingsProps): SettingsPageSection;
|
|
14
|
+
/** Mail: the native address and the connected mailboxes. */
|
|
15
|
+
export declare function mailSettingsSection(props?: ConnectedMailSettingsProps): SettingsPageSection;
|
|
16
|
+
/** Privacy: online status, tips and the email notifications. */
|
|
17
|
+
export declare function privacySettingsSection(props?: ConnectedPrivacySettingsProps): SettingsPageSection;
|
|
18
|
+
/** Chat: the premium models. */
|
|
19
|
+
export declare function chatSettingsSection(): SettingsPageSection;
|
|
20
|
+
/** The sections of a host that adds none of its own. */
|
|
21
|
+
export declare const DEFAULT_SETTINGS_SECTIONS: readonly SettingsPageSection[];
|
|
22
|
+
export interface ConnectedSettingsPageProps extends Omit<SettingsPageProps, 'sections' | 'activeSectionId' | 'onSectionChange'> {
|
|
23
|
+
/** The sections in tab order; default {@link DEFAULT_SETTINGS_SECTIONS}. */
|
|
24
|
+
sections?: readonly SettingsPageSection[];
|
|
25
|
+
/** The open section (controlled). Default: the last `openSettings` request, else the first. */
|
|
26
|
+
section?: string;
|
|
27
|
+
onSectionChange?: (id: string) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare function ConnectedSettingsPage({ sections, section, onSectionChange, ...page }: ConnectedSettingsPageProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The glyph of a signed-in session: an agent's bot head, else a device. */
|
|
2
|
+
export declare function SessionStatusIcon({ status, className }: {
|
|
3
|
+
status: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
/** `renderSessionIcon` default of the session lists. */
|
|
7
|
+
export declare const renderSessionStatusIcon: (status: string) => import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ConnectedSettingsPage, DEFAULT_SETTINGS_SECTIONS, SETTINGS_SECTION_IDS, accountSettingsSection, chatSettingsSection, mailSettingsSection, privacySettingsSection, type ConnectedSettingsPageProps, } from './ConnectedSettingsPage';
|
|
2
|
+
export { ConnectedAccountSettings, type ConnectedAccountSettingsProps, type ConnectedServerConnection, } from './ConnectedAccountSettings';
|
|
3
|
+
export { ConnectedMailSettings, type ConnectedMailSettingsProps } from './ConnectedMailSettings';
|
|
4
|
+
export { ConnectedPrivacySettings, type ConnectedPrivacySettingsProps, } from './ConnectedPrivacySettings';
|
|
5
|
+
export { ConnectedPremiumModels } from './ConnectedPremiumModels';
|
|
6
|
+
export { SessionStatusIcon, renderSessionStatusIcon } from './SessionStatusIcon';
|
|
@@ -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
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The open workspace's documents, tags and conversations for the connected kits.
|
|
3
|
-
* through the `@arbidocs/react` hooks
|
|
4
|
-
*
|
|
2
|
+
* The open workspace's documents, tags and conversations for the connected kits. Each kit reads them
|
|
3
|
+
* through the `@arbidocs/react` hooks; the documents always come from `useDocuments` (read once,
|
|
4
|
+
* progressively, then patched in place by every write and event, so a kit never re-reads it). A
|
|
5
|
+
* host that already keeps tags or conversations live in its own cache passes them once through
|
|
5
6
|
* `ConnectedWorkspaceDataProvider`, so the kits show the same list and nothing is fetched twice.
|
|
6
7
|
*/
|
|
7
8
|
import { type ReactNode } from 'react';
|
|
@@ -19,11 +20,10 @@ export interface ConnectedList<T> {
|
|
|
19
20
|
refetch?: () => unknown;
|
|
20
21
|
}
|
|
21
22
|
export interface ConnectedWorkspaceData {
|
|
22
|
-
documents?: ConnectedList<ConnectedDocument>;
|
|
23
23
|
tags?: ConnectedList<ConnectedTag>;
|
|
24
24
|
conversations?: ConnectedList<ConnectedConversation>;
|
|
25
25
|
}
|
|
26
|
-
export declare function ConnectedWorkspaceDataProvider({
|
|
26
|
+
export declare function ConnectedWorkspaceDataProvider({ tags, conversations, children, }: ConnectedWorkspaceData & {
|
|
27
27
|
children: ReactNode;
|
|
28
28
|
}): import("react").JSX.Element;
|
|
29
29
|
export interface ConnectedListResult<T> {
|
|
@@ -32,7 +32,7 @@ export interface ConnectedListResult<T> {
|
|
|
32
32
|
/** Read the list again after a change made here; absent when the host keeps it current. */
|
|
33
33
|
refetch?: () => unknown;
|
|
34
34
|
}
|
|
35
|
-
/** The open workspace's documents
|
|
35
|
+
/** The open workspace's documents (`useDocuments`: the one list every host and kit shares). */
|
|
36
36
|
export declare function useConnectedDocuments(): ConnectedListResult<ConnectedDocument>;
|
|
37
37
|
/** The open workspace's tags: the host's list when it gives one, else read here. */
|
|
38
38
|
export declare function useConnectedTags(): ConnectedListResult<ConnectedTag>;
|
package/dist/facts/index.cjs
CHANGED
|
@@ -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
|
|
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');
|
|
9
9
|
var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
|
|
@@ -14,7 +14,7 @@ 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-
|
|
17
|
+
require('../chunk-KPZZ5FHE.cjs');
|
|
18
18
|
require('../chunk-ULWRNGGE.cjs');
|
|
19
19
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
20
20
|
require('../chunk-DES3K4SD.cjs');
|
|
@@ -2037,7 +2037,7 @@ function FactSearchResult({
|
|
|
2037
2037
|
}
|
|
2038
2038
|
),
|
|
2039
2039
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2040
|
-
|
|
2040
|
+
chunkUTTTJSQU_cjs.SearchHit,
|
|
2041
2041
|
{
|
|
2042
2042
|
className: "min-w-0 flex-1",
|
|
2043
2043
|
testId: chunkMHVNT4J3_cjs.testIdOr(testIds?.hit?.(id), { testId: `facts-smart-search-hit-${id}` }),
|
package/dist/facts/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
export { DEFAULT_FACT_PASSAGES_LABELS, FactPassageItem, FactSourcesPanel, renderPreviewInline, toPreviewLine } from '../chunk-HFZ45FD3.js';
|
|
3
3
|
import { ViewToggle } from '../chunk-JJA6GQKH.js';
|
|
4
|
-
import { SearchHit } from '../chunk-
|
|
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';
|
|
7
7
|
export { decodeWhitespaceEntities } from '../chunk-AF6RDAJF.js';
|
|
@@ -14,7 +14,7 @@ import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
|
14
14
|
import '../chunk-SLSBJRWW.js';
|
|
15
15
|
import { observeResize } from '../chunk-NPLYHR2E.js';
|
|
16
16
|
import { testIdOr } from '../chunk-7F6CBP3Z.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-TBEVGWY3.js';
|
|
18
18
|
import '../chunk-TX2ZICS7.js';
|
|
19
19
|
import { initials } from '../chunk-OXF2IFXG.js';
|
|
20
20
|
import '../chunk-VUNV25KB.js';
|
package/dist/files/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@ 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
|
|
12
|
+
var chunkDTROMMDX_cjs = require('../chunk-DTROMMDX.cjs');
|
|
13
13
|
var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
|
|
14
14
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
15
15
|
var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
|
|
@@ -17,7 +17,7 @@ var chunk32HW2Q33_cjs = require('../chunk-32HW2Q33.cjs');
|
|
|
17
17
|
require('../chunk-FX3K6LNZ.cjs');
|
|
18
18
|
require('../chunk-PPCATBOY.cjs');
|
|
19
19
|
var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
|
|
20
|
-
require('../chunk-
|
|
20
|
+
require('../chunk-KPZZ5FHE.cjs');
|
|
21
21
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
22
22
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
23
23
|
require('../chunk-DES3K4SD.cjs');
|
|
@@ -209,7 +209,7 @@ function TileLink({
|
|
|
209
209
|
onSelect
|
|
210
210
|
}) {
|
|
211
211
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
212
|
-
|
|
212
|
+
chunkDTROMMDX_cjs.ActionLink,
|
|
213
213
|
{
|
|
214
214
|
href,
|
|
215
215
|
onSelect,
|
package/dist/files/index.js
CHANGED
|
@@ -8,7 +8,7 @@ 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-
|
|
11
|
+
import { ActionLink } from '../chunk-YKQ2DPIP.js';
|
|
12
12
|
import { SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
|
|
13
13
|
export { DEFAULT_SELECTION_BAR_LABELS, SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
|
|
14
14
|
import { FilterInput } from '../chunk-YU2KUMGE.js';
|
|
@@ -18,7 +18,7 @@ import { TONE_SURFACE } from '../chunk-AUS3KBHJ.js';
|
|
|
18
18
|
import '../chunk-SLSBJRWW.js';
|
|
19
19
|
import '../chunk-NPLYHR2E.js';
|
|
20
20
|
import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-TBEVGWY3.js';
|
|
22
22
|
import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
|
|
23
23
|
import { formatCount } from '../chunk-OXF2IFXG.js';
|
|
24
24
|
import '../chunk-VUNV25KB.js';
|