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

draftail

Package Overview
Dependencies
Maintainers
4
Versions
56
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-dev-5aaec14 to 2.0.0-dev-6ed2d18

35

dist/draftail.d.ts

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

/** Shorthand to remove an entity, and the related block. */
onRemove: (entityKey: string, blockKey: string) => void;
onRemove: (entityKey: string, blockKey?: string) => void;
/** Optionally set the overriding text directionality for this editor. */

@@ -108,7 +108,9 @@ textDirectionality: TextDirectionality;

/** Shorthand to edit entity data. */
onEditEntity: (entityKey: string) => void;
onEditEntity: () => void;
/** Shorthand to remove an entity, and the related block. */
onRemoveEntity: (entityKey: string, blockKey: string) => void;
onRemoveEntity: () => void;
/** Update the editorState with arbitrary changes. */
onChange: (nextState: EditorState) => void;
/** Optionally set the overriding text directionality for this editor. */
textDirectionality: TextDirectionality;
};

@@ -177,8 +179,10 @@ }

noResultsText?: string;
tooltipZIndex?: number;
}
declare const CommandPalette: {
({ blockTypes, entityTypes, enableHorizontalRule, comboPlacement, noResultsText, commands, getEditorState, onCompleteSource, onRequestSource, }: CommandPaletteProps): JSX.Element | null;
({ blockTypes, entityTypes, enableHorizontalRule, comboPlacement, noResultsText, tooltipZIndex, commands, getEditorState, onCompleteSource, onRequestSource, }: CommandPaletteProps): JSX.Element;
defaultProps: {
comboPlacement: _popperjs_core.Placement | undefined;
noResultsText: string;
tooltipZIndex: number;
};

@@ -327,3 +331,3 @@ };

onEditEntity(entityKey: string): void;
onRemoveEntity(entityKey: string, blockKey: string): void;
onRemoveEntity(entityKey: string, blockKey?: string): void;
onUndoRedo(type: string): void;

@@ -370,5 +374,6 @@ onRequestSource(entityType: string): void;

unlockEditor: () => void;
onEditEntity: (entityKey: string) => void;
onRemoveEntity: (entityKey: string, blockKey: string) => void;
onEditEntity: () => void;
onRemoveEntity: () => void;
onChange: (nextState: EditorState) => void;
textDirectionality: TextDirectionality;
};

@@ -386,3 +391,3 @@ } | null;

interface IconProps {
icon: IconProp;
icon?: IconProp;
title?: string | null;

@@ -418,9 +423,11 @@ className?: string | null;

declare type InlineToolbarProps = ToolbarProps;
interface InlineToolbarProps extends ToolbarProps {
tooltipPlacement: TippyProps["placement"];
tooltipZIndex: number;
}
declare const InlineToolbar: {
(props: InlineToolbarProps): JSX.Element;
defaultProps: {
tooltip: {
placement: string;
};
tooltipPlacement: _popperjs_core.Placement | undefined;
tooltipZIndex: number;
};

@@ -436,5 +443,6 @@ };

noResultsText: string;
tooltipZIndex: number;
}
declare const BlockToolbar: {
({ triggerLabel, triggerIcon, comboLabel, comboPlaceholder, comboPlacement, noResultsText, commands, getEditorState, blockTypes, currentBlock, currentBlockKey, onRequestSource, onCompleteSource, entityTypes, addHR, enableHorizontalRule, }: BlockToolbarProps): JSX.Element;
({ triggerLabel, triggerIcon, comboLabel, comboPlaceholder, comboPlacement, noResultsText, tooltipZIndex, commands, getEditorState, blockTypes, currentBlock, currentBlockKey, onRequestSource, onCompleteSource, entityTypes, addHR, enableHorizontalRule, }: BlockToolbarProps): JSX.Element;
defaultProps: {

@@ -447,2 +455,3 @@ triggerLabel: string;

noResultsText: string;
tooltipZIndex: number;
};

@@ -449,0 +458,0 @@ };

{
"name": "draftail",
"version": "2.0.0-dev-5aaec14",
"version": "2.0.0-dev-6ed2d18",
"description": "📝🍸 A configurable rich text editor built with Draft.js",

@@ -63,2 +63,3 @@ "author": "Springload",

"@types/jest-axe": "^3.5.3",
"@types/prismjs": "^1.26.0",
"@types/react": "^16.14.26",

@@ -65,0 +66,0 @@ "@types/react-dom": "^16.9.16",

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

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