@arbidocs/blocks 0.4.70 → 0.4.72
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/README.md +90 -14
- package/bin/arbidocs-copy-pdf-assets.mjs +112 -0
- package/dist/{StreamedArtifactEditor-OPL4KXOT.js → StreamedArtifactEditor-HTNPG4NB.js} +3 -2
- package/dist/StreamedArtifactEditor-HTNPG4NB.js.map +1 -0
- package/dist/{StreamedArtifactEditor-RIKG6CJQ.cjs → StreamedArtifactEditor-IZWYNFMM.cjs} +3 -2
- package/dist/StreamedArtifactEditor-IZWYNFMM.cjs.map +1 -0
- package/dist/agents/index.cjs +224 -224
- package/dist/agents/index.js +8 -8
- package/dist/artifacts/editor/index.cjs +1 -0
- package/dist/artifacts/editor/index.js +1 -0
- package/dist/artifacts/index.cjs +1 -0
- package/dist/artifacts/index.js +1 -0
- package/dist/auth/index.cjs +1 -0
- package/dist/auth/index.js +1 -0
- package/dist/calendar/CalendarGrid.d.ts +2 -0
- package/dist/calendar/CalendarList.d.ts +2 -0
- package/dist/calendar/CalendarSettingsForm.d.ts +2 -0
- package/dist/calendar/EventDetails.d.ts +2 -0
- package/dist/calendar/EventEditor.d.ts +2 -0
- package/dist/calendar/MiniMonth.d.ts +2 -0
- package/dist/calendar/RecurrenceEditor.d.ts +13 -0
- package/dist/calendar/RoomFinder.d.ts +2 -0
- package/dist/calendar/SchedulingAssistant.d.ts +2 -0
- package/dist/calendar/ScopeDialog.d.ts +2 -0
- package/dist/calendar/TimeZonePicker.d.ts +2 -0
- package/dist/calendar/colors.d.ts +4 -0
- package/dist/calendar/draft.d.ts +43 -0
- package/dist/calendar/format.d.ts +14 -0
- package/dist/calendar/grid-model.d.ts +24 -0
- package/dist/calendar/index.cjs +4122 -0
- package/dist/calendar/index.cjs.map +1 -0
- package/dist/calendar/index.d.ts +30 -0
- package/dist/calendar/index.js +4043 -0
- package/dist/calendar/index.js.map +1 -0
- package/dist/calendar/labels.d.ts +4 -0
- package/dist/calendar/recurrence-labels.d.ts +22 -0
- package/dist/calendar/recurrence.d.ts +66 -0
- package/dist/calendar/reminders.d.ts +26 -0
- package/dist/calendar/scheduling.d.ts +27 -0
- package/dist/calendar/types.d.ts +605 -0
- package/dist/calendar/ui.d.ts +16 -0
- package/dist/calendar/zone.d.ts +56 -0
- package/dist/chat/index.cjs +124 -123
- package/dist/chat/index.js +4 -3
- package/dist/{chunk-XNRGCQPZ.cjs → chunk-3SFFTSOI.cjs} +5 -5
- package/dist/{chunk-XNRGCQPZ.cjs.map → chunk-3SFFTSOI.cjs.map} +1 -1
- package/dist/{chunk-EHXSBH6U.js → chunk-5HOAOKZL.js} +4 -2
- package/dist/chunk-5HOAOKZL.js.map +1 -0
- package/dist/{chunk-7WM62NMM.cjs → chunk-6OL5S7MJ.cjs} +5 -2
- package/dist/chunk-6OL5S7MJ.cjs.map +1 -0
- package/dist/{chunk-VUEZARW5.cjs → chunk-B3WCKBJ7.cjs} +278 -5
- package/dist/chunk-B3WCKBJ7.cjs.map +1 -0
- package/dist/{chunk-L5UPP2HC.js → chunk-D46ZAPEE.js} +5 -2
- package/dist/chunk-D46ZAPEE.js.map +1 -0
- package/dist/chunk-DES3K4SD.cjs +18 -0
- package/dist/chunk-DES3K4SD.cjs.map +1 -0
- package/dist/{chunk-7M22KND4.cjs → chunk-DH7C2UJO.cjs} +10 -10
- package/dist/{chunk-7M22KND4.cjs.map → chunk-DH7C2UJO.cjs.map} +1 -1
- package/dist/{chunk-CXWESDIZ.cjs → chunk-F4RUCUXF.cjs} +6 -6
- package/dist/{chunk-CXWESDIZ.cjs.map → chunk-F4RUCUXF.cjs.map} +1 -1
- package/dist/{chunk-DABEWNL2.js → chunk-G5DP27DU.js} +3 -3
- package/dist/{chunk-DABEWNL2.js.map → chunk-G5DP27DU.js.map} +1 -1
- package/dist/{chunk-BR2CPKFU.cjs → chunk-G5QTGKDJ.cjs} +8 -8
- package/dist/{chunk-BR2CPKFU.cjs.map → chunk-G5QTGKDJ.cjs.map} +1 -1
- package/dist/{chunk-VZGBCBYB.js → chunk-GJV2G4FC.js} +276 -7
- package/dist/chunk-GJV2G4FC.js.map +1 -0
- package/dist/{chunk-HLMFU7L2.js → chunk-IMC2Z32C.js} +8 -8
- package/dist/{chunk-HLMFU7L2.js.map → chunk-IMC2Z32C.js.map} +1 -1
- package/dist/{chunk-5DM6VU4L.cjs → chunk-KJ3QEKOJ.cjs} +3 -3
- package/dist/{chunk-5DM6VU4L.cjs.map → chunk-KJ3QEKOJ.cjs.map} +1 -1
- package/dist/{chunk-CW4WXGEN.js → chunk-KOXUBCLL.js} +4 -4
- package/dist/{chunk-CW4WXGEN.js.map → chunk-KOXUBCLL.js.map} +1 -1
- package/dist/{chunk-ILGHS6ZV.js → chunk-SB5ZKOYN.js} +3 -3
- package/dist/{chunk-ILGHS6ZV.js.map → chunk-SB5ZKOYN.js.map} +1 -1
- package/dist/{chunk-TLQQV7WW.cjs → chunk-THO7DZNN.cjs} +4 -2
- package/dist/chunk-THO7DZNN.cjs.map +1 -0
- package/dist/{chunk-CPMNAJLF.js → chunk-TX2ZICS7.js} +24 -4
- package/dist/chunk-TX2ZICS7.js.map +1 -0
- package/dist/{chunk-2ZTONLT5.cjs → chunk-ULWRNGGE.cjs} +25 -4
- package/dist/chunk-ULWRNGGE.cjs.map +1 -0
- package/dist/{chunk-BMWZTNZB.js → chunk-VRPRAU3J.js} +3 -3
- package/dist/{chunk-BMWZTNZB.js.map → chunk-VRPRAU3J.js.map} +1 -1
- package/dist/chunk-VUNV25KB.js +15 -0
- package/dist/chunk-VUNV25KB.js.map +1 -0
- package/dist/citations/index.cjs +1 -0
- package/dist/citations/index.js +1 -0
- package/dist/collaboration/index.cjs +45 -45
- package/dist/collaboration/index.js +3 -3
- package/dist/connect/docx.cjs +3 -2
- package/dist/connect/docx.cjs.map +1 -1
- package/dist/connect/docx.js +2 -1
- package/dist/connect/docx.js.map +1 -1
- package/dist/connect/index.cjs +79 -49
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/connect/index.js +39 -11
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedSettings.d.ts +13 -0
- package/dist/connection/ConnectionProvider.d.ts +5 -0
- package/dist/connection/types.d.ts +6 -0
- package/dist/document-tools/SignatureStatus.d.ts +4 -2
- package/dist/document-tools/index.cjs +14 -11
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.js +12 -9
- package/dist/document-tools/index.js.map +1 -1
- package/dist/document-tools/production/ProductionSetDialog.d.ts +23 -0
- package/dist/document-tools/production/index.cjs +102 -0
- package/dist/document-tools/production/index.cjs.map +1 -0
- package/dist/document-tools/production/index.d.ts +1 -0
- package/dist/document-tools/production/index.js +100 -0
- package/dist/document-tools/production/index.js.map +1 -0
- package/dist/document-tools/viewer/index.cjs +1 -1
- package/dist/document-tools/viewer/index.js +1 -1
- package/dist/docx/index.cjs +1 -0
- package/dist/docx/index.cjs.map +1 -1
- package/dist/docx/index.js +1 -0
- package/dist/docx/index.js.map +1 -1
- package/dist/facts/index.cjs +3 -2
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.js +3 -2
- package/dist/facts/index.js.map +1 -1
- package/dist/files/import/index.d.ts +0 -1
- package/dist/files/index.cjs +25 -88
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +7 -68
- package/dist/files/index.js.map +1 -1
- package/dist/home/index.cjs +2 -1
- package/dist/home/index.cjs.map +1 -1
- package/dist/home/index.js +2 -1
- package/dist/home/index.js.map +1 -1
- package/dist/index.cjs +537 -537
- package/dist/index.js +14 -14
- package/dist/lib-6QPUXAQS.cjs +9674 -0
- package/dist/lib-6QPUXAQS.cjs.map +1 -0
- package/dist/lib-NRGL2JGF.js +9672 -0
- package/dist/lib-NRGL2JGF.js.map +1 -0
- package/dist/retrieval/index.cjs +1 -0
- package/dist/retrieval/index.js +1 -0
- package/dist/settings/Billing.d.ts +4 -0
- package/dist/settings/IdentityVerification.d.ts +83 -0
- package/dist/settings/PlanBadge.d.ts +2 -2
- package/dist/settings/PlanCard.d.ts +6 -1
- package/dist/settings/ProfileCard.d.ts +5 -1
- package/dist/settings/SubscriptionParts.d.ts +6 -2
- package/dist/settings/index.cjs +129 -95
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.ts +1 -0
- package/dist/settings/index.js +65 -47
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/ActionCluster.d.ts +3 -1
- package/dist/shell/index.cjs +56 -55
- package/dist/shell/index.js +4 -3
- package/dist/site/index.cjs +1 -0
- package/dist/site/index.js +1 -0
- package/dist/studio/index.cjs +8 -7
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +6 -5
- package/dist/studio/index.js.map +1 -1
- package/dist/timeline/index.cjs +1 -0
- package/dist/timeline/index.js +1 -0
- package/dist/workspaces/index.cjs +3 -3
- package/dist/workspaces/index.js +2 -2
- package/package.json +35 -5
- package/src/calendar/calendar.css +316 -0
- package/dist/StreamedArtifactEditor-OPL4KXOT.js.map +0 -1
- package/dist/StreamedArtifactEditor-RIKG6CJQ.cjs.map +0 -1
- package/dist/chunk-2ZTONLT5.cjs.map +0 -1
- package/dist/chunk-7WM62NMM.cjs.map +0 -1
- package/dist/chunk-CPMNAJLF.js.map +0 -1
- package/dist/chunk-DCDVWPMB.cjs +0 -29
- package/dist/chunk-DCDVWPMB.cjs.map +0 -1
- package/dist/chunk-EHXSBH6U.js.map +0 -1
- package/dist/chunk-L5UPP2HC.js.map +0 -1
- package/dist/chunk-TJMKFY5P.js +0 -27
- package/dist/chunk-TJMKFY5P.js.map +0 -1
- package/dist/chunk-TLQQV7WW.cjs.map +0 -1
- package/dist/chunk-VUEZARW5.cjs.map +0 -1
- package/dist/chunk-VZGBCBYB.js.map +0 -1
- package/dist/files/import/CalendarImportRow.d.ts +0 -26
package/dist/connect/index.cjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkB3WCKBJ7_cjs = require('../chunk-B3WCKBJ7.cjs');
|
|
5
|
+
var chunkG5QTGKDJ_cjs = require('../chunk-G5QTGKDJ.cjs');
|
|
6
|
+
var chunkTHO7DZNN_cjs = require('../chunk-THO7DZNN.cjs');
|
|
6
7
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
7
8
|
require('../chunk-ADOKTJHV.cjs');
|
|
8
|
-
var
|
|
9
|
+
var chunkKJ3QEKOJ_cjs = require('../chunk-KJ3QEKOJ.cjs');
|
|
9
10
|
require('../chunk-VGOFFCMT.cjs');
|
|
10
11
|
require('../chunk-V3L5DONY.cjs');
|
|
12
|
+
require('../chunk-7UTB4PHM.cjs');
|
|
11
13
|
require('../chunk-PPCATBOY.cjs');
|
|
12
14
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
13
|
-
require('../chunk-
|
|
14
|
-
var chunkTLQQV7WW_cjs = require('../chunk-TLQQV7WW.cjs');
|
|
15
|
-
require('../chunk-7UTB4PHM.cjs');
|
|
15
|
+
require('../chunk-ULWRNGGE.cjs');
|
|
16
16
|
require('../chunk-MHVNT4J3.cjs');
|
|
17
|
+
require('../chunk-DES3K4SD.cjs');
|
|
17
18
|
var react = require('react');
|
|
18
19
|
var reactQuery = require('@tanstack/react-query');
|
|
19
20
|
var react$1 = require('@arbidocs/react');
|
|
@@ -24,7 +25,7 @@ var lucideReact = require('lucide-react');
|
|
|
24
25
|
var shell = require('@arbidocs/react/shell');
|
|
25
26
|
|
|
26
27
|
function ConnectionBoundWebSocket({ children }) {
|
|
27
|
-
const { status } =
|
|
28
|
+
const { status } = chunkTHO7DZNN_cjs.useConnection();
|
|
28
29
|
return /* @__PURE__ */ jsxRuntime.jsx(react$1.ArbiWebSocketProvider, { enabled: status === "authenticated", children });
|
|
29
30
|
}
|
|
30
31
|
function ArbiAppProvider({
|
|
@@ -37,10 +38,10 @@ function ArbiAppProvider({
|
|
|
37
38
|
})
|
|
38
39
|
);
|
|
39
40
|
const providerUrl = config.apiUrl || config.demoApiUrl || "https://demo.arbi.local";
|
|
40
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactQuery.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsxRuntime.jsx(react$1.ArbiProvider, { url: providerUrl, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactQuery.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsxRuntime.jsx(react$1.ArbiProvider, { url: providerUrl, deploymentDomain: config.deploymentDomain, children: /* @__PURE__ */ jsxRuntime.jsx(chunkTHO7DZNN_cjs.ConnectionProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ConnectionBoundWebSocket, { children }) }) }) });
|
|
41
42
|
}
|
|
42
43
|
function ConnectedTaskAccessRequest({ conversationId }) {
|
|
43
|
-
const { workspaceId } =
|
|
44
|
+
const { workspaceId } = chunkTHO7DZNN_cjs.useConnection();
|
|
44
45
|
const tasks = react$1.useConversations(workspaceId ?? void 0, { live: true });
|
|
45
46
|
const run = react$1.useRunConversation();
|
|
46
47
|
const task = tasks.data?.find((item) => item.external_id === conversationId);
|
|
@@ -108,7 +109,7 @@ function ConnectedSkillUpload() {
|
|
|
108
109
|
upload.error && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "text-sm text-destructive", children: upload.error.message })
|
|
109
110
|
] });
|
|
110
111
|
}
|
|
111
|
-
var StreamedArtifactEditor = react.lazy(() => import('../StreamedArtifactEditor-
|
|
112
|
+
var StreamedArtifactEditor = react.lazy(() => import('../StreamedArtifactEditor-IZWYNFMM.cjs'));
|
|
112
113
|
function StreamedArtifact({
|
|
113
114
|
artifacts: artifacts$1,
|
|
114
115
|
workspaceId,
|
|
@@ -180,7 +181,7 @@ function StreamedArtifact({
|
|
|
180
181
|
);
|
|
181
182
|
}
|
|
182
183
|
function useConnectedShellWorkspaces(options = {}) {
|
|
183
|
-
const { workspaceId, setWorkspace } =
|
|
184
|
+
const { workspaceId, setWorkspace } = chunkTHO7DZNN_cjs.useConnection();
|
|
184
185
|
const query = react$1.useWorkspaces();
|
|
185
186
|
return react$1.useShellWorkspaces({
|
|
186
187
|
...options,
|
|
@@ -205,7 +206,7 @@ function ConnectedProfileCard({ notify: notify3, title = "Profile" }) {
|
|
|
205
206
|
const updateProfile = react$1.useUpdateProfile();
|
|
206
207
|
const requestEmailChange = react$1.useRequestEmailChange();
|
|
207
208
|
const confirmEmailChange = react$1.useConfirmEmailChange();
|
|
208
|
-
const { user } =
|
|
209
|
+
const { user } = chunkTHO7DZNN_cjs.useConnection();
|
|
209
210
|
const name = react$1.useNameEditor({
|
|
210
211
|
givenName: profile?.givenName,
|
|
211
212
|
familyName: profile?.familyName,
|
|
@@ -252,12 +253,12 @@ function ConnectedProfileCard({ notify: notify3, title = "Profile" }) {
|
|
|
252
253
|
}
|
|
253
254
|
});
|
|
254
255
|
const display = profile?.fullName || user?.name || "Unnamed";
|
|
255
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
256
|
-
|
|
256
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkB3WCKBJ7_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserCircle, {}), title, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
257
|
+
chunkB3WCKBJ7_cjs.ProfileCard,
|
|
257
258
|
{
|
|
258
259
|
avatar: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
259
260
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
260
|
-
|
|
261
|
+
chunkB3WCKBJ7_cjs.AvatarPicker,
|
|
261
262
|
{
|
|
262
263
|
pictureUrl: profile?.picture ?? user?.picture,
|
|
263
264
|
initials: chunkKDG6FER6_cjs.initials(display),
|
|
@@ -283,11 +284,38 @@ function ConnectedProfileCard({ notify: notify3, title = "Profile" }) {
|
|
|
283
284
|
name: { ...name, display, isSaving: name.isSaving },
|
|
284
285
|
email: profile?.email ?? user?.email ?? "",
|
|
285
286
|
isSso: profile?.isSso ?? false,
|
|
287
|
+
isVerified: profile?.isIdentityVerified ?? false,
|
|
286
288
|
onStartEmailChange: email.onStart,
|
|
287
289
|
emailChange: email.isOpen ? email : void 0
|
|
288
290
|
}
|
|
289
291
|
) });
|
|
290
292
|
}
|
|
293
|
+
function ConnectedIdentityVerification({
|
|
294
|
+
notify: notify3,
|
|
295
|
+
labels
|
|
296
|
+
}) {
|
|
297
|
+
const { data: profile } = react$1.useProfile();
|
|
298
|
+
const flow = react$1.useIdentityVerification({
|
|
299
|
+
onVerifiedChange: (verified) => notify3?.(verified ? "Identity verified" : "Verified tick removed", "success"),
|
|
300
|
+
onNameAccepted: () => notify3?.("Name updated to match your ID", "success")
|
|
301
|
+
});
|
|
302
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
303
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkB3WCKBJ7_cjs.IdentityVerificationCard, { flow, labels }),
|
|
304
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
305
|
+
chunkB3WCKBJ7_cjs.IdentityVerificationDialog,
|
|
306
|
+
{
|
|
307
|
+
flow,
|
|
308
|
+
accountName: profile?.fullName ?? "",
|
|
309
|
+
labels
|
|
310
|
+
}
|
|
311
|
+
)
|
|
312
|
+
] });
|
|
313
|
+
}
|
|
314
|
+
function ConnectedRequireVerified({ children, labels }) {
|
|
315
|
+
const { data: profile } = react$1.useProfile();
|
|
316
|
+
const flow = react$1.useIdentityVerification();
|
|
317
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkB3WCKBJ7_cjs.RequireVerified, { flow, accountName: profile?.fullName ?? "", labels, children });
|
|
318
|
+
}
|
|
291
319
|
function defaultUnmetPasswordRequirement(password) {
|
|
292
320
|
if (password.length < 8) return "Minimum 8 characters";
|
|
293
321
|
if (!/[A-Z!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(password)) {
|
|
@@ -315,10 +343,10 @@ function ConnectedSecuritySection({
|
|
|
315
343
|
},
|
|
316
344
|
onClose: () => setOpen(false)
|
|
317
345
|
});
|
|
318
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
319
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
346
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkB3WCKBJ7_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, {}), title: "Security", children: [
|
|
347
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkB3WCKBJ7_cjs.SettingsCard, { padding: "sm", children: [
|
|
320
348
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
321
|
-
|
|
349
|
+
chunkB3WCKBJ7_cjs.SettingsActionRow,
|
|
322
350
|
{
|
|
323
351
|
title: "Change password",
|
|
324
352
|
description: "Used to sign in and to encrypt your data. Changing it re-encrypts everything in your account.",
|
|
@@ -329,7 +357,7 @@ function ConnectedSecuritySection({
|
|
|
329
357
|
children
|
|
330
358
|
] }),
|
|
331
359
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
332
|
-
|
|
360
|
+
chunkB3WCKBJ7_cjs.PasswordChangeDialog,
|
|
333
361
|
{
|
|
334
362
|
open,
|
|
335
363
|
onClose: form.onCancel,
|
|
@@ -353,23 +381,23 @@ function ConnectedSecuritySection({
|
|
|
353
381
|
] });
|
|
354
382
|
}
|
|
355
383
|
function ConnectedNotificationPreferences({
|
|
356
|
-
categories =
|
|
384
|
+
categories = chunkB3WCKBJ7_cjs.EMAIL_NOTIFICATION_CATEGORIES,
|
|
357
385
|
title = "Notifications"
|
|
358
386
|
}) {
|
|
359
387
|
const keys = react.useMemo(
|
|
360
|
-
() => categories ===
|
|
388
|
+
() => categories === chunkB3WCKBJ7_cjs.EMAIL_NOTIFICATION_CATEGORIES ? chunkB3WCKBJ7_cjs.EMAIL_NOTIFICATION_KEYS : categories.map((c) => c.key),
|
|
361
389
|
[categories]
|
|
362
390
|
);
|
|
363
391
|
const prefs = react$1.useNotificationPreferences(keys);
|
|
364
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
365
|
-
|
|
392
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkB3WCKBJ7_cjs.SettingsSection, { title, children: /* @__PURE__ */ jsxRuntime.jsx(chunkB3WCKBJ7_cjs.SettingsCard, { className: "space-y-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
393
|
+
chunkB3WCKBJ7_cjs.NotificationCategoryList,
|
|
366
394
|
{
|
|
367
395
|
masterId: "emailNotifications",
|
|
368
396
|
masterTitle: "Email Notifications",
|
|
369
397
|
masterDescription: "Email me about activity when I\u2019m away",
|
|
370
398
|
masterChecked: prefs.masterChecked,
|
|
371
399
|
onMasterChange: prefs.setAll,
|
|
372
|
-
categories:
|
|
400
|
+
categories: chunkB3WCKBJ7_cjs.toNotificationCategories(prefs.checked, categories),
|
|
373
401
|
onCategoryChange: prefs.setCategory
|
|
374
402
|
}
|
|
375
403
|
) }) });
|
|
@@ -383,14 +411,14 @@ function ConnectedSessionsRow({
|
|
|
383
411
|
const sessions = react$1.useSessions({ enabled: open });
|
|
384
412
|
const currentSessionId = react$1.useCurrentSessionId();
|
|
385
413
|
const terminate = react$1.useTerminateSession();
|
|
386
|
-
const views =
|
|
414
|
+
const views = chunkB3WCKBJ7_cjs.toActiveSessionViews(sessions.data ?? [], {
|
|
387
415
|
currentSessionId,
|
|
388
416
|
terminatingId: terminate.isPending ? terminate.variables : null,
|
|
389
417
|
renderIcon: renderSessionIcon
|
|
390
418
|
});
|
|
391
419
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
392
420
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
393
|
-
|
|
421
|
+
chunkB3WCKBJ7_cjs.SettingsRow,
|
|
394
422
|
{
|
|
395
423
|
label: "Active sessions",
|
|
396
424
|
description: "Devices and agents currently signed in to your account.",
|
|
@@ -412,7 +440,7 @@ function ConnectedSessionsRow({
|
|
|
412
440
|
}
|
|
413
441
|
),
|
|
414
442
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
415
|
-
|
|
443
|
+
chunkB3WCKBJ7_cjs.ActiveSessionsDialog,
|
|
416
444
|
{
|
|
417
445
|
open,
|
|
418
446
|
onOpenChange: setOpen,
|
|
@@ -443,11 +471,11 @@ function ConnectedLogoutDialog({
|
|
|
443
471
|
isOnline = true,
|
|
444
472
|
renderSessionIcon
|
|
445
473
|
}) {
|
|
446
|
-
const { logout } =
|
|
474
|
+
const { logout } = chunkTHO7DZNN_cjs.useConnection();
|
|
447
475
|
const sessions = react$1.useSessions({ enabled: open });
|
|
448
476
|
const logoutAll = react$1.useLogoutAllSessions();
|
|
449
477
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
450
|
-
|
|
478
|
+
chunkB3WCKBJ7_cjs.LogoutDialog,
|
|
451
479
|
{
|
|
452
480
|
open,
|
|
453
481
|
onClose,
|
|
@@ -461,7 +489,7 @@ function ConnectedLogoutDialog({
|
|
|
461
489
|
},
|
|
462
490
|
canLogoutAll: true,
|
|
463
491
|
isOnline,
|
|
464
|
-
sessions:
|
|
492
|
+
sessions: chunkB3WCKBJ7_cjs.toLogoutSessionViews(sessions.data ?? []),
|
|
465
493
|
renderSessionIcon
|
|
466
494
|
}
|
|
467
495
|
);
|
|
@@ -469,7 +497,7 @@ function ConnectedLogoutDialog({
|
|
|
469
497
|
function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
470
498
|
const [zoneOpen, setZoneOpen] = react.useState(false);
|
|
471
499
|
const [dialogOpen, setDialogOpen] = react.useState(false);
|
|
472
|
-
const { user, logout } =
|
|
500
|
+
const { user, logout } = chunkTHO7DZNN_cjs.useConnection();
|
|
473
501
|
const remove = react$1.useDeleteAccount();
|
|
474
502
|
const flow = react$1.useDeleteAccountFlow({
|
|
475
503
|
userEmail: user?.email ?? "",
|
|
@@ -480,7 +508,7 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
480
508
|
});
|
|
481
509
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
482
510
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
483
|
-
|
|
511
|
+
chunkB3WCKBJ7_cjs.SettingsDangerZone,
|
|
484
512
|
{
|
|
485
513
|
isOpen: zoneOpen,
|
|
486
514
|
onToggle: () => setZoneOpen((o) => !o),
|
|
@@ -500,12 +528,12 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
500
528
|
}
|
|
501
529
|
),
|
|
502
530
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
503
|
-
|
|
531
|
+
chunkB3WCKBJ7_cjs.DeleteAccountDialog,
|
|
504
532
|
{
|
|
505
533
|
open: dialogOpen,
|
|
506
534
|
onClose: flow.onClose,
|
|
507
535
|
step: flow.step,
|
|
508
|
-
blockers:
|
|
536
|
+
blockers: chunkB3WCKBJ7_cjs.toDeleteBlockerViews(flow.blockers, renderSubscriptionLink),
|
|
509
537
|
onContinue: flow.onContinue,
|
|
510
538
|
onBack: flow.onBack,
|
|
511
539
|
userEmail: user?.email ?? "",
|
|
@@ -519,7 +547,7 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
519
547
|
}
|
|
520
548
|
function useConnectedDocxNotifications(onOpen) {
|
|
521
549
|
const arbi = react$1.useArbi();
|
|
522
|
-
const { status, user, apiUrl } =
|
|
550
|
+
const { status, user, apiUrl } = chunkTHO7DZNN_cjs.useConnection();
|
|
523
551
|
const queries = reactQuery.useQueryClient();
|
|
524
552
|
const source = `docx-mentions:${apiUrl}:${user?.externalId || ""}`;
|
|
525
553
|
const queryKey = ["docx-mentions", apiUrl, user?.externalId];
|
|
@@ -583,7 +611,7 @@ function useConnectedDocxNotifications(onOpen) {
|
|
|
583
611
|
};
|
|
584
612
|
}
|
|
585
613
|
function useConnectedWorkNotifications(onOpen) {
|
|
586
|
-
const { status, user, apiUrl } =
|
|
614
|
+
const { status, user, apiUrl } = chunkTHO7DZNN_cjs.useConnection();
|
|
587
615
|
const source = `work-notifications:${apiUrl}:${user?.externalId || ""}`;
|
|
588
616
|
const { data = [], markRead: persistRead } = react$1.useWorkNotifications({
|
|
589
617
|
apiUrl,
|
|
@@ -690,7 +718,7 @@ function mapWorkNotification(note) {
|
|
|
690
718
|
function ActiveChat({ agentId, workspaceId }) {
|
|
691
719
|
const chat = react$1.useArbiChat({ agentId, workspaceId });
|
|
692
720
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
693
|
-
|
|
721
|
+
chunkKJ3QEKOJ_cjs.ChatPage,
|
|
694
722
|
{
|
|
695
723
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
696
724
|
documentsRequired: false,
|
|
@@ -752,58 +780,60 @@ function ConnectedAgentChatPanel({
|
|
|
752
780
|
|
|
753
781
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
754
782
|
enumerable: true,
|
|
755
|
-
get: function () { return
|
|
783
|
+
get: function () { return chunkG5QTGKDJ_cjs.ConnectedAssistantDock; }
|
|
756
784
|
});
|
|
757
785
|
Object.defineProperty(exports, "redlineStats", {
|
|
758
786
|
enumerable: true,
|
|
759
|
-
get: function () { return
|
|
787
|
+
get: function () { return chunkG5QTGKDJ_cjs.redlineStats; }
|
|
760
788
|
});
|
|
761
789
|
Object.defineProperty(exports, "textToArtifact", {
|
|
762
790
|
enumerable: true,
|
|
763
|
-
get: function () { return
|
|
791
|
+
get: function () { return chunkG5QTGKDJ_cjs.textToArtifact; }
|
|
764
792
|
});
|
|
765
793
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
766
794
|
enumerable: true,
|
|
767
|
-
get: function () { return
|
|
795
|
+
get: function () { return chunkG5QTGKDJ_cjs.toRedlineMarkdown; }
|
|
768
796
|
});
|
|
769
797
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
770
798
|
enumerable: true,
|
|
771
|
-
get: function () { return
|
|
799
|
+
get: function () { return chunkG5QTGKDJ_cjs.useConnectedAiTask; }
|
|
772
800
|
});
|
|
773
801
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
774
802
|
enumerable: true,
|
|
775
|
-
get: function () { return
|
|
803
|
+
get: function () { return chunkG5QTGKDJ_cjs.useConnectedChat; }
|
|
776
804
|
});
|
|
777
805
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
778
806
|
enumerable: true,
|
|
779
|
-
get: function () { return
|
|
807
|
+
get: function () { return chunkG5QTGKDJ_cjs.useSemanticSearch; }
|
|
780
808
|
});
|
|
781
809
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
782
810
|
enumerable: true,
|
|
783
|
-
get: function () { return
|
|
811
|
+
get: function () { return chunkG5QTGKDJ_cjs.useWorkspaceDocs; }
|
|
784
812
|
});
|
|
785
813
|
Object.defineProperty(exports, "ConnectionProvider", {
|
|
786
814
|
enumerable: true,
|
|
787
|
-
get: function () { return
|
|
815
|
+
get: function () { return chunkTHO7DZNN_cjs.ConnectionProvider; }
|
|
788
816
|
});
|
|
789
817
|
Object.defineProperty(exports, "SESSION_EXPIRED_MESSAGE", {
|
|
790
818
|
enumerable: true,
|
|
791
|
-
get: function () { return
|
|
819
|
+
get: function () { return chunkTHO7DZNN_cjs.SESSION_EXPIRED_MESSAGE; }
|
|
792
820
|
});
|
|
793
821
|
Object.defineProperty(exports, "isAuthenticated", {
|
|
794
822
|
enumerable: true,
|
|
795
|
-
get: function () { return
|
|
823
|
+
get: function () { return chunkTHO7DZNN_cjs.isAuthenticated; }
|
|
796
824
|
});
|
|
797
825
|
Object.defineProperty(exports, "useConnection", {
|
|
798
826
|
enumerable: true,
|
|
799
|
-
get: function () { return
|
|
827
|
+
get: function () { return chunkTHO7DZNN_cjs.useConnection; }
|
|
800
828
|
});
|
|
801
829
|
exports.ArbiAppProvider = ArbiAppProvider;
|
|
802
830
|
exports.ConnectedAgentChatPanel = ConnectedAgentChatPanel;
|
|
803
831
|
exports.ConnectedDangerZone = ConnectedDangerZone;
|
|
832
|
+
exports.ConnectedIdentityVerification = ConnectedIdentityVerification;
|
|
804
833
|
exports.ConnectedLogoutDialog = ConnectedLogoutDialog;
|
|
805
834
|
exports.ConnectedNotificationPreferences = ConnectedNotificationPreferences;
|
|
806
835
|
exports.ConnectedProfileCard = ConnectedProfileCard;
|
|
836
|
+
exports.ConnectedRequireVerified = ConnectedRequireVerified;
|
|
807
837
|
exports.ConnectedSecuritySection = ConnectedSecuritySection;
|
|
808
838
|
exports.ConnectedSessionsRow = ConnectedSessionsRow;
|
|
809
839
|
exports.ConnectedSkillUpload = ConnectedSkillUpload;
|