@factorialco/f0-react 1.306.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>;
@@ -6446,6 +6469,11 @@ declare module "gridstack" {
6446
6469
  }
6447
6470
 
6448
6471
 
6472
+ declare namespace Calendar {
6473
+ var displayName: string;
6474
+ }
6475
+
6476
+
6449
6477
  declare module "@tiptap/core" {
6450
6478
  interface Commands<ReturnType> {
6451
6479
  moodTracker: {
@@ -6453,8 +6481,3 @@ declare module "@tiptap/core" {
6453
6481
  };
6454
6482
  }
6455
6483
  }
6456
-
6457
-
6458
- declare namespace Calendar {
6459
- var displayName: string;
6460
- }