@arbidocs/blocks 0.4.78 → 0.4.80

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 (83) hide show
  1. package/dist/agents/index.cjs +281 -281
  2. package/dist/agents/index.js +6 -6
  3. package/dist/agents/workflows/StepBarFrame.d.ts +8 -2
  4. package/dist/agents/workflows/stepWindow.d.ts +7 -0
  5. package/dist/chat/index.cjs +125 -125
  6. package/dist/chat/index.js +3 -3
  7. package/dist/{chunk-VFIZYSZB.cjs → chunk-2FEQGDW2.cjs} +28 -12
  8. package/dist/chunk-2FEQGDW2.cjs.map +1 -0
  9. package/dist/{chunk-5OC5CGYX.js → chunk-A5WCK6ZG.js} +8 -8
  10. package/dist/chunk-A5WCK6ZG.js.map +1 -0
  11. package/dist/{chunk-IF6VAYIA.cjs → chunk-C3DRLFU7.cjs} +5 -5
  12. package/dist/{chunk-IF6VAYIA.cjs.map → chunk-C3DRLFU7.cjs.map} +1 -1
  13. package/dist/{chunk-GJV2G4FC.js → chunk-E367ZUHE.js} +3 -3
  14. package/dist/{chunk-GJV2G4FC.js.map → chunk-E367ZUHE.js.map} +1 -1
  15. package/dist/{chunk-XMBYDLZQ.cjs → chunk-HUJLKDWX.cjs} +4 -4
  16. package/dist/{chunk-XMBYDLZQ.cjs.map → chunk-HUJLKDWX.cjs.map} +1 -1
  17. package/dist/{chunk-ICBAFX5B.js → chunk-LBE36YNZ.js} +3 -3
  18. package/dist/{chunk-ICBAFX5B.js.map → chunk-LBE36YNZ.js.map} +1 -1
  19. package/dist/{chunk-SSDISIDW.cjs → chunk-LGDX34UR.cjs} +45 -45
  20. package/dist/chunk-LGDX34UR.cjs.map +1 -0
  21. package/dist/{chunk-B3WCKBJ7.cjs → chunk-MFDGNUKX.cjs} +3 -3
  22. package/dist/{chunk-B3WCKBJ7.cjs.map → chunk-MFDGNUKX.cjs.map} +1 -1
  23. package/dist/{chunk-MP6FK43E.cjs → chunk-O5NDG4EA.cjs} +3 -3
  24. package/dist/{chunk-MP6FK43E.cjs.map → chunk-O5NDG4EA.cjs.map} +1 -1
  25. package/dist/{chunk-DDF5GPIJ.js → chunk-P5ST47VY.js} +3 -3
  26. package/dist/{chunk-DDF5GPIJ.js.map → chunk-P5ST47VY.js.map} +1 -1
  27. package/dist/{chunk-EWSEQEPL.js → chunk-PFA43QNX.js} +3 -3
  28. package/dist/{chunk-EWSEQEPL.js.map → chunk-PFA43QNX.js.map} +1 -1
  29. package/dist/{chunk-WXRCMIAE.js → chunk-QFA3NCWL.js} +27 -13
  30. package/dist/chunk-QFA3NCWL.js.map +1 -0
  31. package/dist/{chunk-CWAZNXC5.js → chunk-SWSVPQNB.js} +30 -8
  32. package/dist/chunk-SWSVPQNB.js.map +1 -0
  33. package/dist/{chunk-MLAHDAN5.cjs → chunk-UA2AMDR6.cjs} +30 -8
  34. package/dist/chunk-UA2AMDR6.cjs.map +1 -0
  35. package/dist/{chunk-XQDM6T6C.js → chunk-WDD255XQ.js} +3 -3
  36. package/dist/{chunk-XQDM6T6C.js.map → chunk-WDD255XQ.js.map} +1 -1
  37. package/dist/{chunk-Z5VUZ6YD.cjs → chunk-ZV3BKLFY.cjs} +3 -3
  38. package/dist/{chunk-Z5VUZ6YD.cjs.map → chunk-ZV3BKLFY.cjs.map} +1 -1
  39. package/dist/connect/index.cjs +68 -64
  40. package/dist/connect/index.cjs.map +1 -1
  41. package/dist/connect/index.d.ts +1 -1
  42. package/dist/connect/index.js +18 -14
  43. package/dist/connect/index.js.map +1 -1
  44. package/dist/connection/ConnectedWorkflowRunner.d.ts +16 -1
  45. package/dist/databases/ColumnConfigFields.d.ts +68 -0
  46. package/dist/databases/DatabaseColumnDialog.d.ts +27 -2
  47. package/dist/databases/DatabaseTable.d.ts +8 -1
  48. package/dist/databases/PickCellEditor.d.ts +21 -0
  49. package/dist/databases/column-types.d.ts +73 -9
  50. package/dist/databases/databaseColumns.d.ts +4 -0
  51. package/dist/databases/index.cjs +758 -27
  52. package/dist/databases/index.cjs.map +1 -1
  53. package/dist/databases/index.d.ts +4 -1
  54. package/dist/databases/index.js +745 -31
  55. package/dist/databases/index.js.map +1 -1
  56. package/dist/databases/linkCells.d.ts +48 -0
  57. package/dist/facts/index.cjs +1 -1
  58. package/dist/facts/index.js +1 -1
  59. package/dist/files/index.cjs +2 -2
  60. package/dist/files/index.js +2 -2
  61. package/dist/home/index.cjs +17 -17
  62. package/dist/home/index.js +3 -3
  63. package/dist/index.cjs +513 -513
  64. package/dist/index.js +11 -11
  65. package/dist/retrieval/index.cjs +1 -1
  66. package/dist/retrieval/index.js +1 -1
  67. package/dist/settings/index.cjs +35 -35
  68. package/dist/settings/index.js +2 -2
  69. package/dist/shell/index.cjs +1 -1
  70. package/dist/shell/index.js +1 -1
  71. package/dist/studio/index.cjs +4 -4
  72. package/dist/studio/index.js +3 -3
  73. package/dist/workflow-canvas/index.cjs +49 -49
  74. package/dist/workflow-canvas/index.js +6 -6
  75. package/dist/workspaces/index.cjs +2 -2
  76. package/dist/workspaces/index.js +2 -2
  77. package/package.json +4 -4
  78. package/dist/chunk-5OC5CGYX.js.map +0 -1
  79. package/dist/chunk-CWAZNXC5.js.map +0 -1
  80. package/dist/chunk-MLAHDAN5.cjs.map +0 -1
  81. package/dist/chunk-SSDISIDW.cjs.map +0 -1
  82. package/dist/chunk-VFIZYSZB.cjs.map +0 -1
  83. package/dist/chunk-WXRCMIAE.js.map +0 -1
