UNPKG

@blocknote/core

Version:

A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.

144 lines 4.11 kB
{ "name": "@blocknote/core", "homepage": "https://github.com/TypeCellOS/BlockNote", "private": false, "sideEffects": [ "*.css" ], "repository": { "type": "git", "url": "git+https://github.com/TypeCellOS/BlockNote.git", "directory": "packages/core" }, "license": "MPL-2.0", "version": "0.32.0-hackdays.0", "files": [ "dist", "types", "src" ], "keywords": [ "react", "javascript", "editor", "typescript", "prosemirror", "wysiwyg", "rich-text-editor", "notion", "yjs", "block-based", "tiptap" ], "description": "A \"Notion-style\" block-based extensible text editor built on top of Prosemirror and Tiptap.", "type": "module", "source": "src/index.ts", "types": "./types/src/index.d.ts", "main": "./dist/blocknote.cjs", "module": "./dist/blocknote.js", "exports": { ".": { "types": "./types/src/index.d.ts", "import": "./dist/blocknote.js", "require": "./dist/blocknote.cjs" }, "./style.css": { "import": "./dist/style.css", "require": "./dist/style.css", "style": "./dist/style.css" }, "./fonts/inter.css": { "import": "./src/fonts/inter.css", "require": "./src/fonts/inter.css", "style": "./src/fonts/inter.css" }, "./comments": { "types": "./types/src/comments/index.d.ts", "import": "./dist/comments.js", "require": "./dist/comments.cjs" }, "./locales": { "types": "./types/src/i18n/index.d.ts", "import": "./dist/locales.js", "require": "./dist/locales.cjs" } }, "dependencies": { "@emoji-mart/data": "^1.2.1", "@shikijs/types": "3.2.1", "@tiptap/core": "^2.12.0", "@tiptap/extension-bold": "^2.11.5", "@tiptap/extension-code": "^2.11.5", "@tiptap/extension-gapcursor": "^2.11.5", "@tiptap/extension-history": "^2.11.5", "@tiptap/extension-horizontal-rule": "^2.11.5", "@tiptap/extension-italic": "^2.11.5", "@tiptap/extension-link": "^2.11.5", "@tiptap/extension-paragraph": "^2.11.5", "@tiptap/extension-strike": "^2.11.5", "@tiptap/extension-table-cell": "^2.11.5", "@tiptap/extension-table-header": "^2.11.5", "@tiptap/extension-text": "^2.11.5", "@tiptap/extension-underline": "^2.11.5", "@tiptap/pm": "^2.12.0", "emoji-mart": "^5.6.0", "hast-util-from-dom": "^5.0.1", "prosemirror-dropcursor": "^1.8.1", "prosemirror-highlight": "^0.13.0", "prosemirror-model": "^1.25.1", "prosemirror-state": "^1.4.3", "prosemirror-tables": "^1.6.4", "prosemirror-transform": "^1.10.4", "prosemirror-view": "^1.38.1", "rehype-format": "^5.0.1", "rehype-parse": "^9.0.1", "rehype-remark": "^10.0.0", "rehype-stringify": "^10.0.1", "remark-gfm": "^4.0.1", "remark-parse": "^11.0.0", "remark-rehype": "^11.1.1", "remark-stringify": "^11.0.0", "unified": "^11.0.5", "uuid": "^8.3.2", "y-prosemirror": "^1.3.4", "y-protocols": "^1.0.6", "yjs": "^13.6.15" }, "devDependencies": { "@types/emoji-mart": "^3.0.14", "@types/hast": "^3.0.0", "@types/uuid": "^8.3.4", "eslint": "^8.10.0", "jsdom": "^25.0.1", "rimraf": "^5.0.5", "rollup-plugin-webpack-stats": "^0.2.2", "typescript": "^5.3.3", "vite": "^5.3.4", "vite-plugin-eslint": "^1.8.1", "vitest": "^2.0.3" }, "peerDependencies": { "@hocuspocus/provider": "^2.15.2" }, "peerDependenciesMeta": { "@hocuspocus/provider": { "optional": true } }, "eslintConfig": { "extends": [ "../../.eslintrc.json" ] }, "gitHead": "37614ab348dcc7faa830a9a88437b37197a2162d", "scripts": { "dev": "vite", "build": "tsc && vite build", "build-bundled": "tsc && vite build --config vite.config.bundled.ts && git checkout tmp-releases && rm -rf ../../release && mv ../../release-tmp ../../release", "preview": "vite preview", "lint": "eslint src --max-warnings 0", "test": "vitest --run", "test-watch": "vitest watch", "clean": "rimraf dist && rimraf types" } }