@rspress/plugin-medium-zoom 2.0.0-beta.14 → 2.0.0-beta.16

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
@@ -348,9 +348,8 @@ declare interface Options {
348
348
  * and should not be used in the runtime (usePageData).
349
349
  */
350
350
  declare interface PageIndexInfo {
351
- id: number;
352
- title: string;
353
351
  routePath: string;
352
+ title: string;
354
353
  toc: Header[];
355
354
  content: string;
356
355
  _flattenContent?: string;
@@ -470,6 +469,7 @@ declare interface RspressPlugin {
470
469
  addPages?: (config: UserConfig, isProd: boolean) => AdditionalPage[] | Promise<AdditionalPage[]>;
471
470
  /**
472
471
  * Add runtime modules
472
+ * @deprecated use [rsbuild-plugin-virtual-module](https://github.com/rspack-contrib/rsbuild-plugin-virtual-module) instead.
473
473
  */
474
474
  addRuntimeModules?: (config: UserConfig, isProd: boolean) => Record<string, string> | Promise<Record<string, string>>;
475
475
  /**
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import external_node_path_default from "node:path";
1
+ import node_path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  function slash(str) {
4
4
  return str.replace(/\\/g, '/');
@@ -18,12 +18,12 @@ function normalizePosixPath(id) {
18
18
  return normalizedPath;
19
19
  }
20
20
  function pluginMediumZoom(options = {}) {
21
- const __dirname = normalizePosixPath(external_node_path_default.dirname(fileURLToPath(import.meta.url)));
21
+ const __dirname = normalizePosixPath(node_path.dirname(fileURLToPath(import.meta.url)));
22
22
  return {
23
23
  name: '@rspress/plugin-medium-zoom',
24
24
  globalUIComponents: [
25
25
  [
26
- external_node_path_default.join(__dirname, '../static/MediumZoom.tsx'),
26
+ node_path.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.14",
3
+ "version": "2.0.0-beta.16",
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.9.2",
36
+ "@rslib/core": "0.10.0",
37
37
  "@types/node": "^22.8.1",
38
- "@types/react": "^19.1.6",
38
+ "@types/react": "^19.1.8",
39
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
- "@rspress/config": "1.0.0",
44
- "@rspress/shared": "2.0.0-beta.14"
43
+ "@rspress/shared": "2.0.0-beta.16",
44
+ "@rspress/config": "1.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "@rspress/runtime": "^2.0.0-beta.14"
47
+ "@rspress/runtime": "^2.0.0-beta.16"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">=18.0.0"