Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@draft-js-plugins/inline-toolbar

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@draft-js-plugins/inline-toolbar - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

4

CHANGELOG.md

@@ -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 @@

9

lib/components/Toolbar/index.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc