@factorialco/f0-react 1.383.0 → 1.383.2

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-CXEcOhNF.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-A_15tua6.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
@@ -1223,6 +1223,11 @@ declare module "gridstack" {
1223
1223
  }
1224
1224
 
1225
1225
 
1226
+ declare namespace Calendar {
1227
+ var displayName: string;
1228
+ }
1229
+
1230
+
1226
1231
  declare module "@tiptap/core" {
1227
1232
  interface Commands<ReturnType> {
1228
1233
  aiBlock: {
@@ -1270,8 +1275,3 @@ declare module "@tiptap/core" {
1270
1275
  };
1271
1276
  }
1272
1277
  }
1273
-
1274
-
1275
- declare namespace Calendar {
1276
- var displayName: string;
1277
- }
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-CXEcOhNF.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-A_15tua6.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-D_4woM1M.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-D_Flf3Fk.js";
4
4
  export {
5
5
  e as A,
6
6
  y as AiChatTranslationsProvider,
@@ -1,42 +1,43 @@
1
1
  import { AIMessage } from '@copilotkit/shared';
2
2
  import { AlertAvatarProps as AlertAvatarProps_2 } from './F0AvatarAlert';
3
3
  import { AlertTagCellValue } from './types/alertTag';
4
- import { AlertTagCellValue as AlertTagCellValue_2 } from '../../../ui/value-display/types/alertTag';
4
+ import { AlertTagCellValue as AlertTagCellValue_2 } from './experimental';
5
5
  import { AmountCellValue } from './types/amount';
6
- import { AmountCellValue as AmountCellValue_2 } from '../../../ui/value-display/types/amount';
6
+ import { AmountCellValue as AmountCellValue_2 } from './experimental';
7
7
  import { AnchorHTMLAttributes } from 'react';
8
8
  import { AreaChartWidgetProps } from './AreaChartWidget';
9
9
  import { AriaAttributes } from 'react';
10
10
  import { AutoFill as AutoFill_2 } from 'react';
11
11
  import { AvatarListCellValue } from './types/avatarList';
12
- import { AvatarListCellValue as AvatarListCellValue_2 } from '../../../ui/value-display/types/avatarList';
12
+ import { AvatarListCellValue as AvatarListCellValue_2 } from './experimental';
13
13
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
14
- import { BarChartProps } from '../../../components/Charts/BarChart';
14
+ import { BarChartProps } from './experimental';
15
15
  import { BarSeriesCellValue } from './types/barSeries';
16
16
  import { baseColors } from '@factorialco/f0-core';
17
17
  import { ButtonHTMLAttributes } from 'react';
18
18
  import { ClassValue } from 'cva';
19
19
  import { CompanyCellValue } from './types/company';
20
- import { CompanyCellValue as CompanyCellValue_2 } from '../../../ui/value-display/types/company';
20
+ import { CompanyCellValue as CompanyCellValue_2 } from './experimental';
21
21
  import { ComponentProps } from 'react';
22
22
  import { CopilotKitProps } from '@copilotkit/react-core';
23
23
  import { CountryCellValue } from './types/country';
24
24
  import { DateCellValue } from './types/date';
25
- import { DateCellValue as DateCellValue_2 } from '../../../ui/value-display/types/date';
25
+ import { DateCellValue as DateCellValue_2 } from './experimental';
26
26
  import { DateFilterOptions } from './DateFilter/DateFilter';
27
27
  import { default as default_2 } from 'react';
28
28
  import { Dispatch } from 'react';
29
29
  import { DotTagCellValue } from './types/dotTag';
30
- import { DotTagCellValue as DotTagCellValue_2 } from '../../../ui/value-display/types/dotTag';
30
+ import { DotTagCellValue as DotTagCellValue_2 } from './experimental';
31
31
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
32
32
  import { Editor } from '@tiptap/react';
33
+ import { F0SelectProps as F0SelectProps_2 } from './types';
33
34
  import { F0TagRawProps as F0TagRawProps_2 } from './types';
34
35
  import { f1Colors } from '@factorialco/f0-core';
35
36
  import { FC } from 'react';
36
37
  import { FileCellValue } from './types/file';
37
- import { FileCellValue as FileCellValue_2 } from '../../../ui/value-display/types/file';
38
+ import { FileCellValue as FileCellValue_2 } from './experimental';
38
39
  import { FolderCellValue } from './types/folder';
39
- import { FolderCellValue as FolderCellValue_2 } from '../../../ui/value-display/types/folder';
40
+ import { FolderCellValue as FolderCellValue_2 } from './experimental';
40
41
  import { ForwardedRef } from 'react';
41
42
  import { ForwardRefExoticComponent } from 'react';
42
43
  import { HourDistributionCellValue } from './types/hourDistribution';
@@ -48,19 +49,19 @@ import { InFilterOptions } from './InFilter/types';
48
49
  import { JSONContent } from '@tiptap/react';
49
50
  import { JSONContent as JSONContent_2 } from '@tiptap/core';
50
51
  import { JSX as JSX_2 } from 'react';
51
- import { LineChartProps } from '../../../components/Charts/LineChart';
52
+ import { LineChartProps } from './experimental';
52
53
  import { LongTextCellValue } from './types/longText';
53
54
  import { NumberCellValue } from './types/number';
54
- import { NumberCellValue as NumberCellValue_2 } from '../../../ui/value-display/types/number';
55
+ import { NumberCellValue as NumberCellValue_2 } from './experimental';
55
56
  import { NumberFilterOptions } from './NumberFilter/NumberFilter';
56
57
  import { Observable } from 'zen-observable-ts';
57
58
  import { PercentageCellValue } from './types/percentage';
58
59
  import { PersonCellValue } from './types/person';
59
- import { PersonCellValue as PersonCellValue_2 } from '../../../ui/value-display/types/person';
60
- import { PieChartProps } from '../../../components/Charts/PieChart';
60
+ import { PersonCellValue as PersonCellValue_2 } from './experimental';
61
+ import { PieChartProps } from './experimental';
61
62
  import { PopoverProps } from '@radix-ui/react-popover';
62
63
  import { ProgressBarCellValue } from './types/progressBar';
63
- import { ProgressBarCellValue as ProgressBarCellValue_2 } from '../../../ui/value-display/types/progressBar';
64
+ import { ProgressBarCellValue as ProgressBarCellValue_2 } from './experimental';
64
65
  import { Props as Props_7 } from './types';
65
66
  import { PropsWithChildren } from 'react';
66
67
  import * as React_2 from 'react';
@@ -72,25 +73,26 @@ import { RefObject } from 'react';
72
73
  import { ScrollAreaProps } from '@radix-ui/react-scroll-area';
73
74
  import { SearchFilterOptions } from './SearchFilter/SearchFilter';
74
75
  import { StatusCellValue } from './types/status';
75
- import { StatusCellValue as StatusCellValue_2 } from '../../../ui/value-display/types/status';
76
+ import { StatusCellValue as StatusCellValue_2 } from './experimental';
76
77
  import { SVGProps } from 'react';
77
78
  import { TagCellValue } from './types/tag';
78
- import { TagCellValue as TagCellValue_2 } from '../../../ui/value-display/types/tag';
79
+ import { TagCellValue as TagCellValue_2 } from './experimental';
79
80
  import { TagListCellValue } from './types/tagList';
80
- import { TagListCellValue as TagListCellValue_2 } from '../../../ui/value-display/types/tagList';
81
+ import { TagListCellValue as TagListCellValue_2 } from './experimental';
81
82
  import { TeamCellValue } from './types/team';
82
- import { TeamCellValue as TeamCellValue_2 } from '../../../ui/value-display/types/team';
83
+ import { TeamCellValue as TeamCellValue_2 } from './experimental';
83
84
  import { TextCellValue } from './types/text';
84
- import { TextCellValue as TextCellValue_2 } from '../../../ui/value-display/types/text';
85
+ import { TextCellValue as TextCellValue_2 } from './experimental';
85
86
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
86
- import { ValueDisplayRendererContext as ValueDisplayRendererContext_2 } from '../../../ui/value-display';
87
+ import { ValueDisplayRendererContext as ValueDisplayRendererContext_2 } from './experimental';
87
88
  import { VariantProps } from 'cva';
88
- import { VerticalBarChartProps } from '../../../components/Charts/VerticalBarChart';
89
- import { WidgetProps as WidgetProps_2 } from '../Widget';
90
- import { WithDataTestIdReturnType } from '../lib/data-testid';
91
- import { WithDataTestIdReturnType as WithDataTestIdReturnType_2 } from '../../lib/data-testid';
92
- import { WithDataTestIdReturnType as WithDataTestIdReturnType_3 } from '../../../../lib/data-testid';
93
- import { WithDataTestIdReturnType as WithDataTestIdReturnType_4 } from '../../../lib/data-testid';
89
+ import { VerticalBarChartProps } from './experimental';
90
+ import { WidgetProps as WidgetProps_2 } from './experimental';
91
+ import { WithDataTestIdProps as WithDataTestIdProps_2 } from './experimental';
92
+ import { WithDataTestIdReturnType } from './experimental';
93
+ import { WithDataTestIdReturnType as WithDataTestIdReturnType_2 } from './experimental';
94
+ import { WithDataTestIdReturnType as WithDataTestIdReturnType_3 } from './experimental';
95
+ import { WithDataTestIdReturnType as WithDataTestIdReturnType_4 } from './experimental';
94
96
 
95
97
  declare type Action = {
96
98
  label: string;
@@ -2743,9 +2745,9 @@ export declare const DetailsItem: WithDataTestIdReturnType_4<ForwardRefExoticCom
2743
2745
  /**
2744
2746
  * @experimental This is an experimental component use it at your own risk
2745
2747
  */
2746
- export declare const DetailsItemsList: WithDataTestIdReturnType_4<default_2.ForwardRefExoticComponent<DetailsItemsListProps & default_2.RefAttributes<HTMLDivElement>>>;
2748
+ export declare const DetailsItemsList: default_2.ForwardRefExoticComponent<DetailsItemsListProps & default_2.RefAttributes<HTMLDivElement>>;
2747
2749
 
2748
- declare interface DetailsItemsListProps {
2750
+ declare interface DetailsItemsListProps extends WithDataTestIdProps {
2749
2751
  title?: string;
2750
2752
  tableView?: boolean;
2751
2753
  details: DetailsItemType[];
@@ -2793,7 +2795,7 @@ declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Om
2793
2795
  /**
2794
2796
  * @experimental This is an experimental component use it at your own risk
2795
2797
  */
2796
- export declare const Dropdown: WithDataTestIdReturnType_4<(props: DropdownProps) => JSX_2.Element>;
2798
+ export declare const Dropdown: (props: DropdownProps) => JSX_2.Element;
2797
2799
 
2798
2800
  declare type DropdownInternalProps = {
2799
2801
  items: DropdownItem[];
@@ -2837,7 +2839,7 @@ declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownM
2837
2839
  declare type DropdownProps = Omit<DropdownInternalProps, (typeof privateProps_4)[number]> & {
2838
2840
  open?: boolean;
2839
2841
  onOpenChange?: (open: boolean) => void;
2840
- };
2842
+ } & WithDataTestIdProps;
2841
2843
 
2842
2844
  declare type DropdownSingleQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
2843
2845
  type: "dropdown-single";
@@ -3029,7 +3031,7 @@ declare interface F0ActionBarProps {
3029
3031
  status?: ActionBarStatus;
3030
3032
  }
3031
3033
 
3032
- export declare const F0AiBanner: WithDataTestIdReturnType_3<ForwardRefExoticComponent<AiBannerInternalProps & RefAttributes<HTMLDivElement>>> & {
3034
+ export declare const F0AiBanner: ForwardRefExoticComponent<Omit<AiBannerInternalProps & RefAttributes<HTMLDivElement> & WithDataTestIdProps_2, "ref"> & RefAttributes<HTMLDivElement>> & Pick<ForwardRefExoticComponent<AiBannerInternalProps & RefAttributes<HTMLDivElement>>, never> & {
3033
3035
  Skeleton: ({ compact }: AiBannerSkeletonProps) => JSX_2.Element;
3034
3036
  };
3035
3037
 
@@ -3053,7 +3055,7 @@ declare type F0AvatarFileProps = Omit<React.ComponentPropsWithoutRef<typeof Avat
3053
3055
  file: FileDef;
3054
3056
  size?: AvatarFileSize;
3055
3057
  badge?: AvatarBadge;
3056
- } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
3058
+ } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby"> & WithDataTestIdProps;
3057
3059
 
3058
3060
  declare type F0AvatarFlagProps = {
3059
3061
  flag: CountryCode | (string & {});
@@ -3204,7 +3206,7 @@ declare type F0ButtonProps = Omit<ButtonInternalProps, (typeof privateProps)[num
3204
3206
  variant?: Exclude<ButtonInternalProps["variant"], "ai">;
3205
3207
  };
3206
3208
 
3207
- export declare const F0Callout: WithDataTestIdReturnType_3<ForwardRefExoticComponent<CalloutInternalProps & RefAttributes<HTMLDivElement>>> & {
3209
+ export declare const F0Callout: ForwardRefExoticComponent<Omit<CalloutInternalProps & RefAttributes<HTMLDivElement> & WithDataTestIdProps_2, "ref"> & RefAttributes<HTMLDivElement>> & Pick<ForwardRefExoticComponent<CalloutInternalProps & RefAttributes<HTMLDivElement>>, never> & {
3208
3210
  Skeleton: ({ compact, variant }: CalloutSkeletonProps) => JSX_2.Element;
3209
3211
  };
3210
3212
 
@@ -3246,13 +3248,7 @@ declare type F0SelectBaseProps<T extends string, R = unknown> = {
3246
3248
  * @default false
3247
3249
  */
3248
3250
  showPreview?: boolean;
3249
- };
3250
-
3251
- /**
3252
- * Generic component type so consumers can use <F0Select<T, R> />.
3253
- * Preserves dataTestId and F0SelectProps<T, R>.
3254
- */
3255
- declare type F0SelectGeneric = <T extends string, R = unknown>(props: F0SelectProps<T, R> & WithDataTestIdProps) => ReactElement | null;
3251
+ } & WithDataTestIdProps;
3256
3252
 
3257
3253
  declare type F0SelectItemObject<T, R = unknown> = {
3258
3254
  type?: "item";
@@ -4287,7 +4283,7 @@ declare interface MetadataProps {
4287
4283
  /**
4288
4284
  * @experimental This is an experimental component use it at your own risk
4289
4285
  */
4290
- export declare const MobileDropdown: WithDataTestIdReturnType_4<({ items, children }: DropdownProps) => JSX_2.Element>;
4286
+ export declare const MobileDropdown: ({ items, children, dataTestId }: DropdownProps) => JSX_2.Element;
4291
4287
 
4292
4288
  declare const moduleAvatarVariants: (props?: ({
4293
4289
  size?: "lg" | "md" | "sm" | "xs" | "xxs" | undefined;
@@ -4477,7 +4473,7 @@ declare interface NextStepsProps {
4477
4473
  items: StepItemProps[];
4478
4474
  }
4479
4475
 
4480
- export declare const NotesTextEditor: WithDataTestIdReturnType_4<ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>>;
4476
+ export declare const NotesTextEditor: ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>;
4481
4477
 
4482
4478
  export declare type NotesTextEditorHandle = {
4483
4479
  clear: () => void;
@@ -4489,7 +4485,7 @@ export declare type NotesTextEditorHandle = {
4489
4485
  insertImage: (file: File) => void;
4490
4486
  };
4491
4487
 
4492
- export declare interface NotesTextEditorProps {
4488
+ export declare interface NotesTextEditorProps extends WithDataTestIdProps {
4493
4489
  onChange: (value: {
4494
4490
  json: JSONContent | null;
4495
4491
  html: string | null;
@@ -4732,11 +4728,11 @@ declare type OneDataCollectionProps<R extends RecordType, Filters extends Filter
4732
4728
  tmpFullWidth?: boolean;
4733
4729
  };
4734
4730
 
4735
- export declare const OneDateNavigator: WithDataTestIdReturnType_2<typeof _OneDateNavigator>;
4731
+ export declare const OneDateNavigator: typeof _OneDateNavigator;
4736
4732
 
4737
- declare function _OneDateNavigator({ onSelect, defaultValue, presets, granularities, hideNavigation, hideGoToCurrent, compareTo, defaultCompareTo, onCompareToChange, value, ...props }: OneDatePickerProps): JSX_2.Element;
4733
+ declare function _OneDateNavigator({ onSelect, defaultValue, presets, granularities, hideNavigation, hideGoToCurrent, compareTo, defaultCompareTo, onCompareToChange, value, dataTestId, ...props }: OneDatePickerProps): JSX_2.Element;
4738
4734
 
4739
- export declare interface OneDatePickerProps extends Omit<DatePickerPopupProps, "children"> {
4735
+ export declare interface OneDatePickerProps extends Omit<DatePickerPopupProps, "children">, WithDataTestIdProps {
4740
4736
  hideNavigation?: boolean;
4741
4737
  hideGoToCurrent?: boolean;
4742
4738
  }
@@ -4782,13 +4778,9 @@ declare type OneEmptyStateProps = {
4782
4778
  emoji?: never;
4783
4779
  });
4784
4780
 
4785
- export declare const OneFilterPicker: OneFilterPickerGeneric;
4786
-
4787
- /**
4788
- * Generic component type so consumers can use <OneFilterPicker<Definition> />.
4789
- * Preserves dataTestId and OneFilterPickerRootProps<Definition>.
4790
- */
4791
- declare type OneFilterPickerGeneric = <Definition extends FiltersDefinition>(props: OneFilterPickerRootProps<Definition> & WithDataTestIdProps) => ReactElement | null;
4781
+ export declare const OneFilterPicker: <Definition extends FiltersDefinition>(props: OneFilterPickerRootProps<Definition> & {
4782
+ dataTestId?: string;
4783
+ }) => ReactElement | null;
4792
4784
 
4793
4785
  /**
4794
4786
  * Props for the Filters component.
@@ -5455,9 +5447,9 @@ export declare interface RichTextDisplayProps extends HTMLAttributes<HTMLDivElem
5455
5447
  format?: "html" | "markdown";
5456
5448
  }
5457
5449
 
5458
- export declare const RichTextEditor: WithDataTestIdReturnType_4<ForwardRefExoticComponent<RichTextEditorProps & RefAttributes<RichTextEditorHandle>> & {
5459
- Skeleton: ({ rows }: RichTextEditorSkeletonProps) => JSX_2.Element;
5460
- }>;
5450
+ export declare const RichTextEditor: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes<RichTextEditorHandle>> & {
5451
+ Skeleton: ({ rows }: RichTextEditorSkeletonProps) => JSX_2.Element;
5452
+ };
5461
5453
 
5462
5454
  export declare type RichTextEditorHandle = {
5463
5455
  clear: () => void;
@@ -5487,6 +5479,7 @@ export declare interface RichTextEditorProps {
5487
5479
  onFullscreenChange?: (fullscreen: boolean) => void;
5488
5480
  /** Whether the editor is disabled */
5489
5481
  disabled?: boolean;
5482
+ dataTestId?: string;
5490
5483
  }
5491
5484
 
5492
5485
  declare interface RichTextEditorSkeletonProps {
@@ -5586,7 +5579,9 @@ declare type SectionProps_2 = {
5586
5579
  /**
5587
5580
  * @experimental This is an experimental component use it at your own risk
5588
5581
  */
5589
- export declare const Select: F0SelectGeneric;
5582
+ export declare const Select: <T extends string = string, R = unknown>(props: F0SelectProps_2<T, R> & {
5583
+ ref?: React.Ref<HTMLButtonElement>;
5584
+ }) => React.ReactElement;
5590
5585
 
5591
5586
  /**
5592
5587
  * Represents a collection of selected items.
@@ -6752,6 +6747,11 @@ declare module "gridstack" {
6752
6747
  }
6753
6748
 
6754
6749
 
6750
+ declare namespace Calendar {
6751
+ var displayName: string;
6752
+ }
6753
+
6754
+
6755
6755
  declare module "@tiptap/core" {
6756
6756
  interface Commands<ReturnType> {
6757
6757
  aiBlock: {
@@ -6799,8 +6799,3 @@ declare module "@tiptap/core" {
6799
6799
  };
6800
6800
  }
6801
6801
  }
6802
-
6803
-
6804
- declare namespace Calendar {
6805
- var displayName: string;
6806
- }