@tiptap/react 3.10.7 → 3.11.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.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { EditorOptions, Editor, MarkViewRendererOptions, MarkView, MarkViewProps, MarkViewRenderer, NodeViewProps, NodeViewRendererOptions, NodeView, NodeViewRendererProps, NodeViewRenderer } from '@tiptap/core';
|
|
3
3
|
export * from '@tiptap/core';
|
|
4
4
|
import * as React from 'react';
|
|
@@ -63,7 +63,7 @@ type EditorProviderProps = {
|
|
|
63
63
|
* It allows the editor to be accessible across the entire component tree
|
|
64
64
|
* with `useCurrentEditor`.
|
|
65
65
|
*/
|
|
66
|
-
declare function EditorProvider({ children, slotAfter, slotBefore, editorContainerProps, ...editorOptions }: EditorProviderProps):
|
|
66
|
+
declare function EditorProvider({ children, slotAfter, slotBefore, editorContainerProps, ...editorOptions }: EditorProviderProps): react_jsx_runtime.JSX.Element | null;
|
|
67
67
|
|
|
68
68
|
interface EditorContentProps extends HTMLProps<HTMLDivElement> {
|
|
69
69
|
editor: Editor | null;
|
|
@@ -80,14 +80,14 @@ declare class PureEditorContent extends React__default.Component<EditorContentPr
|
|
|
80
80
|
componentDidUpdate(): void;
|
|
81
81
|
init(): void;
|
|
82
82
|
componentWillUnmount(): void;
|
|
83
|
-
render():
|
|
83
|
+
render(): react_jsx_runtime.JSX.Element;
|
|
84
84
|
}
|
|
85
85
|
declare const EditorContent: React__default.NamedExoticComponent<Omit<EditorContentProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
86
86
|
|
|
87
87
|
type NodeViewContentProps<T extends keyof React__default.JSX.IntrinsicElements = 'div'> = {
|
|
88
88
|
as?: NoInfer<T>;
|
|
89
89
|
} & ComponentProps<T>;
|
|
90
|
-
declare function NodeViewContent<T extends keyof React__default.JSX.IntrinsicElements = 'div'>({ as: Tag, ...props }: NodeViewContentProps<T>):
|
|
90
|
+
declare function NodeViewContent<T extends keyof React__default.JSX.IntrinsicElements = 'div'>({ as: Tag, ...props }: NodeViewContentProps<T>): react_jsx_runtime.JSX.Element;
|
|
91
91
|
|
|
92
92
|
interface NodeViewWrapperProps {
|
|
93
93
|
[key: string]: any;
|
|
@@ -170,7 +170,7 @@ declare const ReactMarkViewContext: React__default.Context<MarkViewContextProps>
|
|
|
170
170
|
type MarkViewContentProps<T extends keyof React__default.JSX.IntrinsicElements = 'span'> = {
|
|
171
171
|
as?: T;
|
|
172
172
|
} & Omit<React__default.ComponentProps<T>, 'as'>;
|
|
173
|
-
declare const MarkViewContent: <T extends keyof React__default.JSX.IntrinsicElements = "span">(props: MarkViewContentProps<T>) =>
|
|
173
|
+
declare const MarkViewContent: <T extends keyof React__default.JSX.IntrinsicElements = "span">(props: MarkViewContentProps<T>) => react_jsx_runtime.JSX.Element;
|
|
174
174
|
interface ReactMarkViewRendererOptions extends MarkViewRendererOptions {
|
|
175
175
|
/**
|
|
176
176
|
* The tag name of the element wrapping the React component.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { EditorOptions, Editor, MarkViewRendererOptions, MarkView, MarkViewProps, MarkViewRenderer, NodeViewProps, NodeViewRendererOptions, NodeView, NodeViewRendererProps, NodeViewRenderer } from '@tiptap/core';
|
|
3
3
|
export * from '@tiptap/core';
|
|
4
4
|
import * as React from 'react';
|
|
@@ -63,7 +63,7 @@ type EditorProviderProps = {
|
|
|
63
63
|
* It allows the editor to be accessible across the entire component tree
|
|
64
64
|
* with `useCurrentEditor`.
|
|
65
65
|
*/
|
|
66
|
-
declare function EditorProvider({ children, slotAfter, slotBefore, editorContainerProps, ...editorOptions }: EditorProviderProps):
|
|
66
|
+
declare function EditorProvider({ children, slotAfter, slotBefore, editorContainerProps, ...editorOptions }: EditorProviderProps): react_jsx_runtime.JSX.Element | null;
|
|
67
67
|
|
|
68
68
|
interface EditorContentProps extends HTMLProps<HTMLDivElement> {
|
|
69
69
|
editor: Editor | null;
|
|
@@ -80,14 +80,14 @@ declare class PureEditorContent extends React__default.Component<EditorContentPr
|
|
|
80
80
|
componentDidUpdate(): void;
|
|
81
81
|
init(): void;
|
|
82
82
|
componentWillUnmount(): void;
|
|
83
|
-
render():
|
|
83
|
+
render(): react_jsx_runtime.JSX.Element;
|
|
84
84
|
}
|
|
85
85
|
declare const EditorContent: React__default.NamedExoticComponent<Omit<EditorContentProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
86
86
|
|
|
87
87
|
type NodeViewContentProps<T extends keyof React__default.JSX.IntrinsicElements = 'div'> = {
|
|
88
88
|
as?: NoInfer<T>;
|
|
89
89
|
} & ComponentProps<T>;
|
|
90
|
-
declare function NodeViewContent<T extends keyof React__default.JSX.IntrinsicElements = 'div'>({ as: Tag, ...props }: NodeViewContentProps<T>):
|
|
90
|
+
declare function NodeViewContent<T extends keyof React__default.JSX.IntrinsicElements = 'div'>({ as: Tag, ...props }: NodeViewContentProps<T>): react_jsx_runtime.JSX.Element;
|
|
91
91
|
|
|
92
92
|
interface NodeViewWrapperProps {
|
|
93
93
|
[key: string]: any;
|
|
@@ -170,7 +170,7 @@ declare const ReactMarkViewContext: React__default.Context<MarkViewContextProps>
|
|
|
170
170
|
type MarkViewContentProps<T extends keyof React__default.JSX.IntrinsicElements = 'span'> = {
|
|
171
171
|
as?: T;
|
|
172
172
|
} & Omit<React__default.ComponentProps<T>, 'as'>;
|
|
173
|
-
declare const MarkViewContent: <T extends keyof React__default.JSX.IntrinsicElements = "span">(props: MarkViewContentProps<T>) =>
|
|
173
|
+
declare const MarkViewContent: <T extends keyof React__default.JSX.IntrinsicElements = "span">(props: MarkViewContentProps<T>) => react_jsx_runtime.JSX.Element;
|
|
174
174
|
interface ReactMarkViewRendererOptions extends MarkViewRendererOptions {
|
|
175
175
|
/**
|
|
176
176
|
* The tag name of the element wrapping the React component.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/react",
|
|
3
3
|
"description": "React components for tiptap",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.11.0",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -48,20 +48,20 @@
|
|
|
48
48
|
"@types/react-dom": "^19.0.0",
|
|
49
49
|
"react": "^19.0.0",
|
|
50
50
|
"react-dom": "^19.0.0",
|
|
51
|
-
"@tiptap/core": "^3.
|
|
52
|
-
"@tiptap/pm": "^3.
|
|
51
|
+
"@tiptap/core": "^3.11.0",
|
|
52
|
+
"@tiptap/pm": "^3.11.0"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
|
-
"@tiptap/extension-bubble-menu": "^3.
|
|
56
|
-
"@tiptap/extension-floating-menu": "^3.
|
|
55
|
+
"@tiptap/extension-bubble-menu": "^3.11.0",
|
|
56
|
+
"@tiptap/extension-floating-menu": "^3.11.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
60
60
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
61
61
|
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
62
62
|
"@types/react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
63
|
-
"@tiptap/core": "^3.
|
|
64
|
-
"@tiptap/pm": "^3.
|
|
63
|
+
"@tiptap/core": "^3.11.0",
|
|
64
|
+
"@tiptap/pm": "^3.11.0"
|
|
65
65
|
},
|
|
66
66
|
"repository": {
|
|
67
67
|
"type": "git",
|