@orioro/react-ui-core 0.0.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/README.md +1 -0
- package/dist/AppHeader/AppHeaderContext.d.ts +5 -0
- package/dist/AppHeader/Logo.d.ts +2 -0
- package/dist/AppHeader/Main.d.ts +2 -0
- package/dist/AppHeader/OverlayMenu.d.ts +13 -0
- package/dist/AppHeader/Root.d.ts +9 -0
- package/dist/AppHeader/index.d.ts +9 -0
- package/dist/AspectRatio/index.d.ts +10 -0
- package/dist/Box/Box.d.ts +27 -0
- package/dist/Box/index.d.ts +1 -0
- package/dist/Box/spacing.d.ts +23 -0
- package/dist/Button/Button.d.ts +302 -0
- package/dist/Button/ButtonList.d.ts +13 -0
- package/dist/Button/LinkButton.d.ts +309 -0
- package/dist/Button/index.d.ts +3 -0
- package/dist/CSSReset/index.d.ts +2 -0
- package/dist/ClickTarget/ClickTarget.d.ts +2 -0
- package/dist/ClickTarget/index.d.ts +2 -0
- package/dist/ClickTarget/makeClickTarget.d.ts +15 -0
- package/dist/Collapsible/index.d.ts +7 -0
- package/dist/Container/index.d.ts +12 -0
- package/dist/DataList/index.d.ts +12 -0
- package/dist/Debug/LabeledBox.d.ts +4 -0
- package/dist/Debug/RandomIcon.d.ts +2 -0
- package/dist/Debug/index.d.ts +9 -0
- package/dist/Debug/randomText.d.ts +1 -0
- package/dist/Debug/wait.d.ts +1 -0
- package/dist/Dialog/AuthDialog/AccountRecoveryForm.d.ts +9 -0
- package/dist/Dialog/AuthDialog/AuthDialog.d.ts +51 -0
- package/dist/Dialog/AuthDialog/LoginForm.d.ts +11 -0
- package/dist/Dialog/AuthDialog/SignUpForm.d.ts +14 -0
- package/dist/Dialog/AuthDialog/constants.d.ts +36 -0
- package/dist/Dialog/AuthDialog/index.d.ts +3 -0
- package/dist/Dialog/AuthDialog/useAuthDialog.d.ts +4 -0
- package/dist/Dialog/ConfirmDialog/ConfirmDialog.d.ts +10 -0
- package/dist/Dialog/ConfirmDialog/index.d.ts +2 -0
- package/dist/Dialog/ConfirmDialog/types.d.ts +14 -0
- package/dist/Dialog/ConfirmDialog/useConfirmDialog.d.ts +3 -0
- package/dist/Dialog/DialogSystem/DialogSystem.d.ts +11 -0
- package/dist/Dialog/DialogSystem/DialogSystemContext.d.ts +4 -0
- package/dist/Dialog/DialogSystem/_DialogSystemContext.d.ts +3 -0
- package/dist/Dialog/DialogSystem/index.d.ts +2 -0
- package/dist/Dialog/DialogSystem/tmpDialogSystem.d.ts +3 -0
- package/dist/Dialog/DialogSystem/types.d.ts +25 -0
- package/dist/Dialog/InfoDialog/InfoDialog.d.ts +9 -0
- package/dist/Dialog/InfoDialog/index.d.ts +3 -0
- package/dist/Dialog/InfoDialog/types.d.ts +18 -0
- package/dist/Dialog/InfoDialog/useInfoDialog.d.ts +4 -0
- package/dist/Dialog/LoadingDialog/LoadingDialog.d.ts +3 -0
- package/dist/Dialog/LoadingDialog/index.d.ts +3 -0
- package/dist/Dialog/LoadingDialog/types.d.ts +4 -0
- package/dist/Dialog/LoadingDialog/useLoadingDialog.d.ts +5 -0
- package/dist/Dialog/OptionsDialog/OptionsDialog.d.ts +3 -0
- package/dist/Dialog/OptionsDialog/index.d.ts +2 -0
- package/dist/Dialog/OptionsDialog/types.d.ts +24 -0
- package/dist/Dialog/OptionsDialog/useOptionsDialog.d.ts +3 -0
- package/dist/Dialog/PromptDialog/PromptDialog.d.ts +47 -0
- package/dist/Dialog/PromptDialog/index.d.ts +3 -0
- package/dist/Dialog/PromptDialog/isEqual.d.ts +1 -0
- package/dist/Dialog/PromptDialog/types.d.ts +22 -0
- package/dist/Dialog/PromptDialog/usePromptDialog.d.ts +4 -0
- package/dist/Dialog/constants.d.ts +1 -0
- package/dist/Dialog/createDialogSystem/createDialogSystem.d.ts +13 -0
- package/dist/Dialog/createDialogSystem/index.d.ts +2 -0
- package/dist/Dialog/createDialogSystem/proxyRef.d.ts +2 -0
- package/dist/Dialog/createDialogSystem/useDialog.d.ts +18 -0
- package/dist/Dialog/index.d.ts +8 -0
- package/dist/Dialog/useDialog/index.d.ts +6 -0
- package/dist/DotDotDot/index.d.ts +3 -0
- package/dist/Editable/EditableContext.d.ts +3 -0
- package/dist/Editable/EditableField.d.ts +3 -0
- package/dist/Editable/EditableRoot.d.ts +3 -0
- package/dist/Editable/index.d.ts +10 -0
- package/dist/Editable/types.d.ts +26 -0
- package/dist/ErrorDisplay/ErrorDisplay.d.ts +3 -0
- package/dist/ErrorDisplay/ErrorHandlingContext.d.ts +27 -0
- package/dist/ErrorDisplay/index.d.ts +3 -0
- package/dist/ErrorDisplay/types.d.ts +34 -0
- package/dist/EvenSpacedList/EvenSpacedList.d.ts +46 -0
- package/dist/EvenSpacedList/evenSpacedListStyles.d.ts +11 -0
- package/dist/EvenSpacedList/index.d.ts +1 -0
- package/dist/FileDropzone/index.d.ts +18 -0
- package/dist/FileIcon/index.d.ts +8 -0
- package/dist/FilePreview/FileThumb.d.ts +7 -0
- package/dist/FilePreview/index.d.ts +9 -0
- package/dist/Flex/Flex.d.ts +46 -0
- package/dist/Flex/flexBaseStyles.d.ts +13 -0
- package/dist/Flex/flexGapStyles.d.ts +11 -0
- package/dist/Flex/index.d.ts +4 -0
- package/dist/Flex/types.d.ts +8 -0
- package/dist/FlexGrid/FlexGrid.d.ts +21 -0
- package/dist/FlexGrid/index.d.ts +1 -0
- package/dist/HoverElement/Container.d.ts +7 -0
- package/dist/HoverElement/Element.d.ts +3 -0
- package/dist/HoverElement/index.d.ts +10 -0
- package/dist/HoverElement/types.d.ts +7 -0
- package/dist/Image/Image.d.ts +12 -0
- package/dist/Image/ImageWithFallback.d.ts +8 -0
- package/dist/Image/index.d.ts +2 -0
- package/dist/Input/ArrayInput/ArrayInputContext.d.ts +19 -0
- package/dist/Input/ArrayInput/DefaultItemComponent.d.ts +3 -0
- package/dist/Input/ArrayInput/FloatingControls.d.ts +6 -0
- package/dist/Input/ArrayInput/ValueList.d.ts +5 -0
- package/dist/Input/ArrayInput/ValueList_Virtualized_POC.d.ts +5 -0
- package/dist/Input/ArrayInput/index.d.ts +3 -0
- package/dist/Input/ArrayInput/types.d.ts +41 -0
- package/dist/Input/BooleanCheckboxInput/index.d.ts +8 -0
- package/dist/Input/CheckboxSelectInput/index.d.ts +12 -0
- package/dist/Input/DateTimeInput/index.d.ts +12 -0
- package/dist/Input/ErrorDisplay/index.d.ts +2 -0
- package/dist/Input/INPUTS.d.ts +1 -0
- package/dist/Input/Input/Input.d.ts +4 -0
- package/dist/Input/Input/index.d.ts +2 -0
- package/dist/Input/Input/types.d.ts +2 -0
- package/dist/Input/InputGrid/index.d.ts +19 -0
- package/dist/Input/InputLayout/index.d.ts +11 -0
- package/dist/Input/MarkdownInput/index.d.ts +2 -0
- package/dist/Input/MultiFileInput/index.d.ts +16 -0
- package/dist/Input/ObjectInput/index.d.ts +21 -0
- package/dist/Input/RadioSelectInput/index.d.ts +13 -0
- package/dist/Input/RichTextInput/RichTextInput.d.ts +543 -0
- package/dist/Input/RichTextInput/RichTextInput_20240730_backup_NO_MARKDOWN.d.ts +543 -0
- package/dist/Input/RichTextInput/index.d.ts +2 -0
- package/dist/Input/RichTextInput/types.d.ts +13 -0
- package/dist/Input/SingleFileInput/index.d.ts +7 -0
- package/dist/Input/TextInput/index.d.ts +39 -0
- package/dist/Input/TextInput/parseValidator.d.ts +3 -0
- package/dist/Input/TextInput/types.d.ts +16 -0
- package/dist/Input/TextInput/useTextInput.d.ts +32 -0
- package/dist/Input/TextareaInput/index.d.ts +36 -0
- package/dist/Input/index.d.ts +16 -0
- package/dist/Input/types.d.ts +28 -0
- package/dist/Input/useValidation/index.d.ts +1 -0
- package/dist/Input/useValidation/useValidation.d.ts +13 -0
- package/dist/Input/util/index.d.ts +12 -0
- package/dist/Input/util/omitInputProps.d.ts +8 -0
- package/dist/Input/valueUtil/diff.d.ts +9 -0
- package/dist/Input/valueUtil/index.d.ts +2 -0
- package/dist/Input/valueUtil/strValue.d.ts +1 -0
- package/dist/LanguageSelector/index.d.ts +11 -0
- package/dist/LoadingIndicator/LoadingIndicator.d.ts +7 -0
- package/dist/LoadingIndicator/LoadingOverlay.d.ts +6 -0
- package/dist/LoadingIndicator/index.d.ts +2 -0
- package/dist/LocalImagePreview/index.d.ts +6 -0
- package/dist/Markdown/index.d.ts +4 -0
- package/dist/Menu/ButtonBarMenu/MenuItem.d.ts +9 -0
- package/dist/Menu/ButtonBarMenu/index.d.ts +13 -0
- package/dist/Menu/ButtonBarMenu/types.d.ts +8 -0
- package/dist/Menu/DropdownMenu/MenuItem.d.ts +9 -0
- package/dist/Menu/DropdownMenu/index.d.ts +16 -0
- package/dist/Menu/DropdownMenu/types.d.ts +6 -0
- package/dist/Menu/constants.d.ts +1 -0
- package/dist/Menu/index.d.ts +4 -0
- package/dist/Menu/parseMenuItems.d.ts +2 -0
- package/dist/Menu/resolveOptions.d.ts +8 -0
- package/dist/Menu/types.d.ts +31 -0
- package/dist/Output/ArrayOutput/index.d.ts +5 -0
- package/dist/Output/BooleanCheckboxOutput/index.d.ts +4 -0
- package/dist/Output/CheckboxSelectOutput/index.d.ts +2 -0
- package/dist/Output/DateTimeOutput/index.d.ts +7 -0
- package/dist/Output/EmailOutput/index.d.ts +4 -0
- package/dist/Output/FileOutput/index.d.ts +2 -0
- package/dist/Output/LabeledLayout/index.d.ts +10 -0
- package/dist/Output/MarkdownOutput/index.d.ts +4 -0
- package/dist/Output/MultiFileOutput/index.d.ts +2 -0
- package/dist/Output/OUTPUTS.d.ts +1 -0
- package/dist/Output/ObjectOutput/index.d.ts +12 -0
- package/dist/Output/Output/Output.d.ts +3 -0
- package/dist/Output/Output/index.d.ts +1 -0
- package/dist/Output/RichTextOutput/index.d.ts +2 -0
- package/dist/Output/SelectOutput/index.d.ts +2 -0
- package/dist/Output/TextOutput/index.d.ts +4 -0
- package/dist/Output/TextareaOutput/index.d.ts +4 -0
- package/dist/Output/UrlOutput/index.d.ts +4 -0
- package/dist/Output/index.d.ts +14 -0
- package/dist/Output/types.d.ts +6 -0
- package/dist/Output/withPlaceholder/index.d.ts +8 -0
- package/dist/PromptPopover/PromptPopover.d.ts +11 -0
- package/dist/PromptPopover/index.d.ts +1 -0
- package/dist/PromptPopover/types.d.ts +9 -0
- package/dist/Responsive/Responsive.d.ts +5 -0
- package/dist/Responsive/index.d.ts +4 -0
- package/dist/Responsive/responsiveStyles.d.ts +2 -0
- package/dist/Responsive/transformResponsiveValue.d.ts +2 -0
- package/dist/Responsive/types.d.ts +12 -0
- package/dist/RichText/index.d.ts +2 -0
- package/dist/RichTextRenderer/BlockRenderer.d.ts +10 -0
- package/dist/RichTextRenderer/InlineContentRenderer.d.ts +8 -0
- package/dist/RichTextRenderer/RendererContext.d.ts +3 -0
- package/dist/RichTextRenderer/RichTextRenderer.d.ts +3 -0
- package/dist/RichTextRenderer/Unsupported.d.ts +2 -0
- package/dist/RichTextRenderer/groupListItems.d.ts +10 -0
- package/dist/RichTextRenderer/index.d.ts +4 -0
- package/dist/RichTextRenderer/renderers/Block/Heading.d.ts +3 -0
- package/dist/RichTextRenderer/renderers/Block/Image.d.ts +3 -0
- package/dist/RichTextRenderer/renderers/Block/Table.d.ts +3 -0
- package/dist/RichTextRenderer/renderers/InlineContent/Link.d.ts +3 -0
- package/dist/RichTextRenderer/renderers/InlineContent/StyledText.d.ts +3 -0
- package/dist/RichTextRenderer/renderers/index.d.ts +2 -0
- package/dist/RichTextRenderer/types/blocknote.d.ts +74 -0
- package/dist/RichTextRenderer/types/index.d.ts +18 -0
- package/dist/RichTextRenderer/types/lists.d.ts +13 -0
- package/dist/RichTextRenderer/util/index.d.ts +5 -0
- package/dist/RichTextRenderer/util/richTextIsEmpty.d.ts +2 -0
- package/dist/RichTextRenderer/util/richTextToPlainText.d.ts +2 -0
- package/dist/RichTextRenderer/util/richTextTrimEmptyBlocks.d.ts +2 -0
- package/dist/RichTextRenderer/util/simpleBlockRenderer.d.ts +10 -0
- package/dist/RichTextRenderer/util/toDataProps.d.ts +3 -0
- package/dist/SearchForm/index.d.ts +5 -0
- package/dist/ShadowExpandable/index.d.ts +19 -0
- package/dist/ShadowExpandable/util.d.ts +1 -0
- package/dist/Spinner/index.d.ts +9 -0
- package/dist/StylableFileInput/index.d.ts +4 -0
- package/dist/TextEllipsis/index.d.ts +7 -0
- package/dist/Theme/index.d.ts +2 -0
- package/dist/Theme/theme.d.ts +29 -0
- package/dist/Theme/valueResolver.d.ts +13 -0
- package/dist/_switchValue/index.d.ts +1 -0
- package/dist/_switchValue/tmpindex.d.ts +9 -0
- package/dist/_typeOf/index.d.ts +1 -0
- package/dist/_typeOf/tmptypeOf.d.ts +6 -0
- package/dist/assets/index-BG8CATwr.css +94 -0
- package/dist/createDataContext/index.d.ts +36 -0
- package/dist/index.d.ts +59 -0
- package/dist/index.mjs +7951 -0
- package/dist/makeLink/index.d.ts +1 -0
- package/dist/makeLink/locationAwareLink.d.ts +290 -0
- package/dist/makeListOf/index.d.ts +13 -0
- package/dist/makeListOf/types.d.ts +12 -0
- package/dist/mergeable/index.d.ts +9 -0
- package/dist/mergeable/types.d.ts +4 -0
- package/dist/recursiveRendererSystem/arrayRenderer.d.ts +20 -0
- package/dist/recursiveRendererSystem/index.d.ts +5 -0
- package/dist/recursiveRendererSystem/objectRenderer.d.ts +31 -0
- package/dist/recursiveRendererSystem/recursiveRendererSystem.d.ts +7 -0
- package/dist/recursiveRendererSystem/rendererSpecList.d.ts +2 -0
- package/dist/recursiveRendererSystem/stories/Output.d.ts +46 -0
- package/dist/recursiveRendererSystem/types.d.ts +43 -0
- package/dist/replaceable/index.d.ts +13 -0
- package/dist/responsiveCss/index.d.ts +15 -0
- package/dist/responsiveCss/queryDeclarations.d.ts +8 -0
- package/dist/responsiveCss/types.d.ts +4 -0
- package/dist/s3Upload/index.d.ts +3 -0
- package/dist/styleResolver/index.d.ts +16 -0
- package/dist/styles.css +2 -0
- package/dist/switchValue/index.d.ts +9 -0
- package/dist/typeOf/index.d.ts +1 -0
- package/dist/typeOf/typeOf.d.ts +6 -0
- package/dist/useClosestBackgroundColor/getClosestBackgroundColor.d.ts +1 -0
- package/dist/useClosestBackgroundColor/index.d.ts +3 -0
- package/dist/useDefer/index.d.ts +15 -0
- package/dist/useFetch/index.d.ts +10 -0
- package/dist/useFileReadAs/fileReadAs.d.ts +3 -0
- package/dist/useFileReadAs/index.d.ts +3 -0
- package/dist/useListMeasures/index.d.ts +2 -0
- package/dist/useListMeasures/measureList.d.ts +13 -0
- package/dist/useListMeasures/useListMeasures.d.ts +7 -0
- package/dist/useListOverflow/computeListOverflow.d.ts +12 -0
- package/dist/useListOverflow/index.d.ts +1 -0
- package/dist/useListOverflow/useListOverflow.d.ts +9 -0
- package/dist/useLocalState/index.d.ts +1 -0
- package/dist/useMeasureLayer/index.d.ts +7 -0
- package/dist/useMergedContext/index.d.ts +6 -0
- package/dist/useObjectURL/index.d.ts +8 -0
- package/dist/usePromiseCreator/index.d.ts +1 -0
- package/dist/usePromiseCreator/usePromiseCreator.d.ts +4 -0
- package/dist/usePromiseState/index.d.ts +1 -0
- package/dist/usePromiseState/usePromiseState.d.ts +11 -0
- package/dist/usePromptUI/index.d.ts +4 -0
- package/dist/usePromptUI/pickPromptUIProps.d.ts +9 -0
- package/dist/usePromptUI/renderPromptInput.d.ts +3 -0
- package/dist/usePromptUI/types.d.ts +18 -0
- package/dist/usePromptUI/usePromptUI.d.ts +34 -0
- package/dist/useResolvable/index.d.ts +1 -0
- package/dist/useResolvable/useResolvable.d.ts +23 -0
- package/dist/util/array.d.ts +5 -0
- package/dist/util/cssTypes.d.ts +3 -0
- package/dist/util/domProps.d.ts +1 -0
- package/dist/util/getClosestBackgroundColor.d.ts +1 -0
- package/dist/util/index.d.ts +7 -0
- package/dist/util/isInputEqual.d.ts +1 -0
- package/dist/util/maybeValue.d.ts +5 -0
- package/dist/util/parse.d.ts +2 -0
- package/dist/util/propPicker.d.ts +6 -0
- package/dist/util/toCss.d.ts +6 -0
- package/dist/withDefaults/index.d.ts +3 -0
- package/package.json +84 -0
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RichTextInputValue } from './types';
|
|
3
|
+
import '@blocknote/react/style.css';
|
|
4
|
+
import '@blocknote/core/fonts/inter.css';
|
|
5
|
+
import type { BlockNoteEditor } from '@blocknote/core';
|
|
6
|
+
export declare const RICH_TEXT_INPUT_DEFAULT_VALUE: RichTextInputValue;
|
|
7
|
+
export declare const RichTextInput: React.ForwardRefExoticComponent<{
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
label?: string | undefined;
|
|
10
|
+
value?: RichTextInputValue;
|
|
11
|
+
onSetValue: (value: RichTextInputValue) => void;
|
|
12
|
+
onBlur?: (() => void) | undefined;
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
required?: string | boolean | undefined;
|
|
15
|
+
error?: Error | import("..").ErrorLike | undefined;
|
|
16
|
+
errorStyle?: React.CSSProperties | undefined;
|
|
17
|
+
validate?: boolean | (string | ((input: any, context: {
|
|
18
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
19
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | {
|
|
20
|
+
[key: string]: (string | ((input: any, context: {
|
|
21
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
22
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any) | [string | ((input: any, context: {
|
|
23
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
24
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any, import("@orioro/util/dist/validate/types").ValidatorErrorMessageInput];
|
|
25
|
+
}) | [string | ((input: any, context: {
|
|
26
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
27
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | {
|
|
28
|
+
[key: string]: (string | ((input: any, context: {
|
|
29
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
30
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any) | [string | ((input: any, context: {
|
|
31
|
+
validateAsync: import("@orioro/util/dist/validate/types").AsyncValidateFn;
|
|
32
|
+
}) => import("@orioro/util/dist/validate/types").ValidatorResult | Promise<import("@orioro/util/dist/validate/types").ValidatorResult>) | any, import("@orioro/util/dist/validate/types").ValidatorErrorMessageInput];
|
|
33
|
+
}, import("@orioro/util/dist/validate/types").ValidatorErrorMessageInput] | undefined;
|
|
34
|
+
valueFormat?: "blocks" | "markdown" | undefined;
|
|
35
|
+
editor?: Partial<Omit<Partial<import("@blocknote/core").BlockNoteEditorOptions<Record<string, import("@blocknote/core").BlockConfig>, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>> | undefined, "initialContent">> | undefined;
|
|
36
|
+
view?: Omit<{
|
|
37
|
+
editor: BlockNoteEditor<Record<string, import("@blocknote/core").BlockConfig>, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
|
|
38
|
+
theme?: "dark" | "light" | {
|
|
39
|
+
light: Partial<{
|
|
40
|
+
colors: Partial<{
|
|
41
|
+
editor: Partial<{
|
|
42
|
+
text: string;
|
|
43
|
+
background: string;
|
|
44
|
+
}>;
|
|
45
|
+
menu: Partial<{
|
|
46
|
+
text: string;
|
|
47
|
+
background: string;
|
|
48
|
+
}>;
|
|
49
|
+
tooltip: Partial<{
|
|
50
|
+
text: string;
|
|
51
|
+
background: string;
|
|
52
|
+
}>;
|
|
53
|
+
hovered: Partial<{
|
|
54
|
+
text: string;
|
|
55
|
+
background: string;
|
|
56
|
+
}>;
|
|
57
|
+
selected: Partial<{
|
|
58
|
+
text: string;
|
|
59
|
+
background: string;
|
|
60
|
+
}>;
|
|
61
|
+
disabled: Partial<{
|
|
62
|
+
text: string;
|
|
63
|
+
background: string;
|
|
64
|
+
}>;
|
|
65
|
+
shadow: string;
|
|
66
|
+
border: string;
|
|
67
|
+
sideMenu: string;
|
|
68
|
+
highlights: Partial<{
|
|
69
|
+
gray: Partial<{
|
|
70
|
+
text: string;
|
|
71
|
+
background: string;
|
|
72
|
+
}>;
|
|
73
|
+
brown: Partial<{
|
|
74
|
+
text: string;
|
|
75
|
+
background: string;
|
|
76
|
+
}>;
|
|
77
|
+
red: Partial<{
|
|
78
|
+
text: string;
|
|
79
|
+
background: string;
|
|
80
|
+
}>;
|
|
81
|
+
orange: Partial<{
|
|
82
|
+
text: string;
|
|
83
|
+
background: string;
|
|
84
|
+
}>;
|
|
85
|
+
yellow: Partial<{
|
|
86
|
+
text: string;
|
|
87
|
+
background: string;
|
|
88
|
+
}>;
|
|
89
|
+
green: Partial<{
|
|
90
|
+
text: string;
|
|
91
|
+
background: string;
|
|
92
|
+
}>;
|
|
93
|
+
blue: Partial<{
|
|
94
|
+
text: string;
|
|
95
|
+
background: string;
|
|
96
|
+
}>;
|
|
97
|
+
purple: Partial<{
|
|
98
|
+
text: string;
|
|
99
|
+
background: string;
|
|
100
|
+
}>;
|
|
101
|
+
pink: Partial<{
|
|
102
|
+
text: string;
|
|
103
|
+
background: string;
|
|
104
|
+
}>;
|
|
105
|
+
}>;
|
|
106
|
+
}>;
|
|
107
|
+
borderRadius: number;
|
|
108
|
+
fontFamily: string;
|
|
109
|
+
}>;
|
|
110
|
+
dark: Partial<{
|
|
111
|
+
colors: Partial<{
|
|
112
|
+
editor: Partial<{
|
|
113
|
+
text: string;
|
|
114
|
+
background: string;
|
|
115
|
+
}>;
|
|
116
|
+
menu: Partial<{
|
|
117
|
+
text: string;
|
|
118
|
+
background: string;
|
|
119
|
+
}>;
|
|
120
|
+
tooltip: Partial<{
|
|
121
|
+
text: string;
|
|
122
|
+
background: string;
|
|
123
|
+
}>;
|
|
124
|
+
hovered: Partial<{
|
|
125
|
+
text: string;
|
|
126
|
+
background: string;
|
|
127
|
+
}>;
|
|
128
|
+
selected: Partial<{
|
|
129
|
+
text: string;
|
|
130
|
+
background: string;
|
|
131
|
+
}>;
|
|
132
|
+
disabled: Partial<{
|
|
133
|
+
text: string;
|
|
134
|
+
background: string;
|
|
135
|
+
}>;
|
|
136
|
+
shadow: string;
|
|
137
|
+
border: string;
|
|
138
|
+
sideMenu: string;
|
|
139
|
+
highlights: Partial<{
|
|
140
|
+
gray: Partial<{
|
|
141
|
+
text: string;
|
|
142
|
+
background: string;
|
|
143
|
+
}>;
|
|
144
|
+
brown: Partial<{
|
|
145
|
+
text: string;
|
|
146
|
+
background: string;
|
|
147
|
+
}>;
|
|
148
|
+
red: Partial<{
|
|
149
|
+
text: string;
|
|
150
|
+
background: string;
|
|
151
|
+
}>;
|
|
152
|
+
orange: Partial<{
|
|
153
|
+
text: string;
|
|
154
|
+
background: string;
|
|
155
|
+
}>;
|
|
156
|
+
yellow: Partial<{
|
|
157
|
+
text: string;
|
|
158
|
+
background: string;
|
|
159
|
+
}>;
|
|
160
|
+
green: Partial<{
|
|
161
|
+
text: string;
|
|
162
|
+
background: string;
|
|
163
|
+
}>;
|
|
164
|
+
blue: Partial<{
|
|
165
|
+
text: string;
|
|
166
|
+
background: string;
|
|
167
|
+
}>;
|
|
168
|
+
purple: Partial<{
|
|
169
|
+
text: string;
|
|
170
|
+
background: string;
|
|
171
|
+
}>;
|
|
172
|
+
pink: Partial<{
|
|
173
|
+
text: string;
|
|
174
|
+
background: string;
|
|
175
|
+
}>;
|
|
176
|
+
}>;
|
|
177
|
+
}>;
|
|
178
|
+
borderRadius: number;
|
|
179
|
+
fontFamily: string;
|
|
180
|
+
}>;
|
|
181
|
+
} | Partial<{
|
|
182
|
+
colors: Partial<{
|
|
183
|
+
editor: Partial<{
|
|
184
|
+
text: string;
|
|
185
|
+
background: string;
|
|
186
|
+
}>;
|
|
187
|
+
menu: Partial<{
|
|
188
|
+
text: string;
|
|
189
|
+
background: string;
|
|
190
|
+
}>;
|
|
191
|
+
tooltip: Partial<{
|
|
192
|
+
text: string;
|
|
193
|
+
background: string;
|
|
194
|
+
}>;
|
|
195
|
+
hovered: Partial<{
|
|
196
|
+
text: string;
|
|
197
|
+
background: string;
|
|
198
|
+
}>;
|
|
199
|
+
selected: Partial<{
|
|
200
|
+
text: string;
|
|
201
|
+
background: string;
|
|
202
|
+
}>;
|
|
203
|
+
disabled: Partial<{
|
|
204
|
+
text: string;
|
|
205
|
+
background: string;
|
|
206
|
+
}>;
|
|
207
|
+
shadow: string;
|
|
208
|
+
border: string;
|
|
209
|
+
sideMenu: string;
|
|
210
|
+
highlights: Partial<{
|
|
211
|
+
gray: Partial<{
|
|
212
|
+
text: string;
|
|
213
|
+
background: string;
|
|
214
|
+
}>;
|
|
215
|
+
brown: Partial<{
|
|
216
|
+
text: string;
|
|
217
|
+
background: string;
|
|
218
|
+
}>;
|
|
219
|
+
red: Partial<{
|
|
220
|
+
text: string;
|
|
221
|
+
background: string;
|
|
222
|
+
}>;
|
|
223
|
+
orange: Partial<{
|
|
224
|
+
text: string;
|
|
225
|
+
background: string;
|
|
226
|
+
}>;
|
|
227
|
+
yellow: Partial<{
|
|
228
|
+
text: string;
|
|
229
|
+
background: string;
|
|
230
|
+
}>;
|
|
231
|
+
green: Partial<{
|
|
232
|
+
text: string;
|
|
233
|
+
background: string;
|
|
234
|
+
}>;
|
|
235
|
+
blue: Partial<{
|
|
236
|
+
text: string;
|
|
237
|
+
background: string;
|
|
238
|
+
}>;
|
|
239
|
+
purple: Partial<{
|
|
240
|
+
text: string;
|
|
241
|
+
background: string;
|
|
242
|
+
}>;
|
|
243
|
+
pink: Partial<{
|
|
244
|
+
text: string;
|
|
245
|
+
background: string;
|
|
246
|
+
}>;
|
|
247
|
+
}>;
|
|
248
|
+
}>;
|
|
249
|
+
borderRadius: number;
|
|
250
|
+
fontFamily: string;
|
|
251
|
+
}> | undefined;
|
|
252
|
+
editable?: boolean | undefined;
|
|
253
|
+
onSelectionChange?: (() => void) | undefined;
|
|
254
|
+
onChange?: (() => void) | undefined;
|
|
255
|
+
children?: React.ReactNode;
|
|
256
|
+
ref?: React.Ref<HTMLDivElement> | undefined;
|
|
257
|
+
} & Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onChange" | "onSelectionChange"> & import("@blocknote/react").BlockNoteDefaultUIProps, "editor"> | undefined;
|
|
258
|
+
valueDebounceMs?: number | undefined;
|
|
259
|
+
} & React.RefAttributes<BlockNoteEditor<import("@blocknote/core").BlockSchemaFromSpecs<{
|
|
260
|
+
paragraph: {
|
|
261
|
+
config: {
|
|
262
|
+
type: "paragraph";
|
|
263
|
+
content: "inline";
|
|
264
|
+
propSchema: {
|
|
265
|
+
backgroundColor: {
|
|
266
|
+
default: "default";
|
|
267
|
+
};
|
|
268
|
+
textColor: {
|
|
269
|
+
default: "default";
|
|
270
|
+
};
|
|
271
|
+
textAlignment: {
|
|
272
|
+
default: "left";
|
|
273
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
implementation: import("@blocknote/core").TiptapBlockImplementation<{
|
|
278
|
+
type: "paragraph";
|
|
279
|
+
content: "inline";
|
|
280
|
+
propSchema: {
|
|
281
|
+
backgroundColor: {
|
|
282
|
+
default: "default";
|
|
283
|
+
};
|
|
284
|
+
textColor: {
|
|
285
|
+
default: "default";
|
|
286
|
+
};
|
|
287
|
+
textAlignment: {
|
|
288
|
+
default: "left";
|
|
289
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
}, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
|
|
293
|
+
};
|
|
294
|
+
heading: {
|
|
295
|
+
config: {
|
|
296
|
+
type: "heading";
|
|
297
|
+
content: "inline";
|
|
298
|
+
propSchema: {
|
|
299
|
+
level: {
|
|
300
|
+
default: number;
|
|
301
|
+
values: readonly [1, 2, 3];
|
|
302
|
+
};
|
|
303
|
+
backgroundColor: {
|
|
304
|
+
default: "default";
|
|
305
|
+
};
|
|
306
|
+
textColor: {
|
|
307
|
+
default: "default";
|
|
308
|
+
};
|
|
309
|
+
textAlignment: {
|
|
310
|
+
default: "left";
|
|
311
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
implementation: import("@blocknote/core").TiptapBlockImplementation<{
|
|
316
|
+
type: "heading";
|
|
317
|
+
content: "inline";
|
|
318
|
+
propSchema: {
|
|
319
|
+
level: {
|
|
320
|
+
default: number;
|
|
321
|
+
values: readonly [1, 2, 3];
|
|
322
|
+
};
|
|
323
|
+
backgroundColor: {
|
|
324
|
+
default: "default";
|
|
325
|
+
};
|
|
326
|
+
textColor: {
|
|
327
|
+
default: "default";
|
|
328
|
+
};
|
|
329
|
+
textAlignment: {
|
|
330
|
+
default: "left";
|
|
331
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
}, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
|
|
335
|
+
};
|
|
336
|
+
bulletListItem: {
|
|
337
|
+
config: {
|
|
338
|
+
type: "bulletListItem";
|
|
339
|
+
content: "inline";
|
|
340
|
+
propSchema: {
|
|
341
|
+
backgroundColor: {
|
|
342
|
+
default: "default";
|
|
343
|
+
};
|
|
344
|
+
textColor: {
|
|
345
|
+
default: "default";
|
|
346
|
+
};
|
|
347
|
+
textAlignment: {
|
|
348
|
+
default: "left";
|
|
349
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
implementation: import("@blocknote/core").TiptapBlockImplementation<{
|
|
354
|
+
type: "bulletListItem";
|
|
355
|
+
content: "inline";
|
|
356
|
+
propSchema: {
|
|
357
|
+
backgroundColor: {
|
|
358
|
+
default: "default";
|
|
359
|
+
};
|
|
360
|
+
textColor: {
|
|
361
|
+
default: "default";
|
|
362
|
+
};
|
|
363
|
+
textAlignment: {
|
|
364
|
+
default: "left";
|
|
365
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
}, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
|
|
369
|
+
};
|
|
370
|
+
numberedListItem: {
|
|
371
|
+
config: {
|
|
372
|
+
type: "numberedListItem";
|
|
373
|
+
content: "inline";
|
|
374
|
+
propSchema: {
|
|
375
|
+
backgroundColor: {
|
|
376
|
+
default: "default";
|
|
377
|
+
};
|
|
378
|
+
textColor: {
|
|
379
|
+
default: "default";
|
|
380
|
+
};
|
|
381
|
+
textAlignment: {
|
|
382
|
+
default: "left";
|
|
383
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
implementation: import("@blocknote/core").TiptapBlockImplementation<{
|
|
388
|
+
type: "numberedListItem";
|
|
389
|
+
content: "inline";
|
|
390
|
+
propSchema: {
|
|
391
|
+
backgroundColor: {
|
|
392
|
+
default: "default";
|
|
393
|
+
};
|
|
394
|
+
textColor: {
|
|
395
|
+
default: "default";
|
|
396
|
+
};
|
|
397
|
+
textAlignment: {
|
|
398
|
+
default: "left";
|
|
399
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
}, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
|
|
403
|
+
};
|
|
404
|
+
image: {
|
|
405
|
+
config: {
|
|
406
|
+
type: "image";
|
|
407
|
+
propSchema: {
|
|
408
|
+
textAlignment: {
|
|
409
|
+
default: "left";
|
|
410
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
411
|
+
};
|
|
412
|
+
backgroundColor: {
|
|
413
|
+
default: "default";
|
|
414
|
+
};
|
|
415
|
+
url: {
|
|
416
|
+
default: "";
|
|
417
|
+
};
|
|
418
|
+
caption: {
|
|
419
|
+
default: "";
|
|
420
|
+
};
|
|
421
|
+
width: {
|
|
422
|
+
default: 512;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
content: "none";
|
|
426
|
+
};
|
|
427
|
+
implementation: import("@blocknote/core").TiptapBlockImplementation<{
|
|
428
|
+
type: "image";
|
|
429
|
+
propSchema: {
|
|
430
|
+
textAlignment: {
|
|
431
|
+
default: "left";
|
|
432
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
433
|
+
};
|
|
434
|
+
backgroundColor: {
|
|
435
|
+
default: "default";
|
|
436
|
+
};
|
|
437
|
+
url: {
|
|
438
|
+
default: "";
|
|
439
|
+
};
|
|
440
|
+
caption: {
|
|
441
|
+
default: "";
|
|
442
|
+
};
|
|
443
|
+
width: {
|
|
444
|
+
default: 512;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
content: "none";
|
|
448
|
+
}, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
|
|
449
|
+
};
|
|
450
|
+
table: {
|
|
451
|
+
config: {
|
|
452
|
+
type: "table";
|
|
453
|
+
content: "table";
|
|
454
|
+
propSchema: {
|
|
455
|
+
backgroundColor: {
|
|
456
|
+
default: "default";
|
|
457
|
+
};
|
|
458
|
+
textColor: {
|
|
459
|
+
default: "default";
|
|
460
|
+
};
|
|
461
|
+
textAlignment: {
|
|
462
|
+
default: "left";
|
|
463
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
implementation: import("@blocknote/core").TiptapBlockImplementation<{
|
|
468
|
+
type: "table";
|
|
469
|
+
content: "table";
|
|
470
|
+
propSchema: {
|
|
471
|
+
backgroundColor: {
|
|
472
|
+
default: "default";
|
|
473
|
+
};
|
|
474
|
+
textColor: {
|
|
475
|
+
default: "default";
|
|
476
|
+
};
|
|
477
|
+
textAlignment: {
|
|
478
|
+
default: "left";
|
|
479
|
+
values: readonly ["left", "center", "right", "justify"];
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
}, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
|
|
483
|
+
};
|
|
484
|
+
}>, import("@blocknote/core").InlineContentSchemaFromSpecs<{
|
|
485
|
+
text: {
|
|
486
|
+
config: "text";
|
|
487
|
+
implementation: any;
|
|
488
|
+
};
|
|
489
|
+
link: {
|
|
490
|
+
config: "link";
|
|
491
|
+
implementation: any;
|
|
492
|
+
};
|
|
493
|
+
}>, import("@blocknote/core").StyleSchemaFromSpecs<{
|
|
494
|
+
bold: {
|
|
495
|
+
config: {
|
|
496
|
+
type: string;
|
|
497
|
+
propSchema: "boolean";
|
|
498
|
+
};
|
|
499
|
+
implementation: import("@blocknote/core").StyleImplementation;
|
|
500
|
+
};
|
|
501
|
+
italic: {
|
|
502
|
+
config: {
|
|
503
|
+
type: string;
|
|
504
|
+
propSchema: "boolean";
|
|
505
|
+
};
|
|
506
|
+
implementation: import("@blocknote/core").StyleImplementation;
|
|
507
|
+
};
|
|
508
|
+
underline: {
|
|
509
|
+
config: {
|
|
510
|
+
type: string;
|
|
511
|
+
propSchema: "boolean";
|
|
512
|
+
};
|
|
513
|
+
implementation: import("@blocknote/core").StyleImplementation;
|
|
514
|
+
};
|
|
515
|
+
strike: {
|
|
516
|
+
config: {
|
|
517
|
+
type: string;
|
|
518
|
+
propSchema: "boolean";
|
|
519
|
+
};
|
|
520
|
+
implementation: import("@blocknote/core").StyleImplementation;
|
|
521
|
+
};
|
|
522
|
+
code: {
|
|
523
|
+
config: {
|
|
524
|
+
type: string;
|
|
525
|
+
propSchema: "boolean";
|
|
526
|
+
};
|
|
527
|
+
implementation: import("@blocknote/core").StyleImplementation;
|
|
528
|
+
};
|
|
529
|
+
textColor: {
|
|
530
|
+
config: {
|
|
531
|
+
type: string;
|
|
532
|
+
propSchema: "string";
|
|
533
|
+
};
|
|
534
|
+
implementation: import("@blocknote/core").StyleImplementation;
|
|
535
|
+
};
|
|
536
|
+
backgroundColor: {
|
|
537
|
+
config: {
|
|
538
|
+
type: string;
|
|
539
|
+
propSchema: "string";
|
|
540
|
+
};
|
|
541
|
+
implementation: import("@blocknote/core").StyleImplementation;
|
|
542
|
+
};
|
|
543
|
+
}>>>>;
|