@factorialco/f0-react 1.421.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-CNd9CvgI.js → F0HILActionConfirmation-DxshcaDQ.js} +1 -1
- package/dist/ai.d.ts +30 -7
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +16 -6
- package/dist/experimental.js +212 -212
- package/dist/f0.d.ts +30 -7
- package/dist/f0.js +1745 -1829
- package/dist/i18n-provider-defaults.d.ts +16 -6
- package/dist/i18n-provider-defaults.js +10 -0
- package/dist/{index-DGNb4Rcb.js → index-CIfYW3SA.js} +1 -1
- package/dist/{registry-CpP6Cwro.js → registry-WX4F5JvC.js} +14670 -14497
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -679,6 +679,16 @@ export declare const aiTranslations: {
|
|
|
679
679
|
readonly controls: "← → to move";
|
|
680
680
|
readonly escToExit: "Esc to exit";
|
|
681
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
|
+
};
|
|
682
692
|
readonly growth: {
|
|
683
693
|
readonly demoCard: {
|
|
684
694
|
readonly title: "See {{moduleName}} in action";
|
|
@@ -1838,6 +1848,9 @@ export declare const ChatSpinner: ForwardRefExoticComponent<Omit<SVGProps<SVGSVG
|
|
|
1838
1848
|
|
|
1839
1849
|
declare type ChatTextareaProps = InputProps & {
|
|
1840
1850
|
submitLabel?: string;
|
|
1851
|
+
creditWarning?: "soft";
|
|
1852
|
+
onDismissCreditWarning?: () => void;
|
|
1853
|
+
onGetCredits?: () => void;
|
|
1841
1854
|
};
|
|
1842
1855
|
|
|
1843
1856
|
/**
|
|
@@ -3215,6 +3228,16 @@ export declare const defaultTranslations: {
|
|
|
3215
3228
|
readonly controls: "← → to move";
|
|
3216
3229
|
readonly escToExit: "Esc to exit";
|
|
3217
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
|
+
};
|
|
3218
3241
|
readonly growth: {
|
|
3219
3242
|
readonly demoCard: {
|
|
3220
3243
|
readonly title: "See {{moduleName}} in action";
|
|
@@ -3802,7 +3825,7 @@ export declare const F0AiChat: () => JSX_2.Element | null;
|
|
|
3802
3825
|
*/
|
|
3803
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;
|
|
3804
3827
|
|
|
3805
|
-
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;
|
|
3806
3829
|
|
|
3807
3830
|
/**
|
|
3808
3831
|
* Entry in the AI form registry
|
|
@@ -10803,10 +10826,8 @@ declare module "@tiptap/core" {
|
|
|
10803
10826
|
|
|
10804
10827
|
declare module "@tiptap/core" {
|
|
10805
10828
|
interface Commands<ReturnType> {
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
src: string;
|
|
10809
|
-
}) => ReturnType;
|
|
10829
|
+
transcript: {
|
|
10830
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
10810
10831
|
};
|
|
10811
10832
|
}
|
|
10812
10833
|
}
|
|
@@ -10814,8 +10835,10 @@ declare module "@tiptap/core" {
|
|
|
10814
10835
|
|
|
10815
10836
|
declare module "@tiptap/core" {
|
|
10816
10837
|
interface Commands<ReturnType> {
|
|
10817
|
-
|
|
10818
|
-
|
|
10838
|
+
videoEmbed: {
|
|
10839
|
+
setVideoEmbed: (options: {
|
|
10840
|
+
src: string;
|
|
10841
|
+
}) => ReturnType;
|
|
10819
10842
|
};
|
|
10820
10843
|
}
|
|
10821
10844
|
}
|