@factorialco/f0-react 3.0.1 → 3.1.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.
@@ -36,7 +36,6 @@ import { Dispatch } from 'react';
36
36
  import { DotTagCellValue } from './types/dotTag';
37
37
  import { DotTagCellValue as DotTagCellValue_2 } from './experimental';
38
38
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
39
- import { Editor } from '@tiptap/react';
40
39
  import { EmployeeItemProps } from './types';
41
40
  import { F0SegmentedControlProps as F0SegmentedControlProps_2 } from './types';
42
41
  import { F0SelectProps as F0SelectProps_2 } from './types';
@@ -717,6 +716,10 @@ declare const alertAvatarVariants: (props?: ({
717
716
 
718
717
  declare type AlertTagProps = ComponentProps<typeof F0TagAlert>;
719
718
 
719
+ declare type AlertVariant = (typeof alertVariantOptions)[number];
720
+
721
+ declare const alertVariantOptions: readonly ["info", "warning", "critical", "neutral", "positive"];
722
+
720
723
  /**
721
724
  * @experimental This is an experimental component use it at your own risk
722
725
  */
@@ -875,14 +878,6 @@ export declare type BannerAction = {
875
878
  icon?: IconType;
876
879
  };
877
880
 
878
- declare interface BannerProps {
879
- icon: IconType;
880
- title: string;
881
- variant: BannerVariant;
882
- }
883
-
884
- declare type BannerVariant = "info" | "warning" | "critical" | "neutral" | "positive";
885
-
886
881
  export declare const BarChart: WithDataTestIdReturnType_4<ForwardRefExoticComponent<Omit<ChartPropsBase<ChartConfig> & {
887
882
  type?: "simple" | "stacked" | "stacked-by-sign";
888
883
  label?: boolean;
@@ -1287,18 +1282,6 @@ export declare type BulkActionsDefinition<R extends RecordType, Filters extends
1287
1282
  warningMessage: string;
1288
1283
  };
1289
1284
 
1290
- export declare interface ButtonConfig {
1291
- key: string;
1292
- icon: IconType;
1293
- active: (editor: Editor) => boolean;
1294
- onClick: (editor: Editor) => void;
1295
- label: string;
1296
- tooltip: {
1297
- label: string;
1298
- shortcut: string[];
1299
- };
1300
- }
1301
-
1302
1285
  declare type ButtonDropdownItem<T = string> = {
1303
1286
  /**
1304
1287
  * The value of the item.
@@ -3631,7 +3614,7 @@ declare const defaultTranslations: {
3631
3614
  readonly blocks: "Blocks";
3632
3615
  };
3633
3616
  readonly ai: {
3634
- readonly enhanceButtonLabel: "Enhance";
3617
+ readonly enhanceButtonLabel: "Generate";
3635
3618
  readonly loadingEnhanceLabel: "Loading...";
3636
3619
  readonly defaultError: "An error occurred while loading";
3637
3620
  readonly closeErrorButtonLabel: "Continue editing";
@@ -3742,7 +3725,7 @@ declare const defaultTranslations: {
3742
3725
  };
3743
3726
  };
3744
3727
 
3745
- declare interface DeleteBlockNotesTextEditorPageDocumentPatch {
3728
+ export declare interface DeleteBlockNotesTextEditorPageDocumentPatch {
3746
3729
  type: "delete_block";
3747
3730
  targetId: string;
3748
3731
  }
@@ -3780,7 +3763,7 @@ export declare type DetailsItemContent = (ComponentProps<typeof DataList.Item> &
3780
3763
  }[TagType_2] | {
3781
3764
  type: "avatar-list";
3782
3765
  avatarList: F0AvatarListProps;
3783
- } | (ComponentProps<typeof FileItem> & {
3766
+ } | (ComponentProps<typeof F0FileItem> & {
3784
3767
  type: "file";
3785
3768
  });
3786
3769
 
@@ -4077,17 +4060,25 @@ declare type EmptyStateType = (typeof emptyStatesTypes)[number];
4077
4060
  export declare type enhanceConfig = {
4078
4061
  onEnhanceText: (params: enhanceTextParams) => Promise<enhancedTextResponse>;
4079
4062
  enhancementOptions?: EnhancementOption[];
4063
+ /** Notified when the user accepts the enhanced result (analytics hook) */
4064
+ onAcceptChanges?: () => void;
4065
+ /** Notified when the user discards the enhanced result (analytics hook) */
4066
+ onRejectChanges?: () => void;
4067
+ /** Notified when the user retries the enhancement (analytics hook) */
4068
+ onRetryChanges?: () => void;
4080
4069
  };
4081
4070
 
4082
4071
  export declare type enhancedTextResponse = {
4083
4072
  success: boolean;
4084
- text: string;
4073
+ /** Enhanced content: an HTML/plain string or a TipTap JSON document */
4074
+ text: string | JSONContent;
4085
4075
  error?: string;
4086
4076
  };
4087
4077
 
4088
4078
  export declare type EnhancementOption = {
4089
4079
  id: string;
4090
4080
  label: string;
4081
+ icon?: IconType;
4091
4082
  subOptions?: EnhancementOption[];
4092
4083
  };
4093
4084
 
@@ -4298,6 +4289,24 @@ export declare type F0AiBannerProps = AiBannerInternalProps;
4298
4289
  /** Assistant-flavoured `F0Message`. Same shape — alias kept for clarity. */
4299
4290
  declare type F0AIMessage = F0Message;
4300
4291
 
4292
+ declare interface F0AlertProps {
4293
+ title: string;
4294
+ description?: string;
4295
+ action?: {
4296
+ label: string;
4297
+ disabled?: boolean;
4298
+ onClick: () => void;
4299
+ };
4300
+ link?: {
4301
+ label: string;
4302
+ href: string;
4303
+ };
4304
+ icon?: IconType;
4305
+ variant: AlertVariant;
4306
+ /** Called when the user dismisses the alert. When provided, a close button is shown. */
4307
+ onClose?: () => void;
4308
+ }
4309
+
4301
4310
  declare const F0AvatarAlert: WithDataTestIdReturnType_5<({ type, size, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, }: AlertAvatarProps_2) => JSX_2.Element>;
4302
4311
 
4303
4312
  declare type F0AvatarCompanyProps = {
@@ -4541,6 +4550,29 @@ export declare const F0Callout: ForwardRefExoticComponent<Omit<CalloutInternalPr
4541
4550
 
4542
4551
  export declare type F0CalloutProps = CalloutInternalProps;
4543
4552
 
4553
+ export declare type F0FileAction = {
4554
+ icon?: IconType;
4555
+ label: string;
4556
+ onClick: () => void;
4557
+ critical?: boolean;
4558
+ };
4559
+
4560
+ /**
4561
+ * @experimental This is an experimental component, use it at your own risk
4562
+ */
4563
+ export declare const F0FileItem: WithDataTestIdReturnType_2<ForwardRefExoticComponent<F0FileItemProps & RefAttributes<HTMLDivElement>>>;
4564
+
4565
+ export declare interface F0FileItemProps extends HTMLAttributes<HTMLDivElement> {
4566
+ file: File | FileDef;
4567
+ actions?: F0FileAction[];
4568
+ disabled?: boolean;
4569
+ size?: F0FileItemSize;
4570
+ }
4571
+
4572
+ export declare type F0FileItemSize = (typeof f0FileItemSizes)[number];
4573
+
4574
+ export declare const f0FileItemSizes: readonly ["md", "lg"];
4575
+
4544
4576
  declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
4545
4577
  icon: IconType;
4546
4578
  size?: "lg" | "md" | "sm" | "xs";
@@ -4566,6 +4598,56 @@ declare type F0Message = {
4566
4598
  [key: string]: any;
4567
4599
  };
4568
4600
 
4601
+ /**
4602
+ * @experimental This is an experimental component, use it at your own risk
4603
+ */
4604
+ export declare const F0NotesTextEditor: ForwardRefExoticComponent<F0NotesTextEditorProps & RefAttributes<F0NotesTextEditorHandle>> & {
4605
+ Skeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
4606
+ };
4607
+
4608
+ export declare type F0NotesTextEditorHandle = {
4609
+ clear: () => void;
4610
+ focus: () => void;
4611
+ setContent: (content: string) => void;
4612
+ applyPageDocumentPatch: (patch: NotesTextEditorPageDocumentPatch) => NotesTextEditorSnapshot;
4613
+ insertAIBlock: () => void;
4614
+ insertTranscript: (title: string, users: User[], messages: Message[]) => void;
4615
+ pushContent: (content: string) => void;
4616
+ insertImage: (file: File) => void;
4617
+ };
4618
+
4619
+ export declare interface F0NotesTextEditorProps {
4620
+ onChange: (value: {
4621
+ json: JSONContent | null;
4622
+ html: string | null;
4623
+ }) => void;
4624
+ placeholder: string;
4625
+ initialEditorState?: {
4626
+ content?: JSONContent | string;
4627
+ title?: string;
4628
+ };
4629
+ readonly?: boolean;
4630
+ aiBlockConfig?: AIBlockConfig;
4631
+ imageUploadConfig?: ImageUploadConfig;
4632
+ enhanceConfig?: enhanceConfig;
4633
+ onTitleChange?: (title: string) => void;
4634
+ titlePlaceholder?: string;
4635
+ primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
4636
+ secondaryActions?: HeaderSecondaryAction[];
4637
+ otherActions?: DropdownItem[];
4638
+ metadata?: MetadataItem[];
4639
+ status?: HeaderStatusProps;
4640
+ alert?: F0AlertProps;
4641
+ }
4642
+
4643
+ export declare const F0NotesTextEditorSkeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
4644
+
4645
+ export declare interface F0NotesTextEditorSkeletonProps {
4646
+ withHeader?: boolean;
4647
+ withTitle?: boolean;
4648
+ withToolbar?: boolean;
4649
+ }
4650
+
4569
4651
  /**
4570
4652
  * F0NumberInput is the writable numeric field for forms — a box where the
4571
4653
  * user types a number. For arbitrary text use F0TextInput; for durations
@@ -4575,6 +4657,70 @@ export declare const F0NumberInput: ForwardRefExoticComponent<Omit<F0NumberInput
4575
4657
 
4576
4658
  export declare type F0NumberInputProps = Omit<NumberInputInternalProps, (typeof privateProps_4)[number]>;
4577
4659
 
4660
+ /**
4661
+ * @experimental This is an experimental component, use it at your own risk
4662
+ */
4663
+ export declare const F0RichTextDisplay: ForwardRefExoticComponent<F0RichTextDisplayProps & RefAttributes<HTMLDivElement>>;
4664
+
4665
+ export declare type F0RichTextDisplayHandle = HTMLDivElement;
4666
+
4667
+ export declare interface F0RichTextDisplayProps extends HTMLAttributes<HTMLDivElement> {
4668
+ content: string;
4669
+ className?: string;
4670
+ format?: "html" | "markdown";
4671
+ }
4672
+
4673
+ /**
4674
+ * @experimental This is an experimental component, use it at your own risk
4675
+ */
4676
+ export declare const F0RichTextEditor: ForwardRefExoticComponent<F0RichTextEditorProps & RefAttributes<F0RichTextEditorHandle>> & {
4677
+ Skeleton: ({ rows, }: F0RichTextEditorSkeletonProps) => JSX_2.Element;
4678
+ };
4679
+
4680
+ export declare type F0RichTextEditorHandle = {
4681
+ clear: () => void;
4682
+ clearFiles: () => void;
4683
+ focus: () => void;
4684
+ setError: (error: string | null) => void;
4685
+ setContent: (content: string) => void;
4686
+ };
4687
+
4688
+ export declare interface F0RichTextEditorProps {
4689
+ mentionsConfig?: MentionsConfig;
4690
+ enhanceConfig?: enhanceConfig;
4691
+ filesConfig?: filesConfig;
4692
+ secondaryAction?: secondaryActionsType;
4693
+ primaryAction?: primaryActionType;
4694
+ onChange: (result: resultType) => void;
4695
+ maxCharacters?: number;
4696
+ placeholder: string;
4697
+ initialEditorState?: {
4698
+ content?: string;
4699
+ files?: File[];
4700
+ };
4701
+ title: string;
4702
+ height?: heightType;
4703
+ plainHtmlMode?: boolean;
4704
+ fullScreenMode?: boolean;
4705
+ onFullscreenChange?: (fullscreen: boolean) => void;
4706
+ /** Whether the editor is disabled */
4707
+ disabled?: boolean;
4708
+ /** Whether the editor has an error state */
4709
+ error?: boolean;
4710
+ /** Whether the editor is in a loading state */
4711
+ loading?: boolean;
4712
+ /**
4713
+ * Voice dictation: transcribes a recorded audio blob into text inserted at
4714
+ * the cursor. Same contract as F0AiChatTextArea — when omitted, the
4715
+ * microphone button is not rendered.
4716
+ */
4717
+ onTranscribe?: TranscribeFn;
4718
+ }
4719
+
4720
+ export declare interface F0RichTextEditorSkeletonProps {
4721
+ rows?: number;
4722
+ }
4723
+
4578
4724
  export declare const F0SearchInput: ForwardRefExoticComponent< {
4579
4725
  value?: string;
4580
4726
  threshold?: number;
@@ -4967,12 +5113,8 @@ export declare const FILE_TYPES: {
4967
5113
  readonly MARKDOWN: "markdown";
4968
5114
  };
4969
5115
 
4970
- export declare type FileAction = {
4971
- icon?: IconType;
4972
- label: string;
4973
- onClick: () => void;
4974
- critical?: boolean;
4975
- };
5116
+ /** @deprecated Use F0FileAction */
5117
+ export declare type FileAction = F0FileAction;
4976
5118
 
4977
5119
  declare type FileAvatarVariant = Extract<AvatarVariant, {
4978
5120
  type: "file";
@@ -4983,26 +5125,14 @@ declare type FileDef = {
4983
5125
  type: string;
4984
5126
  };
4985
5127
 
4986
- export declare const FileItem: WithDataTestIdReturnType_5<ForwardRefExoticComponent<FileItemProps & RefAttributes<HTMLDivElement>>>;
5128
+ /** @deprecated Use F0FileItem */
5129
+ export declare const FileItem: WithDataTestIdReturnType_2<ForwardRefExoticComponent<F0FileItemProps & RefAttributes<HTMLDivElement>>>;
4987
5130
 
4988
- declare interface FileItemProps extends React.HTMLAttributes<HTMLDivElement> {
4989
- file: File | FileDef;
4990
- actions?: FileAction[];
4991
- disabled?: boolean;
4992
- size?: FileItemSize;
4993
- }
4994
-
4995
- export declare type FileItemSize = NonNullable<VariantProps<typeof fileItemVariants>["size"]>;
5131
+ /** @deprecated Use F0FileItemProps */
5132
+ export declare type FileItemProps = F0FileItemProps;
4996
5133
 
4997
- declare const fileItemVariants: (props?: ({
4998
- size?: "lg" | "md" | undefined;
4999
- } & ({
5000
- class?: ClassValue;
5001
- className?: never;
5002
- } | {
5003
- class?: never;
5004
- className?: ClassValue;
5005
- })) | undefined) => string;
5134
+ /** @deprecated Use F0FileItemSize */
5135
+ export declare type FileItemSize = F0FileItemSize;
5006
5136
 
5007
5137
  export declare type filesConfig = {
5008
5138
  onFiles: (files: File[]) => void;
@@ -5332,7 +5462,15 @@ declare type GroupRecord<RecordType> = {
5332
5462
  records: RecordType[];
5333
5463
  };
5334
5464
 
5335
- declare type HeaderProps = {
5465
+ export declare interface HeaderProps {
5466
+ primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
5467
+ secondaryActions?: HeaderSecondaryAction[];
5468
+ metadata?: MetadataItem[];
5469
+ otherActions?: DropdownItem[];
5470
+ status?: HeaderStatusProps;
5471
+ }
5472
+
5473
+ declare type HeaderProps_2 = {
5336
5474
  module: {
5337
5475
  id: ModuleId;
5338
5476
  name: string;
@@ -5362,7 +5500,7 @@ declare type HeaderProps = {
5362
5500
  oneSwitchAutoOpen?: boolean;
5363
5501
  };
5364
5502
 
5365
- declare type HeaderSecondaryAction = HeaderSecondaryButtonAction | HeaderSecondaryDropdownAction;
5503
+ export declare type HeaderSecondaryAction = HeaderSecondaryButtonAction | HeaderSecondaryDropdownAction;
5366
5504
 
5367
5505
  declare type HeaderSecondaryButtonAction = SecondaryAction & {
5368
5506
  hideLabel?: boolean;
@@ -5372,6 +5510,13 @@ declare type HeaderSecondaryDropdownAction = PrimaryDropdownAction<string> & {
5372
5510
  variant?: "outline";
5373
5511
  };
5374
5512
 
5513
+ export declare interface HeaderStatusProps {
5514
+ label: string;
5515
+ text: string;
5516
+ variant: StatusVariant;
5517
+ actions?: MetadataAction[];
5518
+ }
5519
+
5375
5520
  declare interface HeatmapComputation {
5376
5521
  datasetId: string;
5377
5522
  xAxis: string;
@@ -5669,13 +5814,13 @@ declare type InputInternalProps = Pick<ComponentProps<typeof Input_2>, "ref" | "
5669
5814
  */
5670
5815
  export declare type InputProps = F0TextInputProps;
5671
5816
 
5672
- declare interface InsertAfterNotesTextEditorPageDocumentPatch {
5817
+ export declare interface InsertAfterNotesTextEditorPageDocumentPatch {
5673
5818
  type: "insert_after";
5674
5819
  targetId: string;
5675
5820
  blocks: JSONContent[];
5676
5821
  }
5677
5822
 
5678
- declare interface InsertBeforeNotesTextEditorPageDocumentPatch {
5823
+ export declare interface InsertBeforeNotesTextEditorPageDocumentPatch {
5679
5824
  type: "insert_before";
5680
5825
  targetId: string;
5681
5826
  blocks: JSONContent[];
@@ -5838,25 +5983,6 @@ export declare type MentionedUser = {
5838
5983
  href?: string;
5839
5984
  };
5840
5985
 
5841
- export declare interface MentionItemComponentProps {
5842
- item: MentionedUser;
5843
- index: number;
5844
- selected: boolean;
5845
- }
5846
-
5847
- export declare interface MentionListRef {
5848
- onKeyDown: (props: {
5849
- event: KeyboardEvent;
5850
- }) => boolean;
5851
- }
5852
-
5853
- export declare interface MentionNodeAttrs {
5854
- id: string;
5855
- label: string;
5856
- image_url?: string;
5857
- href?: string;
5858
- }
5859
-
5860
5986
  export declare type MentionsConfig = {
5861
5987
  onMentionQueryStringChanged?: (queryString: string) => Promise<MentionedUser[]> | undefined;
5862
5988
  users: MentionedUser[];
@@ -5907,11 +6033,11 @@ declare type MetadataCopyAction = {
5907
6033
  type: "copy";
5908
6034
  };
5909
6035
 
5910
- declare function MetadataItem({ item }: {
6036
+ export declare function MetadataItem({ item }: {
5911
6037
  item: MetadataItem;
5912
6038
  }): JSX_2.Element;
5913
6039
 
5914
- declare interface MetadataItem {
6040
+ export declare interface MetadataItem {
5915
6041
  label: string;
5916
6042
  value: MetadataItemValue;
5917
6043
  actions?: (MetadataAction | MetadataCopyAction)[];
@@ -5931,7 +6057,7 @@ declare interface MetadataItem {
5931
6057
  };
5932
6058
  }
5933
6059
 
5934
- declare type MetadataItemValue = {
6060
+ export declare type MetadataItemValue = {
5935
6061
  type: "text";
5936
6062
  content: string;
5937
6063
  } | {
@@ -6188,69 +6314,30 @@ declare interface NextStepsProps {
6188
6314
  items: StepItemProps[];
6189
6315
  }
6190
6316
 
6191
- export declare const NotesTextEditor: ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>;
6317
+ /** @deprecated Use F0NotesTextEditor */
6318
+ export declare const NotesTextEditor: ForwardRefExoticComponent<F0NotesTextEditorProps & RefAttributes<F0NotesTextEditorHandle>> & {
6319
+ Skeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
6320
+ };
6192
6321
 
6193
- export declare interface NotesTextEditorHandle {
6194
- clear: () => void;
6195
- focus: () => void;
6196
- setContent: (content: string) => void;
6197
- applyPageDocumentPatch: (patch: NotesTextEditorPageDocumentPatch) => NotesTextEditorSnapshot;
6198
- insertAIBlock: () => void;
6199
- insertTranscript: (title: string, users: User[], messages: Message[]) => void;
6200
- pushContent: (content: string) => void;
6201
- insertImage: (file: File) => void;
6202
- }
6322
+ /** @deprecated Use F0NotesTextEditorHandle */
6323
+ export declare type NotesTextEditorHandle = F0NotesTextEditorHandle;
6203
6324
 
6204
6325
  export declare type NotesTextEditorPageDocumentPatch = TopLevelPrependNotesTextEditorPageDocumentPatch | TopLevelAppendNotesTextEditorPageDocumentPatch | InsertBeforeNotesTextEditorPageDocumentPatch | InsertAfterNotesTextEditorPageDocumentPatch | ReplaceBlockNotesTextEditorPageDocumentPatch | ReplaceContentNotesTextEditorPageDocumentPatch | DeleteBlockNotesTextEditorPageDocumentPatch;
6205
6326
 
6206
- export declare class NotesTextEditorPatchTargetNotFoundError extends Error {
6207
- readonly code = "target_not_found";
6208
- readonly targetId: string;
6209
- constructor(targetId: string);
6210
- }
6327
+ /** @deprecated Use F0NotesTextEditorProps */
6328
+ export declare type NotesTextEditorProps = F0NotesTextEditorProps;
6211
6329
 
6212
- export declare interface NotesTextEditorProps extends WithDataTestIdProps {
6213
- onChange: (value: {
6214
- json: JSONContent | null;
6215
- html: string | null;
6216
- }) => void;
6217
- placeholder: string;
6218
- initialEditorState?: {
6219
- content?: JSONContent | string;
6220
- title?: string;
6221
- };
6222
- readonly?: boolean;
6223
- aiBlockConfig?: AIBlockConfig;
6224
- imageUploadConfig?: ImageUploadConfig;
6225
- onTitleChange?: (title: string) => void;
6226
- titlePlaceholder?: string;
6227
- primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
6228
- secondaryActions?: HeaderSecondaryAction[];
6229
- otherActions?: DropdownItem[];
6230
- metadata?: MetadataItem[];
6231
- banner?: BannerProps;
6232
- showBubbleMenu?: boolean;
6233
- }
6330
+ /** @deprecated Use F0NotesTextEditorSkeleton */
6331
+ export declare const NotesTextEditorSkeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
6234
6332
 
6235
- export declare const NotesTextEditorSkeleton: ({ withHeader, withTitle, withToolbar, }: NotesTextEditorSkeletonProps) => JSX_2.Element;
6236
-
6237
- export declare interface NotesTextEditorSkeletonProps {
6238
- withHeader?: boolean;
6239
- withTitle?: boolean;
6240
- withToolbar?: boolean;
6241
- }
6333
+ /** @deprecated Use F0NotesTextEditorSkeletonProps */
6334
+ export declare type NotesTextEditorSkeletonProps = F0NotesTextEditorSkeletonProps;
6242
6335
 
6243
6336
  export declare interface NotesTextEditorSnapshot {
6244
6337
  json: JSONContent | null;
6245
6338
  html: string | null;
6246
6339
  }
6247
6340
 
6248
- export declare class NotesTextEditorUnsupportedPatchTypeError extends Error {
6249
- readonly code = "unsupported_patch_type";
6250
- readonly patchType: unknown;
6251
- constructor(patchType: unknown);
6252
- }
6253
-
6254
6341
  declare type NumberCellConfig<R extends RecordType = RecordType> = {
6255
6342
  min?: number;
6256
6343
  max?: number;
@@ -6915,7 +7002,7 @@ export declare type PageBasedPaginatedResponse<TRecord> = BasePaginatedResponse<
6915
7002
  pagesCount: number;
6916
7003
  };
6917
7004
 
6918
- export declare function PageHeader({ module, statusTag, breadcrumbs, actions, embedded, navigation, productUpdates, favorites, oneSwitchTooltip, oneSwitchAutoOpen, }: HeaderProps): JSX_2.Element;
7005
+ export declare function PageHeader({ module, statusTag, breadcrumbs, actions, embedded, navigation, productUpdates, favorites, oneSwitchTooltip, oneSwitchAutoOpen, }: HeaderProps_2): JSX_2.Element;
6919
7006
 
6920
7007
  export declare type PageHeaderItemNavigationInput<R extends RecordType> = Pick<UseDataSourceItemNavigationReturn<R>, "previousItem" | "nextItem" | "previousItemUrl" | "nextItemUrl" | "absoluteIndex" | "totalItems" | "activeIndex">;
6921
7008
 
@@ -7141,7 +7228,7 @@ declare type PrimaryAction_2 = BaseAction & {
7141
7228
  variant?: PrimaryActionVariant;
7142
7229
  };
7143
7230
 
7144
- declare interface PrimaryActionButton extends PrimaryAction {
7231
+ export declare interface PrimaryActionButton extends PrimaryAction {
7145
7232
  label: string;
7146
7233
  icon?: IconType;
7147
7234
  onClick: () => void;
@@ -7166,7 +7253,7 @@ export declare type primaryActionType = {
7166
7253
 
7167
7254
  declare type PrimaryActionVariant = "default" | "critical" | "neutral";
7168
7255
 
7169
- declare interface PrimaryDropdownAction<T> extends PrimaryAction {
7256
+ export declare interface PrimaryDropdownAction<T> extends PrimaryAction {
7170
7257
  items: ButtonDropdownItem<T>[];
7171
7258
  value?: T;
7172
7259
  onClick: (value: T, item: ButtonDropdownItem<T>) => void;
@@ -7451,13 +7538,13 @@ declare type RelaxedNumericWithFormatter = Omit<NumericWithFormatter, "numericVa
7451
7538
 
7452
7539
  declare type RendererDefinition = ValueDisplayRendererDefinition;
7453
7540
 
7454
- declare interface ReplaceBlockNotesTextEditorPageDocumentPatch {
7541
+ export declare interface ReplaceBlockNotesTextEditorPageDocumentPatch {
7455
7542
  type: "replace_block";
7456
7543
  targetId: string;
7457
7544
  block: JSONContent;
7458
7545
  }
7459
7546
 
7460
- declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
7547
+ export declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
7461
7548
  type: "replace_content";
7462
7549
  targetId: string;
7463
7550
  content: JSONContent[];
@@ -7498,59 +7585,28 @@ export declare type resultType = {
7498
7585
  mentionIds?: string[];
7499
7586
  };
7500
7587
 
7501
- export declare const RichTextDisplay: WithDataTestIdReturnType_5<ForwardRefExoticComponent<RichTextDisplayProps & RefAttributes<HTMLDivElement>>>;
7588
+ /** @deprecated Use F0RichTextDisplay */
7589
+ export declare const RichTextDisplay: ForwardRefExoticComponent<F0RichTextDisplayProps & RefAttributes<HTMLDivElement>>;
7502
7590
 
7503
- export declare type RichTextDisplayHandle = HTMLDivElement;
7591
+ /** @deprecated Use F0RichTextDisplayHandle */
7592
+ export declare type RichTextDisplayHandle = F0RichTextDisplayHandle;
7504
7593
 
7505
- export declare interface RichTextDisplayProps extends HTMLAttributes<HTMLDivElement> {
7506
- content: string;
7507
- className?: string;
7508
- format?: "html" | "markdown";
7509
- }
7594
+ /** @deprecated Use F0RichTextDisplayProps */
7595
+ export declare type RichTextDisplayProps = F0RichTextDisplayProps;
7510
7596
 
7511
- export declare const RichTextEditor: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes<RichTextEditorHandle>> & {
7512
- Skeleton: ({ rows }: RichTextEditorSkeletonProps) => JSX_2.Element;
7597
+ /** @deprecated Use F0RichTextEditor */
7598
+ export declare const RichTextEditor: ForwardRefExoticComponent<F0RichTextEditorProps & RefAttributes<F0RichTextEditorHandle>> & {
7599
+ Skeleton: ({ rows, }: F0RichTextEditorSkeletonProps) => JSX_2.Element;
7513
7600
  };
7514
7601
 
7515
- export declare type RichTextEditorHandle = {
7516
- clear: () => void;
7517
- clearFiles: () => void;
7518
- focus: () => void;
7519
- setError: (error: string | null) => void;
7520
- setContent: (content: string) => void;
7521
- };
7602
+ /** @deprecated Use F0RichTextEditorHandle */
7603
+ export declare type RichTextEditorHandle = F0RichTextEditorHandle;
7522
7604
 
7523
- export declare interface RichTextEditorProps {
7524
- mentionsConfig?: MentionsConfig;
7525
- enhanceConfig?: enhanceConfig;
7526
- filesConfig?: filesConfig;
7527
- secondaryAction?: secondaryActionsType;
7528
- primaryAction?: primaryActionType;
7529
- onChange: (result: resultType) => void;
7530
- onBlur?: () => void;
7531
- maxCharacters?: number;
7532
- placeholder: string;
7533
- initialEditorState?: {
7534
- content?: string;
7535
- files?: File[];
7536
- };
7537
- title: string;
7538
- height?: heightType;
7539
- plainHtmlMode?: boolean;
7540
- fullScreenMode?: boolean;
7541
- onFullscreenChange?: (fullscreen: boolean) => void;
7542
- /** Whether the editor is disabled */
7543
- disabled?: boolean;
7544
- /** Whether the editor has an error state */
7545
- error?: boolean;
7546
- /** Whether the editor is in a loading state */
7547
- loading?: boolean;
7548
- dataTestId?: string;
7549
- }
7605
+ /** @deprecated Use F0RichTextEditorProps */
7606
+ export declare type RichTextEditorProps = F0RichTextEditorProps;
7550
7607
 
7551
- declare interface RichTextEditorSkeletonProps {
7552
- rows?: number;
7553
- }
7608
+ /** @deprecated Use F0RichTextEditorSkeletonProps */
7609
+ export declare type RichTextEditorSkeletonProps = F0RichTextEditorSkeletonProps;
7554
7610
 
7555
7611
  export declare const ScrollArea: WithDataTestIdReturnType<ForwardRefExoticComponent<Omit<Omit<ScrollAreaProps & RefAttributes<HTMLDivElement>, "ref"> & {
7556
7612
  showBar?: boolean;
@@ -8404,38 +8460,6 @@ export declare const ToggleGroupItem: React_2.ForwardRefExoticComponent<Omit<Tog
8404
8460
  className?: ClassValue;
8405
8461
  })) | undefined) => string> & React_2.RefAttributes<HTMLButtonElement>>;
8406
8462
 
8407
- export declare interface ToolbarButtonProps {
8408
- onClick?: () => void;
8409
- active?: boolean;
8410
- label: string;
8411
- disabled: boolean;
8412
- icon: IconType;
8413
- tooltip?: {
8414
- description?: string;
8415
- label?: string;
8416
- shortcut?: ComponentProps<typeof Shortcut>["keys"];
8417
- };
8418
- showLabel?: boolean;
8419
- }
8420
-
8421
- export declare interface ToolbarDropdownItem {
8422
- label: string;
8423
- icon: IconType;
8424
- onClick: () => void;
8425
- isActive: boolean;
8426
- }
8427
-
8428
- export declare interface ToolbarProps {
8429
- editor: Editor;
8430
- isFullscreen?: boolean;
8431
- disableButtons: boolean;
8432
- onClose?: () => void;
8433
- animationComplete?: boolean;
8434
- darkMode?: boolean;
8435
- showEmojiPicker?: boolean;
8436
- plainHtmlMode?: boolean;
8437
- }
8438
-
8439
8463
  /**
8440
8464
  * @experimental This is an experimental component use it at your own risk
8441
8465
  */
@@ -8456,12 +8480,12 @@ declare type TooltipInternalProps = {
8456
8480
 
8457
8481
  export declare type TooltipProps = Omit<TooltipInternalProps, (typeof privateProps_7)[number]>;
8458
8482
 
8459
- declare interface TopLevelAppendNotesTextEditorPageDocumentPatch {
8483
+ export declare interface TopLevelAppendNotesTextEditorPageDocumentPatch {
8460
8484
  type: "top_level_append";
8461
8485
  blocks: JSONContent[];
8462
8486
  }
8463
8487
 
8464
- declare interface TopLevelPrependNotesTextEditorPageDocumentPatch {
8488
+ export declare interface TopLevelPrependNotesTextEditorPageDocumentPatch {
8465
8489
  type: "top_level_prepend";
8466
8490
  blocks: JSONContent[];
8467
8491
  }
@@ -8519,6 +8543,8 @@ declare namespace Types {
8519
8543
  }
8520
8544
  }
8521
8545
 
8546
+ export declare const UPLOAD_INPUT_ID = "rich-text-editor-upload-button";
8547
+
8522
8548
  /**
8523
8549
  * Tracking options for the AI chat
8524
8550
  */
@@ -9291,9 +9317,9 @@ declare namespace Calendar {
9291
9317
 
9292
9318
  declare module "@tiptap/core" {
9293
9319
  interface Commands<ReturnType> {
9294
- enhanceHighlight: {
9295
- setEnhanceHighlight: (from: number, to: number) => ReturnType;
9296
- clearEnhanceHighlight: () => ReturnType;
9320
+ aiBlock: {
9321
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
9322
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
9297
9323
  };
9298
9324
  }
9299
9325
  }
@@ -9301,9 +9327,11 @@ declare module "@tiptap/core" {
9301
9327
 
9302
9328
  declare module "@tiptap/core" {
9303
9329
  interface Commands<ReturnType> {
9304
- aiBlock: {
9305
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
9306
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
9330
+ enhanceHighlight: {
9331
+ setEnhanceHighlight: (from: number, to: number, options?: {
9332
+ placeholder?: string;
9333
+ }) => ReturnType;
9334
+ clearEnhanceHighlight: () => ReturnType;
9307
9335
  };
9308
9336
  }
9309
9337
  }