@rspress/plugin-medium-zoom 1.38.0 → 1.39.0
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/dist/index.d.ts +11 -1
- package/dist/index.js +1 -3
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
@@ -128,6 +128,11 @@ declare interface Config$1 {
|
|
128
128
|
* @default 'auto'
|
129
129
|
*/
|
130
130
|
localeRedirect?: 'auto' | 'never';
|
131
|
+
/**
|
132
|
+
* Whether to show the fallback heading title when the heading title is not presented but `frontmatter.title` exists
|
133
|
+
* @default true
|
134
|
+
*/
|
135
|
+
fallbackHeadingTitle?: boolean;
|
131
136
|
}
|
132
137
|
|
133
138
|
declare interface DocFooter {
|
@@ -507,6 +512,7 @@ declare type SSGConfig = boolean | {
|
|
507
512
|
declare interface UserConfig<ThemeConfig = Config$1> {
|
508
513
|
/**
|
509
514
|
* The root directory of the site.
|
515
|
+
* @default 'docs'
|
510
516
|
*/
|
511
517
|
root?: string;
|
512
518
|
/**
|
@@ -518,10 +524,12 @@ declare interface UserConfig<ThemeConfig = Config$1> {
|
|
518
524
|
};
|
519
525
|
/**
|
520
526
|
* The text of the logo in nav bar.
|
527
|
+
* @default ''
|
521
528
|
*/
|
522
529
|
logoText?: string;
|
523
530
|
/**
|
524
531
|
* Base path of the site.
|
532
|
+
* @default '/'
|
525
533
|
*/
|
526
534
|
base?: string;
|
527
535
|
/**
|
@@ -529,15 +537,17 @@ declare interface UserConfig<ThemeConfig = Config$1> {
|
|
529
537
|
*/
|
530
538
|
icon?: string;
|
531
539
|
/**
|
532
|
-
*
|
540
|
+
* Default language of the site.
|
533
541
|
*/
|
534
542
|
lang?: string;
|
535
543
|
/**
|
536
544
|
* Title of the site.
|
545
|
+
* @default 'Rspress'
|
537
546
|
*/
|
538
547
|
title?: string;
|
539
548
|
/**
|
540
549
|
* Description of the site.
|
550
|
+
* @default ''
|
541
551
|
*/
|
542
552
|
description?: string;
|
543
553
|
/**
|
package/dist/index.js
CHANGED
@@ -17,9 +17,7 @@ function normalizePosixPath(id) {
|
|
17
17
|
if (isAbsolutePath) normalizedPath = `/${normalizedPath}`;
|
18
18
|
return normalizedPath;
|
19
19
|
}
|
20
|
-
|
21
|
-
* The plugin is used to add medium-zoom to the doc site.
|
22
|
-
*/ function pluginMediumZoom(options = {}) {
|
20
|
+
function pluginMediumZoom(options = {}) {
|
23
21
|
const __dirname = normalizePosixPath(__WEBPACK_EXTERNAL_MODULE_node_path__["default"].dirname((0, __WEBPACK_EXTERNAL_MODULE_node_url__.fileURLToPath)(import.meta.url)));
|
24
22
|
return {
|
25
23
|
name: '@rspress/plugin-medium-zoom',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/plugin-medium-zoom",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.39.0",
|
4
4
|
"description": "A plugin for rspress to zoom images in docs.",
|
5
5
|
"bugs": "https://github.com/web-infra-dev/rspress/issues",
|
6
6
|
"repository": {
|
@@ -18,19 +18,19 @@
|
|
18
18
|
"node": ">=14.17.6"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
|
-
"@microsoft/api-extractor": "^7.48.
|
22
|
-
"@modern-js/tsconfig": "2.63.
|
23
|
-
"@rslib/core": "0.1.
|
21
|
+
"@microsoft/api-extractor": "^7.48.1",
|
22
|
+
"@modern-js/tsconfig": "2.63.3",
|
23
|
+
"@rslib/core": "0.1.5",
|
24
24
|
"@types/node": "^18.11.17",
|
25
|
-
"@types/react": "^18.3.
|
26
|
-
"@types/react-dom": "^18.3.
|
25
|
+
"@types/react": "^18.3.18",
|
26
|
+
"@types/react-dom": "^18.3.5",
|
27
27
|
"react": "^18.3.1",
|
28
28
|
"typescript": "^5.5.3",
|
29
29
|
"vitest": "2.1.8",
|
30
|
-
"@rspress/shared": "1.
|
30
|
+
"@rspress/shared": "1.39.0"
|
31
31
|
},
|
32
32
|
"peerDependencies": {
|
33
|
-
"@rspress/runtime": "^1.
|
33
|
+
"@rspress/runtime": "^1.39.0"
|
34
34
|
},
|
35
35
|
"sideEffects": [
|
36
36
|
"*.css",
|