@blocklet/pages-kit-block-studio 0.5.17 → 0.5.19
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/lib/cjs/plugins/_theme.js +1 -1
- package/lib/cjs/plugins/vite-plugin-block-studio.js +1 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/plugins/_theme.js +1 -1
- package/lib/esm/plugins/vite-plugin-block-studio.js +1 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -410,7 +410,7 @@ function Layout({ loadState, loadedData }) {
|
|
|
410
410
|
const url = new URL(window.location.href);
|
|
411
411
|
const initialComponentId = url.searchParams.get('componentId') || state.metadata.id;
|
|
412
412
|
const initialLocale = url.searchParams.get('locale') || locale || 'en';
|
|
413
|
-
return (_jsx(Box, { className: "custom-component-root", sx: { height: '
|
|
413
|
+
return (_jsx(Box, { className: "custom-component-root", sx: { height: '100vh', width: '100vw', overflow: 'auto' }, children: _jsx(ThemeProvider, { theme: theme, children: _jsx(Suspense, { fallback: _jsx(CircularProgress, {}), children: _jsx(CustomComponentRenderer, { locale: initialLocale, componentId: initialComponentId || state.metadata.id, dev: {
|
|
414
414
|
mode: 'draft',
|
|
415
415
|
components: mergedAllBlocks,
|
|
416
416
|
defaultLocale,
|
|
@@ -53,6 +53,7 @@ const defaultBlockExternals = {
|
|
|
53
53
|
'@blocklet/pages-kit/builtin/page/header': '@blocklet/pages-kit/builtin/page/header',
|
|
54
54
|
'@blocklet/pages-kit/builtin/pages-kit': '@blocklet/pages-kit/builtin/pages-kit',
|
|
55
55
|
'@blocklet/pages-kit/builtin/async/ai-runtime': '@blocklet/pages-kit/builtin/async/ai-runtime',
|
|
56
|
+
'@blocklet/pages-kit/builtin/event-bus': '@blocklet/pages-kit/builtin/event-bus',
|
|
56
57
|
// 异步组件
|
|
57
58
|
'react-markdown': '@blocklet/pages-kit/builtin/async/react-markdown',
|
|
58
59
|
'react-syntax-highlighter': '@blocklet/pages-kit/builtin/async/react-syntax-highlighter',
|