@arbidocs/blocks 0.4.128 → 0.4.129
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 +21 -7
- package/dist/{StreamedArtifactEditor-EEYAXJ4H.cjs → StreamedArtifactEditor-TQAND4H5.cjs} +6 -5
- package/dist/StreamedArtifactEditor-TQAND4H5.cjs.map +1 -0
- package/dist/{StreamedArtifactEditor-TDATDYD2.js → StreamedArtifactEditor-XQNANTWM.js} +4 -3
- package/dist/StreamedArtifactEditor-XQNANTWM.js.map +1 -0
- package/dist/agents/index.cjs +303 -303
- package/dist/agents/index.js +11 -11
- package/dist/artifacts/ArtifactCodeView.d.ts +6 -0
- package/dist/artifacts/ArtifactPreview.d.ts +22 -0
- package/dist/artifacts/index.cjs +50 -21
- package/dist/artifacts/index.d.ts +3 -0
- package/dist/artifacts/index.js +2 -1
- package/dist/artifacts/sandbox-policy.d.ts +34 -0
- package/dist/artifacts/sandboxDocument.d.ts +7 -0
- package/dist/calendar/index.cjs +156 -243
- package/dist/calendar/index.cjs.map +1 -1
- package/dist/calendar/index.js +8 -151
- package/dist/calendar/index.js.map +1 -1
- package/dist/calls/index.cjs +1 -1
- package/dist/calls/index.js +1 -1
- package/dist/chat/index.cjs +135 -135
- package/dist/chat/index.js +4 -4
- package/dist/{chunk-7HAM7Y5U.js → chunk-2DFDFOM7.js} +3 -3
- package/dist/{chunk-7HAM7Y5U.js.map → chunk-2DFDFOM7.js.map} +1 -1
- package/dist/{chunk-54ANPPMV.js → chunk-2PNNCEPH.js} +4 -4
- package/dist/{chunk-54ANPPMV.js.map → chunk-2PNNCEPH.js.map} +1 -1
- package/dist/{chunk-INW76PEL.cjs → chunk-2YV7FBLO.cjs} +175 -2
- package/dist/chunk-2YV7FBLO.cjs.map +1 -0
- package/dist/{chunk-P5ST47VY.js → chunk-5Y7JRY7Y.js} +3 -3
- package/dist/{chunk-P5ST47VY.js.map → chunk-5Y7JRY7Y.js.map} +1 -1
- package/dist/{chunk-KELGOCJA.js → chunk-65S53MZK.js} +174 -5
- package/dist/chunk-65S53MZK.js.map +1 -0
- package/dist/{chunk-HM23LXUP.cjs → chunk-6AALMYPS.cjs} +3 -3
- package/dist/{chunk-HM23LXUP.cjs.map → chunk-6AALMYPS.cjs.map} +1 -1
- package/dist/{chunk-7BJRLP3U.js → chunk-6BTCDKCK.js} +3 -3
- package/dist/{chunk-7BJRLP3U.js.map → chunk-6BTCDKCK.js.map} +1 -1
- package/dist/{chunk-FSBY2S4V.cjs → chunk-7423V6RM.cjs} +4 -4
- package/dist/{chunk-FSBY2S4V.cjs.map → chunk-7423V6RM.cjs.map} +1 -1
- package/dist/{chunk-NZUQFF35.cjs → chunk-DZYAAL4H.cjs} +5 -5
- package/dist/{chunk-NZUQFF35.cjs.map → chunk-DZYAAL4H.cjs.map} +1 -1
- package/dist/{chunk-VW2C2AZL.js → chunk-ENDP7JER.js} +3 -3
- package/dist/{chunk-VW2C2AZL.js.map → chunk-ENDP7JER.js.map} +1 -1
- package/dist/{chunk-ZCHSJUCI.js → chunk-H2KQ6OSU.js} +3 -3
- package/dist/{chunk-ZCHSJUCI.js.map → chunk-H2KQ6OSU.js.map} +1 -1
- package/dist/{chunk-KLOSOT26.js → chunk-HSFLEVZY.js} +10 -10
- package/dist/{chunk-KLOSOT26.js.map → chunk-HSFLEVZY.js.map} +1 -1
- package/dist/{chunk-W27VK32R.cjs → chunk-JLTXVW25.cjs} +78 -78
- package/dist/{chunk-W27VK32R.cjs.map → chunk-JLTXVW25.cjs.map} +1 -1
- package/dist/{chunk-D4YR56FV.cjs → chunk-KYDRUFWT.cjs} +5 -5
- package/dist/{chunk-D4YR56FV.cjs.map → chunk-KYDRUFWT.cjs.map} +1 -1
- package/dist/chunk-NS4JD2VR.js +22 -0
- package/dist/chunk-NS4JD2VR.js.map +1 -0
- package/dist/{chunk-ZV3BKLFY.cjs → chunk-NYHGG2IA.cjs} +3 -3
- package/dist/{chunk-ZV3BKLFY.cjs.map → chunk-NYHGG2IA.cjs.map} +1 -1
- package/dist/{chunk-WV4IDVDQ.cjs → chunk-PJJY6CYL.cjs} +11 -11
- package/dist/{chunk-WV4IDVDQ.cjs.map → chunk-PJJY6CYL.cjs.map} +1 -1
- package/dist/{chunk-CXLVI3SB.js → chunk-PUCY3UXN.js} +3 -3
- package/dist/{chunk-CXLVI3SB.js.map → chunk-PUCY3UXN.js.map} +1 -1
- package/dist/{chunk-LC2KJSUS.cjs → chunk-SARREDFP.cjs} +46 -46
- package/dist/{chunk-LC2KJSUS.cjs.map → chunk-SARREDFP.cjs.map} +1 -1
- package/dist/chunk-TGJNPKST.js +153 -0
- package/dist/chunk-TGJNPKST.js.map +1 -0
- package/dist/chunk-TGWTLNXW.cjs +177 -0
- package/dist/chunk-TGWTLNXW.cjs.map +1 -0
- package/dist/chunk-VG24E4JJ.cjs +26 -0
- package/dist/chunk-VG24E4JJ.cjs.map +1 -0
- package/dist/collaboration/index.cjs +9 -9
- package/dist/collaboration/index.js +1 -1
- package/dist/components/DroppableContainer.d.ts +6 -0
- package/dist/components/GridRowNavigator.d.ts +29 -0
- package/dist/components/LoadingIndicator.d.ts +21 -0
- package/dist/components/RowNavigatorControls.d.ts +29 -0
- package/dist/components/SharedCell.d.ts +27 -0
- package/dist/connect/index.cjs +45 -45
- package/dist/connect/index.js +12 -12
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/facts/index.cjs +6 -24
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.d.ts +0 -1
- package/dist/facts/index.js +7 -23
- package/dist/facts/index.js.map +1 -1
- package/dist/files/index.cjs +1 -1
- package/dist/files/index.js +1 -1
- package/dist/home/index.cjs +17 -17
- package/dist/home/index.js +3 -3
- package/dist/index.cjs +681 -499
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +199 -22
- package/dist/index.js.map +1 -1
- package/dist/sandboxDocument-JLEETIWW.js +71 -0
- package/dist/sandboxDocument-JLEETIWW.js.map +1 -0
- package/dist/sandboxDocument-WQUNODSC.cjs +76 -0
- package/dist/sandboxDocument-WQUNODSC.cjs.map +1 -0
- package/dist/settings/DraggableHeader.d.ts +10 -0
- package/dist/settings/FilterChip.d.ts +15 -0
- package/dist/settings/MessageJsonTree.d.ts +7 -0
- package/dist/settings/index.cjs +259 -16
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.d.ts +3 -0
- package/dist/settings/index.js +250 -10
- package/dist/settings/index.js.map +1 -1
- package/dist/settings/message-schema-hints.d.ts +19 -0
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +6 -6
- package/dist/studio/index.js +5 -5
- package/dist/workflow-canvas/index.cjs +62 -62
- package/dist/workflow-canvas/index.js +11 -11
- package/dist/workspaces/index.cjs +39 -0
- package/dist/workspaces/index.cjs.map +1 -1
- package/dist/workspaces/index.d.ts +1 -0
- package/dist/workspaces/index.js +36 -1
- package/dist/workspaces/index.js.map +1 -1
- package/dist/workspaces/workspace-type.d.ts +29 -0
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -4
- package/dist/StreamedArtifactEditor-EEYAXJ4H.cjs.map +0 -1
- package/dist/StreamedArtifactEditor-TDATDYD2.js.map +0 -1
- package/dist/chunk-INW76PEL.cjs.map +0 -1
- package/dist/chunk-KELGOCJA.js.map +0 -1
- package/dist/facts/timezone.d.ts +0 -4
package/dist/connect/index.cjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
+
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
4
5
|
var chunkOR4CO743_cjs = require('../chunk-OR4CO743.cjs');
|
|
5
|
-
var
|
|
6
|
+
var chunk7423V6RM_cjs = require('../chunk-7423V6RM.cjs');
|
|
6
7
|
var chunk3BJLNKOB_cjs = require('../chunk-3BJLNKOB.cjs');
|
|
7
8
|
var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
8
9
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
9
10
|
require('../chunk-S24XEVPS.cjs');
|
|
10
11
|
require('../chunk-V5OAXIBN.cjs');
|
|
11
12
|
require('../chunk-5FYU7ZIU.cjs');
|
|
12
|
-
var
|
|
13
|
-
var chunkD4YR56FV_cjs = require('../chunk-D4YR56FV.cjs');
|
|
13
|
+
var chunkKYDRUFWT_cjs = require('../chunk-KYDRUFWT.cjs');
|
|
14
14
|
var chunkO6IEZDRC_cjs = require('../chunk-O6IEZDRC.cjs');
|
|
15
15
|
var chunkI2QSDQQV_cjs = require('../chunk-I2QSDQQV.cjs');
|
|
16
16
|
require('../chunk-RC25WMVB.cjs');
|
|
17
|
-
var
|
|
18
|
-
require('../chunk-7D737FLE.cjs');
|
|
19
|
-
var chunkN26CXGXC_cjs = require('../chunk-N26CXGXC.cjs');
|
|
17
|
+
var chunkSARREDFP_cjs = require('../chunk-SARREDFP.cjs');
|
|
20
18
|
require('../chunk-DETZZBG2.cjs');
|
|
19
|
+
var chunkN26CXGXC_cjs = require('../chunk-N26CXGXC.cjs');
|
|
21
20
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
22
21
|
require('../chunk-C2CWWEHO.cjs');
|
|
22
|
+
require('../chunk-7D737FLE.cjs');
|
|
23
23
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
24
24
|
require('../chunk-ADOKTJHV.cjs');
|
|
25
25
|
var chunkZAVEMQ37_cjs = require('../chunk-ZAVEMQ37.cjs');
|
|
26
|
-
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
27
26
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
28
|
-
var
|
|
27
|
+
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
28
|
+
var chunkPJJY6CYL_cjs = require('../chunk-PJJY6CYL.cjs');
|
|
29
29
|
require('../chunk-B6MVQCXW.cjs');
|
|
30
30
|
var chunkSWQX6CTT_cjs = require('../chunk-SWQX6CTT.cjs');
|
|
31
|
-
var
|
|
32
|
-
require('../chunk-7UTB4PHM.cjs');
|
|
31
|
+
var chunk6AALMYPS_cjs = require('../chunk-6AALMYPS.cjs');
|
|
33
32
|
require('../chunk-32HW2Q33.cjs');
|
|
33
|
+
require('../chunk-7UTB4PHM.cjs');
|
|
34
34
|
require('../chunk-FX3K6LNZ.cjs');
|
|
35
35
|
require('../chunk-PPCATBOY.cjs');
|
|
36
36
|
require('../chunk-MHVNT4J3.cjs');
|
|
@@ -124,7 +124,7 @@ function ConnectedWorkspaceActivity({
|
|
|
124
124
|
[feed.data]
|
|
125
125
|
);
|
|
126
126
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
127
|
-
|
|
127
|
+
chunkKYDRUFWT_cjs.WorkspaceActivityList,
|
|
128
128
|
{
|
|
129
129
|
...listProps,
|
|
130
130
|
items,
|
|
@@ -150,7 +150,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
150
150
|
});
|
|
151
151
|
if (!workspaceId) return null;
|
|
152
152
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
153
|
-
|
|
153
|
+
chunkKYDRUFWT_cjs.WorkspaceNotificationMenu,
|
|
154
154
|
{
|
|
155
155
|
...menuProps,
|
|
156
156
|
level,
|
|
@@ -169,7 +169,7 @@ function ConnectedThreadFollow({
|
|
|
169
169
|
enabled: status === "authenticated"
|
|
170
170
|
});
|
|
171
171
|
if (!conversationId) return null;
|
|
172
|
-
const Control = as === "menu-item" ?
|
|
172
|
+
const Control = as === "menu-item" ? chunkKYDRUFWT_cjs.ThreadFollowMenuItem : chunkKYDRUFWT_cjs.ThreadFollowButton;
|
|
173
173
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
174
174
|
Control,
|
|
175
175
|
{
|
|
@@ -222,7 +222,7 @@ function ConnectedSkillUpload() {
|
|
|
222
222
|
upload.error && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "text-sm text-destructive", children: upload.error.message })
|
|
223
223
|
] });
|
|
224
224
|
}
|
|
225
|
-
var StreamedArtifactEditor = react.lazy(() => import('../StreamedArtifactEditor-
|
|
225
|
+
var StreamedArtifactEditor = react.lazy(() => import('../StreamedArtifactEditor-TQAND4H5.cjs'));
|
|
226
226
|
function StreamedArtifact({
|
|
227
227
|
artifacts: artifacts$1,
|
|
228
228
|
workspaceId,
|
|
@@ -295,7 +295,7 @@ function StreamedArtifact({
|
|
|
295
295
|
}
|
|
296
296
|
var STARTING = /* @__PURE__ */ new Set(["pending", "running"]);
|
|
297
297
|
function formValues(step, inputs) {
|
|
298
|
-
const fields =
|
|
298
|
+
const fields = chunk6AALMYPS_cjs.stepFields(step);
|
|
299
299
|
if (!fields.length) return void 0;
|
|
300
300
|
if (step.kind === "form")
|
|
301
301
|
return Object.fromEntries(fields.map((f) => [f.name, inputs[f.name] ?? ""]));
|
|
@@ -330,10 +330,10 @@ function useAnswerRetry(missing, refetch) {
|
|
|
330
330
|
function useWorkflowThread(workflow, options = {}) {
|
|
331
331
|
const arbi = react$1.useArbi();
|
|
332
332
|
const { ensureWorkspaceOpen, status } = chunkMUMH3Z6K_cjs.useConnection();
|
|
333
|
-
const { wsId } =
|
|
333
|
+
const { wsId } = chunk7423V6RM_cjs.useWorkspaceDocs();
|
|
334
334
|
const [threadId, setThreadId] = react.useState(options.conversationId);
|
|
335
335
|
const [localInputs, setLocalInputs] = react.useState(
|
|
336
|
-
() =>
|
|
336
|
+
() => chunk6AALMYPS_cjs.initialRunInputs(workflow, options.initialInputs)
|
|
337
337
|
);
|
|
338
338
|
const [edits, setEdits] = react.useState({});
|
|
339
339
|
const [localStates, setLocalStates] = react.useState({});
|
|
@@ -353,12 +353,12 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
353
353
|
);
|
|
354
354
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
355
355
|
const steps = react.useMemo(
|
|
356
|
-
() =>
|
|
356
|
+
() => chunk6AALMYPS_cjs.workflowSteps(workflow).length > 0 ? chunk6AALMYPS_cjs.workflowSteps(workflow) : chunkSARREDFP_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
357
357
|
[workflow, conversation?.plan?.steps]
|
|
358
358
|
);
|
|
359
359
|
const activity = react$1.useConversationActivity(threadId, { live: !!threadId });
|
|
360
360
|
const serverStates = react.useMemo(
|
|
361
|
-
() =>
|
|
361
|
+
() => chunk6AALMYPS_cjs.stepStatesFromActivity(activity.data ?? []),
|
|
362
362
|
[activity.data]
|
|
363
363
|
);
|
|
364
364
|
const working = steps.some(
|
|
@@ -401,7 +401,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
401
401
|
async (values, done) => {
|
|
402
402
|
await ensureWorkspaceOpen();
|
|
403
403
|
const created = await createWork.mutateAsync({
|
|
404
|
-
title:
|
|
404
|
+
title: chunk6AALMYPS_cjs.runThreadTitle(workflow, values).slice(0, 60),
|
|
405
405
|
description: workflow.description || null,
|
|
406
406
|
prompt: null,
|
|
407
407
|
skill_ref: null,
|
|
@@ -413,7 +413,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
413
413
|
criteria: [],
|
|
414
414
|
max_passes: 3,
|
|
415
415
|
documents: [],
|
|
416
|
-
steps:
|
|
416
|
+
steps: chunkSARREDFP_cjs.toPlanSteps(workflow, {
|
|
417
417
|
inputs: values,
|
|
418
418
|
resolveWorkflow: options.resolveWorkflow,
|
|
419
419
|
compose: options.compose
|
|
@@ -500,7 +500,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
500
500
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
501
501
|
const needsStart = !threadId || idle && !anyRunning;
|
|
502
502
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
503
|
-
const view =
|
|
503
|
+
const view = chunkSARREDFP_cjs.useWorkflowView({
|
|
504
504
|
steps,
|
|
505
505
|
states,
|
|
506
506
|
inputs,
|
|
@@ -543,7 +543,7 @@ function WorkflowRunThread({
|
|
|
543
543
|
if (listed && activeThreadId !== conversationId) selectThread(conversationId);
|
|
544
544
|
}, [listed, activeThreadId, conversationId, selectThread]);
|
|
545
545
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
546
|
-
|
|
546
|
+
chunkPJJY6CYL_cjs.ChatPage,
|
|
547
547
|
{
|
|
548
548
|
chat: { ...chat, threads: chat.threads.filter((t) => t.id === conversationId) },
|
|
549
549
|
singleThread: true,
|
|
@@ -581,7 +581,7 @@ function WorkflowSignDialog({
|
|
|
581
581
|
const arbi = react$1.useArbi();
|
|
582
582
|
const { user, ensureWorkspaceOpen } = chunkMUMH3Z6K_cjs.useConnection();
|
|
583
583
|
const tools = documentTools.useOptionalDocumentTools();
|
|
584
|
-
const { id, version: stepVersion } =
|
|
584
|
+
const { id, version: stepVersion } = chunk6AALMYPS_cjs.splitDocRef(docRef);
|
|
585
585
|
const [version, setVersion] = react.useState(stepVersion);
|
|
586
586
|
const [pdf, setPdf] = react.useState(null);
|
|
587
587
|
const [preparing, setPreparing] = react.useState(false);
|
|
@@ -659,7 +659,7 @@ function WorkflowWordDialog({
|
|
|
659
659
|
onClose,
|
|
660
660
|
labels
|
|
661
661
|
}) {
|
|
662
|
-
const { id } =
|
|
662
|
+
const { id } = chunk6AALMYPS_cjs.splitDocRef(docRef);
|
|
663
663
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
664
664
|
chunkULWRNGGE_cjs.ModalScaffold,
|
|
665
665
|
{
|
|
@@ -808,7 +808,7 @@ function ConnectedWorkflowRunner({
|
|
|
808
808
|
const dl = { ...DEFAULT_WORKFLOW_RUNNER_DIALOG_LABELS, ...dialogLabels };
|
|
809
809
|
const arbi = react$1.useArbi();
|
|
810
810
|
const { ensureWorkspaceOpen, user } = chunkMUMH3Z6K_cjs.useConnection();
|
|
811
|
-
const { wsId } =
|
|
811
|
+
const { wsId } = chunk7423V6RM_cjs.useWorkspaceDocs();
|
|
812
812
|
const { data: docs = [], refetch } = react$1.useDocuments(wsId);
|
|
813
813
|
const [sending, setSending] = react.useState([]);
|
|
814
814
|
const [added, setAdded] = react.useState({});
|
|
@@ -831,7 +831,7 @@ function ConnectedWorkflowRunner({
|
|
|
831
831
|
() => ({
|
|
832
832
|
me: user?.externalId,
|
|
833
833
|
openDocument: onOpenDocument && ((ref) => {
|
|
834
|
-
const { id, version } =
|
|
834
|
+
const { id, version } = chunk6AALMYPS_cjs.splitDocRef(ref);
|
|
835
835
|
onOpenDocument(id, version);
|
|
836
836
|
}),
|
|
837
837
|
openDraft: onOpenDraft && ((draftId) => onOpenDraft(draftId)),
|
|
@@ -841,7 +841,7 @@ function ConnectedWorkflowRunner({
|
|
|
841
841
|
const w = state.waiting;
|
|
842
842
|
if (w?.doc_ext_id) setDialog({ kind: "sign", docRef: w.doc_ext_id });
|
|
843
843
|
}),
|
|
844
|
-
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(
|
|
844
|
+
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(chunk6AALMYPS_cjs.splitDocRef(ref).id) ?? "" })),
|
|
845
845
|
openReview: hostActions?.openReview ?? ((tags, documents) => setDialog({ kind: "review", tags, documents }))
|
|
846
846
|
}),
|
|
847
847
|
[user?.externalId, onOpenDocument, onOpenDraft, onOpenMessage, hostActions, nameOfDoc, inThread]
|
|
@@ -977,7 +977,7 @@ function ConnectedWorkflowRunner({
|
|
|
977
977
|
);
|
|
978
978
|
};
|
|
979
979
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
980
|
-
|
|
980
|
+
chunkSARREDFP_cjs.WorkflowRunner,
|
|
981
981
|
{
|
|
982
982
|
people,
|
|
983
983
|
...runnerProps,
|
|
@@ -1023,10 +1023,10 @@ function ConnectedWorkflowRunner({
|
|
|
1023
1023
|
) }),
|
|
1024
1024
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1025
1025
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1026
|
-
|
|
1026
|
+
chunkSARREDFP_cjs.WorkflowStepBar,
|
|
1027
1027
|
{
|
|
1028
1028
|
run: view,
|
|
1029
|
-
levels:
|
|
1029
|
+
levels: chunk6AALMYPS_cjs.stepLevels(view.steps),
|
|
1030
1030
|
doneTitle: (workflow.run.kind === "steps" ? workflow.run.completion?.title : void 0) ?? runnerProps.labels?.complete ?? "Done",
|
|
1031
1031
|
icon: (key) => key && runnerProps.renderIcon ? runnerProps.renderIcon(key) : void 0,
|
|
1032
1032
|
tid: (suffix) => `${testIdPrefix}-${suffix}`
|
|
@@ -1046,13 +1046,13 @@ function ConnectedWorkflowRunner({
|
|
|
1046
1046
|
return state ? [[s.id, state]] : [];
|
|
1047
1047
|
})
|
|
1048
1048
|
);
|
|
1049
|
-
const ref =
|
|
1049
|
+
const ref = chunk6AALMYPS_cjs.stepDocuments(view.steps, states, id).at(-1);
|
|
1050
1050
|
const open = actions.openDocument ?? actions.openRedline;
|
|
1051
1051
|
return {
|
|
1052
1052
|
title: step.title,
|
|
1053
|
-
kind:
|
|
1053
|
+
kind: chunk6AALMYPS_cjs.stepKindOf(step),
|
|
1054
1054
|
phase: view.phaseOf(id),
|
|
1055
|
-
document: ref && open ? { name: nameOfDoc(
|
|
1055
|
+
document: ref && open ? { name: nameOfDoc(chunk6AALMYPS_cjs.splitDocRef(ref).id) ?? ref, onOpen: () => open(ref) } : void 0
|
|
1056
1056
|
};
|
|
1057
1057
|
},
|
|
1058
1058
|
targetMessageId: target,
|
|
@@ -1224,7 +1224,7 @@ function ConnectedTagTable({
|
|
|
1224
1224
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
1225
1225
|
const snapshot = (data) => {
|
|
1226
1226
|
const title = exportTitle ?? KIND_TITLES[kind];
|
|
1227
|
-
const bytes =
|
|
1227
|
+
const bytes = chunkKYDRUFWT_cjs.tagTableDocx(data, {
|
|
1228
1228
|
title,
|
|
1229
1229
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
1230
1230
|
});
|
|
@@ -1234,7 +1234,7 @@ function ConnectedTagTable({
|
|
|
1234
1234
|
};
|
|
1235
1235
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1236
1236
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1237
|
-
|
|
1237
|
+
chunkKYDRUFWT_cjs.TagTable,
|
|
1238
1238
|
{
|
|
1239
1239
|
...props,
|
|
1240
1240
|
table,
|
|
@@ -3722,7 +3722,7 @@ function ActiveChat({ agentId, workspaceId }) {
|
|
|
3722
3722
|
activeArtifact: () => chunkSWQX6CTT_cjs.takeOpenDocumentForTurn({ workspaceId })
|
|
3723
3723
|
});
|
|
3724
3724
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3725
|
-
|
|
3725
|
+
chunkPJJY6CYL_cjs.ChatPage,
|
|
3726
3726
|
{
|
|
3727
3727
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
3728
3728
|
documentsRequired: false,
|
|
@@ -3784,35 +3784,35 @@ function ConnectedAgentChatPanel({
|
|
|
3784
3784
|
|
|
3785
3785
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
3786
3786
|
enumerable: true,
|
|
3787
|
-
get: function () { return
|
|
3787
|
+
get: function () { return chunk7423V6RM_cjs.ConnectedAssistantDock; }
|
|
3788
3788
|
});
|
|
3789
3789
|
Object.defineProperty(exports, "redlineStats", {
|
|
3790
3790
|
enumerable: true,
|
|
3791
|
-
get: function () { return
|
|
3791
|
+
get: function () { return chunk7423V6RM_cjs.redlineStats; }
|
|
3792
3792
|
});
|
|
3793
3793
|
Object.defineProperty(exports, "textToArtifact", {
|
|
3794
3794
|
enumerable: true,
|
|
3795
|
-
get: function () { return
|
|
3795
|
+
get: function () { return chunk7423V6RM_cjs.textToArtifact; }
|
|
3796
3796
|
});
|
|
3797
3797
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
3798
3798
|
enumerable: true,
|
|
3799
|
-
get: function () { return
|
|
3799
|
+
get: function () { return chunk7423V6RM_cjs.toRedlineMarkdown; }
|
|
3800
3800
|
});
|
|
3801
3801
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
3802
3802
|
enumerable: true,
|
|
3803
|
-
get: function () { return
|
|
3803
|
+
get: function () { return chunk7423V6RM_cjs.useConnectedAiTask; }
|
|
3804
3804
|
});
|
|
3805
3805
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
3806
3806
|
enumerable: true,
|
|
3807
|
-
get: function () { return
|
|
3807
|
+
get: function () { return chunk7423V6RM_cjs.useConnectedChat; }
|
|
3808
3808
|
});
|
|
3809
3809
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
3810
3810
|
enumerable: true,
|
|
3811
|
-
get: function () { return
|
|
3811
|
+
get: function () { return chunk7423V6RM_cjs.useSemanticSearch; }
|
|
3812
3812
|
});
|
|
3813
3813
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
3814
3814
|
enumerable: true,
|
|
3815
|
-
get: function () { return
|
|
3815
|
+
get: function () { return chunk7423V6RM_cjs.useWorkspaceDocs; }
|
|
3816
3816
|
});
|
|
3817
3817
|
Object.defineProperty(exports, "ConnectionProvider", {
|
|
3818
3818
|
enumerable: true,
|
package/dist/connect/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { FilesFilterBar, FolderFilterButton, FolderPickerRow } from '../chunk-7RJTEWYM.js';
|
|
2
3
|
import { SettingsSection, ProfileCard, AvatarPicker, IdentityVerificationCard, IdentityVerificationDialog, RequireVerified, SettingsCard, SettingsActionRow, PasswordChangeDialog, EMAIL_NOTIFICATION_KEYS, EMAIL_NOTIFICATION_CATEGORIES, NotificationCategoryList, toNotificationCategories, toActiveSessionViews, SettingsRow, ActiveSessionsDialog, LogoutDialog, toLogoutSessionViews, SettingsDangerZone, DeleteAccountDialog, toDeleteBlockerViews } from '../chunk-GFYGYME3.js';
|
|
3
|
-
import { useWorkspaceDocs } from '../chunk-
|
|
4
|
-
export { ConnectedAssistantDock, redlineStats, textToArtifact, toRedlineMarkdown, useConnectedAiTask, useConnectedChat, useSemanticSearch, useWorkspaceDocs } from '../chunk-
|
|
4
|
+
import { useWorkspaceDocs } from '../chunk-6BTCDKCK.js';
|
|
5
|
+
export { ConnectedAssistantDock, redlineStats, textToArtifact, toRedlineMarkdown, useConnectedAiTask, useConnectedChat, useSemanticSearch, useWorkspaceDocs } from '../chunk-6BTCDKCK.js';
|
|
5
6
|
import { ConnectedNativeDocxEditor } from '../chunk-CJBN5HIS.js';
|
|
6
7
|
import { ConnectionProvider, useConnection } from '../chunk-OYMWV45N.js';
|
|
7
8
|
export { ConnectionProvider, SESSION_EXPIRED_MESSAGE, isAuthenticated, useConnection } from '../chunk-OYMWV45N.js';
|
|
@@ -9,28 +10,27 @@ import { SignDocumentDialog } from '../chunk-2YOVK524.js';
|
|
|
9
10
|
import '../chunk-GYAUJ4KT.js';
|
|
10
11
|
import '../chunk-2FL7QJKJ.js';
|
|
11
12
|
import '../chunk-HFZ45FD3.js';
|
|
12
|
-
import {
|
|
13
|
-
import { WorkspaceActivityList, WorkspaceNotificationMenu, ThreadFollowMenuItem, ThreadFollowButton, TagTable, tagTableDocx } from '../chunk-VW2C2AZL.js';
|
|
13
|
+
import { WorkspaceActivityList, WorkspaceNotificationMenu, ThreadFollowMenuItem, ThreadFollowButton, TagTable, tagTableDocx } from '../chunk-ENDP7JER.js';
|
|
14
14
|
import { PlainMailBodyEditor, draftMailCompose, replyMailCompose, emptyMailCompose, MailGrid, MailMessageView, MailDocumentPicker, parseMailRecipients } from '../chunk-6HCJ3ZEU.js';
|
|
15
15
|
import { DOCX_MIME_TYPE } from '../chunk-QXMR5YHC.js';
|
|
16
16
|
import '../chunk-AF6RDAJF.js';
|
|
17
|
-
import { WorkflowStepBar, WorkflowRunner, fromPlanSteps, toPlanSteps, useWorkflowView } from '../chunk-
|
|
18
|
-
import '../chunk-XD2M6LIG.js';
|
|
19
|
-
import { TriStateFilterMenu } from '../chunk-6S5FLMWG.js';
|
|
17
|
+
import { WorkflowStepBar, WorkflowRunner, fromPlanSteps, toPlanSteps, useWorkflowView } from '../chunk-2PNNCEPH.js';
|
|
20
18
|
import '../chunk-EVUEIBNU.js';
|
|
19
|
+
import { TriStateFilterMenu } from '../chunk-6S5FLMWG.js';
|
|
21
20
|
import { FilterInput } from '../chunk-YU2KUMGE.js';
|
|
22
21
|
import '../chunk-N5YEF3LC.js';
|
|
22
|
+
import '../chunk-XD2M6LIG.js';
|
|
23
23
|
import { StreamedArtifactFrame } from '../chunk-LOJVUGBJ.js';
|
|
24
24
|
import '../chunk-VILAPTCB.js';
|
|
25
25
|
import { ConfirmDialog } from '../chunk-ECERC6TI.js';
|
|
26
|
-
import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
27
26
|
import { ModalScaffold } from '../chunk-TX2ZICS7.js';
|
|
28
|
-
import {
|
|
27
|
+
import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
28
|
+
import { ChatPage } from '../chunk-PUCY3UXN.js';
|
|
29
29
|
import '../chunk-7XF5SFJ2.js';
|
|
30
30
|
import { takeOpenDocumentForTurn, useRegisterOpenDocument } from '../chunk-GYCQ3FNL.js';
|
|
31
|
-
import { splitDocRef, stepLevels, stepDocuments, stepKindOf, initialRunInputs, workflowSteps, stepStatesFromActivity, runThreadTitle, stepFields } from '../chunk-
|
|
32
|
-
import '../chunk-AA3PT6KR.js';
|
|
31
|
+
import { splitDocRef, stepLevels, stepDocuments, stepKindOf, initialRunInputs, workflowSteps, stepStatesFromActivity, runThreadTitle, stepFields } from '../chunk-2DFDFOM7.js';
|
|
33
32
|
import '../chunk-AUS3KBHJ.js';
|
|
33
|
+
import '../chunk-AA3PT6KR.js';
|
|
34
34
|
import '../chunk-SLSBJRWW.js';
|
|
35
35
|
import '../chunk-NPLYHR2E.js';
|
|
36
36
|
import '../chunk-7F6CBP3Z.js';
|
|
@@ -222,7 +222,7 @@ function ConnectedSkillUpload() {
|
|
|
222
222
|
upload.error && /* @__PURE__ */ jsx("p", { role: "alert", className: "text-sm text-destructive", children: upload.error.message })
|
|
223
223
|
] });
|
|
224
224
|
}
|
|
225
|
-
var StreamedArtifactEditor = lazy(() => import('../StreamedArtifactEditor-
|
|
225
|
+
var StreamedArtifactEditor = lazy(() => import('../StreamedArtifactEditor-XQNANTWM.js'));
|
|
226
226
|
function StreamedArtifact({
|
|
227
227
|
artifacts,
|
|
228
228
|
workspaceId,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunk6MG62I5B_cjs = require('../chunk-6MG62I5B.cjs');
|
|
5
|
-
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
6
5
|
var chunkUWIILWDI_cjs = require('../chunk-UWIILWDI.cjs');
|
|
6
|
+
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
7
7
|
require('../chunk-ULWRNGGE.cjs');
|
|
8
8
|
require('../chunk-DES3K4SD.cjs');
|
|
9
9
|
var lucideReact = require('lucide-react');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
export { AdoptSignatureDialog, TYPED_SIGNATURE_STYLE } from '../chunk-EQB3WELX.js';
|
|
3
|
-
export { SignDocumentDialog } from '../chunk-2YOVK524.js';
|
|
4
3
|
import { ViewerStatusNote } from '../chunk-6HKLTYNN.js';
|
|
4
|
+
export { SignDocumentDialog } from '../chunk-2YOVK524.js';
|
|
5
5
|
import '../chunk-TX2ZICS7.js';
|
|
6
6
|
import '../chunk-VUNV25KB.js';
|
|
7
7
|
import { PencilLine, FileText, PenLine, Users, Send, FilePenLine, Download } from 'lucide-react';
|
package/dist/facts/index.cjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var chunk5FYU7ZIU_cjs = require('../chunk-5FYU7ZIU.cjs');
|
|
5
4
|
var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
|
|
5
|
+
var chunk5FYU7ZIU_cjs = require('../chunk-5FYU7ZIU.cjs');
|
|
6
6
|
var chunkOUW6G4O2_cjs = require('../chunk-OUW6G4O2.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');
|
|
10
10
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
11
11
|
var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
|
|
12
|
+
var chunkTGWTLNXW_cjs = require('../chunk-TGWTLNXW.cjs');
|
|
12
13
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
13
14
|
require('../chunk-FX3K6LNZ.cjs');
|
|
14
15
|
var chunkPPCATBOY_cjs = require('../chunk-PPCATBOY.cjs');
|
|
@@ -725,23 +726,6 @@ var FactLabelsCell = react.memo(function FactLabelsCell2({
|
|
|
725
726
|
);
|
|
726
727
|
});
|
|
727
728
|
|
|
728
|
-
// src/facts/timezone.ts
|
|
729
|
-
function detectTimezone() {
|
|
730
|
-
try {
|
|
731
|
-
return Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
|
|
732
|
-
} catch {
|
|
733
|
-
return "UTC";
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
function supportedTimezones() {
|
|
737
|
-
try {
|
|
738
|
-
const fn = Intl.supportedValuesOf;
|
|
739
|
-
return fn ? fn("timeZone") : [];
|
|
740
|
-
} catch {
|
|
741
|
-
return [];
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
729
|
// src/facts/fact-date.ts
|
|
746
730
|
var EMPTY_FACT_DATE_FIELDS = {
|
|
747
731
|
date: "",
|
|
@@ -820,7 +804,7 @@ function factDateSpanToFields(dateStart, dateEnd, timezone) {
|
|
|
820
804
|
}
|
|
821
805
|
function factDateFieldsToSpan(fields) {
|
|
822
806
|
if (!fields.date) return { date: null, date_end: null, timezone: null };
|
|
823
|
-
const tz = fields.timezone ||
|
|
807
|
+
const tz = fields.timezone || chunkTGWTLNXW_cjs.detectTimeZone();
|
|
824
808
|
const startIso = fields.time ? zonedPartsToIso(fields.date, fields.time, tz) : `${fields.date}T00:00:00.000Z`;
|
|
825
809
|
let endIso;
|
|
826
810
|
if (fields.endDate) {
|
|
@@ -1005,7 +989,7 @@ function MonthCalendar({
|
|
|
1005
989
|
function FactDateInput({ value, onChange, idPrefix, labels, testIds }) {
|
|
1006
990
|
const l = { ...DEFAULT_FACT_DATE_INPUT_LABELS, ...labels };
|
|
1007
991
|
const [open, setOpen] = react.useState(false);
|
|
1008
|
-
const timezones = react.useMemo(() =>
|
|
992
|
+
const timezones = react.useMemo(() => chunkTGWTLNXW_cjs.listTimeZones(), []);
|
|
1009
993
|
const timezoneListId = `${idPrefix}-timezone-options`;
|
|
1010
994
|
const span = factDateFieldsToSpan(value);
|
|
1011
995
|
const summary = value.time || value.endTime ? summarizeWithTimes(value) : chunkVPPX5XUF_cjs.formatSpan(span.date, span.date_end, span.timezone);
|
|
@@ -1013,7 +997,7 @@ function FactDateInput({ value, onChange, idPrefix, labels, testIds }) {
|
|
|
1013
997
|
const setStartTime = (time) => onChange({
|
|
1014
998
|
...value,
|
|
1015
999
|
time,
|
|
1016
|
-
timezone: time ? value.timezone ||
|
|
1000
|
+
timezone: time ? value.timezone || chunkTGWTLNXW_cjs.detectTimeZone() : "",
|
|
1017
1001
|
endTime: time ? value.endTime : ""
|
|
1018
1002
|
});
|
|
1019
1003
|
const setEndTime = (endTime) => onChange({
|
|
@@ -1078,7 +1062,7 @@ function FactDateInput({ value, onChange, idPrefix, labels, testIds }) {
|
|
|
1078
1062
|
list: timezoneListId,
|
|
1079
1063
|
value: value.timezone,
|
|
1080
1064
|
onChange: (e) => onChange({ ...value, timezone: e.target.value }),
|
|
1081
|
-
placeholder:
|
|
1065
|
+
placeholder: chunkTGWTLNXW_cjs.detectTimeZone(),
|
|
1082
1066
|
className: "h-8 text-xs",
|
|
1083
1067
|
"data-testid": `${idPrefix}-timezone`
|
|
1084
1068
|
}
|
|
@@ -2207,11 +2191,9 @@ exports.FactsToolbar = FactsToolbar;
|
|
|
2207
2191
|
exports.FactsViewToggle = FactsViewToggle;
|
|
2208
2192
|
exports.ISO_DATE_FILTER_PARAMS = ISO_DATE_FILTER_PARAMS;
|
|
2209
2193
|
exports.createFactColumns = createFactColumns;
|
|
2210
|
-
exports.detectTimezone = detectTimezone;
|
|
2211
2194
|
exports.factDateFieldsToSpan = factDateFieldsToSpan;
|
|
2212
2195
|
exports.factDateSpanToFields = factDateSpanToFields;
|
|
2213
2196
|
exports.sourceDocCount = sourceDocCount;
|
|
2214
|
-
exports.supportedTimezones = supportedTimezones;
|
|
2215
2197
|
exports.toFactRow = toFactRow;
|
|
2216
2198
|
exports.toFactRows = toFactRows;
|
|
2217
2199
|
//# sourceMappingURL=index.cjs.map
|