@arbidocs/react 0.4.63 → 0.4.65
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/annotations/index.cjs +263 -82
- package/dist/annotations/index.cjs.map +1 -1
- package/dist/annotations/index.d.cts +72 -5
- package/dist/annotations/index.d.ts +72 -5
- package/dist/annotations/index.js +238 -63
- package/dist/annotations/index.js.map +1 -1
- package/dist/artifacts/index.cjs +79 -50
- package/dist/artifacts/index.cjs.map +1 -1
- package/dist/artifacts/index.d.cts +52 -31
- package/dist/artifacts/index.d.ts +52 -31
- package/dist/artifacts/index.js +63 -37
- package/dist/artifacts/index.js.map +1 -1
- package/dist/{chunk-QS3Q5542.js → chunk-2VW47ADK.js} +10 -3
- package/dist/chunk-2VW47ADK.js.map +1 -0
- package/dist/chunk-4PRCRCQ5.cjs +41 -0
- package/dist/chunk-4PRCRCQ5.cjs.map +1 -0
- package/dist/{chunk-X3F5ABY2.cjs → chunk-6YKVIERB.cjs} +43 -21
- package/dist/chunk-6YKVIERB.cjs.map +1 -0
- package/dist/{chunk-Z4M7JB4L.cjs → chunk-D3CSLSGD.cjs} +9 -9
- package/dist/{chunk-Z4M7JB4L.cjs.map → chunk-D3CSLSGD.cjs.map} +1 -1
- package/dist/{chunk-N5SVBDLC.js → chunk-DIZC2XVB.js} +11 -4
- package/dist/chunk-DIZC2XVB.js.map +1 -0
- package/dist/{chunk-CVN7MAGQ.js → chunk-F5WHYJRB.js} +29 -7
- package/dist/chunk-F5WHYJRB.js.map +1 -0
- package/dist/{chunk-XDCRWZF2.cjs → chunk-GXQO3IJC.cjs} +10 -3
- package/dist/chunk-GXQO3IJC.cjs.map +1 -0
- package/dist/{chunk-OBNTJEEO.cjs → chunk-LCMCZS5Y.cjs} +11 -4
- package/dist/chunk-LCMCZS5Y.cjs.map +1 -0
- package/dist/{chunk-UDOPD3GK.js → chunk-NDABXDML.js} +3 -3
- package/dist/{chunk-UDOPD3GK.js.map → chunk-NDABXDML.js.map} +1 -1
- package/dist/chunk-QICALPFQ.js +18 -0
- package/dist/chunk-QICALPFQ.js.map +1 -0
- package/dist/{chunk-DSG3E7QX.js → chunk-SX7FCSON.js} +2 -2
- package/dist/chunk-SX7FCSON.js.map +1 -0
- package/dist/{chunk-UUE2R2E2.cjs → chunk-VH5ITITV.cjs} +2 -2
- package/dist/chunk-VH5ITITV.cjs.map +1 -0
- package/dist/{index-CUxIcC5j.d.ts → index-BWv_FKi3.d.cts} +18 -3
- package/dist/{index-CUxIcC5j.d.cts → index-BWv_FKi3.d.ts} +18 -3
- package/dist/index.cjs +356 -347
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -8
- package/dist/index.d.ts +46 -8
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +8 -7
- package/dist/shell/index.js +3 -2
- package/dist/ui/index.cjs +152 -143
- package/dist/ui/index.d.cts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +4 -3
- package/package.json +3 -3
- package/dist/chunk-CVN7MAGQ.js.map +0 -1
- package/dist/chunk-DSG3E7QX.js.map +0 -1
- package/dist/chunk-N5SVBDLC.js.map +0 -1
- package/dist/chunk-OBNTJEEO.cjs.map +0 -1
- package/dist/chunk-QS3Q5542.js.map +0 -1
- package/dist/chunk-UUE2R2E2.cjs.map +0 -1
- package/dist/chunk-X3F5ABY2.cjs.map +0 -1
- package/dist/chunk-XDCRWZF2.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -9,8 +9,8 @@ export { WebSocketServerMessage, WsBatchCompleteMessage, WsConversationMessagePo
|
|
|
9
9
|
import * as zustand from 'zustand';
|
|
10
10
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
11
11
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
12
|
-
import { ab as EntityIconComponent } from './index-
|
|
13
|
-
export { A as AgentBadge, a as AiMarkdown, b as Avatar, c as AvatarFallback, d as AvatarImage, B as BASE_COLORS, e as Badge, f as BadgeProps, g as Button, h as ButtonProps, C as Card, i as CardContent, j as CardDescription, k as CardFooter, l as CardHeader, m as CardProps, n as CardTitle, o as Checkbox, p as Collapsible, q as CollapsibleContent, r as CollapsibleTrigger, s as Command, t as CommandDialog, u as CommandEmpty, v as CommandGroup, w as CommandInput, x as CommandItem, y as CommandList, z as CommandSeparator, D as CommandShortcut, E as Dialog, F as DialogClose, G as DialogContent, H as DialogDescription, I as DialogFooter, J as DialogHeader, K as DialogOverlay, L as DialogPortal, M as DialogPresentation, N as DialogTitle, O as DialogTrigger, P as DictateContextValue, Q as DictateProvider, R as DocumentCard, S as DocumentCardProps, T as DocumentEntity, U as DocumentEntityProps, V as DocumentLike, W as DropdownMenu, X as DropdownMenuCheckboxItem, Y as DropdownMenuContent, Z as DropdownMenuGroup, _ as DropdownMenuItem, $ as DropdownMenuLabel, a0 as DropdownMenuPortal, a1 as DropdownMenuRadioGroup, a2 as DropdownMenuRadioItem, a3 as DropdownMenuSeparator, a4 as DropdownMenuShortcut, a5 as DropdownMenuSub, a6 as DropdownMenuSubContent, a7 as DropdownMenuSubTrigger, a8 as DropdownMenuTrigger, a9 as ENTITY_MAPPINGS, aa as EntityIcon, ac as EntityPill, ad as EntityRegistryOverride, ae as EntityType, af as HoverCard, ag as HoverCardContent, ah as HoverCardTrigger, ai as IconToggle, aj as IconToggleProps, ak as Input, al as InputProps, am as Label, an as MarkMenu, ao as MarkMenuItem, ap as MarkMenuProps, aq as MarkdownRenderer, ar as MarkdownRendererProps, as as MarkdownStreamingContext, at as NEUTRAL_GRAY, au as PLACEHOLDER_COLOR, av as PassageCard, aw as PassageCardProps, ax as Popover, ay as PopoverAnchor, az as PopoverContent, aA as PopoverTrigger, aB as
|
|
12
|
+
import { ab as EntityIconComponent } from './index-BWv_FKi3.cjs';
|
|
13
|
+
export { A as AgentBadge, a as AiMarkdown, b as Avatar, c as AvatarFallback, d as AvatarImage, B as BASE_COLORS, e as Badge, f as BadgeProps, g as Button, h as ButtonProps, C as Card, i as CardContent, j as CardDescription, k as CardFooter, l as CardHeader, m as CardProps, n as CardTitle, o as Checkbox, p as Collapsible, q as CollapsibleContent, r as CollapsibleTrigger, s as Command, t as CommandDialog, u as CommandEmpty, v as CommandGroup, w as CommandInput, x as CommandItem, y as CommandList, z as CommandSeparator, D as CommandShortcut, E as Dialog, F as DialogClose, G as DialogContent, H as DialogDescription, I as DialogFooter, J as DialogHeader, K as DialogOverlay, L as DialogPortal, M as DialogPresentation, N as DialogTitle, O as DialogTrigger, P as DictateContextValue, Q as DictateProvider, R as DocumentCard, S as DocumentCardProps, T as DocumentEntity, U as DocumentEntityProps, V as DocumentLike, W as DropdownMenu, X as DropdownMenuCheckboxItem, Y as DropdownMenuContent, Z as DropdownMenuGroup, _ as DropdownMenuItem, $ as DropdownMenuLabel, a0 as DropdownMenuPortal, a1 as DropdownMenuRadioGroup, a2 as DropdownMenuRadioItem, a3 as DropdownMenuSeparator, a4 as DropdownMenuShortcut, a5 as DropdownMenuSub, a6 as DropdownMenuSubContent, a7 as DropdownMenuSubTrigger, a8 as DropdownMenuTrigger, a9 as ENTITY_MAPPINGS, aa as EntityIcon, ac as EntityPill, ad as EntityRegistryOverride, ae as EntityType, af as HoverCard, ag as HoverCardContent, ah as HoverCardTrigger, ai as IconToggle, aj as IconToggleProps, ak as Input, al as InputProps, am as Label, an as MarkMenu, ao as MarkMenuItem, ap as MarkMenuProps, aq as MarkdownRenderer, ar as MarkdownRendererProps, as as MarkdownStreamingContext, at as NEUTRAL_GRAY, au as PLACEHOLDER_COLOR, av as PassageCard, aw as PassageCardProps, ax as Popover, ay as PopoverAnchor, az as PopoverContent, aA as PopoverTrigger, aB as PortalContainerProvider, aC as PresenceDisplayStatus, aD as PresenceLabel, aE as Progress, aF as ProjectEntity, aG as ProjectEntityProps, aH as ProjectRelation, aI as RadioGroup, aJ as RadioGroupItem, aK as Rag, aL as RagDot, aM as RelevanceDot, aN as ScrollArea, aO as ScrollBar, aP as Select, aQ as SelectContent, aR as SelectGroup, aS as SelectItem, aT as SelectLabel, aU as SelectScrollDownButton, aV as SelectScrollUpButton, aW as SelectSeparator, aX as SelectTrigger, aY as SelectValue, aZ as Separator, a_ as Slider, a$ as StatusBadgeComponent, b0 as StatusBadgeProps, b1 as StatusPill, b2 as StatusPillProps, b3 as StatusVariant, b4 as Switch, b5 as TAG_TYPE_ICONS, b6 as TAG_TYPE_LABELS, b7 as Table, b8 as TableBody, b9 as TableCaption, ba as TableCell, bb as TableFooter, bc as TableHead, bd as TableHeader, be as TableRow, bf as Tabs, bg as TabsContent, bh as TabsList, bi as TabsTrigger, bj as TagEntity, bk as TagEntityProps, bl as TagLike, bm as Textarea, bn as TextareaProps, bo as ThreadVisibilityIcon, bp as Toggle, bq as ToggleGroup, br as ToggleGroupItem, bs as Tooltip, bt as TooltipContent, bu as TooltipProvider, bv as TooltipTrigger, bw as UserEntity, bx as UserEntityProps, by as UserMenu, bz as UserMenuItem, bA as UserMenuProps, bB as UserMenuStatus, bC as VISIBILITY_ICONS, bD as VisibilityIcon, bE as VisibilityToggle, bF as VisibilityToggleProps, bG as badgeVariants, bH as buttonVariants, bI as cardVariants, bJ as closeOpenEmphasis, bK as cn, bL as configureEntityRegistry, bM as configureRagLabels, bN as configureStatusRegistry, bO as getDocIcon, bP as getEntityColor, bQ as getEntityColorStyles, bR as getEntityIcon, bS as getEntityLabel, bT as getStatusVariant, bU as getTagTypeIcon, bV as getTagTypeLabel, bW as getWorkspaceColor, bX as markdownBaseComponents, bY as normalizeCitationMarkup, bZ as splitMarkdownBlocks, b_ as toggleVariants, b$ as trimOpenCitation, c0 as usePortalContainer } from './index-BWv_FKi3.cjs';
|
|
14
14
|
import { LucideIcon } from 'lucide-react';
|
|
15
15
|
import { Components } from 'react-markdown';
|
|
16
16
|
export { D as DraftCleanReport, a as DraftCleanStage, c as cleanDraftMarkdown, b as cleanDraftWithReport, p as promoteBoldTitle, r as repairParsedStructure, d as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, e as unwrapCitationLinks } from './stored-markdown-Bp18vrbr.cjs';
|
|
@@ -284,6 +284,7 @@ declare function useArbiConnected(): boolean;
|
|
|
284
284
|
declare function useArbiWsTasks(): Record<string, {
|
|
285
285
|
type: "task_update";
|
|
286
286
|
doc_ext_id: string;
|
|
287
|
+
version: number;
|
|
287
288
|
workspace_ext_id: string;
|
|
288
289
|
file_name: string;
|
|
289
290
|
status: "uploading" | "queued" | "parsing" | "encrypting" | "indexing" | "analysing" | "completed" | "failed" | "skipped" | "empty" | "low-content";
|
|
@@ -295,6 +296,7 @@ declare function useArbiWsTasks(): Record<string, {
|
|
|
295
296
|
declare function useArbiWsTask(docId: string): {
|
|
296
297
|
type: "task_update";
|
|
297
298
|
doc_ext_id: string;
|
|
299
|
+
version: number;
|
|
298
300
|
workspace_ext_id: string;
|
|
299
301
|
file_name: string;
|
|
300
302
|
status: "uploading" | "queued" | "parsing" | "encrypting" | "indexing" | "analysing" | "completed" | "failed" | "skipped" | "empty" | "low-content";
|
|
@@ -633,13 +635,29 @@ declare function useDocuments(workspaceId: string | undefined, options?: {
|
|
|
633
635
|
re_ocred?: boolean | null | undefined;
|
|
634
636
|
config_ext_id?: string | null | undefined;
|
|
635
637
|
parent_ext_id?: string | null | undefined;
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
638
|
+
current_version: number;
|
|
639
|
+
versions: {
|
|
640
|
+
n: number;
|
|
641
|
+
created_at?: string | null | undefined;
|
|
642
|
+
created_by_ext_id?: string | null | undefined;
|
|
643
|
+
reason: "upload" | "edit" | "signed" | "sync";
|
|
644
|
+
file_name?: string | null | undefined;
|
|
645
|
+
file_type?: string | null | undefined;
|
|
646
|
+
file_size?: number | null | undefined;
|
|
647
|
+
content_hash?: string | null | undefined;
|
|
648
|
+
status?: string | null | undefined;
|
|
649
|
+
n_pages?: number | null | undefined;
|
|
650
|
+
n_chunks?: number | null | undefined;
|
|
651
|
+
made_from?: number | null | undefined;
|
|
652
|
+
is_current: boolean;
|
|
653
|
+
markup_revision: number;
|
|
654
|
+
markup_count: number;
|
|
655
|
+
}[];
|
|
639
656
|
thread_id?: string | null | undefined;
|
|
640
657
|
derived_from: {
|
|
641
658
|
doc_ext_id: string;
|
|
642
659
|
role: _arbidocs_client.components["schemas"]["DocRelationRole"];
|
|
660
|
+
version?: number | null | undefined;
|
|
643
661
|
}[];
|
|
644
662
|
source_message_ext_id?: string | null | undefined;
|
|
645
663
|
conversation_ext_id?: string | null | undefined;
|
|
@@ -654,6 +672,7 @@ declare function useDocuments(workspaceId: string | undefined, options?: {
|
|
|
654
672
|
note?: string | null | undefined;
|
|
655
673
|
citations?: {
|
|
656
674
|
doc_ext_id: string;
|
|
675
|
+
version?: number | null | undefined;
|
|
657
676
|
chunks?: {
|
|
658
677
|
chunk_id: string;
|
|
659
678
|
page?: number | null | undefined;
|
|
@@ -771,6 +790,7 @@ declare function useConversationThreads(workspaceId: string | undefined, convers
|
|
|
771
790
|
metadata: {
|
|
772
791
|
workspace_ext_id?: string | null | undefined;
|
|
773
792
|
doc_ext_id?: string | null | undefined;
|
|
793
|
+
doc_version?: number | null | undefined;
|
|
774
794
|
doc_title?: string | null | undefined;
|
|
775
795
|
chunk_id?: string | null | undefined;
|
|
776
796
|
chunk_ext_id: string;
|
|
@@ -802,6 +822,7 @@ declare function useConversationThreads(workspaceId: string | undefined, convers
|
|
|
802
822
|
metadata: {
|
|
803
823
|
workspace_ext_id?: string | null | undefined;
|
|
804
824
|
doc_ext_id?: string | null | undefined;
|
|
825
|
+
doc_version?: number | null | undefined;
|
|
805
826
|
doc_title?: string | null | undefined;
|
|
806
827
|
chunk_id?: string | null | undefined;
|
|
807
828
|
chunk_ext_id: string;
|
|
@@ -3233,13 +3254,29 @@ declare function useWorkspaceDocs(workspaceId?: string): {
|
|
|
3233
3254
|
re_ocred?: boolean | null | undefined;
|
|
3234
3255
|
config_ext_id?: string | null | undefined;
|
|
3235
3256
|
parent_ext_id?: string | null | undefined;
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3257
|
+
current_version: number;
|
|
3258
|
+
versions: {
|
|
3259
|
+
n: number;
|
|
3260
|
+
created_at?: string | null | undefined;
|
|
3261
|
+
created_by_ext_id?: string | null | undefined;
|
|
3262
|
+
reason: "upload" | "edit" | "signed" | "sync";
|
|
3263
|
+
file_name?: string | null | undefined;
|
|
3264
|
+
file_type?: string | null | undefined;
|
|
3265
|
+
file_size?: number | null | undefined;
|
|
3266
|
+
content_hash?: string | null | undefined;
|
|
3267
|
+
status?: string | null | undefined;
|
|
3268
|
+
n_pages?: number | null | undefined;
|
|
3269
|
+
n_chunks?: number | null | undefined;
|
|
3270
|
+
made_from?: number | null | undefined;
|
|
3271
|
+
is_current: boolean;
|
|
3272
|
+
markup_revision: number;
|
|
3273
|
+
markup_count: number;
|
|
3274
|
+
}[];
|
|
3239
3275
|
thread_id?: string | null | undefined;
|
|
3240
3276
|
derived_from: {
|
|
3241
3277
|
doc_ext_id: string;
|
|
3242
3278
|
role: _arbidocs_client.components["schemas"]["DocRelationRole"];
|
|
3279
|
+
version?: number | null | undefined;
|
|
3243
3280
|
}[];
|
|
3244
3281
|
source_message_ext_id?: string | null | undefined;
|
|
3245
3282
|
conversation_ext_id?: string | null | undefined;
|
|
@@ -3254,6 +3291,7 @@ declare function useWorkspaceDocs(workspaceId?: string): {
|
|
|
3254
3291
|
note?: string | null | undefined;
|
|
3255
3292
|
citations?: {
|
|
3256
3293
|
doc_ext_id: string;
|
|
3294
|
+
version?: number | null | undefined;
|
|
3257
3295
|
chunks?: {
|
|
3258
3296
|
chunk_id: string;
|
|
3259
3297
|
page?: number | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ export { WebSocketServerMessage, WsBatchCompleteMessage, WsConversationMessagePo
|
|
|
9
9
|
import * as zustand from 'zustand';
|
|
10
10
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
11
11
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
12
|
-
import { ab as EntityIconComponent } from './index-
|
|
13
|
-
export { A as AgentBadge, a as AiMarkdown, b as Avatar, c as AvatarFallback, d as AvatarImage, B as BASE_COLORS, e as Badge, f as BadgeProps, g as Button, h as ButtonProps, C as Card, i as CardContent, j as CardDescription, k as CardFooter, l as CardHeader, m as CardProps, n as CardTitle, o as Checkbox, p as Collapsible, q as CollapsibleContent, r as CollapsibleTrigger, s as Command, t as CommandDialog, u as CommandEmpty, v as CommandGroup, w as CommandInput, x as CommandItem, y as CommandList, z as CommandSeparator, D as CommandShortcut, E as Dialog, F as DialogClose, G as DialogContent, H as DialogDescription, I as DialogFooter, J as DialogHeader, K as DialogOverlay, L as DialogPortal, M as DialogPresentation, N as DialogTitle, O as DialogTrigger, P as DictateContextValue, Q as DictateProvider, R as DocumentCard, S as DocumentCardProps, T as DocumentEntity, U as DocumentEntityProps, V as DocumentLike, W as DropdownMenu, X as DropdownMenuCheckboxItem, Y as DropdownMenuContent, Z as DropdownMenuGroup, _ as DropdownMenuItem, $ as DropdownMenuLabel, a0 as DropdownMenuPortal, a1 as DropdownMenuRadioGroup, a2 as DropdownMenuRadioItem, a3 as DropdownMenuSeparator, a4 as DropdownMenuShortcut, a5 as DropdownMenuSub, a6 as DropdownMenuSubContent, a7 as DropdownMenuSubTrigger, a8 as DropdownMenuTrigger, a9 as ENTITY_MAPPINGS, aa as EntityIcon, ac as EntityPill, ad as EntityRegistryOverride, ae as EntityType, af as HoverCard, ag as HoverCardContent, ah as HoverCardTrigger, ai as IconToggle, aj as IconToggleProps, ak as Input, al as InputProps, am as Label, an as MarkMenu, ao as MarkMenuItem, ap as MarkMenuProps, aq as MarkdownRenderer, ar as MarkdownRendererProps, as as MarkdownStreamingContext, at as NEUTRAL_GRAY, au as PLACEHOLDER_COLOR, av as PassageCard, aw as PassageCardProps, ax as Popover, ay as PopoverAnchor, az as PopoverContent, aA as PopoverTrigger, aB as
|
|
12
|
+
import { ab as EntityIconComponent } from './index-BWv_FKi3.js';
|
|
13
|
+
export { A as AgentBadge, a as AiMarkdown, b as Avatar, c as AvatarFallback, d as AvatarImage, B as BASE_COLORS, e as Badge, f as BadgeProps, g as Button, h as ButtonProps, C as Card, i as CardContent, j as CardDescription, k as CardFooter, l as CardHeader, m as CardProps, n as CardTitle, o as Checkbox, p as Collapsible, q as CollapsibleContent, r as CollapsibleTrigger, s as Command, t as CommandDialog, u as CommandEmpty, v as CommandGroup, w as CommandInput, x as CommandItem, y as CommandList, z as CommandSeparator, D as CommandShortcut, E as Dialog, F as DialogClose, G as DialogContent, H as DialogDescription, I as DialogFooter, J as DialogHeader, K as DialogOverlay, L as DialogPortal, M as DialogPresentation, N as DialogTitle, O as DialogTrigger, P as DictateContextValue, Q as DictateProvider, R as DocumentCard, S as DocumentCardProps, T as DocumentEntity, U as DocumentEntityProps, V as DocumentLike, W as DropdownMenu, X as DropdownMenuCheckboxItem, Y as DropdownMenuContent, Z as DropdownMenuGroup, _ as DropdownMenuItem, $ as DropdownMenuLabel, a0 as DropdownMenuPortal, a1 as DropdownMenuRadioGroup, a2 as DropdownMenuRadioItem, a3 as DropdownMenuSeparator, a4 as DropdownMenuShortcut, a5 as DropdownMenuSub, a6 as DropdownMenuSubContent, a7 as DropdownMenuSubTrigger, a8 as DropdownMenuTrigger, a9 as ENTITY_MAPPINGS, aa as EntityIcon, ac as EntityPill, ad as EntityRegistryOverride, ae as EntityType, af as HoverCard, ag as HoverCardContent, ah as HoverCardTrigger, ai as IconToggle, aj as IconToggleProps, ak as Input, al as InputProps, am as Label, an as MarkMenu, ao as MarkMenuItem, ap as MarkMenuProps, aq as MarkdownRenderer, ar as MarkdownRendererProps, as as MarkdownStreamingContext, at as NEUTRAL_GRAY, au as PLACEHOLDER_COLOR, av as PassageCard, aw as PassageCardProps, ax as Popover, ay as PopoverAnchor, az as PopoverContent, aA as PopoverTrigger, aB as PortalContainerProvider, aC as PresenceDisplayStatus, aD as PresenceLabel, aE as Progress, aF as ProjectEntity, aG as ProjectEntityProps, aH as ProjectRelation, aI as RadioGroup, aJ as RadioGroupItem, aK as Rag, aL as RagDot, aM as RelevanceDot, aN as ScrollArea, aO as ScrollBar, aP as Select, aQ as SelectContent, aR as SelectGroup, aS as SelectItem, aT as SelectLabel, aU as SelectScrollDownButton, aV as SelectScrollUpButton, aW as SelectSeparator, aX as SelectTrigger, aY as SelectValue, aZ as Separator, a_ as Slider, a$ as StatusBadgeComponent, b0 as StatusBadgeProps, b1 as StatusPill, b2 as StatusPillProps, b3 as StatusVariant, b4 as Switch, b5 as TAG_TYPE_ICONS, b6 as TAG_TYPE_LABELS, b7 as Table, b8 as TableBody, b9 as TableCaption, ba as TableCell, bb as TableFooter, bc as TableHead, bd as TableHeader, be as TableRow, bf as Tabs, bg as TabsContent, bh as TabsList, bi as TabsTrigger, bj as TagEntity, bk as TagEntityProps, bl as TagLike, bm as Textarea, bn as TextareaProps, bo as ThreadVisibilityIcon, bp as Toggle, bq as ToggleGroup, br as ToggleGroupItem, bs as Tooltip, bt as TooltipContent, bu as TooltipProvider, bv as TooltipTrigger, bw as UserEntity, bx as UserEntityProps, by as UserMenu, bz as UserMenuItem, bA as UserMenuProps, bB as UserMenuStatus, bC as VISIBILITY_ICONS, bD as VisibilityIcon, bE as VisibilityToggle, bF as VisibilityToggleProps, bG as badgeVariants, bH as buttonVariants, bI as cardVariants, bJ as closeOpenEmphasis, bK as cn, bL as configureEntityRegistry, bM as configureRagLabels, bN as configureStatusRegistry, bO as getDocIcon, bP as getEntityColor, bQ as getEntityColorStyles, bR as getEntityIcon, bS as getEntityLabel, bT as getStatusVariant, bU as getTagTypeIcon, bV as getTagTypeLabel, bW as getWorkspaceColor, bX as markdownBaseComponents, bY as normalizeCitationMarkup, bZ as splitMarkdownBlocks, b_ as toggleVariants, b$ as trimOpenCitation, c0 as usePortalContainer } from './index-BWv_FKi3.js';
|
|
14
14
|
import { LucideIcon } from 'lucide-react';
|
|
15
15
|
import { Components } from 'react-markdown';
|
|
16
16
|
export { D as DraftCleanReport, a as DraftCleanStage, c as cleanDraftMarkdown, b as cleanDraftWithReport, p as promoteBoldTitle, r as repairParsedStructure, d as repairParsedTitle, s as stripAgentPreamble, u as unescapeMarkdown, e as unwrapCitationLinks } from './stored-markdown-Bp18vrbr.js';
|
|
@@ -284,6 +284,7 @@ declare function useArbiConnected(): boolean;
|
|
|
284
284
|
declare function useArbiWsTasks(): Record<string, {
|
|
285
285
|
type: "task_update";
|
|
286
286
|
doc_ext_id: string;
|
|
287
|
+
version: number;
|
|
287
288
|
workspace_ext_id: string;
|
|
288
289
|
file_name: string;
|
|
289
290
|
status: "uploading" | "queued" | "parsing" | "encrypting" | "indexing" | "analysing" | "completed" | "failed" | "skipped" | "empty" | "low-content";
|
|
@@ -295,6 +296,7 @@ declare function useArbiWsTasks(): Record<string, {
|
|
|
295
296
|
declare function useArbiWsTask(docId: string): {
|
|
296
297
|
type: "task_update";
|
|
297
298
|
doc_ext_id: string;
|
|
299
|
+
version: number;
|
|
298
300
|
workspace_ext_id: string;
|
|
299
301
|
file_name: string;
|
|
300
302
|
status: "uploading" | "queued" | "parsing" | "encrypting" | "indexing" | "analysing" | "completed" | "failed" | "skipped" | "empty" | "low-content";
|
|
@@ -633,13 +635,29 @@ declare function useDocuments(workspaceId: string | undefined, options?: {
|
|
|
633
635
|
re_ocred?: boolean | null | undefined;
|
|
634
636
|
config_ext_id?: string | null | undefined;
|
|
635
637
|
parent_ext_id?: string | null | undefined;
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
638
|
+
current_version: number;
|
|
639
|
+
versions: {
|
|
640
|
+
n: number;
|
|
641
|
+
created_at?: string | null | undefined;
|
|
642
|
+
created_by_ext_id?: string | null | undefined;
|
|
643
|
+
reason: "upload" | "edit" | "signed" | "sync";
|
|
644
|
+
file_name?: string | null | undefined;
|
|
645
|
+
file_type?: string | null | undefined;
|
|
646
|
+
file_size?: number | null | undefined;
|
|
647
|
+
content_hash?: string | null | undefined;
|
|
648
|
+
status?: string | null | undefined;
|
|
649
|
+
n_pages?: number | null | undefined;
|
|
650
|
+
n_chunks?: number | null | undefined;
|
|
651
|
+
made_from?: number | null | undefined;
|
|
652
|
+
is_current: boolean;
|
|
653
|
+
markup_revision: number;
|
|
654
|
+
markup_count: number;
|
|
655
|
+
}[];
|
|
639
656
|
thread_id?: string | null | undefined;
|
|
640
657
|
derived_from: {
|
|
641
658
|
doc_ext_id: string;
|
|
642
659
|
role: _arbidocs_client.components["schemas"]["DocRelationRole"];
|
|
660
|
+
version?: number | null | undefined;
|
|
643
661
|
}[];
|
|
644
662
|
source_message_ext_id?: string | null | undefined;
|
|
645
663
|
conversation_ext_id?: string | null | undefined;
|
|
@@ -654,6 +672,7 @@ declare function useDocuments(workspaceId: string | undefined, options?: {
|
|
|
654
672
|
note?: string | null | undefined;
|
|
655
673
|
citations?: {
|
|
656
674
|
doc_ext_id: string;
|
|
675
|
+
version?: number | null | undefined;
|
|
657
676
|
chunks?: {
|
|
658
677
|
chunk_id: string;
|
|
659
678
|
page?: number | null | undefined;
|
|
@@ -771,6 +790,7 @@ declare function useConversationThreads(workspaceId: string | undefined, convers
|
|
|
771
790
|
metadata: {
|
|
772
791
|
workspace_ext_id?: string | null | undefined;
|
|
773
792
|
doc_ext_id?: string | null | undefined;
|
|
793
|
+
doc_version?: number | null | undefined;
|
|
774
794
|
doc_title?: string | null | undefined;
|
|
775
795
|
chunk_id?: string | null | undefined;
|
|
776
796
|
chunk_ext_id: string;
|
|
@@ -802,6 +822,7 @@ declare function useConversationThreads(workspaceId: string | undefined, convers
|
|
|
802
822
|
metadata: {
|
|
803
823
|
workspace_ext_id?: string | null | undefined;
|
|
804
824
|
doc_ext_id?: string | null | undefined;
|
|
825
|
+
doc_version?: number | null | undefined;
|
|
805
826
|
doc_title?: string | null | undefined;
|
|
806
827
|
chunk_id?: string | null | undefined;
|
|
807
828
|
chunk_ext_id: string;
|
|
@@ -3233,13 +3254,29 @@ declare function useWorkspaceDocs(workspaceId?: string): {
|
|
|
3233
3254
|
re_ocred?: boolean | null | undefined;
|
|
3234
3255
|
config_ext_id?: string | null | undefined;
|
|
3235
3256
|
parent_ext_id?: string | null | undefined;
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3257
|
+
current_version: number;
|
|
3258
|
+
versions: {
|
|
3259
|
+
n: number;
|
|
3260
|
+
created_at?: string | null | undefined;
|
|
3261
|
+
created_by_ext_id?: string | null | undefined;
|
|
3262
|
+
reason: "upload" | "edit" | "signed" | "sync";
|
|
3263
|
+
file_name?: string | null | undefined;
|
|
3264
|
+
file_type?: string | null | undefined;
|
|
3265
|
+
file_size?: number | null | undefined;
|
|
3266
|
+
content_hash?: string | null | undefined;
|
|
3267
|
+
status?: string | null | undefined;
|
|
3268
|
+
n_pages?: number | null | undefined;
|
|
3269
|
+
n_chunks?: number | null | undefined;
|
|
3270
|
+
made_from?: number | null | undefined;
|
|
3271
|
+
is_current: boolean;
|
|
3272
|
+
markup_revision: number;
|
|
3273
|
+
markup_count: number;
|
|
3274
|
+
}[];
|
|
3239
3275
|
thread_id?: string | null | undefined;
|
|
3240
3276
|
derived_from: {
|
|
3241
3277
|
doc_ext_id: string;
|
|
3242
3278
|
role: _arbidocs_client.components["schemas"]["DocRelationRole"];
|
|
3279
|
+
version?: number | null | undefined;
|
|
3243
3280
|
}[];
|
|
3244
3281
|
source_message_ext_id?: string | null | undefined;
|
|
3245
3282
|
conversation_ext_id?: string | null | undefined;
|
|
@@ -3254,6 +3291,7 @@ declare function useWorkspaceDocs(workspaceId?: string): {
|
|
|
3254
3291
|
note?: string | null | undefined;
|
|
3255
3292
|
citations?: {
|
|
3256
3293
|
doc_ext_id: string;
|
|
3294
|
+
version?: number | null | undefined;
|
|
3257
3295
|
chunks?: {
|
|
3258
3296
|
chunk_id: string;
|
|
3259
3297
|
page?: number | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { arbiQueryKeys, useDocuments, useConversations, useAssistantQuery, useConversationThreads, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-
|
|
2
|
-
export { DEFAULT_USD_PER_CREDIT, arbiQueryKeys, cleanDraftMarkdown, cleanDraftWithReport, creditsToUsd, formatCredits, isUsageMetered, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks, useActivity, useAgents, useAssistantQuery, useConfigs, useConversationThreads, useConversations, useDeleteAgents, useDocuments, useFacts, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSessions, useTags, useThumbnails, useUserUsageToday, useWorkspaceUsers, useWorkspaces } from './chunk-
|
|
3
|
-
import { formatRelativeTime } from './chunk-
|
|
4
|
-
export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-
|
|
5
|
-
import { returnFocusToMark, MarkMenu, AiMarkdown, Card, Badge, TagEntity, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Label, Slider, DocumentEntity, DocumentCard, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed, PassageCard } from './chunk-
|
|
6
|
-
export { AgentBadge, AiMarkdown, ArbiBotHeadIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, IconToggle, ImgIcon, InlineMicButton, Input, Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, 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, TxtIcon, UserEntity, UserMenu, VISIBILITY_ICONS, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, badgeVariants, cardVariants, configureEntityRegistry, configureRagLabels, configureStatusRegistry, formatElapsed, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, toggleVariants, useAudioRecorder } from './chunk-
|
|
7
|
-
import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-
|
|
8
|
-
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from './chunk-
|
|
1
|
+
import { arbiQueryKeys, useDocuments, useConversations, useAssistantQuery, useConversationThreads, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-SX7FCSON.js';
|
|
2
|
+
export { DEFAULT_USD_PER_CREDIT, arbiQueryKeys, cleanDraftMarkdown, cleanDraftWithReport, creditsToUsd, formatCredits, isUsageMetered, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks, useActivity, useAgents, useAssistantQuery, useConfigs, useConversationThreads, useConversations, useDeleteAgents, useDocuments, useFacts, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSessions, useTags, useThumbnails, useUserUsageToday, useWorkspaceUsers, useWorkspaces } from './chunk-SX7FCSON.js';
|
|
3
|
+
import { formatRelativeTime } from './chunk-NDABXDML.js';
|
|
4
|
+
export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-NDABXDML.js';
|
|
5
|
+
import { returnFocusToMark, MarkMenu, AiMarkdown, Card, Badge, TagEntity, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Label, Slider, DocumentEntity, DocumentCard, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed, PassageCard } from './chunk-F5WHYJRB.js';
|
|
6
|
+
export { AgentBadge, AiMarkdown, ArbiBotHeadIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, IconToggle, ImgIcon, InlineMicButton, Input, Label, MarkMenu, MicRecordingOverlay, MicWaveformIndicator, NEUTRAL_GRAY, PLACEHOLDER_COLOR, PassageCard, PdfIcon, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PresenceLabel, Progress, ProjectEntity, RadioGroup, RadioGroupItem, RagDot, RelevanceDot, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, 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, TxtIcon, UserEntity, UserMenu, VISIBILITY_ICONS, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, badgeVariants, cardVariants, configureEntityRegistry, configureRagLabels, configureStatusRegistry, formatElapsed, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, toggleVariants, useAudioRecorder } from './chunk-F5WHYJRB.js';
|
|
7
|
+
import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-2VW47ADK.js';
|
|
8
|
+
export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from './chunk-2VW47ADK.js';
|
|
9
9
|
import { normalizeCitationMarkup, MarkdownRenderer } from './chunk-JPGV7NMY.js';
|
|
10
10
|
export { MarkdownRenderer, MarkdownStreamingContext, closeOpenEmphasis, markdownBaseComponents, normalizeCitationMarkup, splitMarkdownBlocks, trimOpenCitation } from './chunk-JPGV7NMY.js';
|
|
11
|
-
import { ScrollArea, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from './chunk-
|
|
12
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ScrollArea, ScrollBar } from './chunk-
|
|
11
|
+
import { ScrollArea, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from './chunk-DIZC2XVB.js';
|
|
12
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ScrollArea, ScrollBar } from './chunk-DIZC2XVB.js';
|
|
13
|
+
export { PortalContainerProvider, usePortalContainer } from './chunk-QICALPFQ.js';
|
|
13
14
|
import { cn } from './chunk-SN5YV6FF.js';
|
|
14
15
|
export { cn } from './chunk-SN5YV6FF.js';
|
|
15
16
|
import { AudioViewer, ImageViewer, VideoViewer } from './chunk-HDCRPPBW.js';
|