@arbidocs/blocks 0.4.89 → 0.4.90
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 +5 -5
- package/dist/{chunk-2CFW2ELM.cjs → chunk-2EI7NCUA.cjs} +2 -8
- package/dist/chunk-2EI7NCUA.cjs.map +1 -0
- package/dist/{chunk-MOJ5JQDN.cjs → chunk-5XZU64E2.cjs} +3 -3
- package/dist/{chunk-MOJ5JQDN.cjs.map → chunk-5XZU64E2.cjs.map} +1 -1
- package/dist/{chunk-QLHW7JGN.js → chunk-NQS7NFGM.js} +6 -6
- package/dist/{chunk-QLHW7JGN.js.map → chunk-NQS7NFGM.js.map} +1 -1
- package/dist/{chunk-3D5MDCQ7.js → chunk-NXWKMKZY.js} +3 -3
- package/dist/{chunk-3D5MDCQ7.js.map → chunk-NXWKMKZY.js.map} +1 -1
- package/dist/{chunk-CNI5QJ5B.cjs → chunk-TMKJACMP.cjs} +47 -47
- package/dist/{chunk-CNI5QJ5B.cjs.map → chunk-TMKJACMP.cjs.map} +1 -1
- package/dist/{chunk-TF6YMDZL.cjs → chunk-UCAYNE44.cjs} +5 -5
- package/dist/{chunk-TF6YMDZL.cjs.map → chunk-UCAYNE44.cjs.map} +1 -1
- package/dist/{chunk-ZX2VPMBJ.js → chunk-YU2KUMGE.js} +2 -8
- package/dist/chunk-YU2KUMGE.js.map +1 -0
- package/dist/{chunk-I44NX2ZB.js → chunk-YX466FWL.js} +3 -3
- package/dist/{chunk-I44NX2ZB.js.map → chunk-YX466FWL.js.map} +1 -1
- package/dist/connect/index.cjs +25 -25
- package/dist/connect/index.js +4 -4
- package/dist/facts/FactSourceGroup.d.ts +2 -1
- package/dist/facts/index.cjs +6 -6
- package/dist/facts/index.cjs.map +1 -1
- package/dist/facts/index.js +3 -3
- package/dist/facts/index.js.map +1 -1
- package/dist/files/cells/LabelMultiSelect.d.ts +11 -3
- package/dist/files/index.cjs +19 -13
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +18 -12
- package/dist/files/index.js.map +1 -1
- package/dist/index.cjs +359 -355
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +52 -48
- package/dist/index.js.map +1 -1
- package/dist/shell/FilterInput.d.ts +1 -3
- package/dist/shell/index.cjs +4 -4
- package/dist/shell/index.js +1 -1
- package/dist/tags/TagDetail.d.ts +10 -1
- package/dist/workflow-canvas/index.cjs +48 -48
- package/dist/workflow-canvas/index.js +5 -5
- package/package.json +4 -4
- package/dist/chunk-2CFW2ELM.cjs.map +0 -1
- package/dist/chunk-ZX2VPMBJ.js.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -8,13 +8,13 @@ var chunkMUMH3Z6K_cjs = require('../chunk-MUMH3Z6K.cjs');
|
|
|
8
8
|
var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
9
9
|
require('../chunk-2ZDFVRGV.cjs');
|
|
10
10
|
var chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunkUCAYNE44_cjs = require('../chunk-UCAYNE44.cjs');
|
|
12
|
+
var chunk5XZU64E2_cjs = require('../chunk-5XZU64E2.cjs');
|
|
13
13
|
var chunkN26CXGXC_cjs = require('../chunk-N26CXGXC.cjs');
|
|
14
14
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
15
|
-
require('../chunk-7D737FLE.cjs');
|
|
16
15
|
require('../chunk-DETZZBG2.cjs');
|
|
17
|
-
var
|
|
16
|
+
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
17
|
+
require('../chunk-7D737FLE.cjs');
|
|
18
18
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
19
19
|
require('../chunk-ADOKTJHV.cjs');
|
|
20
20
|
var chunkMP6FK43E_cjs = require('../chunk-MP6FK43E.cjs');
|
|
@@ -116,7 +116,7 @@ function ConnectedWorkspaceActivity({
|
|
|
116
116
|
[feed.data]
|
|
117
117
|
);
|
|
118
118
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
119
|
-
|
|
119
|
+
chunkUCAYNE44_cjs.WorkspaceActivityList,
|
|
120
120
|
{
|
|
121
121
|
...listProps,
|
|
122
122
|
items,
|
|
@@ -142,7 +142,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
142
142
|
});
|
|
143
143
|
if (!workspaceId) return null;
|
|
144
144
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
145
|
-
|
|
145
|
+
chunkUCAYNE44_cjs.WorkspaceNotificationMenu,
|
|
146
146
|
{
|
|
147
147
|
...menuProps,
|
|
148
148
|
level,
|
|
@@ -161,7 +161,7 @@ function ConnectedThreadFollow({
|
|
|
161
161
|
enabled: status === "authenticated"
|
|
162
162
|
});
|
|
163
163
|
if (!conversationId) return null;
|
|
164
|
-
const Control = as === "menu-item" ?
|
|
164
|
+
const Control = as === "menu-item" ? chunkUCAYNE44_cjs.ThreadFollowMenuItem : chunkUCAYNE44_cjs.ThreadFollowButton;
|
|
165
165
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
166
166
|
Control,
|
|
167
167
|
{
|
|
@@ -287,7 +287,7 @@ function StreamedArtifact({
|
|
|
287
287
|
}
|
|
288
288
|
var STARTING = /* @__PURE__ */ new Set(["pending", "running"]);
|
|
289
289
|
function formValues(step, inputs) {
|
|
290
|
-
const fields =
|
|
290
|
+
const fields = chunk5XZU64E2_cjs.stepFields(step);
|
|
291
291
|
if (!fields.length) return void 0;
|
|
292
292
|
if (step.kind === "form")
|
|
293
293
|
return Object.fromEntries(fields.map((f) => [f.name, inputs[f.name] ?? ""]));
|
|
@@ -325,7 +325,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
325
325
|
const { wsId } = chunkXMBYDLZQ_cjs.useWorkspaceDocs();
|
|
326
326
|
const [threadId, setThreadId] = react.useState(options.conversationId);
|
|
327
327
|
const [localInputs, setLocalInputs] = react.useState(
|
|
328
|
-
() =>
|
|
328
|
+
() => chunk5XZU64E2_cjs.initialRunInputs(workflow, options.initialInputs)
|
|
329
329
|
);
|
|
330
330
|
const [edits, setEdits] = react.useState({});
|
|
331
331
|
const [localStates, setLocalStates] = react.useState({});
|
|
@@ -345,12 +345,12 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
345
345
|
);
|
|
346
346
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
347
347
|
const steps = react.useMemo(
|
|
348
|
-
() =>
|
|
348
|
+
() => chunk5XZU64E2_cjs.workflowSteps(workflow).length > 0 ? chunk5XZU64E2_cjs.workflowSteps(workflow) : chunk5XZU64E2_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
349
349
|
[workflow, conversation?.plan?.steps]
|
|
350
350
|
);
|
|
351
351
|
const activity = react$1.useConversationActivity(threadId, { live: !!threadId });
|
|
352
352
|
const serverStates = react.useMemo(
|
|
353
|
-
() =>
|
|
353
|
+
() => chunk5XZU64E2_cjs.stepStatesFromActivity(activity.data ?? []),
|
|
354
354
|
[activity.data]
|
|
355
355
|
);
|
|
356
356
|
const working = steps.some(
|
|
@@ -393,7 +393,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
393
393
|
async (values, done) => {
|
|
394
394
|
await ensureWorkspaceOpen();
|
|
395
395
|
const created = await createWork.mutateAsync({
|
|
396
|
-
title:
|
|
396
|
+
title: chunk5XZU64E2_cjs.runThreadTitle(workflow, values).slice(0, 60),
|
|
397
397
|
description: workflow.description || null,
|
|
398
398
|
prompt: null,
|
|
399
399
|
skill_ref: null,
|
|
@@ -405,7 +405,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
405
405
|
criteria: [],
|
|
406
406
|
max_passes: 3,
|
|
407
407
|
documents: [],
|
|
408
|
-
steps:
|
|
408
|
+
steps: chunk5XZU64E2_cjs.toPlanSteps(workflow, {
|
|
409
409
|
inputs: values,
|
|
410
410
|
resolveWorkflow: options.resolveWorkflow,
|
|
411
411
|
compose: options.compose
|
|
@@ -492,7 +492,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
492
492
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
493
493
|
const needsStart = !threadId || idle && !anyRunning;
|
|
494
494
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
495
|
-
const view =
|
|
495
|
+
const view = chunk5XZU64E2_cjs.useWorkflowView({
|
|
496
496
|
steps,
|
|
497
497
|
states,
|
|
498
498
|
inputs,
|
|
@@ -573,7 +573,7 @@ function WorkflowSignDialog({
|
|
|
573
573
|
const arbi = react$1.useArbi();
|
|
574
574
|
const { user, ensureWorkspaceOpen } = chunkMUMH3Z6K_cjs.useConnection();
|
|
575
575
|
const tools = documentTools.useOptionalDocumentTools();
|
|
576
|
-
const { id, version: stepVersion } =
|
|
576
|
+
const { id, version: stepVersion } = chunk5XZU64E2_cjs.splitDocRef(docRef);
|
|
577
577
|
const [version, setVersion] = react.useState(stepVersion);
|
|
578
578
|
const [pdf, setPdf] = react.useState(null);
|
|
579
579
|
const [preparing, setPreparing] = react.useState(false);
|
|
@@ -651,7 +651,7 @@ function WorkflowWordDialog({
|
|
|
651
651
|
onClose,
|
|
652
652
|
labels
|
|
653
653
|
}) {
|
|
654
|
-
const { id } =
|
|
654
|
+
const { id } = chunk5XZU64E2_cjs.splitDocRef(docRef);
|
|
655
655
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
656
656
|
chunkULWRNGGE_cjs.ModalScaffold,
|
|
657
657
|
{
|
|
@@ -825,7 +825,7 @@ function ConnectedWorkflowRunner({
|
|
|
825
825
|
() => ({
|
|
826
826
|
me: user?.externalId,
|
|
827
827
|
openDocument: onOpenDocument && ((ref) => {
|
|
828
|
-
const { id, version } =
|
|
828
|
+
const { id, version } = chunk5XZU64E2_cjs.splitDocRef(ref);
|
|
829
829
|
onOpenDocument(id, version);
|
|
830
830
|
}),
|
|
831
831
|
openDraft: onOpenDraft && ((draftId) => onOpenDraft(draftId)),
|
|
@@ -835,7 +835,7 @@ function ConnectedWorkflowRunner({
|
|
|
835
835
|
const w = state.waiting;
|
|
836
836
|
if (w?.doc_ext_id) setDialog({ kind: "sign", docRef: w.doc_ext_id });
|
|
837
837
|
}),
|
|
838
|
-
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(
|
|
838
|
+
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(chunk5XZU64E2_cjs.splitDocRef(ref).id) ?? "" })),
|
|
839
839
|
openReview: hostActions?.openReview ?? ((tags, documents) => setDialog({ kind: "review", tags, documents }))
|
|
840
840
|
}),
|
|
841
841
|
[user?.externalId, onOpenDocument, onOpenDraft, onOpenMessage, hostActions, nameOfDoc, inThread]
|
|
@@ -971,7 +971,7 @@ function ConnectedWorkflowRunner({
|
|
|
971
971
|
);
|
|
972
972
|
};
|
|
973
973
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
974
|
-
|
|
974
|
+
chunk5XZU64E2_cjs.WorkflowRunner,
|
|
975
975
|
{
|
|
976
976
|
people,
|
|
977
977
|
...runnerProps,
|
|
@@ -1017,10 +1017,10 @@ function ConnectedWorkflowRunner({
|
|
|
1017
1017
|
) }),
|
|
1018
1018
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1019
1019
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1020
|
-
|
|
1020
|
+
chunk5XZU64E2_cjs.WorkflowStepBar,
|
|
1021
1021
|
{
|
|
1022
1022
|
run: view,
|
|
1023
|
-
levels:
|
|
1023
|
+
levels: chunk5XZU64E2_cjs.stepLevels(view.steps),
|
|
1024
1024
|
doneTitle: (workflow.run.kind === "steps" ? workflow.run.completion?.title : void 0) ?? runnerProps.labels?.complete ?? "Done",
|
|
1025
1025
|
icon: (key) => key && runnerProps.renderIcon ? runnerProps.renderIcon(key) : void 0,
|
|
1026
1026
|
tid: (suffix) => `${testIdPrefix}-${suffix}`
|
|
@@ -1201,17 +1201,17 @@ function ConnectedTagTable({
|
|
|
1201
1201
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
1202
1202
|
const snapshot = (data) => {
|
|
1203
1203
|
const title = exportTitle ?? KIND_TITLES[kind];
|
|
1204
|
-
const bytes =
|
|
1204
|
+
const bytes = chunkUCAYNE44_cjs.tagTableDocx(data, {
|
|
1205
1205
|
title,
|
|
1206
1206
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
1207
1207
|
});
|
|
1208
1208
|
const stamp = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
1209
1209
|
const name = `${title.replace(/[\\/:*?"<>|]+/g, "-")} (${stamp}).docx`;
|
|
1210
|
-
return { blob: new Blob([bytes], { type:
|
|
1210
|
+
return { blob: new Blob([bytes], { type: chunkUCAYNE44_cjs.DOCX_MIME_TYPE }), name };
|
|
1211
1211
|
};
|
|
1212
1212
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1213
1213
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1214
|
-
|
|
1214
|
+
chunkUCAYNE44_cjs.TagTable,
|
|
1215
1215
|
{
|
|
1216
1216
|
...props,
|
|
1217
1217
|
table,
|
|
@@ -3027,7 +3027,7 @@ function ConnectedMailbox({
|
|
|
3027
3027
|
compactBreakpoint: 360,
|
|
3028
3028
|
firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(chunkO4YPVYPO_cjs.FilesFilterBar, { children: [
|
|
3029
3029
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3030
|
-
|
|
3030
|
+
chunk2EI7NCUA_cjs.FilterInput,
|
|
3031
3031
|
{
|
|
3032
3032
|
value: query,
|
|
3033
3033
|
onChange: (q) => {
|
package/dist/connect/index.js
CHANGED
|
@@ -8,13 +8,13 @@ export { ConnectionProvider, SESSION_EXPIRED_MESSAGE, isAuthenticated, useConnec
|
|
|
8
8
|
import { SignDocumentDialog } from '../chunk-2YOVK524.js';
|
|
9
9
|
import '../chunk-W2R7YVFM.js';
|
|
10
10
|
import { FilesFilterBar, FolderFilterButton, FolderPickerRow } from '../chunk-7RJTEWYM.js';
|
|
11
|
-
import { WorkspaceActivityList, WorkspaceNotificationMenu, ThreadFollowMenuItem, ThreadFollowButton, TagTable, tagTableDocx, DOCX_MIME_TYPE } from '../chunk-
|
|
12
|
-
import { splitDocRef, WorkflowStepBar, stepLevels, WorkflowRunner, initialRunInputs, workflowSteps, fromPlanSteps, stepStatesFromActivity, toPlanSteps, runThreadTitle, useWorkflowView, stepFields } from '../chunk-
|
|
11
|
+
import { WorkspaceActivityList, WorkspaceNotificationMenu, ThreadFollowMenuItem, ThreadFollowButton, TagTable, tagTableDocx, DOCX_MIME_TYPE } from '../chunk-NXWKMKZY.js';
|
|
12
|
+
import { splitDocRef, WorkflowStepBar, stepLevels, WorkflowRunner, initialRunInputs, workflowSteps, fromPlanSteps, stepStatesFromActivity, toPlanSteps, runThreadTitle, useWorkflowView, stepFields } from '../chunk-YX466FWL.js';
|
|
13
13
|
import { TriStateFilterMenu } from '../chunk-6S5FLMWG.js';
|
|
14
14
|
import { TabHeader } from '../chunk-4WWM3GQ5.js';
|
|
15
|
-
import '../chunk-XD2M6LIG.js';
|
|
16
15
|
import '../chunk-EVUEIBNU.js';
|
|
17
|
-
import { FilterInput } from '../chunk-
|
|
16
|
+
import { FilterInput } from '../chunk-YU2KUMGE.js';
|
|
17
|
+
import '../chunk-XD2M6LIG.js';
|
|
18
18
|
import { StreamedArtifactFrame } from '../chunk-LOJVUGBJ.js';
|
|
19
19
|
import '../chunk-VILAPTCB.js';
|
|
20
20
|
import { ChatPage } from '../chunk-EWSEQEPL.js';
|
|
@@ -14,7 +14,8 @@ export interface FactSourceGroupProps {
|
|
|
14
14
|
document: ReactNode;
|
|
15
15
|
/** True when this document is the one on display in the viewer. */
|
|
16
16
|
isViewing?: boolean;
|
|
17
|
-
|
|
17
|
+
/** Remove this document from the sources. Absent: a read-only list, no remove control. */
|
|
18
|
+
onRemove?: () => void;
|
|
18
19
|
/** The FactPassageItem children; when absent a "whole document" hint shows. */
|
|
19
20
|
children?: ReactNode;
|
|
20
21
|
/** Whether any passages are cited from this document. */
|
package/dist/facts/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var chunkOUW6G4O2_cjs = require('../chunk-OUW6G4O2.cjs');
|
|
|
6
6
|
var chunkVPPX5XUF_cjs = require('../chunk-VPPX5XUF.cjs');
|
|
7
7
|
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
8
8
|
var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
10
10
|
var chunkPPCATBOY_cjs = require('../chunk-PPCATBOY.cjs');
|
|
11
11
|
require('../chunk-C54XEN5T.cjs');
|
|
12
12
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
@@ -1275,7 +1275,7 @@ function FactSourceGroup({
|
|
|
1275
1275
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 px-1 text-sm", children: [
|
|
1276
1276
|
document,
|
|
1277
1277
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1" }),
|
|
1278
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1278
|
+
onRemove && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1279
1279
|
"button",
|
|
1280
1280
|
{
|
|
1281
1281
|
type: "button",
|
|
@@ -1927,7 +1927,7 @@ function FactsToolbar({
|
|
|
1927
1927
|
];
|
|
1928
1928
|
const filterControls = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: isNarrow ? "flex w-full items-center gap-1.5" : "flex items-center gap-1.5", children: [
|
|
1929
1929
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1930
|
-
|
|
1930
|
+
chunk2EI7NCUA_cjs.FilterInput,
|
|
1931
1931
|
{
|
|
1932
1932
|
value: filterText,
|
|
1933
1933
|
onChange: onFilterTextChange,
|
|
@@ -2262,15 +2262,15 @@ function FactSearchResult({
|
|
|
2262
2262
|
|
|
2263
2263
|
Object.defineProperty(exports, "DEFAULT_FACTS_FILTER_INPUT_LABELS", {
|
|
2264
2264
|
enumerable: true,
|
|
2265
|
-
get: function () { return
|
|
2265
|
+
get: function () { return chunk2EI7NCUA_cjs.DEFAULT_FILTER_INPUT_LABELS; }
|
|
2266
2266
|
});
|
|
2267
2267
|
Object.defineProperty(exports, "FACTS_SEARCH_FIELD_OPTIONS", {
|
|
2268
2268
|
enumerable: true,
|
|
2269
|
-
get: function () { return
|
|
2269
|
+
get: function () { return chunk2EI7NCUA_cjs.DEFAULT_FILTER_FIELDS; }
|
|
2270
2270
|
});
|
|
2271
2271
|
Object.defineProperty(exports, "FactsFilterInput", {
|
|
2272
2272
|
enumerable: true,
|
|
2273
|
-
get: function () { return
|
|
2273
|
+
get: function () { return chunk2EI7NCUA_cjs.FilterInput; }
|
|
2274
2274
|
});
|
|
2275
2275
|
exports.DEFAULT_FACTS_BULK_BAR_LABELS = DEFAULT_FACTS_BULK_BAR_LABELS;
|
|
2276
2276
|
exports.DEFAULT_FACTS_EMPTY_STATE_LABELS = DEFAULT_FACTS_EMPTY_STATE_LABELS;
|