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.
Files changed (167) hide show
  1. package/README.md +8 -0
  2. package/lib/index.d.cts +707 -0
  3. package/lib/index.d.ts +707 -4
  4. package/lib/reactjs-tiptap-editor.cjs +1 -0
  5. package/lib/reactjs-tiptap-editor.js +5452 -1
  6. package/lib/style.css +1 -1
  7. package/lib/{vendor-DlmsfAkr.js → vendor-B-W_3NKN.cjs} +162 -162
  8. package/lib/{vendor-B_w0TZys.mjs → vendor-D8S0CsNZ.js} +2712 -2754
  9. package/package.json +68 -61
  10. package/lib/components/ActionButton.d.ts +0 -20
  11. package/lib/components/ActionMenuButton.d.ts +0 -14
  12. package/lib/components/ColorPicker.d.ts +0 -12
  13. package/lib/components/RcTiptapEditor.d.ts +0 -26
  14. package/lib/components/Toolbar.d.ts +0 -2
  15. package/lib/components/icons/AspectRatio.d.ts +0 -3
  16. package/lib/components/icons/Blockquote.d.ts +0 -1
  17. package/lib/components/icons/DeleteColumn.d.ts +0 -4
  18. package/lib/components/icons/DeleteRow.d.ts +0 -4
  19. package/lib/components/icons/FileWordOutline.d.ts +0 -3
  20. package/lib/components/icons/Icon.d.ts +0 -7
  21. package/lib/components/icons/LineHeight.d.ts +0 -3
  22. package/lib/components/icons/MenuDown.d.ts +0 -3
  23. package/lib/components/icons/SizeL.d.ts +0 -3
  24. package/lib/components/icons/SizeM.d.ts +0 -3
  25. package/lib/components/icons/SizeS.d.ts +0 -3
  26. package/lib/components/icons/icons.d.ts +0 -2
  27. package/lib/components/menus/bubble.d.ts +0 -56
  28. package/lib/components/menus/components/BubbleMenuLink.d.ts +0 -2
  29. package/lib/components/menus/components/BubbleMenuMedia.d.ts +0 -9
  30. package/lib/components/menus/components/BubbleMenuText.d.ts +0 -8
  31. package/lib/components/menus/components/ContentMenu.d.ts +0 -2
  32. package/lib/components/menus/components/TableBubbleMenu.d.ts +0 -2
  33. package/lib/components/ui/button.d.ts +0 -11
  34. package/lib/components/ui/dropdown-menu.d.ts +0 -27
  35. package/lib/components/ui/input.d.ts +0 -5
  36. package/lib/components/ui/label.d.ts +0 -5
  37. package/lib/components/ui/popover.d.ts +0 -6
  38. package/lib/components/ui/separator.d.ts +0 -4
  39. package/lib/components/ui/switch.d.ts +0 -4
  40. package/lib/components/ui/tabs.d.ts +0 -7
  41. package/lib/components/ui/toast.d.ts +0 -15
  42. package/lib/components/ui/toaster.d.ts +0 -1
  43. package/lib/components/ui/toggle.d.ts +0 -12
  44. package/lib/components/ui/tooltip.d.ts +0 -7
  45. package/lib/components/ui/use-toast.d.ts +0 -44
  46. package/lib/constants/index.d.ts +0 -44
  47. package/lib/extensions/BaseKit.d.ts +0 -111
  48. package/lib/extensions/Blockquote/Blockquote.d.ts +0 -6
  49. package/lib/extensions/Blockquote/index.d.ts +0 -1
  50. package/lib/extensions/Bold/Bold.d.ts +0 -6
  51. package/lib/extensions/Bold/index.d.ts +0 -1
  52. package/lib/extensions/BulletList/BulletList.d.ts +0 -6
  53. package/lib/extensions/BulletList/index.d.ts +0 -1
  54. package/lib/extensions/Clear/Clear.d.ts +0 -6
  55. package/lib/extensions/Clear/index.d.ts +0 -1
  56. package/lib/extensions/Code/Code.d.ts +0 -6
  57. package/lib/extensions/Code/index.d.ts +0 -1
  58. package/lib/extensions/CodeBlock/CodeBlock.d.ts +0 -6
  59. package/lib/extensions/CodeBlock/index.d.ts +0 -1
  60. package/lib/extensions/Color/Color.d.ts +0 -6
  61. package/lib/extensions/Color/components/ColorActionButton.d.ts +0 -13
  62. package/lib/extensions/Color/index.d.ts +0 -1
  63. package/lib/extensions/Document/Document.d.ts +0 -2
  64. package/lib/extensions/Document/index.d.ts +0 -1
  65. package/lib/extensions/FontFamily/FontFamily.d.ts +0 -3
  66. package/lib/extensions/FontFamily/components/FontFamilyButton.d.ts +0 -26
  67. package/lib/extensions/FontFamily/index.d.ts +0 -1
  68. package/lib/extensions/FontSize/FontSize.d.ts +0 -32
  69. package/lib/extensions/FontSize/components/FontSizeMenuButton.d.ts +0 -23
  70. package/lib/extensions/FontSize/index.d.ts +0 -1
  71. package/lib/extensions/FormatPainter/FormatPainter.d.ts +0 -24
  72. package/lib/extensions/FormatPainter/index.d.ts +0 -1
  73. package/lib/extensions/Heading/Heading.d.ts +0 -6
  74. package/lib/extensions/Heading/components/HeadingButton.d.ts +0 -26
  75. package/lib/extensions/Heading/index.d.ts +0 -1
  76. package/lib/extensions/Highlight/Highlight.d.ts +0 -6
  77. package/lib/extensions/Highlight/components/HighlightActionButton.d.ts +0 -14
  78. package/lib/extensions/Highlight/index.d.ts +0 -1
  79. package/lib/extensions/History/History.d.ts +0 -6
  80. package/lib/extensions/History/components/HistoryActionButton.d.ts +0 -20
  81. package/lib/extensions/History/index.d.ts +0 -1
  82. package/lib/extensions/HorizontalRule/HorizontalRule.d.ts +0 -6
  83. package/lib/extensions/HorizontalRule/index.d.ts +0 -1
  84. package/lib/extensions/Iframe/Iframe.d.ts +0 -23
  85. package/lib/extensions/Iframe/components/IframeNodeView.d.ts +0 -2
  86. package/lib/extensions/Iframe/embed.d.ts +0 -23
  87. package/lib/extensions/Iframe/index.d.ts +0 -1
  88. package/lib/extensions/Image/Image.d.ts +0 -25
  89. package/lib/extensions/Image/components/ImageView.d.ts +0 -2
  90. package/lib/extensions/Image/index.d.ts +0 -1
  91. package/lib/extensions/ImageUpload/ImageUpload.d.ts +0 -16
  92. package/lib/extensions/ImageUpload/components/ImageUploader.d.ts +0 -2
  93. package/lib/extensions/ImageUpload/index.d.ts +0 -1
  94. package/lib/extensions/Indent/Indent.d.ts +0 -23
  95. package/lib/extensions/Indent/index.d.ts +0 -1
  96. package/lib/extensions/Italic/Italic.d.ts +0 -6
  97. package/lib/extensions/Italic/index.d.ts +0 -1
  98. package/lib/extensions/LineHeight/LineHeight.d.ts +0 -17
  99. package/lib/extensions/LineHeight/components/LineHeightDropdown.d.ts +0 -12
  100. package/lib/extensions/LineHeight/index.d.ts +0 -1
  101. package/lib/extensions/Link/Link.d.ts +0 -6
  102. package/lib/extensions/Link/components/LinkEditBlock.d.ts +0 -6
  103. package/lib/extensions/Link/components/LinkEditPopover.d.ts +0 -14
  104. package/lib/extensions/Link/components/LinkViewBlock.d.ts +0 -8
  105. package/lib/extensions/Link/index.d.ts +0 -1
  106. package/lib/extensions/ListItem/ListItem.d.ts +0 -1
  107. package/lib/extensions/ListItem/index.d.ts +0 -1
  108. package/lib/extensions/MoreMark/MoreMark.d.ts +0 -20
  109. package/lib/extensions/MoreMark/components/ActionMoreButton.d.ts +0 -25
  110. package/lib/extensions/MoreMark/index.d.ts +0 -1
  111. package/lib/extensions/MultiColumn/Column.d.ts +0 -4
  112. package/lib/extensions/MultiColumn/ColumnToolbar.d.ts +0 -3
  113. package/lib/extensions/MultiColumn/Columns.d.ts +0 -22
  114. package/lib/extensions/MultiColumn/index.d.ts +0 -3
  115. package/lib/extensions/MultiColumn/menus/ColumnsMenu.d.ts +0 -6
  116. package/lib/extensions/MultiColumn/menus/index.d.ts +0 -1
  117. package/lib/extensions/OrderedList/OrderedList.d.ts +0 -6
  118. package/lib/extensions/OrderedList/index.d.ts +0 -1
  119. package/lib/extensions/Selection/Selection.d.ts +0 -4
  120. package/lib/extensions/Selection/index.d.ts +0 -1
  121. package/lib/extensions/SlashCommand/SlashCommand.d.ts +0 -4
  122. package/lib/extensions/SlashCommand/components/CommandsList.d.ts +0 -4
  123. package/lib/extensions/SlashCommand/groups.d.ts +0 -3
  124. package/lib/extensions/SlashCommand/index.d.ts +0 -1
  125. package/lib/extensions/SlashCommand/types.d.ts +0 -25
  126. package/lib/extensions/Strike/Strike.d.ts +0 -6
  127. package/lib/extensions/Strike/index.d.ts +0 -1
  128. package/lib/extensions/Subscript/Subscript.d.ts +0 -23
  129. package/lib/extensions/Subscript/index.d.ts +0 -1
  130. package/lib/extensions/Table/cell-background.d.ts +0 -19
  131. package/lib/extensions/Table/components/CreateTablePopover.d.ts +0 -14
  132. package/lib/extensions/Table/components/TableActionButton.d.ts +0 -13
  133. package/lib/extensions/Table/index.d.ts +0 -5
  134. package/lib/extensions/Table/table.d.ts +0 -24
  135. package/lib/extensions/TaskList/TaskList.d.ts +0 -12
  136. package/lib/extensions/TaskList/index.d.ts +0 -1
  137. package/lib/extensions/TextAlign/TextAlign.d.ts +0 -18
  138. package/lib/extensions/TextAlign/components/TextAlignMenuButton.d.ts +0 -27
  139. package/lib/extensions/TextAlign/index.d.ts +0 -1
  140. package/lib/extensions/TextBubble/TextBubble.d.ts +0 -7
  141. package/lib/extensions/TextBubble/components/TextDropdown.d.ts +0 -10
  142. package/lib/extensions/TextBubble/index.d.ts +0 -1
  143. package/lib/extensions/TrailingNode/TrailingNode.d.ts +0 -12
  144. package/lib/extensions/TrailingNode/index.d.ts +0 -1
  145. package/lib/extensions/UnderLine/Underline.d.ts +0 -6
  146. package/lib/extensions/UnderLine/index.d.ts +0 -1
  147. package/lib/extensions/Video/Video.d.ts +0 -55
  148. package/lib/extensions/Video/index.d.ts +0 -1
  149. package/lib/extensions/VideoUpload/VideoUpload.d.ts +0 -14
  150. package/lib/extensions/VideoUpload/components/VideoUploaderView.d.ts +0 -2
  151. package/lib/extensions/VideoUpload/index.d.ts +0 -1
  152. package/lib/extensions/index.d.ts +0 -64
  153. package/lib/lib/utils.d.ts +0 -3
  154. package/lib/locales/en.d.ts +0 -2
  155. package/lib/locales/index.d.ts +0 -33
  156. package/lib/locales/vi.d.ts +0 -2
  157. package/lib/plugins/image-upload.d.ts +0 -12
  158. package/lib/reactjs-tiptap-editor.mjs +0 -5315
  159. package/lib/theme/theme.d.ts +0 -4
  160. package/lib/types.d.ts +0 -80
  161. package/lib/utils/getRenderContainer.d.ts +0 -4
  162. package/lib/utils/indent.d.ts +0 -15
  163. package/lib/utils/is-mobile.d.ts +0 -19
  164. package/lib/utils/line-height.d.ts +0 -7
  165. package/lib/utils/mitt.d.ts +0 -24
  166. package/lib/utils/plateform.d.ts +0 -11
  167. package/lib/utils/utils.d.ts +0 -17
