@brett_lamy/docstream 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brett_lamy/docstream",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "GitBook-aware readonly markdown and AI stream renderer.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -122,7 +122,7 @@ export function DocPageActions(props: DocPageActionsProps) {
122
122
  }
123
123
 
124
124
  const onMenuKey = (event: KeyboardEvent<HTMLDivElement>) => {
125
- const entries = [...event.currentTarget.querySelectorAll<HTMLElement>("[role=menuitem]")]
125
+ const entries = Array.from(event.currentTarget.querySelectorAll<HTMLElement>("[role=menuitem]"))
126
126
  const index = entries.indexOf(document.activeElement as HTMLElement)
127
127
  let next = -1
128
128
  if (event.key === "ArrowDown") next = (index + 1) % entries.length