@factorialco/f0-react 1.438.4 → 1.445.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.
Files changed (47) hide show
  1. package/dist/{F0AiChat-DPDtak5l.js → F0AiChat-DGrsThPd.js} +156111 -139541
  2. package/dist/F0AiChat.css +1 -1
  3. package/dist/ai.d.ts +593 -12
  4. package/dist/ai.js +12 -10
  5. package/dist/experimental.d.ts +108 -8
  6. package/dist/experimental.js +3581 -3861
  7. package/dist/f0.css +1 -0
  8. package/dist/f0.d.ts +375 -42
  9. package/dist/f0.js +14479 -10522
  10. package/dist/i18n-provider-defaults.d.ts +21 -5
  11. package/dist/i18n-provider-defaults.js +18 -2
  12. package/dist/index-DVpm5nZf.js +44284 -0
  13. package/dist/index.css +1 -1
  14. package/dist/styles.css +1 -1
  15. package/dist/types-T3lVJQkM.js +2354 -0
  16. package/icons/app/Basket.d.ts +4 -0
  17. package/icons/app/Basket.d.ts.map +1 -0
  18. package/icons/app/Basket.js +5 -0
  19. package/icons/app/Bookmark.d.ts.map +1 -1
  20. package/icons/app/Bookmark.js +1 -1
  21. package/icons/app/BookmarkFilled.d.ts +4 -0
  22. package/icons/app/BookmarkFilled.d.ts.map +1 -0
  23. package/icons/app/BookmarkFilled.js +5 -0
  24. package/icons/app/ChartFunnel.d.ts +4 -0
  25. package/icons/app/ChartFunnel.d.ts.map +1 -0
  26. package/icons/app/ChartFunnel.js +5 -0
  27. package/icons/app/ChartHorizontalBars.d.ts +4 -0
  28. package/icons/app/ChartHorizontalBars.d.ts.map +1 -0
  29. package/icons/app/ChartHorizontalBars.js +5 -0
  30. package/icons/app/ChartLine.d.ts.map +1 -1
  31. package/icons/app/ChartLine.js +2 -2
  32. package/icons/app/ChartPie.d.ts.map +1 -1
  33. package/icons/app/ChartPie.js +2 -2
  34. package/icons/app/ChartVerticalBars.d.ts +4 -0
  35. package/icons/app/ChartVerticalBars.d.ts.map +1 -0
  36. package/icons/app/ChartVerticalBars.js +5 -0
  37. package/icons/app/UserProtected.d.ts +4 -0
  38. package/icons/app/UserProtected.d.ts.map +1 -0
  39. package/icons/app/UserProtected.js +5 -0
  40. package/icons/app/Watch.d.ts.map +1 -1
  41. package/icons/app/Watch.js +1 -1
  42. package/icons/app/index.d.ts +15 -9
  43. package/icons/app/index.d.ts.map +1 -1
  44. package/icons/app/index.js +15 -9
  45. package/package.json +4 -2
  46. package/dist/F0HILActionConfirmation-DShSXZqM.js +0 -1912
  47. package/dist/index-iuTQ3Ph9.js +0 -63101
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 "./F0AiChat-DPDtak5l.js";
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-DShSXZqM.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 "./F0AiChat-DGrsThPd.js";
2
+ import { defaultTranslations as m } from "./i18n-provider-defaults.js";
3
+ import { A as p, e as g, F as S, c as v, d as x, b as k, a as O, f as P, o as b, u as y } from "./types-T3lVJQkM.js";
4
4
  export {
5
5
  p as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -9,19 +9,21 @@ export {
9
9
  n as F0AiChatProvider,
10
10
  o as F0AiChatTextArea,
11
11
  r as F0AiFullscreenChat,
12
+ g as F0AiInsightCard,
12
13
  S as F0AiMask,
13
- g as F0AuraVoiceAnimation,
14
- v as F0HILActionConfirmation,
14
+ v as F0AuraVoiceAnimation,
15
+ x as F0HILActionConfirmation,
15
16
  A as F0OneIcon,
16
17
  c as F0OneSwitch,
17
18
  u as I18nProvider,
18
- x as actionItemStatuses,
19
- k as aiTranslations,
20
- d as defaultTranslations,
19
+ k as actionItemStatuses,
20
+ O as aiTranslations,
21
+ P as contentTypes,
22
+ m as defaultTranslations,
21
23
  F as getCanvasEntity,
22
- O as oneIconSizes,
24
+ b as oneIconSizes,
23
25
  h as useAiChat,
24
- P as useAiChatTranslations,
26
+ y as useAiChatTranslations,
25
27
  C as useDefaultCopilotActions,
26
28
  l as useI18n,
27
29
  I as useMessageSourcesAction,
@@ -26,6 +26,7 @@ import { CompanyItemProps } from './types';
26
26
  import { ComponentProps } from 'react';
27
27
  import { CompoundCellValue } from './types/compound';
28
28
  import { CopilotKitProps } from '@copilotkit/react-core';
29
+ import { CountCellValue } from './types/count';
29
30
  import { CountryCellValue } from './types/country';
30
31
  import { DateCellValue } from './types/date';
31
32
  import { DateCellValue as DateCellValue_2 } from './experimental';
@@ -92,6 +93,7 @@ import { ScrollAreaProps } from '@radix-ui/react-scroll-area';
92
93
  import { SearchFilterOptions } from './SearchFilter/SearchFilter';
93
94
  import { StatusCellValue } from './types/status';
94
95
  import { StatusCellValue as StatusCellValue_2 } from './experimental';
96
+ import { SummaryCellValue } from './types/summary';
95
97
  import { SVGProps } from 'react';
96
98
  import { TagAlertProps } from './experimental';
97
99
  import { TagBalanceProps } from './experimental';
@@ -432,6 +434,21 @@ declare type AiChatCredits = {
432
434
  planName?: string;
433
435
  };
434
436
 
437
+ /**
438
+ * Credit warning configuration.
439
+ * Groups severity level and action callbacks into a single object.
440
+ *
441
+ * When provided, a warning banner is shown above the chat textarea.
442
+ */
443
+ declare type AiChatCreditWarning = {
444
+ /** The severity level of the warning. */
445
+ level: "soft";
446
+ /** Called when the user dismisses the credit warning banner. */
447
+ onDismiss?: () => void;
448
+ /** Called when the user clicks the "Get Credits" button. */
449
+ onGetCredits?: () => void;
450
+ };
451
+
435
452
  /**
436
453
  * Disclaimer configuration for the chat input
437
454
  */
@@ -508,6 +525,11 @@ declare type AiChatProviderProps = {
508
525
  * Groups fetchUsage, upgradePlanUrl, and company/plan display info.
509
526
  */
510
527
  credits?: AiChatCredits;
528
+ /**
529
+ * Credit warning configuration. When provided, shows a warning banner above the chat textarea.
530
+ * Groups severity level and action callbacks.
531
+ */
532
+ creditWarning?: AiChatCreditWarning;
511
533
  /**
512
534
  * File attachment configuration. When provided, enables file uploads in the chat.
513
535
  */
@@ -2677,6 +2699,7 @@ declare const defaultTranslations: {
2677
2699
  readonly summaries: {
2678
2700
  readonly types: {
2679
2701
  readonly sum: "sum";
2702
+ readonly count: "count";
2680
2703
  };
2681
2704
  };
2682
2705
  readonly export: {
@@ -2829,9 +2852,17 @@ declare const defaultTranslations: {
2829
2852
  readonly openButton: "Open";
2830
2853
  };
2831
2854
  readonly dataDownload: {
2855
+ readonly title: "Download";
2832
2856
  readonly download: "Download {{format}}";
2833
2857
  readonly exportDashboard: "Export dashboard as {{format}}";
2834
2858
  readonly exporting: "Exporting...";
2859
+ readonly rows: "{{amount}} rows";
2860
+ };
2861
+ readonly dashboardItem: {
2862
+ readonly chartType: "Chart type";
2863
+ readonly errorTitle: "Error loading data";
2864
+ readonly retry: "Retry";
2865
+ readonly dataExplanation: "Where does this data come from?";
2835
2866
  };
2836
2867
  readonly pong: {
2837
2868
  readonly title: "Pong";
@@ -2886,6 +2917,13 @@ declare const defaultTranslations: {
2886
2917
  };
2887
2918
  };
2888
2919
  };
2920
+ readonly dataChart: {
2921
+ readonly heatmapNotSupported: "Heatmap not supported at this size";
2922
+ readonly barChartVertical: "Bar (vertical)";
2923
+ readonly barChartHorizontal: "Bar (horizontal)";
2924
+ readonly lineChart: "Line";
2925
+ readonly funnel: "Funnel";
2926
+ };
2889
2927
  readonly select: {
2890
2928
  readonly noResults: "No results found";
2891
2929
  readonly loadingMore: "Loading...";
@@ -3101,6 +3139,11 @@ declare const defaultTranslations: {
3101
3139
  };
3102
3140
  };
3103
3141
 
3142
+ declare interface DeleteBlockNotesTextEditorPageDocumentPatch {
3143
+ type: "delete_block";
3144
+ targetId: string;
3145
+ }
3146
+
3104
3147
  /**
3105
3148
  * @experimental This is an experimental component use it at your own risk
3106
3149
  */
@@ -3208,7 +3251,7 @@ declare type DropdownProps = Omit<DropdownInternalProps, (typeof privateProps_4)
3208
3251
  } & WithDataTestIdProps;
3209
3252
 
3210
3253
  /** The edit mode for a column cell in the editable table. */
3211
- declare type EditableTableCellEditType = "text" | "number" | "date" | "select" | "multiselect" | "display-only" | "disabled";
3254
+ declare type EditableTableCellEditType = "text" | "number" | "money" | "date" | "select" | "multiselect" | "display-only" | "disabled";
3212
3255
 
3213
3256
  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>>;
3214
3257
 
@@ -4578,6 +4621,18 @@ declare type InputInternalProps<T extends string> = Pick<ComponentProps<typeof I
4578
4621
 
4579
4622
  export declare type InputProps<T extends string> = Omit<InputInternalProps<T>, (typeof privateProps_2)[number]>;
4580
4623
 
4624
+ declare interface InsertAfterNotesTextEditorPageDocumentPatch {
4625
+ type: "insert_after";
4626
+ targetId: string;
4627
+ blocks: JSONContent[];
4628
+ }
4629
+
4630
+ declare interface InsertBeforeNotesTextEditorPageDocumentPatch {
4631
+ type: "insert_before";
4632
+ targetId: string;
4633
+ blocks: JSONContent[];
4634
+ }
4635
+
4581
4636
  declare const internalAvatarColors: readonly ["viridian", "malibu", "yellow", "purple", "lilac", "barbie", "smoke", "army", "flubber", "indigo", "camel"];
4582
4637
 
4583
4638
  declare type InternalAvatarProps = React_2.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> & {
@@ -5036,15 +5091,24 @@ declare interface NextStepsProps {
5036
5091
 
5037
5092
  export declare const NotesTextEditor: ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>;
5038
5093
 
5039
- export declare type NotesTextEditorHandle = {
5094
+ export declare interface NotesTextEditorHandle {
5040
5095
  clear: () => void;
5041
5096
  focus: () => void;
5042
5097
  setContent: (content: string) => void;
5098
+ applyPageDocumentPatch: (patch: NotesTextEditorPageDocumentPatch) => NotesTextEditorSnapshot;
5043
5099
  insertAIBlock: () => void;
5044
5100
  insertTranscript: (title: string, users: User[], messages: Message[]) => void;
5045
5101
  pushContent: (content: string) => void;
5046
5102
  insertImage: (file: File) => void;
5047
- };
5103
+ }
5104
+
5105
+ export declare type NotesTextEditorPageDocumentPatch = TopLevelPrependNotesTextEditorPageDocumentPatch | TopLevelAppendNotesTextEditorPageDocumentPatch | InsertBeforeNotesTextEditorPageDocumentPatch | InsertAfterNotesTextEditorPageDocumentPatch | ReplaceBlockNotesTextEditorPageDocumentPatch | ReplaceContentNotesTextEditorPageDocumentPatch | DeleteBlockNotesTextEditorPageDocumentPatch;
5106
+
5107
+ export declare class NotesTextEditorPatchTargetNotFoundError extends Error {
5108
+ readonly code = "target_not_found";
5109
+ readonly targetId: string;
5110
+ constructor(targetId: string);
5111
+ }
5048
5112
 
5049
5113
  export declare interface NotesTextEditorProps extends WithDataTestIdProps {
5050
5114
  onChange: (value: {
@@ -5077,6 +5141,17 @@ export declare interface NotesTextEditorSkeletonProps {
5077
5141
  withToolbar?: boolean;
5078
5142
  }
5079
5143
 
5144
+ export declare interface NotesTextEditorSnapshot {
5145
+ json: JSONContent | null;
5146
+ html: string | null;
5147
+ }
5148
+
5149
+ export declare class NotesTextEditorUnsupportedPatchTypeError extends Error {
5150
+ readonly code = "unsupported_patch_type";
5151
+ readonly patchType: unknown;
5152
+ constructor(patchType: unknown);
5153
+ }
5154
+
5080
5155
  declare type NumberCellConfig = {
5081
5156
  min?: number;
5082
5157
  max?: number;
@@ -5084,6 +5159,7 @@ declare type NumberCellConfig = {
5084
5159
  maxDecimals?: number;
5085
5160
  locale?: string;
5086
5161
  units?: string;
5162
+ unitsPosition?: "before" | "after";
5087
5163
  };
5088
5164
 
5089
5165
  export declare type NumberFilterDefinition = BaseFilterDefinition<"number"> & {
@@ -6079,6 +6155,18 @@ declare type RelaxedNumericWithFormatter = Omit<NumericWithFormatter, "numericVa
6079
6155
 
6080
6156
  declare type RendererDefinition = ValueDisplayRendererDefinition;
6081
6157
 
6158
+ declare interface ReplaceBlockNotesTextEditorPageDocumentPatch {
6159
+ type: "replace_block";
6160
+ targetId: string;
6161
+ block: JSONContent;
6162
+ }
6163
+
6164
+ declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
6165
+ type: "replace_content";
6166
+ targetId: string;
6167
+ content: JSONContent[];
6168
+ }
6169
+
6082
6170
  export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordType;
6083
6171
 
6084
6172
  /**
@@ -6996,6 +7084,16 @@ declare type TooltipInternalProps = {
6996
7084
 
6997
7085
  export declare type TooltipProps = Omit<TooltipInternalProps, (typeof privateProps_6)[number]>;
6998
7086
 
7087
+ declare interface TopLevelAppendNotesTextEditorPageDocumentPatch {
7088
+ type: "top_level_append";
7089
+ blocks: JSONContent[];
7090
+ }
7091
+
7092
+ declare interface TopLevelPrependNotesTextEditorPageDocumentPatch {
7093
+ type: "top_level_prepend";
7094
+ blocks: JSONContent[];
7095
+ }
7096
+
6999
7097
  declare type TranslationKey = Join<PathsToStringProps<typeof defaultTranslations>, ".">;
7000
7098
 
7001
7099
  declare type TranslationShape<T> = {
@@ -7170,6 +7268,8 @@ declare const valueDisplayRenderers: {
7170
7268
  readonly folder: (args: FolderCellValue) => JSX_2.Element;
7171
7269
  readonly country: (args: CountryCellValue, context: ValueDisplayRendererContext) => JSX_2.Element;
7172
7270
  readonly delta: (args: DeltaCellValue) => JSX_2.Element;
7271
+ readonly summary: (args: SummaryCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
7272
+ readonly count: (args: CountCellValue, meta: ValueDisplayRendererContext) => JSX_2.Element;
7173
7273
  };
7174
7274
 
7175
7275
  declare type ValueDisplayTableAlignment = "left" | "right";
@@ -7542,6 +7642,11 @@ declare module "gridstack" {
7542
7642
  }
7543
7643
 
7544
7644
 
7645
+ declare namespace Calendar {
7646
+ var displayName: string;
7647
+ }
7648
+
7649
+
7545
7650
  declare module "@tiptap/core" {
7546
7651
  interface Commands<ReturnType> {
7547
7652
  aiBlock: {
@@ -7589,8 +7694,3 @@ declare module "@tiptap/core" {
7589
7694
  };
7590
7695
  }
7591
7696
  }
7592
-
7593
-
7594
- declare namespace Calendar {
7595
- var displayName: string;
7596
- }