@arbidocs/blocks 0.4.39 → 0.4.40
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 +224 -222
- package/dist/agents/index.js +5 -3
- package/dist/agents/tasks/TaskInbox.d.ts +1 -1
- package/dist/agents/tasks/TaskStartDialog.d.ts +11 -3
- package/dist/agents/tasks/taskRequest.d.ts +3 -0
- package/dist/chat/index.cjs +127 -126
- package/dist/chat/index.js +3 -2
- package/dist/chunk-3VQYJBOI.js +76 -0
- package/dist/chunk-3VQYJBOI.js.map +1 -0
- package/dist/{chunk-SWON6O45.js → chunk-7L3KPYD2.js} +3 -3
- package/dist/{chunk-SWON6O45.js.map → chunk-7L3KPYD2.js.map} +1 -1
- package/dist/{chunk-LQITIYBN.js → chunk-CA7JD6IX.js} +3 -3
- package/dist/{chunk-LQITIYBN.js.map → chunk-CA7JD6IX.js.map} +1 -1
- package/dist/{chunk-ZXYHBQFW.js → chunk-E3U5GYAP.js} +5 -72
- package/dist/chunk-E3U5GYAP.js.map +1 -0
- package/dist/{chunk-VZGBCBYB.js → chunk-HTJXMA26.js} +3 -3
- package/dist/{chunk-VZGBCBYB.js.map → chunk-HTJXMA26.js.map} +1 -1
- package/dist/{chunk-CHVFO74Y.cjs → chunk-LEJGV4KQ.cjs} +156 -38
- package/dist/chunk-LEJGV4KQ.cjs.map +1 -0
- package/dist/{chunk-SKFSJHVU.cjs → chunk-LR54PQ7N.cjs} +4 -4
- package/dist/{chunk-SKFSJHVU.cjs.map → chunk-LR54PQ7N.cjs.map} +1 -1
- package/dist/{chunk-VUEZARW5.cjs → chunk-MDW5YCHZ.cjs} +3 -3
- package/dist/{chunk-VUEZARW5.cjs.map → chunk-MDW5YCHZ.cjs.map} +1 -1
- package/dist/{chunk-EEGPWOOG.cjs → chunk-NT3WEHL5.cjs} +5 -5
- package/dist/{chunk-EEGPWOOG.cjs.map → chunk-NT3WEHL5.cjs.map} +1 -1
- package/dist/{chunk-KFR4GKHS.js → chunk-RFCQPDEP.js} +156 -38
- package/dist/chunk-RFCQPDEP.js.map +1 -0
- package/dist/{chunk-KMYLQIOH.cjs → chunk-UW3IHMYA.cjs} +4 -72
- package/dist/chunk-UW3IHMYA.cjs.map +1 -0
- package/dist/chunk-V3L5DONY.cjs +78 -0
- package/dist/chunk-V3L5DONY.cjs.map +1 -0
- package/dist/connect/index.cjs +34 -33
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +5 -4
- package/dist/connect/index.js.map +1 -1
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/index.cjs +443 -442
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/settings/index.cjs +31 -31
- package/dist/settings/index.js +2 -2
- package/dist/studio/index.cjs +4 -3
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.js +3 -2
- package/dist/studio/index.js.map +1 -1
- package/dist/workspaces/WorkspaceSettingsParts.d.ts +2 -0
- package/dist/workspaces/index.cjs +6 -3
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.js +7 -4
- package/dist/workspaces/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-CHVFO74Y.cjs.map +0 -1
- package/dist/chunk-KFR4GKHS.js.map +0 -1
- package/dist/chunk-KMYLQIOH.cjs.map +0 -1
- package/dist/chunk-ZXYHBQFW.js.map +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var chunk7UTB4PHM_cjs = require('./chunk-7UTB4PHM.cjs');
|
|
5
|
+
var react = require('react');
|
|
6
|
+
|
|
7
|
+
function useMentionAutocomplete({
|
|
8
|
+
value,
|
|
9
|
+
onValueChange,
|
|
10
|
+
candidates,
|
|
11
|
+
textareaRef
|
|
12
|
+
}) {
|
|
13
|
+
const [caret, setCaret] = react.useState(null);
|
|
14
|
+
const [dismissedAt, setDismissedAt] = react.useState(null);
|
|
15
|
+
react.useEffect(() => {
|
|
16
|
+
if (dismissedAt !== null && value[dismissedAt] !== "@") setDismissedAt(null);
|
|
17
|
+
}, [value, dismissedAt]);
|
|
18
|
+
const match = react.useMemo(() => {
|
|
19
|
+
if (caret === null) return null;
|
|
20
|
+
const query = chunk7UTB4PHM_cjs.findMentionQuery(value, Math.min(caret, value.length));
|
|
21
|
+
return query && candidates.some((candidate) => query.query === `${candidate.label} `) ? null : query;
|
|
22
|
+
}, [value, caret, candidates]);
|
|
23
|
+
const items = react.useMemo(
|
|
24
|
+
() => match ? chunk7UTB4PHM_cjs.filterMentionCandidates(candidates, match.query) : [],
|
|
25
|
+
[match, candidates]
|
|
26
|
+
);
|
|
27
|
+
const isOpen = !!match && items.length > 0 && dismissedAt !== match.start;
|
|
28
|
+
const readCaret = react.useCallback(() => {
|
|
29
|
+
const ta = textareaRef.current;
|
|
30
|
+
setCaret(ta ? ta.selectionStart : null);
|
|
31
|
+
}, [textareaRef]);
|
|
32
|
+
const pick = react.useCallback(
|
|
33
|
+
(candidate) => {
|
|
34
|
+
if (!match || caret === null) return;
|
|
35
|
+
const next = chunk7UTB4PHM_cjs.insertMention(value, match.start, Math.min(caret, value.length), candidate.label);
|
|
36
|
+
onValueChange(next.text);
|
|
37
|
+
setCaret(next.caret);
|
|
38
|
+
setDismissedAt(match.start);
|
|
39
|
+
requestAnimationFrame(() => {
|
|
40
|
+
const ta = textareaRef.current;
|
|
41
|
+
if (!ta) return;
|
|
42
|
+
ta.focus();
|
|
43
|
+
ta.setSelectionRange(next.caret, next.caret);
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
[match, caret, value, onValueChange, textareaRef]
|
|
47
|
+
);
|
|
48
|
+
const nav = chunk7UTB4PHM_cjs.useListKeyNav({
|
|
49
|
+
open: isOpen,
|
|
50
|
+
items,
|
|
51
|
+
onPick: pick,
|
|
52
|
+
onDismiss: () => setDismissedAt(match?.start ?? null),
|
|
53
|
+
resetKey: match?.query
|
|
54
|
+
});
|
|
55
|
+
const handleValueChange = react.useCallback(
|
|
56
|
+
(next) => {
|
|
57
|
+
onValueChange(next);
|
|
58
|
+
const ta = textareaRef.current;
|
|
59
|
+
setCaret(ta ? ta.selectionStart : next.length);
|
|
60
|
+
if (dismissedAt !== null && (next.length < value.length || next[dismissedAt] !== "@")) {
|
|
61
|
+
setDismissedAt(null);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
[onValueChange, textareaRef, dismissedAt, value]
|
|
65
|
+
);
|
|
66
|
+
return {
|
|
67
|
+
isOpen,
|
|
68
|
+
items,
|
|
69
|
+
nav,
|
|
70
|
+
pick,
|
|
71
|
+
onValueChange: handleValueChange,
|
|
72
|
+
textareaProps: { onSelect: readCaret }
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
exports.useMentionAutocomplete = useMentionAutocomplete;
|
|
77
|
+
//# sourceMappingURL=chunk-V3L5DONY.cjs.map
|
|
78
|
+
//# sourceMappingURL=chunk-V3L5DONY.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/chat/useMentionAutocomplete.ts"],"names":["useState","useEffect","useMemo","findMentionQuery","filterMentionCandidates","useCallback","insertMention","useListKeyNav"],"mappings":";;;;;AA6CO,SAAS,sBAAA,CAAuB;AAAA,EACrC,KAAA;AAAA,EACA,aAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA,EAA0D;AACxD,EAAA,MAAM,CAAC,KAAA,EAAO,QAAQ,CAAA,GAAIA,eAAwB,IAAI,CAAA;AAEtD,EAAA,MAAM,CAAC,WAAA,EAAa,cAAc,CAAA,GAAIA,eAAwB,IAAI,CAAA;AAIlE,EAAAC,eAAA,CAAU,MAAM;AACd,IAAA,IAAI,gBAAgB,IAAA,IAAQ,KAAA,CAAM,WAAW,CAAA,KAAM,GAAA,iBAAoB,IAAI,CAAA;AAAA,EAC7E,CAA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Aa,WAAA,EAAa,KAAK;AAAA,GACjD;AAEA,EAAA,OAAO;AAAA,IACL,MAAA;AAAA,IACA,KAAA;AAAA,IACA,GAAA;AAAA,IACA,IAAA;AAAA,IACA,aAAA,EAAe,iBAAA;AAAA,IACf,aAAA,EAAe,EAAE,QAAA,EAAU,SAAA;AAAU,GACvC;AACF","file":"chunk-V3L5DONY.cjs","sourcesContent":["import {\n useCallback,\n useEffect,\n useMemo,\n useState,\n type RefObject,\n type SyntheticEvent,\n} from 'react'\nimport { useListKeyNav, type UseListKeyNav } from '../lib/useListKeyNav'\nimport {\n filterMentionCandidates,\n findMentionQuery,\n insertMention,\n type MentionCandidate,\n} from './mentions'\n\nexport interface UseMentionAutocompleteOptions {\n /** The draft. */\n value: string\n /** Writes the draft (the same setter the composer uses). */\n onValueChange: (next: string) => void\n /** Who can be mentioned: workspace members and the assistant. */\n candidates: ReadonlyArray<MentionCandidate>\n /** The composer textarea; read for the caret and refocused after a pick. */\n textareaRef: RefObject<HTMLTextAreaElement | null>\n}\n\nexport interface UseMentionAutocomplete {\n isOpen: boolean\n /** Filtered candidates for the `@query` at the caret. */\n items: MentionCandidate[]\n /** Keyboard navigation; call `nav.handleKeyDown` first in the textarea's `onKeyDown`. */\n nav: UseListKeyNav\n /** Insert a candidate in place of the `@query`. */\n pick: (candidate: MentionCandidate) => void\n /** Wrap the composer's `onValueChange` with this so the caret is tracked as the user types. */\n onValueChange: (next: string) => void\n /** Spread onto the textarea (via `textareaProps`): tracks caret moves (clicks, arrows). */\n textareaProps: { onSelect: (event: SyntheticEvent<HTMLTextAreaElement>) => void }\n}\n\n/**\n * Headless `@mention` autocomplete for a textarea: finds the `@query` at the caret, filters the\n * candidates, and on pick replaces the query with `@<label> `. Pair with {@link MentionMenu}.\n */\nexport function useMentionAutocomplete({\n value,\n onValueChange,\n candidates,\n textareaRef,\n}: UseMentionAutocompleteOptions): UseMentionAutocomplete {\n const [caret, setCaret] = useState<number | null>(null)\n // Escape dismisses the menu for the `@` it was opened at, until the user starts another one.\n const [dismissedAt, setDismissedAt] = useState<number | null>(null)\n\n // The draft can change from outside (cleared on send, restored on error): once the dismissed\n // `@` is gone, re-arm so the next `@` there opens the menu again.\n useEffect(() => {\n if (dismissedAt !== null && value[dismissedAt] !== '@') setDismissedAt(null)\n }, [value, dismissedAt])\n\n const match = useMemo(() => {\n if (caret === null) return null\n const query = findMentionQuery(value, Math.min(caret, value.length))\n // A completed recipient followed by a space is no longer an autocomplete query.\n return query && candidates.some((candidate) => query.query === `${candidate.label} `)\n ? null\n : query\n }, [value, caret, candidates])\n const items = useMemo(\n () => (match ? filterMentionCandidates(candidates, match.query) : []),\n [match, candidates]\n )\n const isOpen = !!match && items.length > 0 && dismissedAt !== match.start\n\n const readCaret = useCallback(() => {\n const ta = textareaRef.current\n setCaret(ta ? ta.selectionStart : null)\n }, [textareaRef])\n\n const pick = useCallback(\n (candidate: MentionCandidate) => {\n if (!match || caret === null) return\n const next = insertMention(value, match.start, Math.min(caret, value.length), candidate.label)\n onValueChange(next.text)\n setCaret(next.caret)\n // The inserted `@<label> ` is complete: keep the menu shut for this `@`.\n setDismissedAt(match.start)\n requestAnimationFrame(() => {\n const ta = textareaRef.current\n if (!ta) return\n ta.focus()\n ta.setSelectionRange(next.caret, next.caret)\n })\n },\n [match, caret, value, onValueChange, textareaRef]\n )\n\n const nav = useListKeyNav({\n open: isOpen,\n items,\n onPick: pick,\n onDismiss: () => setDismissedAt(match?.start ?? null),\n resetKey: match?.query,\n })\n\n const handleValueChange = useCallback(\n (next: string) => {\n onValueChange(next)\n const ta = textareaRef.current\n setCaret(ta ? ta.selectionStart : next.length)\n // Deleting text (or the `@` itself) re-arms the menu: the user is editing that mention.\n if (dismissedAt !== null && (next.length < value.length || next[dismissedAt] !== '@')) {\n setDismissedAt(null)\n }\n },\n [onValueChange, textareaRef, dismissedAt, value]\n )\n\n return {\n isOpen,\n items,\n nav,\n pick,\n onValueChange: handleValueChange,\n textareaProps: { onSelect: readCaret },\n }\n}\n"]}
|
package/dist/connect/index.cjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkLR54PQ7N_cjs = require('../chunk-LR54PQ7N.cjs');
|
|
5
|
+
var chunkMDW5YCHZ_cjs = require('../chunk-MDW5YCHZ.cjs');
|
|
6
6
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
7
7
|
require('../chunk-ADOKTJHV.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkUW3IHMYA_cjs = require('../chunk-UW3IHMYA.cjs');
|
|
9
9
|
require('../chunk-VGOFFCMT.cjs');
|
|
10
|
+
require('../chunk-V3L5DONY.cjs');
|
|
10
11
|
require('../chunk-PPCATBOY.cjs');
|
|
11
|
-
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
12
12
|
require('../chunk-DCDVWPMB.cjs');
|
|
13
|
+
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
13
14
|
var chunkTLQQV7WW_cjs = require('../chunk-TLQQV7WW.cjs');
|
|
14
15
|
require('../chunk-7UTB4PHM.cjs');
|
|
15
16
|
require('../chunk-MHVNT4J3.cjs');
|
|
@@ -251,12 +252,12 @@ function ConnectedProfileCard({ notify: notify3, title = "Profile" }) {
|
|
|
251
252
|
}
|
|
252
253
|
});
|
|
253
254
|
const display = profile?.fullName || user?.name || "Unnamed";
|
|
254
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
255
|
-
|
|
255
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMDW5YCHZ_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserCircle, {}), title, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
256
|
+
chunkMDW5YCHZ_cjs.ProfileCard,
|
|
256
257
|
{
|
|
257
258
|
avatar: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
258
259
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
259
|
-
|
|
260
|
+
chunkMDW5YCHZ_cjs.AvatarPicker,
|
|
260
261
|
{
|
|
261
262
|
pictureUrl: profile?.picture ?? user?.picture,
|
|
262
263
|
initials: chunkKDG6FER6_cjs.initials(display),
|
|
@@ -314,10 +315,10 @@ function ConnectedSecuritySection({
|
|
|
314
315
|
},
|
|
315
316
|
onClose: () => setOpen(false)
|
|
316
317
|
});
|
|
317
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
318
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
318
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkMDW5YCHZ_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, {}), title: "Security", children: [
|
|
319
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkMDW5YCHZ_cjs.SettingsCard, { padding: "sm", children: [
|
|
319
320
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
320
|
-
|
|
321
|
+
chunkMDW5YCHZ_cjs.SettingsActionRow,
|
|
321
322
|
{
|
|
322
323
|
title: "Change password",
|
|
323
324
|
description: "Used to sign in and to encrypt your data. Changing it re-encrypts everything in your account.",
|
|
@@ -328,7 +329,7 @@ function ConnectedSecuritySection({
|
|
|
328
329
|
children
|
|
329
330
|
] }),
|
|
330
331
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
331
|
-
|
|
332
|
+
chunkMDW5YCHZ_cjs.PasswordChangeDialog,
|
|
332
333
|
{
|
|
333
334
|
open,
|
|
334
335
|
onClose: form.onCancel,
|
|
@@ -352,23 +353,23 @@ function ConnectedSecuritySection({
|
|
|
352
353
|
] });
|
|
353
354
|
}
|
|
354
355
|
function ConnectedNotificationPreferences({
|
|
355
|
-
categories =
|
|
356
|
+
categories = chunkMDW5YCHZ_cjs.EMAIL_NOTIFICATION_CATEGORIES,
|
|
356
357
|
title = "Notifications"
|
|
357
358
|
}) {
|
|
358
359
|
const keys = react.useMemo(
|
|
359
|
-
() => categories ===
|
|
360
|
+
() => categories === chunkMDW5YCHZ_cjs.EMAIL_NOTIFICATION_CATEGORIES ? chunkMDW5YCHZ_cjs.EMAIL_NOTIFICATION_KEYS : categories.map((c) => c.key),
|
|
360
361
|
[categories]
|
|
361
362
|
);
|
|
362
363
|
const prefs = react$1.useNotificationPreferences(keys);
|
|
363
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
364
|
-
|
|
364
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMDW5YCHZ_cjs.SettingsSection, { title, children: /* @__PURE__ */ jsxRuntime.jsx(chunkMDW5YCHZ_cjs.SettingsCard, { className: "space-y-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
365
|
+
chunkMDW5YCHZ_cjs.NotificationCategoryList,
|
|
365
366
|
{
|
|
366
367
|
masterId: "emailNotifications",
|
|
367
368
|
masterTitle: "Email Notifications",
|
|
368
369
|
masterDescription: "Email me about activity when I\u2019m away",
|
|
369
370
|
masterChecked: prefs.masterChecked,
|
|
370
371
|
onMasterChange: prefs.setAll,
|
|
371
|
-
categories:
|
|
372
|
+
categories: chunkMDW5YCHZ_cjs.toNotificationCategories(prefs.checked, categories),
|
|
372
373
|
onCategoryChange: prefs.setCategory
|
|
373
374
|
}
|
|
374
375
|
) }) });
|
|
@@ -382,14 +383,14 @@ function ConnectedSessionsRow({
|
|
|
382
383
|
const sessions = react$1.useSessions({ enabled: open });
|
|
383
384
|
const currentSessionId = react$1.useCurrentSessionId();
|
|
384
385
|
const terminate = react$1.useTerminateSession();
|
|
385
|
-
const views =
|
|
386
|
+
const views = chunkMDW5YCHZ_cjs.toActiveSessionViews(sessions.data ?? [], {
|
|
386
387
|
currentSessionId,
|
|
387
388
|
terminatingId: terminate.isPending ? terminate.variables : null,
|
|
388
389
|
renderIcon: renderSessionIcon
|
|
389
390
|
});
|
|
390
391
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
391
392
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
392
|
-
|
|
393
|
+
chunkMDW5YCHZ_cjs.SettingsRow,
|
|
393
394
|
{
|
|
394
395
|
label: "Active sessions",
|
|
395
396
|
description: "Devices and agents currently signed in to your account.",
|
|
@@ -411,7 +412,7 @@ function ConnectedSessionsRow({
|
|
|
411
412
|
}
|
|
412
413
|
),
|
|
413
414
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
414
|
-
|
|
415
|
+
chunkMDW5YCHZ_cjs.ActiveSessionsDialog,
|
|
415
416
|
{
|
|
416
417
|
open,
|
|
417
418
|
onOpenChange: setOpen,
|
|
@@ -446,7 +447,7 @@ function ConnectedLogoutDialog({
|
|
|
446
447
|
const sessions = react$1.useSessions({ enabled: open });
|
|
447
448
|
const logoutAll = react$1.useLogoutAllSessions();
|
|
448
449
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
449
|
-
|
|
450
|
+
chunkMDW5YCHZ_cjs.LogoutDialog,
|
|
450
451
|
{
|
|
451
452
|
open,
|
|
452
453
|
onClose,
|
|
@@ -460,7 +461,7 @@ function ConnectedLogoutDialog({
|
|
|
460
461
|
},
|
|
461
462
|
canLogoutAll: true,
|
|
462
463
|
isOnline,
|
|
463
|
-
sessions:
|
|
464
|
+
sessions: chunkMDW5YCHZ_cjs.toLogoutSessionViews(sessions.data ?? []),
|
|
464
465
|
renderSessionIcon
|
|
465
466
|
}
|
|
466
467
|
);
|
|
@@ -479,7 +480,7 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
479
480
|
});
|
|
480
481
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
481
482
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
482
|
-
|
|
483
|
+
chunkMDW5YCHZ_cjs.SettingsDangerZone,
|
|
483
484
|
{
|
|
484
485
|
isOpen: zoneOpen,
|
|
485
486
|
onToggle: () => setZoneOpen((o) => !o),
|
|
@@ -499,12 +500,12 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
499
500
|
}
|
|
500
501
|
),
|
|
501
502
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
502
|
-
|
|
503
|
+
chunkMDW5YCHZ_cjs.DeleteAccountDialog,
|
|
503
504
|
{
|
|
504
505
|
open: dialogOpen,
|
|
505
506
|
onClose: flow.onClose,
|
|
506
507
|
step: flow.step,
|
|
507
|
-
blockers:
|
|
508
|
+
blockers: chunkMDW5YCHZ_cjs.toDeleteBlockerViews(flow.blockers, renderSubscriptionLink),
|
|
508
509
|
onContinue: flow.onContinue,
|
|
509
510
|
onBack: flow.onBack,
|
|
510
511
|
userEmail: user?.email ?? "",
|
|
@@ -690,7 +691,7 @@ function mapWorkNotification(note) {
|
|
|
690
691
|
function ActiveChat({ agentId, workspaceId }) {
|
|
691
692
|
const chat = react$1.useArbiChat({ agentId, workspaceId });
|
|
692
693
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
693
|
-
|
|
694
|
+
chunkUW3IHMYA_cjs.ChatPage,
|
|
694
695
|
{
|
|
695
696
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
696
697
|
documentsRequired: false,
|
|
@@ -752,35 +753,35 @@ function ConnectedAgentChatPanel({
|
|
|
752
753
|
|
|
753
754
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
754
755
|
enumerable: true,
|
|
755
|
-
get: function () { return
|
|
756
|
+
get: function () { return chunkLR54PQ7N_cjs.ConnectedAssistantDock; }
|
|
756
757
|
});
|
|
757
758
|
Object.defineProperty(exports, "redlineStats", {
|
|
758
759
|
enumerable: true,
|
|
759
|
-
get: function () { return
|
|
760
|
+
get: function () { return chunkLR54PQ7N_cjs.redlineStats; }
|
|
760
761
|
});
|
|
761
762
|
Object.defineProperty(exports, "textToArtifact", {
|
|
762
763
|
enumerable: true,
|
|
763
|
-
get: function () { return
|
|
764
|
+
get: function () { return chunkLR54PQ7N_cjs.textToArtifact; }
|
|
764
765
|
});
|
|
765
766
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
766
767
|
enumerable: true,
|
|
767
|
-
get: function () { return
|
|
768
|
+
get: function () { return chunkLR54PQ7N_cjs.toRedlineMarkdown; }
|
|
768
769
|
});
|
|
769
770
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
770
771
|
enumerable: true,
|
|
771
|
-
get: function () { return
|
|
772
|
+
get: function () { return chunkLR54PQ7N_cjs.useConnectedAiTask; }
|
|
772
773
|
});
|
|
773
774
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
774
775
|
enumerable: true,
|
|
775
|
-
get: function () { return
|
|
776
|
+
get: function () { return chunkLR54PQ7N_cjs.useConnectedChat; }
|
|
776
777
|
});
|
|
777
778
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
778
779
|
enumerable: true,
|
|
779
|
-
get: function () { return
|
|
780
|
+
get: function () { return chunkLR54PQ7N_cjs.useSemanticSearch; }
|
|
780
781
|
});
|
|
781
782
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
782
783
|
enumerable: true,
|
|
783
|
-
get: function () { return
|
|
784
|
+
get: function () { return chunkLR54PQ7N_cjs.useWorkspaceDocs; }
|
|
784
785
|
});
|
|
785
786
|
Object.defineProperty(exports, "ConnectionProvider", {
|
|
786
787
|
enumerable: true,
|