@factorialco/f0-react 1.200.4 → 1.201.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
@@ -1018,7 +1018,7 @@ export declare const defaultTranslations: {
1018
1018
  readonly openChat: "Open Chat with One AI";
1019
1019
  readonly closeChat: "Close Chat with One AI";
1020
1020
  readonly scrollToBottom: "Scroll to bottom";
1021
- readonly welcome: "I'm One. Ask or make anything.";
1021
+ readonly welcome: "Ask or create with One";
1022
1022
  readonly initialMessage: "How can I help you today?";
1023
1023
  };
1024
1024
  };
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
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 G, j as Pe, k as W, S as Y, l as M, m as J, n as Se, O as Fe, o as X, p as ke, q as De, F as K, r as Me, 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 V, H as je, I as ee, J as Ve, K as ze, M as qe, N as Ae, Q as He, R as Ue, X as Ge, T as We, W as Ye, Y as Je, Z as Xe } from "./hooks-DWW98fDA.js";
2
- import { ay as Ua, _ as Ga, aA as Wa, aJ as Ya, $ as Ja, a0 as Xa, a1 as Ka, a2 as Qa, a3 as Za, a4 as es, a5 as as, a6 as ss, a8 as rs, a9 as ts, aa as ls, ab as os, aF as ns, ad as is, ae as cs, af as ds, ag as us, aj as fs, ak as hs, al as ms, am as ps, ao as vs, ac as gs, an as bs, ai as xs, aG as Cs, az as ys, at as ws, aw as Ns, as as Ls, aK as Ps, ar as Ss, aq as Fs, a7 as ks, ah as Ds, ap as Ms, au as Ts, aB as Bs, aC as Is, aD as Rs, aL as Os, av as $s, aE as Es, aI as _s, ax as js, aH as Vs } from "./hooks-DWW98fDA.js";
1
+ import { C as v, L as me, 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 G, j as Pe, k as W, S as Y, l as M, m as J, n as Se, O as Fe, o as X, p as ke, q as De, F as K, r as Me, 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 V, H as je, I as ee, J as Ve, K as ze, M as qe, N as Ae, Q as He, R as Ue, X as Ge, T as We, W as Ye, Y as Je, Z as Xe } from "./hooks-DrAjBH62.js";
2
+ import { ay as Ua, _ as Ga, aA as Wa, aJ as Ya, $ as Ja, a0 as Xa, a1 as Ka, a2 as Qa, a3 as Za, a4 as es, a5 as as, a6 as ss, a8 as rs, a9 as ts, aa as ls, ab as os, aF as ns, ad as is, ae as cs, af as ds, ag as us, aj as fs, ak as hs, al as ps, am as ms, ao as vs, ac as gs, an as bs, ai as xs, aG as Cs, az as ys, at as ws, aw as Ns, as as Ls, aK as Ps, ar as Ss, aq as Fs, a7 as ks, ah as Ds, ap as Ms, au as Ts, aB as Bs, aC as Is, aD as Rs, aL as Os, av as $s, aE as Es, aI as _s, ax as js, aH as Vs } from "./hooks-DrAjBH62.js";
3
3
  import { jsx as e, jsxs as d, 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 se, createContext as ea } from "react";
@@ -185,7 +185,7 @@ const Pa = {
185
185
  openChat: "Open Chat with One AI",
186
186
  closeChat: "Close Chat with One AI",
187
187
  scrollToBottom: "Scroll to bottom",
188
- welcome: "I'm One. Ask or make anything.",
188
+ welcome: "Ask or create with One",
189
189
  initialMessage: "How can I help you today?"
190
190
  }
191
191
  }, Sa = v(
@@ -193,7 +193,7 @@ const Pa = {
193
193
  name: "Link",
194
194
  type: "info"
195
195
  },
196
- pe
196
+ me
197
197
  ), Fa = ["person", "team", "company", "file"];
198
198
  var _ = "Progress", j = 100, [aa, ka] = ve(_), [sa, ra] = aa(_), re = E.forwardRef(
199
199
  (a, s) => {
@@ -503,7 +503,7 @@ const Ea = v(
503
503
  type: "layout"
504
504
  },
505
505
  ua
506
- ), ma = ({ benefits: a }) => /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: a.map((s, r) => /* @__PURE__ */ e(pa, { text: s }, r)) }), pa = ({ text: a }) => /* @__PURE__ */ d("div", { className: "flex flex-row items-start gap-2", children: [
506
+ ), pa = ({ benefits: a }) => /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: a.map((s, r) => /* @__PURE__ */ e(ma, { text: s }, r)) }), ma = ({ text: a }) => /* @__PURE__ */ d("div", { className: "flex flex-row items-start gap-2", children: [
507
507
  /* @__PURE__ */ e(Te, { icon: Be, size: "md", className: "text-f1-icon-positive" }),
508
508
  /* @__PURE__ */ e("span", { children: a })
509
509
  ] }), ue = B(
@@ -543,7 +543,7 @@ const Ea = v(
543
543
  i && /* @__PURE__ */ e("div", { className: "flex justify-start", children: /* @__PURE__ */ e(Me, { icon: i.icon, text: i.label }) }),
544
544
  /* @__PURE__ */ e("h2", { className: "font-bold text-xl text-f1-foreground", children: a })
545
545
  ] }),
