@blocklet/pages-kit-block-studio 0.4.148 → 0.4.150

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.
@@ -345,8 +345,10 @@ function Layout({ loadState, loadedData }) {
345
345
  return null;
346
346
  }
347
347
  return (_jsx(ListItem, { disablePadding: true, children: _jsx(ListItemButton, { selected: currentPage.pageId === route, onClick: () => {
348
- navigate(route);
349
- state.iframeLoaded = false;
348
+ if (route !== currentPage.pageId) {
349
+ navigate(route);
350
+ state.iframeLoaded = false;
351
+ }
350
352
  }, sx: {
351
353
  borderRadius: 1,
352
354
  mb: 1,
@@ -541,10 +543,19 @@ function Layout({ loadState, loadedData }) {
541
543
  '& .MuiListItem-root': {
542
544
  pointerEvents: notSelectedBlock ? 'none' : 'auto',
543
545
  opacity: notSelectedBlock ? 0.5 : 1,
544
- backdropFilter: notSelectedBlock ? 'blur(10px) !important' : 'none',
545
546
  userSelect: notSelectedBlock ? 'none' : 'auto',
547
+ filter: notSelectedBlock ? 'blur(5px)' : 'none',
546
548
  },
547
- }, children: [_jsx(ListItem, { children: _jsx(Box, { sx: { width: '100%' }, children: _jsx(BasicInfo, { config: state.metadata }) }) }), _jsx(ListItem, { children: _jsxs(Box, { sx: { width: '100%' }, children: [_jsx(PropertiesConfig, { config: state.metadata, currentLocale: locale, defaultLocale: defaultLocale, allComponents: mergedAllBlocks, onUpdateConfig: (updater) => {
549
+ }, children: [notSelectedBlock && (_jsx(Box, { sx: {
550
+ position: 'absolute',
551
+ top: 0,
552
+ left: 0,
553
+ right: 0,
554
+ bottom: 0,
555
+ display: 'flex',
556
+ justifyContent: 'center',
557
+ alignItems: 'center',
558
+ }, children: _jsx(Empty, { children: _jsx(Typography, { variant: "body2", color: "text.secondary", children: t('themeTranslations.selectBlockAndContinue') }) }) })), _jsx(ListItem, { children: _jsx(Box, { sx: { width: '100%' }, children: _jsx(BasicInfo, { config: state.metadata }) }) }), _jsx(ListItem, { children: _jsxs(Box, { sx: { width: '100%' }, children: [_jsx(PropertiesConfig, { config: state.metadata, currentLocale: locale, defaultLocale: defaultLocale, allComponents: mergedAllBlocks, onUpdateConfig: (updater) => {
548
559
  updater(state.metadata);
549
560
  }, useI18nEditor: false }), _jsxs(Stack, { direction: "column", spacing: 1, sx: { mt: 1 }, children: [_jsx(Button, { variant: "contained", size: "small", color: "primary", onClick: async () => {
550
561
  try {
@@ -818,6 +829,7 @@ function CreateResource({ open, onClose }) {
818
829
  // 这里我们在运行时扩展 translations 对象,而不是修改源文件
819
830
  if (!translations.en.themeTranslations) {
820
831
  translations.en.themeTranslations = {
832
+ selectBlockAndContinue: 'Select a component and continue',
821
833
  search: 'Search Components...',
822
834
  createNewBlock: 'Create New Component',
823
835
  name: 'Name',
@@ -866,6 +878,7 @@ if (!translations.en.themeTranslations) {
866
878
  }
867
879
  if (!translations.zh.themeTranslations) {
868
880
  translations.zh.themeTranslations = {
881
+ selectBlockAndContinue: '选择一个组件并继续',
869
882
  search: '搜索组件...',
870
883
  createNewBlock: '创建新组件',
871
884
  name: '名称',