@pubwave/editor 0.5.3 → 0.5.4
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/dist/index.cjs +7 -7
- package/dist/index.d.ts +23 -2
- package/dist/index.js +1653 -1529
- package/package.json +1 -1
- package/dist/auto-BaSO-_S9.cjs +0 -18
- package/dist/auto-h8n00k8H.js +0 -9213
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyExtension } from '@tiptap/core';
|
|
1
2
|
import { default as default_2 } from 'react';
|
|
2
3
|
import { Editor } from '@tiptap/react';
|
|
3
4
|
import { Editor as Editor_2 } from '@tiptap/core';
|
|
@@ -28,6 +29,16 @@ declare interface BlockExtensionsConfig {
|
|
|
28
29
|
* Image upload configuration
|
|
29
30
|
*/
|
|
30
31
|
imageUpload?: ImageUploadConfig;
|
|
32
|
+
/**
|
|
33
|
+
* Enable chart block support
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
enableChart?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Enable multi-column layout blocks
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
enableLayout?: boolean;
|
|
31
42
|
}
|
|
32
43
|
|
|
33
44
|
/**
|
|
@@ -43,7 +54,7 @@ export declare interface BlockHandleProps {
|
|
|
43
54
|
/**
|
|
44
55
|
* Supported block types in the editor
|
|
45
56
|
*/
|
|
46
|
-
export declare type BlockType = 'paragraph' | 'heading' | 'bulletList' | 'orderedList' | 'taskList' | 'table' | 'blockquote' | 'codeBlock' | 'horizontalRule' | 'image' | 'chart';
|
|
57
|
+
export declare type BlockType = 'paragraph' | 'heading' | 'bulletList' | 'orderedList' | 'taskList' | 'table' | 'blockquote' | 'codeBlock' | 'horizontalRule' | 'image' | 'chart' | 'layout';
|
|
47
58
|
|
|
48
59
|
/**
|
|
49
60
|
* BubbleToolbar - Selection-driven floating toolbar
|
|
@@ -131,7 +142,7 @@ export declare function createEditor(config?: EditorConfig): Editor_2;
|
|
|
131
142
|
*
|
|
132
143
|
* This composes all block, mark, and feature extensions into a single array.
|
|
133
144
|
*/
|
|
134
|
-
export declare function createExtensions(config?: ExtensionConfig):
|
|
145
|
+
export declare function createExtensions(config?: ExtensionConfig): AnyExtension[];
|
|
135
146
|
|
|
136
147
|
/**
|
|
137
148
|
* Create a focus trap within the editor UI
|
|
@@ -327,6 +338,16 @@ export declare interface EditorConfig {
|
|
|
327
338
|
* If not provided, images will be converted to base64 by default
|
|
328
339
|
*/
|
|
329
340
|
imageUpload?: ImageUploadConfig;
|
|
341
|
+
/**
|
|
342
|
+
* Enable chart block support
|
|
343
|
+
* @default true
|
|
344
|
+
*/
|
|
345
|
+
enableChart?: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* Enable multi-column layout blocks
|
|
348
|
+
* @default true
|
|
349
|
+
*/
|
|
350
|
+
enableLayout?: boolean;
|
|
330
351
|
/**
|
|
331
352
|
* Callback fired when the editor content changes
|
|
332
353
|
*/
|