@factorialco/f0-react 1.392.0 → 1.393.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 q, jsxs as le } from "react/jsx-runtime";
2
2
  import { useInsertionEffect as ze, createContext as Xe, useContext as Ye, useRef as B, useEffect as ie, useState as Ue, useCallback as $e, useMemo as qe } from "react";
3
- import { G as He, J as Ke, K as je, M as Qe, N as Me, Q as Je, R as Ze, V as et, W as tt, X as nt, Y as Ne, Z as rt, _ as ot, $ as it, a0 as st, a1 as at, a2 as ct, a3 as ut, a4 as se, a5 as lt, a6 as ft, a7 as ht, a8 as dt, a9 as mt, aa as pt, ab as fe, ac as gt } from "./F0AiChat-nPbqtFaA.js";
3
+ import { G as He, J as Ke, K as je, M as Qe, N as Me, Q as Je, R as Ze, V as et, W as tt, X as nt, Y as Ne, Z as rt, _ as ot, $ as it, a0 as st, a1 as at, a2 as ct, a3 as ut, a4 as se, a5 as lt, a6 as ft, a7 as ht, a8 as dt, a9 as mt, aa as pt, ab as fe, ac as gt } from "./F0AiChat-DJTQ9AEc.js";
4
4
  import { useTrackVolume as vt } from "@livekit/components-react";
5
5
  function wt(t, e, n) {
6
6
  ze(() => t.on(e, n), [t, e, n]);
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as e, B as t, C as i, q as n, E as o, h as r, F as l, a as A, D as c, i as F, b as u, j as h, w as C, x as d, y as m, z as T, c as f, r as S, s as p, t as I, H as g, I as k, m as x, L as H, O as M, v as P, P as b, S as w, T as O, n as v, o as D, p as E, U as L, k as R, l as q, d as y, e as z, u as B, g as U, f as j } from "./F0AiChat-nPbqtFaA.js";
1
+ import { A as e, B as t, C as i, q as n, E as o, h as r, F as l, a as A, D as c, i as F, b as u, j as h, w as C, x as d, y as m, z as T, c as f, r as S, s as p, t as I, H as g, I as k, m as x, L as H, O as M, v as P, P as b, S as w, T as O, n as v, o as D, p as E, U as L, k as R, l as q, d as y, e as z, u as B, g as U, f as j } from "./F0AiChat-DJTQ9AEc.js";
2
2
  import { defaultTranslations as G } from "./i18n-provider-defaults.js";
3
- import { A as K, F as N, c as Q, d as W, b as X, a as Y, o as Z, u as _ } from "./F0HILActionConfirmation-C_1UQkak.js";
3
+ import { A as K, F as N, c as Q, d as W, b as X, a as Y, o as Z, u as _ } from "./F0HILActionConfirmation-oROEEYv_.js";
4
4
  export {
5
5
  e as A,
6
6
  K as AiChatTranslationsProvider,
@@ -20,7 +20,6 @@ import { CompanyCellValue } from './types/company';
20
20
  import { CompanyCellValue as CompanyCellValue_2 } from './experimental';
21
21
  import { CompanyItemProps } from './types';
22
22
  import { ComponentProps } from 'react';
23
- import { ComponentType } from 'react';
24
23
  import { CopilotKitProps } from '@copilotkit/react-core';
25
24
  import { CountryCellValue } from './types/country';
26
25
  import { DateCellValue } from './types/date';
@@ -1627,6 +1626,8 @@ export declare type CollectionProps<Record extends RecordType, Filters extends F
1627
1626
  * Temporary prop to force the full width of the data collection (removes the X padding)
1628
1627
  */
1629
1628
  tmpFullWidth?: boolean;
1629
+ /** Indicates the source visualization type */
1630
+ fromVisualization?: "table" | "editableTable";
1630
1631
  } & VisualizationOptions;
1631
1632
 
1632
1633
  declare type CollectionVisualizations<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = {
@@ -2944,8 +2945,8 @@ declare type DropdownSingleQuestionProps = BaseQuestionPropsForOtherQuestionComp
2944
2945
  value?: string | null;
2945
2946
  };
2946
2947
 
2947
- /** The edit mode for a column cell in the editable table. Derived from value-display editors. */
2948
- declare type EditableTableCellEditType = EditableValueDisplayType;
2948
+ /** The edit mode for a column cell in the editable table. */
2949
+ declare type EditableTableCellEditType = "text" | "date" | "select" | "multiselect";
2949
2950
 
2950
2951
  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>>;
2951
2952
 
@@ -2992,8 +2993,6 @@ declare type EditableTableVisualizationOptions<R extends RecordType, _Filters ex
2992
2993
 
2993
2994
  declare type EditableTableVisualizationSettings = TableVisualizationSettings;
2994
2995
 
