@arbidocs/blocks 0.4.84 → 0.4.86

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 (126) hide show
  1. package/dist/MailBodyEditor-5PIQLYVY.js +217 -0
  2. package/dist/MailBodyEditor-5PIQLYVY.js.map +1 -0
  3. package/dist/MailBodyEditor-D7MGJMLH.cjs +223 -0
  4. package/dist/MailBodyEditor-D7MGJMLH.cjs.map +1 -0
  5. package/dist/agents/index.cjs +282 -281
  6. package/dist/agents/index.js +7 -6
  7. package/dist/agents/workflows/StepBarFrame.d.ts +3 -1
  8. package/dist/agents/workflows/WorkflowRunner.d.ts +10 -1
  9. package/dist/agents/workflows/run.d.ts +24 -3
  10. package/dist/agents/workflows/stepWindow.d.ts +4 -2
  11. package/dist/agents/workflows/types.d.ts +5 -0
  12. package/dist/agents/workflows/useWorkflowView.d.ts +16 -1
  13. package/dist/chat/index.cjs +1 -1
  14. package/dist/chat/index.js +1 -1
  15. package/dist/chunk-3R6XBYL7.cjs +576 -0
  16. package/dist/chunk-3R6XBYL7.cjs.map +1 -0
  17. package/dist/{chunk-CKB64Z4R.js → chunk-4XJZ6AAY.js} +6 -245
  18. package/dist/chunk-4XJZ6AAY.js.map +1 -0
  19. package/dist/{chunk-B3WCKBJ7.cjs → chunk-5YXG342J.cjs} +6 -18
  20. package/dist/chunk-5YXG342J.cjs.map +1 -0
  21. package/dist/{chunk-SB5ZKOYN.js → chunk-7C35WXYB.js} +4 -63
  22. package/dist/chunk-7C35WXYB.js.map +1 -0
  23. package/dist/chunk-7RJTEWYM.js +362 -0
  24. package/dist/chunk-7RJTEWYM.js.map +1 -0
  25. package/dist/chunk-AFSOUS5X.cjs +253 -0
  26. package/dist/chunk-AFSOUS5X.cjs.map +1 -0
  27. package/dist/{chunk-F4RUCUXF.cjs → chunk-C2HRZSAT.cjs} +2 -63
  28. package/dist/chunk-C2HRZSAT.cjs.map +1 -0
  29. package/dist/{chunk-XA5S4776.cjs → chunk-IHYVK6F7.cjs} +52 -51
  30. package/dist/chunk-IHYVK6F7.cjs.map +1 -0
  31. package/dist/{chunk-CONIA2ZA.js → chunk-KHY4PYU7.js} +246 -146
  32. package/dist/chunk-KHY4PYU7.js.map +1 -0
  33. package/dist/chunk-LGX6UFYG.js +557 -0
  34. package/dist/chunk-LGX6UFYG.js.map +1 -0
  35. package/dist/chunk-O4YPVYPO.cjs +373 -0
  36. package/dist/chunk-O4YPVYPO.cjs.map +1 -0
  37. package/dist/chunk-R26OHONI.js +250 -0
  38. package/dist/chunk-R26OHONI.js.map +1 -0
  39. package/dist/{chunk-RYYYHPFU.cjs → chunk-RZUMQM7W.cjs} +246 -146
  40. package/dist/chunk-RZUMQM7W.cjs.map +1 -0
  41. package/dist/{chunk-RX35SMPR.js → chunk-S2NFD4QV.js} +8 -7
  42. package/dist/chunk-S2NFD4QV.js.map +1 -0
  43. package/dist/{chunk-YJQVLVBJ.cjs → chunk-S5HZBXZA.cjs} +2 -243
  44. package/dist/chunk-S5HZBXZA.cjs.map +1 -0
  45. package/dist/{chunk-GJV2G4FC.js → chunk-W7NZRZ54.js} +6 -18
  46. package/dist/chunk-W7NZRZ54.js.map +1 -0
  47. package/dist/{chunk-ZQYE7J3J.cjs → chunk-WRSBM6QN.cjs} +332 -94
  48. package/dist/chunk-WRSBM6QN.cjs.map +1 -0
  49. package/dist/{chunk-RSKSXEPW.js → chunk-X23U6QEJ.js} +324 -88
  50. package/dist/chunk-X23U6QEJ.js.map +1 -0
  51. package/dist/collaboration/index.cjs +100 -49
  52. package/dist/collaboration/index.js +4 -1
  53. package/dist/collaboration/mail/MailBodyEditor.d.ts +7 -0
  54. package/dist/collaboration/mail/MailDeliveryList.d.ts +8 -0
  55. package/dist/collaboration/mail/MailDocumentPicker.d.ts +15 -0
  56. package/dist/collaboration/mail/MailGrid.d.ts +17 -0
  57. package/dist/collaboration/mail/MailMessageView.d.ts +27 -0
  58. package/dist/collaboration/mail/PlainMailBodyEditor.d.ts +12 -0
  59. package/dist/collaboration/mail/index.d.ts +6 -0
  60. package/dist/collaboration/mail/mailCompose.d.ts +24 -0
  61. package/dist/connect/index.cjs +1673 -96
  62. package/dist/connect/index.cjs.map +1 -1
  63. package/dist/connect/index.d.ts +2 -1
  64. package/dist/connect/index.js +1634 -63
  65. package/dist/connect/index.js.map +1 -1
  66. package/dist/connection/ConnectedSettings.d.ts +1 -4
  67. package/dist/connection/ConnectedTagTable.d.ts +32 -0
  68. package/dist/connection/mail/ConnectedMailAccounts.d.ts +21 -0
  69. package/dist/connection/mail/ConnectedMailComposer.d.ts +40 -0
  70. package/dist/connection/mail/ConnectedMailSetup.d.ts +16 -0
  71. package/dist/connection/mail/ConnectedMailbox.d.ts +65 -0
  72. package/dist/connection/mail/MailComposerForm.d.ts +25 -0
  73. package/dist/connection/mail/attachments.d.ts +13 -0
  74. package/dist/connection/mail/index.d.ts +6 -0
  75. package/dist/connection/mail/mailbox.d.ts +6 -0
  76. package/dist/connection/mail/types.d.ts +92 -0
  77. package/dist/connection/useConnectedWorkNotifications.d.ts +6 -0
  78. package/dist/connection/useWorkflowThread.d.ts +7 -2
  79. package/dist/facts/index.cjs +3 -3
  80. package/dist/facts/index.js +3 -3
  81. package/dist/files/index.cjs +48 -368
  82. package/dist/files/index.cjs.map +1 -1
  83. package/dist/files/index.js +11 -361
  84. package/dist/files/index.js.map +1 -1
  85. package/dist/home/index.cjs +1 -1
  86. package/dist/home/index.js +1 -1
  87. package/dist/index.cjs +496 -437
  88. package/dist/index.cjs.map +1 -1
  89. package/dist/index.js +23 -20
  90. package/dist/index.js.map +1 -1
  91. package/dist/settings/PasswordChangeDialog.d.ts +9 -12
  92. package/dist/settings/index.cjs +44 -43
  93. package/dist/settings/index.cjs.map +1 -1
  94. package/dist/settings/index.js +3 -2
  95. package/dist/settings/index.js.map +1 -1
  96. package/dist/shell/index.cjs +2 -2
  97. package/dist/shell/index.js +2 -2
  98. package/dist/studio/index.cjs +1 -1
  99. package/dist/studio/index.js +1 -1
  100. package/dist/tags/TagColumnsEditor.d.ts +34 -0
  101. package/dist/tags/TagDetail.d.ts +13 -11
  102. package/dist/tags/TagTable.d.ts +99 -0
  103. package/dist/tags/TagsNav.d.ts +2 -2
  104. package/dist/tags/index.d.ts +7 -5
  105. package/dist/tags/{tagMatrixDocx.d.ts → tagTableDocx.d.ts} +12 -12
  106. package/dist/tags/tagTableModel.d.ts +47 -0
  107. package/dist/workflow-canvas/index.cjs +50 -49
  108. package/dist/workflow-canvas/index.cjs.map +1 -1
  109. package/dist/workflow-canvas/index.js +7 -6
  110. package/dist/workflow-canvas/index.js.map +1 -1
  111. package/package.json +29 -4
  112. package/dist/chunk-B3WCKBJ7.cjs.map +0 -1
  113. package/dist/chunk-CKB64Z4R.js.map +0 -1
  114. package/dist/chunk-CONIA2ZA.js.map +0 -1
  115. package/dist/chunk-F4RUCUXF.cjs.map +0 -1
  116. package/dist/chunk-GJV2G4FC.js.map +0 -1
  117. package/dist/chunk-RSKSXEPW.js.map +0 -1
  118. package/dist/chunk-RX35SMPR.js.map +0 -1
  119. package/dist/chunk-RYYYHPFU.cjs.map +0 -1
  120. package/dist/chunk-SB5ZKOYN.js.map +0 -1
  121. package/dist/chunk-XA5S4776.cjs.map +0 -1
  122. package/dist/chunk-YJQVLVBJ.cjs.map +0 -1
  123. package/dist/chunk-ZQYE7J3J.cjs.map +0 -1
  124. package/dist/connection/ConnectedTagMatrix.d.ts +0 -23
  125. package/dist/tags/TagMatrix.d.ts +0 -87
  126. package/dist/tags/tagMatrixModel.d.ts +0 -43
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { ModalBreadcrumbHeader } from '../chunk-RC6VTY2H.js';
3
+ export { DEFAULT_FOLDER_FILTER_LABELS, DEFAULT_FOLDER_PICKER_LABELS, FilesFilterBar, FilesModalFooter, FilesTagsButton, FilesViewCenter, FolderCommandList, FolderFilterButton, FolderPickerRow, FolderTree } from '../chunk-7RJTEWYM.js';
3
4
  export { ViewerHeaderEnd, ViewerHeaderStart, ViewerPane, ViewerRenderedPane, ViewerStatusNote } from '../chunk-ODWCTAH7.js';
