@erdoai/ui 0.1.33 → 0.1.36

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.d.cts CHANGED
@@ -237,7 +237,8 @@ interface DataConfig {
237
237
  }>;
238
238
  }
239
239
  interface BaseChartProps {
240
- title: string;
240
+ /** Chart title - optional if parent handles title display */
241
+ title?: string;
241
242
  subtitle?: string | null;
242
243
  data: any[];
243
244
  displayConfig: ChartConfig;
@@ -298,7 +299,8 @@ interface SortCondition$1 {
298
299
  }
299
300
  interface DatasetChartProps {
300
301
  chartType: 'bar' | 'line' | 'pie' | 'histogram' | 'scatter' | 'heatmap';
301
- title: string;
302
+ /** Chart title - optional if parent handles title display */
303
+ title?: string;
302
304
  invocationId: string;
303
305
  datasetSlugs: string[];
304
306
  xAxis: Axis$1;
@@ -312,6 +314,8 @@ interface DatasetChartProps {
312
314
  sort?: SortCondition$1[];
313
315
  /** Optional callback for scroll updates when chart loads */
314
316
  onScrollUpdate?: () => void;
317
+ /** Enable download button (default: true) */
318
+ enableDownload?: boolean;
315
319
  }
316
320
  declare const DatasetChart: React__default.NamedExoticComponent<DatasetChartProps>;
317
321
 
@@ -322,7 +326,8 @@ interface TableColumn$1 {
322
326
  value_type?: 'number' | 'category' | 'date';
323
327
  }
324
328
  interface DatasetTableProps {
325
- title: string;
329
+ /** Table title - optional if parent handles title display */
330
+ title?: string;
326
331
  invocationId: string;
327
332
  datasetSlug: string;
328
333
  columns?: TableColumn$1[];
@@ -750,13 +755,13 @@ declare class ErrorBoundary extends React__default.Component<{
750
755
  }
751
756
 
752
757
  /**
753
- * Spinning loader shown while content is being written/generated.
758
+ * Bouncing dots loader shown while text is streaming.
754
759
  */
755
760
  declare function WritingLoader(): react_jsx_runtime.JSX.Element;
756
761
  /**
757
- * Bouncing dots loader shown while streaming content is being parsed.
762
+ * Centered spinner loader for charts/tables loading.
758
763
  */
759
- declare function StreamingLoader(): react_jsx_runtime.JSX.Element;
764
+ declare function Loader(): react_jsx_runtime.JSX.Element;
760
765
  /** Props passed to all content components */
761
766
  interface ContentComponentProps {
762
767
  content: ContentItem;
@@ -1495,4 +1500,4 @@ declare function handleIncrementalMixedJsonParsing(outputContent: MessageContent
1495
1500
  */
1496
1501
  declare function handleSSEEvent(eventType: string, event: SSEEventData, path: string[], threadID: string, activeMessagesByID: Record<string, MessageWithContents>, currentEntity?: Entity | null, parents?: Entity[], entityIds?: Record<string, string>): Entity | null;
1497
1502
 
1498
- export { BarChart, type BaseChartProps, type BotInvocation, BotInvocationContent, type BotInvocationContentData, type BotInvocationContentProps, type BotInvocationData, type BotInvocationEventInfo, type BotInvocationStatusInfo, Chart, type ChartConfig, ChartContainer, ChartContent, type ChartContentProps, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, CodeexecContent, type CodeexecContentProps, CodegenContent, type CodegenContentProps, CollapsibleCodeBlock, type CollapsibleCodeBlockProps, Content, type ContentChartConfig, type ContentChunk, type ContentComponentProps, type ContentProps, type ContentType, type DataFetcher, DatasetChart, type DatasetChartProps, type DatasetDetails, DatasetDownload, type DatasetDownloadProps, DatasetTable, type DatasetTableProps, type Entity, type EntityType, ErdoProvider, type ErdoProviderConfig, type ErdoProviderProps, ErdoUI, type ErdoUIProps, ErrorBoundary, ExecutionStatus, ExpandableOutputContent, type ExpandableOutputContentProps, HeatmapChart, InvocationEvent, type InvocationEventProps, InvocationEvents, type InvocationEventsProps, InvocationStatus, JSONStreamParser, type JSONValue, JsonContent, type JsonContentProps, LineChart, Log, LogContent, type LogContentProps, type LogProps, MarkdownContent, type MarkdownContentProps, type Message, type MessageContent, type MessageStreamingState, type MessageWithContents, type NullString, Output, type OutputContent, type OutputProps, type OutputWithContents, PieChart, type ResolvedBotInvocation, type ResultHandler, type SSEEventData, ScatterChart, type SpinnerStatus, SqlContent, type SqlContentProps, type Status, type StatusEvent, StatusSpinner, type StatusSpinnerProps, StderrText, StdoutText, StdwarnText, type Step, StepInvocation, type StepInvocationProps, StepInvocationStatus, type StepInvocationStatusProps, StreamingLoader, TableContent, type TableContentProps, TextContent, type TextContentProps, ThinkingContent, type ThinkingContentProps, ToolGroupContent, type ToolGroupContentProps, type UseThreadOptions, type UseThreadReturn, WebParseContent, type WebParseContentProps, WebSearchContent, type WebSearchContentProps, type WrapperType, WritingLoader, cn, extractContentItems, formatValue, handleIncrementalMixedJsonParsing, handleSSEEvent, isJsonLike, isNullString, isParsingComplete, isParsingInProgress, isWhitespaceChar, parseCompleteJson, parseMixedJson, parseToDate, resolveKeyFromData, toSnakeCase, unwrapNullString, unwrapNullStringOr, useChartZoom, useDatasetContents, useErdoConfig, useErdoConfigOptional, useMultipleDatasetContents, useThread };
1503
+ export { BarChart, type BaseChartProps, type BotInvocation, BotInvocationContent, type BotInvocationContentData, type BotInvocationContentProps, type BotInvocationData, type BotInvocationEventInfo, type BotInvocationStatusInfo, Chart, type ChartConfig, ChartContainer, ChartContent, type ChartContentProps, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, CodeexecContent, type CodeexecContentProps, CodegenContent, type CodegenContentProps, CollapsibleCodeBlock, type CollapsibleCodeBlockProps, Content, type ContentChartConfig, type ContentChunk, type ContentComponentProps, type ContentProps, type ContentType, type DataFetcher, DatasetChart, type DatasetChartProps, type DatasetDetails, DatasetDownload, type DatasetDownloadProps, DatasetTable, type DatasetTableProps, type Entity, type EntityType, ErdoProvider, type ErdoProviderConfig, type ErdoProviderProps, ErdoUI, type ErdoUIProps, ErrorBoundary, ExecutionStatus, ExpandableOutputContent, type ExpandableOutputContentProps, HeatmapChart, InvocationEvent, type InvocationEventProps, InvocationEvents, type InvocationEventsProps, InvocationStatus, JSONStreamParser, type JSONValue, JsonContent, type JsonContentProps, LineChart, Loader, Log, LogContent, type LogContentProps, type LogProps, MarkdownContent, type MarkdownContentProps, type Message, type MessageContent, type MessageStreamingState, type MessageWithContents, type NullString, Output, type OutputContent, type OutputProps, type OutputWithContents, PieChart, type ResolvedBotInvocation, type ResultHandler, type SSEEventData, ScatterChart, type SpinnerStatus, SqlContent, type SqlContentProps, type Status, type StatusEvent, StatusSpinner, type StatusSpinnerProps, StderrText, StdoutText, StdwarnText, type Step, StepInvocation, type StepInvocationProps, StepInvocationStatus, type StepInvocationStatusProps, TableContent, type TableContentProps, TextContent, type TextContentProps, ThinkingContent, type ThinkingContentProps, ToolGroupContent, type ToolGroupContentProps, type UseThreadOptions, type UseThreadReturn, WebParseContent, type WebParseContentProps, WebSearchContent, type WebSearchContentProps, type WrapperType, WritingLoader, cn, extractContentItems, formatValue, handleIncrementalMixedJsonParsing, handleSSEEvent, isJsonLike, isNullString, isParsingComplete, isParsingInProgress, isWhitespaceChar, parseCompleteJson, parseMixedJson, parseToDate, resolveKeyFromData, toSnakeCase, unwrapNullString, unwrapNullStringOr, useChartZoom, useDatasetContents, useErdoConfig, useErdoConfigOptional, useMultipleDatasetContents, useThread };
package/dist/index.d.ts CHANGED
@@ -237,7 +237,8 @@ interface DataConfig {
237
237
  }>;
238
238
  }
239
239
  interface BaseChartProps {
240
- title: string;
240
+ /** Chart title - optional if parent handles title display */
241
+ title?: string;
241
242
  subtitle?: string | null;
242
243
  data: any[];
243
244
  displayConfig: ChartConfig;
@@ -298,7 +299,8 @@ interface SortCondition$1 {
298
299
  }
299
300
  interface DatasetChartProps {
300
301
  chartType: 'bar' | 'line' | 'pie' | 'histogram' | 'scatter' | 'heatmap';
301
- title: string;
302
+ /** Chart title - optional if parent handles title display */
303
+ title?: string;
302
304
  invocationId: string;
303
305
  datasetSlugs: string[];
304
306
  xAxis: Axis$1;
@@ -312,6 +314,8 @@ interface DatasetChartProps {
312
314
  sort?: SortCondition$1[];
313
315
  /** Optional callback for scroll updates when chart loads */
314
316
  onScrollUpdate?: () => void;
317
+ /** Enable download button (default: true) */
318
+ enableDownload?: boolean;
315
319
  }
316
320
  declare const DatasetChart: React__default.NamedExoticComponent<DatasetChartProps>;
317
321
 
@@ -322,7 +326,8 @@ interface TableColumn$1 {
322
326
  value_type?: 'number' | 'category' | 'date';
323
327
  }
324
328
  interface DatasetTableProps {
325
- title: string;
329
+ /** Table title - optional if parent handles title display */
330
+ title?: string;
326
331
  invocationId: string;
327
332
  datasetSlug: string;
328
333
  columns?: TableColumn$1[];
@@ -750,13 +755,13 @@ declare class ErrorBoundary extends React__default.Component<{
750
755
  }
751
756
 
752
757
  /**
753
- * Spinning loader shown while content is being written/generated.
758
+ * Bouncing dots loader shown while text is streaming.
754
759
  */
755
760
  declare function WritingLoader(): react_jsx_runtime.JSX.Element;
756
761
  /**
757
- * Bouncing dots loader shown while streaming content is being parsed.
762
+ * Centered spinner loader for charts/tables loading.
758
763
  */
759
- declare function StreamingLoader(): react_jsx_runtime.JSX.Element;
764
+ declare function Loader(): react_jsx_runtime.JSX.Element;
760
765
  /** Props passed to all content components */
761
766
  interface ContentComponentProps {
762
767
  content: ContentItem;
@@ -1495,4 +1500,4 @@ declare function handleIncrementalMixedJsonParsing(outputContent: MessageContent
1495
1500
  */
1496
1501
  declare function handleSSEEvent(eventType: string, event: SSEEventData, path: string[], threadID: string, activeMessagesByID: Record<string, MessageWithContents>, currentEntity?: Entity | null, parents?: Entity[], entityIds?: Record<string, string>): Entity | null;
1497
1502
 
1498
- export { BarChart, type BaseChartProps, type BotInvocation, BotInvocationContent, type BotInvocationContentData, type BotInvocationContentProps, type BotInvocationData, type BotInvocationEventInfo, type BotInvocationStatusInfo, Chart, type ChartConfig, ChartContainer, ChartContent, type ChartContentProps, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, CodeexecContent, type CodeexecContentProps, CodegenContent, type CodegenContentProps, CollapsibleCodeBlock, type CollapsibleCodeBlockProps, Content, type ContentChartConfig, type ContentChunk, type ContentComponentProps, type ContentProps, type ContentType, type DataFetcher, DatasetChart, type DatasetChartProps, type DatasetDetails, DatasetDownload, type DatasetDownloadProps, DatasetTable, type DatasetTableProps, type Entity, type EntityType, ErdoProvider, type ErdoProviderConfig, type ErdoProviderProps, ErdoUI, type ErdoUIProps, ErrorBoundary, ExecutionStatus, ExpandableOutputContent, type ExpandableOutputContentProps, HeatmapChart, InvocationEvent, type InvocationEventProps, InvocationEvents, type InvocationEventsProps, InvocationStatus, JSONStreamParser, type JSONValue, JsonContent, type JsonContentProps, LineChart, Log, LogContent, type LogContentProps, type LogProps, MarkdownContent, type MarkdownContentProps, type Message, type MessageContent, type MessageStreamingState, type MessageWithContents, type NullString, Output, type OutputContent, type OutputProps, type OutputWithContents, PieChart, type ResolvedBotInvocation, type ResultHandler, type SSEEventData, ScatterChart, type SpinnerStatus, SqlContent, type SqlContentProps, type Status, type StatusEvent, StatusSpinner, type StatusSpinnerProps, StderrText, StdoutText, StdwarnText, type Step, StepInvocation, type StepInvocationProps, StepInvocationStatus, type StepInvocationStatusProps, StreamingLoader, TableContent, type TableContentProps, TextContent, type TextContentProps, ThinkingContent, type ThinkingContentProps, ToolGroupContent, type ToolGroupContentProps, type UseThreadOptions, type UseThreadReturn, WebParseContent, type WebParseContentProps, WebSearchContent, type WebSearchContentProps, type WrapperType, WritingLoader, cn, extractContentItems, formatValue, handleIncrementalMixedJsonParsing, handleSSEEvent, isJsonLike, isNullString, isParsingComplete, isParsingInProgress, isWhitespaceChar, parseCompleteJson, parseMixedJson, parseToDate, resolveKeyFromData, toSnakeCase, unwrapNullString, unwrapNullStringOr, useChartZoom, useDatasetContents, useErdoConfig, useErdoConfigOptional, useMultipleDatasetContents, useThread };
1503
+ export { BarChart, type BaseChartProps, type BotInvocation, BotInvocationContent, type BotInvocationContentData, type BotInvocationContentProps, type BotInvocationData, type BotInvocationEventInfo, type BotInvocationStatusInfo, Chart, type ChartConfig, ChartContainer, ChartContent, type ChartContentProps, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, CodeexecContent, type CodeexecContentProps, CodegenContent, type CodegenContentProps, CollapsibleCodeBlock, type CollapsibleCodeBlockProps, Content, type ContentChartConfig, type ContentChunk, type ContentComponentProps, type ContentProps, type ContentType, type DataFetcher, DatasetChart, type DatasetChartProps, type DatasetDetails, DatasetDownload, type DatasetDownloadProps, DatasetTable, type DatasetTableProps, type Entity, type EntityType, ErdoProvider, type ErdoProviderConfig, type ErdoProviderProps, ErdoUI, type ErdoUIProps, ErrorBoundary, ExecutionStatus, ExpandableOutputContent, type ExpandableOutputContentProps, HeatmapChart, InvocationEvent, type InvocationEventProps, InvocationEvents, type InvocationEventsProps, InvocationStatus, JSONStreamParser, type JSONValue, JsonContent, type JsonContentProps, LineChart, Loader, Log, LogContent, type LogContentProps, type LogProps, MarkdownContent, type MarkdownContentProps, type Message, type MessageContent, type MessageStreamingState, type MessageWithContents, type NullString, Output, type OutputContent, type OutputProps, type OutputWithContents, PieChart, type ResolvedBotInvocation, type ResultHandler, type SSEEventData, ScatterChart, type SpinnerStatus, SqlContent, type SqlContentProps, type Status, type StatusEvent, StatusSpinner, type StatusSpinnerProps, StderrText, StdoutText, StdwarnText, type Step, StepInvocation, type StepInvocationProps, StepInvocationStatus, type StepInvocationStatusProps, TableContent, type TableContentProps, TextContent, type TextContentProps, ThinkingContent, type ThinkingContentProps, ToolGroupContent, type ToolGroupContentProps, type UseThreadOptions, type UseThreadReturn, WebParseContent, type WebParseContentProps, WebSearchContent, type WebSearchContentProps, type WrapperType, WritingLoader, cn, extractContentItems, formatValue, handleIncrementalMixedJsonParsing, handleSSEEvent, isJsonLike, isNullString, isParsingComplete, isParsingInProgress, isWhitespaceChar, parseCompleteJson, parseMixedJson, parseToDate, resolveKeyFromData, toSnakeCase, unwrapNullString, unwrapNullStringOr, useChartZoom, useDatasetContents, useErdoConfig, useErdoConfigOptional, useMultipleDatasetContents, useThread };