@arbidocs/blocks 0.5.123 → 0.5.124

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 (117) hide show
  1. package/dist/{ClippingMediaViewer-IEIBT74X.cjs → ClippingMediaViewer-ZFEX5A3U.cjs} +11 -10
  2. package/dist/ClippingMediaViewer-ZFEX5A3U.cjs.map +1 -0
  3. package/dist/{ClippingPdfViewer-OGYLMVCE.cjs → ClippingPdfViewer-3LRTEPHV.cjs} +45 -11
  4. package/dist/ClippingPdfViewer-3LRTEPHV.cjs.map +1 -0
  5. package/dist/ConnectedNativeDocxComparison-QKHCYD6W.cjs +1 -1
  6. package/dist/{ConnectedPresentation-5DOJ35XL.cjs → ConnectedPresentation-OV2KBOLK.cjs} +27 -153
  7. package/dist/ConnectedPresentation-OV2KBOLK.cjs.map +1 -0
  8. package/dist/{ConnectedSlidesTab-7YMEDGUU.cjs → ConnectedSlidesTab-LUAGZ6FD.cjs} +29 -27
  9. package/dist/ConnectedSlidesTab-LUAGZ6FD.cjs.map +1 -0
  10. package/dist/ConnectedStreamedWordArtifact-AG62232A.cjs +1 -1
  11. package/dist/{FilesViewerDialog-2QCCRWF2.cjs → FilesViewerDialog-JWKNJLWG.cjs} +12 -9
  12. package/dist/FilesViewerDialog-JWKNJLWG.cjs.map +1 -0
  13. package/dist/SpotlightStrip-ED22UYTM.cjs +398 -0
  14. package/dist/SpotlightStrip-ED22UYTM.cjs.map +1 -0
  15. package/dist/agents/index.cjs +176 -176
  16. package/dist/{chunk-46P7IDBX.cjs → chunk-3IH55CDE.cjs} +3 -3
  17. package/dist/chunk-3IH55CDE.cjs.map +1 -0
  18. package/dist/chunk-3ZZZO4F7.cjs +145 -0
  19. package/dist/chunk-3ZZZO4F7.cjs.map +1 -0
  20. package/dist/{chunk-WFMWKPGY.cjs → chunk-ADPRIBSH.cjs} +9 -33
  21. package/dist/chunk-ADPRIBSH.cjs.map +1 -0
  22. package/dist/{chunk-JD2HX2BR.cjs → chunk-BX6G2ZCI.cjs} +58 -86
  23. package/dist/chunk-BX6G2ZCI.cjs.map +1 -0
  24. package/dist/{chunk-NQML7IUC.cjs → chunk-CQQQIZU4.cjs} +3 -3
  25. package/dist/{chunk-NQML7IUC.cjs.map → chunk-CQQQIZU4.cjs.map} +1 -1
  26. package/dist/{chunk-SNPK3R3O.cjs → chunk-EMRY62HS.cjs} +5 -5
  27. package/dist/{chunk-SNPK3R3O.cjs.map → chunk-EMRY62HS.cjs.map} +1 -1
  28. package/dist/{chunk-DWMWEALB.cjs → chunk-H236SNEV.cjs} +143 -1634
  29. package/dist/chunk-H236SNEV.cjs.map +1 -0
  30. package/dist/chunk-JITYC4OS.cjs +66 -0
  31. package/dist/chunk-JITYC4OS.cjs.map +1 -0
  32. package/dist/chunk-JY7UUZQG.cjs +1513 -0
  33. package/dist/chunk-JY7UUZQG.cjs.map +1 -0
  34. package/dist/chunk-MVXHTAJ4.cjs +111 -0
  35. package/dist/chunk-MVXHTAJ4.cjs.map +1 -0
  36. package/dist/{chunk-4TTX6ZNS.cjs → chunk-ORNLCBNE.cjs} +24 -2
  37. package/dist/chunk-ORNLCBNE.cjs.map +1 -0
  38. package/dist/{chunk-L4CIFLCU.cjs → chunk-QG2U2JGX.cjs} +4 -4
  39. package/dist/{chunk-L4CIFLCU.cjs.map → chunk-QG2U2JGX.cjs.map} +1 -1
  40. package/dist/chunk-WVZLAAIZ.cjs +31 -0
  41. package/dist/chunk-WVZLAAIZ.cjs.map +1 -0
  42. package/dist/{chunk-WV7BCGCK.cjs → chunk-XGM4VVNV.cjs} +19 -19
  43. package/dist/{chunk-WV7BCGCK.cjs.map → chunk-XGM4VVNV.cjs.map} +1 -1
  44. package/dist/chunk-ZZZITHGK.cjs +119 -0
  45. package/dist/chunk-ZZZITHGK.cjs.map +1 -0
  46. package/dist/connect/docx.cjs +1 -1
  47. package/dist/connect/index.cjs +175 -175
  48. package/dist/connect/viewer.cjs +10 -7
  49. package/dist/connection/presentation/ClippingMediaViewer.js +3 -3
  50. package/dist/connection/presentation/ClippingMediaViewer.js.map +2 -2
  51. package/dist/connection/presentation/ClippingPdfViewer.d.ts +4 -3
  52. package/dist/connection/presentation/ClippingPdfViewer.js +48 -9
  53. package/dist/connection/presentation/ClippingPdfViewer.js.map +2 -2
  54. package/dist/connection/presentation/SpotlightLayer.d.ts +5 -0
  55. package/dist/connection/presentation/SpotlightLayer.js +19 -0
  56. package/dist/connection/presentation/SpotlightLayer.js.map +7 -0
  57. package/dist/connection/presentation/SpotlightStrip.d.ts +10 -0
  58. package/dist/connection/presentation/SpotlightStrip.js +237 -0
  59. package/dist/connection/presentation/SpotlightStrip.js.map +7 -0
  60. package/dist/connection/presentation/useViewerClipping.d.ts +4 -3
  61. package/dist/connection/presentation/useViewerClipping.js +8 -4
  62. package/dist/connection/presentation/useViewerClipping.js.map +2 -2
  63. package/dist/connection/viewer/ConnectedDocumentViewer.js +1 -1
  64. package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
  65. package/dist/connection/viewer/pdf/passageHighlights.d.ts +5 -0
  66. package/dist/connection/viewer/pdf/passageHighlights.js +14 -1
  67. package/dist/connection/viewer/pdf/passageHighlights.js.map +2 -2
  68. package/dist/connection/viewer/useCleanView.d.ts +3 -1
  69. package/dist/connection/viewer/useCleanView.js +6 -3
  70. package/dist/connection/viewer/useCleanView.js.map +2 -2
  71. package/dist/document-tools/DocumentToolButtons.js +1 -1
  72. package/dist/document-tools/DocumentToolButtons.js.map +1 -1
  73. package/dist/document-tools/index.cjs +13 -13
  74. package/dist/embed/index.cjs +2 -2
  75. package/dist/index.cjs +239 -239
  76. package/dist/presentation/ClipCaptureOverlay.d.ts +7 -3
  77. package/dist/presentation/ClipCaptureOverlay.js +43 -14
  78. package/dist/presentation/ClipCaptureOverlay.js.map +2 -2
  79. package/dist/presentation/PresentControls.d.ts +8 -0
  80. package/dist/presentation/PresentControls.js +1 -0
  81. package/dist/presentation/PresentControls.js.map +2 -2
  82. package/dist/presentation/PresentationStage.d.ts +10 -2
  83. package/dist/presentation/PresentationStage.js +6 -3
  84. package/dist/presentation/PresentationStage.js.map +2 -2
  85. package/dist/presentation/PresenterView.js +1 -22
  86. package/dist/presentation/PresenterView.js.map +2 -2
  87. package/dist/presentation/SpotlightView.d.ts +19 -0
  88. package/dist/presentation/SpotlightView.js +180 -0
  89. package/dist/presentation/SpotlightView.js.map +7 -0
  90. package/dist/presentation/passage-clip.d.ts +17 -0
  91. package/dist/presentation/passage-clip.js +25 -0
  92. package/dist/presentation/passage-clip.js.map +7 -0
  93. package/dist/presentation/spotlight.d.ts +58 -0
  94. package/dist/presentation/spotlight.js +110 -0
  95. package/dist/presentation/spotlight.js.map +7 -0
  96. package/dist/presentation/store.d.ts +5 -0
  97. package/dist/presentation/store.js +19 -0
  98. package/dist/presentation/store.js.map +2 -2
  99. package/dist/presentation/usePointerActive.d.ts +2 -0
  100. package/dist/presentation/usePointerActive.js +28 -0
  101. package/dist/presentation/usePointerActive.js.map +7 -0
  102. package/dist/styles.css +1 -1
  103. package/dist/workflow-canvas/index.cjs +12 -12
  104. package/node_modules/@arbidocs/coedit/package.json +1 -1
  105. package/package.json +5 -5
  106. package/dist/ClippingMediaViewer-IEIBT74X.cjs.map +0 -1
  107. package/dist/ClippingPdfViewer-OGYLMVCE.cjs.map +0 -1
  108. package/dist/ConnectedPresentation-5DOJ35XL.cjs.map +0 -1
  109. package/dist/ConnectedSlidesTab-7YMEDGUU.cjs.map +0 -1
  110. package/dist/FilesViewerDialog-2QCCRWF2.cjs.map +0 -1
  111. package/dist/chunk-46P7IDBX.cjs.map +0 -1
  112. package/dist/chunk-4TTX6ZNS.cjs.map +0 -1
  113. package/dist/chunk-DWMWEALB.cjs.map +0 -1
  114. package/dist/chunk-JD2HX2BR.cjs.map +0 -1
  115. package/dist/chunk-WFMWKPGY.cjs.map +0 -1
  116. package/dist/chunk-XK4TVJKD.cjs +0 -73
  117. package/dist/chunk-XK4TVJKD.cjs.map +0 -1
