@factorialco/f0-react 1.337.2 → 1.338.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.
@@ -1,5 +1,5 @@
1
1
  import { jsxs as A, jsx as s, Fragment as et } from "react/jsx-runtime";
2
- import { ax as t4, ay as rt, az as n4, aA as o4, aB as An, aC as i4, aD as tt, J as a4, aE as s4, aF as c4, aG as Mn, aH as l4, N as yn, aI as f4, aJ as Rn, aK as u4, e as h4, aL as d4, aM as C4, aN as v4, aO as g4, aP as x4, aQ as On, aR as p4, aS as w4, aT as m4, aU as L4, aV as k4, d as E4, aW as _4, aX as T4, aY as S4, aZ as F4, a_ as A4, a$ as M4, b0 as y4, b1 as Nn, b2 as R4, R as O4, b3 as N4, b4 as D4, m as O1, F as $e, c as E1, Q as s0, at as I4, b5 as B4, b6 as P4, b7 as H4, u as Fe, b8 as c0, A as mr, ac as V4, B as er, b9 as b4, a8 as U4, a as j4, ba as $4, bb as W4, f as nt } from "./index-b5h4qera.js";
2
+ import { ax as t4, ay as rt, az as n4, aA as o4, aB as An, aC as i4, aD as tt, J as a4, aE as s4, aF as c4, aG as Mn, aH as l4, N as yn, aI as f4, aJ as Rn, aK as u4, e as h4, aL as d4, aM as C4, aN as v4, aO as g4, aP as x4, aQ as On, aR as p4, aS as w4, aT as m4, aU as L4, aV as k4, d as E4, aW as _4, aX as T4, aY as S4, aZ as F4, a_ as A4, a$ as M4, b0 as y4, b1 as Nn, b2 as R4, R as O4, b3 as N4, b4 as D4, m as O1, F as $e, c as E1, Q as s0, at as I4, b5 as B4, b6 as P4, b7 as H4, u as Fe, b8 as c0, A as mr, ac as V4, B as er, b9 as b4, a8 as U4, a as j4, ba as $4, bb as W4, f as nt } from "./index-DVftYrQG.js";
3
3
  import { useCopilotChatInternal as Xe, useCopilotContext as Dn, useCopilotAction as K0, CopilotKit as Z4 } from "@copilotkit/react-core";
4
4
  import { Markdown as G4, useChatContext as X4, CopilotSidebar as z4 } from "@copilotkit/react-ui";
5
5
  import * as K4 from "react";
@@ -1,7 +1,7 @@
1
1
  import { jsx as S, jsxs as K, Fragment as ft } from "react/jsx-runtime";
2
2
  import * as fe from "react";
3
3
  import C, { useRef as Me, useState as he, useCallback as tt, useEffect as Le, useContext as dt, useMemo as He, useLayoutEffect as iO, createContext as Ft, isValidElement as Nt, Children as Kr, PureComponent as jt, forwardRef as ze, useImperativeHandle as OT, cloneElement as Ue, createElement as oO, Component as sO, useId as ST } from "react";
