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
package/package.json CHANGED
@@ -1,15 +1,21 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor",
3
- "version": "0.0.4",
4
- "main": "./lib/reactjs-tiptap-editor.js",
5
- "module": "./lib/reactjs-tiptap-editor.mjs",
3
+ "type": "module",
4
+ "version": "0.0.6",
5
+ "main": "./lib/reactjs-tiptap-editor.cjs",
6
+ "module": "./lib/reactjs-tiptap-editor.js",
6
7
  "types": "./lib/index.d.ts",
7
8
  "packageManager": "pnpm@9.7.0",
8
9
  "exports": {
9
10
  ".": {
10
- "types": "./lib/index.d.ts",
11
- "import": "./lib/reactjs-tiptap-editor.mjs",
12
- "require": "./lib/reactjs-tiptap-editor.js"
11
+ "import": {
12
+ "types": "./lib/index.d.ts",
13
+ "default": "./lib/reactjs-tiptap-editor.js"
14
+ },
15
+ "require": {
16
+ "types": "./lib/index.d.cts",
17
+ "default": "./lib/reactjs-tiptap-editor.cjs"
18
+ }
13
19
  },
14
20
  "./style.css": {
15
21
  "import": "./lib/style.css",
@@ -25,7 +31,7 @@
25
31
  "LICENSE"
26
32
  ],
27
33
  "engines": {
28
- "node": "^18.0.0"
34
+ "node": ">=18.0.0"
29
35
  },
30
36
  "scripts": {
31
37
  "build": "tsc && vite build",
@@ -43,7 +49,8 @@
43
49
  "build:playground": "pnpm build:lib && pnpm --dir ./playground run build",
44
50
  "docs:dev": "pnpm --parallel --filter docs... dev",
45
51
  "docs:build": "pnpm --filter docs... build",
46
- "docs:preview": "pnpm -C docs preview"
52
+ "docs:preview": "pnpm -C docs preview",
53
+ "prepublishOnly": "pnpm build:lib"
47
54
  },
48
55
  "dependencies": {
49
56
  "@radix-ui/react-dropdown-menu": "^2.1.1",
@@ -57,82 +64,82 @@
57
64
  "@radix-ui/react-toast": "^1.2.1",
58
65
  "@radix-ui/react-toggle": "^1.1.0",
59
66
  "@radix-ui/react-tooltip": "^1.1.2",
60
- "@tiptap/core": "^2.5.9",
61
- "@tiptap/extension-blockquote": "^2.5.9",
62
- "@tiptap/extension-bold": "^2.5.9",
63
- "@tiptap/extension-bubble-menu": "^2.5.9",
64
- "@tiptap/extension-bullet-list": "^2.5.9",
65
- "@tiptap/extension-character-count": "^2.5.9",
66
- "@tiptap/extension-code": "^2.5.9",
67
- "@tiptap/extension-code-block": "^2.5.9",
68
- "@tiptap/extension-code-block-lowlight": "^2.5.9",
69
- "@tiptap/extension-color": "^2.5.9",
70
- "@tiptap/extension-document": "^2.5.9",
71
- "@tiptap/extension-dropcursor": "^2.5.9",
72
- "@tiptap/extension-focus": "^2.5.9",
73
- "@tiptap/extension-font-family": "^2.5.9",
74
- "@tiptap/extension-gapcursor": "^2.5.9",
75
- "@tiptap/extension-hard-break": "^2.5.9",
76
- "@tiptap/extension-heading": "^2.5.9",
77
- "@tiptap/extension-highlight": "^2.5.9",
78
- "@tiptap/extension-history": "^2.5.9",
79
- "@tiptap/extension-horizontal-rule": "^2.5.9",
80
- "@tiptap/extension-image": "^2.5.9",
81
- "@tiptap/extension-italic": "^2.5.9",
82
- "@tiptap/extension-link": "^2.5.9",
83
- "@tiptap/extension-list-item": "^2.5.9",
84
- "@tiptap/extension-ordered-list": "^2.5.9",
85
- "@tiptap/extension-paragraph": "^2.5.9",
86
- "@tiptap/extension-placeholder": "^2.5.9",
87
- "@tiptap/extension-strike": "^2.5.9",
88
- "@tiptap/extension-subscript": "^2.5.9",
89
- "@tiptap/extension-superscript": "^2.5.9",
90
- "@tiptap/extension-table": "^2.5.9",
91
- "@tiptap/extension-table-cell": "^2.5.9",
92
- "@tiptap/extension-table-header": "^2.5.9",
93
- "@tiptap/extension-table-row": "^2.5.9",
94
- "@tiptap/extension-task-item": "^2.5.9",
95
- "@tiptap/extension-task-list": "^2.5.9",
96
- "@tiptap/extension-text": "^2.5.9",
97
- "@tiptap/extension-text-align": "^2.5.9",
98
- "@tiptap/extension-text-style": "^2.5.9",
99
- "@tiptap/extension-underline": "^2.5.9",
100
- "@tiptap/pm": "^2.5.9",
101
- "@tiptap/react": "^2.5.9",
102
- "@tiptap/suggestion": "^2.5.9",
67
+ "@tiptap/core": "^2.6.3",
68
+ "@tiptap/extension-blockquote": "^2.6.3",
69
+ "@tiptap/extension-bold": "^2.6.3",
70
+ "@tiptap/extension-bubble-menu": "^2.6.3",
71
+ "@tiptap/extension-bullet-list": "^2.6.3",
72
+ "@tiptap/extension-character-count": "^2.6.3",
73
+ "@tiptap/extension-code": "^2.6.3",
74
+ "@tiptap/extension-code-block": "^2.6.3",
75
+ "@tiptap/extension-code-block-lowlight": "^2.6.3",
76
+ "@tiptap/extension-color": "^2.6.3",
77
+ "@tiptap/extension-document": "^2.6.3",
78
+ "@tiptap/extension-dropcursor": "^2.6.3",
79
+ "@tiptap/extension-focus": "^2.6.3",
80
+ "@tiptap/extension-font-family": "^2.6.3",
81
+ "@tiptap/extension-gapcursor": "^2.6.3",
82
+ "@tiptap/extension-hard-break": "^2.6.3",
83
+ "@tiptap/extension-heading": "^2.6.3",
84
+ "@tiptap/extension-highlight": "^2.6.3",
85
+ "@tiptap/extension-history": "^2.6.3",
86
+ "@tiptap/extension-horizontal-rule": "^2.6.3",
87
+ "@tiptap/extension-image": "^2.6.3",
88
+ "@tiptap/extension-italic": "^2.6.3",
89
+ "@tiptap/extension-link": "^2.6.3",
90
+ "@tiptap/extension-list-item": "^2.6.3",
91
+ "@tiptap/extension-ordered-list": "^2.6.3",
92
+ "@tiptap/extension-paragraph": "^2.6.3",
93
+ "@tiptap/extension-placeholder": "^2.6.3",
94
+ "@tiptap/extension-strike": "^2.6.3",
95
+ "@tiptap/extension-subscript": "^2.6.3",
96
+ "@tiptap/extension-superscript": "^2.6.3",
97
+ "@tiptap/extension-table": "^2.6.3",
98
+ "@tiptap/extension-table-cell": "^2.6.3",
99
+ "@tiptap/extension-table-header": "^2.6.3",
100
+ "@tiptap/extension-table-row": "^2.6.3",
101
+ "@tiptap/extension-task-item": "^2.6.3",
102
+ "@tiptap/extension-task-list": "^2.6.3",
103
+ "@tiptap/extension-text": "^2.6.3",
104
+ "@tiptap/extension-text-align": "^2.6.3",
105
+ "@tiptap/extension-text-style": "^2.6.3",
106
+ "@tiptap/extension-underline": "^2.6.3",
107
+ "@tiptap/pm": "^2.6.3",
108
+ "@tiptap/react": "^2.6.3",
109
+ "@tiptap/suggestion": "^2.6.3",
103
110
  "class-variance-authority": "^0.7.0",
104
111
  "clsx": "^2.1.1",
105
112
  "echo-drag-handle-plugin": "^0.0.2",
106
113
  "lodash-unified": "^1.0.3",
107
- "lucide-react": "^0.417.0",
114
+ "lucide-react": "^0.427.0",
108
115
  "react-colorful": "^5.6.1",
109
116
  "tippy.js": "^6.3.7",
110
117
  "valtio": "^1.13.2"
111
118
  },
112
119
  "devDependencies": {
113
120
  "@hunghg255/eslint-config-react": "^0.0.18",
114
- "@total-typescript/ts-reset": "^0.4.2",
115
- "@types/node": "^20.14.14",
121
+ "@total-typescript/ts-reset": "^0.5.1",
122
+ "@types/node": "^22.3.0",
116
123
  "@types/react": "^18.3.3",
117
124
  "@types/react-dom": "^18.3.0",
118
125
  "@vitejs/plugin-react": "^4.3.1",
119
126
  "autoprefixer": "^10.4.20",
120
- "bumpp": "^9.4.2",
127
+ "bumpp": "^9.5.1",
121
128
  "eslint": "^8.57.0",
122
129
  "eslint-config-react-app": "^7.0.1",
123
- "git-scm-hooks": "^0.0.6",
130
+ "git-scm-hooks": "^0.0.11",
124
131
  "prettier": "^2.8.8",
125
132
  "react": "^18.3.1",
126
133
  "react-dom": "^18.3.1",
127
134
  "sass": "^1.77.8",
128
135
  "source-map-explorer": "^2.5.3",
129
- "tailwind-merge": "^2.4.0",
130
- "tailwindcss": "^3.4.9",
136
+ "tailwind-merge": "^2.5.2",
137
+ "tailwindcss": "^3.4.10",
131
138
  "tailwindcss-animate": "^1.0.7",
132
- "typescript": "^4.9.5",
133
- "verify-commit-msg": "^0.0.11",
139
+ "typescript": "^5.5.4",
140
+ "verify-commit-msg": "^0.0.14",
134
141
  "vite": "^5.4.0",
135
- "vite-plugin-dts": "^3.9.1"
142
+ "vite-plugin-dts": "^4.0.3"
136
143
  },
137
144
  "browserslist": [
138
145
  ">0.3%",
@@ -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 IPropsActionButton {
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 ActionButton: (props?: Partial<IPropsActionButton>) => import("react/jsx-runtime").JSX.Element;
20
- export default ActionButton;
@@ -1,14 +0,0 @@
1
- import { ButtonViewReturnComponentProps } from '../types';
2
-
3
- interface IPropsActionMenuButton {
4
- icon?: any;
5
- title?: string;
6
- tooltip?: string;
7
- disabled?: boolean;
8
- shortcutKeys?: string[];
9
- color?: string;
10
- action?: ButtonViewReturnComponentProps['action'];
11
- isActive?: ButtonViewReturnComponentProps['isActive'];
12
- }
13
- declare const ActionMenuButton: (props: IPropsActionMenuButton) => import("react/jsx-runtime").JSX.Element;
14
- export default ActionMenuButton;
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- interface IPropsColorPicker {
4
- highlight?: boolean;
5
- disabled?: boolean;
6
- children: React.ReactNode;
7
- onChange?: (color: any) => void;
8
- setSelectedColor?: (color: any) => void;
9
- selectedColor?: string;
10
- }
11
- declare const ColorPicker: (props: IPropsColorPicker) => import("react/jsx-runtime").JSX.Element;
12
- export default ColorPicker;
@@ -1,26 +0,0 @@
1
- import { AnyExtension } from '@tiptap/core';
2
- import { UseEditorOptions } from '@tiptap/react';
3
-
4
- interface IPropsRcTiptapEditor {
5
- content: string;
6
- extensions: AnyExtension[];
7
- output: 'html' | 'json' | 'text';
8
- modelValue?: string | object;
9
- dark?: boolean;
10
- dense?: boolean;
11
- disabled?: boolean;
12
- label?: string;
13
- hideToolbar?: boolean;
14
- disableBubble?: boolean;
15
- hideBubble?: boolean;
16
- removeDefaultWrapper?: boolean;
17
- maxWidth?: string | number;
18
- minHeight?: string | number;
19
- maxHeight?: string | number;
20
- editorClass?: string | string[] | Record<string, any>;
21
- contentClass?: string | string[] | Record<string, any>;
22
- onChangeContent?: (val: any) => void;
23
- useEditorOptions?: UseEditorOptions;
24
- }
25
- declare const _default: import('react').ForwardRefExoticComponent<IPropsRcTiptapEditor & import('react').RefAttributes<unknown>>;
26
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const Toolbar: ({ editor, disabled }: any) => import("react/jsx-runtime").JSX.Element;
2
- export default Toolbar;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
-
3
- export declare function AspectRatio(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function BlockquoteLeft(props: any): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- interface IPropsDeleteColumn {
2
- }
3
- declare const DeleteColumn: (props: IPropsDeleteColumn) => import("react/jsx-runtime").JSX.Element;
4
- export default DeleteColumn;
@@ -1,4 +0,0 @@
1
- interface IPropsDeleteRow {
2
- }
3
- declare const DeleteRow: (props: IPropsDeleteRow) => import("react/jsx-runtime").JSX.Element;
4
- export default DeleteRow;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
-
3
- export declare function FileWordOutline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- interface IPropsIcon {
2
- name: string;
3
- className?: string;
4
- onClick?: (e?: any) => void;
5
- }
6
- declare const Icon: (props: IPropsIcon) => import("react/jsx-runtime").JSX.Element;
7
- export default Icon;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
-
3
- export declare function FormatLineHeight(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
-
3
- export declare function MenuDown(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
-
3
- export declare function SizeL(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
-
3
- export declare function SizeM(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
-
3
- export declare function SizeS(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export declare const icons: any;
2
- export default icons;
@@ -1,56 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- import { ButtonViewParams, ButtonViewReturn, ExtensionNameKeys } from '../../types';
3
-
4
- /** Represents the size types for bubble images or videos */
5
- type BubbleImageOrVideoSizeType = 'size-small' | 'size-medium' | 'size-large';
6
- /** Represents the various types for bubble images */
7
- type BubbleImageType = `image-${BubbleImageOrVideoSizeType}` | `video-${BubbleImageOrVideoSizeType}` | 'image' | 'image-aspect-ratio' | 'remove';
8
- /** Represents the types for bubble videos */
9
- type BubbleVideoType = 'video' | 'remove';
10
- /** Represents the overall types for bubbles */
11
- type BubbleAllType = BubbleImageType | BubbleVideoType | ExtensionNameKeys | 'divider' | (string & {});
12
- /** Represents the key types for node types */
13
- export type NodeTypeKey = 'image' | 'text' | 'video';
14
- /** Represents the menu of bubble types for each node type */
15
- export type BubbleTypeMenu = Partial<Record<NodeTypeKey, BubbleMenuItem[]>>;
16
- /** Represents the menu of overall bubble types for each node type */
17
- export type NodeTypeMenu = Partial<Record<NodeTypeKey, BubbleAllType[]>>;
18
- /**
19
- * Represents the structure of a bubble menu item.
20
- */
21
- export interface BubbleMenuItem extends ButtonViewReturn {
22
- /** The type of the bubble item */
23
- type: BubbleAllType;
24
- }
25
- /**
26
- * Represents a function to generate a bubble menu
27
- */
28
- interface BubbleView<T = any> {
29
- /**
30
- * Generates a bubble menu based on the provided options.
31
- * @param {ButtonViewParams<T>} options - The options for generating the bubble menu.
32
- * @returns {BubbleTypeMenu} The generated bubble menu.
33
- */
34
- (options: ButtonViewParams<T>): BubbleTypeMenu;
35
- }
36
- /**
37
- * Represents the options for configuring bubbles.
38
- * @interface BubbleOptions
39
- * @template T
40
- */
41
- export interface BubbleOptions<T> {
42
- /** The menu of bubble types for each node type. */
43
- list: NodeTypeMenu;
44
- /** The default list of bubble types. */
45
- defaultBubbleList: any;
46
- /** The function to generate a bubble menu. */
47
- button: BubbleView<T>;
48
- }
49
- export declare const getBubbleImage: (editor: Editor) => BubbleMenuItem[];
50
- export declare const getBubbleVideo: (editor: Editor) => BubbleMenuItem[];
51
- export declare const getBubbleText: (editor: Editor, t: any) => (ButtonViewReturn | ButtonViewReturn[] | {
52
- type: string;
53
- component: undefined;
54
- componentProps: {};
55
- })[];
56
- export {};
@@ -1,2 +0,0 @@
1
- declare const BubbleMenuLink: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default BubbleMenuLink;
@@ -1,9 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
-
3
- interface IPropsBubbleMenu {
4
- editor: Editor;
5
- disabled?: boolean;
6
- }
7
- declare const BubbleMenuImage: (props: IPropsBubbleMenu) => import("react/jsx-runtime").JSX.Element;
8
- declare const BubbleMenuVideo: (props: IPropsBubbleMenu) => import("react/jsx-runtime").JSX.Element;
9
- export { BubbleMenuImage, BubbleMenuVideo };
@@ -1,8 +0,0 @@
1
- import { Editor } from '@tiptap/core';
2
-
3
- interface IPropsBubbleMenuText {
4
- editor: Editor;
5
- disabled?: boolean;
6
- }
7
- declare const BubbleMenuText: (props: IPropsBubbleMenuText) => import("react/jsx-runtime").JSX.Element;
8
- export default BubbleMenuText;
@@ -1,2 +0,0 @@
1
- declare const ContentMenu: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default ContentMenu;
@@ -1,2 +0,0 @@
1
- declare const TableBubbleMenu: (props: any) => import("react/jsx-runtime").JSX.Element;
2
- export default TableBubbleMenu;
@@ -1,11 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
5
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
- } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
7
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
- asChild?: boolean;
9
- }
10
- declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
- export { Button, buttonVariants };
@@ -1,27 +0,0 @@
1
- import * as React from 'react';
2
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
- declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
4
- declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
6
- declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
7
- declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
8
- declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
- declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
- inset?: boolean | undefined;
11
- } & React.RefAttributes<HTMLDivElement>>;
12
- declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
- declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
- inset?: boolean | undefined;
16
- } & React.RefAttributes<HTMLDivElement>>;
17
- declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
- declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
- declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
- inset?: boolean | undefined;
21
- } & React.RefAttributes<HTMLDivElement>>;
22
- declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
- declare const DropdownMenuShortcut: {
24
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
25
- displayName: string;
26
- };
27
- export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
@@ -1,5 +0,0 @@
1
- import * as React from "react";
2
- export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
- }
4
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
5
- export { Input };
@@ -1,5 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- import * as LabelPrimitive from "@radix-ui/react-label";
4
- declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/dist/types').ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
5
- export { Label };
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import * as PopoverPrimitive from "@radix-ui/react-popover";
3
- declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
- declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
- export { Popover, PopoverTrigger, PopoverContent };
@@ -1,4 +0,0 @@
1
- import * as React from "react";
2
- import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
- declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- export { Separator };
@@ -1,4 +0,0 @@
1
- import * as React from "react";
2
- import * as SwitchPrimitives from "@radix-ui/react-switch";
3
- declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
- export { Switch };
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import * as TabsPrimitive from "@radix-ui/react-tabs";
3
- declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
4
- declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
- declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
- declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -1,15 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- import * as ToastPrimitives from "@radix-ui/react-toast";
4
- declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
5
- declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
- declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
7
- variant?: "default" | "destructive" | null | undefined;
8
- } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
9
- declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
- declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
- declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
14
- type ToastActionElement = React.ReactElement<typeof ToastAction>;
15
- export { type ToastProps, type ToastActionElement, ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction, };
@@ -1 +0,0 @@
1
- export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from 'react';
3
- import * as TogglePrimitive from '@radix-ui/react-toggle';
4
- declare const toggleVariants: (props?: ({
5
- variant?: "default" | "outline" | null | undefined;
6
- size?: "default" | "sm" | "lg" | null | undefined;
7
- } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
8
- declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
9
- variant?: "default" | "outline" | null | undefined;
10
- size?: "default" | "sm" | "lg" | null | undefined;
11
- } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
12
- export { Toggle, toggleVariants };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
- declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
- declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
- declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -1,44 +0,0 @@
1
- import { ToastActionElement, ToastProps } from './toast';
2
- import * as React from "react";
3
- type ToasterToast = ToastProps & {
4
- id: string;
5
- title?: React.ReactNode;
6
- description?: React.ReactNode;
7
- action?: ToastActionElement;
8
- };
9
- declare const actionTypes: {
10
- readonly ADD_TOAST: "ADD_TOAST";
11
- readonly UPDATE_TOAST: "UPDATE_TOAST";
12
- readonly DISMISS_TOAST: "DISMISS_TOAST";
13
- readonly REMOVE_TOAST: "REMOVE_TOAST";
14
- };
15
- type ActionType = typeof actionTypes;
16
- type Action = {
17
- type: ActionType["ADD_TOAST"];
18
- toast: ToasterToast;
19
- } | {
20
- type: ActionType["UPDATE_TOAST"];
21
- toast: Partial<ToasterToast>;
22
- } | {
23
- type: ActionType["DISMISS_TOAST"];
24
- toastId?: ToasterToast["id"];
25
- } | {
26
- type: ActionType["REMOVE_TOAST"];
27
- toastId?: ToasterToast["id"];
28
- };
29
- interface State {
30
- toasts: ToasterToast[];
31
- }
32
- export declare const reducer: (state: State, action: Action) => State;
33
- type Toast = Omit<ToasterToast, "id">;
34
- declare function toast({ ...props }: Toast): {
35
- id: string;
36
- dismiss: () => void;
37
- update: (props: ToasterToast) => void;
38
- };
39
- declare function useToast(): {
40
- toast: typeof toast;
41
- dismiss: (toastId?: string) => void;
42
- toasts: ToasterToast[];
43
- };
44
- export { useToast, toast };