@factorialco/f0-react 1.382.0 → 1.383.1

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-oTIR5NbZ.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
@@ -798,6 +798,12 @@ export declare const defaultTranslations: {
798
798
  };
799
799
  };
800
800
  };
801
+ readonly wizard: {
802
+ readonly previous: "Previous";
803
+ readonly next: "Continue";
804
+ readonly submit: "Submit";
805
+ readonly stepOf: "Step {{current}} of {{total}}";
806
+ };
801
807
  };
802
808
 
803
809
  export declare function downloadTableAsExcel(table: HTMLTableElement, filename?: string): void;
@@ -1217,11 +1223,6 @@ declare module "gridstack" {
1217
1223
  }
1218
1224
 
1219
1225
 
1220
- declare namespace Calendar {
1221
- var displayName: string;
1222
- }
1223
-
1224
-
1225
1226
  declare module "@tiptap/core" {
1226
1227
  interface Commands<ReturnType> {
1227
1228
  aiBlock: {
@@ -1269,3 +1270,8 @@ declare module "@tiptap/core" {
1269
1270
  };
1270
1271
  }
1271
1272
  }
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-oTIR5NbZ.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-C9Kwjohi.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;
@@ -2727,6 +2729,12 @@ declare const defaultTranslations: {
2727
2729
  };
2728
2730
  };
2729
2731
  };
2732
+ readonly wizard: {
2733
+ readonly previous: "Previous";
2734
+ readonly next: "Continue";
2735
+ readonly submit: "Submit";
2736
+ readonly stepOf: "Step {{current}} of {{total}}";
2737
+ };
2730
2738
  };
2731
2739
 
2732
2740
  /**
@@ -2737,9 +2745,9 @@ export declare const DetailsItem: WithDataTestIdReturnType_4<ForwardRefExoticCom
2737
2745
  /**
2738
2746
  * @experimental This is an experimental component use it at your own risk
2739
2747
  */
2740
- 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>>;
2741
2749
 
2742
- declare interface DetailsItemsListProps {
2750
+ declare interface DetailsItemsListProps extends WithDataTestIdProps {
2743
2751
  title?: string;
2744
2752
  tableView?: boolean;
2745
2753
  details: DetailsItemType[];
@@ -2787,7 +2795,7 @@ declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Om
2787
2795
  /**
2788
2796
  * @experimental This is an experimental component use it at your own risk
2789
2797
  */
2790
- export declare const Dropdown: WithDataTestIdReturnType_4<(props: DropdownProps) => JSX_2.Element>;
2798
+ export declare const Dropdown: (props: DropdownProps) => JSX_2.Element;
2791
2799
 
2792
2800
  declare type DropdownInternalProps = {
2793
2801
  items: DropdownItem[];
@@ -2831,7 +2839,7 @@ declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownM
2831
2839
  declare type DropdownProps = Omit<DropdownInternalProps, (typeof privateProps_4)[number]> & {
2832
2840
  open?: boolean;
2833
2841
  onOpenChange?: (open: boolean) => void;
2834
- };
2842
+ } & WithDataTestIdProps;
2835
2843
 
2836
2844
  declare type DropdownSingleQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
2837
2845
  type: "dropdown-single";
@@ -3023,7 +3031,7 @@ declare interface F0ActionBarProps {
3023
3031
  status?: ActionBarStatus;
3024
3032
  }
3025
3033
 
3026
- 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> & {
3027
3035
  Skeleton: ({ compact }: AiBannerSkeletonProps) => JSX_2.Element;
3028
3036
  };
3029
3037
 
@@ -3047,7 +3055,7 @@ declare type F0AvatarFileProps = Omit<React.ComponentPropsWithoutRef<typeof Avat
3047
3055
  file: FileDef;
3048
3056
  size?: AvatarFileSize;
3049
3057
  badge?: AvatarBadge;
3050
- } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
3058
+ } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby"> & WithDataTestIdProps;
3051
3059
 
3052
3060
  declare type F0AvatarFlagProps = {
3053
3061
  flag: CountryCode | (string & {});
@@ -3198,7 +3206,7 @@ declare type F0ButtonProps = Omit<ButtonInternalProps, (typeof privateProps)[num
3198
3206
  variant?: Exclude<ButtonInternalProps["variant"], "ai">;
3199
3207
  };
3200
3208
 
3201
- 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> & {
3202
3210
  Skeleton: ({ compact, variant }: CalloutSkeletonProps) => JSX_2.Element;
3203
3211
  };
3204
3212
 
@@ -3240,13 +3248,7 @@ declare type F0SelectBaseProps<T extends string, R = unknown> = {
3240
3248
  * @default false
3241
3249
  */
3242
3250
  showPreview?: boolean;
3243
- };
3244
-
3245
- /**
3246
- * Generic component type so consumers can use <F0Select<T, R> />.
3247
- * Preserves dataTestId and F0SelectProps<T, R>.
3248
- */
3249
- declare type F0SelectGeneric = <T extends string, R = unknown>(props: F0SelectProps<T, R> & WithDataTestIdProps) => ReactElement | null;
3251
+ } & WithDataTestIdProps;
3250
3252
 
