@blocklet/pages-kit-block-studio 0.5.17 → 0.5.18

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.
@@ -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: '100%', width: '100%', 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: {
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',