@arbidocs/react 0.5.60 → 0.5.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/ProductionDialog.d-CpzslFn0.d.cts +51 -0
- package/dist/ProductionDialog.d-CpzslFn0.d.ts +51 -0
- package/dist/annotations/freeze/index.cjs +14 -14
- package/dist/annotations/freeze/index.js +3 -3
- package/dist/annotations/index.d.cts +3 -2
- package/dist/annotations/index.d.ts +3 -2
- package/dist/artifacts/index.cjs +12 -12
- package/dist/artifacts/index.js +5 -5
- package/dist/bundle-IC65W2AO.cjs +14 -0
- package/dist/{bundle-DCWPYNGD.cjs.map → bundle-IC65W2AO.cjs.map} +1 -1
- package/dist/bundle-YNOX7VIL.js +5 -0
- package/dist/{bundle-JCKKGEJE.js.map → bundle-YNOX7VIL.js.map} +1 -1
- package/dist/calls/livekit/index.cjs +54 -54
- package/dist/calls/livekit/index.js +6 -6
- package/dist/{chunk-S2W3ZOWG.js → chunk-2LV53J46.js} +85 -16
- package/dist/chunk-2LV53J46.js.map +1 -0
- package/dist/{chunk-H3HYKAS5.cjs → chunk-3BFSALPC.cjs} +3 -3
- package/dist/{chunk-H3HYKAS5.cjs.map → chunk-3BFSALPC.cjs.map} +1 -1
- package/dist/{chunk-2NFUEC5O.js → chunk-3NBPMR3X.js} +3 -3
- package/dist/{chunk-2NFUEC5O.js.map → chunk-3NBPMR3X.js.map} +1 -1
- package/dist/chunk-4DTTEUVY.js +1042 -0
- package/dist/chunk-4DTTEUVY.js.map +1 -0
- package/dist/{chunk-U64WCQP3.js → chunk-AOEJ744V.js} +25 -14
- package/dist/chunk-AOEJ744V.js.map +1 -0
- package/dist/{chunk-4E737GNX.cjs → chunk-BLBXADTN.cjs} +86 -73
- package/dist/chunk-BLBXADTN.cjs.map +1 -0
- package/dist/{chunk-X7JXQT6F.cjs → chunk-DVL7EFZZ.cjs} +42 -46
- package/dist/chunk-DVL7EFZZ.cjs.map +1 -0
- package/dist/{chunk-VAMPYLQ4.cjs → chunk-DZUBZ45Y.cjs} +78 -2
- package/dist/chunk-DZUBZ45Y.cjs.map +1 -0
- package/dist/{chunk-OSWKXZTJ.js → chunk-ER4LFZG3.js} +12 -16
- package/dist/chunk-ER4LFZG3.js.map +1 -0
- package/dist/{chunk-5HDC43MF.js → chunk-G4Z3IP4J.js} +72 -3
- package/dist/chunk-G4Z3IP4J.js.map +1 -0
- package/dist/chunk-GOJHU7RZ.cjs +1122 -0
- package/dist/chunk-GOJHU7RZ.cjs.map +1 -0
- package/dist/{chunk-G76ASVVH.cjs → chunk-GQAXAZN7.cjs} +25 -14
- package/dist/chunk-GQAXAZN7.cjs.map +1 -0
- package/dist/{chunk-TUPSNW3B.cjs → chunk-LMW46NBD.cjs} +11 -11
- package/dist/{chunk-TUPSNW3B.cjs.map → chunk-LMW46NBD.cjs.map} +1 -1
- package/dist/{chunk-KRH55LXW.js → chunk-NCMSQACC.js} +37 -24
- package/dist/chunk-NCMSQACC.js.map +1 -0
- package/dist/{chunk-A2XSLTIP.js → chunk-NIKPG4PW.js} +3 -3
- package/dist/{chunk-A2XSLTIP.js.map → chunk-NIKPG4PW.js.map} +1 -1
- package/dist/{chunk-B6I2HRRF.cjs → chunk-PC4O3JDV.cjs} +3 -3
- package/dist/{chunk-B6I2HRRF.cjs.map → chunk-PC4O3JDV.cjs.map} +1 -1
- package/dist/{chunk-M2SZQBCO.js → chunk-SI7DJWBT.js} +3 -3
- package/dist/{chunk-M2SZQBCO.js.map → chunk-SI7DJWBT.js.map} +1 -1
- package/dist/{chunk-3QK4VVPG.cjs → chunk-TGSEQGM3.cjs} +3 -3
- package/dist/{chunk-3QK4VVPG.cjs.map → chunk-TGSEQGM3.cjs.map} +1 -1
- package/dist/{chunk-LCSUCZVX.cjs → chunk-ZNQPUPX6.cjs} +118 -41
- package/dist/chunk-ZNQPUPX6.cjs.map +1 -0
- package/dist/{chunk-CMNZI4WQ.js → chunk-ZTPJNKF2.js} +4 -4
- package/dist/{chunk-CMNZI4WQ.js.map → chunk-ZTPJNKF2.js.map} +1 -1
- package/dist/document-tools/core.cjs +408 -0
- package/dist/document-tools/core.cjs.map +1 -0
- package/dist/document-tools/core.d.cts +957 -0
- package/dist/document-tools/core.d.ts +957 -0
- package/dist/document-tools/core.js +15 -0
- package/dist/document-tools/core.js.map +1 -0
- package/dist/document-tools/index.cjs +347 -1130
- package/dist/document-tools/index.cjs.map +1 -1
- package/dist/document-tools/index.d.cts +12 -950
- package/dist/document-tools/index.d.ts +12 -950
- package/dist/document-tools/index.js +13 -1034
- package/dist/document-tools/index.js.map +1 -1
- package/dist/index.cjs +1510 -1255
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-BLw5AN0H.d.cts → index.d-AT7wdTWC.d.cts} +50 -2
- package/dist/{index.d-BLw5AN0H.d.ts → index.d-AT7wdTWC.d.ts} +50 -2
- package/dist/{index.d-DPVj21h1.d.ts → index.d-B0dosFZc.d.cts} +6 -6
- package/dist/{index.d-DPVj21h1.d.cts → index.d-B0dosFZc.d.ts} +6 -6
- package/dist/index.d.cts +145 -69
- package/dist/index.d.ts +145 -69
- package/dist/index.js +346 -121
- package/dist/index.js.map +1 -1
- package/dist/{query-keys.d-DEEMzkLz.d.cts → query-keys.d-BFKQVevT.d.cts} +21 -12
- package/dist/{query-keys.d-DEEMzkLz.d.ts → query-keys.d-BFKQVevT.d.ts} +21 -12
- package/dist/shell/index.cjs +68 -40
- package/dist/shell/index.d.cts +1 -1
- package/dist/shell/index.d.ts +1 -1
- package/dist/shell/index.js +3 -3
- package/dist/store.d-DkFXbWDk.d.ts +35 -0
- package/dist/store.d-GADDvC7w.d.cts +35 -0
- package/dist/ui/index.cjs +149 -149
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +11 -3
- package/dist/ProductionDialog.d-BDJwBSzj.d.ts +0 -84
- package/dist/ProductionDialog.d-DjRQFmQw.d.cts +0 -84
- package/dist/bundle-DCWPYNGD.cjs +0 -14
- package/dist/bundle-JCKKGEJE.js +0 -5
- package/dist/chunk-4E737GNX.cjs.map +0 -1
- package/dist/chunk-5HDC43MF.js.map +0 -1
- package/dist/chunk-G76ASVVH.cjs.map +0 -1
- package/dist/chunk-KRH55LXW.js.map +0 -1
- package/dist/chunk-LCSUCZVX.cjs.map +0 -1
- package/dist/chunk-OSWKXZTJ.js.map +0 -1
- package/dist/chunk-S2W3ZOWG.js.map +0 -1
- package/dist/chunk-U64WCQP3.js.map +0 -1
- package/dist/chunk-VAMPYLQ4.cjs.map +0 -1
- package/dist/chunk-X7JXQT6F.cjs.map +0 -1
package/dist/ui/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiIcon, d as Avatar, e as AvatarFallback, f as AvatarImage, B as BASE_COLORS, g as Badge, h as BadgeProps, i as Button, j as ButtonProps, C as COLUMN_LABEL_FALLBACKS, k as Card, l as CardContent, m as CardDescription, n as CardFooter, o as CardHeader, p as CardProps, q as CardTitle, r as Checkbox, s as Collapsible, t as CollapsibleContent, u as CollapsibleTrigger, v as Command, w as CommandDialog, x as CommandEmpty, y as CommandGroup, z as CommandInput, D as CommandItem, E as CommandList, F as CommandSeparator, G as CommandShortcut, H as DEFAULT_METADATA_TAGS, I as DebouncedInput, J as DebouncedInputProps, K as Dialog, L as DialogClose, M as DialogContent, N as DialogDescription, O as DialogFooter, P as DialogHeader, Q as DialogOverlay, R as DialogPortal, S as DialogPresentation, T as DialogTitle, U as DialogTrigger, V as DictateContextValue, W as DocumentCard, X as DocumentCardProps, Y as DocumentEntity, Z as DocumentEntityProps, _ as DocumentLike, $ as DropdownMenu, a0 as DropdownMenuCheckboxItem, a1 as DropdownMenuContent, a2 as DropdownMenuGroup, a3 as DropdownMenuItem, a4 as DropdownMenuLabel, a5 as DropdownMenuPortal, a6 as DropdownMenuRadioGroup, a7 as DropdownMenuRadioItem, a8 as DropdownMenuSeparator, a9 as DropdownMenuShortcut, aa as DropdownMenuSub, ab as DropdownMenuSubContent, ac as DropdownMenuSubTrigger, ad as DropdownMenuTrigger, ae as ENTITY_MAPPINGS, af as EntityIcon, ag as EntityIconComponent, ah as EntityLabelForm, ai as EntityNoun, aj as EntityPill, ak as EntityRegistryOverride, al as EntityType, am as EntityVocabulary, an as FileTypeIcon, ao as FolderTreeNode, ap as FormatRelativeTimeOptions, aq as HoverCard, ar as HoverCardContent, as as HoverCardTrigger, at as IconToggle, au as IconToggleProps, av as IdentityBusy, aw as IdentityProblem, ax as IdentityPurchase, ay as IdentityState, az as IdentityStatus, aA as IdentityStep, aB as IdentityVerificationFlow, aC as Input, aD as InputProps, aE as Label, aF as MarkMenu, aG as MarkMenuItem, aH as MarkMenuProps, aI as MarkdownCode, aJ as MarkdownLink, aK as MarkdownRenderer, aL as MarkdownRendererProps, aM as MarkdownStreamingContext, aN as NEUTRAL_GRAY, aO as PLACEHOLDER_COLOR, aP as PassageCard, aQ as PassageCardProps, aR as Popover, aS as PopoverAnchor, aT as PopoverClose, aU as PopoverContent, aV as PopoverTrigger, aW as PortalContainerProvider, aX as PresenceDisplayStatus, aY as PresenceLabel, aZ as Progress, a_ as ProjectEntity, a$ as ProjectEntityProps, b0 as ProjectRelation, b1 as ProviderIcon, b2 as RadioGroup, b3 as RadioGroupItem, b4 as Rag, b5 as RagDot, b6 as RelevanceDot, b7 as ScrollArea, b8 as ScrollBar, b9 as Select, ba as SelectContent, bb as SelectGroup, bc as SelectItem, bd as SelectLabel, be as SelectScrollDownButton, bf as SelectScrollUpButton, bg as SelectSeparator, bh as SelectTrigger, bi as SelectValue, bj as Separator, bk as ShieldIcon, bl as ShieldIconProps, bm as Slider, bn as StatusBadgeComponent, bo as StatusBadgeProps, bp as StatusPill, bq as StatusPillProps, br as StatusVariant, bs as Switch, bt as TAG_TYPE_ICONS, bu as TAG_TYPE_LABELS, bv as Table, bw as TableBody, bx as TableCaption, by as TableCell, bz as TableFooter, bA as TableHead, bB as TableHeader, bC as TableRow, bD as Tabs, bE as TabsContent, bF as TabsList, bG as TabsTrigger, bH as TagEntity, bI as TagEntityProps, bJ as TagLike, bK as Textarea, bL as TextareaProps, bM as ThreadVisibilityIcon, bN as Toggle, bO as ToggleGroup, bP as ToggleGroupItem, bQ as Tooltip, bR as TooltipContent, bS as TooltipProvider, bT as TooltipTrigger, bU as UserEntity, bV as UserEntityProps, bW as UserMenu, bX as UserMenuItem, bY as UserMenuProps, bZ as UserMenuStatus, b_ as VISIBILITY_ICONS, b$ as VerifiedBadge, c0 as VerifiedBadgeProps, c1 as VerifiedToggle, c2 as VisibilityIcon, c3 as VisibilityToggle, c4 as VisibilityToggleProps, c5 as agentAvatarColors, c6 as badgeVariants, c7 as buildFolderTree, c8 as buttonVariants, c9 as canonicalFolderPath, ca as cardVariants, cb as closeOpenEmphasis, cc as cn, cd as configureEntityRegistry, ce as configureEntityVocabulary, cf as configureRagLabels, cg as configureStatusRegistry, ch as createUserAvatarIcon, ci as entityNoun, cj as extensionFromMime, ck as formatCompactLastSeen, cl as formatDocDate, cm as formatFolderLabel, cn as formatFriendlyDate, co as formatRelativeTime, cp as friendlyFileType, cq as getDocIcon, cr as getDocumentAuthor, cs as getDocumentDate, ct as getDocumentNature, cu as getDocumentSubject, cv as getDocumentTitle, cw as getEntityColor, cx as getEntityColorStyles, cy as getEntityIcon, cz as getEntityLabel, cA as getFileExtension, cB as getFileTypeIcon, cC as getStatusVariant, cD as getTagTypeIcon, cE as getTagTypeLabel, cF as getUserAvatarColor, cG as getUserDisplayName, cH as getUserInitials, cI as getWorkspaceColor, cJ as isAgent, cK as isAudioFile, cL as isDocumentAddableToConversation, cM as isDownloadOnlyFile, cN as isImageDocument, cO as isImageFile, cP as isMediaFile, cQ as isVideoFile, cR as markdownBaseComponents, cS as markdownSanitizeSchema, cT as markdownToPlainText, cU as markdownToPlainTextBlocks, cW as splitMarkdownBlocks, cX as tagKindNouns, cY as tagKindTitle, cZ as toggleVariants, c_ as trimOpenCitation, c$ as useDictateContext, d0 as usePortalContainer, d1 as usesOriginalBytesForViewer } from '../index.d-
|
|
1
|
+
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiIcon, d as Avatar, e as AvatarFallback, f as AvatarImage, B as BASE_COLORS, g as Badge, h as BadgeProps, i as Button, j as ButtonProps, C as COLUMN_LABEL_FALLBACKS, k as Card, l as CardContent, m as CardDescription, n as CardFooter, o as CardHeader, p as CardProps, q as CardTitle, r as Checkbox, s as Collapsible, t as CollapsibleContent, u as CollapsibleTrigger, v as Command, w as CommandDialog, x as CommandEmpty, y as CommandGroup, z as CommandInput, D as CommandItem, E as CommandList, F as CommandSeparator, G as CommandShortcut, H as DEFAULT_METADATA_TAGS, I as DebouncedInput, J as DebouncedInputProps, K as Dialog, L as DialogClose, M as DialogContent, N as DialogDescription, O as DialogFooter, P as DialogHeader, Q as DialogOverlay, R as DialogPortal, S as DialogPresentation, T as DialogTitle, U as DialogTrigger, V as DictateContextValue, W as DocumentCard, X as DocumentCardProps, Y as DocumentEntity, Z as DocumentEntityProps, _ as DocumentLike, $ as DropdownMenu, a0 as DropdownMenuCheckboxItem, a1 as DropdownMenuContent, a2 as DropdownMenuGroup, a3 as DropdownMenuItem, a4 as DropdownMenuLabel, a5 as DropdownMenuPortal, a6 as DropdownMenuRadioGroup, a7 as DropdownMenuRadioItem, a8 as DropdownMenuSeparator, a9 as DropdownMenuShortcut, aa as DropdownMenuSub, ab as DropdownMenuSubContent, ac as DropdownMenuSubTrigger, ad as DropdownMenuTrigger, ae as ENTITY_MAPPINGS, af as EntityIcon, ag as EntityIconComponent, ah as EntityLabelForm, ai as EntityNoun, aj as EntityPill, ak as EntityRegistryOverride, al as EntityType, am as EntityVocabulary, an as FileTypeIcon, ao as FolderTreeNode, ap as FormatRelativeTimeOptions, aq as HoverCard, ar as HoverCardContent, as as HoverCardTrigger, at as IconToggle, au as IconToggleProps, av as IdentityBusy, aw as IdentityProblem, ax as IdentityPurchase, ay as IdentityState, az as IdentityStatus, aA as IdentityStep, aB as IdentityVerificationFlow, aC as Input, aD as InputProps, aE as Label, aF as MarkMenu, aG as MarkMenuItem, aH as MarkMenuProps, aI as MarkdownCode, aJ as MarkdownLink, aK as MarkdownRenderer, aL as MarkdownRendererProps, aM as MarkdownStreamingContext, aN as NEUTRAL_GRAY, aO as PLACEHOLDER_COLOR, aP as PassageCard, aQ as PassageCardProps, aR as Popover, aS as PopoverAnchor, aT as PopoverClose, aU as PopoverContent, aV as PopoverTrigger, aW as PortalContainerProvider, aX as PresenceDisplayStatus, aY as PresenceLabel, aZ as Progress, a_ as ProjectEntity, a$ as ProjectEntityProps, b0 as ProjectRelation, b1 as ProviderIcon, b2 as RadioGroup, b3 as RadioGroupItem, b4 as Rag, b5 as RagDot, b6 as RelevanceDot, b7 as ScrollArea, b8 as ScrollBar, b9 as Select, ba as SelectContent, bb as SelectGroup, bc as SelectItem, bd as SelectLabel, be as SelectScrollDownButton, bf as SelectScrollUpButton, bg as SelectSeparator, bh as SelectTrigger, bi as SelectValue, bj as Separator, bk as ShieldIcon, bl as ShieldIconProps, bm as Slider, bn as StatusBadgeComponent, bo as StatusBadgeProps, bp as StatusPill, bq as StatusPillProps, br as StatusVariant, bs as Switch, bt as TAG_TYPE_ICONS, bu as TAG_TYPE_LABELS, bv as Table, bw as TableBody, bx as TableCaption, by as TableCell, bz as TableFooter, bA as TableHead, bB as TableHeader, bC as TableRow, bD as Tabs, bE as TabsContent, bF as TabsList, bG as TabsTrigger, bH as TagEntity, bI as TagEntityProps, bJ as TagLike, bK as Textarea, bL as TextareaProps, bM as ThreadVisibilityIcon, bN as Toggle, bO as ToggleGroup, bP as ToggleGroupItem, bQ as Tooltip, bR as TooltipContent, bS as TooltipProvider, bT as TooltipTrigger, bU as UserEntity, bV as UserEntityProps, bW as UserMenu, bX as UserMenuItem, bY as UserMenuProps, bZ as UserMenuStatus, b_ as VISIBILITY_ICONS, b$ as VerifiedBadge, c0 as VerifiedBadgeProps, c1 as VerifiedToggle, c2 as VisibilityIcon, c3 as VisibilityToggle, c4 as VisibilityToggleProps, c5 as agentAvatarColors, c6 as badgeVariants, c7 as buildFolderTree, c8 as buttonVariants, c9 as canonicalFolderPath, ca as cardVariants, cb as closeOpenEmphasis, cc as cn, cd as configureEntityRegistry, ce as configureEntityVocabulary, cf as configureRagLabels, cg as configureStatusRegistry, ch as createUserAvatarIcon, ci as entityNoun, cj as extensionFromMime, ck as formatCompactLastSeen, cl as formatDocDate, cm as formatFolderLabel, cn as formatFriendlyDate, co as formatRelativeTime, cp as friendlyFileType, cq as getDocIcon, cr as getDocumentAuthor, cs as getDocumentDate, ct as getDocumentNature, cu as getDocumentSubject, cv as getDocumentTitle, cw as getEntityColor, cx as getEntityColorStyles, cy as getEntityIcon, cz as getEntityLabel, cA as getFileExtension, cB as getFileTypeIcon, cC as getStatusVariant, cD as getTagTypeIcon, cE as getTagTypeLabel, cF as getUserAvatarColor, cG as getUserDisplayName, cH as getUserInitials, cI as getWorkspaceColor, cJ as isAgent, cK as isAudioFile, cL as isDocumentAddableToConversation, cM as isDownloadOnlyFile, cN as isImageDocument, cO as isImageFile, cP as isMediaFile, cQ as isVideoFile, cR as markdownBaseComponents, cS as markdownSanitizeSchema, cT as markdownToPlainText, cU as markdownToPlainTextBlocks, cW as splitMarkdownBlocks, cX as tagKindNouns, cY as tagKindTitle, cZ as toggleVariants, c_ as trimOpenCitation, c$ as useDictateContext, d0 as usePortalContainer, d1 as usesOriginalBytesForViewer } from '../index.d-B0dosFZc.cjs';
|
|
2
2
|
import 'clsx';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@radix-ui/react-avatar';
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiIcon, d as Avatar, e as AvatarFallback, f as AvatarImage, B as BASE_COLORS, g as Badge, h as BadgeProps, i as Button, j as ButtonProps, C as COLUMN_LABEL_FALLBACKS, k as Card, l as CardContent, m as CardDescription, n as CardFooter, o as CardHeader, p as CardProps, q as CardTitle, r as Checkbox, s as Collapsible, t as CollapsibleContent, u as CollapsibleTrigger, v as Command, w as CommandDialog, x as CommandEmpty, y as CommandGroup, z as CommandInput, D as CommandItem, E as CommandList, F as CommandSeparator, G as CommandShortcut, H as DEFAULT_METADATA_TAGS, I as DebouncedInput, J as DebouncedInputProps, K as Dialog, L as DialogClose, M as DialogContent, N as DialogDescription, O as DialogFooter, P as DialogHeader, Q as DialogOverlay, R as DialogPortal, S as DialogPresentation, T as DialogTitle, U as DialogTrigger, V as DictateContextValue, W as DocumentCard, X as DocumentCardProps, Y as DocumentEntity, Z as DocumentEntityProps, _ as DocumentLike, $ as DropdownMenu, a0 as DropdownMenuCheckboxItem, a1 as DropdownMenuContent, a2 as DropdownMenuGroup, a3 as DropdownMenuItem, a4 as DropdownMenuLabel, a5 as DropdownMenuPortal, a6 as DropdownMenuRadioGroup, a7 as DropdownMenuRadioItem, a8 as DropdownMenuSeparator, a9 as DropdownMenuShortcut, aa as DropdownMenuSub, ab as DropdownMenuSubContent, ac as DropdownMenuSubTrigger, ad as DropdownMenuTrigger, ae as ENTITY_MAPPINGS, af as EntityIcon, ag as EntityIconComponent, ah as EntityLabelForm, ai as EntityNoun, aj as EntityPill, ak as EntityRegistryOverride, al as EntityType, am as EntityVocabulary, an as FileTypeIcon, ao as FolderTreeNode, ap as FormatRelativeTimeOptions, aq as HoverCard, ar as HoverCardContent, as as HoverCardTrigger, at as IconToggle, au as IconToggleProps, av as IdentityBusy, aw as IdentityProblem, ax as IdentityPurchase, ay as IdentityState, az as IdentityStatus, aA as IdentityStep, aB as IdentityVerificationFlow, aC as Input, aD as InputProps, aE as Label, aF as MarkMenu, aG as MarkMenuItem, aH as MarkMenuProps, aI as MarkdownCode, aJ as MarkdownLink, aK as MarkdownRenderer, aL as MarkdownRendererProps, aM as MarkdownStreamingContext, aN as NEUTRAL_GRAY, aO as PLACEHOLDER_COLOR, aP as PassageCard, aQ as PassageCardProps, aR as Popover, aS as PopoverAnchor, aT as PopoverClose, aU as PopoverContent, aV as PopoverTrigger, aW as PortalContainerProvider, aX as PresenceDisplayStatus, aY as PresenceLabel, aZ as Progress, a_ as ProjectEntity, a$ as ProjectEntityProps, b0 as ProjectRelation, b1 as ProviderIcon, b2 as RadioGroup, b3 as RadioGroupItem, b4 as Rag, b5 as RagDot, b6 as RelevanceDot, b7 as ScrollArea, b8 as ScrollBar, b9 as Select, ba as SelectContent, bb as SelectGroup, bc as SelectItem, bd as SelectLabel, be as SelectScrollDownButton, bf as SelectScrollUpButton, bg as SelectSeparator, bh as SelectTrigger, bi as SelectValue, bj as Separator, bk as ShieldIcon, bl as ShieldIconProps, bm as Slider, bn as StatusBadgeComponent, bo as StatusBadgeProps, bp as StatusPill, bq as StatusPillProps, br as StatusVariant, bs as Switch, bt as TAG_TYPE_ICONS, bu as TAG_TYPE_LABELS, bv as Table, bw as TableBody, bx as TableCaption, by as TableCell, bz as TableFooter, bA as TableHead, bB as TableHeader, bC as TableRow, bD as Tabs, bE as TabsContent, bF as TabsList, bG as TabsTrigger, bH as TagEntity, bI as TagEntityProps, bJ as TagLike, bK as Textarea, bL as TextareaProps, bM as ThreadVisibilityIcon, bN as Toggle, bO as ToggleGroup, bP as ToggleGroupItem, bQ as Tooltip, bR as TooltipContent, bS as TooltipProvider, bT as TooltipTrigger, bU as UserEntity, bV as UserEntityProps, bW as UserMenu, bX as UserMenuItem, bY as UserMenuProps, bZ as UserMenuStatus, b_ as VISIBILITY_ICONS, b$ as VerifiedBadge, c0 as VerifiedBadgeProps, c1 as VerifiedToggle, c2 as VisibilityIcon, c3 as VisibilityToggle, c4 as VisibilityToggleProps, c5 as agentAvatarColors, c6 as badgeVariants, c7 as buildFolderTree, c8 as buttonVariants, c9 as canonicalFolderPath, ca as cardVariants, cb as closeOpenEmphasis, cc as cn, cd as configureEntityRegistry, ce as configureEntityVocabulary, cf as configureRagLabels, cg as configureStatusRegistry, ch as createUserAvatarIcon, ci as entityNoun, cj as extensionFromMime, ck as formatCompactLastSeen, cl as formatDocDate, cm as formatFolderLabel, cn as formatFriendlyDate, co as formatRelativeTime, cp as friendlyFileType, cq as getDocIcon, cr as getDocumentAuthor, cs as getDocumentDate, ct as getDocumentNature, cu as getDocumentSubject, cv as getDocumentTitle, cw as getEntityColor, cx as getEntityColorStyles, cy as getEntityIcon, cz as getEntityLabel, cA as getFileExtension, cB as getFileTypeIcon, cC as getStatusVariant, cD as getTagTypeIcon, cE as getTagTypeLabel, cF as getUserAvatarColor, cG as getUserDisplayName, cH as getUserInitials, cI as getWorkspaceColor, cJ as isAgent, cK as isAudioFile, cL as isDocumentAddableToConversation, cM as isDownloadOnlyFile, cN as isImageDocument, cO as isImageFile, cP as isMediaFile, cQ as isVideoFile, cR as markdownBaseComponents, cS as markdownSanitizeSchema, cT as markdownToPlainText, cU as markdownToPlainTextBlocks, cW as splitMarkdownBlocks, cX as tagKindNouns, cY as tagKindTitle, cZ as toggleVariants, c_ as trimOpenCitation, c$ as useDictateContext, d0 as usePortalContainer, d1 as usesOriginalBytesForViewer } from '../index.d-
|
|
1
|
+
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiIcon, d as Avatar, e as AvatarFallback, f as AvatarImage, B as BASE_COLORS, g as Badge, h as BadgeProps, i as Button, j as ButtonProps, C as COLUMN_LABEL_FALLBACKS, k as Card, l as CardContent, m as CardDescription, n as CardFooter, o as CardHeader, p as CardProps, q as CardTitle, r as Checkbox, s as Collapsible, t as CollapsibleContent, u as CollapsibleTrigger, v as Command, w as CommandDialog, x as CommandEmpty, y as CommandGroup, z as CommandInput, D as CommandItem, E as CommandList, F as CommandSeparator, G as CommandShortcut, H as DEFAULT_METADATA_TAGS, I as DebouncedInput, J as DebouncedInputProps, K as Dialog, L as DialogClose, M as DialogContent, N as DialogDescription, O as DialogFooter, P as DialogHeader, Q as DialogOverlay, R as DialogPortal, S as DialogPresentation, T as DialogTitle, U as DialogTrigger, V as DictateContextValue, W as DocumentCard, X as DocumentCardProps, Y as DocumentEntity, Z as DocumentEntityProps, _ as DocumentLike, $ as DropdownMenu, a0 as DropdownMenuCheckboxItem, a1 as DropdownMenuContent, a2 as DropdownMenuGroup, a3 as DropdownMenuItem, a4 as DropdownMenuLabel, a5 as DropdownMenuPortal, a6 as DropdownMenuRadioGroup, a7 as DropdownMenuRadioItem, a8 as DropdownMenuSeparator, a9 as DropdownMenuShortcut, aa as DropdownMenuSub, ab as DropdownMenuSubContent, ac as DropdownMenuSubTrigger, ad as DropdownMenuTrigger, ae as ENTITY_MAPPINGS, af as EntityIcon, ag as EntityIconComponent, ah as EntityLabelForm, ai as EntityNoun, aj as EntityPill, ak as EntityRegistryOverride, al as EntityType, am as EntityVocabulary, an as FileTypeIcon, ao as FolderTreeNode, ap as FormatRelativeTimeOptions, aq as HoverCard, ar as HoverCardContent, as as HoverCardTrigger, at as IconToggle, au as IconToggleProps, av as IdentityBusy, aw as IdentityProblem, ax as IdentityPurchase, ay as IdentityState, az as IdentityStatus, aA as IdentityStep, aB as IdentityVerificationFlow, aC as Input, aD as InputProps, aE as Label, aF as MarkMenu, aG as MarkMenuItem, aH as MarkMenuProps, aI as MarkdownCode, aJ as MarkdownLink, aK as MarkdownRenderer, aL as MarkdownRendererProps, aM as MarkdownStreamingContext, aN as NEUTRAL_GRAY, aO as PLACEHOLDER_COLOR, aP as PassageCard, aQ as PassageCardProps, aR as Popover, aS as PopoverAnchor, aT as PopoverClose, aU as PopoverContent, aV as PopoverTrigger, aW as PortalContainerProvider, aX as PresenceDisplayStatus, aY as PresenceLabel, aZ as Progress, a_ as ProjectEntity, a$ as ProjectEntityProps, b0 as ProjectRelation, b1 as ProviderIcon, b2 as RadioGroup, b3 as RadioGroupItem, b4 as Rag, b5 as RagDot, b6 as RelevanceDot, b7 as ScrollArea, b8 as ScrollBar, b9 as Select, ba as SelectContent, bb as SelectGroup, bc as SelectItem, bd as SelectLabel, be as SelectScrollDownButton, bf as SelectScrollUpButton, bg as SelectSeparator, bh as SelectTrigger, bi as SelectValue, bj as Separator, bk as ShieldIcon, bl as ShieldIconProps, bm as Slider, bn as StatusBadgeComponent, bo as StatusBadgeProps, bp as StatusPill, bq as StatusPillProps, br as StatusVariant, bs as Switch, bt as TAG_TYPE_ICONS, bu as TAG_TYPE_LABELS, bv as Table, bw as TableBody, bx as TableCaption, by as TableCell, bz as TableFooter, bA as TableHead, bB as TableHeader, bC as TableRow, bD as Tabs, bE as TabsContent, bF as TabsList, bG as TabsTrigger, bH as TagEntity, bI as TagEntityProps, bJ as TagLike, bK as Textarea, bL as TextareaProps, bM as ThreadVisibilityIcon, bN as Toggle, bO as ToggleGroup, bP as ToggleGroupItem, bQ as Tooltip, bR as TooltipContent, bS as TooltipProvider, bT as TooltipTrigger, bU as UserEntity, bV as UserEntityProps, bW as UserMenu, bX as UserMenuItem, bY as UserMenuProps, bZ as UserMenuStatus, b_ as VISIBILITY_ICONS, b$ as VerifiedBadge, c0 as VerifiedBadgeProps, c1 as VerifiedToggle, c2 as VisibilityIcon, c3 as VisibilityToggle, c4 as VisibilityToggleProps, c5 as agentAvatarColors, c6 as badgeVariants, c7 as buildFolderTree, c8 as buttonVariants, c9 as canonicalFolderPath, ca as cardVariants, cb as closeOpenEmphasis, cc as cn, cd as configureEntityRegistry, ce as configureEntityVocabulary, cf as configureRagLabels, cg as configureStatusRegistry, ch as createUserAvatarIcon, ci as entityNoun, cj as extensionFromMime, ck as formatCompactLastSeen, cl as formatDocDate, cm as formatFolderLabel, cn as formatFriendlyDate, co as formatRelativeTime, cp as friendlyFileType, cq as getDocIcon, cr as getDocumentAuthor, cs as getDocumentDate, ct as getDocumentNature, cu as getDocumentSubject, cv as getDocumentTitle, cw as getEntityColor, cx as getEntityColorStyles, cy as getEntityIcon, cz as getEntityLabel, cA as getFileExtension, cB as getFileTypeIcon, cC as getStatusVariant, cD as getTagTypeIcon, cE as getTagTypeLabel, cF as getUserAvatarColor, cG as getUserDisplayName, cH as getUserInitials, cI as getWorkspaceColor, cJ as isAgent, cK as isAudioFile, cL as isDocumentAddableToConversation, cM as isDownloadOnlyFile, cN as isImageDocument, cO as isImageFile, cP as isMediaFile, cQ as isVideoFile, cR as markdownBaseComponents, cS as markdownSanitizeSchema, cT as markdownToPlainText, cU as markdownToPlainTextBlocks, cW as splitMarkdownBlocks, cX as tagKindNouns, cY as tagKindTitle, cZ as toggleVariants, c_ as trimOpenCitation, c$ as useDictateContext, d0 as usePortalContainer, d1 as usesOriginalBytesForViewer } from '../index.d-B0dosFZc.js';
|
|
2
2
|
import 'clsx';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@radix-ui/react-avatar';
|
package/dist/ui/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { ARBI_MARK_SRC, AgentBadge, AiMarkdown, ArbiIcon, BASE_COLORS, Badge, COLUMN_LABEL_FALLBACKS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_METADATA_TAGS, DebouncedInput, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EntityIcon, EntityPill, HoverCard, HoverCardContent, HoverCardTrigger, IconToggle, Input, Label, MarkMenu, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, ProviderIcon, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShieldIcon, Slider, StatusPill, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, Textarea, ThreadVisibilityIcon, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserEntity, UserMenu, VISIBILITY_ICONS, VerifiedBadge, VerifiedToggle, VisibilityIcon, VisibilityToggle, agentAvatarColors, badgeVariants, buildFolderTree, canonicalFolderPath, cardVariants, configureEntityRegistry, configureRagLabels, configureStatusRegistry, entityNoun, extensionFromMime, formatCompactLastSeen, formatDocDate, formatFolderLabel, formatFriendlyDate, friendlyFileType, getDocIcon, getDocumentAuthor, getDocumentDate, getDocumentNature, getDocumentSubject, getDocumentTitle, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getFileExtension, getFileTypeIcon, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, isAudioFile, isDocumentAddableToConversation, isDownloadOnlyFile, isImageDocument, isImageFile, isMediaFile, isVideoFile, markdownToPlainText, markdownToPlainTextBlocks, tagKindNouns, tagKindTitle, toggleVariants, useDictateContext, usesOriginalBytesForViewer } from '../chunk-
|
|
1
|
+
export { ARBI_MARK_SRC, AgentBadge, AiMarkdown, ArbiIcon, BASE_COLORS, Badge, COLUMN_LABEL_FALLBACKS, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_METADATA_TAGS, DebouncedInput, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EntityIcon, EntityPill, HoverCard, HoverCardContent, HoverCardTrigger, IconToggle, Input, Label, MarkMenu, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, ProviderIcon, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, ShieldIcon, Slider, StatusPill, Switch, TAG_TYPE_ICONS, TAG_TYPE_LABELS, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagEntity, Textarea, ThreadVisibilityIcon, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserEntity, UserMenu, VISIBILITY_ICONS, VerifiedBadge, VerifiedToggle, VisibilityIcon, VisibilityToggle, agentAvatarColors, badgeVariants, buildFolderTree, canonicalFolderPath, cardVariants, configureEntityRegistry, configureRagLabels, configureStatusRegistry, entityNoun, extensionFromMime, formatCompactLastSeen, formatDocDate, formatFolderLabel, formatFriendlyDate, friendlyFileType, getDocIcon, getDocumentAuthor, getDocumentDate, getDocumentNature, getDocumentSubject, getDocumentTitle, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getFileExtension, getFileTypeIcon, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, isAudioFile, isDocumentAddableToConversation, isDownloadOnlyFile, isImageDocument, isImageFile, isMediaFile, isVideoFile, markdownToPlainText, markdownToPlainTextBlocks, tagKindNouns, tagKindTitle, toggleVariants, useDictateContext, usesOriginalBytesForViewer } from '../chunk-3NBPMR3X.js';
|
|
2
2
|
export { Avatar, AvatarFallback, AvatarImage, createUserAvatarIcon, getUserAvatarColor, getUserDisplayName, getUserInitials, isAgent } from '../chunk-APZZQZ6P.js';
|
|
3
3
|
export { MarkdownCode, MarkdownLink, MarkdownRenderer, MarkdownStreamingContext, markdownBaseComponents, markdownSanitizeSchema, splitMarkdownBlocks } from '../chunk-C44GO33B.js';
|
|
4
4
|
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from '../chunk-YNNAJJ5Z.js';
|
|
5
5
|
export { ScrollArea, ScrollBar, configureEntityVocabulary, formatRelativeTime } from '../chunk-Y3MTRA7D.js';
|
|
6
6
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PortalContainerProvider, usePortalContainer } from '../chunk-47CCGUWR.js';
|
|
7
7
|
export { closeOpenEmphasis, trimOpenCitation } from '../chunk-QRCMKEE6.js';
|
|
8
|
-
export { cn } from '../chunk-SN5YV6FF.js';
|
|
9
8
|
import '../chunk-CPZ36AQS.js';
|
|
9
|
+
export { cn } from '../chunk-SN5YV6FF.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbidocs/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.62",
|
|
4
4
|
"description": "React hooks and provider for the ARBI SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -57,6 +57,11 @@
|
|
|
57
57
|
"types": "./dist/calls/livekit/index.d.ts",
|
|
58
58
|
"import": "./dist/calls/livekit/index.js",
|
|
59
59
|
"require": "./dist/calls/livekit/index.cjs"
|
|
60
|
+
},
|
|
61
|
+
"./document-tools/core": {
|
|
62
|
+
"types": "./dist/document-tools/core.d.ts",
|
|
63
|
+
"import": "./dist/document-tools/core.js",
|
|
64
|
+
"require": "./dist/document-tools/core.cjs"
|
|
60
65
|
}
|
|
61
66
|
},
|
|
62
67
|
"typesVersions": {
|
|
@@ -87,6 +92,9 @@
|
|
|
87
92
|
],
|
|
88
93
|
"calls": [
|
|
89
94
|
"./dist/calls/livekit/index.d.ts"
|
|
95
|
+
],
|
|
96
|
+
"document-tools/core": [
|
|
97
|
+
"dist/document-tools/core.d.ts"
|
|
90
98
|
]
|
|
91
99
|
}
|
|
92
100
|
},
|
|
@@ -101,8 +109,8 @@
|
|
|
101
109
|
"build-storybook": "storybook build"
|
|
102
110
|
},
|
|
103
111
|
"dependencies": {
|
|
104
|
-
"@arbidocs/client": "0.5.
|
|
105
|
-
"@arbidocs/sdk": "0.5.
|
|
112
|
+
"@arbidocs/client": "0.5.62",
|
|
113
|
+
"@arbidocs/sdk": "0.5.62",
|
|
106
114
|
"@didit-protocol/sdk-web": "0.4.0",
|
|
107
115
|
"@livekit/components-react": "2.9.24",
|
|
108
116
|
"@radix-ui/react-avatar": "^1.2.0",
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { b as AnnotationLayer } from './model.d-CNtRWKVK.js';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Where a layer is kept. The layer is data about a document, not part of it, so the host decides
|
|
6
|
-
* (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
|
|
7
|
-
* store; both validate on load because stored JSON is untrusted. A store shared by several
|
|
8
|
-
* writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
|
|
9
|
-
* pull others' changes, and say whether this user may write at all.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
interface AnnotationStore {
|
|
13
|
-
/** The saved layer, or an empty one for a document that has none yet. */
|
|
14
|
-
load(documentId: string): Promise<AnnotationLayer>;
|
|
15
|
-
/**
|
|
16
|
-
* Write a layer. A store with other writers may resolve to what it actually saved — this layer
|
|
17
|
-
* merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
|
|
18
|
-
*/
|
|
19
|
-
save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
|
|
20
|
-
/** Others' changes since the last load or save, or null when there are none. */
|
|
21
|
-
pull?(documentId: string): Promise<AnnotationLayer | null>;
|
|
22
|
-
/** Whether this user may change the layer; false makes it view-only. Known after `load`. */
|
|
23
|
-
canEdit?(documentId: string): boolean;
|
|
24
|
-
}
|
|
25
|
-
/** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
|
|
26
|
-
declare class AnnotationStoreOfflineError extends Error {
|
|
27
|
-
constructor(message?: string);
|
|
28
|
-
}
|
|
29
|
-
declare function createMemoryStore(now?: () => string): AnnotationStore;
|
|
30
|
-
/**
|
|
31
|
-
* Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
|
|
32
|
-
* guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
|
|
33
|
-
*/
|
|
34
|
-
declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Asks how to number and package a set of documents as a production. It only collects choices; the
|
|
38
|
-
* host runs `buildBundle` (see `@arbidocs/react/annotations/freeze`) and saves the result.
|
|
39
|
-
*
|
|
40
|
-
* The documents can be put in order (drag a row, or its up/down buttons from the keyboard): that
|
|
41
|
-
* order is the numbering order.
|
|
42
|
-
*/
|
|
43
|
-
type ProductionCorner = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
44
|
-
interface ProductionChoices {
|
|
45
|
-
layout: 'merged' | 'per-document';
|
|
46
|
-
prefix: string;
|
|
47
|
-
start: number;
|
|
48
|
-
digits: number;
|
|
49
|
-
/** Corner of the Bates label; the QR code, when on, takes the opposite bottom corner. */
|
|
50
|
-
corner: ProductionCorner;
|
|
51
|
-
qr: boolean;
|
|
52
|
-
/** An index page first: every document with its Bates range. */
|
|
53
|
-
indexPage: boolean;
|
|
54
|
-
/** Also save the result as a document in the workspace (it is downloaded either way). */
|
|
55
|
-
saveToWorkspace: boolean;
|
|
56
|
-
/** Document ids in numbering order. */
|
|
57
|
-
order: string[];
|
|
58
|
-
}
|
|
59
|
-
interface ProductionDocument {
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
}
|
|
63
|
-
interface ProductionDialogProps {
|
|
64
|
-
open: boolean;
|
|
65
|
-
onOpenChange: (open: boolean) => void;
|
|
66
|
-
/** The documents, in the order they are numbered until the user reorders them. */
|
|
67
|
-
documents: ProductionDocument[];
|
|
68
|
-
/** Selected documents that cannot be included, with the reason, e.g. "photo.jpg (no PDF)". */
|
|
69
|
-
leftOut?: string[];
|
|
70
|
-
onConfirm: (choices: ProductionChoices) => void;
|
|
71
|
-
busy?: boolean;
|
|
72
|
-
progress?: {
|
|
73
|
-
done: number;
|
|
74
|
-
total: number;
|
|
75
|
-
} | null;
|
|
76
|
-
error?: string | null;
|
|
77
|
-
}
|
|
78
|
-
/** The QR code sits in the bottom corner the label is not in (the label may be top or bottom). */
|
|
79
|
-
declare function qrCornerFor(corner: ProductionCorner): ProductionCorner;
|
|
80
|
-
/** `items` with the entry at `from` moved to `to`. */
|
|
81
|
-
declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
82
|
-
declare function ProductionDialog({ open, onOpenChange, documents, leftOut, onConfirm, busy, progress, error, }: ProductionDialogProps): React.JSX.Element;
|
|
83
|
-
|
|
84
|
-
export { type AnnotationStore as A, type ProductionChoices as P, AnnotationStoreOfflineError as a, type ProductionCorner as b, ProductionDialog as c, type ProductionDialogProps as d, type ProductionDocument as e, createLocalStorageStore as f, createMemoryStore as g, moveItem as m, qrCornerFor as q };
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { b as AnnotationLayer } from './model.d-CNtRWKVK.cjs';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Where a layer is kept. The layer is data about a document, not part of it, so the host decides
|
|
6
|
-
* (backend API, IndexedDB, a file). This package ships an in-memory store and a localStorage
|
|
7
|
-
* store; both validate on load because stored JSON is untrusted. A store shared by several
|
|
8
|
-
* writers (ARBI's server-side markup) also implements the optional members: it may merge on save,
|
|
9
|
-
* pull others' changes, and say whether this user may write at all.
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
interface AnnotationStore {
|
|
13
|
-
/** The saved layer, or an empty one for a document that has none yet. */
|
|
14
|
-
load(documentId: string): Promise<AnnotationLayer>;
|
|
15
|
-
/**
|
|
16
|
-
* Write a layer. A store with other writers may resolve to what it actually saved — this layer
|
|
17
|
-
* merged with theirs (see `mergeLayers`); the caller then rebases its newer edits onto it.
|
|
18
|
-
*/
|
|
19
|
-
save(layer: AnnotationLayer): Promise<AnnotationLayer | void>;
|
|
20
|
-
/** Others' changes since the last load or save, or null when there are none. */
|
|
21
|
-
pull?(documentId: string): Promise<AnnotationLayer | null>;
|
|
22
|
-
/** Whether this user may change the layer; false makes it view-only. Known after `load`. */
|
|
23
|
-
canEdit?(documentId: string): boolean;
|
|
24
|
-
}
|
|
25
|
-
/** Thrown by a store whose backend cannot be reached: the layer is kept and saved when back. */
|
|
26
|
-
declare class AnnotationStoreOfflineError extends Error {
|
|
27
|
-
constructor(message?: string);
|
|
28
|
-
}
|
|
29
|
-
declare function createMemoryStore(now?: () => string): AnnotationStore;
|
|
30
|
-
/**
|
|
31
|
-
* Per-browser store. Storage can be absent, full or blocked (private windows), so every access is
|
|
32
|
-
* guarded. A saved layer that no longer validates is ignored rather than crashing the viewer.
|
|
33
|
-
*/
|
|
34
|
-
declare function createLocalStorageStore(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined, now?: () => string): AnnotationStore;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Asks how to number and package a set of documents as a production. It only collects choices; the
|
|
38
|
-
* host runs `buildBundle` (see `@arbidocs/react/annotations/freeze`) and saves the result.
|
|
39
|
-
*
|
|
40
|
-
* The documents can be put in order (drag a row, or its up/down buttons from the keyboard): that
|
|
41
|
-
* order is the numbering order.
|
|
42
|
-
*/
|
|
43
|
-
type ProductionCorner = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
44
|
-
interface ProductionChoices {
|
|
45
|
-
layout: 'merged' | 'per-document';
|
|
46
|
-
prefix: string;
|
|
47
|
-
start: number;
|
|
48
|
-
digits: number;
|
|
49
|
-
/** Corner of the Bates label; the QR code, when on, takes the opposite bottom corner. */
|
|
50
|
-
corner: ProductionCorner;
|
|
51
|
-
qr: boolean;
|
|
52
|
-
/** An index page first: every document with its Bates range. */
|
|
53
|
-
indexPage: boolean;
|
|
54
|
-
/** Also save the result as a document in the workspace (it is downloaded either way). */
|
|
55
|
-
saveToWorkspace: boolean;
|
|
56
|
-
/** Document ids in numbering order. */
|
|
57
|
-
order: string[];
|
|
58
|
-
}
|
|
59
|
-
interface ProductionDocument {
|
|
60
|
-
id: string;
|
|
61
|
-
name: string;
|
|
62
|
-
}
|
|
63
|
-
interface ProductionDialogProps {
|
|
64
|
-
open: boolean;
|
|
65
|
-
onOpenChange: (open: boolean) => void;
|
|
66
|
-
/** The documents, in the order they are numbered until the user reorders them. */
|
|
67
|
-
documents: ProductionDocument[];
|
|
68
|
-
/** Selected documents that cannot be included, with the reason, e.g. "photo.jpg (no PDF)". */
|
|
69
|
-
leftOut?: string[];
|
|
70
|
-
onConfirm: (choices: ProductionChoices) => void;
|
|
71
|
-
busy?: boolean;
|
|
72
|
-
progress?: {
|
|
73
|
-
done: number;
|
|
74
|
-
total: number;
|
|
75
|
-
} | null;
|
|
76
|
-
error?: string | null;
|
|
77
|
-
}
|
|
78
|
-
/** The QR code sits in the bottom corner the label is not in (the label may be top or bottom). */
|
|
79
|
-
declare function qrCornerFor(corner: ProductionCorner): ProductionCorner;
|
|
80
|
-
/** `items` with the entry at `from` moved to `to`. */
|
|
81
|
-
declare function moveItem<T>(items: readonly T[], from: number, to: number): T[];
|
|
82
|
-
declare function ProductionDialog({ open, onOpenChange, documents, leftOut, onConfirm, busy, progress, error, }: ProductionDialogProps): React.JSX.Element;
|
|
83
|
-
|
|
84
|
-
export { type AnnotationStore as A, type ProductionChoices as P, AnnotationStoreOfflineError as a, type ProductionCorner as b, ProductionDialog as c, type ProductionDialogProps as d, type ProductionDocument as e, createLocalStorageStore as f, createMemoryStore as g, moveItem as m, qrCornerFor as q };
|
package/dist/bundle-DCWPYNGD.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkB6I2HRRF_cjs = require('./chunk-B6I2HRRF.cjs');
|
|
4
|
-
require('./chunk-2IJP73ZG.cjs');
|
|
5
|
-
require('./chunk-IU2CJNTB.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "buildBundle", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return chunkB6I2HRRF_cjs.buildBundle; }
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=bundle-DCWPYNGD.cjs.map
|
|
14
|
-
//# sourceMappingURL=bundle-DCWPYNGD.cjs.map
|