@factorialco/f0-react 1.372.1 → 1.373.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,6 +1,6 @@
1
1
  import { jsx as X, jsxs as le } from "react/jsx-runtime";
2
2
  import { useInsertionEffect as Xe, createContext as ke, useContext as $e, useRef as _, useEffect as ne, useState as _e, useCallback as ze, useMemo as Ye } from "react";
3
- import { y as qe, z as We, D as He, G as je, J as Ne, K as Ke, M as Qe, N as Je, Q as Ze, R as et, V as Ce, W as tt, X as rt, Y as nt, Z as it, _ as ot, $ as at, a0 as st, a1 as ie, a2 as ct, a3 as ut, a4 as lt, a5 as ft, a6 as mt, a7 as dt, a8 as fe, a9 as ht } from "./F0AiChat-CDAHnaiX.js";
3
+ import { y as qe, z as We, D as He, G as je, J as Ne, K as Ke, M as Qe, N as Je, Q as Ze, R as et, V as Ce, W as tt, X as rt, Y as nt, Z as it, _ as ot, $ as at, a0 as st, a1 as ie, a2 as ct, a3 as ut, a4 as lt, a5 as ft, a6 as mt, a7 as dt, a8 as fe, a9 as ht } from "./F0AiChat-DWu8SXTd.js";
4
4
  import { useTrackVolume as pt } from "@livekit/components-react";
5
5
  function vt(t, e, r) {
6
6
  Xe(() => t.on(e, r), [t, e, r]);
package/dist/ai.d.ts CHANGED
@@ -399,6 +399,7 @@ export declare const defaultTranslations: {
399
399
  readonly selectAllItems: "Select all {{total}} items";
400
400
  readonly allItemsSelected: "All {{total}} items selected";
401
401
  };
402
+ readonly noItemsSelected: "No items selected";
402
403
  };
403
404
  readonly filters: {
404
405
  readonly searchPlaceholder: "Search filters...";
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as e, B as o, C as t, E as n, h as i, F as r, a as l, x as c, i as A, b as u, s as F, t as h, v as C, w as T, c as d, n as m, o as I, p as f, H as g, I as S, k as p, L as x, O as H, q as P, P as b, S as k, T as O, l as v, m as w, U as M, r as E, j as L, d as q, e as B, u as U, g as j, f as z } from "./F0AiChat-CDAHnaiX.js";
1
+ import { A as e, B as o, C as t, E as n, h as i, F as r, a as l, x as c, i as A, b as u, s as F, t as h, v as C, w as T, c as d, n as m, o as I, p as f, H as g, I as S, k as p, L as x, O as H, q as P, P as b, S as k, T as O, l as v, m as w, U as M, r as E, j as L, d as q, e as B, u as U, g as j, f as z } from "./F0AiChat-DWu8SXTd.js";
2
2
  import { defaultTranslations as R } from "./i18n-provider-defaults.js";
3
- import { A as y, F as G, c as J, b as K, a as N, o as Q, u as W } from "./F0HILActionConfirmation-DK9urnzZ.js";
3
+ import { A as y, F as G, c as J, b as K, a as N, o as Q, u as W } from "./F0HILActionConfirmation-R9BQPyrf.js";
4
4
  export {
5
5
  e as A,
6
6
  y as AiChatTranslationsProvider,
@@ -2329,6 +2329,7 @@ declare const defaultTranslations: {
2329
2329
  readonly selectAllItems: "Select all {{total}} items";
2330
2330
  readonly allItemsSelected: "All {{total}} items selected";
2331
2331
  };
2332
+ readonly noItemsSelected: "No items selected";
2332
2333
  };
2333
2334
  readonly filters: {
2334
2335
  readonly searchPlaceholder: "Search filters...";
@@ -3229,6 +3230,12 @@ declare type F0SelectBaseProps<T extends string, R = unknown> = {
3229
3230
  * Only displays the dropdown content with max height, border and scroll.
3230
3231
  */
3231
3232
  asList?: boolean;
3233
+ /**
3234
+ * When true, shows a selection preview panel on the right side of the dropdown
3235
+ * for multi-select mode. When false and filters are present, filters use compact mode.
3236
+ * @default false
3237
+ */
3238
+ showPreview?: boolean;
3232
3239
  };
3233
3240
 
3234
3241
  declare type F0SelectItemObject<T, R = unknown> = {
@@ -3472,7 +3479,7 @@ export declare type FilterOptions<FilterKeys extends string> = Record<FilterKeys
3472
3479
  */
3473
3480
  export declare type FiltersDefinition<Keys extends string = string> = Record<Keys, FilterDefinition>;
3474
3481
 
3475
- export declare type FiltersMode = "default" | "compact" | "simple";
3482
+ export declare type FiltersMode = "default" | "compact" | "simple" | "inline";
3476
3483
 
3477
3484
  /**
3478
3485
  * Current state of all filters in a collection.
@@ -3487,6 +3494,8 @@ export declare type FiltersState<Definition extends Record<string, FilterDefinit
3487
3494
  declare type FilterTypeContext<Options extends object = never> = {
3488
3495
  schema: FilterTypeSchema<Options>;
3489
3496
  i18n: I18nContextType;
3497
+ /** The key of this filter in the FiltersDefinition (passed to chipLabel for nested label lookups) */
3498
+ filterKey?: string;
3490
3499
  };
3491
3500
 
3492
3501
  declare type FilterTypeDefinition<Value = unknown, Options extends object = never, EmptyValue = Value, OptionalOptions extends boolean = false> = {
@@ -3499,6 +3508,8 @@ declare type FilterTypeDefinition<Value = unknown, Options extends object = neve
3499
3508
  value: Value;
3500
3509
  onChange: (value: Value) => void;
3501
3510
  isCompactMode?: boolean;
3511
+ onFilterChange?: (key: string, value: unknown) => void;
3512
+ allFiltersValue?: Record<string, unknown>;
3502
3513
  }) => React.ReactNode;
3503
3514
  /**
3504
3515
  * The value label to display in the filter chips
@@ -3833,6 +3844,16 @@ declare type InFilterOptionItem<T = unknown> = {
3833
3844
  value: T;
3834
3845
  /** Human-readable label for the option */
3835
3846
  label: string;
3847
+ /**
3848
+ * Nested children that belong to a different filter key.
3849
+ * Enables hierarchical filtering (e.g., office -> space -> desk).
3850
+ */
3851
+ children?: {
3852
+ /** The filter key where child selections are stored in FiltersState */
3853
+ filterKey: string;
3854
+ /** Child options, which can themselves have children for infinite nesting */
3855
+ options: Array<InFilterOptionItem<T>>;
3856
+ };
3836
3857
  };
3837
3858
 
3838
3859
  /**