@arbidocs/blocks 0.4.61 → 0.4.62
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/agents/index.cjs +218 -218
- package/dist/agents/index.js +2 -2
- package/dist/{chunk-FA2QTFCK.cjs → chunk-HAADKDRN.cjs} +3 -3
- package/dist/{chunk-FA2QTFCK.cjs.map → chunk-HAADKDRN.cjs.map} +1 -1
- package/dist/{chunk-LYE6BPBE.js → chunk-V34YFQ5Q.js} +3 -3
- package/dist/{chunk-LYE6BPBE.js.map → chunk-V34YFQ5Q.js.map} +1 -1
- package/dist/facts/index.cjs +1 -1
- package/dist/facts/index.js +1 -1
- package/dist/files/bulk/BulkActionsBar.d.ts +5 -1
- package/dist/files/cells/RelatedDocsCell.d.ts +6 -2
- package/dist/files/index.cjs +40 -3
- package/dist/files/index.cjs.map +1 -1
- package/dist/files/index.js +41 -4
- package/dist/files/index.js.map +1 -1
- package/dist/home/index.cjs +1 -1
- package/dist/home/index.js +1 -1
- package/dist/index.cjs +264 -264
- package/dist/index.js +3 -3
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/studio/index.cjs +1 -1
- package/dist/studio/index.js +1 -1
- package/package.json +4 -4
package/dist/files/index.js
CHANGED
|
@@ -8,16 +8,16 @@ export { DEFAULT_SELECTION_BAR_LABELS, GridView, SelectionBar, SelectionBarActio
|
|
|
8
8
|
import { TONE_SURFACE, ToneBadge } from '../chunk-DPLRHEJZ.js';
|
|
9
9
|
import { FilterInput } from '../chunk-YU2KUMGE.js';
|
|
10
10
|
import { ActionLink } from '../chunk-S7PSMMRG.js';
|
|
11
|
-
import '../chunk-76JDDMSP.js';
|
|
12
11
|
import '../chunk-SLSBJRWW.js';
|
|
13
12
|
import '../chunk-NPLYHR2E.js';
|
|
13
|
+
import '../chunk-76JDDMSP.js';
|
|
14
14
|
import { formatCount } from '../chunk-OXF2IFXG.js';
|
|
15
15
|
import { ShareControl } from '../chunk-K4BGOPGG.js';
|
|
16
16
|
import { ModalSection, ModalSectionTitle, ModalHeader } from '../chunk-CPMNAJLF.js';
|
|
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, GitFork, Blend, MoreVertical, SquarePen, BookOpen, MessagesSquare, Pencil, FolderInput, Trash2, SquareCheckBig, NotebookPen, MoreHorizontal, ArrowRightFromLine, ArrowDownToLine, Tag, Bot, Calendar, Search,
|
|
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, Hash, ArrowDownToLine, Tag, Bot, Calendar, Search, 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';
|
|
@@ -3751,6 +3751,8 @@ function RelatedDocsCell({
|
|
|
3751
3751
|
parent,
|
|
3752
3752
|
attachments,
|
|
3753
3753
|
madeFrom = [],
|
|
3754
|
+
copies = [],
|
|
3755
|
+
getRelation,
|
|
3754
3756
|
duplicates,
|
|
3755
3757
|
similar,
|
|
3756
3758
|
renderDoc,
|
|
@@ -3763,15 +3765,33 @@ function RelatedDocsCell({
|
|
|
3763
3765
|
const [open, setOpen] = useState(false);
|
|
3764
3766
|
const attachmentCount = attachments.length;
|
|
3765
3767
|
const madeFromCount = madeFrom.length;
|
|
3768
|
+
const copyCount = copies.length;
|
|
3766
3769
|
const dupeCount = duplicates.length;
|
|
3767
3770
|
const simCount = similar.length;
|
|
3768
|
-
if (!parent && attachmentCount === 0 && madeFromCount === 0 && dupeCount === 0 && simCount === 0)
|
|
3771
|
+
if (!parent && attachmentCount === 0 && madeFromCount === 0 && copyCount === 0 && dupeCount === 0 && simCount === 0)
|
|
3769
3772
|
return null;
|
|
3770
3773
|
const row = (doc, action) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
3771
3774
|
renderDoc(doc),
|
|
3772
3775
|
action
|
|
3773
3776
|
] }, getKey(doc));
|
|
3774
3777
|
const switchAction = (doc) => /* @__PURE__ */ jsx(ActionButton, { icon: ArrowRightLeft, label: "Switch to", onClick: () => onSwitchTo(doc) });
|
|
3778
|
+
const derivedRow = (doc) => {
|
|
3779
|
+
const relation = getRelation?.(doc);
|
|
3780
|
+
return row(
|
|
3781
|
+
doc,
|
|
3782
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3783
|
+
relation && /* @__PURE__ */ jsx(
|
|
3784
|
+
"span",
|
|
3785
|
+
{
|
|
3786
|
+
className: "shrink-0 text-xs text-muted-foreground",
|
|
3787
|
+
"data-slot": "related-docs-relation",
|
|
3788
|
+
children: relation
|
|
3789
|
+
}
|
|
3790
|
+
),
|
|
3791
|
+
switchAction(doc)
|
|
3792
|
+
] })
|
|
3793
|
+
);
|
|
3794
|
+
};
|
|
3775
3795
|
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
3776
3796
|
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
3777
3797
|
"button",
|
|
@@ -3794,6 +3814,7 @@ function RelatedDocsCell({
|
|
|
3794
3814
|
}
|
|
3795
3815
|
),
|
|
3796
3816
|
/* @__PURE__ */ jsx(RelatedBadge, { icon: GitFork, count: madeFromCount, label: "made from" }),
|
|
3817
|
+
/* @__PURE__ */ jsx(RelatedBadge, { icon: Copy, count: copyCount, label: copyCount === 1 ? "copy" : "copies" }),
|
|
3797
3818
|
/* @__PURE__ */ jsx(
|
|
3798
3819
|
RelatedBadge,
|
|
3799
3820
|
{
|
|
@@ -3809,7 +3830,8 @@ function RelatedDocsCell({
|
|
|
3809
3830
|
/* @__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: [
|
|
3810
3831
|
parent && /* @__PURE__ */ jsx(RelatedGroup, { icon: CornerDownRight, title: "Parent", count: 1, children: row(parent, switchAction(parent)) }),
|
|
3811
3832
|
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(
|
|
3833
|
+
madeFromCount > 0 && /* @__PURE__ */ jsx(RelatedGroup, { icon: GitFork, title: "Made from", count: madeFromCount, children: madeFrom.map(derivedRow) }),
|
|
3834
|
+
copyCount > 0 && /* @__PURE__ */ jsx(RelatedGroup, { icon: Copy, title: "Copies made from it", count: copyCount, children: copies.map(derivedRow) }),
|
|
3813
3835
|
dupeCount > 0 && /* @__PURE__ */ jsx(RelatedGroup, { icon: CopyX, title: "Duplicates", count: dupeCount, children: duplicates.map(
|
|
3814
3836
|
(doc) => row(
|
|
3815
3837
|
doc,
|
|
@@ -4246,6 +4268,7 @@ var DEFAULT_BULK_ACTIONS_LABELS = {
|
|
|
4246
4268
|
more: "More",
|
|
4247
4269
|
folder: "Folder",
|
|
4248
4270
|
export: "Export",
|
|
4271
|
+
production: "Production set",
|
|
4249
4272
|
reprocess: "Reprocess",
|
|
4250
4273
|
removeOffline: "Remove offline",
|
|
4251
4274
|
useOffline: "Use Offline",
|
|
@@ -4262,6 +4285,7 @@ function BulkActionsBar({
|
|
|
4262
4285
|
onLabel,
|
|
4263
4286
|
onMoveToFolder,
|
|
4264
4287
|
onExport,
|
|
4288
|
+
onProduce,
|
|
4265
4289
|
onReprocess,
|
|
4266
4290
|
reprocessLabel,
|
|
4267
4291
|
onToggleOffline,
|
|
@@ -4286,6 +4310,7 @@ function BulkActionsBar({
|
|
|
4286
4310
|
moveFolder: testIdOr(testIds?.moveFolder, { testId: "bulk-move-folder-button" }),
|
|
4287
4311
|
share: testIdOr(testIds?.share, { testId: "bulk-shared-toggle" }),
|
|
4288
4312
|
export: testIdOr(testIds?.export, { testId: "bulk-export-button" }),
|
|
4313
|
+
production: testIdOr(testIds?.production, { testId: "bulk-production-button" }),
|
|
4289
4314
|
reprocess: testIdOr(testIds?.reprocess, { testId: "bulk-reprocess-button" }),
|
|
4290
4315
|
offline: testIdOr(testIds?.offline, { testId: "bulk-offline-button" }),
|
|
4291
4316
|
delete: testIdOr(testIds?.delete, { testId: "bulk-delete-button" })
|
|
@@ -4425,6 +4450,18 @@ function BulkActionsBar({
|
|
|
4425
4450
|
]
|
|
4426
4451
|
}
|
|
4427
4452
|
),
|
|
4453
|
+
onProduce && /* @__PURE__ */ jsxs(
|
|
4454
|
+
DropdownMenuItem,
|
|
4455
|
+
{
|
|
4456
|
+
onClick: onProduce,
|
|
4457
|
+
disabled: noSelection || !isOnline,
|
|
4458
|
+
"data-testid": ids.production,
|
|
4459
|
+
children: [
|
|
4460
|
+
/* @__PURE__ */ jsx(Hash, { className: "mr-2 h-4 w-4" }),
|
|
4461
|
+
l.production
|
|
4462
|
+
]
|
|
4463
|
+
}
|
|
4464
|
+
),
|
|
4428
4465
|
/* @__PURE__ */ jsxs(
|
|
4429
4466
|
DropdownMenuItem,
|
|
4430
4467
|
{
|