@factorialco/f0-react 1.379.0 → 1.381.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.
@@ -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-Bza8zqLg.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-DvWln9wK.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
@@ -389,13 +389,14 @@ export declare const defaultTranslations: {
389
389
  readonly toggle: "Toggle";
390
390
  readonly toggleDropdownMenu: "Toggle dropdown menu";
391
391
  readonly selectAll: "Select all";
392
+ readonly selectAllItems: "Select all {{total}} items";
392
393
  };
393
394
  readonly status: {
394
395
  readonly selected: {
395
396
  readonly singular: "Selected";
396
397
  readonly plural: "Selected";
397
398
  readonly all: "All selected";
398
- readonly allOnPage: "All items on this page are selected";
399
+ readonly allOnPage: "All {{count}} items on this page are selected";
399
400
  readonly selectAllItems: "Select all {{total}} items";
400
401
  readonly allItemsSelected: "All {{total}} items selected";
401
402
  };
@@ -1204,11 +1205,6 @@ declare module "gridstack" {
1204
1205
  }
1205
1206
 
1206
1207
 
1207
- declare namespace Calendar {
1208
- var displayName: string;
1209
- }
1210
-
1211
-
1212
1208
  declare module "@tiptap/core" {
1213
1209
  interface Commands<ReturnType> {
1214
1210
  aiBlock: {
@@ -1256,3 +1252,8 @@ declare module "@tiptap/core" {
1256
1252
  };
1257
1253
  }
1258
1254
  }
1255
+
1256
+
1257
+ declare namespace Calendar {
1258
+ var displayName: string;
1259
+ }
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-Bza8zqLg.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-DvWln9wK.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-DVS7vYT1.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-DRfQGPsn.js";
4
4
  export {
5
5
  e as A,
6
6
  y as AiChatTranslationsProvider,
@@ -1869,6 +1869,9 @@ declare type DataCollectionStatus<CurrentFiltersState extends FiltersState<Filte
1869
1869
  search?: string | undefined;
1870
1870
  navigationFilters?: NavigationFiltersState<NavigationFiltersDefinition>;
1871
1871
  visualization?: number;
1872
+ /** Per-visualization filter states, keyed by visualization index.
1873
+ * Only present when visualizations declare per-view filter overrides. */
1874
+ visualizationFilters?: Record<string, CurrentFiltersState>;
1872
1875
  };
1873
1876
 
1874
1877
  declare type DataCollectionStatusComplete<CurrentFiltersState extends FiltersState<FiltersDefinition>> = DataCollectionStatus<CurrentFiltersState> & {
@@ -1880,7 +1883,7 @@ declare type DataCollectionStorageFeature = (typeof dataCollectionStorageFeature
1880
1883
  /**
1881
1884
  * The available features of the data collection status storage
1882
1885
  */
1883
- declare const dataCollectionStorageFeatures: readonly ["filters", "navigationFilters", "sortings", "grouping", "visualization", "search"];
1886
+ declare const dataCollectionStorageFeatures: readonly ["filters", "navigationFilters", "sortings", "grouping", "visualization", "search", "visualizationFilters"];
1884
1887
 
1885
1888
  declare type DataCollectionStorageFeaturesDefinition = ("*" | `all` | `!${DataCollectionStorageFeature}` | `${DataCollectionStorageFeature}`)[];
1886
1889
 
@@ -2315,13 +2318,14 @@ declare const defaultTranslations: {
2315
2318
  readonly toggle: "Toggle";
2316
2319
  readonly toggleDropdownMenu: "Toggle dropdown menu";
2317
2320
  readonly selectAll: "Select all";
2321
+ readonly selectAllItems: "Select all {{total}} items";
2318
2322
  };
2319
2323
  readonly status: {
2320
2324
  readonly selected: {
2321
2325
  readonly singular: "Selected";
2322
2326
  readonly plural: "Selected";
2323
2327
  readonly all: "All selected";
2324
- readonly allOnPage: "All items on this page are selected";
2328
+ readonly allOnPage: "All {{count}} items on this page are selected";
2325
2329
  readonly selectAllItems: "Select all {{total}} items";
2326
2330
  readonly allItemsSelected: "All {{total}} items selected";
2327
2331
  };
@@ -6454,27 +6458,27 @@ declare type VisualizacionTypeDefinition<Props, Settings = Record<string, never>
6454
6458
  * @template Filters - The filters type extending FiltersDefinition
6455
6459
  * @template ItemActions - The actions type extending Item ActionsDefinition
6456
6460
  */
6457
- declare type Visualization<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>> = {
6461
+ declare type Visualization<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>> = ({
6458
6462
  /** Card-based visualization type */
6459
6463
  type: "card";
6460
6464
  /** Configuration options for card visualization */
6461
6465
  options: CardVisualizationOptions<R, Filters, Sortings>;
6462
- } | {
6466
+ } & VisualizationFilterOverrides<Filters>) | ({
6463
6467
  /** Kanban-based visualization type */
6464
6468
  type: "kanban";
6465
6469
  /** Configuration options for kanban visualization */
6466
6470
  options: KanbanVisualizationOptions<R, Filters, Sortings>;
6467
- } | {
6471
+ } & VisualizationFilterOverrides<Filters>) | ({
6468
6472
  /** Table-based visualization type */
6469
6473
  type: "table";
6470
6474
  /** Configuration options for table visualization */
6471
6475
  options: TableVisualizationOptions<R, Filters, Sortings, Summaries>;
6472
- } | {
6476
+ } & VisualizationFilterOverrides<Filters>) | ({
6473
6477
  /** List-based visualization type */
6474
6478
  type: "list";
6475
6479
  /** Configuration options for list visualization */
6476
6480
  options: ListVisualizationOptions<R, Filters, Sortings>;
6477
- } | {
6481
+ } & VisualizationFilterOverrides<Filters>) | ({
6478
6482
  /** Human-readable label for the visualization */
6479
6483
  label: string;
6480
6484
  /** Icon to represent the visualization in UI */
@@ -6488,6 +6492,23 @@ declare type Visualization<R extends RecordType, Filters extends FiltersDefiniti
6488
6492
  onLoadError: OnLoadErrorCallback;
6489
6493
  source: DataCollectionSource<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping>;
6490
6494
  }) => JSX.Element;
6495
+ } & VisualizationFilterOverrides<Filters>);
6496
+
6497
+ /**
6498
+ * Optional per-visualization filter and preset overrides.
6499
+ * When provided on a visualization, these override the global source filters/presets
6500
+ * for that specific view, and the view maintains its own independent filter state.
6501
+ *
6502
+ * @template Filters - The filters type extending FiltersDefinition
6503
+ */
6504
+ export declare type VisualizationFilterOverrides<Filters extends FiltersDefinition> = {
6505
+ /** Override which filters are available when this visualization is active.
6506
+ * If not provided, the global source filters are used.
6507
+ * Can be a subset of the source filters definition. */
6508
+ filters?: Partial<Filters>;
6509
+ /** Preset configuration used only when this visualization is active.
6510
+ * These replace the global source presets for this visualization. */
6511
+ presets?: PresetsDefinition<Filters>;
6491
6512
  };
6492
6513
 
6493
6514
  /**
@@ -6713,11 +6734,6 @@ declare module "gridstack" {
6713
6734
  }
6714
6735
 
6715
6736
 
6716
- declare namespace Calendar {
6717
- var displayName: string;
6718
- }
6719
-
6720
-
6721
6737
  declare module "@tiptap/core" {
6722
6738
  interface Commands<ReturnType> {
6723
6739
  aiBlock: {
@@ -6765,3 +6781,8 @@ declare module "@tiptap/core" {
6765
6781
  };
6766
6782
  }
6767
6783
  }
6784
+
6785
+
6786
+ declare namespace Calendar {
6787
+ var displayName: string;
6788
+ }