@kopexa/tiptap 17.9.2 → 17.10.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.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +830 -272
- package/dist/index.mjs +847 -285
- package/package.json +25 -25
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as _tiptap_core from '@tiptap/core';
|
|
2
2
|
import { Node, JSONContent, Content as Content$1 } from '@tiptap/core';
|
|
3
3
|
export { Content, JSONContent } from '@tiptap/core';
|
|
4
|
+
import { Editor, Extensions, Content, JSONContent as JSONContent$1 } from '@tiptap/react';
|
|
5
|
+
export { useCurrentEditor } from '@tiptap/react';
|
|
4
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
7
|
import { HocuspocusProvider } from '@hocuspocus/provider';
|
|
6
8
|
import * as React from 'react';
|
|
7
9
|
import { ReactNode } from 'react';
|
|
8
10
|
import * as Y from 'yjs';
|
|
9
|
-
import { Editor, Extensions, Content, JSONContent as JSONContent$1 } from '@tiptap/react';
|
|
10
11
|
import { ControlResolver } from '@kopexa/extension-controlref';
|
|
11
12
|
import { PagesOptions } from '@kopexa/extension-pages';
|
|
12
13
|
import { EditorBasicVariants } from '@kopexa/theme';
|
|
@@ -518,7 +519,7 @@ declare function VariableFillerDialog({ open, onOpenChange, variables, values, o
|
|
|
518
519
|
|
|
519
520
|
type GetExtensionsOptions = {
|
|
520
521
|
editable?: boolean;
|
|
521
|
-
placeholder?: string;
|
|
522
|
+
placeholder?: string | (() => string);
|
|
522
523
|
/**
|
|
523
524
|
* Enable the control block feature (experimental).
|
|
524
525
|
* @default false
|
|
@@ -643,8 +644,13 @@ type BasicEditorProps = GetExtensionsOptions & EditorBasicVariants & {
|
|
|
643
644
|
* @default true
|
|
644
645
|
*/
|
|
645
646
|
showToolbar?: boolean;
|
|
647
|
+
/**
|
|
648
|
+
* Overlay content rendered inside EditorContext.Provider.
|
|
649
|
+
* Use for components that need editor access via useCurrentEditor.
|
|
650
|
+
*/
|
|
651
|
+
slotOverlay?: ReactNode;
|
|
646
652
|
};
|
|
647
|
-
declare const BasicEditor: ({ variant, bordered, content, variables, variableValues, showToolbar, pagesOptions, ...options }: BasicEditorProps) => react_jsx_runtime.JSX.Element;
|
|
653
|
+
declare const BasicEditor: ({ variant, bordered, content, variables, variableValues, showToolbar, slotOverlay, pagesOptions, ...options }: BasicEditorProps) => react_jsx_runtime.JSX.Element;
|
|
648
654
|
|
|
649
655
|
type EditorViewProps = EditorBasicVariants & Pick<GetExtensionsOptions, "customExtensions" | "disabled"> & {
|
|
650
656
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as _tiptap_core from '@tiptap/core';
|
|
2
2
|
import { Node, JSONContent, Content as Content$1 } from '@tiptap/core';
|
|
3
3
|
export { Content, JSONContent } from '@tiptap/core';
|
|
4
|
+
import { Editor, Extensions, Content, JSONContent as JSONContent$1 } from '@tiptap/react';
|
|
5
|
+
export { useCurrentEditor } from '@tiptap/react';
|
|
4
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
7
|
import { HocuspocusProvider } from '@hocuspocus/provider';
|
|
6
8
|
import * as React from 'react';
|
|
7
9
|
import { ReactNode } from 'react';
|
|
8
10
|
import * as Y from 'yjs';
|
|
9
|
-
import { Editor, Extensions, Content, JSONContent as JSONContent$1 } from '@tiptap/react';
|
|
10
11
|
import { ControlResolver } from '@kopexa/extension-controlref';
|
|
11
12
|
import { PagesOptions } from '@kopexa/extension-pages';
|
|
12
13
|
import { EditorBasicVariants } from '@kopexa/theme';
|
|
@@ -518,7 +519,7 @@ declare function VariableFillerDialog({ open, onOpenChange, variables, values, o
|
|
|
518
519
|
|
|
519
520
|
type GetExtensionsOptions = {
|
|
520
521
|
editable?: boolean;
|
|
521
|
-
placeholder?: string;
|
|
522
|
+
placeholder?: string | (() => string);
|
|
522
523
|
/**
|
|
523
524
|
* Enable the control block feature (experimental).
|
|
524
525
|
* @default false
|
|
@@ -643,8 +644,13 @@ type BasicEditorProps = GetExtensionsOptions & EditorBasicVariants & {
|
|
|
643
644
|
* @default true
|
|
644
645
|
*/
|
|
645
646
|
showToolbar?: boolean;
|
|
647
|
+
/**
|
|
648
|
+
* Overlay content rendered inside EditorContext.Provider.
|
|
649
|
+
* Use for components that need editor access via useCurrentEditor.
|
|
650
|
+
*/
|
|
651
|
+
slotOverlay?: ReactNode;
|
|
646
652
|
};
|
|
647
|
-
declare const BasicEditor: ({ variant, bordered, content, variables, variableValues, showToolbar, pagesOptions, ...options }: BasicEditorProps) => react_jsx_runtime.JSX.Element;
|
|
653
|
+
declare const BasicEditor: ({ variant, bordered, content, variables, variableValues, showToolbar, slotOverlay, pagesOptions, ...options }: BasicEditorProps) => react_jsx_runtime.JSX.Element;
|
|
648
654
|
|
|
649
655
|
type EditorViewProps = EditorBasicVariants & Pick<GetExtensionsOptions, "customExtensions" | "disabled"> & {
|
|
650
656
|
/**
|