UNPKG

@convex-dev/prosemirror-sync

Version:

Sync ProseMirror documents for Tiptap using this Convex component.

134 lines (133 loc) 4.75 kB
{ "name": "@convex-dev/prosemirror-sync", "description": "Sync ProseMirror documents for Tiptap using this Convex component.", "repository": "github:get-convex/prosemirror-sync", "homepage": "https://github.com/get-convex/prosemirror-sync#readme", "bugs": { "email": "support@convex.dev", "url": "https://github.com/get-convex/prosemirror-sync/issues" }, "version": "0.1.26", "license": "Apache-2.0", "keywords": [ "convex", "component", "collab", "prosemirror", "tiptap", "sync", "blocknote" ], "type": "module", "scripts": { "example": "cd example && npm run dev", "dev": "run-p 'example' 'build:watch'", "setup": "npm i && npm run build && cd example && npm i && npx convex dev --once", "build": "npm run build:esm && npm run build:cjs", "build:watch": "cd src && npx chokidar '../tsconfig.json' '*.ts' 'blocknote/**/*.ts' 'tiptap/**/*.ts' 'react/**/*.ts' 'component/**/*.ts' 'client/**/*.ts' -c 'npm run build' --initial", "build:esm": "tsc --project ./esm.json && npm run copy:dts:esm && echo '{\\n \"type\": \"module\"\\n}' > dist/esm/package.json", "build:cjs": "tsc --project ./commonjs.json && npm run copy:dts:cjs && echo '{\\n \"type\": \"commonjs\"\\n}' > dist/commonjs/package.json", "copy:dts:esm": "cpy 'src/**/*.d.ts' 'dist/esm/' --parents", "copy:dts:cjs": "cpy 'src/**/*.d.ts' 'dist/commonjs/' --parents", "typecheck": "tsc --noEmit", "prepare": "npm run build", "prepack": "node node10stubs.mjs", "postpack": "node node10stubs.mjs --cleanup", "alpha": "rm -rf dist && npm run build && npm run test && npm version prerelease --preid alpha && npm publish --tag alpha && git push --tags", "release": "rm -rf dist && npm run build && npm run test && npm version patch && npm publish && git push --tags && git push", "test": "vitest run --typecheck", "test:watch": "vitest --typecheck", "test:debug": "vitest --inspect-brk --no-file-parallelism", "test:coverage": "vitest run --coverage --coverage.reporter=text", "version": "pbcopy <<<$npm_package_version; vim CHANGELOG.md && git add CHANGELOG.md" }, "files": [ "dist", "src", "tiptap", "blocknote" ], "exports": { "./package.json": "./package.json", ".": { "import": { "@convex-dev/component-source": "./src/client/index.ts", "types": "./dist/esm/client/index.d.ts", "default": "./dist/esm/client/index.js" }, "require": { "@convex-dev/component-source": "./src/client/index.ts", "types": "./dist/commonjs/client/index.d.ts", "default": "./dist/commonjs/client/index.js" } }, "./tiptap": { "import": { "@convex-dev/component-source": "./src/tiptap/index.ts", "types": "./dist/esm/tiptap/index.d.ts", "default": "./dist/esm/tiptap/index.js" }, "require": { "@convex-dev/component-source": "./src/tiptap/index.ts", "types": "./dist/commonjs/tiptap/index.d.ts", "default": "./dist/commonjs/tiptap/index.js" } }, "./blocknote": { "import": { "@convex-dev/component-source": "./src/blocknote/index.ts", "types": "./dist/esm/blocknote/index.d.ts", "default": "./dist/esm/blocknote/index.js" } }, "./convex.config": { "import": { "@convex-dev/component-source": "./src/component/convex.config.ts", "types": "./dist/esm/component/convex.config.d.ts", "default": "./dist/esm/component/convex.config.js" } } }, "peerDependencies": { "@blocknote/core": ">=0.31.0 <=1.0.0", "@blocknote/mantine": ">=0.31.0 <=1.0.0", "@blocknote/react": ">=0.31.0 <=1.0.0", "@tiptap/core": "^2.7.0", "convex": ">=1.21.0 <1.35.0", "react": "^18.3.1 || ^19.0.0", "react-dom": "^18.3.1 || ^19.0.0" }, "peerDependenciesMeta": { "@blocknote/core": { "optional": true }, "@blocknote/mantine": { "optional": true }, "@blocknote/react": { "optional": true } }, "devDependencies": { "@blocknote/core": "0.34.0", "@blocknote/mantine": "0.34.0", "@blocknote/react": "0.34.0", "@eslint/js": "9.29.0", "@tiptap/core": "^2.22.3", "@types/node": "18.19.112", "@types/react": "19.1.8", "chokidar-cli": "3.0.0", "convex-test": "0.0.37", "cpy-cli": "5.0.0", "eslint": "9.29.0", "globals": "16.2.0", "npm-run-all2": "7.0.2", "prettier": "3.6.1", "typescript": "5.8.3", "typescript-eslint": "8.35.0", "vitest": "3.2.4" }, "main": "./dist/commonjs/client/index.js", "types": "./dist/commonjs/client/index.d.ts", "module": "./dist/esm/client/index.js" }