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

@seafile/slate-react

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seafile/slate-react - npm Package Compare versions

Comparing version 0.92.4 to 0.92.5

dist/cursor.d.ts

10

dist/components/editable.d.ts
import React from 'react';
import { Element, NodeEntry, Range, Text, Point } from '@seafile/slate';
import { Element, NodeEntry, Range, Text } from '@seafile/slate';
import { ReactEditor } from '../plugin/react-editor';
import { DOMRange } from '../utils/dom';
import { Cursors } from '../cursor';
/**

@@ -30,9 +31,2 @@ * `RenderElementProps` are passed to the `renderElement` handler.

}
export interface Cursor {
anchor: Point;
focus: Point;
color: string;
isCaret: boolean;
}
export declare type Cursors = Cursor[] | null | undefined;
/**

@@ -39,0 +33,0 @@ * `EditableProps` are passed to the `<Editable>` component.

import React from 'react';
import { Range, Element as SlateElement } from '@seafile/slate';
import { Cursors, RenderElementProps, RenderLeafProps, RenderPlaceholderProps } from './editable';
import { RenderElementProps, RenderLeafProps, RenderPlaceholderProps } from './editable';
import { Cursors } from '../cursor';
/**

@@ -14,3 +15,2 @@ * Element.

selection: Range | null;
hasCursor?: Boolean | undefined;
cursors?: Cursors;

@@ -25,3 +25,2 @@ }) => JSX.Element;

selection: Range | null;
hasCursor?: Boolean | undefined;
cursors?: Cursors;

@@ -28,0 +27,0 @@ }) => JSX.Element>;

4

dist/hooks/use-children.d.ts
/// <reference types="react" />
import { Range, Element, Ancestor } from '@seafile/slate';
import { Cursors, RenderElementProps, RenderLeafProps, RenderPlaceholderProps } from '../components/editable';
import { RenderElementProps, RenderLeafProps, RenderPlaceholderProps } from '../components/editable';
import { Cursors } from '../cursor';
/**

@@ -15,5 +16,4 @@ * Children.

cursors?: Cursors;
hasCursor?: Boolean | undefined;
}) => JSX.Element[];
export default useChildren;
//# sourceMappingURL=use-children.d.ts.map
import { NodeEntry, Range } from '@seafile/slate';
import { Cursors } from '../components/editable';
import { Cursors } from '../cursor';
export declare const hasCursors: (cursors: Cursors, node: NodeEntry<import("@seafile/slate").Node>) => Boolean;
export declare const decorateCursors: (cursors: Cursors, nodeEntry: NodeEntry<import("@seafile/slate").Node>) => Range[];
//# sourceMappingURL=cusors.d.ts.map
{
"name": "@seafile/slate-react",
"description": "Tools for building completely customizable richtext editors with React.",
"version": "0.92.4",
"version": "0.92.5",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": "git://github.com/ianstormtaylor/slate.git",

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