@factorialco/f0-react 1.315.0 → 1.316.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.
@@ -2615,9 +2615,15 @@ declare type DropdownInternalProps = {
2615
2615
  align?: "start" | "end" | "center";
2616
2616
  open?: boolean;
2617
2617
  onOpenChange?: (open: boolean) => void;
2618
+ label?: string;
2618
2619
  } & DataAttributes_2;
2619
2620
 
2620
- export declare type DropdownItem = DropdownItemObject | DropdownItemSeparator;
2621
+ export declare type DropdownItem = DropdownItemObject | DropdownItemSeparator | DropdownItemLabel;
2622
+
2623
+ export declare type DropdownItemLabel = {
2624
+ type: "label";
2625
+ text: string;
2626
+ };
2621
2627
 
2622
2628
  export declare type DropdownItemObject = Pick<NavigationItem, "label" | "href"> & {
2623
2629
  type?: "item";
@@ -6449,28 +6455,11 @@ declare global {
6449
6455
  }
6450
6456
  }
6451
6457
 
6452
- declare module "gridstack" {
6453
- interface GridStackWidget {
6454
- id?: string;
6455
- allowedSizes?: Array<{
6456
- w: number;
6457
- h: number;
6458
- }>;
6459
- meta?: Record<string, unknown>;
6460
- }
6461
- interface GridStackNode {
6462
- allowedSizes?: Array<{
6463
- w: number;
6464
- h: number;
6465
- }>;
6466
- }
6467
- }
6468
-
6469
6458
 
