@arbidocs/react 0.4.115 → 0.4.116

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/index.cjs CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  var chunkAFGE55RQ_cjs = require('./chunk-AFGE55RQ.cjs');
4
4
  var chunk5DCRIWCA_cjs = require('./chunk-5DCRIWCA.cjs');
5
- var chunkF7KQVVD2_cjs = require('./chunk-F7KQVVD2.cjs');
6
5
  var chunkA4ONEV57_cjs = require('./chunk-A4ONEV57.cjs');
7
6
  var chunkTBELZWGV_cjs = require('./chunk-TBELZWGV.cjs');
8
7
  var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
9
8
  var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
9
+ var chunkF7KQVVD2_cjs = require('./chunk-F7KQVVD2.cjs');
10
10
  var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
11
11
  var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
12
12
  var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
@@ -7215,42 +7215,6 @@ Object.defineProperty(exports, "unwrapCitationLinks", {
7215
7215
  enumerable: true,
7216
7216
  get: function () { return chunk5DCRIWCA_cjs.unwrapCitationLinks; }
7217
7217
  });
7218
- Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
7219
- enumerable: true,
7220
- get: function () { return chunkF7KQVVD2_cjs.DEFAULT_NOTIFY_TONE; }
7221
- });
7222
- Object.defineProperty(exports, "NotificationBell", {
7223
- enumerable: true,
7224
- get: function () { return chunkF7KQVVD2_cjs.NotificationBell; }
7225
- });
7226
- Object.defineProperty(exports, "Toaster", {
7227
- enumerable: true,
7228
- get: function () { return chunkF7KQVVD2_cjs.Toaster; }
7229
- });
7230
- Object.defineProperty(exports, "formatRelativeTime", {
7231
- enumerable: true,
7232
- get: function () { return chunkF7KQVVD2_cjs.formatRelativeTime; }
7233
- });
7234
- Object.defineProperty(exports, "notify", {
7235
- enumerable: true,
7236
- get: function () { return chunkF7KQVVD2_cjs.notify; }
7237
- });
7238
- Object.defineProperty(exports, "seedNotifications", {
7239
- enumerable: true,
7240
- get: function () { return chunkF7KQVVD2_cjs.seedNotifications; }
7241
- });
7242
- Object.defineProperty(exports, "selectUnread", {
7243
- enumerable: true,
7244
- get: function () { return chunkF7KQVVD2_cjs.selectUnread; }
7245
- });
7246
- Object.defineProperty(exports, "toast", {
7247
- enumerable: true,
7248
- get: function () { return chunkF7KQVVD2_cjs.toast; }
7249
- });
7250
- Object.defineProperty(exports, "useNotify", {
7251
- enumerable: true,
7252
- get: function () { return chunkF7KQVVD2_cjs.useNotify; }
7253
- });
7254
7218
  Object.defineProperty(exports, "AUDIO_MIME_PREFERENCE", {
7255
7219
  enumerable: true,
7256
7220
  get: function () { return chunkA4ONEV57_cjs.AUDIO_MIME_PREFERENCE; }
@@ -7883,6 +7847,42 @@ Object.defineProperty(exports, "trimOpenCitation", {
7883
7847
  enumerable: true,
7884
7848
  get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
7885
7849
  });
7850
+ Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
7851
+ enumerable: true,
7852
+ get: function () { return chunkF7KQVVD2_cjs.DEFAULT_NOTIFY_TONE; }
7853
+ });
7854
+ Object.defineProperty(exports, "NotificationBell", {
7855
+ enumerable: true,
7856
+ get: function () { return chunkF7KQVVD2_cjs.NotificationBell; }
7857
+ });
7858
+ Object.defineProperty(exports, "Toaster", {
7859
+ enumerable: true,
7860
+ get: function () { return chunkF7KQVVD2_cjs.Toaster; }
7861
+ });
7862
+ Object.defineProperty(exports, "formatRelativeTime", {
7863
+ enumerable: true,
7864
+ get: function () { return chunkF7KQVVD2_cjs.formatRelativeTime; }
7865
+ });
7866
+ Object.defineProperty(exports, "notify", {
7867
+ enumerable: true,
7868
+ get: function () { return chunkF7KQVVD2_cjs.notify; }
7869
+ });
7870
+ Object.defineProperty(exports, "seedNotifications", {
7871
+ enumerable: true,
7872
+ get: function () { return chunkF7KQVVD2_cjs.seedNotifications; }
7873
+ });
7874
+ Object.defineProperty(exports, "selectUnread", {
7875
+ enumerable: true,
7876
+ get: function () { return chunkF7KQVVD2_cjs.selectUnread; }
7877
+ });
7878
+ Object.defineProperty(exports, "toast", {
7879
+ enumerable: true,
7880
+ get: function () { return chunkF7KQVVD2_cjs.toast; }
7881
+ });
7882
+ Object.defineProperty(exports, "useNotify", {
7883
+ enumerable: true,
7884
+ get: function () { return chunkF7KQVVD2_cjs.useNotify; }
7885
+ });
7886
7886
  Object.defineProperty(exports, "ScrollArea", {
7887
7887
  enumerable: true,
7888
7888
  get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
package/dist/index.d.cts CHANGED
@@ -1403,6 +1403,12 @@ declare function useProjects(options?: {
1403
1403
  block_storage_gb: number;
1404
1404
  ai_blocks: number;
1405
1405
  storage_blocks: number;
1406
+ legacy_ai_blocks: number;
1407
+ legacy_storage_blocks: number;
1408
+ legacy_block_ai_gbp: number;
1409
+ legacy_block_storage_gb: number;
1410
+ blocks_ai_gbp: number;
1411
+ blocks_storage_gb: number;
1406
1412
  ai_blocks_next?: number | null | undefined;
1407
1413
  storage_blocks_next?: number | null | undefined;
1408
1414
  storage_blocks_min: number;
@@ -1429,19 +1435,6 @@ declare function useProjects(options?: {
1429
1435
  pending_interval?: ("month" | "year") | null | undefined;
1430
1436
  billing_error?: string | null | undefined;
1431
1437
  confirm_url?: string | null | undefined;
1432
- upsell?: {
1433
- variant: "compare" | "save";
1434
- interval: "month" | "year";
1435
- add_on_count: number;
1436
- current_monthly_pence: number;
1437
- current_monthly_ex_vat_pence: number;
1438
- pro_plus_monthly_pence: number;
1439
- pro_plus_monthly_ex_vat_pence: number;
1440
- pro_plus_period_pence: number;
1441
- pro_plus_ai_gbp: number;
1442
- pro_plus_storage_gb: number;
1443
- saving_monthly_pence: number;
1444
- } | null | undefined;
1445
1438
  payment?: {
1446
1439
  status: "pending" | "paid";
1447
1440
  kind?: ("ai_usage" | "storage") | null | undefined;
@@ -2047,13 +2040,19 @@ declare function useFirmPool(options?: {
2047
2040
  licence_status?: string | null;
2048
2041
  expires_at?: string | null;
2049
2042
  premium_only: boolean;
2050
- box_seats?: number | null;
2051
- plus_seats?: number | null;
2052
- ai_addons?: number | null;
2043
+ users?: number | null;
2044
+ storage_gb?: number | null;
2045
+ ai_gbp?: number | null;
2046
+ unlimited_standard_ai?: boolean | null;
2047
+ interval?: string | null;
2048
+ kept_until?: string | null;
2049
+ renews?: _arbidocs_client.components["schemas"]["FirmRenewingQuantities"] | null;
2050
+ support?: string | null;
2053
2051
  addon_gbp?: number | null;
2054
2052
  base_gbp?: number | null;
2055
2053
  auto_addons?: number | null;
2056
2054
  auto_addon_gbp?: number | null;
2055
+ auto_storage_gb?: number | null;
2057
2056
  auto_addon_price_pence?: number | null;
2058
2057
  auto_addon_spent_pence?: number | null;
2059
2058
  auto_addon_limit_pence?: number | null;
@@ -2076,13 +2075,25 @@ declare function useTopUpFirmPool(): _tanstack_react_query.UseMutationResult<{
2076
2075
  licence_status?: string | null | undefined;
2077
2076
  expires_at?: string | null | undefined;
2078
2077
  premium_only: boolean;
2079
- box_seats?: number | null | undefined;
2080
- plus_seats?: number | null | undefined;
2081
- ai_addons?: number | null | undefined;
2078
+ users?: number | null | undefined;
2079
+ storage_gb?: number | null | undefined;
2080
+ ai_gbp?: number | null | undefined;
2081
+ unlimited_standard_ai?: boolean | null | undefined;
2082
+ interval?: string | null | undefined;
2083
+ kept_until?: string | null | undefined;
2084
+ renews?: {
2085
+ users?: number | null | undefined;
2086
+ storage_gb?: number | null | undefined;
2087
+ ai_gbp?: number | null | undefined;
2088
+ unlimited_standard_ai?: boolean | null | undefined;
2089
+ support?: string | null | undefined;
2090
+ } | null | undefined;
2091
+ support?: string | null | undefined;
2082
2092
  addon_gbp?: number | null | undefined;
2083
2093
  base_gbp?: number | null | undefined;
2084
2094
  auto_addons?: number | null | undefined;
2085
2095
  auto_addon_gbp?: number | null | undefined;
2096
+ auto_storage_gb?: number | null | undefined;
2086
2097
  auto_addon_price_pence?: number | null | undefined;
2087
2098
  auto_addon_spent_pence?: number | null | undefined;
2088
2099
  auto_addon_limit_pence?: number | null | undefined;
@@ -2840,6 +2851,12 @@ declare function useFilteredProjects(filters: {
2840
2851
  block_storage_gb: number;
2841
2852
  ai_blocks: number;
2842
2853
  storage_blocks: number;
2854
+ legacy_ai_blocks: number;
2855
+ legacy_storage_blocks: number;
2856
+ legacy_block_ai_gbp: number;
2857
+ legacy_block_storage_gb: number;
2858
+ blocks_ai_gbp: number;
2859
+ blocks_storage_gb: number;
2843
2860
  ai_blocks_next?: number | null | undefined;
2844
2861
  storage_blocks_next?: number | null | undefined;
2845
2862
  storage_blocks_min: number;
@@ -2866,19 +2883,6 @@ declare function useFilteredProjects(filters: {
2866
2883
  pending_interval?: ("month" | "year") | null | undefined;
2867
2884
  billing_error?: string | null | undefined;
2868
2885
  confirm_url?: string | null | undefined;
2869
- upsell?: {
2870
- variant: "compare" | "save";
2871
- interval: "month" | "year";
2872
- add_on_count: number;
2873
- current_monthly_pence: number;
2874
- current_monthly_ex_vat_pence: number;
2875
- pro_plus_monthly_pence: number;
2876
- pro_plus_monthly_ex_vat_pence: number;
2877
- pro_plus_period_pence: number;
2878
- pro_plus_ai_gbp: number;
2879
- pro_plus_storage_gb: number;
2880
- saving_monthly_pence: number;
2881
- } | null | undefined;
2882
2886
  payment?: {
2883
2887
  status: "pending" | "paid";
2884
2888
  kind?: ("ai_usage" | "storage") | null | undefined;
package/dist/index.d.ts CHANGED
@@ -1403,6 +1403,12 @@ declare function useProjects(options?: {
1403
1403
  block_storage_gb: number;
1404
1404
  ai_blocks: number;
1405
1405
  storage_blocks: number;
1406
+ legacy_ai_blocks: number;
1407
+ legacy_storage_blocks: number;
1408
+ legacy_block_ai_gbp: number;
1409
+ legacy_block_storage_gb: number;
1410
+ blocks_ai_gbp: number;
1411
+ blocks_storage_gb: number;
1406
1412
  ai_blocks_next?: number | null | undefined;
1407
1413
  storage_blocks_next?: number | null | undefined;
1408
1414
  storage_blocks_min: number;
@@ -1429,19 +1435,6 @@ declare function useProjects(options?: {
1429
1435
  pending_interval?: ("month" | "year") | null | undefined;
1430
1436
  billing_error?: string | null | undefined;
1431
1437
  confirm_url?: string | null | undefined;
1432
- upsell?: {
1433
- variant: "compare" | "save";
1434
- interval: "month" | "year";
1435
- add_on_count: number;
1436
- current_monthly_pence: number;
1437
- current_monthly_ex_vat_pence: number;
1438
- pro_plus_monthly_pence: number;
1439
- pro_plus_monthly_ex_vat_pence: number;
1440
- pro_plus_period_pence: number;
1441
- pro_plus_ai_gbp: number;
1442
- pro_plus_storage_gb: number;
1443
- saving_monthly_pence: number;
1444
- } | null | undefined;
1445
1438
  payment?: {
1446
1439
  status: "pending" | "paid";
1447
1440
  kind?: ("ai_usage" | "storage") | null | undefined;
@@ -2047,13 +2040,19 @@ declare function useFirmPool(options?: {
2047
2040
  licence_status?: string | null;
2048
2041
  expires_at?: string | null;
2049
2042
  premium_only: boolean;
2050
- box_seats?: number | null;
2051
- plus_seats?: number | null;
2052
- ai_addons?: number | null;
2043
+ users?: number | null;
2044
+ storage_gb?: number | null;
2045
+ ai_gbp?: number | null;
2046
+ unlimited_standard_ai?: boolean | null;
2047
+ interval?: string | null;
2048
+ kept_until?: string | null;
2049
+ renews?: _arbidocs_client.components["schemas"]["FirmRenewingQuantities"] | null;
2050
+ support?: string | null;
2053
2051
  addon_gbp?: number | null;
2054
2052
  base_gbp?: number | null;
2055
2053
  auto_addons?: number | null;
2056
2054
  auto_addon_gbp?: number | null;
2055
+ auto_storage_gb?: number | null;
2057
2056
  auto_addon_price_pence?: number | null;
2058
2057
  auto_addon_spent_pence?: number | null;
2059
2058
  auto_addon_limit_pence?: number | null;
@@ -2076,13 +2075,25 @@ declare function useTopUpFirmPool(): _tanstack_react_query.UseMutationResult<{
2076
2075
  licence_status?: string | null | undefined;
2077
2076
  expires_at?: string | null | undefined;
2078
2077
  premium_only: boolean;
2079
- box_seats?: number | null | undefined;
2080
- plus_seats?: number | null | undefined;
2081
- ai_addons?: number | null | undefined;
2078
+ users?: number | null | undefined;
2079
+ storage_gb?: number | null | undefined;
2080
+ ai_gbp?: number | null | undefined;
2081
+ unlimited_standard_ai?: boolean | null | undefined;
2082
+ interval?: string | null | undefined;
2083
+ kept_until?: string | null | undefined;
2084
+ renews?: {
2085
+ users?: number | null | undefined;
2086
+ storage_gb?: number | null | undefined;
2087
+ ai_gbp?: number | null | undefined;
2088
+ unlimited_standard_ai?: boolean | null | undefined;
2089
+ support?: string | null | undefined;
2090
+ } | null | undefined;
2091
+ support?: string | null | undefined;
2082
2092
  addon_gbp?: number | null | undefined;
2083
2093
  base_gbp?: number | null | undefined;
2084
2094
  auto_addons?: number | null | undefined;
2085
2095
  auto_addon_gbp?: number | null | undefined;
2096
+ auto_storage_gb?: number | null | undefined;
2086
2097
  auto_addon_price_pence?: number | null | undefined;
2087
2098
  auto_addon_spent_pence?: number | null | undefined;
2088
2099
  auto_addon_limit_pence?: number | null | undefined;
@@ -2840,6 +2851,12 @@ declare function useFilteredProjects(filters: {
2840
2851
  block_storage_gb: number;
2841
2852
  ai_blocks: number;
2842
2853
  storage_blocks: number;
2854
+ legacy_ai_blocks: number;
2855
+ legacy_storage_blocks: number;
2856
+ legacy_block_ai_gbp: number;
2857
+ legacy_block_storage_gb: number;
2858
+ blocks_ai_gbp: number;
2859
+ blocks_storage_gb: number;
2843
2860
  ai_blocks_next?: number | null | undefined;
2844
2861
  storage_blocks_next?: number | null | undefined;
2845
2862
  storage_blocks_min: number;
@@ -2866,19 +2883,6 @@ declare function useFilteredProjects(filters: {
2866
2883
  pending_interval?: ("month" | "year") | null | undefined;
2867
2884
  billing_error?: string | null | undefined;
2868
2885
  confirm_url?: string | null | undefined;
2869
- upsell?: {
2870
- variant: "compare" | "save";
2871
- interval: "month" | "year";
2872
- add_on_count: number;
2873
- current_monthly_pence: number;
2874
- current_monthly_ex_vat_pence: number;
2875
- pro_plus_monthly_pence: number;
2876
- pro_plus_monthly_ex_vat_pence: number;
2877
- pro_plus_period_pence: number;
2878
- pro_plus_ai_gbp: number;
2879
- pro_plus_storage_gb: number;
2880
- saving_monthly_pence: number;
2881
- } | null | undefined;
2882
2886
  payment?: {
2883
2887
  status: "pending" | "paid";
2884
2888
  kind?: ("ai_usage" | "storage") | null | undefined;
package/dist/index.js CHANGED
@@ -1,8 +1,6 @@
1
1
  import { arbiQueryKeys, useDocuments, useConversations, useAssistantQuery, useConversationThreads, useWorkspaces, useParsedDocument, useTags, useActivity, useThumbnails } from './chunk-5WXNTCI3.js';
2
2
  export { PROJECT_CREATION_DENIED_REASON, arbiQueryKeys, isUsageMetered, useActivity, useAgents, useAssistantQuery, useCanCreateProjects, useConfigs, useConversationThreads, useConversations, useCurrentUser, useDeleteAgents, useDocuments, useFacts, useFirmPool, useHealth, useParsedDocument, useProjectInvoices, useProjectUsage, useProjects, useProjectsUsage, useSessions, useTags, useThumbnails, useTopUpFirmPool, useUserUsageToday, useWorkspaceActivity, useWorkspaceUsers, useWorkspaces } from './chunk-5WXNTCI3.js';
3
3
  export { cleanDraftMarkdown, cleanDraftWithReport, promoteBoldTitle, repairParsedStructure, repairParsedTitle, stripAgentPreamble, unescapeMarkdown, unwrapCitationLinks } from './chunk-G6FHNURH.js';
4
- import { formatRelativeTime } from './chunk-ECOSGMTW.js';
5
- export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-ECOSGMTW.js';
6
4
  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-FLZ3OT2V.js';
7
5
  export { AUDIO_MIME_PREFERENCE, AgentBadge, AiMarkdown, ArbiBotHeadIcon, ArbiIcon, 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, DEFAULT_SEGMENTER_CONFIG, DictateProvider, DocIcon, DocumentCard, DocumentEntity, ENTITY_MAPPINGS, EmlIcon, EntityIcon, EntityPill, FILE_TYPE_COLORS, HoverCard, HoverCardContent, HoverCardTrigger, HtmlIcon, INITIAL_SEGMENTER_STATE, 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, VIDEO_MIME_PREFERENCE, VISIBILITY_ICONS, VerifiedBadge, VidIcon, VisibilityIcon, VisibilityToggle, XlsIcon, badgeVariants, cardVariants, classifyMediaError, configureEntityRegistry, configureRagLabels, configureStatusRegistry, createChunkedRecorder, flushSegmenter, formatElapsed, getDocIcon, getEntityColor, getEntityColorStyles, getEntityIcon, getEntityLabel, getStatusVariant, getTagTypeIcon, getTagTypeLabel, getWorkspaceColor, levelFromRms, pickRecorderMimeType, stepSegmenter, toggleVariants, useAudioRecorder } from './chunk-FLZ3OT2V.js';
8
6
  import { MarkdownRenderer } from './chunk-EKRRORFO.js';
@@ -11,6 +9,8 @@ import { Button, Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter
11
9
  export { Button, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, buttonVariants } from './chunk-YNNAJJ5Z.js';
12
10
  import { normalizeCitationMarkup } from './chunk-QRCMKEE6.js';
13
11
  export { closeOpenEmphasis, normalizeCitationMarkup, trimOpenCitation } from './chunk-QRCMKEE6.js';
12
+ import { formatRelativeTime } from './chunk-ECOSGMTW.js';
13
+ export { DEFAULT_NOTIFY_TONE, NotificationBell, Toaster, formatRelativeTime, notify, seedNotifications, selectUnread, toast, useNotify } from './chunk-ECOSGMTW.js';
14
14
  import { ScrollArea } from './chunk-W4H6XAIU.js';
15
15
  export { ScrollArea, ScrollBar } from './chunk-W4H6XAIU.js';
16
16
  import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from './chunk-47CCGUWR.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbidocs/react",
3
- "version": "0.4.115",
3
+ "version": "0.4.116",
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.115",
97
- "@arbidocs/sdk": "0.4.115",
96
+ "@arbidocs/client": "0.4.116",
97
+ "@arbidocs/sdk": "0.4.116",
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",