@rspress/plugin-medium-zoom 2.0.0-beta.4 → 2.0.0-beta.5
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 +5 -6
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { PluggableList } from 'unified';
|
2
|
+
import type { RehypeShikiOptions } from '@shikijs/rehype';
|
2
3
|
import type { RsbuildConfig } from '@rsbuild/core';
|
3
4
|
import type { RsbuildPlugin } from '@rsbuild/core';
|
4
5
|
import type { ZoomOptions } from 'medium-zoom';
|
@@ -296,13 +297,9 @@ declare interface MarkdownOptions {
|
|
296
297
|
*/
|
297
298
|
globalComponents?: string[];
|
298
299
|
/**
|
299
|
-
*
|
300
|
+
* @type import('@shikijs/rehype').RehypeShikiOptions
|
300
301
|
*/
|
301
|
-
|
302
|
-
/**
|
303
|
-
* Register prism languages
|
304
|
-
*/
|
305
|
-
highlightLanguages?: (string | [string, string])[];
|
302
|
+
shiki?: Partial<PluginShikiOptions>;
|
306
303
|
}
|
307
304
|
|
308
305
|
declare type Nav = NavItem[] | {
|
@@ -368,6 +365,8 @@ declare type PageType = 'home' | 'doc' | 'custom' | '404' | 'blank';
|
|
368
365
|
*/
|
369
366
|
export declare function pluginMediumZoom(options?: Options): RspressPlugin;
|
370
367
|
|
368
|
+
declare type PluginShikiOptions = RehypeShikiOptions;
|
369
|
+
|
371
370
|
declare type RemoteSearchIndexInfo = string | {
|
372
371
|
value: string;
|
373
372
|
label: string;
|
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.5",
|
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": {
|
@@ -40,11 +40,11 @@
|
|
40
40
|
"react": "^19.1.0",
|
41
41
|
"rsbuild-plugin-publint": "^0.3.1",
|
42
42
|
"typescript": "^5.8.2",
|
43
|
-
"@rspress/
|
44
|
-
"@rspress/
|
43
|
+
"@rspress/shared": "2.0.0-beta.5",
|
44
|
+
"@rspress/config": "1.0.0"
|
45
45
|
},
|
46
46
|
"peerDependencies": {
|
47
|
-
"@rspress/runtime": "^2.0.0-beta.
|
47
|
+
"@rspress/runtime": "^2.0.0-beta.5"
|
48
48
|
},
|
49
49
|
"engines": {
|
50
50
|
"node": ">=18.0.0"
|