@rspress/plugin-medium-zoom 2.0.0-beta.10 → 2.0.0-beta.12
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 +6 -1
- package/dist/index.js +4 -4
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
@@ -275,7 +275,7 @@ declare type LocalSearchOptions = SearchHooks & {
|
|
275
275
|
versioned?: boolean;
|
276
276
|
/**
|
277
277
|
* If enabled, the search index will include code block content, which allows users to search code blocks.
|
278
|
-
* @default
|
278
|
+
* @default true
|
279
279
|
*/
|
280
280
|
codeBlocks?: boolean;
|
281
281
|
};
|
@@ -300,6 +300,11 @@ declare interface MarkdownOptions {
|
|
300
300
|
* @type import('@shikijs/rehype').RehypeShikiOptions
|
301
301
|
*/
|
302
302
|
shiki?: Partial<PluginShikiOptions>;
|
303
|
+
/**
|
304
|
+
* Speed up build time by caching mdx parsing result in `rspress build`
|
305
|
+
* @default true
|
306
|
+
*/
|
307
|
+
crossCompilerCache?: boolean;
|
303
308
|
}
|
304
309
|
|
305
310
|
declare type Nav = NavItem[] | {
|
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import external_node_path_default from "node:path";
|
2
|
+
import { fileURLToPath } from "node:url";
|
3
3
|
function slash(str) {
|
4
4
|
return str.replace(/\\/g, '/');
|
5
5
|
}
|
@@ -18,12 +18,12 @@ function normalizePosixPath(id) {
|
|
18
18
|
return normalizedPath;
|
19
19
|
}
|
20
20
|
function pluginMediumZoom(options = {}) {
|
21
|
-
const __dirname = normalizePosixPath(
|
21
|
+
const __dirname = normalizePosixPath(external_node_path_default.dirname(fileURLToPath(import.meta.url)));
|
22
22
|
return {
|
23
23
|
name: '@rspress/plugin-medium-zoom',
|
24
24
|
globalUIComponents: [
|
25
25
|
[
|
26
|
-
|
26
|
+
external_node_path_default.join(__dirname, '../static/MediumZoom.tsx'),
|
27
27
|
options
|
28
28
|
]
|
29
29
|
]
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspress/plugin-medium-zoom",
|
3
|
-
"version": "2.0.0-beta.
|
3
|
+
"version": "2.0.0-beta.12",
|
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": {
|
@@ -33,18 +33,18 @@
|
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
35
|
"@microsoft/api-extractor": "^7.52.8",
|
36
|
-
"@rslib/core": "0.
|
36
|
+
"@rslib/core": "0.9.2",
|
37
37
|
"@types/node": "^22.8.1",
|
38
|
-
"@types/react": "^
|
39
|
-
"@types/react-dom": "^
|
38
|
+
"@types/react": "^19.1.6",
|
39
|
+
"@types/react-dom": "^19.1.6",
|
40
40
|
"react": "^19.1.0",
|
41
41
|
"rsbuild-plugin-publint": "^0.3.2",
|
42
42
|
"typescript": "^5.8.2",
|
43
43
|
"@rspress/config": "1.0.0",
|
44
|
-
"@rspress/shared": "2.0.0-beta.
|
44
|
+
"@rspress/shared": "2.0.0-beta.12"
|
45
45
|
},
|
46
46
|
"peerDependencies": {
|
47
|
-
"@rspress/runtime": "^2.0.0-beta.
|
47
|
+
"@rspress/runtime": "^2.0.0-beta.12"
|
48
48
|
},
|
49
49
|
"engines": {
|
50
50
|
"node": ">=18.0.0"
|