Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: let StarterKit be imported as common js module via named import #2967

Merged
merged 1 commit into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/starter-kit/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { StarterKit } from './starter-kit'

export type { StarterKitOptions } from './starter-kit'
export * from './starter-kit'

export default StarterKit
36 changes: 18 additions & 18 deletions packages/starter-kit/src/starter-kit.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import { Extension } from '@tiptap/core'
import Blockquote, { BlockquoteOptions } from '@tiptap/extension-blockquote'
import Bold, { BoldOptions } from '@tiptap/extension-bold'
import BulletList, { BulletListOptions } from '@tiptap/extension-bullet-list'
import Code, { CodeOptions } from '@tiptap/extension-code'
import CodeBlock, { CodeBlockOptions } from '@tiptap/extension-code-block'
import Document from '@tiptap/extension-document'
import Dropcursor, { DropcursorOptions } from '@tiptap/extension-dropcursor'
import Gapcursor from '@tiptap/extension-gapcursor'
import HardBreak, { HardBreakOptions } from '@tiptap/extension-hard-break'
import Heading, { HeadingOptions } from '@tiptap/extension-heading'
import History, { HistoryOptions } from '@tiptap/extension-history'
import HorizontalRule, { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'
import Italic, { ItalicOptions } from '@tiptap/extension-italic'
import ListItem, { ListItemOptions } from '@tiptap/extension-list-item'
import OrderedList, { OrderedListOptions } from '@tiptap/extension-ordered-list'
import Paragraph, { ParagraphOptions } from '@tiptap/extension-paragraph'
import Strike, { StrikeOptions } from '@tiptap/extension-strike'
import Text from '@tiptap/extension-text'
import { Blockquote, BlockquoteOptions } from '@tiptap/extension-blockquote'
import { Bold, BoldOptions } from '@tiptap/extension-bold'
import { BulletList, BulletListOptions } from '@tiptap/extension-bullet-list'
import { Code, CodeOptions } from '@tiptap/extension-code'
import { CodeBlock, CodeBlockOptions } from '@tiptap/extension-code-block'
import { Document } from '@tiptap/extension-document'
import { Dropcursor, DropcursorOptions } from '@tiptap/extension-dropcursor'
import { Gapcursor } from '@tiptap/extension-gapcursor'
import { HardBreak, HardBreakOptions } from '@tiptap/extension-hard-break'
import { Heading, HeadingOptions } from '@tiptap/extension-heading'
import { History, HistoryOptions } from '@tiptap/extension-history'
import { HorizontalRule, HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'
import { Italic, ItalicOptions } from '@tiptap/extension-italic'
import { ListItem, ListItemOptions } from '@tiptap/extension-list-item'
import { OrderedList, OrderedListOptions } from '@tiptap/extension-ordered-list'
import { Paragraph, ParagraphOptions } from '@tiptap/extension-paragraph'
import { Strike, StrikeOptions } from '@tiptap/extension-strike'
import { Text } from '@tiptap/extension-text'

export interface StarterKitOptions {
blockquote: Partial<BlockquoteOptions> | false,
Expand Down