@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/ai.d.ts
CHANGED
|
@@ -89,6 +89,13 @@ declare type AiChatDisclaimer = {
|
|
|
89
89
|
text: string;
|
|
90
90
|
link?: string;
|
|
91
91
|
linkText?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Optional click handler on the disclaimer text. When set, the text becomes
|
|
94
|
+
* keyboard-activatable (Enter / Space) and gets a subtle hover hint. Used by
|
|
95
|
+
* the host to wire easter eggs (e.g. the pong game) without coupling f0 to
|
|
96
|
+
* any specific behaviour.
|
|
97
|
+
*/
|
|
98
|
+
onClick?: () => void;
|
|
92
99
|
};
|
|
93
100
|
|
|
94
101
|
/**
|
|
@@ -569,6 +576,7 @@ export declare const aiTranslations: {
|
|
|
569
576
|
readonly attachFile: "Attach file";
|
|
570
577
|
readonly removeFile: "Remove";
|
|
571
578
|
readonly fileUploadError: "Upload failed";
|
|
579
|
+
readonly fileUploadBlockedSubmit: "Your message wasn't sent because one of the attachments failed to upload. Remove it or retry.";
|
|
572
580
|
readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
|
|
573
581
|
readonly dropFilesHere: "Drop your files here";
|
|
574
582
|
readonly reply: "Reply";
|
|
@@ -1842,6 +1850,7 @@ export declare const defaultTranslations: {
|
|
|
1842
1850
|
readonly attachFile: "Attach file";
|
|
1843
1851
|
readonly removeFile: "Remove";
|
|
1844
1852
|
readonly fileUploadError: "Upload failed";
|
|
1853
|
+
readonly fileUploadBlockedSubmit: "Your message wasn't sent because one of the attachments failed to upload. Remove it or retry.";
|
|
1845
1854
|
readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
|
|
1846
1855
|
readonly dropFilesHere: "Drop your files here";
|
|
1847
1856
|
readonly reply: "Reply";
|
|
@@ -3346,6 +3355,16 @@ declare type Level = (typeof levels)[number];
|
|
|
3346
3355
|
|
|
3347
3356
|
declare const levels: readonly ["info", "warning", "critical", "positive"];
|
|
3348
3357
|
|
|
3358
|
+
export declare const markdownRenderers: MarkdownTagRenderers;
|
|
3359
|
+
|
|
3360
|
+
/**
|
|
3361
|
+
* Map of tag name → renderer component, consumed by the markdown rendering
|
|
3362
|
+
* layer (factorial / mock runtime pass these through to whatever markdown
|
|
3363
|
+
* renderer they pick). Kept as a plain `Record` so f0 stays decoupled from
|
|
3364
|
+
* any specific markdown library.
|
|
3365
|
+
*/
|
|
3366
|
+
export declare type MarkdownTagRenderers = Record<string, ComponentType<any>>;
|
|
3367
|
+
|
|
3349
3368
|
export declare type MaskOptions = {
|
|
3350
3369
|
/**
|
|
3351
3370
|
* The width of the Mask element.
|
|
@@ -4176,9 +4195,9 @@ declare module "gridstack" {
|
|
|
4176
4195
|
|
|
4177
4196
|
declare module "@tiptap/core" {
|
|
4178
4197
|
interface Commands<ReturnType> {
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4198
|
+
enhanceHighlight: {
|
|
4199
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
4200
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
4182
4201
|
};
|
|
4183
4202
|
}
|
|
4184
4203
|
}
|
|
@@ -4186,9 +4205,9 @@ declare module "@tiptap/core" {
|
|
|
4186
4205
|
|
|
4187
4206
|
declare module "@tiptap/core" {
|
|
4188
4207
|
interface Commands<ReturnType> {
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4208
|
+
aiBlock: {
|
|
4209
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
4210
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
4192
4211
|
};
|
|
4193
4212
|
}
|
|
4194
4213
|
}
|
|
@@ -4205,10 +4224,8 @@ declare module "@tiptap/core" {
|
|
|
4205
4224
|
|
|
4206
4225
|
declare module "@tiptap/core" {
|
|
4207
4226
|
interface Commands<ReturnType> {
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
src: string;
|
|
4211
|
-
}) => ReturnType;
|
|
4227
|
+
transcript: {
|
|
4228
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
4212
4229
|
};
|
|
4213
4230
|
}
|
|
4214
4231
|
}
|
|
@@ -4216,8 +4233,10 @@ declare module "@tiptap/core" {
|
|
|
4216
4233
|
|
|
4217
4234
|
declare module "@tiptap/core" {
|
|
4218
4235
|
interface Commands<ReturnType> {
|
|
4219
|
-
|
|
4220
|
-
|
|
4236
|
+
videoEmbed: {
|
|
4237
|
+
setVideoEmbed: (options: {
|
|
4238
|
+
src: string;
|
|
4239
|
+
}) => ReturnType;
|
|
4221
4240
|
};
|
|
4222
4241
|
}
|
|
4223
4242
|
}
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as e, F as r, a as t, e as
|
|
1
|
+
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-CKuB_a-C.js";
|
|
2
2
|
import { defaultTranslations as m } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as c, C as I, h as P,
|
|
3
|
+
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-DHc7fgQg.js";
|
|
4
4
|
export {
|
|
5
5
|
c as AiChatTranslationsProvider,
|
|
6
6
|
I as ChatSpinner,
|
|
@@ -15,30 +15,31 @@ export {
|
|
|
15
15
|
g as F0AiMask,
|
|
16
16
|
y as F0AiMessageSources,
|
|
17
17
|
S as F0AiMessagesContainer,
|
|
18
|
-
|
|
18
|
+
o as F0AiPong,
|
|
19
19
|
x as F0AiProposalCard,
|
|
20
20
|
H as F0AiTableCard,
|
|
21
21
|
V as F0AuraVoiceAnimation,
|
|
22
22
|
b as F0CanvasCard,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
i as F0CanvasPanel,
|
|
24
|
+
k as F0ClarifyingPanel,
|
|
25
|
+
w as F0HILActionConfirmation,
|
|
26
26
|
n as F0OneIcon,
|
|
27
27
|
F as F0OneSwitch,
|
|
28
|
-
|
|
28
|
+
M as FormCardValueFormatterProvider,
|
|
29
29
|
C as I18nProvider,
|
|
30
30
|
A as PongBall,
|
|
31
|
-
|
|
31
|
+
O as actionItemStatuses,
|
|
32
32
|
D as aiTranslations,
|
|
33
33
|
j as contentTypes,
|
|
34
34
|
m as defaultTranslations,
|
|
35
|
-
q as
|
|
35
|
+
q as markdownRenderers,
|
|
36
|
+
z as oneIconSizes,
|
|
36
37
|
l as useAiChat,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
B as useAiChatTranslations,
|
|
39
|
+
E as useCanvasEntity,
|
|
40
|
+
L as useChatHistory,
|
|
41
|
+
R as useFormCardValueFormatter,
|
|
42
|
+
d as useI18n,
|
|
42
43
|
G as useSetFormCardValueFormatter,
|
|
43
44
|
J as useToolCallId
|
|
44
45
|
};
|
package/dist/experimental.d.ts
CHANGED
|
@@ -459,6 +459,13 @@ declare type AiChatDisclaimer = {
|
|
|
459
459
|
text: string;
|
|
460
460
|
link?: string;
|
|
461
461
|
linkText?: string;
|
|
462
|
+
/**
|
|
463
|
+
* Optional click handler on the disclaimer text. When set, the text becomes
|
|
464
|
+
* keyboard-activatable (Enter / Space) and gets a subtle hover hint. Used by
|
|
465
|
+
* the host to wire easter eggs (e.g. the pong game) without coupling f0 to
|
|
466
|
+
* any specific behaviour.
|
|
467
|
+
*/
|
|
468
|
+
onClick?: () => void;
|
|
462
469
|
};
|
|
463
470
|
|
|
464
471
|
/**
|
|
@@ -3261,6 +3268,7 @@ declare const defaultTranslations: {
|
|
|
3261
3268
|
readonly attachFile: "Attach file";
|
|
3262
3269
|
readonly removeFile: "Remove";
|
|
3263
3270
|
readonly fileUploadError: "Upload failed";
|
|
3271
|
+
readonly fileUploadBlockedSubmit: "Your message wasn't sent because one of the attachments failed to upload. Remove it or retry.";
|
|
3264
3272
|
readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
|
|
3265
3273
|
readonly dropFilesHere: "Drop your files here";
|
|
3266
3274
|
readonly reply: "Reply";
|
|
@@ -8541,9 +8549,9 @@ declare module "gridstack" {
|
|
|
8541
8549
|
|
|
8542
8550
|
declare module "@tiptap/core" {
|
|
8543
8551
|
interface Commands<ReturnType> {
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8552
|
+
enhanceHighlight: {
|
|
8553
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
8554
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
8547
8555
|
};
|
|
8548
8556
|
}
|
|
8549
8557
|
}
|
|
@@ -8551,9 +8559,9 @@ declare module "@tiptap/core" {
|
|
|
8551
8559
|
|
|
8552
8560
|
declare module "@tiptap/core" {
|
|
8553
8561
|
interface Commands<ReturnType> {
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8562
|
+
aiBlock: {
|
|
8563
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
8564
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
8557
8565
|
};
|
|
8558
8566
|
}
|
|
8559
8567
|
}
|
|
@@ -8570,10 +8578,8 @@ declare module "@tiptap/core" {
|
|
|
8570
8578
|
|
|
8571
8579
|
declare module "@tiptap/core" {
|
|
8572
8580
|
interface Commands<ReturnType> {
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
src: string;
|
|
8576
|
-
}) => ReturnType;
|
|
8581
|
+
transcript: {
|
|
8582
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
8577
8583
|
};
|
|
8578
8584
|
}
|
|
8579
8585
|
}
|
|
@@ -8581,8 +8587,10 @@ declare module "@tiptap/core" {
|
|
|
8581
8587
|
|
|
8582
8588
|
declare module "@tiptap/core" {
|
|
8583
8589
|
interface Commands<ReturnType> {
|
|
8584
|
-
|
|
8585
|
-
|
|
8590
|
+
videoEmbed: {
|
|
8591
|
+
setVideoEmbed: (options: {
|
|
8592
|
+
src: string;
|
|
8593
|
+
}) => ReturnType;
|
|
8586
8594
|
};
|
|
8587
8595
|
}
|
|
8588
8596
|
}
|