{"name":"@codemirror/view","version":"6.36.2","keywords":["editor","code"],"author":{"url":"http://marijnhaverbeke.nl","name":"Marijn Haverbeke","email":"marijn@haverbeke.berlin"},"license":"MIT","_id":"@codemirror/view@6.36.2","maintainers":[{"name":"adrianheine","email":"mail@adrianheine.de"},{"name":"marijn","email":"marijn@haverbeke.berlin"}],"homepage":"https://github.com/codemirror/view#readme","bugs":{"url":"https://github.com/codemirror/view/issues"},"dist":{"shasum":"aeb644e161440734ac5a153bf6e5b4a4355047be","tarball":"http://registry-npm.ywwl.com/@codemirror/view/download/@codemirror/view-6.36.2.tgz","fileCount":9,"integrity":"sha512-DZ6ONbs8qdJK0fdN7AB82CgI6tYXf4HWk1wSVa0+9bhVznCuuvhQtX8bFBoy3dv8rZSQqUd8GvhVAcielcidrA==","signatures":[{"sig":"MEYCIQDy1GzhbQ5dLc9iRejTNJ6LIozAvtUb0yAr89S9a6kdbgIhAOIxCnHHZe0nPDqKKhHH00iv4So0gfBj9pMrJPGWLCtT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1162224,"size":289831,"noattachment":false,"key":"/@codemirror/view/-/@codemirror/view-6.36.2.tgz"},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"gitHead":"b20446de33b34e1d4533931893b5737e1ee14eb2","scripts":{"test":"cm-runtests","prepare":"cm-buildhelper src/index.ts"},"_npmUser":{"name":"marijn","email":"marijn@haverbeke.berlin"},"repository":{"url":"git+https://github.com/codemirror/view.git","type":"git"},"_npmVersion":"10.9.0","description":"DOM view component for the CodeMirror code editor","directories":{},"sideEffects":false,"_nodeVersion":"20.13.1","dependencies":{"style-mod":"^4.1.0","w3c-keyname":"^2.2.4","@codemirror/state":"^6.5.0"},"_hasShrinkwrap":false,"devDependencies":{"@codemirror/buildhelper":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/view_6.36.2_1736441192175_0.5575111038266669","host":"s3://npm-registry-packages-npm-production"},"readme":"# @codemirror/view [![NPM version](https://img.shields.io/npm/v/@codemirror/view.svg)](https://www.npmjs.org/package/@codemirror/view)\n\n[ [**WEBSITE**](https://codemirror.net/) | [**DOCS**](https://codemirror.net/docs/ref/#view) | [**ISSUES**](https://code.haverbeke.berlin/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/) | [**CHANGELOG**](https://code.haverbeke.berlin/codemirror/view/src/branch/main/CHANGELOG.md) ]\n\nThis package implements the DOM view component for the\n[CodeMirror](https://codemirror.net/) code editor.\n\nThe [project page](https://codemirror.net/) has more information, a\nnumber of [examples](https://codemirror.net/examples/) and the\n[documentation](https://codemirror.net/docs/).\n\nThis code is released under an\n[MIT license](https://code.haverbeke.berlin/codemirror/view/tree/main/LICENSE).\n\nWe aim to be an inclusive, welcoming community. To make that explicit,\nwe have a [code of\nconduct](http://contributor-covenant.org/version/1/1/0/) that applies\nto communication around the project.\n\n## Usage\n\n```javascript\nimport {EditorView} from \"@codemirror/view\"\nimport {basicSetup} from \"codemirror\"\n\nconst view = new EditorView({\n  parent: document.querySelector(\"#some-node\"),\n  doc: \"Content text\",\n  extensions: [basicSetup /* ... */]\n})\n```\n\nAdd additional extensions, such as a [language\nmode](https://codemirror.net/#languages), to configure the editor.\nCall\n[`view.dispatch`](https://codemirror.net/docs/ref/#view.EditorView.dispatch)\nto update the editor's state.\n","publish_time":1736441192574,"_cnpm_publish_time":1736441192574,"dist-tags":{"beta":"6.39.0-beta.5","edit-context":"6.26.4-edit-context.1","latest":"6.44.0"}}