546
- /* @__PURE__ */ e(ma, { benefits: r })
546
+ /* @__PURE__ */ e(pa, { benefits: r })
547
547
  ] }),
548
548
  t && /* @__PURE__ */ e("div", { className: "flex gap-3", children: t })
549
549
  ] })
@@ -619,15 +619,15 @@ function Va({
619
619
  portalContainer: x,
620
620
  tag: S
621
621
  }) {
622
- const [I, F] = g(a), [C, y] = g(null), [P, m] = g(!1), k = async () => {
622
+ const [I, F] = g(a), [C, y] = g(null), [P, p] = g(!1), k = async () => {
623
623
  if (h != null && h.onClick) {
624
- m(!0);
624
+ p(!0);
625
625
  try {
626
626
  await h.onClick(), F(!1), y("success");
627
627
  } catch {
628
628
  y("error");
629
629
  } finally {
630
- m(!1);
630
+ p(!1);
631
631
  }
632
632
  }
633
633
  }, D = () => {
@@ -840,23 +840,23 @@ function za({
840
840
  onClick: S,
841
841
  hideLabel: I = !1
842
842
  }) {
843
- const [F, C] = g(!1), [y, P] = g(null), [m, k] = g(null), D = (p) => {
844
- s(p), S && S();
845
- }, R = async (p) => {
846
- if (p.type === "upsell") {
847
- k(p);
843
+ const [F, C] = g(!1), [y, P] = g(null), [p, k] = g(null), D = (m) => {
844
+ s(m), S && S();
845
+ }, R = async (m) => {
846
+ if (m.type === "upsell") {
847
+ k(m);
848
848
  try {
849
- await p.onClick(), p.showConfirmation && (C(!0), P("success"));
849
+ await m.onClick(), m.showConfirmation && (C(!0), P("success"));
850
850
  } catch {
851
851
  C(!0), P("error");
852
852
  }
853
853
  }
854
854
  }, fe = () => {
855
855
  P(null), C(!1), k(null), s(!1);
856
- }, he = a && !F, me = x == null ? void 0 : x.map((p) => p.type === "upsell" ? {
857
- ...p,
858
- onClick: () => R(p)
859
- } : p);
856
+ }, he = a && !F, pe = x == null ? void 0 : x.map((m) => m.type === "upsell" ? {
857
+ ...m,
858
+ onClick: () => R(m)
859
+ } : m);
860
860
  return /* @__PURE__ */ d($, { children: [
861
861
  /* @__PURE__ */ d(U, { open: he, onOpenChange: D, children: [
862
862
  /* @__PURE__ */ e(G, { asChild: !0, children: /* @__PURE__ */ e(
@@ -886,23 +886,23 @@ function za({
886
886
  dismissible: !1,
887
887
  width: L,
888
888
  trackVisibility: u,
889
- actions: me,
889
+ actions: pe,
890
890
  showConfirmation: !1
891
891
  }
892
892
  )
893
893
  }
894
894
  )
895
895
  ] }),
896
- (m == null ? void 0 : m.type) === "upsell" && m.showConfirmation && y && /* @__PURE__ */ e(
896
+ (p == null ? void 0 : p.type) === "upsell" && p.showConfirmation && y && /* @__PURE__ */ e(
897
897
  Z,
898
898
  {
899
899
  open: !0,
900
900
  onClose: fe,
901
901
  success: y === "success",
902
- errorMessage: m.errorMessage,
903
- successMessage: m.successMessage,
904
- nextSteps: m.nextSteps,
905
- closeLabel: m.closeLabel,
902
+ errorMessage: p.errorMessage,
903
+ successMessage: p.successMessage,
904
+ nextSteps: p.nextSteps,
905
+ closeLabel: p.closeLabel,
906
906
  portalContainer: null
907
907
  }
908
908
  )
@@ -983,8 +983,8 @@ export {
983
983
  fs as F0TagList,
984
984
  hs as F0TagPerson,
985
985
  Me as F0TagRaw,
986
- ms as F0TagStatus,
987
- ps as F0TagTeam,
986
+ ps as F0TagStatus,
987
+ ms as F0TagTeam,
988
988
  qa as FactorialOneProvider,
989
989
  vs as GROUP_ID_SYMBOL,
990
990
  ja as HomeLayout,
@@ -92415,7 +92415,7 @@ export {
92415
92415
  El as by,
92416
92416
  TH as bz,
92417
92417
  va as c,
92418
- bee as c$,
92418
+ Pte as c$,
92419
92419
  SX as c0,
92420
92420
  CX as c1,
92421
92421
  Cq as c2,
@@ -92438,21 +92438,21 @@ export {
92438
92438
  tr as cJ,
92439
92439
  lm as cK,
92440
92440
  wee as cL,
92441
- fEe as cM,
92442
- mEe as cN,
92443
- a3t as cO,
92444
- Sq as cP,
92445
- vq as cQ,
92446
- ile as cR,
92447
- $q as cS,
92448
- _q as cT,
92449
- pMt as cU,
92450
- OW as cV,
92451
- L_e as cW,
92452
- Pte as cX,
92453
- bR as cY,
92454
- jte as cZ,
92455
- tle as c_,
92441
+ xv as cM,
92442
+ Mv as cN,
92443
+ kv as cO,
92444
+ pm as cP,
92445
+ fEe as cQ,
92446
+ mEe as cR,
92447
+ a3t as cS,
92448
+ Sq as cT,
92449
+ vq as cU,
92450
+ ile as cV,
92451
+ $q as cW,
92452
+ _q as cX,
92453
+ pMt as cY,
92454
+ OW as cZ,
92455
+ L_e as c_,
92456
92456
  tm as ca,
92457
92457
  Vte as cb,
92458
92458
  yMt as cc,
@@ -92480,48 +92480,52 @@ export {
92480
92480
  Tte as cy,
92481
92481
  i3t as cz,
92482
92482
  BMt as d,
92483
- E4 as d0,
92484
- AI as d1,
92485
- bxt as d2,
92486
- ls as d3,
92487
- cs as d4,
92488
- Ep as d5,
92489
- d3t as d6,
92490
- MMt as d7,
92491
- CS as d8,
92492
- SS as d9,
92493
- x5e as dA,
92494
- Mo as dB,
92495
- Uv as dC,
92496
- YMt as dD,
92497
- Al as dE,
92498
- em as dF,
92499
- yxt as dG,
92500
- H$e as da,
92501
- iMt as db,
92502
- g2t as dc,
92503
- x3t as dd,
92504
- MEe as de,
92505
- oMt as df,
92506
- _Mt as dg,
92507
- JMt as dh,
92508
- Lxt as di,
92509
- RX as dj,
92510
- FX as dk,
92511
- IX as dl,
92512
- xme as dm,
92513
- Mme as dn,
92514
- kme as dp,
92515
- sL as dq,
92516
- Nte as dr,
92517
- _H as ds,
92518
- RMt as dt,
92519
- ga as du,
92520
- $S as dv,
92521
- m$e as dw,
92522
- UMt as dx,
92523
- Hxt as dy,
92524
- OMt as dz,
92483
+ bR as d0,
92484
+ jte as d1,
92485
+ tle as d2,
92486
+ bee as d3,
92487
+ E4 as d4,
92488
+ AI as d5,
92489
+ bxt as d6,
92490
+ ls as d7,
92491
+ cs as d8,
92492
+ Ep as d9,
92493
+ m$e as dA,
92494
+ UMt as dB,
92495
+ Hxt as dC,
92496
+ OMt as dD,
92497
+ x5e as dE,
92498
+ Mo as dF,
92499
+ Uv as dG,
92500
+ YMt as dH,
92501
+ Al as dI,
92502
+ em as dJ,
92503
+ yxt as dK,
92504
+ d3t as da,
92505
+ MMt as db,
92506
+ CS as dc,
92507
+ SS as dd,
92508
+ H$e as de,
92509
+ iMt as df,
92510
+ g2t as dg,
92511
+ x3t as dh,
92512
+ MEe as di,
92513
+ oMt as dj,
92514
+ _Mt as dk,
92515
+ JMt as dl,
92516
+ Lxt as dm,
92517
+ RX as dn,
92518
+ FX as dp,
92519
+ IX as dq,
92520
+ xme as dr,
92521
+ Mme as ds,
92522
+ kme as dt,
92523
+ sL as du,
92524
+ Nte as dv,
92525
+ _H as dw,
92526
+ RMt as dx,
92527
+ ga as dy,
92528
+ $S as dz,
92525
92529
  qMt as e,
92526
92530
  Tl as f,
92527
92531
  XMt as g,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.200.4",
3
+ "version": "1.201.0",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,