4
5
  export { DEFAULT_DOCUMENT_VIEW_TOGGLE_LABELS, DocumentViewToggle, ViewToggle } from '../chunk-IC2VHFWR.js';
5
6
  import { CellHoverIcon } from '../chunk-RFXJYIDV.js';
@@ -9,22 +10,22 @@ export { UploadDropzone } from '../chunk-EVUEIBNU.js';
9
10
  import { SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
10
11
  export { DEFAULT_SELECTION_BAR_LABELS, SelectionBar, SelectionBarAction } from '../chunk-NUNKSZKU.js';
11
12
  import { FilterInput } from '../chunk-YU2KUMGE.js';
12
- import { GridView } from '../chunk-ZPLG7QYF.js';
13
- export { GridView } from '../chunk-ZPLG7QYF.js';
14
13
  import { ActionLink } from '../chunk-S7PSMMRG.js';
15
- import '../chunk-SLSBJRWW.js';
16
- import '../chunk-NPLYHR2E.js';
17
14
  import '../chunk-76JDDMSP.js';
15
+ import '../chunk-NPLYHR2E.js';
18
16
  import { formatCount } from '../chunk-OXF2IFXG.js';
19
17
  import { ShareControl } from '../chunk-K4BGOPGG.js';
20
18
  import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-TX2ZICS7.js';
19
+ import { GridView } from '../chunk-ZPLG7QYF.js';
20
+ export { GridView } from '../chunk-ZPLG7QYF.js';
21
+ import '../chunk-SLSBJRWW.js';
21
22
  import { testIdOr } from '../chunk-7F6CBP3Z.js';
22
23
  import '../chunk-VUNV25KB.js';
23
24
  import { cva } from 'class-variance-authority';
24
25
  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';
25
26
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
26
- import { memo, useState, useRef, useEffect, forwardRef, useMemo, useCallback } from 'react';
27
- import { Check, Minus, PencilLine, Folder, LoaderCircle, Sparkles, AlertCircle, X, FolderOpen, Loader2, Upload, FileText, FolderPlus, Globe, Download, Copy, FolderInput, Users, XCircle, AlertTriangle, CheckCircle2, Info, RotateCcw, Share2, ImagePlus, Crop, ChevronLeft, ChevronRight, ZoomIn, CopyX, Plus, Tags, StickyNote, Columns2, ChevronDown, BookMarked, ExternalLink, Square, RefreshCw, Settings, Unplug, CheckCircle, CircleSlash, Hourglass, Mail, CornerDownRight, CornerRightDown, GitFork, Blend, MoreVertical, SquarePen, BookOpen, MessagesSquare, Pencil, FileDown, Trash2, SquareCheckBig, NotebookPen, MoreHorizontal, ArrowRightFromLine, Hash, ArrowDownToLine, Tag, Bot, Calendar, Search, List, Columns3, Save, Undo2, CheckIcon, ArrowUpDown, FolderUp, FileX, ChevronsUpDown, UploadCloud, Table2, ArrowRightLeft } from 'lucide-react';
27
+ import { memo, useState, useRef, useEffect, forwardRef, useMemo } from 'react';
28
+ import { Check, Minus, PencilLine, Folder, LoaderCircle, Sparkles, AlertCircle, X, FolderOpen, Loader2, Upload, FileText, FolderPlus, Globe, Download, Copy, FolderInput, Users, XCircle, AlertTriangle, CheckCircle2, Info, RotateCcw, Share2, ImagePlus, Crop, ChevronLeft, ChevronRight, ZoomIn, CopyX, Tags, StickyNote, Columns2, ChevronDown, ExternalLink, Square, RefreshCw, Settings, Unplug, CheckCircle, CircleSlash, Hourglass, Plus, Mail, CornerDownRight, CornerRightDown, GitFork, Blend, MoreVertical, SquarePen, BookOpen, MessagesSquare, Pencil, FileDown, Trash2, SquareCheckBig, NotebookPen, MoreHorizontal, ArrowRightFromLine, Hash, ArrowDownToLine, Tag, Bot, Calendar, Search, List, Columns3, Save, Undo2, CheckIcon, ArrowUpDown, FolderUp, BookMarked, FileX, ChevronsUpDown, UploadCloud, Table2, ArrowRightLeft } from 'lucide-react';
28
29
 
29
30
  var pill = cva(
30
31
  "inline-flex max-w-full items-center justify-center gap-1 rounded-full text-xs font-medium leading-none",
@@ -2175,212 +2176,6 @@ function UploadFooterBar({
2175
2176
  )
2176
2177
  ] });
