Comparing version 2.0.0-rc.2 to 2.0.0-rc.3
@@ -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 }; |
{ | ||
"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
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
265614
23
5599
+ Addedcompute-scroll-into-view@2.0.4(transitive)
+ Addeddownshift@7.6.2(transitive)
- Removedcompute-scroll-into-view@1.0.20(transitive)
- Removeddownshift@6.1.12(transitive)
Updateddownshift@^7.0.4