@factorialco/f0-react 1.391.0 → 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 +91 -0
- package/dist/ai.js +23 -22
- package/dist/f0.d.ts +91 -0
- package/dist/f0.js +10 -9
- 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;
|
|
@@ -1025,6 +1031,35 @@ export declare interface F0AiCollapsibleMessageProps {
|
|
|
1025
1031
|
*/
|
|
1026
1032
|
export declare const F0AiFullscreenChat: () => JSX_2.Element | null;
|
|
1027
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
|
+
|
|
1028
1063
|
export declare function F0AuraVoiceAnimation({ size, state, color, colorShift, audioTrack, themeMode, className, ref, ...props }: F0AuraVoiceAnimationProps & ComponentProps<"div"> & VariantProps<typeof F0AuraVoiceAnimationVariants>): JSX_2.Element;
|
|
1029
1064
|
|
|
1030
1065
|
export declare interface F0AuraVoiceAnimationProps {
|
|
@@ -1290,6 +1325,62 @@ declare type Join<T extends string[], D extends string> = T extends [] ? never :
|
|
|
1290
1325
|
|
|
1291
1326
|
export declare function Li({ children, ...props }: React.HTMLAttributes<HTMLLIElement>): JSX_2.Element;
|
|
1292
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
|
+
|
|
1293
1384
|
export declare function Ol({ children, ...props }: React.HTMLAttributes<HTMLOListElement>): JSX_2.Element;
|
|
1294
1385
|
|
|
1295
1386
|
export declare type OneIconSize = (typeof oneIconSizes)[number];
|
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/f0.d.ts
CHANGED
|
@@ -1625,6 +1625,12 @@ export declare const createPageLayoutBlock: <Props = unknown>(displayName: strin
|
|
|
1625
1625
|
|
|
1626
1626
|
export declare const createPageLayoutBlockGroup: <Props = unknown>(displayName: string, Component: React.ComponentType<Props>) => React.ComponentType<Props> & PageLayoutGroupComponent;
|
|
1627
1627
|
|
|
1628
|
+
/**
|
|
1629
|
+
* CSS RGB color string type
|
|
1630
|
+
* @example 'rgb(255, 0, 0)' or 'rgb(255,0,0)'
|
|
1631
|
+
*/
|
|
1632
|
+
declare type CSSRgbString = `rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})`;
|
|
1633
|
+
|
|
1628
1634
|
/**
|
|
1629
1635
|
* Extracts the current filters type from filter options.
|
|
1630
1636
|
* Creates a type mapping filter keys to their respective value types.
|
|
@@ -3077,6 +3083,35 @@ export declare interface F0AiCollapsibleMessageProps {
|
|
|
3077
3083
|
*/
|
|
3078
3084
|
export declare const F0AiFullscreenChat: () => JSX_2.Element | null;
|
|
3079
3085
|
|
|
3086
|
+
export declare class F0AiMask {
|
|
3087
|
+
readonly element: HTMLElement;
|
|
3088
|
+
private canvas;
|
|
3089
|
+
private options;
|
|
3090
|
+
private running;
|
|
3091
|
+
private disposed;
|
|
3092
|
+
private startTime;
|
|
3093
|
+
private lastTime;
|
|
3094
|
+
private rafId;
|
|
3095
|
+
private glr;
|
|
3096
|
+
private observer?;
|
|
3097
|
+
constructor(options?: MaskOptions);
|
|
3098
|
+
start(): void;
|
|
3099
|
+
pause(): void;
|
|
3100
|
+
dispose(): void;
|
|
3101
|
+
resize(width: number, height: number, ratio?: number): void;
|
|
3102
|
+
/**
|
|
3103
|
+
* Automatically resizes the canvas to match the dimensions of the given element.
|
|
3104
|
+
* @note using ResizeObserver
|
|
3105
|
+
*/
|
|
3106
|
+
autoResize(sourceElement: HTMLElement): void;
|
|
3107
|
+
fadeIn(): Promise<void>;
|
|
3108
|
+
fadeOut(): Promise<void>;
|
|
3109
|
+
private checkGLError;
|
|
3110
|
+
private getGLErrorName;
|
|
3111
|
+
private setupGL;
|
|
3112
|
+
private render;
|
|
3113
|
+
}
|
|
3114
|
+
|
|
3080
3115
|
export declare const F0Alert: WithDataTestIdReturnType_3<({ title, description, action, link, icon, variant, }: F0AlertProps) => JSX_2.Element>;
|
|
3081
3116
|
|
|
3082
3117
|
export declare interface F0AlertProps {
|
|
@@ -6277,6 +6312,62 @@ export declare interface LoadingStateProps {
|
|
|
6277
6312
|
/** Margin tokens (spacing + auto for centering) */
|
|
6278
6313
|
export declare type MarginToken = SpacingToken | "auto";
|
|
6279
6314
|
|
|
6315
|
+
declare type MaskOptions = {
|
|
6316
|
+
/**
|
|
6317
|
+
* The width of the Mask element.
|
|
6318
|
+
* @default 600
|
|
6319
|
+
*/
|
|
6320
|
+
width?: number;
|
|
6321
|
+
/**
|
|
6322
|
+
* The height of the Mask element.
|
|
6323
|
+
* @default 600
|
|
6324
|
+
*/
|
|
6325
|
+
height?: number;
|
|
6326
|
+
/**
|
|
6327
|
+
* Device pixel ratio multiplier; can be less than 1.
|
|
6328
|
+
*/
|
|
6329
|
+
ratio?: number;
|
|
6330
|
+
/**
|
|
6331
|
+
* Color mode. Upon what background color will the element be displayed.
|
|
6332
|
+
* - dark: optimize for dark background. (clean and luminous glow. may be invisible on light backgrounds.)
|
|
6333
|
+
* - light: optimize for light background. (high saturation glow. not elegant on dark backgrounds.)
|
|
6334
|
+
* @default light
|
|
6335
|
+
* @note It's not possible to make a style that works well on both light and dark backgrounds.
|
|
6336
|
+
* @note If you do not know the background color, start with light.
|
|
6337
|
+
*/
|
|
6338
|
+
mode?: "dark" | "light";
|
|
6339
|
+
/**
|
|
6340
|
+
* Color list.
|
|
6341
|
+
* @default ['rgb(57, 182, 255)', 'rgb(189, 69, 251)', 'rgb(255, 87, 51)', 'rgb(255, 214, 0)']
|
|
6342
|
+
* @note The color list must be specified with 4 colors in an array, formatted as rgb color strings.
|
|
6343
|
+
*/
|
|
6344
|
+
colors?: [CSSRgbString, CSSRgbString, CSSRgbString, CSSRgbString];
|
|
6345
|
+
/**
|
|
6346
|
+
* The width of the border.
|
|
6347
|
+
* @default 8
|
|
6348
|
+
*/
|
|
6349
|
+
borderWidth?: number;
|
|
6350
|
+
/**
|
|
6351
|
+
* The width of the glow effect.
|
|
6352
|
+
* @default 200
|
|
6353
|
+
*
|
|
6354
|
+
*/
|
|
6355
|
+
glowWidth?: number;
|
|
6356
|
+
/**
|
|
6357
|
+
* The border radius.
|
|
6358
|
+
* @default 8
|
|
6359
|
+
*/
|
|
6360
|
+
borderRadius?: number;
|
|
6361
|
+
/**
|
|
6362
|
+
* Custom class names for wrapper and canvas elements.
|
|
6363
|
+
*/
|
|
6364
|
+
classNames?: string;
|
|
6365
|
+
/**
|
|
6366
|
+
* Custom styles for wrapper and canvas elements.
|
|
6367
|
+
*/
|
|
6368
|
+
styles?: Partial<CSSStyleDeclaration>;
|
|
6369
|
+
};
|
|
6370
|
+
|
|
6280
6371
|
declare const MAX_EXPANDED_ACTIONS = 2;
|
|
6281
6372
|
|
|
6282
6373
|
declare type MentionedUser = {
|
package/dist/f0.js
CHANGED
|
@@ -6,8 +6,8 @@ import q, { forwardRef as Ke, useRef as Y, useImperativeHandle as Xc, Children a
|
|
|
6
6
|
import { createPortal as Ao, unstable_batchedUpdates as en, flushSync as nd } from "react-dom";
|
|
7
7
|
import { L as Oo, C as id, i as Mo, S as gs, a as sd, f as Jn, b as _r, c as od, A as ad, d as tn, e as Io, E as ld, g as sn, h as cd, j as dd, k as ud, l as ir, m as Lo, u as fd, G as hd, n as md, o as vs, p as pd, q as Po, r as gd, B as Fo, X as zo, Y as hi, s as vd, t as Bo, v as yd, w as bd, x as xd, y as wd, z as _d, D as Cd, F as Ed, H as Sd, I as ys, J as kd, K as Dd, M as Nd, N as Rd, O as Td, P as Ad, Q as Od, R as Md, V as Id, T as Ld, U as mi, W as Vo, Z as Pd, _ as Fd, $ as zd, a0 as Bd, a1 as Ho, a2 as jo, a3 as Vd, a4 as $o, a5 as Wo, a6 as Hd, a7 as jd, a8 as $d, a9 as Wd } from "./DataCollectionStorageProvider-6el79_MC.js";
|
|
8
8
|
import { af as cb, aa as db, ad as ub, ae as fb, ab as hb, ac as mb, ag as pb, ah as gb, ai as vb, aj as yb } from "./DataCollectionStorageProvider-6el79_MC.js";
|
|
9
|
-
import { A as xb, F as wb, c as _b,
|
|
10
|
-
import { defaultTranslations as
|
|
9
|
+
import { A as xb, F as wb, c as _b, d as Cb, b as Eb, a as Sb, o as kb, u as Db } from "./F0HILActionConfirmation-C_1UQkak.js";
|
|
10
|
+
import { defaultTranslations as Rb } from "./i18n-provider-defaults.js";
|
|
11
11
|
import './f0.css';const Gd = {
|
|
12
12
|
xs: 1,
|
|
13
13
|
sm: 2,
|
|
@@ -17682,8 +17682,9 @@ export {
|
|
|
17682
17682
|
Uv as F0AiChatTextArea,
|
|
17683
17683
|
Zv as F0AiCollapsibleMessage,
|
|
17684
17684
|
qv as F0AiFullscreenChat,
|
|
17685
|
+
wb as F0AiMask,
|
|
17685
17686
|
vv as F0Alert,
|
|
17686
|
-
|
|
17687
|
+
_b as F0AuraVoiceAnimation,
|
|
17687
17688
|
Kv as F0Avatar,
|
|
17688
17689
|
Ld as F0AvatarAlert,
|
|
17689
17690
|
Xv as F0AvatarCompany,
|
|
@@ -17712,7 +17713,7 @@ export {
|
|
|
17712
17713
|
yv as F0FilterPickerContent,
|
|
17713
17714
|
_v as F0Form,
|
|
17714
17715
|
Dv as F0GridStack,
|
|
17715
|
-
|
|
17716
|
+
Cb as F0HILActionConfirmation,
|
|
17716
17717
|
Sv as F0Heading,
|
|
17717
17718
|
Wr as F0Icon,
|
|
17718
17719
|
fc as F0Link,
|
|
@@ -17771,8 +17772,8 @@ export {
|
|
|
17771
17772
|
Wo as UpsellingButton,
|
|
17772
17773
|
Av as UpsellingPopover,
|
|
17773
17774
|
tv as VerticalBarChart,
|
|
17774
|
-
|
|
17775
|
-
|
|
17775
|
+
Eb as actionItemStatuses,
|
|
17776
|
+
Sb as aiTranslations,
|
|
17776
17777
|
Wg as avatarVariants,
|
|
17777
17778
|
zy as buildTranslations,
|
|
17778
17779
|
dv as buttonDropdownModes,
|
|
@@ -17790,7 +17791,7 @@ export {
|
|
|
17790
17791
|
fu as createPageLayoutBlockGroup,
|
|
17791
17792
|
Mv as dataCollectionLocalStorageHandler,
|
|
17792
17793
|
gv as datepickerSizes,
|
|
17793
|
-
|
|
17794
|
+
Rb as defaultTranslations,
|
|
17794
17795
|
Zn as evaluateRenderIf,
|
|
17795
17796
|
at as experimental,
|
|
17796
17797
|
bv as f0FormField,
|
|
@@ -17809,13 +17810,13 @@ export {
|
|
|
17809
17810
|
Ce as isZodType,
|
|
17810
17811
|
hv as linkVariants,
|
|
17811
17812
|
Ky as modules,
|
|
17812
|
-
|
|
17813
|
+
kb as oneIconSizes,
|
|
17813
17814
|
hb as predefinedPresets,
|
|
17814
17815
|
mb as selectSizes,
|
|
17815
17816
|
mv as tagDotColors,
|
|
17816
17817
|
dt as unwrapZodSchema,
|
|
17817
17818
|
Xy as useAiChat,
|
|
17818
|
-
|
|
17819
|
+
Db as useAiChatTranslations,
|
|
17819
17820
|
Yy as useData,
|
|
17820
17821
|
Jy as useDataSource,
|
|
17821
17822
|
Qy as useDefaultCopilotActions,
|