@sewadah/selaras-docs 1.4.3 → 1.4.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.4.5
4
+
5
+ [compare changes](https://github.com/sewadahapp/selaras/compare/selaras-docs-v1.4.4...selaras-docs-v1.4.5)
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **fix(compat):** keep Nuxt 5 nightly checks working ([7bb326e](https://github.com/sewadahapp/selaras/commit/7bb326ecf14bbeddb7dd1cce76b5cc2ecbaf4f63))
10
+ - **fix(compat):** keep Nuxt 5 nightly checks working ([b0c998a](https://github.com/sewadahapp/selaras/commit/b0c998a900b349fd1f2dcd172883bfab93688b1f))
11
+ - **fix(compat):** keep Nuxt 5 nightly checks working ([98974a6](https://github.com/sewadahapp/selaras/commit/98974a671af9887d1f7d642db22126b652c4cc7d))
12
+
13
+ ### 🤖 Other changes
14
+
15
+ - Merge pull request #43 from sewadahapp/fix/input-search-clear-control ([9fc4ecd](https://github.com/sewadahapp/selaras/commit/9fc4ecd7b541a7245027bf471f805b5fbdbcd5ef))
16
+
17
+ Published against `@sewadah/selaras` ^1.4.0.
18
+
19
+ ## v1.4.4
20
+
21
+ [compare changes](https://github.com/sewadahapp/selaras/compare/selaras-docs-v1.4.3...selaras-docs-v1.4.4)
22
+
23
+ ### 🩹 Fixes
24
+
25
+ - **fix(docs):** preserve language popover anchor after hydration ([1b83dd3](https://github.com/sewadahapp/selaras/commit/1b83dd35a2a1354e840a0377572351fe0eb61659))
26
+
27
+ ### 🤖 Other changes
28
+
29
+ - Merge pull request #39 from sewadahapp/fix/docs-language-popover-anchor ([5efa87a](https://github.com/sewadahapp/selaras/commit/5efa87ad5019d7a4c27888f35d83bf0420d4dadf))
30
+
31
+ Published against `@sewadah/selaras` ^1.3.0.
32
+
3
33
  ## v1.4.3
4
34
 
5
35
  [compare changes](https://github.com/sewadahapp/selaras/compare/selaras-docs-v1.4.2...selaras-docs-v1.4.3)
@@ -5,7 +5,8 @@ const { locale, locales, localeOption, hasLocaleSwitching, setLocale } = useDocs
5
5
  const messages = useDocsMessages()
6
6
  const open = ref(false)
7
7
  // A root locale redirect can hydrate a different locale than the prerendered
8
- // trigger. Replace that trigger after hydration so its icon and label match.
8
+ // trigger. Refresh the popover with its trigger so the icon and label match
9
+ // and its positioning anchor references the newly mounted button.
9
10
  const hydrated = ref(false)
10
11
  onMounted(() => {
11
12
  hydrated.value = true
@@ -16,9 +17,8 @@ const label = computed(() => formatDocsMessage(messages.value.languageSwitcher,
16
17
  </script>
17
18
 
18
19
  <template>
19
- <SPopover v-if="hasLocaleSwitching" v-model:open="open" :positioning="{ side: 'bottom', align: 'end', sideOffset: 8 }" :ui="{ content: 'p-2' }">
20
+ <SPopover v-if="hasLocaleSwitching" :key="String(hydrated)" v-model:open="open" :positioning="{ side: 'bottom', align: 'end', sideOffset: 8 }" :ui="{ content: 'p-2' }">
20
21
  <SButton
21
- :key="String(hydrated)"
22
22
  variant="ghost"
23
23
  color="neutral"
24
24
  square
package/nuxt.config.mjs CHANGED
@@ -7,6 +7,9 @@ export default defineNuxtConfig({
7
7
  modules: ['@sewadah/selaras', '@nuxt/content', resolve('./modules/docs.mjs')],
8
8
  experimental: {
9
9
  emitRouteChunkError: 'automatic-immediate',
10
+ // Keep page boundaries client-side so fatal SSR errors reach error.vue
11
+ // and Nuxt sends the original HTTP error status.
12
+ ssrErrorBoundary: false,
10
13
  // Content 3 still imports server utilities from Nitro's generated imports.
11
14
  nitroAutoImports: true,
12
15
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sewadah/selaras-docs",
3
3
  "type": "module",
4
- "version": "1.4.3",
4
+ "version": "1.4.5",
5
5
  "description": "Nuxt Content documentation layer for Selaras",
6
6
  "repository": {
7
7
  "type": "git",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@nuxt/content": "^3.16.0",
35
35
  "@nuxt/kit": "^4.5.2",
36
- "@sewadah/selaras": "^1.3.0",
36
+ "@sewadah/selaras": "^1.4.0",
37
37
  "tailwindcss": "^4.3.0"
38
38
  }
39
39
  }