@factorialco/f0-react 1.423.0 → 1.425.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,7 +1,7 @@
1
1
  import { defaultTranslations as ke } from "./i18n-provider-defaults.js";
2
2
  import { jsx as q, jsxs as le } from "react/jsx-runtime";
3
3
  import { useInsertionEffect as Xe, createContext as Ye, useContext as $e, useRef as B, useEffect as ie, useState as Ue, useCallback as qe, useMemo as He } from "react";
4
- import { r as Ke, l as je, m as Qe, n as Je, o as Me, p as Ze, q as et, s as tt, t as rt, v as nt, w as Ne, x as ot, V as it, y as st, z as at, A as ct, S as ut, H as lt, B as se, D as ft, E as dt, G as ht, J as mt, K as pt, L as vt, M as fe, N as gt } from "./registry-Cfsd-zAT.js";
4
+ import { r as Ke, l as je, m as Qe, n as Je, o as Me, p as Ze, q as et, s as tt, t as rt, v as nt, w as Ne, x as ot, V as it, y as st, z as at, A as ct, S as ut, H as lt, B as se, D as ft, E as dt, G as ht, J as mt, K as pt, L as vt, M as fe, N as gt } from "./registry-DuKzJwXp.js";
5
5
  import { useTrackVolume as wt } from "@livekit/components-react";
6
6
  function Tt(t, e, r) {
7
7
  Xe(() => t.on(e, r), [t, e, r]);
package/dist/ai.d.ts CHANGED
@@ -1199,6 +1199,7 @@ export declare const defaultTranslations: {
1199
1199
  readonly date: "Date";
1200
1200
  readonly dropdownSingle: "Dropdown";
1201
1201
  readonly file: "File upload";
1202
+ readonly checkbox: "Checkbox";
1202
1203
  };
1203
1204
  readonly selectQuestion: {
1204
1205
  readonly addOption: "Add option";
@@ -1211,6 +1212,9 @@ export declare const defaultTranslations: {
1211
1212
  readonly fileQuestion: {
1212
1213
  readonly uploadButton: "Upload file";
1213
1214
  };
1215
+ readonly checkboxQuestion: {
1216
+ readonly placeholder: "Provide a label for the checkbox";
1217
+ };
1214
1218
  readonly answer: {
1215
1219
  readonly label: "Answer";
1216
1220
  readonly dropdownPlaceholder: "Pick an option";
@@ -1789,6 +1793,11 @@ declare module "gridstack" {
1789
1793
  }
1790
1794
 
1791
1795
 
1796
+ declare namespace Calendar {
1797
+ var displayName: string;
1798
+ }
1799
+
1800
+
1792
1801
  declare module "@tiptap/core" {
1793
1802
  interface Commands<ReturnType> {
1794
1803
  aiBlock: {
@@ -1836,8 +1845,3 @@ declare module "@tiptap/core" {
1836
1845
  };
1837
1846
  }
1838
1847
  }
1839
-
1840
-
1841
- declare namespace Calendar {
1842
- var displayName: string;
1843
- }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./registry-Cfsd-zAT.js";
1
+ import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./registry-DuKzJwXp.js";
2
2
  import { defaultTranslations as d } from "./i18n-provider-defaults.js";
3
- import { A as p, F as S, c as g, d as v, b as x, a as k, o as O, u as P } from "./F0HILActionConfirmation-CcDsCCLa.js";
3
+ import { A as p, F as S, c as g, d as v, b as x, a as k, o as O, u as P } from "./F0HILActionConfirmation-Ubb7Zvx9.js";
4
4
  export {
5
5
  p as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -2755,6 +2755,7 @@ declare const defaultTranslations: {
2755
2755
  readonly date: "Date";
2756
2756
  readonly dropdownSingle: "Dropdown";
2757
2757
  readonly file: "File upload";
2758
+ readonly checkbox: "Checkbox";
2758
2759
  };
2759
2760
  readonly selectQuestion: {
2760
2761
  readonly addOption: "Add option";
@@ -2767,6 +2768,9 @@ declare const defaultTranslations: {
2767
2768
  readonly fileQuestion: {
2768
2769
  readonly uploadButton: "Upload file";
2769
2770
  };
2771
+ readonly checkboxQuestion: {
2772
+ readonly placeholder: "Provide a label for the checkbox";
2773
+ };
2770
2774
  readonly answer: {
2771
2775
  readonly label: "Answer";
2772
2776
  readonly dropdownPlaceholder: "Pick an option";
@@ -3023,7 +3027,7 @@ declare type DropdownProps = Omit<DropdownInternalProps, (typeof privateProps_4)
3023
3027
  } & WithDataTestIdProps;
3024
3028
 
3025
3029
  /** The edit mode for a column cell in the editable table. */
3026
- declare type EditableTableCellEditType = "text" | "date" | "select" | "multiselect" | "display-only" | "disabled";
3030
+ declare type EditableTableCellEditType = "text" | "number" | "date" | "select" | "multiselect" | "display-only" | "disabled";
3027
3031
 
3028
3032
  declare type EditableTableCollectionProps<R extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<R>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<R>> = CollectionProps<R, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, EditableTableVisualizationOptions<R, Filters, Sortings, Summaries>>;
3029
3033
 
@@ -3055,6 +3059,12 @@ declare type EditableTableColumnDefinition<R extends RecordType, Sortings extend
3055
3059
  * function whose return value isn't statically known.
3056
3060
  */
3057
3061
  selectConfig?: SelectCellConfig<R>;
3062
+ /**
3063
+ * Configuration for `"number"` cells. Accepts constraints (`min`, `max`),
3064
+ * stepping (`step`), formatting (`maxDecimals`, `locale`), and units.
3065
+ * Falls back to sensible defaults when omitted.
3066
+ */
3067
+ numberConfig?: NumberCellConfig;
3058
3068
  };
3059
3069
 
3060
3070
  declare type EditableTableVisualizationOptions<R extends RecordType, _Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition> = Omit<TableVisualizationOptions<R, _Filters, Sortings, Summaries>, "columns"> & {
@@ -4832,6 +4842,15 @@ export declare interface NotesTextEditorSkeletonProps {
4832
4842
  withToolbar?: boolean;
4833
4843
  }
4834
4844
 
4845
+ declare type NumberCellConfig = {
4846
+ min?: number;
4847
+ max?: number;
4848
+ step?: number;
4849
+ maxDecimals?: number;
4850
+ locale?: string;
4851
+ units?: string;
4852
+ };
4853
+
4835
4854
  export declare type NumberFilterDefinition = BaseFilterDefinition<"number"> & {
4836
4855
  options?: NumberFilterOptions_2;
4837
4856
  };
@@ -7211,6 +7230,11 @@ declare module "gridstack" {
7211
7230
  }
7212
7231
 
7213
7232
 
7233
+ declare namespace Calendar {
7234
+ var displayName: string;
7235
+ }
7236
+
7237
+
7214
7238
  declare module "@tiptap/core" {
7215
7239
  interface Commands<ReturnType> {
7216
7240
  aiBlock: {
@@ -7258,8 +7282,3 @@ declare module "@tiptap/core" {
7258
7282
  };
7259
7283
  }
7260
7284
  }
7261
-
7262
-
7263
- declare namespace Calendar {
7264
- var displayName: string;
7265
- }