@seafile/slate-react
Advanced tools
Comparing version 0.92.4 to 0.92.5
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>; |
/// <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
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
84
1188499
10281