@factorialco/f0-react 8.14.4 → 8.15.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/{ChatPostComposerDialog-CO3HEaOP.js → ChatPostComposerDialog-DVwKloFa.js} +1 -1
- package/dist/ai.d.ts +8 -8
- package/dist/component-status.d.ts +8 -8
- package/dist/component-status.js +1 -1
- package/dist/{experimental-4Av1uYmz.js → experimental-nzuHu9re.js} +31 -4
- package/dist/experimental.d.ts +21 -8
- package/dist/experimental.js +1 -1
- package/dist/f0.d.ts +8 -8
- package/dist/i18n-provider-defaults.d.ts +8 -8
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -22437,7 +22437,7 @@ const wN = {
|
|
|
22437
22437
|
user: e,
|
|
22438
22438
|
children: n
|
|
22439
22439
|
}) => {
|
|
22440
|
-
const i = te();
|
|
22440
|
+
const i = te(), t = e.actions ?? [];
|
|
22441
22441
|
return /* @__PURE__ */ v(Su, { openDelay: 150, closeDelay: 100, children: [
|
|
22442
22442
|
/* @__PURE__ */ a(Nu, { asChild: !0, children: n }),
|
|
22443
22443
|
/* @__PURE__ */ a(
|
|
@@ -22455,7 +22455,33 @@ const wN = {
|
|
|
22455
22455
|
},
|
|
22456
22456
|
title: e.name,
|
|
22457
22457
|
description: e.subtitle,
|
|
22458
|
-
|
|
22458
|
+
children: e.profileHref || t.length > 0 ? (
|
|
22459
|
+
// F0Card's footer takes one link or onClick-only buttons, and "View
|
|
22460
|
+
// profile" is a button with an href, so the card draws its own row
|
|
22461
|
+
// in the same edge-to-edge band as that footer. Buttons that do not
|
|
22462
|
+
// fit drop to the next line, and each line's buttons fill its width.
|
|
22463
|
+
/* @__PURE__ */ v("div", { className: "-mx-4 -mb-4 mt-2 flex flex-wrap gap-2 [&>*]:grow border-0 border-t border-solid border-t-f1-border-secondary p-4", children: [
|
|
22464
|
+
e.profileHref ? /* @__PURE__ */ a(
|
|
22465
|
+
Oe,
|
|
22466
|
+
{
|
|
22467
|
+
variant: "outline",
|
|
22468
|
+
size: "md",
|
|
22469
|
+
label: i.chat.viewProfile,
|
|
22470
|
+
href: e.profileHref
|
|
22471
|
+
}
|
|
22472
|
+
) : null,
|
|
22473
|
+
t.map((o) => /* @__PURE__ */ a(
|
|
22474
|
+
Oe,
|
|
22475
|
+
{
|
|
22476
|
+
variant: o.variant ?? "outline",
|
|
22477
|
+
size: "md",
|
|
22478
|
+
label: o.label,
|
|
22479
|
+
onClick: o.onClick
|
|
22480
|
+
},
|
|
22481
|
+
o.label
|
|
22482
|
+
))
|
|
22483
|
+
] })
|
|
22484
|
+
) : null
|
|
22459
22485
|
}
|
|
22460
22486
|
)
|
|
22461
22487
|
}
|
|
@@ -24466,7 +24492,8 @@ const iI = 1e3, tI = ({
|
|
|
24466
24492
|
name: g.name,
|
|
24467
24493
|
avatar: g.avatar,
|
|
24468
24494
|
subtitle: g.subtitle,
|
|
24469
|
-
profileHref: g.profileHref
|
|
24495
|
+
profileHref: g.profileHref,
|
|
24496
|
+
actions: g.actions
|
|
24470
24497
|
}
|
|
24471
24498
|
})
|
|
24472
24499
|
),
|
|
@@ -26752,7 +26779,7 @@ const iI = 1e3, tI = ({
|
|
|
26752
26779
|
}
|
|
26753
26780
|
);
|
|
26754
26781
|
}, PT = /* @__PURE__ */ new Set(), LT = zi(
|
|
26755
|
-
() => import("./ChatPostComposerDialog-
|
|
26782
|
+
() => import("./ChatPostComposerDialog-DVwKloFa.js").then((e) => ({
|
|
26756
26783
|
default: e.ChatPostComposerDialog
|
|
26757
26784
|
}))
|
|
26758
26785
|
), OT = () => {
|
package/dist/experimental.d.ts
CHANGED
|
@@ -8816,6 +8816,7 @@ export declare type F0ChatMention = {
|
|
|
8816
8816
|
avatar?: AvatarVariant;
|
|
8817
8817
|
subtitle?: string;
|
|
8818
8818
|
profileHref?: string;
|
|
8819
|
+
actions?: F0ChatUserAction[];
|
|
8819
8820
|
};
|
|
8820
8821
|
|
|
8821
8822
|
export declare type F0ChatMessage = {
|
|
@@ -9694,6 +9695,18 @@ export declare type F0ChatUser = {
|
|
|
9694
9695
|
subtitle?: string;
|
|
9695
9696
|
/** Link to the person's profile, shown as "View profile" in the hover card. */
|
|
9696
9697
|
profileHref?: string;
|
|
9698
|
+
/** More buttons in the hover card, next to "View profile". The host decides
|
|
9699
|
+
* which apply to each person. */
|
|
9700
|
+
actions?: F0ChatUserAction[];
|
|
9701
|
+
};
|
|
9702
|
+
|
|
9703
|
+
/** A button in the person hover card, such as opening a chat with that person. */
|
|
9704
|
+
export declare type F0ChatUserAction = {
|
|
9705
|
+
label: string;
|
|
9706
|
+
/** `"default"` is the filled call to action; use it for one action at most.
|
|
9707
|
+
* @default "outline" */
|
|
9708
|
+
variant?: "default" | "outline";
|
|
9709
|
+
onClick: () => void;
|
|
9697
9710
|
};
|
|
9698
9711
|
|
|
9699
9712
|
/**
|
|
@@ -20884,9 +20897,11 @@ declare module "@tiptap/core" {
|
|
|
20884
20897
|
|
|
20885
20898
|
declare module "@tiptap/core" {
|
|
20886
20899
|
interface Commands<ReturnType> {
|
|
20887
|
-
|
|
20888
|
-
|
|
20889
|
-
|
|
20900
|
+
enhanceHighlight: {
|
|
20901
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
20902
|
+
placeholder?: string;
|
|
20903
|
+
}) => ReturnType;
|
|
20904
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
20890
20905
|
};
|
|
20891
20906
|
}
|
|
20892
20907
|
}
|
|
@@ -20894,11 +20909,9 @@ declare module "@tiptap/core" {
|
|
|
20894
20909
|
|
|
20895
20910
|
declare module "@tiptap/core" {
|
|
20896
20911
|
interface Commands<ReturnType> {
|
|
20897
|
-
|
|
20898
|
-
|
|
20899
|
-
|
|
20900
|
-
}) => ReturnType;
|
|
20901
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
20912
|
+
fontSize: {
|
|
20913
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
20914
|
+
unsetFontSize: () => ReturnType;
|
|
20902
20915
|
};
|
|
20903
20916
|
}
|
|
20904
20917
|
}
|
package/dist/experimental.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as s, x as t, A as i, b as o, Q as r, bm as n, bl as l, bn as S, B as d, C as b, I as g, U as C, bt as u, bu as c, bD as m, G as F, D as P, bs as p, bE as T, K as h, J as I, a9 as M, bZ as E, c4 as f, T as A, bY as L, E as R, d as y, g as B, p as D, at as _, aw as k, au as v, ar as O, L as W, h as H, bi as N, F as x, aC as V, k as G, aH as w, aD as U, aE as z, aF as K, q as X, r as j, av as q, H as J, bH as Q, bI as Y, bw as Z, aB as $, bL as aa, bW as ea, bo as sa, aW as ta, aG as ia, aU as oa, aT as ra, aM as na, aV as la, ac as Sa, bG as da, _ as ba, al as ga, N as Ca, O as ua, P as ca, c8 as ma, $ as Fa, V as Pa, W as pa, X as Ta, bp as ha, R as Ia, bU as Ma, b_ as Ea, S as fa, af as Aa, ag as La, a4 as Ra, a5 as ya, a6 as Ba, a3 as Da, a7 as _a, a0 as ka, a8 as va, aa as Oa, ab as Wa, ad as Ha, ae as Na, ah as xa, ai as Va, aj as Ga, c2 as wa, c1 as Ua, bk as za, bj as Ka, br as Xa, bF as ja, bC as qa, bq as Ja, ak as Qa, bx as Ya, c3 as Za, c6 as $a, bv as ae, bA as ee, by as se, c7 as te, bB as ie, bz as oe, c5 as re, e as ne, l as le, b0 as Se, ao as de, aq as be, j as ge, aP as Ce, c0 as ue, b$ as ce, ap as me, ax as Fe, f as Pe, bd as pe, bh as Te, bb as he, bc as Ie, b9 as Me, ba as Ee, be as fe, bf as Ae, b8 as Le, n as Re, o as ye, bg as Be, bO as De, bM as _e, aA as ke, ay as ve, az as Oe, aY as We, bX as He, bN as Ne, t as xe, v as Ve, m as Ge, b3 as we, M as Ue, w as ze, b4 as Ke, bS as Xe, a$ as je, a_ as qe, b5 as Je, bK as Qe, bP as Ye, am as Ze, b6 as $e, bV as as, aX as es, aZ as ss, b1 as ts, b2 as is, c as os, as as rs, z as ns, i as ls, an as Ss, u as ds, aI as bs, aJ as gs, aK as Cs, aL as us, bJ as cs, aQ as ms, aR as Fs, aN as Ps, aO as ps, Z as Ts, Y as hs, a2 as Is, a1 as Ms, aS as Es, b7 as fs, bT as As, bR as Ls, bQ as Rs } from "./experimental-
|
|
1
|
+
import { y as s, x as t, A as i, b as o, Q as r, bm as n, bl as l, bn as S, B as d, C as b, I as g, U as C, bt as u, bu as c, bD as m, G as F, D as P, bs as p, bE as T, K as h, J as I, a9 as M, bZ as E, c4 as f, T as A, bY as L, E as R, d as y, g as B, p as D, at as _, aw as k, au as v, ar as O, L as W, h as H, bi as N, F as x, aC as V, k as G, aH as w, aD as U, aE as z, aF as K, q as X, r as j, av as q, H as J, bH as Q, bI as Y, bw as Z, aB as $, bL as aa, bW as ea, bo as sa, aW as ta, aG as ia, aU as oa, aT as ra, aM as na, aV as la, ac as Sa, bG as da, _ as ba, al as ga, N as Ca, O as ua, P as ca, c8 as ma, $ as Fa, V as Pa, W as pa, X as Ta, bp as ha, R as Ia, bU as Ma, b_ as Ea, S as fa, af as Aa, ag as La, a4 as Ra, a5 as ya, a6 as Ba, a3 as Da, a7 as _a, a0 as ka, a8 as va, aa as Oa, ab as Wa, ad as Ha, ae as Na, ah as xa, ai as Va, aj as Ga, c2 as wa, c1 as Ua, bk as za, bj as Ka, br as Xa, bF as ja, bC as qa, bq as Ja, ak as Qa, bx as Ya, c3 as Za, c6 as $a, bv as ae, bA as ee, by as se, c7 as te, bB as ie, bz as oe, c5 as re, e as ne, l as le, b0 as Se, ao as de, aq as be, j as ge, aP as Ce, c0 as ue, b$ as ce, ap as me, ax as Fe, f as Pe, bd as pe, bh as Te, bb as he, bc as Ie, b9 as Me, ba as Ee, be as fe, bf as Ae, b8 as Le, n as Re, o as ye, bg as Be, bO as De, bM as _e, aA as ke, ay as ve, az as Oe, aY as We, bX as He, bN as Ne, t as xe, v as Ve, m as Ge, b3 as we, M as Ue, w as ze, b4 as Ke, bS as Xe, a$ as je, a_ as qe, b5 as Je, bK as Qe, bP as Ye, am as Ze, b6 as $e, bV as as, aX as es, aZ as ss, b1 as ts, b2 as is, c as os, as as rs, z as ns, i as ls, an as Ss, u as ds, aI as bs, aJ as gs, aK as Cs, aL as us, bJ as cs, aQ as ms, aR as Fs, aN as Ps, aO as ps, Z as Ts, Y as hs, a2 as Is, a1 as Ms, aS as Es, b7 as fs, bT as As, bR as Ls, bQ as Rs } from "./experimental-nzuHu9re.js";
|
|
2
2
|
import { eb as Bs, eO as Ds, eN as _s, e_ as ks, r as vs, eL as Os, cG as Ws, ck as Hs, cD as Ns, eG as xs, cq as Vs, cq as Gs, cn as ws, eH as Us, cJ as zs, er as Ks, cK as Xs, f1 as js, eM as qs, eW as Js, eX as Qs, ea as Ys, e$ as Zs, k as $s, ec as at, d4 as et, eK as st, dT as tt, eP as it, T as ot, h as rt, co as nt, eY as lt, f2 as St, eZ as dt, f0 as bt, eV as gt, eS as Ct, eU as ut, eQ as ct, eI as mt, eJ as Ft, eC as Pt, eT as pt, eR as Tt, dV as ht } from "./F0CanvasPanel-CqHQYY7O.js";
|
|
3
3
|
import { aR as Mt, aS as Et, al as ft, am as At, aj as Lt, aw as Rt, t as yt, an as Bt, b0 as Dt, as as _t, a$ as kt, av as vt, ak as Ot, aP as Wt, ax as Ht, b2 as Nt, b1 as xt, aF as Vt, aG as Gt, ay as wt, aK as Ut, F as zt, ai as Kt, aM as Xt, aI as jt, aJ as qt, aD as Jt, aB as Qt, b6 as Yt, aC as Zt, aN as $t, aO as ai, ao as ei, b3 as si, b4 as ti, aE as ii, aQ as oi, aY as ri, O as ni, a_ as li, ap as Si, b8 as di, ar as bi, at as gi, aK as Ci, b5 as ui, aL as ci, aH as mi, b7 as Fi, aq as Pi, W as pi, au as Ti, ah as hi, af as Ii, ag as Mi, aV as Ei, aW as fi, aT as Ai, b9 as Li, aZ as Ri, aA as yi, az as Bi, u as Di, z as _i, aU as ki, aX as vi, _ as Oi } from "./MapProvider-DQ09_kIy.js";
|
|
4
4
|
import { b as Hi, e as Ni, i as xi, g as Vi, h as Gi, a as wi, R as Ui, l as zi, f as Ki, j as Xi, k as ji, u as qi } from "./F0Map-JM3oeRpm.js";
|
package/dist/f0.d.ts
CHANGED
|
@@ -22684,9 +22684,11 @@ declare module "@tiptap/core" {
|
|
|
22684
22684
|
|
|
22685
22685
|
declare module "@tiptap/core" {
|
|
22686
22686
|
interface Commands<ReturnType> {
|
|
22687
|
-
|
|
22688
|
-
|
|
22689
|
-
|
|
22687
|
+
enhanceHighlight: {
|
|
22688
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
22689
|
+
placeholder?: string;
|
|
22690
|
+
}) => ReturnType;
|
|
22691
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
22690
22692
|
};
|
|
22691
22693
|
}
|
|
22692
22694
|
}
|
|
@@ -22694,11 +22696,9 @@ declare module "@tiptap/core" {
|
|
|
22694
22696
|
|
|
22695
22697
|
declare module "@tiptap/core" {
|
|
22696
22698
|
interface Commands<ReturnType> {
|
|
22697
|
-
|
|
22698
|
-
|
|
22699
|
-
|
|
22700
|
-
}) => ReturnType;
|
|
22701
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
22699
|
+
fontSize: {
|
|
22700
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
22701
|
+
unsetFontSize: () => ReturnType;
|
|
22702
22702
|
};
|
|
22703
22703
|
}
|
|
22704
22704
|
}
|
|
@@ -1594,9 +1594,11 @@ declare module "@tiptap/core" {
|
|
|
1594
1594
|
|
|
1595
1595
|
declare module "@tiptap/core" {
|
|
1596
1596
|
interface Commands<ReturnType> {
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1597
|
+
enhanceHighlight: {
|
|
1598
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
1599
|
+
placeholder?: string;
|
|
1600
|
+
}) => ReturnType;
|
|
1601
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
1600
1602
|
};
|
|
1601
1603
|
}
|
|
1602
1604
|
}
|
|
@@ -1604,11 +1606,9 @@ declare module "@tiptap/core" {
|
|
|
1604
1606
|
|
|
1605
1607
|
declare module "@tiptap/core" {
|
|
1606
1608
|
interface Commands<ReturnType> {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
}) => ReturnType;
|
|
1611
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
1609
|
+
fontSize: {
|
|
1610
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
1611
|
+
unsetFontSize: () => ReturnType;
|
|
1612
1612
|
};
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|