2177
2178
  }
2178
- var DEFAULT_FOLDER_PICKER_LABELS = {
2179
- none: "None",
2180
- removeFromFolder: "Remove from folder",
2181
- searchOrCreate: "Search or create...",
2182
- noFolders: "No folders yet",
2183
- create: (name) => `Create \u201C${name}\u201D`
2184
- };
2185
- function FolderPickerRow({
2186
- label,
2187
- icon,
2188
- count,
2189
- depth,
2190
- isActive,
2191
- muted,
2192
- checkbox,
2193
- indeterminate,
2194
- testId,
2195
- onClick
2196
- }) {
2197
- return /* @__PURE__ */ jsxs(
2198
- "button",
2199
- {
2200
- type: "button",
2201
- "data-testid": testId,
2202
- onClick,
2203
- role: checkbox ? "checkbox" : void 0,
2204
- "aria-checked": checkbox ? indeterminate ? "mixed" : isActive : void 0,
2205
- style: { paddingLeft: `${4 + depth * 14}px` },
2206
- className: cn(
2207
- // `[&:hover]:`, not `hover:`: the latter compiles behind `@media (hover: hover)`, so on a
2208
- // touchscreen whose PRIMARY pointer reports `hover: none` the row would never highlight
2209
- // even with a real mouse attached. The arbitrary selector has no media gate.
2210
- "flex w-full items-center gap-1 rounded-sm py-1 pr-2 text-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&:hover]:bg-accent pointer-coarse:min-h-11",
2211
- isActive && "bg-primary/10",
2212
- muted && !isActive && "text-muted-foreground"
2213
- ),
2214
- children: [
2215
- /* @__PURE__ */ jsx("span", { className: "flex w-4 shrink-0 items-center justify-center", children: checkbox ? /* @__PURE__ */ jsx(
2216
- "span",
2217
- {
2218
- className: cn(
2219
- "flex size-3.5 items-center justify-center rounded-[3px] border transition-colors",
2220
- isActive || indeterminate ? "border-primary bg-primary text-primary-foreground" : "border-muted-foreground/40"
2221
- ),
2222
- children: indeterminate ? /* @__PURE__ */ jsx(Minus, { className: "size-2.5" }) : isActive && /* @__PURE__ */ jsx(Check, { className: "size-2.5" })
2223
- }
2224
- ) : isActive && /* @__PURE__ */ jsx(Check, { className: "size-3.5 text-primary" }) }),
2225
- icon,
2226
- label !== "" && /* @__PURE__ */ jsx("span", { className: cn("min-w-0 truncate", isActive && "font-semibold text-primary"), children: label }),
2227
- count !== void 0 && /* @__PURE__ */ jsx("span", { className: "ml-auto pl-2 text-sm font-semibold text-muted-foreground", children: count })
2228
- ]
2229
- }
2230
- );
2231
- }
2232
- function FolderTree({
2233
- nodes,
2234
- unfiledCount,
2235
- value,
2236
- onChange,
2237
- showUnfiledAlways,
2238
- labels
2239
- }) {
2240
- const l = { ...DEFAULT_FOLDER_PICKER_LABELS, ...labels };
2241
- return /* @__PURE__ */ jsxs("div", { className: "max-h-[240px] overflow-y-auto", children: [
2242
- nodes.map((node) => /* @__PURE__ */ jsx(
2243
- FolderPickerRow,
2244
- {
2245
- label: node.label,
2246
- icon: node.icon,
2247
- count: node.count,
2248
- depth: node.depth,
2249
- isActive: value === node.path,
2250
- onClick: () => onChange(node.path)
2251
- },
2252
- node.path
2253
- )),
2254
- (unfiledCount > 0 || showUnfiledAlways) && /* @__PURE__ */ jsxs(Fragment, { children: [
2255
- nodes.length > 0 && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
2256
- /* @__PURE__ */ jsx(
2257
- FolderPickerRow,
2258
- {
2259
- label: l.none,
2260
- count: unfiledCount,
2261
- depth: 0,
2262
- isActive: value === null,
2263
- muted: true,
2264
- onClick: () => onChange(null)
2265
- }
2266
- )
2267
- ] })
2268
- ] });
2269
- }
2270
- function FolderBreadcrumb({ folder }) {
2271
- const parts = folder.split("/");
2272
- return /* @__PURE__ */ jsx("span", { className: "whitespace-nowrap", children: parts.map((part, i) => /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-0.5", children: [
2273
- i > 0 && /* @__PURE__ */ jsx("span", { className: "mx-0.5 text-sm text-muted-foreground/50", children: "/" }),
2274
- /* @__PURE__ */ jsx("span", { className: i < parts.length - 1 ? "text-sm text-muted-foreground" : "", children: part })
2275
- ] }, i)) });
2276
- }
2277
- function FolderCommandList({
2278
- folders,
2279
- value,
2280
- onSelect,
2281
- showRemove = false,
2282
- removeLabel,
2283
- placeholder,
2284
- autoFocus = true,
2285
- labels,
2286
- testIds
2287
- }) {
2288
- const l = { ...DEFAULT_FOLDER_PICKER_LABELS, ...labels };
2289
- const [search, setSearch] = useState("");
2290
- const trimmed = search.trim();
2291
- const matchesExisting = folders.some((f) => f.toLowerCase() === trimmed.toLowerCase());
2292
- const handleCreate = useCallback(
2293
- (name) => {
2294
- const next = name.trim();
2295
- if (!next) return;
2296
- onSelect(next);
2297
- setSearch("");
2298
- },
2299
- [onSelect]
2300
- );
2301
- return /* @__PURE__ */ jsxs(Command, { shouldFilter: true, children: [
2302
- /* @__PURE__ */ jsx(
2303
- CommandInput,
2304
- {
2305
- placeholder: placeholder ?? l.searchOrCreate,
2306
- value: search,
2307
- onValueChange: setSearch,
2308
- autoFocus,
2309
- onKeyDown: (e) => {
2310
- if (e.key === "Enter" && trimmed && !matchesExisting) {
2311
- e.preventDefault();
2312
- handleCreate(search);
2313
- }
2314
- }
2315
- }
2316
- ),
2317
- /* @__PURE__ */ jsxs(CommandList, { children: [
2318
- /* @__PURE__ */ jsx(CommandEmpty, { children: trimmed ? /* @__PURE__ */ jsxs(
2319
- "button",
2320
- {
2321
- type: "button",
2322
- "data-testid": testIdOr(testIds?.create, { testId: "folder-picker-create" }),
2323
- onClick: () => handleCreate(search),
2324
- onPointerDown: (e) => e.preventDefault(),
2325
- className: "flex w-full cursor-pointer items-center gap-1.5 rounded px-2 py-1.5 text-left text-sm text-primary hover:bg-accent pointer-coarse:min-h-11",
2326
- children: [
2327
- /* @__PURE__ */ jsx(Plus, { className: "size-3.5 shrink-0" }),
2328
- l.create(trimmed)
2329
- ]
2330
- }
2331
- ) : /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: l.noFolders }) }),
2332
- /* @__PURE__ */ jsx(CommandGroup, { children: folders.map((folder) => /* @__PURE__ */ jsxs(
2333
- CommandItem,
2334
- {
2335
- value: folder,
2336
- "data-testid": testIdOr(testIds?.option?.(folder), {
2337
- testId: `folder-picker-option-${folder}`
2338
- }),
2339
- onSelect: () => onSelect(folder),
2340
- onPointerDown: (e) => e.preventDefault(),
2341
- className: "cursor-pointer text-sm",
2342
- children: [
2343
- /* @__PURE__ */ jsx(FolderOpen, { className: "mr-1.5 size-3.5 flex-none shrink-0 text-yellow-text" }),
2344
- /* @__PURE__ */ jsx(FolderBreadcrumb, { folder }),
2345
- value === folder && /* @__PURE__ */ jsx("span", { className: "ml-auto flex-none text-sm text-primary", children: "\u2713" })
2346
- ]
2347
- },
2348
- folder
2349
- )) }),
2350
- trimmed && !matchesExisting && folders.length > 0 && /* @__PURE__ */ jsx(CommandGroup, { children: /* @__PURE__ */ jsxs(
2351
- CommandItem,
2352
- {
2353
- value: `__create__${trimmed}`,
2354
- "data-testid": testIdOr(testIds?.createOption, {
2355
- testId: "folder-picker-create-option"
2356
- }),
2357
- onSelect: () => handleCreate(search),
2358
- onPointerDown: (e) => e.preventDefault(),
2359
- className: "cursor-pointer text-sm text-primary",
2360
- children: [
2361
- /* @__PURE__ */ jsx(Plus, { className: "mr-1.5 size-3.5 shrink-0" }),
2362
- /* @__PURE__ */ jsx("span", { children: l.create(trimmed) })
2363
- ]
2364
- }
2365
- ) }),
2366
- showRemove && /* @__PURE__ */ jsx(CommandGroup, { children: /* @__PURE__ */ jsxs(
2367
- CommandItem,
2368
- {
2369
- value: "__none__",
2370
- "data-testid": testIdOr(testIds?.remove, { testId: "folder-picker-remove" }),
2371
- onSelect: () => onSelect(null),
2372
- onPointerDown: (e) => e.preventDefault(),
2373
- className: "cursor-pointer text-sm text-muted-foreground",
2374
- children: [
2375
- /* @__PURE__ */ jsx(X, { className: "mr-1 size-3.5 shrink-0" }),
2376
- /* @__PURE__ */ jsx("span", { children: removeLabel ?? l.removeFromFolder }),
2377
- value === null && /* @__PURE__ */ jsx("span", { className: "ml-auto flex-none text-sm text-primary", children: "\u2713" })
2378
- ]
2379
- }
2380
- ) })
2381
- ] })
2382
- ] });
2383
- }
2384
2179
  var DEFAULT_HTML_VIEWER_LABELS = {
2385
2180
  viewerRegion: "Parsed document viewer",
2386
2181
  pageOfTotal: (page, total) => `Page ${page} of ${total}`,
@@ -3026,61 +2821,6 @@ function FilesPageTitle({
3026
2821
  }
3027
2822
  ) : /* @__PURE__ */ jsx("span", { "data-testid": testIdOr(testId, { testId: "documents-tab" }), className: classes, children: body }) });