6470
6459
  declare module "@tiptap/core" {
6471
6460
  interface Commands<ReturnType> {
6472
- aiBlock: {
6473
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
6461
+ liveCompanion: {
6462
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
6474
6463
  };
6475
6464
  }
6476
6465
  }
@@ -6478,8 +6467,8 @@ declare module "@tiptap/core" {
6478
6467
 
6479
6468
  declare module "@tiptap/core" {
6480
6469
  interface Commands<ReturnType> {
6481
- liveCompanion: {
6482
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
6470
+ aiBlock: {
6471
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
6483
6472
  };
6484
6473
  }
6485
6474
  }
@@ -6493,9 +6482,21 @@ declare module "@tiptap/core" {
6493
6482
  }
6494
6483
  }
6495
6484
 
6496
-
6497
- declare namespace Calendar {
6498
- var displayName: string;
6485
+ declare module "gridstack" {
6486
+ interface GridStackWidget {
6487
+ id?: string;
6488
+ allowedSizes?: Array<{
6489
+ w: number;
6490
+ h: number;
6491
+ }>;
6492
+ meta?: Record<string, unknown>;
6493
+ }
6494
+ interface GridStackNode {
6495
+ allowedSizes?: Array<{
6496
+ w: number;
6497
+ h: number;
6498
+ }>;
6499
+ }
6499
6500
  }
6500
6501
 
6501
6502
 
@@ -6506,3 +6507,8 @@ declare module "@tiptap/core" {
6506
6507
  };
6507
6508
  }
6508
6509
  }
6510
+
6511
+
6512
+ declare namespace Calendar {
6513
+ var displayName: string;
6514
+ }
@@ -1,5 +1,5 @@
1
- import { bN as Xm, bO as gA, bP as $c, bQ as vA, bR as yA, bS as Ym, bT as p7, bU as Lo, az as d0, bV as Wr, bW as u0, bX as To, bY as Af, aD as bi, bZ as ol, b_ as Qm, b$ as xA, e as xo, c0 as zc, c1 as kA, c2 as wA, c3 as bA, c4 as CA, c5 as e3, c6 as m7, c7 as g7, c8 as _A, c9 as SA, ca as EA, d as ua, cb as t3, cc as Mf, cd as LA, ce as v7, cf as n3, cg as i3, ch as TA, ci as AA, cj as h0, aM as y7, ck as r3, cl as MA, cm as x7, cn as k7, co as M5, cp as Nf, cq as NA, cr as OA, cs as FA, ct as Nh, cu as DA, cv as IA, cw as RA, m as ge, cx as w7, cy as PA, cz as Of, l as Ua, cA as jc, z as k1, cB as b7, x as fd, cC as BA, n as Oh, cD as HA, q as VA, r as dd, i as $A, H as zA, J as jA, t as N5, cE as WA, G as O5, cF as UA, N as qA, cG as C7, cH as _7, cI as GA, aE as Te, F as $e, c as O, cJ as Ff, cK as o3, cL as s3, cM as qn, cN as Vn, cO as Df, cP as Ml, cQ as w1, bJ as Nl, b as Ze, cR as ko, A as ft, bc as lo, B as Dt, cS as KA, cT as a3, a as In, cU as F5, cV as ZA, cW as JA, cX as XA, aA as S7, aB as E7, cY as L7, cZ as T7, c_ as As, c$ as YA, d0 as D5, d1 as QA, d2 as eM, d3 as tM, w as Kt, S as ve, d4 as p0, d5 as Ci, d6 as A7, as as Oi, at as nM, d7 as M7, D as l3, bd as sl, d8 as i2, d9 as N7, da as O7, db as F7, dc as D7, dd as I7, aq as $t, de as R7, df as P7, dg as B7, dh as H7, di as V7, dj as iM, dk as rM, dl as m0, dm as $7, C as oM, bp as sM, dn as Fi, ay as Xs, g as hn, aw as c3, aC as z7, dp as aM, dq as b1, dr as lM, f as ha, ds as Ys, dt as j7, du as cM, dv as I5, dw as al, dx as f3, dy as If, dz as C1, dA as fM, dB as W7, dC as dM, dD as d3, dE as Wc, dF as Di, dG as uM, dH as hM, dI as Vo, dJ as Fh, dK as pM, dL as fc, dM as Fa, dN as mM, dO as U7, dP as gM, dQ as vM, dR as yM, dS as xM, O as ni, U as kM, Z as wM, _ as bM, a0 as CM, a5 as R5, a6 as P5, a7 as _M, a8 as SM, dT as EM, dU as Dh, dV as qa, dW as u3, dX as LM, dY as TM, dZ as AM, ba as MM, d_ as NM, bK as Rf, b9 as _1, d$ as r2, e0 as q7, h as Pi, e1 as g0, b6 as wo, e2 as OM, e3 as FM, e4 as G7, b4 as yr, e5 as DM, e6 as K7, e7 as Z7, e8 as Ol, e9 as h3, ea as IM, eb as J7, ec as RM, ed as PM, ao as p3, ap as m3, ar as g3, ee as X7, ef as BM, eg as HM, eh as VM, ei as Y7, aI as $M, ej as o2, ek as Q7, b1 as S1, el as zM, em as jM, en as WM, eo as UM, ep as qM, a_ as s2, bM as GM, bL as KM, eq as ex, ax as rs, er as ZM, es as JM, bj as v0, b2 as v3, aX as Pf, et as tx, b5 as XM, aZ as nx, aV as ix, eu as YM, ev as rx, ew as QM, aY as Fl, a$ as ox, aK as eN, ex as tN, br as nN, bs as iN, bz as y0, bx as y3, aG as x0, ey as k0, ez as w0, aH as b0, eA as x3, by as sx, b8 as k3, eB as rN, bD as oN, eC as a2, eD as sN, eE as E1, eF as aN, bt as L1, bE as lN, eG as cN, bC as ax, eH as fN, bB as dN, bA as uN, eI as hN, eJ as pN, eK as w3, eL as mN, eM as gN, eN as vN, eO as yN, eP as xN, eQ as kN, eR as wN, eS as bN, u as lx, bf as CN, bw as _N, eT as SN, eU as EN, eV as LN, b0 as TN, eW as Bf, eX as b3, b7 as C3, eY as _3, eZ as Hf, e_ as AN, e$ as cx, f0 as MN, f1 as NN, bF as fx, f2 as dx, bh as ux, f3 as ON, f4 as FN, f5 as DN, aJ as IN, aa as RN, ab as PN, ad as BN, ae as HN, af as VN, ac as $N, f6 as B5, f7 as zN, f8 as jN, K as WN, f9 as hx, fa as UN } from "./hooks-BIWBS-V4.js";
2
- import { aL as U4e, fd as q4e, fe as G4e, fc as K4e, b3 as Z4e, bb as J4e, fb as X4e, be as Y4e } from "./hooks-BIWBS-V4.js";
1
+ import { bN as Xm, bO as gA, bP as $c, bQ as vA, bR as yA, bS as Ym, bT as p7, bU as Lo, az as d0, bV as Wr, bW as u0, bX as To, bY as Af, aD as bi, bZ as ol, b_ as Qm, b$ as xA, e as xo, c0 as zc, c1 as kA, c2 as wA, c3 as bA, c4 as CA, c5 as e3, c6 as m7, c7 as g7, c8 as _A, c9 as SA, ca as EA, d as ua, cb as t3, cc as Mf, cd as LA, ce as v7, cf as n3, cg as i3, ch as TA, ci as AA, cj as h0, aM as y7, ck as r3, cl as MA, cm as x7, cn as k7, co as M5, cp as Nf, cq as NA, cr as OA, cs as FA, ct as Nh, cu as DA, cv as IA, cw as RA, m as ge, cx as w7, cy as PA, cz as Of, l as Ua, cA as jc, z as k1, cB as b7, x as fd, cC as BA, n as Oh, cD as HA, q as VA, r as dd, i as $A, H as zA, J as jA, t as N5, cE as WA, G as O5, cF as UA, N as qA, cG as C7, cH as _7, cI as GA, aE as Te, F as $e, c as O, cJ as Ff, cK as o3, cL as s3, cM as qn, cN as Vn, cO as Df, cP as Ml, cQ as w1, bJ as Nl, b as Ze, cR as ko, A as ft, bc as lo, B as Dt, cS as KA, cT as a3, a as In, cU as F5, cV as ZA, cW as JA, cX as XA, aA as S7, aB as E7, cY as L7, cZ as T7, c_ as As, c$ as YA, d0 as D5, d1 as QA, d2 as eM, d3 as tM, w as Kt, S as ve, d4 as p0, d5 as Ci, d6 as A7, as as Oi, at as nM, d7 as M7, D as l3, bd as sl, d8 as i2, d9 as N7, da as O7, db as F7, dc as D7, dd as I7, aq as $t, de as R7, df as P7, dg as B7, dh as H7, di as V7, dj as iM, dk as rM, dl as m0, dm as $7, C as oM, bp as sM, dn as Fi, ay as Xs, g as hn, aw as c3, aC as z7, dp as aM, dq as b1, dr as lM, f as ha, ds as Ys, dt as j7, du as cM, dv as I5, dw as al, dx as f3, dy as If, dz as C1, dA as fM, dB as W7, dC as dM, dD as d3, dE as Wc, dF as Di, dG as uM, dH as hM, dI as Vo, dJ as Fh, dK as pM, dL as fc, dM as Fa, dN as mM, dO as U7, dP as gM, dQ as vM, dR as yM, dS as xM, O as ni, U as kM, Z as wM, _ as bM, a0 as CM, a5 as R5, a6 as P5, a7 as _M, a8 as SM, dT as EM, dU as Dh, dV as qa, dW as u3, dX as LM, dY as TM, dZ as AM, ba as MM, d_ as NM, bK as Rf, b9 as _1, d$ as r2, e0 as q7, h as Pi, e1 as g0, b6 as wo, e2 as OM, e3 as FM, e4 as G7, b4 as yr, e5 as DM, e6 as K7, e7 as Z7, e8 as Ol, e9 as h3, ea as IM, eb as J7, ec as RM, ed as PM, ao as p3, ap as m3, ar as g3, ee as X7, ef as BM, eg as HM, eh as VM, ei as Y7, aI as $M, ej as o2, ek as Q7, b1 as S1, el as zM, em as jM, en as WM, eo as UM, ep as qM, a_ as s2, bM as GM, bL as KM, eq as ex, ax as rs, er as ZM, es as JM, bj as v0, b2 as v3, aX as Pf, et as tx, b5 as XM, aZ as nx, aV as ix, eu as YM, ev as rx, ew as QM, aY as Fl, a$ as ox, aK as eN, ex as tN, br as nN, bs as iN, bz as y0, bx as y3, aG as x0, ey as k0, ez as w0, aH as b0, eA as x3, by as sx, b8 as k3, eB as rN, bD as oN, eC as a2, eD as sN, eE as E1, eF as aN, bt as L1, bE as lN, eG as cN, bC as ax, eH as fN, bB as dN, bA as uN, eI as hN, eJ as pN, eK as w3, eL as mN, eM as gN, eN as vN, eO as yN, eP as xN, eQ as kN, eR as wN, eS as bN, u as lx, bf as CN, bw as _N, eT as SN, eU as EN, eV as LN, b0 as TN, eW as Bf, eX as b3, b7 as C3, eY as _3, eZ as Hf, e_ as AN, e$ as cx, f0 as MN, f1 as NN, bF as fx, f2 as dx, bh as ux, f3 as ON, f4 as FN, f5 as DN, aJ as IN, aa as RN, ab as PN, ad as BN, ae as HN, af as VN, ac as $N, f6 as B5, f7 as zN, f8 as jN, K as WN, f9 as hx, fa as UN } from "./hooks-BTk8LRGv.js";
2
+ import { aL as U4e, fd as q4e, fe as G4e, fc as K4e, b3 as Z4e, bb as J4e, fb as X4e, be as Y4e } from "./hooks-BTk8LRGv.js";
3
3
  import { jsxs as x, jsx as f, Fragment as Ge } from "react/jsx-runtime";
4
4
  import * as ke from "react";
5
5
  import xe, { forwardRef as P, createContext as si, useRef as we, useState as K, useCallback as Xe, useContext as Gn, useMemo as ye, useEffect as Ee, PureComponent as qN, useId as gs, useLayoutEffect as vs, useTransition as GN, memo as Vf, Fragment as Hr, isValidElement as px, cloneElement as S3, createElement as l2, useDebugValue as mx, createRef as KN, version as H5, useImperativeHandle as C0, Children as gx } from "react";
@@ -23936,7 +23936,7 @@ Cb.displayName = "BreadcrumbContent";
23936
23936
  const SK = ({ title: t, description: e, module: n, otherActions: i }) => {
23937
23937
  const { onClose: r, hasTabs: o } = A7(), s = () => f("div", {
23938
23938
  className: "h-4 w-px self-center bg-f1-background-secondary"
23939
- }), a = i?.filter((d) => d.type !== "separator") ?? [], l = () => !a.length || !i ? null : a.length <= 2 ? f("div", {
23939
+ }), a = i?.filter((d) => d.type !== "separator" && d.type !== "label") ?? [], l = () => !a.length || !i ? null : a.length <= 2 ? f("div", {
23940
23940
  className: "flex flex-row gap-2",
23941
23941
  children: a.map((d) => f(Dt, {
23942
23942
  variant: "outline",
@@ -38998,7 +38998,7 @@ const Wte = ({ lanes: t, title: e, description: n, avatar: i, metadata: r, onMov
38998
38998
  className: O("pointer-events-auto", r),
38999
38999
  children: f(hn, {
39000
39000
  align: n,
39001
- items: t.map((a) => a.type === "separator" ? a : {
39001
+ items: t.map((a) => a.type === "separator" || a.type === "label" ? a : {
39002
39002
  ...a,
39003
39003
  type: "item"
39004
39004
  }),
package/dist/f0.d.ts CHANGED
@@ -1967,7 +1967,12 @@ export declare type DragPayload<T = unknown> = {
1967
1967
  data?: T;
1968
1968
  };
1969
1969
 
1970
- declare type DropdownItem = DropdownItemObject | DropdownItemSeparator;
1970
+ declare type DropdownItem = DropdownItemObject | DropdownItemSeparator | DropdownItemLabel;
1971
+
1972
+ declare type DropdownItemLabel = {
1973
+ type: "label";
1974
+ text: string;
1975
+ };
1971
1976
 
1972
1977
  declare type DropdownItemObject = Pick<NavigationItem, "label" | "href"> & {
1973
1978
  type?: "item";
@@ -4924,28 +4929,11 @@ declare global {
4924
4929
  }
4925
4930
  }
4926
4931
 
4927
- declare module "gridstack" {
4928
- interface GridStackWidget {
4929
- id?: string;
4930
- allowedSizes?: Array<{
4931
- w: number;
4932
- h: number;
4933
- }>;
4934
- meta?: Record<string, unknown>;
4935
- }
4936
- interface GridStackNode {
4937
- allowedSizes?: Array<{
4938
- w: number;
4939
- h: number;
4940
- }>;
4941
- }
4942
- }
4943
-
4944
4932
 
4945
4933
  declare module "@tiptap/core" {
4946
4934
  interface Commands<ReturnType> {
4947
- aiBlock: {
4948
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
4935
+ liveCompanion: {
4936
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
4949
4937
  };
4950
4938
  }
4951
4939
  }
@@ -4953,8 +4941,8 @@ declare module "@tiptap/core" {
4953
4941
 
4954
4942
  declare module "@tiptap/core" {
4955
4943
  interface Commands<ReturnType> {
4956
- liveCompanion: {
4957
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
4944
+ aiBlock: {
4945
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
4958
4946
  };
4959
4947
  }
4960
4948
  }
@@ -4968,9 +4956,21 @@ declare module "@tiptap/core" {
4968
4956
  }
4969
4957
  }
4970
4958
 
4971
-
4972
- declare namespace Calendar {
4973
- var displayName: string;
4959
+ declare module "gridstack" {
4960
+ interface GridStackWidget {
4961
+ id?: string;
4962
+ allowedSizes?: Array<{
4963
+ w: number;
4964
+ h: number;
4965
+ }>;
4966
+ meta?: Record<string, unknown>;
4967
+ }
4968
+ interface GridStackNode {
4969
+ allowedSizes?: Array<{
4970
+ w: number;
4971
+ h: number;
4972
+ }>;
4973
+ }
4974
4974
  }
4975
4975
 
4976
4976
 
@@ -4981,3 +4981,8 @@ declare module "@tiptap/core" {
4981
4981
  };
4982
4982
  }
4983
4983
  }
4984
+
4985
+
4986
+ declare namespace Calendar {
4987
+ var displayName: string;
4988
+ }
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
1
- import { L as _n, C as Ur, c as U, a as Di, u as En, m as Ri, i as Dn, B as Si, O as jr, p as Kr, w as Rn, S as xe, b as Xr, F as Sn, d as Yr, A as Vr, D as qr, e as Jr, f as we, g as Zr, h as me, j as qi, k as Qr, l as di, n as lt, o as es, q as ts, r as At, s as Nn, E as is, t as zt, v as ns, x as rs, y as ss, z as os, G as Xe, H as An, I as as, J as ls, K as cs, M as Ji, N as ds, P as On, Q as us, R as kn, X as Tn, Y as vi, T as hs, U as zn, V as fs, W as gs, Z as ps, _ as ms, $ as vs, a0 as ys, a1 as bs, a2 as xs, a3 as Zi, a4 as ws, a5 as ct, a6 as ui, a7 as Cs, a8 as _s, a9 as Es, aa as Ds, ab as Rs, ac as Ss, ad as Ns, ae as As, af as Os, ag as ks, ah as Ts, ai as Qi, aj as zs, ak as Ps, al as Pn, am as Ms, an as Mt, ao as Mn, ap as Ln, aq as Ls, ar as In, as as Hn, at as Bn, au as Is, av as Hs, aw as Fn, ax as Bs, ay as Fs, az as Ws, aA as Gs, aB as $s, aC as Us, aD as Wn, aE as qe, aF as Gn, aG as js, aH as Ks, aI as en, aJ as Xs, aK as $n, aL as Ys, aM as Vs, aN as qs, aO as Js, aP as Zs, aQ as Qs, aR as eo, aS as to, aT as io, aU as no, aV as ro, aW as so } from "./hooks-BIWBS-V4.js";
2
- import { bo as ad, bB as ld, bK as cd, aX as dd, aY as ud, aZ as hd, a_ as fd, a$ as gd, b0 as pd, b1 as md, b2 as vd, b4 as yd, b5 as bd, b6 as xd, b7 as wd, b8 as Cd, b9 as _d, ba as Ed, bG as Dd, bc as Rd, bd as Sd, bh as Nd, bi as Ad, bj as Od, bl as kd, bm as Td, bn as zd, bq as Pd, bf as Md, bp as Ld, bg as Id, bk as Hd, bH as Bd, bA as Fd, bv as Wd, by as Gd, bu as $d, bL as Ud, bt as jd, bs as Kd, b3 as Xd, bb as Yd, be as Vd, br as qd, bw as Jd, bC as Zd, bD as Qd, bE as eu, bM as tu, bx as iu, bF as nu, bJ as ru, bz as su, bI as ou } from "./hooks-BIWBS-V4.js";
1
+ import { L as _n, C as Ur, c as U, a as Di, u as En, m as Ri, i as Dn, B as Si, O as jr, p as Kr, w as Rn, S as xe, b as Xr, F as Sn, d as Yr, A as Vr, D as qr, e as Jr, f as we, g as Zr, h as me, j as qi, k as Qr, l as di, n as lt, o as es, q as ts, r as At, s as Nn, E as is, t as zt, v as ns, x as rs, y as ss, z as os, G as Xe, H as An, I as as, J as ls, K as cs, M as Ji, N as ds, P as On, Q as us, R as kn, X as Tn, Y as vi, T as hs, U as zn, V as fs, W as gs, Z as ps, _ as ms, $ as vs, a0 as ys, a1 as bs, a2 as xs, a3 as Zi, a4 as ws, a5 as ct, a6 as ui, a7 as Cs, a8 as _s, a9 as Es, aa as Ds, ab as Rs, ac as Ss, ad as Ns, ae as As, af as Os, ag as ks, ah as Ts, ai as Qi, aj as zs, ak as Ps, al as Pn, am as Ms, an as Mt, ao as Mn, ap as Ln, aq as Ls, ar as In, as as Hn, at as Bn, au as Is, av as Hs, aw as Fn, ax as Bs, ay as Fs, az as Ws, aA as Gs, aB as $s, aC as Us, aD as Wn, aE as qe, aF as Gn, aG as js, aH as Ks, aI as en, aJ as Xs, aK as $n, aL as Ys, aM as Vs, aN as qs, aO as Js, aP as Zs, aQ as Qs, aR as eo, aS as to, aT as io, aU as no, aV as ro, aW as so } from "./hooks-BTk8LRGv.js";
2
+ import { bo as ad, bB as ld, bK as cd, aX as dd, aY as ud, aZ as hd, a_ as fd, a$ as gd, b0 as pd, b1 as md, b2 as vd, b4 as yd, b5 as bd, b6 as xd, b7 as wd, b8 as Cd, b9 as _d, ba as Ed, bG as Dd, bc as Rd, bd as Sd, bh as Nd, bi as Ad, bj as Od, bl as kd, bm as Td, bn as zd, bq as Pd, bf as Md, bp as Ld, bg as Id, bk as Hd, bH as Bd, bA as Fd, bv as Wd, by as Gd, bu as $d, bL as Ud, bt as jd, bs as Kd, b3 as Xd, bb as Yd, be as Vd, br as qd, bw as Jd, bC as Zd, bD as Qd, bE as eu, bM as tu, bx as iu, bF as nu, bJ as ru, bz as su, bI as ou } from "./hooks-BTk8LRGv.js";
3
3
  import { jsx as f, jsxs as P, Fragment as qt } from "react/jsx-runtime";
4
4
  import M, { forwardRef as oe, useRef as L, useImperativeHandle as oo, Children as Lt, createContext as Ae, useContext as _e, useState as W, useMemo as H, useEffect as I, useCallback as j, useLayoutEffect as yi, createElement as tn, isValidElement as Un, Fragment as ao, memo as lo, useReducer as co, cloneElement as uo, PureComponent as ho } from "react";
5
5
  import { createPortal as jn, unstable_batchedUpdates as Ot } from "react-dom";