From b88149c2f95184f01fc2d291c3764d3d66c47528 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Mon, 29 Mar 2021 09:37:24 -0700 Subject: [PATCH] Remove unused imports from all examples --- site/examples/check-lists.tsx | 1 - site/examples/code-highlighting.tsx | 9 +-------- site/examples/editable-voids.tsx | 1 - site/examples/hovering-toolbar.tsx | 1 - site/examples/iframe.tsx | 1 - site/examples/images.tsx | 1 - site/examples/links.tsx | 1 - site/examples/markdown-preview.tsx | 2 +- site/examples/markdown-shortcuts.tsx | 1 - site/examples/mentions.tsx | 1 - site/examples/paste-html.tsx | 1 - site/examples/read-only.tsx | 2 +- site/examples/richtext.tsx | 1 - site/examples/search-highlighting.tsx | 2 +- 14 files changed, 4 insertions(+), 21 deletions(-) diff --git a/site/examples/check-lists.tsx b/site/examples/check-lists.tsx index 65c5ff613..359e305ff 100644 --- a/site/examples/check-lists.tsx +++ b/site/examples/check-lists.tsx @@ -8,7 +8,6 @@ import { ReactEditor, } from 'slate-react' import { - Node, Editor, Transforms, Range, diff --git a/site/examples/code-highlighting.tsx b/site/examples/code-highlighting.tsx index f624b0123..6899fd039 100644 --- a/site/examples/code-highlighting.tsx +++ b/site/examples/code-highlighting.tsx @@ -5,14 +5,7 @@ import 'prismjs/components/prism-sql' import 'prismjs/components/prism-java' import React, { useState, useCallback, useMemo } from 'react' import { Slate, Editable, withReact } from 'slate-react' -import { - Text, - createEditor, - Node, - Element as SlateElement, - BaseEditor, - Descendant, -} from 'slate' +import { Text, createEditor, Element as SlateElement, Descendant } from 'slate' import { withHistory } from 'slate-history' import { css } from 'emotion' diff --git a/site/examples/editable-voids.tsx b/site/examples/editable-voids.tsx index 35f0e2124..bcbda8c90 100644 --- a/site/examples/editable-voids.tsx +++ b/site/examples/editable-voids.tsx @@ -2,7 +2,6 @@ import React, { useState, useMemo } from 'react' import { Transforms, createEditor, - Node, Element as SlateElement, Descendant, } from 'slate' diff --git a/site/examples/hovering-toolbar.tsx b/site/examples/hovering-toolbar.tsx index bbe5c9569..5de0dc68b 100644 --- a/site/examples/hovering-toolbar.tsx +++ b/site/examples/hovering-toolbar.tsx @@ -5,7 +5,6 @@ import { Transforms, Text, createEditor, - Node, Element, Descendant, } from 'slate' diff --git a/site/examples/iframe.tsx b/site/examples/iframe.tsx index b208ee42b..860c847b6 100644 --- a/site/examples/iframe.tsx +++ b/site/examples/iframe.tsx @@ -6,7 +6,6 @@ import { Editor, Element as SlateElement, createEditor, - Node, Descendant, } from 'slate' import { withHistory } from 'slate-history' diff --git a/site/examples/images.tsx b/site/examples/images.tsx index c18c18d45..335013531 100644 --- a/site/examples/images.tsx +++ b/site/examples/images.tsx @@ -2,7 +2,6 @@ import React, { useState, useMemo } from 'react' import imageExtensions from 'image-extensions' import isUrl from 'is-url' import { - Node, Transforms, createEditor, Element as SlateElement, diff --git a/site/examples/links.tsx b/site/examples/links.tsx index 71028394f..66e1e14ff 100644 --- a/site/examples/links.tsx +++ b/site/examples/links.tsx @@ -2,7 +2,6 @@ import React, { useState, useMemo } from 'react' import isUrl from 'is-url' import { Slate, Editable, withReact, useSlate } from 'slate-react' import { - Node, Transforms, Editor, Range, diff --git a/site/examples/markdown-preview.tsx b/site/examples/markdown-preview.tsx index 55a2e6f85..280cbaab7 100644 --- a/site/examples/markdown-preview.tsx +++ b/site/examples/markdown-preview.tsx @@ -1,7 +1,7 @@ import Prism from 'prismjs' import React, { useState, useCallback, useMemo } from '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 { css } from 'emotion' diff --git a/site/examples/markdown-shortcuts.tsx b/site/examples/markdown-shortcuts.tsx index a6f73b4b1..e4422644e 100644 --- a/site/examples/markdown-shortcuts.tsx +++ b/site/examples/markdown-shortcuts.tsx @@ -1,7 +1,6 @@ import React, { useState, useCallback, useMemo } from 'react' import { Slate, Editable, withReact } from 'slate-react' import { - Node, Editor, Transforms, Range, diff --git a/site/examples/mentions.tsx b/site/examples/mentions.tsx index 5d69c516b..c36ef8b6a 100644 --- a/site/examples/mentions.tsx +++ b/site/examples/mentions.tsx @@ -1,6 +1,5 @@ import React, { useMemo, useCallback, useRef, useEffect, useState } from 'react' import { - Node, Editor, Transforms, Range, diff --git a/site/examples/paste-html.tsx b/site/examples/paste-html.tsx index e4e154394..fd2dc3d0b 100644 --- a/site/examples/paste-html.tsx +++ b/site/examples/paste-html.tsx @@ -1,7 +1,6 @@ import React, { useState, useCallback, useMemo } from 'react' import { jsx } from 'slate-hyperscript' import { - Node, Transforms, createEditor, Element as SlateElement, diff --git a/site/examples/read-only.tsx b/site/examples/read-only.tsx index e27317db2..75a02a4a6 100644 --- a/site/examples/read-only.tsx +++ b/site/examples/read-only.tsx @@ -1,5 +1,5 @@ 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' const ReadOnlyExample = () => { diff --git a/site/examples/richtext.tsx b/site/examples/richtext.tsx index bc530742a..294c904c9 100644 --- a/site/examples/richtext.tsx +++ b/site/examples/richtext.tsx @@ -6,7 +6,6 @@ import { Transforms, createEditor, Descendant, - Node, Element as SlateElement, } from 'slate' import { withHistory } from 'slate-history' diff --git a/site/examples/search-highlighting.tsx b/site/examples/search-highlighting.tsx index abe1a331e..38285f8d8 100644 --- a/site/examples/search-highlighting.tsx +++ b/site/examples/search-highlighting.tsx @@ -1,6 +1,6 @@ import React, { useState, useCallback, useMemo } from '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 { withHistory } from 'slate-history'