@factorialco/f0-react 2.27.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 +30 -11
- package/dist/ai.js +15 -14
- package/dist/experimental.d.ts +19 -11
- package/dist/experimental.js +141 -141
- package/dist/f0.d.ts +33 -11
- package/dist/f0.js +230 -229
- package/dist/i18n-provider-defaults.d.ts +12 -11
- package/dist/i18n-provider-defaults.js +1 -0
- package/dist/styles.css +1 -1
- package/dist/{useChatHistory-Cq8UdI6Q.js → useChatHistory-DHc7fgQg.js} +4779 -3923
- 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.
|
|
@@ -4174,16 +4193,11 @@ declare module "gridstack" {
|
|
|
4174
4193
|
}
|
|
4175
4194
|
|
|
4176
4195
|
|
|
4177
|
-
declare namespace Calendar {
|
|
4178
|
-
var displayName: string;
|
|
4179
|
-
}
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
4196
|
declare module "@tiptap/core" {
|
|
4183
4197
|
interface Commands<ReturnType> {
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4198
|
+
enhanceHighlight: {
|
|
4199
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
4200
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
4187
4201
|
};
|
|
4188
4202
|
}
|
|
4189
4203
|
}
|
|
@@ -4191,9 +4205,9 @@ declare module "@tiptap/core" {
|
|
|
4191
4205
|
|
|
4192
4206
|
declare module "@tiptap/core" {
|
|
4193
4207
|
interface Commands<ReturnType> {
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4208
|
+
aiBlock: {
|
|
4209
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
4210
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
4197
4211
|
};
|
|
4198
4212
|
}
|
|
4199
4213
|
}
|
|
@@ -4228,6 +4242,11 @@ declare module "@tiptap/core" {
|
|
|
4228
4242
|
}
|
|
4229
4243
|
|
|
4230
4244
|
|
|
4245
|
+
declare namespace Calendar {
|
|
4246
|
+
var displayName: string;
|
|
4247
|
+
}
|
|
4248
|
+
|
|
4249
|
+
|
|
4231
4250
|
declare namespace F0GraphNodeWrapperInner {
|
|
4232
4251
|
var displayName: string;
|
|
4233
4252
|
}
|
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,16 +8547,11 @@ declare module "gridstack" {
|
|
|
8539
8547
|
}
|
|
8540
8548
|
|
|
8541
8549
|
|
|
8542
|
-
declare namespace Calendar {
|
|
8543
|
-
var displayName: string;
|
|
8544
|
-
}
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
8550
|
declare module "@tiptap/core" {
|
|
8548
8551
|
interface Commands<ReturnType> {
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
+
enhanceHighlight: {
|
|
8553
|
+
setEnhanceHighlight: (from: number, to: number) => ReturnType;
|
|
8554
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
8552
8555
|
};
|
|
8553
8556
|
}
|
|
8554
8557
|
}
|
|
@@ -8556,9 +8559,9 @@ declare module "@tiptap/core" {
|
|
|
8556
8559
|
|
|
8557
8560
|
declare module "@tiptap/core" {
|
|
8558
8561
|
interface Commands<ReturnType> {
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
+
aiBlock: {
|
|
8563
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
8564
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
8562
8565
|
};
|
|
8563
8566
|
}
|
|
8564
8567
|
}
|
|
@@ -8593,6 +8596,11 @@ declare module "@tiptap/core" {
|
|
|
8593
8596
|
}
|
|
8594
8597
|
|
|
8595
8598
|
|
|
8599
|
+
declare namespace Calendar {
|
|
8600
|
+
var displayName: string;
|
|
8601
|
+
}
|
|
8602
|
+
|
|
8603
|
+
|
|
8596
8604
|
declare namespace F0GraphNodeWrapperInner {
|
|
8597
8605
|
var displayName: string;
|
|
8598
8606
|
}
|