@rspress/shared 2.0.0-alpha.8 → 2.0.0-beta.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 CHANGED
@@ -737,10 +737,6 @@ export declare type SocialLinkIcon = 'lark' | 'discord' | 'facebook' | 'github'
737
737
  svg: string;
738
738
  };
739
739
 
740
- export declare type SSGConfig = boolean | {
741
- fallback?: false | 'csr';
742
- };
743
-
744
740
  export declare interface UserConfig<ThemeConfig = DefaultThemeConfig> {
745
741
  /**
746
742
  * The root directory of the site.
@@ -841,7 +837,7 @@ export declare interface UserConfig<ThemeConfig = DefaultThemeConfig> {
841
837
  /**
842
838
  * Whether to enable ssg, default is true
843
839
  */
844
- ssg?: SSGConfig;
840
+ ssg?: boolean;
845
841
  /**
846
842
  * Whether to enable medium-zoom, default is true
847
843
  */
@@ -570,10 +570,6 @@ declare type SocialLinkIcon = 'lark' | 'discord' | 'facebook' | 'github' | 'inst
570
570
  svg: string;
571
571
  };
572
572
 
573
- declare type SSGConfig = boolean | {
574
- fallback?: false | 'csr';
575
- };
576
-
577
573
  declare interface UserConfig<ThemeConfig = Config> {
578
574
  /**
579
575
  * The root directory of the site.
@@ -674,7 +670,7 @@ declare interface UserConfig<ThemeConfig = Config> {
674
670
  /**
675
671
  * Whether to enable ssg, default is true
676
672
  */
677
- ssg?: SSGConfig;
673
+ ssg?: boolean;
678
674
  /**
679
675
  * Whether to enable medium-zoom, default is true
680
676
  */
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  var __webpack_modules__ = {
3
3
  "lodash-es": function(module) {
4
- module.exports = import("lodash-es");
4
+ module.exports = import("lodash-es").then(function(module) {
5
+ return module;
6
+ });
5
7
  }
6
8
  };
7
9
  var __webpack_module_cache__ = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "2.0.0-alpha.8",
3
+ "version": "2.0.0-beta.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rspress",
@@ -36,19 +36,18 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@rsbuild/core": "1.3.0",
39
+ "@rsbuild/core": "1.3.9",
40
40
  "gray-matter": "4.0.3",
41
41
  "lodash-es": "^4.17.21",
42
- "unified": "^10.1.2"
42
+ "unified": "^11.0.5"
43
43
  },
44
44
  "devDependencies": {
45
- "@rslib/core": "0.6.0",
46
- "@types/fs-extra": "11.0.4",
45
+ "@rslib/core": "0.6.5",
47
46
  "@types/jest": "~29.5.14",
48
47
  "@types/lodash-es": "^4.17.12",
49
48
  "@types/node": "^18.11.17",
50
49
  "@types/react": "^18.3.20",
51
- "mdast-util-mdx-jsx": "^2.1.4",
50
+ "mdast-util-mdx-jsx": "^3.2.0",
52
51
  "medium-zoom": "1.1.0",
53
52
  "rimraf": "^6.0.1",
54
53
  "typescript": "^5.8.2"