@factorialco/f0-react 2.28.0 → 2.28.1
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/{F0CanvasPanel-5xCiLQgH.js → F0CanvasPanel-CKuB_a-C.js} +25795 -24160
- package/dist/ai.d.ts +31 -12
- package/dist/ai.js +15 -14
- package/dist/experimental.d.ts +20 -12
- package/dist/experimental.js +141 -141
- package/dist/f0.d.ts +31 -12
- package/dist/f0.js +230 -229
- package/dist/i18n-provider-defaults.d.ts +13 -12
- package/dist/i18n-provider-defaults.js +1 -0
- package/dist/styles.css +1 -1
- package/dist/{useChatHistory-D6KnQGF3.js → useChatHistory-DHc7fgQg.js} +4796 -3950
- package/dist/{useDataCollectionSource-DtX_WySE.js → useDataCollectionSource-CE-st2Wf.js} +12934 -14558
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -464,6 +464,13 @@ declare type AiChatDisclaimer = {
|
|
|
464
464
|
text: string;
|
|
465
465
|
link?: string;
|
|
466
466
|
linkText?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Optional click handler on the disclaimer text. When set, the text becomes
|
|
469
|
+
* keyboard-activatable (Enter / Space) and gets a subtle hover hint. Used by
|
|
470
|
+
* the host to wire easter eggs (e.g. the pong game) without coupling f0 to
|
|
471
|
+
* any specific behaviour.
|
|
472
|
+
*/
|
|
473
|
+
onClick?: () => void;
|
|
467
474
|
};
|
|
468
475
|
|
|
469
476
|
/**
|
|
@@ -944,6 +951,7 @@ export declare const aiTranslations: {
|
|
|
944
951
|
readonly attachFile: "Attach file";
|
|
945
952
|
readonly removeFile: "Remove";
|
|
946
953
|
readonly fileUploadError: "Upload failed";
|
|
954
|
+
readonly fileUploadBlockedSubmit: "Your message wasn't sent because one of the attachments failed to upload. Remove it or retry.";
|
|
947
955
|
readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
|
|
948
956
|
readonly dropFilesHere: "Drop your files here";
|
|
949
957
|
readonly reply: "Reply";
|
|
@@ -4418,6 +4426,7 @@ export declare const defaultTranslations: {
|
|
|
4418
4426
|
readonly attachFile: "Attach file";
|
|
4419
4427
|
readonly removeFile: "Remove";
|
|
4420
4428
|
readonly fileUploadError: "Upload failed";
|
|
4429
|
+
readonly fileUploadBlockedSubmit: "Your message wasn't sent because one of the attachments failed to upload. Remove it or retry.";
|
|
4421
4430
|
readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
|
|
4422
4431
|
readonly dropFilesHere: "Drop your files here";
|
|
4423
4432
|
readonly reply: "Reply";
|
|
@@ -11152,6 +11161,16 @@ export declare interface LoadingStateProps {
|
|
|
11152
11161
|
/** Margin tokens (spacing + auto for centering) */
|
|
11153
11162
|
export declare type MarginToken = SpacingToken | "auto";
|
|
11154
11163
|
|
|
11164
|
+
export declare const markdownRenderers: MarkdownTagRenderers;
|
|
11165
|
+
|
|
11166
|
+
/**
|
|
11167
|
+
* Map of tag name → renderer component, consumed by the markdown rendering
|
|
11168
|
+
* layer (factorial / mock runtime pass these through to whatever markdown
|
|
11169
|
+
* renderer they pick). Kept as a plain `Record` so f0 stays decoupled from
|
|
11170
|
+
* any specific markdown library.
|
|
11171
|
+
*/
|
|
11172
|
+
export declare type MarkdownTagRenderers = Record<string, ComponentType<any>>;
|
|
11173
|
+
|
|
11155
11174
|
export declare type MaskOptions = {
|
|
11156
11175
|
/**
|
|
11157
11176
|
* The width of the Mask element.
|
|
@@ -15091,9 +15110,9 @@ declare module "gridstack" {
|
|
|
15091
15110
|
|
|
15092
15111
|
declare module "@tiptap/core" {
|
|
15093
15112
|
interface Commands<ReturnType> {
|
|
15094
|
-
|
|
15095
|
-
|
|
15096
|
-
|
|
15113
|
+
enhanceHighlight: {
|
|
15114
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
15115
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
15097
15116
|
};
|
|
15098
15117
|
}
|
|
15099
15118
|
}
|
|
@@ -15101,9 +15120,9 @@ declare module "@tiptap/core" {
|
|
|
15101
15120
|
|
|
15102
15121
|
declare module "@tiptap/core" {
|
|
15103
15122
|
interface Commands<ReturnType> {
|
|
15104
|
-
|
|
15105
|
-
|
|
15106
|
-
|
|
15123
|
+
aiBlock: {
|
|
15124
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
15125
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
15107
15126
|
};
|
|
15108
15127
|
}
|
|
15109
15128
|
}
|
|
@@ -15120,10 +15139,8 @@ declare module "@tiptap/core" {
|
|
|
15120
15139
|
|
|
15121
15140
|
declare module "@tiptap/core" {
|
|
15122
15141
|
interface Commands<ReturnType> {
|
|
15123
|
-
|
|
15124
|
-
|
|
15125
|
-
src: string;
|
|
15126
|
-
}) => ReturnType;
|
|
15142
|
+
transcript: {
|
|
15143
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
15127
15144
|
};
|
|
15128
15145
|
}
|
|
15129
15146
|
}
|
|
@@ -15131,8 +15148,10 @@ declare module "@tiptap/core" {
|
|
|
15131
15148
|
|
|
15132
15149
|
declare module "@tiptap/core" {
|
|
15133
15150
|
interface Commands<ReturnType> {
|
|
15134
|
-
|
|
15135
|
-
|
|
15151
|
+
videoEmbed: {
|
|
15152
|
+
setVideoEmbed: (options: {
|
|
15153
|
+
src: string;
|
|
15154
|
+
}) => ReturnType;
|
|
15136
15155
|
};
|
|
15137
15156
|
}
|
|
15138
15157
|
}
|