tiptop-editor 1.6.4 → 2.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 +45 -0
- package/dist/components/editor/TiptopDragHandle.d.ts +2 -1
- package/dist/components/editor/TiptopEditor.stories.d.ts +2 -0
- package/dist/components/ui/EditorButton.d.ts +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/tiptop-editor.css +1 -1
- package/dist/tiptop-editor.es.js +15281 -25539
- package/dist/tiptop-editor.umd.js +26 -29
- package/dist/types.d.ts +12 -2
- package/package.json +3 -3
- package/dist/hero.d.ts +0 -2
- package/dist/index-SfZMAM5z.js +0 -5
package/dist/types.d.ts
CHANGED
|
@@ -45,8 +45,7 @@ export interface EditorButtonProps {
|
|
|
45
45
|
editor: Editor;
|
|
46
46
|
iconClass?: string;
|
|
47
47
|
icon?: keyof typeof icons;
|
|
48
|
-
variant?: "
|
|
49
|
-
color?: "default" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
48
|
+
variant?: "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "danger" | "danger-soft";
|
|
50
49
|
onPressed?: () => void;
|
|
51
50
|
}
|
|
52
51
|
export interface SlashCommandGroupCommandsProps {
|
|
@@ -92,12 +91,23 @@ export interface TiptopEditorSlotProps {
|
|
|
92
91
|
}
|
|
93
92
|
export type TiptopEditorSlot = React.ReactNode | ((props: TiptopEditorSlotProps) => React.ReactNode);
|
|
94
93
|
export interface TiptopEditorSlots {
|
|
94
|
+
/** The slot before the actual editor content.*/
|
|
95
95
|
editorTop?: TiptopEditorSlot;
|
|
96
|
+
/** The slot after the actual editor content.*/
|
|
96
97
|
editorBottom?: TiptopEditorSlot;
|
|
98
|
+
/** The slot at the start of the selection Menu, right before the Bold button.*/
|
|
97
99
|
selectionMenuPrepend?: TiptopEditorSlot;
|
|
100
|
+
/** The slot at the end of the selection Menu, right before the More options button.*/
|
|
98
101
|
selectionMenuAppend?: TiptopEditorSlot;
|
|
102
|
+
/** The slot at the start of the table selection Menu.*/
|
|
99
103
|
tableMenuPrepend?: TiptopEditorSlot;
|
|
104
|
+
/** The slot at the end of the table selection Menu.*/
|
|
100
105
|
tableMenuAppend?: TiptopEditorSlot;
|
|
106
|
+
/** The slot after the first section in the Drag Handle Menu.
|
|
107
|
+
*
|
|
108
|
+
* Must have a parent of type DropdownSection in order to be displayed.
|
|
109
|
+
*/
|
|
110
|
+
dragHandleDropdown?: TiptopEditorSlot;
|
|
101
111
|
}
|
|
102
112
|
export interface DocumentWord {
|
|
103
113
|
/** 0-based index of this word within its block node */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tiptop-editor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Notion-like editor built with Tiptap v3 and HeroUI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/tiptop-editor.umd.js",
|
|
@@ -48,10 +48,9 @@
|
|
|
48
48
|
"license": "MIT",
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@floating-ui/dom": "^1.7.0",
|
|
51
|
-
"@heroui/
|
|
51
|
+
"@heroui/styles": "^3.0.1",
|
|
52
52
|
"@tiptap/core": "^3.0.0",
|
|
53
53
|
"@tiptap/react": "^3.0.0",
|
|
54
|
-
"framer-motion": "^12.0.0",
|
|
55
54
|
"lowlight": "^3.0.0",
|
|
56
55
|
"lucide-react": "^0.500.0",
|
|
57
56
|
"prosemirror-commands": "^1.5.0",
|
|
@@ -72,6 +71,7 @@
|
|
|
72
71
|
"yjs": "^13.0.0"
|
|
73
72
|
},
|
|
74
73
|
"dependencies": {
|
|
74
|
+
"@heroui/react": "^3.0.1",
|
|
75
75
|
"@tiptap/extension-bubble-menu": "^3.0.9",
|
|
76
76
|
"@tiptap/extension-code-block-lowlight": "^3.0.9",
|
|
77
77
|
"@tiptap/extension-drag-handle": "^3.0.9",
|
package/dist/hero.d.ts
DELETED