@factorialco/f0-react 2.28.0 → 2.28.2
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 +34 -15
- package/dist/ai.js +15 -14
- package/dist/experimental.d.ts +23 -15
- package/dist/experimental.js +141 -141
- package/dist/f0.d.ts +34 -15
- package/dist/f0.js +230 -229
- package/dist/i18n-provider-defaults.d.ts +16 -15
- 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-DnxSvCSr.js} +12780 -14389
- 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.
|
|
@@ -15089,13 +15108,8 @@ declare module "gridstack" {
|
|
|
15089
15108
|
}
|
|
15090
15109
|
|
|
15091
15110
|
|
|
15092
|
-
declare
|
|
15093
|
-
|
|
15094
|
-
aiBlock: {
|
|
15095
|
-
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
15096
|
-
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
15097
|
-
};
|
|
15098
|
-
}
|
|
15111
|
+
declare namespace Calendar {
|
|
15112
|
+
var displayName: string;
|
|
15099
15113
|
}
|
|
15100
15114
|
|
|
15101
15115
|
|
|
@@ -15111,8 +15125,9 @@ declare module "@tiptap/core" {
|
|
|
15111
15125
|
|
|
15112
15126
|
declare module "@tiptap/core" {
|
|
15113
15127
|
interface Commands<ReturnType> {
|
|
15114
|
-
|
|
15115
|
-
|
|
15128
|
+
aiBlock: {
|
|
15129
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
15130
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
15116
15131
|
};
|
|
15117
15132
|
}
|
|
15118
15133
|
}
|
|
@@ -15120,10 +15135,8 @@ declare module "@tiptap/core" {
|
|
|
15120
15135
|
|
|
15121
15136
|
declare module "@tiptap/core" {
|
|
15122
15137
|
interface Commands<ReturnType> {
|
|
15123
|
-
|
|
15124
|
-
|
|
15125
|
-
src: string;
|
|
15126
|
-
}) => ReturnType;
|
|
15138
|
+
moodTracker: {
|
|
15139
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
15127
15140
|
};
|
|
15128
15141
|
}
|
|
15129
15142
|
}
|
|
@@ -15138,8 +15151,14 @@ declare module "@tiptap/core" {
|
|
|
15138
15151
|
}
|
|
15139
15152
|
|
|
15140
15153
|
|
|
15141
|
-
declare
|
|
15142
|
-
|
|
15154
|
+
declare module "@tiptap/core" {
|
|
15155
|
+
interface Commands<ReturnType> {
|
|
15156
|
+
videoEmbed: {
|
|
15157
|
+
setVideoEmbed: (options: {
|
|
15158
|
+
src: string;
|
|
15159
|
+
}) => ReturnType;
|
|
15160
|
+
};
|
|
15161
|
+
}
|
|
15143
15162
|
}
|
|
15144
15163
|
|
|
15145
15164
|
|