@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.
@@ -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: '100%', width: '100%', overflow: 'auto' }, children: _jsx(ThemeProvider, { theme: theme, children: _jsx(Suspense, { fallback: _jsx(CircularProgress, {}), children: _jsx(CustomComponentRenderer, { locale: initialLocale, componentId: initialComponentId || state.metadata.id, dev: {
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',