@factorialco/f0-react 3.0.1 → 3.2.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-C3fJQSVe.js} +25056 -24590
- package/dist/F0CanvasPanel.css +1 -1
- package/dist/ai.d.ts +42 -43
- package/dist/ai.js +21 -21
- package/dist/experimental.d.ts +290 -234
- package/dist/experimental.js +1412 -1406
- package/dist/f0.d.ts +246 -247
- 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-shjDpEO2.js} +3734 -4203
- package/dist/{useDataCollectionSource-DhEZxBan.js → useDataCollectionSource-T0eDBgbb.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
|
|
|
@@ -5123,9 +5102,17 @@ declare const dialogAlikePositions: readonly ["center", "left", "right", "fullsc
|
|
|
5123
5102
|
|
|
5124
5103
|
export declare type DialogControls = {
|
|
5125
5104
|
kind: "resource";
|
|
5105
|
+
/**
|
|
5106
|
+
* "Open detail" affordance. Provide `url` to render a link to the
|
|
5107
|
+
* resource's full-page view (routed through the app's `LinkProvider`,
|
|
5108
|
+
* so it is cmd/middle-clickable) — typically the active item's
|
|
5109
|
+
* `itemUrl` from `useDataCollectionItemNavigation`. Provide `onClick`
|
|
5110
|
+
* for imperative expansion. `url` wins when both are set.
|
|
5111
|
+
*/
|
|
5126
5112
|
expand?: {
|
|
5127
5113
|
label: string;
|
|
5128
|
-
|
|
5114
|
+
url?: string;
|
|
5115
|
+
onClick?: () => void;
|
|
5129
5116
|
};
|
|
5130
5117
|
navigation?: NavigationProps;
|
|
5131
5118
|
} | {
|
|
@@ -5313,7 +5300,7 @@ declare type DrawerSize = (typeof drawerSizes)[number];
|
|
|
5313
5300
|
|
|
5314
5301
|
declare const drawerSizes: readonly ["md"];
|
|
5315
5302
|
|
|
5316
|
-
declare type DropdownItem = DropdownItemObject | DropdownItemSeparator | DropdownItemLabel;
|
|
5303
|
+
export declare type DropdownItem = DropdownItemObject | DropdownItemSeparator | DropdownItemLabel;
|
|
5317
5304
|
|
|
5318
5305
|
declare type DropdownItemLabel = {
|
|
5319
5306
|
type: "label";
|
|
@@ -5583,17 +5570,25 @@ declare type EmployeeCreditsUsage = {
|
|
|
5583
5570
|
export declare type enhanceConfig = {
|
|
5584
5571
|
onEnhanceText: (params: enhanceTextParams) => Promise<enhancedTextResponse>;
|
|
5585
5572
|
enhancementOptions?: EnhancementOption[];
|
|
5573
|
+
/** Notified when the user accepts the enhanced result (analytics hook) */
|
|
5574
|
+
onAcceptChanges?: () => void;
|
|
5575
|
+
/** Notified when the user discards the enhanced result (analytics hook) */
|
|
5576
|
+
onRejectChanges?: () => void;
|
|
5577
|
+
/** Notified when the user retries the enhancement (analytics hook) */
|
|
5578
|
+
onRetryChanges?: () => void;
|
|
5586
5579
|
};
|
|
5587
5580
|
|
|
5588
5581
|
export declare type enhancedTextResponse = {
|
|
5589
5582
|
success: boolean;
|
|
5590
|
-
|
|
5583
|
+
/** Enhanced content: an HTML/plain string or a TipTap JSON document */
|
|
5584
|
+
text: string | JSONContent;
|
|
5591
5585
|
error?: string;
|
|
5592
5586
|
};
|
|
5593
5587
|
|
|
5594
5588
|
export declare type EnhancementOption = {
|
|
5595
5589
|
id: string;
|
|
5596
5590
|
label: string;
|
|
5591
|
+
icon?: IconType;
|
|
5597
5592
|
subOptions?: EnhancementOption[];
|
|
5598
5593
|
};
|
|
5599
5594
|
|
|
@@ -8245,6 +8240,13 @@ export declare type F0FieldConfig<T extends string | number = string | number, R
|
|
|
8245
8240
|
*/
|
|
8246
8241
|
export declare type F0FieldType = "text" | "number" | "percentage" | "money" | "duration" | "textarea" | "select" | "checkbox" | "switch" | "date" | "time" | "datetime" | "daterange" | "richtext" | "file" | "cardSelect" | "custom";
|
|
8247
8242
|
|
|
8243
|
+
export declare type F0FileAction = {
|
|
8244
|
+
icon?: IconType;
|
|
8245
|
+
label: string;
|
|
8246
|
+
onClick: () => void;
|
|
8247
|
+
critical?: boolean;
|
|
8248
|
+
};
|
|
8249
|
+
|
|
8248
8250
|
/**
|
|
8249
8251
|
* F0 config options specific to file fields
|
|
8250
8252
|
*/
|
|
@@ -8306,6 +8308,22 @@ export declare type F0FileField = F0BaseField & {
|
|
|
8306
8308
|
*/
|
|
8307
8309
|
export declare type F0FileFieldConfig = F0StringFileConfig | F0ArrayFileConfig;
|
|
8308
8310
|
|
|
8311
|
+
/**
|
|
8312
|
+
* @experimental This is an experimental component, use it at your own risk
|
|
8313
|
+
*/
|
|
8314
|
+
export declare const F0FileItem: WithDataTestIdReturnType_3<ForwardRefExoticComponent<F0FileItemProps & RefAttributes<HTMLDivElement>>>;
|
|
8315
|
+
|
|
8316
|
+
export declare interface F0FileItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
8317
|
+
file: File | FileDef;
|
|
8318
|
+
actions?: F0FileAction[];
|
|
8319
|
+
disabled?: boolean;
|
|
8320
|
+
size?: F0FileItemSize;
|
|
8321
|
+
}
|
|
8322
|
+
|
|
8323
|
+
export declare type F0FileItemSize = (typeof f0FileItemSizes)[number];
|
|
8324
|
+
|
|
8325
|
+
export declare const f0FileItemSizes: readonly ["md", "lg"];
|
|
8326
|
+
|
|
8309
8327
|
export declare const F0FilterPickerContent: <Filters extends FiltersDefinition>(props: F0FilterPickerContentProps<Filters> & {
|
|
8310
8328
|
dataTestId?: string;
|
|
8311
8329
|
}) => ReactElement | null;
|
|
@@ -9408,6 +9426,56 @@ export declare interface F0MoreInfoLink {
|
|
|
9408
9426
|
label?: string;
|
|
9409
9427
|
}
|
|
9410
9428
|
|
|
9429
|
+
/**
|
|
9430
|
+
* @experimental This is an experimental component, use it at your own risk
|
|
9431
|
+
*/
|
|
9432
|
+
export declare const F0NotesTextEditor: ForwardRefExoticComponent<F0NotesTextEditorProps & RefAttributes<F0NotesTextEditorHandle>> & {
|
|
9433
|
+
Skeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
|
|
9434
|
+
};
|
|
9435
|
+
|
|
9436
|
+
export declare type F0NotesTextEditorHandle = {
|
|
9437
|
+
clear: () => void;
|
|
9438
|
+
focus: () => void;
|
|
9439
|
+
setContent: (content: string) => void;
|
|
9440
|
+
applyPageDocumentPatch: (patch: NotesTextEditorPageDocumentPatch) => NotesTextEditorSnapshot;
|
|
9441
|
+
insertAIBlock: () => void;
|
|
9442
|
+
insertTranscript: (title: string, users: User[], messages: Message[]) => void;
|
|
9443
|
+
pushContent: (content: string) => void;
|
|
9444
|
+
insertImage: (file: File) => void;
|
|
9445
|
+
};
|
|
9446
|
+
|
|
9447
|
+
export declare interface F0NotesTextEditorProps {
|
|
9448
|
+
onChange: (value: {
|
|
9449
|
+
json: JSONContent | null;
|
|
9450
|
+
html: string | null;
|
|
9451
|
+
}) => void;
|
|
9452
|
+
placeholder: string;
|
|
9453
|
+
initialEditorState?: {
|
|
9454
|
+
content?: JSONContent | string;
|
|
9455
|
+
title?: string;
|
|
9456
|
+
};
|
|
9457
|
+
readonly?: boolean;
|
|
9458
|
+
aiBlockConfig?: AIBlockConfig;
|
|
9459
|
+
imageUploadConfig?: ImageUploadConfig;
|
|
9460
|
+
enhanceConfig?: enhanceConfig;
|
|
9461
|
+
onTitleChange?: (title: string) => void;
|
|
9462
|
+
titlePlaceholder?: string;
|
|
9463
|
+
primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
|
|
9464
|
+
secondaryActions?: HeaderSecondaryAction[];
|
|
9465
|
+
otherActions?: DropdownItem[];
|
|
9466
|
+
metadata?: MetadataItem[];
|
|
9467
|
+
status?: HeaderStatusProps;
|
|
9468
|
+
alert?: F0AlertProps;
|
|
9469
|
+
}
|
|
9470
|
+
|
|
9471
|
+
export declare const F0NotesTextEditorSkeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
|
|
9472
|
+
|
|
9473
|
+
export declare interface F0NotesTextEditorSkeletonProps {
|
|
9474
|
+
withHeader?: boolean;
|
|
9475
|
+
withTitle?: boolean;
|
|
9476
|
+
withToolbar?: boolean;
|
|
9477
|
+
}
|
|
9478
|
+
|
|
9411
9479
|
/**
|
|
9412
9480
|
* F0 config options specific to number fields
|
|
9413
9481
|
*
|
|
@@ -9716,6 +9784,70 @@ export declare interface F0RichTextConfig {
|
|
|
9716
9784
|
plainHtmlMode?: boolean;
|
|
9717
9785
|
}
|
|
9718
9786
|
|
|
9787
|
+
/**
|
|
9788
|
+
* @experimental This is an experimental component, use it at your own risk
|
|
9789
|
+
*/
|
|
9790
|
+
export declare const F0RichTextDisplay: ForwardRefExoticComponent<F0RichTextDisplayProps & RefAttributes<HTMLDivElement>>;
|
|
9791
|
+
|
|
9792
|
+
export declare type F0RichTextDisplayHandle = HTMLDivElement;
|
|
9793
|
+
|
|
9794
|
+
export declare interface F0RichTextDisplayProps extends HTMLAttributes<HTMLDivElement> {
|
|
9795
|
+
content: string;
|
|
9796
|
+
className?: string;
|
|
9797
|
+
format?: "html" | "markdown";
|
|
9798
|
+
}
|
|
9799
|
+
|
|
9800
|
+
/**
|
|
9801
|
+
* @experimental This is an experimental component, use it at your own risk
|
|
9802
|
+
*/
|
|
9803
|
+
export declare const F0RichTextEditor: ForwardRefExoticComponent<F0RichTextEditorProps & RefAttributes<F0RichTextEditorHandle>> & {
|
|
9804
|
+
Skeleton: ({ rows, }: F0RichTextEditorSkeletonProps) => JSX_2.Element;
|
|
9805
|
+
};
|
|
9806
|
+
|
|
9807
|
+
export declare type F0RichTextEditorHandle = {
|
|
9808
|
+
clear: () => void;
|
|
9809
|
+
clearFiles: () => void;
|
|
9810
|
+
focus: () => void;
|
|
9811
|
+
setError: (error: string | null) => void;
|
|
9812
|
+
setContent: (content: string) => void;
|
|
9813
|
+
};
|
|
9814
|
+
|
|
9815
|
+
export declare interface F0RichTextEditorProps {
|
|
9816
|
+
mentionsConfig?: MentionsConfig;
|
|
9817
|
+
enhanceConfig?: enhanceConfig;
|
|
9818
|
+
filesConfig?: filesConfig;
|
|
9819
|
+
secondaryAction?: secondaryActionsType;
|
|
9820
|
+
primaryAction?: primaryActionType;
|
|
9821
|
+
onChange: (result: resultType) => void;
|
|
9822
|
+
maxCharacters?: number;
|
|
9823
|
+
placeholder: string;
|
|
9824
|
+
initialEditorState?: {
|
|
9825
|
+
content?: string;
|
|
9826
|
+
files?: File[];
|
|
9827
|
+
};
|
|
9828
|
+
title: string;
|
|
9829
|
+
height?: heightType;
|
|
9830
|
+
plainHtmlMode?: boolean;
|
|
9831
|
+
fullScreenMode?: boolean;
|
|
9832
|
+
onFullscreenChange?: (fullscreen: boolean) => void;
|
|
9833
|
+
/** Whether the editor is disabled */
|
|
9834
|
+
disabled?: boolean;
|
|
9835
|
+
/** Whether the editor has an error state */
|
|
9836
|
+
error?: boolean;
|
|
9837
|
+
/** Whether the editor is in a loading state */
|
|
9838
|
+
loading?: boolean;
|
|
9839
|
+
/**
|
|
9840
|
+
* Voice dictation: transcribes a recorded audio blob into text inserted at
|
|
9841
|
+
* the cursor. Same contract as F0AiChatTextArea — when omitted, the
|
|
9842
|
+
* microphone button is not rendered.
|
|
9843
|
+
*/
|
|
9844
|
+
onTranscribe?: TranscribeFn;
|
|
9845
|
+
}
|
|
9846
|
+
|
|
9847
|
+
export declare interface F0RichTextEditorSkeletonProps {
|
|
9848
|
+
rows?: number;
|
|
9849
|
+
}
|
|
9850
|
+
|
|
9719
9851
|
/**
|
|
9720
9852
|
* Rich text field with all properties for rendering
|
|
9721
9853
|
*/
|
|
@@ -10622,12 +10754,8 @@ export declare const FILE_TYPES: {
|
|
|
10622
10754
|
readonly MARKDOWN: "markdown";
|
|
10623
10755
|
};
|
|
10624
10756
|
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
label: string;
|
|
10628
|
-
onClick: () => void;
|
|
10629
|
-
critical?: boolean;
|
|
10630
|
-
};
|
|
10757
|
+
/** @deprecated Use F0FileAction */
|
|
10758
|
+
export declare type FileAction = F0FileAction;
|
|
10631
10759
|
|
|
10632
10760
|
export declare type FileAvatarVariant = Extract<AvatarVariant, {
|
|
10633
10761
|
type: "file";
|
|
@@ -10643,26 +10771,14 @@ declare type FileDef = {
|
|
|
10643
10771
|
*/
|
|
10644
10772
|
declare type FileFieldRenderIf = CommonRenderIfCondition | F0BaseFieldRenderIfFunction;
|
|
10645
10773
|
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
declare interface FileItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10649
|
-
file: File | FileDef;
|
|
10650
|
-
actions?: FileAction[];
|
|
10651
|
-
disabled?: boolean;
|
|
10652
|
-
size?: FileItemSize;
|
|
10653
|
-
}
|
|
10774
|
+
/** @deprecated Use F0FileItem */
|
|
10775
|
+
export declare const FileItem: WithDataTestIdReturnType_3<ForwardRefExoticComponent<F0FileItemProps & RefAttributes<HTMLDivElement>>>;
|
|
10654
10776
|
|
|
10655
|
-
|
|
10777
|
+
/** @deprecated Use F0FileItemProps */
|
|
10778
|
+
export declare type FileItemProps = F0FileItemProps;
|
|
10656
10779
|
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
} & ({
|
|
10660
|
-
class?: ClassValue;
|
|
10661
|
-
className?: never;
|
|
10662
|
-
} | {
|
|
10663
|
-
class?: never;
|
|
10664
|
-
className?: ClassValue;
|
|
10665
|
-
})) | undefined) => string;
|
|
10780
|
+
/** @deprecated Use F0FileItemSize */
|
|
10781
|
+
export declare type FileItemSize = F0FileItemSize;
|
|
10666
10782
|
|
|
10667
10783
|
declare type FileQuestionProps = BaseQuestionPropsForOtherQuestionComponents & {
|
|
10668
10784
|
type: "file";
|
|
@@ -11304,7 +11420,15 @@ export declare type GroupRecord<RecordType> = {
|
|
|
11304
11420
|
*/
|
|
11305
11421
|
export declare function hasF0Config(schema: ZodTypeAny): boolean;
|
|
11306
11422
|
|
|
11307
|
-
declare
|
|
11423
|
+
export declare interface HeaderProps {
|
|
11424
|
+
primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
|
|
11425
|
+
secondaryActions?: HeaderSecondaryAction[];
|
|
11426
|
+
metadata?: MetadataItem[];
|
|
11427
|
+
otherActions?: DropdownItem[];
|
|
11428
|
+
status?: HeaderStatusProps;
|
|
11429
|
+
}
|
|
11430
|
+
|
|
11431
|
+
export declare type HeaderSecondaryAction = HeaderSecondaryButtonAction | HeaderSecondaryDropdownAction;
|
|
11308
11432
|
|
|
11309
11433
|
declare type HeaderSecondaryButtonAction = SecondaryAction & {
|
|
11310
11434
|
hideLabel?: boolean;
|
|
@@ -11314,6 +11438,13 @@ declare type HeaderSecondaryDropdownAction = PrimaryDropdownAction<string> & {
|
|
|
11314
11438
|
variant?: "outline";
|
|
11315
11439
|
};
|
|
11316
11440
|
|
|
11441
|
+
export declare interface HeaderStatusProps {
|
|
11442
|
+
label: string;
|
|
11443
|
+
text: string;
|
|
11444
|
+
variant: StatusVariant;
|
|
11445
|
+
actions?: MetadataAction[];
|
|
11446
|
+
}
|
|
11447
|
+
|
|
11317
11448
|
declare type HeadingTags = (typeof headingTags)[number];
|
|
11318
11449
|
|
|
11319
11450
|
declare const headingTags: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
@@ -11703,13 +11834,13 @@ declare type InputInternalProps = Pick<ComponentProps<typeof Input_2>, "ref" | "
|
|
|
11703
11834
|
*/
|
|
11704
11835
|
export declare type InputProps = F0TextInputProps;
|
|
11705
11836
|
|
|
11706
|
-
declare interface InsertAfterNotesTextEditorPageDocumentPatch {
|
|
11837
|
+
export declare interface InsertAfterNotesTextEditorPageDocumentPatch {
|
|
11707
11838
|
type: "insert_after";
|
|
11708
11839
|
targetId: string;
|
|
11709
11840
|
blocks: JSONContent[];
|
|
11710
11841
|
}
|
|
11711
11842
|
|
|
11712
|
-
declare interface InsertBeforeNotesTextEditorPageDocumentPatch {
|
|
11843
|
+
export declare interface InsertBeforeNotesTextEditorPageDocumentPatch {
|
|
11713
11844
|
type: "insert_before";
|
|
11714
11845
|
targetId: string;
|
|
11715
11846
|
blocks: JSONContent[];
|
|
@@ -12051,25 +12182,6 @@ export declare type MentionedUser = {
|
|
|
12051
12182
|
href?: string;
|
|
12052
12183
|
};
|
|
12053
12184
|
|
|
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
12185
|
export declare type MentionsConfig = {
|
|
12074
12186
|
onMentionQueryStringChanged?: (queryString: string) => Promise<MentionedUser[]> | undefined;
|
|
12075
12187
|
users: MentionedUser[];
|
|
@@ -12143,11 +12255,11 @@ declare type MetadataCopyAction = {
|
|
|
12143
12255
|
type: "copy";
|
|
12144
12256
|
};
|
|
12145
12257
|
|
|
12146
|
-
declare function MetadataItem({ item }: {
|
|
12258
|
+
export declare function MetadataItem({ item }: {
|
|
12147
12259
|
item: MetadataItem;
|
|
12148
12260
|
}): JSX_2.Element;
|
|
12149
12261
|
|
|
12150
|
-
declare interface MetadataItem {
|
|
12262
|
+
export declare interface MetadataItem {
|
|
12151
12263
|
label: string;
|
|
12152
12264
|
value: MetadataItemValue;
|
|
12153
12265
|
actions?: (MetadataAction | MetadataCopyAction)[];
|
|
@@ -12167,7 +12279,7 @@ declare interface MetadataItem {
|
|
|
12167
12279
|
};
|
|
12168
12280
|
}
|
|
12169
12281
|
|
|
12170
|
-
declare type MetadataItemValue = {
|
|
12282
|
+
export declare type MetadataItemValue = {
|
|
12171
12283
|
type: "text";
|
|
12172
12284
|
content: string;
|
|
12173
12285
|
} | {
|
|
@@ -12380,20 +12492,26 @@ declare type NavigationItem = Pick<LinkProps, "href" | "exactMatch" | "onClick">
|
|
|
12380
12492
|
} & DataAttributes_2;
|
|
12381
12493
|
|
|
12382
12494
|
declare type NavigationProps = {
|
|
12383
|
-
previous?:
|
|
12384
|
-
|
|
12385
|
-
title: string;
|
|
12386
|
-
};
|
|
12387
|
-
next?: {
|
|
12388
|
-
url: string;
|
|
12389
|
-
title: string;
|
|
12390
|
-
};
|
|
12495
|
+
previous?: NavigationTarget;
|
|
12496
|
+
next?: NavigationTarget;
|
|
12391
12497
|
counter?: {
|
|
12392
12498
|
current: number;
|
|
12393
12499
|
total: number;
|
|
12394
12500
|
};
|
|
12395
12501
|
};
|
|
12396
12502
|
|
|
12503
|
+
/**
|
|
12504
|
+
* One prev/next target. Carry a `url` for full-page detail navigation
|
|
12505
|
+
* (renders a link) OR an `onClick` for id-based navigation that swaps content
|
|
12506
|
+
* in place — a mounted sidepanel/dialog that never changes the URL (renders a
|
|
12507
|
+
* button). `onClick` wins when both are present.
|
|
12508
|
+
*/
|
|
12509
|
+
declare type NavigationTarget = {
|
|
12510
|
+
title: string;
|
|
12511
|
+
url?: string;
|
|
12512
|
+
onClick?: () => void;
|
|
12513
|
+
};
|
|
12514
|
+
|
|
12397
12515
|
declare type NavTarget = HTMLAttributeAnchorTarget;
|
|
12398
12516
|
|
|
12399
12517
|
export declare type NeighborResolution<R extends RecordType> = {
|
|
@@ -12438,69 +12556,30 @@ export declare interface NextStepsProps {
|
|
|
12438
12556
|
items: StepItemProps[];
|
|
12439
12557
|
}
|
|
12440
12558
|
|
|
12441
|
-
|
|
12559
|
+
/** @deprecated Use F0NotesTextEditor */
|
|
12560
|
+
export declare const NotesTextEditor: ForwardRefExoticComponent<F0NotesTextEditorProps & RefAttributes<F0NotesTextEditorHandle>> & {
|
|
12561
|
+
Skeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
|
|
12562
|
+
};
|
|
12442
12563
|
|
|
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
|
-
}
|
|
12564
|
+
/** @deprecated Use F0NotesTextEditorHandle */
|
|
12565
|
+
export declare type NotesTextEditorHandle = F0NotesTextEditorHandle;
|
|
12453
12566
|
|
|
12454
12567
|
export declare type NotesTextEditorPageDocumentPatch = TopLevelPrependNotesTextEditorPageDocumentPatch | TopLevelAppendNotesTextEditorPageDocumentPatch | InsertBeforeNotesTextEditorPageDocumentPatch | InsertAfterNotesTextEditorPageDocumentPatch | ReplaceBlockNotesTextEditorPageDocumentPatch | ReplaceContentNotesTextEditorPageDocumentPatch | DeleteBlockNotesTextEditorPageDocumentPatch;
|
|
12455
12568
|
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
readonly targetId: string;
|
|
12459
|
-
constructor(targetId: string);
|
|
12460
|
-
}
|
|
12569
|
+
/** @deprecated Use F0NotesTextEditorProps */
|
|
12570
|
+
export declare type NotesTextEditorProps = F0NotesTextEditorProps;
|
|
12461
12571
|
|
|
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
|
-
}
|
|
12572
|
+
/** @deprecated Use F0NotesTextEditorSkeleton */
|
|
12573
|
+
export declare const NotesTextEditorSkeleton: ({ withHeader, withTitle, withToolbar, }: F0NotesTextEditorSkeletonProps) => JSX_2.Element;
|
|
12484
12574
|
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
export declare interface NotesTextEditorSkeletonProps {
|
|
12488
|
-
withHeader?: boolean;
|
|
12489
|
-
withTitle?: boolean;
|
|
12490
|
-
withToolbar?: boolean;
|
|
12491
|
-
}
|
|
12575
|
+
/** @deprecated Use F0NotesTextEditorSkeletonProps */
|
|
12576
|
+
export declare type NotesTextEditorSkeletonProps = F0NotesTextEditorSkeletonProps;
|
|
12492
12577
|
|
|
12493
12578
|
export declare interface NotesTextEditorSnapshot {
|
|
12494
12579
|
json: JSONContent | null;
|
|
12495
12580
|
html: string | null;
|
|
12496
12581
|
}
|
|
12497
12582
|
|
|
12498
|
-
export declare class NotesTextEditorUnsupportedPatchTypeError extends Error {
|
|
12499
|
-
readonly code = "unsupported_patch_type";
|
|
12500
|
-
readonly patchType: unknown;
|
|
12501
|
-
constructor(patchType: unknown);
|
|
12502
|
-
}
|
|
12503
|
-
|
|
12504
12583
|
declare type NotificationDialogBaseOptions = Optional<Pick<DialogDefinition, "id" | "title">, "id"> & {
|
|
12505
12584
|
msg: string;
|
|
12506
12585
|
type?: DialogNotificationType;
|
|
@@ -13307,7 +13386,7 @@ declare interface PrimaryAction {
|
|
|
13307
13386
|
loading?: boolean;
|
|
13308
13387
|
}
|
|
13309
13388
|
|
|
13310
|
-
declare interface PrimaryActionButton extends PrimaryAction {
|
|
13389
|
+
export declare interface PrimaryActionButton extends PrimaryAction {
|
|
13311
13390
|
label: string;
|
|
13312
13391
|
icon?: IconType;
|
|
13313
13392
|
onClick: () => void;
|
|
@@ -13330,7 +13409,7 @@ export declare type primaryActionType = {
|
|
|
13330
13409
|
subActions?: subActionType[];
|
|
13331
13410
|
};
|
|
13332
13411
|
|
|
13333
|
-
declare interface PrimaryDropdownAction<T> extends PrimaryAction {
|
|
13412
|
+
export declare interface PrimaryDropdownAction<T> extends PrimaryAction {
|
|
13334
13413
|
items: ButtonDropdownItem<T>[];
|
|
13335
13414
|
value?: T;
|
|
13336
13415
|
onClick: (value: T, item: ButtonDropdownItem<T>) => void;
|
|
@@ -13807,13 +13886,13 @@ declare interface RenderIfBase {
|
|
|
13807
13886
|
*/
|
|
13808
13887
|
export declare type RenderIfCondition = CommonRenderIfCondition | TextRenderIfCondition | NumberRenderIfCondition | BooleanRenderIfCondition | SelectRenderIfCondition | DateRenderIfCondition | DateRangeRenderIfCondition;
|
|
13809
13888
|
|
|
13810
|
-
declare interface ReplaceBlockNotesTextEditorPageDocumentPatch {
|
|
13889
|
+
export declare interface ReplaceBlockNotesTextEditorPageDocumentPatch {
|
|
13811
13890
|
type: "replace_block";
|
|
13812
13891
|
targetId: string;
|
|
13813
13892
|
block: JSONContent;
|
|
13814
13893
|
}
|
|
13815
13894
|
|
|
13816
|
-
declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
|
|
13895
|
+
export declare interface ReplaceContentNotesTextEditorPageDocumentPatch {
|
|
13817
13896
|
type: "replace_content";
|
|
13818
13897
|
targetId: string;
|
|
13819
13898
|
content: JSONContent[];
|
|
@@ -13965,59 +14044,28 @@ export declare type resultType = {
|
|
|
13965
14044
|
mentionIds?: string[];
|
|
13966
14045
|
};
|
|
13967
14046
|
|
|
13968
|
-
|
|
14047
|
+
/** @deprecated Use F0RichTextDisplay */
|
|
14048
|
+
export declare const RichTextDisplay: ForwardRefExoticComponent<F0RichTextDisplayProps & RefAttributes<HTMLDivElement>>;
|
|
13969
14049
|
|
|
13970
|
-
|
|
14050
|
+
/** @deprecated Use F0RichTextDisplayHandle */
|
|
14051
|
+
export declare type RichTextDisplayHandle = F0RichTextDisplayHandle;
|
|
13971
14052
|
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
className?: string;
|
|
13975
|
-
format?: "html" | "markdown";
|
|
13976
|
-
}
|
|
14053
|
+
/** @deprecated Use F0RichTextDisplayProps */
|
|
14054
|
+
export declare type RichTextDisplayProps = F0RichTextDisplayProps;
|
|
13977
14055
|
|
|
13978
|
-
|
|
13979
|
-
|
|
14056
|
+
/** @deprecated Use F0RichTextEditor */
|
|
14057
|
+
export declare const RichTextEditor: ForwardRefExoticComponent<F0RichTextEditorProps & RefAttributes<F0RichTextEditorHandle>> & {
|
|
14058
|
+
Skeleton: ({ rows, }: F0RichTextEditorSkeletonProps) => JSX_2.Element;
|
|
13980
14059
|
};
|
|
13981
14060
|
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
clearFiles: () => void;
|
|
13985
|
-
focus: () => void;
|
|
13986
|
-
setError: (error: string | null) => void;
|
|
13987
|
-
setContent: (content: string) => void;
|
|
13988
|
-
};
|
|
14061
|
+
/** @deprecated Use F0RichTextEditorHandle */
|
|
14062
|
+
export declare type RichTextEditorHandle = F0RichTextEditorHandle;
|
|
13989
14063
|
|
|
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
|
-
}
|
|
14064
|
+
/** @deprecated Use F0RichTextEditorProps */
|
|
14065
|
+
export declare type RichTextEditorProps = F0RichTextEditorProps;
|
|
14017
14066
|
|
|
14018
|
-
|
|
14019
|
-
|
|
14020
|
-
}
|
|
14067
|
+
/** @deprecated Use F0RichTextEditorSkeletonProps */
|
|
14068
|
+
export declare type RichTextEditorSkeletonProps = F0RichTextEditorSkeletonProps;
|
|
14021
14069
|
|
|
14022
14070
|
/**
|
|
14023
14071
|
* All valid renderIf conditions for richtext fields
|
|
@@ -14263,27 +14311,6 @@ export declare const setDataCollectionUrlParams: <CurrentFiltersState extends Fi
|
|
|
14263
14311
|
|
|
14264
14312
|
declare type SetFormCardValueFormatter = <T = unknown>(entry: FormCardValueFormatterEntry<T>) => void;
|
|
14265
14313
|
|
|
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
14314
|
/**
|
|
14288
14315
|
* Response structure for non-paginated data
|
|
14289
14316
|
*/
|
|
@@ -15116,44 +15143,12 @@ declare type toggleActionType = {
|
|
|
15116
15143
|
hideLabel?: boolean;
|
|
15117
15144
|
};
|
|
15118
15145
|
|
|
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 {
|
|
15146
|
+
export declare interface TopLevelAppendNotesTextEditorPageDocumentPatch {
|
|
15152
15147
|
type: "top_level_append";
|
|
15153
15148
|
blocks: JSONContent[];
|
|
15154
15149
|
}
|
|
15155
15150
|
|
|
15156
|
-
declare interface TopLevelPrependNotesTextEditorPageDocumentPatch {
|
|
15151
|
+
export declare interface TopLevelPrependNotesTextEditorPageDocumentPatch {
|
|
15157
15152
|
type: "top_level_prepend";
|
|
15158
15153
|
blocks: JSONContent[];
|
|
15159
15154
|
}
|
|
@@ -15219,6 +15214,8 @@ declare namespace Types {
|
|
|
15219
15214
|
*/
|
|
15220
15215
|
export declare function unwrapZodSchema(schema: ZodTypeAny): ZodTypeAny;
|
|
15221
15216
|
|
|
15217
|
+
export declare const UPLOAD_INPUT_ID = "rich-text-editor-upload-button";
|
|
15218
|
+
|
|
15222
15219
|
/**
|
|
15223
15220
|
* Tracking options for the AI chat
|
|
15224
15221
|
*/
|
|
@@ -16394,9 +16391,9 @@ declare namespace Calendar {
|
|
|
16394
16391
|
|
|
16395
16392
|
declare module "@tiptap/core" {
|
|
16396
16393
|
interface Commands<ReturnType> {
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16394
|
+
aiBlock: {
|
|
16395
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
16396
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
16400
16397
|
};
|
|
16401
16398
|
}
|
|
16402
16399
|
}
|
|
@@ -16404,9 +16401,11 @@ declare module "@tiptap/core" {
|
|
|
16404
16401
|
|
|
16405
16402
|
declare module "@tiptap/core" {
|
|
16406
16403
|
interface Commands<ReturnType> {
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16404
|
+
enhanceHighlight: {
|
|
16405
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
16406
|
+
placeholder?: string;
|
|
16407
|
+
}) => ReturnType;
|
|
16408
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
16410
16409
|
};
|
|
16411
16410
|
}
|
|
16412
16411
|
}
|