{"_id":"@dojo-ng/rich-text-headings","_rev":"2-9cc8f570840d91bcb5da359cccfd204f","name":"@dojo-ng/rich-text-headings","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@dojo-ng/rich-text-headings","version":"0.1.0","license":"BSD-3-Clause","_id":"@dojo-ng/rich-text-headings@0.1.0","maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"dist":{"shasum":"05147da4e888139140b58d059c22748a20f10669","tarball":"https://registry.npmjs.org/@dojo-ng/rich-text-headings/-/rich-text-headings-0.1.0.tgz","fileCount":6,"integrity":"sha512-AVavtGOPft2LgZsC8bdlCNPW0TleJmcEfyePcV0f9oMvrQZLpwoO0NuLmNJxHoJZZG35pHWQJMqSq26n/oUxqg==","signatures":[{"sig":"MEUCIBEBs1c1afR4y0u0xP0ZourFkzTDT72ayJTuZUTDqNOWAiEAodkuvVbdys8UHImxRrhzs4ycbNoqrcd1GYxhM5VUhiI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5601},"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":"Headings/quote plugin for @dojo-ng/rich-text","directories":{},"_nodeVersion":"22.23.1","dependencies":{"lit":"^3.3.0","lexical":"^0.21.0","@dojo-ng/rich-text":"^0.1.0","@lexical/rich-text":"^0.21.0","@lexical/selection":"^0.21.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rich-text-headings_0.1.0_1788374435513_0.19125910669983148","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"_id":"@dojo-ng/rich-text-headings@0.1.1","dist":{"shasum":"30a98af0d57b794fedea2cede90aed31a920c076","tarball":"https://registry.npmjs.org/@dojo-ng/rich-text-headings/-/rich-text-headings-0.1.1.tgz","fileCount":6,"integrity":"sha512-9ya835zCaUZjgL5ejy+SVXZRWr7w/MDvzCZFeTOUfeEge30FVVRIA9aKmktjz5nMKKQ83qEi43sKgwQlXc4LLA==","signatures":[{"sig":"MEYCIQCUaqCHd04ikGi30cr/ujwPMS4WzEPW/sSbu8GUCEvRzAIhAMbI10lSWbuhC240LXvjjGmn2eTiy7DfLYVYmO8YpUXK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFWZl4nABosHyiT/MWQYMYKns0Ad0B/YxrcXjnp+QiqoAiEA82AdsOcTq1B2qRF//ikQV5JbMGC8Fbox7EPY50Mi7SM="}],"unpackedSize":5364},"main":"./dist/index.js","name":"@dojo-ng/rich-text-headings","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":"Headings/quote 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","@dojo-ng/rich-text":"^0.1.3","@lexical/rich-text":"^0.21.0","@lexical/selection":"^0.21.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rich-text-headings_0.1.1_1791166864339_0.7321546582792233"}}},"time":{"created":"2026-09-02T18:40:35.137Z","modified":"2026-10-05T02:21:04.593Z","0.1.0":"2026-09-02T18:40:35.648Z","0.1.1":"2026-10-05T02:21:04.419Z"},"license":"BSD-3-Clause","description":"Headings/quote 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-headings\n\nHeadings (levels 1 to 3) and block quotes for `<dj-rich-text>`.\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-headings\n```\n\n## Usage\n\nCompose the headings plugin with the default set; the toolbar gains a paragraph-style select. Choosing Heading 1–3 or Quote converts the current block(s); choosing Paragraph converts back.\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 { headingsPlugin } from \"@dojo-ng/rich-text-headings\";\n  document.getElementById(\"editor\").plugins = [...defaultPlugins, headingsPlugin];\n</script>\n```\n\n## Using it\n\n- The toolbar gets a paragraph-style menu that shows the current block's type (Paragraph, Heading 1 to 3, or Quote) and changes the selected blocks to the chosen type. Focus returns to the editor.\n- With `rich-text-slash` loaded, the slash menu also offers Paragraph, Heading 1 to 3, and Quote.\n\n## Why you need it\n\nLexical needs its node types when the editor is created. Without this plugin, headings and quotes cannot exist in the document at all:\n\n- Pasted or `value`-set `<h1>` to `<h3>` and `<blockquote>` become plain paragraphs.\n- `rich-text-markdown`'s `# ` and `> ` shortcuts have nothing to convert into.\n- `rich-text-slash`'s Heading and Quote items do nothing.\n\n## Setup\n\n- Exports `headingsPlugin`, ready to use. There is no `createHeadingsPlugin`, because there is nothing to configure.\n- Setting `plugins` replaces the default set, so spread `...defaultPlugins` to keep bold, italic, underline, undo, and redo.\n","readmeFilename":"README.md"}