@arbidocs/react 0.4.75 → 0.4.76

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.
@@ -5,10 +5,10 @@ var chunk3AADNIOK_cjs = require('../chunk-3AADNIOK.cjs');
5
5
  var chunkT4IJHRRD_cjs = require('../chunk-T4IJHRRD.cjs');
6
6
  var chunk5DCRIWCA_cjs = require('../chunk-5DCRIWCA.cjs');
7
7
  var chunkVOFNX4P6_cjs = require('../chunk-VOFNX4P6.cjs');
8
- var chunkIIT7DMQL_cjs = require('../chunk-IIT7DMQL.cjs');
9
8
  var chunk5SZ2J2WT_cjs = require('../chunk-5SZ2J2WT.cjs');
10
9
  require('../chunk-Z3LLUO32.cjs');
11
10
  require('../chunk-S6A6FSG7.cjs');
11
+ var chunkIIT7DMQL_cjs = require('../chunk-IIT7DMQL.cjs');
12
12
  var react = require('react');
13
13
  var reactQuery = require('@tanstack/react-query');
14
14
  var jsxRuntime = require('react/jsx-runtime');
@@ -7,10 +7,10 @@ import { cleanDraftWithReport } from '../chunk-G6FHNURH.js';
7
7
  export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from '../chunk-G6FHNURH.js';
8
8
  import { normalizeMarkdown } from '../chunk-WUTL62MC.js';
9
9
  export { normalizeMarkdown } from '../chunk-WUTL62MC.js';
10
- import { useArbi } from '../chunk-WBYNKFUO.js';
11
10
  import { MarkdownRenderer } from '../chunk-YXSXGTYQ.js';
12
11
  import '../chunk-QRCMKEE6.js';
13
12
  import '../chunk-SN5YV6FF.js';
13
+ import { useArbi } from '../chunk-WBYNKFUO.js';
14
14
  import { useState, useRef, useEffect, useCallback, useMemo } from 'react';
15
15
  import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
16
16
  import { jsx } from 'react/jsx-runtime';
@@ -5,11 +5,11 @@ var chunkSSOPIPEX_cjs = require('../chunk-SSOPIPEX.cjs');
5
5
  var chunkT4IJHRRD_cjs = require('../chunk-T4IJHRRD.cjs');
6
6
  require('../chunk-5DCRIWCA.cjs');
7
7
  require('../chunk-VOFNX4P6.cjs');
8
- var chunkIIT7DMQL_cjs = require('../chunk-IIT7DMQL.cjs');
9
8
  require('../chunk-WYZJLZ67.cjs');
10
9
  require('../chunk-Z3LLUO32.cjs');
11
10
  require('../chunk-HJDR5HEO.cjs');
12
11
  require('../chunk-S6A6FSG7.cjs');
12
+ var chunkIIT7DMQL_cjs = require('../chunk-IIT7DMQL.cjs');
13
13
  var react = require('react');
14
14
  var jsxRuntime = require('react/jsx-runtime');
15
15
  var reactQuery = require('@tanstack/react-query');
@@ -3,11 +3,11 @@ import { parseLayer, emptyLayer, LAYER_SCHEMA_VERSION } from '../chunk-COWZGCL5.
3
3
  import { parseVersionRef } from '../chunk-HKUD2NZN.js';
4
4
  import '../chunk-G6FHNURH.js';
5
5
  import '../chunk-WUTL62MC.js';
6
- import { useDeploymentDomain } from '../chunk-WBYNKFUO.js';
7
6
  import '../chunk-YNNAJJ5Z.js';
8
7
  import '../chunk-QRCMKEE6.js';
9
8
  import '../chunk-47CCGUWR.js';
10
9
  import '../chunk-SN5YV6FF.js';
