neuphlo-editor 1.8.2 → 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/dist/chunk-2DWEJI45.js +1296 -0
- package/dist/chunk-2DWEJI45.js.map +1 -0
- package/dist/chunk-457ETWB6.js +1351 -0
- package/dist/chunk-457ETWB6.js.map +1 -0
- package/dist/chunk-62DYB7FY.js +1305 -0
- package/dist/chunk-62DYB7FY.js.map +1 -0
- package/dist/chunk-DWGPGRTQ.js +1302 -0
- package/dist/chunk-DWGPGRTQ.js.map +1 -0
- package/dist/chunk-EG7NQJRA.js +1324 -0
- package/dist/chunk-EG7NQJRA.js.map +1 -0
- package/dist/chunk-FLLPFFI5.js +1296 -0
- package/dist/chunk-FLLPFFI5.js.map +1 -0
- package/dist/chunk-FVQHB6VC.js +1128 -0
- package/dist/chunk-FVQHB6VC.js.map +1 -0
- package/dist/chunk-GXJGZHKR.js +1326 -0
- package/dist/chunk-GXJGZHKR.js.map +1 -0
- package/dist/chunk-KCPPTLGY.js +1299 -0
- package/dist/chunk-KCPPTLGY.js.map +1 -0
- package/dist/chunk-LHG2NX6C.js +1123 -0
- package/dist/chunk-LHG2NX6C.js.map +1 -0
- package/dist/chunk-OCNM37WJ.js +1289 -0
- package/dist/chunk-OCNM37WJ.js.map +1 -0
- package/dist/chunk-RW6QBMJB.js +1300 -0
- package/dist/chunk-RW6QBMJB.js.map +1 -0
- package/dist/chunk-SOXTEP7H.js +6705 -0
- package/dist/chunk-SOXTEP7H.js.map +1 -0
- package/dist/headless/index.cjs +207 -144
- package/dist/headless/index.cjs.map +1 -1
- package/dist/headless/index.d.cts +9 -25
- package/dist/headless/index.d.ts +9 -25
- package/dist/headless/index.js +1 -1
- package/dist/react/index.cjs +1839 -723
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.css +364 -8
- package/dist/react/index.css.map +1 -1
- package/dist/react/index.d.cts +10 -2
- package/dist/react/index.d.ts +10 -2
- package/dist/react/index.js +1434 -547
- package/dist/react/index.js.map +1 -1
- package/dist/styles.css +410 -8
- package/package.json +7 -2
package/dist/react/index.d.cts
CHANGED
|
@@ -22,6 +22,7 @@ type NeuphloEditorProps = {
|
|
|
22
22
|
showTextMenu?: boolean;
|
|
23
23
|
showSlashMenu?: boolean;
|
|
24
24
|
showImageMenu?: boolean;
|
|
25
|
+
showDragHandle?: boolean;
|
|
25
26
|
extensions?: any[];
|
|
26
27
|
bubbleMenuExtras?: BubbleMenuExtras;
|
|
27
28
|
onUpdate?: EditorContentProps["onUpdate"];
|
|
@@ -37,7 +38,7 @@ type NeuphloEditorProps = {
|
|
|
37
38
|
slashCommand?: boolean;
|
|
38
39
|
placeholder?: string;
|
|
39
40
|
};
|
|
40
|
-
declare function Editor({ content, className, editable, immediatelyRender, showTextMenu, showSlashMenu, showImageMenu, extensions, bubbleMenuExtras, onUpdate, onCreate, uploadImage, collaboration, mentionOptions, referenceOptions, slashCommand, placeholder, }: NeuphloEditorProps): react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare function Editor({ content, className, editable, immediatelyRender, showTextMenu, showSlashMenu, showImageMenu, showDragHandle, extensions, bubbleMenuExtras, onUpdate, onCreate, uploadImage, collaboration, mentionOptions, referenceOptions, slashCommand, placeholder, }: NeuphloEditorProps): react_jsx_runtime.JSX.Element;
|
|
41
42
|
|
|
42
43
|
type ExtraRenderer = (editor: Editor$1) => ReactNode;
|
|
43
44
|
type TextMenuProps = {
|
|
@@ -47,4 +48,11 @@ type TextMenuProps = {
|
|
|
47
48
|
};
|
|
48
49
|
declare function TextMenu({ className, leadingExtras, trailingExtras, }: TextMenuProps): react_jsx_runtime.JSX.Element | null;
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
type TableOfContentsProps = {
|
|
52
|
+
className?: string;
|
|
53
|
+
itemClassName?: string;
|
|
54
|
+
activeClassName?: string;
|
|
55
|
+
};
|
|
56
|
+
declare function TableOfContents({ className, itemClassName, activeClassName, }: TableOfContentsProps): react_jsx_runtime.JSX.Element | null;
|
|
57
|
+
|
|
58
|
+
export { type BubbleMenuExtra, type BubbleMenuExtraRenderer, type BubbleMenuExtras, Editor, type NeuphloEditorProps as EditorProps, TableOfContents, type TableOfContentsProps, TextMenu, type TextMenuProps };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ type NeuphloEditorProps = {
|
|
|
22
22
|
showTextMenu?: boolean;
|
|
23
23
|
showSlashMenu?: boolean;
|
|
24
24
|
showImageMenu?: boolean;
|
|
25
|
+
showDragHandle?: boolean;
|
|
25
26
|
extensions?: any[];
|
|
26
27
|
bubbleMenuExtras?: BubbleMenuExtras;
|
|
27
28
|
onUpdate?: EditorContentProps["onUpdate"];
|
|
@@ -37,7 +38,7 @@ type NeuphloEditorProps = {
|
|
|
37
38
|
slashCommand?: boolean;
|
|
38
39
|
placeholder?: string;
|
|
39
40
|
};
|
|
40
|
-
declare function Editor({ content, className, editable, immediatelyRender, showTextMenu, showSlashMenu, showImageMenu, extensions, bubbleMenuExtras, onUpdate, onCreate, uploadImage, collaboration, mentionOptions, referenceOptions, slashCommand, placeholder, }: NeuphloEditorProps): react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare function Editor({ content, className, editable, immediatelyRender, showTextMenu, showSlashMenu, showImageMenu, showDragHandle, extensions, bubbleMenuExtras, onUpdate, onCreate, uploadImage, collaboration, mentionOptions, referenceOptions, slashCommand, placeholder, }: NeuphloEditorProps): react_jsx_runtime.JSX.Element;
|
|
41
42
|
|
|
42
43
|
type ExtraRenderer = (editor: Editor$1) => ReactNode;
|
|
43
44
|
type TextMenuProps = {
|
|
@@ -47,4 +48,11 @@ type TextMenuProps = {
|
|
|
47
48
|
};
|
|
48
49
|
declare function TextMenu({ className, leadingExtras, trailingExtras, }: TextMenuProps): react_jsx_runtime.JSX.Element | null;
|
|
49
50
|
|
|
50
|
-
|
|
51
|
+
type TableOfContentsProps = {
|
|
52
|
+
className?: string;
|
|
53
|
+
itemClassName?: string;
|
|
54
|
+
activeClassName?: string;
|
|
55
|
+
};
|
|
56
|
+
declare function TableOfContents({ className, itemClassName, activeClassName, }: TableOfContentsProps): react_jsx_runtime.JSX.Element | null;
|
|
57
|
+
|
|
58
|
+
export { type BubbleMenuExtra, type BubbleMenuExtraRenderer, type BubbleMenuExtras, Editor, type NeuphloEditorProps as EditorProps, TableOfContents, type TableOfContentsProps, TextMenu, type TextMenuProps };
|