@@ -1,44 +0,0 @@
1
- /** Default lang */
2
- export declare const DEFAULT_LANG_VALUE: "en";
3
- /** Throttle time for editor input (milliseconds) */
4
- export declare const EDITOR_UPDATE_THROTTLE_WAIT_TIME: 200;
5
- /**
6
- * watch throttling time must be less than the update time
7
- * otherwise the cursor position will reach the end
8
- */
9
- export declare const EDITOR_UPDATE_WATCH_THROTTLE_WAIT_TIME: number;
10
- /** Minimum size for image adjustments */
11
- export declare const IMAGE_MIN_SIZE: 20;
12
- /** Maximum size for image adjustments */
13
- export declare const IMAGE_MAX_SIZE: 100000;
14
- /** Throttle time during adjustments for images (milliseconds) */
15
- export declare const IMAGE_THROTTLE_WAIT_TIME: 16;
16
- /** Default number of rows and columns for grids when creating a table */
17
- export declare const TABLE_INIT_GRID_SIZE: 10;
18
- /** Maximum number of rows and columns for grids when creating a table */
19
- export declare const TABLE_MAX_GRID_SIZE: 10;
20
- /** Minimum number of rows and columns for grids when creating a table */
21
- export declare const TABLE_DEFAULT_SELECTED_GRID_SIZE: 2;
22
- export declare const DEFAULT_COLOR = "#262626";
23
- /** Default color list for text color and text highlight */
24
- export declare const COLORS_LIST: readonly ["#000000", "#262626", "#595959", "#8C8C8C", "#BFBFBF", "#D9D9D9", "#E9E9E9", "#F5F5F5", "#FAFAFA", "#FFFFFF", "#F5222D", "#FA541C", "#FA8C16", "#FADB14", "#52C41A", "#13C2C2", "#1890FF", "#2F54EB", "#722ED1", "#EB2F96", "#FFE8E6", "#FFECE0", "#FFEFD1", "#FCFCCA", "#E4F7D2", "#D3F5F0", "#D4EEFC", "#DEE8FC", "#EFE1FA", "#FAE1EB", "#FFA39E", "#FFBB96", "#FFD591", "#FFFB8F", "#B7EB8F", "#87E8DE", "#91D5FF", "#ADC6FF", "#D3ADF7", "#FFADD2", "#FF4D4F", "#FF7A45", "#FFA940", "#FFEC3D", "#73D13D", "#36CFC9", "#40A9FF", "#597EF7", "#9254DE", "#F759AB", "#CF1322", "#D4380D", "#D46B08", "#D4B106", "#389E0D", "#08979C", "#096DD9", "#1D39C4", "#531DAB", "#C41D7F", "#820014", "#871400", "#873800", "#614700", "#135200", "#00474F", "#003A8C", "#061178", "#22075E", "#780650"];
25
- /** Default font size list */
26
- export declare const DEFAULT_FONT_SIZE_LIST: readonly ["10px", "11px", "12px", "14px", "16px", "18px", "20px", "22px", "24px", "26px", "28px", "36px", "48px", "72px"];
27
- /** Default font size value */
28
- export declare const DEFAULT_FONT_SIZE_VALUE: "defaut";
29
- /** Options for setting image size in the bubble menu */
30
- export declare enum IMAGE_SIZE {
31
- 'size-small' = 200,
32
- 'size-medium' = 500,
33
- 'size-large' = "100%"
34
- }
35
- /** Options for setting video size in the bubble menu */
36
- export declare enum VIDEO_SIZE {
37
- 'size-small' = 480,
38
- 'size-medium' = 640,
39
- 'size-large' = "100%"
40
- }
41
- export declare const LINE_HEIGHT_100 = 1.7;
42
- export declare const DEFAULT_LINE_HEIGHT = "1";
43
- /** display in menus */
44
- export declare const NODE_TYPE_MENU: any;
@@ -1,111 +0,0 @@
1
- import { Extension } from '@tiptap/core';
2
- import { CharacterCountOptions } from '@tiptap/extension-character-count';
3
- import { DropcursorOptions } from '@tiptap/extension-dropcursor';
4
- import { FocusOptions } from '@tiptap/extension-focus';
5
- import { HardBreakOptions } from '@tiptap/extension-hard-break';
6
- import { ListItemOptions } from '@tiptap/extension-list-item';
7
- import { ParagraphOptions } from '@tiptap/extension-paragraph';
8
- import { PlaceholderOptions } from '@tiptap/extension-placeholder';
9
- import { TextStyleOptions } from '@tiptap/extension-text-style';
10
- import { TextBubbleOptions } from './TextBubble';
11
- import { TrailingNodeOptions } from './TrailingNode';
12
-
13
- /**
14
- * Represents the interface for options in the base toolkit.
15
- */
16
- export interface BaseKitOptions {
17
- /**
18
- * Whether to enable the document option
19
- *
20
- * @default false
21
- */
22
- multiColumn?: boolean;
23
- /**
24
- * Whether to enable the text option
25
- *
26
- * @default true
27
- */
28
- text: false;
29
- /**
30
- * Whether to enable the Gapcursor
31
- *
32
- * @default true
33
- */
34
- gapcursor: false;
35
- /**
36
- * Dropcursor options or false, indicating whether to enable the drop cursor
37
- *
38
- * @default true
39
- */
40
- dropcursor: Partial<DropcursorOptions> | false;
41
- /**
42
- * character count options or false, indicating whether to enable character count
43
- *
44
- * @default true
45
- */
46
- characterCount: Partial<CharacterCountOptions> | false;
47
- /**
48
- * HardBreak options or false, indicating whether to enable hard breaks
49
- *
50
- * @default true
51
- */
52
- hardBreak: Partial<HardBreakOptions> | false;
53
- /**
54
- * Placeholder options or false, indicating whether to enable placeholders
55
- *
56
- * @default true
57
- */
58
- placeholder: Partial<PlaceholderOptions> | false;
59
- /**
60
- * Paragraph options or false, indicating whether to enable paragraph functionality
61
- *
62
- * @default true
63
- */
64
- paragraph: Partial<ParagraphOptions> | false;
65
- /**
66
- * Focus options or false, indicating whether to enable focus functionality
67
- *
68
- * @default true
69
- */
70
- focus: Partial<FocusOptions> | false;
71
- /**
72
- * ListItem options or false, indicating whether to enable list item functionality
73
- *
74
- * @default true
75
- */
76
- listItem: Partial<ListItemOptions> | false;
77
- /**
78
- * Text Style options or false, indicating whether to enable text style functionality
79
- *
80
- * @default true
81
- */
82
- textStyle: Partial<TextStyleOptions> | false;
83
- /**
84
- * Bubble options, taking `BubbleOptions<BaseKitOptions>` as parameters, indicating whether to enable the bubble functionality
85
- */
86
- bubble: any;
87
- /**
88
- * Iframe options or false, indicating whether to enable the iframe
89
- *
90
- * @default true
91
- */
92
- /**
93
- * Trailing node options or false, indicating whether to enable the trailing node
94
- *
95
- * @default true
96
- */
97
- trailingNode: Partial<TrailingNodeOptions> | false;
98
- /**
99
- * textBubble options or false, indicating whether to enable the textBubble
100
- *
101
- * @default true
102
- */
103
- textBubble: Partial<TextBubbleOptions> | false;
104
- /**
105
- * selection options or false, indicating whether to enable the selection
106
- *
107
- * @default true
108
- */
109
- selection: any | false;
110
- }
111
- export declare const BaseKit: Extension<BaseKitOptions, any>;
@@ -1,6 +0,0 @@
1
- import { BlockquoteOptions as TiptapBlockquoteOptions } from '@tiptap/extension-blockquote';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface BlockquoteOptions extends TiptapBlockquoteOptions, GeneralOptions<BlockquoteOptions> {
5
- }
6
- export declare const Blockquote: import('@tiptap/core').Node<BlockquoteOptions, any>;
@@ -1 +0,0 @@
1
- export * from './Blockquote';
@@ -1,6 +0,0 @@
1
- import { BoldOptions as TiptapImageOptions } from '@tiptap/extension-bold';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface BoldOptions extends TiptapImageOptions, GeneralOptions<BoldOptions> {
5
- }
6
- export declare const Bold: import('@tiptap/core').Mark<BoldOptions, any>;
@@ -1 +0,0 @@
1
- export * from './Bold';
@@ -1,6 +0,0 @@
1
- import { BulletListOptions as TiptapBulletListOptions } from '@tiptap/extension-bullet-list';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface BulletListOptions extends TiptapBulletListOptions, GeneralOptions<BulletListOptions> {
5
- }
6
- export declare const BulletList: import('@tiptap/core').Node<BulletListOptions, any>;
@@ -1 +0,0 @@
1
- export * from './BulletList';
@@ -1,6 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface ClearOptions extends GeneralOptions<ClearOptions> {
5
- }
6
- export declare const Clear: Node<ClearOptions, any>;
@@ -1 +0,0 @@
1
- export * from './Clear';
@@ -1,6 +0,0 @@
1
- import { CodeOptions as TiptapCodeOptions } from '@tiptap/extension-code';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface CodeOptions extends TiptapCodeOptions, GeneralOptions<CodeOptions> {
5
- }
6
- export declare const Code: import('@tiptap/core').Mark<CodeOptions, any>;
@@ -1 +0,0 @@
1
- export * from './Code';
@@ -1,6 +0,0 @@
1
- import { CodeBlockLowlightOptions as TiptapCodeBlockOptions } from '@tiptap/extension-code-block-lowlight';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface CodeBlockOptions extends TiptapCodeBlockOptions, GeneralOptions<CodeBlockOptions> {
5
- }
6
- export declare const CodeBlock: import('@tiptap/core').Node<CodeBlockOptions, any>;
@@ -1 +0,0 @@
1
- export * from './CodeBlock';
@@ -1,6 +0,0 @@
1
- import { ColorOptions as TiptapColorOptions } from '@tiptap/extension-color';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface ColorOptions extends TiptapColorOptions, GeneralOptions<ColorOptions> {
5
- }
6
- export declare const Color: import('@tiptap/core').Extension<ColorOptions, any>;
@@ -1,13 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- import { ButtonViewReturnComponentProps } from '../../../types';
3
-
4
- interface IProps {
5
- editor: Editor;
6
- icon?: any;
7
- tooltip?: string;
8
- disabled?: boolean;
9
- action?: ButtonViewReturnComponentProps['action'];
10
- isActive?: ButtonViewReturnComponentProps['isActive'];
11
- }
12
- declare const ColorActionButton: (props: IProps) => import("react/jsx-runtime").JSX.Element;
13
- export default ColorActionButton;
@@ -1 +0,0 @@
1
- export * from './Color';
@@ -1,2 +0,0 @@
1
- export declare const Document: import('@tiptap/core').Node<any, any>;
2
- export default Document;
@@ -1 +0,0 @@
1
- export * from './Document';
@@ -1,3 +0,0 @@
1
- import { Extension } from '@tiptap/core';
2
-
3
- export declare const FontFamily: Extension<any, any>;
@@ -1,26 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ButtonViewReturnComponentProps } from '../../../types';
3
-
4
- export interface Item {
5
- title: string;
6
- icon?: any;
7
- font?: string;
8
- isActive: NonNullable<ButtonViewReturnComponentProps['isActive']>;
9
- action?: ButtonViewReturnComponentProps['action'];
10
- style?: React.CSSProperties;
11
- shortcutKeys?: string[];
12
- disabled?: boolean;
13
- divider?: boolean;
14
- default?: boolean;
15
- }
16
- interface Props {
17
- editor: any;
18
- disabled?: boolean;
19
- color?: string;
20
- shortcutKeys?: string[];
21
- maxHeight?: string | number;
22
- tooltip?: string;
23
- items?: Item[];
24
- }
25
- declare const FontFamilyButton: (props: Props) => import("react/jsx-runtime").JSX.Element;
26
- export default FontFamilyButton;
@@ -1 +0,0 @@
1
- export * from './FontFamily';
@@ -1,32 +0,0 @@
1
- import { Extension } from '@tiptap/core';
2
- import { GeneralOptions } from '../../types';
3
-
4
- /**
5
- * Represents the interface for font size options, extending GeneralOptions.
6
- */
7
- export interface FontSizeOptions extends GeneralOptions<FontSizeOptions> {
8
- types: string[];
9
- /**
10
- * List of available font size values
11
- *
12
- * @default DEFAULT_FONT_SIZE_LIST
13
- */
14
- fontSizes: string[];
15
- }
16
- declare module '@tiptap/core' {
17
- interface Commands<ReturnType> {
18
- fontSize: {
19
- /**
20
- * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
21
- * CSS font-size
22
- * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
23
- */
24
- setFontSize: (fontSize: string) => ReturnType;
25
- /**
26
- * Unset the font size
27
- */
28
- unsetFontSize: () => ReturnType;
29
- };
30
- }
31
- }
32
- export declare const FontSize: Extension<FontSizeOptions, any>;
@@ -1,23 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ButtonViewReturnComponentProps } from '../../../types';
3
-
4
- export interface Item {
5
- title: string;
6
- isActive: NonNullable<ButtonViewReturnComponentProps['isActive']>;
7
- action?: ButtonViewReturnComponentProps['action'];
8
- style?: React.CSSProperties;
9
- disabled?: boolean;
10
- divider?: boolean;
11
- default?: boolean;
12
- }
13
- interface IPropsFontSizeMenuButton {
14
- editor: any;
15
- disabled?: boolean;
16
- color?: string;
17
- shortcutKeys?: string[];
18
- maxHeight?: string | number;
19
- tooltip?: string;
20
- items?: Item[];
21
- }
22
- declare const FontSizeMenuButton: (props: IPropsFontSizeMenuButton) => import("react/jsx-runtime").JSX.Element;
23
- export default FontSizeMenuButton;
@@ -1 +0,0 @@
1
- export * from './FontSize';
@@ -1,24 +0,0 @@
1
- import { Extension } from '@tiptap/core';
2
- import { Mark } from '@tiptap/pm/model';
3
- import { GeneralOptions } from '../../types';
4
-
5
- /**
6
- * Represents the interface for font size options, extending GeneralOptions.
7
- */
8
- export interface FormatPainterOptions extends GeneralOptions<FormatPainterOptions> {
9
- }
10
- declare module '@tiptap/core' {
11
- interface Commands<ReturnType> {
12
- painter: {
13
- setPainter: (marks: Mark[]) => ReturnType;
14
- };
15
- }
16
- }
17
- export type PainterAction = {
18
- type: 'start' | 'end';
19
- marks: Mark[];
20
- };
21
- /**
22
- * 格式刷
23
- */
24
- export declare const FormatPainter: Extension<FormatPainterOptions, any>;
@@ -1 +0,0 @@
1
- export * from './FormatPainter';
@@ -1,6 +0,0 @@
1
- import { HeadingOptions as TiptapHeadingOptions } from '@tiptap/extension-heading';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface HeadingOptions extends TiptapHeadingOptions, GeneralOptions<HeadingOptions> {
5
- }
6
- export declare const Heading: import('@tiptap/core').Node<HeadingOptions, any>;
@@ -1,26 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ButtonViewReturnComponentProps } from '../../../types';
3
-
4
- export interface Item {
5
- title: string;
6
- icon?: any;
7
- level?: number;
8
- isActive: NonNullable<ButtonViewReturnComponentProps['isActive']>;
9
- action?: ButtonViewReturnComponentProps['action'];
10
- style?: React.CSSProperties;
11
- shortcutKeys?: string[];
12
- disabled?: boolean;
13
- divider?: boolean;
14
- default?: boolean;
15
- }
16
- interface Props {
17
- editor: any;
18
- disabled?: boolean;
19
- color?: string;
20
- shortcutKeys?: string[];
21
- maxHeight?: string | number;
22
- tooltip?: string;
23
- items?: Item[];
24
- }
25
- declare const HeadingButton: (props: Props) => import("react/jsx-runtime").JSX.Element;
26
- export default HeadingButton;
@@ -1 +0,0 @@
1
- export * from './Heading';
@@ -1,6 +0,0 @@
1
- import { HighlightOptions as TiptapHighlightOptions } from '@tiptap/extension-highlight';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface HighlightOptions extends TiptapHighlightOptions, GeneralOptions<HighlightOptions> {
5
- }
6
- export declare const Highlight: import('@tiptap/core').Mark<HighlightOptions, any>;
@@ -1,14 +0,0 @@
1
- import { TooltipContentProps } from '@radix-ui/react-tooltip';
2
- import { ButtonViewReturnComponentProps } from '../../../types';
3
-
4
- interface IPropsHighlightActionButton {
5
- editor: any;
6
- tooltip?: string;
7
- disabled?: boolean;
8
- action?: ButtonViewReturnComponentProps['action'];
9
- isActive?: ButtonViewReturnComponentProps['isActive'];
10
- tooltipOptions?: TooltipContentProps;
11
- shortcutKeys?: string[];
12
- }
13
- declare const HighlightActionButton: (props: IPropsHighlightActionButton) => import("react/jsx-runtime").JSX.Element;
14
- export default HighlightActionButton;
@@ -1 +0,0 @@
1
- export * from './Highlight';
@@ -1,6 +0,0 @@
1
- import { HistoryOptions as TiptapHistoryOptions } from '@tiptap/extension-history';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface HistoryOptions extends TiptapHistoryOptions, GeneralOptions<HistoryOptions> {
5
- }
6
- export declare const History: import('@tiptap/core').Extension<HistoryOptions, any>;
@@ -1,20 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TooltipContentProps } from '@radix-ui/react-tooltip';
3
- import { ButtonViewReturnComponentProps } from '../../../types';
4
-
5
- interface IPropsHistoryActionButton {
6
- icon?: string;
7
- title?: string;
8
- tooltip?: string;
9
- disabled?: boolean;
10
- shortcutKeys?: string[];
11
- customClass?: string;
12
- loading?: boolean;
13
- tooltipOptions?: TooltipContentProps;
14
- color?: string;
15
- action?: ButtonViewReturnComponentProps['action'];
16
- isActive?: ButtonViewReturnComponentProps['isActive'];
17
- children?: React.ReactNode;
18
- }
19
- declare const HistoryActionButton: (props?: Partial<IPropsHistoryActionButton>) => import("react/jsx-runtime").JSX.Element;
20
- export default HistoryActionButton;
@@ -1 +0,0 @@
1
- export * from './History';
@@ -1,6 +0,0 @@
1
- import { HorizontalRuleOptions as TiptapHorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface HorizontalRuleOptions extends TiptapHorizontalRuleOptions, GeneralOptions<HorizontalRuleOptions> {
5
- }
6
- export declare const HorizontalRule: import('@tiptap/core').Node<HorizontalRuleOptions, any>;
@@ -1 +0,0 @@
1
- export * from './HorizontalRule';
@@ -1,23 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface IframeOptions extends GeneralOptions<IframeOptions> {
5
- allowFullscreen: boolean;
6
- HTMLAttributes: {
7
- [key: string]: any;
8
- };
9
- }
10
- declare module '@tiptap/core' {
11
- interface Commands<ReturnType> {
12
- iframe: {
13
- /**
14
- * Add an iframe
15
- */
16
- setIframe: (options: {
17
- src: string;
18
- service: string;
19
- }) => ReturnType;
20
- };
21
- }
22
- }
23
- export declare const Iframe: Node<IframeOptions, any>;
@@ -1,2 +0,0 @@
1
- declare const IframeNodeView: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default IframeNodeView;
@@ -1,23 +0,0 @@
1
- interface ServiceType {
2
- label: string;
3
- value: string;
4
- icon: any;
5
- }
6
- export declare const VideoServices: ServiceType[];
7
- export declare const MapServices: ServiceType[];
8
- export declare const DesignServices: ServiceType[];
9
- export declare const DevelopServices: ServiceType[];
10
- export declare const DataServices: ServiceType[];
11
- export declare const OtherServices: never[];
12
- export declare const AllEmbedServices: ServiceType[];
13
- export declare const getEmbedService: (value: any) => {};
14
- /**
15
- * Embed service link
16
- * @id source id
17
- * @exmplae example link
18
- * @src source src, used in iframe
19
- */
20
- export declare const EmbedServiceLink: any;
21
- export declare function getExampleUrl(service: string): string;
22
- export declare const getServiceSrc: (originalLink: any) => any;
23
- export {};
@@ -1 +0,0 @@
1
- export * from './Iframe';
@@ -1,25 +0,0 @@
1
- export interface SetImageAttrsOptions {
2
- src?: string;
3
- /** The alternative text for the image. */
4
- alt?: string;
5
- /** The title of the image. */
6
- title?: string;
7
- /** The width of the image. */
8
- width?: number | string | null;
9
- }
10
- declare module '@tiptap/core' {
11
- interface Commands<ReturnType> {
12
- imageResize: {
13
- /**
14
- * Add an image
15
- */
16
- setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
17
- /**
18
- * Update an image
19
- */
20
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
21
- };
22
- }
23
- }
24
- export declare const Image: import('@tiptap/core').Node<import('@tiptap/extension-image').ImageOptions, any>;
25
- export default Image;
@@ -1,2 +0,0 @@
1
- declare const ImageView: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default ImageView;
@@ -1 +0,0 @@
1
- export * from './Image';
@@ -1,16 +0,0 @@
1
- import { Node } from '@tiptap/react';
2
-
3
- export interface ImageUploadOptions {
4
- upload: (file: File) => Promise<string>;
5
- acceptMimes: string[];
6
- maxSize: number;
7
- }
8
- declare module '@tiptap/core' {
9
- interface Commands<ReturnType> {
10
- imageUpload: {
11
- setImageUpload: () => ReturnType;
12
- };
13
- }
14
- }
15
- export declare const ImageUpload: Node<ImageUploadOptions, any>;
16
- export default ImageUpload;
@@ -1,2 +0,0 @@
1
- declare const ImageUploader: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default ImageUploader;
@@ -1 +0,0 @@
1
- export * from './ImageUpload';
@@ -1,23 +0,0 @@
1
- import { Extension } from '@tiptap/core';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface IndentOptions extends GeneralOptions<IndentOptions> {
5
- types: string[];
6
- minIndent: number;
7
- maxIndent: number;
8
- }
9
- declare module '@tiptap/core' {
10
- interface Commands<ReturnType> {
11
- indent: {
12
- /**
13
- * Set the indent attribute
14
- */
15
- indent: () => ReturnType;
16
- /**
17
- * Set the outdent attribute
18
- */
19
- outdent: () => ReturnType;
20
- };
21
- }
22
- }
23
- export declare const Indent: Extension<IndentOptions, any>;
@@ -1 +0,0 @@
1
- export * from './Indent';
@@ -1,6 +0,0 @@
1
- import { ItalicOptions as TiptapItalicOptions } from '@tiptap/extension-italic';
2
- import { GeneralOptions } from '../../types';
3
-
4
- export interface ItalicOptions extends TiptapItalicOptions, GeneralOptions<ItalicOptions> {
5
- }
6
- export declare const Italic: import('@tiptap/core').Mark<ItalicOptions, any>;