{"_id":"@drenso-toast-ui/editor-plugin-uml","_rev":"3-54f6b20e37d7f584259e69a5fe20b4f5","name":"@drenso-toast-ui/editor-plugin-uml","dist-tags":{"latest":"3.4.1"},"versions":{"3.0.1":{"name":"@drenso-toast-ui/editor-plugin-uml","version":"3.0.1","keywords":["nhn","nhn cloud","toast","toastui","toast-ui","editor","plugin","uml"],"author":{"name":"NHN Cloud FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","_id":"@drenso-toast-ui/editor-plugin-uml@3.0.1","maintainers":[{"name":"bobvandevijver","email":"bobvandevijver@hotmail.com"}],"homepage":"https://ui.toast.com","bugs":{"url":"https://github.com/nhn/tui.editor/issues"},"dist":{"shasum":"40c9256088256dd733e0bdd29dc5c6a9b44e327e","tarball":"https://registry.npmjs.org/@drenso-toast-ui/editor-plugin-uml/-/editor-plugin-uml-3.0.1.tgz","fileCount":4,"integrity":"sha512-FdX+4jseRJXo1yGd5DS9HY/liygdblSKi9WP6Z0Y04NjOiR05gv6qNvRIZO75fOtWtY7M6B/JeKWPOFesv6hww==","signatures":[{"sig":"MEUCIDQqtiYsCVFjgF2S7dox7/HIIJm8Cdu29OnG90aX/jS2AiEAguDn/fW/qVo2UB9IqB/0hqx+CFmAgCkL2TXDUzBYFWw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10948},"main":"dist/toastui-editor-plugin-uml.js","types":"index.d.ts","gitHead":"77fa9c23ff727abcde44748ec1e3dad53ca430d9","scripts":{"lint":"eslint .","test":"jest --watch","build":"webpack build && npm run build:cdn","serve":"snowpack dev","test:ci":"jest","serve:ie":"webpack serve","build:cdn":"webpack build --env cdn & webpack build --env cdn minify","test:types":"tsc"},"_npmUser":{"name":"bobvandevijver","email":"bobvandevijver@hotmail.com"},"repository":{"url":"git+https://github.com/nhn/tui.editor.git","type":"git","directory":"plugins/uml"},"_npmVersion":"11.8.0","description":"TOAST UI Editor : UML Plugin","directories":{},"_nodeVersion":"24.13.1","browserslist":"last 2 versions, not ie <= 10","dependencies":{"plantuml-encoder":"^1.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cross-env":"^6.0.3","@types/plantuml-encoder":"^1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/editor-plugin-uml_3.0.1_1773332528629_0.8016598578624983","host":"s3://npm-registry-packages-npm-production"}},"3.4.1":{"name":"@drenso-toast-ui/editor-plugin-uml","version":"3.4.1","keywords":["nhn","nhn cloud","toast","toastui","toast-ui","editor","plugin","uml"],"author":{"name":"NHN Cloud FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","_id":"@drenso-toast-ui/editor-plugin-uml@3.4.1","maintainers":[{"name":"bobvandevijver","email":"bobvandevijver@hotmail.com"}],"homepage":"https://ui.toast.com","bugs":{"url":"https://github.com/Drenso/tui.editor/issues"},"dist":{"shasum":"a3ed69ebb5592e28db12f0a7107e91d7b79385d8","tarball":"https://registry.npmjs.org/@drenso-toast-ui/editor-plugin-uml/-/editor-plugin-uml-3.4.1.tgz","fileCount":4,"integrity":"sha512-mxt5yqWamSFTqd8GFz9rQXnVf9aC7lxfK2hjWwjMS6giU1OXX0lyByLz1Vvoxd82B9iZN2IOANsp/2GaTD3Nvw==","signatures":[{"sig":"MEUCIAjkdg58/c6amX1sCCBZ9PirdmcuBNDFV4B+YiL5OxC2AiEAtM/zcj4Ze2w2bOylDclrlWXuWf8Elj5VRim4PROKHQ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drenso-toast-ui%2feditor-plugin-uml@3.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10801},"main":"dist/toastui-editor-plugin-uml.js","types":"index.d.ts","gitHead":"5236ae0607fb1dac28c0a47bc25c60af1f25730f","scripts":{"lint":"eslint .","test":"jest --watch","build":"webpack build && npm run build:cdn","serve":"webpack serve","test:ci":"jest","build:cdn":"webpack build --env cdn & webpack build --env cdn minify","test:types":"tsc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:fd2ac274-3d32-4c50-a187-cdae915ae0df"}},"repository":{"url":"git+https://github.com/Drenso/tui.editor.git","type":"git","directory":"plugins/uml"},"_npmVersion":"11.9.0","description":"TOAST UI Editor : UML Plugin","directories":{},"_nodeVersion":"24.14.0","browserslist":"last 2 versions, not ie <= 10","dependencies":{"plantuml-encoder":"^1.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"cross-env":"^6.0.3","@types/plantuml-encoder":"^1.4.0"},"_npmOperationalInternal":{"tmp":"tmp/editor-plugin-uml_3.4.1_1773337768188_0.49550601366336133","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-03-12T16:22:08.531Z","modified":"2026-03-13T04:08:17.550Z","3.0.1":"2026-03-12T16:22:08.834Z","3.4.1":"2026-03-12T17:49:28.330Z"},"bugs":{"url":"https://github.com/Drenso/tui.editor/issues"},"author":{"name":"NHN Cloud FE Development Lab","email":"dl_javascript@nhn.com"},"license":"MIT","homepage":"https://ui.toast.com","keywords":["nhn","nhn cloud","toast","toastui","toast-ui","editor","plugin","uml"],"repository":{"url":"git+https://github.com/Drenso/tui.editor.git","type":"git","directory":"plugins/uml"},"description":"TOAST UI Editor : UML Plugin","maintainers":[{"email":"bobvandevijver@hotmail.com","name":"bobvandevijver"},{"email":"tobias93@live.nl","name":"tobiasfeijten"}],"readme":"# TOAST UI Editor : UML Plugin\n\n> This is a plugin of [TOAST UI Editor](https://github.com/Drenso/tui.editor/tree/master/apps/editor) to render UML.\n\n[![npm version](https://img.shields.io/npm/v/@drenso-toast-ui/editor-plugin-uml.svg)](https://www.npmjs.com/package/@drenso-toast-ui/editor-plugin-uml)\n\n![uml](https://user-images.githubusercontent.com/37766175/121813437-01fe9b80-cca7-11eb-966b-598333c8ec14.png)\n\n## 🚩 Table of Contents\n\n- [Bundle File Structure](#-bundle-file-structure)\n- [Usage npm](#-usage-npm)\n- [Usage CDN](#-usage-cdn)\n\n## 📁 Bundle File Structure\n\n### Files Distributed on npm\n\n```\n- node_modules/\n  - @drenso-toast-ui/\n    - editor-plugin-uml/\n      - dist/\n        - toastui-editor-plugin-uml.js\n```\n\n### Files Distributed on CDN\n\nThe bundle files include all dependencies of this plugin.\n\n```\n- uicdn.toast.com/\n  - editor-plugin-uml/\n    - latest/\n      - toastui-editor-plugin-uml.js\n      - toastui-editor-plugin-uml.min.js\n```\n\n## 📦 Usage npm\n\nTo use the plugin, [`@drenso-toast-ui/editor`](https://github.com/Drenso/tui.editor/tree/master/apps/editor) must be installed.\n\n> Ref. [Getting Started](https://github.com/Drenso/tui.editor/blob/master/docs/en/getting-started.md)\n\n### Install\n\n```sh\n$ npm install @drenso-toast-ui/editor-plugin-uml\n```\n\n### Import Plugin\n\n#### ES Modules\n\n```js\nimport uml from '@drenso-toast-ui/editor-plugin-uml';\n```\n\n#### CommonJS\n\n```js\nconst uml = require('@drenso-toast-ui/editor-plugin-uml');\n```\n\n### Create Instance\n\n#### Basic\n\n```js\nimport Editor from '@drenso-toast-ui/editor';\nimport uml from '@drenso-toast-ui/editor-plugin-uml';\n\nconst editor = new Editor({\n  // ...\n  plugins: [uml]\n});\n```\n\n#### With Viewer\n\n```js\nimport Viewer from '@drenso-toast-ui/editor/dist/toustui-editor-viewer';\nimport uml from '@drenso-toast-ui/editor-plugin-uml';\n\nconst viewer = new Viewer({\n  // ...\n  plugins: [uml]\n});\n```\n\nor\n\n```js\nimport Editor from '@drenso-toast-ui/editor';\nimport uml from '@drenso-toast-ui/editor-plugin-uml';\n\nconst viewer = Editor.factory({\n  // ...\n  plugins: [uml],\n  viewer: true\n});\n```\n\n## 🗂 Usage CDN\n\nTo use the plugin, the CDN files(CSS, Script) of `@drenso-toast-ui/editor` must be included.\n\n### Include Files\n\n```html\n...\n<body>\n  ...\n  <!-- Editor -->\n  <script src=\"https://uicdn.toast.com/editor/latest/toastui-editor-all.min.js\"></script>\n  <!-- Editor's Plugin -->\n  <script src=\"https://uicdn.toast.com/editor-plugin-uml/latest/toastui-editor-plugin-uml.min.js\"></script>\n  ...\n</body>\n...\n```\n\n### Create Instance\n\n#### Basic\n\n```js\nconst { Editor } = toastui;\nconst { uml } = Editor.plugin;\n\nconst editor = new Editor({\n  // ...\n  plugins: [uml]\n});\n```\n\n#### With Viewer\n\n```js\nconst Viewer = toastui.Editor;\nconst { uml } = Viewer.plugin;\n\nconst viewer = new Viewer({\n  // ...\n  plugins: [uml]\n});\n```\n\nor\n\n```js\nconst { Editor } = toastui;\nconst { uml } = Editor.plugin;\n\nconst viewer = Editor.factory({\n  // ...\n  plugins: [uml],\n  viewer: true\n});\n```\n\n### [Optional] Use Plugin with Options\n\nThe `uml` plugin can set options when used. Just add the plugin function and options related to the plugin to the array(`[pluginFn, pluginOptions]`) and push them to the `plugins` option of the editor.\n\nThe following option is available in the `uml` plugin.\n\n| Name          | Type     | Default Value                             | Description               |\n| ------------- | -------- | ----------------------------------------- | ------------------------- |\n| `rendererURL` | `string` | `'http://www.plantuml.com/plantuml/png/'` | URL of plant uml renderer |\n\n```js\n// ...\n\nimport Editor from '@drenso-toast-ui/editor';\nimport uml from '@drenso-toast-ui/editor-plugin-uml';\n\nconst umlOptions = {\n  rendererURL: // ...\n};\n\nconst editor = new Editor({\n  // ...\n  plugins: [[uml, umlOptions]]\n});\n```\n","readmeFilename":"README.md"}