@rspress/plugin-preview 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/index.js CHANGED
@@ -18,12 +18,8 @@ function __webpack_require__(moduleId) {
18
18
  return module.exports;
19
19
  }
20
20
  (()=>{
21
- __webpack_require__.n = function(module) {
22
- var getter = module && module.__esModule ? function() {
23
- return module['default'];
24
- } : function() {
25
- return module;
26
- };
21
+ __webpack_require__.n = (module)=>{
22
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
27
23
  __webpack_require__.d(getter, {
28
24
  a: getter
29
25
  });
@@ -31,7 +27,7 @@ function __webpack_require__(moduleId) {
31
27
  };
32
28
  })();
33
29
  (()=>{
34
- __webpack_require__.d = function(exports1, definition) {
30
+ __webpack_require__.d = (exports1, definition)=>{
35
31
  for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
36
32
  enumerable: true,
37
33
  get: definition[key]
@@ -39,9 +35,7 @@ function __webpack_require__(moduleId) {
39
35
  };
40
36
  })();
41
37
  (()=>{
42
- __webpack_require__.o = function(obj, prop) {
43
- return Object.prototype.hasOwnProperty.call(obj, prop);
44
- };
38
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
45
39
  })();
46
40
  (()=>{
47
41
  __webpack_require__.r = function(exports1) {
package/dist/utils.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-preview",
3
- "version": "1.43.0",
3
+ "version": "2.0.0-alpha.0",
4
4
  "description": "A plugin for rspress to preview the code block in markdown/mdx file.",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -17,20 +17,20 @@
17
17
  "static"
18
18
  ],
19
19
  "dependencies": {
20
- "@rsbuild/core": "1.2.3",
21
- "@rsbuild/plugin-babel": "~1.0.3",
22
- "@rsbuild/plugin-less": "~1.1.0",
23
- "@rsbuild/plugin-react": "~1.1.0",
24
- "@rsbuild/plugin-sass": "~1.2.0",
25
- "@rsbuild/plugin-solid": "~1.0.4",
20
+ "@rsbuild/core": "1.2.15",
21
+ "@rsbuild/plugin-babel": "~1.0.4",
22
+ "@rsbuild/plugin-less": "~1.1.1",
23
+ "@rsbuild/plugin-react": "~1.1.1",
24
+ "@rsbuild/plugin-sass": "~1.2.2",
25
+ "@rsbuild/plugin-solid": "~1.0.5",
26
26
  "lodash": "4.17.21",
27
27
  "qrcode.react": "^3.2.0",
28
- "@rspress/shared": "1.43.0",
29
- "@rspress/theme-default": "1.43.0"
28
+ "@rspress/shared": "2.0.0-alpha.0",
29
+ "@rspress/theme-default": "2.0.0-alpha.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@rslib/core": "0.5.2",
33
- "@types/lodash": "^4.17.15",
32
+ "@rslib/core": "0.5.3",
33
+ "@types/lodash": "^4.17.16",
34
34
  "@types/mdast": "^3.0.15",
35
35
  "@types/node": "^18.11.17",
36
36
  "@types/react": "^18.3.18",
@@ -45,7 +45,7 @@
45
45
  "unist-util-visit": "^4.1.2"
46
46
  },
47
47
  "peerDependencies": {
48
- "@rspress/core": "^1.43.0",
48
+ "@rspress/core": "^2.0.0-alpha.0",
49
49
  "react": ">=17.0.0",
50
50
  "react-router-dom": "^6.8.1"
51
51
  },