@arbidocs/blocks 0.4.78 → 0.4.80
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 +281 -281
- package/dist/agents/index.js +6 -6
- package/dist/agents/workflows/StepBarFrame.d.ts +8 -2
- package/dist/agents/workflows/stepWindow.d.ts +7 -0
- package/dist/chat/index.cjs +125 -125
- package/dist/chat/index.js +3 -3
- package/dist/{chunk-VFIZYSZB.cjs → chunk-2FEQGDW2.cjs} +28 -12
- package/dist/chunk-2FEQGDW2.cjs.map +1 -0
- package/dist/{chunk-5OC5CGYX.js → chunk-A5WCK6ZG.js} +8 -8
- package/dist/chunk-A5WCK6ZG.js.map +1 -0
- package/dist/{chunk-IF6VAYIA.cjs → chunk-C3DRLFU7.cjs} +5 -5
- package/dist/{chunk-IF6VAYIA.cjs.map → chunk-C3DRLFU7.cjs.map} +1 -1
- package/dist/{chunk-GJV2G4FC.js → chunk-E367ZUHE.js} +3 -3
- package/dist/{chunk-GJV2G4FC.js.map → chunk-E367ZUHE.js.map} +1 -1
- package/dist/{chunk-XMBYDLZQ.cjs → chunk-HUJLKDWX.cjs} +4 -4
- package/dist/{chunk-XMBYDLZQ.cjs.map → chunk-HUJLKDWX.cjs.map} +1 -1
- package/dist/{chunk-ICBAFX5B.js → chunk-LBE36YNZ.js} +3 -3
- package/dist/{chunk-ICBAFX5B.js.map → chunk-LBE36YNZ.js.map} +1 -1
- package/dist/{chunk-SSDISIDW.cjs → chunk-LGDX34UR.cjs} +45 -45
- package/dist/chunk-LGDX34UR.cjs.map +1 -0
- package/dist/{chunk-B3WCKBJ7.cjs → chunk-MFDGNUKX.cjs} +3 -3
- package/dist/{chunk-B3WCKBJ7.cjs.map → chunk-MFDGNUKX.cjs.map} +1 -1
- package/dist/{chunk-MP6FK43E.cjs → chunk-O5NDG4EA.cjs} +3 -3
- package/dist/{chunk-MP6FK43E.cjs.map → chunk-O5NDG4EA.cjs.map} +1 -1
- package/dist/{chunk-DDF5GPIJ.js → chunk-P5ST47VY.js} +3 -3
- package/dist/{chunk-DDF5GPIJ.js.map → chunk-P5ST47VY.js.map} +1 -1
- package/dist/{chunk-EWSEQEPL.js → chunk-PFA43QNX.js} +3 -3
- package/dist/{chunk-EWSEQEPL.js.map → chunk-PFA43QNX.js.map} +1 -1
- package/dist/{chunk-WXRCMIAE.js → chunk-QFA3NCWL.js} +27 -13
- package/dist/chunk-QFA3NCWL.js.map +1 -0
- package/dist/{chunk-CWAZNXC5.js → chunk-SWSVPQNB.js} +30 -8
- package/dist/chunk-SWSVPQNB.js.map +1 -0
- package/dist/{chunk-MLAHDAN5.cjs → chunk-UA2AMDR6.cjs} +30 -8
- package/dist/chunk-UA2AMDR6.cjs.map +1 -0
- package/dist/{chunk-XQDM6T6C.js → chunk-WDD255XQ.js} +3 -3
- package/dist/{chunk-XQDM6T6C.js.map → chunk-WDD255XQ.js.map} +1 -1
- package/dist/{chunk-Z5VUZ6YD.cjs → chunk-ZV3BKLFY.cjs} +3 -3
- package/dist/{chunk-Z5VUZ6YD.cjs.map → chunk-ZV3BKLFY.cjs.map} +1 -1
- package/dist/connect/index.cjs +68 -64
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/connect/index.js +18 -14
- package/dist/connect/index.js.map +1 -1
- package/dist/connection/ConnectedWorkflowRunner.d.ts +16 -1
- package/dist/databases/ColumnConfigFields.d.ts +68 -0
- package/dist/databases/DatabaseColumnDialog.d.ts +27 -2
- package/dist/databases/DatabaseTable.d.ts +8 -1
- package/dist/databases/PickCellEditor.d.ts +21 -0
- package/dist/databases/column-types.d.ts +73 -9
- package/dist/databases/databaseColumns.d.ts +4 -0
- package/dist/databases/index.cjs +758 -27
- package/dist/databases/index.cjs.map +1 -1
- package/dist/databases/index.d.ts +4 -1
- package/dist/databases/index.js +745 -31
- package/dist/databases/index.js.map +1 -1
- package/dist/databases/linkCells.d.ts +48 -0
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/index.cjs +2 -2
- package/dist/files/index.js +2 -2
- package/dist/home/index.cjs +17 -17
- package/dist/home/index.js +3 -3
- package/dist/index.cjs +513 -513
- package/dist/index.js +11 -11
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/index.cjs +35 -35
- package/dist/settings/index.js +2 -2
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +4 -4
- package/dist/studio/index.js +3 -3
- package/dist/workflow-canvas/index.cjs +49 -49
- package/dist/workflow-canvas/index.js +6 -6
- package/dist/workspaces/index.cjs +2 -2
- package/dist/workspaces/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunk-5OC5CGYX.js.map +0 -1
- package/dist/chunk-CWAZNXC5.js.map +0 -1
- package/dist/chunk-MLAHDAN5.cjs.map +0 -1
- package/dist/chunk-SSDISIDW.cjs.map +0 -1
- package/dist/chunk-VFIZYSZB.cjs.map +0 -1
- package/dist/chunk-WXRCMIAE.js.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkMFDGNUKX_cjs = require('../chunk-MFDGNUKX.cjs');
|
|
5
|
+
var chunkHUJLKDWX_cjs = require('../chunk-HUJLKDWX.cjs');
|
|
6
6
|
var chunkTZR36PPP_cjs = require('../chunk-TZR36PPP.cjs');
|
|
7
7
|
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
8
8
|
var chunkZVBPRMHJ_cjs = require('../chunk-ZVBPRMHJ.cjs');
|
|
9
9
|
require('../chunk-7YUFMNFW.cjs');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
require('../chunk-7D737FLE.cjs');
|
|
10
|
+
var chunkUA2AMDR6_cjs = require('../chunk-UA2AMDR6.cjs');
|
|
11
|
+
var chunk2FEQGDW2_cjs = require('../chunk-2FEQGDW2.cjs');
|
|
13
12
|
require('../chunk-DETZZBG2.cjs');
|
|
13
|
+
require('../chunk-7D737FLE.cjs');
|
|
14
14
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
15
15
|
require('../chunk-ADOKTJHV.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunkO5NDG4EA_cjs = require('../chunk-O5NDG4EA.cjs');
|
|
17
17
|
require('../chunk-VGOFFCMT.cjs');
|
|
18
18
|
require('../chunk-B4SRYJLM.cjs');
|
|
19
19
|
require('../chunk-7UTB4PHM.cjs');
|
|
20
20
|
require('../chunk-PPCATBOY.cjs');
|
|
21
|
-
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
22
21
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
23
22
|
require('../chunk-MHVNT4J3.cjs');
|
|
23
|
+
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
24
24
|
require('../chunk-DES3K4SD.cjs');
|
|
25
25
|
var react = require('react');
|
|
26
26
|
var reactQuery = require('@tanstack/react-query');
|
|
@@ -190,7 +190,7 @@ function StreamedArtifact({
|
|
|
190
190
|
}
|
|
191
191
|
var STARTING = /* @__PURE__ */ new Set(["pending", "running"]);
|
|
192
192
|
function formValues(step, inputs) {
|
|
193
|
-
const fields =
|
|
193
|
+
const fields = chunk2FEQGDW2_cjs.stepFields(step);
|
|
194
194
|
if (!fields.length) return void 0;
|
|
195
195
|
if (step.kind === "form")
|
|
196
196
|
return Object.fromEntries(fields.map((f) => [f.name, inputs[f.name] ?? ""]));
|
|
@@ -225,10 +225,10 @@ function useAnswerRetry(missing, refetch) {
|
|
|
225
225
|
function useWorkflowThread(workflow, options = {}) {
|
|
226
226
|
const arbi = react$1.useArbi();
|
|
227
227
|
const { ensureWorkspaceOpen, status } = chunkMUMH3Z6K_cjs.useConnection();
|
|
228
|
-
const { wsId } =
|
|
228
|
+
const { wsId } = chunkHUJLKDWX_cjs.useWorkspaceDocs();
|
|
229
229
|
const [threadId, setThreadId] = react.useState(options.conversationId);
|
|
230
230
|
const [localInputs, setLocalInputs] = react.useState(
|
|
231
|
-
() =>
|
|
231
|
+
() => chunk2FEQGDW2_cjs.initialRunInputs(workflow, options.initialInputs)
|
|
232
232
|
);
|
|
233
233
|
const [edits, setEdits] = react.useState({});
|
|
234
234
|
const [localStates, setLocalStates] = react.useState({});
|
|
@@ -248,12 +248,12 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
248
248
|
);
|
|
249
249
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
250
250
|
const steps = react.useMemo(
|
|
251
|
-
() =>
|
|
251
|
+
() => chunk2FEQGDW2_cjs.workflowSteps(workflow).length > 0 ? chunk2FEQGDW2_cjs.workflowSteps(workflow) : chunk2FEQGDW2_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
252
252
|
[workflow, conversation?.plan?.steps]
|
|
253
253
|
);
|
|
254
254
|
const activity = react$1.useConversationActivity(threadId, { live: !!threadId });
|
|
255
255
|
const serverStates = react.useMemo(
|
|
256
|
-
() =>
|
|
256
|
+
() => chunk2FEQGDW2_cjs.stepStatesFromActivity(activity.data ?? []),
|
|
257
257
|
[activity.data]
|
|
258
258
|
);
|
|
259
259
|
const working = steps.some(
|
|
@@ -305,7 +305,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
305
305
|
if (!id) {
|
|
306
306
|
await ensureWorkspaceOpen();
|
|
307
307
|
const created = await createWork.mutateAsync({
|
|
308
|
-
title:
|
|
308
|
+
title: chunk2FEQGDW2_cjs.runThreadTitle(workflow, values).slice(0, 60),
|
|
309
309
|
description: workflow.description || null,
|
|
310
310
|
prompt: null,
|
|
311
311
|
skill_ref: null,
|
|
@@ -317,7 +317,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
317
317
|
criteria: [],
|
|
318
318
|
max_passes: 3,
|
|
319
319
|
documents: [],
|
|
320
|
-
steps:
|
|
320
|
+
steps: chunk2FEQGDW2_cjs.toPlanSteps(workflow, {
|
|
321
321
|
inputs: values,
|
|
322
322
|
resolveWorkflow: options.resolveWorkflow,
|
|
323
323
|
compose: options.compose
|
|
@@ -372,7 +372,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
372
372
|
[threadId, act]
|
|
373
373
|
);
|
|
374
374
|
const loaded = !options.conversationId || activity.isSuccess || activity.isError;
|
|
375
|
-
const view =
|
|
375
|
+
const view = chunk2FEQGDW2_cjs.useWorkflowView({
|
|
376
376
|
steps,
|
|
377
377
|
states,
|
|
378
378
|
inputs,
|
|
@@ -412,7 +412,7 @@ function WorkflowRunThread({
|
|
|
412
412
|
if (listed && activeThreadId !== conversationId) selectThread(conversationId);
|
|
413
413
|
}, [listed, activeThreadId, conversationId, selectThread]);
|
|
414
414
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
415
|
-
|
|
415
|
+
chunkO5NDG4EA_cjs.ChatPage,
|
|
416
416
|
{
|
|
417
417
|
chat: { ...chat, threads: chat.threads.filter((t) => t.id === conversationId) },
|
|
418
418
|
singleThread: true,
|
|
@@ -444,7 +444,7 @@ function WorkflowSignDialog({
|
|
|
444
444
|
const arbi = react$1.useArbi();
|
|
445
445
|
const { user, ensureWorkspaceOpen } = chunkMUMH3Z6K_cjs.useConnection();
|
|
446
446
|
const tools = documentTools.useOptionalDocumentTools();
|
|
447
|
-
const { id, version } =
|
|
447
|
+
const { id, version } = chunk2FEQGDW2_cjs.splitDocRef(docRef);
|
|
448
448
|
const [pdf, setPdf] = react.useState(null);
|
|
449
449
|
const [failed, setFailed] = react.useState(false);
|
|
450
450
|
react.useEffect(() => {
|
|
@@ -496,7 +496,7 @@ function WorkflowWordDialog({
|
|
|
496
496
|
onClose,
|
|
497
497
|
labels
|
|
498
498
|
}) {
|
|
499
|
-
const { id } =
|
|
499
|
+
const { id } = chunk2FEQGDW2_cjs.splitDocRef(docRef);
|
|
500
500
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
501
501
|
chunkULWRNGGE_cjs.ModalScaffold,
|
|
502
502
|
{
|
|
@@ -598,6 +598,7 @@ function ConnectedWorkflowRunner({
|
|
|
598
598
|
actions: hostActions,
|
|
599
599
|
dialogLabels,
|
|
600
600
|
layout = "thread",
|
|
601
|
+
fileFilter,
|
|
601
602
|
testIdPrefix = "workflow-run",
|
|
602
603
|
...runnerProps
|
|
603
604
|
}) {
|
|
@@ -605,7 +606,7 @@ function ConnectedWorkflowRunner({
|
|
|
605
606
|
const dl = { ...DEFAULT_WORKFLOW_RUNNER_DIALOG_LABELS, ...dialogLabels };
|
|
606
607
|
const arbi = react$1.useArbi();
|
|
607
608
|
const { ensureWorkspaceOpen, user } = chunkMUMH3Z6K_cjs.useConnection();
|
|
608
|
-
const { wsId } =
|
|
609
|
+
const { wsId } = chunkHUJLKDWX_cjs.useWorkspaceDocs();
|
|
609
610
|
const { data: docs = [], refetch } = react$1.useDocuments(wsId);
|
|
610
611
|
const [uploading, setUploading] = react.useState(false);
|
|
611
612
|
const [added, setAdded] = react.useState({});
|
|
@@ -627,7 +628,7 @@ function ConnectedWorkflowRunner({
|
|
|
627
628
|
() => ({
|
|
628
629
|
me: user?.externalId,
|
|
629
630
|
openDocument: onOpenDocument && ((ref) => {
|
|
630
|
-
const { id, version } =
|
|
631
|
+
const { id, version } = chunk2FEQGDW2_cjs.splitDocRef(ref);
|
|
631
632
|
onOpenDocument(id, version);
|
|
632
633
|
}),
|
|
633
634
|
openDraft: onOpenDraft && ((draftId) => onOpenDraft(draftId)),
|
|
@@ -637,7 +638,7 @@ function ConnectedWorkflowRunner({
|
|
|
637
638
|
const w = state.waiting;
|
|
638
639
|
if (w?.doc_ext_id) setDialog({ kind: "sign", docRef: w.doc_ext_id });
|
|
639
640
|
}),
|
|
640
|
-
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(
|
|
641
|
+
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(chunk2FEQGDW2_cjs.splitDocRef(ref).id) ?? "" })),
|
|
641
642
|
openReview: hostActions?.openReview ?? ((tags, documents) => setDialog({ kind: "review", tags, documents }))
|
|
642
643
|
}),
|
|
643
644
|
[user?.externalId, onOpenDocument, onOpenDraft, onOpenMessage, hostActions, nameOfDoc, inThread]
|
|
@@ -659,12 +660,7 @@ function ConnectedWorkflowRunner({
|
|
|
659
660
|
},
|
|
660
661
|
[arbi, ensureWorkspaceOpen, refetch]
|
|
661
662
|
);
|
|
662
|
-
const files = docs
|
|
663
|
-
id: d.external_id,
|
|
664
|
-
name: d.file_name ?? d.external_id,
|
|
665
|
-
status: fileStatus(d.status),
|
|
666
|
-
addedFor: added[d.external_id]
|
|
667
|
-
}));
|
|
663
|
+
const files = runnerFiles(docs, added, fileFilter);
|
|
668
664
|
const reading = files.some((f) => f.addedFor && f.status === "processing");
|
|
669
665
|
react.useEffect(() => {
|
|
670
666
|
if (!reading) return;
|
|
@@ -716,7 +712,7 @@ function ConnectedWorkflowRunner({
|
|
|
716
712
|
);
|
|
717
713
|
};
|
|
718
714
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
719
|
-
|
|
715
|
+
chunk2FEQGDW2_cjs.WorkflowRunner,
|
|
720
716
|
{
|
|
721
717
|
people,
|
|
722
718
|
...runnerProps,
|
|
@@ -760,10 +756,10 @@ function ConnectedWorkflowRunner({
|
|
|
760
756
|
) }),
|
|
761
757
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
762
758
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
763
|
-
|
|
759
|
+
chunk2FEQGDW2_cjs.WorkflowStepBar,
|
|
764
760
|
{
|
|
765
761
|
run: view,
|
|
766
|
-
levels:
|
|
762
|
+
levels: chunk2FEQGDW2_cjs.stepLevels(view.steps),
|
|
767
763
|
doneTitle: (workflow.run.kind === "steps" ? workflow.run.completion?.title : void 0) ?? runnerProps.labels?.complete ?? "Done",
|
|
768
764
|
icon: (key) => key && runnerProps.renderIcon ? runnerProps.renderIcon(key) : void 0,
|
|
769
765
|
tid: (suffix) => `${testIdPrefix}-${suffix}`
|
|
@@ -804,6 +800,14 @@ function ConnectedWorkflowRunner({
|
|
|
804
800
|
] });
|
|
805
801
|
}
|
|
806
802
|
var READ_POLL_MS = 3e3;
|
|
803
|
+
function runnerFiles(docs, added, fileFilter) {
|
|
804
|
+
return docs.filter((d) => !fileFilter || added[d.external_id] || fileFilter(d)).map((d) => ({
|
|
805
|
+
id: d.external_id,
|
|
806
|
+
name: d.file_name ?? d.external_id,
|
|
807
|
+
status: fileStatus(d.status),
|
|
808
|
+
addedFor: added[d.external_id]
|
|
809
|
+
}));
|
|
810
|
+
}
|
|
807
811
|
function fileStatus(status) {
|
|
808
812
|
const s = status?.toLowerCase();
|
|
809
813
|
if (!s) return void 0;
|
|
@@ -900,7 +904,7 @@ function ConnectedTagMatrix({
|
|
|
900
904
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
901
905
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
902
906
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
903
|
-
|
|
907
|
+
chunkUA2AMDR6_cjs.TagMatrix,
|
|
904
908
|
{
|
|
905
909
|
...props,
|
|
906
910
|
matrix: matrix.data,
|
|
@@ -926,7 +930,7 @@ function ConnectedTagMatrix({
|
|
|
926
930
|
const data = matrix.data;
|
|
927
931
|
if (!data) return;
|
|
928
932
|
const title = exportTitle ?? data.parent?.name ?? "Matrix";
|
|
929
|
-
const markdown =
|
|
933
|
+
const markdown = chunkUA2AMDR6_cjs.tagMatrixMarkdown(data, {
|
|
930
934
|
title,
|
|
931
935
|
nameOf: (id2) => people.find((p) => p.value === id2)?.label
|
|
932
936
|
});
|
|
@@ -1020,12 +1024,12 @@ function ConnectedProfileCard({ notify: notify3, title = "Profile" }) {
|
|
|
1020
1024
|
}
|
|
1021
1025
|
});
|
|
1022
1026
|
const display = profile?.fullName || user?.name || "Unnamed";
|
|
1023
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1024
|
-
|
|
1027
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMFDGNUKX_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserCircle, {}), title, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1028
|
+
chunkMFDGNUKX_cjs.ProfileCard,
|
|
1025
1029
|
{
|
|
1026
1030
|
avatar: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1027
1031
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1028
|
-
|
|
1032
|
+
chunkMFDGNUKX_cjs.AvatarPicker,
|
|
1029
1033
|
{
|
|
1030
1034
|
pictureUrl: profile?.picture ?? user?.picture,
|
|
1031
1035
|
initials: chunkKDG6FER6_cjs.initials(display),
|
|
@@ -1067,9 +1071,9 @@ function ConnectedIdentityVerification({
|
|
|
1067
1071
|
onNameAccepted: () => notify3?.("Name updated to match your ID", "success")
|
|
1068
1072
|
});
|
|
1069
1073
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1070
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1074
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkMFDGNUKX_cjs.IdentityVerificationCard, { flow, labels }),
|
|
1071
1075
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1072
|
-
|
|
1076
|
+
chunkMFDGNUKX_cjs.IdentityVerificationDialog,
|
|
1073
1077
|
{
|
|
1074
1078
|
flow,
|
|
1075
1079
|
accountName: profile?.fullName ?? "",
|
|
@@ -1081,7 +1085,7 @@ function ConnectedIdentityVerification({
|
|
|
1081
1085
|
function ConnectedRequireVerified({ children, labels }) {
|
|
1082
1086
|
const { data: profile } = react$1.useProfile();
|
|
1083
1087
|
const flow = react$1.useIdentityVerification();
|
|
1084
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1088
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMFDGNUKX_cjs.RequireVerified, { flow, accountName: profile?.fullName ?? "", labels, children });
|
|
1085
1089
|
}
|
|
1086
1090
|
function defaultUnmetPasswordRequirement(password) {
|
|
1087
1091
|
if (password.length < 8) return "Minimum 8 characters";
|
|
@@ -1110,10 +1114,10 @@ function ConnectedSecuritySection({
|
|
|
1110
1114
|
},
|
|
1111
1115
|
onClose: () => setOpen(false)
|
|
1112
1116
|
});
|
|
1113
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1114
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1117
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkMFDGNUKX_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.KeyRound, {}), title: "Security", children: [
|
|
1118
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkMFDGNUKX_cjs.SettingsCard, { padding: "sm", children: [
|
|
1115
1119
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1116
|
-
|
|
1120
|
+
chunkMFDGNUKX_cjs.SettingsActionRow,
|
|
1117
1121
|
{
|
|
1118
1122
|
title: "Change password",
|
|
1119
1123
|
description: "Used to sign in and to encrypt your data. Changing it re-encrypts everything in your account.",
|
|
@@ -1124,7 +1128,7 @@ function ConnectedSecuritySection({
|
|
|
1124
1128
|
children
|
|
1125
1129
|
] }),
|
|
1126
1130
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1127
|
-
|
|
1131
|
+
chunkMFDGNUKX_cjs.PasswordChangeDialog,
|
|
1128
1132
|
{
|
|
1129
1133
|
open,
|
|
1130
1134
|
onClose: form.onCancel,
|
|
@@ -1148,23 +1152,23 @@ function ConnectedSecuritySection({
|
|
|
1148
1152
|
] });
|
|
1149
1153
|
}
|
|
1150
1154
|
function ConnectedNotificationPreferences({
|
|
1151
|
-
categories =
|
|
1155
|
+
categories = chunkMFDGNUKX_cjs.EMAIL_NOTIFICATION_CATEGORIES,
|
|
1152
1156
|
title = "Notifications"
|
|
1153
1157
|
}) {
|
|
1154
1158
|
const keys = react.useMemo(
|
|
1155
|
-
() => categories ===
|
|
1159
|
+
() => categories === chunkMFDGNUKX_cjs.EMAIL_NOTIFICATION_CATEGORIES ? chunkMFDGNUKX_cjs.EMAIL_NOTIFICATION_KEYS : categories.map((c) => c.key),
|
|
1156
1160
|
[categories]
|
|
1157
1161
|
);
|
|
1158
1162
|
const prefs = react$1.useNotificationPreferences(keys);
|
|
1159
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1160
|
-
|
|
1163
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMFDGNUKX_cjs.SettingsSection, { title, children: /* @__PURE__ */ jsxRuntime.jsx(chunkMFDGNUKX_cjs.SettingsCard, { className: "space-y-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1164
|
+
chunkMFDGNUKX_cjs.NotificationCategoryList,
|
|
1161
1165
|
{
|
|
1162
1166
|
masterId: "emailNotifications",
|
|
1163
1167
|
masterTitle: "Email Notifications",
|
|
1164
1168
|
masterDescription: "Email me about activity when I\u2019m away",
|
|
1165
1169
|
masterChecked: prefs.masterChecked,
|
|
1166
1170
|
onMasterChange: prefs.setAll,
|
|
1167
|
-
categories:
|
|
1171
|
+
categories: chunkMFDGNUKX_cjs.toNotificationCategories(prefs.checked, categories),
|
|
1168
1172
|
onCategoryChange: prefs.setCategory
|
|
1169
1173
|
}
|
|
1170
1174
|
) }) });
|
|
@@ -1178,14 +1182,14 @@ function ConnectedSessionsRow({
|
|
|
1178
1182
|
const sessions = react$1.useSessions({ enabled: open });
|
|
1179
1183
|
const currentSessionId = react$1.useCurrentSessionId();
|
|
1180
1184
|
const terminate = react$1.useTerminateSession();
|
|
1181
|
-
const views =
|
|
1185
|
+
const views = chunkMFDGNUKX_cjs.toActiveSessionViews(sessions.data ?? [], {
|
|
1182
1186
|
currentSessionId,
|
|
1183
1187
|
terminatingId: terminate.isPending ? terminate.variables : null,
|
|
1184
1188
|
renderIcon: renderSessionIcon
|
|
1185
1189
|
});
|
|
1186
1190
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1187
1191
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1188
|
-
|
|
1192
|
+
chunkMFDGNUKX_cjs.SettingsRow,
|
|
1189
1193
|
{
|
|
1190
1194
|
label: "Active sessions",
|
|
1191
1195
|
description: "Devices and agents currently signed in to your account.",
|
|
@@ -1207,7 +1211,7 @@ function ConnectedSessionsRow({
|
|
|
1207
1211
|
}
|
|
1208
1212
|
),
|
|
1209
1213
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1210
|
-
|
|
1214
|
+
chunkMFDGNUKX_cjs.ActiveSessionsDialog,
|
|
1211
1215
|
{
|
|
1212
1216
|
open,
|
|
1213
1217
|
onOpenChange: setOpen,
|
|
@@ -1242,7 +1246,7 @@ function ConnectedLogoutDialog({
|
|
|
1242
1246
|
const sessions = react$1.useSessions({ enabled: open });
|
|
1243
1247
|
const logoutAll = react$1.useLogoutAllSessions();
|
|
1244
1248
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1245
|
-
|
|
1249
|
+
chunkMFDGNUKX_cjs.LogoutDialog,
|
|
1246
1250
|
{
|
|
1247
1251
|
open,
|
|
1248
1252
|
onClose,
|
|
@@ -1256,7 +1260,7 @@ function ConnectedLogoutDialog({
|
|
|
1256
1260
|
},
|
|
1257
1261
|
canLogoutAll: true,
|
|
1258
1262
|
isOnline,
|
|
1259
|
-
sessions:
|
|
1263
|
+
sessions: chunkMFDGNUKX_cjs.toLogoutSessionViews(sessions.data ?? []),
|
|
1260
1264
|
renderSessionIcon
|
|
1261
1265
|
}
|
|
1262
1266
|
);
|
|
@@ -1275,7 +1279,7 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
1275
1279
|
});
|
|
1276
1280
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1277
1281
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1278
|
-
|
|
1282
|
+
chunkMFDGNUKX_cjs.SettingsDangerZone,
|
|
1279
1283
|
{
|
|
1280
1284
|
isOpen: zoneOpen,
|
|
1281
1285
|
onToggle: () => setZoneOpen((o) => !o),
|
|
@@ -1295,12 +1299,12 @@ function ConnectedDangerZone({ notify: notify3, renderSubscriptionLink }) {
|
|
|
1295
1299
|
}
|
|
1296
1300
|
),
|
|
1297
1301
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1298
|
-
|
|
1302
|
+
chunkMFDGNUKX_cjs.DeleteAccountDialog,
|
|
1299
1303
|
{
|
|
1300
1304
|
open: dialogOpen,
|
|
1301
1305
|
onClose: flow.onClose,
|
|
1302
1306
|
step: flow.step,
|
|
1303
|
-
blockers:
|
|
1307
|
+
blockers: chunkMFDGNUKX_cjs.toDeleteBlockerViews(flow.blockers, renderSubscriptionLink),
|
|
1304
1308
|
onContinue: flow.onContinue,
|
|
1305
1309
|
onBack: flow.onBack,
|
|
1306
1310
|
userEmail: user?.email ?? "",
|
|
@@ -1485,7 +1489,7 @@ function mapWorkNotification(note) {
|
|
|
1485
1489
|
function ActiveChat({ agentId, workspaceId }) {
|
|
1486
1490
|
const chat = react$1.useArbiChat({ agentId, workspaceId });
|
|
1487
1491
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1488
|
-
|
|
1492
|
+
chunkO5NDG4EA_cjs.ChatPage,
|
|
1489
1493
|
{
|
|
1490
1494
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
1491
1495
|
documentsRequired: false,
|
|
@@ -1547,35 +1551,35 @@ function ConnectedAgentChatPanel({
|
|
|
1547
1551
|
|
|
1548
1552
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
1549
1553
|
enumerable: true,
|
|
1550
|
-
get: function () { return
|
|
1554
|
+
get: function () { return chunkHUJLKDWX_cjs.ConnectedAssistantDock; }
|
|
1551
1555
|
});
|
|
1552
1556
|
Object.defineProperty(exports, "redlineStats", {
|
|
1553
1557
|
enumerable: true,
|
|
1554
|
-
get: function () { return
|
|
1558
|
+
get: function () { return chunkHUJLKDWX_cjs.redlineStats; }
|
|
1555
1559
|
});
|
|
1556
1560
|
Object.defineProperty(exports, "textToArtifact", {
|
|
1557
1561
|
enumerable: true,
|
|
1558
|
-
get: function () { return
|
|
1562
|
+
get: function () { return chunkHUJLKDWX_cjs.textToArtifact; }
|
|
1559
1563
|
});
|
|
1560
1564
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
1561
1565
|
enumerable: true,
|
|
1562
|
-
get: function () { return
|
|
1566
|
+
get: function () { return chunkHUJLKDWX_cjs.toRedlineMarkdown; }
|
|
1563
1567
|
});
|
|
1564
1568
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
1565
1569
|
enumerable: true,
|
|
1566
|
-
get: function () { return
|
|
1570
|
+
get: function () { return chunkHUJLKDWX_cjs.useConnectedAiTask; }
|
|
1567
1571
|
});
|
|
1568
1572
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
1569
1573
|
enumerable: true,
|
|
1570
|
-
get: function () { return
|
|
1574
|
+
get: function () { return chunkHUJLKDWX_cjs.useConnectedChat; }
|
|
1571
1575
|
});
|
|
1572
1576
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
1573
1577
|
enumerable: true,
|
|
1574
|
-
get: function () { return
|
|
1578
|
+
get: function () { return chunkHUJLKDWX_cjs.useSemanticSearch; }
|
|
1575
1579
|
});
|
|
1576
1580
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
1577
1581
|
enumerable: true,
|
|
1578
|
-
get: function () { return
|
|
1582
|
+
get: function () { return chunkHUJLKDWX_cjs.useWorkspaceDocs; }
|
|
1579
1583
|
});
|
|
1580
1584
|
Object.defineProperty(exports, "ConnectionProvider", {
|
|
1581
1585
|
enumerable: true,
|