@factorialco/f0-react 1.341.1 → 1.342.0
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/{DataCollectionStorageProvider-Cy_6qElR.js → DataCollectionStorageProvider-BqnaTttk.js} +1 -1
- package/dist/{index-DsXvZIpa.js → F0AiChat-B8wy-sZN.js} +73152 -51091
- package/dist/F0AiChat.css +1 -0
- package/dist/F0HILActionConfirmation-D2WmsBaz.js +80 -0
- package/dist/ai.d.ts +309 -517
- package/dist/ai.js +43 -15
- package/dist/experimental.d.ts +5 -172
- package/dist/experimental.js +1810 -1880
- package/dist/f0.d.ts +467 -0
- package/dist/f0.js +105 -63
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/AiChatTranslationsProvider-CYkvL4C-.js +0 -22024
- package/dist/AiChatTranslationsProvider.css +0 -1
package/dist/f0.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { AIMessage } from '@copilotkit/shared';
|
|
1
2
|
import { AlertTagCellValue } from '../../value-display/types/alertTag';
|
|
2
3
|
import { AlertTagCellValue as AlertTagCellValue_2 } from './types/alertTag';
|
|
3
4
|
import { AmountCellValue } from '../../value-display/types/amount';
|
|
4
5
|
import { AmountCellValue as AmountCellValue_2 } from './types/amount';
|
|
5
6
|
import { AnchorHTMLAttributes } from 'react';
|
|
6
7
|
import { AriaAttributes } from 'react';
|
|
8
|
+
import { AssistantMessageProps } from '@copilotkit/react-ui';
|
|
7
9
|
import { AutoFill as AutoFill_2 } from 'react';
|
|
8
10
|
import { AvatarListCellValue } from '../../value-display/types/avatarList';
|
|
9
11
|
import { AvatarListCellValue as AvatarListCellValue_2 } from './types/avatarList';
|
|
@@ -23,6 +25,7 @@ import { CompanyCellValue as CompanyCellValue_2 } from './types/company';
|
|
|
23
25
|
import { ComponentProps } from 'react';
|
|
24
26
|
import { ComponentType } from 'react';
|
|
25
27
|
import { Context } from 'react';
|
|
28
|
+
import { CopilotKitProps } from '@copilotkit/react-core';
|
|
26
29
|
import { CountryCellValue } from './types/country';
|
|
27
30
|
import { DashboardProps as DashboardProps_2 } from './Dashboard';
|
|
28
31
|
import { DateCellValue } from '../../value-display/types/date';
|
|
@@ -60,6 +63,8 @@ import { JSX as JSX_2 } from 'react';
|
|
|
60
63
|
import { LineChartConfig } from '../../ui/chart';
|
|
61
64
|
import { LineChartPropsBase } from './utils/types';
|
|
62
65
|
import { LongTextCellValue } from './types/longText';
|
|
66
|
+
import { Message } from '@copilotkit/shared';
|
|
67
|
+
import { MessagesProps } from '@copilotkit/react-ui';
|
|
63
68
|
import { NumberCellValue } from '../../value-display/types/number';
|
|
64
69
|
import { NumberCellValue as NumberCellValue_2 } from './types/number';
|
|
65
70
|
import { NumberFilterOptions } from './NumberFilter/NumberFilter';
|
|
@@ -83,6 +88,7 @@ import { SearchFilterOptions } from './SearchFilter/SearchFilter';
|
|
|
83
88
|
import { StatusCellValue } from '../../value-display/types/status';
|
|
84
89
|
import { StatusCellValue as StatusCellValue_2 } from './types/status';
|
|
85
90
|
import { SVGProps } from 'react';
|
|
91
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
86
92
|
import { SyncStatusCellValue } from './types/syncStatus';
|
|
87
93
|
import { TagCellValue } from '../../value-display/types/tag';
|
|
88
94
|
import { TagCellValue as TagCellValue_2 } from './types/tag';
|
|
@@ -95,6 +101,8 @@ import { TextCellValue as TextCellValue_2 } from './types/text';
|
|
|
95
101
|
import { ValueDisplayRendererContext } from '../../value-display';
|
|
96
102
|
import { VariantProps } from 'cva';
|
|
97
103
|
|
|
104
|
+
export declare function A({ children, ...props }: React.AnchorHTMLAttributes<HTMLAnchorElement>): JSX_2.Element;
|
|
105
|
+
|
|
98
106
|
export declare type Action = UpsellAction | RegularAction;
|
|
99
107
|
|
|
100
108
|
declare type Action_2 = {
|
|
@@ -219,6 +227,10 @@ declare type ActionDefinition = DropdownItemSeparator | (Pick<DropdownItemObject
|
|
|
219
227
|
type?: "primary" | "secondary" | "other";
|
|
220
228
|
});
|
|
221
229
|
|
|
230
|
+
export declare type ActionItemStatus = (typeof actionItemStatuses)[number];
|
|
231
|
+
|
|
232
|
+
export declare const actionItemStatuses: readonly ["inProgress", "executing", "completed"];
|
|
233
|
+
|
|
222
234
|
declare type ActionLinkProps = ActionBaseProps & {
|
|
223
235
|
href: string;
|
|
224
236
|
target?: NavTarget;
|
|
@@ -243,6 +255,144 @@ declare type ActionVariant = (typeof actionVariants)[number];
|
|
|
243
255
|
|
|
244
256
|
declare const actionVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "ai", "link", "unstyled", "mention"];
|
|
245
257
|
|
|
258
|
+
/**
|
|
259
|
+
* Props for the AiChatProvider component
|
|
260
|
+
*/
|
|
261
|
+
export declare type AiChatProviderProps = {
|
|
262
|
+
enabled?: boolean;
|
|
263
|
+
greeting?: string;
|
|
264
|
+
initialMessage?: string | string[];
|
|
265
|
+
welcomeScreenSuggestions?: WelcomeScreenSuggestion[];
|
|
266
|
+
onThumbsUp?: (message: AIMessage, { threadId, feedback }: {
|
|
267
|
+
threadId: string;
|
|
268
|
+
feedback: string;
|
|
269
|
+
}) => void;
|
|
270
|
+
onThumbsDown?: (message: AIMessage, { threadId, feedback }: {
|
|
271
|
+
threadId: string;
|
|
272
|
+
feedback: string;
|
|
273
|
+
}) => void;
|
|
274
|
+
} & Pick<CopilotKitProps, "agent" | "credentials" | "children" | "runtimeUrl" | "showDevConsole" | "threadId" | "headers">;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Return value type for the useAiChat hook
|
|
278
|
+
*/
|
|
279
|
+
declare type AiChatProviderReturnValue = {
|
|
280
|
+
enabled: boolean;
|
|
281
|
+
setEnabled: React.Dispatch<React.SetStateAction<boolean>>;
|
|
282
|
+
open: boolean;
|
|
283
|
+
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
284
|
+
shouldPlayEntranceAnimation: boolean;
|
|
285
|
+
setShouldPlayEntranceAnimation: React.Dispatch<React.SetStateAction<boolean>>;
|
|
286
|
+
tmp_setAgent: (agent?: string) => void;
|
|
287
|
+
placeholders: string[];
|
|
288
|
+
setPlaceholders: React.Dispatch<React.SetStateAction<string[]>>;
|
|
289
|
+
/**
|
|
290
|
+
* Set the amount of minutes after which the chat will be cleared automatically
|
|
291
|
+
* Set `null` to disable auto-clearing
|
|
292
|
+
*
|
|
293
|
+
* @default 15
|
|
294
|
+
*/
|
|
295
|
+
setAutoClearMinutes: React.Dispatch<React.SetStateAction<number | null>>;
|
|
296
|
+
autoClearMinutes: number | null;
|
|
297
|
+
/**
|
|
298
|
+
* The initial message to display in the chat
|
|
299
|
+
*/
|
|
300
|
+
initialMessage?: string | string[];
|
|
301
|
+
setInitialMessage: React.Dispatch<React.SetStateAction<string | string[] | undefined>>;
|
|
302
|
+
welcomeScreenSuggestions: WelcomeScreenSuggestion[];
|
|
303
|
+
setWelcomeScreenSuggestions: React.Dispatch<React.SetStateAction<WelcomeScreenSuggestion[]>>;
|
|
304
|
+
onThumbsUp?: (message: AIMessage, { threadId, feedback }: {
|
|
305
|
+
threadId: string;
|
|
306
|
+
feedback: string;
|
|
307
|
+
}) => void;
|
|
308
|
+
onThumbsDown?: (message: AIMessage, { threadId, feedback }: {
|
|
309
|
+
threadId: string;
|
|
310
|
+
feedback: string;
|
|
311
|
+
}) => void;
|
|
312
|
+
/**
|
|
313
|
+
* Clear/reset the chat conversation
|
|
314
|
+
*/
|
|
315
|
+
clear: () => void;
|
|
316
|
+
/* Excluded from this release type: setClearFunction */
|
|
317
|
+
/**
|
|
318
|
+
* Send a message to the chat
|
|
319
|
+
* @param message - The message content as a string, or a full Message object
|
|
320
|
+
*/
|
|
321
|
+
sendMessage: (message: string | Message) => void;
|
|
322
|
+
/* Excluded from this release type: setSendMessageFunction */
|
|
323
|
+
} & Pick<AiChatState, "greeting" | "agent">;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Internal state for the AiChat provider
|
|
327
|
+
*/
|
|
328
|
+
declare interface AiChatState {
|
|
329
|
+
greeting?: string;
|
|
330
|
+
enabled: boolean;
|
|
331
|
+
agent?: string;
|
|
332
|
+
initialMessage?: string | string[];
|
|
333
|
+
welcomeScreenSuggestions?: WelcomeScreenSuggestion[];
|
|
334
|
+
placeholders?: string[];
|
|
335
|
+
setPlaceholders?: React.Dispatch<React.SetStateAction<string[]>>;
|
|
336
|
+
onThumbsUp?: (message: AIMessage, { threadId, feedback }: {
|
|
337
|
+
threadId: string;
|
|
338
|
+
feedback: string;
|
|
339
|
+
}) => void;
|
|
340
|
+
onThumbsDown?: (message: AIMessage, { threadId, feedback }: {
|
|
341
|
+
threadId: string;
|
|
342
|
+
feedback: string;
|
|
343
|
+
}) => void;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* AI Chat translations type
|
|
348
|
+
*/
|
|
349
|
+
export declare type AiChatTranslations = TranslationShape_2<typeof aiTranslations>;
|
|
350
|
+
|
|
351
|
+
export declare function AiChatTranslationsProvider({ children, translations, }: AiChatTranslationsProviderProps): JSX.Element;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Props for the AiChatTranslationsProvider component
|
|
355
|
+
*/
|
|
356
|
+
export declare interface AiChatTranslationsProviderProps {
|
|
357
|
+
children: React.ReactNode;
|
|
358
|
+
translations: AiChatTranslations;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Default AI chat translations
|
|
363
|
+
*/
|
|
364
|
+
export declare const aiTranslations: {
|
|
365
|
+
ai: {
|
|
366
|
+
openChat: string;
|
|
367
|
+
closeChat: string;
|
|
368
|
+
startNewChat: string;
|
|
369
|
+
scrollToBottom: string;
|
|
370
|
+
welcome: string;
|
|
371
|
+
defaultInitialMessage: string;
|
|
372
|
+
inputPlaceholder: string;
|
|
373
|
+
stopAnswerGeneration: string;
|
|
374
|
+
sendMessage: string;
|
|
375
|
+
thoughtsGroupTitle: string;
|
|
376
|
+
resourcesGroupTitle: string;
|
|
377
|
+
thinking: string;
|
|
378
|
+
exportTable: string;
|
|
379
|
+
generatedTableFilename: string;
|
|
380
|
+
feedbackModal: {
|
|
381
|
+
positive: {
|
|
382
|
+
title: string;
|
|
383
|
+
label: string;
|
|
384
|
+
placeholder: string;
|
|
385
|
+
};
|
|
386
|
+
negative: {
|
|
387
|
+
title: string;
|
|
388
|
+
label: string;
|
|
389
|
+
placeholder: string;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
ask: string;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
|
|
246
396
|
export declare type AlertAvatarProps = VariantProps<typeof alertAvatarVariants> & {
|
|
247
397
|
type: (typeof alertAvatarTypes)[number];
|
|
248
398
|
size?: (typeof alertAvatarSizes)[number];
|
|
@@ -586,6 +736,8 @@ export declare type BigNumberProps = {
|
|
|
586
736
|
comparison: Numeric | NumberWithFormatter | number;
|
|
587
737
|
};
|
|
588
738
|
|
|
739
|
+
export declare function Blockquote({ children, ...props }: React.HTMLAttributes<HTMLQuoteElement>): JSX_2.Element;
|
|
740
|
+
|
|
589
741
|
export declare const buildTranslations: (translations: TranslationsType) => TranslationsType;
|
|
590
742
|
|
|
591
743
|
/**
|
|
@@ -964,6 +1116,8 @@ declare type CardVisualizationOptions<T, _Filters extends FiltersDefinition, _So
|
|
|
964
1116
|
|
|
965
1117
|
export declare const CategoryBarChart: ForwardRefExoticComponent<Omit<CategoryBarProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
|
|
966
1118
|
|
|
1119
|
+
export declare const ChatSpinner: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
1120
|
+
|
|
967
1121
|
declare interface CheckboxProps extends DataAttributes_2 {
|
|
968
1122
|
/**
|
|
969
1123
|
* The title of the checkbox
|
|
@@ -2062,6 +2216,8 @@ export declare function DndProvider({ driver, children, }: {
|
|
|
2062
2216
|
children: ReactNode;
|
|
2063
2217
|
}): JSX_2.Element;
|
|
2064
2218
|
|
|
2219
|
+
export declare function downloadTableAsExcel(table: HTMLTableElement, filename?: string): void;
|
|
2220
|
+
|
|
2065
2221
|
export declare type DragPayload<T = unknown> = {
|
|
2066
2222
|
kind: string;
|
|
2067
2223
|
id: string;
|
|
@@ -2106,6 +2262,8 @@ export declare type DropIntent = {
|
|
|
2106
2262
|
type: "cancel";
|
|
2107
2263
|
};
|
|
2108
2264
|
|
|
2265
|
+
export declare function Em({ children, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
2266
|
+
|
|
2109
2267
|
export declare function EmojiImage({ emoji, size, alt }: EmojiImageProps): JSX_2.Element;
|
|
2110
2268
|
|
|
2111
2269
|
export declare interface EmojiImageProps extends VariantProps<typeof emojiVariants> {
|
|
@@ -2153,6 +2311,100 @@ declare type ExtractVisualizationSettings<T> = T extends {
|
|
|
2153
2311
|
};
|
|
2154
2312
|
} ? S : never;
|
|
2155
2313
|
|
|
2314
|
+
export declare const F0ActionItem: ({ title, status, inGroup }: F0ActionItemProps) => JSX_2.Element;
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* Props for the F0ActionItem component
|
|
2318
|
+
*/
|
|
2319
|
+
export declare interface F0ActionItemProps {
|
|
2320
|
+
/**
|
|
2321
|
+
* The title text displayed next to the status icon
|
|
2322
|
+
*/
|
|
2323
|
+
title: string;
|
|
2324
|
+
/**
|
|
2325
|
+
* Current status of the action item
|
|
2326
|
+
*/
|
|
2327
|
+
status?: "inProgress" | "executing" | "completed";
|
|
2328
|
+
/**
|
|
2329
|
+
* Whether the action item is part of a group
|
|
2330
|
+
*/
|
|
2331
|
+
inGroup?: boolean;
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* @experimental This is an experimental component use it at your own risk
|
|
2336
|
+
*/
|
|
2337
|
+
export declare const F0AiChat: () => JSX_2.Element | null;
|
|
2338
|
+
|
|
2339
|
+
/**
|
|
2340
|
+
* @experimental This is an experimental component use it at your own risk
|
|
2341
|
+
*/
|
|
2342
|
+
export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, onThumbsUp, onThumbsDown, children, agent, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
|
|
2343
|
+
|
|
2344
|
+
export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, placeholders, defaultPlaceholder, autoFocus, }: F0AiChatTextAreaProps) => JSX_2.Element;
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* Props for the F0AiChatTextArea component
|
|
2348
|
+
*/
|
|
2349
|
+
export declare interface F0AiChatTextAreaProps {
|
|
2350
|
+
/**
|
|
2351
|
+
* Whether the chat is currently processing a message
|
|
2352
|
+
*/
|
|
2353
|
+
inProgress: boolean;
|
|
2354
|
+
/**
|
|
2355
|
+
* Callback when the user sends a message
|
|
2356
|
+
*/
|
|
2357
|
+
onSend: (message: string) => void;
|
|
2358
|
+
/**
|
|
2359
|
+
* Callback when the user stops the current generation
|
|
2360
|
+
*/
|
|
2361
|
+
onStop?: () => void;
|
|
2362
|
+
/**
|
|
2363
|
+
* Custom label for the submit button
|
|
2364
|
+
*/
|
|
2365
|
+
submitLabel?: string;
|
|
2366
|
+
/**
|
|
2367
|
+
* Array of placeholder strings to cycle through with typewriter effect.
|
|
2368
|
+
* If multiple placeholders are provided, they will animate in a cycle.
|
|
2369
|
+
* If a single placeholder is provided, it will be displayed statically.
|
|
2370
|
+
*/
|
|
2371
|
+
placeholders?: string[];
|
|
2372
|
+
/**
|
|
2373
|
+
* Default placeholder text when no placeholders are provided or as fallback
|
|
2374
|
+
*/
|
|
2375
|
+
defaultPlaceholder?: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* Whether the textarea should autofocus on mount
|
|
2378
|
+
* @default true
|
|
2379
|
+
*/
|
|
2380
|
+
autoFocus?: boolean;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
export declare const F0AiCollapsibleMessage: ({ icon, title, children, }: F0AiCollapsibleMessageProps) => JSX_2.Element;
|
|
2384
|
+
|
|
2385
|
+
/**
|
|
2386
|
+
* Props for the F0AiCollapsibleMessage component
|
|
2387
|
+
*/
|
|
2388
|
+
export declare interface F0AiCollapsibleMessageProps {
|
|
2389
|
+
/**
|
|
2390
|
+
* Icon to display in the collapsible trigger
|
|
2391
|
+
*/
|
|
2392
|
+
icon: IconType;
|
|
2393
|
+
/**
|
|
2394
|
+
* Title text for the collapsible trigger
|
|
2395
|
+
*/
|
|
2396
|
+
title: string;
|
|
2397
|
+
/**
|
|
2398
|
+
* Content to show when expanded
|
|
2399
|
+
*/
|
|
2400
|
+
children: ReactNode;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
/**
|
|
2404
|
+
* @experimental This is an experimental component use it at your own risk
|
|
2405
|
+
*/
|
|
2406
|
+
export declare const F0AiFullscreenChat: () => JSX_2.Element | null;
|
|
2407
|
+
|
|
2156
2408
|
export declare const F0Alert: ({ title, description, action, link, icon, variant, }: F0AlertProps) => JSX_2.Element;
|
|
2157
2409
|
|
|
2158
2410
|
export declare interface F0AlertProps {
|
|
@@ -2654,6 +2906,34 @@ export declare type F0HeadingProps = Omit<TextProps, "className" | "variant" | "
|
|
|
2654
2906
|
as?: HeadingTags;
|
|
2655
2907
|
};
|
|
2656
2908
|
|
|
2909
|
+
export declare const F0HILActionConfirmation: ({ text, confirmationText, onConfirm, cancelText, onCancel, }: F0HILActionConfirmationProps) => JSX_2.Element;
|
|
2910
|
+
|
|
2911
|
+
/**
|
|
2912
|
+
* Props for the F0HILActionConfirmation component
|
|
2913
|
+
*/
|
|
2914
|
+
export declare type F0HILActionConfirmationProps = {
|
|
2915
|
+
/**
|
|
2916
|
+
* Optional descriptive text shown above the action buttons
|
|
2917
|
+
*/
|
|
2918
|
+
text?: string;
|
|
2919
|
+
/**
|
|
2920
|
+
* Text displayed on the confirmation button
|
|
2921
|
+
*/
|
|
2922
|
+
confirmationText: string;
|
|
2923
|
+
/**
|
|
2924
|
+
* Callback fired when the confirmation button is clicked
|
|
2925
|
+
*/
|
|
2926
|
+
onConfirm: () => void;
|
|
2927
|
+
/**
|
|
2928
|
+
* Text displayed on the cancel button
|
|
2929
|
+
*/
|
|
2930
|
+
cancelText: string;
|
|
2931
|
+
/**
|
|
2932
|
+
* Callback fired when the cancel button is clicked
|
|
2933
|
+
*/
|
|
2934
|
+
onCancel: () => void;
|
|
2935
|
+
};
|
|
2936
|
+
|
|
2657
2937
|
export declare const F0Icon: ForwardRefExoticComponent<Omit<Omit<F0IconProps, "ref"> & RefAttributes<SVGSVGElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
|
|
2658
2938
|
|
|
2659
2939
|
export declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
|
|
@@ -2675,6 +2955,51 @@ export declare type F0LinkProps = Omit<ActionLinkProps, "variant" | "href"> & {
|
|
|
2675
2955
|
href?: string;
|
|
2676
2956
|
};
|
|
2677
2957
|
|
|
2958
|
+
export declare const f0MarkdownRenderers: NonNullable<AssistantMessageProps["markdownTagRenderers"]>;
|
|
2959
|
+
|
|
2960
|
+
export declare const F0MessageSources: ({ sources }: F0MessageSourcesProps) => JSX_2.Element | null;
|
|
2961
|
+
|
|
2962
|
+
/**
|
|
2963
|
+
* Props for the F0MessageSources component
|
|
2964
|
+
*/
|
|
2965
|
+
export declare type F0MessageSourcesProps = {
|
|
2966
|
+
/**
|
|
2967
|
+
* Array of sources to display
|
|
2968
|
+
*/
|
|
2969
|
+
sources: F0Source[];
|
|
2970
|
+
};
|
|
2971
|
+
|
|
2972
|
+
export declare const F0OneIcon: ForwardRefExoticComponent<Omit<F0OneIconProps, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
2973
|
+
|
|
2974
|
+
/**
|
|
2975
|
+
* Props for the F0OneIcon component
|
|
2976
|
+
*/
|
|
2977
|
+
export declare interface F0OneIconProps extends SVGProps<SVGSVGElement> {
|
|
2978
|
+
/**
|
|
2979
|
+
* Whether the icon should spin
|
|
2980
|
+
*/
|
|
2981
|
+
spin?: boolean;
|
|
2982
|
+
/**
|
|
2983
|
+
* Whether the icon is in hover state
|
|
2984
|
+
*/
|
|
2985
|
+
hover?: boolean;
|
|
2986
|
+
/**
|
|
2987
|
+
* Background color override
|
|
2988
|
+
*/
|
|
2989
|
+
background?: string;
|
|
2990
|
+
/**
|
|
2991
|
+
* Size of the icon
|
|
2992
|
+
*/
|
|
2993
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
export declare const F0OneSwitch: ({ className, disabled }: F0OneSwitchProps) => JSX_2.Element | null;
|
|
2997
|
+
|
|
2998
|
+
/**
|
|
2999
|
+
* Props for the F0OneSwitch component
|
|
3000
|
+
*/
|
|
3001
|
+
export declare type F0OneSwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>;
|
|
3002
|
+
|
|
2678
3003
|
export declare const F0Provider: React.FC<{
|
|
2679
3004
|
children: React.ReactNode;
|
|
2680
3005
|
link?: LinkContextValue;
|
|
@@ -2792,6 +3117,28 @@ export declare type F0SelectProps<T extends string, R = unknown> = F0SelectBaseP
|
|
|
2792
3117
|
options: F0SelectItemProps<T, unknown>[];
|
|
2793
3118
|
}) & Pick<InputFieldProps<T>, "required" | "loading" | "hideLabel" | "labelIcon" | "size" | "label" | "icon" | "placeholder" | "disabled" | "name" | "error" | "status" | "hint">;
|
|
2794
3119
|
|
|
3120
|
+
/**
|
|
3121
|
+
* Source object for message sources
|
|
3122
|
+
*/
|
|
3123
|
+
export declare type F0Source = {
|
|
3124
|
+
/**
|
|
3125
|
+
* Title of the source
|
|
3126
|
+
*/
|
|
3127
|
+
title: string;
|
|
3128
|
+
/**
|
|
3129
|
+
* Optional link URL
|
|
3130
|
+
*/
|
|
3131
|
+
link?: string;
|
|
3132
|
+
/**
|
|
3133
|
+
* Optional icon name (from @/icons/app)
|
|
3134
|
+
*/
|
|
3135
|
+
icon?: string;
|
|
3136
|
+
/**
|
|
3137
|
+
* Whether to open link in new tab
|
|
3138
|
+
*/
|
|
3139
|
+
targetBlank?: boolean;
|
|
3140
|
+
};
|
|
3141
|
+
|
|
2795
3142
|
/**
|
|
2796
3143
|
* @experimental This is an experimental component use it at your own risk
|
|
2797
3144
|
*/
|
|
@@ -2852,6 +3199,38 @@ export declare type F0TextProps = Omit<TextProps, "className" | "variant" | "as"
|
|
|
2852
3199
|
markdown?: boolean;
|
|
2853
3200
|
};
|
|
2854
3201
|
|
|
3202
|
+
export declare const F0Thinking: ({ messages, title }: F0ThinkingProps) => JSX_2.Element;
|
|
3203
|
+
|
|
3204
|
+
/**
|
|
3205
|
+
* Props for the F0Thinking component
|
|
3206
|
+
*/
|
|
3207
|
+
export declare type F0ThinkingProps = {
|
|
3208
|
+
/**
|
|
3209
|
+
* Array of thinking/reflection messages to display
|
|
3210
|
+
*/
|
|
3211
|
+
messages: Message[];
|
|
3212
|
+
/**
|
|
3213
|
+
* Whether the thinking process is currently active
|
|
3214
|
+
*/
|
|
3215
|
+
isActive?: boolean;
|
|
3216
|
+
/**
|
|
3217
|
+
* Custom render function for messages
|
|
3218
|
+
*/
|
|
3219
|
+
RenderMessage?: MessagesProps["RenderMessage"];
|
|
3220
|
+
/**
|
|
3221
|
+
* Custom assistant message component
|
|
3222
|
+
*/
|
|
3223
|
+
AssistantMessage?: MessagesProps["AssistantMessage"];
|
|
3224
|
+
/**
|
|
3225
|
+
* Whether the chat is currently in progress
|
|
3226
|
+
*/
|
|
3227
|
+
inProgress?: boolean;
|
|
3228
|
+
/**
|
|
3229
|
+
* Custom title for the thinking section
|
|
3230
|
+
*/
|
|
3231
|
+
title?: string;
|
|
3232
|
+
};
|
|
3233
|
+
|
|
2855
3234
|
export declare type FileAvatarVariant = Extract<AvatarVariant, {
|
|
2856
3235
|
type: "file";
|
|
2857
3236
|
}>;
|
|
@@ -3018,6 +3397,16 @@ declare type FontSize = (typeof fontSizes)[number];
|
|
|
3018
3397
|
|
|
3019
3398
|
declare const fontSizes: readonly ["sm", "md", "lg"];
|
|
3020
3399
|
|
|
3400
|
+
export declare const FullscreenChatContext: Context<FullscreenChatContextType>;
|
|
3401
|
+
|
|
3402
|
+
/**
|
|
3403
|
+
* Context type for fullscreen chat state
|
|
3404
|
+
*/
|
|
3405
|
+
declare type FullscreenChatContextType = {
|
|
3406
|
+
inProgress: boolean;
|
|
3407
|
+
setInProgress: (value: boolean) => void;
|
|
3408
|
+
};
|
|
3409
|
+
|
|
3021
3410
|
export declare const getAnimationVariants: (options?: AnimationVariantsOptions) => {
|
|
3022
3411
|
hidden: {
|
|
3023
3412
|
opacity: number;
|
|
@@ -3188,6 +3577,12 @@ export declare type GroupRecord<RecordType> = {
|
|
|
3188
3577
|
records: RecordType[];
|
|
3189
3578
|
};
|
|
3190
3579
|
|
|
3580
|
+
export declare function H1({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
3581
|
+
|
|
3582
|
+
export declare function H2({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
3583
|
+
|
|
3584
|
+
export declare function H3({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
3585
|
+
|
|
3191
3586
|
declare type HeadingTags = (typeof headingTags)[number];
|
|
3192
3587
|
|
|
3193
3588
|
declare const headingTags: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
@@ -3197,6 +3592,8 @@ widgets?: ReactNode[];
|
|
|
3197
3592
|
children?: ReactNode;
|
|
3198
3593
|
} & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
|
|
3199
3594
|
|
|
3595
|
+
export declare function Hr({ ...props }: React.HTMLAttributes<HTMLHRElement>): JSX_2.Element;
|
|
3596
|
+
|
|
3200
3597
|
declare type I18nContextType = TranslationsType & {
|
|
3201
3598
|
t: (key: TranslationKey, args?: Record<string, string | number>) => string;
|
|
3202
3599
|
};
|
|
@@ -3236,6 +3633,9 @@ declare type IdStructure = {
|
|
|
3236
3633
|
children?: IdStructure[];
|
|
3237
3634
|
};
|
|
3238
3635
|
|
|
3636
|
+
declare function Image_2({ src, alt, ...props }: React.ImgHTMLAttributes<HTMLImageElement>): JSX_2.Element;
|
|
3637
|
+
export { Image_2 as Image }
|
|
3638
|
+
|
|
3239
3639
|
declare type ImageContextValue = {
|
|
3240
3640
|
src?: (props: ImageProps) => SrcProps;
|
|
3241
3641
|
};
|
|
@@ -3511,6 +3911,8 @@ export declare type Level = (typeof levels)[number];
|
|
|
3511
3911
|
|
|
3512
3912
|
declare const levels: readonly ["info", "warning", "critical", "positive"];
|
|
3513
3913
|
|
|
3914
|
+
export declare function Li({ children, ...props }: React.HTMLAttributes<HTMLLIElement>): JSX_2.Element;
|
|
3915
|
+
|
|
3514
3916
|
export declare const LineChart: ForwardRefExoticComponent<Omit<LineChartPropsBase<LineChartConfig> & {
|
|
3515
3917
|
lineType?: "natural" | "linear";
|
|
3516
3918
|
} & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>;
|
|
@@ -3838,6 +4240,8 @@ declare type NumericWithFormatter = {
|
|
|
3838
4240
|
formatterOptions?: NumericFormatterOptions;
|
|
3839
4241
|
};
|
|
3840
4242
|
|
|
4243
|
+
export declare function Ol({ children, ...props }: React.HTMLAttributes<HTMLOListElement>): JSX_2.Element;
|
|
4244
|
+
|
|
3841
4245
|
declare type OnBulkActionCallback<Record extends RecordType, Filters extends FiltersDefinition> = (...args: [
|
|
3842
4246
|
action: BulkAction,
|
|
3843
4247
|
...Parameters<OnSelectItemsCallback<Record, Filters>>
|
|
@@ -3874,6 +4278,10 @@ declare type OneFilterPickerRootProps<Definition extends FiltersDefinition> = {
|
|
|
3874
4278
|
onOpenChange?: (isOpen: boolean) => void;
|
|
3875
4279
|
};
|
|
3876
4280
|
|
|
4281
|
+
export declare type OneIconSize = (typeof oneIconSizes)[number];
|
|
4282
|
+
|
|
4283
|
+
export declare const oneIconSizes: readonly ["xs", "sm", "md", "lg"];
|
|
4284
|
+
|
|
3877
4285
|
declare type OnLoadDataCallback<Record extends RecordType, Filters extends FiltersDefinition> = (data: {
|
|
3878
4286
|
totalItems: number | undefined;
|
|
3879
4287
|
filters: FiltersState<Filters>;
|
|
@@ -3890,6 +4298,8 @@ export declare type OnSelectItemsCallback<R extends RecordType, Filters extends
|
|
|
3890
4298
|
|
|
3891
4299
|
declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
3892
4300
|
|
|
4301
|
+
export declare function P({ children, ...props }: React.HTMLAttributes<HTMLParagraphElement>): JSX_2.Element;
|
|
4302
|
+
|
|
3893
4303
|
/**
|
|
3894
4304
|
* Represents a paginated response with page-based navigation.
|
|
3895
4305
|
*
|
|
@@ -3986,6 +4396,8 @@ export declare const PieChart: ForwardRefExoticComponent<Omit<PieChartProps & Re
|
|
|
3986
4396
|
|
|
3987
4397
|
declare type PopupSize = "sm" | "md" | "lg";
|
|
3988
4398
|
|
|
4399
|
+
export declare function Pre({ children, ...props }: React.HTMLAttributes<HTMLPreElement>): JSX_2.Element;
|
|
4400
|
+
|
|
3989
4401
|
export declare const predefinedPresets: Record<string, DatePreset>;
|
|
3990
4402
|
|
|
3991
4403
|
/**
|
|
@@ -4416,6 +4828,8 @@ export declare interface StepItemProps {
|
|
|
4416
4828
|
isCompleted?: boolean;
|
|
4417
4829
|
}
|
|
4418
4830
|
|
|
4831
|
+
export declare function Strong({ children, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
4832
|
+
|
|
4419
4833
|
export declare interface SuccessMessageProps {
|
|
4420
4834
|
title: string;
|
|
4421
4835
|
description: string;
|
|
@@ -4434,6 +4848,8 @@ declare type SummaryKey<Definition extends SummariesDefinition> = Definition ext
|
|
|
4434
4848
|
|
|
4435
4849
|
declare type SummaryType = "sum";
|
|
4436
4850
|
|
|
4851
|
+
export declare function Table({ children, ...props }: React.HTMLAttributes<HTMLTableElement>): JSX_2.Element;
|
|
4852
|
+
|
|
4437
4853
|
declare type TableCollectionProps<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>> = CollectionProps<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, TableVisualizationOptions<R, Filters, Sortings, Summaries>>;
|
|
4438
4854
|
|
|
4439
4855
|
declare type TableColumnDefinition<R extends RecordType, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = WithOptionalSorting<R, Sortings> & Pick<ComponentProps<typeof TableHead>, "hidden" | "info" | "infoIcon" | "sticky" | "width"> & {
|
|
@@ -4693,6 +5109,8 @@ export declare type TagVariant = BaseTag<{
|
|
|
4693
5109
|
type: "raw";
|
|
4694
5110
|
} & TagRawProps>;
|
|
4695
5111
|
|
|
5112
|
+
export declare function Td({ children, ...props }: React.HTMLAttributes<HTMLTableCellElement>): JSX_2.Element;
|
|
5113
|
+
|
|
4696
5114
|
export declare type TeamAvatarVariant = Extract<AvatarVariant, {
|
|
4697
5115
|
type: "team";
|
|
4698
5116
|
}>;
|
|
@@ -4763,6 +5181,8 @@ declare const textVariants: (props?: ({
|
|
|
4763
5181
|
className?: ClassValue;
|
|
4764
5182
|
})) | undefined) => string;
|
|
4765
5183
|
|
|
5184
|
+
export declare function Th({ children, ...props }: React.HTMLAttributes<HTMLTableCellElement>): JSX_2.Element;
|
|
5185
|
+
|
|
4766
5186
|
declare type TOCItem<Depth extends 1 | 2 | 3 | 4 = 1> = BaseTOCItem & {
|
|
4767
5187
|
children?: NextDepth<Depth> extends never ? never : TOCItem<NextDepth<Depth>>[];
|
|
4768
5188
|
};
|
|
@@ -4797,6 +5217,13 @@ declare type TranslationShape<T> = {
|
|
|
4797
5217
|
[K in keyof T]: T[K] extends string ? string : T[K] extends Record<string, string | Record<string, unknown>> ? TranslationShape<T[K]> : never;
|
|
4798
5218
|
};
|
|
4799
5219
|
|
|
5220
|
+
/**
|
|
5221
|
+
* Translation shape helper type
|
|
5222
|
+
*/
|
|
5223
|
+
declare type TranslationShape_2<T> = {
|
|
5224
|
+
[K in keyof T]: T[K] extends string ? string : T[K] extends Record<string, string | Record<string, unknown>> ? TranslationShape_2<T[K]> : never;
|
|
5225
|
+
};
|
|
5226
|
+
|
|
4800
5227
|
export declare type TranslationsType = TranslationShape<typeof defaultTranslations>;
|
|
4801
5228
|
|
|
4802
5229
|
export declare type TrendConfig = {
|
|
@@ -4813,6 +5240,8 @@ export declare interface TwoColumnLayoutProps {
|
|
|
4813
5240
|
sticky?: boolean;
|
|
4814
5241
|
}
|
|
4815
5242
|
|
|
5243
|
+
export declare function Ul({ children, ...props }: React.HTMLAttributes<HTMLUListElement>): JSX_2.Element;
|
|
5244
|
+
|
|
4816
5245
|
declare type UpsellAction = BaseAction & {
|
|
4817
5246
|
type: "upsell";
|
|
4818
5247
|
variant: "promote" | "outlinePromote";
|
|
@@ -4914,6 +5343,10 @@ declare interface UpsellRequestResponseDialogProps {
|
|
|
4914
5343
|
portalContainer?: HTMLElement | null;
|
|
4915
5344
|
}
|
|
4916
5345
|
|
|
5346
|
+
export declare function useAiChat(): AiChatProviderReturnValue;
|
|
5347
|
+
|
|
5348
|
+
export declare function useAiChatTranslations(): AiChatTranslations;
|
|
5349
|
+
|
|
4917
5350
|
/**
|
|
4918
5351
|
* A core React hook that manages data fetching, state management, and pagination within the Collections ecosystem.
|
|
4919
5352
|
*
|
|
@@ -5062,6 +5495,19 @@ export declare interface UseDataReturn<R extends RecordType> {
|
|
|
5062
5495
|
*/
|
|
5063
5496
|
export declare function useDataSource<R extends RecordType = RecordType, FiltersSchema extends FiltersDefinition = FiltersDefinition, Sortings extends SortingsDefinition = SortingsDefinition, Grouping extends GroupingDefinition<R> = GroupingDefinition<R>>({ defaultFilters, currentFilters: externalCurrentFilters, defaultGrouping: externalDefaultGrouping, currentGrouping: externalCurrentGrouping, filters, search, defaultSortings, currentSortings: externalCurrentSortings, dataAdapter, grouping, ...rest }: DataSourceDefinition<R, FiltersSchema, Sortings, Grouping>, deps?: ReadonlyArray<unknown>): DataSource<R, FiltersSchema, Sortings, Grouping>;
|
|
5064
5497
|
|
|
5498
|
+
/**
|
|
5499
|
+
* Hook to register all default copilot actions.
|
|
5500
|
+
* This provides a single entry point to enable all standard AI chat actions.
|
|
5501
|
+
*
|
|
5502
|
+
* @example
|
|
5503
|
+
* // Enable all default actions in your component
|
|
5504
|
+
* const MyComponent = () => {
|
|
5505
|
+
* useDefaultCopilotActions()
|
|
5506
|
+
* return <div>...</div>
|
|
5507
|
+
* }
|
|
5508
|
+
*/
|
|
5509
|
+
export declare const useDefaultCopilotActions: () => void;
|
|
5510
|
+
|
|
5065
5511
|
export declare function useDndEvents(handler: (e: {
|
|
5066
5512
|
phase: "start" | "over" | "drop" | "cancel";
|
|
5067
5513
|
source: DragPayload;
|
|
@@ -5091,6 +5537,18 @@ export declare const useGroups: <R extends RecordType>(groups: GroupRecord<R>[],
|
|
|
5091
5537
|
setGroupOpen: (key: string, open: boolean) => void;
|
|
5092
5538
|
};
|
|
5093
5539
|
|
|
5540
|
+
/**
|
|
5541
|
+
* Hook to register the message sources action.
|
|
5542
|
+
* Attaches information sources to the assistant's response to show where the AI got its information from.
|
|
5543
|
+
*/
|
|
5544
|
+
export declare const useMessageSourcesAction: () => void;
|
|
5545
|
+
|
|
5546
|
+
/**
|
|
5547
|
+
* Hook to register the orchestrator thinking action.
|
|
5548
|
+
* Displays the orchestrator's thinking process as a non-blocking UI element.
|
|
5549
|
+
*/
|
|
5550
|
+
export declare const useOrchestratorThinkingAction: () => void;
|
|
5551
|
+
|
|
5094
5552
|
export declare const usePrivacyMode: () => {
|
|
5095
5553
|
enabled: boolean;
|
|
5096
5554
|
enable: () => void;
|
|
@@ -5248,6 +5706,15 @@ declare const WeekStartDay: {
|
|
|
5248
5706
|
|
|
5249
5707
|
declare type WeekStartsOn = (typeof WeekStartDay)[keyof typeof WeekStartDay];
|
|
5250
5708
|
|
|
5709
|
+
/**
|
|
5710
|
+
* Welcome screen suggestion item
|
|
5711
|
+
*/
|
|
5712
|
+
export declare type WelcomeScreenSuggestion = {
|
|
5713
|
+
icon: IconType;
|
|
5714
|
+
message: string;
|
|
5715
|
+
prompt?: string;
|
|
5716
|
+
};
|
|
5717
|
+
|
|
5251
5718
|
export declare type WithGroupId<RecordType> = RecordType & {
|
|
5252
5719
|
[GROUP_ID_SYMBOL]: unknown | undefined;
|
|
5253
5720
|
};
|