@factorialco/f0-react 3.0.0 → 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-ptgXy87G.js → F0CanvasPanel-z8xqI8tX.js} +25018 -24508
- package/dist/F0CanvasPanel.css +1 -1
- package/dist/ai.d.ts +37 -38
- package/dist/ai.js +21 -21
- package/dist/experimental.d.ts +287 -231
- package/dist/experimental.js +1189 -1162
- package/dist/f0.d.ts +230 -233
- package/dist/f0.js +2962 -2956
- package/dist/i18n-provider-defaults.d.ts +4 -2
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/{useChatHistory-BphMZrVl.js → useChatHistory-0yvpUg-H.js} +3734 -4203
- package/dist/{useDataCollectionSource-SH2WbTKC.js → useDataCollectionSource-D0BqJ0ux.js} +14825 -14380
- 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,30 +12174,23 @@ 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[];
|
|
12076
12180
|
};
|
|
12077
12181
|
|
|
12182
|
+
/**
|
|
12183
|
+
* Write counterpart of `resolveDataCollectionFilters`: returns a new storage
|
|
12184
|
+
* object with `filters` replaced, writing the SAME slot the resolver reads —
|
|
12185
|
+
* when a per-visualization override exists for the persisted visualization,
|
|
12186
|
+
* that slot is updated too, so a subsequent resolve sees the new filters
|
|
12187
|
+
* instead of the stale override winning.
|
|
12188
|
+
*
|
|
12189
|
+
* Pure; the rest of the persisted state (sortings, search, settings, …) is
|
|
12190
|
+
* preserved untouched.
|
|
12191
|
+
*/
|
|
12192
|
+
export declare const mergeDataCollectionFilters: <CurrentFiltersState extends FiltersState<FiltersDefinition> = FiltersState<FiltersDefinition>>(storage: DataCollectionStorage<CurrentFiltersState>, filters: CurrentFiltersState) => DataCollectionStorage<CurrentFiltersState>;
|
|
12193
|
+
|
|
12078
12194
|
export declare interface Message {
|
|
12079
12195
|
userId: string;
|
|
12080
12196
|
text: string;
|
|
@@ -12131,11 +12247,11 @@ declare type MetadataCopyAction = {
|
|
|
12131
12247
|
type: "copy";
|
|
12132
12248
|
};
|
|
12133
12249
|
|
|
12134
|
-
declare function MetadataItem({ item }: {
|
|
12250
|
+
export declare function MetadataItem({ item }: {
|
|
12135
12251
|
item: MetadataItem;
|
|
12136
12252
|
}): JSX_2.Element;
|
|
12137
12253
|
|
|
12138
|
-
declare interface MetadataItem {
|
|
12254
|
+
export declare interface MetadataItem {
|
|
12139
12255
|
label: string;
|
|
12140
12256
|
value: MetadataItemValue;
|
|
12141
12257
|
actions?: (MetadataAction | MetadataCopyAction)[];
|
|
@@ -12155,7 +12271,7 @@ declare interface MetadataItem {
|
|
|
12155
12271
|
};
|
|
12156
12272
|
}
|
|
12157
12273
|
|
|
12158
|
-
declare type MetadataItemValue = {
|
|
12274
|
+
export declare type MetadataItemValue = {
|
|
12159
12275
|
type: "text";
|
|
12160
12276
|
content: string;
|
|
12161
12277
|
} | {
|
|
@@ -12426,69 +12542,30 @@ export declare interface NextStepsProps {
|
|
|
12426
12542
|
items: StepItemProps[];
|
|
12427
12543
|
}
|
|
12428
12544
|
|
|
12429
|
-
|
|
12545
|
+
/** @deprecated Use F0NotesTextEditor */
|
|
12546
|
+
export declare const NotesTextEditor: ForwardRefExoticComponent<F0NotesTextEditorProps & RefAttributes<F0NotesTextEditorHandle>> & {
|
|
12547
|
+
Skeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
|
|
12548
|
+
};
|
|
12430
12549
|
|
|
12431
|
-
|
|
12432
|
-
|
|
12433
|
-
focus: () => void;
|
|
12434
|
-
setContent: (content: string) => void;
|
|
12435
|
-
applyPageDocumentPatch: (patch: NotesTextEditorPageDocumentPatch) => NotesTextEditorSnapshot;
|
|
12436
|
-
insertAIBlock: () => void;
|
|
12437
|
-
insertTranscript: (title: string, users: User[], messages: Message[]) => void;
|
|
12438
|
-
pushContent: (content: string) => void;
|
|
12439
|
-
insertImage: (file: File) => void;
|
|
12440
|
-
}
|
|
12550
|
+
/** @deprecated Use F0NotesTextEditorHandle */
|
|
12551
|
+
export declare type NotesTextEditorHandle = F0NotesTextEditorHandle;
|
|
12441
12552
|
|
|
12442
12553
|
export declare type NotesTextEditorPageDocumentPatch = TopLevelPrependNotesTextEditorPageDocumentPatch | TopLevelAppendNotesTextEditorPageDocumentPatch | InsertBeforeNotesTextEditorPageDocumentPatch | InsertAfterNotesTextEditorPageDocumentPatch | ReplaceBlockNotesTextEditorPageDocumentPatch | ReplaceContentNotesTextEditorPageDocumentPatch | DeleteBlockNotesTextEditorPageDocumentPatch;
|
|
12443
12554
|
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
readonly targetId: string;
|
|
12447
|
-
constructor(targetId: string);
|
|
12448
|
-
}
|
|
12555
|
+
/** @deprecated Use F0NotesTextEditorProps */
|
|
12556
|
+
export declare type NotesTextEditorProps = F0NotesTextEditorProps;
|
|
12449
12557
|
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
json: JSONContent | null;
|
|
12453
|
-
html: string | null;
|
|
12454
|
-
}) => void;
|
|
12455
|
-
placeholder: string;
|
|
12456
|
-
initialEditorState?: {
|
|
12457
|
-
content?: JSONContent | string;
|
|
12458
|
-
title?: string;
|
|
12459
|
-
};
|
|
12460
|
-
readonly?: boolean;
|
|
12461
|
-
aiBlockConfig?: AIBlockConfig;
|
|
12462
|
-
imageUploadConfig?: ImageUploadConfig;
|
|
12463
|
-
onTitleChange?: (title: string) => void;
|
|
12464
|
-
titlePlaceholder?: string;
|
|
12465
|
-
primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
|
|
12466
|
-
secondaryActions?: HeaderSecondaryAction[];
|
|
12467
|
-
otherActions?: DropdownItem[];
|
|
12468
|
-
metadata?: MetadataItem[];
|
|
12469
|
-
banner?: BannerProps;
|
|
12470
|
-
showBubbleMenu?: boolean;
|
|
12471
|
-
}
|
|
12558
|
+
/** @deprecated Use F0NotesTextEditorSkeleton */
|
|
12559
|
+
export declare const NotesTextEditorSkeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
|
|
12472
12560
|
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
export declare interface NotesTextEditorSkeletonProps {
|
|
12476
|
-
withHeader?: boolean;
|
|
12477
|
-
withTitle?: boolean;
|
|
12478
|
-
withToolbar?: boolean;
|
|
12479
|
-
}
|
|
12561
|
+
/** @deprecated Use F0NotesTextEditorSkeletonProps */
|
|
12562
|
+
export declare type NotesTextEditorSkeletonProps = F0NotesTextEditorSkeletonProps;
|
|
12480
12563
|
|
|
12481
12564
|
export declare interface NotesTextEditorSnapshot {
|
|
12482
12565
|
json: JSONContent | null;
|
|
12483
12566
|
html: string | null;
|
|
12484
12567
|
}
|
|
12485
12568
|
|
|
12486
|
-
export declare class NotesTextEditorUnsupportedPatchTypeError extends Error {
|
|
12487
|
-
readonly code = "unsupported_patch_type";
|
|
12488
|
-
readonly patchType: unknown;
|
|
12489
|
-
constructor(patchType: unknown);
|
|
12490
|
-
}
|
|
12491
|
-
|
|
12492
12569
|
declare type NotificationDialogBaseOptions = Optional<Pick<DialogDefinition, "id" | "title">, "id"> & {
|
|
12493
12570
|
msg: string;
|
|
12494
12571
|
type?: DialogNotificationType;
|
|
@@ -13295,7 +13372,7 @@ declare interface PrimaryAction {
|
|
|
13295
13372
|
loading?: boolean;
|
|
13296
13373
|
}
|
|
13297
13374
|
|
|
13298
|
-
declare interface PrimaryActionButton extends PrimaryAction {
|
|
13375
|
+
export declare interface PrimaryActionButton extends PrimaryAction {
|
|
13299
13376
|
label: string;
|
|
13300
13377
|
icon?: IconType;
|
|
13301
13378
|
onClick: () => void;
|
|
@@ -13318,7 +13395,7 @@ export declare type primaryActionType = {
|
|
|
13318
13395
|
subActions?: subActionType[];
|
|
13319
13396
|
};
|
|
13320
13397
|
|
|
13321
|
-
declare interface PrimaryDropdownAction<T> extends PrimaryAction {
|
|
13398
|
+
export declare interface PrimaryDropdownAction<T> extends PrimaryAction {
|
|
13322
13399
|
items: ButtonDropdownItem<T>[];
|
|
13323
13400
|
value?: T;
|
|
13324
13401
|
onClick: (value: T, item: ButtonDropdownItem<T>) => void;
|
|
@@ -13795,13 +13872,13 @@ declare interface RenderIfBase {
|
|
|
13795
13872
|
*/
|
|
13796
13873
|
export declare type RenderIfCondition = CommonRenderIfCondition | TextRenderIfCondition | NumberRenderIfCondition | BooleanRenderIfCondition | SelectRenderIfCondition | DateRenderIfCondition | DateRangeRenderIfCondition;
|
|
13797
13874
|
|
|
13798
|
-
declare interface ReplaceBlockNotesTextEditorPageDocumentPatch {
|
|
13875
|
+
export declare interface ReplaceBlockNotesTextEditorPageDocumentPatch {
|
|
13799
13876
|
type: "replace_block";
|
|
13800
13877
|
targetId: string;
|
|
13801
13878
|
block: JSONContent;
|
|
13802
13879
|
}
|
|
13803
13880
|
|
|
13804
|
-
declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
|
|
13881
|
+
export declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
|
|
13805
13882
|
type: "replace_content";
|
|
13806
13883
|
targetId: string;
|
|
13807
13884
|
content: JSONContent[];
|
|
@@ -13953,59 +14030,28 @@ export declare type resultType = {
|
|
|
13953
14030
|
mentionIds?: string[];
|
|
13954
14031
|
};
|
|
13955
14032
|
|
|
13956
|
-
|
|
14033
|
+
/** @deprecated Use F0RichTextDisplay */
|
|
14034
|
+
export declare const RichTextDisplay: ForwardRefExoticComponent<F0RichTextDisplayProps & RefAttributes<HTMLDivElement>>;
|
|
13957
14035
|
|
|
13958
|
-
|
|
14036
|
+
/** @deprecated Use F0RichTextDisplayHandle */
|
|
14037
|
+
export declare type RichTextDisplayHandle = F0RichTextDisplayHandle;
|
|
13959
14038
|
|
|
13960
|
-
|
|
13961
|
-
|
|
13962
|
-
className?: string;
|
|
13963
|
-
format?: "html" | "markdown";
|
|
13964
|
-
}
|
|
14039
|
+
/** @deprecated Use F0RichTextDisplayProps */
|
|
14040
|
+
export declare type RichTextDisplayProps = F0RichTextDisplayProps;
|
|
13965
14041
|
|
|
13966
|
-
|
|
13967
|
-
|
|
14042
|
+
/** @deprecated Use F0RichTextEditor */
|
|
14043
|
+
export declare const RichTextEditor: ForwardRefExoticComponent<F0RichTextEditorProps & RefAttributes<F0RichTextEditorHandle>> & {
|
|
14044
|
+
Skeleton: ({ rows, }: F0RichTextEditorSkeletonProps) => JSX_2.Element;
|
|
13968
14045
|
};
|
|
13969
14046
|
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
clearFiles: () => void;
|
|
13973
|
-
focus: () => void;
|
|
13974
|
-
setError: (error: string | null) => void;
|
|
13975
|
-
setContent: (content: string) => void;
|
|
13976
|
-
};
|
|
14047
|
+
/** @deprecated Use F0RichTextEditorHandle */
|
|
14048
|
+
export declare type RichTextEditorHandle = F0RichTextEditorHandle;
|
|
13977
14049
|
|
|
13978
|
-
|
|
13979
|
-
|
|
13980
|
-
enhanceConfig?: enhanceConfig;
|
|
13981
|
-
filesConfig?: filesConfig;
|
|
13982
|
-
secondaryAction?: secondaryActionsType;
|
|
13983
|
-
primaryAction?: primaryActionType;
|
|
13984
|
-
onChange: (result: resultType) => void;
|
|
13985
|
-
onBlur?: () => void;
|
|
13986
|
-
maxCharacters?: number;
|
|
13987
|
-
placeholder: string;
|
|
13988
|
-
initialEditorState?: {
|
|
13989
|
-
content?: string;
|
|
13990
|
-
files?: File[];
|
|
13991
|
-
};
|
|
13992
|
-
title: string;
|
|
13993
|
-
height?: heightType;
|
|
13994
|
-
plainHtmlMode?: boolean;
|
|
13995
|
-
fullScreenMode?: boolean;
|
|
13996
|
-
onFullscreenChange?: (fullscreen: boolean) => void;
|
|
13997
|
-
/** Whether the editor is disabled */
|
|
13998
|
-
disabled?: boolean;
|
|
13999
|
-
/** Whether the editor has an error state */
|
|
14000
|
-
error?: boolean;
|
|
14001
|
-
/** Whether the editor is in a loading state */
|
|
14002
|
-
loading?: boolean;
|
|
14003
|
-
dataTestId?: string;
|
|
14004
|
-
}
|
|
14050
|
+
/** @deprecated Use F0RichTextEditorProps */
|
|
14051
|
+
export declare type RichTextEditorProps = F0RichTextEditorProps;
|
|
14005
14052
|
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
}
|
|
14053
|
+
/** @deprecated Use F0RichTextEditorSkeletonProps */
|
|
14054
|
+
export declare type RichTextEditorSkeletonProps = F0RichTextEditorSkeletonProps;
|
|
14009
14055
|
|
|
14010
14056
|
/**
|
|
14011
14057
|
* All valid renderIf conditions for richtext fields
|
|
@@ -14251,27 +14297,6 @@ export declare const setDataCollectionUrlParams: <CurrentFiltersState extends Fi
|
|
|
14251
14297
|
|
|
14252
14298
|
declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
|
|
14253
14299
|
|
|
14254
|
-
/**
|
|
14255
|
-
* @experimental This is an experimental component use it at your own risk
|
|
14256
|
-
*/
|
|
14257
|
-
declare const Shortcut: WithDataTestIdReturnType_3<typeof _Shortcut>;
|
|
14258
|
-
|
|
14259
|
-
declare function _Shortcut({ keys, variant }: ShortcutProps): JSX_2.Element | null;
|
|
14260
|
-
|
|
14261
|
-
declare interface ShortcutProps extends VariantProps<typeof shortcutVariants> {
|
|
14262
|
-
keys: string[];
|
|
14263
|
-
}
|
|
14264
|
-
|
|
14265
|
-
declare const shortcutVariants: (props?: ({
|
|
14266
|
-
variant?: "default" | "inverse" | undefined;
|
|
14267
|
-
} & ({
|
|
14268
|
-
class?: ClassValue;
|
|
14269
|
-
className?: never;
|
|
14270
|
-
} | {
|
|
14271
|
-
class?: never;
|
|
14272
|
-
className?: ClassValue;
|
|
14273
|
-
})) | undefined) => string;
|
|
14274
|
-
|
|
14275
14300
|
/**
|
|
14276
14301
|
* Response structure for non-paginated data
|
|
14277
14302
|
*/
|
|
@@ -15104,44 +15129,12 @@ declare type toggleActionType = {
|
|
|
15104
15129
|
hideLabel?: boolean;
|
|
15105
15130
|
};
|
|
15106
15131
|
|
|
15107
|
-
export declare interface
|
|
15108
|
-
onClick?: () => void;
|
|
15109
|
-
active?: boolean;
|
|
15110
|
-
label: string;
|
|
15111
|
-
disabled: boolean;
|
|
15112
|
-
icon: IconType;
|
|
15113
|
-
tooltip?: {
|
|
15114
|
-
description?: string;
|
|
15115
|
-
label?: string;
|
|
15116
|
-
shortcut?: ComponentProps<typeof Shortcut>["keys"];
|
|
15117
|
-
};
|
|
15118
|
-
showLabel?: boolean;
|
|
15119
|
-
}
|
|
15120
|
-
|
|
15121
|
-
export declare interface ToolbarDropdownItem {
|
|
15122
|
-
label: string;
|
|
15123
|
-
icon: IconType;
|
|
15124
|
-
onClick: () => void;
|
|
15125
|
-
isActive: boolean;
|
|
15126
|
-
}
|
|
15127
|
-
|
|
15128
|
-
export declare interface ToolbarProps {
|
|
15129
|
-
editor: Editor;
|
|
15130
|
-
isFullscreen?: boolean;
|
|
15131
|
-
disableButtons: boolean;
|
|
15132
|
-
onClose?: () => void;
|
|
15133
|
-
animationComplete?: boolean;
|
|
15134
|
-
darkMode?: boolean;
|
|
15135
|
-
showEmojiPicker?: boolean;
|
|
15136
|
-
plainHtmlMode?: boolean;
|
|
15137
|
-
}
|
|
15138
|
-
|
|
15139
|
-
declare interface TopLevelAppendNotesTextEditorPageDocumentPatch {
|
|
15132
|
+
export declare interface TopLevelAppendNotesTextEditorPageDocumentPatch {
|
|
15140
15133
|
type: "top_level_append";
|
|
15141
15134
|
blocks: JSONContent[];
|
|
15142
15135
|
}
|
|
15143
15136
|
|
|
15144
|
-
declare interface TopLevelPrependNotesTextEditorPageDocumentPatch {
|
|
15137
|
+
export declare interface TopLevelPrependNotesTextEditorPageDocumentPatch {
|
|
15145
15138
|
type: "top_level_prepend";
|
|
15146
15139
|
blocks: JSONContent[];
|
|
15147
15140
|
}
|
|
@@ -15207,6 +15200,8 @@ declare namespace Types {
|
|
|
15207
15200
|
*/
|
|
15208
15201
|
export declare function unwrapZodSchema(schema: ZodTypeAny): ZodTypeAny;
|
|
15209
15202
|
|
|
15203
|
+
export declare const UPLOAD_INPUT_ID = "rich-text-editor-upload-button";
|
|
15204
|
+
|
|
15210
15205
|
/**
|
|
15211
15206
|
* Tracking options for the AI chat
|
|
15212
15207
|
*/
|
|
@@ -16393,7 +16388,9 @@ declare module "@tiptap/core" {
|
|
|
16393
16388
|
declare module "@tiptap/core" {
|
|
16394
16389
|
interface Commands<ReturnType> {
|
|
16395
16390
|
enhanceHighlight: {
|
|
16396
|
-
setEnhanceHighlight: (from: number, to: number
|
|
16391
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
16392
|
+
placeholder?: string;
|
|
16393
|
+
}) => ReturnType;
|
|
16397
16394
|
clearEnhanceHighlight: () => ReturnType;
|
|
16398
16395
|
};
|
|
16399
16396
|
}
|