3251
3253
  declare type F0SelectItemObject<T, R = unknown> = {
3252
3254
  type?: "item";
@@ -4281,7 +4283,7 @@ declare interface MetadataProps {
4281
4283
  /**
4282
4284
  * @experimental This is an experimental component use it at your own risk
4283
4285
  */
4284
- export declare const MobileDropdown: WithDataTestIdReturnType_4<({ items, children }: DropdownProps) => JSX_2.Element>;
4286
+ export declare const MobileDropdown: ({ items, children, dataTestId }: DropdownProps) => JSX_2.Element;
4285
4287
 
4286
4288
  declare const moduleAvatarVariants: (props?: ({
4287
4289
  size?: "lg" | "md" | "sm" | "xs" | "xxs" | undefined;
@@ -4471,7 +4473,7 @@ declare interface NextStepsProps {
4471
4473
  items: StepItemProps[];
4472
4474
  }
4473
4475
 
4474
- export declare const NotesTextEditor: WithDataTestIdReturnType_4<ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>>;
4476
+ export declare const NotesTextEditor: ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>;
4475
4477
 
4476
4478
  export declare type NotesTextEditorHandle = {
4477
4479
  clear: () => void;
@@ -4483,7 +4485,7 @@ export declare type NotesTextEditorHandle = {
4483
4485
  insertImage: (file: File) => void;
4484
4486
  };
4485
4487
 
4486
- export declare interface NotesTextEditorProps {
4488
+ export declare interface NotesTextEditorProps extends WithDataTestIdProps {
4487
4489
  onChange: (value: {
4488
4490
  json: JSONContent | null;
4489
4491
  html: string | null;
@@ -4726,11 +4728,11 @@ declare type OneDataCollectionProps<R extends RecordType, Filters extends Filter
4726
4728
  tmpFullWidth?: boolean;
4727
4729
  };
4728
4730
 
4729
- export declare const OneDateNavigator: WithDataTestIdReturnType_2<typeof _OneDateNavigator>;
4731
+ export declare const OneDateNavigator: typeof _OneDateNavigator;
4730
4732
 
4731
- 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;
4732
4734
 
4733
- export declare interface OneDatePickerProps extends Omit<DatePickerPopupProps, "children"> {
4735
+ export declare interface OneDatePickerProps extends Omit<DatePickerPopupProps, "children">, WithDataTestIdProps {
4734
4736
  hideNavigation?: boolean;
4735
4737
  hideGoToCurrent?: boolean;
4736
4738
  }
@@ -4776,13 +4778,9 @@ declare type OneEmptyStateProps = {
4776
4778
  emoji?: never;
4777
4779
  });
4778
4780
 
4779
- export declare const OneFilterPicker: OneFilterPickerGeneric;
4780
-
4781
- /**
4782
- * Generic component type so consumers can use <OneFilterPicker<Definition> />.
4783
- * Preserves dataTestId and OneFilterPickerRootProps<Definition>.
4784
- */
4785
- 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;
4786
4784
 
4787
4785
  /**
4788
4786
  * Props for the Filters component.
@@ -5449,9 +5447,9 @@ export declare interface RichTextDisplayProps extends HTMLAttributes<HTMLDivElem
5449
5447
  format?: "html" | "markdown";
5450
5448
  }
5451
5449
 
5452
- export declare const RichTextEditor: WithDataTestIdReturnType_4<ForwardRefExoticComponent<RichTextEditorProps & RefAttributes<RichTextEditorHandle>> & {
5453
- Skeleton: ({ rows }: RichTextEditorSkeletonProps) => JSX_2.Element;
5454
- }>;
5450
+ export declare const RichTextEditor: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes<RichTextEditorHandle>> & {
5451
+ Skeleton: ({ rows }: RichTextEditorSkeletonProps) => JSX_2.Element;
5452
+ };
5455
5453
 
5456
5454
  export declare type RichTextEditorHandle = {
5457
5455
  clear: () => void;
@@ -5481,6 +5479,7 @@ export declare interface RichTextEditorProps {
5481
5479
  onFullscreenChange?: (fullscreen: boolean) => void;
5482
5480
  /** Whether the editor is disabled */
5483
5481
  disabled?: boolean;
5482
+ dataTestId?: string;
5484
5483
  }
5485
5484
 
5486
5485
  declare interface RichTextEditorSkeletonProps {
@@ -5580,7 +5579,9 @@ declare type SectionProps_2 = {
5580
5579
  /**
5581
5580
  * @experimental This is an experimental component use it at your own risk
5582
5581
  */
5583
- 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;
5584
5585
 
5585
5586
  /**
5586
5587
  * Represents a collection of selected items.
@@ -6746,11 +6747,6 @@ declare module "gridstack" {
6746
6747
  }
6747
6748
 
6748
6749
 
6749
- declare namespace Calendar {
6750
- var displayName: string;
6751
- }
6752
-
6753
-
6754
6750
  declare module "@tiptap/core" {
6755
6751
  interface Commands<ReturnType> {
6756
6752
  aiBlock: {
@@ -6798,3 +6794,8 @@ declare module "@tiptap/core" {
6798
6794
  };
6799
6795
  }
6800
6796
  }
6797
+
6798
+
6799
+ declare namespace Calendar {
6800
+ var displayName: string;
6801
+ }