{"_id":"@dojo-ng/rich-text-autolink","_rev":"2-9a057df20cef9e1ffe61e3df393e2590","name":"@dojo-ng/rich-text-autolink","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@dojo-ng/rich-text-autolink","version":"0.1.0","license":"BSD-3-Clause","_id":"@dojo-ng/rich-text-autolink@0.1.0","maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"dist":{"shasum":"37c4525afa4fb426ba1a779bb9f4e9cf60557e8d","tarball":"https://registry.npmjs.org/@dojo-ng/rich-text-autolink/-/rich-text-autolink-0.1.0.tgz","fileCount":8,"integrity":"sha512-jOV0B5nsUiFd+bp+1etpd5iTn/yRUQp9sRS5KOt2q+PSF4lFHIpPIm4CpZqK6mDfglB97ki7Ld92FsCZjY08Fg==","signatures":[{"sig":"MEYCIQD0FxJ2/4/1t8HivkOz80xqhFguwmMbkGZoef7oqg0l6QIhAPwkrOwdXpiElD42Oz2ws3WoC0HICZTe2roqocoAW3nV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9100},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","scripts":{"build":"tsc -p tsconfig.json","clean":"rm -rf dist"},"_npmUser":{"name":"bitranch","email":"bill@bitranch.com"},"_npmVersion":"10.9.8","description":"Auto-link (URL/email) plugin for @dojo-ng/rich-text","directories":{},"_nodeVersion":"22.23.1","dependencies":{"lit":"^3.3.0","lexical":"^0.21.0","@lexical/link":"^0.21.0","@dojo-ng/rich-text":"^0.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rich-text-autolink_0.1.0_1788374434986_0.5226503866605452","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"_id":"@dojo-ng/rich-text-autolink@0.1.1","dist":{"shasum":"6e120c94b5de254db017aace8189474a322c5536","tarball":"https://registry.npmjs.org/@dojo-ng/rich-text-autolink/-/rich-text-autolink-0.1.1.tgz","fileCount":8,"integrity":"sha512-U20W9/NTpdCMkZwmBbS4b1ZDBbQvHQLADa1rBUwyuLfhItHCLMnF0UbNy44ZF2UoexFoU7z2fYdrXyr+xFMF8Q==","signatures":[{"sig":"MEYCIQDQGR6wq8pUyQV/2O7N77XKi+tcroO5uzAdmCqsq49MqgIhAL99jdu4ZPrEtBGZAasYAPVKcjgHl5//Zq1gsG3fJjq+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICpxnpJyfay/T0L+v7yCcaOyixKy1MEnKv2Xm+0iRnFzAiBfqgUcKRRXl1tizy/ATyAz6MEBDO5WSINyZU2y1XLU8A=="}],"unpackedSize":9353},"main":"./dist/index.js","name":"@dojo-ng/rich-text-autolink","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","license":"BSD-3-Clause","scripts":{"build":"tsc -p tsconfig.json","clean":"rm -rf dist"},"version":"0.1.1","_npmUser":{"name":"bitranch","email":"bill@bitranch.com"},"_npmVersion":"10.9.8","description":"Auto-link (URL/email) plugin for @dojo-ng/rich-text","directories":{},"maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"_nodeVersion":"22.23.1","dependencies":{"lit":"^3.3.0","lexical":"^0.21.0","@lexical/link":"^0.21.0","@dojo-ng/rich-text":"^0.1.3"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rich-text-autolink_0.1.1_1791166905097_0.004864855008371638"}}},"time":{"created":"2026-09-02T18:40:34.817Z","modified":"2026-10-05T02:21:45.334Z","0.1.0":"2026-09-02T18:40:35.116Z","0.1.1":"2026-10-05T02:21:45.187Z"},"license":"BSD-3-Clause","description":"Auto-link (URL/email) plugin for @dojo-ng/rich-text","maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"readme":"# @dojo-ng/rich-text-autolink\n\nAutomatic links for `<dj-rich-text>`: URLs and email addresses become links as you type.\n\nPart of [Dojo NG](../../README.md), a framework-agnostic web component library. BSD-3-Clause.\n\n## Install\n\n```bash\nnpm install @dojo-ng/rich-text-autolink\n```\n\n## Usage\n\nCompose the autolink plugin with the default set; typing a URL or email followed by a space (or any boundary) links it. Add the links plugin too for manual link editing.\n\n```html\n<dj-rich-text id=\"editor\" label=\"Article\"></dj-rich-text>\n<script type=\"module\">\n  import \"@dojo-ng/rich-text\";\n  import { defaultPlugins } from \"@dojo-ng/rich-text\";\n  import { autolinkPlugin } from \"@dojo-ng/rich-text-autolink\";\n  document.getElementById(\"editor\").plugins = [...defaultPlugins, autolinkPlugin];\n</script>\n```\n\n## How it works\n\n- A text transform finds URLs and email addresses as you type and wraps them in links.\n- Editing the text so it no longer matches removes the link; editing it to a different URL updates the address. Links you made by hand are never changed.\n- `www.` addresses get `https://`, and plain email addresses get `mailto:`.\n\n## Setup\n\n- Exports `autolinkPlugin`, `createAutoLinkPlugin({ matchers? })`, and `defaultMatchers`.\n- A matcher is `{ regex, url(matched) }`. The regex must not be global, and the earliest match wins.\n- It also registers the link node, so exported `<a>` elements import again through `value` even without `rich-text-links`. Loading both is fine.\n- Pair it with `rich-text-links` for editing links by hand.\n- Setting `plugins` replaces the default set, so spread `...defaultPlugins` to keep bold, italic, underline, undo, and redo.\n\n## Not built\n\n- URLs split across formatting, removing an automatic link from a toolbar, and opening a link by clicking it in the editor.\n\nNeed one of these? Make a request on [Discord](https://discord.gg/nReZF9QrjS) or add an issue (work item) on [Heptapod](https://foss.heptapod.net/dojo-ng/components/-/issues).\n","readmeFilename":"README.md"}