@@ -0,0 +1,48 @@
1
+ /** Something a person, document or relation cell can hold, as a picker lists it. */
2
+ export interface DatabasePickOption {
3
+ id: string;
4
+ label: string;
5
+ /** A second, quieter line (an email, a file's folder). */
6
+ description?: string;
7
+ }
8
+ /**
9
+ * Where the pickers of person, document and relation cells get their choices, and what a document
10
+ * chip does. The host owns the data; without a source the cell still shows, but does not edit.
11
+ */
12
+ export interface DatabaseCellSources {
13
+ /** The workspace's members (person cells). */
14
+ members?: DatabasePickOption[];
15
+ /** The workspace's documents (document cells). */
16
+ documents?: DatabasePickOption[];
17
+ /** Rows of `databaseId` matching `q` (relation cells; an empty `q` lists the first rows). */
18
+ searchRows?: (databaseId: string, q: string) => Promise<DatabasePickOption[]>;
19
+ /** Open a document (a click on a document chip). */
20
+ onOpenDocument?: (documentId: string) => void;
21
+ }
22
+ /** A member's avatar initials and name. */
23
+ export declare function PersonChip({ name }: {
24
+ name: string;
25
+ }): import("react").JSX.Element;
26
+ /** A document or related row as a chip; a document chip opens the document when clicked. */
27
+ export declare function LinkChip({ label, kind, onOpen, testId, }: {
28
+ label: string;
29
+ kind: 'document' | 'relation';
30
+ onOpen?: () => void;
31
+ testId?: string;
32
+ }): import("react").JSX.Element;
33
+ export declare function PersonCell({ value, titles }: {
34
+ value: unknown;
35
+ titles?: Record<string, string>;
36
+ }): import("react").JSX.Element | null;
37
+ export declare function LinkChipsCell({ value, titles, kind, onOpenDocument, }: {
38
+ value: unknown;
39
+ titles?: Record<string, string>;
40
+ kind: 'document' | 'relation';
41
+ onOpenDocument?: (id: string) => void;
42
+ }): import("react").JSX.Element | null;
43
+ /** A lookup's values: related rows and documents as chips, anything else as quiet tags. */
44
+ export declare function LookupCell({ value, titles, locale, }: {
45
+ value: unknown;
46
+ titles?: Record<string, string>;
47
+ locale?: string;
48
+ }): import("react").JSX.Element | null;
@@ -10,9 +10,9 @@ var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
10
10
  var chunkIXALYQT7_cjs = require('../chunk-IXALYQT7.cjs');
