You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

slate-react

Package Overview
Dependencies
Maintainers
5
Versions
838
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slate-react - npm Package Compare versions

Comparing version

to
0.108.0-20240807193430

15

dist/components/editable.d.ts

@@ -51,3 +51,16 @@ import React from 'react';

*/
export declare const Editable: (props: EditableProps) => JSX.Element;
export declare const Editable: React.ForwardRefExoticComponent<{
decorate?: ((entry: NodeEntry) => Range[]) | undefined;
onDOMBeforeInput?: ((event: InputEvent) => void) | undefined;
placeholder?: string | undefined;
readOnly?: boolean | undefined;
role?: string | undefined;
style?: React.CSSProperties | undefined;
renderElement?: ((props: RenderElementProps) => JSX.Element) | undefined;
renderLeaf?: ((props: RenderLeafProps) => JSX.Element) | undefined;
renderPlaceholder?: ((props: RenderPlaceholderProps) => JSX.Element) | undefined;
scrollSelectionIntoView?: ((editor: ReactEditor, domRange: DOMRange) => void) | undefined;
as?: React.ElementType<any> | undefined;
disableDefaultStyles?: boolean | undefined;
} & React.TextareaHTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
/**

@@ -54,0 +67,0 @@ * The props that get passed to renderPlaceholder

6

package.json
{
"name": "slate-react",
"description": "Tools for building completely customizable richtext editors with React.",
"version": "0.107.1",
"version": "0.108.0-20240807193430",
"license": "MIT",

@@ -18,4 +18,2 @@ "repository": "git://github.com/ianstormtaylor/slate.git",

"@juggle/resize-observer": "^3.4.0",
"@types/is-hotkey": "^0.1.8",
"@types/lodash": "^4.14.200",
"direction": "^1.0.4",

@@ -31,4 +29,6 @@ "is-hotkey": "^0.2.0",

"@testing-library/react": "^14.0.0",
"@types/is-hotkey": "^0.1.8",
"@types/jest": "29.5.6",
"@types/jsdom": "^21.1.4",
"@types/lodash": "^4.14.200",
"@types/react": "^18.2.41",

@@ -35,0 +35,0 @@ "@types/react-dom": "^18.2.17",

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 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 too big to display