@tiptap/react
Advanced tools
Comparing version 2.7.3 to 2.7.4
@@ -1058,3 +1058,3 @@ import { BubbleMenuPlugin } from '@tiptap/extension-bubble-menu'; | ||
*/ | ||
function EditorProvider({ children, slotAfter, slotBefore, ...editorOptions }) { | ||
function EditorProvider({ children, slotAfter, slotBefore, editorContainerProps = {}, ...editorOptions }) { | ||
const editor = useEditor(editorOptions); | ||
@@ -1066,3 +1066,3 @@ if (!editor) { | ||
slotBefore, | ||
React.createElement(EditorConsumer, null, ({ editor: currentEditor }) => (React.createElement(EditorContent, { editor: currentEditor }))), | ||
React.createElement(EditorConsumer, null, ({ editor: currentEditor }) => (React.createElement(EditorContent, { editor: currentEditor, ...editorContainerProps }))), | ||
children, | ||
@@ -1069,0 +1069,0 @@ slotAfter)); |
@@ -1057,3 +1057,3 @@ (function (global, factory) { | ||
*/ | ||
function EditorProvider({ children, slotAfter, slotBefore, ...editorOptions }) { | ||
function EditorProvider({ children, slotAfter, slotBefore, editorContainerProps = {}, ...editorOptions }) { | ||
const editor = useEditor(editorOptions); | ||
@@ -1065,3 +1065,3 @@ if (!editor) { | ||
slotBefore, | ||
React.createElement(EditorConsumer, null, ({ editor: currentEditor }) => (React.createElement(EditorContent, { editor: currentEditor }))), | ||
React.createElement(EditorConsumer, null, ({ editor: currentEditor }) => (React.createElement(EditorContent, { editor: currentEditor, ...editorContainerProps }))), | ||
children, | ||
@@ -1068,0 +1068,0 @@ slotAfter)); |
import { Editor } from '@tiptap/core'; | ||
import React, { ReactNode } from 'react'; | ||
import React, { HTMLAttributes, ReactNode } from 'react'; | ||
import { UseEditorOptions } from './useEditor.js'; | ||
@@ -17,2 +17,3 @@ export type EditorContextValue = { | ||
slotAfter?: ReactNode; | ||
editorContainerProps?: HTMLAttributes<HTMLDivElement>; | ||
} & UseEditorOptions; | ||
@@ -24,2 +25,2 @@ /** | ||
*/ | ||
export declare function EditorProvider({ children, slotAfter, slotBefore, ...editorOptions }: EditorProviderProps): React.JSX.Element | null; | ||
export declare function EditorProvider({ children, slotAfter, slotBefore, editorContainerProps, ...editorOptions }: EditorProviderProps): React.JSX.Element | null; |
{ | ||
"name": "@tiptap/react", | ||
"description": "React components for tiptap", | ||
"version": "2.7.3", | ||
"version": "2.7.4", | ||
"homepage": "https://tiptap.dev", | ||
@@ -32,4 +32,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@tiptap/extension-bubble-menu": "^2.7.3", | ||
"@tiptap/extension-floating-menu": "^2.7.3", | ||
"@tiptap/extension-bubble-menu": "^2.7.4", | ||
"@tiptap/extension-floating-menu": "^2.7.4", | ||
"@types/use-sync-external-store": "^0.0.6", | ||
@@ -40,4 +40,4 @@ "fast-deep-equal": "^3", | ||
"devDependencies": { | ||
"@tiptap/core": "^2.7.3", | ||
"@tiptap/pm": "^2.7.3", | ||
"@tiptap/core": "^2.7.4", | ||
"@tiptap/pm": "^2.7.4", | ||
"@types/react": "^18.2.14", | ||
@@ -44,0 +44,0 @@ "@types/react-dom": "^18.2.6", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
702249
9778