@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/experimental.d.ts +1 -1
- package/dist/experimental.js +2899 -2896
- package/dist/f0.d.ts +1 -1
- package/dist/f0.js +27 -27
- package/dist/{hooks-DWW98fDA.js → hooks-DrAjBH62.js} +62 -58
- package/package.json +1 -1
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: "
|
|
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
|
|
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
|
|
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: "
|
|
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
|
-
|
|
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
|
-
),
|
|
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(
|
|
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,
|
|
622
|
+
const [I, F] = g(a), [C, y] = g(null), [P, p] = g(!1), k = async () => {
|
|
623
623
|
if (h != null && h.onClick) {
|
|
624
|
-
|
|
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
|
-
|
|
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), [
|
|
844
|
-
s(
|
|
845
|
-
}, R = async (
|
|
846
|
-
if (
|
|
847
|
-
k(
|
|
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
|
|
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,
|
|
857
|
-
...
|
|
858
|
-
onClick: () => R(
|
|
859
|
-
} :
|
|
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:
|
|
889
|
+
actions: pe,
|
|
890
890
|
showConfirmation: !1
|
|
891
891
|
}
|
|
892
892
|
)
|
|
893
893
|
}
|
|
894
894
|
)
|
|
895
895
|
] }),
|
|
896
|
-
(
|
|
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:
|
|
903
|
-
successMessage:
|
|
904
|
-
nextSteps:
|
|
905
|
-
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
|
-
|
|
987
|
-
|
|
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
|
-
|
|
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
|
-
|
|
92442
|
-
|
|
92443
|
-
|
|
92444
|
-
|
|
92445
|
-
|
|
92446
|
-
|
|
92447
|
-
|
|
92448
|
-
|
|
92449
|
-
|
|
92450
|
-
|
|
92451
|
-
|
|
92452
|
-
|
|
92453
|
-
|
|
92454
|
-
|
|
92455
|
-
|
|
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
|
-
|
|
92484
|
-
|
|
92485
|
-
|
|
92486
|
-
|
|
92487
|
-
|
|
92488
|
-
|
|
92489
|
-
|
|
92490
|
-
|
|
92491
|
-
|
|
92492
|
-
|
|
92493
|
-
|
|
92494
|
-
|
|
92495
|
-
|
|
92496
|
-
|
|
92497
|
-
|
|
92498
|
-
|
|
92499
|
-
|
|
92500
|
-
|
|
92501
|
-
|
|
92502
|
-
|
|
92503
|
-
|
|
92504
|
-
|
|
92505
|
-
|
|
92506
|
-
|
|
92507
|
-
|
|
92508
|
-
|
|
92509
|
-
|
|
92510
|
-
|
|
92511
|
-
|
|
92512
|
-
|
|
92513
|
-
|
|
92514
|
-
|
|
92515
|
-
|
|
92516
|
-
|
|
92517
|
-
|
|
92518
|
-
|
|
92519
|
-
|
|
92520
|
-
|
|
92521
|
-
|
|
92522
|
-
|
|
92523
|
-
|
|
92524
|
-
|
|
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,
|