diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 638ec6531c..e7d0adb478 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -9,6 +9,8 @@ module.exports = { __VUE_HMR_RUNTIME__: 'readonly', __VUE_OPTIONS_API__: 'readonly', __VUE_PROD_DEVTOOLS__: 'readonly', + // workaround for vue3.3 slots, should be removed once eslint-plugin-vue supports this + defineSlots: 'readonly', }, overrides: [ { diff --git a/docs/package.json b/docs/package.json index 6ccf8cb390..b286bad69d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -24,6 +24,6 @@ "@vuepress/utils": "workspace:*", "anywhere": "^1.6.0", "sass-loader": "^13.2.2", - "vue": "^3.2.47" + "vue": "^3.3.1" } } diff --git a/ecosystem/plugin-active-header-links/package.json b/ecosystem/plugin-active-header-links/package.json index e61550c715..eac0d4d3e1 100644 --- a/ecosystem/plugin-active-header-links/package.json +++ b/ecosystem/plugin-active-header-links/package.json @@ -39,8 +39,8 @@ "@vuepress/core": "workspace:*", "@vuepress/utils": "workspace:*", "ts-debounce": "^4.0.0", - "vue": "^3.2.47", - "vue-router": "^4.1.6" + "vue": "^3.3.1", + "vue-router": "^4.2.0" }, "publishConfig": { "access": "public" diff --git a/ecosystem/plugin-back-to-top/package.json b/ecosystem/plugin-back-to-top/package.json index 4e68591e83..b3c042346d 100644 --- a/ecosystem/plugin-back-to-top/package.json +++ b/ecosystem/plugin-back-to-top/package.json @@ -39,7 +39,7 @@ "@vuepress/core": "workspace:*", "@vuepress/utils": "workspace:*", "ts-debounce": "^4.0.0", - "vue": "^3.2.47" + "vue": "^3.3.1" }, "publishConfig": { "access": "public" diff --git a/ecosystem/plugin-docsearch/package.json b/ecosystem/plugin-docsearch/package.json index bcba738cd6..a75f5011a4 100644 --- a/ecosystem/plugin-docsearch/package.json +++ b/ecosystem/plugin-docsearch/package.json @@ -46,8 +46,8 @@ "@vuepress/utils": "workspace:*", "@vueuse/core": "^10.1.2", "ts-debounce": "^4.0.0", - "vue": "^3.2.47", - "vue-router": "^4.1.6" + "vue": "^3.3.1", + "vue-router": "^4.2.0" }, "publishConfig": { "access": "public" diff --git a/ecosystem/plugin-external-link-icon/package.json b/ecosystem/plugin-external-link-icon/package.json index 90204d30dc..480095e327 100644 --- a/ecosystem/plugin-external-link-icon/package.json +++ b/ecosystem/plugin-external-link-icon/package.json @@ -40,7 +40,7 @@ "@vuepress/markdown": "workspace:*", "@vuepress/shared": "workspace:*", "@vuepress/utils": "workspace:*", - "vue": "^3.2.47" + "vue": "^3.3.1" }, "publishConfig": { "access": "public" diff --git a/ecosystem/plugin-medium-zoom/package.json b/ecosystem/plugin-medium-zoom/package.json index f949816112..058d6396fe 100644 --- a/ecosystem/plugin-medium-zoom/package.json +++ b/ecosystem/plugin-medium-zoom/package.json @@ -41,7 +41,7 @@ "@vuepress/core": "workspace:*", "@vuepress/utils": "workspace:*", "medium-zoom": "^1.0.8", - "vue": "^3.2.47" + "vue": "^3.3.1" }, "publishConfig": { "access": "public" diff --git a/ecosystem/plugin-nprogress/package.json b/ecosystem/plugin-nprogress/package.json index 9926ec4cc7..42c6f611c6 100644 --- a/ecosystem/plugin-nprogress/package.json +++ b/ecosystem/plugin-nprogress/package.json @@ -38,8 +38,8 @@ "@vuepress/client": "workspace:*", "@vuepress/core": "workspace:*", "@vuepress/utils": "workspace:*", - "vue": "^3.2.47", - "vue-router": "^4.1.6" + "vue": "^3.3.1", + "vue-router": "^4.2.0" }, "publishConfig": { "access": "public" diff --git a/ecosystem/plugin-pwa-popup/package.json b/ecosystem/plugin-pwa-popup/package.json index f6d97d4565..f605cf49f3 100644 --- a/ecosystem/plugin-pwa-popup/package.json +++ b/ecosystem/plugin-pwa-popup/package.json @@ -41,7 +41,7 @@ "@vuepress/plugin-pwa": "workspace:*", "@vuepress/shared": "workspace:*", "@vuepress/utils": "workspace:*", - "vue": "^3.2.47" + "vue": "^3.3.1" }, "publishConfig": { "access": "public" diff --git a/ecosystem/plugin-pwa/package.json b/ecosystem/plugin-pwa/package.json index 57cbaa5fbb..1091e0e659 100644 --- a/ecosystem/plugin-pwa/package.json +++ b/ecosystem/plugin-pwa/package.json @@ -39,7 +39,7 @@ "@vuepress/utils": "workspace:*", "mitt": "^3.0.0", "register-service-worker": "^1.7.2", - "vue": "^3.2.47", + "vue": "^3.3.1", "workbox-build": "^6.5.4" }, "publishConfig": { diff --git a/ecosystem/plugin-search/package.json b/ecosystem/plugin-search/package.json index 13161dd2d2..6456483335 100644 --- a/ecosystem/plugin-search/package.json +++ b/ecosystem/plugin-search/package.json @@ -40,8 +40,8 @@ "@vuepress/shared": "workspace:*", "@vuepress/utils": "workspace:*", "chokidar": "^3.5.3", - "vue": "^3.2.47", - "vue-router": "^4.1.6" + "vue": "^3.3.1", + "vue-router": "^4.2.0" }, "publishConfig": { "access": "public" diff --git a/ecosystem/plugin-theme-data/package.json b/ecosystem/plugin-theme-data/package.json index 63c178c773..6c961f15ff 100644 --- a/ecosystem/plugin-theme-data/package.json +++ b/ecosystem/plugin-theme-data/package.json @@ -40,7 +40,7 @@ "@vuepress/core": "workspace:*", "@vuepress/shared": "workspace:*", "@vuepress/utils": "workspace:*", - "vue": "^3.2.47" + "vue": "^3.3.1" }, "publishConfig": { "access": "public" diff --git a/ecosystem/plugin-toc/package.json b/ecosystem/plugin-toc/package.json index b5206ab35b..58d255a5ac 100644 --- a/ecosystem/plugin-toc/package.json +++ b/ecosystem/plugin-toc/package.json @@ -37,8 +37,8 @@ "@vuepress/client": "workspace:*", "@vuepress/core": "workspace:*", "@vuepress/utils": "workspace:*", - "vue": "^3.2.47", - "vue-router": "^4.1.6" + "vue": "^3.3.1", + "vue-router": "^4.2.0" }, "publishConfig": { "access": "public" diff --git a/ecosystem/theme-default/package.json b/ecosystem/theme-default/package.json index 7b65028973..b49306aaa2 100644 --- a/ecosystem/theme-default/package.json +++ b/ecosystem/theme-default/package.json @@ -57,8 +57,9 @@ "@vuepress/utils": "workspace:*", "@vueuse/core": "^10.1.2", "sass": "^1.62.1", - "vue": "^3.2.47", - "vue-router": "^4.1.6" + "sass-loader": "^13.2.2", + "vue": "^3.3.1", + "vue-router": "^4.2.0" }, "peerDependencies": { "sass-loader": "^13.2.1" diff --git a/ecosystem/theme-default/src/client/components/AutoLink.vue b/ecosystem/theme-default/src/client/components/AutoLink.vue index 09a519f679..c9162caf33 100644 --- a/ecosystem/theme-default/src/client/components/AutoLink.vue +++ b/ecosystem/theme-default/src/client/components/AutoLink.vue @@ -23,6 +23,11 @@ const props = defineProps({ }, }) +defineSlots<{ + before?: (props: Record) => any + after?: (props: Record) => any +}>() + const route = useRoute() const site = useSiteData() const { item } = toRefs(props) diff --git a/ecosystem/theme-default/src/client/components/DropdownTransition.vue b/ecosystem/theme-default/src/client/components/DropdownTransition.vue index 2dedb26e48..5dfd1ad438 100644 --- a/ecosystem/theme-default/src/client/components/DropdownTransition.vue +++ b/ecosystem/theme-default/src/client/components/DropdownTransition.vue @@ -1,4 +1,8 @@