@factorialco/f0-react 1.392.1 → 1.394.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-h8gS_RRF.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.d.ts CHANGED
@@ -1525,6 +1525,11 @@ declare module "gridstack" {
1525
1525
  }
1526
1526
 
1527
1527
 
1528
+ declare namespace Calendar {
1529
+ var displayName: string;
1530
+ }
1531
+
1532
+
1528
1533
  declare module "@tiptap/core" {
1529
1534
  interface Commands<ReturnType> {
1530
1535
  aiBlock: {
@@ -1554,15 +1559,6 @@ declare module "@tiptap/core" {
1554
1559
  }
1555
1560
 
1556
1561
 
1557
- declare module "@tiptap/core" {
1558
- interface Commands<ReturnType> {
1559
- transcript: {
1560
- insertTranscript: (data: TranscriptData) => ReturnType;
1561
- };
1562
- }
1563
- }
1564
-
1565
-
1566
1562
  declare module "@tiptap/core" {
1567
1563
  interface Commands<ReturnType> {
1568
1564
  videoEmbed: {
@@ -1574,6 +1570,10 @@ declare module "@tiptap/core" {
1574
1570
  }
1575
1571
 
1576
1572
 
1577
- declare namespace Calendar {
1578
- var displayName: string;
1573
+ declare module "@tiptap/core" {
1574
+ interface Commands<ReturnType> {
1575
+ transcript: {
1576
+ insertTranscript: (data: TranscriptData) => ReturnType;
1577
+ };
1578
+ }
1579
1579
  }
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-h8gS_RRF.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-5F-_yw3W.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;
@@ -7240,6 +7205,11 @@ declare module "gridstack" {
7240
7205
  }
7241
7206
 
7242
7207
 
7208
+ declare namespace Calendar {
7209
+ var displayName: string;
7210
+ }
7211
+
7212
+
7243
7213
  declare module "@tiptap/core" {
7244
7214
  interface Commands<ReturnType> {
7245
7215
  aiBlock: {
@@ -7269,15 +7239,6 @@ declare module "@tiptap/core" {
7269
7239
  }
7270
7240
 
7271
7241
 
7272
- declare module "@tiptap/core" {
7273
- interface Commands<ReturnType> {
7274
- transcript: {
7275
- insertTranscript: (data: TranscriptData) => ReturnType;
7276
- };
7277
- }
7278
- }
7279
-
7280
-
7281
7242
  declare module "@tiptap/core" {
7282
7243
  interface Commands<ReturnType> {
7283
7244
  videoEmbed: {
@@ -7289,6 +7250,10 @@ declare module "@tiptap/core" {
7289
7250
  }
7290
7251
 
7291
7252
 
7292
- declare namespace Calendar {
7293
- var displayName: string;
7253
+ declare module "@tiptap/core" {
7254
+ interface Commands<ReturnType> {
7255
+ transcript: {
7256
+ insertTranscript: (data: TranscriptData) => ReturnType;
7257
+ };
7258
+ }
7294
7259
  }