@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/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.
|
|
@@ -4174,13 +4193,8 @@ declare module "gridstack" {
|
|
|
4174
4193
|
}
|
|
4175
4194
|
|
|
4176
4195
|
|
|
4177
|
-
declare
|
|
4178
|
-
|
|
4179
|
-
aiBlock: {
|
|
4180
|
-
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
4181
|
-
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
4182
|
-
};
|
|
4183
|
-
}
|
|
4196
|
+
declare namespace Calendar {
|
|
4197
|
+
var displayName: string;
|
|
4184
4198
|
}
|
|
4185
4199
|
|
|
4186
4200
|
|
|
@@ -4196,8 +4210,9 @@ declare module "@tiptap/core" {
|
|
|
4196
4210
|
|
|
4197
4211
|
declare module "@tiptap/core" {
|
|
4198
4212
|
interface Commands<ReturnType> {
|
|
4199
|
-
|
|
4200
|
-
|
|
4213
|
+
aiBlock: {
|
|
4214
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
4215
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
4201
4216
|
};
|
|
4202
4217
|
}
|
|
4203
4218
|
}
|
|
@@ -4205,10 +4220,8 @@ declare module "@tiptap/core" {
|
|
|
4205
4220
|
|
|
4206
4221
|
declare module "@tiptap/core" {
|
|
4207
4222
|
interface Commands<ReturnType> {
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
src: string;
|
|
4211
|
-
}) => ReturnType;
|
|
4223
|
+
moodTracker: {
|
|
4224
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
4212
4225
|
};
|
|
4213
4226
|
}
|
|
4214
4227
|
}
|
|
@@ -4223,8 +4236,14 @@ declare module "@tiptap/core" {
|
|
|
4223
4236
|
}
|
|
4224
4237
|
|
|
4225
4238
|
|
|
4226
|
-
declare
|
|
4227
|
-
|
|
4239
|
+
declare module "@tiptap/core" {
|
|
4240
|
+
interface Commands<ReturnType> {
|
|
4241
|
+
videoEmbed: {
|
|
4242
|
+
setVideoEmbed: (options: {
|
|
4243
|
+
src: string;
|
|
4244
|
+
}) => ReturnType;
|
|
4245
|
+
};
|
|
4246
|
+
}
|
|
4228
4247
|
}
|
|
4229
4248
|
|
|
4230
4249
|
|
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";
|
|
@@ -8539,13 +8547,8 @@ declare module "gridstack" {
|
|
|
8539
8547
|
}
|
|
8540
8548
|
|
|
8541
8549
|
|
|
8542
|
-
declare
|
|
8543
|
-
|
|
8544
|
-
aiBlock: {
|
|
8545
|
-
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
8546
|
-
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
8547
|
-
};
|
|
8548
|
-
}
|
|
8550
|
+
declare namespace Calendar {
|
|
8551
|
+
var displayName: string;
|
|
8549
8552
|
}
|
|
8550
8553
|
|
|
8551
8554
|
|
|
@@ -8561,8 +8564,9 @@ declare module "@tiptap/core" {
|
|
|
8561
8564
|
|
|
8562
8565
|
declare module "@tiptap/core" {
|
|
8563
8566
|
interface Commands<ReturnType> {
|
|
8564
|
-
|
|
8565
|
-
|
|
8567
|
+
aiBlock: {
|
|
8568
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
8569
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
8566
8570
|
};
|
|
8567
8571
|
}
|
|
8568
8572
|
}
|
|
@@ -8570,10 +8574,8 @@ declare module "@tiptap/core" {
|
|
|
8570
8574
|
|
|
8571
8575
|
declare module "@tiptap/core" {
|
|
8572
8576
|
interface Commands<ReturnType> {
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
src: string;
|
|
8576
|
-
}) => ReturnType;
|
|
8577
|
+
moodTracker: {
|
|
8578
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
8577
8579
|
};
|
|
8578
8580
|
}
|
|
8579
8581
|
}
|
|
@@ -8588,8 +8590,14 @@ declare module "@tiptap/core" {
|
|
|
8588
8590
|
}
|
|
8589
8591
|
|
|
8590
8592
|
|
|
8591
|
-
declare
|
|
8592
|
-
|
|
8593
|
+
declare module "@tiptap/core" {
|
|
8594
|
+
interface Commands<ReturnType> {
|
|
8595
|
+
videoEmbed: {
|
|
8596
|
+
setVideoEmbed: (options: {
|
|
8597
|
+
src: string;
|
|
8598
|
+
}) => ReturnType;
|
|
8599
|
+
};
|
|
8600
|
+
}
|
|
8593
8601
|
}
|
|
8594
8602
|
|
|
8595
8603
|
|