@arbidocs/react 0.4.20 → 0.4.22
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/artifacts/index.cjs +15 -15
- package/dist/artifacts/index.js +4 -4
- package/dist/{chunk-SDUISFTV.js → chunk-6IYHNWQK.js} +3 -3
- package/dist/{chunk-SDUISFTV.js.map → chunk-6IYHNWQK.js.map} +1 -1
- package/dist/{chunk-JJSPTHI2.js → chunk-DLT354KA.js} +2 -2
- package/dist/{chunk-JJSPTHI2.js.map → chunk-DLT354KA.js.map} +1 -1
- package/dist/{chunk-SJBGNP7E.cjs → chunk-KXIIARRK.cjs} +2 -2
- package/dist/{chunk-SJBGNP7E.cjs.map → chunk-KXIIARRK.cjs.map} +1 -1
- package/dist/{chunk-VC2I4NST.cjs → chunk-PQDHGEXJ.cjs} +3 -3
- package/dist/{chunk-VC2I4NST.cjs.map → chunk-PQDHGEXJ.cjs.map} +1 -1
- package/dist/index.cjs +442 -440
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/ui/index.cjs +148 -148
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -893,6 +893,7 @@ declare function useParsedDocument(docId: string | undefined, stage?: string, op
|
|
|
893
893
|
/** Send a streaming query to the RAG assistant. Returns a mutation. */
|
|
894
894
|
declare function useAssistantQuery(): _tanstack_react_query.UseMutationResult<SSEStreamResult, Error, {
|
|
895
895
|
question: string;
|
|
896
|
+
activeArtifactExtId?: string;
|
|
896
897
|
docIds: string[];
|
|
897
898
|
previousResponseId?: string | null;
|
|
898
899
|
model?: string;
|
|
@@ -1032,6 +1033,7 @@ declare function useActivity(options?: {
|
|
|
1032
1033
|
is_sso: boolean;
|
|
1033
1034
|
};
|
|
1034
1035
|
workspace_ext_id?: string | null | undefined;
|
|
1036
|
+
dm_context_only: boolean;
|
|
1035
1037
|
content?: string | null | undefined;
|
|
1036
1038
|
conversation_ext_id?: string | null | undefined;
|
|
1037
1039
|
message_ext_id?: string | null | undefined;
|
|
@@ -3233,6 +3235,8 @@ declare function useWorkspaceDocs(workspaceId?: string): {
|
|
|
3233
3235
|
};
|
|
3234
3236
|
type AiTaskStatus = 'idle' | 'running' | 'done' | 'error';
|
|
3235
3237
|
interface AiRunOptions {
|
|
3238
|
+
/** Bind this turn to the open native Word document. */
|
|
3239
|
+
activeArtifactExtId?: string;
|
|
3236
3240
|
/** Continue a prior turn (follow-up questions in the same thread). */
|
|
3237
3241
|
previousResponseId?: string | null;
|
|
3238
3242
|
model?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -893,6 +893,7 @@ declare function useParsedDocument(docId: string | undefined, stage?: string, op
|
|
|
893
893
|
/** Send a streaming query to the RAG assistant. Returns a mutation. */
|
|
894
894
|
declare function useAssistantQuery(): _tanstack_react_query.UseMutationResult<SSEStreamResult, Error, {
|
|
895
895
|
question: string;
|
|
896
|
+
activeArtifactExtId?: string;
|
|
896
897
|
docIds: string[];
|
|
897
898
|
previousResponseId?: string | null;
|
|
898
899
|
model?: string;
|
|
@@ -1032,6 +1033,7 @@ declare function useActivity(options?: {
|
|
|
1032
1033
|
is_sso: boolean;
|
|
1033
1034
|
};
|
|
1034
1035
|
workspace_ext_id?: string | null | undefined;
|
|
1036
|
+
dm_context_only: boolean;
|
|
1035
1037
|
content?: string | null | undefined;
|
|
1036
1038
|
conversation_ext_id?: string | null | undefined;
|
|
1037
1039
|
message_ext_id?: string | null | undefined;
|
|
@@ -3233,6 +3235,8 @@ declare function useWorkspaceDocs(workspaceId?: string): {
|
|
|
3233
3235
|
};
|
|
3234
3236
|
type AiTaskStatus = 'idle' | 'running' | 'done' | 'error';
|
|
3235
3237
|
interface AiRunOptions {
|
|
3238
|
+
/** Bind this turn to the open native Word document. */
|
|
3239
|
+
activeArtifactExtId?: string;
|
|
3236
3240
|
/** Continue a prior turn (follow-up questions in the same thread). */
|
|
3237
3241
|
previousResponseId?: string | null;
|
|
3238
3242
|
model?: string;
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useDocuments, useConversations, useAssistantQuery, useConversationThreads, arbiQueryKeys, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-JJSPTHI2.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, useWorkspaces } from './chunk-JJSPTHI2.js';
|
|
3
1
|
import { formatRelativeTime } from './chunk-FSMIN5VX.js';
|
|
4
2
|
export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-FSMIN5VX.js';
|
|
5
|
-
import { MarkMenu, AiMarkdown, Card, Button, Badge, TagEntity, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Label, Slider, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter, DocumentEntity, DocumentCard, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed, PassageCard } from './chunk-
|
|
6
|
-
export { AgentBadge, AiMarkdown, ArbiBotHeadIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DictateProvider, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, 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, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserEntity, UserMenu, VISIBILITY_ICONS, VidIcon, VisibilityIcon, VisibilityToggle, badgeVariants, buttonVariants, cardVariants, configureEntityRegistry, configureRagLabels, configureStatusRegistry, formatElapsed, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, toggleVariants, useAudioRecorder } from './chunk-
|
|
7
|
-
import { normalizeCitationMarkup, MarkdownRenderer } from './chunk-6YSHODMG.js';
|
|
8
|
-
export { MarkdownRenderer, MarkdownStreamingContext, closeOpenEmphasis, markdownBaseComponents, normalizeCitationMarkup, splitMarkdownBlocks, trimOpenCitation } from './chunk-6YSHODMG.js';
|
|
3
|
+
import { MarkMenu, AiMarkdown, Card, Button, Badge, TagEntity, Input, FILE_TYPE_COLORS, getEntityIcon, UserEntity, getEntityColorStyles, AgentBadge, Textarea, Label, Slider, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter, DocumentEntity, DocumentCard, useAudioRecorder, MicWaveformIndicator, IconToggle, classifyMediaError, formatElapsed, PassageCard } from './chunk-6IYHNWQK.js';
|
|
4
|
+
export { AgentBadge, AiMarkdown, ArbiBotHeadIcon, AudIcon, Avatar, AvatarFallback, AvatarImage, BASE_COLORS, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DictateProvider, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, 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, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserEntity, UserMenu, VISIBILITY_ICONS, VidIcon, VisibilityIcon, VisibilityToggle, badgeVariants, buttonVariants, cardVariants, configureEntityRegistry, configureRagLabels, configureStatusRegistry, formatElapsed, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, toggleVariants, useAudioRecorder } from './chunk-6IYHNWQK.js';
|
|
9
5
|
import { ScrollArea, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from './chunk-N5SVBDLC.js';
|
|
10
6
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ScrollArea, ScrollBar } from './chunk-N5SVBDLC.js';
|
|
7
|
+
import { AudioViewer, ImageViewer, VideoViewer } from './chunk-HDCRPPBW.js';
|
|
8
|
+
import { useDocuments, useConversations, useAssistantQuery, useConversationThreads, arbiQueryKeys, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-DLT354KA.js';
|
|
9
|
+
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, useWorkspaces } from './chunk-DLT354KA.js';
|
|
10
|
+
import { normalizeCitationMarkup, MarkdownRenderer } from './chunk-6YSHODMG.js';
|
|
11
|
+
export { MarkdownRenderer, MarkdownStreamingContext, closeOpenEmphasis, markdownBaseComponents, normalizeCitationMarkup, splitMarkdownBlocks, trimOpenCitation } from './chunk-6YSHODMG.js';
|
|
11
12
|
import { cn } from './chunk-SN5YV6FF.js';
|
|
12
13
|
export { cn } from './chunk-SN5YV6FF.js';
|
|
13
|
-
import { AudioViewer, ImageViewer, VideoViewer } from './chunk-HDCRPPBW.js';
|
|
14
14
|
import { useArbi } from './chunk-J4MX2W4H.js';
|
|
15
15
|
export { ArbiProvider, useArbi } from './chunk-J4MX2W4H.js';
|
|
16
16
|
import React, { memo, useState, createContext, useMemo, useCallback, useEffect, useRef, useLayoutEffect, useContext, useId, Fragment as Fragment$1 } from 'react';
|
|
@@ -1648,6 +1648,7 @@ function useAiTask() {
|
|
|
1648
1648
|
docIds,
|
|
1649
1649
|
previousResponseId: opts?.previousResponseId ?? void 0,
|
|
1650
1650
|
model: opts?.model,
|
|
1651
|
+
activeArtifactExtId: opts?.activeArtifactExtId,
|
|
1651
1652
|
onToken: (c) => {
|
|
1652
1653
|
bufferRef.current += c;
|
|
1653
1654
|
setText(bufferRef.current);
|
|
@@ -3589,6 +3590,7 @@ function getNotificationTypeMeta(type) {
|
|
|
3589
3590
|
case "workspaceuser_updated_collaborator":
|
|
3590
3591
|
case "workspaceuser_updated_guest":
|
|
3591
3592
|
return { Icon: WorkspaceIcon, iconClassName: "text-primary", label: "Role changed" };
|
|
3593
|
+
case "docx_mention":
|
|
3592
3594
|
case "mention":
|
|
3593
3595
|
return { Icon: AtSign, iconClassName: "text-primary", label: "Mention" };
|
|
3594
3596
|
case "contact_accepted":
|