{"_id":"@dojo-ng/rich-text-links","_rev":"2-b75e868589d60807b311b0a03a4372fb","name":"@dojo-ng/rich-text-links","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@dojo-ng/rich-text-links","version":"0.1.0","license":"BSD-3-Clause","_id":"@dojo-ng/rich-text-links@0.1.0","maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"dist":{"shasum":"0040526ea6bc7390a18339dd3e0c357eb473a922","tarball":"https://registry.npmjs.org/@dojo-ng/rich-text-links/-/rich-text-links-0.1.0.tgz","fileCount":6,"integrity":"sha512-Bhor6PFSiJQbFBIkaRMGIE8F2VUSOLKqLU6dLXRtrjq7ULWsBgtvqwOiCbXdrfYCO0kFXxkqPPbY1dUdGxOGVQ==","signatures":[{"sig":"MEYCIQCYmPlFxcJwFrwDKzfhC1R5LAFXLSf/nznngtat6aQHJAIhAMsMJdaEkYrxpSe2+v3qoOWknOrSzTZLlMFkOAOs8eVR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6696},"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":"Link insert/edit/remove 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-links_0.1.0_1788374439426_0.4096962794457444","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"_id":"@dojo-ng/rich-text-links@0.1.1","dist":{"shasum":"eb6511ea346c3c2d9e32ad99427f62ee9786aa4c","tarball":"https://registry.npmjs.org/@dojo-ng/rich-text-links/-/rich-text-links-0.1.1.tgz","fileCount":6,"integrity":"sha512-3v4vOH36GW7ST75oYQ7Ybr7MSsX7fxpn22Hnb1/QxAZfwLbBzSvMtDuWYCa5uDXGmSQOPZk02hvUz5JCJ0VjUw==","signatures":[{"sig":"MEQCIEldyTq4SJ/bXjPgWMjeGSNP+WqWb4CwC4kVqT59f/e8AiBAQ/MYCs3+nAtp0wscekQDSVKTYck1WxWjhWUSRhVYqw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDN+EO6HiD4RLiPwVN1SrPosQRQ4qWlX7mAEglfh7leiAiEAplwxrAvG8BFsOpQhyPLQJ/UN+dppUedYdlEpm7GLcRk="}],"unpackedSize":6753},"main":"./dist/index.js","name":"@dojo-ng/rich-text-links","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":"Link insert/edit/remove 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-links_0.1.1_1791166864302_0.8175686680864578"}}},"time":{"created":"2026-09-02T18:40:36.572Z","modified":"2026-10-05T02:21:04.579Z","0.1.0":"2026-09-02T18:40:39.558Z","0.1.1":"2026-10-05T02:21:04.384Z"},"license":"BSD-3-Clause","description":"Link insert/edit/remove 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-links\n\nLinks for `<dj-rich-text>`: add, change, and remove a link on the selection.\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-links\n```\n\n## Usage\n\nCompose the links plugin with the default set. `createLinksPlugin({ promptForUrl })` swaps the built-in `window.prompt` for your own (overlay) URL editor.\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 { linksPlugin } from \"@dojo-ng/rich-text-links\";\n  document.getElementById(\"editor\").plugins = [...defaultPlugins, linksPlugin];\n</script>\n```\n\n## Using it\n\n- The toolbar button shows whether the selection is a link (`aria-pressed`). Clicking it asks for a URL.\n- An empty URL removes the link, a new URL sets or changes it, and Cancel changes nothing.\n\n## Setup\n\n- The default prompt is `window.prompt`. Pass your own with `createLinksPlugin({ promptForUrl })`; it may return a Promise, so it can open your own dialog.\n- For links made automatically while typing, add `rich-text-autolink`.\n- Setting `plugins` replaces the default set, so spread `...defaultPlugins` to keep bold, italic, underline, undo, and redo.\n","readmeFilename":"README.md"}