@docsector/docsector-reader 4.3.2 → 4.3.3

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/README.md CHANGED
@@ -52,7 +52,7 @@ Transform Markdown content into beautiful, navigable documentation sites — wit
52
52
  - 🌍 **Internationalization (i18n)** — Multi-language support with HJSON locale files and per-page translations
53
53
  - 🌗 **Dark/Light Mode** — Automatic theme switching with Quasar Dark Plugin
54
54
  - 🧰 **Docsector CLI Skill Installer** — Install the built-in authoring skill into older scaffolds with `docsector install-skill`
55
- - 🔗 **Anchor Navigation** — Right-side source-ordered Table of Contents tree with stable scroll tracking, auto-scroll to the active section, and active-heading resolution based on the last heading that crossed the content threshold
55
+ - 🔗 **Anchor Navigation** — Right-side source-ordered Table of Contents tree with stable scroll tracking, resize-safe drawer state, auto-scroll to the active section, and active-heading resolution based on the last heading that crossed the content threshold
56
56
  - 🖱️ **Active Menu Item UX** — Active menu entries keep pointer cursor, clear URL hash without redundant navigation, and prevent accidental label text selection
57
57
  - 🔎 **Search** — Menu search across all documentation content and tags
58
58
  - 📱 **Responsive** — Mobile-friendly with collapsible sidebar and drawers
package/bin/docsector.js CHANGED
@@ -24,7 +24,7 @@ const packageRoot = resolve(__dirname, '..')
24
24
  const args = process.argv.slice(2)
25
25
  const command = args[0]
26
26
 
27
- const VERSION = '4.3.2'
27
+ const VERSION = '4.3.3'
28
28
  const AUTHORING_SKILL_NAME = 'docsector-documentation-authoring'
29
29
  const AUTHORING_SKILL_DESCRIPTION = 'Author Docsector documentation with Markdown, custom blocks, MCP, and WebMCP.'
30
30
  const AUTHORING_SKILL_PUBLIC_PATH = `/.well-known/agent-skills/${AUTHORING_SKILL_NAME}/SKILL.md`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsector/docsector-reader",
3
- "version": "4.3.2",
3
+ "version": "4.3.3",
4
4
  "description": "A documentation rendering engine built with Vue 3, Quasar v2 and Vite. Transform Markdown into beautiful, navigable documentation sites.",
5
5
  "productName": "Docsector Reader",
6
6
  "author": "Rodrigo de Araujo Vieira",
@@ -15,6 +15,8 @@ const { t } = useI18n()
15
15
  const { navigate, anchor, selected: navigatorSelected } = useNavigator()
16
16
 
17
17
  const scrolling = ref(null)
18
+ const enableScrollingTimeout = ref(null)
19
+ const initialAnchorTimeout = ref(null)
18
20
 
19
21
  const nodes = computed(() => store.getters['page/nodes'])
20
22
  const expanded = computed({
@@ -77,13 +79,13 @@ watch(selected, () => {
77
79
  onMounted(() => {
78
80
  store.commit('layout/setMetaToggle', true)
79
81
 
80
- setTimeout(() => {
82
+ enableScrollingTimeout.value = setTimeout(() => {
81
83
  store.commit('page/setScrolling', true)
82
84
  }, 1000)
83
85
 
84
86
  const id = route.hash.replace(/^#+/g, '')
85
87
  if (id) {
86
- setTimeout(() => {
88
+ initialAnchorTimeout.value = setTimeout(() => {
87
89
  anchor(route.hash)
88
90
  }, 500)
89
91
  }
@@ -94,13 +96,15 @@ onBeforeUnmount(() => {
94
96
  clearTimeout(scrolling.value)
95
97
  }
96
98
 
97
- store.commit('layout/setMetaToggle', false)
99
+ if (enableScrollingTimeout.value) {
100
+ clearTimeout(enableScrollingTimeout.value)
101
+ }
98
102
 
99
- store.commit('page/resetAnchor')
100
- store.commit('page/resetAnchors')
101
- store.commit('page/resetNodes')
103
+ if (initialAnchorTimeout.value) {
104
+ clearTimeout(initialAnchorTimeout.value)
105
+ }
102
106
 
103
- store.commit('page/setScrolling', false)
107
+ store.commit('layout/setMetaToggle', false)
104
108
  })
105
109
  </script>
106
110
 
@@ -44,7 +44,7 @@ When the user scrolls the page content, the `DPage` scroll observer calls `useNa
44
44
  ## Lifecycle
45
45
 
46
46
  - **onMounted** — Enables meta toggle, starts scroll tracking after 1s delay, anchors to URL hash if present
47
- - **onBeforeUnmount** — Resets anchors, nodes, and disables scroll tracking
47
+ - **onBeforeUnmount** — Clears local timers and disables the meta drawer toggle without clearing the page Table of Contents state during responsive UI unmounts
48
48
 
49
49
  ## Styling
50
50
 
@@ -44,7 +44,7 @@ Quando o usuário faz scroll no conteúdo da página, o observador de scroll do
44
44
  ## Ciclo de Vida
45
45
 
46
46
  - **onMounted** — Habilita toggle de meta, inicia rastreamento de scroll após 1s de delay, ancora no hash da URL se presente
47
- - **onBeforeUnmount** — Reseta âncoras, nós e desabilita rastreamento de scroll
47
+ - **onBeforeUnmount** — Limpa timers locais e desabilita o toggle do drawer meta sem apagar o estado do índice da página durante desmontagens responsivas da UI
48
48
 
49
49
  ## Estilização
50
50