@factorialco/f0-react 1.200.5 → 1.201.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/experimental.d.ts +10 -10
- package/dist/experimental.js +2648 -2645
- package/dist/f0.d.ts +10 -10
- package/dist/f0.js +27 -27
- package/dist/{hooks-DWW98fDA.js → hooks-Bk1Sz-hw.js} +4123 -4105
- 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
|
};
|
|
@@ -2743,8 +2743,8 @@ declare global {
|
|
|
2743
2743
|
|
|
2744
2744
|
declare module "@tiptap/core" {
|
|
2745
2745
|
interface Commands<ReturnType> {
|
|
2746
|
-
|
|
2747
|
-
|
|
2746
|
+
liveCompanion: {
|
|
2747
|
+
insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
|
|
2748
2748
|
};
|
|
2749
2749
|
}
|
|
2750
2750
|
}
|
|
@@ -2752,8 +2752,8 @@ declare module "@tiptap/core" {
|
|
|
2752
2752
|
|
|
2753
2753
|
declare module "@tiptap/core" {
|
|
2754
2754
|
interface Commands<ReturnType> {
|
|
2755
|
-
|
|
2756
|
-
|
|
2755
|
+
aiBlock: {
|
|
2756
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
|
|
2757
2757
|
};
|
|
2758
2758
|
}
|
|
2759
2759
|
}
|
|
@@ -2768,11 +2768,6 @@ declare module "@tiptap/core" {
|
|
|
2768
2768
|
}
|
|
2769
2769
|
|
|
2770
2770
|
|
|
2771
|
-
declare namespace Calendar {
|
|
2772
|
-
var displayName: string;
|
|
2773
|
-
}
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
2771
|
declare module "@tiptap/core" {
|
|
2777
2772
|
interface Commands<ReturnType> {
|
|
2778
2773
|
moodTracker: {
|
|
@@ -2780,3 +2775,8 @@ declare module "@tiptap/core" {
|
|
|
2780
2775
|
};
|
|
2781
2776
|
}
|
|
2782
2777
|
}
|
|
2778
|
+
|
|
2779
|
+
|
|
2780
|
+
declare namespace Calendar {
|
|
2781
|
+
var displayName: string;
|
|
2782
|
+
}
|
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-Bk1Sz-hw.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-Bk1Sz-hw.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,
|