@factorialco/f0-react 1.305.0 → 1.306.1

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.
@@ -48,11 +48,13 @@ import { HTMLInputTypeAttribute } from 'react';
48
48
  import { IconCellValue } from './types/icon';
49
49
  import { IconType as IconType_2 } from '../../f0';
50
50
  import { InFilterOptions } from './InFilter/types';
51
+ import { InputProps as InputProps_2 } from '@copilotkit/react-ui';
51
52
  import { JSONContent } from '@tiptap/react';
52
53
  import { JSONContent as JSONContent_2 } from '@tiptap/core';
53
54
  import { JSX as JSX_2 } from 'react';
54
55
  import { LineChartProps } from '../../../components/Charts/LineChart';
55
56
  import { LongTextCellValue } from './types/longText';
57
+ import { Message as Message_2 } from '@copilotkit/shared';
56
58
  import { NumberCellValue } from './types/number';
57
59
  import { NumberCellValue as NumberCellValue_2 } from '../../value-display/types/number';
58
60
  import { NumberFilterOptions } from './NumberFilter/NumberFilter';
@@ -412,6 +414,8 @@ declare type AIButton = {
412
414
  */
413
415
  export declare const AiChat: () => JSX_2.Element | null;
414
416
 
417
+ export declare const AiChatOneIcon: ForwardRefExoticComponent<Omit<OneIconProps, "ref"> & RefAttributes<SVGSVGElement>>;
418
+
415
419
  export declare const AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, onThumbsUp, onThumbsDown, children, agent, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
416
420
 
417
421
  export declare type AiChatProviderProps = {
@@ -467,6 +471,12 @@ declare type AiChatProviderReturnValue = {
467
471
  */
468
472
  clear: () => void;
469
473
  /* Excluded from this release type: setClearFunction */
474
+ /**
475
+ * Send a message to the chat
476
+ * @param message - The message content as a string, or a full Message object
477
+ */
478
+ sendMessage: (message: string | Message_2) => void;
479
+ /* Excluded from this release type: setSendMessageFunction */
470
480
  } & Pick<AiChatState, "greeting" | "agent">;
471
481
 
472
482
  declare interface AiChatState {
@@ -487,6 +497,8 @@ declare interface AiChatState {
487
497
  }) => void;
488
498
  }
489
499
 
500
+ export declare const AiChatTextarea: ({ submitLabel, inProgress, onSend, onStop, }: ChatTextareaProps) => JSX_2.Element;
501
+
490
502
  /**
491
503
  * @experimental This is an experimental component use it at your own risk
492
504
  */
@@ -1396,6 +1408,10 @@ declare type ChartItem<K extends ChartConfig> = {
1396
1408
 
1397
1409
  export declare const ChartWidgetEmptyState: ForwardRefExoticComponent<Props_5 & RefAttributes<HTMLDivElement>>;
1398
1410
 
1411
+ declare type ChatTextareaProps = InputProps_2 & {
1412
+ submitLabel?: string;
1413
+ };
1414
+
1399
1415
  export declare type ChatWidgetEmptyStateProps = Props_5;
1400
1416
 
1401
1417
  declare type ChildrenPaginationInfo = {
@@ -4497,6 +4513,13 @@ declare type OneFilterPickerRootProps<Definition extends FiltersDefinition> = {
4497
4513
  onOpenChange?: (isOpen: boolean) => void;
4498
4514
  };
4499
4515
 
4516
+ declare interface OneIconProps extends SVGProps<SVGSVGElement> {
4517
+ spin?: boolean;
4518
+ hover?: boolean;
4519
+ background?: string;
4520
+ size?: "xs" | "sm" | "md" | "lg";
4521
+ }
4522
+
4500
4523
  export declare const OneModal: OneModalComponent;
4501
4524
 
4502
4525
  declare const OneModal_2: FC<OneModalProps>;
@@ -6401,23 +6424,6 @@ declare global {
6401
6424
  }
6402
6425
  }
6403
6426
 
6404
- declare module "gridstack" {
6405
- interface GridStackWidget {
6406
- id?: string;
6407
- allowedSizes?: Array<{
6408
- w: number;
6409
- h: number;
6410
- }>;
6411
- meta?: Record<string, unknown>;
6412
- }
6413
- interface GridStackNode {
6414
- allowedSizes?: Array<{
6415
- w: number;
6416
- h: number;
6417
- }>;
6418
- }
6419
- }
6420
-
6421
6427
 
6422
6428
  declare module "@tiptap/core" {
6423
6429
  interface Commands<ReturnType> {
@@ -6445,6 +6451,23 @@ declare module "@tiptap/core" {
6445
6451
  }
6446
6452
  }
6447
6453
 
6454
+ declare module "gridstack" {
6455
+ interface GridStackWidget {
6456
+ id?: string;
6457
+ allowedSizes?: Array<{
6458
+ w: number;
6459
+ h: number;
6460
+ }>;
6461
+ meta?: Record<string, unknown>;
6462
+ }
6463
+ interface GridStackNode {
6464
+ allowedSizes?: Array<{
6465
+ w: number;
6466
+ h: number;
6467
+ }>;
6468
+ }
6469
+ }
6470
+
6448
6471
 
6449
6472
  declare namespace Calendar {
6450
6473
  var displayName: string;