3028
2823
  }
3029
- function FilesFilterBar({ className, ...props }) {
3030
- return /* @__PURE__ */ jsx(
3031
- "div",
3032
- {
3033
- "data-slot": "files-filter-bar",
3034
- className: cn("flex min-w-0 flex-1 flex-nowrap items-center gap-2", className),
3035
- ...props
3036
- }
3037
- );
3038
- }
3039
- function FilesTagsButton({
3040
- onClick,
3041
- label = "Tags",
3042
- className,
3043
- testId
3044
- }) {
3045
- return /* @__PURE__ */ jsxs(
3046
- Button,
3047
- {
3048
- variant: "ghost",
3049
- size: "sm",
3050
- className: cn("h-8 shrink-0 gap-1.5 px-2 font-normal pointer-coarse:h-11", className),
3051
- onClick,
3052
- "data-testid": testIdOr(testId, { testId: "filter-bar-tags-button" }),
3053
- children: [
3054
- /* @__PURE__ */ jsx(BookMarked, { className: "h-3.5 w-3.5" }),
3055
- /* @__PURE__ */ jsx("span", { className: "text-sm max-[480px]:sr-only", children: label })
3056
- ]
3057
- }
3058
- );
3059
- }
3060
- function FilesViewCenter({ className, ...props }) {
3061
- return /* @__PURE__ */ jsx(
3062
- "div",
3063
- {
3064
- "data-slot": "files-view-center",
3065
- className: cn("@container flex min-w-[9.5rem] flex-1 items-center gap-2", className),
3066
- ...props
3067
- }
3068
- );
3069
- }
3070
- function FilesModalFooter({ children, className }) {
3071
- return /* @__PURE__ */ jsx(
3072
- "div",
3073
- {
3074
- "data-slot": "files-modal-footer",
3075
- className: cn(
3076
- // Sticks to the bottom of the modal's scrolling body so Close is always reachable.
3077
- "sticky bottom-0 z-40 flex justify-end gap-2 border-t border-border bg-background px-4 py-3 sm:px-6",
3078
- className
3079
- ),
3080
- children
3081
- }
3082
- );
3083
- }
3084
2824
  var DEFAULT_IMPORT_LABELS = {
3085
2825
  stop: "Stop",
3086
2826
  stopping: "Stopping\u2026",
@@ -3728,7 +3468,7 @@ function VendorLogo({
3728
3468
  if (vendorKey === "clio") return /* @__PURE__ */ jsx(ClioMark, { className });
3729
3469
  return /* @__PURE__ */ jsx(Mail, { className: `${className} text-muted-foreground`, "aria-hidden": "true" });
3730
3470
  }
3731
- function FolderBreadcrumb2({
3471
+ function FolderBreadcrumb({
3732
3472
  segments,
3733
3473
  size = "xs"
3734
3474
  }) {
@@ -3748,7 +3488,7 @@ function FolderCell({
3748
3488
  }) {
3749
3489
  const display = folder ? /* @__PURE__ */ jsxs(Fragment, { children: [
3750
3490
  icon ?? /* @__PURE__ */ jsx(FolderOpen, { className: "h-3.5 w-3.5 flex-none shrink-0 text-muted-foreground" }),
3751
- /* @__PURE__ */ jsx(FolderBreadcrumb2, { segments })
3491
+ /* @__PURE__ */ jsx(FolderBreadcrumb, { segments })
3752
3492
  ] }) : /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "\u2014" });
3753
3493
  const title = folder || void 0;
3754
3494
  if (!isEditable) {
@@ -4622,96 +4362,6 @@ function BulkActionsBar({
4622
4362
  }
4623
4363
  );
4624
4364
  }
4625
- var DEFAULT_FOLDER_FILTER_LABELS = {
4626
- all: "All",
4627
- newFolder: "New folder"
4628
- };
4629
- function FolderFilterButton({
4630
- label,
4631
- icon,
4632
- isActive,
4633
- open,
4634
- onOpenChange,
4635
- allCount,
4636
- onSelectAll,
4637
- onNewFolder,
4638
- children,
4639
- className,
4640
- labels,
4641
- testId,
4642
- newFolderTestId
4643
- }) {
4644
- const l = { ...DEFAULT_FOLDER_FILTER_LABELS, ...labels };
4645
- return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange, children: [
4646
- /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
4647
- Button,
4648
- {
4649
- variant: "ghost",
4650
- size: "sm",
4651
- "data-slot": "folder-filter-button",
4652
- "data-testid": testId,
4653
- className: cn(
4654
- "h-7 shrink-0 gap-1.5 px-2 text-sm font-normal pointer-coarse:h-10",
4655
- isActive && "bg-accent font-medium text-accent-foreground",
4656
- className
4657
- ),
4658
- children: [
4659
- icon ?? /* @__PURE__ */ jsx(
4660
- FolderOpen,
4661
- {
4662
- className: cn(
4663
- "h-3.5 w-3.5 shrink-0 text-muted-foreground",
4664
- isActive && "fill-muted-foreground/30"
4665
- )
4666
- }
4667
- ),
4668
- /* @__PURE__ */ jsx("span", { className: "max-w-[280px] truncate", children: label }),
4669
- /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 text-foreground", strokeWidth: 2.5 })
4670
- ]
4671
- }
4672
- ) }),
4673
- /* @__PURE__ */ jsxs(
4674
- PopoverContent,
4675
- {
4676
- className: "w-max min-w-56 max-w-[480px] p-1 shadow-lg",
4677
- align: "start",
4678
- sideOffset: 4,
4679
- children: [
4680
- onSelectAll && /* @__PURE__ */ jsxs(Fragment, { children: [
4681
- /* @__PURE__ */ jsx(
4682
- FolderPickerRow,
4683
- {
4684
- label: l.all,
4685
- count: allCount,
4686
- depth: 0,
4687
- isActive: !isActive,
4688
- onClick: onSelectAll
4689
- }
4690
- ),
4691
- /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" })
4692
- ] }),
4693
- children,
4694
- onNewFolder && /* @__PURE__ */ jsxs(Fragment, { children: [
4695
- /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
4696
- /* @__PURE__ */ jsxs(
4697
- "button",
4698
- {
4699
- type: "button",
4700
- onClick: onNewFolder,
4701
- "data-testid": testIdOr(newFolderTestId, { testId: "explorer-new-folder" }),
4702
- className: "flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground pointer-coarse:min-h-11",
4703
- children: [
4704
- /* @__PURE__ */ jsx(FolderPlus, { className: "h-3.5 w-3.5" }),
4705
- l.newFolder
4706
- ]
4707
- }
4708
- )
4709
- ] })
4710
- ]
4711
- }
4712
- )
4713
- ] });
4714
- }
4715
4365
  var DEFAULT_TAG_MANAGER_LABELS = {
4716
4366
  addNew: (singular) => `Add New ${singular}`,
4717
4367
  newField: "New Field",
@@ -6845,7 +6495,7 @@ function FieldFolderSelect({ folder, picker }) {
6845
6495
  children: [
6846
6496
  folder ? /* @__PURE__ */ jsxs(Fragment, { children: [
6847
6497
  /* @__PURE__ */ jsx(FolderOpen, { className: "size-3.5 flex-none shrink-0 text-yellow-600" }),
6848
- /* @__PURE__ */ jsx(FolderBreadcrumb2, { segments: folder.split("/"), size: "sm" })
6498
+ /* @__PURE__ */ jsx(FolderBreadcrumb, { segments: folder.split("/"), size: "sm" })
6849
6499
  ] }) : /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "\u2014" }),
6850
6500
  /* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-auto size-3.5 shrink-0 opacity-50" })
6851
6501
  ]
@@ -7060,6 +6710,6 @@ function ExplorerDragPreview({ icon, title, count }) {
7060
6710
  ] });
7061
6711
  }
7062
6712
 
7063
- export { AiReviewDialogView, BulkActionsBar, BulkLabelSelectView, BulkReplaceDialog, BulkTagEditorDialog, CheckboxCell, CitedRunNav, DEFAULT_AI_REVIEW_DIALOG_LABELS, DEFAULT_BULK_ACTIONS_LABELS, DEFAULT_BULK_REPLACE_LABELS, DEFAULT_BULK_TAG_EDITOR_LABELS, DEFAULT_DOC_TAG_LABELS, DEFAULT_EXPLORER_LABELS, DEFAULT_EXPORT_LABELS, DEFAULT_FIELDS_EDITOR_LABELS, DEFAULT_FILES_SEARCH_LABELS, DEFAULT_FOLDER_FILTER_LABELS, DEFAULT_FOLDER_PICKER_LABELS, DEFAULT_HTML_VIEWER_LABELS, DEFAULT_IMPORT_LABELS, DEFAULT_LABEL_MULTI_SELECT_LABELS, DEFAULT_MOVE_TO_FOLDER_LABELS, DEFAULT_TAG_MANAGER_LABELS, DEFAULT_TAG_PASSAGE_PANEL_LABELS, DEFAULT_TRANSFER_LABELS, DEFAULT_UPLOAD_FOOTER_LABELS, DEFAULT_UPLOAD_PARTS_LABELS, DEFAULT_UPLOAD_SOURCES_LABELS, DEFAULT_URL_INPUT_DIALOG_LABELS, DEFAULT_VIEWER_LABELS, DEFAULT_VIEW_SELECTOR_LABELS, DocStatusIcon, DocTagBar, DocTagBreadcrumb, DocTagCreateLink, DocTagEmpty, DocTagFieldIcon, DocTagFieldRow, DocTagNavigator, DocTagPopover, DocTagToggle, DocTagUnsavedFooter, DocTagValueInput, DocumentGrid, DocumentNameCellFrame, DocumentRowMenu, ExplorerDragPreview, ExplorerDropOverlay, ExplorerEmpty, ExplorerFileTile, ExplorerFileTooltip, ExplorerFolderTile, ExplorerFrame, ExplorerLoadingTiles, ExplorerMarquee, ExplorerScroller, ExplorerStage, ExportFooter, ExportMethodChooser, ExportModalTitle, ExportResultsReport, ExportWorkspacePicker, FieldAttribution, FieldFolderSelect, FieldFolderValue, FieldLabelsSelect, FieldNativeSelect, FieldRow, FieldValue, FieldWithAttribution, FieldsApplyBar, FieldsEditorList, FieldsEditorRoot, FieldsEditorToolbar, FieldsEmptyState, FieldsManagerBody, FieldsManagerDefinition, FieldsManagerTitle, FilesAddMenu, FilesFilterBar, FilesModalFooter, FilesPage, FilesPageHeader, FilesPageMain, FilesPageTitle, FilesSearchInput, FilesTagsButton, FilesToolbar, FilesViewCenter, FolderBreadcrumb2 as FolderBreadcrumb, FolderCell, FolderCommandList, FolderFilterButton, FolderPickerRow, FolderSummary, FolderTree, HtmlPage, HtmlPassage, HtmlViewerEmpty, HtmlViewerRoot, HtmlViewerSurface, ImportActionButton, ImportAside, ImportFamilySection, ImportHint, ImportList, ImportPanel, ImportProgress, ImportRow, ImportRunActions, ImportSummary, LabelMultiSelectView, LabelPickerList, MediaPreviewView, MoveToFolderDialog, PassageStepper, PdfPageNav, RejectedFilesList, RelatedDocsCell, SelectedFilesList, StatusPill, TagColumnHeader, TagFormCheckboxField, TagFormField, TagFormFooter, TagFormInstructionField, TagFormMeta, TagFormNameField, TagFormNote, TagFormOptionsEditor, TagFormRoot, TagFormSelectField, TagFormSharedToggle, TagManager, TagPassagePanel, TaskSection, TransferConflictChooser, TransferKindsPicker, TransferPlanSummary, TransferProgressView, TransferReferencesChooser, TransferResumeBanner, TransferScopeChooser, TranslationBadge, TranslationCompareTable, UploadBrowseButtons, UploadContainer, UploadDropArea, UploadErrorMessage, UploadFooterBar, UploadFrame, UploadProgress, UploadShareNote, UploadSourcePicker, UploadSourceSection, UploadUrlButton, UrlDialogTitle, UrlInputDialogView, VendorLogo, ViewSelectorMenu, ViewerFrame, ViewerImageActions, ViewerLoadError, ViewerMessage, ViewerPageCounter, ViewerPreviewUnavailable, ViewerTabBar, ViewerTitle, ViewerZoomControl, documentGridLayoutProps, fieldsApplyBarCopy, fieldsEmptyText, filterFieldsByName, labelChipClampHeight, resolveDocumentGridLayout, sortFields };
6713
+ export { AiReviewDialogView, BulkActionsBar, BulkLabelSelectView, BulkReplaceDialog, BulkTagEditorDialog, CheckboxCell, CitedRunNav, DEFAULT_AI_REVIEW_DIALOG_LABELS, DEFAULT_BULK_ACTIONS_LABELS, DEFAULT_BULK_REPLACE_LABELS, DEFAULT_BULK_TAG_EDITOR_LABELS, DEFAULT_DOC_TAG_LABELS, DEFAULT_EXPLORER_LABELS, DEFAULT_EXPORT_LABELS, DEFAULT_FIELDS_EDITOR_LABELS, DEFAULT_FILES_SEARCH_LABELS, DEFAULT_HTML_VIEWER_LABELS, DEFAULT_IMPORT_LABELS, DEFAULT_LABEL_MULTI_SELECT_LABELS, DEFAULT_MOVE_TO_FOLDER_LABELS, DEFAULT_TAG_MANAGER_LABELS, DEFAULT_TAG_PASSAGE_PANEL_LABELS, DEFAULT_TRANSFER_LABELS, DEFAULT_UPLOAD_FOOTER_LABELS, DEFAULT_UPLOAD_PARTS_LABELS, DEFAULT_UPLOAD_SOURCES_LABELS, DEFAULT_URL_INPUT_DIALOG_LABELS, DEFAULT_VIEWER_LABELS, DEFAULT_VIEW_SELECTOR_LABELS, DocStatusIcon, DocTagBar, DocTagBreadcrumb, DocTagCreateLink, DocTagEmpty, DocTagFieldIcon, DocTagFieldRow, DocTagNavigator, DocTagPopover, DocTagToggle, DocTagUnsavedFooter, DocTagValueInput, DocumentGrid, DocumentNameCellFrame, DocumentRowMenu, ExplorerDragPreview, ExplorerDropOverlay, ExplorerEmpty, ExplorerFileTile, ExplorerFileTooltip, ExplorerFolderTile, ExplorerFrame, ExplorerLoadingTiles, ExplorerMarquee, ExplorerScroller, ExplorerStage, ExportFooter, ExportMethodChooser, ExportModalTitle, ExportResultsReport, ExportWorkspacePicker, FieldAttribution, FieldFolderSelect, FieldFolderValue, FieldLabelsSelect, FieldNativeSelect, FieldRow, FieldValue, FieldWithAttribution, FieldsApplyBar, FieldsEditorList, FieldsEditorRoot, FieldsEditorToolbar, FieldsEmptyState, FieldsManagerBody, FieldsManagerDefinition, FieldsManagerTitle, FilesAddMenu, FilesPage, FilesPageHeader, FilesPageMain, FilesPageTitle, FilesSearchInput, FilesToolbar, FolderBreadcrumb, FolderCell, FolderSummary, HtmlPage, HtmlPassage, HtmlViewerEmpty, HtmlViewerRoot, HtmlViewerSurface, ImportActionButton, ImportAside, ImportFamilySection, ImportHint, ImportList, ImportPanel, ImportProgress, ImportRow, ImportRunActions, ImportSummary, LabelMultiSelectView, LabelPickerList, MediaPreviewView, MoveToFolderDialog, PassageStepper, PdfPageNav, RejectedFilesList, RelatedDocsCell, SelectedFilesList, StatusPill, TagColumnHeader, TagFormCheckboxField, TagFormField, TagFormFooter, TagFormInstructionField, TagFormMeta, TagFormNameField, TagFormNote, TagFormOptionsEditor, TagFormRoot, TagFormSelectField, TagFormSharedToggle, TagManager, TagPassagePanel, TaskSection, TransferConflictChooser, TransferKindsPicker, TransferPlanSummary, TransferProgressView, TransferReferencesChooser, TransferResumeBanner, TransferScopeChooser, TranslationBadge, TranslationCompareTable, UploadBrowseButtons, UploadContainer, UploadDropArea, UploadErrorMessage, UploadFooterBar, UploadFrame, UploadProgress, UploadShareNote, UploadSourcePicker, UploadSourceSection, UploadUrlButton, UrlDialogTitle, UrlInputDialogView, VendorLogo, ViewSelectorMenu, ViewerFrame, ViewerImageActions, ViewerLoadError, ViewerMessage, ViewerPageCounter, ViewerPreviewUnavailable, ViewerTabBar, ViewerTitle, ViewerZoomControl, documentGridLayoutProps, fieldsApplyBarCopy, fieldsEmptyText, filterFieldsByName, labelChipClampHeight, resolveDocumentGridLayout, sortFields };
7064
6714
  //# sourceMappingURL=index.js.map
7065
6715
  //# sourceMappingURL=index.js.map