@factorialco/f0-react 1.390.2 → 1.392.0
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/F0HILActionConfirmation-C_1UQkak.js +1937 -0
- package/dist/ai.d.ts +103 -11
- package/dist/ai.js +23 -22
- package/dist/experimental.d.ts +18 -11
- package/dist/experimental.js +5111 -5035
- package/dist/f0.d.ts +109 -11
- package/dist/f0.js +10 -9
- package/dist/i18n-provider-defaults.d.ts +12 -11
- package/dist/i18n-provider-defaults.js +2 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/F0HILActionConfirmation-B5UWkFgg.js +0 -1386
package/dist/ai.d.ts
CHANGED
|
@@ -284,6 +284,12 @@ export declare function Blockquote({ children, ...props }: React.HTMLAttributes<
|
|
|
284
284
|
|
|
285
285
|
export declare const ChatSpinner: ForwardRefExoticComponent<Omit<SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
|
|
286
286
|
|
|
287
|
+
/**
|
|
288
|
+
* CSS RGB color string type
|
|
289
|
+
* @example 'rgb(255, 0, 0)' or 'rgb(255,0,0)'
|
|
290
|
+
*/
|
|
291
|
+
declare type CSSRgbString = `rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})`;
|
|
292
|
+
|
|
287
293
|
export declare const defaultTranslations: {
|
|
288
294
|
readonly countries: {
|
|
289
295
|
ad: string;
|
|
@@ -535,6 +541,7 @@ export declare const defaultTranslations: {
|
|
|
535
541
|
readonly errors: {
|
|
536
542
|
readonly saveFailed: "Save failed";
|
|
537
543
|
};
|
|
544
|
+
readonly addRow: "Add row";
|
|
538
545
|
};
|
|
539
546
|
readonly itemsCount: "items";
|
|
540
547
|
readonly emptyStates: {
|
|
@@ -1024,6 +1031,35 @@ export declare interface F0AiCollapsibleMessageProps {
|
|
|
1024
1031
|
*/
|
|
1025
1032
|
export declare const F0AiFullscreenChat: () => JSX_2.Element | null;
|
|
1026
1033
|
|
|
1034
|
+
export declare class F0AiMask {
|
|
1035
|
+
readonly element: HTMLElement;
|
|
1036
|
+
private canvas;
|
|
1037
|
+
private options;
|
|
1038
|
+
private running;
|
|
1039
|
+
private disposed;
|
|
1040
|
+
private startTime;
|
|
1041
|
+
private lastTime;
|
|
1042
|
+
private rafId;
|
|
1043
|
+
private glr;
|
|
1044
|
+
private observer?;
|
|
1045
|
+
constructor(options?: MaskOptions);
|
|
1046
|
+
start(): void;
|
|
1047
|
+
pause(): void;
|
|
1048
|
+
dispose(): void;
|
|
1049
|
+
resize(width: number, height: number, ratio?: number): void;
|
|
1050
|
+
/**
|
|
1051
|
+
* Automatically resizes the canvas to match the dimensions of the given element.
|
|
1052
|
+
* @note using ResizeObserver
|
|
1053
|
+
*/
|
|
1054
|
+
autoResize(sourceElement: HTMLElement): void;
|
|
1055
|
+
fadeIn(): Promise<void>;
|
|
1056
|
+
fadeOut(): Promise<void>;
|
|
1057
|
+
private checkGLError;
|
|
1058
|
+
private getGLErrorName;
|
|
1059
|
+
private setupGL;
|
|
1060
|
+
private render;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1027
1063
|
export declare function F0AuraVoiceAnimation({ size, state, color, colorShift, audioTrack, themeMode, className, ref, ...props }: F0AuraVoiceAnimationProps & ComponentProps<"div"> & VariantProps<typeof F0AuraVoiceAnimationVariants>): JSX_2.Element;
|
|
1028
1064
|
|
|
1029
1065
|
export declare interface F0AuraVoiceAnimationProps {
|
|
@@ -1289,6 +1325,62 @@ declare type Join<T extends string[], D extends string> = T extends [] ? never :
|
|
|
1289
1325
|
|
|
1290
1326
|
export declare function Li({ children, ...props }: React.HTMLAttributes<HTMLLIElement>): JSX_2.Element;
|
|
1291
1327
|
|
|
1328
|
+
declare type MaskOptions = {
|
|
1329
|
+
/**
|
|
1330
|
+
* The width of the Mask element.
|
|
1331
|
+
* @default 600
|
|
1332
|
+
*/
|
|
1333
|
+
width?: number;
|
|
1334
|
+
/**
|
|
1335
|
+
* The height of the Mask element.
|
|
1336
|
+
* @default 600
|
|
1337
|
+
*/
|
|
1338
|
+
height?: number;
|
|
1339
|
+
/**
|
|
1340
|
+
* Device pixel ratio multiplier; can be less than 1.
|
|
1341
|
+
*/
|
|
1342
|
+
ratio?: number;
|
|
1343
|
+
/**
|
|
1344
|
+
* Color mode. Upon what background color will the element be displayed.
|
|
1345
|
+
* - dark: optimize for dark background. (clean and luminous glow. may be invisible on light backgrounds.)
|
|
1346
|
+
* - light: optimize for light background. (high saturation glow. not elegant on dark backgrounds.)
|
|
1347
|
+
* @default light
|
|
1348
|
+
* @note It's not possible to make a style that works well on both light and dark backgrounds.
|
|
1349
|
+
* @note If you do not know the background color, start with light.
|
|
1350
|
+
*/
|
|
1351
|
+
mode?: "dark" | "light";
|
|
1352
|
+
/**
|
|
1353
|
+
* Color list.
|
|
1354
|
+
* @default ['rgb(57, 182, 255)', 'rgb(189, 69, 251)', 'rgb(255, 87, 51)', 'rgb(255, 214, 0)']
|
|
1355
|
+
* @note The color list must be specified with 4 colors in an array, formatted as rgb color strings.
|
|
1356
|
+
*/
|
|
1357
|
+
colors?: [CSSRgbString, CSSRgbString, CSSRgbString, CSSRgbString];
|
|
1358
|
+
/**
|
|
1359
|
+
* The width of the border.
|
|
1360
|
+
* @default 8
|
|
1361
|
+
*/
|
|
1362
|
+
borderWidth?: number;
|
|
1363
|
+
/**
|
|
1364
|
+
* The width of the glow effect.
|
|
1365
|
+
* @default 200
|
|
1366
|
+
*
|
|
1367
|
+
*/
|
|
1368
|
+
glowWidth?: number;
|
|
1369
|
+
/**
|
|
1370
|
+
* The border radius.
|
|
1371
|
+
* @default 8
|
|
1372
|
+
*/
|
|
1373
|
+
borderRadius?: number;
|
|
1374
|
+
/**
|
|
1375
|
+
* Custom class names for wrapper and canvas elements.
|
|
1376
|
+
*/
|
|
1377
|
+
classNames?: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* Custom styles for wrapper and canvas elements.
|
|
1380
|
+
*/
|
|
1381
|
+
styles?: Partial<CSSStyleDeclaration>;
|
|
1382
|
+
};
|
|
1383
|
+
|
|
1292
1384
|
export declare function Ol({ children, ...props }: React.HTMLAttributes<HTMLOListElement>): JSX_2.Element;
|
|
1293
1385
|
|
|
1294
1386
|
export declare type OneIconSize = (typeof oneIconSizes)[number];
|
|
@@ -1433,6 +1525,11 @@ declare module "gridstack" {
|
|
|
1433
1525
|
}
|
|
1434
1526
|
|
|
1435
1527
|
|
|
1528
|
+
declare namespace Calendar {
|
|
1529
|
+
var displayName: string;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
|
|
1436
1533
|
declare module "@tiptap/core" {
|
|
1437
1534
|
interface Commands<ReturnType> {
|
|
1438
1535
|
aiBlock: {
|
|
@@ -1464,10 +1561,8 @@ declare module "@tiptap/core" {
|
|
|
1464
1561
|
|
|
1465
1562
|
declare module "@tiptap/core" {
|
|
1466
1563
|
interface Commands<ReturnType> {
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
src: string;
|
|
1470
|
-
}) => ReturnType;
|
|
1564
|
+
transcript: {
|
|
1565
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
1471
1566
|
};
|
|
1472
1567
|
}
|
|
1473
1568
|
}
|
|
@@ -1475,13 +1570,10 @@ declare module "@tiptap/core" {
|
|
|
1475
1570
|
|
|
1476
1571
|
declare module "@tiptap/core" {
|
|
1477
1572
|
interface Commands<ReturnType> {
|
|
1478
|
-
|
|
1479
|
-
|
|
1573
|
+
videoEmbed: {
|
|
1574
|
+
setVideoEmbed: (options: {
|
|
1575
|
+
src: string;
|
|
1576
|
+
}) => ReturnType;
|
|
1480
1577
|
};
|
|
1481
1578
|
}
|
|
1482
1579
|
}
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
declare namespace Calendar {
|
|
1486
|
-
var displayName: string;
|
|
1487
|
-
}
|
package/dist/ai.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { A as e, B as t, C as
|
|
1
|
+
import { A as e, B as t, C as i, q as n, E as o, h as r, F as l, a as A, D as c, i as F, b as u, j as h, w as C, x as d, y as m, z as T, c as f, r as S, s as p, t as I, H as g, I as k, m as x, L as H, O as M, v as P, P as b, S as w, T as O, n as v, o as D, p as E, U as L, k as R, l as q, d as y, e as z, u as B, g as U, f as j } from "./F0AiChat-nPbqtFaA.js";
|
|
2
2
|
import { defaultTranslations as G } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as K, F as N, c as Q,
|
|
3
|
+
import { A as K, F as N, c as Q, d as W, b as X, a as Y, o as Z, u as _ } from "./F0HILActionConfirmation-C_1UQkak.js";
|
|
4
4
|
export {
|
|
5
5
|
e as A,
|
|
6
6
|
K as AiChatTranslationsProvider,
|
|
7
7
|
t as Blockquote,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
i as ChatSpinner,
|
|
9
|
+
n as Em,
|
|
10
|
+
o as EntityRef,
|
|
11
11
|
r as F0ActionItem,
|
|
12
12
|
l as F0AiChat,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
N as
|
|
13
|
+
A as F0AiChatProvider,
|
|
14
|
+
c as F0AiChatTextArea,
|
|
15
|
+
F as F0AiCollapsibleMessage,
|
|
16
|
+
u as F0AiFullscreenChat,
|
|
17
|
+
N as F0AiMask,
|
|
18
|
+
Q as F0AuraVoiceAnimation,
|
|
18
19
|
h as F0DataDownload,
|
|
19
|
-
|
|
20
|
+
W as F0HILActionConfirmation,
|
|
20
21
|
C as F0MessageSources,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
d as F0OneIcon,
|
|
23
|
+
m as F0OneSwitch,
|
|
24
|
+
T as F0Thinking,
|
|
24
25
|
f as FullscreenChatContext,
|
|
25
26
|
S as H1,
|
|
26
27
|
p as H2,
|
|
@@ -29,23 +30,23 @@ export {
|
|
|
29
30
|
k as I18nProvider,
|
|
30
31
|
x as Image,
|
|
31
32
|
H as Li,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
M as Ol,
|
|
34
|
+
P,
|
|
35
|
+
b as Pre,
|
|
36
|
+
w as Strong,
|
|
36
37
|
O as Table,
|
|
37
38
|
v as TableSimple,
|
|
38
39
|
D as Td,
|
|
39
40
|
E as Th,
|
|
40
41
|
L as Ul,
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
X as actionItemStatuses,
|
|
43
|
+
Y as aiTranslations,
|
|
43
44
|
G as defaultTranslations,
|
|
44
45
|
R as f0MarkdownRenderers,
|
|
45
46
|
q as f0MarkdownRenderersSimple,
|
|
46
|
-
|
|
47
|
+
Z as oneIconSizes,
|
|
47
48
|
y as useAiChat,
|
|
48
|
-
|
|
49
|
+
_ as useAiChatTranslations,
|
|
49
50
|
z as useDefaultCopilotActions,
|
|
50
51
|
B as useI18n,
|
|
51
52
|
U as useMessageSourcesAction,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -2491,6 +2491,7 @@ declare const defaultTranslations: {
|
|
|
2491
2491
|
readonly errors: {
|
|
2492
2492
|
readonly saveFailed: "Save failed";
|
|
2493
2493
|
};
|
|
2494
|
+
readonly addRow: "Add row";
|
|
2494
2495
|
};
|
|
2495
2496
|
readonly itemsCount: "items";
|
|
2496
2497
|
readonly emptyStates: {
|
|
@@ -2981,6 +2982,12 @@ declare type EditableTableVisualizationOptions<R extends RecordType, _Filters ex
|
|
|
2981
2982
|
* Rejection sets an error on the edited column.
|
|
2982
2983
|
*/
|
|
2983
2984
|
onCellChange: (updatedItem: R) => Promise<void | Record<string, string>>;
|
|
2985
|
+
/** When provided, renders an "Add" button row at the bottom of the table and nested rows. Receives the parent item when triggered from a nested row. Supports async functions for loading state. */
|
|
2986
|
+
onAddRow?: (parentItem?: R) => void | Promise<void>;
|
|
2987
|
+
/** Custom label for the root-level "Add row" button. Falls back to the default i18n translation. */
|
|
2988
|
+
addRowButtonLabel?: string;
|
|
2989
|
+
/** Custom label for the nested-row "Add row" button. Falls back to the default i18n translation. */
|
|
2990
|
+
nestedAddRowButtonLabel?: string;
|
|
2984
2991
|
};
|
|
2985
2992
|
|
|
2986
2993
|
declare type EditableTableVisualizationSettings = TableVisualizationSettings;
|
|
@@ -7233,6 +7240,11 @@ declare module "gridstack" {
|
|
|
7233
7240
|
}
|
|
7234
7241
|
|
|
7235
7242
|
|
|
7243
|
+
declare namespace Calendar {
|
|
7244
|
+
var displayName: string;
|
|
7245
|
+
}
|
|
7246
|
+
|
|
7247
|
+
|
|
7236
7248
|
declare module "@tiptap/core" {
|
|
7237
7249
|
interface Commands<ReturnType> {
|
|
7238
7250
|
aiBlock: {
|
|
@@ -7264,10 +7276,8 @@ declare module "@tiptap/core" {
|
|
|
7264
7276
|
|
|
7265
7277
|
declare module "@tiptap/core" {
|
|
7266
7278
|
interface Commands<ReturnType> {
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
src: string;
|
|
7270
|
-
}) => ReturnType;
|
|
7279
|
+
transcript: {
|
|
7280
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
7271
7281
|
};
|
|
7272
7282
|
}
|
|
7273
7283
|
}
|
|
@@ -7275,13 +7285,10 @@ declare module "@tiptap/core" {
|
|
|
7275
7285
|
|
|
7276
7286
|
declare module "@tiptap/core" {
|
|
7277
7287
|
interface Commands<ReturnType> {
|
|
7278
|
-
|
|
7279
|
-
|
|
7288
|
+
videoEmbed: {
|
|
7289
|
+
setVideoEmbed: (options: {
|
|
7290
|
+
src: string;
|
|
7291
|
+
}) => ReturnType;
|
|
7280
7292
|
};
|
|
7281
7293
|
}
|
|
7282
7294
|
}
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
declare namespace Calendar {
|
|
7286
|
-
var displayName: string;
|
|
7287
|
-
}
|