snapshot of https://github.com/ueberdosis/tiptap.git (main, 2026-09-15; blobs > 131072B omitted)
Some checks failed
Verify / Install node dependencies (push) Failing after 2s
Verify / Build packages (push) Has been skipped
Verify / Check linting & formatting (push) Has been skipped
Verify / Run unit tests (push) Has been skipped
Verify / Run e2e tests (shard 1/4) (push) Has been skipped
Verify / Run e2e tests (shard 2/4) (push) Has been skipped
Verify / Run e2e tests (shard 3/4) (push) Has been skipped
Verify / Run e2e tests (shard 4/4) (push) Has been skipped
Publish / Resolve publish config (push) Failing after 2s
Publish / Send notification to Slack (push) Has been skipped
Publish / Send failure notification to Slack (push) Failing after 8s
Verify / Merge e2e reports (push) Has been skipped
Publish / Build (push) Has been skipped
Publish / Bump Versions OR Release to Registry (push) Has been skipped

This commit is contained in:
upstream-mirror
2026-09-15 21:11:02 +05:00
commit 083a46e93b
2115 changed files with 245958 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# @tiptap/starter-kit
[![Version](https://img.shields.io/npm/v/@tiptap/starter-kit.svg?label=version)](https://www.npmjs.com/package/@tiptap/starter-kit)
[![Downloads](https://img.shields.io/npm/dm/@tiptap/starter-kit.svg)](https://npmcharts.com/compare/tiptap?minimal=true)
[![License](https://img.shields.io/npm/l/@tiptap/starter-kit.svg)](https://www.npmjs.com/package/@tiptap/starter-kit)
[![Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub)](https://github.com/sponsors/ueberdosis)
## Introduction
Tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as _New York Times_, _The Guardian_ or _Atlassian_.
## Official Documentation
Documentation can be found on the [Tiptap website](https://tiptap.dev).
## License
Tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md).

View File

@@ -0,0 +1,66 @@
{
"name": "@tiptap/starter-kit",
"version": "3.30.3",
"description": "starter kit for tiptap",
"keywords": [
"tiptap",
"tiptap starter kit"
],
"homepage": "https://tiptap.dev",
"bugs": {
"url": "https://github.com/ueberdosis/tiptap/issues"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ueberdosis/tiptap",
"directory": "packages/starter-kit"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"files": [
"src",
"dist"
],
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": {
"import": "./dist/index.d.ts",
"require": "./dist/index.d.cts"
},
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"scripts": {
"build": "vp pack"
},
"dependencies": {
"@tiptap/core": "workspace:*",
"@tiptap/extension-blockquote": "workspace:*",
"@tiptap/extension-bold": "workspace:*",
"@tiptap/extension-bullet-list": "workspace:*",
"@tiptap/extension-code": "workspace:*",
"@tiptap/extension-code-block": "workspace:*",
"@tiptap/extension-document": "workspace:*",
"@tiptap/extension-hard-break": "workspace:*",
"@tiptap/extension-heading": "workspace:*",
"@tiptap/extension-horizontal-rule": "workspace:*",
"@tiptap/extension-italic": "workspace:*",
"@tiptap/extension-link": "workspace:*",
"@tiptap/extension-list": "workspace:*",
"@tiptap/extension-ordered-list": "workspace:*",
"@tiptap/extension-paragraph": "workspace:*",
"@tiptap/extension-strike": "workspace:*",
"@tiptap/extension-text": "workspace:*",
"@tiptap/extension-underline": "workspace:*",
"@tiptap/extensions": "workspace:*",
"@tiptap/pm": "workspace:*"
}
}

View File

@@ -0,0 +1,6 @@
import { StarterKit } from './starter-kit.js'
export type { StarterKitOptions } from './starter-kit.js'
export * from './starter-kit.js'
export default StarterKit

View File

@@ -0,0 +1,273 @@
import { Extension } from '@tiptap/core'
import type { BlockquoteOptions } from '@tiptap/extension-blockquote'
import { Blockquote } from '@tiptap/extension-blockquote'
import type { BoldOptions } from '@tiptap/extension-bold'
import { Bold } from '@tiptap/extension-bold'
import type { CodeOptions } from '@tiptap/extension-code'
import { Code } from '@tiptap/extension-code'
import type { CodeBlockOptions } from '@tiptap/extension-code-block'
import { CodeBlock } from '@tiptap/extension-code-block'
import { Document } from '@tiptap/extension-document'
import type { HardBreakOptions } from '@tiptap/extension-hard-break'
import { HardBreak } from '@tiptap/extension-hard-break'
import type { HeadingOptions } from '@tiptap/extension-heading'
import { Heading } from '@tiptap/extension-heading'
import type { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'
import { HorizontalRule } from '@tiptap/extension-horizontal-rule'
import type { ItalicOptions } from '@tiptap/extension-italic'
import { Italic } from '@tiptap/extension-italic'
import type { LinkOptions } from '@tiptap/extension-link'
import { Link } from '@tiptap/extension-link'
import type {
BulletListOptions,
ListItemOptions,
ListKeymapOptions,
OrderedListOptions,
} from '@tiptap/extension-list'
import { BulletList, ListItem, ListKeymap, OrderedList } from '@tiptap/extension-list'
import type { ParagraphOptions } from '@tiptap/extension-paragraph'
import { Paragraph } from '@tiptap/extension-paragraph'
import type { StrikeOptions } from '@tiptap/extension-strike'
import { Strike } from '@tiptap/extension-strike'
import { Text } from '@tiptap/extension-text'
import type { UnderlineOptions } from '@tiptap/extension-underline'
import { Underline } from '@tiptap/extension-underline'
import type { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from '@tiptap/extensions'
import { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from '@tiptap/extensions'
export interface StarterKitOptions {
/**
* If set to false, the blockquote extension will not be registered
* @example blockquote: false
*/
blockquote: Partial<BlockquoteOptions> | false
/**
* If set to false, the bold extension will not be registered
* @example bold: false
*/
bold: Partial<BoldOptions> | false
/**
* If set to false, the bulletList extension will not be registered
* @example bulletList: false
*/
bulletList: Partial<BulletListOptions> | false
/**
* If set to false, the code extension will not be registered
* @example code: false
*/
code: Partial<CodeOptions> | false
/**
* If set to false, the codeBlock extension will not be registered
* @example codeBlock: false
*/
codeBlock: Partial<CodeBlockOptions> | false
/**
* If set to false, the document extension will not be registered
* @example document: false
*/
document: false
/**
* If set to false, the dropcursor extension will not be registered
* @example dropcursor: false
*/
dropcursor: Partial<DropcursorOptions> | false
/**
* If set to false, the gapcursor extension will not be registered
* @example gapcursor: false
*/
gapcursor: false
/**
* If set to false, the hardBreak extension will not be registered
* @example hardBreak: false
*/
hardBreak: Partial<HardBreakOptions> | false
/**
* If set to false, the heading extension will not be registered
* @example heading: false
*/
heading: Partial<HeadingOptions> | false
/**
* If set to false, the undo-redo extension will not be registered
* @example undoRedo: false
*/
undoRedo: Partial<UndoRedoOptions> | false
/**
* If set to false, the horizontalRule extension will not be registered
* @example horizontalRule: false
*/
horizontalRule: Partial<HorizontalRuleOptions> | false
/**
* If set to false, the italic extension will not be registered
* @example italic: false
*/
italic: Partial<ItalicOptions> | false
/**
* If set to false, the listItem extension will not be registered
* @example listItem: false
*/
listItem: Partial<ListItemOptions> | false
/**
* If set to false, the listItemKeymap extension will not be registered
* @example listKeymap: false
*/
listKeymap: Partial<ListKeymapOptions> | false
/**
* If set to false, the link extension will not be registered
* @example link: false
*/
link: Partial<LinkOptions> | false
/**
* If set to false, the orderedList extension will not be registered
* @example orderedList: false
*/
orderedList: Partial<OrderedListOptions> | false
/**
* If set to false, the paragraph extension will not be registered
* @example paragraph: false
*/
paragraph: Partial<ParagraphOptions> | false
/**
* If set to false, the strike extension will not be registered
* @example strike: false
*/
strike: Partial<StrikeOptions> | false
/**
* If set to false, the text extension will not be registered
* @example text: false
*/
text: false
/**
* If set to false, the underline extension will not be registered
* @example underline: false
*/
underline: Partial<UnderlineOptions> | false
/**
* If set to false, the trailingNode extension will not be registered
* @example trailingNode: false
*/
trailingNode: Partial<TrailingNodeOptions> | false
}
/**
* The starter kit is a collection of essential editor extensions.
*
* It’s a good starting point for building your own editor.
*/
export const StarterKit = Extension.create<StarterKitOptions>({
name: 'starterKit',
addExtensions() {
const extensions = []
if (this.options.bold !== false) {
extensions.push(Bold.configure(this.options.bold))
}
if (this.options.blockquote !== false) {
extensions.push(Blockquote.configure(this.options.blockquote))
}
if (this.options.bulletList !== false) {
extensions.push(BulletList.configure(this.options.bulletList))
}
if (this.options.code !== false) {
extensions.push(Code.configure(this.options.code))
}
if (this.options.codeBlock !== false) {
extensions.push(CodeBlock.configure(this.options.codeBlock))
}
if (this.options.document !== false) {
extensions.push(Document.configure(this.options.document))
}
if (this.options.dropcursor !== false) {
extensions.push(Dropcursor.configure(this.options.dropcursor))
}
if (this.options.gapcursor !== false) {
extensions.push(Gapcursor.configure(this.options.gapcursor))
}
if (this.options.hardBreak !== false) {
extensions.push(HardBreak.configure(this.options.hardBreak))
}
if (this.options.heading !== false) {
extensions.push(Heading.configure(this.options.heading))
}
if (this.options.undoRedo !== false) {
extensions.push(UndoRedo.configure(this.options.undoRedo))
}
if (this.options.horizontalRule !== false) {
extensions.push(HorizontalRule.configure(this.options.horizontalRule))
}
if (this.options.italic !== false) {
extensions.push(Italic.configure(this.options.italic))
}
if (this.options.listItem !== false) {
extensions.push(ListItem.configure(this.options.listItem))
}
if (this.options.listKeymap !== false) {
extensions.push(ListKeymap.configure(this.options?.listKeymap))
}
if (this.options.link !== false) {
extensions.push(Link.configure(this.options?.link))
}
if (this.options.orderedList !== false) {
extensions.push(OrderedList.configure(this.options.orderedList))
}
if (this.options.paragraph !== false) {
extensions.push(Paragraph.configure(this.options.paragraph))
}
if (this.options.strike !== false) {
extensions.push(Strike.configure(this.options.strike))
}
if (this.options.text !== false) {
extensions.push(Text.configure(this.options.text))
}
if (this.options.underline !== false) {
extensions.push(Underline.configure(this.options?.underline))
}
if (this.options.trailingNode !== false) {
extensions.push(TrailingNode.configure(this.options?.trailingNode))
}
return extensions
},
})

View File

@@ -0,0 +1,10 @@
import { defineConfig } from 'vite-plus'
import { basePackConfig } from '../../pack.config.mjs'
export default defineConfig({
pack: {
entry: ['src/index.ts'],
...basePackConfig(),
deps: { neverBundle: [/^[^./]/] },
},
})