@rspress/plugin-preview 0.0.0-next-20230927072732 → 0.0.0-next-20231020055855
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/README.md +4 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.js +75 -2539
- package/dist/index.js.map +1 -1
- package/dist/virtual-demo.js +8 -20
- package/mdx-meta-loader.cjs +1 -0
- package/package.json +6 -5
- package/static/global-components/Container.scss +3 -3
- package/static/global-components/Container.tsx +77 -5
- package/static/global-components/Device.tsx +1 -1
- package/static/global-components/common/mobile-operation.tsx +11 -2
- package/static/global-components/icons/Codesandbox.tsx +22 -0
- package/static/global-styles/web.css +0 -6
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
@@ -6,12 +6,18 @@ type Options = {
|
|
6
6
|
* when isMobile is true, 1. aside will hide. 2. default preview component by iframe
|
7
7
|
* @default false
|
8
8
|
*/
|
9
|
-
isMobile
|
9
|
+
isMobile?: boolean;
|
10
10
|
/**
|
11
11
|
* position of the iframe
|
12
12
|
* @default 'follow'
|
13
13
|
*/
|
14
|
-
iframePosition
|
14
|
+
iframePosition?: 'fixed' | 'follow';
|
15
|
+
/**
|
16
|
+
* whether the demo can open in codesandbox
|
17
|
+
* @default false
|
18
|
+
* @experimental
|
19
|
+
*/
|
20
|
+
enableCodesandbox?: boolean;
|
15
21
|
};
|
16
22
|
declare let routeMeta: RouteMeta[];
|
17
23
|
declare const demoRoutes: {
|