@factorialco/f0-react 1.408.0 → 1.410.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/F0AiChat-B75wNcO_.js +28929 -0
- package/dist/F0AnalyticsDashboard-HOK1Grhk.js +64242 -0
- package/dist/{f0.css → F0AnalyticsDashboard.css} +1 -1
- package/dist/F0ChatDashboard-e_oKQtbl.js +292 -0
- package/dist/F0ChatDashboard.d.ts +364 -0
- package/dist/F0ChatDashboard.js +4 -0
- package/dist/{F0HILActionConfirmation-Cud7NMip.js → F0HILActionConfirmation-CasXGy89.js} +262 -236
- package/dist/{F0AiChat-B5pShue-.js → F0Input-JjjfHKNJ.js} +94271 -122303
- package/dist/ai.d.ts +363 -7
- package/dist/ai.js +54 -52
- package/dist/experimental.d.ts +59 -12
- package/dist/experimental.js +3119 -2937
- package/dist/f0.d.ts +424 -17
- package/dist/f0.js +16407 -70330
- package/dist/i18n-provider-defaults.d.ts +29 -5
- package/dist/i18n-provider-defaults.js +24 -0
- package/dist/{useDataCollectionSource-BIFyi9Io.js → index-5bsHlAsN.js} +14802 -24733
- package/dist/{useDataCollectionSource.css → index.css} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export declare const actionItemStatuses: readonly ["inProgress", "executing", "c
|
|
|
26
26
|
|
|
27
27
|
/* Excluded from this release type: AgentState */
|
|
28
28
|
|
|
29
|
+
export declare type AggregationType = "count" | "sum" | "avg" | "min" | "max" | "countDistinct";
|
|
30
|
+
|
|
29
31
|
/**
|
|
30
32
|
* Disclaimer configuration for the chat input
|
|
31
33
|
*/
|
|
@@ -60,6 +62,13 @@ export declare type AiChatProviderProps = {
|
|
|
60
62
|
* @default false
|
|
61
63
|
*/
|
|
62
64
|
lockVisualizationMode?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Enable chat history UI (clickable header title + history dialog).
|
|
67
|
+
* When false (default), the header shows a simple "New Chat" button instead.
|
|
68
|
+
* Set to true only when the backend supports the /copilotkit/chat-history/threads route.
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
historyEnabled?: boolean;
|
|
63
72
|
/**
|
|
64
73
|
* Optional footer content rendered below the textarea
|
|
65
74
|
*/
|
|
@@ -122,6 +131,18 @@ declare type AiChatProviderReturnValue = {
|
|
|
122
131
|
*/
|
|
123
132
|
clear: () => void;
|
|
124
133
|
/* Excluded from this release type: setClearFunction */
|
|
134
|
+
/**
|
|
135
|
+
* Title of the currently loaded thread, or null for new conversations
|
|
136
|
+
*/
|
|
137
|
+
currentThreadTitle: string | null;
|
|
138
|
+
/**
|
|
139
|
+
* Load a thread by ID and set its title in the header
|
|
140
|
+
*/
|
|
141
|
+
loadThread: (threadId: string, title: string) => void;
|
|
142
|
+
/* Excluded from this release type: setLoadThreadFunction */
|
|
143
|
+
/** Whether a thread's messages are currently being fetched */
|
|
144
|
+
isLoadingThread: boolean;
|
|
145
|
+
/* Excluded from this release type: setIsLoadingThread */
|
|
125
146
|
/**
|
|
126
147
|
* Send a message to the chat
|
|
127
148
|
* @param message - The message content as a string, or a full Message object
|
|
@@ -149,6 +170,7 @@ declare type AiChatProviderReturnValue = {
|
|
|
149
170
|
* When true, prevents switching between visualization modes
|
|
150
171
|
*/
|
|
151
172
|
lockVisualizationMode: boolean;
|
|
173
|
+
historyEnabled: boolean;
|
|
152
174
|
/**
|
|
153
175
|
* Optional footer content rendered below the textarea
|
|
154
176
|
*/
|
|
@@ -158,10 +180,22 @@ declare type AiChatProviderReturnValue = {
|
|
|
158
180
|
*/
|
|
159
181
|
setFooter: React.Dispatch<React.SetStateAction<React.ReactNode | undefined>>;
|
|
160
182
|
} & Pick<AiChatState, "greeting" | "agent" | "disclaimer" | "resizable" | "entityResolvers" | "toolHints"> & {
|
|
183
|
+
/** The current canvas content, or null when canvas is closed */
|
|
184
|
+
canvasContent: CanvasContent | null;
|
|
185
|
+
/** The dashboard config from the current canvas content, or null */
|
|
186
|
+
canvasDashboard: ChatDashboardConfig | null;
|
|
187
|
+
/** Open the canvas panel with the given content */
|
|
188
|
+
openCanvas: (content: CanvasContent) => void;
|
|
189
|
+
/** Close the canvas panel and restore the previous visualization mode */
|
|
190
|
+
closeCanvas: () => void;
|
|
161
191
|
/** The currently active tool hint, or null if none is selected */
|
|
162
192
|
activeToolHint: AiChatToolHint | null;
|
|
163
193
|
/** Set the active tool hint (pass null to clear) */
|
|
164
194
|
setActiveToolHint: React.Dispatch<React.SetStateAction<AiChatToolHint | null>>;
|
|
195
|
+
/** Get a saved dashboard config by toolCallId (returns updated config after user edits) */
|
|
196
|
+
getSavedDashboardConfig: (toolCallId: string) => ChatDashboardConfig | undefined;
|
|
197
|
+
/** Save an updated dashboard config keyed by toolCallId */
|
|
198
|
+
updateDashboardConfig: (toolCallId: string, config: ChatDashboardConfig) => void;
|
|
165
199
|
};
|
|
166
200
|
|
|
167
201
|
/**
|
|
@@ -177,6 +211,7 @@ declare interface AiChatState {
|
|
|
177
211
|
resizable?: boolean;
|
|
178
212
|
defaultVisualizationMode?: VisualizationMode;
|
|
179
213
|
lockVisualizationMode?: boolean;
|
|
214
|
+
historyEnabled?: boolean;
|
|
180
215
|
footer?: React.ReactNode;
|
|
181
216
|
entityResolvers?: EntityResolvers;
|
|
182
217
|
toolHints?: AiChatToolHint[];
|
|
@@ -259,6 +294,9 @@ export declare const aiTranslations: {
|
|
|
259
294
|
thoughtsGroupTitle: string;
|
|
260
295
|
resourcesGroupTitle: string;
|
|
261
296
|
thinking: string;
|
|
297
|
+
closeDashboard: string;
|
|
298
|
+
exportTable: string;
|
|
299
|
+
generatedTableFilename: string;
|
|
262
300
|
feedbackModal: {
|
|
263
301
|
positive: {
|
|
264
302
|
title: string;
|
|
@@ -274,22 +312,229 @@ export declare const aiTranslations: {
|
|
|
274
312
|
dataDownloadPreview: string;
|
|
275
313
|
expandChat: string;
|
|
276
314
|
collapseChat: string;
|
|
315
|
+
chatHistory: string;
|
|
316
|
+
noPreviousChats: string;
|
|
317
|
+
newConversation: string;
|
|
318
|
+
today: string;
|
|
319
|
+
yesterday: string;
|
|
320
|
+
thisMonth: string;
|
|
321
|
+
older: string;
|
|
322
|
+
searchChats: string;
|
|
323
|
+
pinnedChats: string;
|
|
324
|
+
threadOptions: string;
|
|
325
|
+
pinChat: string;
|
|
326
|
+
unpinChat: string;
|
|
327
|
+
deleteChat: string;
|
|
277
328
|
ask: string;
|
|
278
329
|
viewProfile: string;
|
|
279
330
|
tools: string;
|
|
331
|
+
reportCard: {
|
|
332
|
+
reportLabel: string;
|
|
333
|
+
openButton: string;
|
|
334
|
+
};
|
|
335
|
+
dataDownload: {
|
|
336
|
+
download: string;
|
|
337
|
+
};
|
|
338
|
+
unsavedChanges: string;
|
|
339
|
+
saveChanges: string;
|
|
340
|
+
discardChanges: string;
|
|
280
341
|
};
|
|
281
342
|
};
|
|
282
343
|
|
|
283
344
|
export declare function Blockquote({ children, ...props }: React.HTMLAttributes<HTMLQuoteElement>): JSX_2.Element;
|
|
284
345
|
|
|
346
|
+
/**
|
|
347
|
+
* Discriminated union for canvas panel content.
|
|
348
|
+
* Expand this union to support new content types in the canvas.
|
|
349
|
+
*/
|
|
350
|
+
export declare type CanvasContent = {
|
|
351
|
+
type: "dashboard";
|
|
352
|
+
title: string;
|
|
353
|
+
config: ChatDashboardConfig;
|
|
354
|
+
apiConfig: {
|
|
355
|
+
baseUrl: string;
|
|
356
|
+
headers: Record<string, string>;
|
|
357
|
+
};
|
|
358
|
+
toolCallId?: string;
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
export declare interface ChartComputation {
|
|
362
|
+
datasetId: string;
|
|
363
|
+
xAxis: string;
|
|
364
|
+
yAxis: string;
|
|
365
|
+
aggregation: AggregationType;
|
|
366
|
+
series?: string;
|
|
367
|
+
sortBy?: "value" | "category";
|
|
368
|
+
sortOrder?: "asc" | "desc";
|
|
369
|
+
limit?: number;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export declare interface ChatDashboardBarChartConfig extends ChatDashboardChartConfigBase {
|
|
373
|
+
type: "bar";
|
|
374
|
+
orientation?: "vertical" | "horizontal";
|
|
375
|
+
stacked?: boolean;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export declare type ChatDashboardChartConfig = ChatDashboardBarChartConfig | ChatDashboardLineChartConfig | ChatDashboardFunnelChartConfig | ChatDashboardRadarChartConfig | ChatDashboardPieChartConfig | ChatDashboardGaugeChartConfig | ChatDashboardHeatmapChartConfig;
|
|
379
|
+
|
|
380
|
+
declare interface ChatDashboardChartConfigBase {
|
|
381
|
+
showLegend?: boolean;
|
|
382
|
+
showGrid?: boolean;
|
|
383
|
+
showLabels?: boolean;
|
|
384
|
+
valueFormat?: FormatPreset;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
export declare interface ChatDashboardChartItem extends ChatDashboardItemBase {
|
|
388
|
+
type: "chart";
|
|
389
|
+
chart: ChatDashboardChartConfig;
|
|
390
|
+
computation: ChartComputation | RadarComputation | PieComputation | GaugeComputation | HeatmapComputation;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export declare interface ChatDashboardCollectionItem extends ChatDashboardItemBase {
|
|
394
|
+
type: "collection";
|
|
395
|
+
columns: ChatDashboardColumn[];
|
|
396
|
+
computation: CollectionComputation;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export declare interface ChatDashboardColumn {
|
|
400
|
+
/** Column key — must match a key in each row object */
|
|
401
|
+
id: string;
|
|
402
|
+
/** Display header label */
|
|
403
|
+
label: string;
|
|
404
|
+
/** Optional fixed width in pixels */
|
|
405
|
+
width?: number;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Complete dashboard configuration received via `displayDashboard`.
|
|
410
|
+
* Contains fetchSpecs that describe how to obtain data server-side —
|
|
411
|
+
* no raw data is included. Fully JSON-serializable.
|
|
412
|
+
*/
|
|
413
|
+
export declare interface ChatDashboardConfig {
|
|
414
|
+
/** Dashboard title displayed in the canvas header and chat report card */
|
|
415
|
+
title: string;
|
|
416
|
+
/** Filter definitions — keys become filter IDs */
|
|
417
|
+
filters?: Record<string, ChatDashboardFilterDefinition>;
|
|
418
|
+
/** Ordered list of dashboard items with computation specs */
|
|
419
|
+
items: ChatDashboardItem[];
|
|
420
|
+
/** Fetch specs for server-side data retrieval, keyed by datasetId */
|
|
421
|
+
fetchSpecs: Record<string, DashboardFetchSpec>;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export declare interface ChatDashboardFilterDefinition {
|
|
425
|
+
type: "in";
|
|
426
|
+
label: string;
|
|
427
|
+
column: string;
|
|
428
|
+
datasetId: string;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
export declare interface ChatDashboardFunnelChartConfig {
|
|
432
|
+
type: "funnel";
|
|
433
|
+
sort?: "descending" | "ascending" | "none";
|
|
434
|
+
orient?: "horizontal" | "vertical";
|
|
435
|
+
labelPosition?: "inside" | "outside";
|
|
436
|
+
showLegend?: boolean;
|
|
437
|
+
showLabels?: boolean;
|
|
438
|
+
showConversion?: boolean;
|
|
439
|
+
valueFormat?: FormatPreset;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
declare interface ChatDashboardGaugeChartConfig {
|
|
443
|
+
type: "gauge";
|
|
444
|
+
min?: number;
|
|
445
|
+
max?: number;
|
|
446
|
+
showValue?: boolean;
|
|
447
|
+
valueFormat?: FormatPreset;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
declare interface ChatDashboardHeatmapChartConfig {
|
|
451
|
+
type: "heatmap";
|
|
452
|
+
min?: number;
|
|
453
|
+
max?: number;
|
|
454
|
+
showLabels?: boolean;
|
|
455
|
+
showVisualMap?: boolean;
|
|
456
|
+
valueFormat?: FormatPreset;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export declare type ChatDashboardItem = ChatDashboardChartItem | ChatDashboardMetricItem | ChatDashboardCollectionItem;
|
|
460
|
+
|
|
461
|
+
declare interface ChatDashboardItemBase {
|
|
462
|
+
id: string;
|
|
463
|
+
title: string;
|
|
464
|
+
description?: string;
|
|
465
|
+
/** Source attribution shown as a subtitle (e.g. "Based on 8 feedbacks from 3 evaluators") */
|
|
466
|
+
sourceDescription?: string;
|
|
467
|
+
colSpan?: number;
|
|
468
|
+
rowSpan?: number;
|
|
469
|
+
x?: number;
|
|
470
|
+
y?: number;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export declare interface ChatDashboardLineChartConfig extends ChatDashboardChartConfigBase {
|
|
474
|
+
type: "line";
|
|
475
|
+
lineType?: "linear" | "smooth" | "step";
|
|
476
|
+
showArea?: boolean;
|
|
477
|
+
showDots?: boolean;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export declare type ChatDashboardMetricFormat = {
|
|
481
|
+
type: "number";
|
|
482
|
+
} | {
|
|
483
|
+
type: "currency";
|
|
484
|
+
currency?: string;
|
|
485
|
+
} | {
|
|
486
|
+
type: "percent";
|
|
487
|
+
} | {
|
|
488
|
+
type: "custom";
|
|
489
|
+
suffix?: string;
|
|
490
|
+
prefix?: string;
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
export declare interface ChatDashboardMetricItem extends ChatDashboardItemBase {
|
|
494
|
+
type: "metric";
|
|
495
|
+
format?: ChatDashboardMetricFormat;
|
|
496
|
+
decimals?: number;
|
|
497
|
+
computation: MetricComputation;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
declare interface ChatDashboardPieChartConfig {
|
|
501
|
+
type: "pie";
|
|
502
|
+
innerRadius?: number;
|
|
503
|
+
showLegend?: boolean;
|
|
504
|
+
showLabels?: boolean;
|
|
505
|
+
showPercentage?: boolean;
|
|
506
|
+
valueFormat?: FormatPreset;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
declare interface ChatDashboardRadarChartConfig extends ChatDashboardChartConfigBase {
|
|
510
|
+
type: "radar";
|
|
511
|
+
showArea?: boolean;
|
|
512
|
+
}
|
|
513
|
+
|
|
285
514
|
export declare const ChatSpinner: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
286
515
|
|
|
516
|
+
export declare interface CollectionComputation {
|
|
517
|
+
datasetId: string;
|
|
518
|
+
sortBy?: string;
|
|
519
|
+
sortOrder?: "asc" | "desc";
|
|
520
|
+
limit?: number;
|
|
521
|
+
}
|
|
522
|
+
|
|
287
523
|
/**
|
|
288
524
|
* CSS RGB color string type
|
|
289
525
|
* @example 'rgb(255, 0, 0)' or 'rgb(255,0,0)'
|
|
290
526
|
*/
|
|
291
527
|
export declare type CSSRgbString = `rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})`;
|
|
292
528
|
|
|
529
|
+
export declare interface DashboardFetchSpec {
|
|
530
|
+
fetch: Array<{
|
|
531
|
+
toolId: string;
|
|
532
|
+
args: Record<string, unknown>;
|
|
533
|
+
}>;
|
|
534
|
+
query: string | null;
|
|
535
|
+
columnLabels?: Record<string, string>;
|
|
536
|
+
}
|
|
537
|
+
|
|
293
538
|
export declare const defaultTranslations: {
|
|
294
539
|
readonly countries: {
|
|
295
540
|
ad: string;
|
|
@@ -660,6 +905,10 @@ export declare const defaultTranslations: {
|
|
|
660
905
|
readonly thoughtsGroupTitle: "Reflection";
|
|
661
906
|
readonly resourcesGroupTitle: "Resources";
|
|
662
907
|
readonly thinking: "Thinking...";
|
|
908
|
+
readonly closeDashboard: "Close dashboard";
|
|
909
|
+
readonly unsavedChanges: "Unsaved changes";
|
|
910
|
+
readonly saveChanges: "Save changes";
|
|
911
|
+
readonly discardChanges: "Discard";
|
|
663
912
|
readonly exportTable: "Download table";
|
|
664
913
|
readonly generatedTableFilename: "OneGeneratedTable";
|
|
665
914
|
readonly feedbackModal: {
|
|
@@ -677,9 +926,29 @@ export declare const defaultTranslations: {
|
|
|
677
926
|
readonly dataDownloadPreview: "Preview {{shown}} of {{total}} rows — download the Excel to see all data.";
|
|
678
927
|
readonly expandChat: "Expand chat";
|
|
679
928
|
readonly collapseChat: "Collapse chat";
|
|
929
|
+
readonly chatHistory: "Chat history";
|
|
930
|
+
readonly noPreviousChats: "No previous conversations";
|
|
931
|
+
readonly newConversation: "New conversation";
|
|
932
|
+
readonly today: "Today";
|
|
933
|
+
readonly yesterday: "Yesterday";
|
|
934
|
+
readonly thisMonth: "This month";
|
|
935
|
+
readonly older: "Older";
|
|
936
|
+
readonly searchChats: "Search conversations...";
|
|
937
|
+
readonly pinnedChats: "Pinned";
|
|
938
|
+
readonly threadOptions: "Thread options";
|
|
939
|
+
readonly pinChat: "Pin chat";
|
|
940
|
+
readonly unpinChat: "Unpin chat";
|
|
941
|
+
readonly deleteChat: "Delete chat";
|
|
680
942
|
readonly ask: "Ask One";
|
|
681
943
|
readonly viewProfile: "View profile";
|
|
682
944
|
readonly tools: "Tools";
|
|
945
|
+
readonly reportCard: {
|
|
946
|
+
readonly reportLabel: "Report";
|
|
947
|
+
readonly openButton: "Open";
|
|
948
|
+
};
|
|
949
|
+
readonly dataDownload: {
|
|
950
|
+
readonly download: "Download {{format}}";
|
|
951
|
+
};
|
|
683
952
|
readonly growth: {
|
|
684
953
|
readonly demoCard: {
|
|
685
954
|
readonly title: "See {{moduleName}} in action";
|
|
@@ -967,7 +1236,7 @@ export declare const F0AiChat: () => JSX_2.Element | null;
|
|
|
967
1236
|
/**
|
|
968
1237
|
* @experimental This is an experimental component use it at your own risk
|
|
969
1238
|
*/
|
|
970
|
-
export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, footer, entityResolvers, toolHints, onThumbsUp, onThumbsDown, children, agent, tracking, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
|
|
1239
|
+
export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, historyEnabled, footer, entityResolvers, toolHints, onThumbsUp, onThumbsDown, children, agent, tracking, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
|
|
971
1240
|
|
|
972
1241
|
export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, placeholders, defaultPlaceholder, autoFocus, entityResolvers, toolHints, activeToolHint, onActiveToolHintChange, }: F0AiChatTextAreaProps) => JSX_2.Element;
|
|
973
1242
|
|
|
@@ -1103,6 +1372,31 @@ declare const F0AuraVoiceAnimationVariants: (props?: ({
|
|
|
1103
1372
|
className?: ClassValue;
|
|
1104
1373
|
})) | undefined) => string;
|
|
1105
1374
|
|
|
1375
|
+
/**
|
|
1376
|
+
* Compact card shown inline in the AI chat to represent a generated
|
|
1377
|
+
* dashboard report. Uses F0Card with an icon avatar, the dashboard
|
|
1378
|
+
* title/description, and an item summary in metadata. Clicking the
|
|
1379
|
+
* card triggers `onView` to open the canvas panel.
|
|
1380
|
+
*
|
|
1381
|
+
* Subscribes to the external `savedDashboardConfigStore` via
|
|
1382
|
+
* `useSyncExternalStore` so it re-renders when the user edits the
|
|
1383
|
+
* dashboard layout and saves — independently of React context.
|
|
1384
|
+
*/
|
|
1385
|
+
export declare function F0ChatReportCard({ config: originalConfig, onView, toolCallId, }: F0ChatReportCardProps): JSX_2.Element;
|
|
1386
|
+
|
|
1387
|
+
export declare namespace F0ChatReportCard {
|
|
1388
|
+
var displayName: string;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
export declare interface F0ChatReportCardProps {
|
|
1392
|
+
/** The original dashboard config from the agent */
|
|
1393
|
+
config: ChatDashboardConfig;
|
|
1394
|
+
/** Callback when the user clicks the card to view the report */
|
|
1395
|
+
onView: (config: ChatDashboardConfig) => void;
|
|
1396
|
+
/** Tool call ID used to look up saved (edited) dashboard configs */
|
|
1397
|
+
toolCallId?: string;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1106
1400
|
/**
|
|
1107
1401
|
* Component that renders an optional markdown preview followed by
|
|
1108
1402
|
* a dropdown button with "Download Excel" as the primary action and
|
|
@@ -1310,6 +1604,22 @@ export declare type F0ThinkingProps = {
|
|
|
1310
1604
|
title?: string;
|
|
1311
1605
|
};
|
|
1312
1606
|
|
|
1607
|
+
/**
|
|
1608
|
+
* A preset formatting instruction the LLM can specify instead of a
|
|
1609
|
+
* real formatter function. The wrapper component maps these to actual
|
|
1610
|
+
* `(value: number) => string` functions at render time.
|
|
1611
|
+
*/
|
|
1612
|
+
export declare type FormatPreset = {
|
|
1613
|
+
type: "number";
|
|
1614
|
+
} | {
|
|
1615
|
+
type: "currency";
|
|
1616
|
+
currency?: string;
|
|
1617
|
+
} | {
|
|
1618
|
+
type: "percent";
|
|
1619
|
+
} | {
|
|
1620
|
+
type: "compact";
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1313
1623
|
export declare const FullscreenChatContext: Context<FullscreenChatContextType>;
|
|
1314
1624
|
|
|
1315
1625
|
/**
|
|
@@ -1320,12 +1630,29 @@ declare type FullscreenChatContextType = {
|
|
|
1320
1630
|
setInProgress: (value: boolean) => void;
|
|
1321
1631
|
};
|
|
1322
1632
|
|
|
1633
|
+
declare interface GaugeComputation {
|
|
1634
|
+
datasetId: string;
|
|
1635
|
+
aggregation: AggregationType;
|
|
1636
|
+
column?: string;
|
|
1637
|
+
min?: number;
|
|
1638
|
+
max?: number;
|
|
1639
|
+
name?: string;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1323
1642
|
export declare function H1({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
1324
1643
|
|
|
1325
1644
|
export declare function H2({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
1326
1645
|
|
|
1327
1646
|
export declare function H3({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
1328
1647
|
|
|
1648
|
+
declare interface HeatmapComputation {
|
|
1649
|
+
datasetId: string;
|
|
1650
|
+
xAxis: string;
|
|
1651
|
+
yAxis: string;
|
|
1652
|
+
valueColumn: string;
|
|
1653
|
+
aggregation: AggregationType;
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1329
1656
|
export declare function Hr({ ...props }: React.HTMLAttributes<HTMLHRElement>): JSX_2.Element;
|
|
1330
1657
|
|
|
1331
1658
|
export declare function I18nProvider({ children, translations, }: I18nProviderProps): JSX.Element;
|
|
@@ -1402,6 +1729,12 @@ export declare type MaskOptions = {
|
|
|
1402
1729
|
styles?: Partial<CSSStyleDeclaration>;
|
|
1403
1730
|
};
|
|
1404
1731
|
|
|
1732
|
+
export declare interface MetricComputation {
|
|
1733
|
+
datasetId: string;
|
|
1734
|
+
aggregation: AggregationType;
|
|
1735
|
+
column?: string;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1405
1738
|
export declare function Ol({ children, ...props }: React.HTMLAttributes<HTMLOListElement>): JSX_2.Element;
|
|
1406
1739
|
|
|
1407
1740
|
export declare type OneIconSize = (typeof oneIconSizes)[number];
|
|
@@ -1426,8 +1759,31 @@ export declare type PersonProfile = {
|
|
|
1426
1759
|
jobTitle?: string;
|
|
1427
1760
|
};
|
|
1428
1761
|
|
|
1762
|
+
declare interface PieComputation {
|
|
1763
|
+
datasetId: string;
|
|
1764
|
+
nameColumn: string;
|
|
1765
|
+
valueColumn: string;
|
|
1766
|
+
aggregation: AggregationType;
|
|
1767
|
+
sortBy?: "value" | "name";
|
|
1768
|
+
sortOrder?: "asc" | "desc";
|
|
1769
|
+
limit?: number;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1429
1772
|
export declare function Pre({ children, ...props }: React.HTMLAttributes<HTMLPreElement>): JSX_2.Element;
|
|
1430
1773
|
|
|
1774
|
+
declare interface RadarComputation {
|
|
1775
|
+
datasetId: string;
|
|
1776
|
+
seriesColumn: string;
|
|
1777
|
+
indicators: Array<{
|
|
1778
|
+
column: string;
|
|
1779
|
+
label: string;
|
|
1780
|
+
max?: number;
|
|
1781
|
+
}>;
|
|
1782
|
+
limit?: number;
|
|
1783
|
+
sortBy?: string;
|
|
1784
|
+
sortOrder?: "asc" | "desc";
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1431
1787
|
export declare function Strong({ children, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
1432
1788
|
|
|
1433
1789
|
export declare function Table({ children, ...props }: React.HTMLAttributes<HTMLTableElement>): JSX_2.Element;
|
|
@@ -1495,7 +1851,7 @@ export declare const useOrchestratorThinkingAction: () => void;
|
|
|
1495
1851
|
/**
|
|
1496
1852
|
* Visualization mode for the AI chat
|
|
1497
1853
|
*/
|
|
1498
|
-
export declare type VisualizationMode = "sidepanel" | "fullscreen";
|
|
1854
|
+
export declare type VisualizationMode = "sidepanel" | "fullscreen" | "canvas";
|
|
1499
1855
|
|
|
1500
1856
|
/**
|
|
1501
1857
|
* Welcome screen suggestion item
|
|
@@ -1546,6 +1902,11 @@ declare module "gridstack" {
|
|
|
1546
1902
|
}
|
|
1547
1903
|
|
|
1548
1904
|
|
|
1905
|
+
declare namespace Calendar {
|
|
1906
|
+
var displayName: string;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
|
|
1549
1910
|
declare module "@tiptap/core" {
|
|
1550
1911
|
interface Commands<ReturnType> {
|
|
1551
1912
|
aiBlock: {
|
|
@@ -1593,8 +1954,3 @@ declare module "@tiptap/core" {
|
|
|
1593
1954
|
};
|
|
1594
1955
|
}
|
|
1595
1956
|
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
declare namespace Calendar {
|
|
1599
|
-
var displayName: string;
|
|
1600
|
-
}
|
package/dist/ai.js
CHANGED
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defaultTranslations as
|
|
3
|
-
import { A as
|
|
1
|
+
import { I as e, u as t } from "./F0Input-JjjfHKNJ.js";
|
|
2
|
+
import { defaultTranslations as i } from "./i18n-provider-defaults.js";
|
|
3
|
+
import { A as r, B as l, C as A, p as F, E as c, g as u, F as h, a as C, z as d, h as m, b as T, i as f, j as p, v as I, w as S, x as g, y as k, c as x, q as H, r as M, s as P, H as b, I as w, L as O, O as v, t as R, P as D, S as E, T as L, m as q, n as y, o as z, U as B, k as U, l as j, u as V, d as G, f as J, e as K } from "./F0AiChat-B75wNcO_.js";
|
|
4
|
+
import { A as Q, F as W, c as X, d as Y, b as Z, a as _, o as $, u as aa } from "./F0HILActionConfirmation-CasXGy89.js";
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
6
|
+
r as A,
|
|
7
|
+
Q as AiChatTranslationsProvider,
|
|
8
|
+
l as Blockquote,
|
|
9
|
+
A as ChatSpinner,
|
|
10
|
+
F as Em,
|
|
11
|
+
c as EntityRef,
|
|
12
|
+
u as F0ActionItem,
|
|
13
|
+
h as F0AiChat,
|
|
14
|
+
C as F0AiChatProvider,
|
|
15
|
+
d as F0AiChatTextArea,
|
|
16
|
+
m as F0AiCollapsibleMessage,
|
|
17
|
+
T as F0AiFullscreenChat,
|
|
18
|
+
W as F0AiMask,
|
|
19
|
+
X as F0AuraVoiceAnimation,
|
|
20
|
+
f as F0ChatReportCard,
|
|
21
|
+
p as F0DataDownload,
|
|
22
|
+
Y as F0HILActionConfirmation,
|
|
23
|
+
I as F0MessageSources,
|
|
24
|
+
S as F0OneIcon,
|
|
25
|
+
g as F0OneSwitch,
|
|
26
|
+
k as F0Thinking,
|
|
27
|
+
x as FullscreenChatContext,
|
|
28
|
+
H as H1,
|
|
29
|
+
M as H2,
|
|
30
|
+
P as H3,
|
|
31
|
+
b as Hr,
|
|
32
|
+
e as I18nProvider,
|
|
33
|
+
w as Image,
|
|
34
|
+
O as Li,
|
|
35
|
+
v as Ol,
|
|
36
|
+
R as P,
|
|
37
|
+
D as Pre,
|
|
38
|
+
E as Strong,
|
|
39
|
+
L as Table,
|
|
40
|
+
q as TableSimple,
|
|
41
|
+
y as Td,
|
|
42
|
+
z as Th,
|
|
43
|
+
B as Ul,
|
|
44
|
+
Z as actionItemStatuses,
|
|
45
|
+
_ as aiTranslations,
|
|
46
|
+
i as defaultTranslations,
|
|
47
|
+
U as f0MarkdownRenderers,
|
|
48
|
+
j as f0MarkdownRenderersSimple,
|
|
49
|
+
$ as oneIconSizes,
|
|
50
|
+
V as useAiChat,
|
|
51
|
+
aa as useAiChatTranslations,
|
|
52
|
+
G as useDefaultCopilotActions,
|
|
53
|
+
t as useI18n,
|
|
54
|
+
J as useMessageSourcesAction,
|
|
55
|
+
K as useOrchestratorThinkingAction
|
|
54
56
|
};
|