@rspress/shared 2.0.12 → 2.0.13
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 +1 -0
- package/dist/index.js +1 -1
- package/dist/node-utils.d.ts +1 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export declare interface I18nText {
|
|
|
156
156
|
'overview.filterPlaceholderText'?: I18nTextValue;
|
|
157
157
|
'overview.filterNoResultText'?: I18nTextValue;
|
|
158
158
|
codeButtonGroupCopyButtonText?: I18nTextValue;
|
|
159
|
+
codeButtonGroupWrapButtonText?: I18nTextValue;
|
|
159
160
|
notFoundText?: I18nTextValue;
|
|
160
161
|
takeMeHomeText?: I18nTextValue;
|
|
161
162
|
promptCopyText?: I18nTextValue;
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ function normalizePosixPath(id) {
|
|
|
35
35
|
if (isAbsolutePath) normalizedPath = `/${normalizedPath}`;
|
|
36
36
|
return normalizedPath;
|
|
37
37
|
}
|
|
38
|
-
const inBrowser = ()
|
|
38
|
+
const inBrowser = ()=>false;
|
|
39
39
|
function addLeadingSlash(url) {
|
|
40
40
|
return '/' === url.charAt(0) || isExternalUrl(url) ? url : `/${url}`;
|
|
41
41
|
}
|
package/dist/node-utils.d.ts
CHANGED
|
@@ -159,6 +159,7 @@ declare interface I18nText {
|
|
|
159
159
|
'overview.filterPlaceholderText'?: I18nTextValue;
|
|
160
160
|
'overview.filterNoResultText'?: I18nTextValue;
|
|
161
161
|
codeButtonGroupCopyButtonText?: I18nTextValue;
|
|
162
|
+
codeButtonGroupWrapButtonText?: I18nTextValue;
|
|
162
163
|
notFoundText?: I18nTextValue;
|
|
163
164
|
takeMeHomeText?: I18nTextValue;
|
|
164
165
|
promptCopyText?: I18nTextValue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/shared",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/web-infra-dev/rspress.git",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dist"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@rsbuild/core": "^2.0.
|
|
47
|
+
"@rsbuild/core": "^2.0.7",
|
|
48
48
|
"@shikijs/rehype": "^4.0.2",
|
|
49
49
|
"unified": "^11.0.5"
|
|
50
50
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@rslib/core": "0.21.5",
|
|
53
53
|
"@types/lodash-es": "^4.17.12",
|
|
54
54
|
"@types/node": "^22.8.1",
|
|
55
|
-
"@types/react": "^19.2.
|
|
55
|
+
"@types/react": "^19.2.15",
|
|
56
56
|
"github-slugger": "^2.0.0",
|
|
57
57
|
"gray-matter": "4.0.3",
|
|
58
58
|
"lodash-es": "^4.18.1",
|