@rspress/plugin-playground 1.43.1 → 2.0.0-alpha.1
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/cli/cjs/index.js +8 -18
- package/dist/cli/esm/301.mjs +2 -2
- package/dist/cli/esm/index.mjs +15 -21
- package/dist/web/cjs/index.js +5 -11
- package/package.json +6 -6
package/dist/cli/cjs/index.js
CHANGED
|
@@ -133,12 +133,8 @@ function __webpack_require__(moduleId) {
|
|
|
133
133
|
}
|
|
134
134
|
__webpack_require__.m = __webpack_modules__;
|
|
135
135
|
(()=>{
|
|
136
|
-
__webpack_require__.n =
|
|
137
|
-
var getter = module && module.__esModule ?
|
|
138
|
-
return module['default'];
|
|
139
|
-
} : function() {
|
|
140
|
-
return module;
|
|
141
|
-
};
|
|
136
|
+
__webpack_require__.n = (module)=>{
|
|
137
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
142
138
|
__webpack_require__.d(getter, {
|
|
143
139
|
a: getter
|
|
144
140
|
});
|
|
@@ -146,7 +142,7 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
146
142
|
};
|
|
147
143
|
})();
|
|
148
144
|
(()=>{
|
|
149
|
-
__webpack_require__.d =
|
|
145
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
150
146
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
151
147
|
enumerable: true,
|
|
152
148
|
get: definition[key]
|
|
@@ -155,22 +151,16 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
155
151
|
})();
|
|
156
152
|
(()=>{
|
|
157
153
|
__webpack_require__.f = {};
|
|
158
|
-
__webpack_require__.e =
|
|
159
|
-
return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
|
|
154
|
+
__webpack_require__.e = (chunkId)=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key)=>{
|
|
160
155
|
__webpack_require__.f[key](chunkId, promises);
|
|
161
156
|
return promises;
|
|
162
157
|
}, []));
|
|
163
|
-
};
|
|
164
158
|
})();
|
|
165
159
|
(()=>{
|
|
166
|
-
__webpack_require__.u =
|
|
167
|
-
return "" + chunkId + ".js";
|
|
168
|
-
};
|
|
160
|
+
__webpack_require__.u = (chunkId)=>"" + chunkId + ".js";
|
|
169
161
|
})();
|
|
170
162
|
(()=>{
|
|
171
|
-
__webpack_require__.o =
|
|
172
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
173
|
-
};
|
|
163
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
174
164
|
})();
|
|
175
165
|
(()=>{
|
|
176
166
|
__webpack_require__.r = function(exports1) {
|
|
@@ -186,13 +176,13 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
186
176
|
var installedChunks = {
|
|
187
177
|
980: 1
|
|
188
178
|
};
|
|
189
|
-
var installChunk =
|
|
179
|
+
var installChunk = (chunk)=>{
|
|
190
180
|
var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;
|
|
191
181
|
for(var moduleId in moreModules)if (__webpack_require__.o(moreModules, moduleId)) __webpack_require__.m[moduleId] = moreModules[moduleId];
|
|
192
182
|
if (runtime) runtime(__webpack_require__);
|
|
193
183
|
for(var i = 0; i < chunkIds.length; i++)installedChunks[chunkIds[i]] = 1;
|
|
194
184
|
};
|
|
195
|
-
__webpack_require__.f.require =
|
|
185
|
+
__webpack_require__.f.require = (chunkId, promises)=>{
|
|
196
186
|
if (!installedChunks[chunkId]) installChunk(require("./" + __webpack_require__.u(chunkId)));
|
|
197
187
|
};
|
|
198
188
|
})();
|
package/dist/cli/esm/301.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const __webpack_ids__ = [
|
|
2
2
|
'301'
|
|
3
3
|
];
|
|
4
|
-
export const
|
|
4
|
+
export const __webpack_modules__ = {
|
|
5
5
|
"../../node_modules/.pnpm/unist-util-visit@4.1.2/node_modules/unist-util-visit/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
6
6
|
__webpack_require__.d(__webpack_exports__, {
|
|
7
7
|
visit: ()=>_lib_index_js__WEBPACK_IMPORTED_MODULE_0__.Vn
|
package/dist/cli/esm/index.mjs
CHANGED
|
@@ -133,7 +133,7 @@ function __webpack_require__(moduleId) {
|
|
|
133
133
|
}
|
|
134
134
|
__webpack_require__.m = __webpack_modules__;
|
|
135
135
|
(()=>{
|
|
136
|
-
__webpack_require__.d =
|
|
136
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
137
137
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
138
138
|
enumerable: true,
|
|
139
139
|
get: definition[key]
|
|
@@ -142,38 +142,32 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
142
142
|
})();
|
|
143
143
|
(()=>{
|
|
144
144
|
__webpack_require__.f = {};
|
|
145
|
-
__webpack_require__.e =
|
|
146
|
-
return Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {
|
|
145
|
+
__webpack_require__.e = (chunkId)=>Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key)=>{
|
|
147
146
|
__webpack_require__.f[key](chunkId, promises);
|
|
148
147
|
return promises;
|
|
149
148
|
}, []));
|
|
150
|
-
};
|
|
151
149
|
})();
|
|
152
150
|
(()=>{
|
|
153
|
-
__webpack_require__.u =
|
|
154
|
-
return "" + chunkId + ".mjs";
|
|
155
|
-
};
|
|
151
|
+
__webpack_require__.u = (chunkId)=>"" + chunkId + ".mjs";
|
|
156
152
|
})();
|
|
157
153
|
(()=>{
|
|
158
|
-
__webpack_require__.o =
|
|
159
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
160
|
-
};
|
|
154
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
161
155
|
})();
|
|
162
156
|
(()=>{
|
|
163
157
|
var installedChunks = {
|
|
164
158
|
980: 0
|
|
165
159
|
};
|
|
166
|
-
var installChunk =
|
|
167
|
-
var
|
|
168
|
-
var
|
|
169
|
-
var
|
|
160
|
+
var installChunk = (data)=>{
|
|
161
|
+
var __webpack_ids__ = data.__webpack_ids__;
|
|
162
|
+
var __webpack_modules__ = data.__webpack_modules__;
|
|
163
|
+
var __webpack_runtime__ = data.__webpack_runtime__;
|
|
170
164
|
var moduleId, chunkId, i = 0;
|
|
171
|
-
for(moduleId in
|
|
172
|
-
if (
|
|
173
|
-
for(; i <
|
|
174
|
-
chunkId =
|
|
165
|
+
for(moduleId in __webpack_modules__)if (__webpack_require__.o(__webpack_modules__, moduleId)) __webpack_require__.m[moduleId] = __webpack_modules__[moduleId];
|
|
166
|
+
if (__webpack_runtime__) __webpack_runtime__(__webpack_require__);
|
|
167
|
+
for(; i < __webpack_ids__.length; i++){
|
|
168
|
+
chunkId = __webpack_ids__[i];
|
|
175
169
|
if (__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) installedChunks[chunkId][0]();
|
|
176
|
-
installedChunks[
|
|
170
|
+
installedChunks[__webpack_ids__[i]] = 0;
|
|
177
171
|
}
|
|
178
172
|
};
|
|
179
173
|
__webpack_require__.f.j = function(chunkId, promises) {
|
|
@@ -181,13 +175,13 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
181
175
|
if (0 !== installedChunkData) {
|
|
182
176
|
if (installedChunkData) promises.push(installedChunkData[1]);
|
|
183
177
|
else {
|
|
184
|
-
var promise = import("./" + __webpack_require__.u(chunkId)).then(installChunk,
|
|
178
|
+
var promise = import("./" + __webpack_require__.u(chunkId)).then(installChunk, (e)=>{
|
|
185
179
|
if (0 !== installedChunks[chunkId]) installedChunks[chunkId] = void 0;
|
|
186
180
|
throw e;
|
|
187
181
|
});
|
|
188
182
|
var promise = Promise.race([
|
|
189
183
|
promise,
|
|
190
|
-
new Promise(
|
|
184
|
+
new Promise((resolve)=>{
|
|
191
185
|
installedChunkData = installedChunks[chunkId] = [
|
|
192
186
|
resolve
|
|
193
187
|
];
|
package/dist/web/cjs/index.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
3
|
(()=>{
|
|
4
|
-
__webpack_require__.n =
|
|
5
|
-
var getter = module && module.__esModule ?
|
|
6
|
-
return module['default'];
|
|
7
|
-
} : function() {
|
|
8
|
-
return module;
|
|
9
|
-
};
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
10
6
|
__webpack_require__.d(getter, {
|
|
11
7
|
a: getter
|
|
12
8
|
});
|
|
@@ -14,7 +10,7 @@ var __webpack_require__ = {};
|
|
|
14
10
|
};
|
|
15
11
|
})();
|
|
16
12
|
(()=>{
|
|
17
|
-
__webpack_require__.d =
|
|
13
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
18
14
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
19
15
|
enumerable: true,
|
|
20
16
|
get: definition[key]
|
|
@@ -22,9 +18,7 @@ var __webpack_require__ = {};
|
|
|
22
18
|
};
|
|
23
19
|
})();
|
|
24
20
|
(()=>{
|
|
25
|
-
__webpack_require__.o =
|
|
26
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
27
|
-
};
|
|
21
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
28
22
|
})();
|
|
29
23
|
(()=>{
|
|
30
24
|
__webpack_require__.r = function(exports1) {
|
|
@@ -39,8 +33,8 @@ var __webpack_require__ = {};
|
|
|
39
33
|
var __webpack_exports__ = {};
|
|
40
34
|
__webpack_require__.r(__webpack_exports__);
|
|
41
35
|
__webpack_require__.d(__webpack_exports__, {
|
|
42
|
-
Editor: ()=>Editor,
|
|
43
36
|
MonacoEditor: ()=>react_default(),
|
|
37
|
+
Editor: ()=>Editor,
|
|
44
38
|
MonacoEditorLoader: ()=>react_namespaceObject.loader,
|
|
45
39
|
Runner: ()=>Runner
|
|
46
40
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspress/plugin-playground",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.1",
|
|
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": {
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"@oxidation-compiler/napi": "^0.2.0",
|
|
35
35
|
"remark-gfm": "3.0.1",
|
|
36
36
|
"rspack-plugin-virtual-module": "0.1.13",
|
|
37
|
-
"@rspress/shared": "
|
|
37
|
+
"@rspress/shared": "2.0.0-alpha.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@babel/types": "^7.26.
|
|
41
|
-
"@rsbuild/plugin-react": "~1.1.
|
|
42
|
-
"@rslib/core": "0.5.
|
|
40
|
+
"@babel/types": "^7.26.9",
|
|
41
|
+
"@rsbuild/plugin-react": "~1.1.1",
|
|
42
|
+
"@rslib/core": "0.5.3",
|
|
43
43
|
"@types/babel__core": "^7.20.5",
|
|
44
44
|
"@types/babel__standalone": "^7.1.9",
|
|
45
45
|
"@types/babel__traverse": "^7.20.6",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"unist-util-visit": "^4.1.2"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@rspress/core": "^
|
|
59
|
+
"@rspress/core": "^2.0.0-alpha.1",
|
|
60
60
|
"react": ">=17.0.0",
|
|
61
61
|
"react-router-dom": "^6.8.1"
|
|
62
62
|
},
|