mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-10 17:24:02 +02:00
Remove unused imports from all examples
This commit is contained in:
@@ -8,7 +8,6 @@ import {
|
|||||||
ReactEditor,
|
ReactEditor,
|
||||||
} from 'slate-react'
|
} from 'slate-react'
|
||||||
import {
|
import {
|
||||||
Node,
|
|
||||||
Editor,
|
Editor,
|
||||||
Transforms,
|
Transforms,
|
||||||
Range,
|
Range,
|
||||||
|
@@ -5,14 +5,7 @@ import 'prismjs/components/prism-sql'
|
|||||||
import 'prismjs/components/prism-java'
|
import 'prismjs/components/prism-java'
|
||||||
import React, { useState, useCallback, useMemo } from 'react'
|
import React, { useState, useCallback, useMemo } from 'react'
|
||||||
import { Slate, Editable, withReact } from 'slate-react'
|
import { Slate, Editable, withReact } from 'slate-react'
|
||||||
import {
|
import { Text, createEditor, Element as SlateElement, Descendant } from 'slate'
|
||||||
Text,
|
|
||||||
createEditor,
|
|
||||||
Node,
|
|
||||||
Element as SlateElement,
|
|
||||||
BaseEditor,
|
|
||||||
Descendant,
|
|
||||||
} from 'slate'
|
|
||||||
import { withHistory } from 'slate-history'
|
import { withHistory } from 'slate-history'
|
||||||
import { css } from 'emotion'
|
import { css } from 'emotion'
|
||||||
|
|
||||||
|
@@ -2,7 +2,6 @@ import React, { useState, useMemo } from 'react'
|
|||||||
import {
|
import {
|
||||||
Transforms,
|
Transforms,
|
||||||
createEditor,
|
createEditor,
|
||||||
Node,
|
|
||||||
Element as SlateElement,
|
Element as SlateElement,
|
||||||
Descendant,
|
Descendant,
|
||||||
} from 'slate'
|
} from 'slate'
|
||||||
|
@@ -5,7 +5,6 @@ import {
|
|||||||
Transforms,
|
Transforms,
|
||||||
Text,
|
Text,
|
||||||
createEditor,
|
createEditor,
|
||||||
Node,
|
|
||||||
Element,
|
Element,
|
||||||
Descendant,
|
Descendant,
|
||||||
} from 'slate'
|
} from 'slate'
|
||||||
|
@@ -6,7 +6,6 @@ import {
|
|||||||
Editor,
|
Editor,
|
||||||
Element as SlateElement,
|
Element as SlateElement,
|
||||||
createEditor,
|
createEditor,
|
||||||
Node,
|
|
||||||
Descendant,
|
Descendant,
|
||||||
} from 'slate'
|
} from 'slate'
|
||||||
import { withHistory } from 'slate-history'
|
import { withHistory } from 'slate-history'
|
||||||
|
@@ -2,7 +2,6 @@ import React, { useState, useMemo } from 'react'
|
|||||||
import imageExtensions from 'image-extensions'
|
import imageExtensions from 'image-extensions'
|
||||||
import isUrl from 'is-url'
|
import isUrl from 'is-url'
|
||||||
import {
|
import {
|
||||||
Node,
|
|
||||||
Transforms,
|
Transforms,
|
||||||
createEditor,
|
createEditor,
|
||||||
Element as SlateElement,
|
Element as SlateElement,
|
||||||
|
@@ -2,7 +2,6 @@ import React, { useState, useMemo } from 'react'
|
|||||||
import isUrl from 'is-url'
|
import isUrl from 'is-url'
|
||||||
import { Slate, Editable, withReact, useSlate } from 'slate-react'
|
import { Slate, Editable, withReact, useSlate } from 'slate-react'
|
||||||
import {
|
import {
|
||||||
Node,
|
|
||||||
Transforms,
|
Transforms,
|
||||||
Editor,
|
Editor,
|
||||||
Range,
|
Range,
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import Prism from 'prismjs'
|
import Prism from 'prismjs'
|
||||||
import React, { useState, useCallback, useMemo } from 'react'
|
import React, { useState, useCallback, useMemo } from 'react'
|
||||||
import { Slate, Editable, withReact } from 'slate-react'
|
import { Slate, Editable, withReact } from 'slate-react'
|
||||||
import { Node, Text, createEditor, Element, Descendant } from 'slate'
|
import { Text, createEditor, Element, Descendant } from 'slate'
|
||||||
import { withHistory } from 'slate-history'
|
import { withHistory } from 'slate-history'
|
||||||
import { css } from 'emotion'
|
import { css } from 'emotion'
|
||||||
|
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
import React, { useState, useCallback, useMemo } from 'react'
|
import React, { useState, useCallback, useMemo } from 'react'
|
||||||
import { Slate, Editable, withReact } from 'slate-react'
|
import { Slate, Editable, withReact } from 'slate-react'
|
||||||
import {
|
import {
|
||||||
Node,
|
|
||||||
Editor,
|
Editor,
|
||||||
Transforms,
|
Transforms,
|
||||||
Range,
|
Range,
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
import React, { useMemo, useCallback, useRef, useEffect, useState } from 'react'
|
import React, { useMemo, useCallback, useRef, useEffect, useState } from 'react'
|
||||||
import {
|
import {
|
||||||
Node,
|
|
||||||
Editor,
|
Editor,
|
||||||
Transforms,
|
Transforms,
|
||||||
Range,
|
Range,
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
import React, { useState, useCallback, useMemo } from 'react'
|
import React, { useState, useCallback, useMemo } from 'react'
|
||||||
import { jsx } from 'slate-hyperscript'
|
import { jsx } from 'slate-hyperscript'
|
||||||
import {
|
import {
|
||||||
Node,
|
|
||||||
Transforms,
|
Transforms,
|
||||||
createEditor,
|
createEditor,
|
||||||
Element as SlateElement,
|
Element as SlateElement,
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import React, { useState, useMemo } from 'react'
|
import React, { useState, useMemo } from 'react'
|
||||||
import { createEditor, Descendant, Element, Node } from 'slate'
|
import { createEditor, Descendant, Element } from 'slate'
|
||||||
import { Slate, Editable, withReact } from 'slate-react'
|
import { Slate, Editable, withReact } from 'slate-react'
|
||||||
|
|
||||||
const ReadOnlyExample = () => {
|
const ReadOnlyExample = () => {
|
||||||
|
@@ -6,7 +6,6 @@ import {
|
|||||||
Transforms,
|
Transforms,
|
||||||
createEditor,
|
createEditor,
|
||||||
Descendant,
|
Descendant,
|
||||||
Node,
|
|
||||||
Element as SlateElement,
|
Element as SlateElement,
|
||||||
} from 'slate'
|
} from 'slate'
|
||||||
import { withHistory } from 'slate-history'
|
import { withHistory } from 'slate-history'
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
import React, { useState, useCallback, useMemo } from 'react'
|
import React, { useState, useCallback, useMemo } from 'react'
|
||||||
import { Slate, Editable, withReact } from 'slate-react'
|
import { Slate, Editable, withReact } from 'slate-react'
|
||||||
import { Text, Node, Descendant, createEditor } from 'slate'
|
import { Text, Descendant, createEditor } from 'slate'
|
||||||
import { css } from 'emotion'
|
import { css } from 'emotion'
|
||||||
import { withHistory } from 'slate-history'
|
import { withHistory } from 'slate-history'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user