@arbidocs/blocks 0.3.159 → 0.3.161
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 +297 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +137 -2
- package/dist/index.d.ts +137 -2
- package/dist/index.js +293 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ap as ThemeBundle, ax as ThemeTokens, av as ThemeState } from './index-er1L8kkn.cjs';
|
|
2
2
|
export { A as Accordion, a as AccordionItem, b as AccordionProps, c as ApplyThemeOptions, d as AvatarBlock, e as AvatarBlockProps, B as Banner, f as BannerProps, g as BannerTone, h as BlockImage, i as BlockImageProps, j as BlockLink, k as BlockLinkComponent, l as BlockLinkProps, C as CTABanner, m as CTABannerProps, n as Callout, o as CalloutProps, p as CalloutVariant, q as ColorToken, r as Columns, s as ColumnsProps, t as ContactField, u as ContactForm, v as ContactFormProps, w as Container, x as ContainerProps, F as FAQ, y as FAQProps, z as FONT_PAIRINGS, D as FaqItem, E as FeatureGrid, G as FeatureGridProps, H as FeatureItem, I as FontPairing, J as Footer, K as FooterColumn, L as FooterLink, M as FooterProps, N as Gallery, O as GalleryImage, P as GalleryProps, Q as Hero, R as HeroCta, S as HeroProps, T as ListBlock, U as ListBlockProps, V as ListItem, W as LogoCloud, X as LogoCloudProps, Y as LogoItem, Z as MediaText, _ as MediaTextProps, $ as NavLink, a0 as Navbar, a1 as NavbarProps, a2 as PricingPlan, a3 as PricingTable, a4 as PricingTableProps, a5 as RichTextBlock, a6 as RichTextBlockProps, a7 as SectionHeading, a8 as Spacer, a9 as SpacerProps, aa as StepItem, ab as Steps, ac as StepsProps, ad as THEME_STYLE_ID, ae as TabItem, af as Tabs, ag as TabsProps, ah as TeamGrid, ai as TeamGridProps, aj as TeamMember, ak as Testimonial, al as TestimonialGrid, am as TestimonialGridProps, an as TestimonialItem, ao as TestimonialProps, aq as ThemeEditor, ar as ThemeEditorProps, as as ThemeEmitMode, at as ThemeFonts, au as ThemePreset, aw as ThemeStoreConfig, ay as Timeline, az as TimelineCalendar, aA as TimelineCalendarProps, aB as TimelineGantt, aC as TimelineGanttProps, aD as TimelineItem, aE as TimelineProps, aF as TimelineViewMode, aG as VideoAspect, aH as VideoEmbed, aI as VideoEmbedProps, aJ as applyFontVars, aK as applyStoredTheme, aL as applyThemeVars, aM as clearFontVars, aN as clearThemeVars, aO as createThemeStore, aP as dayKey, aQ as daysUntil, aR as fmtDate, aS as fmtDateTime, aT as fontPackages, aU as formatPageRefs, aV as formatSpan, aW as fromNow, aX as gbp, aY as getFontPairing, aZ as hrs, a_ as initials, a$ as matchFontPairing, b0 as monthLabel, b1 as parseIso, b2 as pct, b3 as tid, b4 as toEmbedUrl, b5 as toHslTriplet, b6 as utcDay } from './index-er1L8kkn.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import react__default, { ReactNode, ComponentType } from 'react';
|
|
4
|
+
import react__default, { ReactNode, KeyboardEventHandler, RefObject, ComponentType } from 'react';
|
|
5
5
|
import * as _arbidocs_react from '@arbidocs/react';
|
|
6
6
|
import { DocumentLike, AiRunOptions, UserMenuItem, NotifyVariant, useArbi, AiTaskStatus } from '@arbidocs/react';
|
|
7
7
|
export { AiRunOptions, AiTaskStatus, ArtifactEvent, DocumentCard, DocumentCardProps, SearchChunk, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, redlineStats, textToArtifact, toRedlineMarkdown } from '@arbidocs/react';
|
|
@@ -478,6 +478,26 @@ declare function EmptyState({ icon: Icon, title, description, action, className,
|
|
|
478
478
|
testId?: string;
|
|
479
479
|
}): react.JSX.Element;
|
|
480
480
|
|
|
481
|
+
/**
|
|
482
|
+
* One labelled quota meter: icon + label on the left, used-of-limit on the
|
|
483
|
+
* right, a thin bar underneath. The bar's tone follows pressure — quiet
|
|
484
|
+
* primary normally, amber near the limit, destructive at it — so a stack of
|
|
485
|
+
* meters reads at a glance which quota is the one to think about.
|
|
486
|
+
*/
|
|
487
|
+
declare function UsageMeter({ icon: Icon, label, value, pct, hint, className, testId, }: {
|
|
488
|
+
icon?: LucideIcon;
|
|
489
|
+
label: string;
|
|
490
|
+
/** Formatted used-of-limit text, e.g. "1,200 / 25,000" or "40 / 500 MB". */
|
|
491
|
+
value: string;
|
|
492
|
+
/** Fill percentage, 0–100 (values are clamped). */
|
|
493
|
+
pct: number;
|
|
494
|
+
/** Inline parenthetical after the label, e.g. "resets May 31, 2025" —
|
|
495
|
+
* same font as the label, so the meter never grows an extra row. */
|
|
496
|
+
hint?: string;
|
|
497
|
+
className?: string;
|
|
498
|
+
testId?: string;
|
|
499
|
+
}): react.JSX.Element;
|
|
500
|
+
|
|
481
501
|
interface UploadDropzoneProps {
|
|
482
502
|
/** Called with the chosen/dropped files. */
|
|
483
503
|
onFiles: (files: File[]) => void;
|
|
@@ -746,6 +766,121 @@ interface RecentActivityCardProps {
|
|
|
746
766
|
*/
|
|
747
767
|
declare function RecentActivityCard({ icon: Icon, title, count, onOpen, actionLabel, actionIcon: ActionIcon, onAction, rows, caption, emptyText, emptyActionLabel, className, testId, }: RecentActivityCardProps): react.JSX.Element;
|
|
748
768
|
|
|
769
|
+
interface AskBarProps {
|
|
770
|
+
/** Receives the trimmed question; the caller owns what asking means. */
|
|
771
|
+
onAsk: (text: string) => void;
|
|
772
|
+
/** Second destination for the same text — retrieval. Omit to hide. */
|
|
773
|
+
onSearch?: (text: string) => void;
|
|
774
|
+
/** Prefill-on-click starter questions, shown under the input. */
|
|
775
|
+
suggestions?: string[];
|
|
776
|
+
placeholder?: string;
|
|
777
|
+
askLabel?: string;
|
|
778
|
+
searchLabel?: string;
|
|
779
|
+
/** Controlled value. Omit for the bar to own its own text. */
|
|
780
|
+
value?: string;
|
|
781
|
+
onValueChange?: (value: string) => void;
|
|
782
|
+
/** Raw keydown on the input — lets a consumer run an autocomplete
|
|
783
|
+
* (arrow/Enter/Tab/Escape) before the form's own submit handling.
|
|
784
|
+
* preventDefault() on Enter suppresses the submit. */
|
|
785
|
+
onInputKeyDown?: KeyboardEventHandler<HTMLInputElement>;
|
|
786
|
+
/** Popover anchored to the pill (e.g. a slash-command menu). Rendered in a
|
|
787
|
+
* relative wrapper around the form, so absolute children position against
|
|
788
|
+
* the pill. */
|
|
789
|
+
menu?: ReactNode;
|
|
790
|
+
/** External input ref, for consumers that refocus after menu selection. */
|
|
791
|
+
inputRef?: RefObject<HTMLInputElement | null>;
|
|
792
|
+
className?: string;
|
|
793
|
+
/** Root test id; children derive `-input`, `-submit`, `-search`, `-suggestion`. */
|
|
794
|
+
testId?: string;
|
|
795
|
+
}
|
|
796
|
+
declare function AskBar({ onAsk, onSearch, suggestions, placeholder, askLabel, searchLabel, value, onValueChange, onInputKeyDown, menu, inputRef: externalInputRef, className, testId, }: AskBarProps): react.JSX.Element;
|
|
797
|
+
|
|
798
|
+
interface ResumeStripItem {
|
|
799
|
+
id: string;
|
|
800
|
+
/** The item's type mark — a chat glyph, a document's file icon. */
|
|
801
|
+
leading?: ReactNode;
|
|
802
|
+
title: string;
|
|
803
|
+
/** Compact age, e.g. "2h", "3d". */
|
|
804
|
+
meta?: string;
|
|
805
|
+
onClick?: () => void;
|
|
806
|
+
}
|
|
807
|
+
interface ResumeStripProps {
|
|
808
|
+
items: ResumeStripItem[];
|
|
809
|
+
/** Says what the strip is. */
|
|
810
|
+
caption?: string;
|
|
811
|
+
className?: string;
|
|
812
|
+
/** Root test id; chips derive `-item`. */
|
|
813
|
+
testId?: string;
|
|
814
|
+
}
|
|
815
|
+
declare function ResumeStrip({ items, caption, className, testId, }: ResumeStripProps): react.JSX.Element | null;
|
|
816
|
+
|
|
817
|
+
interface SectionStripRow {
|
|
818
|
+
id: string;
|
|
819
|
+
/** The row's mark — a pin, a dot, a tiny glyph. Consumer-supplied. */
|
|
820
|
+
leading?: ReactNode;
|
|
821
|
+
title: string;
|
|
822
|
+
/** Pinned right: a date, an age. */
|
|
823
|
+
meta?: string;
|
|
824
|
+
onClick?: () => void;
|
|
825
|
+
}
|
|
826
|
+
interface SectionStripGroup {
|
|
827
|
+
/** Says what the group is — "Upcoming", "Recent". */
|
|
828
|
+
caption: string;
|
|
829
|
+
rows: SectionStripRow[];
|
|
830
|
+
/** Test id for this group's rows. Falls back to `<root>-row`. */
|
|
831
|
+
rowTestId?: string;
|
|
832
|
+
}
|
|
833
|
+
interface SectionStripAction {
|
|
834
|
+
icon?: LucideIcon;
|
|
835
|
+
label: string;
|
|
836
|
+
onClick: () => void;
|
|
837
|
+
testId?: string;
|
|
838
|
+
}
|
|
839
|
+
interface SectionStripProps {
|
|
840
|
+
/** Glyph beside the title, in the header. */
|
|
841
|
+
icon?: LucideIcon;
|
|
842
|
+
/** The section this band is about. */
|
|
843
|
+
title: string;
|
|
844
|
+
/** Total across everything, not just what's listed. Omit to hide. */
|
|
845
|
+
count?: number;
|
|
846
|
+
/** Header click — go to this section's full page. */
|
|
847
|
+
onOpen?: () => void;
|
|
848
|
+
/** Header-right actions: distinct doors into the section's experiences. */
|
|
849
|
+
actions?: SectionStripAction[];
|
|
850
|
+
/** Captioned row groups; groups with no rows are skipped. */
|
|
851
|
+
groups: SectionStripGroup[];
|
|
852
|
+
/** The one quiet row shown when every group is empty. */
|
|
853
|
+
empty?: {
|
|
854
|
+
label: ReactNode;
|
|
855
|
+
onClick?: () => void;
|
|
856
|
+
testId?: string;
|
|
857
|
+
};
|
|
858
|
+
className?: string;
|
|
859
|
+
/** Root test id; children derive `-open` and per-action/per-group ids. */
|
|
860
|
+
testId?: string;
|
|
861
|
+
}
|
|
862
|
+
declare function SectionStrip({ icon: Icon, title, count, onOpen, actions, groups, empty, className, testId, }: SectionStripProps): react.JSX.Element;
|
|
863
|
+
|
|
864
|
+
interface StartHeroProps {
|
|
865
|
+
title: string;
|
|
866
|
+
subtitle?: string;
|
|
867
|
+
/** The primary way in — typically an AskBar. */
|
|
868
|
+
children?: ReactNode;
|
|
869
|
+
/** The big dashed secondary door. */
|
|
870
|
+
tile?: {
|
|
871
|
+
icon: LucideIcon;
|
|
872
|
+
label: string;
|
|
873
|
+
description?: string;
|
|
874
|
+
onClick: () => void;
|
|
875
|
+
testId?: string;
|
|
876
|
+
};
|
|
877
|
+
/** A quiet closing line — membership state, a hint. */
|
|
878
|
+
footer?: ReactNode;
|
|
879
|
+
className?: string;
|
|
880
|
+
testId?: string;
|
|
881
|
+
}
|
|
882
|
+
declare function StartHero({ title, subtitle, children, tile, footer, className, testId, }: StartHeroProps): react.JSX.Element;
|
|
883
|
+
|
|
749
884
|
/** One member shown in the avatar stack — source-agnostic, not the raw SDK shape. */
|
|
750
885
|
interface WorkspaceCardMember {
|
|
751
886
|
name: string;
|
|
@@ -1491,4 +1626,4 @@ interface AgentsPanelProps {
|
|
|
1491
1626
|
}
|
|
1492
1627
|
declare function AgentsPanel({ store, testIdPrefix }: AgentsPanelProps): react.JSX.Element;
|
|
1493
1628
|
|
|
1494
|
-
export { ASSET_REF_PREFIX, type AgentSelectionStore, AgentsPanel, type AgentsPanelProps, type AiFields, type AiFieldsConfig, AppHeader, type AppHeaderProps, type AppHeaderUser, type AppNavItem, type AppNavSection, AppShell, type AppShellProps, type ArbiBlocksConfigOptions, type ArbiMode, type ArbiUser, type AssetMaterializer, type AssetRenderProps, type AssetRenderer, AssetResolverProvider, AssetThumb, type AssistantCitation, type AssistantMessage, type AssistantStep, type BlockKit, type BuildPrompt, type BuilderModule, CitationEditor, type CitationEditorProps, type Column, ConnectionProvider, type ConnectionStatus, DataTable, DataTableBlock, type DataTableBlockColumn, type DataTableBlockProps, EmptyState, EntityIdentityBar, type EntityIdentityBarProps, type EntityIdentityField, type ExportedModule, type FirmArbiConfig, GridView, type GridViewEmptyState, type GridViewProps, type GridViewSelection, IDENTITY_NAME_MAX_LENGTH, type ImageFieldConfig, type ImageFieldFactory, LegalArbiProvider, LiveDataProvider, type LoadResult, type MaterializeOptions, type MatterContext, MemberAvatarStack, type MemberAvatarStackProps, MetricCard, type MetricCardProps, ModuleManager, type ModuleManagerProps, type ModuleRegistry, type ModuleStoreBundle, PageHeader, PageRenderer, type PageRendererProps, type PersistVia, type PromptConfig, type PromptLibrary, type Prompts, RecentActivityCard, type RecentActivityCardProps, type RecentActivityRow, type ResolvedModule, Section, type SectionProps, type StackedMember, StatGroup, type StatGroupProps, type StatItem, StudioEditor, type StudioEditorProps, type StudioPageMeta, type StudioPersistence, type StudioPersistenceConfig, ThemeBundle, ThemeState, ThemeTokens, Toolbar, UploadDropzone, type UploadDropzoneProps, type UseImageGen, VerticalBuilder, type VerticalBuilderProps, type VerticalConfig, type VerticalExport, type VerticalExportConfig, WidgetPlaceholder, WorkspaceCard, type WorkspaceCardMember, type WorkspaceCardProps, asAssetRef, assetRefId, createAgentSelectionStore, createAiFields, createArbiBlocksConfig, createArbiMaterializer, createBlockKit, createImageField, createLiveWidgets, createModuleRegistry, createModuleStore, createPromptLibrary, createSiteBlocks, createStudioPersistence, createVerticalExport, createWebsiteBlocks, iconMap, isAssetRef, isAuthenticated, materializePageData, matterToContext, useAssetImage, useAssetRenderer, useAssetResolverActive, useConnection, useFirmAiTask, useImageGen, useLiveDataActive, useSemanticSearch, useWorkspaceDocs };
|
|
1629
|
+
export { ASSET_REF_PREFIX, type AgentSelectionStore, AgentsPanel, type AgentsPanelProps, type AiFields, type AiFieldsConfig, AppHeader, type AppHeaderProps, type AppHeaderUser, type AppNavItem, type AppNavSection, AppShell, type AppShellProps, type ArbiBlocksConfigOptions, type ArbiMode, type ArbiUser, AskBar, type AskBarProps, type AssetMaterializer, type AssetRenderProps, type AssetRenderer, AssetResolverProvider, AssetThumb, type AssistantCitation, type AssistantMessage, type AssistantStep, type BlockKit, type BuildPrompt, type BuilderModule, CitationEditor, type CitationEditorProps, type Column, ConnectionProvider, type ConnectionStatus, DataTable, DataTableBlock, type DataTableBlockColumn, type DataTableBlockProps, EmptyState, EntityIdentityBar, type EntityIdentityBarProps, type EntityIdentityField, type ExportedModule, type FirmArbiConfig, GridView, type GridViewEmptyState, type GridViewProps, type GridViewSelection, IDENTITY_NAME_MAX_LENGTH, type ImageFieldConfig, type ImageFieldFactory, LegalArbiProvider, LiveDataProvider, type LoadResult, type MaterializeOptions, type MatterContext, MemberAvatarStack, type MemberAvatarStackProps, MetricCard, type MetricCardProps, ModuleManager, type ModuleManagerProps, type ModuleRegistry, type ModuleStoreBundle, PageHeader, PageRenderer, type PageRendererProps, type PersistVia, type PromptConfig, type PromptLibrary, type Prompts, RecentActivityCard, type RecentActivityCardProps, type RecentActivityRow, type ResolvedModule, ResumeStrip, type ResumeStripItem, type ResumeStripProps, Section, type SectionProps, SectionStrip, type SectionStripAction, type SectionStripGroup, type SectionStripProps, type SectionStripRow, type StackedMember, StartHero, type StartHeroProps, StatGroup, type StatGroupProps, type StatItem, StudioEditor, type StudioEditorProps, type StudioPageMeta, type StudioPersistence, type StudioPersistenceConfig, ThemeBundle, ThemeState, ThemeTokens, Toolbar, UploadDropzone, type UploadDropzoneProps, UsageMeter, type UseImageGen, VerticalBuilder, type VerticalBuilderProps, type VerticalConfig, type VerticalExport, type VerticalExportConfig, WidgetPlaceholder, WorkspaceCard, type WorkspaceCardMember, type WorkspaceCardProps, asAssetRef, assetRefId, createAgentSelectionStore, createAiFields, createArbiBlocksConfig, createArbiMaterializer, createBlockKit, createImageField, createLiveWidgets, createModuleRegistry, createModuleStore, createPromptLibrary, createSiteBlocks, createStudioPersistence, createVerticalExport, createWebsiteBlocks, iconMap, isAssetRef, isAuthenticated, materializePageData, matterToContext, useAssetImage, useAssetRenderer, useAssetResolverActive, useConnection, useFirmAiTask, useImageGen, useLiveDataActive, useSemanticSearch, useWorkspaceDocs };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ap as ThemeBundle, ax as ThemeTokens, av as ThemeState } from './index-er1L8kkn.js';
|
|
2
2
|
export { A as Accordion, a as AccordionItem, b as AccordionProps, c as ApplyThemeOptions, d as AvatarBlock, e as AvatarBlockProps, B as Banner, f as BannerProps, g as BannerTone, h as BlockImage, i as BlockImageProps, j as BlockLink, k as BlockLinkComponent, l as BlockLinkProps, C as CTABanner, m as CTABannerProps, n as Callout, o as CalloutProps, p as CalloutVariant, q as ColorToken, r as Columns, s as ColumnsProps, t as ContactField, u as ContactForm, v as ContactFormProps, w as Container, x as ContainerProps, F as FAQ, y as FAQProps, z as FONT_PAIRINGS, D as FaqItem, E as FeatureGrid, G as FeatureGridProps, H as FeatureItem, I as FontPairing, J as Footer, K as FooterColumn, L as FooterLink, M as FooterProps, N as Gallery, O as GalleryImage, P as GalleryProps, Q as Hero, R as HeroCta, S as HeroProps, T as ListBlock, U as ListBlockProps, V as ListItem, W as LogoCloud, X as LogoCloudProps, Y as LogoItem, Z as MediaText, _ as MediaTextProps, $ as NavLink, a0 as Navbar, a1 as NavbarProps, a2 as PricingPlan, a3 as PricingTable, a4 as PricingTableProps, a5 as RichTextBlock, a6 as RichTextBlockProps, a7 as SectionHeading, a8 as Spacer, a9 as SpacerProps, aa as StepItem, ab as Steps, ac as StepsProps, ad as THEME_STYLE_ID, ae as TabItem, af as Tabs, ag as TabsProps, ah as TeamGrid, ai as TeamGridProps, aj as TeamMember, ak as Testimonial, al as TestimonialGrid, am as TestimonialGridProps, an as TestimonialItem, ao as TestimonialProps, aq as ThemeEditor, ar as ThemeEditorProps, as as ThemeEmitMode, at as ThemeFonts, au as ThemePreset, aw as ThemeStoreConfig, ay as Timeline, az as TimelineCalendar, aA as TimelineCalendarProps, aB as TimelineGantt, aC as TimelineGanttProps, aD as TimelineItem, aE as TimelineProps, aF as TimelineViewMode, aG as VideoAspect, aH as VideoEmbed, aI as VideoEmbedProps, aJ as applyFontVars, aK as applyStoredTheme, aL as applyThemeVars, aM as clearFontVars, aN as clearThemeVars, aO as createThemeStore, aP as dayKey, aQ as daysUntil, aR as fmtDate, aS as fmtDateTime, aT as fontPackages, aU as formatPageRefs, aV as formatSpan, aW as fromNow, aX as gbp, aY as getFontPairing, aZ as hrs, a_ as initials, a$ as matchFontPairing, b0 as monthLabel, b1 as parseIso, b2 as pct, b3 as tid, b4 as toEmbedUrl, b5 as toHslTriplet, b6 as utcDay } from './index-er1L8kkn.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
-
import react__default, { ReactNode, ComponentType } from 'react';
|
|
4
|
+
import react__default, { ReactNode, KeyboardEventHandler, RefObject, ComponentType } from 'react';
|
|
5
5
|
import * as _arbidocs_react from '@arbidocs/react';
|
|
6
6
|
import { DocumentLike, AiRunOptions, UserMenuItem, NotifyVariant, useArbi, AiTaskStatus } from '@arbidocs/react';
|
|
7
7
|
export { AiRunOptions, AiTaskStatus, ArtifactEvent, DocumentCard, DocumentCardProps, SearchChunk, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, redlineStats, textToArtifact, toRedlineMarkdown } from '@arbidocs/react';
|
|
@@ -478,6 +478,26 @@ declare function EmptyState({ icon: Icon, title, description, action, className,
|
|
|
478
478
|
testId?: string;
|
|
479
479
|
}): react.JSX.Element;
|
|
480
480
|
|
|
481
|
+
/**
|
|
482
|
+
* One labelled quota meter: icon + label on the left, used-of-limit on the
|
|
483
|
+
* right, a thin bar underneath. The bar's tone follows pressure — quiet
|
|
484
|
+
* primary normally, amber near the limit, destructive at it — so a stack of
|
|
485
|
+
* meters reads at a glance which quota is the one to think about.
|
|
486
|
+
*/
|
|
487
|
+
declare function UsageMeter({ icon: Icon, label, value, pct, hint, className, testId, }: {
|
|
488
|
+
icon?: LucideIcon;
|
|
489
|
+
label: string;
|
|
490
|
+
/** Formatted used-of-limit text, e.g. "1,200 / 25,000" or "40 / 500 MB". */
|
|
491
|
+
value: string;
|
|
492
|
+
/** Fill percentage, 0–100 (values are clamped). */
|
|
493
|
+
pct: number;
|
|
494
|
+
/** Inline parenthetical after the label, e.g. "resets May 31, 2025" —
|
|
495
|
+
* same font as the label, so the meter never grows an extra row. */
|
|
496
|
+
hint?: string;
|
|
497
|
+
className?: string;
|
|
498
|
+
testId?: string;
|
|
499
|
+
}): react.JSX.Element;
|
|
500
|
+
|
|
481
501
|
interface UploadDropzoneProps {
|
|
482
502
|
/** Called with the chosen/dropped files. */
|
|
483
503
|
onFiles: (files: File[]) => void;
|
|
@@ -746,6 +766,121 @@ interface RecentActivityCardProps {
|
|
|
746
766
|
*/
|
|
747
767
|
declare function RecentActivityCard({ icon: Icon, title, count, onOpen, actionLabel, actionIcon: ActionIcon, onAction, rows, caption, emptyText, emptyActionLabel, className, testId, }: RecentActivityCardProps): react.JSX.Element;
|
|
748
768
|
|
|
769
|
+
interface AskBarProps {
|
|
770
|
+
/** Receives the trimmed question; the caller owns what asking means. */
|
|
771
|
+
onAsk: (text: string) => void;
|
|
772
|
+
/** Second destination for the same text — retrieval. Omit to hide. */
|
|
773
|
+
onSearch?: (text: string) => void;
|
|
774
|
+
/** Prefill-on-click starter questions, shown under the input. */
|
|
775
|
+
suggestions?: string[];
|
|
776
|
+
placeholder?: string;
|
|
777
|
+
askLabel?: string;
|
|
778
|
+
searchLabel?: string;
|
|
779
|
+
/** Controlled value. Omit for the bar to own its own text. */
|
|
780
|
+
value?: string;
|
|
781
|
+
onValueChange?: (value: string) => void;
|
|
782
|
+
/** Raw keydown on the input — lets a consumer run an autocomplete
|
|
783
|
+
* (arrow/Enter/Tab/Escape) before the form's own submit handling.
|
|
784
|
+
* preventDefault() on Enter suppresses the submit. */
|
|
785
|
+
onInputKeyDown?: KeyboardEventHandler<HTMLInputElement>;
|
|
786
|
+
/** Popover anchored to the pill (e.g. a slash-command menu). Rendered in a
|
|
787
|
+
* relative wrapper around the form, so absolute children position against
|
|
788
|
+
* the pill. */
|
|
789
|
+
menu?: ReactNode;
|
|
790
|
+
/** External input ref, for consumers that refocus after menu selection. */
|
|
791
|
+
inputRef?: RefObject<HTMLInputElement | null>;
|
|
792
|
+
className?: string;
|
|
793
|
+
/** Root test id; children derive `-input`, `-submit`, `-search`, `-suggestion`. */
|
|
794
|
+
testId?: string;
|
|
795
|
+
}
|
|
796
|
+
declare function AskBar({ onAsk, onSearch, suggestions, placeholder, askLabel, searchLabel, value, onValueChange, onInputKeyDown, menu, inputRef: externalInputRef, className, testId, }: AskBarProps): react.JSX.Element;
|
|
797
|
+
|
|
798
|
+
interface ResumeStripItem {
|
|
799
|
+
id: string;
|
|
800
|
+
/** The item's type mark — a chat glyph, a document's file icon. */
|
|
801
|
+
leading?: ReactNode;
|
|
802
|
+
title: string;
|
|
803
|
+
/** Compact age, e.g. "2h", "3d". */
|
|
804
|
+
meta?: string;
|
|
805
|
+
onClick?: () => void;
|
|
806
|
+
}
|
|
807
|
+
interface ResumeStripProps {
|
|
808
|
+
items: ResumeStripItem[];
|
|
809
|
+
/** Says what the strip is. */
|
|
810
|
+
caption?: string;
|
|
811
|
+
className?: string;
|
|
812
|
+
/** Root test id; chips derive `-item`. */
|
|
813
|
+
testId?: string;
|
|
814
|
+
}
|
|
815
|
+
declare function ResumeStrip({ items, caption, className, testId, }: ResumeStripProps): react.JSX.Element | null;
|
|
816
|
+
|
|
817
|
+
interface SectionStripRow {
|
|
818
|
+
id: string;
|
|
819
|
+
/** The row's mark — a pin, a dot, a tiny glyph. Consumer-supplied. */
|
|
820
|
+
leading?: ReactNode;
|
|
821
|
+
title: string;
|
|
822
|
+
/** Pinned right: a date, an age. */
|
|
823
|
+
meta?: string;
|
|
824
|
+
onClick?: () => void;
|
|
825
|
+
}
|
|
826
|
+
interface SectionStripGroup {
|
|
827
|
+
/** Says what the group is — "Upcoming", "Recent". */
|
|
828
|
+
caption: string;
|
|
829
|
+
rows: SectionStripRow[];
|
|
830
|
+
/** Test id for this group's rows. Falls back to `<root>-row`. */
|
|
831
|
+
rowTestId?: string;
|
|
832
|
+
}
|
|
833
|
+
interface SectionStripAction {
|
|
834
|
+
icon?: LucideIcon;
|
|
835
|
+
label: string;
|
|
836
|
+
onClick: () => void;
|
|
837
|
+
testId?: string;
|
|
838
|
+
}
|
|
839
|
+
interface SectionStripProps {
|
|
840
|
+
/** Glyph beside the title, in the header. */
|
|
841
|
+
icon?: LucideIcon;
|
|
842
|
+
/** The section this band is about. */
|
|
843
|
+
title: string;
|
|
844
|
+
/** Total across everything, not just what's listed. Omit to hide. */
|
|
845
|
+
count?: number;
|
|
846
|
+
/** Header click — go to this section's full page. */
|
|
847
|
+
onOpen?: () => void;
|
|
848
|
+
/** Header-right actions: distinct doors into the section's experiences. */
|
|
849
|
+
actions?: SectionStripAction[];
|
|
850
|
+
/** Captioned row groups; groups with no rows are skipped. */
|
|
851
|
+
groups: SectionStripGroup[];
|
|
852
|
+
/** The one quiet row shown when every group is empty. */
|
|
853
|
+
empty?: {
|
|
854
|
+
label: ReactNode;
|
|
855
|
+
onClick?: () => void;
|
|
856
|
+
testId?: string;
|
|
857
|
+
};
|
|
858
|
+
className?: string;
|
|
859
|
+
/** Root test id; children derive `-open` and per-action/per-group ids. */
|
|
860
|
+
testId?: string;
|
|
861
|
+
}
|
|
862
|
+
declare function SectionStrip({ icon: Icon, title, count, onOpen, actions, groups, empty, className, testId, }: SectionStripProps): react.JSX.Element;
|
|
863
|
+
|
|
864
|
+
interface StartHeroProps {
|
|
865
|
+
title: string;
|
|
866
|
+
subtitle?: string;
|
|
867
|
+
/** The primary way in — typically an AskBar. */
|
|
868
|
+
children?: ReactNode;
|
|
869
|
+
/** The big dashed secondary door. */
|
|
870
|
+
tile?: {
|
|
871
|
+
icon: LucideIcon;
|
|
872
|
+
label: string;
|
|
873
|
+
description?: string;
|
|
874
|
+
onClick: () => void;
|
|
875
|
+
testId?: string;
|
|
876
|
+
};
|
|
877
|
+
/** A quiet closing line — membership state, a hint. */
|
|
878
|
+
footer?: ReactNode;
|
|
879
|
+
className?: string;
|
|
880
|
+
testId?: string;
|
|
881
|
+
}
|
|
882
|
+
declare function StartHero({ title, subtitle, children, tile, footer, className, testId, }: StartHeroProps): react.JSX.Element;
|
|
883
|
+
|
|
749
884
|
/** One member shown in the avatar stack — source-agnostic, not the raw SDK shape. */
|
|
750
885
|
interface WorkspaceCardMember {
|
|
751
886
|
name: string;
|
|
@@ -1491,4 +1626,4 @@ interface AgentsPanelProps {
|
|
|
1491
1626
|
}
|
|
1492
1627
|
declare function AgentsPanel({ store, testIdPrefix }: AgentsPanelProps): react.JSX.Element;
|
|
1493
1628
|
|
|
1494
|
-
export { ASSET_REF_PREFIX, type AgentSelectionStore, AgentsPanel, type AgentsPanelProps, type AiFields, type AiFieldsConfig, AppHeader, type AppHeaderProps, type AppHeaderUser, type AppNavItem, type AppNavSection, AppShell, type AppShellProps, type ArbiBlocksConfigOptions, type ArbiMode, type ArbiUser, type AssetMaterializer, type AssetRenderProps, type AssetRenderer, AssetResolverProvider, AssetThumb, type AssistantCitation, type AssistantMessage, type AssistantStep, type BlockKit, type BuildPrompt, type BuilderModule, CitationEditor, type CitationEditorProps, type Column, ConnectionProvider, type ConnectionStatus, DataTable, DataTableBlock, type DataTableBlockColumn, type DataTableBlockProps, EmptyState, EntityIdentityBar, type EntityIdentityBarProps, type EntityIdentityField, type ExportedModule, type FirmArbiConfig, GridView, type GridViewEmptyState, type GridViewProps, type GridViewSelection, IDENTITY_NAME_MAX_LENGTH, type ImageFieldConfig, type ImageFieldFactory, LegalArbiProvider, LiveDataProvider, type LoadResult, type MaterializeOptions, type MatterContext, MemberAvatarStack, type MemberAvatarStackProps, MetricCard, type MetricCardProps, ModuleManager, type ModuleManagerProps, type ModuleRegistry, type ModuleStoreBundle, PageHeader, PageRenderer, type PageRendererProps, type PersistVia, type PromptConfig, type PromptLibrary, type Prompts, RecentActivityCard, type RecentActivityCardProps, type RecentActivityRow, type ResolvedModule, Section, type SectionProps, type StackedMember, StatGroup, type StatGroupProps, type StatItem, StudioEditor, type StudioEditorProps, type StudioPageMeta, type StudioPersistence, type StudioPersistenceConfig, ThemeBundle, ThemeState, ThemeTokens, Toolbar, UploadDropzone, type UploadDropzoneProps, type UseImageGen, VerticalBuilder, type VerticalBuilderProps, type VerticalConfig, type VerticalExport, type VerticalExportConfig, WidgetPlaceholder, WorkspaceCard, type WorkspaceCardMember, type WorkspaceCardProps, asAssetRef, assetRefId, createAgentSelectionStore, createAiFields, createArbiBlocksConfig, createArbiMaterializer, createBlockKit, createImageField, createLiveWidgets, createModuleRegistry, createModuleStore, createPromptLibrary, createSiteBlocks, createStudioPersistence, createVerticalExport, createWebsiteBlocks, iconMap, isAssetRef, isAuthenticated, materializePageData, matterToContext, useAssetImage, useAssetRenderer, useAssetResolverActive, useConnection, useFirmAiTask, useImageGen, useLiveDataActive, useSemanticSearch, useWorkspaceDocs };
|
|
1629
|
+
export { ASSET_REF_PREFIX, type AgentSelectionStore, AgentsPanel, type AgentsPanelProps, type AiFields, type AiFieldsConfig, AppHeader, type AppHeaderProps, type AppHeaderUser, type AppNavItem, type AppNavSection, AppShell, type AppShellProps, type ArbiBlocksConfigOptions, type ArbiMode, type ArbiUser, AskBar, type AskBarProps, type AssetMaterializer, type AssetRenderProps, type AssetRenderer, AssetResolverProvider, AssetThumb, type AssistantCitation, type AssistantMessage, type AssistantStep, type BlockKit, type BuildPrompt, type BuilderModule, CitationEditor, type CitationEditorProps, type Column, ConnectionProvider, type ConnectionStatus, DataTable, DataTableBlock, type DataTableBlockColumn, type DataTableBlockProps, EmptyState, EntityIdentityBar, type EntityIdentityBarProps, type EntityIdentityField, type ExportedModule, type FirmArbiConfig, GridView, type GridViewEmptyState, type GridViewProps, type GridViewSelection, IDENTITY_NAME_MAX_LENGTH, type ImageFieldConfig, type ImageFieldFactory, LegalArbiProvider, LiveDataProvider, type LoadResult, type MaterializeOptions, type MatterContext, MemberAvatarStack, type MemberAvatarStackProps, MetricCard, type MetricCardProps, ModuleManager, type ModuleManagerProps, type ModuleRegistry, type ModuleStoreBundle, PageHeader, PageRenderer, type PageRendererProps, type PersistVia, type PromptConfig, type PromptLibrary, type Prompts, RecentActivityCard, type RecentActivityCardProps, type RecentActivityRow, type ResolvedModule, ResumeStrip, type ResumeStripItem, type ResumeStripProps, Section, type SectionProps, SectionStrip, type SectionStripAction, type SectionStripGroup, type SectionStripProps, type SectionStripRow, type StackedMember, StartHero, type StartHeroProps, StatGroup, type StatGroupProps, type StatItem, StudioEditor, type StudioEditorProps, type StudioPageMeta, type StudioPersistence, type StudioPersistenceConfig, ThemeBundle, ThemeState, ThemeTokens, Toolbar, UploadDropzone, type UploadDropzoneProps, UsageMeter, type UseImageGen, VerticalBuilder, type VerticalBuilderProps, type VerticalConfig, type VerticalExport, type VerticalExportConfig, WidgetPlaceholder, WorkspaceCard, type WorkspaceCardMember, type WorkspaceCardProps, asAssetRef, assetRefId, createAgentSelectionStore, createAiFields, createArbiBlocksConfig, createArbiMaterializer, createBlockKit, createImageField, createLiveWidgets, createModuleRegistry, createModuleStore, createPromptLibrary, createSiteBlocks, createStudioPersistence, createVerticalExport, createWebsiteBlocks, iconMap, isAssetRef, isAuthenticated, materializePageData, matterToContext, useAssetImage, useAssetRenderer, useAssetResolverActive, useConnection, useFirmAiTask, useImageGen, useLiveDataActive, useSemanticSearch, useWorkspaceDocs };
|