{"_id":"@acdh-oeaw/text-annotation-widget","_rev":"2-dcad4e0e556f22c5a7399f7c2c8fd44f","name":"@acdh-oeaw/text-annotation-widget","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@acdh-oeaw/text-annotation-widget","version":"0.0.1","_id":"@acdh-oeaw/text-annotation-widget@0.0.1","maintainers":[{"name":"stefanprobst","email":"stefanprobst@posteo.de"},{"name":"nondef","email":"christoph.hoffmann@oeaw.ac.at"}],"dist":{"shasum":"b35cbcc060348407eb01e751bc9f9380a735f197","tarball":"https://registry.npmjs.org/@acdh-oeaw/text-annotation-widget/-/text-annotation-widget-0.0.1.tgz","fileCount":14,"integrity":"sha512-KIvnp6yraCX1B5etSy2DLDT88BwSt1vJ/04Ra/OHgCkfEafanSRZEkNgBZEwCLlnU01VJNHr2lmy0imYgZdZjw==","signatures":[{"sig":"MEUCIQDpo0lRaDxKk6VYhOQkHT9TtPbdZQuZBuChy/yOOghi/gIgEEtNJ0CB+bSsj7Rne4XJD9QEBJNpPy7YDf3pSeqCj8g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":775356},"main":"dist/text-annotation.iife.js","type":"module","_from":"file:acdh-oeaw-text-annotation-widget-0.0.1.tgz","module":"dist/text-annotation.iife.js","scripts":{"dev":"vite","build":"run-p type-check \"build-only {@}\" --","format":"prettier --write src/","preview":"vite preview","lint:fix":"pnpm run lint:check --fix","build-only":"vite build","lint:check":"eslint . --cache","type-check":"vue-tsc --build --force"},"_npmUser":{"name":"nondef","email":"christoph.hoffmann@oeaw.ac.at"},"_resolved":"/run/flatpak/app/com.jetbrains.WebStorm/784300d998daba573c695b115f5a11c7/acdh-oeaw-text-annotation-widget-0.0.1.tgz","_integrity":"sha512-KIvnp6yraCX1B5etSy2DLDT88BwSt1vJ/04Ra/OHgCkfEafanSRZEkNgBZEwCLlnU01VJNHr2lmy0imYgZdZjw==","_npmVersion":"10.2.4","description":"A Vue 3 application that allows users to annotate text with entities and comments. Built with ProseMirror for rich text editing capabilities.","directories":{},"_nodeVersion":"20.11.1","dependencies":{"vue":"^3.5.12","clsx":"^2.1.1","process":"^0.11.10","bootstrap":"^5.3.3","radix-vue":"^1.9.10","vue-router":"^4.4.5","@vueuse/core":"^12.0.0","lucide-vue-next":"^0.468.0","@radix-icons/vue":"^1.0.0","prosemirror-view":"^1.37.0","prosemirror-model":"^1.23.0","prosemirror-state":"^1.4.3","prosemirror-keymap":"^1.2.2","prosemirror-history":"^1.4.1","prosemirror-markdown":"^1.13.1","class-variance-authority":"^0.7.1","prosemirror-schema-basic":"^1.2.3"},"_hasShrinkwrap":false,"packageManager":"pnpm@8.7.1+sha1.cb9fb56ca170a718619cd9bc669d99ddadc1afb5","devDependencies":{"vite":"^5.4.10","eslint":"^9.14.0","install":"^0.13.0","vue-tsc":"^2.1.10","prettier":"^3.3.3","typescript":"~5.8.3","@types/node":"^22.9.0","autoprefixer":"^10.4.20","npm-run-all2":"^7.0.1","@vue/tsconfig":"^0.5.1","@playwright/test":"^1.52.0","@tsconfig/node22":"^22.0.0","eslint-plugin-vue":"^9.30.0","@vitejs/plugin-vue":"^5.1.4","@acdh-oeaw/tsconfig":"^1.5.1","@acdh-oeaw/eslint-config":"^2.0.0","eslint-plugin-playwright":"^2.0.0","vite-plugin-vue-devtools":"^7.5.4","@acdh-oeaw/prettier-config":"^2.0.0","@acdh-oeaw/stylelint-config":"^2.0.3","@acdh-oeaw/eslint-config-vue":"^2.0.3","eslint-config-flat-gitignore":"^0.3.0","@acdh-oeaw/eslint-config-nuxt":"^2.0.3"},"_npmOperationalInternal":{"tmp":"tmp/text-annotation-widget_0.0.1_1747214777063_0.7310949995043392","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@acdh-oeaw/text-annotation-widget","version":"0.0.2","type":"module","main":"dist/text-annotation.iife.js","module":"dist/text-annotation.iife.js","dependencies":{"@radix-icons/vue":"^1.0.0","@vueuse/core":"^12.0.0","bootstrap":"^5.3.3","class-variance-authority":"^0.7.1","clsx":"^2.1.1","lucide-vue-next":"^0.468.0","process":"^0.11.10","prosemirror-history":"^1.4.1","prosemirror-keymap":"^1.2.2","prosemirror-markdown":"^1.13.1","prosemirror-model":"^1.23.0","prosemirror-schema-basic":"^1.2.3","prosemirror-state":"^1.4.3","prosemirror-view":"^1.37.0","radix-vue":"^1.9.10","vue":"^3.5.12","vue-router":"^4.4.5"},"devDependencies":{"@tsconfig/node22":"^22.0.0","@vue/tsconfig":"^0.5.1","@types/node":"^22.9.0","@vitejs/plugin-vue":"^5.1.4","@acdh-oeaw/eslint-config":"^2.0.0","@acdh-oeaw/eslint-config-nuxt":"^2.0.3","@acdh-oeaw/eslint-config-vue":"^2.0.3","@acdh-oeaw/prettier-config":"^2.0.0","@acdh-oeaw/stylelint-config":"^2.0.3","eslint-config-flat-gitignore":"^0.3.0","@acdh-oeaw/tsconfig":"^1.5.1","@playwright/test":"^1.52.0","autoprefixer":"^10.4.20","eslint":"^9.14.0","eslint-plugin-playwright":"^2.0.0","eslint-plugin-vue":"^9.30.0","install":"^0.13.0","npm-run-all2":"^7.0.1","prettier":"^3.3.3","typescript":"~5.8.3","vite":"^5.4.10","vite-plugin-vue-devtools":"^7.5.4","vue-tsc":"^2.1.10"},"packageManager":"pnpm@8.7.1+sha1.cb9fb56ca170a718619cd9bc669d99ddadc1afb5","scripts":{"dev":"vite","build":"run-p type-check \"build-only {@}\" --","preview":"vite preview","build-only":"vite build","type-check":"vue-tsc --build --force","lint:check":"eslint . --cache","lint:fix":"pnpm run lint:check --fix","format":"prettier --write src/"},"description":"A Vue 3 application that allows users to annotate text with entities and comments. Built with ProseMirror for rich text editing capabilities.","_id":"@acdh-oeaw/text-annotation-widget@0.0.2","_integrity":"sha512-jDboXxe8YgBfLXJW12izoVzV9kmAWtFp5sCaY3CDrLtEtw5QCtPMAG0uHxINLt1UaIYSbxg+iuR2oVvaWmt7lw==","_resolved":"/run/flatpak/app/com.jetbrains.WebStorm/edba5a7da0fd25f5dedcac941dbcff2b/acdh-oeaw-text-annotation-widget-0.0.2.tgz","_from":"file:acdh-oeaw-text-annotation-widget-0.0.2.tgz","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-jDboXxe8YgBfLXJW12izoVzV9kmAWtFp5sCaY3CDrLtEtw5QCtPMAG0uHxINLt1UaIYSbxg+iuR2oVvaWmt7lw==","shasum":"ca4ffa50ee46bef01078b78a76b82b941f4a6875","tarball":"https://registry.npmjs.org/@acdh-oeaw/text-annotation-widget/-/text-annotation-widget-0.0.2.tgz","fileCount":14,"unpackedSize":775356,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFNdsWhklz0QRgYRO6M4WXLSkVBabpIi32kYQ5KK1XVkAiEA9Sltsi/89bOFT4c+pRYdtv92+1USt3Imzcaf/A0pMVE="}]},"_npmUser":{"name":"nondef","email":"christoph.hoffmann@oeaw.ac.at"},"directories":{},"maintainers":[{"name":"stefanprobst","email":"stefanprobst@posteo.de"},{"name":"nondef","email":"christoph.hoffmann@oeaw.ac.at"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/text-annotation-widget_0.0.2_1747217854591_0.13781016574972438"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-14T09:26:17.017Z","modified":"2025-05-14T10:17:35.011Z","0.0.1":"2025-05-14T09:26:17.519Z","0.0.2":"2025-05-14T10:17:34.819Z"},"description":"A Vue 3 application that allows users to annotate text with entities and comments. Built with ProseMirror for rich text editing capabilities.","maintainers":[{"name":"stefanprobst","email":"stefanprobst@posteo.de"},{"name":"nondef","email":"christoph.hoffmann@oeaw.ac.at"}],"readme":"# Text Annotation Tool\n\nA Vue 3 application that allows users to annotate text with entities and comments. Built with ProseMirror for rich text editing capabilities.\n\n## Features\n\n- **Text Annotation**: Select text and link it to predefined entities\n- **Custom Comments**: Add comments to your annotations\n- **Entity Management**: Link annotations to predefined entities\n- **Annotation Management**: Edit and delete annotations with visual feedback\n\n## Technology Stack\n\n- Vue 3 with TypeScript\n- ProseMirror for text editing\n- Bootstrap for UI components\n- Vite for build tooling\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (v14 or higher)\n- pnpm package manager\n\n### Installation\n\n```sh\n# Install dependencies\npnpm install\n\n# Start development server\npnpm dev\n\n# Build for production\npnpm vite build\n```\n\n### Build Output and Usage\n\nWhen you run `pnpm vite build`, the application will be built into the `dist/` directory with the following structure:\n\n```\ndist/\n├── text-annotation.iife.js     # Main bundled JavaScript file\n└── style.css                   # Compiled CSS\n```\n\nTo use the built component in your project:\n\n1. Copy the files from the `dist/` directory to your project\n2. Include the files in your HTML & use the component in your application:\n\n```html\n<link href=\"path/to/style.css\" rel=\"stylesheet\" />\n<script src=\"path/to/text-annotation.iife.js\"></script>\n<div id=\"app\"></div>\n<script>\n  const app = TextAnnotationEditor.createTextAnnotationApp({\n    linkedEntities: yourlinkedEntitiesArray || [],\n    sourceText: yourSourceText || '',\n  })\n</script>\n```\n\nThe build configuration (in `vite.config.ts`) is set up to:\n\n- Bundle the application as an IIFE (Immediately Invoked Function Expression)\n- Externalize Bootstrap to reduce bundle size\n- Generate a single JavaScript file and CSS file\n- Make the component globally available as `TextAnnotationEditor`\n\n## License\n\nMIT License\n\nCopyright (c) 2024 Olivia Reichl\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","readmeFilename":"README.md"}