@factorialco/f0-react 1.267.0 → 1.268.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.
@@ -4217,7 +4217,11 @@ declare interface PrimaryActionButton extends PrimaryAction {
4217
4217
  onClick: () => void;
4218
4218
  }
4219
4219
 
4220
- export declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "onClick" | "label" | "icon">;
4220
+ export declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "label" | "icon"> & {
4221
+ loading?: boolean;
4222
+ onClick?: () => void | Promise<void>;
4223
+ disabled?: boolean;
4224
+ };
4221
4225
 
4222
4226
  /**
4223
4227
  * Defines the structure and configuration of the primary action that can be performed on a collection.
@@ -4580,9 +4584,12 @@ export declare type SecondaryActionGroup = {
4580
4584
  * Defines the structure and configuration of secondary actions that can be performed on a collection.
4581
4585
  * @returns An array of actions
4582
4586
  */
4583
- export declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "description" | "critical" | "onClick"> & {
4587
+ export declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "description" | "critical"> & {
4584
4588
  enabled?: boolean;
4585
4589
  hideLabelWhenExpanded?: boolean;
4590
+ loading?: boolean;
4591
+ disabled?: boolean;
4592
+ onClick?: () => void | Promise<void>;
4586
4593
  };
4587
4594
 
4588
4595
  export declare type SecondaryActionsDefinition = {
@@ -4690,6 +4697,7 @@ export declare type SelectProps<T extends string, R = unknown> = {
4690
4697
  className?: string;
4691
4698
  selectContentClassName?: string;
4692
4699
  actions?: Action[];
4700
+ portalContainer?: HTMLElement | null;
4693
4701
  } & ({
4694
4702
  source: DataSourceDefinition<ResolvedRecordType<R>, FiltersDefinition, SortingsDefinition, GroupingDefinition<ResolvedRecordType<R>>>;
4695
4703
  mapOptions: (item: ResolvedRecordType<R>) => SelectItemProps<T, ResolvedRecordType<R>>;
@@ -5735,11 +5743,6 @@ declare module "@tiptap/core" {
5735
5743
  }
5736
5744
 
5737
5745
 
5738
- declare namespace Calendar {
5739
- var displayName: string;
5740
- }
5741
-
5742
-
5743
5746
  declare module "@tiptap/core" {
5744
5747
  interface Commands<ReturnType> {
5745
5748
  moodTracker: {
@@ -5747,3 +5750,8 @@ declare module "@tiptap/core" {
5747
5750
  };
5748
5751
  }
5749
5752
  }
5753
+
5754
+
5755
+ declare namespace Calendar {
5756
+ var displayName: string;
5757
+ }
@@ -1,5 +1,5 @@
1
- import { bD as _p, bE as td, bF as W_, bG as q_, bH as Sp, ad as p8, bI as zo, aq as Df, bJ as Vi, bK as Rf, bL as hr, bM as wl, av as Tn, bN as ks, bO as Lp, bP as U_, bQ as Vs, bR as Va, bS as Ep, bT as G_, bU as K_, bV as Mp, bW as xl, bX as Np, bY as Ap, bZ as Z_, b_ as Ff, aE as m8, b$ as Tp, c0 as J_, c1 as g8, c2 as y8, c3 as V3, c4 as Cl, c5 as Y_, c6 as X_, c7 as Q_, c8 as Y1, c9 as eS, ca as tS, cb as nS, cc as te, cd as v8, ce as iS, f as ls, cf as ja, j as nd, cg as k8, h as Jl, ch as rS, L as X1, ci as oS, A as sS, i as Yl, c as aS, l as lS, G as cS, g as j3, cj as dS, k as W3, o as fS, ck as b8, cl as w8, cm as uS, cn as js, ai as hS, aw as he, ap as _e, co as _l, O as Op, cp as Ip, P as sn, cq as Sl, cr as Ws, cs as id, ct as en, bz as qs, cu as _h, ab as Be, cv as $o, cw as Je, cx as pS, Q as T, b3 as ir, au as ct, a$ as Pf, ac as x8, cy as Dp, cz as mS, cA as gS, cB as yS, ar as C8, as as _8, cC as S8, cD as L8, cE as ro, cF as vS, cG as q3, cH as kS, cI as bS, cJ as wS, cK as xt, al as kn, cL as X, cM as Bf, cN as Dn, a7 as si, a8 as xS, cO as E8, cP as Rp, cQ as bs, cR as Sh, cS as M8, cT as N8, cU as A8, cV as T8, cW as O8, a5 as wt, cX as I8, cY as CS, cZ as _S, c_ as SS, c$ as LS, d0 as ES, d1 as MS, d2 as NS, d3 as AS, ak as TS, be as OS, d4 as jn, ao as So, d5 as mn, am as Fp, at as Lh, d6 as U3, d7 as rd, d8 as IS, a9 as Us, d9 as Lo, da as D8, db as bi, s as DS, w as RS, x as FS, z as PS, J as G3, K as K3, M as BS, N as zS, dc as $S, dd as HS, de as Gs, df as Pp, aY as Bi, a_ as Eo, dg as VS, dh as R8, di as F8, dj as jS, dk as WS, a3 as Bp, a4 as zp, a6 as $p, R as qn, dl as P8, dm as qS, dn as US, dp as GS, dq as B8, aA as KS, dr as Eh, ds as z8, aV as od, dt as ZS, du as JS, dv as YS, dw as XS, dx as QS, bA as zf, aS as Mh, bC as eL, bB as tL, dy as $8, an as $r, dz as nL, dA as iL, b8 as $f, aW as Hp, aP as Ll, dB as Vp, dC as H8, aZ as rL, aR as V8, aN as j8, dD as oL, dE as W8, dF as sL, aQ as Ks, aT as q8, aC as aL, dG as lL, bg as cL, bh as dL, bo as Hf, bm as jp, ay as Vf, dH as jf, dI as Wf, az as qf, dJ as Wp, bn as U8, b0 as qp, dK as fL, bt as uL, dL as Nh, dM as hL, dN as sd, dO as pL, bi as ad, bu as mL, dP as gL, bs as G8, dQ as yL, br as vL, bq as kL, dR as bL, b1 as Ah, dS as K8, dT as wL, af as Up, dU as xL, dV as CL, ag as _L, ah as SL, dW as LL, dX as EL, dY as ML, dZ as NL, d_ as Z8, b4 as AL, bl as TL, d$ as OL, e0 as IL, e1 as DL, aU as RL, e2 as El, e3 as Gp, e4 as Kp, e5 as Ml, e6 as FL, e7 as J8, e8 as PL, e9 as Z3, ea as BL, bv as Y8, eb as X8, b5 as Q8, ec as zL, ed as $L, ee as HL, aB as VL, _ as jL, T as WL, V as qL, W as UL, Z as GL, U as KL, ef as J3, eg as ZL, eh as JL, m as YL, ei as ey, ej as XL } from "./hooks-ZewWGMzf.js";
2
- import { aD as Dfe, ek as Rfe, en as Ffe, eo as Pfe, em as Bfe, aX as zfe, b2 as $fe, el as Hfe } from "./hooks-ZewWGMzf.js";
1
+ import { bD as _p, bE as td, bF as W_, bG as q_, bH as Sp, ad as p8, bI as zo, aq as Df, bJ as Vi, bK as Rf, bL as hr, bM as wl, av as Tn, bN as ks, bO as Lp, bP as U_, bQ as Vs, bR as Va, bS as Ep, bT as G_, bU as K_, bV as Mp, bW as xl, bX as Np, bY as Ap, bZ as Z_, b_ as Ff, aE as m8, b$ as Tp, c0 as J_, c1 as g8, c2 as y8, c3 as V3, c4 as Cl, c5 as Y_, c6 as X_, c7 as Q_, c8 as Y1, c9 as eS, ca as tS, cb as nS, cc as te, cd as v8, ce as iS, f as ls, cf as ja, j as nd, cg as k8, h as Jl, ch as rS, L as X1, ci as oS, A as sS, i as Yl, c as aS, l as lS, G as cS, g as j3, cj as dS, k as W3, o as fS, ck as b8, cl as w8, cm as uS, cn as js, ai as hS, aw as he, ap as _e, co as _l, O as Op, cp as Ip, P as sn, cq as Sl, cr as Ws, cs as id, ct as en, bz as qs, cu as _h, ab as Be, cv as $o, cw as Je, cx as pS, Q as T, b3 as ir, au as ct, a$ as Pf, ac as x8, cy as Dp, cz as mS, cA as gS, cB as yS, ar as C8, as as _8, cC as S8, cD as L8, cE as ro, cF as vS, cG as q3, cH as kS, cI as bS, cJ as wS, cK as xt, al as kn, cL as X, cM as Bf, cN as Dn, a7 as si, a8 as xS, cO as E8, cP as Rp, cQ as bs, cR as Sh, cS as M8, cT as N8, cU as A8, cV as T8, cW as O8, a5 as wt, cX as I8, cY as CS, cZ as _S, c_ as SS, c$ as LS, d0 as ES, d1 as MS, d2 as NS, d3 as AS, ak as TS, be as OS, d4 as jn, ao as So, d5 as mn, am as Fp, at as Lh, d6 as U3, d7 as rd, d8 as IS, a9 as Us, d9 as Lo, da as D8, db as bi, s as DS, w as RS, x as FS, z as PS, J as G3, K as K3, M as BS, N as zS, dc as $S, dd as HS, de as Gs, df as Pp, aY as Bi, a_ as Eo, dg as VS, dh as R8, di as F8, dj as jS, dk as WS, a3 as Bp, a4 as zp, a6 as $p, R as qn, dl as P8, dm as qS, dn as US, dp as GS, dq as B8, aA as KS, dr as Eh, ds as z8, aV as od, dt as ZS, du as JS, dv as YS, dw as XS, dx as QS, bA as zf, aS as Mh, bC as eL, bB as tL, dy as $8, an as $r, dz as nL, dA as iL, b8 as $f, aW as Hp, aP as Ll, dB as Vp, dC as H8, aZ as rL, aR as V8, aN as j8, dD as oL, dE as W8, dF as sL, aQ as Ks, aT as q8, aC as aL, dG as lL, bg as cL, bh as dL, bo as Hf, bm as jp, ay as Vf, dH as jf, dI as Wf, az as qf, dJ as Wp, bn as U8, b0 as qp, dK as fL, bt as uL, dL as Nh, dM as hL, dN as sd, dO as pL, bi as ad, bu as mL, dP as gL, bs as G8, dQ as yL, br as vL, bq as kL, dR as bL, b1 as Ah, dS as K8, dT as wL, af as Up, dU as xL, dV as CL, ag as _L, ah as SL, dW as LL, dX as EL, dY as ML, dZ as NL, d_ as Z8, b4 as AL, bl as TL, d$ as OL, e0 as IL, e1 as DL, aU as RL, e2 as El, e3 as Gp, e4 as Kp, e5 as Ml, e6 as FL, e7 as J8, e8 as PL, e9 as Z3, ea as BL, bv as Y8, eb as X8, b5 as Q8, ec as zL, ed as $L, ee as HL, aB as VL, _ as jL, T as WL, V as qL, W as UL, Z as GL, U as KL, ef as J3, eg as ZL, eh as JL, m as YL, ei as ey, ej as XL } from "./hooks-a-1dLRsj.js";
2
+ import { aD as Dfe, ek as Rfe, en as Ffe, eo as Pfe, em as Bfe, aX as zfe, b2 as $fe, el as Hfe } from "./hooks-a-1dLRsj.js";
3
3
  import { jsxs as k, jsx as d, Fragment as De } from "react/jsx-runtime";
4
4
  import { useCopilotChatInternal as Uf, useCopilotContext as QL, useCopilotAction as Y3, CopilotKit as eE } from "@copilotkit/react-core";
5
5
  import { Markdown as tE, useChatContext as nE, CopilotSidebar as iE } from "@copilotkit/react-ui";
@@ -27330,7 +27330,9 @@ const hU = (t) => Array.isArray(t) ? t.every((e) => uU(e)) ? t : [{
27330
27330
  onClick: i[0].onClick,
27331
27331
  icon: i[0].icon,
27332
27332
  variant: "default",
27333
- label: i[0].label
27333
+ label: i[0].label,
27334
+ loading: i[0].loading,
27335
+ disabled: i[0].disabled
27334
27336
  }) : i.length > 1 && d(Eo, {
27335
27337
  size: "md",
27336
27338
  items: i.map((l, c) => ({
@@ -27348,7 +27350,9 @@ const hU = (t) => Array.isArray(t) ? t.every((e) => uU(e)) ? t : [{
27348
27350
  icon: l.icon,
27349
27351
  variant: "outline",
27350
27352
  hideLabel: l.hideLabelWhenExpanded,
27351
- label: l.label
27353
+ label: l.label,
27354
+ disabled: l.disabled,
27355
+ loading: l.loading
27352
27356
  }, l.label)), o.length > 0 && d(mn, {
27353
27357
  items: o,
27354
27358
  align: "end",
package/dist/f0.d.ts CHANGED
@@ -2925,7 +2925,11 @@ declare type PrevNextDateNavigation = {
2925
2925
  next: DateRange | false;
2926
2926
  };
2927
2927
 
2928
- declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "onClick" | "label" | "icon">;
2928
+ declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "label" | "icon"> & {
2929
+ loading?: boolean;
2930
+ onClick?: () => void | Promise<void>;
2931
+ disabled?: boolean;
2932
+ };
2929
2933
 
2930
2934
  /**
2931
2935
  * Defines the structure and configuration of the primary action that can be performed on a collection.
@@ -3180,9 +3184,12 @@ declare type SecondaryActionGroup = {
3180
3184
  * Defines the structure and configuration of secondary actions that can be performed on a collection.
3181
3185
  * @returns An array of actions
3182
3186
  */
3183
- declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "description" | "critical" | "onClick"> & {
3187
+ declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "description" | "critical"> & {
3184
3188
  enabled?: boolean;
3185
3189
  hideLabelWhenExpanded?: boolean;
3190
+ loading?: boolean;
3191
+ disabled?: boolean;
3192
+ onClick?: () => void | Promise<void>;
3186
3193
  };
3187
3194
 
3188
3195
  declare type SecondaryActionsDefinition = {
@@ -3979,11 +3986,6 @@ declare module "@tiptap/core" {
3979
3986
  }
3980
3987
 
3981
3988
 
3982
- declare namespace Calendar {
3983
- var displayName: string;
3984
- }
3985
-
3986
-
3987
3989
  declare module "@tiptap/core" {
3988
3990
  interface Commands<ReturnType> {
3989
3991
  moodTracker: {
@@ -3991,3 +3993,8 @@ declare module "@tiptap/core" {
3991
3993
  };
3992
3994
  }
3993
3995
  }
3996
+
3997
+
3998
+ declare namespace Calendar {
3999
+ var displayName: string;
4000
+ }
package/dist/f0.js CHANGED
@@ -1,5 +1,5 @@
1
- import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as J, c as yt, d as De, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Tt, w as Dt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as E, R as I, T as zt, U as Kt, V as Wt, W as qt, Z as Gt, _ as Vt, $ as Yt, a0 as Be, a1 as Ht, a2 as Z, a3 as Me, a4 as Re, a5 as Ut, a6 as ze, a7 as Ke, a8 as We, a9 as qe, aa as Jt, ab as Ge, ac as Xt, ad as Zt, ae as Qt, af as Se, ag as ie, ah as ea, ai as ta, aj as Ve, ak as aa, al as ra, am as Ye, an as na, ao as oa, ap as ia, aq as sa, ar as la, as as ca, at as ua, au as da, av as He, aw as M, ax as Ue, ay as fa, az as pa, aA as Ce, aB as ma, aC as Je, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Pa, aL as Sa, aM as Ca, aN as Na, aO as Aa } from "./hooks-ZewWGMzf.js";
2
- import { bp as tn, br as an, bA as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aW as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, b1 as bn, bw as gn, b3 as xn, b5 as wn, b6 as Pn, b7 as Sn, b8 as Cn, bb as Nn, bc as An, bd as On, bf as kn, b4 as Ln, be as Tn, ba as Dn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aX as Rn, b2 as zn, b9 as Kn, bg as Wn, bl as qn, bs as Gn, bt as Vn, bu as Yn, bC as Hn, bm as Un, bv as Jn, bz as Xn, bo as Zn, by as Qn } from "./hooks-ZewWGMzf.js";
1
+ import { S as xe, a as mt, f as ne, L as K, b as ht, A as vt, i as J, c as yt, d as De, E as bt, g as X, e as gt, h as xt, C as wt, j as Pt, k as $, l as Fe, u as St, G as Ct, m as Nt, n as we, o as At, p as Ie, q as Ot, B as _e, X as Ee, Y as le, r as kt, s as je, t as Lt, v as Tt, w as Dt, x as Ft, y as It, z as _t, D as Et, F as jt, H as Pe, I as $t, J as W, K as oe, M as Bt, N as Mt, O as Rt, P as $e, Q as E, R as I, T as zt, U as Kt, V as Wt, W as qt, Z as Gt, _ as Vt, $ as Yt, a0 as Be, a1 as Ht, a2 as Z, a3 as Me, a4 as Re, a5 as Ut, a6 as ze, a7 as Ke, a8 as We, a9 as qe, aa as Jt, ab as Ge, ac as Xt, ad as Zt, ae as Qt, af as Se, ag as ie, ah as ea, ai as ta, aj as Ve, ak as aa, al as ra, am as Ye, an as na, ao as oa, ap as ia, aq as sa, ar as la, as as ca, at as ua, au as da, av as He, aw as M, ax as Ue, ay as fa, az as pa, aA as Ce, aB as ma, aC as Je, aD as ha, aE as va, aF as ya, aG as ba, aH as ga, aI as xa, aJ as wa, aK as Pa, aL as Sa, aM as Ca, aN as Na, aO as Aa } from "./hooks-a-1dLRsj.js";
2
+ import { bp as tn, br as an, bA as rn, aP as nn, aQ as on, aR as sn, aS as ln, aT as cn, aU as un, aV as dn, aW as fn, aY as pn, aZ as mn, a_ as hn, a$ as vn, b0 as yn, b1 as bn, bw as gn, b3 as xn, b5 as wn, b6 as Pn, b7 as Sn, b8 as Cn, bb as Nn, bc as An, bd as On, bf as kn, b4 as Ln, be as Tn, ba as Dn, bx as Fn, bq as In, bk as _n, bn as En, bj as jn, bB as $n, bi as Bn, bh as Mn, aX as Rn, b2 as zn, b9 as Kn, bg as Wn, bl as qn, bs as Gn, bt as Vn, bu as Yn, bC as Hn, bm as Un, bv as Jn, bz as Xn, bo as Zn, by as Qn } from "./hooks-a-1dLRsj.js";
3
3
  import { jsx as n, jsxs as C, Fragment as ae } from "react/jsx-runtime";
4
4
  import * as fe from "react";
5
5
  import k, { PureComponent as Oa, useState as T, forwardRef as V, useEffect as B, useMemo as se, useCallback as Ne, useRef as pe, useImperativeHandle as ka, Children as La, createContext as Ta } from "react";