11
11
  require('../chunk-FX3K6LNZ.cjs');
12
12
  var chunkPPCATBOY_cjs = require('../chunk-PPCATBOY.cjs');
13
+ var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
13
14
  require('../chunk-C54XEN5T.cjs');
14
15
  var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
15
- var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
16
16
  require('../chunk-DES3K4SD.cjs');
17
17
  var lucideReact = require('lucide-react');
18
18
  var ui = require('@arbidocs/react/ui');
@@ -9,9 +9,9 @@ export { DEFAULT_FILTER_INPUT_LABELS as DEFAULT_FACTS_FILTER_INPUT_LABELS, DEFAU
9
9
  import { GridView } from '../chunk-ZPLG7QYF.js';
10
10
  import '../chunk-SLSBJRWW.js';
11
11
  import { observeResize } from '../chunk-NPLYHR2E.js';
12
+ import { testIdOr } from '../chunk-7F6CBP3Z.js';
12
13
  import '../chunk-76JDDMSP.js';
13
14
  import { initials } from '../chunk-OXF2IFXG.js';
14
- import { testIdOr } from '../chunk-7F6CBP3Z.js';
15
15
  import '../chunk-VUNV25KB.js';
16
16
  import { PencilLine, Check, MoreVertical, Pencil, Trash2, CalendarDays, X, Columns3, ChevronDown, RotateCcw, Milestone, CalendarClock, Scale, Lightbulb, ArrowRight, Loader2, Info, Paperclip, Tags, MoreHorizontal, FolderUp, BookMarked, Plus, Search, CheckCircle2, CornerDownLeft, Quote, ChevronLeft, ChevronRight, Table2, CalendarRange, GanttChartSquare } from 'lucide-react';
17
17
  import { Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, cn, Input, Button, CommandSeparator, Tooltip, TooltipTrigger, TooltipContent } from '@arbidocs/react/ui';
@@ -13,11 +13,11 @@ var chunkIXALYQT7_cjs = require('../chunk-IXALYQT7.cjs');
13
13
  var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
14
14
  require('../chunk-FX3K6LNZ.cjs');
15
15
  require('../chunk-PPCATBOY.cjs');
16
- require('../chunk-C54XEN5T.cjs');
17
- var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
18
16
  var chunkVLCY46K6_cjs = require('../chunk-VLCY46K6.cjs');
19
17
  var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
20
18
  var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
19
+ require('../chunk-C54XEN5T.cjs');
20
+ var chunkKDG6FER6_cjs = require('../chunk-KDG6FER6.cjs');
21
21
  require('../chunk-DES3K4SD.cjs');
22
22
  var classVarianceAuthority = require('class-variance-authority');
23
23
  var ui = require('@arbidocs/react/ui');
@@ -14,11 +14,11 @@ export { GridView } from '../chunk-ZPLG7QYF.js';
14
14
  import { ActionLink } from '../chunk-S7PSMMRG.js';
15
15
  import '../chunk-SLSBJRWW.js';
16
16
  import '../chunk-NPLYHR2E.js';
17
- import '../chunk-76JDDMSP.js';
18
- import { formatCount } from '../chunk-OXF2IFXG.js';
19
17
  import { ShareControl } from '../chunk-K4BGOPGG.js';
20
18
  import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
21
19
  import { testIdOr } from '../chunk-7F6CBP3Z.js';
20
+ import '../chunk-76JDDMSP.js';
21
+ import { formatCount } from '../chunk-OXF2IFXG.js';
22
22
  import '../chunk-VUNV25KB.js';
23
23
  import { cva } from 'class-variance-authority';
24
24
  import { cn, Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, Tooltip, TooltipTrigger, TooltipContent, Button, Progress, Badge, RadioGroup, RadioGroupItem, Label, ScrollArea, Checkbox, Dialog, DialogContent, DialogTitle, DialogDescription, TooltipProvider, IconToggle, Textarea, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuSeparator, DropdownMenuItem, DialogTrigger, Input, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, DialogHeader, CommandSeparator, getTagTypeIcon, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, Switch } from '@arbidocs/react/ui';
@@ -3,13 +3,13 @@
3
3
 
4
4
  var chunkXZIYRKLW_cjs = require('../chunk-XZIYRKLW.cjs');
5
5
  var chunkPCB2BPN3_cjs = require('../chunk-PCB2BPN3.cjs');
6
- var chunkZ5VUZ6YD_cjs = require('../chunk-Z5VUZ6YD.cjs');
6
+ var chunkZV3BKLFY_cjs = require('../chunk-ZV3BKLFY.cjs');
7
7
  var chunk7D737FLE_cjs = require('../chunk-7D737FLE.cjs');
8
8
  var chunkOB5F4577_cjs = require('../chunk-OB5F4577.cjs');
9
9
  require('../chunk-PPCATBOY.cjs');
10
+ var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
10
11
  require('../chunk-C54XEN5T.cjs');
11
12
  require('../chunk-KDG6FER6.cjs');
12
- var chunkMHVNT4J3_cjs = require('../chunk-MHVNT4J3.cjs');
13
13
  require('../chunk-DES3K4SD.cjs');
14
14
  var lucideReact = require('lucide-react');
15
15
  var ui = require('@arbidocs/react/ui');
@@ -108,7 +108,7 @@ function RecentList({
108
108
  "data-testid": testId,
109
109
  children: [
110
110
  /* @__PURE__ */ jsxRuntime.jsx(
111
- chunkZ5VUZ6YD_cjs.SectionHeader,
111
+ chunkZV3BKLFY_cjs.SectionHeader,
112
112
  {
113
113
  icon,
114
114
  title,
@@ -120,7 +120,7 @@ function RecentList({
120
120
  }
121
121
  ),
122
122
  rows.length === 0 ? empty?.onSelect ? /* @__PURE__ */ jsxRuntime.jsx(
123
- chunkZ5VUZ6YD_cjs.EmptyStrip,
123
+ chunkZV3BKLFY_cjs.EmptyStrip,
124
124
  {
125
125
  icon: empty.icon,
126
126
  label: empty.label,
@@ -190,7 +190,7 @@ function FactsStrip({
190
190
  "data-testid": testId,
191
191
  children: [
192
192
  /* @__PURE__ */ jsxRuntime.jsx(
193
- chunkZ5VUZ6YD_cjs.SectionHeader,
193
+ chunkZV3BKLFY_cjs.SectionHeader,
194
194
  {
195
195
  icon,
196
196
  title,
@@ -201,7 +201,7 @@ function FactsStrip({
201
201
  }
202
202
  ),
203
203
  filled.length === 0 ? empty && /* @__PURE__ */ jsxRuntime.jsx(
204
- chunkZ5VUZ6YD_cjs.EmptyStrip,
204
+ chunkZV3BKLFY_cjs.EmptyStrip,
205
205
  {
206
206
  icon: empty.icon,
207
207
  label: empty.label,
@@ -409,7 +409,7 @@ function ActionMenuDialog({
409
409
  className: "sm:max-w-lg",
410
410
  "data-testid": chunkMHVNT4J3_cjs.testIdOr(testId, { testId: "action-menu-dialog" }),
411
411
  children: [
412
- /* @__PURE__ */ jsxRuntime.jsx(chunkZ5VUZ6YD_cjs.QuickActionDialogHeader, { icon, title, description }),
412
+ /* @__PURE__ */ jsxRuntime.jsx(chunkZV3BKLFY_cjs.QuickActionDialogHeader, { icon, title, description }),
413
413
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-3 pt-1", role: "menu", "aria-label": title, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
414
414
  "button",
415
415
  {
@@ -791,43 +791,43 @@ Object.defineProperty(exports, "KeyValueRow", {
791
791
  });
792
792
  Object.defineProperty(exports, "AddFilesFirst", {
793
793
  enumerable: true,
794
- get: function () { return chunkZ5VUZ6YD_cjs.AddFilesFirst; }
794
+ get: function () { return chunkZV3BKLFY_cjs.AddFilesFirst; }
795
795
  });
796
796
  Object.defineProperty(exports, "DEFAULT_ADD_FILES_FIRST_LABELS", {
797
797
  enumerable: true,
798
- get: function () { return chunkZ5VUZ6YD_cjs.DEFAULT_ADD_FILES_FIRST_LABELS; }
798
+ get: function () { return chunkZV3BKLFY_cjs.DEFAULT_ADD_FILES_FIRST_LABELS; }
799
799
  });
800
800
  Object.defineProperty(exports, "DEFAULT_SCOPE_PICKER_LABELS", {
801
801
  enumerable: true,
802
- get: function () { return chunkZ5VUZ6YD_cjs.DEFAULT_SCOPE_PICKER_LABELS; }
802
+ get: function () { return chunkZV3BKLFY_cjs.DEFAULT_SCOPE_PICKER_LABELS; }
803
803
  });
804
804
  Object.defineProperty(exports, "EmptyStrip", {
805
805
  enumerable: true,
806
- get: function () { return chunkZ5VUZ6YD_cjs.EmptyStrip; }
806
+ get: function () { return chunkZV3BKLFY_cjs.EmptyStrip; }
807
807
  });
808
808
  Object.defineProperty(exports, "QuickActionDialogHeader", {
809
809
  enumerable: true,
810
- get: function () { return chunkZ5VUZ6YD_cjs.QuickActionDialogHeader; }
810
+ get: function () { return chunkZV3BKLFY_cjs.QuickActionDialogHeader; }
811
811
  });
812
812
  Object.defineProperty(exports, "ScopePicker", {
813
813
  enumerable: true,
814
- get: function () { return chunkZ5VUZ6YD_cjs.ScopePicker; }
814
+ get: function () { return chunkZV3BKLFY_cjs.ScopePicker; }
815
815
  });
816
816
  Object.defineProperty(exports, "SectionHeader", {
817
817
  enumerable: true,
818
- get: function () { return chunkZ5VUZ6YD_cjs.SectionHeader; }
818
+ get: function () { return chunkZV3BKLFY_cjs.SectionHeader; }
819
819
  });
820
820
  Object.defineProperty(exports, "SectionLabel", {
821
821
  enumerable: true,
822
- get: function () { return chunkZ5VUZ6YD_cjs.SectionLabel; }
822
+ get: function () { return chunkZV3BKLFY_cjs.SectionLabel; }
823
823
  });
824
824
  Object.defineProperty(exports, "StartTiles", {
825
825
  enumerable: true,
826
- get: function () { return chunkZ5VUZ6YD_cjs.StartTiles; }
826
+ get: function () { return chunkZV3BKLFY_cjs.StartTiles; }
827
827
  });
828
828
  Object.defineProperty(exports, "useScopeSelection", {
829
829
  enumerable: true,
830
- get: function () { return chunkZ5VUZ6YD_cjs.useScopeSelection; }
830
+ get: function () { return chunkZV3BKLFY_cjs.useScopeSelection; }
831
831
  });
832
832
  Object.defineProperty(exports, "FoldSection", {
833
833
  enumerable: true,
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  export { CollapsibleSection, DEFAULT_COLLAPSIBLE_SECTION_LABELS, DEFAULT_KEY_VALUE_ROW_LABELS, KeyValueContainer, KeyValueRow } from '../chunk-LGBAZD37.js';
3
3
  import { Callout } from '../chunk-UJE32SST.js';
4
- import { SectionHeader, EmptyStrip, QuickActionDialogHeader } from '../chunk-DDF5GPIJ.js';
5
- export { AddFilesFirst, DEFAULT_ADD_FILES_FIRST_LABELS, DEFAULT_SCOPE_PICKER_LABELS, EmptyStrip, QuickActionDialogHeader, ScopePicker, SectionHeader, SectionLabel, StartTiles, useScopeSelection } from '../chunk-DDF5GPIJ.js';
4
+ import { SectionHeader, EmptyStrip, QuickActionDialogHeader } from '../chunk-P5ST47VY.js';
5
+ export { AddFilesFirst, DEFAULT_ADD_FILES_FIRST_LABELS, DEFAULT_SCOPE_PICKER_LABELS, EmptyStrip, QuickActionDialogHeader, ScopePicker, SectionHeader, SectionLabel, StartTiles, useScopeSelection } from '../chunk-P5ST47VY.js';
6
6
  export { FoldSection } from '../chunk-XD2M6LIG.js';
7
7
  import { ActionLink } from '../chunk-S7PSMMRG.js';
8
8
  import '../chunk-NPLYHR2E.js';
9
+ import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
9
10
  import '../chunk-76JDDMSP.js';
10
11
  import '../chunk-OXF2IFXG.js';
11
- import { testIdOr, prefixedTestId } from '../chunk-7F6CBP3Z.js';
12
12
  import '../chunk-VUNV25KB.js';
13
13
  import { Plus, PartyPopper, X, Trash2 } from 'lucide-react';
14
14
  import { cn, Dialog, DialogContent, Button, Tooltip, TooltipTrigger, TooltipContent } from '@arbidocs/react/ui';