@factorialco/f0-react 1.438.2 → 1.438.3

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)
@@ -617,7 +695,7 @@ declare type AiChatTrackingOptions = {
617
695
  onClose?: () => void;
618
696
  onWelcomeSuggestionClick?: (suggestion: WelcomeScreenSuggestion) => void;
619
697
  onNewChat?: () => void;
620
- onMessage?: (message: Message) => void;
698
+ onMessage?: (message: Message_2) => void;
621
699
  };
622
700
 
623
701
  /**
@@ -939,6 +1017,14 @@ declare type BannerAction = {
939
1017
  icon?: IconType;
940
1018
  };
941
1019
 
1020
+ declare interface BannerProps {
1021
+ icon: IconType;
1022
+ title: string;
1023
+ variant: BannerVariant;
1024
+ }
1025
+
1026
+ declare type BannerVariant = "info" | "warning" | "critical" | "neutral" | "positive";
1027
+
942
1028
  export declare const BarChart: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<ChartPropsBase<ChartConfig> & {
943
1029
  type?: "simple" | "stacked" | "stacked-by-sign";
944
1030
  label?: boolean;
@@ -1326,6 +1412,18 @@ declare type BulkActionsDefinition<R extends RecordType, Filters extends Filters
1326
1412
  warningMessage: string;
1327
1413
  };
1328
1414
 
1415
+ export declare interface ButtonConfig {
1416
+ key: string;
1417
+ icon: IconType;
1418
+ active: (editor: Editor) => boolean;
1419
+ onClick: (editor: Editor) => void;
1420
+ label: string;
1421
+ tooltip: {
1422
+ label: string;
1423
+ shortcut: string[];
1424
+ };
1425
+ }
1426
+
1329
1427
  export declare type ButtonDropdownGroup<T = string> = {
1330
1428
  label?: string;
1331
1429
  items: ButtonDropdownItem<T>[];
@@ -1482,9 +1580,15 @@ export declare type ButtonVariant = Exclude<(typeof actionButtonVariants)[number
1482
1580
 
1483
1581
  export declare const buttonVariants: ("default" | "critical" | "promote" | "neutral" | "outline" | "ghost" | "outlinePromote")[];
1484
1582
 
1485
- declare type CalendarMode = "single" | "range";
1583
+ export declare type CalendarDate = {
1584
+ day: number;
1585
+ month: number;
1586
+ year: number;
1587
+ };
1588
+
1589
+ export declare type CalendarMode = "single" | "range";
1486
1590
 
1487
- declare type CalendarView = "day" | "month" | "year" | "week" | "quarter" | "halfyear";
1591
+ export declare type CalendarView = "day" | "month" | "year" | "week" | "quarter" | "halfyear";
1488
1592
 
1489
1593
  /**
1490
1594
  * Profile data for a candidate entity (ATS applicant), resolved asynchronously
@@ -3028,7 +3132,7 @@ declare type DateFilterOptions_2 = {
3028
3132
  */
3029
3133
  export declare type DateGranularity = "day" | "week" | "month" | "quarter" | "halfyear" | "year" | "range";
3030
3134
 
3031
- declare type DateNavigationOptions = {
3135
+ export declare type DateNavigationOptions = {
3032
3136
  min?: Date;
3033
3137
  max?: Date;
3034
3138
  };
@@ -3088,12 +3192,17 @@ declare type DateQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
3088
3192
  value?: Date | null;
3089
3193
  };
3090
3194
 
