@rspress/shared 1.43.0 → 2.0.0-alpha.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/constants.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var __webpack_require__ = {};
3
3
  (()=>{
4
- __webpack_require__.d = function(exports1, definition) {
4
+ __webpack_require__.d = (exports1, definition)=>{
5
5
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
6
  enumerable: true,
7
7
  get: definition[key]
@@ -9,9 +9,7 @@ var __webpack_require__ = {};
9
9
  };
10
10
  })();
11
11
  (()=>{
12
- __webpack_require__.o = function(obj, prop) {
13
- return Object.prototype.hasOwnProperty.call(obj, prop);
14
- };
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
15
13
  })();
16
14
  (()=>{
17
15
  __webpack_require__.r = function(exports1) {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var __webpack_require__ = {};
3
3
  (()=>{
4
- __webpack_require__.d = function(exports1, definition) {
4
+ __webpack_require__.d = (exports1, definition)=>{
5
5
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
6
  enumerable: true,
7
7
  get: definition[key]
@@ -9,9 +9,7 @@ var __webpack_require__ = {};
9
9
  };
10
10
  })();
11
11
  (()=>{
12
- __webpack_require__.o = function(obj, prop) {
13
- return Object.prototype.hasOwnProperty.call(obj, prop);
14
- };
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
15
13
  })();
16
14
  (()=>{
17
15
  __webpack_require__.r = function(exports1) {
@@ -26,37 +24,37 @@ var __webpack_require__ = {};
26
24
  var __webpack_exports__ = {};
27
25
  __webpack_require__.r(__webpack_exports__);
28
26
  __webpack_require__.d(__webpack_exports__, {
29
- SEARCH_INDEX_NAME: ()=>SEARCH_INDEX_NAME,
30
27
  RSPRESS_TEMP_DIR: ()=>RSPRESS_TEMP_DIR,
31
- QUERY_REGEXP: ()=>QUERY_REGEXP,
32
- isDebugMode: ()=>isDebugMode,
33
- addTrailingSlash: ()=>addTrailingSlash,
28
+ parseUrl: ()=>parseUrl,
29
+ withBase: ()=>withBase,
34
30
  slash: ()=>slash,
31
+ removeBase: ()=>removeBase,
32
+ replaceLang: ()=>replaceLang,
35
33
  removeLeadingSlash: ()=>removeLeadingSlash,
36
- withoutBase: ()=>withoutBase,
34
+ addLeadingSlash: ()=>addLeadingSlash,
37
35
  replaceVersion: ()=>replaceVersion,
36
+ isDevDebugMode: ()=>isDevDebugMode,
38
37
  HASH_REGEXP: ()=>HASH_REGEXP,
39
- isSCM: ()=>isSCM,
38
+ withoutLang: ()=>withoutLang,
40
39
  MDX_OR_MD_REGEXP: ()=>MDX_OR_MD_REGEXP,
41
- normalizeHref: ()=>normalizeHref,
40
+ SEARCH_INDEX_NAME: ()=>SEARCH_INDEX_NAME,
41
+ withoutBase: ()=>withoutBase,
42
+ isDebugMode: ()=>isDebugMode,
43
+ isExternalUrl: ()=>isExternalUrl,
44
+ isSCM: ()=>isSCM,
45
+ addTrailingSlash: ()=>addTrailingSlash,
42
46
  normalizeSlash: ()=>normalizeSlash,
47
+ APPEARANCE_KEY: ()=>APPEARANCE_KEY,
48
+ normalizeHref: ()=>normalizeHref,
43
49
  normalizePosixPath: ()=>normalizePosixPath,
44
- inBrowser: ()=>inBrowser,
45
- isDataUrl: ()=>isDataUrl,
46
- replaceLang: ()=>replaceLang,
47
50
  removeHash: ()=>removeHash,
48
- cleanUrl: ()=>runtime_utils_cleanUrl,
49
- withBase: ()=>withBase,
50
- isDevDebugMode: ()=>isDevDebugMode,
51
51
  removeTrailingSlash: ()=>removeTrailingSlash,
52
- APPEARANCE_KEY: ()=>APPEARANCE_KEY,
53
- isExternalUrl: ()=>isExternalUrl,
54
- removeBase: ()=>removeBase,
55
- DEFAULT_HIGHLIGHT_LANGUAGES: ()=>DEFAULT_HIGHLIGHT_LANGUAGES,
56
- parseUrl: ()=>parseUrl,
57
- withoutLang: ()=>withoutLang,
52
+ QUERY_REGEXP: ()=>QUERY_REGEXP,
58
53
  isProduction: ()=>isProduction,
59
- addLeadingSlash: ()=>addLeadingSlash
54
+ DEFAULT_HIGHLIGHT_LANGUAGES: ()=>DEFAULT_HIGHLIGHT_LANGUAGES,
55
+ inBrowser: ()=>inBrowser,
56
+ isDataUrl: ()=>isDataUrl,
57
+ cleanUrl: ()=>runtime_utils_cleanUrl
60
58
  });
61
59
  const QUERY_REGEXP = /\?.*$/s;
62
60
  const HASH_REGEXP = /#.*$/s;
package/dist/logger.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var __webpack_require__ = {};
3
3
  (()=>{
4
- __webpack_require__.d = function(exports1, definition) {
4
+ __webpack_require__.d = (exports1, definition)=>{
5
5
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
6
  enumerable: true,
7
7
  get: definition[key]
@@ -9,9 +9,7 @@ var __webpack_require__ = {};
9
9
  };
10
10
  })();
11
11
  (()=>{
12
- __webpack_require__.o = function(obj, prop) {
13
- return Object.prototype.hasOwnProperty.call(obj, prop);
14
- };
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
15
13
  })();
16
14
  (()=>{
17
15
  __webpack_require__.r = function(exports1) {
@@ -15,12 +15,8 @@ function __webpack_require__(moduleId) {
15
15
  return module.exports;
16
16
  }
17
17
  (()=>{
18
- __webpack_require__.n = function(module) {
19
- var getter = module && module.__esModule ? function() {
20
- return module['default'];
21
- } : function() {
22
- return module;
23
- };
18
+ __webpack_require__.n = (module)=>{
19
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
24
20
  __webpack_require__.d(getter, {
25
21
  a: getter
26
22
  });
@@ -28,7 +24,7 @@ function __webpack_require__(moduleId) {
28
24
  };
29
25
  })();
30
26
  (()=>{
31
- __webpack_require__.d = function(exports1, definition) {
27
+ __webpack_require__.d = (exports1, definition)=>{
32
28
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
33
29
  enumerable: true,
34
30
  get: definition[key]
@@ -36,9 +32,7 @@ function __webpack_require__(moduleId) {
36
32
  };
37
33
  })();
38
34
  (()=>{
39
- __webpack_require__.o = function(obj, prop) {
40
- return Object.prototype.hasOwnProperty.call(obj, prop);
41
- };
35
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
42
36
  })();
43
37
  (()=>{
44
38
  __webpack_require__.r = function(exports1) {
@@ -56,8 +50,8 @@ var __webpack_exports__ = {};
56
50
  __webpack_require__.d(__webpack_exports__, {
57
51
  extractTextAndId: ()=>extractTextAndId,
58
52
  loadFrontMatter: ()=>loadFrontMatter,
59
- getNodeAttribute: ()=>getNodeAttribute,
60
- mergeDocConfig: ()=>mergeDocConfig
53
+ mergeDocConfig: ()=>mergeDocConfig,
54
+ getNodeAttribute: ()=>getNodeAttribute
61
55
  });
62
56
  const extractTextAndId = (title)=>{
63
57
  if (!title) return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "1.43.0",
3
+ "version": "2.0.0-alpha.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/web-infra-dev/rspress",
@@ -36,13 +36,13 @@
36
36
  "dist"
37
37
  ],
38
38
  "dependencies": {
39
- "@rsbuild/core": "1.2.3",
39
+ "@rsbuild/core": "1.2.15",
40
40
  "gray-matter": "4.0.3",
41
41
  "lodash-es": "^4.17.21",
42
42
  "unified": "^10.1.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@rslib/core": "0.5.2",
45
+ "@rslib/core": "0.5.3",
46
46
  "@types/fs-extra": "11.0.4",
47
47
  "@types/jest": "~29.5.14",
48
48
  "@types/lodash-es": "^4.17.12",
@@ -50,7 +50,7 @@
50
50
  "@types/react": "^18.3.18",
51
51
  "mdast-util-mdx-jsx": "^2.1.4",
52
52
  "medium-zoom": "1.1.0",
53
- "rimraf": "^3.0.2",
53
+ "rimraf": "^6.0.1",
54
54
  "typescript": "^5.5.3"
55
55
  },
56
56
  "publishConfig": {