@arbidocs/blocks 0.4.58 → 0.4.59

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 (40) hide show
  1. package/dist/{StreamedArtifactEditor-7JHF4JIY.js → StreamedArtifactEditor-373E5JE7.js} +3 -3
  2. package/dist/{StreamedArtifactEditor-7JHF4JIY.js.map → StreamedArtifactEditor-373E5JE7.js.map} +1 -1
  3. package/dist/{StreamedArtifactEditor-L2AZZORU.cjs → StreamedArtifactEditor-DBB7MXM3.cjs} +5 -5
  4. package/dist/{StreamedArtifactEditor-L2AZZORU.cjs.map → StreamedArtifactEditor-DBB7MXM3.cjs.map} +1 -1
  5. package/dist/agents/index.cjs +218 -218
  6. package/dist/agents/index.js +2 -2
  7. package/dist/artifacts/VersionTimeline.d.ts +4 -2
  8. package/dist/artifacts/index.cjs +21 -21
  9. package/dist/artifacts/index.js +1 -1
  10. package/dist/{chunk-V34YFQ5Q.js → chunk-BIAALPXI.js} +3 -3
  11. package/dist/{chunk-V34YFQ5Q.js.map → chunk-BIAALPXI.js.map} +1 -1
  12. package/dist/{chunk-DTLOXXPN.js → chunk-FKIRBH5S.js} +9 -8
  13. package/dist/chunk-FKIRBH5S.js.map +1 -0
  14. package/dist/{chunk-LH4GHGQJ.cjs → chunk-KLPHGTQA.cjs} +3 -3
  15. package/dist/chunk-KLPHGTQA.cjs.map +1 -0
  16. package/dist/{chunk-PVK3GAMH.cjs → chunk-QWK7XXBP.cjs} +9 -8
  17. package/dist/chunk-QWK7XXBP.cjs.map +1 -0
  18. package/dist/{chunk-C3656J3H.js → chunk-YDVSD2XZ.js} +3 -3
  19. package/dist/chunk-YDVSD2XZ.js.map +1 -0
  20. package/dist/{chunk-HAADKDRN.cjs → chunk-ZSNH4CWE.cjs} +3 -3
  21. package/dist/{chunk-HAADKDRN.cjs.map → chunk-ZSNH4CWE.cjs.map} +1 -1
  22. package/dist/connect/docx.cjs +4 -4
  23. package/dist/connect/docx.js +1 -1
  24. package/dist/connect/index.cjs +1 -1
  25. package/dist/connect/index.js +1 -1
  26. package/dist/connection/ai.d.ts +9 -1
  27. package/dist/docx/index.cjs +14 -14
  28. package/dist/docx/index.js +2 -2
  29. package/dist/files/cells/RelatedDocsCell.d.ts +5 -2
  30. package/dist/files/index.cjs +6 -1
  31. package/dist/files/index.cjs.map +1 -1
  32. package/dist/files/index.js +7 -2
  33. package/dist/files/index.js.map +1 -1
  34. package/dist/index.cjs +219 -219
  35. package/dist/index.js +2 -2
  36. package/package.json +4 -4
  37. package/dist/chunk-C3656J3H.js.map +0 -1
  38. package/dist/chunk-DTLOXXPN.js.map +0 -1
  39. package/dist/chunk-LH4GHGQJ.cjs.map +0 -1
  40. package/dist/chunk-PVK3GAMH.cjs.map +0 -1
@@ -17,7 +17,7 @@ import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-CPMNAJLF.
17
17
  import '../chunk-TJMKFY5P.js';
18
18
  import { testIdOr } from '../chunk-7F6CBP3Z.js';
19
19
  import { memo, useState, useRef, useEffect, forwardRef, useMemo, useCallback } from 'react';
