@arbidocs/blocks 0.4.120 → 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.
Files changed (76) hide show
  1. package/dist/agents/index.cjs +286 -286
  2. package/dist/agents/index.js +10 -10
  3. package/dist/calls/index.cjs +1 -1
  4. package/dist/calls/index.js +1 -1
  5. package/dist/{chunk-XFZ7HNPG.js → chunk-4MRQKBD2.js} +3 -3
  6. package/dist/{chunk-XFZ7HNPG.js.map → chunk-4MRQKBD2.js.map} +1 -1
  7. package/dist/{chunk-XSUOEJB3.cjs → chunk-5JVPLVDT.cjs} +3 -3
  8. package/dist/{chunk-XSUOEJB3.cjs.map → chunk-5JVPLVDT.cjs.map} +1 -1
  9. package/dist/{chunk-P5ST47VY.js → chunk-5Y7JRY7Y.js} +3 -3
  10. package/dist/{chunk-P5ST47VY.js.map → chunk-5Y7JRY7Y.js.map} +1 -1
  11. package/dist/{chunk-AY32GGKU.js → chunk-DFHDWO6U.js} +3 -3
  12. package/dist/{chunk-AY32GGKU.js.map → chunk-DFHDWO6U.js.map} +1 -1
  13. package/dist/{chunk-US5ASM4G.cjs → chunk-GIEHWHVO.cjs} +5 -5
  14. package/dist/{chunk-US5ASM4G.cjs.map → chunk-GIEHWHVO.cjs.map} +1 -1
  15. package/dist/{chunk-6Z7DLJU2.js → chunk-N5S6JG7S.js} +11 -11
  16. package/dist/{chunk-6Z7DLJU2.js.map → chunk-N5S6JG7S.js.map} +1 -1
  17. package/dist/{chunk-ZV3BKLFY.cjs → chunk-NYHGG2IA.cjs} +3 -3
  18. package/dist/{chunk-ZV3BKLFY.cjs.map → chunk-NYHGG2IA.cjs.map} +1 -1
  19. package/dist/{chunk-FXUQZFAN.cjs → chunk-SCLMCCMU.cjs} +55 -55
  20. package/dist/{chunk-FXUQZFAN.cjs.map → chunk-SCLMCCMU.cjs.map} +1 -1
  21. package/dist/collaboration/index.cjs +10 -10
  22. package/dist/collaboration/index.js +2 -2
  23. package/dist/connect/index.cjs +39 -29
  24. package/dist/connect/index.cjs.map +1 -1
  25. package/dist/connect/index.js +20 -10
  26. package/dist/connect/index.js.map +1 -1
  27. package/dist/document-tools/index.cjs +1 -1
  28. package/dist/document-tools/index.js +1 -1
  29. package/dist/facts/index.cjs +3 -3
  30. package/dist/facts/index.js +3 -3
  31. package/dist/files/index.cjs +3 -3
  32. package/dist/files/index.js +3 -3
  33. package/dist/home/index.cjs +18 -18
  34. package/dist/home/index.js +4 -4
  35. package/dist/index.cjs +406 -406
  36. package/dist/index.js +16 -16
  37. package/dist/retrieval/index.cjs +1 -1
  38. package/dist/retrieval/index.js +1 -1
  39. package/dist/settings/index.cjs +11 -11
  40. package/dist/settings/index.js +3 -3
  41. package/dist/shell/index.cjs +11 -11
  42. package/dist/shell/index.js +3 -3
  43. package/dist/site/index.cjs +5 -5
  44. package/dist/site/index.js +1 -1
  45. package/dist/studio/index.cjs +2 -2
  46. package/dist/studio/index.js +2 -2
  47. package/dist/workflow-canvas/index.cjs +53 -53
  48. package/dist/workflow-canvas/index.js +10 -10
  49. package/dist/workspaces/index.cjs +1 -1
  50. package/dist/workspaces/index.js +1 -1
  51. package/node_modules/@arbidocs/coedit/dist/commands.cjs +222 -12
  52. package/node_modules/@arbidocs/coedit/dist/commands.cjs.map +1 -1
  53. package/node_modules/@arbidocs/coedit/dist/commands.d.cts +82 -5
  54. package/node_modules/@arbidocs/coedit/dist/commands.d.ts +82 -5
  55. package/node_modules/@arbidocs/coedit/dist/commands.js +217 -13
  56. package/node_modules/@arbidocs/coedit/dist/commands.js.map +1 -1
  57. package/node_modules/@arbidocs/coedit/dist/encoding.d.cts +2 -0
  58. package/node_modules/@arbidocs/coedit/dist/encoding.d.ts +2 -0
  59. package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs +27 -0
  60. package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs.map +1 -1
  61. package/node_modules/@arbidocs/coedit/dist/hocuspocus.js +27 -0
  62. package/node_modules/@arbidocs/coedit/dist/hocuspocus.js.map +1 -1
  63. package/node_modules/@arbidocs/coedit/dist/index.cjs +27 -0
  64. package/node_modules/@arbidocs/coedit/dist/index.cjs.map +1 -1
  65. package/node_modules/@arbidocs/coedit/dist/index.js +27 -0
  66. package/node_modules/@arbidocs/coedit/dist/index.js.map +1 -1
  67. package/node_modules/@arbidocs/coedit/dist/{port-ip7WByvH.d.cts → port-BbN5OZHx.d.cts} +24 -1
  68. package/node_modules/@arbidocs/coedit/dist/{port-ip7WByvH.d.ts → port-BbN5OZHx.d.ts} +24 -1
  69. package/node_modules/@arbidocs/coedit/dist/server.cjs +65 -2
  70. package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
  71. package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
  72. package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
  73. package/node_modules/@arbidocs/coedit/dist/server.js +65 -2
  74. package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
  75. package/node_modules/@arbidocs/coedit/package.json +1 -1
  76. package/package.json +4 -4
