{"_id":"@dojo-ng/global-event","name":"@dojo-ng/global-event","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@dojo-ng/global-event","version":"0.1.0","license":"BSD-3-Clause","description":"Dojo NG global-event web component","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","clean":"rm -rf dist"},"dependencies":{"@dojo-ng/dojo-element":"^0.1.0","lit":"^3.3.0"},"_id":"@dojo-ng/global-event@0.1.0","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-qMtd+3TZvrmJu585+YWeivUnVkDZMiBZ2DF7dq4YA2rtbMw1fCw7bbQK/llIgjup4xOW5hww1EmhKS3Ib5aj4A==","shasum":"26147e62ed72213243626c1dca48c175669d767f","tarball":"https://registry.npmjs.org/@dojo-ng/global-event/-/global-event-0.1.0.tgz","fileCount":6,"unpackedSize":6812,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFq+l3p3pZr4n/HaTVQAGQXA4TUVxg2EOhFU8RShoEQcAiBO2PrGRtHICKQIh9tSuJ5n4Mc8YeKVH2JHYub8OsA7AQ=="}]},"_npmUser":{"name":"bitranch","email":"bill@bitranch.com"},"directories":{},"maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/global-event_0.1.0_1788374430063_0.1905865410500729"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-02T18:40:29.938Z","0.1.0":"2026-09-02T18:40:30.200Z","modified":"2026-09-02T18:40:30.419Z"},"maintainers":[{"name":"saysomething","email":"joshs@holmescorp.com"},{"name":"bitranch","email":"bill@bitranch.com"},{"name":"jepe","email":"jeffreyp@holmescorp.com"}],"description":"Dojo NG global-event web component","license":"BSD-3-Clause","readme":"# @dojo-ng/global-event\n\n`<dj-global-event>` — Non-visual; attaches listeners to window/document for its lifetime.\n\nPart of [Dojo NG](../../README.md), a framework-agnostic web component library built on Lit. BSD-3-Clause.\n\nNon-visual; attaches listeners to window/document for its lifetime. Set `windowListeners` / `documentListeners` (maps of event name → handler) as properties.\n\n## Install\n\n```bash\nnpm install @dojo-ng/global-event\n```\n\n## Usage\n\nImport the package to register the custom element, then use the tag.\n\nAttach listeners declaratively; they are added and cleaned up with the element.\n\n```html\n<dj-global-event id=\"ge\"></dj-global-event>\n<script type=\"module\">\n  import \"@dojo-ng/global-event\";\n  document.getElementById(\"ge\").windowListeners = { resize: () => console.log(window.innerWidth) };\n</script>\n```\n\n## Properties\n\n`↻` marks an attribute reflected to the DOM; a dash means the property is set in JavaScript only.\n\n| Property | Attribute | Type | Default |\n|---|---|---|---|\n| `windowListeners` | — | `Listeners` | `{}` |\n| `documentListeners` | — | `Listeners` | `{}` |\n\n## Theming\n\nStyled with Dojo NG `--dj-*` design tokens and exposes `::part()` hooks for targeted overrides.\n\n## Accessibility and i18n\n\nFollows the project's WCAG 2.2 AA and localization conventions.\n\n## More\n\nLive, interactive examples are in the playground (`playground/index.html`). For the full API reference, theming, accessibility, and localization guides, see the [Dojo NG documentation](../../README.md).\n","readmeFilename":"README.md","_rev":"1-3d97aaadc93e8cce6b860e86b211632e"}