@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.
- package/dist/{F0CanvasPanel-nz2dQz9Z.js → F0CanvasPanel-z8xqI8tX.js} +24863 -24403
- package/dist/F0CanvasPanel.css +1 -1
- package/dist/ai.d.ts +42 -43
- package/dist/ai.js +21 -21
- package/dist/experimental.d.ts +245 -217
- package/dist/experimental.js +75 -70
- package/dist/f0.d.ts +223 -238
- package/dist/f0.js +1857 -1852
- package/dist/i18n-provider-defaults.d.ts +9 -7
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/{useChatHistory-DceLgsyD.js → useChatHistory-0yvpUg-H.js} +3734 -4203
- package/dist/{useDataCollectionSource-DhEZxBan.js → useDataCollectionSource-D0BqJ0ux.js} +14875 -14415
- package/package.json +1 -1
- package/dist/useChatHistory.css +0 -1
package/dist/f0.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ import { DeltaCellValue } from './types/delta';
|
|
|
41
41
|
import { DotTagCellValue } from './f0';
|
|
42
42
|
import { DotTagCellValue as DotTagCellValue_2 } from './types/dotTag';
|
|
43
43
|
import type * as echarts_2 from 'echarts';
|
|
44
|
-
import { Editor } from '@tiptap/react';
|
|
45
44
|
import { EmployeeItemProps } from './types';
|
|
46
45
|
import { F0AccordionSkeletonProps } from './F0AccordionSkeleton';
|
|
47
46
|
import { F0AnalyticsDashboardProps as F0AnalyticsDashboardProps_2 } from './types';
|
|
@@ -1290,14 +1289,6 @@ declare type BannerAction = {
|
|
|
1290
1289
|
icon?: IconType;
|
|
1291
1290
|
};
|
|
1292
1291
|
|
|
1293
|
-
declare interface BannerProps {
|
|
1294
|
-
icon: IconType;
|
|
1295
|
-
title: string;
|
|
1296
|
-
variant: BannerVariant;
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
declare type BannerVariant = "info" | "warning" | "critical" | "neutral" | "positive";
|
|
1300
|
-
|
|
1301
1292
|
export declare const BarChart: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<ChartPropsBase<ChartConfig> & {
|
|
1302
1293
|
type?: "simple" | "stacked" | "stacked-by-sign";
|
|
1303
1294
|
label?: boolean;
|
|
@@ -1671,7 +1662,7 @@ declare const boxVariants: (props?: ({
|
|
|
1671
1662
|
bottom?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | undefined;
|
|
1672
1663
|
left?: "none" | "lg" | "md" | "sm" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | undefined;
|
|
1673
1664
|
display?: "block" | "inline" | "flex" | "grid" | "inline-flex" | "none" | undefined;
|
|
1674
|
-
position?: "fixed" | "sticky" | "
|
|
1665
|
+
position?: "fixed" | "sticky" | "relative" | "static" | "absolute" | undefined;
|
|
1675
1666
|
} & ({
|
|
1676
1667
|
class?: ClassValue;
|
|
1677
1668
|
className?: never;
|
|
@@ -1720,18 +1711,6 @@ declare type BulkActionsDefinition<R extends RecordType, Filters extends Filters
|
|
|
1720
1711
|
warningMessage: string;
|
|
1721
1712
|
};
|
|
1722
1713
|
|
|
1723
|
-
export declare interface ButtonConfig {
|
|
1724
|
-
key: string;
|
|
1725
|
-
icon: IconType;
|
|
1726
|
-
active: (editor: Editor) => boolean;
|
|
1727
|
-
onClick: (editor: Editor) => void;
|
|
1728
|
-
label: string;
|
|
1729
|
-
tooltip: {
|
|
1730
|
-
label: string;
|
|
1731
|
-
shortcut: string[];
|
|
1732
|
-
};
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
1714
|
export declare type ButtonDropdownGroup<T = string> = {
|
|
1736
1715
|
label?: string;
|
|
1737
1716
|
items: ButtonDropdownItem<T>[];
|
|
@@ -4880,7 +4859,7 @@ export declare const defaultTranslations: {
|
|
|
4880
4859
|
readonly blocks: "Blocks";
|
|
4881
4860
|
};
|
|
4882
4861
|
readonly ai: {
|
|
4883
|
-
readonly enhanceButtonLabel: "
|
|
4862
|
+
readonly enhanceButtonLabel: "Generate";
|
|
4884
4863
|
readonly loadingEnhanceLabel: "Loading...";
|
|
4885
4864
|
readonly defaultError: "An error occurred while loading";
|
|
4886
4865
|
readonly closeErrorButtonLabel: "Continue editing";
|
|
@@ -5018,7 +4997,7 @@ export declare function defineAvailableForm<TParams extends Record<string, unkno
|
|
|
5018
4997
|
*/
|
|
5019
4998
|
export declare function defineAvailableForm<TSchema extends F0FormSchema>(definition: F0FormDefinitionSingleSchema<TSchema>): F0AiAvailableFormDefinition;
|
|
5020
4999
|
|
|
5021
|
-
declare interface DeleteBlockNotesTextEditorPageDocumentPatch {
|
|
5000
|
+
export declare interface DeleteBlockNotesTextEditorPageDocumentPatch {
|
|
5022
5001
|
type: "delete_block";
|
|
5023
5002
|
targetId: string;
|
|
5024
5003
|
}
|
|
@@ -5063,7 +5042,7 @@ declare type DetailsItemContent = (ComponentProps<typeof DataList.Item> & {
|
|
|
5063
5042
|
}[TagType] | {
|
|
5064
5043
|
type: "avatar-list";
|
|
5065
5044
|
avatarList: F0AvatarListProps;
|
|
5066
|
-
} | (ComponentProps<typeof
|
|
5045
|
+
} | (ComponentProps<typeof F0FileItem> & {
|
|
5067
5046
|
type: "file";
|
|
5068
5047
|
});
|
|
5069
5048
|
|
|
@@ -5313,7 +5292,7 @@ declare type DrawerSize = (typeof drawerSizes)[number];
|
|
|
5313
5292
|
|
|
5314
5293
|
declare const drawerSizes: readonly ["md"];
|
|
5315
5294
|
|
|
5316
|
-
declare type DropdownItem = DropdownItemObject | DropdownItemSeparator | DropdownItemLabel;
|
|
5295
|
+
export declare type DropdownItem = DropdownItemObject | DropdownItemSeparator | DropdownItemLabel;
|
|
5317
5296
|
|
|
5318
5297
|
declare type DropdownItemLabel = {
|
|
5319
5298
|
type: "label";
|
|
@@ -5583,17 +5562,25 @@ declare type EmployeeCreditsUsage = {
|
|
|
5583
5562
|
export declare type enhanceConfig = {
|
|
5584
5563
|
onEnhanceText: (params: enhanceTextParams) => Promise<enhancedTextResponse>;
|
|
5585
5564
|
enhancementOptions?: EnhancementOption[];
|
|
5565
|
+
/** Notified when the user accepts the enhanced result (analytics hook) */
|
|
5566
|
+
onAcceptChanges?: () => void;
|
|
5567
|
+
/** Notified when the user discards the enhanced result (analytics hook) */
|
|
5568
|
+
onRejectChanges?: () => void;
|
|
5569
|
+
/** Notified when the user retries the enhancement (analytics hook) */
|
|
5570
|
+
onRetryChanges?: () => void;
|
|
5586
5571
|
};
|
|
5587
5572
|
|
|
5588
5573
|
export declare type enhancedTextResponse = {
|
|
5589
5574
|
success: boolean;
|
|
5590
|
-
|
|
5575
|
+
/** Enhanced content: an HTML/plain string or a TipTap JSON document */
|
|
5576
|
+
text: string | JSONContent;
|
|
5591
5577
|
error?: string;
|
|
5592
5578
|
};
|
|
5593
5579
|
|
|
5594
5580
|
export declare type EnhancementOption = {
|
|
5595
5581
|
id: string;
|
|
5596
5582
|
label: string;
|
|
5583
|
+
icon?: IconType;
|
|
5597
5584
|
subOptions?: EnhancementOption[];
|
|
5598
5585
|
};
|
|
5599
5586
|
|
|
@@ -8245,6 +8232,13 @@ export declare type F0FieldConfig<T extends string | number = string | number, R
|
|
|
8245
8232
|
*/
|
|
8246
8233
|
export declare type F0FieldType = "text" | "number" | "percentage" | "money" | "duration" | "textarea" | "select" | "checkbox" | "switch" | "date" | "time" | "datetime" | "daterange" | "richtext" | "file" | "cardSelect" | "custom";
|
|
8247
8234
|
|
|
8235
|
+
export declare type F0FileAction = {
|
|
8236
|
+
icon?: IconType;
|
|
8237
|
+
label: string;
|
|
8238
|
+
onClick: () => void;
|
|
8239
|
+
critical?: boolean;
|
|
8240
|
+
};
|
|
8241
|
+
|
|
8248
8242
|
/**
|
|
8249
8243
|
* F0 config options specific to file fields
|
|
8250
8244
|
*/
|
|
@@ -8306,6 +8300,22 @@ export declare type F0FileField = F0BaseField & {
|
|
|
8306
8300
|
*/
|
|
8307
8301
|
export declare type F0FileFieldConfig = F0StringFileConfig | F0ArrayFileConfig;
|
|
8308
8302
|
|
|
8303
|
+
/**
|
|
8304
|
+
* @experimental This is an experimental component, use it at your own risk
|
|
8305
|
+
*/
|
|
8306
|
+
export declare const F0FileItem: WithDataTestIdReturnType_3<ForwardRefExoticComponent<F0FileItemProps & RefAttributes<HTMLDivElement>>>;
|
|
8307
|
+
|
|
8308
|
+
export declare interface F0FileItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
8309
|
+
file: File | FileDef;
|
|
8310
|
+
actions?: F0FileAction[];
|
|
8311
|
+
disabled?: boolean;
|
|
8312
|
+
size?: F0FileItemSize;
|
|
8313
|
+
}
|
|
8314
|
+
|
|
8315
|
+
export declare type F0FileItemSize = (typeof f0FileItemSizes)[number];
|
|
8316
|
+
|
|
8317
|
+
export declare const f0FileItemSizes: readonly ["md", "lg"];
|
|
8318
|
+
|
|
8309
8319
|
export declare const F0FilterPickerContent: <Filters extends FiltersDefinition>(props: F0FilterPickerContentProps<Filters> & {
|
|
8310
8320
|
dataTestId?: string;
|
|
8311
8321
|
}) => ReactElement | null;
|
|
@@ -9408,6 +9418,56 @@ export declare interface F0MoreInfoLink {
|
|
|
9408
9418
|
label?: string;
|
|
9409
9419
|
}
|
|
9410
9420
|
|
|
9421
|
+
/**
|
|
9422
|
+
* @experimental This is an experimental component, use it at your own risk
|
|
9423
|
+
*/
|
|
9424
|
+
export declare const F0NotesTextEditor: ForwardRefExoticComponent<F0NotesTextEditorProps & RefAttributes<F0NotesTextEditorHandle>> & {
|
|
9425
|
+
Skeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
|
|
9426
|
+
};
|
|
9427
|
+
|
|
9428
|
+
export declare type F0NotesTextEditorHandle = {
|
|
9429
|
+
clear: () => void;
|
|
9430
|
+
focus: () => void;
|
|
9431
|
+
setContent: (content: string) => void;
|
|
9432
|
+
applyPageDocumentPatch: (patch: NotesTextEditorPageDocumentPatch) => NotesTextEditorSnapshot;
|
|
9433
|
+
insertAIBlock: () => void;
|
|
9434
|
+
insertTranscript: (title: string, users: User[], messages: Message[]) => void;
|
|
9435
|
+
pushContent: (content: string) => void;
|
|
9436
|
+
insertImage: (file: File) => void;
|
|
9437
|
+
};
|
|
9438
|
+
|
|
9439
|
+
export declare interface F0NotesTextEditorProps {
|
|
9440
|
+
onChange: (value: {
|
|
9441
|
+
json: JSONContent | null;
|
|
9442
|
+
html: string | null;
|
|
9443
|
+
}) => void;
|
|
9444
|
+
placeholder: string;
|
|
9445
|
+
initialEditorState?: {
|
|
9446
|
+
content?: JSONContent | string;
|
|
9447
|
+
title?: string;
|
|
9448
|
+
};
|
|
9449
|
+
readonly?: boolean;
|
|
9450
|
+
aiBlockConfig?: AIBlockConfig;
|
|
9451
|
+
imageUploadConfig?: ImageUploadConfig;
|
|
9452
|
+
enhanceConfig?: enhanceConfig;
|
|
9453
|
+
onTitleChange?: (title: string) => void;
|
|
9454
|
+
titlePlaceholder?: string;
|
|
9455
|
+
primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
|
|
9456
|
+
secondaryActions?: HeaderSecondaryAction[];
|
|
9457
|
+
otherActions?: DropdownItem[];
|
|
9458
|
+
metadata?: MetadataItem[];
|
|
9459
|
+
status?: HeaderStatusProps;
|
|
9460
|
+
alert?: F0AlertProps;
|
|
9461
|
+
}
|
|
9462
|
+
|
|
9463
|
+
export declare const F0NotesTextEditorSkeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
|
|
9464
|
+
|
|
9465
|
+
export declare interface F0NotesTextEditorSkeletonProps {
|
|
9466
|
+
withHeader?: boolean;
|
|
9467
|
+
withTitle?: boolean;
|
|
9468
|
+
withToolbar?: boolean;
|
|
9469
|
+
}
|
|
9470
|
+
|
|
9411
9471
|
/**
|
|
9412
9472
|
* F0 config options specific to number fields
|
|
9413
9473
|
*
|
|
@@ -9716,6 +9776,70 @@ export declare interface F0RichTextConfig {
|
|
|
9716
9776
|
plainHtmlMode?: boolean;
|
|
9717
9777
|
}
|
|
9718
9778
|
|
|
9779
|
+
/**
|
|
9780
|
+
* @experimental This is an experimental component, use it at your own risk
|
|
9781
|
+
*/
|
|
9782
|
+
export declare const F0RichTextDisplay: ForwardRefExoticComponent<F0RichTextDisplayProps & RefAttributes<HTMLDivElement>>;
|
|
9783
|
+
|
|
9784
|
+
export declare type F0RichTextDisplayHandle = HTMLDivElement;
|
|
9785
|
+
|
|
9786
|
+
export declare interface F0RichTextDisplayProps extends HTMLAttributes<HTMLDivElement> {
|
|
9787
|
+
content: string;
|
|
9788
|
+
className?: string;
|
|
9789
|
+
format?: "html" | "markdown";
|
|
9790
|
+
}
|
|
9791
|
+
|
|
9792
|
+
/**
|
|
9793
|
+
* @experimental This is an experimental component, use it at your own risk
|
|
9794
|
+
*/
|
|
9795
|
+
export declare const F0RichTextEditor: ForwardRefExoticComponent<F0RichTextEditorProps & RefAttributes<F0RichTextEditorHandle>> & {
|
|
9796
|
+
Skeleton: ({ rows, }: F0RichTextEditorSkeletonProps) => JSX_2.Element;
|
|
9797
|
+
};
|
|
9798
|
+
|
|
9799
|
+
export declare type F0RichTextEditorHandle = {
|
|
9800
|
+
clear: () => void;
|
|
9801
|
+
clearFiles: () => void;
|
|
9802
|
+
focus: () => void;
|
|
9803
|
+
setError: (error: string | null) => void;
|
|
9804
|
+
setContent: (content: string) => void;
|
|
9805
|
+
};
|
|
9806
|
+
|
|
9807
|
+
export declare interface F0RichTextEditorProps {
|
|
9808
|
+
mentionsConfig?: MentionsConfig;
|
|
9809
|
+
enhanceConfig?: enhanceConfig;
|
|
9810
|
+
filesConfig?: filesConfig;
|
|
9811
|
+
secondaryAction?: secondaryActionsType;
|
|
9812
|
+
primaryAction?: primaryActionType;
|
|
9813
|
+
onChange: (result: resultType) => void;
|
|
9814
|
+
maxCharacters?: number;
|
|
9815
|
+
placeholder: string;
|
|
9816
|
+
initialEditorState?: {
|
|
9817
|
+
content?: string;
|
|
9818
|
+
files?: File[];
|
|
9819
|
+
};
|
|
9820
|
+
title: string;
|
|
9821
|
+
height?: heightType;
|
|
9822
|
+
plainHtmlMode?: boolean;
|
|
9823
|
+
fullScreenMode?: boolean;
|
|
9824
|
+
onFullscreenChange?: (fullscreen: boolean) => void;
|
|
9825
|
+
/** Whether the editor is disabled */
|
|
9826
|
+
disabled?: boolean;
|
|
9827
|
+
/** Whether the editor has an error state */
|
|
9828
|
+
error?: boolean;
|
|
9829
|
+
/** Whether the editor is in a loading state */
|
|
9830
|
+
loading?: boolean;
|
|
9831
|
+
/**
|
|
9832
|
+
* Voice dictation: transcribes a recorded audio blob into text inserted at
|
|
9833
|
+
* the cursor. Same contract as F0AiChatTextArea — when omitted, the
|
|
9834
|
+
* microphone button is not rendered.
|
|
9835
|
+
*/
|
|
9836
|
+
onTranscribe?: TranscribeFn;
|
|
9837
|
+
}
|
|
9838
|
+
|
|
9839
|
+
export declare interface F0RichTextEditorSkeletonProps {
|
|
9840
|
+
rows?: number;
|
|
9841
|
+
}
|
|
9842
|
+
|
|
9719
9843
|
/**
|
|
9720
9844
|
* Rich text field with all properties for rendering
|
|
9721
9845
|
*/
|
|
@@ -10622,12 +10746,8 @@ export declare const FILE_TYPES: {
|
|
|
10622
10746
|
readonly MARKDOWN: "markdown";
|
|
10623
10747
|
};
|
|
10624
10748
|
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
label: string;
|
|
10628
|
-
onClick: () => void;
|
|
10629
|
-
critical?: boolean;
|
|
10630
|
-
};
|
|
10749
|
+
/** @deprecated Use F0FileAction */
|
|
10750
|
+
export declare type FileAction = F0FileAction;
|
|
10631
10751
|
|
|
10632
10752
|
export declare type FileAvatarVariant = Extract<AvatarVariant, {
|
|
10633
10753
|
type: "file";
|
|
@@ -10643,26 +10763,14 @@ declare type FileDef = {
|
|
|
10643
10763
|
*/
|
|
10644
10764
|
declare type FileFieldRenderIf = CommonRenderIfCondition | F0BaseFieldRenderIfFunction;
|
|
10645
10765
|
|
|
10646
|
-
|
|
10766
|
+
/** @deprecated Use F0FileItem */
|
|
10767
|
+
export declare const FileItem: WithDataTestIdReturnType_3<ForwardRefExoticComponent<F0FileItemProps & RefAttributes<HTMLDivElement>>>;
|
|
10647
10768
|
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
actions?: FileAction[];
|
|
10651
|
-
disabled?: boolean;
|
|
10652
|
-
size?: FileItemSize;
|
|
10653
|
-
}
|
|
10769
|
+
/** @deprecated Use F0FileItemProps */
|
|
10770
|
+
export declare type FileItemProps = F0FileItemProps;
|
|
10654
10771
|
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
declare const fileItemVariants: (props?: ({
|
|
10658
|
-
size?: "lg" | "md" | undefined;
|
|
10659
|
-
} & ({
|
|
10660
|
-
class?: ClassValue;
|
|
10661
|
-
className?: never;
|
|
10662
|
-
} | {
|
|
10663
|
-
class?: never;
|
|
10664
|
-
className?: ClassValue;
|
|
10665
|
-
})) | undefined) => string;
|
|
10772
|
+
/** @deprecated Use F0FileItemSize */
|
|
10773
|
+
export declare type FileItemSize = F0FileItemSize;
|
|
10666
10774
|
|
|
10667
10775
|
declare type FileQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
|
|
10668
10776
|
type: "file";
|
|
@@ -11304,7 +11412,15 @@ export declare type GroupRecord<RecordType> = {
|
|
|
11304
11412
|
*/
|
|
11305
11413
|
export declare function hasF0Config(schema: ZodTypeAny): boolean;
|
|
11306
11414
|
|
|
11307
|
-
declare
|
|
11415
|
+
export declare interface HeaderProps {
|
|
11416
|
+
primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
|
|
11417
|
+
secondaryActions?: HeaderSecondaryAction[];
|
|
11418
|
+
metadata?: MetadataItem[];
|
|
11419
|
+
otherActions?: DropdownItem[];
|
|
11420
|
+
status?: HeaderStatusProps;
|
|
11421
|
+
}
|
|
11422
|
+
|
|
11423
|
+
export declare type HeaderSecondaryAction = HeaderSecondaryButtonAction | HeaderSecondaryDropdownAction;
|
|
11308
11424
|
|
|
11309
11425
|
declare type HeaderSecondaryButtonAction = SecondaryAction & {
|
|
11310
11426
|
hideLabel?: boolean;
|
|
@@ -11314,6 +11430,13 @@ declare type HeaderSecondaryDropdownAction = PrimaryDropdownAction<string> & {
|
|
|
11314
11430
|
variant?: "outline";
|
|
11315
11431
|
};
|
|
11316
11432
|
|
|
11433
|
+
export declare interface HeaderStatusProps {
|
|
11434
|
+
label: string;
|
|
11435
|
+
text: string;
|
|
11436
|
+
variant: StatusVariant;
|
|
11437
|
+
actions?: MetadataAction[];
|
|
11438
|
+
}
|
|
11439
|
+
|
|
11317
11440
|
declare type HeadingTags = (typeof headingTags)[number];
|
|
11318
11441
|
|
|
11319
11442
|
declare const headingTags: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
@@ -11703,13 +11826,13 @@ declare type InputInternalProps = Pick<ComponentProps<typeof Input_2>, "ref" | "
|
|
|
11703
11826
|
*/
|
|
11704
11827
|
export declare type InputProps = F0TextInputProps;
|
|
11705
11828
|
|
|
11706
|
-
declare interface InsertAfterNotesTextEditorPageDocumentPatch {
|
|
11829
|
+
export declare interface InsertAfterNotesTextEditorPageDocumentPatch {
|
|
11707
11830
|
type: "insert_after";
|
|
11708
11831
|
targetId: string;
|
|
11709
11832
|
blocks: JSONContent[];
|
|
11710
11833
|
}
|
|
11711
11834
|
|
|
11712
|
-
declare interface InsertBeforeNotesTextEditorPageDocumentPatch {
|
|
11835
|
+
export declare interface InsertBeforeNotesTextEditorPageDocumentPatch {
|
|
11713
11836
|
type: "insert_before";
|
|
11714
11837
|
targetId: string;
|
|
11715
11838
|
blocks: JSONContent[];
|
|
@@ -12051,25 +12174,6 @@ export declare type MentionedUser = {
|
|
|
12051
12174
|
href?: string;
|
|
12052
12175
|
};
|
|
12053
12176
|
|
|
12054
|
-
export declare interface MentionItemComponentProps {
|
|
12055
|
-
item: MentionedUser;
|
|
12056
|
-
index: number;
|
|
12057
|
-
selected: boolean;
|
|
12058
|
-
}
|
|
12059
|
-
|
|
12060
|
-
export declare interface MentionListRef {
|
|
12061
|
-
onKeyDown: (props: {
|
|
12062
|
-
event: KeyboardEvent;
|
|
12063
|
-
}) => boolean;
|
|
12064
|
-
}
|
|
12065
|
-
|
|
12066
|
-
export declare interface MentionNodeAttrs {
|
|
12067
|
-
id: string;
|
|
12068
|
-
label: string;
|
|
12069
|
-
image_url?: string;
|
|
12070
|
-
href?: string;
|
|
12071
|
-
}
|
|
12072
|
-
|
|
12073
12177
|
export declare type MentionsConfig = {
|
|
12074
12178
|
onMentionQueryStringChanged?: (queryString: string) => Promise<MentionedUser[]> | undefined;
|
|
12075
12179
|
users: MentionedUser[];
|
|
@@ -12143,11 +12247,11 @@ declare type MetadataCopyAction = {
|
|
|
12143
12247
|
type: "copy";
|
|
12144
12248
|
};
|
|
12145
12249
|
|
|
12146
|
-
declare function MetadataItem({ item }: {
|
|
12250
|
+
export declare function MetadataItem({ item }: {
|
|
12147
12251
|
item: MetadataItem;
|
|
12148
12252
|
}): JSX_2.Element;
|
|
12149
12253
|
|
|
12150
|
-
declare interface MetadataItem {
|
|
12254
|
+
export declare interface MetadataItem {
|
|
12151
12255
|
label: string;
|
|
12152
12256
|
value: MetadataItemValue;
|
|
12153
12257
|
actions?: (MetadataAction | MetadataCopyAction)[];
|
|
@@ -12167,7 +12271,7 @@ declare interface MetadataItem {
|
|
|
12167
12271
|
};
|
|
12168
12272
|
}
|
|
12169
12273
|
|
|
12170
|
-
declare type MetadataItemValue = {
|
|
12274
|
+
export declare type MetadataItemValue = {
|
|
12171
12275
|
type: "text";
|
|
12172
12276
|
content: string;
|
|
12173
12277
|
} | {
|
|
@@ -12438,69 +12542,30 @@ export declare interface NextStepsProps {
|
|
|
12438
12542
|
items: StepItemProps[];
|
|
12439
12543
|
}
|
|
12440
12544
|
|
|
12441
|
-
|
|
12545
|
+
/** @deprecated Use F0NotesTextEditor */
|
|
12546
|
+
export declare const NotesTextEditor: ForwardRefExoticComponent<F0NotesTextEditorProps & RefAttributes<F0NotesTextEditorHandle>> & {
|
|
12547
|
+
Skeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
|
|
12548
|
+
};
|
|
12442
12549
|
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
focus: () => void;
|
|
12446
|
-
setContent: (content: string) => void;
|
|
12447
|
-
applyPageDocumentPatch: (patch: NotesTextEditorPageDocumentPatch) => NotesTextEditorSnapshot;
|
|
12448
|
-
insertAIBlock: () => void;
|
|
12449
|
-
insertTranscript: (title: string, users: User[], messages: Message[]) => void;
|
|
12450
|
-
pushContent: (content: string) => void;
|
|
12451
|
-
insertImage: (file: File) => void;
|
|
12452
|
-
}
|
|
12550
|
+
/** @deprecated Use F0NotesTextEditorHandle */
|
|
12551
|
+
export declare type NotesTextEditorHandle = F0NotesTextEditorHandle;
|
|
12453
12552
|
|
|
12454
12553
|
export declare type NotesTextEditorPageDocumentPatch = TopLevelPrependNotesTextEditorPageDocumentPatch | TopLevelAppendNotesTextEditorPageDocumentPatch | InsertBeforeNotesTextEditorPageDocumentPatch | InsertAfterNotesTextEditorPageDocumentPatch | ReplaceBlockNotesTextEditorPageDocumentPatch | ReplaceContentNotesTextEditorPageDocumentPatch | DeleteBlockNotesTextEditorPageDocumentPatch;
|
|
12455
12554
|
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
readonly targetId: string;
|
|
12459
|
-
constructor(targetId: string);
|
|
12460
|
-
}
|
|
12555
|
+
/** @deprecated Use F0NotesTextEditorProps */
|
|
12556
|
+
export declare type NotesTextEditorProps = F0NotesTextEditorProps;
|
|
12461
12557
|
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
json: JSONContent | null;
|
|
12465
|
-
html: string | null;
|
|
12466
|
-
}) => void;
|
|
12467
|
-
placeholder: string;
|
|
12468
|
-
initialEditorState?: {
|
|
12469
|
-
content?: JSONContent | string;
|
|
12470
|
-
title?: string;
|
|
12471
|
-
};
|
|
12472
|
-
readonly?: boolean;
|
|
12473
|
-
aiBlockConfig?: AIBlockConfig;
|
|
12474
|
-
imageUploadConfig?: ImageUploadConfig;
|
|
12475
|
-
onTitleChange?: (title: string) => void;
|
|
12476
|
-
titlePlaceholder?: string;
|
|
12477
|
-
primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
|
|
12478
|
-
secondaryActions?: HeaderSecondaryAction[];
|
|
12479
|
-
otherActions?: DropdownItem[];
|
|
12480
|
-
metadata?: MetadataItem[];
|
|
12481
|
-
banner?: BannerProps;
|
|
12482
|
-
showBubbleMenu?: boolean;
|
|
12483
|
-
}
|
|
12558
|
+
/** @deprecated Use F0NotesTextEditorSkeleton */
|
|
12559
|
+
export declare const NotesTextEditorSkeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
|
|
12484
12560
|
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
export declare interface NotesTextEditorSkeletonProps {
|
|
12488
|
-
withHeader?: boolean;
|
|
12489
|
-
withTitle?: boolean;
|
|
12490
|
-
withToolbar?: boolean;
|
|
12491
|
-
}
|
|
12561
|
+
/** @deprecated Use F0NotesTextEditorSkeletonProps */
|
|
12562
|
+
export declare type NotesTextEditorSkeletonProps = F0NotesTextEditorSkeletonProps;
|
|
12492
12563
|
|
|
12493
12564
|
export declare interface NotesTextEditorSnapshot {
|
|
12494
12565
|
json: JSONContent | null;
|
|
12495
12566
|
html: string | null;
|
|
12496
12567
|
}
|
|
12497
12568
|
|
|
12498
|
-
export declare class NotesTextEditorUnsupportedPatchTypeError extends Error {
|
|
12499
|
-
readonly code = "unsupported_patch_type";
|
|
12500
|
-
readonly patchType: unknown;
|
|
12501
|
-
constructor(patchType: unknown);
|
|
12502
|
-
}
|
|
12503
|
-
|
|
12504
12569
|
declare type NotificationDialogBaseOptions = Optional<Pick<DialogDefinition, "id" | "title">, "id"> & {
|
|
12505
12570
|
msg: string;
|
|
12506
12571
|
type?: DialogNotificationType;
|
|
@@ -13307,7 +13372,7 @@ declare interface PrimaryAction {
|
|
|
13307
13372
|
loading?: boolean;
|
|
13308
13373
|
}
|
|
13309
13374
|
|
|
13310
|
-
declare interface PrimaryActionButton extends PrimaryAction {
|
|
13375
|
+
export declare interface PrimaryActionButton extends PrimaryAction {
|
|
13311
13376
|
label: string;
|
|
13312
13377
|
icon?: IconType;
|
|
13313
13378
|
onClick: () => void;
|
|
@@ -13330,7 +13395,7 @@ export declare type primaryActionType = {
|
|
|
13330
13395
|
subActions?: subActionType[];
|
|
13331
13396
|
};
|
|
13332
13397
|
|
|
13333
|
-
declare interface PrimaryDropdownAction<T> extends PrimaryAction {
|
|
13398
|
+
export declare interface PrimaryDropdownAction<T> extends PrimaryAction {
|
|
13334
13399
|
items: ButtonDropdownItem<T>[];
|
|
13335
13400
|
value?: T;
|
|
13336
13401
|
onClick: (value: T, item: ButtonDropdownItem<T>) => void;
|
|
@@ -13807,13 +13872,13 @@ declare interface RenderIfBase {
|
|
|
13807
13872
|
*/
|
|
13808
13873
|
export declare type RenderIfCondition = CommonRenderIfCondition | TextRenderIfCondition | NumberRenderIfCondition | BooleanRenderIfCondition | SelectRenderIfCondition | DateRenderIfCondition | DateRangeRenderIfCondition;
|
|
13809
13874
|
|
|
13810
|
-
declare interface ReplaceBlockNotesTextEditorPageDocumentPatch {
|
|
13875
|
+
export declare interface ReplaceBlockNotesTextEditorPageDocumentPatch {
|
|
13811
13876
|
type: "replace_block";
|
|
13812
13877
|
targetId: string;
|
|
13813
13878
|
block: JSONContent;
|
|
13814
13879
|
}
|
|
13815
13880
|
|
|
13816
|
-
declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
|
|
13881
|
+
export declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
|
|
13817
13882
|
type: "replace_content";
|
|
13818
13883
|
targetId: string;
|
|
13819
13884
|
content: JSONContent[];
|
|
@@ -13965,59 +14030,28 @@ export declare type resultType = {
|
|
|
13965
14030
|
mentionIds?: string[];
|
|
13966
14031
|
};
|
|
13967
14032
|
|
|
13968
|
-
|
|
14033
|
+
/** @deprecated Use F0RichTextDisplay */
|
|
14034
|
+
export declare const RichTextDisplay: ForwardRefExoticComponent<F0RichTextDisplayProps & RefAttributes<HTMLDivElement>>;
|
|
13969
14035
|
|
|
13970
|
-
|
|
14036
|
+
/** @deprecated Use F0RichTextDisplayHandle */
|
|
14037
|
+
export declare type RichTextDisplayHandle = F0RichTextDisplayHandle;
|
|
13971
14038
|
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
className?: string;
|
|
13975
|
-
format?: "html" | "markdown";
|
|
13976
|
-
}
|
|
14039
|
+
/** @deprecated Use F0RichTextDisplayProps */
|
|
14040
|
+
export declare type RichTextDisplayProps = F0RichTextDisplayProps;
|
|
13977
14041
|
|
|
13978
|
-
|
|
13979
|
-
|
|
14042
|
+
/** @deprecated Use F0RichTextEditor */
|
|
14043
|
+
export declare const RichTextEditor: ForwardRefExoticComponent<F0RichTextEditorProps & RefAttributes<F0RichTextEditorHandle>> & {
|
|
14044
|
+
Skeleton: ({ rows, }: F0RichTextEditorSkeletonProps) => JSX_2.Element;
|
|
13980
14045
|
};
|
|
13981
14046
|
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
clearFiles: () => void;
|
|
13985
|
-
focus: () => void;
|
|
13986
|
-
setError: (error: string | null) => void;
|
|
13987
|
-
setContent: (content: string) => void;
|
|
13988
|
-
};
|
|
14047
|
+
/** @deprecated Use F0RichTextEditorHandle */
|
|
14048
|
+
export declare type RichTextEditorHandle = F0RichTextEditorHandle;
|
|
13989
14049
|
|
|
13990
|
-
|
|
13991
|
-
|
|
13992
|
-
enhanceConfig?: enhanceConfig;
|
|
13993
|
-
filesConfig?: filesConfig;
|
|
13994
|
-
secondaryAction?: secondaryActionsType;
|
|
13995
|
-
primaryAction?: primaryActionType;
|
|
13996
|
-
onChange: (result: resultType) => void;
|
|
13997
|
-
onBlur?: () => void;
|
|
13998
|
-
maxCharacters?: number;
|
|
13999
|
-
placeholder: string;
|
|
14000
|
-
initialEditorState?: {
|
|
14001
|
-
content?: string;
|
|
14002
|
-
files?: File[];
|
|
14003
|
-
};
|
|
14004
|
-
title: string;
|
|
14005
|
-
height?: heightType;
|
|
14006
|
-
plainHtmlMode?: boolean;
|
|
14007
|
-
fullScreenMode?: boolean;
|
|
14008
|
-
onFullscreenChange?: (fullscreen: boolean) => void;
|
|
14009
|
-
/** Whether the editor is disabled */
|
|
14010
|
-
disabled?: boolean;
|
|
14011
|
-
/** Whether the editor has an error state */
|
|
14012
|
-
error?: boolean;
|
|
14013
|
-
/** Whether the editor is in a loading state */
|
|
14014
|
-
loading?: boolean;
|
|
14015
|
-
dataTestId?: string;
|
|
14016
|
-
}
|
|
14050
|
+
/** @deprecated Use F0RichTextEditorProps */
|
|
14051
|
+
export declare type RichTextEditorProps = F0RichTextEditorProps;
|
|
14017
14052
|
|
|
14018
|
-
|
|
14019
|
-
|
|
14020
|
-
}
|
|
14053
|
+
/** @deprecated Use F0RichTextEditorSkeletonProps */
|
|
14054
|
+
export declare type RichTextEditorSkeletonProps = F0RichTextEditorSkeletonProps;
|
|
14021
14055
|
|
|
14022
14056
|
/**
|
|
14023
14057
|
* All valid renderIf conditions for richtext fields
|
|
@@ -14263,27 +14297,6 @@ export declare const setDataCollectionUrlParams: <CurrentFiltersState extends Fi
|
|
|
14263
14297
|
|
|
14264
14298
|
declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
|
|
14265
14299
|
|
|
14266
|
-
/**
|
|
14267
|
-
* @experimental This is an experimental component use it at your own risk
|
|
14268
|
-
*/
|
|
14269
|
-
declare const Shortcut: WithDataTestIdReturnType_3<typeof _Shortcut>;
|
|
14270
|
-
|
|
14271
|
-
declare function _Shortcut({ keys, variant }: ShortcutProps): JSX_2.Element | null;
|
|
14272
|
-
|
|
14273
|
-
declare interface ShortcutProps extends VariantProps<typeof shortcutVariants> {
|
|
14274
|
-
keys: string[];
|
|
14275
|
-
}
|
|
14276
|
-
|
|
14277
|
-
declare const shortcutVariants: (props?: ({
|
|
14278
|
-
variant?: "default" | "inverse" | undefined;
|
|
14279
|
-
} & ({
|
|
14280
|
-
class?: ClassValue;
|
|
14281
|
-
className?: never;
|
|
14282
|
-
} | {
|
|
14283
|
-
class?: never;
|
|
14284
|
-
className?: ClassValue;
|
|
14285
|
-
})) | undefined) => string;
|
|
14286
|
-
|
|
14287
14300
|
/**
|
|
14288
14301
|
* Response structure for non-paginated data
|
|
14289
14302
|
*/
|
|
@@ -15116,44 +15129,12 @@ declare type toggleActionType = {
|
|
|
15116
15129
|
hideLabel?: boolean;
|
|
15117
15130
|
};
|
|
15118
15131
|
|
|
15119
|
-
export declare interface
|
|
15120
|
-
onClick?: () => void;
|
|
15121
|
-
active?: boolean;
|
|
15122
|
-
label: string;
|
|
15123
|
-
disabled: boolean;
|
|
15124
|
-
icon: IconType;
|
|
15125
|
-
tooltip?: {
|
|
15126
|
-
description?: string;
|
|
15127
|
-
label?: string;
|
|
15128
|
-
shortcut?: ComponentProps<typeof Shortcut>["keys"];
|
|
15129
|
-
};
|
|
15130
|
-
showLabel?: boolean;
|
|
15131
|
-
}
|
|
15132
|
-
|
|
15133
|
-
export declare interface ToolbarDropdownItem {
|
|
15134
|
-
label: string;
|
|
15135
|
-
icon: IconType;
|
|
15136
|
-
onClick: () => void;
|
|
15137
|
-
isActive: boolean;
|
|
15138
|
-
}
|
|
15139
|
-
|
|
15140
|
-
export declare interface ToolbarProps {
|
|
15141
|
-
editor: Editor;
|
|
15142
|
-
isFullscreen?: boolean;
|
|
15143
|
-
disableButtons: boolean;
|
|
15144
|
-
onClose?: () => void;
|
|
15145
|
-
animationComplete?: boolean;
|
|
15146
|
-
darkMode?: boolean;
|
|
15147
|
-
showEmojiPicker?: boolean;
|
|
15148
|
-
plainHtmlMode?: boolean;
|
|
15149
|
-
}
|
|
15150
|
-
|
|
15151
|
-
declare interface TopLevelAppendNotesTextEditorPageDocumentPatch {
|
|
15132
|
+
export declare interface TopLevelAppendNotesTextEditorPageDocumentPatch {
|
|
15152
15133
|
type: "top_level_append";
|
|
15153
15134
|
blocks: JSONContent[];
|
|
15154
15135
|
}
|
|
15155
15136
|
|
|
15156
|
-
declare interface TopLevelPrependNotesTextEditorPageDocumentPatch {
|
|
15137
|
+
export declare interface TopLevelPrependNotesTextEditorPageDocumentPatch {
|
|
15157
15138
|
type: "top_level_prepend";
|
|
15158
15139
|
blocks: JSONContent[];
|
|
15159
15140
|
}
|
|
@@ -15219,6 +15200,8 @@ declare namespace Types {
|
|
|
15219
15200
|
*/
|
|
15220
15201
|
export declare function unwrapZodSchema(schema: ZodTypeAny): ZodTypeAny;
|
|
15221
15202
|
|
|
15203
|
+
export declare const UPLOAD_INPUT_ID = "rich-text-editor-upload-button";
|
|
15204
|
+
|
|
15222
15205
|
/**
|
|
15223
15206
|
* Tracking options for the AI chat
|
|
15224
15207
|
*/
|
|
@@ -16394,9 +16377,9 @@ declare namespace Calendar {
|
|
|
16394
16377
|
|
|
16395
16378
|
declare module "@tiptap/core" {
|
|
16396
16379
|
interface Commands<ReturnType> {
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16380
|
+
aiBlock: {
|
|
16381
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
16382
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
16400
16383
|
};
|
|
16401
16384
|
}
|
|
16402
16385
|
}
|
|
@@ -16404,9 +16387,11 @@ declare module "@tiptap/core" {
|
|
|
16404
16387
|
|
|
16405
16388
|
declare module "@tiptap/core" {
|
|
16406
16389
|
interface Commands<ReturnType> {
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16390
|
+
enhanceHighlight: {
|
|
16391
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
16392
|
+
placeholder?: string;
|
|
16393
|
+
}) => ReturnType;
|
|
16394
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
16410
16395
|
};
|
|
16411
16396
|
}
|
|
16412
16397
|
}
|