@@ -13,7 +13,7 @@ var chunkWAV762GP_cjs = require('./chunk-WAV762GP.cjs');
13
13
  var chunkJH6JTI76_cjs = require('./chunk-JH6JTI76.cjs');
14
14
  var chunkZ3LFF3YT_cjs = require('./chunk-Z3LFF3YT.cjs');
15
15
  var chunkNSD37OF5_cjs = require('./chunk-NSD37OF5.cjs');
16
- var chunkNQML7IUC_cjs = require('./chunk-NQML7IUC.cjs');
16
+ var chunkCQQQIZU4_cjs = require('./chunk-CQQQIZU4.cjs');
17
17
  var chunkTP5PGWIO_cjs = require('./chunk-TP5PGWIO.cjs');
18
18
  var chunk7JLJH5CW_cjs = require('./chunk-7JLJH5CW.cjs');
19
19
  var chunkJJZOL5MG_cjs = require('./chunk-JJZOL5MG.cjs');
@@ -148,7 +148,7 @@ function ConnectedTaskComposer({
148
148
  const label = (t) => t.title?.trim() || "Untitled task";
149
149
  if (isWorkflow) return allTasks.map((t) => ({ id: t.external_id, name: label(t) }));
150
150
  const subject = task ?? { external_id: "__new__" };
151
- return chunkNQML7IUC_cjs.moveTargets(
151
+ return chunkCQQQIZU4_cjs.moveTargets(
152
152
  [...allTasks.filter((t) => t.external_id !== subject.external_id), subject],
153
153
  subject
154
154
  ).map((t) => ({ id: t.external_id, name: label(t) }));
@@ -286,7 +286,7 @@ function ConnectedTaskComposer({
286
286
  }
287
287
  };
288
288
  return /* @__PURE__ */ jsxRuntime.jsx(
289
- chunkNQML7IUC_cjs.TaskComposer,
289
+ chunkCQQQIZU4_cjs.TaskComposer,
290
290
  {
291
291
  open,
292
292
  onOpenChange,
@@ -340,7 +340,7 @@ function ConnectedTaskComposer({
340
340
  },
341
341
  onSubmit: submit,
342
342
  goal: (values) => values.workflowId === chunk7JLJH5CW_cjs.CUSTOM_TASK_ID ? /* @__PURE__ */ jsxRuntime.jsx(
343
- chunkNQML7IUC_cjs.TaskPlan,
343
+ chunkCQQQIZU4_cjs.TaskPlan,
344
344
  {
345
345
  plan,
346
346
  onChange: setPlan,
@@ -386,7 +386,7 @@ function ConnectedWorkflowHistory({
386
386
  const { openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
387
387
  const { data: runs = [], isLoading } = react.useWorkflowRuns(workflow?.external_id);
388
388
  return /* @__PURE__ */ jsxRuntime.jsx(
389
- chunkNQML7IUC_cjs.TaskRunsDialog,
389
+ chunkCQQQIZU4_cjs.TaskRunsDialog,
390
390
  {
391
391
  inline,
392
392
  hideHeader,
@@ -437,7 +437,7 @@ function ConnectedTaskActivityDialog({
437
437
  [agents]
438
438
  );
439
439
  return /* @__PURE__ */ jsxRuntime.jsx(
440
- chunkNQML7IUC_cjs.TaskActivityDialog,
440
+ chunkCQQQIZU4_cjs.TaskActivityDialog,
441
441
  {
442
442
  open: true,
443
443
  onOpenChange: (open) => !open && onClose(),
@@ -535,7 +535,7 @@ function ConnectedThreadTaskBar({
535
535
  ).finally(() => setBusy(false));
536
536
  };
537
537
  const strip = /* @__PURE__ */ jsxRuntime.jsx(
538
- chunkNQML7IUC_cjs.WorkflowThreadStrip,
538
+ chunkCQQQIZU4_cjs.WorkflowThreadStrip,
539
539
  {
540
540
  renderIcon,
541
541
  ...variant === "steps" ? { maxSpan: 3, current: currentStepId, onSelectStep } : {},
@@ -564,7 +564,7 @@ function ConnectedThreadTaskBar({
564
564
  renderStepAction: (step, phase) => (
565
565
  // A signer or a draft's person acts on their step even on a thread they cannot edit.
566
566
  canEdit || phase === "waiting" || phase === "done" ? /* @__PURE__ */ jsxRuntime.jsx(
567
- chunkNQML7IUC_cjs.WorkflowStepAction,
567
+ chunkCQQQIZU4_cjs.WorkflowStepAction,
568
568
  {
569
569
  step,
570
570
  phase,
@@ -602,7 +602,7 @@ function ConnectedThreadTaskBar({
602
602
  // A workflow run: its named steps, with what happened in the thread under each.
603
603
  strip
604
604
  ) : items.length || startedBy ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
605
- startedBy && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.WorkflowThreadStartedBy, { origin: startedBy }),
605
+ startedBy && /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.WorkflowThreadStartedBy, { origin: startedBy }),
606
606
  /* @__PURE__ */ jsxRuntime.jsx(chunkTP5PGWIO_cjs.TaskFlow, { items: items.filter((item) => !item.step) })
607
607
  ] }) : (
608
608
  // Ordinary chats record no activity events, so an empty ribbon says nothing rather than
@@ -721,7 +721,7 @@ ${labels.map((l) => `${l.key}=${l.name}`).join("\n")}`;
721
721
  if (known) return known;
722
722
  const setUp = (async () => {
723
723
  const existing = await arbi.tags.list({ workspaceId });
724
- const { ids, missing } = chunkNQML7IUC_cjs.matchRequiredLabels(labels, existing);
724
+ const { ids, missing } = chunkCQQQIZU4_cjs.matchRequiredLabels(labels, existing);
725
725
  for (const label of missing) {
726
726
  const tag = await createTag({
727
727
  name: label.name,
@@ -1475,7 +1475,7 @@ function useWorkflowThread(workflow, options = {}) {
1475
1475
  const createThread = react$1.useCallback(
1476
1476
  async (values, done) => {
1477
1477
  const prepared = await options.beforeStart?.();
1478
- const planned = prepared?.labelIds ? chunkNQML7IUC_cjs.withLabelIds(workflow, prepared.labelIds) : workflow;
1478
+ const planned = prepared?.labelIds ? chunkCQQQIZU4_cjs.withLabelIds(workflow, prepared.labelIds) : workflow;
1479
1479
  const created = await createWork.mutateAsync({
1480
1480
  title: chunkQGVOT7E4_cjs.runThreadTitle(workflow, values).slice(0, 60),
1481
1481
  description: workflow.description || null,
@@ -1576,7 +1576,7 @@ function useWorkflowThread(workflow, options = {}) {
1576
1576
  const anyRunning = Object.values(states).some((s) => s.status === "running");
1577
1577
  const needsStart = !threadId || idle && !anyRunning;
1578
1578
  const runError = idle ? conversation?.last_error ?? null : null;
1579
- const view = chunkNQML7IUC_cjs.useWorkflowView({
1579
+ const view = chunkCQQQIZU4_cjs.useWorkflowView({
1580
1580
  steps,
1581
1581
  states,
1582
1582
  inputs,
@@ -1868,7 +1868,7 @@ function WorkflowRunBody({
1868
1868
  const session = react.useArbiSessionStore();
1869
1869
  const openRef = react$1.useRef(workspaceId);
1870
1870
  openRef.current = workspaceId;
1871
- const required = chunkNQML7IUC_cjs.requiredLabelsOf(given);
1871
+ const required = chunkCQQQIZU4_cjs.requiredLabelsOf(given);
1872
1872
  const ownEnsureLabels = useEnsureRequiredLabels();
1873
1873
  const ensureLabels = page?.ensureLabels ?? ownEnsureLabels;
1874
1874
  const [startedLabelIds, setStartedLabelIds] = react$1.useState({});
@@ -1883,7 +1883,7 @@ function WorkflowRunBody({
1883
1883
  const fromStep = pageTarget ? projectStepOf(projectFrom) : void 0;
1884
1884
  const projectStep = fromStep?.step;
1885
1885
  const workflow = react$1.useMemo(
1886
- () => withCommitStep(chunkNQML7IUC_cjs.withLabelIds(given, labelIds), projectStep),
1886
+ () => withCommitStep(chunkCQQQIZU4_cjs.withLabelIds(given, labelIds), projectStep),
1887
1887
  [given, labelIds, projectStep]
1888
1888
  );
1889
1889
  const hostBeforeStart = options?.beforeStart;
@@ -2076,7 +2076,7 @@ function WorkflowRunBody({
2076
2076
  ) : null;
2077
2077
  };
2078
2078
  const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
2079
- chunkNQML7IUC_cjs.WorkflowRunner,
2079
+ chunkCQQQIZU4_cjs.WorkflowRunner,
2080
2080
  {
2081
2081
  people,
2082
2082
  ...runnerProps,
@@ -2137,7 +2137,7 @@ function WorkflowRunBody({
2137
2137
  pageBar,
2138
2138
  inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2139
2139
  !page && /* @__PURE__ */ jsxRuntime.jsx(
2140
- chunkNQML7IUC_cjs.WorkflowStepBar,
2140
+ chunkCQQQIZU4_cjs.WorkflowStepBar,
2141
2141
  {
2142
2142
  run: view,
2143
2143
  levels: chunkQGVOT7E4_cjs.stepLevels(view.steps),
@@ -2377,7 +2377,7 @@ function ConnectedWorkflowRunPage({
2377
2377
  workspaceId,
2378
2378
  onProjectCreated
2379
2379
  });
2380
- const required = chunkNQML7IUC_cjs.requiredLabelsOf(workflow);
2380
+ const required = chunkCQQQIZU4_cjs.requiredLabelsOf(workflow);
2381
2381
  const ensure = useEnsureRequiredLabels();
2382
2382
  const labels = useRequiredLabels(required, target.target, ensure, target.stage === "ready");
2383
2383
  const fromStep = !!projectStepOf(projectFrom);
@@ -2502,5 +2502,5 @@ exports.useRequiredLabels = useRequiredLabels;
2502
2502
  exports.useTaskPeople = useTaskPeople;
2503
2503
  exports.useWorkflowsPageState = useWorkflowsPageState;
2504
2504
  exports.workflowRunView = workflowRunView;
2505
- //# sourceMappingURL=chunk-WV7BCGCK.cjs.map
2506
- //# sourceMappingURL=chunk-WV7BCGCK.cjs.map
2505
+ //# sourceMappingURL=chunk-XGM4VVNV.cjs.map
2506
+ //# sourceMappingURL=chunk-XGM4VVNV.cjs.map