Skip to content

Commit

Permalink
chore: bump to Vue 3.4 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 25, 2023
1 parent 93122ee commit bddf74e
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 82 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@docsearch/css": "^3.5.2",
"@docsearch/js": "^3.5.2",
"@types/markdown-it": "^13.0.7",
"@vitejs/plugin-vue": "^4.5.2",
"@vitejs/plugin-vue": "^5.0.0-beta.1",
"@vue/devtools-api": "^6.5.1",
"@vueuse/core": "^10.7.0",
"@vueuse/integrations": "^10.7.0",
Expand All @@ -104,7 +104,7 @@
"shikiji": "^0.9.7",
"shikiji-transformers": "^0.9.7",
"vite": "^5.0.10",
"vue": "^3.3.12"
"vue": "^3.4.0-beta.4"
},
"peerDependencies": {
"markdown-it-mathjax3": "^4.3.2",
Expand Down
170 changes: 93 additions & 77 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions src/client/theme-default/components/VPAlgoliaSearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ async function update() {
}
function initialize(userOptions: DefaultTheme.AlgoliaSearchOptions) {
const options = Object.assign<{}, {}, DocSearchProps>({}, userOptions, {
const options = Object.assign<
{},
DefaultTheme.AlgoliaSearchOptions,
Partial<DocSearchProps>
>({}, userOptions, {
container: '#docsearch',
navigator: {
Expand All @@ -69,7 +73,6 @@ function initialize(userOptions: DefaultTheme.AlgoliaSearchOptions) {
})
},
// @ts-expect-error vue-tsc thinks this should return Vue JSX but it returns the required React one
hitComponent({ hit, children }) {
return {
__v: null,
Expand All @@ -80,7 +83,7 @@ function initialize(userOptions: DefaultTheme.AlgoliaSearchOptions) {
props: { href: hit.url, children }
}
}
})
}) as DocSearchProps
docsearch(options)
}
Expand Down

0 comments on commit bddf74e

Please sign in to comment.