@rspress/plugin-medium-zoom 1.43.11 → 2.0.0-alpha-canary-202504162001

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -5
  2. package/package.json +9 -9
package/dist/index.d.ts CHANGED
@@ -366,6 +366,7 @@ declare interface PageIndexInfo {
366
366
  routePath: string;
367
367
  toc: Header[];
368
368
  content: string;
369
+ flattenContent?: string;
369
370
  _html: string;
370
371
  frontmatter: FrontMatterMeta;
371
372
  lang: string;
@@ -486,6 +487,10 @@ declare interface RspressPlugin {
486
487
  * Callback after route generated
487
488
  */
488
489
  routeGenerated?: (routes: RouteMeta[], isProd: boolean) => Promise<void> | void;
490
+ /**
491
+ * Callback after routeService generated
492
+ */
493
+ routeServiceGenerated?: (routeService: any, isProd: boolean) => Promise<void> | void;
489
494
  /**
490
495
  * Add addition ssg routes, for dynamic routes.
491
496
  */
@@ -560,10 +565,6 @@ declare type SocialLinkIcon = 'lark' | 'discord' | 'facebook' | 'github' | 'inst
560
565
  svg: string;
561
566
  };
562
567
 
563
- declare type SSGConfig = boolean | {
564
- strict?: boolean;
565
- };
566
-
567
568
  declare interface UserConfig<ThemeConfig = DefaultThemeConfig> {
568
569
  /**
569
570
  * The root directory of the site.
@@ -664,7 +665,7 @@ declare interface UserConfig<ThemeConfig = DefaultThemeConfig> {
664
665
  /**
665
666
  * Whether to enable ssg, default is true
666
667
  */
667
- ssg?: SSGConfig;
668
+ ssg?: boolean;
668
669
  /**
669
670
  * Whether to enable medium-zoom, default is true
670
671
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-medium-zoom",
3
- "version": "1.43.11",
3
+ "version": "2.0.0-alpha-canary-202504162001",
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": {
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "type": "module",
19
19
  "main": "./dist/index.js",
20
- "module": "./dist/node/index.js",
20
+ "module": "./dist/index.js",
21
21
  "types": "./dist/index.d.ts",
22
22
  "files": [
23
23
  "dist",
@@ -27,18 +27,18 @@
27
27
  "medium-zoom": "1.1.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@microsoft/api-extractor": "^7.49.2",
31
- "@rslib/core": "0.5.2",
30
+ "@microsoft/api-extractor": "^7.52.3",
31
+ "@rslib/core": "0.6.3",
32
32
  "@types/node": "^18.11.17",
33
- "@types/react": "^18.3.18",
34
- "@types/react-dom": "^18.3.5",
33
+ "@types/react": "^18.3.20",
34
+ "@types/react-dom": "^18.3.6",
35
35
  "react": "^18.3.1",
36
- "typescript": "^5.5.3",
36
+ "typescript": "^5.8.2",
37
37
  "@rspress/config": "1.0.0",
38
- "@rspress/shared": "1.43.11"
38
+ "@rspress/shared": "2.0.0-alpha-canary-202504162001"
39
39
  },
40
40
  "peerDependencies": {
41
- "@rspress/runtime": "^1.43.11"
41
+ "@rspress/runtime": "^2.0.0-alpha-canary-202504162001"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=14.17.6"