v-notion-editor 0.2.6 → 0.2.8

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 CHANGED
@@ -4,26 +4,28 @@ A powerful, feature-rich Vue 3 rich text editor component inspired by Notion, It
4
4
 
5
5
  ## Features
6
6
 
7
- - **Rich Text Formatting**: Bold, italic, underline, strikethrough, code, and color formatting
8
- - **Advanced Block Types**: Headings, blockquotes, code blocks, lists, and task lists
9
- - **Table Support**: Create, edit, and manipulate tables with advanced cell & row operations, including interactive drag-to-add/remove rows.
10
- - **Masonry Grid Support**: Design and control masonry grids with column resizing, grid controls, and item-level customization.
11
- - **Image Handling**: Drag-and-drop image uploads with customizable upload functions.
12
- - **File Handler**: Smart paste handling for images and rich content
13
- - **Embed Handling**: Embed videos OR websites supports YouTube, Vimeo, Google Maps, Facebook, and more.
14
- - **Math Rendering**: Inline and block math support with KaTeX
15
- - **CSV Import**: Import CSV files data into tables
16
- - **Image Resizing & Alignment**: Smoothly resize images with interactive handles and align them left, right, or center.
17
- - **Responsive Design**: Optimized for screen sizes, including responsive tables and smart masonry grid layouts for tablets and mobile devices.
18
- - **Drag & Drop**: Reorder content blocks with visual drag handles
19
- - **Slash Commands**: Quick content insertion with "/" command menu
20
- - **Link Management**: Smart link insertion and editing with bubble menu
21
- - **Text Alignment**: Left, center, right, and justify alignment options
22
- - **Bubble Menu**: Context-sensitive formatting toolbar
23
- - **Undo/Redo**: Full history management with keyboard shortcuts
24
- - **Task Lists**: Interactive checkboxes and task management
25
- - **Customizable**: Flexible styling with CSS variables and custom themes
26
- - **TypeScript Support**: Fully typed for enhanced developer experience
7
+ - **Rich Text Formatting**: Bold, italic, underline, strikethrough, code, and color formatting
8
+ - **Advanced Block Types**: Headings, blockquotes, code blocks, lists, and task lists
9
+ - **Table Support**: Create, edit, and manipulate tables with advanced cell & row operations, including interactive drag-to-add/remove rows.
10
+ - **Masonry Grid Support**: Design and control masonry grids with column resizing, grid controls, and item-level customization.
11
+ - **Tabs Support**: Organizes content into multiple tabs for easy navigation.
12
+ - **Image Handling**: Drag-and-drop image uploads with customizable upload functions.
13
+ - **File Handler**: Smart paste handling for images and rich content
14
+ - **Embed Handling**: Embed videos OR websites supports YouTube, Vimeo, Google Maps, Facebook, and more.
15
+ - **Math Rendering**: Inline and block math support with KaTeX
16
+ - **CSV Import**: Import CSV files data into tables
17
+ - **Markdown Import**: Import content from a .md file
18
+ - **Image Resizing & Alignment**: Smoothly resize images with interactive handles and align them left, right, or center.
19
+ - **Responsive Design**: Optimized for screen sizes, including responsive tables and smart masonry grid layouts for tablets and mobile devices.
20
+ - **Drag & Drop**: Reorder content blocks with visual drag handles
21
+ - **Slash Commands**: Quick content insertion with "/" command menu
22
+ - **Link Management**: Smart link insertion and editing with bubble menu
23
+ - **Text Alignment**: Left, center, right, and justify alignment options
24
+ - **Bubble Menu**: Context-sensitive formatting toolbar
25
+ - **Undo/Redo**: Full history management with keyboard shortcuts
26
+ - **Task Lists**: Interactive checkboxes and task management
27
+ - **Customizable**: Flexible styling with CSS variables and custom themes
28
+ - **TypeScript Support**: Fully typed for enhanced developer experience
27
29
 
28
30
  ## Demo
29
31
 
@@ -1,7 +1,15 @@
1
1
  import { ImageUploadOptions } from '../types/index';
2
2
 