4
- import { be as ay, bc as AT, dj as _T, B as Ar, aF as uO, c as Q, aG as cO, az as PT, aA as TT, a as Ss, dk as Qi, bp as _e, D as ET, dl as CT, dm as jT, aL as lO, dn as MT, dp as $T, bH as fh, dq as IT, F as ut, J as As, aW as fO, b3 as dh, ax as dO, dr as bn, ds as kT, dt as DT, du as NT, dv as iy, dw as oy, dx as sy, dy as uy, dz as cy, dA as pO, dB as go, dC as RT, dD as LT, cn as Va, dE as qT, H as hO, y as vO, z as yO, q as ph, Z as nn, r as mO, s as gO, bM as hh, g as de, c7 as BT, bv as vh, bw as yh, bx as mh, bA as gh, cx as FT, cE as bh, d4 as zT, cl as bO, aB as WT, ay as UT, ct as ki, u as Pr, aX as HT, bC as KT, Q as Gt, ac as xO, $ as VT, a0 as wO, a1 as GT, d9 as _s, dF as YT, O as an, aU as XT, aI as ZT, a$ as JT, aJ as OO, b2 as QT, m as Ht, G as xh, e as SO, a7 as eE, n as AO, bJ as tE, S as At, w as _O, dG as PO, E as rE, N as TO, t as nE, cO as Xe, dH as EO, dI as CO, dJ as $d, dK as aE, dL as ly, cR as iE, cS as fy, P as oE, l as sE, o as uE, dh as cE, ad as lE, d6 as fE, aC as dE, dM as pE, f as hE, aE as vE, A as Da, d as yE, cr as mE, at as gE, b5 as bE, b7 as xE, da as wE, K as OE, L as SE, M as AE, R as _E } from "./index-b5h4qera.js";
4
+ import { be as ay, bc as AT, dj as _T, B as Ar, aF as uO, c as Q, aG as cO, az as PT, aA as TT, a as Ss, dk as Qi, bp as _e, D as ET, dl as CT, dm as jT, aL as lO, dn as MT, dp as $T, bH as fh, dq as IT, F as ut, J as As, aW as fO, b3 as dh, ax as dO, dr as bn, ds as kT, dt as DT, du as NT, dv as iy, dw as oy, dx as sy, dy as uy, dz as cy, dA as pO, dB as go, dC as RT, dD as LT, cn as Va, dE as qT, H as hO, y as vO, z as yO, q as ph, Z as nn, r as mO, s as gO, bM as hh, g as de, c7 as BT, bv as vh, bw as yh, bx as mh, bA as gh, cx as FT, cE as bh, d4 as zT, cl as bO, aB as WT, ay as UT, ct as ki, u as Pr, aX as HT, bC as KT, Q as Gt, ac as xO, $ as VT, a0 as wO, a1 as GT, d9 as _s, dF as YT, O as an, aU as XT, aI as ZT, a$ as JT, aJ as OO, b2 as QT, m as Ht, G as xh, e as SO, a7 as eE, n as AO, bJ as tE, S as At, w as _O, dG as PO, E as rE, N as TO, t as nE, cO as Xe, dH as EO, dI as CO, dJ as $d, dK as aE, dL as ly, cR as iE, cS as fy, P as oE, l as sE, o as uE, dh as cE, ad as lE, d6 as fE, aC as dE, dM as pE, f as hE, aE as vE, A as Da, d as yE, cr as mE, at as gE, b5 as bE, b7 as xE, da as wE, K as OE, L as SE, M as AE, R as _E } from "./index-DVftYrQG.js";
5
5
  const PE = {
6
6
  active: !0,
7
7
  breakpoints: {},
package/dist/ai.d.ts CHANGED
@@ -714,6 +714,11 @@ declare module "gridstack" {
714
714
  }
715
715
 
716
716
 
717
+ declare namespace Calendar {
718
+ var displayName: string;
719
+ }
720
+
721
+
717
722
  declare module "@tiptap/core" {
718
723
  interface Commands<ReturnType> {
719
724
  aiBlock: {
@@ -740,8 +745,3 @@ declare module "@tiptap/core" {
740
745
  };
741
746
  }
742
747
  }
743
-
744
-
745
- declare namespace Calendar {
746
- var displayName: string;
747
- }
package/dist/ai.js CHANGED
@@ -1,5 +1,5 @@
1
- import { A as i, a as r, b as t, d as o, c as n, H as e, e as A, u as l, f as u } from "./AiChatTranslationsProvider-k5c3RG4K.js";
2
- import { I as f, u as h } from "./index-b5h4qera.js";
1
+ import { A as i, a as r, b as t, d as o, c as n, H as e, e as A, u as l, f as u } from "./AiChatTranslationsProvider-BKb05OK7.js";
2
+ import { I as f, u as h } from "./index-DVftYrQG.js";
3
3
  import { defaultTranslations as m } from "./i18n-provider-defaults.js";
4
4
  export {
5
5
  i as ActionItem,
@@ -1351,6 +1351,80 @@ declare const cardPropertyRenderers: {
1351
1351
 
1352
1352
  declare type CardPropertyType = keyof typeof cardPropertyRenderers;
1353
1353
 
1354
+ export declare function CardSelectable<T extends CardSelectableValue>({ item, selected, disabled, multiple, onSelect, }: CardSelectableProps<T>): JSX_2.Element;
1355
+
1356
+ declare type CardSelectableAvatarVariant = AvatarVariant | {
1357
+ type: "emoji";
1358
+ emoji: string;
1359
+ } | {
1360
+ type: "file";
1361
+ file: File;
1362
+ } | {
1363
+ type: "icon";
1364
+ icon: IconType;
1365
+ };
1366
+
1367
+ export declare function CardSelectableContainer<T extends CardSelectableValue>(props: CardSelectableContainerProps<T>): React.ReactElement;
1368
+
1369
+ export declare type CardSelectableContainerProps<T extends CardSelectableValue> = CardSelectableSingleProps<T> | CardSelectableMultipleProps<T>;
1370
+
1371
+ export declare interface CardSelectableItem<T extends CardSelectableValue> {
1372
+ /** Unique value for this option */
1373
+ value: T;
1374
+ /** Main title of the card */
1375
+ title: string;
1376
+ /** Description text below the title */
1377
+ description?: string;
1378
+ /** Avatar to display on the left */
1379
+ avatar?: CardSelectableAvatarVariant;
1380
+ /** Whether this item is disabled */
1381
+ disabled?: boolean;
1382
+ }
1383
+
1384
+ export declare interface CardSelectableMultipleProps<T extends CardSelectableValue> {
1385
+ /** List of selectable items */
1386
+ items: CardSelectableItem<T>[];
1387
+ /** Multiple selection mode */
1388
+ multiple: true;
1389
+ /** Currently selected values */
1390
+ value?: T[];
1391
+ /** Callback when selection changes */
1392
+ onChange?: (value: T[]) => void;
1393
+ /** Whether the entire selector is disabled */
1394
+ disabled?: boolean;
1395
+ /** Label for the group (used for accessibility) */
1396
+ label?: string;
1397
+ /** Layout direction (default: vertical) */
1398
+ layout?: "vertical" | "horizontal";
1399
+ }
1400
+
1401
+ declare interface CardSelectableProps<T extends CardSelectableValue> {
1402
+ item: CardSelectableItem<T>;
1403
+ selected: boolean;
1404
+ disabled: boolean;
1405
+ multiple: boolean;
1406
+ onSelect: () => void;
1407
+ }
1408
+
1409
+ export declare interface CardSelectableSingleProps<T extends CardSelectableValue> {
1410
+ /** List of selectable items */
1411
+ items: CardSelectableItem<T>[];
1412
+ /** Single selection mode (default) */
1413
+ multiple?: false;
1414
+ /** Currently selected value */
1415
+ value?: T;
1416
+ /** Callback when selection changes */
1417
+ onChange?: (value: T) => void;
1418
+ /** Whether the entire selector is disabled */
1419
+ disabled?: boolean;
1420
+ /** Label for the group (used for accessibility) */
1421
+ label?: string;
1422
+ /** Layout direction (default: vertical) */
1423
+ layout?: "vertical" | "horizontal";
1424
+ }
1425
+
1426
+ export declare type CardSelectableValue = string | number;
1427
+
1354
1428
  declare type CardVisualizationOptions<T, _Filters extends FiltersDefinition, _Sortings extends SortingsDefinition> = {
1355
1429
  cardProperties: ReadonlyArray<CardPropertyDefinition<T>>;
1356
1430
  title: (record: T) => string;
@@ -6509,6 +6583,11 @@ declare module "gridstack" {
6509
6583
  }
6510
6584
 
6511
6585
 
6586
+ declare namespace Calendar {
6587
+ var displayName: string;
6588
+ }
6589
+
6590
+
6512
6591
  declare module "@tiptap/core" {
6513
6592
  interface Commands<ReturnType> {
6514
6593
  aiBlock: {
@@ -6535,8 +6614,3 @@ declare module "@tiptap/core" {
6535
6614
  };
6536
6615
  }
6537
6616
  }
6538
-
6539
-
6540
- declare namespace Calendar {
6541
- var displayName: string;
6542
- }