@factorialco/f0-react 1.438.2 → 1.438.4

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.
package/dist/f0.d.ts CHANGED
@@ -40,6 +40,7 @@ import { DeltaCellValue } from './types/delta';
40
40
  import { DotTagCellValue } from './f0';
41
41
  import { DotTagCellValue as DotTagCellValue_2 } from './types/dotTag';
42
42
  import type * as echarts_2 from 'echarts';
43
+ import { Editor } from '@tiptap/react';
43
44
  import { F0AnalyticsDashboardProps as F0AnalyticsDashboardProps_2 } from './types';
44
45
  import { F0AvatarCompanyProps as F0AvatarCompanyProps_2 } from './types';
45
46
  import { F0AvatarDateProps } from './F0AvatarDate';
@@ -88,12 +89,14 @@ import { InputProps } from '@copilotkit/react-ui';
88
89
  import { internalAvatarColors as internalAvatarColors_2 } from './f0';
89
90
  import { internalAvatarSizes as internalAvatarSizes_2 } from './f0';
90
91
  import { internalAvatarTypes as internalAvatarTypes_2 } from './f0';
92
+ import { JSONContent } from '@tiptap/react';
93
+ import { JSONContent as JSONContent_2 } from '@tiptap/core';
91
94
  import { JSX as JSX_2 } from 'react';
92
95
  import { LineChartConfig as LineChartConfig_2 } from './f0';
93
96
  import { LineChartPropsBase } from './utils/types';
94
97
  import { LocalAudioTrack } from 'livekit-client';
95
98
  import { LongTextCellValue } from './types/longText';
96
- import { Message } from '@copilotkit/shared';
99
+ import { Message as Message_2 } from '@copilotkit/shared';
97
100
  import { NumberCellValue } from './f0';
98
101
  import { NumberCellValue as NumberCellValue_2 } from './types/number';
99
102
  import { NumberFilterOptions } from './NumberFilter/NumberFilter';
@@ -141,6 +144,7 @@ import { WithDataTestIdReturnType as WithDataTestIdReturnType_4 } from './f0';
141
144
  import { WithDataTestIdReturnType as WithDataTestIdReturnType_5 } from './f0';
142
145
  import { WithDataTestIdReturnType as WithDataTestIdReturnType_6 } from './f0';
143
146
  import { WithDataTestIdReturnType as WithDataTestIdReturnType_7 } from './f0';
147
+ import { WithDataTestIdReturnType as WithDataTestIdReturnType_8 } from './f0';
144
148
  import { z } from 'zod';
145
149
  import { ZodEffects } from 'zod';
146
150
  import { ZodRawShape } from 'zod';
@@ -302,12 +306,72 @@ declare const actionLinkVariants: readonly ["link", "unstyled", "mention"];
302
306
 
303
307
  declare type ActionProps = ActionLinkProps | ActionButtonProps;
304
308
 
309
+ declare type ActionProps_2 = {
310
+ /**
311
+ * The label of the action
312
+ */
313
+ label: string;
314
+ /**
315
+ * The click handler of the action
316
+ */
317
+ onClick: () => void;
318
+ /**
319
+ * The variant of the action
320
+ * @default "default"
321
+ * @optional
322
+ */
323
+ variant?: "default" | "outline" | "promote";
324
+ /**
325
+ * The icon of the action
326
+ * @optional
327
+ */
328
+ icon?: IconType;
329
+ } & ({
330
+ /**
331
+ * The type of the action
332
+ */
333
+ type: "upsell";
334
+ /**
335
+ * The error message of the action
336
+ */
337
+ errorMessage: ErrorMessageProps;
338
+ /**
339
+ * The success message of the action
340
+ */
341
+ successMessage: SuccessMessageProps;
342
+ /**
343
+ * The loading state of the action
344
+ */
345
+ loadingState: LoadingStateProps;
346
+ /**
347
+ * The next steps of the action
348
+ */
349
+ nextSteps: NextStepsProps;
350
+ /**
351
+ * The next steps of the action
352
+ */
353
+ closeLabel: string;
354
+ } | {
355
+ /**
356
+ * The type of the action
357
+ */
358
+ type?: "default";
359
+ });
360
+
305
361
  declare type ActionSize = (typeof actionSizes)[number];
306
362
 
307
363
  declare const actionSizes: readonly ["sm", "md", "lg"];
308
364
 
309
365
  export declare type ActionType = "duplicate" | "delete";
310
366
 
