reactjs-tiptap-editor 0.0.4 → 0.0.6
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 +8 -0
- package/lib/index.d.cts +707 -0
- package/lib/index.d.ts +707 -4
- package/lib/reactjs-tiptap-editor.cjs +1 -0
- package/lib/reactjs-tiptap-editor.js +5452 -1
- package/lib/style.css +1 -1
- package/lib/{vendor-DlmsfAkr.js → vendor-B-W_3NKN.cjs} +162 -162
- package/lib/{vendor-B_w0TZys.mjs → vendor-D8S0CsNZ.js} +2712 -2754
- package/package.json +68 -61
- package/lib/components/ActionButton.d.ts +0 -20
- package/lib/components/ActionMenuButton.d.ts +0 -14
- package/lib/components/ColorPicker.d.ts +0 -12
- package/lib/components/RcTiptapEditor.d.ts +0 -26
- package/lib/components/Toolbar.d.ts +0 -2
- package/lib/components/icons/AspectRatio.d.ts +0 -3
- package/lib/components/icons/Blockquote.d.ts +0 -1
- package/lib/components/icons/DeleteColumn.d.ts +0 -4
- package/lib/components/icons/DeleteRow.d.ts +0 -4
- package/lib/components/icons/FileWordOutline.d.ts +0 -3
- package/lib/components/icons/Icon.d.ts +0 -7
- package/lib/components/icons/LineHeight.d.ts +0 -3
- package/lib/components/icons/MenuDown.d.ts +0 -3
- package/lib/components/icons/SizeL.d.ts +0 -3
- package/lib/components/icons/SizeM.d.ts +0 -3
- package/lib/components/icons/SizeS.d.ts +0 -3
- package/lib/components/icons/icons.d.ts +0 -2
- package/lib/components/menus/bubble.d.ts +0 -56
- package/lib/components/menus/components/BubbleMenuLink.d.ts +0 -2
- package/lib/components/menus/components/BubbleMenuMedia.d.ts +0 -9
- package/lib/components/menus/components/BubbleMenuText.d.ts +0 -8
- package/lib/components/menus/components/ContentMenu.d.ts +0 -2
- package/lib/components/menus/components/TableBubbleMenu.d.ts +0 -2
- package/lib/components/ui/button.d.ts +0 -11
- package/lib/components/ui/dropdown-menu.d.ts +0 -27
- package/lib/components/ui/input.d.ts +0 -5
- package/lib/components/ui/label.d.ts +0 -5
- package/lib/components/ui/popover.d.ts +0 -6
- package/lib/components/ui/separator.d.ts +0 -4
- package/lib/components/ui/switch.d.ts +0 -4
- package/lib/components/ui/tabs.d.ts +0 -7
- package/lib/components/ui/toast.d.ts +0 -15
- package/lib/components/ui/toaster.d.ts +0 -1
- package/lib/components/ui/toggle.d.ts +0 -12
- package/lib/components/ui/tooltip.d.ts +0 -7
- package/lib/components/ui/use-toast.d.ts +0 -44
- package/lib/constants/index.d.ts +0 -44
- package/lib/extensions/BaseKit.d.ts +0 -111
- package/lib/extensions/Blockquote/Blockquote.d.ts +0 -6
- package/lib/extensions/Blockquote/index.d.ts +0 -1
- package/lib/extensions/Bold/Bold.d.ts +0 -6
- package/lib/extensions/Bold/index.d.ts +0 -1
- package/lib/extensions/BulletList/BulletList.d.ts +0 -6
- package/lib/extensions/BulletList/index.d.ts +0 -1
- package/lib/extensions/Clear/Clear.d.ts +0 -6
- package/lib/extensions/Clear/index.d.ts +0 -1
- package/lib/extensions/Code/Code.d.ts +0 -6
- package/lib/extensions/Code/index.d.ts +0 -1
- package/lib/extensions/CodeBlock/CodeBlock.d.ts +0 -6
- package/lib/extensions/CodeBlock/index.d.ts +0 -1
- package/lib/extensions/Color/Color.d.ts +0 -6
- package/lib/extensions/Color/components/ColorActionButton.d.ts +0 -13
- package/lib/extensions/Color/index.d.ts +0 -1
- package/lib/extensions/Document/Document.d.ts +0 -2
- package/lib/extensions/Document/index.d.ts +0 -1
- package/lib/extensions/FontFamily/FontFamily.d.ts +0 -3
- package/lib/extensions/FontFamily/components/FontFamilyButton.d.ts +0 -26
- package/lib/extensions/FontFamily/index.d.ts +0 -1
- package/lib/extensions/FontSize/FontSize.d.ts +0 -32
- package/lib/extensions/FontSize/components/FontSizeMenuButton.d.ts +0 -23
- package/lib/extensions/FontSize/index.d.ts +0 -1
- package/lib/extensions/FormatPainter/FormatPainter.d.ts +0 -24
- package/lib/extensions/FormatPainter/index.d.ts +0 -1
- package/lib/extensions/Heading/Heading.d.ts +0 -6
- package/lib/extensions/Heading/components/HeadingButton.d.ts +0 -26
- package/lib/extensions/Heading/index.d.ts +0 -1
- package/lib/extensions/Highlight/Highlight.d.ts +0 -6
- package/lib/extensions/Highlight/components/HighlightActionButton.d.ts +0 -14
- package/lib/extensions/Highlight/index.d.ts +0 -1
- package/lib/extensions/History/History.d.ts +0 -6
- package/lib/extensions/History/components/HistoryActionButton.d.ts +0 -20
- package/lib/extensions/History/index.d.ts +0 -1
- package/lib/extensions/HorizontalRule/HorizontalRule.d.ts +0 -6
- package/lib/extensions/HorizontalRule/index.d.ts +0 -1
- package/lib/extensions/Iframe/Iframe.d.ts +0 -23
- package/lib/extensions/Iframe/components/IframeNodeView.d.ts +0 -2
- package/lib/extensions/Iframe/embed.d.ts +0 -23
- package/lib/extensions/Iframe/index.d.ts +0 -1
- package/lib/extensions/Image/Image.d.ts +0 -25
- package/lib/extensions/Image/components/ImageView.d.ts +0 -2
- package/lib/extensions/Image/index.d.ts +0 -1
- package/lib/extensions/ImageUpload/ImageUpload.d.ts +0 -16
- package/lib/extensions/ImageUpload/components/ImageUploader.d.ts +0 -2
- package/lib/extensions/ImageUpload/index.d.ts +0 -1
- package/lib/extensions/Indent/Indent.d.ts +0 -23
- package/lib/extensions/Indent/index.d.ts +0 -1
- package/lib/extensions/Italic/Italic.d.ts +0 -6
- package/lib/extensions/Italic/index.d.ts +0 -1
- package/lib/extensions/LineHeight/LineHeight.d.ts +0 -17
- package/lib/extensions/LineHeight/components/LineHeightDropdown.d.ts +0 -12
- package/lib/extensions/LineHeight/index.d.ts +0 -1
- package/lib/extensions/Link/Link.d.ts +0 -6
- package/lib/extensions/Link/components/LinkEditBlock.d.ts +0 -6
- package/lib/extensions/Link/components/LinkEditPopover.d.ts +0 -14
- package/lib/extensions/Link/components/LinkViewBlock.d.ts +0 -8
- package/lib/extensions/Link/index.d.ts +0 -1
- package/lib/extensions/ListItem/ListItem.d.ts +0 -1
- package/lib/extensions/ListItem/index.d.ts +0 -1
- package/lib/extensions/MoreMark/MoreMark.d.ts +0 -20
- package/lib/extensions/MoreMark/components/ActionMoreButton.d.ts +0 -25
- package/lib/extensions/MoreMark/index.d.ts +0 -1
- package/lib/extensions/MultiColumn/Column.d.ts +0 -4
- package/lib/extensions/MultiColumn/ColumnToolbar.d.ts +0 -3
- package/lib/extensions/MultiColumn/Columns.d.ts +0 -22
- package/lib/extensions/MultiColumn/index.d.ts +0 -3
- package/lib/extensions/MultiColumn/menus/ColumnsMenu.d.ts +0 -6
- package/lib/extensions/MultiColumn/menus/index.d.ts +0 -1
- package/lib/extensions/OrderedList/OrderedList.d.ts +0 -6
- package/lib/extensions/OrderedList/index.d.ts +0 -1
- package/lib/extensions/Selection/Selection.d.ts +0 -4
- package/lib/extensions/Selection/index.d.ts +0 -1
- package/lib/extensions/SlashCommand/SlashCommand.d.ts +0 -4
- package/lib/extensions/SlashCommand/components/CommandsList.d.ts +0 -4
- package/lib/extensions/SlashCommand/groups.d.ts +0 -3
- package/lib/extensions/SlashCommand/index.d.ts +0 -1
- package/lib/extensions/SlashCommand/types.d.ts +0 -25
- package/lib/extensions/Strike/Strike.d.ts +0 -6
- package/lib/extensions/Strike/index.d.ts +0 -1
- package/lib/extensions/Subscript/Subscript.d.ts +0 -23
- package/lib/extensions/Subscript/index.d.ts +0 -1
- package/lib/extensions/Table/cell-background.d.ts +0 -19
- package/lib/extensions/Table/components/CreateTablePopover.d.ts +0 -14
- package/lib/extensions/Table/components/TableActionButton.d.ts +0 -13
- package/lib/extensions/Table/index.d.ts +0 -5
- package/lib/extensions/Table/table.d.ts +0 -24
- package/lib/extensions/TaskList/TaskList.d.ts +0 -12
- package/lib/extensions/TaskList/index.d.ts +0 -1
- package/lib/extensions/TextAlign/TextAlign.d.ts +0 -18
- package/lib/extensions/TextAlign/components/TextAlignMenuButton.d.ts +0 -27
- package/lib/extensions/TextAlign/index.d.ts +0 -1
- package/lib/extensions/TextBubble/TextBubble.d.ts +0 -7
- package/lib/extensions/TextBubble/components/TextDropdown.d.ts +0 -10
- package/lib/extensions/TextBubble/index.d.ts +0 -1
- package/lib/extensions/TrailingNode/TrailingNode.d.ts +0 -12
- package/lib/extensions/TrailingNode/index.d.ts +0 -1
- package/lib/extensions/UnderLine/Underline.d.ts +0 -6
- package/lib/extensions/UnderLine/index.d.ts +0 -1
- package/lib/extensions/Video/Video.d.ts +0 -55
- package/lib/extensions/Video/index.d.ts +0 -1
- package/lib/extensions/VideoUpload/VideoUpload.d.ts +0 -14
- package/lib/extensions/VideoUpload/components/VideoUploaderView.d.ts +0 -2
- package/lib/extensions/VideoUpload/index.d.ts +0 -1
- package/lib/extensions/index.d.ts +0 -64
- package/lib/lib/utils.d.ts +0 -3
- package/lib/locales/en.d.ts +0 -2
- package/lib/locales/index.d.ts +0 -33
- package/lib/locales/vi.d.ts +0 -2
- package/lib/plugins/image-upload.d.ts +0 -12
- package/lib/reactjs-tiptap-editor.mjs +0 -5315
- package/lib/theme/theme.d.ts +0 -4
- package/lib/types.d.ts +0 -80
- package/lib/utils/getRenderContainer.d.ts +0 -4
- package/lib/utils/indent.d.ts +0 -15
- package/lib/utils/is-mobile.d.ts +0 -19
- package/lib/utils/line-height.d.ts +0 -7
- package/lib/utils/mitt.d.ts +0 -24
- package/lib/utils/plateform.d.ts +0 -11
- package/lib/utils/utils.d.ts +0 -17
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export { Bold } from './Bold';
|
|
2
|
-
export type { BoldOptions } from './Bold';
|
|
3
|
-
export { Italic } from './Italic';
|
|
4
|
-
export type { ItalicOptions } from './Italic';
|
|
5
|
-
export { Underline } from './UnderLine';
|
|
6
|
-
export type { UnderlineOptions } from './UnderLine';
|
|
7
|
-
export { Strike } from './Strike';
|
|
8
|
-
export type { StrikeOptions } from './Strike';
|
|
9
|
-
export { Code } from './Code';
|
|
10
|
-
export type { CodeOptions } from './Code';
|
|
11
|
-
export { CodeBlock } from './CodeBlock';
|
|
12
|
-
export type { CodeBlockOptions } from './CodeBlock';
|
|
13
|
-
export { FontFamily } from './FontFamily';
|
|
14
|
-
export { Heading } from './Heading';
|
|
15
|
-
export type { HeadingOptions } from './Heading';
|
|
16
|
-
export { TextAlign } from './TextAlign';
|
|
17
|
-
export type { TextAlignOptions } from './TextAlign';
|
|
18
|
-
export { FontSize } from './FontSize';
|
|
19
|
-
export type { FontSizeOptions } from './FontSize';
|
|
20
|
-
export { Color } from './Color';
|
|
21
|
-
export type { ColorOptions } from './Color';
|
|
22
|
-
export { Highlight } from './Highlight';
|
|
23
|
-
export type { HighlightOptions } from './Highlight';
|
|
24
|
-
export { BulletList } from './BulletList';
|
|
25
|
-
export type { BulletListOptions } from './BulletList';
|
|
26
|
-
export { Clear } from './Clear';
|
|
27
|
-
export type { ClearOptions } from './Clear';
|
|
28
|
-
export { OrderedList } from './OrderedList';
|
|
29
|
-
export type { OrderedListOptions } from './OrderedList';
|
|
30
|
-
export { TaskList } from './TaskList';
|
|
31
|
-
export type { TaskListOptions } from './TaskList';
|
|
32
|
-
export { Blockquote } from './Blockquote';
|
|
33
|
-
export type { BlockquoteOptions } from './Blockquote';
|
|
34
|
-
export { Link } from './Link';
|
|
35
|
-
export type { LinkOptions } from './Link';
|
|
36
|
-
export { HorizontalRule } from './HorizontalRule';
|
|
37
|
-
export type { HorizontalRuleOptions } from './HorizontalRule';
|
|
38
|
-
export { History } from './History';
|
|
39
|
-
export type { HistoryOptions } from './History';
|
|
40
|
-
export { BaseKit } from './BaseKit';
|
|
41
|
-
export type { BaseKitOptions } from './BaseKit';
|
|
42
|
-
export { SubAndSuperScript } from './Subscript';
|
|
43
|
-
export type { SubAndSuperScriptOptions } from './Subscript';
|
|
44
|
-
export type { MoreMarkOptions } from './MoreMark';
|
|
45
|
-
export { MoreMark } from './MoreMark';
|
|
46
|
-
export { Indent } from './Indent';
|
|
47
|
-
export type { IndentOptions } from './Indent';
|
|
48
|
-
export { LineHeight } from './LineHeight';
|
|
49
|
-
export type { LineHeightOptions } from './LineHeight';
|
|
50
|
-
export { SlashCommand } from './SlashCommand';
|
|
51
|
-
export { Image } from './Image';
|
|
52
|
-
export type { SetImageAttrsOptions } from './Image';
|
|
53
|
-
export { ImageUpload } from './ImageUpload';
|
|
54
|
-
export type { ImageUploadOptions } from './ImageUpload';
|
|
55
|
-
export { Video } from './Video/Video';
|
|
56
|
-
export type { VideoOptions } from './Video';
|
|
57
|
-
export { VideoUpload } from './VideoUpload';
|
|
58
|
-
export { Table } from './Table';
|
|
59
|
-
export type { TableOptions } from './Table';
|
|
60
|
-
export { FormatPainter } from './FormatPainter';
|
|
61
|
-
export type { FormatPainterOptions } from './FormatPainter';
|
|
62
|
-
export { Columns, ColumnToolbar } from './MultiColumn';
|
|
63
|
-
export type { ColumnsOptions } from './MultiColumn';
|
|
64
|
-
export { Iframe } from './Iframe';
|
package/lib/lib/utils.d.ts
DELETED
package/lib/locales/en.d.ts
DELETED
package/lib/locales/index.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
interface LocaleInterface {
|
|
2
|
-
lang: string;
|
|
3
|
-
message: Record<string, Record<string, string>>;
|
|
4
|
-
}
|
|
5
|
-
export declare const DEFAULT_LOCALE: LocaleInterface;
|
|
6
|
-
declare class Locale {
|
|
7
|
-
private emitter;
|
|
8
|
-
constructor();
|
|
9
|
-
get lang(): string;
|
|
10
|
-
set lang(lang: string);
|
|
11
|
-
get message(): Record<string, Record<string, string>>;
|
|
12
|
-
set message(message: Record<string, Record<string, string>>);
|
|
13
|
-
loadLangMessage(lang: string): Record<string, string>;
|
|
14
|
-
private isLangSupported;
|
|
15
|
-
setLang(lang: string): void;
|
|
16
|
-
registerWatchLang(hook: (lang: string) => void): {
|
|
17
|
-
unsubscribe: () => void;
|
|
18
|
-
};
|
|
19
|
-
setMessage(lang: string, message: Record<string, string>): void;
|
|
20
|
-
buildLocalesHandler(lang?: string): (path: string) => string;
|
|
21
|
-
}
|
|
22
|
-
declare const locale: Locale;
|
|
23
|
-
declare const useLocale: () => {
|
|
24
|
-
lang: string;
|
|
25
|
-
t: (path: string) => string;
|
|
26
|
-
};
|
|
27
|
-
declare const localeActions: {
|
|
28
|
-
t: (path: string) => string;
|
|
29
|
-
};
|
|
30
|
-
export default locale;
|
|
31
|
-
export { Locale, useLocale, localeActions };
|
|
32
|
-
export { default as en } from './en';
|
|
33
|
-
export { default as vi } from './vi';
|
package/lib/locales/vi.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Plugin } from '@tiptap/pm/state';
|
|
2
|
-
import { EditorView } from '@tiptap/pm/view';
|
|
3
|
-
|
|
4
|
-
export declare const UploadImagesPlugin: () => Plugin<any>;
|
|
5
|
-
export interface ImageUploadOptions {
|
|
6
|
-
validateFn?: (file: File) => boolean;
|
|
7
|
-
onUpload: (file: File) => Promise<string | object>;
|
|
8
|
-
}
|
|
9
|
-
export type UploadFn = (files: File[], view: EditorView, pos: number) => void;
|
|
10
|
-
export declare const createImageUpload: ({ validateFn, onUpload }: ImageUploadOptions) => UploadFn;
|
|
11
|
-
export declare const handleImagePaste: (view: EditorView, event: ClipboardEvent, uploadFn: UploadFn) => boolean;
|
|
12
|
-
export declare const handleImageDrop: (view: EditorView, event: DragEvent, moved: boolean, uploadFn: UploadFn) => boolean;
|