@arbidocs/blocks 0.4.119 → 0.4.121
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 +286 -286
- package/dist/agents/index.js +10 -10
- package/dist/calls/index.cjs +1 -1
- package/dist/calls/index.js +1 -1
- package/dist/{chunk-XFZ7HNPG.js → chunk-4MRQKBD2.js} +3 -3
- package/dist/{chunk-XFZ7HNPG.js.map → chunk-4MRQKBD2.js.map} +1 -1
- package/dist/{chunk-XSUOEJB3.cjs → chunk-5JVPLVDT.cjs} +3 -3
- package/dist/{chunk-XSUOEJB3.cjs.map → chunk-5JVPLVDT.cjs.map} +1 -1
- 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-A7NCSZAP.cjs +207 -0
- package/dist/chunk-A7NCSZAP.cjs.map +1 -0
- package/dist/{chunk-AY32GGKU.js → chunk-DFHDWO6U.js} +3 -3
- package/dist/{chunk-AY32GGKU.js.map → chunk-DFHDWO6U.js.map} +1 -1
- package/dist/{chunk-US5ASM4G.cjs → chunk-GIEHWHVO.cjs} +5 -5
- package/dist/{chunk-US5ASM4G.cjs.map → chunk-GIEHWHVO.cjs.map} +1 -1
- package/dist/chunk-IBZJYCYM.js +204 -0
- package/dist/chunk-IBZJYCYM.js.map +1 -0
- package/dist/{chunk-6Z7DLJU2.js → chunk-N5S6JG7S.js} +11 -11
- package/dist/{chunk-6Z7DLJU2.js.map → chunk-N5S6JG7S.js.map} +1 -1
- 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-FXUQZFAN.cjs → chunk-SCLMCCMU.cjs} +55 -55
- package/dist/{chunk-FXUQZFAN.cjs.map → chunk-SCLMCCMU.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +10 -10
- package/dist/collaboration/index.js +2 -2
- package/dist/components/UsageMeter.d.ts +45 -8
- package/dist/connect/index.cjs +39 -29
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +20 -10
- package/dist/connect/index.js.map +1 -1
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/facts/index.cjs +3 -3
- package/dist/facts/index.js +3 -3
- package/dist/files/index.cjs +3 -3
- package/dist/files/index.js +3 -3
- package/dist/home/index.cjs +18 -18
- package/dist/home/index.js +4 -4
- package/dist/index.cjs +415 -411
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/retrieval/index.cjs +1 -1
- package/dist/retrieval/index.js +1 -1
- package/dist/settings/FirmPool.d.ts +28 -2
- package/dist/settings/index.cjs +78 -27
- package/dist/settings/index.cjs.map +1 -1
- package/dist/settings/index.js +66 -15
- package/dist/settings/index.js.map +1 -1
- package/dist/shell/index.cjs +11 -11
- package/dist/shell/index.js +3 -3
- package/dist/site/index.cjs +5 -5
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +2 -2
- package/dist/studio/index.js +2 -2
- package/dist/workflow-canvas/index.cjs +53 -53
- package/dist/workflow-canvas/index.js +10 -10
- package/dist/workspaces/index.cjs +1 -1
- package/dist/workspaces/index.js +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.cjs +222 -12
- package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/commands.d.cts +82 -5
- package/node_modules/@arbidocs/coedit/dist/commands.d.ts +82 -5
- package/node_modules/@arbidocs/coedit/dist/commands.js +217 -13
- package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/encoding.d.cts +2 -0
- package/node_modules/@arbidocs/coedit/dist/encoding.d.ts +2 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs +27 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.js +27 -0
- package/node_modules/@arbidocs/coedit/dist/hocuspocus.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.cjs +27 -0
- package/node_modules/@arbidocs/coedit/dist/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/index.js +27 -0
- package/node_modules/@arbidocs/coedit/dist/index.js.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/{port-ip7WByvH.d.cts → port-BbN5OZHx.d.cts} +24 -1
- package/node_modules/@arbidocs/coedit/dist/{port-ip7WByvH.d.ts → port-BbN5OZHx.d.ts} +24 -1
- package/node_modules/@arbidocs/coedit/dist/server.cjs +65 -2
- package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
- package/node_modules/@arbidocs/coedit/dist/server.js +65 -2
- package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +4 -4
- package/dist/chunk-46IU3UPF.cjs +0 -47
- package/dist/chunk-46IU3UPF.cjs.map +0 -1
- package/dist/chunk-D5T53XCL.js +0 -45
- package/dist/chunk-D5T53XCL.js.map +0 -1
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkDJM7DLCT_cjs = require('../chunk-DJM7DLCT.cjs');
|
|
5
5
|
require('../chunk-7G2LJMUG.cjs');
|
|
6
|
-
var chunkU6MPHCEB_cjs = require('../chunk-U6MPHCEB.cjs');
|
|
7
6
|
var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
|
|
7
|
+
var chunkU6MPHCEB_cjs = require('../chunk-U6MPHCEB.cjs');
|
|
8
8
|
require('../chunk-C2CWWEHO.cjs');
|
|
9
|
-
require('../chunk-ULWRNGGE.cjs');
|
|
10
9
|
require('../chunk-FX3K6LNZ.cjs');
|
|
10
|
+
require('../chunk-ULWRNGGE.cjs');
|
|
11
11
|
require('../chunk-MHVNT4J3.cjs');
|
|
12
12
|
require('../chunk-DES3K4SD.cjs');
|
|
13
13
|
|
|
@@ -173,6 +173,14 @@ Object.defineProperty(exports, "vCardFilename", {
|
|
|
173
173
|
enumerable: true,
|
|
174
174
|
get: function () { return chunkDJM7DLCT_cjs.vCardFilename; }
|
|
175
175
|
});
|
|
176
|
+
Object.defineProperty(exports, "DEFAULT_SHARE_CONTROL_LABELS", {
|
|
177
|
+
enumerable: true,
|
|
178
|
+
get: function () { return chunkVLCY46K6_cjs.DEFAULT_SHARE_CONTROL_LABELS; }
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "ShareControl", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () { return chunkVLCY46K6_cjs.ShareControl; }
|
|
183
|
+
});
|
|
176
184
|
Object.defineProperty(exports, "MailDeliveryBadge", {
|
|
177
185
|
enumerable: true,
|
|
178
186
|
get: function () { return chunkU6MPHCEB_cjs.MailDeliveryBadge; }
|
|
@@ -229,13 +237,5 @@ Object.defineProperty(exports, "replyMailCompose", {
|
|
|
229
237
|
enumerable: true,
|
|
230
238
|
get: function () { return chunkU6MPHCEB_cjs.replyMailCompose; }
|
|
231
239
|
});
|
|
232
|
-
Object.defineProperty(exports, "DEFAULT_SHARE_CONTROL_LABELS", {
|
|
233
|
-
enumerable: true,
|
|
234
|
-
get: function () { return chunkVLCY46K6_cjs.DEFAULT_SHARE_CONTROL_LABELS; }
|
|
235
|
-
});
|
|
236
|
-
Object.defineProperty(exports, "ShareControl", {
|
|
237
|
-
enumerable: true,
|
|
238
|
-
get: function () { return chunkVLCY46K6_cjs.ShareControl; }
|
|
239
|
-
});
|
|
240
240
|
//# sourceMappingURL=index.cjs.map
|
|
241
241
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
export { ActionMenu, AddContactsForm, AddContactsResults, ContactCard, DEFAULT_ADD_CONTACTS_LABELS, DEFAULT_CONTACT_CARD_LABELS, DEFAULT_CONTACT_OUTCOME_LABELS, DEFAULT_DM_ACCESS_REQUEST_BANNER_LABELS, DEFAULT_DM_GRANT_ACCESS_DIALOG_LABELS, DEFAULT_DM_INVITE_CHIP_LABELS, DEFAULT_DM_THREAD_FRAME_LABELS, DEFAULT_MAIL_FOLDER_TREE_LABELS, DEFAULT_RECIPIENT_PICKER_LABELS, DmAccessRequestBanner, DmGrantAccessDialogView, DmInviteAvatar, DmInviteChip, DmNewTabIcon, DmThreadFrame, DmThreadHeader, MAX_INVITE_EMAILS, MailFolderTree, MemberBulkActions, MemberListLoading, MemberMutedText, MemberNameCell, MemberRoleCell, RecipientPicker, RoleSelect, WorkspaceDeleteButton, buildMailFolderTree, contactToVCard, descendantFolderIds, downloadVCard, isInboxFolder, parseEmails, toAddContactsRow, toAddContactsRows, toggleMailFolder, vCardFilename } from '../chunk-5HFPRI3W.js';
|
|
3
3
|
import '../chunk-NBV56SGU.js';
|
|
4
|
-
export { MailDeliveryBadge, MailDeliveryList, MailDocumentPicker, MailGrid, MailMessagePreview, MailMessageView, NEEDS_CONNECTION, PlainMailBodyEditor, draftMailCompose, emptyMailCompose, hasCalendarPart, mailAddressLabel, parseMailRecipients, replyMailCompose } from '../chunk-IXTQYFIF.js';
|
|
5
4
|
export { DEFAULT_SHARE_CONTROL_LABELS, ShareControl } from '../chunk-K4BGOPGG.js';
|
|
5
|
+
export { MailDeliveryBadge, MailDeliveryList, MailDocumentPicker, MailGrid, MailMessagePreview, MailMessageView, NEEDS_CONNECTION, PlainMailBodyEditor, draftMailCompose, emptyMailCompose, hasCalendarPart, mailAddressLabel, parseMailRecipients, replyMailCompose } from '../chunk-IXTQYFIF.js';
|
|
6
6
|
import '../chunk-N5YEF3LC.js';
|
|
7
|
-
import '../chunk-TX2ZICS7.js';
|
|
8
7
|
import '../chunk-SLSBJRWW.js';
|
|
8
|
+
import '../chunk-TX2ZICS7.js';
|
|
9
9
|
import '../chunk-7F6CBP3Z.js';
|
|
10
10
|
import '../chunk-VUNV25KB.js';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,21 +1,58 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
import type { LucideIcon } from 'lucide-react';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* halfway mark, red at the limit — so a stack of meters reads at a glance which
|
|
7
|
-
* quota is the one to think about.
|
|
4
|
+
* What an allowance is made of, in the meter's own unit (£ of AI usage, GB, users): what was used, the plan's part
|
|
5
|
+
* of the allowance, the top-ups on top of it, and how much more automatic top-ups may still add before a usage cap
|
|
6
|
+
* (or budget) stops them.
|
|
8
7
|
*/
|
|
9
|
-
export
|
|
8
|
+
export interface UsageMeterAllowance {
|
|
9
|
+
used: number;
|
|
10
|
+
/** The plan's part of the allowance (marked on the bar when top-ups or automatic room follow it). */
|
|
11
|
+
plan: number;
|
|
12
|
+
/** Top-ups on top of the plan: the allowance now is `plan + topUps`. */
|
|
13
|
+
topUps?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Room automatic top-ups may still add before the cap stops them (drawn hatched after the allowance).
|
|
16
|
+
* `null` = no limit (nothing drawn: the room is unbounded); omitted = not applicable.
|
|
17
|
+
*/
|
|
18
|
+
autoRoom?: number | null;
|
|
19
|
+
}
|
|
20
|
+
/** Pressure on an allowance: under 80% used, 80% to under 100%, or at / over it. */
|
|
21
|
+
export type UsageMeterState = 'under' | 'near' | 'over';
|
|
22
|
+
/** The allowance meter's pressure state for `used` of `allowance`. */
|
|
23
|
+
export declare function usageMeterState(used: number, allowance: number): UsageMeterState;
|
|
24
|
+
/**
|
|
25
|
+
* One labelled quota meter: icon + label on the left, used-of-limit on the right, a thin bar underneath.
|
|
26
|
+
*
|
|
27
|
+
* Simple mode (`pct`): the bar's tone follows pressure with the shared green → yellow → red gradation — green while
|
|
28
|
+
* there's room, yellow past the halfway mark, red at the limit — so a stack of meters reads at a glance which quota
|
|
29
|
+
* is the one to think about.
|
|
30
|
+
*
|
|
31
|
+
* Allowance mode (`allowance`): the bar spans the allowance plus what automatic top-ups may still add; it marks the
|
|
32
|
+
* plan's part, shades the top-ups, hatches the automatic room, and fills what was used (red at the allowance, yellow
|
|
33
|
+
* from 80%). `legend` names the segments; `details` (next period, cap) sit under the bar and `actions` (+ / −) beside
|
|
34
|
+
* it. The meter's `data-state` is `under` / `near` / `over`.
|
|
35
|
+
*/
|
|
36
|
+
export declare function UsageMeter({ icon: Icon, label, value, pct, hint, allowance, legend, details, actions, className, testId, }: {
|
|
10
37
|
icon?: LucideIcon;
|
|
11
38
|
label: string;
|
|
12
39
|
/** Formatted used-of-limit text, e.g. "1,200 / 25,000" or "40 / 500 MB". */
|
|
13
40
|
value: string;
|
|
14
|
-
/**
|
|
15
|
-
pct
|
|
41
|
+
/** Simple mode: fill percentage, 0–100 (values are clamped). Ignored with `allowance`. */
|
|
42
|
+
pct?: number;
|
|
16
43
|
/** Inline parenthetical after the label, e.g. "resets May 31, 2025" —
|
|
17
44
|
* same font as the label, so the meter never grows an extra row. */
|
|
18
45
|
hint?: string;
|
|
46
|
+
/** Allowance mode: the allowance's parts, in the meter's unit. */
|
|
47
|
+
allowance?: UsageMeterAllowance;
|
|
48
|
+
/** Formatted legend entries for the allowance's segments (each shown only when set). */
|
|
49
|
+
legend?: {
|
|
50
|
+
plan?: string;
|
|
51
|
+
topUps?: string;
|
|
52
|
+
autoRoom?: string;
|
|
53
|
+
};
|
|
54
|
+
details?: ReactNode;
|
|
55
|
+
actions?: ReactNode;
|
|
19
56
|
className?: string;
|
|
20
57
|
testId?: string;
|
|
21
58
|
}): import("react").JSX.Element;
|
package/dist/connect/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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
6
|
var chunkUDK553WP_cjs = require('../chunk-UDK553WP.cjs');
|
|
6
7
|
var chunkN7ARMX3O_cjs = require('../chunk-N7ARMX3O.cjs');
|
|
@@ -9,27 +10,26 @@ var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
|
|
|
9
10
|
require('../chunk-S24XEVPS.cjs');
|
|
10
11
|
require('../chunk-JSH43QMZ.cjs');
|
|
11
12
|
require('../chunk-5FYU7ZIU.cjs');
|
|
12
|
-
var
|
|
13
|
-
var chunkUS5ASM4G_cjs = require('../chunk-US5ASM4G.cjs');
|
|
13
|
+
var chunkGIEHWHVO_cjs = require('../chunk-GIEHWHVO.cjs');
|
|
14
14
|
var chunkU6MPHCEB_cjs = require('../chunk-U6MPHCEB.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 chunk5JVPLVDT_cjs = require('../chunk-5JVPLVDT.cjs');
|
|
20
18
|
require('../chunk-DETZZBG2.cjs');
|
|
19
|
+
var chunkN26CXGXC_cjs = require('../chunk-N26CXGXC.cjs');
|
|
21
20
|
require('../chunk-32HW2Q33.cjs');
|
|
22
21
|
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
23
22
|
require('../chunk-C2CWWEHO.cjs');
|
|
23
|
+
require('../chunk-7D737FLE.cjs');
|
|
24
24
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
25
25
|
require('../chunk-ADOKTJHV.cjs');
|
|
26
|
-
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
27
|
-
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
28
26
|
var chunkS2KVJYBD_cjs = require('../chunk-S2KVJYBD.cjs');
|
|
29
27
|
require('../chunk-B6MVQCXW.cjs');
|
|
30
28
|
require('../chunk-B4SRYJLM.cjs');
|
|
31
29
|
require('../chunk-7UTB4PHM.cjs');
|
|
32
30
|
require('../chunk-FX3K6LNZ.cjs');
|
|
31
|
+
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
32
|
+
var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
|
|
33
33
|
require('../chunk-PPCATBOY.cjs');
|
|
34
34
|
require('../chunk-MHVNT4J3.cjs');
|
|
35
35
|
var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
|
|
@@ -122,7 +122,7 @@ function ConnectedWorkspaceActivity({
|
|
|
122
122
|
[feed.data]
|
|
123
123
|
);
|
|
124
124
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
125
|
-
|
|
125
|
+
chunkGIEHWHVO_cjs.WorkspaceActivityList,
|
|
126
126
|
{
|
|
127
127
|
...listProps,
|
|
128
128
|
items,
|
|
@@ -148,7 +148,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
148
148
|
});
|
|
149
149
|
if (!workspaceId) return null;
|
|
150
150
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
151
|
-
|
|
151
|
+
chunkGIEHWHVO_cjs.WorkspaceNotificationMenu,
|
|
152
152
|
{
|
|
153
153
|
...menuProps,
|
|
154
154
|
level,
|
|
@@ -167,7 +167,7 @@ function ConnectedThreadFollow({
|
|
|
167
167
|
enabled: status === "authenticated"
|
|
168
168
|
});
|
|
169
169
|
if (!conversationId) return null;
|
|
170
|
-
const Control = as === "menu-item" ?
|
|
170
|
+
const Control = as === "menu-item" ? chunkGIEHWHVO_cjs.ThreadFollowMenuItem : chunkGIEHWHVO_cjs.ThreadFollowButton;
|
|
171
171
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
172
172
|
Control,
|
|
173
173
|
{
|
|
@@ -293,7 +293,7 @@ function StreamedArtifact({
|
|
|
293
293
|
}
|
|
294
294
|
var STARTING = /* @__PURE__ */ new Set(["pending", "running"]);
|
|
295
295
|
function formValues(step, inputs) {
|
|
296
|
-
const fields =
|
|
296
|
+
const fields = chunk5JVPLVDT_cjs.stepFields(step);
|
|
297
297
|
if (!fields.length) return void 0;
|
|
298
298
|
if (step.kind === "form")
|
|
299
299
|
return Object.fromEntries(fields.map((f) => [f.name, inputs[f.name] ?? ""]));
|
|
@@ -331,7 +331,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
331
331
|
const { wsId } = chunkUDK553WP_cjs.useWorkspaceDocs();
|
|
332
332
|
const [threadId, setThreadId] = react.useState(options.conversationId);
|
|
333
333
|
const [localInputs, setLocalInputs] = react.useState(
|
|
334
|
-
() =>
|
|
334
|
+
() => chunk5JVPLVDT_cjs.initialRunInputs(workflow, options.initialInputs)
|
|
335
335
|
);
|
|
336
336
|
const [edits, setEdits] = react.useState({});
|
|
337
337
|
const [localStates, setLocalStates] = react.useState({});
|
|
@@ -351,12 +351,12 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
351
351
|
);
|
|
352
352
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
353
353
|
const steps = react.useMemo(
|
|
354
|
-
() =>
|
|
354
|
+
() => chunk5JVPLVDT_cjs.workflowSteps(workflow).length > 0 ? chunk5JVPLVDT_cjs.workflowSteps(workflow) : chunk5JVPLVDT_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
355
355
|
[workflow, conversation?.plan?.steps]
|
|
356
356
|
);
|
|
357
357
|
const activity = react$1.useConversationActivity(threadId, { live: !!threadId });
|
|
358
358
|
const serverStates = react.useMemo(
|
|
359
|
-
() =>
|
|
359
|
+
() => chunk5JVPLVDT_cjs.stepStatesFromActivity(activity.data ?? []),
|
|
360
360
|
[activity.data]
|
|
361
361
|
);
|
|
362
362
|
const working = steps.some(
|
|
@@ -399,7 +399,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
399
399
|
async (values, done) => {
|
|
400
400
|
await ensureWorkspaceOpen();
|
|
401
401
|
const created = await createWork.mutateAsync({
|
|
402
|
-
title:
|
|
402
|
+
title: chunk5JVPLVDT_cjs.runThreadTitle(workflow, values).slice(0, 60),
|
|
403
403
|
description: workflow.description || null,
|
|
404
404
|
prompt: null,
|
|
405
405
|
skill_ref: null,
|
|
@@ -411,7 +411,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
411
411
|
criteria: [],
|
|
412
412
|
max_passes: 3,
|
|
413
413
|
documents: [],
|
|
414
|
-
steps:
|
|
414
|
+
steps: chunk5JVPLVDT_cjs.toPlanSteps(workflow, {
|
|
415
415
|
inputs: values,
|
|
416
416
|
resolveWorkflow: options.resolveWorkflow,
|
|
417
417
|
compose: options.compose
|
|
@@ -498,7 +498,7 @@ function useWorkflowThread(workflow, options = {}) {
|
|
|
498
498
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
499
499
|
const needsStart = !threadId || idle && !anyRunning;
|
|
500
500
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
501
|
-
const view =
|
|
501
|
+
const view = chunk5JVPLVDT_cjs.useWorkflowView({
|
|
502
502
|
steps,
|
|
503
503
|
states,
|
|
504
504
|
inputs,
|
|
@@ -579,7 +579,7 @@ function WorkflowSignDialog({
|
|
|
579
579
|
const arbi = react$1.useArbi();
|
|
580
580
|
const { user, ensureWorkspaceOpen } = chunkMUMH3Z6K_cjs.useConnection();
|
|
581
581
|
const tools = documentTools.useOptionalDocumentTools();
|
|
582
|
-
const { id, version: stepVersion } =
|
|
582
|
+
const { id, version: stepVersion } = chunk5JVPLVDT_cjs.splitDocRef(docRef);
|
|
583
583
|
const [version, setVersion] = react.useState(stepVersion);
|
|
584
584
|
const [pdf, setPdf] = react.useState(null);
|
|
585
585
|
const [preparing, setPreparing] = react.useState(false);
|
|
@@ -657,7 +657,7 @@ function WorkflowWordDialog({
|
|
|
657
657
|
onClose,
|
|
658
658
|
labels
|
|
659
659
|
}) {
|
|
660
|
-
const { id } =
|
|
660
|
+
const { id } = chunk5JVPLVDT_cjs.splitDocRef(docRef);
|
|
661
661
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
662
662
|
chunkULWRNGGE_cjs.ModalScaffold,
|
|
663
663
|
{
|
|
@@ -829,7 +829,7 @@ function ConnectedWorkflowRunner({
|
|
|
829
829
|
() => ({
|
|
830
830
|
me: user?.externalId,
|
|
831
831
|
openDocument: onOpenDocument && ((ref) => {
|
|
832
|
-
const { id, version } =
|
|
832
|
+
const { id, version } = chunk5JVPLVDT_cjs.splitDocRef(ref);
|
|
833
833
|
onOpenDocument(id, version);
|
|
834
834
|
}),
|
|
835
835
|
openDraft: onOpenDraft && ((draftId) => onOpenDraft(draftId)),
|
|
@@ -839,7 +839,7 @@ function ConnectedWorkflowRunner({
|
|
|
839
839
|
const w = state.waiting;
|
|
840
840
|
if (w?.doc_ext_id) setDialog({ kind: "sign", docRef: w.doc_ext_id });
|
|
841
841
|
}),
|
|
842
|
-
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(
|
|
842
|
+
openRedline: hostActions?.openRedline ?? ((ref) => setDialog({ kind: "word", docRef: ref, title: nameOfDoc(chunk5JVPLVDT_cjs.splitDocRef(ref).id) ?? "" })),
|
|
843
843
|
openReview: hostActions?.openReview ?? ((tags, documents) => setDialog({ kind: "review", tags, documents }))
|
|
844
844
|
}),
|
|
845
845
|
[user?.externalId, onOpenDocument, onOpenDraft, onOpenMessage, hostActions, nameOfDoc, inThread]
|
|
@@ -975,7 +975,7 @@ function ConnectedWorkflowRunner({
|
|
|
975
975
|
);
|
|
976
976
|
};
|
|
977
977
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
978
|
-
|
|
978
|
+
chunk5JVPLVDT_cjs.WorkflowRunner,
|
|
979
979
|
{
|
|
980
980
|
people,
|
|
981
981
|
...runnerProps,
|
|
@@ -1021,10 +1021,10 @@ function ConnectedWorkflowRunner({
|
|
|
1021
1021
|
) }),
|
|
1022
1022
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1023
1023
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1024
|
-
|
|
1024
|
+
chunk5JVPLVDT_cjs.WorkflowStepBar,
|
|
1025
1025
|
{
|
|
1026
1026
|
run: view,
|
|
1027
|
-
levels:
|
|
1027
|
+
levels: chunk5JVPLVDT_cjs.stepLevels(view.steps),
|
|
1028
1028
|
doneTitle: (workflow.run.kind === "steps" ? workflow.run.completion?.title : void 0) ?? runnerProps.labels?.complete ?? "Done",
|
|
1029
1029
|
icon: (key) => key && runnerProps.renderIcon ? runnerProps.renderIcon(key) : void 0,
|
|
1030
1030
|
tid: (suffix) => `${testIdPrefix}-${suffix}`
|
|
@@ -1205,7 +1205,7 @@ function ConnectedTagTable({
|
|
|
1205
1205
|
const fail = (e) => setError(e instanceof Error ? e.message : String(e));
|
|
1206
1206
|
const snapshot = (data) => {
|
|
1207
1207
|
const title = exportTitle ?? KIND_TITLES[kind];
|
|
1208
|
-
const bytes =
|
|
1208
|
+
const bytes = chunkGIEHWHVO_cjs.tagTableDocx(data, {
|
|
1209
1209
|
title,
|
|
1210
1210
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
1211
1211
|
});
|
|
@@ -1215,7 +1215,7 @@ function ConnectedTagTable({
|
|
|
1215
1215
|
};
|
|
1216
1216
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1217
1217
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1218
|
-
|
|
1218
|
+
chunkGIEHWHVO_cjs.TagTable,
|
|
1219
1219
|
{
|
|
1220
1220
|
...props,
|
|
1221
1221
|
table,
|
|
@@ -2155,6 +2155,17 @@ var NO_WORD = {
|
|
|
2155
2155
|
loadFonts: () => Promise.reject(new Error("No Word editor"))
|
|
2156
2156
|
}
|
|
2157
2157
|
};
|
|
2158
|
+
function notifySent(notify3, result) {
|
|
2159
|
+
const status = result && typeof result === "object" && "delivery_status" in result ? result.delivery_status : null;
|
|
2160
|
+
if (status === "bounced")
|
|
2161
|
+
notify3("Email couldn't be delivered", "error", { description: "Open it in Sent to see why." });
|
|
2162
|
+
else if (status === "partially_bounced")
|
|
2163
|
+
notify3("Email couldn't be delivered to every recipient", "error", {
|
|
2164
|
+
description: "Open it in Sent to see which and why."
|
|
2165
|
+
});
|
|
2166
|
+
else if (status === "delivered") notify3("Email delivered", "success");
|
|
2167
|
+
else notify3("Email queued for delivery", "success");
|
|
2168
|
+
}
|
|
2158
2169
|
function MailComposerForm({
|
|
2159
2170
|
account,
|
|
2160
2171
|
initial,
|
|
@@ -2311,8 +2322,7 @@ function MailComposerForm({
|
|
|
2311
2322
|
setWordPending(true);
|
|
2312
2323
|
try {
|
|
2313
2324
|
if (!secure) {
|
|
2314
|
-
await wordBody.send({ ...value, request_id: requestId.current });
|
|
2315
|
-
notify3("Email queued for delivery", "success");
|
|
2325
|
+
notifySent(notify3, await wordBody.send({ ...value, request_id: requestId.current }));
|
|
2316
2326
|
onClose();
|
|
2317
2327
|
return;
|
|
2318
2328
|
}
|
|
@@ -2352,7 +2362,7 @@ function MailComposerForm({
|
|
|
2352
2362
|
onClose();
|
|
2353
2363
|
return;
|
|
2354
2364
|
}
|
|
2355
|
-
notify3
|
|
2365
|
+
notifySent(notify3, result);
|
|
2356
2366
|
if (localDraftId) void offline?.deleteDraft(localDraftId);
|
|
2357
2367
|
onClose();
|
|
2358
2368
|
},
|