@arbidocs/blocks 0.4.58 → 0.4.60
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.
- package/dist/{StreamedArtifactEditor-7JHF4JIY.js → StreamedArtifactEditor-373E5JE7.js} +3 -3
- package/dist/{StreamedArtifactEditor-7JHF4JIY.js.map → StreamedArtifactEditor-373E5JE7.js.map} +1 -1
- package/dist/{StreamedArtifactEditor-L2AZZORU.cjs → StreamedArtifactEditor-DBB7MXM3.cjs} +5 -5
- package/dist/{StreamedArtifactEditor-L2AZZORU.cjs.map → StreamedArtifactEditor-DBB7MXM3.cjs.map} +1 -1
- package/dist/agents/index.cjs +219 -219
- package/dist/agents/index.js +3 -3
- package/dist/artifacts/VersionTimeline.d.ts +4 -2
- package/dist/artifacts/index.cjs +21 -21
- package/dist/artifacts/index.js +1 -1
- package/dist/{chunk-DTLOXXPN.js → chunk-FKIRBH5S.js} +9 -8
- package/dist/chunk-FKIRBH5S.js.map +1 -0
- package/dist/{chunk-LH4GHGQJ.cjs → chunk-KLPHGTQA.cjs} +3 -3
- package/dist/chunk-KLPHGTQA.cjs.map +1 -0
- package/dist/{chunk-PVK3GAMH.cjs → chunk-QWK7XXBP.cjs} +9 -8
- package/dist/chunk-QWK7XXBP.cjs.map +1 -0
- package/dist/{chunk-V34YFQ5Q.js → chunk-S3TZOY36.js} +4 -4
- package/dist/{chunk-V34YFQ5Q.js.map → chunk-S3TZOY36.js.map} +1 -1
- package/dist/{chunk-HAADKDRN.cjs → chunk-TF7NR2JY.cjs} +4 -4
- package/dist/{chunk-HAADKDRN.cjs.map → chunk-TF7NR2JY.cjs.map} +1 -1
- package/dist/{chunk-C3656J3H.js → chunk-YDVSD2XZ.js} +3 -3
- package/dist/chunk-YDVSD2XZ.js.map +1 -0
- package/dist/connect/docx.cjs +4 -4
- package/dist/connect/docx.js +1 -1
- package/dist/connect/index.cjs +1 -1
- package/dist/connect/index.js +1 -1
- package/dist/connection/ai.d.ts +9 -1
- package/dist/docx/index.cjs +14 -14
- package/dist/docx/index.js +2 -2
- package/dist/files/cells/RelatedDocsCell.d.ts +5 -2
- package/dist/files/index.cjs +7 -2
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +8 -3
- package/dist/files/index.js.map +1 -1
- package/dist/index.cjs +233 -233
- package/dist/index.js +4 -4
- package/package.json +4 -4
- package/dist/chunk-C3656J3H.js.map +0 -1
- package/dist/chunk-DTLOXXPN.js.map +0 -1
- package/dist/chunk-LH4GHGQJ.cjs.map +0 -1
- package/dist/chunk-PVK3GAMH.cjs.map +0 -1
package/dist/files/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import { CellHoverIcon } from '../chunk-RFXJYIDV.js';
|
|
|
5
5
|
export { CellHoverIcon, HoverIconCell } from '../chunk-RFXJYIDV.js';
|
|
6
6
|
import { GridView, SelectionBar, SelectionBarAction } from '../chunk-BUHKUKKB.js';
|
|
7
7
|
export { DEFAULT_SELECTION_BAR_LABELS, GridView, SelectionBar, SelectionBarAction } from '../chunk-BUHKUKKB.js';
|
|
8
|
-
import { TONE_SURFACE, ToneBadge } from '../chunk-DPLRHEJZ.js';
|
|
9
8
|
import { FilterInput } from '../chunk-YU2KUMGE.js';
|
|
10
9
|
import { ActionLink } from '../chunk-S7PSMMRG.js';
|
|
10
|
+
import { TONE_SURFACE, ToneBadge } from '../chunk-DPLRHEJZ.js';
|
|
11
11
|
import '../chunk-SLSBJRWW.js';
|
|
12
12
|
import '../chunk-NPLYHR2E.js';
|
|
13
13
|
import '../chunk-76JDDMSP.js';
|
|
@@ -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)
|
|
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,
|