3
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- modelValue: string;
3
+ declare function __VLS_template(): {
4
+ "color-picker"?(_: {
5
+ editor: import('@tiptap/vue-3').Editor;
6
+ }): any;
7
+ "heading-selector"?(_: {
8
+ editor: import('@tiptap/vue-3').Editor;
9
+ }): any;
10
+ };
11
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
+ modelValue: string | object;
5
13
  className?: string;
6
14
  styles?: any;
7
15
  wrapperClass?: string;
@@ -10,19 +18,33 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
18
  showBubbleMenu?: boolean;
11
19
  slashCommand?: boolean;
12
20
  extensions?: any;
21
+ isCanvas?: boolean;
22
+ outputFormat?: "html" | "json";
23
+ zoom?: number;
24
+ bubbleManuAppendTo?: any;
25
+ /** Debounce delay for content updates (ms). Set to 0 to disable. */
26
+ updateDebounceMs?: number;
27
+ /** Enable performance optimizations for large documents */
28
+ enablePerformanceMode?: boolean;
13
29
  }>, {
14
30
  showDragHandle: boolean;
15
31
  showBubbleMenu: boolean;
16
32
  slashCommand: boolean;
17
33
  extensions: () => any[];
34
+ isCanvas: boolean;
35
+ outputFormat: string;
36
+ zoom: number;
37
+ updateDebounceMs: number;
38
+ enablePerformanceMode: boolean;
18
39
  }>>, {
19
40
  editor: import('vue').ShallowRef<import('@tiptap/vue-3').Editor, import('@tiptap/vue-3').Editor>;
20
41
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
42
  onFocus: () => void;
22
43
  onBlur: () => void;
23
- "update:modelValue": (value: string) => void;
44
+ onCreate: (editor: any) => void;
45
+ "update:modelValue": (value: string | object) => void;
24
46
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
25
- modelValue: string;
47
+ modelValue: string | object;
26
48
  className?: string;
27
49
  styles?: any;
28
50
  wrapperClass?: string;
@@ -31,21 +53,41 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
31
53
  showBubbleMenu?: boolean;
32
54
  slashCommand?: boolean;
33
55
  extensions?: any;
56
+ isCanvas?: boolean;
57
+ outputFormat?: "html" | "json";
58
+ zoom?: number;
59
+ bubbleManuAppendTo?: any;
60
+ /** Debounce delay for content updates (ms). Set to 0 to disable. */
61
+ updateDebounceMs?: number;
62
+ /** Enable performance optimizations for large documents */
63
+ enablePerformanceMode?: boolean;
34
64
  }>, {
35
65
  showDragHandle: boolean;
36
66
  showBubbleMenu: boolean;
37
67
  slashCommand: boolean;
38
68
  extensions: () => any[];
69
+ isCanvas: boolean;
70
+ outputFormat: string;
71
+ zoom: number;
72
+ updateDebounceMs: number;
73
+ enablePerformanceMode: boolean;
39
74
  }>>> & Readonly<{
40
75
  onOnFocus?: () => any;
41
76
  onOnBlur?: () => any;
42
- "onUpdate:modelValue"?: (value: string) => any;
77
+ onOnCreate?: (editor: any) => any;
78
+ "onUpdate:modelValue"?: (value: string | object) => any;
43
79
  }>, {
80
+ isCanvas: boolean;
81
+ extensions: any;
82
+ updateDebounceMs: number;
44
83
  showDragHandle: boolean;
45
84
  showBubbleMenu: boolean;
46
85
  slashCommand: boolean;
47
- extensions: any;
86
+ outputFormat: "html" | "json";
87
+ zoom: number;
88
+ enablePerformanceMode: boolean;
48
89
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
90
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
49
91
  export default _default;
50
92
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
93
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -64,3 +106,8 @@ type __VLS_WithDefaults<P, D> = {
64
106
  type __VLS_Prettify<T> = {
65
107
  [K in keyof T]: T[K];
66
108
  } & {};
109
+ type __VLS_WithTemplateSlots<T, S> = T & {
110
+ new (): {
111
+ $slots: S;
112
+ };
113
+ };