3091
- declare type DateRange = {
3195
+ export declare type DateRange = {
3092
3196
  from: Date;
3093
3197
  to?: Date;
3094
3198
  };
3095
3199
 
3096
- declare type DateRangeComplete = Required<DateRange>;
3200
+ export declare type DateRangeComplete = Required<DateRange>;
3201
+
3202
+ export declare type DateRangeError = {
3203
+ from: boolean;
3204
+ to: boolean;
3205
+ };
3097
3206
 
3098
3207
  /**
3099
3208
  * All valid renderIf conditions for date range fields
@@ -3114,7 +3223,7 @@ export declare type DateRangeRenderIfCondition = DateRangeRenderIfBase & {
3114
3223
  isEmpty: boolean;
3115
3224
  };
3116
3225
 
3117
- declare type DateRangeString = {
3226
+ export declare type DateRangeString = {
3118
3227
  from: string;
3119
3228
  to?: string;
3120
3229
  };
@@ -3153,7 +3262,7 @@ export declare type DateRenderIfCondition = DateRenderIfBase & ({
3153
3262
  isEmpty: boolean;
3154
3263
  });
3155
3264
 
3156
- declare type DateStringFormat = "default" | "long";
3265
+ export declare type DateStringFormat = "default" | "long";
3157
3266
 
3158
3267
  declare type DateValue = {
3159
3268
  value: DateRangeComplete;
@@ -4101,6 +4210,11 @@ declare type EditableTableVisualizationOptions<R extends RecordType, _Filters ex
4101
4210
 
4102
4211
  declare type EditableTableVisualizationSettings = TableVisualizationSettings;
4103
4212
 
4213
+ export declare type editorStateType = {
4214
+ html: string;
4215
+ json: JSONContent | null;
4216
+ };
4217
+
4104
4218
  export declare type ElementType = QuestionType | "section";
4105
4219
 
4106
4220
  export declare function EmojiImage({ emoji, size, alt }: EmojiImageProps): JSX_2.Element;
@@ -4120,6 +4234,30 @@ declare const emojiVariants: (props?: ({
4120
4234
  className?: ClassValue;
4121
4235
  })) | undefined) => string;
4122
4236
 
4237
+ export declare type enhanceConfig = {
4238
+ onEnhanceText: (params: enhanceTextParams) => Promise<enhancedTextResponse>;
4239
+ enhancementOptions?: EnhancementOption[];
4240
+ };
4241
+
4242
+ export declare type enhancedTextResponse = {
4243
+ success: boolean;
4244
+ text: string;
4245
+ error?: string;
4246
+ };
4247
+
4248
+ export declare type EnhancementOption = {
4249
+ id: string;
4250
+ label: string;
4251
+ subOptions?: EnhancementOption[];
4252
+ };
4253
+
4254
+ export declare type enhanceTextParams = {
4255
+ text: string;
4256
+ selectedIntent?: string;
4257
+ customIntent?: string;
4258
+ context?: string;
4259
+ };
4260
+
4123
4261
  /**
4124
4262
  * Grouped configuration for entity references in the AI chat.
4125
4263
  * Combines resolver functions (data fetching) with URL builders (navigation).
@@ -6559,7 +6697,7 @@ export declare type F0FormSubmitResult = {
6559
6697
  errors?: Record<string, string>;
6560
6698
  };
6561
6699
 
6562
- export declare const F0GridStack: WithDataTestIdReturnType_4< {
6700
+ export declare const F0GridStack: WithDataTestIdReturnType_7< {
6563
6701
  ({ options, widgets, onChange, className, static: isStatic, forcePositionSync, }: F0GridStackProps_2): JSX_2.Element;
6564
6702
  displayName: string;
6565
6703
  }>;
@@ -7482,6 +7620,28 @@ export declare function fieldsToSeconds(fields: DurationFields): number;
7482
7620
  */
7483
7621
  export declare type FieldType = "text" | "number" | "duration" | "textarea" | "select" | "checkbox" | "switch" | "date" | "time" | "datetime" | "daterange" | "richtext" | "file" | "cardSelect" | "custom";
7484
7622
 
7623
+ export declare const FILE_TYPES: {
7624
+ readonly PDF: "pdf";
7625
+ readonly IMAGE: "image";
7626
+ readonly DOC: "doc";
7627
+ readonly EXCEL: "excel";
7628
+ readonly PPT: "ppt";
7629
+ readonly TXT: "txt";
7630
+ readonly VIDEO: "video";
7631
+ readonly AUDIO: "audio";
7632
+ readonly ARCHIVE: "archive";
7633
+ readonly CSV: "csv";
7634
+ readonly HTML: "html";
7635
+ readonly MARKDOWN: "markdown";
7636
+ };
7637
+
7638
+ export declare type FileAction = {
7639
+ icon?: IconType;
7640
+ label: string;
7641
+ onClick: () => void;
7642
+ critical?: boolean;
7643
+ };
7644
+
7485
7645
  export declare type FileAvatarVariant = Extract<AvatarVariant, {
7486
7646
  type: "file";
7487
7647
  }>;
@@ -7496,6 +7656,27 @@ declare type FileDef = {
7496
7656
  */
7497
7657
  declare type FileFieldRenderIf = CommonRenderIfCondition | F0BaseFieldRenderIfFunction;
7498
7658
 
7659
+ export declare const FileItem: WithDataTestIdReturnType_4<ForwardRefExoticComponent<FileItemProps & RefAttributes<HTMLDivElement>>>;
7660
+
7661
+ declare interface FileItemProps extends React.HTMLAttributes<HTMLDivElement> {
7662
+ file: File | FileDef;
7663
+ actions?: FileAction[];
7664
+ disabled?: boolean;
7665
+ size?: FileItemSize;
7666
+ }
7667
+
7668
+ export declare type FileItemSize = NonNullable<VariantProps<typeof fileItemVariants>["size"]>;
7669
+
7670
+ declare const fileItemVariants: (props?: ({
7671
+ size?: "lg" | "md" | undefined;
7672
+ } & ({
7673
+ class?: ClassValue;
7674
+ className?: never;
7675
+ } | {
7676
+ class?: never;
7677
+ className?: ClassValue;
7678
+ })) | undefined) => string;
7679
+
7499
7680
  declare type FileQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
7500
7681
  type: "file";
7501
7682
  value?: string[] | null;
@@ -7504,6 +7685,15 @@ declare type FileQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
7504
7685
  maxSizeMB?: number;
7505
7686
  };
7506
7687
 
7688
+ export declare type filesConfig = {
7689
+ onFiles: (files: File[]) => void;
7690
+ multipleFiles: boolean;
7691
+ maxFileSize?: number;
7692
+ acceptedFileType?: FileType[];
7693
+ };
7694
+
7695
+ export declare type FileType = (typeof FILE_TYPES)[keyof typeof FILE_TYPES];
7696
+
7507
7697
  /**
7508
7698
  * Return type of the consumer-provided upload hook
7509
7699
  */
@@ -7921,6 +8111,16 @@ export declare function getEmojiLabel(emoji: string): string;
7921
8111
  */
7922
8112
  export declare function getF0Config(schema: ZodTypeAny): F0FieldConfig | undefined;
7923
8113
 
8114
+ export declare const getGranularityDefinition: (granularityKey: GranularityDefinitionKey) => GranularityDefinition;
8115
+
8116
+ /**
8117
+ * Get granularity definitions with week granularity configured with the specified weekStartsOn.
8118
+ * The week granularity is only created when needed (lazy creation).
8119
+ */
8120
+ export declare function getGranularityDefinitions(weekStartsOn?: WeekStartsOn): Record<string, GranularityDefinition>;
8121
+
8122
+ export declare const getGranularitySimpleDefinition: (granularityKey: GranularityDefinitionKey) => GranularityDefinitionSimple;
8123
+
7924
8124
  /**
7925
8125
  * Non-hook version for extracting definition outside of React components.
7926
8126
  * Useful for server-side rendering or testing.
@@ -7931,7 +8131,7 @@ export declare function getF0Config(schema: ZodTypeAny): F0FieldConfig | undefin
7931
8131
  */
7932
8132
  export declare function getSchemaDefinition(schema: F0FormSchema, sections?: Record<string, F0SectionConfig>): FormDefinitionItem[];
7933
8133
 
7934
- declare interface GranularityDefinition {
8134
+ export declare interface GranularityDefinition {
7935
8135
  calendarMode?: CalendarMode;
7936
8136
  calendarView: CalendarView;
7937
8137
  weekStartsOn?: WeekStartsOn;
@@ -7963,9 +8163,11 @@ declare interface GranularityDefinition {
7963
8163
  getPrevNext(date: DateRange, options: DateNavigationOptions): PrevNextDateNavigation;
7964
8164
  }
7965
8165
 
7966
- declare type GranularityDefinitionKey = keyof typeof granularityDefinitions;
8166
+ export declare type GranularityDefinitionKey = keyof typeof granularityDefinitions;
7967
8167
 
7968
- declare const granularityDefinitions: Record<string, GranularityDefinition>;
8168
+ export declare const granularityDefinitions: Record<string, GranularityDefinition>;
8169
+
8170
+ export declare type GranularityDefinitionSimple = Pick<GranularityDefinition, "toRangeString" | "toString">;
7969
8171
 
7970
8172
  export declare type GridStackReactOptions = Omit<GridStackOptions, "children">;
7971
8173
 
@@ -8116,7 +8318,7 @@ declare interface HeatmapComputation {
8116
8318
  aggregation: AggregationType;
8117
8319
  }
8118
8320
 
8119
- declare type heightType = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "auto";
8321
+ export declare type heightType = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "auto";
8120
8322
 
8121
8323
  export declare const HomeLayout: WithDataTestIdReturnType_2<ForwardRefExoticComponent<Omit<{
8122
8324
  widgets?: ReactNode[];
@@ -8168,6 +8370,17 @@ declare type ImageContextValue = {
8168
8370
 
8169
8371
  declare type ImageProps = ImgHTMLAttributes<HTMLImageElement>;
8170
8372
 
8373
+ export declare interface ImageUploadConfig {
8374
+ onUpload: (file: File) => Promise<{
8375
+ url: string;
8376
+ signedId?: string;
8377
+ }>;
8378
+ maxFileSize?: number;
8379
+ onError?: (errorType: ImageUploadErrorType) => void;
8380
+ }
8381
+
8382
+ declare type ImageUploadErrorType = "file-too-large" | "invalid-type" | "upload-failed";
8383
+
8171
8384
  /**
8172
8385
  * Extract the inferred type from an F0 form schema
8173
8386
  */
@@ -8482,6 +8695,11 @@ declare type Lane<Filters extends FiltersDefinition> = {
8482
8695
  filters: FiltersState<Filters>;
8483
8696
  };
8484
8697
 
8698
+ export declare type lastIntentType = {
8699
+ selectedIntent?: string;
8700
+ customIntent?: string;
8701
+ } | null;
8702
+
8485
8703
  export declare const Layout: {
8486
8704
  Page: WithDataTestIdReturnType_3<ForwardRefExoticComponent<PageProps & RefAttributes<HTMLDivElement>>>;
8487
8705
  Block: WithDataTestIdReturnType_3<ForwardRefExoticComponent<BlockProps & RefAttributes<HTMLDivElement>>>;
@@ -8648,18 +8866,43 @@ export declare type MaskOptions = {
8648
8866
 
8649
8867
  declare const MAX_EXPANDED_ACTIONS = 2;
8650
8868
 
8651
- declare type MentionedUser = {
8869
+ export declare type MentionedUser = {
8652
8870
  id: number;
8653
8871
  label: string;
8654
8872
  image_url?: string;
8655
8873
  href?: string;
8656
8874
  };
8657
8875
 
8658
- declare type MentionsConfig = {
8876
+ export declare interface MentionItemComponentProps {
8877
+ item: MentionedUser;
8878
+ index: number;
8879
+ selected: boolean;
8880
+ }
8881
+
8882
+ export declare interface MentionListRef {
8883
+ onKeyDown: (props: {
8884
+ event: KeyboardEvent;
8885
+ }) => boolean;
8886
+ }
8887
+
8888
+ export declare interface MentionNodeAttrs {
8889
+ id: string;
8890
+ label: string;
8891
+ image_url?: string;
8892
+ href?: string;
8893
+ }
8894
+
8895
+ export declare type MentionsConfig = {
8659
8896
  onMentionQueryStringChanged?: (queryString: string) => Promise<MentionedUser[]> | undefined;
8660
8897
  users: MentionedUser[];
8661
8898
  };
8662
8899
 
8900
+ export declare interface Message {
8901
+ userId: string;
8902
+ text: string;
8903
+ dateTime: string;
8904
+ }
8905
+
8663
8906
  declare type MetadataAction = {
8664
8907
  icon: IconType;
8665
8908
  label: string;
@@ -8932,6 +9175,49 @@ export declare interface NextStepsProps {
8932
9175
  items: StepItemProps[];
8933
9176
  }
8934
9177
 
9178
+ export declare const NotesTextEditor: ForwardRefExoticComponent<NotesTextEditorProps & RefAttributes<NotesTextEditorHandle>>;
9179
+
9180
+ export declare type NotesTextEditorHandle = {
9181
+ clear: () => void;
9182
+ focus: () => void;
9183
+ setContent: (content: string) => void;
9184
+ insertAIBlock: () => void;
9185
+ insertTranscript: (title: string, users: User[], messages: Message[]) => void;
9186
+ pushContent: (content: string) => void;
9187
+ insertImage: (file: File) => void;
9188
+ };
9189
+
9190
+ export declare interface NotesTextEditorProps extends WithDataTestIdProps {
9191
+ onChange: (value: {
9192
+ json: JSONContent | null;
9193
+ html: string | null;
9194
+ }) => void;
9195
+ placeholder: string;
9196
+ initialEditorState?: {
9197
+ content?: JSONContent | string;
9198
+ title?: string;
9199
+ };
9200
+ readonly?: boolean;
9201
+ aiBlockConfig?: AIBlockConfig;
9202
+ imageUploadConfig?: ImageUploadConfig;
9203
+ onTitleChange?: (title: string) => void;
9204
+ titlePlaceholder?: string;
9205
+ primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
9206
+ secondaryActions?: HeaderSecondaryAction[];
9207
+ otherActions?: DropdownItem[];
9208
+ metadata?: MetadataItem[];
9209
+ banner?: BannerProps;
9210
+ showBubbleMenu?: boolean;
9211
+ }
9212
+
9213
+ export declare const NotesTextEditorSkeleton: ({ withHeader, withTitle, withToolbar, }: NotesTextEditorSkeletonProps) => JSX_2.Element;
9214
+
9215
+ export declare interface NotesTextEditorSkeletonProps {
9216
+ withHeader?: boolean;
9217
+ withTitle?: boolean;
9218
+ withToolbar?: boolean;
9219
+ }
9220
+
8935
9221
  declare type NumberCellConfig = {
8936
9222
  min?: number;
8937
9223
  max?: number;
@@ -9202,6 +9488,104 @@ export declare type OnDuplicateElementParams = {
9202
9488
  type: ElementType;
9203
9489
  };
9204
9490
 
9491
+ export declare const OneCalendar: WithDataTestIdReturnType_3< {
9492
+ (props: OneCalendarProps): JSX_2.Element;
9493
+ displayName: string;
9494
+ }>;
9495
+
9496
+ export declare const OneCalendarInternal: ({ mode, view, onSelect, defaultMonth, defaultSelected, showNavigation, showInput, minDate, maxDate, compact, weekStartsOn, }: OneCalendarInternalProps) => JSX_2.Element;
9497
+
9498
+ export declare interface OneCalendarInternalProps {
9499
+ mode: CalendarMode;
9500
+ view: CalendarView;
9501
+ onSelect?: (date: Date | DateRange | null) => void;
9502
+ defaultMonth?: Date;
9503
+ defaultSelected?: Date | DateRange | null;
9504
+ showNavigation?: boolean;
9505
+ showInput?: boolean;
9506
+ minDate?: Date;
9507
+ maxDate?: Date;
9508
+ compact?: boolean;
9509
+ weekStartsOn?: WeekStartsOn;
9510
+ }
9511
+
9512
+ export declare type OneCalendarProps = Omit<OneCalendarInternalProps, (typeof privateProps_4)[number]>;
9513
+
9514
+ export declare const OneEllipsis: default_2.ForwardRefExoticComponent<OneEllipsisProps & default_2.RefAttributes<HTMLElement>>;
9515
+
9516
+ declare type OneEllipsisProps = {
9517
+ /**
9518
+ * The className to apply to the text.
9519
+ */
9520
+ className?: string;
9521
+ /**
9522
+ * The number of lines to display.
9523
+ */
9524
+ lines?: number;
9525
+ /**
9526
+ * Whether the ellipsis is disabled.
9527
+ */
9528
+ disabled?: boolean;
9529
+ /**
9530
+ * The children to display. (only string is supported)
9531
+ */
9532
+ children: string;
9533
+ /**
9534
+ * Whether the tooltip is disabled.
9535
+ */
9536
+ noTooltip?: boolean;
9537
+ /**
9538
+ * The tag to use for the text.
9539
+ */
9540
+ tag?: Tag_2;
9541
+ /**
9542
+ * Enable markdown parsing for content
9543
+ * @default false
9544
+ */
9545
+ markdown?: boolean;
9546
+ };
9547
+
9548
+ export declare const OneEmptyState: WithDataTestIdReturnType_3<typeof _OneEmptyState>;
9549
+
9550
+ declare function _OneEmptyState({ title, description, variant, emoji, actions, ...rest }: Types.OneEmptyStateProps): JSX_2.Element;
9551
+
9552
+ declare type OneEmptyStateProps = {
9553
+ /**
9554
+ * The title of the empty state
9555
+ */
9556
+ title: string;
9557
+ /**
9558
+ * If defined, a description will be displayed in the empty state
9559
+ * @optional
9560
+ */
9561
+ description?: string;
9562
+ /**
9563
+ * An array of action objects to display as buttons in the empty state.
9564
+ * Each action represents a user-interactable option, such as "Retry" or "Go Back",
9565
+ * and can include a label, click handler, optional icon, and button variant.
9566
+ * @optional
9567
+ */
9568
+ actions?: ActionProps_2[];
9569
+ } & ({
9570
+ /**
9571
+ * The variant of the empty state
9572
+ * @optional
9573
+ */
9574
+ variant?: "default";
9575
+ /**
9576
+ * An icon will be displayed in the empty state.
9577
+ * emoji string
9578
+ */
9579
+ emoji?: string;
9580
+ } | {
9581
+ /**
9582
+ * The variant of the empty state
9583
+ * @optional
9584
+ */
9585
+ variant: Exclude<AlertAvatarProps["type"], "positive">;
9586
+ emoji?: never;
9587
+ });
9588
+
9205
9589
  export declare const OneFilterPicker: <Definition extends FiltersDefinition>(props: OneFilterPickerRootProps<Definition> & {
9206
9590
  dataTestId?: string;
9207
9591
  }) => ReactElement | null;
@@ -9451,7 +9835,7 @@ export declare type PresetDefinition<Filters extends FiltersDefinition> = {
9451
9835
 
9452
9836
  export declare type PresetsDefinition<Filters extends FiltersDefinition> = PresetDefinition<Filters>[];
9453
9837
 
9454
- declare type PrevNextDateNavigation = {
9838
+ export declare type PrevNextDateNavigation = {
9455
9839
  prev: DateRange | false;
9456
9840
  next: DateRange | false;
9457
9841
  };
@@ -9481,6 +9865,11 @@ declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "label" | "i
9481
9865
  */
9482
9866
  declare type PrimaryActionsDefinitionFn = () => PrimaryActionItemDefinition | PrimaryActionItemDefinition[] | undefined;
9483
9867
 
9868
+ export declare type primaryActionType = {
9869
+ action: actionType;
9870
+ subActions?: subActionType[];
9871
+ };
9872
+
9484
9873
  declare interface PrimaryDropdownAction<T> extends PrimaryAction {
9485
9874
  items: ButtonDropdownItem<T>[];
9486
9875
  value?: T;
@@ -9498,6 +9887,8 @@ declare const privateProps_2: readonly ["withBorder"];
9498
9887
 
9499
9888
  declare const privateProps_3: readonly ["forceVerticalMetadata", "disableOverlayLink"];
9500
9889
 
9890
+ declare const privateProps_4: readonly ["compact"];
9891
+
9501
9892
  export declare const ProductBlankslate: WithDataTestIdReturnType_4<ForwardRefExoticComponent<ProductBlankslateProps & RefAttributes<HTMLDivElement>>>;
9502
9893
 
9503
9894
  declare type ProductBlankslateProps = {
@@ -9781,6 +10172,8 @@ declare interface RadarComputation {
9781
10172
  sortOrder?: "asc" | "desc";
9782
10173
  }
9783
10174
 
10175
+ export declare const rangeSeparator = "\u2192";
10176
+
9784
10177
  declare type RatingQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
9785
10178
  value?: number;
9786
10179
  } & {
@@ -9956,6 +10349,65 @@ export declare interface ResponsiveStyleProps {
9956
10349
  shrink?: boolean;
9957
10350
  }
9958
10351
 
10352
+ export declare type resultType = {
10353
+ value: string | null;
10354
+ mentionIds?: number[];
10355
+ };
10356
+
10357
+ export declare const RichTextDisplay: WithDataTestIdReturnType_4<ForwardRefExoticComponent<RichTextDisplayProps & RefAttributes<HTMLDivElement>>>;
10358
+
10359
+ export declare type RichTextDisplayHandle = HTMLDivElement;
10360
+
10361
+ export declare interface RichTextDisplayProps extends HTMLAttributes<HTMLDivElement> {
10362
+ content: string;
10363
+ className?: string;
10364
+ format?: "html" | "markdown";
10365
+ }
10366
+
10367
+ export declare const RichTextEditor: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes<RichTextEditorHandle>> & {
10368
+ Skeleton: ({ rows }: RichTextEditorSkeletonProps) => JSX_2.Element;
10369
+ };
10370
+
10371
+ export declare type RichTextEditorHandle = {
10372
+ clear: () => void;
10373
+ clearFiles: () => void;
10374
+ focus: () => void;
10375
+ setError: (error: string | null) => void;
10376
+ setContent: (content: string) => void;
10377
+ };
10378
+
10379
+ export declare interface RichTextEditorProps {
10380
+ mentionsConfig?: MentionsConfig;
10381
+ enhanceConfig?: enhanceConfig;
10382
+ filesConfig?: filesConfig;
10383
+ secondaryAction?: secondaryActionsType;
10384
+ primaryAction?: primaryActionType;
10385
+ onChange: (result: resultType) => void;
10386
+ onBlur?: () => void;
10387
+ maxCharacters?: number;
10388
+ placeholder: string;
10389
+ initialEditorState?: {
10390
+ content?: string;
10391
+ files?: File[];
10392
+ };
10393
+ title: string;
10394
+ height?: heightType;
10395
+ plainHtmlMode?: boolean;
10396
+ fullScreenMode?: boolean;
10397
+ onFullscreenChange?: (fullscreen: boolean) => void;
10398
+ /** Whether the editor is disabled */
10399
+ disabled?: boolean;
10400
+ /** Whether the editor has an error state */
10401
+ error?: boolean;
10402
+ /** Whether the editor is in a loading state */
10403
+ loading?: boolean;
10404
+ dataTestId?: string;
10405
+ }
10406
+
10407
+ declare interface RichTextEditorSkeletonProps {
10408
+ rows?: number;
10409
+ }
10410
+
9959
10411
  /**
9960
10412
  * All valid renderIf conditions for richtext fields
9961
10413
  */
@@ -10018,6 +10470,12 @@ declare type SecondaryActionsDefinition = {
10018
10470
 
10019
10471
  declare type SecondaryActionsItems = SecondaryActionItem[] | SecondaryActionItem[][] | SecondaryActionGroup[];
10020
10472
 
10473
+ export declare type secondaryActionsType = secondaryActionType | secondaryActionType[];
10474
+
10475
+ export declare type secondaryActionType = (actionType | toggleActionType) & {
10476
+ type?: "button" | "switch";
10477
+ };
10478
+
10021
10479
  export declare function secondsToFields(totalSeconds: number): DurationFields;
10022
10480
 
10023
10481
  export declare function secondsToVisibleFields(totalSeconds: number, visibleUnits: DurationUnit[]): DurationFields;
@@ -10180,6 +10638,27 @@ export declare const selectSizes: readonly ["sm", "md"];
10180
10638
  */
10181
10639
  declare type SelectValueType = string | number;
10182
10640
 
10641
+ /**
10642
+ * @experimental This is an experimental component use it at your own risk
10643
+ */
10644
+ declare const Shortcut: WithDataTestIdReturnType_3<typeof _Shortcut>;
10645
+
10646
+ declare function _Shortcut({ keys, variant }: ShortcutProps): JSX_2.Element | null;
10647
+
10648
+ declare interface ShortcutProps extends VariantProps<typeof shortcutVariants> {
10649
+ keys: string[];
10650
+ }
10651
+
10652
+ declare const shortcutVariants: (props?: ({
10653
+ variant?: "default" | "inverse" | undefined;
10654
+ } & ({
10655
+ class?: ClassValue;
10656
+ className?: never;
10657
+ } | {
10658
+ class?: never;
10659
+ className?: ClassValue;
10660
+ })) | undefined) => string;
10661
+
10183
10662
  /**
10184
10663
  * Response structure for non-paginated data
10185
10664
  */
@@ -10256,6 +10735,13 @@ export declare interface StepItemProps {
10256
10735
  isCompleted?: boolean;
10257
10736
  }
10258
10737
 
10738
+ export declare type subActionType = {
10739
+ label: string;
10740
+ onClick: () => void;
10741
+ disabled?: boolean;
10742
+ icon?: IconType;
10743
+ };
10744
+
10259
10745
  export declare interface SuccessMessageProps {
10260
10746
  title: string;
10261
10747
  description: string;
@@ -10368,7 +10854,7 @@ export declare type SurveyDataset = {
10368
10854
 
10369
10855
  export declare type SurveyDatasets = Record<string, SurveyDataset>;
10370
10856
 
10371
- export declare const SurveyFormBuilder: WithDataTestIdReturnType_7<({ elements: elementsProp, disabled, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, useUpload, datasets, }: SurveyFormBuilderProps) => JSX_2.Element>;
10857
+ export declare const SurveyFormBuilder: WithDataTestIdReturnType_8<({ elements: elementsProp, disabled, onChange, disallowOptionalQuestions, allowedQuestionTypes, applyingChanges, useUpload, datasets, }: SurveyFormBuilderProps) => JSX_2.Element>;
10372
10858
 
10373
10859
  export declare type SurveyFormBuilderCallbacks = {
10374
10860
  onQuestionChange?: (params: OnChangeQuestionParams) => void;
@@ -10560,6 +11046,8 @@ export declare const Tag: WithDataTestIdReturnType_4<({ tag }: {
10560
11046
  tag: TagVariant_2;
10561
11047
  }) => ReactNode>;
10562
11048
 
11049
+ declare type Tag_2 = (typeof tags)[number];
11050
+
10563
11051
  export declare type TagAlertProps<Text extends string = string> = {
10564
11052
  text: Text extends "" ? never : Text;
10565
11053
  level: Level;
@@ -10670,6 +11158,8 @@ export declare type TagRawProps = {
10670
11158
  onlyIcon?: boolean;
10671
11159
  });
10672
11160
 
11161
+ declare const tags: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p", "span", "div", "label", "code"];
11162
+
10673
11163
  export declare interface TagStatusProps {
10674
11164
  text: string;
10675
11165
  variant: Variant;
@@ -10885,6 +11375,46 @@ declare interface TOCProps {
10885
11375
  scrollable?: boolean;
10886
11376
  }
10887
11377
 
11378
+ declare type toggleActionType = {
11379
+ label: string;
11380
+ checked: boolean;
11381
+ onClick: (checked?: boolean) => void;
11382
+ disabled?: boolean;
11383
+ hideLabel?: boolean;
11384
+ };
11385
+
11386
+ export declare interface ToolbarButtonProps {
11387
+ onClick?: () => void;
11388
+ active?: boolean;
11389
+ label: string;
11390
+ disabled: boolean;
11391
+ icon: IconType;
11392
+ tooltip?: {
11393
+ description?: string;
11394
+ label?: string;
11395
+ shortcut?: ComponentProps<typeof Shortcut>["keys"];
11396
+ };
11397
+ showLabel?: boolean;
11398
+ }
11399
+
11400
+ export declare interface ToolbarDropdownItem {
11401
+ label: string;
11402
+ icon: IconType;
11403
+ onClick: () => void;
11404
+ isActive: boolean;
11405
+ }
11406
+
11407
+ export declare interface ToolbarProps {
11408
+ editor: Editor;
11409
+ isFullscreen?: boolean;
11410
+ disableButtons: boolean;
11411
+ onClose?: () => void;
11412
+ animationComplete?: boolean;
11413
+ darkMode?: boolean;
11414
+ showEmojiPicker?: boolean;
11415
+ plainHtmlMode?: boolean;
11416
+ }
11417
+
10888
11418
  declare type TranslationKey = Join<PathsToStringProps<typeof defaultTranslations>, ".">;
10889
11419
 
10890
11420
  declare type TranslationShape<T> = {
@@ -10914,6 +11444,13 @@ export declare interface TwoColumnLayoutProps {
10914
11444
  sticky?: boolean;
10915
11445
  }
10916
11446
 
11447
+ declare namespace Types {
11448
+ export {
11449
+ ActionProps_2 as ActionProps,
11450
+ OneEmptyStateProps
11451
+ }
11452
+ }
11453
+
10917
11454
  /**
10918
11455
  * Unwrap optional, nullable, default wrappers to get the inner schema
10919
11456
  * Uses _def.typeName for reliable type checking across module boundaries
@@ -11422,6 +11959,12 @@ export declare const usePrivacyMode: () => {
11422
11959
  toggle: () => void;
11423
11960
  };
11424
11961
 
11962
+ export declare interface User {
11963
+ id: string;
11964
+ fullname: string;
11965
+ imageUrl: string;
11966
+ }
11967
+
11425
11968
  export declare const useReducedMotion: () => boolean;
11426
11969
 
11427
11970
  /**
@@ -11635,7 +12178,7 @@ declare type VisualizationSettings = {
11635
12178
  [K in keyof typeof collectionVisualizations]: ExtractVisualizationSettings<(typeof collectionVisualizations)[K]>;
11636
12179
  };
11637
12180
 
11638
- declare const WeekStartDay: {
12181
+ export declare const WeekStartDay: {
11639
12182
  readonly Sunday: 0;
11640
12183
  readonly Monday: 1;
11641
12184
  readonly Tuesday: 2;
@@ -11645,7 +12188,7 @@ declare const WeekStartDay: {
11645
12188
  readonly Saturday: 6;
11646
12189
  };
11647
12190
 
11648
- declare type WeekStartsOn = (typeof WeekStartDay)[keyof typeof WeekStartDay];
12191
+ export declare type WeekStartsOn = (typeof WeekStartDay)[keyof typeof WeekStartDay];
11649
12192
 
11650
12193
  /**
11651
12194
  * Welcome screen suggestion item