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

draftail

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draftail - npm Package Compare versions

Comparing version 2.0.0-rc.2 to 2.0.0-rc.3

src/components/ComboBox/ComboBox.scss

30

dist/draftail.d.ts

@@ -138,3 +138,2 @@ import React$1, { CSSProperties, Component, PureComponent } from 'react';

option: CommandControl;
getEditorState: () => EditorState;
}) => JSX.Element;

@@ -397,2 +396,3 @@ }

}
/**

@@ -409,2 +409,4 @@ * Icon as SVG element. Can optionally render a React element instead.

icon?: IconProp | null;
className?: string | null;
tooltipDirection?: "up" | "down";
onClick?: ((name: string) => void) | null;

@@ -426,7 +428,23 @@ }

declare type ToolbarType = "floating" | "sticky";
interface PinButton extends Control {
floatingLabel?: Control["label"];
stickyLabel?: Control["label"];
floatingDescription?: Control["description"];
stickyDescription?: Control["description"];
floatingIcon?: Control["icon"];
stickyIcon?: Control["icon"];
}
interface InlineToolbarProps extends ToolbarProps {
pinButton?: PinButton;
defaultToolbar?: ToolbarType;
onSetToolbar?: (toolbar: ToolbarType, callback: () => void) => void;
}
declare const InlineToolbar: ({ pinButton, defaultToolbar, onSetToolbar, controls, ...otherProps }: InlineToolbarProps) => JSX.Element;
interface FloatingToolbarProps extends ToolbarProps {
tooltipPlacement?: TooltipPlacement;
tooltipZIndex?: number;
}
declare const InlineToolbar: ({ controls, getEditorState, onChange, tooltipZIndex, tooltipPlacement, ...otherProps }: InlineToolbarProps) => JSX.Element;
declare const FloatingToolbar: ({ controls, getEditorState, onChange, tooltipZIndex, tooltipPlacement, ...otherProps }: FloatingToolbarProps) => JSX.Element;

@@ -543,3 +561,7 @@ interface BlockToolbarProps extends ToolbarProps {

handleNewLine(editorState: EditorState, event: React.KeyboardEvent): false | EditorState;
getCommandPalettePrompt(editorState: EditorState): string;
getCommandPalettePrompt(editorState: EditorState): {
text: string;
block: ContentBlock;
position: number;
} | null;
};

@@ -672,2 +694,2 @@

export { BLOCK_TYPE, BlockToolbar, BlockToolbarProps, BlockType, BlockTypeControl, BoolControl, CommandCategory, CommandControl, CommandPalette, CommandPaletteProps, Control, ControlComponentProps, ControlControl, _default as DraftUtils, DraftailEditor, DraftailEditorProps, DraftailEditorState, ENTITY_TYPE, EntityBlockProps, EntityDecoratorProps, EntitySourceProps, EntityType, EntityTypeControl, INLINE_STYLE, Icon, IconProp, IconProps, InlineStyle, InlineStyleControl, InlineToolbar, InlineToolbarProps, KeyboardShortcutType, KnownFormatType, LegacyControlControl, MetaToolbar, MetaToolbarProps, TextDirectionality, Toolbar, ToolbarButton, ToolbarButtonProps, ToolbarProps, Tooltip, TooltipPlacement, TooltipPosition, TooltipProps };
export { BLOCK_TYPE, BlockToolbar, BlockToolbarProps, BlockType, BlockTypeControl, BoolControl, CommandCategory, CommandControl, CommandPalette, CommandPaletteProps, Control, ControlComponentProps, ControlControl, _default as DraftUtils, DraftailEditor, DraftailEditorProps, DraftailEditorState, ENTITY_TYPE, EntityBlockProps, EntityDecoratorProps, EntitySourceProps, EntityType, EntityTypeControl, FloatingToolbar, FloatingToolbarProps, INLINE_STYLE, Icon, IconProp, IconProps, InlineStyle, InlineStyleControl, InlineToolbar, InlineToolbarProps, KeyboardShortcutType, KnownFormatType, LegacyControlControl, MetaToolbar, MetaToolbarProps, TextDirectionality, Toolbar, ToolbarButton, ToolbarButtonProps, ToolbarProps, Tooltip, TooltipPlacement, TooltipPosition, TooltipProps };

4

package.json
{
"name": "draftail",
"version": "2.0.0-rc.2",
"version": "2.0.0-rc.3",
"description": "📝🍸 A configurable rich text editor built with Draft.js",

@@ -45,3 +45,3 @@ "author": "Springload",

"decorate-component-with-props": "^1.0.2",
"downshift": "^6.1.7",
"downshift": "^7.0.4",
"draft-js-plugins-editor": "^2.1.1",

@@ -48,0 +48,0 @@ "draftjs-conductor": "^3.0.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

Sorry, the diff of this file is not supported yet

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