10
+ import { useDeploymentDomain } from '../chunk-WBYNKFUO.js';
11
11
  import { createContext, useMemo, useContext, useState, useCallback, useEffect, useSyncExternalStore } from 'react';
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
  import { onlineManager, useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
package/dist/index.cjs CHANGED
@@ -3,8 +3,6 @@
3
3
  var chunkGE5TAR7Y_cjs = require('./chunk-GE5TAR7Y.cjs');
4
4
  var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
5
5
  var chunkF7KQVVD2_cjs = require('./chunk-F7KQVVD2.cjs');
6
- var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
7
- var chunkIIT7DMQL_cjs = require('./chunk-IIT7DMQL.cjs');
8
6
  var chunkQJRP2LLQ_cjs = require('./chunk-QJRP2LLQ.cjs');
9
7
  var chunk5SZ2J2WT_cjs = require('./chunk-5SZ2J2WT.cjs');
10
8
  var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
@@ -12,6 +10,8 @@ var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
12
10
  var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
13
11
  var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
14
12
  var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
13
+ var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
14
+ var chunkIIT7DMQL_cjs = require('./chunk-IIT7DMQL.cjs');
15
15
  var React = require('react');
16
16
  var reactQuery = require('@tanstack/react-query');
17
17
  var browser = require('@arbidocs/sdk/browser');
@@ -6587,18 +6587,6 @@ Object.defineProperty(exports, "useNotify", {
6587
6587
  enumerable: true,
6588
6588
  get: function () { return chunkF7KQVVD2_cjs.useNotify; }
6589
6589
  });
6590
- Object.defineProperty(exports, "ArbiProvider", {
6591
- enumerable: true,
6592
- get: function () { return chunkIIT7DMQL_cjs.ArbiProvider; }
6593
- });
6594
- Object.defineProperty(exports, "useArbi", {
6595
- enumerable: true,
6596
- get: function () { return chunkIIT7DMQL_cjs.useArbi; }
6597
- });
6598
- Object.defineProperty(exports, "useDeploymentDomain", {
6599
- enumerable: true,
6600
- get: function () { return chunkIIT7DMQL_cjs.useDeploymentDomain; }
6601
- });
6602
6590
  Object.defineProperty(exports, "AgentBadge", {
6603
6591
  enumerable: true,
6604
6592
  get: function () { return chunkQJRP2LLQ_cjs.AgentBadge; }
@@ -7271,6 +7259,18 @@ Object.defineProperty(exports, "cn", {
7271
7259
  enumerable: true,
7272
7260
  get: function () { return chunkS6A6FSG7_cjs.cn; }
7273
7261
  });
7262
+ Object.defineProperty(exports, "ArbiProvider", {
7263
+ enumerable: true,
7264
+ get: function () { return chunkIIT7DMQL_cjs.ArbiProvider; }
7265
+ });
7266
+ Object.defineProperty(exports, "useArbi", {
7267
+ enumerable: true,
7268
+ get: function () { return chunkIIT7DMQL_cjs.useArbi; }
7269
+ });
7270
+ Object.defineProperty(exports, "useDeploymentDomain", {
7271
+ enumerable: true,
7272
+ get: function () { return chunkIIT7DMQL_cjs.useDeploymentDomain; }
7273
+ });
7274
7274
  Object.defineProperty(exports, "Arbi", {
7275
7275
  enumerable: true,
7276
7276
  get: function () { return browser.Arbi; }
package/dist/index.d.cts CHANGED
@@ -767,6 +767,37 @@ declare function useConversations(workspaceId: string | undefined, options?: {
767
767
  ui?: {
768
768
  [x: string]: unknown;
769
769
  } | null | undefined;
770
+ signals?: {
771
+ name: string;
772
+ when?: {
773
+ field?: string | null | undefined;
774
+ equals?: string | number | boolean | null | undefined;
775
+ contains?: string | null | undefined;
776
+ matches?: string | null | undefined;
777
+ approved?: boolean | null | undefined;
778
+ } | null | undefined;
779
+ }[] | undefined;
780
+ assignee?: {
781
+ user?: string | null | undefined;
782
+ run_owner?: true | null | undefined;
783
+ input?: string | null | undefined;
784
+ project_lead?: true | null | undefined;
785
+ } | null | undefined;
786
+ remind_after_hours?: number | null | undefined;
787
+ fields?: {
788
+ [x: string]: unknown;
789
+ name: string;
790
+ type: "text" | "longtext" | "boolean" | "select" | "number" | "date" | "scope" | "documents" | "person";
791
+ label?: string | null | undefined;
792
+ required: boolean;
793
+ options?: {
794
+ [x: string]: unknown;
795
+ value: string;
796
+ label?: string | null | undefined;
797
+ }[] | null | undefined;
798
+ min?: number | null | undefined;
799
+ max?: number | null | undefined;
800
+ }[] | null | undefined;
770
801
  }[];
771
802
  } | null | undefined;
772
803
  goal_state?: {
@@ -954,6 +985,10 @@ declare function useConversationThreads(workspaceId: string | undefined, convers
954
985
  run_id: string;
955
986
  status: "running" | "done" | "failed";
956
987
  };
988
+ } | {
989
+ name: "workflow_step";
990
+ description: string;
991
+ workflow_step: string;
957
992
  };
958
993
  } | undefined;
959
994
  config_ext_id?: string | null | undefined;
@@ -989,6 +1024,16 @@ declare function useTags(workspaceId: string | undefined, options?: {
989
1024
  parent_ext_id?: string | null | undefined;
990
1025
  doctag_count: number;
991
1026
  facttag_count: number;
1027
+ fields?: {
1028
+ id: string;
1029
+ name: string;
1030
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person";
1031
+ options?: string[] | null | undefined;
1032
+ tag_ext_id: string;
1033
+ }[] | undefined;
1034
+ field_values?: {
1035
+ [x: string]: unknown;
1036
+ } | undefined;
992
1037
  created_by_ext_id: string;
993
1038
  updated_by_ext_id?: string | null | undefined;
994
1039
  created_at: string;
@@ -1193,6 +1238,24 @@ declare function useProjects(options?: {
1193
1238
  budget_reset_at?: number | null | undefined;
1194
1239
  };
1195
1240
  daily_cap_per_user?: number | null | undefined;
1241
+ budget?: {
1242
+ amount: number;
1243
+ currency: string;
1244
+ } | null | undefined;
1245
+ client?: string | null | undefined;
1246
+ client_ref?: string | null | undefined;
1247
+ stage?: string | null | undefined;
1248
+ stage_changed_at?: string | null | undefined;
1249
+ lead_user?: string | null | undefined;
1250
+ fields?: {
1251
+ [x: string]: unknown;
1252
+ } | undefined;
1253
+ field_schema?: {
1254
+ key: string;
1255
+ label?: string | null | undefined;
1256
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person";
1257
+ options?: string[] | null | undefined;
1258
+ }[] | null | undefined;
1196
1259
  plan_interval?: ("month" | "year") | null | undefined;
1197
1260
  packs: number;
1198
1261
  plan_change?: {
package/dist/index.d.ts CHANGED
@@ -767,6 +767,37 @@ declare function useConversations(workspaceId: string | undefined, options?: {
767
767
  ui?: {
768
768
  [x: string]: unknown;
769
769
  } | null | undefined;
770
+ signals?: {
771
+ name: string;
772
+ when?: {
773
+ field?: string | null | undefined;
774
+ equals?: string | number | boolean | null | undefined;
775
+ contains?: string | null | undefined;
776
+ matches?: string | null | undefined;
777
+ approved?: boolean | null | undefined;
778
+ } | null | undefined;
779
+ }[] | undefined;
780
+ assignee?: {
781
+ user?: string | null | undefined;
782
+ run_owner?: true | null | undefined;
783
+ input?: string | null | undefined;
784
+ project_lead?: true | null | undefined;
785
+ } | null | undefined;
786
+ remind_after_hours?: number | null | undefined;
787
+ fields?: {
788
+ [x: string]: unknown;
789
+ name: string;
790
+ type: "text" | "longtext" | "boolean" | "select" | "number" | "date" | "scope" | "documents" | "person";
791
+ label?: string | null | undefined;
792
+ required: boolean;
793
+ options?: {
794
+ [x: string]: unknown;
795
+ value: string;
796
+ label?: string | null | undefined;
797
+ }[] | null | undefined;
798
+ min?: number | null | undefined;
799
+ max?: number | null | undefined;
800
+ }[] | null | undefined;
770
801
  }[];
771
802
  } | null | undefined;
772
803
  goal_state?: {
@@ -954,6 +985,10 @@ declare function useConversationThreads(workspaceId: string | undefined, convers
954
985
  run_id: string;
955
986
  status: "running" | "done" | "failed";
956
987
  };
988
+ } | {
989
+ name: "workflow_step";
990
+ description: string;
991
+ workflow_step: string;
957
992
  };
958
993
  } | undefined;
959
994
  config_ext_id?: string | null | undefined;
@@ -989,6 +1024,16 @@ declare function useTags(workspaceId: string | undefined, options?: {
989
1024
  parent_ext_id?: string | null | undefined;
990
1025
  doctag_count: number;
991
1026
  facttag_count: number;
1027
+ fields?: {
1028
+ id: string;
1029
+ name: string;
1030
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person";
1031
+ options?: string[] | null | undefined;
1032
+ tag_ext_id: string;
1033
+ }[] | undefined;
1034
+ field_values?: {
1035
+ [x: string]: unknown;
1036
+ } | undefined;
992
1037
  created_by_ext_id: string;
993
1038
  updated_by_ext_id?: string | null | undefined;
994
1039
  created_at: string;
@@ -1193,6 +1238,24 @@ declare function useProjects(options?: {
1193
1238
  budget_reset_at?: number | null | undefined;
1194
1239
  };
1195
1240
  daily_cap_per_user?: number | null | undefined;
1241
+ budget?: {
1242
+ amount: number;
1243
+ currency: string;
1244
+ } | null | undefined;
1245
+ client?: string | null | undefined;
1246
+ client_ref?: string | null | undefined;
1247
+ stage?: string | null | undefined;
1248
+ stage_changed_at?: string | null | undefined;
1249
+ lead_user?: string | null | undefined;
1250
+ fields?: {
1251
+ [x: string]: unknown;
1252
+ } | undefined;
1253
+ field_schema?: {
1254
+ key: string;
1255
+ label?: string | null | undefined;
1256
+ type: "text" | "number" | "date" | "checkbox" | "select" | "person";
1257
+ options?: string[] | null | undefined;
1258
+ }[] | null | undefined;
1196
1259
  plan_interval?: ("month" | "year") | null | undefined;
1197
1260
  packs: number;
1198
1261
  plan_change?: {
package/dist/index.js CHANGED
@@ -3,9 +3,6 @@ export { DEFAULT_USD_PER_CREDIT, arbiQueryKeys, creditsToUsd, formatCredits, isU
3
3
  export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-G6FHNURH.js';
4
4
  import { formatRelativeTime } from './chunk-ECOSGMTW.js';
5
5
  export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-ECOSGMTW.js';
6
- import { AudioViewer, ImageViewer, VideoViewer } from './chunk-HDCRPPBW.js';
7
- import { useArbi } from './chunk-WBYNKFUO.js';
8
- export { ArbiProvider, useArbi, useDeploymentDomain } from './chunk-WBYNKFUO.js';
9
6
  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-MHCN7OST.js';
10
7
  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, VerifiedBadge, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, formatElapsed, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, toggleVariants, useAudioRecorder } from './chunk-MHCN7OST.js';
11
8
  import { MarkdownRenderer } from './chunk-YXSXGTYQ.js';
@@ -20,6 +17,9 @@ import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuIte
20
17
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PortalContainerProvider, usePortalContainer } from './chunk-47CCGUWR.js';
21
18
  import { cn } from './chunk-SN5YV6FF.js';
22
19
  export { cn } from './chunk-SN5YV6FF.js';
20
+ import { AudioViewer, ImageViewer, VideoViewer } from './chunk-HDCRPPBW.js';
21
+ import { useArbi } from './chunk-WBYNKFUO.js';
22
+ export { ArbiProvider, useArbi, useDeploymentDomain } from './chunk-WBYNKFUO.js';
23
23
  import React, { memo, useState, createContext, useMemo, useCallback, useEffect, useRef, useLayoutEffect, useContext, useId, Fragment as Fragment$1 } from 'react';
24
24
  import { useQueryClient, useMutation, useQuery } from '@tanstack/react-query';
25
25
  import { resolveCitations, summarizeCitations, formatFileSize, connectWithReconnect, dm, identityErrorCode } from '@arbidocs/sdk/browser';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/react",
3
- "version": "0.4.75",
3
+ "version": "0.4.76",
4
4
  "description": "React hooks and provider for the ARBI SDK",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -93,8 +93,8 @@
93
93
  "build-storybook": "storybook build"
94
94
  },
95
95
  "dependencies": {
96
- "@arbidocs/client": "0.4.75",
97
- "@arbidocs/sdk": "0.4.75",
96
+ "@arbidocs/client": "0.4.76",
97
+ "@arbidocs/sdk": "0.4.76",
98
98
  "@didit-protocol/sdk-web": "0.4.0",
99
99
  "@radix-ui/react-avatar": "^1.2.0",
100
100
  "@radix-ui/react-checkbox": "^1.3.5",