@factorialco/f0-react 1.391.0 → 1.392.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/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];
@@ -1434,11 +1525,6 @@ declare module "gridstack" {
1434
1525
  }
1435
1526
 
1436
1527
 
1437
- declare namespace Calendar {
1438
- var displayName: string;
1439
- }
1440
-
1441
-
1442
1528
  declare module "@tiptap/core" {
1443
1529
  interface Commands<ReturnType> {
1444
1530
  aiBlock: {
@@ -1486,3 +1572,8 @@ declare module "@tiptap/core" {
1486
1572
  };
1487
1573
  }
1488
1574
  }
1575
+
1576
+
1577
+ declare namespace Calendar {
1578
+ var displayName: string;
1579
+ }
package/dist/ai.js CHANGED
@@ -1,26 +1,27 @@
1
- import { A as e, B as t, C as n, q as o, E as i, h as r, F as l, a as c, D as A, i as u, b as F, j as h, w as C, x as m, y as T, z as d, 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 P, v as b, P as w, S as M, 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";
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-h8gS_RRF.js";
2
2
  import { defaultTranslations as G } from "./i18n-provider-defaults.js";
3
- import { A as K, F as N, c as Q, b as W, a as X, o as Y, u as Z } from "./F0HILActionConfirmation-B5UWkFgg.js";
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-5F-_yw3W.js";
4
4
  export {
5
5
  e as A,
6
6
  K as AiChatTranslationsProvider,
7
7
  t as Blockquote,
8
- n as ChatSpinner,
9
- o as Em,
10
- i as EntityRef,
8
+ i as ChatSpinner,
9
+ n as Em,
10
+ o as EntityRef,
11
11
  r as F0ActionItem,
12
12
  l as F0AiChat,
13
- c as F0AiChatProvider,
14
- A as F0AiChatTextArea,
15
- u as F0AiCollapsibleMessage,
16
- F as F0AiFullscreenChat,
17
- N as F0AuraVoiceAnimation,
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
- Q as F0HILActionConfirmation,
20
+ W as F0HILActionConfirmation,
20
21
  C as F0MessageSources,
21
- m as F0OneIcon,
22
- T as F0OneSwitch,
23
- d as F0Thinking,
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
- P as Ol,
33
- b as P,
34
- w as Pre,
35
- M as Strong,
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
- W as actionItemStatuses,
42
- X as aiTranslations,
42
+ X as actionItemStatuses,
43
+ Y as aiTranslations,
43
44
  G as defaultTranslations,
44
45
  R as f0MarkdownRenderers,
45
46
  q as f0MarkdownRenderersSimple,
46
- Y as oneIconSizes,
47
+ Z as oneIconSizes,
47
48
  y as useAiChat,
48
- Z as useAiChatTranslations,
49
+ _ as useAiChatTranslations,
49
50
  z as useDefaultCopilotActions,
50
51
  B as useI18n,
51
52
  U as useMessageSourcesAction,
@@ -7240,11 +7240,6 @@ declare module "gridstack" {
7240
7240
  }
7241
7241
 
7242
7242
 
7243
- declare namespace Calendar {
7244
- var displayName: string;
7245
- }
7246
-
7247
-
7248
7243
  declare module "@tiptap/core" {
7249
7244
  interface Commands<ReturnType> {
7250
7245
  aiBlock: {
@@ -7292,3 +7287,8 @@ declare module "@tiptap/core" {
7292
7287
  };
7293
7288
  }
7294
7289
  }
7290
+
7291
+
7292
+ declare namespace Calendar {
7293
+ var displayName: string;
7294
+ }
@@ -1,10 +1,10 @@
1
- import { a8 as du, c8 as Cg, c9 as kg, ca as Ng, cb as Yo, cc as Sg, cd as mo, K as Ig, ce as Ag, ag as G, Y as uu, N as Tg, cf as Eg, at as ji, cg as fu, a9 as k, aZ as Il, ch as Dg, ci as _g, ap as Lg, cj as Va, ck as ai, cl as Rg, cm as Al, cn as hu, co as Es, aa as Mt, u as J, cp as Og, cq as Fg, cr as Mg, cs as Pg, ct as zg, aG as Se, cu as $g, ao as Ee, cv as jg, cw as Tl, am as Q, cx as mu, cy as pu, ah as ft, cz as gu, cA as Ds, cB as bu, ab as H, cC as Hr, al as P, cD as St, cE as Bg, cF as Hg, cG as wr, aV as vu, cH as yu, b4 as hn, cI as xu, cJ as El, cK as Ct, bf as wn, aW as Dl, aX as mn, y as wu, as as je, cL as Cu, cM as Vg, cN as Wa, cO as Qn, cP as _l, cQ as Vr, cR as Bi, cS as Wg, cT as ku, cU as Ug, cV as Ll, cW as Cr, cX as rt, cY as qg, cZ as Gg, c_ as en, c$ as Xo, d0 as Kg, d1 as vr, d2 as jn, d3 as Qg, ad as we, d4 as Jg, d5 as Yg, d6 as Xg, d7 as Zg, d8 as eb, ai as qe, ak as Te, d9 as Cn, b7 as Rt, c5 as Wr, da as Nu, db as Rl, dc as tb, dd as nb, de as rb, df as ib, dg as ob, dh as sb, di as lb, dj as ab, dk as cb, dl as po, dm as db, dn as Ol, dp as ub, dq as fb, dr as hb, ds as mb, dt as pb, du as gb, dv as bb, dw as vb, bz as Ot, dx as Su, dy as yb, ar as ie, ac as Jn, dz as Iu, dA as Au, bg as Fl, au as Ua, av as qa, x as xb, dB as Tu, dC as Eu, b2 as Du, dD as Ml, dE as Pl, dF as Ur, ae as It, bh as wb, bi as Cb, bj as kb, aq as kr, dG as Nb, dH as Zo, dI as _u, dJ as Nr, dK as tn, b0 as Lu, dL as Ga, dM as Ka, dN as Ru, dO as Qa, a$ as Yn, aE as zl, aF as $l, aH as jl, aY as Sr, an as or, dP as Sb, dQ as Ib, dR as Ou, dS as Ab, aI as Ft, dT as Tb, dU as Fu, dV as Mu, dW as Eb, b8 as qr, dX as Bl, dY as go, bB as sn, dZ as _s, d_ as Db, d$ as _b, e0 as Lb, e1 as Rb, e2 as Ob, e3 as Fb, e4 as Pu, e5 as Mb, e6 as zu, e7 as Pb, e8 as zb, e9 as $b, aT as Ja, ea as $u, eb as Ls, aN as Rs, ec as ju, ed as Os, bN as Hl, be as ln, bx as bo, bu as vo, ee as yo, ef as Vl, eg as jb, eh as Bb, ei as Hb, c4 as xo, bd as Bu, c7 as Vb, c6 as Wb, ej as Hu, ek as Ub, aP as Hn, el as Ya, em as Hi, en as qb, eo as Gb, bv as Vu, bA as Kb, bL as Wl, aA as Qb, bO as Jb, aR as Ul, a as Yb, d as Xb, ep as ql, eq as Zb, F as ev, er as Wu, es as Uu, et as tv, eu as nv, ev as rv, ew as iv, ex as ov, ey as qu, ez as sv, bw as Gu, eA as Ku, eB as lv, eC as av, eD as cv, eE as dv, eF as uv, eG as fv, eH as hv, eI as mv, bU as pv, bV as gv, c0 as wo, b_ as Gl, bk as Co, eJ as ko, eK as No, bl as So, eL as Kl, b$ as Qu, bF as Ql, aO as bv, eM as vv, eN as Fs, bW as Vi, eO as yv, eP as xv, eQ as wv, eR as Cv, eS as Ju, eT as Xa, eU as kv, eV as Nv, eW as Sv, eX as Iv, eY as Av, eZ as Tv, e_ as Ev, e$ as Dv, af as Yu, bK as _v, bZ as Lv, f0 as Xu, f1 as Rv, f2 as Ov, f3 as Fv, f4 as Mv, bm as Pv, f5 as zv, f6 as Za, f7 as ec, f8 as tc, f9 as $v, fa as jv, fb as Bv, fc as Zu, fd as Hv } from "./F0AiChat-nPbqtFaA.js";
2
- import { fg as GR, ff as KR, fe as QR, fl as JR, fm as YR, fi as XR, fh as ZR, fk as eO, by as tO, fj as nO } from "./F0AiChat-nPbqtFaA.js";
1
+ import { a8 as du, c8 as Cg, c9 as kg, ca as Ng, cb as Yo, cc as Sg, cd as mo, K as Ig, ce as Ag, ag as G, Y as uu, N as Tg, cf as Eg, at as ji, cg as fu, a9 as k, aZ as Il, ch as Dg, ci as _g, ap as Lg, cj as Va, ck as ai, cl as Rg, cm as Al, cn as hu, co as Es, aa as Mt, u as J, cp as Og, cq as Fg, cr as Mg, cs as Pg, ct as zg, aG as Se, cu as $g, ao as Ee, cv as jg, cw as Tl, am as Q, cx as mu, cy as pu, ah as ft, cz as gu, cA as Ds, cB as bu, ab as H, cC as Hr, al as P, cD as St, cE as Bg, cF as Hg, cG as wr, aV as vu, cH as yu, b4 as hn, cI as xu, cJ as El, cK as Ct, bf as wn, aW as Dl, aX as mn, y as wu, as as je, cL as Cu, cM as Vg, cN as Wa, cO as Qn, cP as _l, cQ as Vr, cR as Bi, cS as Wg, cT as ku, cU as Ug, cV as Ll, cW as Cr, cX as rt, cY as qg, cZ as Gg, c_ as en, c$ as Xo, d0 as Kg, d1 as vr, d2 as jn, d3 as Qg, ad as we, d4 as Jg, d5 as Yg, d6 as Xg, d7 as Zg, d8 as eb, ai as qe, ak as Te, d9 as Cn, b7 as Rt, c5 as Wr, da as Nu, db as Rl, dc as tb, dd as nb, de as rb, df as ib, dg as ob, dh as sb, di as lb, dj as ab, dk as cb, dl as po, dm as db, dn as Ol, dp as ub, dq as fb, dr as hb, ds as mb, dt as pb, du as gb, dv as bb, dw as vb, bz as Ot, dx as Su, dy as yb, ar as ie, ac as Jn, dz as Iu, dA as Au, bg as Fl, au as Ua, av as qa, x as xb, dB as Tu, dC as Eu, b2 as Du, dD as Ml, dE as Pl, dF as Ur, ae as It, bh as wb, bi as Cb, bj as kb, aq as kr, dG as Nb, dH as Zo, dI as _u, dJ as Nr, dK as tn, b0 as Lu, dL as Ga, dM as Ka, dN as Ru, dO as Qa, a$ as Yn, aE as zl, aF as $l, aH as jl, aY as Sr, an as or, dP as Sb, dQ as Ib, dR as Ou, dS as Ab, aI as Ft, dT as Tb, dU as Fu, dV as Mu, dW as Eb, b8 as qr, dX as Bl, dY as go, bB as sn, dZ as _s, d_ as Db, d$ as _b, e0 as Lb, e1 as Rb, e2 as Ob, e3 as Fb, e4 as Pu, e5 as Mb, e6 as zu, e7 as Pb, e8 as zb, e9 as $b, aT as Ja, ea as $u, eb as Ls, aN as Rs, ec as ju, ed as Os, bN as Hl, be as ln, bx as bo, bu as vo, ee as yo, ef as Vl, eg as jb, eh as Bb, ei as Hb, c4 as xo, bd as Bu, c7 as Vb, c6 as Wb, ej as Hu, ek as Ub, aP as Hn, el as Ya, em as Hi, en as qb, eo as Gb, bv as Vu, bA as Kb, bL as Wl, aA as Qb, bO as Jb, aR as Ul, a as Yb, d as Xb, ep as ql, eq as Zb, F as ev, er as Wu, es as Uu, et as tv, eu as nv, ev as rv, ew as iv, ex as ov, ey as qu, ez as sv, bw as Gu, eA as Ku, eB as lv, eC as av, eD as cv, eE as dv, eF as uv, eG as fv, eH as hv, eI as mv, bU as pv, bV as gv, c0 as wo, b_ as Gl, bk as Co, eJ as ko, eK as No, bl as So, eL as Kl, b$ as Qu, bF as Ql, aO as bv, eM as vv, eN as Fs, bW as Vi, eO as yv, eP as xv, eQ as wv, eR as Cv, eS as Ju, eT as Xa, eU as kv, eV as Nv, eW as Sv, eX as Iv, eY as Av, eZ as Tv, e_ as Ev, e$ as Dv, af as Yu, bK as _v, bZ as Lv, f0 as Xu, f1 as Rv, f2 as Ov, f3 as Fv, f4 as Mv, bm as Pv, f5 as zv, f6 as Za, f7 as ec, f8 as tc, f9 as $v, fa as jv, fb as Bv, fc as Zu, fd as Hv } from "./F0AiChat-h8gS_RRF.js";
2
+ import { fg as GR, ff as KR, fe as QR, fl as JR, fm as YR, fi as XR, fh as ZR, fk as eO, by as tO, fj as nO } from "./F0AiChat-h8gS_RRF.js";
3
3
  import { jsx as l, jsxs as v, Fragment as te } from "react/jsx-runtime";
4
4
  import * as Be from "react";
5
5
  import Z, { createContext as At, forwardRef as K, useRef as V, useEffect as U, useContext as Tt, PureComponent as Vv, useTransition as Wv, useState as R, useLayoutEffect as an, useCallback as Y, useMemo as M, useId as Jl, useImperativeHandle as ef, memo as Io, Fragment as kn, isValidElement as tf, cloneElement as Yl, createElement as nc, Children as nf } from "react";
6
- import { f as Vn, ak as Ir, j as ci, al as Uv, b as es, am as qv, A as Gv, d as di, i as Kv, m as Qv, G as Jv, g as rc, an as Yv, l as ic, ao as Xv, p as Zv, ap as rf, aq as of, ar as ey, C as ty, ad as ny, as as ht, at as Pt, au as Ze, av as ry, aw as Ii, ax as vt, ay as sf, az as st, aA as Xl, aB as dt, aC as oc, aD as iy, aE as lf, aF as Je, aG as at, aH as Ar, aI as Wi, aJ as af, aK as oy, aL as En, aM as sy, aN as ly, aO as ay, aP as Gr, aQ as Kr, aR as Zl, aS as cy, aT as cf, aU as df, aV as uf, aW as dy, aX as ff, aY as hf, aZ as mf, a_ as pf, a$ as gf, b0 as bf, b1 as Ms, b2 as uy, b3 as sc, b4 as fy, b5 as hy, b6 as my, x as py, y as gy, D as by, K as vy, M as yy, t as xy, b7 as wy, T as Qr, b8 as Cy, b9 as ky, W as Ny, Z as Sy, ba as Iy, bb as Ay, $ as Ty, a3 as Ey, bc as vf, bd as Dy, be as _y, bf as Ly, bg as yf, aa as Ps, bh as Ry, a9 as xf, a5 as Oy, bi as Fy, bj as My, bk as Py, ah as zy, bl as zs, bm as $y, bn as Ui, ai as jy, bo as By, ag as wf, af as Hy, ae as Vy, bp as Wy, bq as Uy, br as qy, bs as Gy, bt as Ky, bu as Qy, bv as Jy, bw as Yy, bx as Xy, by as Zy, bz as e0, aj as Cf, bA as t0, N as n0, O as r0, Q as i0, R as o0, V as s0, P as l0, bB as lc, bC as a0, bD as c0, n as d0 } from "./DataCollectionStorageProvider-6el79_MC.js";
7
- import { a6 as iO, a0 as oO, U as sO, a2 as lO, bH as aO, bG as cO, bE as dO, bF as uO, _ as fO, a1 as hO, ab as mO, ac as pO } from "./DataCollectionStorageProvider-6el79_MC.js";
6
+ import { f as Vn, ak as Ir, j as ci, al as Uv, b as es, am as qv, A as Gv, d as di, i as Kv, m as Qv, G as Jv, g as rc, an as Yv, l as ic, ao as Xv, p as Zv, ap as rf, aq as of, ar as ey, C as ty, ad as ny, as as ht, at as Pt, au as Ze, av as ry, aw as Ii, ax as vt, ay as sf, az as st, aA as Xl, aB as dt, aC as oc, aD as iy, aE as lf, aF as Je, aG as at, aH as Ar, aI as Wi, aJ as af, aK as oy, aL as En, aM as sy, aN as ly, aO as ay, aP as Gr, aQ as Kr, aR as Zl, aS as cy, aT as cf, aU as df, aV as uf, aW as dy, aX as ff, aY as hf, aZ as mf, a_ as pf, a$ as gf, b0 as bf, b1 as Ms, b2 as uy, b3 as sc, b4 as fy, b5 as hy, b6 as my, x as py, y as gy, D as by, K as vy, M as yy, t as xy, b7 as wy, T as Qr, b8 as Cy, b9 as ky, W as Ny, Z as Sy, ba as Iy, bb as Ay, $ as Ty, a3 as Ey, bc as vf, bd as Dy, be as _y, bf as Ly, bg as yf, aa as Ps, bh as Ry, a9 as xf, a5 as Oy, bi as Fy, bj as My, bk as Py, ah as zy, bl as zs, bm as $y, bn as Ui, ai as jy, bo as By, ag as wf, af as Hy, ae as Vy, bp as Wy, bq as Uy, br as qy, bs as Gy, bt as Ky, bu as Qy, bv as Jy, bw as Yy, bx as Xy, by as Zy, bz as e0, aj as Cf, bA as t0, N as n0, O as r0, Q as i0, R as o0, V as s0, P as l0, bB as lc, bC as a0, bD as c0, n as d0 } from "./DataCollectionStorageProvider-DTCCd5RJ.js";
7
+ import { a6 as iO, a0 as oO, U as sO, a2 as lO, bH as aO, bG as cO, bE as dO, bF as uO, _ as fO, a1 as hO, ab as mO, ac as pO } from "./DataCollectionStorageProvider-DTCCd5RJ.js";
8
8
  import './experimental.css';function kf(t, e) {
9
9
  const n = du(e()), r = () => n.set(e());
10
10
  return r(), Cg(() => {
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 = {
@@ -8707,11 +8798,6 @@ declare module "gridstack" {
8707
8798
  }
8708
8799
 
8709
8800
 
8710
- declare namespace Calendar {
8711
- var displayName: string;
8712
- }
8713
-
8714
-
8715
8801
  declare module "@tiptap/core" {
8716
8802
  interface Commands<ReturnType> {
8717
8803
  aiBlock: {
@@ -8759,3 +8845,8 @@ declare module "@tiptap/core" {
8759
8845
  };
8760
8846
  }
8761
8847
  }
8848
+
8849
+
8850
+ declare namespace Calendar {
8851
+ var displayName: string;
8852
+ }
package/dist/f0.js CHANGED
@@ -1,13 +1,13 @@
1
- import { ad as ye, ae as ut, a9 as ue, aa as Xt, af as yo, ag as Mi, ah as Ii, ai as hs, aj as Kl, ak as bo, al as wt, u as kt, am as Wr, an as Xl, ao as Yl, ap as Jl, aq as Ql, ar as at, as as ec, at as tc, au as Nr, av as Yn, aw as rc, ax as nc, ay as ic, az as ms, aA as sc, aB as oc, aC as xo, aD as ac, aE as wo, aF as _o, aG as Li, aH as Co, aI as Eo, aJ as ln, aK as So, aL as lc, aM as cc, aN as dc, aO as uc, aP as fc, ab as qe, aQ as ps, aR as hc, aS as mc, aT as pc, aU as gc, aV as ko, aW as vc, aX as yc, aY as bc, aZ as Do, a_ as xc, a$ as ar, b0 as wc, b1 as _c, b2 as Cc, b3 as Ec, b4 as Pi, b5 as Sc, b6 as No, b7 as kc, ac as Dc, b8 as Nc, b9 as Rc, ba as Tc, bb as Ac, bc as Oc, bd as Ro, be as Mc, bf as Ic, bg as Lc, bh as Pc, bi as Fc, bj as zc, bk as Bc, bl as Vc, bm as Hc, bn as jc, bo as $c, bp as Wc, I as Gc, bq as Uc, br as Zc, bs as qc, bt as Kc } from "./F0AiChat-nPbqtFaA.js";
2
- import { A as Pv, bS as Fv, B as zv, C as Bv, q as Vv, c5 as Hv, E as jv, h as $v, F as Wv, a as Gv, D as Uv, i as Zv, b as qv, bu as Kv, bv as Xv, bw as Yv, bx as Jv, bz as Qv, bA as ey, bB as ty, bC as ry, bF as ny, j as iy, bG as sy, bH as oy, bI as ay, c1 as ly, w as cy, x as dy, y as uy, bL as fy, bM as hy, bN as my, bO as py, bQ as gy, bR as vy, z as yy, c as by, bT as xy, r as wy, s as _y, t as Cy, H as Ey, m as Sy, L as ky, O as Dy, bK as Ny, v as Ry, P as Ty, S as Ay, T as Oy, n as My, bP as Iy, o as Ly, p as Py, U as Fy, c2 as zy, bD as By, bE as Vy, bY as Hy, k as jy, l as $y, b$ as Wy, bX as Gy, c6 as Uy, bW as Zy, bV as qy, by as Ky, d as Xy, bU as Yy, bZ as Jy, e as Qy, c7 as eb, bJ as tb, b_ as rb, g as nb, f as ib, c4 as sb, c0 as ob, c3 as ab } from "./F0AiChat-nPbqtFaA.js";
1
+ import { ad as ye, ae as ut, a9 as ue, aa as Xt, af as yo, ag as Mi, ah as Ii, ai as hs, aj as Kl, ak as bo, al as wt, u as kt, am as Wr, an as Xl, ao as Yl, ap as Jl, aq as Ql, ar as at, as as ec, at as tc, au as Nr, av as Yn, aw as rc, ax as nc, ay as ic, az as ms, aA as sc, aB as oc, aC as xo, aD as ac, aE as wo, aF as _o, aG as Li, aH as Co, aI as Eo, aJ as ln, aK as So, aL as lc, aM as cc, aN as dc, aO as uc, aP as fc, ab as qe, aQ as ps, aR as hc, aS as mc, aT as pc, aU as gc, aV as ko, aW as vc, aX as yc, aY as bc, aZ as Do, a_ as xc, a$ as ar, b0 as wc, b1 as _c, b2 as Cc, b3 as Ec, b4 as Pi, b5 as Sc, b6 as No, b7 as kc, ac as Dc, b8 as Nc, b9 as Rc, ba as Tc, bb as Ac, bc as Oc, bd as Ro, be as Mc, bf as Ic, bg as Lc, bh as Pc, bi as Fc, bj as zc, bk as Bc, bl as Vc, bm as Hc, bn as jc, bo as $c, bp as Wc, I as Gc, bq as Uc, br as Zc, bs as qc, bt as Kc } from "./F0AiChat-h8gS_RRF.js";
2
+ import { A as Pv, bS as Fv, B as zv, C as Bv, q as Vv, c5 as Hv, E as jv, h as $v, F as Wv, a as Gv, D as Uv, i as Zv, b as qv, bu as Kv, bv as Xv, bw as Yv, bx as Jv, bz as Qv, bA as ey, bB as ty, bC as ry, bF as ny, j as iy, bG as sy, bH as oy, bI as ay, c1 as ly, w as cy, x as dy, y as uy, bL as fy, bM as hy, bN as my, bO as py, bQ as gy, bR as vy, z as yy, c as by, bT as xy, r as wy, s as _y, t as Cy, H as Ey, m as Sy, L as ky, O as Dy, bK as Ny, v as Ry, P as Ty, S as Ay, T as Oy, n as My, bP as Iy, o as Ly, p as Py, U as Fy, c2 as zy, bD as By, bE as Vy, bY as Hy, k as jy, l as $y, b$ as Wy, bX as Gy, c6 as Uy, bW as Zy, bV as qy, by as Ky, d as Xy, bU as Yy, bZ as Jy, e as Qy, c7 as eb, bJ as tb, b_ as rb, g as nb, f as ib, c4 as sb, c0 as ob, c3 as ab } from "./F0AiChat-h8gS_RRF.js";
3
3
  import { jsx as f, jsxs as W, Fragment as Yt } from "react/jsx-runtime";
4
4
  import * as lt from "react";
5
5
  import q, { forwardRef as Ke, useRef as Y, useImperativeHandle as Xc, Children as cn, createContext as yt, useContext as ct, useState as ie, useMemo as H, useEffect as ne, useCallback as K, useLayoutEffect as fi, createElement as Qr, isValidElement as To, Fragment as Yc, memo as Jc, useReducer as Qc, cloneElement as ed, PureComponent as td, useId as rd } from "react";
6
6
  import { createPortal as Ao, unstable_batchedUpdates as en, flushSync as nd } from "react-dom";
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
- 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, b as Cb, a as Eb, o as Sb, u as kb } from "./F0HILActionConfirmation-B5UWkFgg.js";
10
- import { defaultTranslations as Nb } from "./i18n-provider-defaults.js";
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-DTCCd5RJ.js";
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-DTCCd5RJ.js";
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-5F-_yw3W.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
- wb as F0AuraVoiceAnimation,
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
- _b as F0HILActionConfirmation,
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
- Cb as actionItemStatuses,
17775
- Eb as aiTranslations,
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
- Nb as defaultTranslations,
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
- Sb as oneIconSizes,
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
- kb as useAiChatTranslations,
17819
+ Db as useAiChatTranslations,
17819
17820
  Yy as useData,
17820
17821
  Jy as useDataSource,
17821
17822
  Qy as useDefaultCopilotActions,
@@ -646,11 +646,6 @@ declare module "gridstack" {
646
646
  }
647
647
 
648
648
 
649
- declare namespace Calendar {
650
- var displayName: string;
651
- }
652
-
653
-
654
649
  declare module "@tiptap/core" {
655
650
  interface Commands<ReturnType> {
656
651
  aiBlock: {
@@ -698,3 +693,8 @@ declare module "@tiptap/core" {
698
693
  };
699
694
  }
700
695
  }
696
+
697
+
698
+ declare namespace Calendar {
699
+ var displayName: string;
700
+ }