@@ -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,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 chunkO4YPVYPO_cjs = require('../chunk-O4YPVYPO.cjs');
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 chunkXSUOEJB3_cjs = require('../chunk-XSUOEJB3.cjs');
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
- chunkUS5ASM4G_cjs.WorkspaceActivityList,
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
- chunkUS5ASM4G_cjs.WorkspaceNotificationMenu,
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" ? chunkUS5ASM4G_cjs.ThreadFollowMenuItem : chunkUS5ASM4G_cjs.ThreadFollowButton;
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 = chunkXSUOEJB3_cjs.stepFields(step);
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
- () => chunkXSUOEJB3_cjs.initialRunInputs(workflow, options.initialInputs)
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
- () => chunkXSUOEJB3_cjs.workflowSteps(workflow).length > 0 ? chunkXSUOEJB3_cjs.workflowSteps(workflow) : chunkXSUOEJB3_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
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
- () => chunkXSUOEJB3_cjs.stepStatesFromActivity(activity.data ?? []),
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: chunkXSUOEJB3_cjs.runThreadTitle(workflow, values).slice(0, 60),
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: chunkXSUOEJB3_cjs.toPlanSteps(workflow, {
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 = chunkXSUOEJB3_cjs.useWorkflowView({
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 } = chunkXSUOEJB3_cjs.splitDocRef(docRef);
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 } = chunkXSUOEJB3_cjs.splitDocRef(docRef);
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 } = chunkXSUOEJB3_cjs.splitDocRef(ref);
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(chunkXSUOEJB3_cjs.splitDocRef(ref).id) ?? "" })),
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
- chunkXSUOEJB3_cjs.WorkflowRunner,
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
- chunkXSUOEJB3_cjs.WorkflowStepBar,
1024
+ chunk5JVPLVDT_cjs.WorkflowStepBar,
1025
1025
  {
1026
1026
  run: view,
1027
- levels: chunkXSUOEJB3_cjs.stepLevels(view.steps),
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 = chunkUS5ASM4G_cjs.tagTableDocx(data, {
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
- chunkUS5ASM4G_cjs.TagTable,
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("Email queued for delivery", "success");
2365
+ notifySent(notify3, result);
2356
2366
  if (localDraftId) void offline?.deleteDraft(localDraftId);
2357
2367
  onClose();
2358
2368
  },