@factorialco/f0-react 1.415.0 → 1.416.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/{F0HILActionConfirmation-Bu877U3G.js → F0HILActionConfirmation-wHMAslzT.js} +381 -448
- package/dist/ai.d.ts +189 -447
- package/dist/ai.js +27 -60
- package/dist/experimental.d.ts +52 -7
- package/dist/experimental.js +1782 -1796
- package/dist/f0.d.ts +206 -447
- package/dist/f0.js +13030 -4020
- package/dist/i18n-provider-defaults.d.ts +20 -7
- package/dist/i18n-provider-defaults.js +17 -4
- package/dist/index-D0_xokao.js +48074 -0
- package/dist/{F0AiChat.css → index.css} +1 -1
- package/dist/{F0Input-Ctwd5zZH.js → registry-BAlv1mKf.js} +160407 -67991
- package/dist/{F0AnalyticsDashboard.css → registry.css} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/F0AiChat-CrcLUV-I.js +0 -63788
- package/dist/F0AnalyticsDashboard-BhvG-yU1.js +0 -54136
- package/dist/F0ChatDashboard.d.ts +0 -364
- package/dist/F0ChatDashboard.js +0 -292
- package/dist/index-BZMnPkIB.js +0 -22909
- package/dist/useDataCollectionSource-BH2-U4PN.js +0 -8206
- package/dist/useDataCollectionSource.css +0 -1
package/dist/f0.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { AmountCellValue } from './f0';
|
|
|
7
7
|
import { AmountCellValue as AmountCellValue_2 } from './types/amount';
|
|
8
8
|
import { AnchorHTMLAttributes } from 'react';
|
|
9
9
|
import { AriaAttributes } from 'react';
|
|
10
|
-
import { AssistantMessageProps } from '@copilotkit/react-ui';
|
|
11
10
|
import { AutoFill as AutoFill_2 } from 'react';
|
|
12
11
|
import { AvatarListCellValue } from './f0';
|
|
13
12
|
import { AvatarListCellValue as AvatarListCellValue_2 } from './types/avatarList';
|
|
@@ -81,6 +80,7 @@ import { HTMLAttributes } from 'react';
|
|
|
81
80
|
import { IconCellValue } from './types/icon';
|
|
82
81
|
import { ImgHTMLAttributes } from 'react';
|
|
83
82
|
import { InFilterOptions } from './InFilter/types';
|
|
83
|
+
import { InputProps } from '@copilotkit/react-ui';
|
|
84
84
|
import { internalAvatarColors as internalAvatarColors_2 } from './f0';
|
|
85
85
|
import { internalAvatarSizes as internalAvatarSizes_2 } from './f0';
|
|
86
86
|
import { internalAvatarTypes as internalAvatarTypes_2 } from './f0';
|
|
@@ -90,7 +90,6 @@ import { LineChartPropsBase } from './utils/types';
|
|
|
90
90
|
import { LocalAudioTrack } from 'livekit-client';
|
|
91
91
|
import { LongTextCellValue } from './types/longText';
|
|
92
92
|
import { Message } from '@copilotkit/shared';
|
|
93
|
-
import { MessagesProps } from '@copilotkit/react-ui';
|
|
94
93
|
import { NumberCellValue } from './f0';
|
|
95
94
|
import { NumberCellValue as NumberCellValue_2 } from './types/number';
|
|
96
95
|
import { NumberFilterOptions } from './NumberFilter/NumberFilter';
|
|
@@ -143,8 +142,6 @@ import { ZodRawShape } from 'zod';
|
|
|
143
142
|
import { ZodType } from 'zod';
|
|
144
143
|
import { ZodTypeAny } from 'zod';
|
|
145
144
|
|
|
146
|
-
export declare function A({ children, ...props }: React.AnchorHTMLAttributes<HTMLAnchorElement>): JSX_2.Element;
|
|
147
|
-
|
|
148
145
|
export declare type Action = UpsellAction | RegularAction;
|
|
149
146
|
|
|
150
147
|
declare type Action_2 = {
|
|
@@ -303,7 +300,26 @@ declare type AddRowActionsResult = PrimaryActionItemDefinition | PrimaryActionIt
|
|
|
303
300
|
|
|
304
301
|
/* Excluded from this release type: AgentState */
|
|
305
302
|
|
|
306
|
-
|
|
303
|
+
declare type AggregationType = "count" | "sum" | "avg" | "min" | "max" | "countDistinct";
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Credits configuration for the AI chat.
|
|
307
|
+
* Groups all credits-related props into a single object.
|
|
308
|
+
*
|
|
309
|
+
* When provided, a credits button is shown in the chat header.
|
|
310
|
+
*/
|
|
311
|
+
export declare type AiChatCredits = {
|
|
312
|
+
/** Async function to fetch credits usage. Called each time the popover opens. */
|
|
313
|
+
fetchUsage: () => Promise<CreditsUsage>;
|
|
314
|
+
/** URL to the plan upgrade page. When provided, a link is shown in the popover. */
|
|
315
|
+
upgradePlanUrl?: string;
|
|
316
|
+
/** Company name displayed in the popover header. */
|
|
317
|
+
companyName?: string;
|
|
318
|
+
/** Company logo URL displayed in the popover header. */
|
|
319
|
+
companyLogoUrl?: string;
|
|
320
|
+
/** Plan name displayed below the company name (e.g. "Free plan", "Enterprise"). */
|
|
321
|
+
planName?: string;
|
|
322
|
+
};
|
|
307
323
|
|
|
308
324
|
/**
|
|
309
325
|
* Disclaimer configuration for the chat input
|
|
@@ -372,6 +388,11 @@ export declare type AiChatProviderProps = {
|
|
|
372
388
|
* Only one tool hint can be active at a time.
|
|
373
389
|
*/
|
|
374
390
|
toolHints?: AiChatToolHint[];
|
|
391
|
+
/**
|
|
392
|
+
* Credits configuration. When provided, a credits button is shown in the chat header.
|
|
393
|
+
* Groups fetchUsage, upgradePlanUrl, and company/plan display info.
|
|
394
|
+
*/
|
|
395
|
+
credits?: AiChatCredits;
|
|
375
396
|
onThumbsUp?: (message: AIMessage, { threadId, feedback }: {
|
|
376
397
|
threadId: string;
|
|
377
398
|
feedback: string;
|
|
@@ -477,7 +498,11 @@ declare type AiChatProviderReturnValue = {
|
|
|
477
498
|
* Set the footer content. Use this to update the footer from outside the provider (e.g. per page/route).
|
|
478
499
|
*/
|
|
479
500
|
setFooter: React.Dispatch<React.SetStateAction<React.ReactNode | undefined>>;
|
|
480
|
-
|
|
501
|
+
/** Whether the assistant is currently generating a response */
|
|
502
|
+
inProgress: boolean;
|
|
503
|
+
/** Set the in-progress state (synced from CopilotKit's isLoading) */
|
|
504
|
+
setInProgress: (value: boolean) => void;
|
|
505
|
+
} & Pick<AiChatState, "greeting" | "agent" | "disclaimer" | "resizable" | "entityResolvers" | "toolHints" | "credits"> & {
|
|
481
506
|
/** The current canvas content, or null when canvas is closed */
|
|
482
507
|
canvasContent: CanvasContent | null;
|
|
483
508
|
/** Open the canvas panel with the given content */
|
|
@@ -508,6 +533,7 @@ declare interface AiChatState {
|
|
|
508
533
|
VoiceMode?: React.ComponentType;
|
|
509
534
|
entityResolvers?: EntityResolvers;
|
|
510
535
|
toolHints?: AiChatToolHint[];
|
|
536
|
+
credits?: AiChatCredits;
|
|
511
537
|
placeholders?: string[];
|
|
512
538
|
setPlaceholders?: React.Dispatch<React.SetStateAction<string[]>>;
|
|
513
539
|
onThumbsUp?: (message: AIMessage, { threadId, feedback }: {
|
|
@@ -570,73 +596,109 @@ export declare interface AiChatTranslationsProviderProps {
|
|
|
570
596
|
}
|
|
571
597
|
|
|
572
598
|
/**
|
|
573
|
-
* Default AI chat translations
|
|
599
|
+
* Default AI chat translations — derived from the global defaultTranslations
|
|
600
|
+
* to avoid manual duplication.
|
|
574
601
|
*/
|
|
575
602
|
export declare const aiTranslations: {
|
|
576
603
|
ai: {
|
|
577
|
-
openChat:
|
|
578
|
-
closeChat:
|
|
579
|
-
startNewChat:
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
604
|
+
readonly openChat: "Open Chat with One AI";
|
|
605
|
+
readonly closeChat: "Close Chat with One AI";
|
|
606
|
+
readonly startNewChat: "Start new chat";
|
|
607
|
+
readonly settings: "Settings";
|
|
608
|
+
readonly scrollToBottom: "Scroll to bottom";
|
|
609
|
+
readonly welcome: "Ask or create with One";
|
|
610
|
+
readonly defaultInitialMessage: "How can I help you today?";
|
|
611
|
+
readonly inputPlaceholder: "Ask about time, people, or company info and a lot of other things...";
|
|
612
|
+
readonly stopAnswerGeneration: "Stop generating";
|
|
613
|
+
readonly responseStopped: "You stopped this response";
|
|
614
|
+
readonly sendMessage: "Send message";
|
|
615
|
+
readonly thoughtsGroupTitle: "Reflection";
|
|
616
|
+
readonly resourcesGroupTitle: "Resources";
|
|
617
|
+
readonly thinking: "Thinking...";
|
|
618
|
+
readonly closeDashboard: "Close dashboard";
|
|
619
|
+
readonly unsavedChanges: "Unsaved changes";
|
|
620
|
+
readonly saveChanges: "Save changes";
|
|
621
|
+
readonly discardChanges: "Discard";
|
|
622
|
+
readonly exportTable: "Download table";
|
|
623
|
+
readonly generatedTableFilename: "OneGeneratedTable";
|
|
624
|
+
readonly feedbackModal: {
|
|
625
|
+
readonly positive: {
|
|
626
|
+
readonly title: "What did you like about this response?";
|
|
627
|
+
readonly label: "Your feedback helps us make Factorial AI better";
|
|
628
|
+
readonly placeholder: "Share what worked well";
|
|
598
629
|
};
|
|
599
|
-
negative: {
|
|
600
|
-
title:
|
|
601
|
-
label:
|
|
602
|
-
placeholder:
|
|
630
|
+
readonly negative: {
|
|
631
|
+
readonly title: "What could have been better?";
|
|
632
|
+
readonly label: "Your feedback helps us improve future answers";
|
|
633
|
+
readonly placeholder: "Share what didn’t work";
|
|
603
634
|
};
|
|
604
635
|
};
|
|
605
|
-
dataDownloadPreview:
|
|
606
|
-
expandChat:
|
|
607
|
-
collapseChat:
|
|
608
|
-
chatHistory:
|
|
609
|
-
noPreviousChats:
|
|
610
|
-
newConversation:
|
|
611
|
-
today:
|
|
612
|
-
yesterday:
|
|
613
|
-
thisMonth:
|
|
614
|
-
older:
|
|
615
|
-
searchChats:
|
|
616
|
-
pinnedChats:
|
|
617
|
-
threadOptions:
|
|
618
|
-
pinChat:
|
|
619
|
-
unpinChat:
|
|
620
|
-
deleteChat:
|
|
621
|
-
ask:
|
|
622
|
-
viewProfile:
|
|
623
|
-
tools:
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
636
|
+
readonly dataDownloadPreview: "Preview {{shown}} of {{total}} rows — download the Excel to see all data.";
|
|
637
|
+
readonly expandChat: "Expand chat";
|
|
638
|
+
readonly collapseChat: "Collapse chat";
|
|
639
|
+
readonly chatHistory: "Chat history";
|
|
640
|
+
readonly noPreviousChats: "No previous conversations";
|
|
641
|
+
readonly newConversation: "New conversation";
|
|
642
|
+
readonly today: "Today";
|
|
643
|
+
readonly yesterday: "Yesterday";
|
|
644
|
+
readonly thisMonth: "This month";
|
|
645
|
+
readonly older: "Older";
|
|
646
|
+
readonly searchChats: "Search conversations...";
|
|
647
|
+
readonly pinnedChats: "Pinned";
|
|
648
|
+
readonly threadOptions: "Thread options";
|
|
649
|
+
readonly pinChat: "Pin chat";
|
|
650
|
+
readonly unpinChat: "Unpin chat";
|
|
651
|
+
readonly deleteChat: "Delete chat";
|
|
652
|
+
readonly ask: "Ask One";
|
|
653
|
+
readonly viewProfile: "View profile";
|
|
654
|
+
readonly tools: "Tools";
|
|
655
|
+
readonly credits: {
|
|
656
|
+
readonly title: "Credits";
|
|
657
|
+
readonly creditsLeft: "{{total}} left";
|
|
658
|
+
readonly monthlyCredits: "Monthly credits";
|
|
659
|
+
readonly creditsError: "Could not load credits";
|
|
660
|
+
readonly upgradePlan: "Upgrade";
|
|
661
|
+
readonly needMoreCredits: "Need more credits?";
|
|
627
662
|
};
|
|
628
|
-
|
|
629
|
-
|
|
663
|
+
readonly reportCard: {
|
|
664
|
+
readonly reportLabel: "Report";
|
|
665
|
+
readonly openButton: "Open";
|
|
666
|
+
};
|
|
667
|
+
readonly dataDownload: {
|
|
668
|
+
readonly download: "Download {{format}}";
|
|
669
|
+
readonly exportDashboard: "Export dashboard as {{format}}";
|
|
670
|
+
readonly exporting: "Exporting...";
|
|
671
|
+
};
|
|
672
|
+
readonly pong: {
|
|
673
|
+
readonly title: "Pong";
|
|
674
|
+
readonly youWin: "You win!";
|
|
675
|
+
readonly youLose: "You lose!";
|
|
676
|
+
readonly goal: "Goal";
|
|
677
|
+
readonly controls: "← → to move";
|
|
678
|
+
readonly escToExit: "Esc to exit";
|
|
630
679
|
};
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
680
|
+
readonly growth: {
|
|
681
|
+
readonly demoCard: {
|
|
682
|
+
readonly title: "See {{moduleName}} in action";
|
|
683
|
+
readonly actionLabel: "Start demo";
|
|
684
|
+
};
|
|
685
|
+
readonly bookAMeetingCard: {
|
|
686
|
+
readonly title: "Talk with an expert";
|
|
687
|
+
readonly schedule: "Mon-Fri · 09:00-21:00 (CEST)";
|
|
688
|
+
readonly actionLabel: "Book a meeting";
|
|
689
|
+
};
|
|
690
|
+
readonly questionCard: {
|
|
691
|
+
readonly actionLabel: "Next";
|
|
692
|
+
readonly skipLabel: "Skip";
|
|
693
|
+
readonly sendLabel: "Send";
|
|
694
|
+
};
|
|
695
|
+
readonly moduleCard: {
|
|
696
|
+
readonly actionLabel: "Learn more";
|
|
697
|
+
};
|
|
698
|
+
readonly faqCard: {
|
|
699
|
+
readonly title: "Questions before getting started";
|
|
700
|
+
};
|
|
636
701
|
};
|
|
637
|
-
unsavedChanges: string;
|
|
638
|
-
saveChanges: string;
|
|
639
|
-
discardChanges: string;
|
|
640
702
|
};
|
|
641
703
|
};
|
|
642
704
|
|
|
@@ -1052,8 +1114,6 @@ export declare type BigNumberProps = {
|
|
|
1052
1114
|
comparison: Numeric | NumberWithFormatter | number;
|
|
1053
1115
|
};
|
|
1054
1116
|
|
|
1055
|
-
export declare function Blockquote({ children, ...props }: React.HTMLAttributes<HTMLQuoteElement>): JSX_2.Element;
|
|
1056
|
-
|
|
1057
1117
|
/**
|
|
1058
1118
|
* Base for boolean-specific conditions
|
|
1059
1119
|
*/
|
|
@@ -1361,13 +1421,13 @@ export declare type CanvasContentBase = {
|
|
|
1361
1421
|
* Contract for a canvas entity type.
|
|
1362
1422
|
*
|
|
1363
1423
|
* Each entity (dashboard, survey, goal, job-posting…) implements this
|
|
1364
|
-
* interface and
|
|
1424
|
+
* interface and is added to the `canvasEntities` record in `registry.ts`.
|
|
1365
1425
|
*
|
|
1366
1426
|
* To add a new entity type:
|
|
1367
1427
|
* 1. Create a folder in `canvas/entities/<your-entity>/`
|
|
1368
1428
|
* 2. Define a type extending `CanvasContentBase` in `types.ts`
|
|
1369
|
-
* 3. Implement `CanvasEntityDefinition` in `index.
|
|
1370
|
-
* 4.
|
|
1429
|
+
* 3. Implement and export `CanvasEntityDefinition` in `index.tsx`
|
|
1430
|
+
* 4. Add the entity to the record in `canvas/registry.ts`
|
|
1371
1431
|
*/
|
|
1372
1432
|
export declare type CanvasEntityDefinition<T extends CanvasContentBase = CanvasContentBase> = {
|
|
1373
1433
|
/** Must match the `type` discriminant on the content object */
|
|
@@ -1377,13 +1437,14 @@ export declare type CanvasEntityDefinition<T extends CanvasContentBase = CanvasC
|
|
|
1377
1437
|
content: T;
|
|
1378
1438
|
refreshKey: number;
|
|
1379
1439
|
}) => ReactNode;
|
|
1380
|
-
/** Renders header
|
|
1381
|
-
|
|
1440
|
+
/** Renders the full header (title, actions, close button) */
|
|
1441
|
+
renderHeader: (props: {
|
|
1382
1442
|
content: T;
|
|
1443
|
+
onClose: () => void;
|
|
1383
1444
|
}) => ReactNode;
|
|
1384
1445
|
/**
|
|
1385
1446
|
* Optional wrapper providing entity-scoped context around
|
|
1386
|
-
* both header
|
|
1447
|
+
* both header and body (e.g. shared edit-mode state).
|
|
1387
1448
|
*/
|
|
1388
1449
|
wrapper?: (props: {
|
|
1389
1450
|
content: T;
|
|
@@ -1606,7 +1667,7 @@ declare type ChartColorToken = (typeof chartColorTokens)[number];
|
|
|
1606
1667
|
*/
|
|
1607
1668
|
declare const chartColorTokens: readonly ["lilac", "barbie", "smoke", "army", "flubber", "indigo", "camel", "radical", "viridian", "orange", "red", "grass", "malibu", "yellow", "purple"];
|
|
1608
1669
|
|
|
1609
|
-
|
|
1670
|
+
declare interface ChartComputation {
|
|
1610
1671
|
datasetId: string;
|
|
1611
1672
|
xAxis: string;
|
|
1612
1673
|
yAxis: string;
|
|
@@ -1630,13 +1691,13 @@ declare interface ChartConfigBase {
|
|
|
1630
1691
|
categoryFormatter?: (value: string) => string;
|
|
1631
1692
|
}
|
|
1632
1693
|
|
|
1633
|
-
|
|
1694
|
+
declare interface ChatDashboardBarChartConfig extends ChatDashboardChartConfigBase {
|
|
1634
1695
|
type: "bar";
|
|
1635
1696
|
orientation?: "vertical" | "horizontal";
|
|
1636
1697
|
stacked?: boolean;
|
|
1637
1698
|
}
|
|
1638
1699
|
|
|
1639
|
-
|
|
1700
|
+
declare type ChatDashboardChartConfig = ChatDashboardBarChartConfig | ChatDashboardLineChartConfig | ChatDashboardFunnelChartConfig | ChatDashboardRadarChartConfig | ChatDashboardPieChartConfig | ChatDashboardGaugeChartConfig | ChatDashboardHeatmapChartConfig;
|
|
1640
1701
|
|
|
1641
1702
|
declare interface ChatDashboardChartConfigBase {
|
|
1642
1703
|
showLegend?: boolean;
|
|
@@ -1645,19 +1706,19 @@ declare interface ChatDashboardChartConfigBase {
|
|
|
1645
1706
|
valueFormat?: FormatPreset;
|
|
1646
1707
|
}
|
|
1647
1708
|
|
|
1648
|
-
|
|
1709
|
+
declare interface ChatDashboardChartItem extends ChatDashboardItemBase {
|
|
1649
1710
|
type: "chart";
|
|
1650
1711
|
chart: ChatDashboardChartConfig;
|
|
1651
1712
|
computation: ChartComputation | RadarComputation | PieComputation | GaugeComputation | HeatmapComputation;
|
|
1652
1713
|
}
|
|
1653
1714
|
|
|
1654
|
-
|
|
1715
|
+
declare interface ChatDashboardCollectionItem extends ChatDashboardItemBase {
|
|
1655
1716
|
type: "collection";
|
|
1656
1717
|
columns: ChatDashboardColumn[];
|
|
1657
1718
|
computation: CollectionComputation;
|
|
1658
1719
|
}
|
|
1659
1720
|
|
|
1660
|
-
|
|
1721
|
+
declare interface ChatDashboardColumn {
|
|
1661
1722
|
/** Column key — must match a key in each row object */
|
|
1662
1723
|
id: string;
|
|
1663
1724
|
/** Display header label */
|
|
@@ -1671,7 +1732,7 @@ export declare interface ChatDashboardColumn {
|
|
|
1671
1732
|
* Contains fetchSpecs that describe how to obtain data server-side —
|
|
1672
1733
|
* no raw data is included. Fully JSON-serializable.
|
|
1673
1734
|
*/
|
|
1674
|
-
|
|
1735
|
+
declare interface ChatDashboardConfig {
|
|
1675
1736
|
/** Dashboard title displayed in the canvas header and chat report card */
|
|
1676
1737
|
title: string;
|
|
1677
1738
|
/** Filter definitions — keys become filter IDs */
|
|
@@ -1682,14 +1743,14 @@ export declare interface ChatDashboardConfig {
|
|
|
1682
1743
|
fetchSpecs: Record<string, DashboardFetchSpec>;
|
|
1683
1744
|
}
|
|
1684
1745
|
|
|
1685
|
-
|
|
1746
|
+
declare interface ChatDashboardFilterDefinition {
|
|
1686
1747
|
type: "in";
|
|
1687
1748
|
label: string;
|
|
1688
1749
|
column: string;
|
|
1689
1750
|
datasetId: string;
|
|
1690
1751
|
}
|
|
1691
1752
|
|
|
1692
|
-
|
|
1753
|
+
declare interface ChatDashboardFunnelChartConfig {
|
|
1693
1754
|
type: "funnel";
|
|
1694
1755
|
sort?: "descending" | "ascending" | "none";
|
|
1695
1756
|
orient?: "horizontal" | "vertical";
|
|
@@ -1717,7 +1778,7 @@ declare interface ChatDashboardHeatmapChartConfig {
|
|
|
1717
1778
|
valueFormat?: FormatPreset;
|
|
1718
1779
|
}
|
|
1719
1780
|
|
|
1720
|
-
|
|
1781
|
+
declare type ChatDashboardItem = ChatDashboardChartItem | ChatDashboardMetricItem | ChatDashboardCollectionItem;
|
|
1721
1782
|
|
|
1722
1783
|
declare interface ChatDashboardItemBase {
|
|
1723
1784
|
id: string;
|
|
@@ -1731,14 +1792,14 @@ declare interface ChatDashboardItemBase {
|
|
|
1731
1792
|
y?: number;
|
|
1732
1793
|
}
|
|
1733
1794
|
|
|
1734
|
-
|
|
1795
|
+
declare interface ChatDashboardLineChartConfig extends ChatDashboardChartConfigBase {
|
|
1735
1796
|
type: "line";
|
|
1736
1797
|
lineType?: "linear" | "smooth" | "step";
|
|
1737
1798
|
showArea?: boolean;
|
|
1738
1799
|
showDots?: boolean;
|
|
1739
1800
|
}
|
|
1740
1801
|
|
|
1741
|
-
|
|
1802
|
+
declare type ChatDashboardMetricFormat = {
|
|
1742
1803
|
type: "number";
|
|
1743
1804
|
} | {
|
|
1744
1805
|
type: "currency";
|
|
@@ -1751,7 +1812,7 @@ export declare type ChatDashboardMetricFormat = {
|
|
|
1751
1812
|
prefix?: string;
|
|
1752
1813
|
};
|
|
1753
1814
|
|
|
1754
|
-
|
|
1815
|
+
declare interface ChatDashboardMetricItem extends ChatDashboardItemBase {
|
|
1755
1816
|
type: "metric";
|
|
1756
1817
|
format?: ChatDashboardMetricFormat;
|
|
1757
1818
|
decimals?: number;
|
|
@@ -1774,6 +1835,10 @@ declare interface ChatDashboardRadarChartConfig extends ChatDashboardChartConfig
|
|
|
1774
1835
|
|
|
1775
1836
|
export declare const ChatSpinner: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
1776
1837
|
|
|
1838
|
+
declare type ChatTextareaProps = InputProps & {
|
|
1839
|
+
submitLabel?: string;
|
|
1840
|
+
};
|
|
1841
|
+
|
|
1777
1842
|
/**
|
|
1778
1843
|
* All valid renderIf conditions for checkbox fields
|
|
1779
1844
|
*/
|
|
@@ -1893,7 +1958,7 @@ declare const chipVariants: (props?: ({
|
|
|
1893
1958
|
|
|
1894
1959
|
declare type ColId = string;
|
|
1895
1960
|
|
|
1896
|
-
|
|
1961
|
+
declare interface CollectionComputation {
|
|
1897
1962
|
datasetId: string;
|
|
1898
1963
|
sortBy?: string;
|
|
1899
1964
|
sortOrder?: "asc" | "desc";
|
|
@@ -2031,6 +2096,14 @@ export declare const createPageLayoutBlock: <Props = unknown>(displayName: strin
|
|
|
2031
2096
|
|
|
2032
2097
|
export declare const createPageLayoutBlockGroup: <Props = unknown>(displayName: string, Component: React.ComponentType<Props>) => React.ComponentType<Props> & PageLayoutGroupComponent;
|
|
2033
2098
|
|
|
2099
|
+
/**
|
|
2100
|
+
* Credits usage data returned by the host app
|
|
2101
|
+
*/
|
|
2102
|
+
export declare type CreditsUsage = {
|
|
2103
|
+
used: number;
|
|
2104
|
+
total: number;
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2034
2107
|
/**
|
|
2035
2108
|
* CSS RGB color string type
|
|
2036
2109
|
* @example 'rgb(255, 0, 0)' or 'rgb(255,0,0)'
|
|
@@ -2129,17 +2202,6 @@ export declare type DashboardCanvasContent = CanvasContentBase & {
|
|
|
2129
2202
|
};
|
|
2130
2203
|
};
|
|
2131
2204
|
|
|
2132
|
-
/**
|
|
2133
|
-
* Dashboard-specific card that wraps CanvasCard with config-store
|
|
2134
|
-
* subscription logic. Re-renders when the user edits and saves
|
|
2135
|
-
* the dashboard layout.
|
|
2136
|
-
*/
|
|
2137
|
-
declare function DashboardCard({ config: originalConfig, onView, toolCallId, }: F0ChatReportCardProps): JSX_2.Element;
|
|
2138
|
-
|
|
2139
|
-
declare namespace DashboardCard {
|
|
2140
|
-
var displayName: string;
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
2205
|
/**
|
|
2144
2206
|
* Chart display configuration — discriminated on `type`.
|
|
2145
2207
|
* This object is JSON-serializable (no functions, except optional formatters).
|
|
@@ -2201,7 +2263,7 @@ export declare interface DashboardCollectionItem<Filters extends FiltersDefiniti
|
|
|
2201
2263
|
visualizations: ReadonlyArray<any>;
|
|
2202
2264
|
}
|
|
2203
2265
|
|
|
2204
|
-
|
|
2266
|
+
declare interface DashboardFetchSpec {
|
|
2205
2267
|
fetch: Array<{
|
|
2206
2268
|
toolId: string;
|
|
2207
2269
|
args: Record<string, unknown>;
|
|
@@ -3079,6 +3141,7 @@ export declare const defaultTranslations: {
|
|
|
3079
3141
|
readonly openChat: "Open Chat with One AI";
|
|
3080
3142
|
readonly closeChat: "Close Chat with One AI";
|
|
3081
3143
|
readonly startNewChat: "Start new chat";
|
|
3144
|
+
readonly settings: "Settings";
|
|
3082
3145
|
readonly scrollToBottom: "Scroll to bottom";
|
|
3083
3146
|
readonly welcome: "Ask or create with One";
|
|
3084
3147
|
readonly defaultInitialMessage: "How can I help you today?";
|
|
@@ -3126,18 +3189,30 @@ export declare const defaultTranslations: {
|
|
|
3126
3189
|
readonly ask: "Ask One";
|
|
3127
3190
|
readonly viewProfile: "View profile";
|
|
3128
3191
|
readonly tools: "Tools";
|
|
3192
|
+
readonly credits: {
|
|
3193
|
+
readonly title: "Credits";
|
|
3194
|
+
readonly creditsLeft: "{{total}} left";
|
|
3195
|
+
readonly monthlyCredits: "Monthly credits";
|
|
3196
|
+
readonly creditsError: "Could not load credits";
|
|
3197
|
+
readonly upgradePlan: "Upgrade";
|
|
3198
|
+
readonly needMoreCredits: "Need more credits?";
|
|
3199
|
+
};
|
|
3129
3200
|
readonly reportCard: {
|
|
3130
3201
|
readonly reportLabel: "Report";
|
|
3131
3202
|
readonly openButton: "Open";
|
|
3132
3203
|
};
|
|
3133
3204
|
readonly dataDownload: {
|
|
3134
3205
|
readonly download: "Download {{format}}";
|
|
3206
|
+
readonly exportDashboard: "Export dashboard as {{format}}";
|
|
3207
|
+
readonly exporting: "Exporting...";
|
|
3135
3208
|
};
|
|
3136
3209
|
readonly pong: {
|
|
3137
|
-
readonly
|
|
3138
|
-
readonly you: "YOU";
|
|
3210
|
+
readonly title: "Pong";
|
|
3139
3211
|
readonly youWin: "You win!";
|
|
3140
3212
|
readonly youLose: "You lose!";
|
|
3213
|
+
readonly goal: "Goal";
|
|
3214
|
+
readonly controls: "← → to move";
|
|
3215
|
+
readonly escToExit: "Esc to exit";
|
|
3141
3216
|
};
|
|
3142
3217
|
readonly growth: {
|
|
3143
3218
|
readonly demoCard: {
|
|
@@ -3592,8 +3667,6 @@ declare type EditableTableVisualizationSettings = TableVisualizationSettings;
|
|
|
3592
3667
|
|
|
3593
3668
|
export declare type ElementType = QuestionType | "section";
|
|
3594
3669
|
|
|
3595
|
-
export declare function Em({ children, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
3596
|
-
|
|
3597
3670
|
export declare function EmojiImage({ emoji, size, alt }: EmojiImageProps): JSX_2.Element;
|
|
3598
3671
|
|
|
3599
3672
|
export declare interface EmojiImageProps extends VariantProps<typeof emojiVariants> {
|
|
@@ -3611,22 +3684,6 @@ declare const emojiVariants: (props?: ({
|
|
|
3611
3684
|
className?: ClassValue;
|
|
3612
3685
|
})) | undefined) => string;
|
|
3613
3686
|
|
|
3614
|
-
/**
|
|
3615
|
-
* Generic entity reference renderer for custom `<entity-ref>` HTML tags
|
|
3616
|
-
* embedded in AI chat markdown output.
|
|
3617
|
-
*
|
|
3618
|
-
* Dispatches to type-specific renderers based on the `type` attribute.
|
|
3619
|
-
* Falls back to rendering children as plain text for unknown types.
|
|
3620
|
-
*
|
|
3621
|
-
* Usage in markdown (via rehype-raw):
|
|
3622
|
-
* <entity-ref type="person" id="123">Ana García</entity-ref>
|
|
3623
|
-
*/
|
|
3624
|
-
export declare function EntityRef({ type, id, children, }: {
|
|
3625
|
-
type?: string;
|
|
3626
|
-
id?: string;
|
|
3627
|
-
children?: ReactNode;
|
|
3628
|
-
}): JSX_2.Element;
|
|
3629
|
-
|
|
3630
3687
|
/**
|
|
3631
3688
|
* Map of async resolver functions keyed by entity type.
|
|
3632
3689
|
* Each resolver takes an entity ID and returns the profile data
|
|
@@ -3741,85 +3798,9 @@ export declare const F0AiChat: () => JSX_2.Element | null;
|
|
|
3741
3798
|
/**
|
|
3742
3799
|
* @experimental This is an experimental component use it at your own risk
|
|
3743
3800
|
*/
|
|
3744
|
-
export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, historyEnabled, footer, VoiceMode, entityResolvers, toolHints, onThumbsUp, onThumbsDown, children, agent, tracking, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
|
|
3745
|
-
|
|
3746
|
-
export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, placeholders, defaultPlaceholder, autoFocus, entityResolvers, toolHints, activeToolHint, onActiveToolHintChange, }: F0AiChatTextAreaProps) => JSX_2.Element;
|
|
3801
|
+
export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, historyEnabled, footer, VoiceMode, entityResolvers, toolHints, credits, onThumbsUp, onThumbsDown, children, agent, tracking, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
|
|
3747
3802
|
|
|
3748
|
-
|
|
3749
|
-
* Props for the F0AiChatTextArea component
|
|
3750
|
-
*/
|
|
3751
|
-
export declare interface F0AiChatTextAreaProps {
|
|
3752
|
-
/**
|
|
3753
|
-
* Whether the chat is currently processing a message
|
|
3754
|
-
*/
|
|
3755
|
-
inProgress: boolean;
|
|
3756
|
-
/**
|
|
3757
|
-
* Callback when the user sends a message
|
|
3758
|
-
*/
|
|
3759
|
-
onSend: (message: string) => void;
|
|
3760
|
-
/**
|
|
3761
|
-
* Callback when the user stops the current generation
|
|
3762
|
-
*/
|
|
3763
|
-
onStop?: () => void;
|
|
3764
|
-
/**
|
|
3765
|
-
* Custom label for the submit button
|
|
3766
|
-
*/
|
|
3767
|
-
submitLabel?: string;
|
|
3768
|
-
/**
|
|
3769
|
-
* Array of placeholder strings to cycle through with typewriter effect.
|
|
3770
|
-
* If multiple placeholders are provided, they will animate in a cycle.
|
|
3771
|
-
* If a single placeholder is provided, it will be displayed statically.
|
|
3772
|
-
*/
|
|
3773
|
-
placeholders?: string[];
|
|
3774
|
-
/**
|
|
3775
|
-
* Default placeholder text when no placeholders are provided or as fallback
|
|
3776
|
-
*/
|
|
3777
|
-
defaultPlaceholder?: string;
|
|
3778
|
-
/**
|
|
3779
|
-
* Whether the textarea should autofocus on mount
|
|
3780
|
-
* @default true
|
|
3781
|
-
*/
|
|
3782
|
-
autoFocus?: boolean;
|
|
3783
|
-
/**
|
|
3784
|
-
* Entity resolvers for @mention autocomplete and entity reference rendering.
|
|
3785
|
-
* When `searchPersons` is provided, typing @ in the textarea opens an
|
|
3786
|
-
* autocomplete popover to mention employees.
|
|
3787
|
-
*/
|
|
3788
|
-
entityResolvers?: EntityResolvers;
|
|
3789
|
-
/**
|
|
3790
|
-
* Available tool hints that the user can activate.
|
|
3791
|
-
* Renders a selector button to the left of the send button.
|
|
3792
|
-
*/
|
|
3793
|
-
toolHints?: AiChatToolHint[];
|
|
3794
|
-
/**
|
|
3795
|
-
* The currently active tool hint, or null if none is selected.
|
|
3796
|
-
*/
|
|
3797
|
-
activeToolHint?: AiChatToolHint | null;
|
|
3798
|
-
/**
|
|
3799
|
-
* Callback when the active tool hint changes (selection or removal).
|
|
3800
|
-
*/
|
|
3801
|
-
onActiveToolHintChange?: (toolHint: AiChatToolHint | null) => void;
|
|
3802
|
-
}
|
|
3803
|
-
|
|
3804
|
-
export declare const F0AiCollapsibleMessage: ({ icon, title, children, }: F0AiCollapsibleMessageProps) => JSX_2.Element;
|
|
3805
|
-
|
|
3806
|
-
/**
|
|
3807
|
-
* Props for the F0AiCollapsibleMessage component
|
|
3808
|
-
*/
|
|
3809
|
-
export declare interface F0AiCollapsibleMessageProps {
|
|
3810
|
-
/**
|
|
3811
|
-
* Icon to display in the collapsible trigger
|
|
3812
|
-
*/
|
|
3813
|
-
icon: IconType;
|
|
3814
|
-
/**
|
|
3815
|
-
* Title text for the collapsible trigger
|
|
3816
|
-
*/
|
|
3817
|
-
title: string;
|
|
3818
|
-
/**
|
|
3819
|
-
* Content to show when expanded
|
|
3820
|
-
*/
|
|
3821
|
-
children: ReactNode;
|
|
3822
|
-
}
|
|
3803
|
+
export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, }: ChatTextareaProps) => JSX_2.Element;
|
|
3823
3804
|
|
|
3824
3805
|
/**
|
|
3825
3806
|
* Entry in the AI form registry
|
|
@@ -3973,7 +3954,7 @@ export declare interface F0AlertProps {
|
|
|
3973
3954
|
* @experimental This is an experimental component use it at your own risk
|
|
3974
3955
|
*/
|
|
3975
3956
|
export declare const F0AnalyticsDashboard: {
|
|
3976
|
-
<Filters extends FiltersDefinition_2 = FiltersDefinition_2>({ filters, presets, defaultFilters, items, editMode, onLayoutChange, }: F0AnalyticsDashboardProps_2<Filters>): JSX_2.Element;
|
|
3957
|
+
<Filters extends FiltersDefinition_2 = FiltersDefinition_2>({ filters, presets, defaultFilters, items, editMode, onLayoutChange, enableExport, exportFilename, onExportReady, }: F0AnalyticsDashboardProps_2<Filters>): JSX_2.Element;
|
|
3977
3958
|
displayName: string;
|
|
3978
3959
|
};
|
|
3979
3960
|
|
|
@@ -4016,6 +3997,22 @@ export declare interface F0AnalyticsDashboardProps<Filters extends FiltersDefini
|
|
|
4016
3997
|
* the consumer can reconcile against the original config items.
|
|
4017
3998
|
*/
|
|
4018
3999
|
onLayoutChange?: (layout: DashboardItemLayout[]) => void;
|
|
4000
|
+
/**
|
|
4001
|
+
* Show a dashboard-level export button (PDF/Excel).
|
|
4002
|
+
* @default false
|
|
4003
|
+
*/
|
|
4004
|
+
enableExport?: boolean;
|
|
4005
|
+
/**
|
|
4006
|
+
* Called when the export function becomes available (or undefined on unmount).
|
|
4007
|
+
* Allows a parent to trigger export imperatively without rendering the
|
|
4008
|
+
* built-in ExportDropdown.
|
|
4009
|
+
*/
|
|
4010
|
+
/**
|
|
4011
|
+
* Custom filename for the exported Excel file (without extension).
|
|
4012
|
+
* @default "dashboard"
|
|
4013
|
+
*/
|
|
4014
|
+
exportFilename?: string;
|
|
4015
|
+
onExportReady?: (exportFn: (() => Promise<void>) | undefined) => void;
|
|
4019
4016
|
}
|
|
4020
4017
|
|
|
4021
4018
|
/**
|
|
@@ -4544,21 +4541,6 @@ compact?: boolean;
|
|
|
4544
4541
|
|
|
4545
4542
|
export declare type F0CardProps = Omit<CardInternalProps, (typeof privateProps_3)[number]>;
|
|
4546
4543
|
|
|
4547
|
-
/**
|
|
4548
|
-
* @deprecated Use `DashboardCard` from `canvas/entities/dashboard` directly.
|
|
4549
|
-
* This re-export exists for backwards compatibility.
|
|
4550
|
-
*/
|
|
4551
|
-
export declare const F0ChatReportCard: typeof DashboardCard;
|
|
4552
|
-
|
|
4553
|
-
export declare type F0ChatReportCardProps = {
|
|
4554
|
-
/** The original dashboard config from the agent */
|
|
4555
|
-
config: ChatDashboardConfig;
|
|
4556
|
-
/** Callback when the user clicks the card to view the report */
|
|
4557
|
-
onView: (config: ChatDashboardConfig) => void;
|
|
4558
|
-
/** Tool call ID used to look up saved (edited) dashboard configs */
|
|
4559
|
-
toolCallId?: string;
|
|
4560
|
-
};
|
|
4561
|
-
|
|
4562
4544
|
/**
|
|
4563
4545
|
* @experimental This is an experimental component use it at your own risk
|
|
4564
4546
|
*/
|
|
@@ -4837,68 +4819,6 @@ declare interface F0DataChartRadarSeries {
|
|
|
4837
4819
|
color?: ChartColorToken;
|
|
4838
4820
|
}
|
|
4839
4821
|
|
|
4840
|
-
/**
|
|
4841
|
-
* Component that renders an optional markdown preview followed by
|
|
4842
|
-
* a dropdown button with "Download Excel" as the primary action and
|
|
4843
|
-
* "Download CSV" as a secondary option. Files are generated client-side
|
|
4844
|
-
* from the raw dataset provided by the agent.
|
|
4845
|
-
*/
|
|
4846
|
-
export declare const F0DataDownload: ({ markdown, filename, dataset, }: F0DataDownloadProps) => JSX_2.Element;
|
|
4847
|
-
|
|
4848
|
-
/**
|
|
4849
|
-
* Inline dataset for client-side file generation (Excel / CSV).
|
|
4850
|
-
* Sent by the agent with the raw query results.
|
|
4851
|
-
*/
|
|
4852
|
-
export declare type F0DataDownloadDataset = {
|
|
4853
|
-
/**
|
|
4854
|
-
* Column headers in display order.
|
|
4855
|
-
*/
|
|
4856
|
-
columns: string[];
|
|
4857
|
-
/**
|
|
4858
|
-
* Array of row objects keyed by column name.
|
|
4859
|
-
*/
|
|
4860
|
-
rows: Record<string, unknown>[];
|
|
4861
|
-
/**
|
|
4862
|
-
* Total number of rows returned by the query (before truncation).
|
|
4863
|
-
* Used together with previewCount to render the preview note.
|
|
4864
|
-
*/
|
|
4865
|
-
totalCount?: number;
|
|
4866
|
-
/**
|
|
4867
|
-
* Number of rows shown in the markdown preview table.
|
|
4868
|
-
* Used together with totalCount to render the preview note.
|
|
4869
|
-
*/
|
|
4870
|
-
previewCount?: number;
|
|
4871
|
-
/**
|
|
4872
|
-
* Map of raw column names to human-readable labels in the user's language.
|
|
4873
|
-
* Used for Excel/CSV headers. Falls back to the raw column name when absent.
|
|
4874
|
-
*/
|
|
4875
|
-
columnLabels?: Record<string, string>;
|
|
4876
|
-
};
|
|
4877
|
-
|
|
4878
|
-
/**
|
|
4879
|
-
* Props for the F0DataDownload component.
|
|
4880
|
-
*
|
|
4881
|
-
* Renders an optional markdown preview/description followed by
|
|
4882
|
-
* "Download Excel" and "Download CSV" buttons. The component generates
|
|
4883
|
-
* the files client-side from the provided dataset.
|
|
4884
|
-
*/
|
|
4885
|
-
export declare type F0DataDownloadProps = {
|
|
4886
|
-
/**
|
|
4887
|
-
* Optional markdown content to display above the download buttons.
|
|
4888
|
-
* Typically a 5-row preview table generated by the agent.
|
|
4889
|
-
*/
|
|
4890
|
-
markdown?: string;
|
|
4891
|
-
/**
|
|
4892
|
-
* Descriptive filename (without extension) for the downloaded files.
|
|
4893
|
-
* Generated by the AI to reflect the query content in the user's language.
|
|
4894
|
-
*/
|
|
4895
|
-
filename?: string;
|
|
4896
|
-
/**
|
|
4897
|
-
* Raw dataset for client-side Excel and CSV generation.
|
|
4898
|
-
*/
|
|
4899
|
-
dataset: F0DataDownloadDataset;
|
|
4900
|
-
};
|
|
4901
|
-
|
|
4902
4822
|
/**
|
|
4903
4823
|
* F0 config options specific to date fields
|
|
4904
4824
|
*
|
|
@@ -5915,26 +5835,6 @@ export declare type F0LinkProps = Omit<ActionLinkProps, "variant" | "href"> & {
|
|
|
5915
5835
|
href?: string;
|
|
5916
5836
|
};
|
|
5917
5837
|
|
|
5918
|
-
export declare const f0MarkdownRenderers: NonNullable<AssistantMessageProps["markdownTagRenderers"]>;
|
|
5919
|
-
|
|
5920
|
-
/**
|
|
5921
|
-
* Markdown renderers without the table download button.
|
|
5922
|
-
* Use this when the parent component already provides its own download controls.
|
|
5923
|
-
*/
|
|
5924
|
-
export declare const f0MarkdownRenderersSimple: NonNullable<AssistantMessageProps["markdownTagRenderers"]>;
|
|
5925
|
-
|
|
5926
|
-
export declare const F0MessageSources: ({ sources }: F0MessageSourcesProps) => JSX_2.Element | null;
|
|
5927
|
-
|
|
5928
|
-
/**
|
|
5929
|
-
* Props for the F0MessageSources component
|
|
5930
|
-
*/
|
|
5931
|
-
export declare type F0MessageSourcesProps = {
|
|
5932
|
-
/**
|
|
5933
|
-
* Array of sources to display
|
|
5934
|
-
*/
|
|
5935
|
-
sources: F0Source[];
|
|
5936
|
-
};
|
|
5937
|
-
|
|
5938
5838
|
/**
|
|
5939
5839
|
* F0 config options specific to number fields
|
|
5940
5840
|
*
|
|
@@ -6352,28 +6252,6 @@ export declare type F0SelectTagProp = string | {
|
|
|
6352
6252
|
src?: string;
|
|
6353
6253
|
};
|
|
6354
6254
|
|
|
6355
|
-
/**
|
|
6356
|
-
* Source object for message sources
|
|
6357
|
-
*/
|
|
6358
|
-
export declare type F0Source = {
|
|
6359
|
-
/**
|
|
6360
|
-
* Title of the source
|
|
6361
|
-
*/
|
|
6362
|
-
title: string;
|
|
6363
|
-
/**
|
|
6364
|
-
* Optional link URL
|
|
6365
|
-
*/
|
|
6366
|
-
link?: string;
|
|
6367
|
-
/**
|
|
6368
|
-
* Optional icon name (from @/icons/app)
|
|
6369
|
-
*/
|
|
6370
|
-
icon?: string;
|
|
6371
|
-
/**
|
|
6372
|
-
* Whether to open link in new tab
|
|
6373
|
-
*/
|
|
6374
|
-
targetBlank?: boolean;
|
|
6375
|
-
};
|
|
6376
|
-
|
|
6377
6255
|
/**
|
|
6378
6256
|
* Union of all string field configs
|
|
6379
6257
|
*
|
|
@@ -6536,38 +6414,6 @@ export declare type F0TextProps = Omit<TextProps, "className" | "variant" | "as"
|
|
|
6536
6414
|
markdown?: boolean;
|
|
6537
6415
|
};
|
|
6538
6416
|
|
|
6539
|
-
export declare const F0Thinking: ({ messages, title }: F0ThinkingProps) => JSX_2.Element;
|
|
6540
|
-
|
|
6541
|
-
/**
|
|
6542
|
-
* Props for the F0Thinking component
|
|
6543
|
-
*/
|
|
6544
|
-
export declare type F0ThinkingProps = {
|
|
6545
|
-
/**
|
|
6546
|
-
* Array of thinking/reflection messages to display
|
|
6547
|
-
*/
|
|
6548
|
-
messages: Message[];
|
|
6549
|
-
/**
|
|
6550
|
-
* Whether the thinking process is currently active
|
|
6551
|
-
*/
|
|
6552
|
-
isActive?: boolean;
|
|
6553
|
-
/**
|
|
6554
|
-
* Custom render function for messages
|
|
6555
|
-
*/
|
|
6556
|
-
RenderMessage?: MessagesProps["RenderMessage"];
|
|
6557
|
-
/**
|
|
6558
|
-
* Custom assistant message component
|
|
6559
|
-
*/
|
|
6560
|
-
AssistantMessage?: MessagesProps["AssistantMessage"];
|
|
6561
|
-
/**
|
|
6562
|
-
* Whether the chat is currently in progress
|
|
6563
|
-
*/
|
|
6564
|
-
inProgress?: boolean;
|
|
6565
|
-
/**
|
|
6566
|
-
* Custom title for the thinking section
|
|
6567
|
-
*/
|
|
6568
|
-
title?: string;
|
|
6569
|
-
};
|
|
6570
|
-
|
|
6571
6417
|
/**
|
|
6572
6418
|
* F0 config options specific to time fields
|
|
6573
6419
|
*
|
|
@@ -6966,7 +6812,7 @@ declare const fontSizes: readonly ["sm", "md", "lg"];
|
|
|
6966
6812
|
* real formatter function. The wrapper component maps these to actual
|
|
6967
6813
|
* `(value: number) => string` functions at render time.
|
|
6968
6814
|
*/
|
|
6969
|
-
|
|
6815
|
+
declare type FormatPreset = {
|
|
6970
6816
|
type: "number";
|
|
6971
6817
|
} | {
|
|
6972
6818
|
type: "currency";
|
|
@@ -7019,16 +6865,6 @@ export declare interface FormFieldProps {
|
|
|
7019
6865
|
/** Fraction tokens for proportional widths */
|
|
7020
6866
|
export declare type FractionToken = "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "5/6";
|
|
7021
6867
|
|
|
7022
|
-
export declare const FullscreenChatContext: Context<FullscreenChatContextType>;
|
|
7023
|
-
|
|
7024
|
-
/**
|
|
7025
|
-
* Context type for fullscreen chat state
|
|
7026
|
-
*/
|
|
7027
|
-
declare type FullscreenChatContextType = {
|
|
7028
|
-
inProgress: boolean;
|
|
7029
|
-
setInProgress: (value: boolean) => void;
|
|
7030
|
-
};
|
|
7031
|
-
|
|
7032
6868
|
export declare interface FunnelChartConfig {
|
|
7033
6869
|
type: "funnel";
|
|
7034
6870
|
/** Sort direction of funnel stages. @default "descending" */
|
|
@@ -7118,8 +6954,8 @@ export declare const getAnimationVariants: (options?: AnimationVariantsOptions)
|
|
|
7118
6954
|
};
|
|
7119
6955
|
|
|
7120
6956
|
/**
|
|
7121
|
-
* Look up a
|
|
7122
|
-
* Returns `undefined` if the type
|
|
6957
|
+
* Look up a canvas entity definition by content type.
|
|
6958
|
+
* Returns `undefined` if the type is not configured.
|
|
7123
6959
|
*/
|
|
7124
6960
|
export declare function getCanvasEntity(type: string): CanvasEntityDefinition<any> | undefined;
|
|
7125
6961
|
|
|
@@ -7291,12 +7127,6 @@ export declare type GroupRecord<RecordType> = {
|
|
|
7291
7127
|
records: RecordType[];
|
|
7292
7128
|
};
|
|
7293
7129
|
|
|
7294
|
-
export declare function H1({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
7295
|
-
|
|
7296
|
-
export declare function H2({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
7297
|
-
|
|
7298
|
-
export declare function H3({ children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): JSX_2.Element;
|
|
7299
|
-
|
|
7300
7130
|
/**
|
|
7301
7131
|
* Check if a schema has F0 config
|
|
7302
7132
|
*/
|
|
@@ -7339,8 +7169,6 @@ widgets?: ReactNode[];
|
|
|
7339
7169
|
children?: ReactNode;
|
|
7340
7170
|
} & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>>;
|
|
7341
7171
|
|
|
7342
|
-
export declare function Hr({ ...props }: React.HTMLAttributes<HTMLHRElement>): JSX_2.Element;
|
|
7343
|
-
|
|
7344
7172
|
declare type I18nContextType = TranslationsType & {
|
|
7345
7173
|
t: (key: TranslationKey, args?: Record<string, string | number>) => string;
|
|
7346
7174
|
};
|
|
@@ -7380,9 +7208,6 @@ declare type IdStructure = {
|
|
|
7380
7208
|
children?: IdStructure[];
|
|
7381
7209
|
};
|
|
7382
7210
|
|
|
7383
|
-
declare function Image_2({ src, alt, ...props }: React.ImgHTMLAttributes<HTMLImageElement>): JSX_2.Element;
|
|
7384
|
-
export { Image_2 as Image }
|
|
7385
|
-
|
|
7386
7211
|
declare type ImageContextValue = {
|
|
7387
7212
|
src?: (props: ImageProps) => SrcProps;
|
|
7388
7213
|
};
|
|
@@ -7730,8 +7555,6 @@ export declare type Level = (typeof levels)[number];
|
|
|
7730
7555
|
|
|
7731
7556
|
declare const levels: readonly ["info", "warning", "critical", "positive"];
|
|
7732
7557
|
|
|
7733
|
-
export declare function Li({ children, ...props }: React.HTMLAttributes<HTMLLIElement>): JSX_2.Element;
|
|
7734
|
-
|
|
7735
7558
|
export declare const LineChart: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<LineChartPropsBase<LineChartConfig_2> & {
|
|
7736
7559
|
lineType?: "natural" | "linear";
|
|
7737
7560
|
} & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>>;
|
|
@@ -7935,7 +7758,7 @@ declare interface MetadataProps {
|
|
|
7935
7758
|
collapse?: boolean;
|
|
7936
7759
|
}
|
|
7937
7760
|
|
|
7938
|
-
|
|
7761
|
+
declare interface MetricComputation {
|
|
7939
7762
|
datasetId: string;
|
|
7940
7763
|
aggregation: AggregationType;
|
|
7941
7764
|
column?: string;
|
|
@@ -8307,8 +8130,6 @@ declare type NumericWithFormatter = {
|
|
|
8307
8130
|
formatterOptions?: NumericFormatterOptions;
|
|
8308
8131
|
};
|
|
8309
8132
|
|
|
8310
|
-
export declare function Ol({ children, ...props }: React.HTMLAttributes<HTMLOListElement>): JSX_2.Element;
|
|
8311
|
-
|
|
8312
8133
|
export declare type OnAddNewElementParams = {
|
|
8313
8134
|
type: ElementType;
|
|
8314
8135
|
afterId?: string;
|
|
@@ -8416,8 +8237,6 @@ declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
|
8416
8237
|
/** Overflow values */
|
|
8417
8238
|
export declare type OverflowToken = "visible" | "hidden" | "auto" | "scroll";
|
|
8418
8239
|
|
|
8419
|
-
export declare function P({ children, ...props }: React.HTMLAttributes<HTMLParagraphElement>): JSX_2.Element;
|
|
8420
|
-
|
|
8421
8240
|
/**
|
|
8422
8241
|
* Represents a paginated response with page-based navigation.
|
|
8423
8242
|
*
|
|
@@ -8571,8 +8390,6 @@ declare type PopupSize = "sm" | "md" | "lg";
|
|
|
8571
8390
|
/** CSS position */
|
|
8572
8391
|
export declare type PositionToken = "static" | "relative" | "absolute" | "fixed" | "sticky";
|
|
8573
8392
|
|
|
8574
|
-
export declare function Pre({ children, ...props }: React.HTMLAttributes<HTMLPreElement>): JSX_2.Element;
|
|
8575
|
-
|
|
8576
8393
|
export declare const predefinedPresets: Record<string, DatePreset>;
|
|
8577
8394
|
|
|
8578
8395
|
/**
|
|
@@ -8924,12 +8741,6 @@ export declare type RecordType = Record<string, unknown>;
|
|
|
8924
8741
|
|
|
8925
8742
|
declare type ReferenceType = "none" | "striped";
|
|
8926
8743
|
|
|
8927
|
-
/**
|
|
8928
|
-
* Register a canvas entity definition.
|
|
8929
|
-
* Called as a side-effect when each entity module is imported.
|
|
8930
|
-
*/
|
|
8931
|
-
export declare function registerCanvasEntity<T extends CanvasContentBase>(definition: CanvasEntityDefinition<T>): void;
|
|
8932
|
-
|
|
8933
8744
|
declare type RegularAction = BaseAction & {
|
|
8934
8745
|
type: "regular";
|
|
8935
8746
|
variant: ButtonVariant;
|
|
@@ -9371,8 +9182,6 @@ export declare interface StepItemProps {
|
|
|
9371
9182
|
isCompleted?: boolean;
|
|
9372
9183
|
}
|
|
9373
9184
|
|
|
9374
|
-
export declare function Strong({ children, ...props }: React.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
9375
|
-
|
|
9376
9185
|
export declare interface SuccessMessageProps {
|
|
9377
9186
|
title: string;
|
|
9378
9187
|
description: string;
|
|
@@ -9505,8 +9314,6 @@ export declare type SurveySubmitAnswers = Record<string, string | number | strin
|
|
|
9505
9314
|
*/
|
|
9506
9315
|
declare type SwitchFieldRenderIf = BooleanRenderIfCondition | CommonRenderIfCondition | F0BaseFieldRenderIfFunction;
|
|
9507
9316
|
|
|
9508
|
-
export declare function Table({ children, ...props }: React.HTMLAttributes<HTMLTableElement>): JSX_2.Element;
|
|
9509
|
-
|
|
9510
9317
|
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>>;
|
|
9511
9318
|
|
|
9512
9319
|
declare type TableColumnDefinition<R extends RecordType, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = WithOptionalSorting<R, Sortings> & Pick<ComponentProps<typeof TableHead>, "hidden" | "info" | "infoIcon" | "sticky" | "width"> & {
|
|
@@ -9609,12 +9416,6 @@ declare interface TableHeadProps {
|
|
|
9609
9416
|
|
|
9610
9417
|
declare type TableOfContentPopoverVariant = "dark" | "light";
|
|
9611
9418
|
|
|
9612
|
-
/**
|
|
9613
|
-
* Table variant without the built-in download button.
|
|
9614
|
-
* Used inside components that already provide their own download controls.
|
|
9615
|
-
*/
|
|
9616
|
-
export declare function TableSimple({ children, ...props }: React.HTMLAttributes<HTMLTableElement>): JSX_2.Element;
|
|
9617
|
-
|
|
9618
9419
|
declare type TableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = {
|
|
9619
9420
|
/**
|
|
9620
9421
|
* The columns to display
|
|
@@ -9820,8 +9621,6 @@ export declare type TagVariant = BaseTag<{
|
|
|
9820
9621
|
type: "raw";
|
|
9821
9622
|
} & TagRawProps>;
|
|
9822
9623
|
|
|
9823
|
-
export declare function Td({ children, ...props }: React.HTMLAttributes<HTMLTableCellElement>): JSX_2.Element;
|
|
9824
|
-
|
|
9825
9624
|
export declare type TeamAvatarVariant = Extract<AvatarVariant, {
|
|
9826
9625
|
type: "team";
|
|
9827
9626
|
}>;
|
|
@@ -9933,8 +9732,6 @@ declare const textVariants: (props?: ({
|
|
|
9933
9732
|
className?: ClassValue;
|
|
9934
9733
|
})) | undefined) => string;
|
|
9935
9734
|
|
|
9936
|
-
export declare function Th({ children, ...props }: React.HTMLAttributes<HTMLTableCellElement>): JSX_2.Element;
|
|
9937
|
-
|
|
9938
9735
|
declare type TOCItem<Depth extends 1 | 2 | 3 | 4 = 1> = BaseTOCItem & {
|
|
9939
9736
|
children?: NextDepth<Depth> extends never ? never : TOCItem<NextDepth<Depth>>[];
|
|
9940
9737
|
};
|
|
@@ -10011,8 +9808,6 @@ export declare interface TwoColumnLayoutProps {
|
|
|
10011
9808
|
sticky?: boolean;
|
|
10012
9809
|
}
|
|
10013
9810
|
|
|
10014
|
-
export declare function Ul({ children, ...props }: React.HTMLAttributes<HTMLUListElement>): JSX_2.Element;
|
|
10015
|
-
|
|
10016
9811
|
/**
|
|
10017
9812
|
* Unwrap optional, nullable, default wrappers to get the inner schema
|
|
10018
9813
|
* Uses _def.typeName for reliable type checking across module boundaries
|
|
@@ -10277,17 +10072,10 @@ export declare interface UseDataReturn<R extends RecordType> {
|
|
|
10277
10072
|
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>;
|
|
10278
10073
|
|
|
10279
10074
|
/**
|
|
10280
|
-
* Hook
|
|
10281
|
-
*
|
|
10282
|
-
*
|
|
10283
|
-
* @example
|
|
10284
|
-
* // Enable all default actions in your component
|
|
10285
|
-
* const MyComponent = () => {
|
|
10286
|
-
* useDefaultCopilotActions()
|
|
10287
|
-
* return <div>...</div>
|
|
10288
|
-
* }
|
|
10075
|
+
* Hook that invokes every configured copilot action factory.
|
|
10076
|
+
* Actions are declared in the `copilotActions` array in `registry.ts`.
|
|
10289
10077
|
*/
|
|
10290
|
-
export declare
|
|
10078
|
+
export declare function useDefaultCopilotActions(): void;
|
|
10291
10079
|
|
|
10292
10080
|
export declare function useDndEvents(handler: (e: {
|
|
10293
10081
|
phase: "start" | "over" | "drop" | "cancel";
|
|
@@ -10311,17 +10099,6 @@ export declare const useEmojiConfetti: () => {
|
|
|
10311
10099
|
fireEmojiConfetti: (emoji: string, elementRef: RefObject<HTMLElement>) => void;
|
|
10312
10100
|
};
|
|
10313
10101
|
|
|
10314
|
-
/**
|
|
10315
|
-
* Hook that registers all AI form interaction tools and pushes
|
|
10316
|
-
* form context to the co-agent shared state via `useCoAgent`.
|
|
10317
|
-
*
|
|
10318
|
-
* Must be called inside a component tree that has both:
|
|
10319
|
-
* - A `F0AiFormRegistryProvider` ancestor (for form lookup)
|
|
10320
|
-
* - A CopilotKit context (for tool registration + co-agent state)
|
|
10321
|
-
* - An `AiChatStateProvider` ancestor (for the agent name)
|
|
10322
|
-
*/
|
|
10323
|
-
export declare const useF0AiFormActions: () => void;
|
|
10324
|
-
|
|
10325
10102
|
/**
|
|
10326
10103
|
* Hook to access the AI form registry.
|
|
10327
10104
|
* Returns null if not inside a F0AiFormRegistryProvider.
|
|
@@ -10506,24 +10283,6 @@ export declare interface UseF0FormReturn {
|
|
|
10506
10283
|
*/
|
|
10507
10284
|
export declare type UseFileUpload = () => FileUploadHookReturn;
|
|
10508
10285
|
|
|
10509
|
-
/**
|
|
10510
|
-
* AI tool that fills one or more fields in an active F0Form.
|
|
10511
|
-
* After setting values, it triggers validation and returns any errors.
|
|
10512
|
-
*/
|
|
10513
|
-
export declare const useFormFillAction: () => void;
|
|
10514
|
-
|
|
10515
|
-
/**
|
|
10516
|
-
* AI tool that reads the current state of an active F0Form —
|
|
10517
|
-
* current values, dirty status, and validation errors.
|
|
10518
|
-
*/
|
|
10519
|
-
export declare const useFormGetStateAction: () => void;
|
|
10520
|
-
|
|
10521
|
-
/**
|
|
10522
|
-
* AI tool that submits an active F0Form.
|
|
10523
|
-
* Triggers validation first — only calls onSubmit if all fields pass.
|
|
10524
|
-
*/
|
|
10525
|
-
export declare const useFormSubmitAction: () => void;
|
|
10526
|
-
|
|
10527
10286
|
export declare const useGroups: <R extends RecordType>(groups: GroupRecord<R>[], defaultOpenGroups?: boolean | GroupRecord<R>["key"][]) => {
|
|
10528
10287
|
openGroups: Record<string, boolean>;
|
|
10529
10288
|
setGroupOpen: (key: string, open: boolean) => void;
|
|
@@ -10864,6 +10623,11 @@ declare module "gridstack" {
|
|
|
10864
10623
|
}
|
|
10865
10624
|
|
|
10866
10625
|
|
|
10626
|
+
declare namespace Calendar {
|
|
10627
|
+
var displayName: string;
|
|
10628
|
+
}
|
|
10629
|
+
|
|
10630
|
+
|
|
10867
10631
|
declare module "@tiptap/core" {
|
|
10868
10632
|
interface Commands<ReturnType> {
|
|
10869
10633
|
aiBlock: {
|
|
@@ -10911,8 +10675,3 @@ declare module "@tiptap/core" {
|
|
|
10911
10675
|
};
|
|
10912
10676
|
}
|
|
10913
10677
|
}
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
declare namespace Calendar {
|
|
10917
|
-
var displayName: string;
|
|
10918
|
-
}
|