{"_id":"@crisp-fix/lexical-vue","name":"@crisp-fix/lexical-vue","dist-tags":{"latest":"0.11.0"},"versions":{"0.11.0":{"name":"@crisp-fix/lexical-vue","type":"module","version":"0.11.0","packageManager":"pnpm@9.15.4","description":"An extensible Vue 3 web text-editor based on Lexical.","author":{"name":"Robert Soriano","email":"sorianorobertc@gmail.com"},"license":"MIT","homepage":"https://github.com/wobsoriano/lexical-vue#readme","repository":{"type":"git","url":"git+https://github.com/wobsoriano/lexical-vue.git"},"bugs":{"url":"https://github.com/wobsoriano/lexical-vue/issues"},"keywords":["vue","lexical","editor","rich-text"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.js","unpkg":"dist/index.global.js","jsdelivr":"dist/index.global.js","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./*"]}},"scripts":{"_build":"tsup --onSuccess \"pnpm build:dts\"","build:dts":"vue-tsc --declaration --emitDeclarationOnly","dev":"tsup --watch --onSuccess \"pnpm build:dts && pnpm --filter playground dev\"","release":"pnpm build && changeset publish","prepublishOnly":"pnpm run build","lint":"eslint .","docs:dev":"vitepress dev docs","docs:build":"vitepress build docs","docs:serve":"vitepress serve docs"},"peerDependencies":{"vue":"^3.5.0"},"dependencies":{"@lexical/clipboard":"~0.33.0","@lexical/code":"~0.33.0","@lexical/dragon":"~0.33.0","@lexical/hashtag":"~0.33.0","@lexical/history":"~0.33.0","@lexical/html":"~0.33.0","@lexical/link":"~0.33.0","@lexical/list":"~0.33.0","@lexical/mark":"~0.33.0","@lexical/markdown":"~0.33.0","@lexical/overflow":"~0.33.0","@lexical/plain-text":"~0.33.0","@lexical/rich-text":"~0.33.0","@lexical/selection":"~0.33.0","@lexical/table":"~0.33.0","@lexical/text":"~0.33.0","@lexical/utils":"~0.33.0","@lexical/yjs":"~0.33.0","lexical":"~0.33.0"},"devDependencies":{"@antfu/eslint-config":"^2.23.1","@changesets/cli":"^2.27.7","@types/node":"^20.14.11","eslint":"^9.7.0","tsup":"^8.3.6","typescript":"^5.5.3","unplugin-vue":"^6.0.0","vitepress":"^1.3.1","vue":"^3.5.13","vue-tsc":"^2.2.4","yjs":"^13.6.18","tiny-invariant":"^1.3.3"},"gitHead":"75392da4082df9cdfba3d60e272404d2d6792d88","_id":"@crisp-fix/lexical-vue@0.11.0","_nodeVersion":"24.11.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-PqRxgSJxjmZS/tap1WzrdL9wkQ5aacsm+gzy5e5gmG50tvsElC5XixzFKG/ima6qvho8xBzv+pA+gETua/ctkg==","shasum":"89fd3481c1eb033a525da61c965c1790d3ddaf51","tarball":"https://registry.npmjs.org/@crisp-fix/lexical-vue/-/lexical-vue-0.11.0.tgz","fileCount":67,"unpackedSize":1308878,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEMCH0/9DVFx2dmNxqNh6twqxBMN1sm57iUhrRxMOEsocAQCIDD/hRz3+IRi5X2finzr71CFNSH5PpL340ybPRB8E5C6"}]},"_npmUser":{"name":"valerian.saliou","email":"valerian@valeriansaliou.name"},"directories":{},"maintainers":[{"name":"crisp-dev","email":"dev@crisp.chat"},{"name":"valerian.saliou","email":"valerian@valeriansaliou.name"},{"name":"eliottvct","email":"dev@eliottvincent.com"},{"name":"baptistejamin","email":"baptistejamin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lexical-vue_0.11.0_1765799866667_0.520774562467561"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-15T11:57:46.563Z","0.11.0":"2025-12-15T11:57:46.816Z","modified":"2025-12-15T11:57:47.167Z"},"maintainers":[{"name":"crisp-dev","email":"dev@crisp.chat"},{"name":"valerian.saliou","email":"valerian@valeriansaliou.name"},{"name":"eliottvct","email":"dev@eliottvincent.com"},{"name":"baptistejamin","email":"baptistejamin@gmail.com"}],"description":"An extensible Vue 3 web text-editor based on Lexical.","homepage":"https://github.com/wobsoriano/lexical-vue#readme","keywords":["vue","lexical","editor","rich-text"],"repository":{"type":"git","url":"git+https://github.com/wobsoriano/lexical-vue.git"},"author":{"name":"Robert Soriano","email":"sorianorobertc@gmail.com"},"bugs":{"url":"https://github.com/wobsoriano/lexical-vue/issues"},"license":"MIT","readme":"# Lexical Vue\n\nAn extensible Vue 3 web text-editor based on [Lexical](https://github.com/facebook/lexical).\n\nFor documentation and more information about Lexical, be sure to visit the [Lexical website](https://lexical.dev/).\n\nHere are some examples of what you can do with Lexical:\n\n- [Lexical Vue Playground](https://lexical-vue-playground.vercel.app)\n- [Rich Text Example](https://stackblitz.com/edit/vitejs-vite-qqdqcl)\n- [Plain Text Example](https://stackblitz.com/edit/vitejs-vite-jxwkxo)\n\n## Getting started with Vue\n\n> Requires Vue >= 3.5.0.\n\nInstall `lexical-vue`:\n\n```bash\nnpm install lexical-vue # or pnpm or yarn\n```\n\nBelow is an example of a basic plain text editor using `lexical` and `lexical-vue`.\n\n```vue\n<script setup lang=\"ts\">\nimport { $getRoot, $getSelection } from 'lexical'\n\nimport {\n  LexicalAutoFocusPlugin,\n  LexicalComposer,\n  LexicalContentEditable,\n  LexicalHistoryPlugin,\n  LexicalOnChangePlugin,\n  LexicalPlainTextPlugin,\n} from 'lexical-vue'\n\nconst config = {\n  editable: true,\n  theme: {\n    // Theme styling goes here\n  },\n}\n\nfunction onError(error) {\n  throw error\n}\n\n// When the editor changes, you can get notified via the\n// LexicalOnChangePlugin!\nfunction onChange(editorState) {\n  editorState.read(() => {\n    // Read the contents of the EditorState here.\n    const root = $getRoot()\n    const selection = $getSelection()\n\n    console.log(root, selection)\n  })\n}\n</script>\n\n<template>\n  <LexicalComposer :initial-config=\"config\" @error=\"onError\">\n    <LexicalPlainTextPlugin>\n      <template #contentEditable>\n        <LexicalContentEditable />\n      </template>\n      <template #placeholder>\n        <div>\n          Enter some text...\n        </div>\n      </template>\n    </LexicalPlainTextPlugin>\n    <LexicalOnChangePlugin @change=\"onChange\" />\n    <LexicalHistoryPlugin />\n    <LexicalAutoFocusPlugin />\n  </LexicalComposer>\n</template>\n```\n\nFor a more complex example, check the [rich text editor playground](https://github.com/wobsoriano/lexical-vue/tree/master/playground).\n\n### Creating custom Lexical nodes with Vue\n\n- [Creating custom decorator nodes](https://lexical-vue.vercel.app/docs/plugins/custom.html)\n\n## Contributing\n\n1. Create a new branch\n   - `git checkout -b my-new-branch`\n2. Commit your changes\n   - `git commit -a -m 'Description of the changes'`\n     - There are many ways of doing this and this is just a suggestion\n3. Push your branch to GitHub\n   - `git push origin my-new-branch`\n4. Go to the repository page in GitHub and click on \"Compare & pull request\"\n   - The [GitHub CLI](https://cli.github.com/manual/gh_pr_create) allows you to skip the web interface for this step (and much more)\n\n## Documentation\n\nhttps://lexical-vue.vercel.app\n\n## Credits\n\n- [Lexical](https://github.com/facebook/lexical)\n- [Vite](https://vitejs.dev/)\n- [Vercel](https://vercel.com/)\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-25ca3cf69ba3052ca5af427c45e5acd9"}