20
- import { Check, Minus, PencilLine, Loader2, UploadCloud, Folder, LoaderCircle, Sparkles, AlertCircle, X, FolderOpen, Upload, FileText, FolderPlus, Globe, Download, FolderUp, Users, XCircle, AlertTriangle, CheckCircle2, Share2, ImagePlus, Crop, ChevronLeft, ChevronRight, ZoomIn, CopyX, Plus, Tags, StickyNote, Columns2, Copy, ChevronDown, BookMarked, ExternalLink, Square, RefreshCw, Settings, Unplug, CalendarDays, CheckCircle, CircleSlash, Hourglass, Mail, CornerDownRight, CornerRightDown, Blend, MoreVertical, SquarePen, BookOpen, MessagesSquare, Pencil, FolderInput, Trash2, SquareCheckBig, NotebookPen, MoreHorizontal, ArrowRightFromLine, ArrowDownToLine, Tag, Bot, Calendar, Search, Hash, List, Columns3, Save, Undo2, CheckIcon, ArrowUpDown, FileX, ChevronsUpDown, Table2, ArrowRightLeft } from 'lucide-react';
20
+ import { Check, Minus, PencilLine, Loader2, UploadCloud, Folder, LoaderCircle, Sparkles, AlertCircle, X, FolderOpen, Upload, FileText, FolderPlus, Globe, Download, FolderUp, Users, XCircle, AlertTriangle, CheckCircle2, Share2, ImagePlus, Crop, ChevronLeft, ChevronRight, ZoomIn, CopyX, Plus, Tags, StickyNote, Columns2, Copy, ChevronDown, BookMarked, ExternalLink, Square, RefreshCw, Settings, Unplug, CalendarDays, CheckCircle, CircleSlash, Hourglass, Mail, CornerDownRight, CornerRightDown, GitFork, Blend, MoreVertical, SquarePen, BookOpen, MessagesSquare, Pencil, FolderInput, Trash2, SquareCheckBig, NotebookPen, MoreHorizontal, ArrowRightFromLine, ArrowDownToLine, Tag, Bot, Calendar, Search, Hash, List, Columns3, Save, Undo2, CheckIcon, ArrowUpDown, FileX, ChevronsUpDown, Table2, ArrowRightLeft } from 'lucide-react';
21
21
  import { cn, Popover, PopoverTrigger, PopoverContent, Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, Tooltip, TooltipTrigger, TooltipContent, Button, Progress, Badge, RadioGroup, RadioGroupItem, Label, ScrollArea, Dialog, DialogContent, DialogTitle, DialogDescription, TooltipProvider, IconToggle, Textarea, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuSeparator, DropdownMenuItem, DialogTrigger, Input, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Checkbox, DialogHeader, CommandSeparator, getTagTypeIcon, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, Switch } from '@arbidocs/react/ui';
22
22
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
23
23
  import { cva } from 'class-variance-authority';
@@ -3750,6 +3750,7 @@ function RelatedGroup({
3750
3750
  function RelatedDocsCell({
3751
3751
  parent,
3752
3752
  attachments,
3753
+ madeFrom = [],
3753
3754
  duplicates,
3754
3755
  similar,
3755
3756
  renderDoc,
@@ -3761,9 +3762,11 @@ function RelatedDocsCell({
3761
3762
  }) {
3762
3763
  const [open, setOpen] = useState(false);
3763
3764
  const attachmentCount = attachments.length;
3765
+ const madeFromCount = madeFrom.length;
3764
3766
  const dupeCount = duplicates.length;
3765
3767
  const simCount = similar.length;
3766
- if (!parent && attachmentCount === 0 && dupeCount === 0 && simCount === 0) return null;
3768
+ if (!parent && attachmentCount === 0 && madeFromCount === 0 && dupeCount === 0 && simCount === 0)
3769
+ return null;
3767
3770
  const row = (doc, action) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
3768
3771
  renderDoc(doc),
3769
3772
  action
@@ -3790,6 +3793,7 @@ function RelatedDocsCell({
3790
3793
  label: attachmentCount === 1 ? "attachment" : "attachments"
3791
3794
  }
3792
3795
  ),
3796
+ /* @__PURE__ */ jsx(RelatedBadge, { icon: GitFork, count: madeFromCount, label: "made from" }),
3793
3797
  /* @__PURE__ */ jsx(
3794
3798
  RelatedBadge,
3795
3799
  {
@@ -3805,6 +3809,7 @@ function RelatedDocsCell({
3805
3809
  /* @__PURE__ */ jsx(PopoverContent, { className: "max-h-[400px] w-[320px] overflow-y-auto p-3", align: "start", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
3806
3810
  parent && /* @__PURE__ */ jsx(RelatedGroup, { icon: CornerDownRight, title: "Parent", count: 1, children: row(parent, switchAction(parent)) }),
3807
3811
  attachmentCount > 0 && /* @__PURE__ */ jsx(RelatedGroup, { icon: CornerRightDown, title: "Attachments", count: attachmentCount, children: attachments.map((doc) => row(doc, switchAction(doc))) }),
3812
+ madeFromCount > 0 && /* @__PURE__ */ jsx(RelatedGroup, { icon: GitFork, title: "Made from", count: madeFromCount, children: madeFrom.map((doc) => row(doc, switchAction(doc))) }),
3808
3813
  dupeCount > 0 && /* @__PURE__ */ jsx(RelatedGroup, { icon: CopyX, title: "Duplicates", count: dupeCount, children: duplicates.map(
3809
3814
  (doc) => row(
3810
3815
  doc,