@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
|
@@ -446,7 +446,7 @@ function Layout({ loadState, loadedData }) {
|
|
|
446
446
|
const url = new URL(window.location.href);
|
|
447
447
|
const initialComponentId = url.searchParams.get('componentId') || state.metadata.id;
|
|
448
448
|
const initialLocale = url.searchParams.get('locale') || locale || 'en';
|
|
449
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Box, { className: "custom-component-root", sx: { height: '
|
|
449
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { className: "custom-component-root", sx: { height: '100vh', width: '100vw', overflow: 'auto' }, children: (0, jsx_runtime_1.jsx)(Theme_1.ThemeProvider, { theme: theme, children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, {}), children: (0, jsx_runtime_1.jsx)(components_2.CustomComponentRenderer, { locale: initialLocale, componentId: initialComponentId || state.metadata.id, dev: {
|
|
450
450
|
mode: 'draft',
|
|
451
451
|
components: mergedAllBlocks,
|
|
452
452
|
defaultLocale,
|
|
@@ -90,6 +90,7 @@ const defaultBlockExternals = {
|
|
|
90
90
|
'@blocklet/pages-kit/builtin/page/header': '@blocklet/pages-kit/builtin/page/header',
|
|
91
91
|
'@blocklet/pages-kit/builtin/pages-kit': '@blocklet/pages-kit/builtin/pages-kit',
|
|
92
92
|
'@blocklet/pages-kit/builtin/async/ai-runtime': '@blocklet/pages-kit/builtin/async/ai-runtime',
|
|
93
|
+
'@blocklet/pages-kit/builtin/event-bus': '@blocklet/pages-kit/builtin/event-bus',
|
|
93
94
|
// 异步组件
|
|
94
95
|
'react-markdown': '@blocklet/pages-kit/builtin/async/react-markdown',
|
|
95
96
|
'react-syntax-highlighter': '@blocklet/pages-kit/builtin/async/react-syntax-highlighter',
|