2995
- declare type EditableValueDisplayType = keyof typeof valueDisplayEditors;
2996
-
2997
2996
  export declare type editorStateType = {
2998
2997
  html: string;
2999
2998
  json: JSONContent | null;
@@ -4189,7 +4188,7 @@ export declare function injectSectionEnds(items: FlatFormItem[], inSectionQuesti
4189
4188
  */
4190
4189
  export declare const Input: <T extends string>(props: InputProps<T>) => JSX_2.Element;
4191
4190
 
4192
- declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "size" | "icon" | "role" | "onFocus" | "onBlur" | "status" | "loading" | "disabled" | "maxLength" | "required" | "error" | "append" | "hideLabel" | "hint" | "labelIcon" | "onClickContent" | "readonly" | "clearable" | "autocomplete" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider" | "buttonToggle"> & React_2.RefAttributes<HTMLInputElement>>;
4191
+ declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "size" | "icon" | "role" | "onFocus" | "onBlur" | "transparent" | "status" | "loading" | "disabled" | "maxLength" | "required" | "error" | "append" | "hideLabel" | "hint" | "labelIcon" | "onClickContent" | "readonly" | "clearable" | "autocomplete" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider" | "buttonToggle"> & React_2.RefAttributes<HTMLInputElement>>;
4193
4192
 
4194
4193
  declare const INPUTFIELD_SIZES: readonly ["sm", "md"];
4195
4194
 
@@ -4262,6 +4261,7 @@ declare type InputFieldProps<T> = {
4262
4261
  disabled?: boolean;
4263
4262
  onChange: (selected: boolean) => void;
4264
4263
  };
4264
+ transparent?: boolean;
4265
4265
  };
4266
4266
 
4267
4267
  declare type InputFieldSize = (typeof INPUTFIELD_SIZES)[number];
@@ -4278,7 +4278,7 @@ declare const inputFieldStatus: readonly ["default", "warning", "info", "error"]
4278
4278
 
4279
4279
  declare type InputFieldStatusType = (typeof inputFieldStatus)[number];
4280
4280
 
4281
- declare type InputInternalProps<T extends string> = Pick<ComponentProps<typeof Input_2>, "ref"> & Pick<InputFieldProps<T>, "autoFocus" | "required" | "disabled" | "size" | "onChange" | "value" | "placeholder" | "clearable" | "maxLength" | "label" | "labelIcon" | "icon" | "hideLabel" | "name" | "error" | "status" | "hint" | "autocomplete" | "buttonToggle" | "hideMaxLength" | "loading"> & {
4281
+ declare type InputInternalProps<T extends string> = Pick<ComponentProps<typeof Input_2>, "ref"> & Pick<InputFieldProps<T>, "autoFocus" | "required" | "disabled" | "size" | "onChange" | "value" | "placeholder" | "clearable" | "maxLength" | "label" | "labelIcon" | "icon" | "hideLabel" | "name" | "error" | "status" | "hint" | "autocomplete" | "buttonToggle" | "hideMaxLength" | "loading" | "transparent"> & {
4282
4282
  type?: Exclude<HTMLInputTypeAttribute, "number">;
4283
4283
  onPressEnter?: () => void;
4284
4284
  };
@@ -6819,41 +6819,6 @@ declare interface User_2 {
6819
6819
 
6820
6820
  export declare function useSidebar(): FrameContextType;
6821
6821
 
6822
- /**
6823
- * Props contract that every editable value-display component must implement.
6824
- * The generic `V` allows type-specific editors (e.g. `string` for text, `Date` for date pickers).
6825
- */
6826
- declare type ValueDisplayEditorProps<V = string> = {
6827
- label: string;
6828
- value: V;
6829
- align?: "left" | "right";
6830
- error?: string;
6831
- loading?: boolean;
6832
- onChange: (value: V) => void;
6833
- };
6834
-
6835
- /**
6836
- * Registry that maps value-display types to their editable cell components.
6837
- * Not every type needs an editor — only types with editing support are registered here.
6838
- *
6839
- * To add a new editable type:
6840
- * 1. Add its value type to `ValueDisplayEditorValueMap` above
6841
- * 2. Create the editor component in `types/<type>/<type>-editor.tsx`
6842
- * 3. Export it from `types/<type>/index.tsx`
6843
- * 4. Register it here
6844
- */
6845
- declare const valueDisplayEditors: {
6846
- [K in keyof ValueDisplayEditorValueMap]: ComponentType<ValueDisplayEditorProps<ValueDisplayEditorValueMap[K]>>;
6847
- };
6848
-
6849
- /**
6850
- * Maps each editable value-display type to the value type its editor operates on.
6851
- * Extend this when adding a new editor (e.g. `date: Date`, `select: string`).
6852
- */
6853
- declare type ValueDisplayEditorValueMap = {
6854
- text: string;
6855
- };
6856
-
6857
6822
  declare type ValueDisplayRendererContext = {
6858
6823
  visualization: ValueDisplayVisualizationType;
6859
6824
  i18n: TranslationsType;