@draft-js-plugins/inline-toolbar
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -8,2 +8,6 @@ # Change Log | ||
## 4.1.1 | ||
- adjust types to fix issue with anchor plugin [#1802](https://github.com/draft-js-plugins/draft-js-plugins/issues/1802) | ||
## 4.1.0 | ||
@@ -10,0 +14,0 @@ |
@@ -6,2 +6,7 @@ import React, { ComponentType, CSSProperties, FC, ReactElement } from 'react'; | ||
import { InlineToolbarPluginTheme } from '../../theme'; | ||
interface OverrideContentProps { | ||
getEditorState: () => EditorState; | ||
setEditorState: (editorState: EditorState) => void; | ||
onOverrideContent: (content: ComponentType<unknown> | undefined) => void; | ||
} | ||
export interface ToolbarChildrenProps { | ||
@@ -11,3 +16,3 @@ theme: DraftJsButtonTheme; | ||
setEditorState: (editorState: EditorState) => void; | ||
onOverrideContent: (content: ComponentType<ToolbarChildrenProps> | undefined) => void; | ||
onOverrideContent: (content: ComponentType<OverrideContentProps> | undefined) => void; | ||
} | ||
@@ -39,3 +44,3 @@ interface ToolbarProps { | ||
*/ | ||
onOverrideContent: (overrideContent: ComponentType<ToolbarChildrenProps> | undefined) => void; | ||
onOverrideContent: (overrideContent: ComponentType<OverrideContentProps> | undefined) => void; | ||
onSelectionChanged: () => void; | ||
@@ -42,0 +47,0 @@ getStyle(): CSSProperties; |
@@ -35,5 +35,15 @@ 'use strict'; | ||
subClass.prototype.constructor = subClass; | ||
subClass.__proto__ = superClass; | ||
_setPrototypeOf(subClass, superClass); | ||
} | ||
function _setPrototypeOf(o, p) { | ||
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _setPrototypeOf(o, p); | ||
} | ||
var Toolbar = /*#__PURE__*/function (_React$Component) { | ||
@@ -40,0 +50,0 @@ _inheritsLoose(Toolbar, _React$Component); |
@@ -27,5 +27,15 @@ import React from 'react'; | ||
subClass.prototype.constructor = subClass; | ||
subClass.__proto__ = superClass; | ||
_setPrototypeOf(subClass, superClass); | ||
} | ||
function _setPrototypeOf(o, p) { | ||
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _setPrototypeOf(o, p); | ||
} | ||
var Toolbar = /*#__PURE__*/function (_React$Component) { | ||
@@ -32,0 +42,0 @@ _inheritsLoose(Toolbar, _React$Component); |
{ | ||
"name": "@draft-js-plugins/inline-toolbar", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "description": "Toolbar Plugin for DraftJS", |
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
24347
514