@factorialco/f0-react 1.420.0 → 1.422.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-DmSwzvkv.js → F0HILActionConfirmation-DxshcaDQ.js} +1 -1
- package/dist/ai.d.ts +35 -12
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +26 -11
- package/dist/experimental.js +212 -212
- package/dist/f0.d.ts +40 -12
- package/dist/f0.js +1745 -1829
- package/dist/i18n-provider-defaults.d.ts +21 -11
- package/dist/i18n-provider-defaults.js +10 -0
- package/dist/{index-BVculwZa.js → index-CIfYW3SA.js} +1 -1
- package/dist/{registry-BQtwbAA5.js → registry-WX4F5JvC.js} +27382 -27103
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { CompanyCellValue } from './f0';
|
|
|
27
27
|
import { CompanyCellValue as CompanyCellValue_2 } from './types/company';
|
|
28
28
|
import { ComponentProps } from 'react';
|
|
29
29
|
import { ComponentType } from 'react';
|
|
30
|
+
import { CompoundCellValue } from './types/compound';
|
|
30
31
|
import { Context } from 'react';
|
|
31
32
|
import { CopilotKitProps } from '@copilotkit/react-core';
|
|
32
33
|
import { CountryCellValue } from './types/country';
|
|
@@ -678,6 +679,16 @@ export declare const aiTranslations: {
|
|
|
678
679
|
readonly controls: "← → to move";
|
|
679
680
|
readonly escToExit: "Esc to exit";
|
|
680
681
|
};
|
|
682
|
+
readonly creditWarning: {
|
|
683
|
+
readonly soft: "You're running low on AI credits.";
|
|
684
|
+
readonly getCredits: "Get credits";
|
|
685
|
+
readonly dismiss: "Dismiss";
|
|
686
|
+
readonly messageBanner: {
|
|
687
|
+
readonly title: "This response requires credits";
|
|
688
|
+
readonly description: "Your company has run out of AI credits.";
|
|
689
|
+
readonly actionLabel: "Get credits";
|
|
690
|
+
};
|
|
691
|
+
};
|
|
681
692
|
readonly growth: {
|
|
682
693
|
readonly demoCard: {
|
|
683
694
|
readonly title: "See {{moduleName}} in action";
|
|
@@ -1837,6 +1848,9 @@ export declare const ChatSpinner: ForwardRefExoticComponent<Omit<SVGProps<SVGSVG
|
|
|
1837
1848
|
|
|
1838
1849
|
declare type ChatTextareaProps = InputProps & {
|
|
1839
1850
|
submitLabel?: string;
|
|
1851
|
+
creditWarning?: "soft";
|
|
1852
|
+
onDismissCreditWarning?: () => void;
|
|
1853
|
+
onGetCredits?: () => void;
|
|
1840
1854
|
};
|
|
1841
1855
|
|
|
1842
1856
|
/**
|
|
@@ -3214,6 +3228,16 @@ export declare const defaultTranslations: {
|
|
|
3214
3228
|
readonly controls: "← → to move";
|
|
3215
3229
|
readonly escToExit: "Esc to exit";
|
|
3216
3230
|
};
|
|
3231
|
+
readonly creditWarning: {
|
|
3232
|
+
readonly soft: "You're running low on AI credits.";
|
|
3233
|
+
readonly getCredits: "Get credits";
|
|
3234
|
+
readonly dismiss: "Dismiss";
|
|
3235
|
+
readonly messageBanner: {
|
|
3236
|
+
readonly title: "This response requires credits";
|
|
3237
|
+
readonly description: "Your company has run out of AI credits.";
|
|
3238
|
+
readonly actionLabel: "Get credits";
|
|
3239
|
+
};
|
|
3240
|
+
};
|
|
3217
3241
|
readonly growth: {
|
|
3218
3242
|
readonly demoCard: {
|
|
3219
3243
|
readonly title: "See {{moduleName}} in action";
|
|
@@ -3801,7 +3825,7 @@ export declare const F0AiChat: () => JSX_2.Element | null;
|
|
|
3801
3825
|
*/
|
|
3802
3826
|
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;
|
|
3803
3827
|
|
|
3804
|
-
export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, }: ChatTextareaProps) => JSX_2.Element;
|
|
3828
|
+
export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, creditWarning, onDismissCreditWarning, onGetCredits, }: ChatTextareaProps) => JSX_2.Element;
|
|
3805
3829
|
|
|
3806
3830
|
/**
|
|
3807
3831
|
* Entry in the AI form registry
|
|
@@ -10576,6 +10600,7 @@ export declare const useXRay: () => {
|
|
|
10576
10600
|
declare type ValueDisplayRendererContext_2 = {
|
|
10577
10601
|
visualization: ValueDisplayVisualizationType;
|
|
10578
10602
|
i18n: TranslationsType;
|
|
10603
|
+
tableAlign?: ValueDisplayTableAlignment;
|
|
10579
10604
|
};
|
|
10580
10605
|
|
|
10581
10606
|
/**
|
|
@@ -10595,6 +10620,7 @@ declare const valueDisplayRenderers: {
|
|
|
10595
10620
|
readonly number: (args: NumberCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
10596
10621
|
readonly date: (args: DateCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
10597
10622
|
readonly amount: (args: AmountCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
10623
|
+
readonly compound: (args: CompoundCellValue, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
10598
10624
|
readonly avatarList: (args: AvatarListCellValue_2, meta: ValueDisplayRendererContext_2) => JSX_2.Element;
|
|
10599
10625
|
readonly status: (args: StatusCellValue_2) => JSX_2.Element;
|
|
10600
10626
|
readonly alertTag: (args: AlertTagCellValue_2) => JSX_2.Element;
|
|
@@ -10615,6 +10641,8 @@ declare const valueDisplayRenderers: {
|
|
|
10615
10641
|
readonly delta: (args: DeltaCellValue) => JSX_2.Element;
|
|
10616
10642
|
};
|
|
10617
10643
|
|
|
10644
|
+
declare type ValueDisplayTableAlignment = "left" | "right";
|
|
10645
|
+
|
|
10618
10646
|
declare type ValueDisplayVisualizationType = "table" | "card" | "list" | (string & {});
|
|
10619
10647
|
|
|
10620
10648
|
export declare type Variant = (typeof statuses)[number];
|
|
@@ -10762,6 +10790,11 @@ declare module "gridstack" {
|
|
|
10762
10790
|
}
|
|
10763
10791
|
|
|
10764
10792
|
|
|
10793
|
+
declare namespace Calendar {
|
|
10794
|
+
var displayName: string;
|
|
10795
|
+
}
|
|
10796
|
+
|
|
10797
|
+
|
|
10765
10798
|
declare module "@tiptap/core" {
|
|
10766
10799
|
interface Commands<ReturnType> {
|
|
10767
10800
|
aiBlock: {
|
|
@@ -10793,10 +10826,8 @@ declare module "@tiptap/core" {
|
|
|
10793
10826
|
|
|
10794
10827
|
declare module "@tiptap/core" {
|
|
10795
10828
|
interface Commands<ReturnType> {
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
src: string;
|
|
10799
|
-
}) => ReturnType;
|
|
10829
|
+
transcript: {
|
|
10830
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
10800
10831
|
};
|
|
10801
10832
|
}
|
|
10802
10833
|
}
|
|
@@ -10804,13 +10835,10 @@ declare module "@tiptap/core" {
|
|
|
10804
10835
|
|
|
10805
10836
|
declare module "@tiptap/core" {
|
|
10806
10837
|
interface Commands<ReturnType> {
|
|
10807
|
-
|
|
10808
|
-
|
|
10838
|
+
videoEmbed: {
|
|
10839
|
+
setVideoEmbed: (options: {
|
|
10840
|
+
src: string;
|
|
10841
|
+
}) => ReturnType;
|
|
10809
10842
|
};
|
|
10810
10843
|
}
|
|
10811
10844
|
}
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
declare namespace Calendar {
|
|
10815
|
-
var displayName: string;
|
|
10816
|
-
}
|