nextgen-block-editor 0.3.1 → 0.5.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/dist/index.cjs +5802 -3602
- package/dist/index.d.cts +11 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +5348 -3150
- package/dist/styles.css +1113 -212
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -21,6 +21,13 @@ interface BlockEditorProps {
|
|
|
21
21
|
placeholder?: string;
|
|
22
22
|
linkEndpoint?: string;
|
|
23
23
|
enabledTools?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* When false (or when enabledTools is provided without allowToolConfiguration=true),
|
|
26
|
+
* restricts commands to enabledTools and hides ungranted commands in Settings.
|
|
27
|
+
*/
|
|
28
|
+
allowToolConfiguration?: boolean;
|
|
29
|
+
/** Optional notice shown in Settings -> Components when command access is restricted. */
|
|
30
|
+
accessNoticeText?: string;
|
|
24
31
|
showStats?: boolean;
|
|
25
32
|
showAiBar?: boolean;
|
|
26
33
|
onAiRequest?: (params: {
|
|
@@ -63,4 +70,7 @@ declare function uploadFileToBucket(file: File, folder?: string): Promise<string
|
|
|
63
70
|
declare function sanitizeInlineHtml(value: unknown): string;
|
|
64
71
|
declare function blocksToHtml(data: EditorJSData | null | undefined): string;
|
|
65
72
|
|
|
66
|
-
|
|
73
|
+
declare function blocksToMarkdown(data?: EditorJSData | null): string;
|
|
74
|
+
declare function markdownToBlocks(markdown: string): EditorJSBlock[];
|
|
75
|
+
|
|
76
|
+
export { BlockEditor, type BlockEditorHandle, type BlockEditorProps, BlockRenderer, type BlockRendererProps, DocumentHeader, type DocumentHeaderProps, type EditorJSBlock, type EditorJSData, blocksToHtml, blocksToMarkdown, escHtml, getEditorTools, markdownToBlocks, sanitizeInlineHtml, slugify, uploadFileToBucket, useInteractiveArticle };
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,13 @@ interface BlockEditorProps {
|
|
|
21
21
|
placeholder?: string;
|
|
22
22
|
linkEndpoint?: string;
|
|
23
23
|
enabledTools?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* When false (or when enabledTools is provided without allowToolConfiguration=true),
|
|
26
|
+
* restricts commands to enabledTools and hides ungranted commands in Settings.
|
|
27
|
+
*/
|
|
28
|
+
allowToolConfiguration?: boolean;
|
|
29
|
+
/** Optional notice shown in Settings -> Components when command access is restricted. */
|
|
30
|
+
accessNoticeText?: string;
|
|
24
31
|
showStats?: boolean;
|
|
25
32
|
showAiBar?: boolean;
|
|
26
33
|
onAiRequest?: (params: {
|
|
@@ -63,4 +70,7 @@ declare function uploadFileToBucket(file: File, folder?: string): Promise<string
|
|
|
63
70
|
declare function sanitizeInlineHtml(value: unknown): string;
|
|
64
71
|
declare function blocksToHtml(data: EditorJSData | null | undefined): string;
|
|
65
72
|
|
|
66
|
-
|
|
73
|
+
declare function blocksToMarkdown(data?: EditorJSData | null): string;
|
|
74
|
+
declare function markdownToBlocks(markdown: string): EditorJSBlock[];
|
|
75
|
+
|
|
76
|
+
export { BlockEditor, type BlockEditorHandle, type BlockEditorProps, BlockRenderer, type BlockRendererProps, DocumentHeader, type DocumentHeaderProps, type EditorJSBlock, type EditorJSData, blocksToHtml, blocksToMarkdown, escHtml, getEditorTools, markdownToBlocks, sanitizeInlineHtml, slugify, uploadFileToBucket, useInteractiveArticle };
|