@factorialco/f0-react 4.22.0 → 4.22.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/{F0AiProcessingOverlay-BDMg5ViV.js → F0AiProcessingOverlay-BK03Le0T.js} +4601 -4286
- package/dist/{F0CanvasPanel-CTxchgH0.js → F0CanvasPanel-DF45vIGH.js} +32670 -33075
- package/dist/ai.js +2 -2
- package/dist/experimental.js +42 -42
- package/dist/f0.d.ts +20 -37
- package/dist/f0.js +11838 -11352
- package/dist/styles.css +1 -1
- package/dist/{useDataCollectionSource-3M3fBCbs.js → useDataCollectionSource-CmbJocMQ.js} +6305 -6370
- package/package.json +1 -1
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-
|
|
1
|
+
import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-DF45vIGH.js";
|
|
2
2
|
import { defaultTranslations as c } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-
|
|
3
|
+
import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-BK03Le0T.js";
|
|
4
4
|
export {
|
|
5
5
|
P as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|
package/dist/experimental.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h as Ua, B as Va, i as Ga, j as Ka, k as wn, l as lt, m as et, n as qa, o as g, p as ae, q as $e, u as te, T as Ya, r as Qa, s as Ja, R as Xa, t as Za, v as ye, w as es, x as nn, y as bt, z as at, A as Ee, E as ts, G as ns, H as Z, J as rs, K as as, L as ce, M as ir, N as ss, O as is, Q as ue, S as St, U as Q, V as He, W as os, X as ls, Y as cs, Z as ds, _ as us, $ as Se, a0 as or, a1 as lr, a2 as Be, a3 as xt, a4 as fs, e as cr, a5 as We, a6 as dr, a7 as Ft, a8 as Ne, a9 as pe, aa as vt, ab as ur, ac as ms, ad as fr, ae as ve, af as we, ag as hs, ah as ps, ai as gs, aj as bs, ak as xs, al as ze, am as Tt, an as mr, ao as vs, ap as ys, aq as ws, ar as At, as as hr, at as pr, au as Ns, av as Cs, aw as yt, ax as ks, ay as gr, az as Is, aA as Ss, aB as Fs, aC as Ts, aD as As, aE as br, aF as xr, aG as vr, aH as Gt, aI as yr, aJ as Kt, aK as wr, aL as Es, aM as Rs, aN as Ds, aO as Nr, aP as Ps, aQ as De, aR as Je, aS as qt, aT as Cr, aU as Ls, aV as rn, aW as Os, aX as _s, aY as zs, aZ as Ye, a_ as $s, a$ as Bs, b0 as ct, b1 as Nn, b2 as Yt, b3 as Ms, b4 as js, a as Ws, b as Hs, b5 as Et, b6 as Us, g as Vs, F as Gs, b7 as Ks, b8 as kr, b9 as qs, ba as an, bb as Ys, bc as sn, bd as Xe, be as Qs, bf as Ir, bg as Sr, bh as Js, bi as Fr, bj as Xs, bk as Zs, bl as ei, bm as Tr, bn as ti, bo as ni, bp as ri, bq as on, br as ai, bs as si, bt as ii, bu as oi, bv as li, bw as ci, bx as Ar, by as Er, bz as di, bA as ui, bB as fi, bC as mi, bD as hi, bE as Rr, bF as pi, bG as gi, bH as Dr, bI as Pr, bJ as bi, bK as xi, bL as vi, bM as yi, bN as wi, bO as Ni, bP as Lr, bQ as Ci, bR as ki, bS as Ii, bT as
|
|
2
|
-
import {
|
|
1
|
+
import { h as Ua, B as Va, i as Ga, j as Ka, k as wn, l as lt, m as et, n as qa, o as g, p as ae, q as $e, u as te, T as Ya, r as Qa, s as Ja, R as Xa, t as Za, v as ye, w as es, x as nn, y as bt, z as at, A as Ee, E as ts, G as ns, H as Z, J as rs, K as as, L as ce, M as ir, N as ss, O as is, Q as ue, S as St, U as Q, V as He, W as os, X as ls, Y as cs, Z as ds, _ as us, $ as Se, a0 as or, a1 as lr, a2 as Be, a3 as xt, a4 as fs, e as cr, a5 as We, a6 as dr, a7 as Ft, a8 as Ne, a9 as pe, aa as vt, ab as ur, ac as ms, ad as fr, ae as ve, af as we, ag as hs, ah as ps, ai as gs, aj as bs, ak as xs, al as ze, am as Tt, an as mr, ao as vs, ap as ys, aq as ws, ar as At, as as hr, at as pr, au as Ns, av as Cs, aw as yt, ax as ks, ay as gr, az as Is, aA as Ss, aB as Fs, aC as Ts, aD as As, aE as br, aF as xr, aG as vr, aH as Gt, aI as yr, aJ as Kt, aK as wr, aL as Es, aM as Rs, aN as Ds, aO as Nr, aP as Ps, aQ as De, aR as Je, aS as qt, aT as Cr, aU as Ls, aV as rn, aW as Os, aX as _s, aY as zs, aZ as Ye, a_ as $s, a$ as Bs, b0 as ct, b1 as Nn, b2 as Yt, b3 as Ms, b4 as js, a as Ws, b as Hs, b5 as Et, b6 as Us, g as Vs, F as Gs, b7 as Ks, b8 as kr, b9 as qs, ba as an, bb as Ys, bc as sn, bd as Xe, be as Qs, bf as Ir, bg as Sr, bh as Js, bi as Fr, bj as Xs, bk as Zs, bl as ei, bm as Tr, bn as ti, bo as ni, bp as ri, bq as on, br as ai, bs as si, bt as ii, bu as oi, bv as li, bw as ci, bx as Ar, by as Er, bz as di, bA as ui, bB as fi, bC as mi, bD as hi, bE as Rr, bF as pi, bG as gi, bH as Dr, bI as Pr, bJ as bi, bK as xi, bL as vi, bM as yi, bN as wi, bO as Ni, bP as Lr, bQ as Ci, bR as ki, bS as Ii, bT as Si, bU as Fi, bV as Or, bW as Ti, bX as Ai, bY as Ei, bZ as Ri, b_ as Di, b$ as Pi, c0 as Pe, c1 as ln, c2 as cn, c3 as dn, c4 as _r, c5 as un, c6 as zr, c7 as $r, c8 as Li, c9 as Oi, ca as _i, cb as zi, cc as $i, cd as Bi, ce as Mi, cf as Cn, cg as ji, ch as Wi, ci as kn, cj as In, ck as Sn, cl as Hi, cm as Ui, cn as Vi, co as Gi, cp as Br, cq as Ki, cr as qi } from "./F0CanvasPanel-DF45vIGH.js";
|
|
2
|
+
import { cD as xm, cC as vm, cP as ym, cz as wm, cA as Nm, cs as Cm, ct as km, ct as Im, cu as Sm, cS as Fm, cB as Tm, cL as Am, cM as Em, cQ as Rm, cv as Dm, cF as Pm, cE as Lm, cw as Om, cx as _m, cN as zm, cT as $m, cO as Bm, cR as Mm, cK as jm, cH as Wm, cJ as Hm, cG as Um, cy as Vm, cI as Gm } from "./F0CanvasPanel-DF45vIGH.js";
|
|
3
3
|
import { jsx as t, jsxs as d, Fragment as fe } from "react/jsx-runtime";
|
|
4
|
-
import Te, { forwardRef as de, useRef as O, useTransition as
|
|
5
|
-
import { C as
|
|
6
|
-
import {
|
|
4
|
+
import Te, { forwardRef as de, useRef as O, useTransition as Yi, useState as A, useLayoutEffect as Qe, useId as Qt, useContext as Le, createContext as Ie, useEffect as G, useCallback as H, useMemo as X, Fragment as Ke, isValidElement as Qi, cloneElement as Mr, memo as jr, Children as Wr } from "react";
|
|
5
|
+
import { C as Ji, P as Xi, a as st, M as Zi, p as eo, b as to, R as Fn, c as Hr, u as no, d as ro, e as ao, f as so, g as io, O as Ur, h as Vr, S as oo, A as lo, B as co, L as uo, i as fo, V as mo, j as ho, k as po, l as go } from "./useDataCollectionSource-CmbJocMQ.js";
|
|
6
|
+
import { r as qm, s as Ym, o as Qm, H as Jm, t as Xm, z as Zm, a8 as eh, G as th, q as nh, aa as rh, a9 as ah, Q as sh, ad as ih, F as oh, Y as lh, U as ch, J as dh, af as uh, K as fh, Z as mh, _ as hh, v as ph, ab as gh, ac as bh, N as xh, $ as vh, a5 as yh, a7 as wh, w as Nh, y as Ch, D as kh, W as Ih, ae as Sh, X as Fh, T as Th, ag as Ah, x as Eh, E as Rh, m as Dh, n as Ph, a1 as Lh, a2 as Oh, a6 as _h, I as zh, a3 as $h, a0 as Bh, a4 as Mh } from "./useDataCollectionSource-CmbJocMQ.js";
|
|
7
7
|
const bo = Ua("Search", [
|
|
8
8
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
9
9
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
@@ -83,7 +83,7 @@ function wo(e, n, r = []) {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
function No({ breadcrumbs: e, append: n }) {
|
|
86
|
-
const r = O(null), a = O(null), [, s] =
|
|
86
|
+
const r = O(null), a = O(null), [, s] = Yi(), [i, o] = A(null), c = (i?.collapsedItems || []).length > 0;
|
|
87
87
|
return Qe(() => {
|
|
88
88
|
const l = r.current, f = a.current;
|
|
89
89
|
if (!l || !f || f.children.length < e.length) return;
|
|
@@ -887,7 +887,7 @@ const Rn = ae.create(Z), Dn = {
|
|
|
887
887
|
) })
|
|
888
888
|
] }),
|
|
889
889
|
/* @__PURE__ */ t(
|
|
890
|
-
|
|
890
|
+
Ji,
|
|
891
891
|
{
|
|
892
892
|
columns: {
|
|
893
893
|
default: 1
|
|
@@ -895,7 +895,7 @@ const Rn = ae.create(Z), Dn = {
|
|
|
895
895
|
showDots: !0,
|
|
896
896
|
showArrows: !1,
|
|
897
897
|
children: r?.products.map((l) => /* @__PURE__ */ t(
|
|
898
|
-
|
|
898
|
+
Xi,
|
|
899
899
|
{
|
|
900
900
|
...l,
|
|
901
901
|
isVisible: !0,
|
|
@@ -4236,7 +4236,7 @@ function Ml({
|
|
|
4236
4236
|
}, [y, l]), G(() => {
|
|
4237
4237
|
l(P);
|
|
4238
4238
|
}, [P, l]), Bl(y, C), /* @__PURE__ */ t(
|
|
4239
|
-
|
|
4239
|
+
Zi,
|
|
4240
4240
|
{
|
|
4241
4241
|
reducedMotion: f ? "always" : "never",
|
|
4242
4242
|
transition: {
|
|
@@ -4493,8 +4493,8 @@ const da = ({
|
|
|
4493
4493
|
children: /* @__PURE__ */ t(
|
|
4494
4494
|
Z,
|
|
4495
4495
|
{
|
|
4496
|
-
icon:
|
|
4497
|
-
color:
|
|
4496
|
+
icon: to[i],
|
|
4497
|
+
color: eo[i],
|
|
4498
4498
|
size: "sm"
|
|
4499
4499
|
}
|
|
4500
4500
|
)
|
|
@@ -5718,7 +5718,7 @@ const dc = ({
|
|
|
5718
5718
|
onDragEnd: s,
|
|
5719
5719
|
currentOrder: i
|
|
5720
5720
|
}) => {
|
|
5721
|
-
const { isDragging: o, setIsDragging: c } = gn(), l = O(!1), f =
|
|
5721
|
+
const { isDragging: o, setIsDragging: c } = gn(), l = O(!1), f = no(), u = () => {
|
|
5722
5722
|
c(!0), l.current = !0;
|
|
5723
5723
|
}, m = () => {
|
|
5724
5724
|
c(!1), setTimeout(() => {
|
|
@@ -6034,7 +6034,7 @@ function pc({
|
|
|
6034
6034
|
top: { duration: o ? 0 : 0.1 },
|
|
6035
6035
|
left: { duration: o ? 0 : 0.1 },
|
|
6036
6036
|
default: { duration: o ? 0 : 0.2 }
|
|
6037
|
-
}, p = () => r ?
|
|
6037
|
+
}, p = () => r ? Qi(r) && a ? Mr(
|
|
6038
6038
|
r,
|
|
6039
6039
|
{
|
|
6040
6040
|
onDropdownClick: a
|
|
@@ -6352,7 +6352,7 @@ function jf(e) {
|
|
|
6352
6352
|
currentFilters: m,
|
|
6353
6353
|
navigationMode: h = "url",
|
|
6354
6354
|
deps: p = []
|
|
6355
|
-
} = e, b = si(), x =
|
|
6355
|
+
} = e, b = si(), x = ro(n, p), [v, F] = A(null), w = v?.key === r && v.settled, R = O(x);
|
|
6356
6356
|
R.current = x;
|
|
6357
6357
|
const P = O(b);
|
|
6358
6358
|
P.current = b;
|
|
@@ -6436,7 +6436,7 @@ function jf(e) {
|
|
|
6436
6436
|
(K) => K && K.key === r && !K.settled ? { ...K, settled: !0 } : K
|
|
6437
6437
|
);
|
|
6438
6438
|
}, [v, r]);
|
|
6439
|
-
const y = c ?? n.itemUrl, I =
|
|
6439
|
+
const y = c ?? n.itemUrl, I = ao({
|
|
6440
6440
|
dataSource: x,
|
|
6441
6441
|
data: N,
|
|
6442
6442
|
paginationInfo: T,
|
|
@@ -6461,7 +6461,7 @@ function jf(e) {
|
|
|
6461
6461
|
order: x.currentGrouping.order ?? "asc"
|
|
6462
6462
|
}
|
|
6463
6463
|
] : []
|
|
6464
|
-
], { neighbors: ne, isSupported: he } =
|
|
6464
|
+
], { neighbors: ne, isSupported: he } = so({
|
|
6465
6465
|
dataAdapter: x.dataAdapter,
|
|
6466
6466
|
id: B,
|
|
6467
6467
|
filters: x.currentFilters,
|
|
@@ -6474,7 +6474,7 @@ function jf(e) {
|
|
|
6474
6474
|
...K,
|
|
6475
6475
|
navigationFilters: x.currentNavigationFilters
|
|
6476
6476
|
})
|
|
6477
|
-
}), le = X(() => o || (x.idProvider ? (K, ie) => x.idProvider(K, ie) :
|
|
6477
|
+
}), le = X(() => o || (x.idProvider ? (K, ie) => x.idProvider(K, ie) : io), [o, x.idProvider]), z = X(() => {
|
|
6478
6478
|
if (!W || ne === null) return I;
|
|
6479
6479
|
const K = I.previousItem ?? ne.previous, ie = I.nextItem ?? ne.next, be = (xe) => xe && y ? y(xe) ?? null : null;
|
|
6480
6480
|
return {
|
|
@@ -7960,21 +7960,21 @@ const Wc = {
|
|
|
7960
7960
|
};
|
|
7961
7961
|
return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
|
|
7962
7962
|
}, [o, m, h]), /* @__PURE__ */ t(
|
|
7963
|
-
|
|
7963
|
+
Ii,
|
|
7964
7964
|
{
|
|
7965
7965
|
open: o,
|
|
7966
7966
|
onOpenChange: (p) => {
|
|
7967
7967
|
p || r();
|
|
7968
7968
|
},
|
|
7969
7969
|
children: u && /* @__PURE__ */ d(
|
|
7970
|
-
|
|
7970
|
+
Si,
|
|
7971
7971
|
{
|
|
7972
7972
|
container: s,
|
|
7973
7973
|
className: "h-full w-full max-w-none rounded-none bg-transparent p-0 shadow-none",
|
|
7974
7974
|
withTranslateAnimation: !1,
|
|
7975
7975
|
"aria-describedby": void 0,
|
|
7976
7976
|
children: [
|
|
7977
|
-
/* @__PURE__ */ t(
|
|
7977
|
+
/* @__PURE__ */ t(Fi, { className: "sr-only", children: u.name || e.chat.imagePreview }),
|
|
7978
7978
|
/* @__PURE__ */ t(
|
|
7979
7979
|
"button",
|
|
7980
7980
|
{
|
|
@@ -8394,7 +8394,7 @@ const od = ({
|
|
|
8394
8394
|
/* @__PURE__ */ t(
|
|
8395
8395
|
ce,
|
|
8396
8396
|
{
|
|
8397
|
-
icon:
|
|
8397
|
+
icon: Ti,
|
|
8398
8398
|
onClick: n,
|
|
8399
8399
|
label: r.chat.back,
|
|
8400
8400
|
variant: "ghost",
|
|
@@ -8511,7 +8511,7 @@ const od = ({
|
|
|
8511
8511
|
/* @__PURE__ */ t(
|
|
8512
8512
|
nt,
|
|
8513
8513
|
{
|
|
8514
|
-
icon:
|
|
8514
|
+
icon: Ai,
|
|
8515
8515
|
label: s.chat.info,
|
|
8516
8516
|
onClick: () => h("info"),
|
|
8517
8517
|
trailing: /* @__PURE__ */ t(
|
|
@@ -8527,7 +8527,7 @@ const od = ({
|
|
|
8527
8527
|
/* @__PURE__ */ t(
|
|
8528
8528
|
nt,
|
|
8529
8529
|
{
|
|
8530
|
-
icon:
|
|
8530
|
+
icon: Ei,
|
|
8531
8531
|
label: s.chat.reply,
|
|
8532
8532
|
onClick: F(() => {
|
|
8533
8533
|
u(null), f(e);
|
|
@@ -8537,7 +8537,7 @@ const od = ({
|
|
|
8537
8537
|
/* @__PURE__ */ t(
|
|
8538
8538
|
nt,
|
|
8539
8539
|
{
|
|
8540
|
-
icon:
|
|
8540
|
+
icon: Ri,
|
|
8541
8541
|
label: s.actions.copy,
|
|
8542
8542
|
onClick: F(() => {
|
|
8543
8543
|
navigator.clipboard?.writeText(e.body);
|
|
@@ -9130,7 +9130,7 @@ const od = ({
|
|
|
9130
9130
|
)
|
|
9131
9131
|
}
|
|
9132
9132
|
),
|
|
9133
|
-
/* @__PURE__ */ t(Ee, { children: !V && /* @__PURE__ */ t(
|
|
9133
|
+
/* @__PURE__ */ t(Ee, { children: !V && /* @__PURE__ */ t(Di, { position: "top" }, "chat-header-shadow") }),
|
|
9134
9134
|
/* @__PURE__ */ t(Ee, { children: B && q && /* @__PURE__ */ t(
|
|
9135
9135
|
ae.div,
|
|
9136
9136
|
{
|
|
@@ -9167,7 +9167,7 @@ const od = ({
|
|
|
9167
9167
|
{
|
|
9168
9168
|
onClick: ee,
|
|
9169
9169
|
variant: "neutral",
|
|
9170
|
-
icon:
|
|
9170
|
+
icon: Pi,
|
|
9171
9171
|
label: m > 0 ? e.t(
|
|
9172
9172
|
m === 1 ? "chat.unreadCount.one" : "chat.unreadCount.other",
|
|
9173
9173
|
{ count: m }
|
|
@@ -9565,7 +9565,7 @@ const od = ({
|
|
|
9565
9565
|
i && /* @__PURE__ */ t($r, { text: i, level: "critical" }),
|
|
9566
9566
|
o && /* @__PURE__ */ t(xt, { text: o.text, variant: o.variant }),
|
|
9567
9567
|
n.link && /* @__PURE__ */ t(
|
|
9568
|
-
|
|
9568
|
+
Li,
|
|
9569
9569
|
{
|
|
9570
9570
|
onClick: h,
|
|
9571
9571
|
href: n.link.url,
|
|
@@ -9576,11 +9576,11 @@ const od = ({
|
|
|
9576
9576
|
] })
|
|
9577
9577
|
] }),
|
|
9578
9578
|
n.comment && /* @__PURE__ */ d("div", { className: "flex flex-row items-center gap-3 overflow-visible", children: [
|
|
9579
|
-
/* @__PURE__ */ t(Hd, { children: /* @__PURE__ */ t(
|
|
9579
|
+
/* @__PURE__ */ t(Hd, { children: /* @__PURE__ */ t(Oi, { children: n.comment }) }),
|
|
9580
9580
|
!!n.canBeBlurred && /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(
|
|
9581
9581
|
ue,
|
|
9582
9582
|
{
|
|
9583
|
-
icon: f ?
|
|
9583
|
+
icon: f ? _i : zi,
|
|
9584
9584
|
hideLabel: !0,
|
|
9585
9585
|
label: "hide/show",
|
|
9586
9586
|
variant: "outline",
|
|
@@ -9604,7 +9604,7 @@ const od = ({
|
|
|
9604
9604
|
p
|
|
9605
9605
|
] }, b))
|
|
9606
9606
|
] }),
|
|
9607
|
-
a && /* @__PURE__ */ t(
|
|
9607
|
+
a && /* @__PURE__ */ t($i, { children: /* @__PURE__ */ t(ue, { variant: "neutral", size: "sm", ...a }) })
|
|
9608
9608
|
]
|
|
9609
9609
|
}
|
|
9610
9610
|
);
|
|
@@ -10148,7 +10148,7 @@ function pu(e, n) {
|
|
|
10148
10148
|
visibleItems: [],
|
|
10149
10149
|
overflowItems: []
|
|
10150
10150
|
});
|
|
10151
|
-
|
|
10151
|
+
Bi({
|
|
10152
10152
|
ref: r,
|
|
10153
10153
|
onResize: () => {
|
|
10154
10154
|
f();
|
|
@@ -10380,7 +10380,7 @@ function rm({
|
|
|
10380
10380
|
withPointerCursor: i,
|
|
10381
10381
|
children: [
|
|
10382
10382
|
"alert" in c && c.alert && /* @__PURE__ */ t(Dr, { type: c.alert }),
|
|
10383
|
-
"emoji" in c && c.emoji && /* @__PURE__ */ t(
|
|
10383
|
+
"emoji" in c && c.emoji && /* @__PURE__ */ t(Mi, { emoji: c.emoji }),
|
|
10384
10384
|
/* @__PURE__ */ d("div", { className: "flex-1", children: [
|
|
10385
10385
|
/* @__PURE__ */ t("p", { className: "line-clamp-1 font-medium", children: n }),
|
|
10386
10386
|
/* @__PURE__ */ t("p", { className: "line-clamp-1 text-f1-foreground-secondary", children: r })
|
|
@@ -10688,7 +10688,7 @@ function Su({
|
|
|
10688
10688
|
strokeWidth: 0,
|
|
10689
10689
|
isAnimationActive: !1,
|
|
10690
10690
|
children: a.map((c, l) => /* @__PURE__ */ t(
|
|
10691
|
-
|
|
10691
|
+
ji,
|
|
10692
10692
|
{
|
|
10693
10693
|
fill: c.color,
|
|
10694
10694
|
role: "presentation",
|
|
@@ -10728,7 +10728,7 @@ function Fu({
|
|
|
10728
10728
|
children: e ?? n
|
|
10729
10729
|
}
|
|
10730
10730
|
),
|
|
10731
|
-
/* @__PURE__ */ t(Z, { icon:
|
|
10731
|
+
/* @__PURE__ */ t(Z, { icon: Wi })
|
|
10732
10732
|
]
|
|
10733
10733
|
}
|
|
10734
10734
|
);
|
|
@@ -10927,9 +10927,9 @@ function lm({
|
|
|
10927
10927
|
] }) });
|
|
10928
10928
|
}
|
|
10929
10929
|
const Tu = {
|
|
10930
|
-
done:
|
|
10931
|
-
"in-progress":
|
|
10932
|
-
todo:
|
|
10930
|
+
done: Vi,
|
|
10931
|
+
"in-progress": Ui,
|
|
10932
|
+
todo: Hi
|
|
10933
10933
|
}, Au = {
|
|
10934
10934
|
done: "text-f1-icon-success",
|
|
10935
10935
|
"in-progress": "text-f1-icon-info",
|
|
@@ -10960,7 +10960,7 @@ function Eu({
|
|
|
10960
10960
|
} : void 0,
|
|
10961
10961
|
rawTag: e.badge && !e.badge.isPastDue ? {
|
|
10962
10962
|
text: e.badge.text,
|
|
10963
|
-
icon:
|
|
10963
|
+
icon: Gi
|
|
10964
10964
|
} : void 0,
|
|
10965
10965
|
count: e.counter,
|
|
10966
10966
|
onClick: s
|
|
@@ -11185,7 +11185,7 @@ function df({
|
|
|
11185
11185
|
const fm = Ne(
|
|
11186
11186
|
pe("WidgetEmptyState", df)
|
|
11187
11187
|
), Ha = de(
|
|
11188
|
-
({ title: e, children: n }, r) => (
|
|
11188
|
+
({ title: e, children: n }, r) => (Ki(
|
|
11189
11189
|
e,
|
|
11190
11190
|
{ disallowEmpty: !0 },
|
|
11191
11191
|
{ componentName: "WidgetSection" }
|
|
@@ -11203,7 +11203,7 @@ const mm = Ne(
|
|
|
11203
11203
|
disallowedRoutes: r,
|
|
11204
11204
|
children: a
|
|
11205
11205
|
}) => {
|
|
11206
|
-
const s =
|
|
11206
|
+
const s = qi(), i = window.location.pathname, o = X(() => n?.length ? n.includes(i) : r?.length ? !r.includes(i) : !0, [i, n, r]), c = X(() => {
|
|
11207
11207
|
let l = `The component ${e} is not allowed to be rendered in the current route.`;
|
|
11208
11208
|
return n && n.length > 0 && (l += ` Allowed routes: ${n.join(", ")}`), r && r.length > 0 && (l += ` Disallowed routes: ${r.join(", ")}`), l;
|
|
11209
11209
|
}, [e, n, r]);
|
|
@@ -11239,7 +11239,7 @@ export {
|
|
|
11239
11239
|
en as CalendarEvent,
|
|
11240
11240
|
em as CalendarEventList,
|
|
11241
11241
|
Jm as CardSelectableContainer,
|
|
11242
|
-
|
|
11242
|
+
Ji as Carousel,
|
|
11243
11243
|
Xm as CategoryBarChart,
|
|
11244
11244
|
om as CategoryBarSection,
|
|
11245
11245
|
Cf as Celebration,
|
|
@@ -11386,7 +11386,7 @@ export {
|
|
|
11386
11386
|
Rt as useAiPromotionChat,
|
|
11387
11387
|
$h as useDataCollectionData,
|
|
11388
11388
|
jf as useDataCollectionItemNavigation,
|
|
11389
|
-
|
|
11389
|
+
ro as useDataCollectionSource,
|
|
11390
11390
|
Bh as useExportAction,
|
|
11391
11391
|
Oe as useF0Chat,
|
|
11392
11392
|
Mh as useInfiniteScrollPagination,
|
package/dist/f0.d.ts
CHANGED
|
@@ -5422,10 +5422,6 @@ declare type DialogWrapperContextType = {
|
|
|
5422
5422
|
portalContainer: HTMLDivElement | null;
|
|
5423
5423
|
};
|
|
5424
5424
|
|
|
5425
|
-
declare const DialogWrapperProvider: ({ isOpen, onClose, shownBottomSheet, position, children, portalContainer, }: DialogWrapperProviderProps) => JSX_2.Element;
|
|
5426
|
-
export { DialogWrapperProvider as F0DialogAlikeProvider }
|
|
5427
|
-
export { DialogWrapperProvider as F0DialogProvider }
|
|
5428
|
-
|
|
5429
5425
|
/**
|
|
5430
5426
|
* The props for the F0DialogProvider component.
|
|
5431
5427
|
*/
|
|
@@ -5488,20 +5484,6 @@ export declare type DragPayload<T = unknown> = {
|
|
|
5488
5484
|
data?: T;
|
|
5489
5485
|
};
|
|
5490
5486
|
|
|
5491
|
-
export declare type DrawerControls = {
|
|
5492
|
-
kind: "resource";
|
|
5493
|
-
expand?: {
|
|
5494
|
-
label: string;
|
|
5495
|
-
url?: string;
|
|
5496
|
-
onClick?: () => void;
|
|
5497
|
-
};
|
|
5498
|
-
navigation?: NavigationProps;
|
|
5499
|
-
} | {
|
|
5500
|
-
kind: "back";
|
|
5501
|
-
label: string;
|
|
5502
|
-
onClick: () => void;
|
|
5503
|
-
};
|
|
5504
|
-
|
|
5505
5487
|
export declare type DrawerDefinition = {
|
|
5506
5488
|
/** The size of the drawer. */
|
|
5507
5489
|
size?: DrawerSize;
|
|
@@ -8515,10 +8497,7 @@ export declare interface F0DemoCardProps {
|
|
|
8515
8497
|
}
|
|
8516
8498
|
|
|
8517
8499
|
/**
|
|
8518
|
-
* @
|
|
8519
|
-
* center/fullscreen dialogs, or `F0Drawer` from
|
|
8520
|
-
* `@/components/dialog-alike/F0Drawer` for side panels. This is a
|
|
8521
|
-
* backward-compatible shim that maps the legacy props onto those components.
|
|
8500
|
+
* @experimental This is an experimental component use it at your own risk
|
|
8522
8501
|
*/
|
|
8523
8502
|
export declare const F0Dialog: WithDataTestIdReturnType_3<FC<F0DialogInternalProps>>;
|
|
8524
8503
|
|
|
@@ -8538,12 +8517,8 @@ export declare type F0DialogActionsProps = {
|
|
|
8538
8517
|
|
|
8539
8518
|
export declare const F0DialogAlikeContext: Context<DialogWrapperContextType>;
|
|
8540
8519
|
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
* `Context<F0DialogContextType>` signature is preserved (the runtime value is
|
|
8544
|
-
* the same context the dialog-alike components populate).
|
|
8545
|
-
* @deprecated Import `F0DialogContext` from `@/components/dialog-alike/F0Dialog`.
|
|
8546
|
-
*/
|
|
8520
|
+
export declare const F0DialogAlikeProvider: ({ isOpen, onClose, shownBottomSheet, position, children, portalContainer, }: DialogWrapperProviderProps) => JSX_2.Element;
|
|
8521
|
+
|
|
8547
8522
|
export declare const F0DialogContext: Context<F0DialogContextType>;
|
|
8548
8523
|
|
|
8549
8524
|
declare type F0DialogContextType = {
|
|
@@ -8570,6 +8545,17 @@ export declare type F0DialogPrimaryAction = {
|
|
|
8570
8545
|
|
|
8571
8546
|
export declare type F0DialogPrimaryActionItem = F0DialogActionItem;
|
|
8572
8547
|
|
|
8548
|
+
export declare const F0DialogProvider: ({ isOpen, onClose, shownBottomSheet, position, children, portalContainer, }: F0DialogProviderProps) => JSX_2.Element;
|
|
8549
|
+
|
|
8550
|
+
declare type F0DialogProviderProps = {
|
|
8551
|
+
isOpen: boolean;
|
|
8552
|
+
onClose: () => void;
|
|
8553
|
+
shownBottomSheet?: boolean;
|
|
8554
|
+
position: DialogPosition;
|
|
8555
|
+
children: ReactNode;
|
|
8556
|
+
portalContainer: HTMLDivElement | null;
|
|
8557
|
+
};
|
|
8558
|
+
|
|
8573
8559
|
export declare type F0DialogSecondaryAction = {
|
|
8574
8560
|
label: string;
|
|
8575
8561
|
icon?: IconType;
|
|
@@ -11240,7 +11226,7 @@ declare interface F0WizardFormBaseProps {
|
|
|
11240
11226
|
onClose?: () => void;
|
|
11241
11227
|
title?: string;
|
|
11242
11228
|
/** @deprecated Use `size` instead. */
|
|
11243
|
-
width?:
|
|
11229
|
+
width?: DialogWidth;
|
|
11244
11230
|
/** The size of the wizard dialog. Preferred over the deprecated `width`. */
|
|
11245
11231
|
size?: F0DialogSize;
|
|
11246
11232
|
defaultStepIndex?: number;
|
|
@@ -15360,7 +15346,7 @@ declare interface SurveyAnsweringFormDialogProps extends SurveyAnsweringFormShar
|
|
|
15360
15346
|
inline?: false;
|
|
15361
15347
|
mode: SurveyAnsweringFormMode;
|
|
15362
15348
|
module: SurveyAnsweringFormModule;
|
|
15363
|
-
position?:
|
|
15349
|
+
position?: DialogPosition;
|
|
15364
15350
|
isOpen: boolean;
|
|
15365
15351
|
onClose: () => void;
|
|
15366
15352
|
allowToChangeFullscreen?: boolean;
|
|
@@ -15471,9 +15457,6 @@ export declare type SurveyDataset = {
|
|
|
15471
15457
|
|
|
15472
15458
|
export declare type SurveyDatasets = Record<string, SurveyDataset>;
|
|
15473
15459
|
|
|
15474
|
-
/** Where the answering dialog is anchored. */
|
|
15475
|
-
declare type SurveyDialogPosition = "center" | "left" | "right" | "fullscreen";
|
|
15476
|
-
|
|
15477
15460
|
export declare const SurveyFormBuilder: WithDataTestIdReturnType_8<({ elements: elementsProp, disabled, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, useUpload, datasets, }: SurveyFormBuilderProps) => JSX_2.Element>;
|
|
15478
15461
|
|
|
15479
15462
|
export declare type SurveyFormBuilderCallbacks = {
|
|
@@ -16773,10 +16756,6 @@ export declare interface UseDataSourceItemNavigationReturn<R extends RecordType>
|
|
|
16773
16756
|
previousItemUrl: string | null;
|
|
16774
16757
|
}
|
|
16775
16758
|
|
|
16776
|
-
declare const useDialogWrapperContext: () => DialogWrapperContextType;
|
|
16777
|
-
export { useDialogWrapperContext as useF0Dialog }
|
|
16778
|
-
export { useDialogWrapperContext as useF0DialogAlikeContext }
|
|
16779
|
-
|
|
16780
16759
|
export declare function useDndEvents(handler: (e: {
|
|
16781
16760
|
phase: "start" | "over" | "drop" | "cancel";
|
|
16782
16761
|
source: DragPayload;
|
|
@@ -16805,6 +16784,10 @@ export declare const useEmojiConfetti: () => {
|
|
|
16805
16784
|
*/
|
|
16806
16785
|
export declare function useF0AiFormRegistry(): F0AiFormRegistryContextValue | null;
|
|
16807
16786
|
|
|
16787
|
+
export declare const useF0Dialog: () => F0DialogContextType;
|
|
16788
|
+
|
|
16789
|
+
export declare const useF0DialogAlikeContext: () => DialogWrapperContextType;
|
|
16790
|
+
|
|
16808
16791
|
/**
|
|
16809
16792
|
* Hook to control F0Form programmatically.
|
|
16810
16793
|
*
|