docus 5.12.2 → 5.12.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.
|
@@ -23,6 +23,12 @@ const open = computed({
|
|
|
23
23
|
},
|
|
24
24
|
})
|
|
25
25
|
|
|
26
|
+
const promptRef = ref<{ textareaRef?: HTMLTextAreaElement } | null>(null)
|
|
27
|
+
watch(open, (value) => {
|
|
28
|
+
if (!value) return
|
|
29
|
+
nextTick(() => promptRef.value?.textareaRef?.focus({ preventScroll: true }))
|
|
30
|
+
})
|
|
31
|
+
|
|
26
32
|
const displayTitle = computed(() => t('assistant.title'))
|
|
27
33
|
const displayPlaceholder = computed(() => t('assistant.placeholder'))
|
|
28
34
|
|
|
@@ -273,6 +279,7 @@ defineShortcuts({
|
|
|
273
279
|
|
|
274
280
|
<template #footer>
|
|
275
281
|
<UChatPrompt
|
|
282
|
+
ref="promptRef"
|
|
276
283
|
v-model="input"
|
|
277
284
|
:error="chat.error"
|
|
278
285
|
:placeholder="displayPlaceholder"
|
package/modules/css.ts
CHANGED
|
@@ -14,6 +14,7 @@ export default defineNuxtModule({
|
|
|
14
14
|
const resolver = createResolver(import.meta.url)
|
|
15
15
|
|
|
16
16
|
const contentDir = resolve(nuxt.options.rootDir, 'content')
|
|
17
|
+
const appConfigPath = resolve(nuxt.options.srcDir, 'app.config.ts')
|
|
17
18
|
const uiPath = resolveModulePath('@nuxt/ui', { from: import.meta.url, conditions: ['style'] })
|
|
18
19
|
const tailwindPath = resolveModulePath('tailwindcss', { from: import.meta.url, conditions: ['style'] })
|
|
19
20
|
const layerDir = resolver.resolve('../app')
|
|
@@ -34,13 +35,14 @@ export default defineNuxtModule({
|
|
|
34
35
|
|
|
35
36
|
const cssTemplate = addTemplate({
|
|
36
37
|
filename: 'docus.css',
|
|
38
|
+
write: true,
|
|
37
39
|
getContents: () => {
|
|
38
40
|
return `@import ${JSON.stringify(tailwindPath)};
|
|
39
41
|
@import ${JSON.stringify(uiPath)};
|
|
40
42
|
|
|
41
43
|
@source "${contentDir.replace(/\\/g, '/')}/**/*";
|
|
42
44
|
@source "${layerDir.replace(/\\/g, '/')}/**/*";
|
|
43
|
-
@source "
|
|
45
|
+
@source "${appConfigPath.replace(/\\/g, '/')}";
|
|
44
46
|
@source "${assistantDir.replace(/\\/g, '/')}/**/*";
|
|
45
47
|
|
|
46
48
|
html.dark .shiki span {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docus",
|
|
3
3
|
"description": "Nuxt layer for Docus documentation theme",
|
|
4
|
-
"version": "5.12.
|
|
4
|
+
"version": "5.12.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
7
7
|
"repository": {
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ai-sdk/gateway": "^3.0.
|
|
27
|
-
"@ai-sdk/mcp": "^1.0.
|
|
28
|
-
"@ai-sdk/vue": "^3.0.
|
|
26
|
+
"@ai-sdk/gateway": "^3.0.133",
|
|
27
|
+
"@ai-sdk/mcp": "^1.0.52",
|
|
28
|
+
"@ai-sdk/vue": "^3.0.208",
|
|
29
29
|
"@comark/vue": "^0.4.0",
|
|
30
|
-
"@iconify-json/lucide": "^1.2.
|
|
31
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
32
|
-
"@iconify-json/vscode-icons": "^1.2.
|
|
30
|
+
"@iconify-json/lucide": "^1.2.114",
|
|
31
|
+
"@iconify-json/simple-icons": "^1.2.87",
|
|
32
|
+
"@iconify-json/vscode-icons": "^1.2.59",
|
|
33
33
|
"@nuxt/content": "^3.14.0",
|
|
34
34
|
"@nuxt/image": "^2.0.0",
|
|
35
35
|
"@nuxt/kit": "^4.4.8",
|
|
36
|
-
"@nuxt/ui": "^4.
|
|
36
|
+
"@nuxt/ui": "^4.9.0",
|
|
37
37
|
"@nuxtjs/i18n": "^10.4.0",
|
|
38
38
|
"@nuxtjs/mcp-toolkit": "^0.17.2",
|
|
39
39
|
"@nuxtjs/mdc": "^0.22.0",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@shikijs/langs": "^4.2.0",
|
|
44
44
|
"@shikijs/stream": "^4.2.0",
|
|
45
45
|
"@shikijs/themes": "^4.2.0",
|
|
46
|
-
"@takumi-rs/core": "^1.8.
|
|
46
|
+
"@takumi-rs/core": "^1.8.7",
|
|
47
47
|
"@vueuse/core": "^14.3.0",
|
|
48
|
-
"ai": "^6.0.
|
|
48
|
+
"ai": "^6.0.208",
|
|
49
49
|
"defu": "^6.1.7",
|
|
50
|
-
"exsolve": "^1.0
|
|
50
|
+
"exsolve": "^1.1.0",
|
|
51
51
|
"git-url-parse": "^16.1.0",
|
|
52
52
|
"motion-v": "^2.3.0",
|
|
53
53
|
"nuxt-llms": "^0.2.0",
|