367
+ export declare type actionType = {
368
+ label: string;
369
+ onClick: () => void;
370
+ disabled?: boolean;
371
+ variant: "default" | "outline" | "neutral" | undefined;
372
+ icon?: IconType;
373
+ };
374
+
311
375
  declare type ActionType_2 = {
312
376
  label: string;
313
377
  icon?: IconType;
@@ -327,6 +391,20 @@ declare type AddRowActionsResult = PrimaryActionItemDefinition | PrimaryActionIt
327
391
 
328
392
  declare type AggregationType = "count" | "sum" | "avg" | "min" | "max" | "countDistinct";
329
393
 
394
+ declare interface AIBlockConfig {
395
+ buttons?: AIButton[];
396
+ onClick: (type: string) => Promise<JSONContent_2 | null>;
397
+ title: string;
398
+ }
399
+
400
+ declare type AIButton = {
401
+ type: string;
402
+ emoji: string;
403
+ label: string;
404
+ icon: IconType;
405
+ editable?: boolean;
406
+ };
407
+
330
408
  /**
331
409
  * Credits configuration for the AI chat.
332
410
  * Groups all credits-related props into a single object.
@@ -492,7 +570,7 @@ declare type AiChatProviderReturnValue = {
492
570
  * Send a message to the chat
493
571
  * @param message - The message content as a string, or a full Message object
494
572
  */
495
- sendMessage: (message: string | Message) => void;
573
+ sendMessage: (message: string | Message_2) => void;
496
574
  /* Excluded from this release type: setSendMessageFunction */
497
575
  /**
498
576
  * Current width of the chat window (for resizable mode)
@@ -544,6 +622,13 @@ declare type AiChatProviderReturnValue = {
544
622
  clarifyingQuestion: ClarifyingQuestionState | null;
545
623
  /** Set the current clarifying question (or null to dismiss) */
546
624
  setClarifyingQuestion: React.Dispatch<React.SetStateAction<ClarifyingQuestionState | null>>;
625
+ /**
626
+ * Whether files are currently being dragged over the chat window.
627
+ * Set by the ChatWindow drag listeners and read by the DropOverlay
628
+ * to control its visibility.
629
+ */
630
+ fileDragOver: boolean;
631
+ /* Excluded from this release type: setFileDragOver */
547
632
  } & Pick<AiChatState, "greeting" | "agent" | "disclaimer" | "resizable" | "entityRefs" | "toolHints" | "credits" | "fileAttachments"> & {
548
633
  /** The current canvas content, or null when canvas is closed */
549
634
  canvasContent: CanvasContent | null;
@@ -617,7 +702,7 @@ declare type AiChatTrackingOptions = {
617
702
  onClose?: () => void;
618
703
  onWelcomeSuggestionClick?: (suggestion: WelcomeScreenSuggestion) => void;
619
704
  onNewChat?: () => void;
620
- onMessage?: (message: Message) => void;
705
+ onMessage?: (message: Message_2) => void;
621
706
  };
622
707
 
623
708
  /**
@@ -729,6 +814,7 @@ export declare const aiTranslations: {
729
814
  };
730
815
  readonly attachFile: "Attach file";
731
816
  readonly removeFile: "Remove";
817
+ readonly dropFilesHere: "Drop your files here";
732
818
  readonly clarifyingQuestion: {
733
819
  readonly submit: "Submit";
734
820
  readonly next: "Next";
@@ -939,6 +1025,14 @@ declare type BannerAction = {
939
1025
  icon?: IconType;
940
1026
  };
941
1027
 
1028
+ declare interface BannerProps {
1029
+ icon: IconType;
1030
+ title: string;
1031
+ variant: BannerVariant;
1032
+ }
1033
+
1034
+ declare type BannerVariant = "info" | "warning" | "critical" | "neutral" | "positive";
1035
+
942
1036
  export declare const BarChart: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<ChartPropsBase<ChartConfig> & {
943
1037
  type?: "simple" | "stacked" | "stacked-by-sign";
944
1038
  label?: boolean;
@@ -1326,6 +1420,18 @@ declare type BulkActionsDefinition<R extends RecordType, Filters extends Filters
1326
1420
  warningMessage: string;
1327
1421
  };
1328
1422
 
1423
+ export declare interface ButtonConfig {
1424
+ key: string;
1425
+ icon: IconType;
1426
+ active: (editor: Editor) => boolean;
1427
+ onClick: (editor: Editor) => void;
1428
+ label: string;
1429
+ tooltip: {
1430
+ label: string;
1431
+ shortcut: string[];
1432
+ };
1433
+ }
1434
+
1329
1435
  export declare type ButtonDropdownGroup<T = string> = {
1330
1436
  label?: string;
1331
1437
  items: ButtonDropdownItem<T>[];
@@ -1482,9 +1588,15 @@ export declare type ButtonVariant = Exclude<(typeof actionButtonVariants)[number
1482
1588
 
1483
1589
  export declare const buttonVariants: ("default" | "critical" | "promote" | "neutral" | "outline" | "ghost" | "outlinePromote")[];
1484
1590
 
1485
- declare type CalendarMode = "single" | "range";
1591
+ export declare type CalendarDate = {
1592
+ day: number;
1593
+ month: number;
1594
+ year: number;
1595
+ };
1596
+
1597
+ export declare type CalendarMode = "single" | "range";
1486
1598
 
1487
- declare type CalendarView = "day" | "month" | "year" | "week" | "quarter" | "halfyear";
1599
+ export declare type CalendarView = "day" | "month" | "year" | "week" | "quarter" | "halfyear";
1488
1600
 
1489
1601
  /**
1490
1602
  * Profile data for a candidate entity (ATS applicant), resolved asynchronously
@@ -3028,7 +3140,7 @@ declare type DateFilterOptions_2 = {
3028
3140
  */
3029
3141
  export declare type DateGranularity = "day" | "week" | "month" | "quarter" | "halfyear" | "year" | "range";
3030
3142
 
3031
- declare type DateNavigationOptions = {
3143
+ export declare type DateNavigationOptions = {
3032
3144
  min?: Date;
3033
3145
  max?: Date;
3034
3146
  };
@@ -3088,12 +3200,17 @@ declare type DateQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
3088
3200
  value?: Date | null;
3089
3201
  };
3090
3202
 
3091
- declare type DateRange = {
3203
+ export declare type DateRange = {
3092
3204
  from: Date;
3093
3205
  to?: Date;
3094
3206
  };
3095
3207
 
3096
- declare type DateRangeComplete = Required<DateRange>;
3208
+ export declare type DateRangeComplete = Required<DateRange>;
3209
+
3210
+ export declare type DateRangeError = {
3211
+ from: boolean;
3212
+ to: boolean;
3213
+ };
3097
3214
 
3098
3215
  /**
3099
3216
  * All valid renderIf conditions for date range fields
@@ -3114,7 +3231,7 @@ export declare type DateRangeRenderIfCondition = DateRangeRenderIfBase & {
3114
3231
  isEmpty: boolean;
3115
3232
  };
3116
3233
 
3117
- declare type DateRangeString = {
3234
+ export declare type DateRangeString = {
3118
3235
  from: string;
3119
3236
  to?: string;
3120
3237
  };
@@ -3153,7 +3270,7 @@ export declare type DateRenderIfCondition = DateRenderIfBase & ({
3153
3270
  isEmpty: boolean;
3154
3271
  });
3155
3272
 
3156
- declare type DateStringFormat = "default" | "long";
3273
+ export declare type DateStringFormat = "default" | "long";
3157
3274
 
3158
3275
  declare type DateValue = {
3159
3276
  value: DateRangeComplete;
@@ -3612,6 +3729,7 @@ export declare const defaultTranslations: {
3612
3729
  };
3613
3730
  readonly attachFile: "Attach file";
3614
3731
  readonly removeFile: "Remove";
3732
+ readonly dropFilesHere: "Drop your files here";
3615
3733
  readonly clarifyingQuestion: {
3616
3734
  readonly submit: "Submit";
3617
3735
  readonly next: "Next";
@@ -4101,6 +4219,11 @@ declare type EditableTableVisualizationOptions<R extends RecordType, _Filters ex
4101
4219
 
4102
4220
  declare type EditableTableVisualizationSettings = TableVisualizationSettings;
4103
4221
 
4222
+ export declare type editorStateType = {
4223
+ html: string;
4224
+ json: JSONContent | null;
4225
+ };
4226
+
4104
4227
  export declare type ElementType = QuestionType | "section";
4105
4228
 
4106
4229
  export declare function EmojiImage({ emoji, size, alt }: EmojiImageProps): JSX_2.Element;
@@ -4120,6 +4243,30 @@ declare const emojiVariants: (props?: ({
4120
4243
  className?: ClassValue;
4121
4244
  })) | undefined) => string;
4122
4245
 
4246
+ export declare type enhanceConfig = {
4247
+ onEnhanceText: (params: enhanceTextParams) => Promise<enhancedTextResponse>;
4248
+ enhancementOptions?: EnhancementOption[];
4249
+ };
4250
+
4251
+ export declare type enhancedTextResponse = {
4252
+ success: boolean;
4253
+ text: string;
4254
+ error?: string;
4255
+ };
4256
+
4257
+ export declare type EnhancementOption = {
4258
+ id: string;
4259
+ label: string;
4260
+ subOptions?: EnhancementOption[];
4261
+ };
4262
+
4263
+ export declare type enhanceTextParams = {
4264
+ text: string;
4265
+ selectedIntent?: string;
4266
+ customIntent?: string;
4267
+ context?: string;
4268
+ };
4269
+
4123
4270
  /**
4124
4271
  * Grouped configuration for entity references in the AI chat.
4125
4272
  * Combines resolver functions (data fetching) with URL builders (navigation).
@@ -6559,7 +6706,7 @@ export declare type F0FormSubmitResult = {
6559
6706
  errors?: Record<string, string>;
6560
6707
  };
6561
6708
 
6562
- export declare const F0GridStack: WithDataTestIdReturnType_4< {
6709
+ export declare const F0GridStack: WithDataTestIdReturnType_7< {
6563
6710
  ({ options, widgets, onChange, className, static: isStatic, forcePositionSync, }: F0GridStackProps_2): JSX_2.Element;
6564
6711
  displayName: string;
6565
6712
  }>;
@@ -7482,6 +7629,28 @@ export declare function fieldsToSeconds(fields: DurationFields): number;
7482
7629
  */
7483
7630
  export declare type FieldType = "text" | "number" | "duration" | "textarea" | "select" | "checkbox" | "switch" | "date" | "time" | "datetime" | "daterange" | "richtext" | "file" | "cardSelect" | "custom";
7484
7631
 
7632
+ export declare const FILE_TYPES: {
7633
+ readonly PDF: "pdf";
7634
+ readonly IMAGE: "image";
7635
+ readonly DOC: "doc";
7636
+ readonly EXCEL: "excel";
7637
+ readonly PPT: "ppt";
7638
+ readonly TXT: "txt";
7639
+ readonly VIDEO: "video";
7640
+ readonly AUDIO: "audio";
7641
+ readonly ARCHIVE: "archive";
7642
+ readonly CSV: "csv";
7643
+ readonly HTML: "html";
7644
+ readonly MARKDOWN: "markdown";
7645
+ };
7646
+
7647
+ export declare type FileAction = {
7648
+ icon?: IconType;
7649
+ label: string;
7650
+ onClick: () => void;
7651
+ critical?: boolean;
7652
+ };
7653
+
7485
7654
  export declare type FileAvatarVariant = Extract<AvatarVariant, {
7486
7655
  type: "file";
7487
7656
  }>;
@@ -7496,6 +7665,27 @@ declare type FileDef = {
7496
7665
  */
7497
7666
  declare type FileFieldRenderIf = CommonRenderIfCondition | F0BaseFieldRenderIfFunction;
7498
7667
 
7668
+ export declare const FileItem: WithDataTestIdReturnType_4<ForwardRefExoticComponent<FileItemProps & RefAttributes<HTMLDivElement>>>;
7669
+
7670
+ declare interface FileItemProps extends React.HTMLAttributes<HTMLDivElement> {
7671
+ file: File | FileDef;
7672
+ actions?: FileAction[];
7673
+ disabled?: boolean;
7674
+ size?: FileItemSize;
7675
+ }
7676
+
7677
+ export declare type FileItemSize = NonNullable<VariantProps<typeof fileItemVariants>["size"]>;
7678
+
7679
+ declare const fileItemVariants: (props?: ({
7680
+ size?: "lg" | "md" | undefined;
7681
+ } & ({
7682
+ class?: ClassValue;
7683
+ className?: never;
7684
+ } | {
7685
+ class?: never;
7686
+ className?: ClassValue;
7687
+ })) | undefined) => string;
7688
+
7499
7689
  declare type FileQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
7500
7690
  type: "file";
7501
7691
  value?: string[] | null;
@@ -7504,6 +7694,15 @@ declare type FileQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
7504
7694
  maxSizeMB?: number;
7505
7695
  };
7506
7696
 
7697
+ export declare type filesConfig = {
7698
+ onFiles: (files: File[]) => void;
7699
+ multipleFiles: boolean;
7700
+ maxFileSize?: number;
7701
+ acceptedFileType?: FileType[];
7702
+ };
7703
+
7704
+ export declare type FileType = (typeof FILE_TYPES)[keyof typeof FILE_TYPES];
7705
+
7507
7706
  /**
7508
7707
  * Return type of the consumer-provided upload hook
7509
7708
  */
@@ -7921,6 +8120,16 @@ export declare function getEmojiLabel(emoji: string): string;
7921
8120
  */
7922
8121
  export declare function getF0Config(schema: ZodTypeAny): F0FieldConfig | undefined;
7923
8122
 
8123
+ export declare const getGranularityDefinition: (granularityKey: GranularityDefinitionKey) => GranularityDefinition;
8124
+
8125
+ /**
8126
+ * Get granularity definitions with week granularity configured with the specified weekStartsOn.
8127
+ * The week granularity is only created when needed (lazy creation).
8128
+ */
8129
+ export declare function getGranularityDefinitions(weekStartsOn?: WeekStartsOn): Record<string, GranularityDefinition>;
8130
+
8131
+ export declare const getGranularitySimpleDefinition: (granularityKey: GranularityDefinitionKey) => GranularityDefinitionSimple;
8132
+
7924
8133
  /**
7925
8134
  * Non-hook version for extracting definition outside of React components.
7926
8135
  * Useful for server-side rendering or testing.
@@ -7931,7 +8140,7 @@ export declare function getF0Config(schema: ZodTypeAny): F0FieldConfig | undefin
7931
8140
  */
7932
8141
  export declare function getSchemaDefinition(schema: F0FormSchema, sections?: Record<string, F0SectionConfig>): FormDefinitionItem[];
7933
8142
 
7934
- declare interface GranularityDefinition {
8143
+ export declare interface GranularityDefinition {
7935
8144
  calendarMode?: CalendarMode;
7936
8145
  calendarView: CalendarView;
7937
8146
  weekStartsOn?: WeekStartsOn;
@@ -7963,9 +8172,11 @@ declare interface GranularityDefinition {
7963
8172
  getPrevNext(date: DateRange, options: DateNavigationOptions): PrevNextDateNavigation;
7964
8173
  }
7965
8174
 
7966
- declare type GranularityDefinitionKey = keyof typeof granularityDefinitions;
8175
+ export declare type GranularityDefinitionKey = keyof typeof granularityDefinitions;
7967
8176
 
7968
- declare const granularityDefinitions: Record<string, GranularityDefinition>;
8177
+ export declare const granularityDefinitions: Record<string, GranularityDefinition>;
8178
+
8179
+ export declare type GranularityDefinitionSimple = Pick<GranularityDefinition, "toRangeString" | "toString">;
7969
8180
 
7970
8181
  export declare type GridStackReactOptions = Omit<GridStackOptions, "children">;
7971
8182
 
@@ -8116,7 +8327,7 @@ declare interface HeatmapComputation {
8116
8327
  aggregation: AggregationType;
8117
8328
  }
8118
8329
 
8119
- declare type heightType = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "auto";
8330
+ export declare type heightType = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "auto";
8120
8331
 
8121
8332
  export declare const HomeLayout: WithDataTestIdReturnType_2<ForwardRefExoticComponent<Omit<{
8122
8333
  widgets?: ReactNode[];
@@ -8168,6 +8379,17 @@ declare type ImageContextValue = {
8168
8379
 
8169
8380
  declare type ImageProps = ImgHTMLAttributes<HTMLImageElement>;
8170
8381
 
8382
+ export declare interface ImageUploadConfig {
8383
+ onUpload: (file: File) => Promise<{
8384
+ url: string;
8385
+ signedId?: string;
8386
+ }>;
8387
+ maxFileSize?: number;
8388
+ onError?: (errorType: ImageUploadErrorType) => void;
8389
+ }
8390
+
8391
+ declare type ImageUploadErrorType = "file-too-large" | "invalid-type" | "upload-failed";
8392
+
8171
8393
  /**
8172
8394
  * Extract the inferred type from an F0 form schema
8173
8395
  */
@@ -8482,6 +8704,11 @@ declare type Lane<Filters extends FiltersDefinition> = {
8482
8704
  filters: FiltersState<Filters>;
8483
8705
  };
8484
8706
 
8707
+ export declare type lastIntentType = {
8708
+ selectedIntent?: string;
8709
+ customIntent?: string;
8710
+ } | null;
8711
+
8485
8712
  export declare const Layout: {
8486
8713
  Page: WithDataTestIdReturnType_3<ForwardRefExoticComponent<PageProps & RefAttributes<HTMLDivElement>>>;
8487
8714
  Block: WithDataTestIdReturnType_3<ForwardRefExoticComponent<BlockProps & RefAttributes<HTMLDivElement>>>;
@@ -8648,18 +8875,43 @@ export declare type MaskOptions = {
8648
8875
 
8649
8876
  declare const MAX_EXPANDED_ACTIONS = 2;
8650
8877
 
8651
- declare type MentionedUser = {
8878
+ export declare type MentionedUser = {
8652
8879
  id: number;
8653
8880
  label: string;
8654
8881
  image_url?: string;
8655
8882
  href?: string;
8656
8883
  };
8657
8884
 
8658
- declare type MentionsConfig = {
8885
+ export declare interface MentionItemComponentProps {
8886
+ item: MentionedUser;
8887
+ index: number;
8888
+ selected: boolean;
8889
+ }
8890
+
8891
+ export declare interface MentionListRef {
8892
+ onKeyDown: (props: {
8893
+ event: KeyboardEvent;
8894
+ }) => boolean;
8895
+ }
8896
+
8897
+ export declare interface MentionNodeAttrs {
8898
+ id: string;
8899
+ label: string;
8900
+ image_url?: string;
8901
+ href?: string;
8902
+ }
8903
+
8904
+ export declare type MentionsConfig = {
8659
8905
  onMentionQueryStringChanged?: (queryString: string) => Promise<MentionedUser[]> | undefined;
8660
8906
  users: MentionedUser[];
8661
8907
  };
8662
8908
 
8909
+ export declare interface Message {
8910
+ userId: string;
8911
+ text: string;
8912
+ dateTime: string;
8913
+ }
8914
+
8663
8915
  declare type MetadataAction = {
8664
8916
  icon: IconType;
8665
8917
  label: string;
@@ -8932,6 +9184,49 @@ export declare interface NextStepsProps {
8932
9184
  items: StepItemProps[];
8933
9185
  }
8934
9186
 
9187
+ export declare const NotesTextEditor: ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>;
9188
+
9189
+ export declare type NotesTextEditorHandle = {
9190
+ clear: () => void;
9191
+ focus: () => void;
9192
+ setContent: (content: string) => void;
9193
+ insertAIBlock: () => void;
9194
+ insertTranscript: (title: string, users: User[], messages: Message[]) => void;
9195
+ pushContent: (content: string) => void;
9196
+ insertImage: (file: File) => void;
9197
+ };
9198
+
9199
+ export declare interface NotesTextEditorProps extends WithDataTestIdProps {
9200
+ onChange: (value: {
9201
+ json: JSONContent | null;
9202
+ html: string | null;
9203
+ }) => void;
9204
+ placeholder: string;
9205
+ initialEditorState?: {
9206
+ content?: JSONContent | string;
9207
+ title?: string;
9208
+ };
9209
+ readonly?: boolean;
9210
+ aiBlockConfig?: AIBlockConfig;
9211
+ imageUploadConfig?: ImageUploadConfig;
9212
+ onTitleChange?: (title: string) => void;
9213
+ titlePlaceholder?: string;
9214
+ primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
9215
+ secondaryActions?: HeaderSecondaryAction[];
9216
+ otherActions?: DropdownItem[];
9217
+ metadata?: MetadataItem[];
9218
+ banner?: BannerProps;
9219
+ showBubbleMenu?: boolean;
9220
+ }
9221
+
9222
+ export declare const NotesTextEditorSkeleton: ({ withHeader, withTitle, withToolbar, }: NotesTextEditorSkeletonProps) => JSX_2.Element;
9223
+
9224
+ export declare interface NotesTextEditorSkeletonProps {
9225
+ withHeader?: boolean;
9226
+ withTitle?: boolean;
9227
+ withToolbar?: boolean;
9228
+ }
9229
+
8935
9230
  declare type NumberCellConfig = {
8936
9231
  min?: number;
8937
9232
  max?: number;
@@ -9202,6 +9497,104 @@ export declare type OnDuplicateElementParams = {
9202
9497
  type: ElementType;
9203
9498
  };
9204
9499
 
9500
+ export declare const OneCalendar: WithDataTestIdReturnType_3< {
9501
+ (props: OneCalendarProps): JSX_2.Element;
9502
+ displayName: string;
9503
+ }>;
9504
+
9505
+ export declare const OneCalendarInternal: ({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, compact, weekStartsOn, }: OneCalendarInternalProps) => JSX_2.Element;
9506
+
9507
+ export declare interface OneCalendarInternalProps {
9508
+ mode: CalendarMode;
9509
+ view: CalendarView;
9510
+ onSelect?: (date: Date | DateRange | null) => void;
9511
+ defaultMonth?: Date;
9512
+ defaultSelected?: Date | DateRange | null;
9513
+ showNavigation?: boolean;
9514
+ showInput?: boolean;
9515
+ minDate?: Date;
9516
+ maxDate?: Date;
9517
+ compact?: boolean;
9518
+ weekStartsOn?: WeekStartsOn;
9519
+ }
9520
+
9521
+ export declare type OneCalendarProps = Omit<OneCalendarInternalProps, (typeof privateProps_4)[number]>;
9522
+
9523
+ export declare const OneEllipsis: default_2.ForwardRefExoticComponent<OneEllipsisProps & default_2.RefAttributes<HTMLElement>>;
9524
+
9525
+ declare type OneEllipsisProps = {
9526
+ /**
9527
+ * The className to apply to the text.
9528
+ */
9529
+ className?: string;
9530
+ /**
9531
+ * The number of lines to display.
9532
+ */
9533
+ lines?: number;
9534
+ /**
9535
+ * Whether the ellipsis is disabled.
9536
+ */
9537
+ disabled?: boolean;
9538
+ /**
9539
+ * The children to display. (only string is supported)
9540
+ */
9541
+ children: string;
9542
+ /**
9543
+ * Whether the tooltip is disabled.
9544
+ */
9545
+ noTooltip?: boolean;
9546
+ /**
9547
+ * The tag to use for the text.
9548
+ */
9549
+ tag?: Tag_2;
9550
+ /**
9551
+ * Enable markdown parsing for content
9552
+ * @default false
9553
+ */
9554
+ markdown?: boolean;
9555
+ };
9556
+
9557
+ export declare const OneEmptyState: WithDataTestIdReturnType_3<typeof _OneEmptyState>;
9558
+
9559
+ declare function _OneEmptyState({ title, description, variant, emoji, actions, ...rest }: Types.OneEmptyStateProps): JSX_2.Element;
9560
+
9561
+ declare type OneEmptyStateProps = {
9562
+ /**
9563
+ * The title of the empty state
9564
+ */
9565
+ title: string;
9566
+ /**
9567
+ * If defined, a description will be displayed in the empty state
9568
+ * @optional
9569
+ */
9570
+ description?: string;
9571
+ /**
9572
+ * An array of action objects to display as buttons in the empty state.
9573
+ * Each action represents a user-interactable option, such as "Retry" or "Go Back",
9574
+ * and can include a label, click handler, optional icon, and button variant.
9575
+ * @optional
9576
+ */
9577
+ actions?: ActionProps_2[];
9578
+ } & ({
9579
+ /**
9580
+ * The variant of the empty state
9581
+ * @optional
9582
+ */
9583
+ variant?: "default";
9584
+ /**
9585
+ * An icon will be displayed in the empty state.
9586
+ * emoji string
9587
+ */
9588
+ emoji?: string;
9589
+ } | {
9590
+ /**
9591
+ * The variant of the empty state
9592
+ * @optional
9593
+ */
9594
+ variant: Exclude<AlertAvatarProps["type"], "positive">;
9595
+ emoji?: never;
9596
+ });
9597
+
9205
9598
  export declare const OneFilterPicker: <Definition extends FiltersDefinition>(props: OneFilterPickerRootProps<Definition> & {
9206
9599
  dataTestId?: string;
9207
9600
  }) => ReactElement | null;
@@ -9451,7 +9844,7 @@ export declare type PresetDefinition<Filters extends FiltersDefinition> = {
9451
9844
 
9452
9845
  export declare type PresetsDefinition<Filters extends FiltersDefinition> = PresetDefinition<Filters>[];
9453
9846
 
9454
- declare type PrevNextDateNavigation = {
9847
+ export declare type PrevNextDateNavigation = {
9455
9848
  prev: DateRange | false;
9456
9849
  next: DateRange | false;
9457
9850
  };
@@ -9481,6 +9874,11 @@ declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "label" | "i
9481
9874
  */
9482
9875
  declare type PrimaryActionsDefinitionFn = () => PrimaryActionItemDefinition | PrimaryActionItemDefinition[] | undefined;
9483
9876
 
9877
+ export declare type primaryActionType = {
9878
+ action: actionType;
9879
+ subActions?: subActionType[];
9880
+ };
9881
+
9484
9882
  declare interface PrimaryDropdownAction<T> extends PrimaryAction {
9485
9883
  items: ButtonDropdownItem<T>[];
9486
9884
  value?: T;
@@ -9498,6 +9896,8 @@ declare const privateProps_2: readonly ["withBorder"];
9498
9896
 
9499
9897
  declare const privateProps_3: readonly ["forceVerticalMetadata", "disableOverlayLink"];
9500
9898
 
9899
+ declare const privateProps_4: readonly ["compact"];
9900
+
9501
9901
  export declare const ProductBlankslate: WithDataTestIdReturnType_4<ForwardRefExoticComponent<ProductBlankslateProps & RefAttributes<HTMLDivElement>>>;
9502
9902
 
9503
9903
  declare type ProductBlankslateProps = {
@@ -9781,6 +10181,8 @@ declare interface RadarComputation {
9781
10181
  sortOrder?: "asc" | "desc";
9782
10182
  }
9783
10183
 
10184
+ export declare const rangeSeparator = "\u2192";
10185
+
9784
10186
  declare type RatingQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
9785
10187
  value?: number;
9786
10188
  } & {
@@ -9956,6 +10358,65 @@ export declare interface ResponsiveStyleProps {
9956
10358
  shrink?: boolean;
9957
10359
  }
9958
10360
 
10361
+ export declare type resultType = {
10362
+ value: string | null;
10363
+ mentionIds?: number[];
10364
+ };
10365
+
10366
+ export declare const RichTextDisplay: WithDataTestIdReturnType_4<ForwardRefExoticComponent<RichTextDisplayProps & RefAttributes<HTMLDivElement>>>;
10367
+
10368
+ export declare type RichTextDisplayHandle = HTMLDivElement;
10369
+
10370
+ export declare interface RichTextDisplayProps extends HTMLAttributes<HTMLDivElement> {
10371
+ content: string;
10372
+ className?: string;
10373
+ format?: "html" | "markdown";
10374
+ }
10375
+
10376
+ export declare const RichTextEditor: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes<RichTextEditorHandle>> & {
10377
+ Skeleton: ({ rows }: RichTextEditorSkeletonProps) => JSX_2.Element;
10378
+ };
10379
+
10380
+ export declare type RichTextEditorHandle = {
10381
+ clear: () => void;
10382
+ clearFiles: () => void;
10383
+ focus: () => void;
10384
+ setError: (error: string | null) => void;
10385
+ setContent: (content: string) => void;
10386
+ };
10387
+
10388
+ export declare interface RichTextEditorProps {
10389
+ mentionsConfig?: MentionsConfig;
10390
+ enhanceConfig?: enhanceConfig;
10391
+ filesConfig?: filesConfig;
10392
+ secondaryAction?: secondaryActionsType;
10393
+ primaryAction?: primaryActionType;
10394
+ onChange: (result: resultType) => void;
10395
+ onBlur?: () => void;
10396
+ maxCharacters?: number;
10397
+ placeholder: string;
10398
+ initialEditorState?: {
10399
+ content?: string;
10400
+ files?: File[];
10401
+ };
10402
+ title: string;
10403
+ height?: heightType;
10404
+ plainHtmlMode?: boolean;
10405
+ fullScreenMode?: boolean;
10406
+ onFullscreenChange?: (fullscreen: boolean) => void;
10407
+ /** Whether the editor is disabled */
10408
+ disabled?: boolean;
10409
+ /** Whether the editor has an error state */
10410
+ error?: boolean;
10411
+ /** Whether the editor is in a loading state */
10412
+ loading?: boolean;
10413
+ dataTestId?: string;
10414
+ }
10415
+
10416
+ declare interface RichTextEditorSkeletonProps {
10417
+ rows?: number;
10418
+ }
10419
+
9959
10420
  /**
9960
10421
  * All valid renderIf conditions for richtext fields
9961
10422
  */
@@ -10018,6 +10479,12 @@ declare type SecondaryActionsDefinition = {
10018
10479
 
10019
10480
  declare type SecondaryActionsItems = SecondaryActionItem[] | SecondaryActionItem[][] | SecondaryActionGroup[];
10020
10481
 
10482
+ export declare type secondaryActionsType = secondaryActionType | secondaryActionType[];
10483
+
10484
+ export declare type secondaryActionType = (actionType | toggleActionType) & {
10485
+ type?: "button" | "switch";
10486
+ };
10487
+
10021
10488
  export declare function secondsToFields(totalSeconds: number): DurationFields;
10022
10489
 
10023
10490
  export declare function secondsToVisibleFields(totalSeconds: number, visibleUnits: DurationUnit[]): DurationFields;
@@ -10180,6 +10647,27 @@ export declare const selectSizes: readonly ["sm", "md"];
10180
10647
  */
10181
10648
  declare type SelectValueType = string | number;
10182
10649
 
10650
+ /**
10651
+ * @experimental This is an experimental component use it at your own risk
10652
+ */
10653
+ declare const Shortcut: WithDataTestIdReturnType_3<typeof _Shortcut>;
10654
+
10655
+ declare function _Shortcut({ keys, variant }: ShortcutProps): JSX_2.Element | null;
10656
+
10657
+ declare interface ShortcutProps extends VariantProps<typeof shortcutVariants> {
10658
+ keys: string[];
10659
+ }
10660
+
10661
+ declare const shortcutVariants: (props?: ({
10662
+ variant?: "default" | "inverse" | undefined;
10663
+ } & ({
10664
+ class?: ClassValue;
10665
+ className?: never;
10666
+ } | {
10667
+ class?: never;
10668
+ className?: ClassValue;
10669
+ })) | undefined) => string;
10670
+
10183
10671
  /**
10184
10672
  * Response structure for non-paginated data
10185
10673
  */
@@ -10256,6 +10744,13 @@ export declare interface StepItemProps {
10256
10744
  isCompleted?: boolean;
10257
10745
  }
10258
10746
 
10747
+ export declare type subActionType = {
10748
+ label: string;
10749
+ onClick: () => void;
10750
+ disabled?: boolean;
10751
+ icon?: IconType;
10752
+ };
10753
+
10259
10754
  export declare interface SuccessMessageProps {
10260
10755
  title: string;
10261
10756
  description: string;
@@ -10368,7 +10863,7 @@ export declare type SurveyDataset = {
10368
10863
 
10369
10864
  export declare type SurveyDatasets = Record<string, SurveyDataset>;
10370
10865
 
10371
- export declare const SurveyFormBuilder: WithDataTestIdReturnType_7<({ elements: elementsProp, disabled, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, useUpload, datasets, }: SurveyFormBuilderProps) => JSX_2.Element>;
10866
+ export declare const SurveyFormBuilder: WithDataTestIdReturnType_8<({ elements: elementsProp, disabled, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, useUpload, datasets, }: SurveyFormBuilderProps) => JSX_2.Element>;
10372
10867
 
10373
10868
  export declare type SurveyFormBuilderCallbacks = {
10374
10869
  onQuestionChange?: (params: OnChangeQuestionParams) => void;
@@ -10560,6 +11055,8 @@ export declare const Tag: WithDataTestIdReturnType_4<({ tag }: {
10560
11055
  tag: TagVariant_2;
10561
11056
  }) => ReactNode>;
10562
11057
 
11058
+ declare type Tag_2 = (typeof tags)[number];
11059
+
10563
11060
  export declare type TagAlertProps<Text extends string = string> = {
10564
11061
  text: Text extends "" ? never : Text;
10565
11062
  level: Level;
@@ -10670,6 +11167,8 @@ export declare type TagRawProps = {
10670
11167
  onlyIcon?: boolean;
10671
11168
  });
10672
11169
 
11170
+ declare const tags: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p", "span", "div", "label", "code"];
11171
+
10673
11172
  export declare interface TagStatusProps {
10674
11173
  text: string;
10675
11174
  variant: Variant;
@@ -10885,6 +11384,46 @@ declare interface TOCProps {
10885
11384
  scrollable?: boolean;
10886
11385
  }
10887
11386
 
11387
+ declare type toggleActionType = {
11388
+ label: string;
11389
+ checked: boolean;
11390
+ onClick: (checked?: boolean) => void;
11391
+ disabled?: boolean;
11392
+ hideLabel?: boolean;
11393
+ };
11394
+
11395
+ export declare interface ToolbarButtonProps {
11396
+ onClick?: () => void;
11397
+ active?: boolean;
11398
+ label: string;
11399
+ disabled: boolean;
11400
+ icon: IconType;
11401
+ tooltip?: {
11402
+ description?: string;
11403
+ label?: string;
11404
+ shortcut?: ComponentProps<typeof Shortcut>["keys"];
11405
+ };
11406
+ showLabel?: boolean;
11407
+ }
11408
+
11409
+ export declare interface ToolbarDropdownItem {
11410
+ label: string;
11411
+ icon: IconType;
11412
+ onClick: () => void;
11413
+ isActive: boolean;
11414
+ }
11415
+
11416
+ export declare interface ToolbarProps {
11417
+ editor: Editor;
11418
+ isFullscreen?: boolean;
11419
+ disableButtons: boolean;
11420
+ onClose?: () => void;
11421
+ animationComplete?: boolean;
11422
+ darkMode?: boolean;
11423
+ showEmojiPicker?: boolean;
11424
+ plainHtmlMode?: boolean;
11425
+ }
11426
+
10888
11427
  declare type TranslationKey = Join<PathsToStringProps<typeof defaultTranslations>, ".">;
10889
11428
 
10890
11429
  declare type TranslationShape<T> = {
@@ -10914,6 +11453,13 @@ export declare interface TwoColumnLayoutProps {
10914
11453
  sticky?: boolean;
10915
11454
  }
10916
11455
 
11456
+ declare namespace Types {
11457
+ export {
11458
+ ActionProps_2 as ActionProps,
11459
+ OneEmptyStateProps
11460
+ }
11461
+ }
11462
+
10917
11463
  /**
10918
11464
  * Unwrap optional, nullable, default wrappers to get the inner schema
10919
11465
  * Uses _def.typeName for reliable type checking across module boundaries
@@ -11422,6 +11968,12 @@ export declare const usePrivacyMode: () => {
11422
11968
  toggle: () => void;
11423
11969
  };
11424
11970
 
11971
+ export declare interface User {
11972
+ id: string;
11973
+ fullname: string;
11974
+ imageUrl: string;
11975
+ }
11976
+
11425
11977
  export declare const useReducedMotion: () => boolean;
11426
11978
 
11427
11979
  /**
@@ -11635,7 +12187,7 @@ declare type VisualizationSettings = {
11635
12187
  [K in keyof typeof collectionVisualizations]: ExtractVisualizationSettings<(typeof collectionVisualizations)[K]>;
11636
12188
  };
11637
12189
 
11638
- declare const WeekStartDay: {
12190
+ export declare const WeekStartDay: {
11639
12191
  readonly Sunday: 0;
11640
12192
  readonly Monday: 1;
11641
12193
  readonly Tuesday: 2;
@@ -11645,7 +12197,7 @@ declare const WeekStartDay: {
11645
12197
  readonly Saturday: 6;
11646
12198
  };
11647
12199
 
11648
- declare type WeekStartsOn = (typeof WeekStartDay)[keyof typeof WeekStartDay];
12200
+ export declare type WeekStartsOn = (typeof WeekStartDay)[keyof typeof WeekStartDay];
11649
12201
 
11650
12202
  /**
11651
12203
  * Welcome screen suggestion item
@@ -11756,11 +12308,6 @@ declare module "gridstack" {
11756
12308
  }
11757
12309
 
11758
12310
 
11759
- declare namespace Calendar {
11760
- var displayName: string;
11761
- }
11762
-
11763
-
11764
12311
  declare module "@tiptap/core" {
11765
12312
  interface Commands<ReturnType> {
11766
12313
  aiBlock: {
@@ -11808,3 +12355,8 @@ declare module "@tiptap/core" {
11808
12355
  };
11809
12356
  }
11810
12357
  }
12358
+
12359
+
12360
+ declare namespace Calendar {
12361
+ var displayName: string;
12362
+ }