@vuepress/theme-default 2.0.0-beta.34 → 2.0.0-beta.35
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/lib/client/components/global/CodeGroup.d.ts +1 -1
- package/lib/client/composables/useNavLink.d.ts +5 -0
- package/lib/client/styles/transitions.scss +2 -2
- package/lib/node/utils/resolveActiveHeaderLinksPluginOptions.js +2 -0
- package/lib/node/utils/resolveMediumZoomPluginOptions.js +1 -1
- package/package.json +19 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
3
3
|
[key: string]: any;
|
|
4
|
-
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{}
|
|
4
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
5
5
|
export default _default;
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* fade-slide-y
|
|
11
11
|
*/
|
|
12
12
|
.fade-slide-y-enter-active {
|
|
13
|
-
transition: all 0.
|
|
13
|
+
transition: all 0.2s ease;
|
|
14
14
|
}
|
|
15
15
|
.fade-slide-y-leave-active {
|
|
16
|
-
transition: all 0.
|
|
16
|
+
transition: all 0.2s cubic-bezier(1, 0.5, 0.8, 1);
|
|
17
17
|
}
|
|
18
18
|
.fade-slide-y-enter-from,
|
|
19
19
|
.fade-slide-y-leave-to {
|
|
@@ -11,6 +11,8 @@ const resolveActiveHeaderLinksPluginOptions = (themePlugins) => {
|
|
|
11
11
|
return {
|
|
12
12
|
headerLinkSelector: 'a.sidebar-item',
|
|
13
13
|
headerAnchorSelector: '.header-anchor',
|
|
14
|
+
// should greater than page transition duration
|
|
15
|
+
delay: 300,
|
|
14
16
|
};
|
|
15
17
|
};
|
|
16
18
|
exports.resolveActiveHeaderLinksPluginOptions = resolveActiveHeaderLinksPluginOptions;
|
|
@@ -12,7 +12,7 @@ const resolveMediumZoomPluginOptions = (themePlugins) => {
|
|
|
12
12
|
selector: '.theme-default-content > img, .theme-default-content :not(a) > img',
|
|
13
13
|
zoomOptions: {},
|
|
14
14
|
// should greater than page transition duration
|
|
15
|
-
delay:
|
|
15
|
+
delay: 300,
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
exports.resolveMediumZoomPluginOptions = resolveMediumZoomPluginOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/theme-default",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.35",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-theme",
|
|
@@ -30,28 +30,28 @@
|
|
|
30
30
|
"copy": "cpx \"src/**/*.{d.ts,vue,scss}\" lib"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@vuepress/client": "2.0.0-beta.
|
|
34
|
-
"@vuepress/core": "2.0.0-beta.
|
|
35
|
-
"@vuepress/plugin-active-header-links": "2.0.0-beta.
|
|
36
|
-
"@vuepress/plugin-back-to-top": "2.0.0-beta.
|
|
37
|
-
"@vuepress/plugin-container": "2.0.0-beta.
|
|
38
|
-
"@vuepress/plugin-external-link-icon": "2.0.0-beta.
|
|
39
|
-
"@vuepress/plugin-git": "2.0.0-beta.
|
|
40
|
-
"@vuepress/plugin-medium-zoom": "2.0.0-beta.
|
|
41
|
-
"@vuepress/plugin-nprogress": "2.0.0-beta.
|
|
42
|
-
"@vuepress/plugin-palette": "2.0.0-beta.
|
|
43
|
-
"@vuepress/plugin-prismjs": "2.0.0-beta.
|
|
44
|
-
"@vuepress/plugin-theme-data": "2.0.0-beta.
|
|
45
|
-
"@vuepress/shared": "2.0.0-beta.
|
|
46
|
-
"@vuepress/utils": "2.0.0-beta.
|
|
47
|
-
"@vueuse/core": "^7.5.
|
|
48
|
-
"sass": "^1.
|
|
33
|
+
"@vuepress/client": "2.0.0-beta.35",
|
|
34
|
+
"@vuepress/core": "2.0.0-beta.35",
|
|
35
|
+
"@vuepress/plugin-active-header-links": "2.0.0-beta.35",
|
|
36
|
+
"@vuepress/plugin-back-to-top": "2.0.0-beta.35",
|
|
37
|
+
"@vuepress/plugin-container": "2.0.0-beta.35",
|
|
38
|
+
"@vuepress/plugin-external-link-icon": "2.0.0-beta.35",
|
|
39
|
+
"@vuepress/plugin-git": "2.0.0-beta.35",
|
|
40
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-beta.35",
|
|
41
|
+
"@vuepress/plugin-nprogress": "2.0.0-beta.35",
|
|
42
|
+
"@vuepress/plugin-palette": "2.0.0-beta.35",
|
|
43
|
+
"@vuepress/plugin-prismjs": "2.0.0-beta.35",
|
|
44
|
+
"@vuepress/plugin-theme-data": "2.0.0-beta.35",
|
|
45
|
+
"@vuepress/shared": "2.0.0-beta.35",
|
|
46
|
+
"@vuepress/utils": "2.0.0-beta.35",
|
|
47
|
+
"@vueuse/core": "^7.5.4",
|
|
48
|
+
"sass": "^1.49.0",
|
|
49
49
|
"sass-loader": "^12.4.0",
|
|
50
|
-
"vue": "^3.2.
|
|
50
|
+
"vue": "^3.2.28",
|
|
51
51
|
"vue-router": "^4.0.12"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "4bf1c55b6fb863c9251aa80178d5bc6475f5b315"
|
|
57
57
|
}
|