@factorialco/f0-react 1.189.3 → 1.190.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/f0.d.ts CHANGED
@@ -841,10 +841,8 @@ export declare const defaultTranslations: {
841
841
  };
842
842
  readonly notifications: "Notifications";
843
843
  readonly ai: {
844
- readonly description: "Chat with AI";
845
- readonly expandChat: "Expand chat";
846
- readonly minimizeChat: "Minimize chat window";
847
- readonly openChat: "Open Chat";
844
+ readonly openChat: "Open Chat with One AI";
845
+ readonly closeChat: "Close Chat with One AI";
848
846
  readonly scrollToBottom: "Scroll to bottom";
849
847
  readonly welcome: "I'm One. Ask or make anything.";
850
848
  readonly initialMessage: "How can I help you today?";
@@ -2141,6 +2139,11 @@ declare module "@tiptap/core" {
2141
2139
  }
2142
2140
 
2143
2141
 
2142
+ declare namespace Calendar {
2143
+ var displayName: string;
2144
+ }
2145
+
2146
+
2144
2147
  declare module "@tiptap/core" {
2145
2148
  interface Commands<ReturnType> {
2146
2149
  moodTracker: {
@@ -2148,8 +2151,3 @@ declare module "@tiptap/core" {
2148
2151
  };
2149
2152
  }
2150
2153
  }
2151
-
2152
-
2153
- declare namespace Calendar {
2154
- var displayName: string;
2155
- }
package/dist/f0.js CHANGED
@@ -1,6 +1,6 @@
1
- import { C as v, L as pe, c as ve, P as H, a as b, f as ge, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as W, j as Pe, k as Y, S as G, l as D, m as X, n as ke, O as Fe, o as J, p as Se, q as Me, F as K, r as De, s as Te, t as Be, D as Re, u as Ie, v as $e, w as Oe, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as qe, N as Ae, Q as He, R as Ue, X as We, T as Ye, W as Ge, Y as Xe, Z as Je } from "./hooks-CuzFhqUo.js";
2
- import { ao as Ua, _ as Wa, aq as Ya, az as Ga, $ as Xa, a0 as Ja, a1 as Ka, a2 as Qa, a3 as Za, a4 as er, a5 as ar, a6 as rr, a8 as sr, a9 as tr, aa as lr, ab as or, av as nr, ad as ir, ae as dr, af as cr, ag as ur, aj as fr, ak as hr, al as mr, am as pr, ac as vr, an as gr, ai as br, aw as xr, ap as Cr, aA as yr, a7 as wr, ah as Nr, ar as Lr, as as Pr, at as kr, aB as Fr, au as Sr, ay as Mr, ax as Dr } from "./hooks-CuzFhqUo.js";
3
- import { jsx as e, jsxs as c, Fragment as O } from "react/jsx-runtime";
1
+ import { C as v, L as pe, c as ve, P as H, a as b, f as ge, b as be, A as xe, B as Ce, d as ye, e as we, g as Ne, V as Le, h as U, i as W, j as Pe, k as Y, S as G, l as D, m as X, n as ke, O as Fe, o as J, p as Se, q as Me, F as K, r as De, s as Te, t as Be, D as Ie, u as Re, v as Oe, w as $e, x as Q, y as w, U as Z, z as Ee, E as _e, G as z, H as je, I as ee, J as ze, K as Ve, M as qe, N as Ae, Q as He, R as Ue, X as We, T as Ye, W as Ge, Y as Xe, Z as Je } from "./hooks-B8glGyIf.js";
2
+ import { ao as Ua, _ as Wa, aq as Ya, az as Ga, $ as Xa, a0 as Ja, a1 as Ka, a2 as Qa, a3 as Za, a4 as er, a5 as ar, a6 as rr, a8 as sr, a9 as tr, aa as lr, ab as or, av as nr, ad as ir, ae as dr, af as cr, ag as ur, aj as fr, ak as hr, al as mr, am as pr, ac as vr, an as gr, ai as br, aw as xr, ap as Cr, aA as yr, a7 as wr, ah as Nr, ar as Lr, as as Pr, at as kr, aB as Fr, au as Sr, ay as Mr, ax as Dr } from "./hooks-B8glGyIf.js";
3
+ import { jsx as e, jsxs as c, Fragment as $ } from "react/jsx-runtime";
4
4
  import * as E from "react";
5
5
  import Ke, { useState as g, forwardRef as B, useRef as ae, useImperativeHandle as Qe, Children as Ze, useEffect as re, createContext as ea } from "react";
6
6
  const Pa = {
@@ -182,10 +182,8 @@ const Pa = {
182
182
  },
183
183
  notifications: "Notifications",
184
184
  ai: {
185
- description: "Chat with AI",
186
- expandChat: "Expand chat",
187
- minimizeChat: "Minimize chat window",
188
- openChat: "Open Chat",
185
+ openChat: "Open Chat with One AI",
186
+ closeChat: "Close Chat with One AI",
189
187
  scrollToBottom: "Scroll to bottom",
190
188
  welcome: "I'm One. Ask or make anything.",
191
189
  initialMessage: "How can I help you today?"
@@ -334,25 +332,25 @@ const ia = ({ value: a, max: r = 100, label: s, color: t }, l) => {
334
332
  type: "info"
335
333
  },
336
334
  we
337
- ), Ra = v(
335
+ ), Ia = v(
338
336
  {
339
337
  name: "PieChart",
340
338
  type: "info"
341
339
  },
342
340
  Ne
343
- ), Ia = v(
341
+ ), Ra = v(
344
342
  {
345
343
  name: "VerticalBarChart",
346
344
  type: "info"
347
345
  },
348
346
  Le
349
- ), $a = v(
347
+ ), Oa = v(
350
348
  {
351
349
  name: "ProgressBarChart",
352
350
  type: "info"
353
351
  },
354
352
  da
355
- ), $ = ({ count: a, list: r }) => {
353
+ ), O = ({ count: a, list: r }) => {
356
354
  const [s, t] = g(!1), l = /* @__PURE__ */ e(D, { label: `+${a}` });
357
355
  return r != null && r.length ? /* @__PURE__ */ c(U, { open: s, onOpenChange: t, children: [
358
356
  /* @__PURE__ */ e(W, { asChild: !0, children: /* @__PURE__ */ e("button", { className: Pe("inline-flex flex-shrink-0 items-center"), children: l }) }),
@@ -382,7 +380,7 @@ const ia = ({ value: a, max: r = 100, label: s, color: t }, l) => {
382
380
  )
383
381
  ] }) : l;
384
382
  };
385
- $.displayName = "ChipCounter";
383
+ O.displayName = "ChipCounter";
386
384
  const de = ({
387
385
  chips: a,
388
386
  max: r = 4,
@@ -398,7 +396,7 @@ const de = ({
398
396
  renderDropdownItem: () => null,
399
397
  forceShowingOverflowIndicator: s !== void 0,
400
398
  renderOverflowIndicator: (o) => /* @__PURE__ */ e(
401
- $,
399
+ O,
402
400
  {
403
401
  count: (s ?? 0) + o,
404
402
  list: s ? void 0 : a.slice(a.length - o)
@@ -412,7 +410,7 @@ const de = ({
412
410
  return /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
413
411
  l.map((o, f) => /* @__PURE__ */ e(D, { ...o }, f)),
414
412
  i && /* @__PURE__ */ e(
415
- $,
413
+ O,
416
414
  {
417
415
  count: n,
418
416
  list: s ? void 0 : d
@@ -421,7 +419,7 @@ const de = ({
421
419
  ] });
422
420
  };
423
421
  de.displayName = "F0ChipList";
424
- const Oa = ke(
422
+ const $a = ke(
425
423
  "F0ChipList",
426
424
  de
427
425
  ), ca = {
@@ -565,21 +563,21 @@ function va({
565
563
  const [n, i] = g(a);
566
564
  return re(() => {
567
565
  i(a);
568
- }, [a]), /* @__PURE__ */ e(Re, { open: n, onOpenChange: (f) => {
566
+ }, [a]), /* @__PURE__ */ e(Ie, { open: n, onOpenChange: (f) => {
569
567
  i(f), f || r();
570
568
  }, modal: !0, children: /* @__PURE__ */ c(
571
- Ie,
569
+ Re,
572
570
  {
573
571
  className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
574
572
  container: d,
575
573
  children: [
576
574
  /* @__PURE__ */ c("div", { className: "flex flex-row items-center justify-between px-4 py-4", children: [
577
- /* @__PURE__ */ c($e, { className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground", children: [
575
+ /* @__PURE__ */ c(Oe, { className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground", children: [
578
576
  l && /* @__PURE__ */ e(K, { module: l, size: "lg" }),
579
577
  s
580
578
  ] }),
581
579
  /* @__PURE__ */ e(
582
- Oe,
580
+ $e,
583
581
  {
584
582
  variant: "outline",
585
583
  icon: Q,
@@ -621,7 +619,7 @@ function za({
621
619
  portalContainer: x,
622
620
  tag: k
623
621
  }) {
624
- const [R, F] = g(a), [C, y] = g(null), [P, m] = g(!1), S = async () => {
622
+ const [I, F] = g(a), [C, y] = g(null), [P, m] = g(!1), S = async () => {
625
623
  if (h != null && h.onClick) {
626
624
  m(!0);
627
625
  try {
@@ -634,12 +632,12 @@ function za({
634
632
  }
635
633
  }, M = () => {
636
634
  F(!1), r == null || r();
637
- }, I = P;
638
- return /* @__PURE__ */ c(O, { children: [
635
+ }, R = P;
636
+ return /* @__PURE__ */ c($, { children: [
639
637
  /* @__PURE__ */ e(
640
638
  va,
641
639
  {
642
- isOpen: R,
640
+ isOpen: I,
643
641
  onClose: M,
644
642
  title: N,
645
643
  module: L,
@@ -657,7 +655,7 @@ function za({
657
655
  w,
658
656
  {
659
657
  variant: h.variant,
660
- label: I ? i.label : h.label,
658
+ label: R ? i.label : h.label,
661
659
  icon: h.icon || void 0,
662
660
  onClick: S,
663
661
  loading: h.loading,
@@ -714,7 +712,7 @@ function ga({
714
712
  n && n(!f);
715
713
  }, [n, f]);
716
714
  const L = a == null ? void 0 : a.includes(".mp4");
717
- return /* @__PURE__ */ e(O, { children: f ? null : /* @__PURE__ */ c(Ee, { style: { width: d }, className: "relative bg-f1-background p-1", children: [
715
+ return /* @__PURE__ */ e($, { children: f ? null : /* @__PURE__ */ c(Ee, { style: { width: d }, className: "relative bg-f1-background p-1", children: [
718
716
  /* @__PURE__ */ c(_e, { children: [
719
717
  l && /* @__PURE__ */ e("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ e(
720
718
  w,
@@ -840,11 +838,11 @@ function Va({
840
838
  trackVisibility: u,
841
839
  actions: x,
842
840
  onClick: k,
843
- hideLabel: R = !1
841
+ hideLabel: I = !1
844
842
  }) {
845
843
  const [F, C] = g(!1), [y, P] = g(null), [m, S] = g(null), M = (p) => {
846
844
  r(p), k && k();
847
- }, I = async (p) => {
845
+ }, R = async (p) => {
848
846
  if (p.type === "upsell") {
849
847
  S(p);
850
848
  try {
@@ -857,9 +855,9 @@ function Va({
857
855
  P(null), C(!1), S(null), r(!1);
858
856
  }, he = a && !F, me = x == null ? void 0 : x.map((p) => p.type === "upsell" ? {
859
857
  ...p,
860
- onClick: () => I(p)
858
+ onClick: () => R(p)
861
859
  } : p);
862
- return /* @__PURE__ */ c(O, { children: [
860
+ return /* @__PURE__ */ c($, { children: [
863
861
  /* @__PURE__ */ c(U, { open: he, onOpenChange: M, children: [
864
862
  /* @__PURE__ */ e(W, { asChild: !0, children: /* @__PURE__ */ e(
865
863
  w,
@@ -869,7 +867,7 @@ function Va({
869
867
  size: l,
870
868
  icon: d ? o : void 0,
871
869
  onClick: () => r(a),
872
- hideLabel: R
870
+ hideLabel: I
873
871
  }
874
872
  ) }),
875
873
  /* @__PURE__ */ e(
@@ -975,7 +973,7 @@ export {
975
973
  tr as F0AvatarTeam,
976
974
  lr as F0Card,
977
975
  or as F0Checkbox,
978
- Oa as F0ChipList,
976
+ $a as F0ChipList,
979
977
  nr as F0EventCatcherProvider,
980
978
  Te as F0Icon,
981
979
  ir as F0TagAlert,
@@ -992,13 +990,13 @@ export {
992
990
  Ba as LineChart,
993
991
  ka as Link,
994
992
  vr as OneFilterPicker,
995
- Ra as PieChart,
993
+ Ia as PieChart,
996
994
  Ye as PrivacyModeProvider,
997
995
  ue as ProductBlankslate,
998
996
  gr as ProductCard,
999
997
  za as ProductModal,
1000
998
  ga as ProductWidget,
1001
- $a as ProgressBarChart,
999
+ Oa as ProgressBarChart,
1002
1000
  Ea as StandardLayout,
1003
1001
  br as TagCounter,
1004
1002
  _a as TwoColumnLayout,
@@ -1006,7 +1004,7 @@ export {
1006
1004
  ba as UpsellingBanner,
1007
1005
  ee as UpsellingButton,
1008
1006
  Va as UpsellingPopover,
1009
- Ia as VerticalBarChart,
1007
+ Ra as VerticalBarChart,
1010
1008
  Fa as avatarVariants,
1011
1009
  xr as buildTranslations,
1012
1010
  Cr as createAtlaskitDriver,
@@ -91282,7 +91282,7 @@ export {
91282
91282
  Moe as ay,
91283
91283
  tR as az,
91284
91284
  mi as b,
91285
- bW as b$,
91285
+ xte as b$,
91286
91286
  mu as b0,
91287
91287
  Ia as b1,
91288
91288
  ys as b2,
@@ -91293,33 +91293,33 @@ export {
91293
91293
  r1 as b7,
91294
91294
  t1 as b8,
91295
91295
  SPe as b9,
91296
- sB as bA,
91297
- Pt as bB,
91298
- mv as bC,
91299
- za as bD,
91300
- cm as bE,
91301
- S$e as bF,
91302
- LR as bG,
91303
- yn as bH,
91304
- qk as bI,
91305
- Bk as bJ,
91306
- Cv as bK,
91307
- lu as bL,
91308
- Mv as bM,
91309
- sm as bN,
91310
- $k as bO,
91311
- Hme as bP,
91312
- _k as bQ,
91313
- lX as bR,
91314
- cX as bS,
91315
- Yee as bT,
91316
- Am as bU,
91317
- cq as bV,
91318
- mX as bW,
91319
- TH as bX,
91320
- Nr as bY,
91321
- tm as bZ,
91322
- eEe as b_,
91296
+ S$e as bA,
91297
+ LR as bB,
91298
+ yn as bC,
91299
+ qk as bD,
91300
+ Bk as bE,
91301
+ Cv as bF,
91302
+ lu as bG,
91303
+ Mv as bH,
91304
+ sm as bI,
91305
+ $k as bJ,
91306
+ Hme as bK,
91307
+ _k as bL,
91308
+ lX as bM,
91309
+ cX as bN,
91310
+ Yee as bO,
91311
+ Am as bP,
91312
+ cq as bQ,
91313
+ mX as bR,
91314
+ TH as bS,
91315
+ Nr as bT,
91316
+ tm as bU,
91317
+ eEe as bV,
91318
+ bW,
91319
+ $u as bX,
91320
+ wv as bY,
91321
+ F2t as bZ,
91322
+ Qf as b_,
91323
91323
  w1 as ba,
91324
91324
  wu as bb,
91325
91325
  Te as bc,
@@ -91327,124 +91327,121 @@ export {
91327
91327
  wi as be,
91328
91328
  sX as bf,
91329
91329
  Fa as bg,
91330
- XH as bh,
91331
- YH as bi,
91332
- E4 as bj,
91333
- PX as bk,
91334
- kX as bl,
91335
- Hee as bm,
91336
- xoe as bn,
91337
- Ree as bo,
91338
- voe as bp,
91339
- Jee as bq,
91340
- Sl as br,
91341
- $m as bs,
91342
- $l as bt,
91343
- d4 as bu,
91344
- m1 as bv,
91345
- gl as bw,
91346
- eC as bx,
91347
- Sk as by,
91348
- Qo as bz,
91330
+ Hee as bh,
91331
+ xoe as bi,
91332
+ Ree as bj,
91333
+ voe as bk,
91334
+ Jee as bl,
91335
+ Sl as bm,
91336
+ $m as bn,
91337
+ $l as bo,
91338
+ d4 as bp,
91339
+ m1 as bq,
91340
+ gl as br,
91341
+ eC as bs,
91342
+ Sk as bt,
91343
+ Qo as bu,
91344
+ sB as bv,
91345
+ Pt as bw,
91346
+ mv as bx,
91347
+ za as by,
91348
+ cm as bz,
91349
91349
  va as c,
91350
- cs as c$,
91351
- $u as c0,
91352
- wv as c1,
91353
- F2t as c2,
91354
- Qf as c3,
91355
- xte as c4,
91356
- j2t as c5,
91357
- cB as c6,
91358
- O_e as c7,
91359
- A_e as c8,
91360
- Mte as c9,
91361
- N4 as cA,
91362
- oB as cB,
91363
- oR as cC,
91364
- sce as cD,
91365
- tr as cE,
91366
- om as cF,
91367
- eee as cG,
91368
- XTe as cH,
91369
- YTe as cI,
91370
- xMt as cJ,
91371
- lq as cK,
91372
- tq as cL,
91373
- Ice as cM,
91374
- dq as cN,
91375
- fq as cO,
91376
- D2t as cP,
91377
- vW as cQ,
91378
- b_e as cR,
91379
- tte as cS,
91380
- aR as cT,
91381
- gte as cU,
91382
- Nce as cV,
91383
- JJ as cW,
91384
- PS as cX,
91385
- gI as cY,
91386
- JPt as cZ,
91387
- ls as c_,
91388
- mH as ca,
91389
- z2t as cb,
91390
- Q2t as cc,
91391
- Z2t as cd,
91392
- AF as ce,
91393
- SC as cf,
91394
- Vce as cg,
91395
- hT as ch,
91396
- cu as ci,
91397
- APt as cj,
91398
- Tc as ck,
91399
- k5e as cl,
91400
- A3 as cm,
91401
- U2t as cn,
91402
- hMt as co,
91403
- nEe as cp,
91404
- O3 as cq,
91405
- E3 as cr,
91406
- N3 as cs,
91407
- cte as ct,
91408
- MMt as cu,
91409
- $Mt as cv,
91410
- dte as cw,
91411
- D3 as cx,
91412
- eR as cy,
91413
- iB as cz,
91350
+ g4 as c$,
91351
+ j2t as c0,
91352
+ cB as c1,
91353
+ O_e as c2,
91354
+ A_e as c3,
91355
+ Mte as c4,
91356
+ mH as c5,
91357
+ z2t as c6,
91358
+ Q2t as c7,
91359
+ Z2t as c8,
91360
+ AF as c9,
91361
+ om as cA,
91362
+ eee as cB,
91363
+ XTe as cC,
91364
+ YTe as cD,
91365
+ xMt as cE,
91366
+ lq as cF,
91367
+ tq as cG,
91368
+ Ice as cH,
91369
+ dq as cI,
91370
+ fq as cJ,
91371
+ D2t as cK,
91372
+ vW as cL,
91373
+ b_e as cM,
91374
+ tte as cN,
91375
+ aR as cO,
91376
+ gte as cP,
91377
+ Nce as cQ,
91378
+ JJ as cR,
91379
+ PS as cS,
91380
+ gI as cT,
91381
+ JPt as cU,
91382
+ ls as cV,
91383
+ cs as cW,
91384
+ $p as cX,
91385
+ TMt as cY,
91386
+ V2t as cZ,
91387
+ z5e as c_,
91388
+ SC as ca,
91389
+ Vce as cb,
91390
+ hT as cc,
91391
+ cu as cd,
91392
+ APt as ce,
91393
+ Tc as cf,
91394
+ k5e as cg,
91395
+ A3 as ch,
91396
+ U2t as ci,
91397
+ hMt as cj,
91398
+ nEe as ck,
91399
+ O3 as cl,
91400
+ E3 as cm,
91401
+ N3 as cn,
91402
+ cte as co,
91403
+ MMt as cp,
91404
+ $Mt as cq,
91405
+ dte as cr,
91406
+ D3 as cs,
91407
+ eR as ct,
91408
+ iB as cu,
91409
+ N4 as cv,
91410
+ oB as cw,
91411
+ oR as cx,
91412
+ sce as cy,
91413
+ tr as cz,
91414
91414
  uMt as d,
91415
- $p as d0,
91416
- TMt as d1,
91417
- V2t as d2,
91418
- z5e as d3,
91419
- g4 as d4,
91420
- v4 as d5,
91421
- M$e as d6,
91422
- M2t as d7,
91423
- Nxt as d8,
91424
- DMt as d9,
91425
- k2t as da,
91426
- gMt as db,
91427
- bxt as dc,
91428
- xX as dd,
91429
- tme as de,
91430
- nme as df,
91431
- rme as dg,
91432
- XI as dh,
91433
- hte as di,
91434
- tMt as dj,
91435
- ga as dk,
91436
- y4 as dl,
91437
- Y5e as dm,
91438
- mMt as dn,
91439
- Mxt as dp,
91440
- K2t as dq,
91441
- t5e as dr,
91442
- Mo as ds,
91443
- Hv as dt,
91444
- fMt as du,
91445
- Tl as dv,
91446
- Kf as dw,
91447
- ZPt as dx,
91415
+ v4 as d0,
91416
+ M$e as d1,
91417
+ M2t as d2,
91418
+ Nxt as d3,
91419
+ DMt as d4,
91420
+ k2t as d5,
91421
+ gMt as d6,
91422
+ bxt as d7,
91423
+ PX as d8,
91424
+ kX as d9,
91425
+ xX as da,
91426
+ tme as db,
91427
+ nme as dc,
91428
+ rme as dd,
91429
+ XI as de,
91430
+ hte as df,
91431
+ tMt as dg,
91432
+ ga as dh,
91433
+ y4 as di,
91434
+ Y5e as dj,
91435
+ mMt as dk,
91436
+ Mxt as dl,
91437
+ K2t as dm,
91438
+ t5e as dn,
91439
+ Mo as dp,
91440
+ Hv as dq,
91441
+ fMt as dr,
91442
+ Tl as ds,
91443
+ Kf as dt,
91444
+ ZPt as du,
91448
91445
  cMt as e,
91449
91446
  _l as f,
91450
91447
  lMt as g,