fumadocs-core 16.1.0 → 16.2.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.
Files changed (2) hide show
  1. package/dist/toc.js +1 -1
  2. package/package.json +1 -1
package/dist/toc.js CHANGED
@@ -100,7 +100,7 @@ function useAnchorObserver(watch, single) {
100
100
  }
101
101
  }
102
102
  if (state.visible.size === 0) {
103
- const viewTop = entries[0].rootBounds.top;
103
+ const viewTop = entries.length > 0 ? entries[0]?.rootBounds?.top ?? 0 : 0;
104
104
  let fallback;
105
105
  let min = -1;
106
106
  for (const id of watch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.1.0",
3
+ "version": "16.2.1",
4
4
  "description": "The React.js library for building a documentation website",
5
5
  "keywords": [
6
6
  "Fumadocs",