diff --git a/apps/docs/src/application-react/index.tsx b/apps/docs/src/application-react/index.tsx index 45b3a7e..4615eb2 100644 --- a/apps/docs/src/application-react/index.tsx +++ b/apps/docs/src/application-react/index.tsx @@ -4,11 +4,11 @@ import { langBundles, l10n, L10nLang } from '@difizen/mana-l10n'; import { AntdMenuModule } from './antd-menu/index.js'; import { CommandPalette } from './command-palette/index.js'; -import { ConfigurtionMenuModule } from './setting-editor/index.js'; import { ContentModule } from './content/index.js'; import { FileModule } from './file/index.js'; import styles from './index.module.less'; import { LogoModule } from './logo/index.js'; +import { ConfigurtionMenuModule } from './setting-editor/index.js'; import { ThemeSwitcherModule } from './theme-switcher/index.js'; import { UerModule } from './user/index.js'; import { WorkbenchModule } from './workbench/index.js'; diff --git a/apps/docs/src/application-react/setting-editor/index.ts b/apps/docs/src/application-react/setting-editor/index.ts index 0816e10..6dbf31c 100644 --- a/apps/docs/src/application-react/setting-editor/index.ts +++ b/apps/docs/src/application-react/setting-editor/index.ts @@ -1,12 +1,11 @@ import { createViewPreference, ManaModule } from '@difizen/mana-app'; - -import { WorkbenchLayoutArea } from '../workbench/layout/workbench-layout.js'; - import { SettingEditorModule, SettingEditorView, } from '@difizen/mana-configuration-panel'; +import { WorkbenchLayoutArea } from '../workbench/layout/workbench-layout.js'; + import { DefaultConfigurationContribution } from './default-configuration-contribution.js'; export const ConfigurtionMenuModule = ManaModule.create() diff --git a/packages/mana-configuration-panel/package.json b/packages/mana-configuration-panel/package.json index 4e7e225..706e1bc 100644 --- a/packages/mana-configuration-panel/package.json +++ b/packages/mana-configuration-panel/package.json @@ -46,6 +46,11 @@ "moment": "^2.30.1", "@ant-design/icons": "^5.5.2" }, + "devDependencies": { + "@types/react": ">=16.8.6", + "@types/react-dom": ">=16.8.6", + "rimraf": "latest" + }, "peerDependencies": { "react": ">=16.8.6", "antd": "^4.0.0 || ^5.0.0" diff --git a/packages/mana-configuration-panel/src/configuration/configuration-panel-view.tsx b/packages/mana-configuration-panel/src/configuration-panel-view.tsx similarity index 100% rename from packages/mana-configuration-panel/src/configuration/configuration-panel-view.tsx rename to packages/mana-configuration-panel/src/configuration-panel-view.tsx diff --git a/packages/mana-configuration-panel/src/configuration/configuration-render-contribution.ts b/packages/mana-configuration-panel/src/configuration-render-contribution.ts similarity index 100% rename from packages/mana-configuration-panel/src/configuration/configuration-render-contribution.ts rename to packages/mana-configuration-panel/src/configuration-render-contribution.ts diff --git a/packages/mana-configuration-panel/src/configuration/index.ts b/packages/mana-configuration-panel/src/configuration/index.ts deleted file mode 100644 index bad52cf..0000000 --- a/packages/mana-configuration-panel/src/configuration/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from './module.js'; -export * from './configuration-panel-view.js'; -export * from './configuration-render-contribution.js'; -export * from './default-node-render.js'; -export * from './setting-editor-view.js'; diff --git a/packages/mana-configuration-panel/src/configuration/default-node-render.tsx b/packages/mana-configuration-panel/src/default-node-render.tsx similarity index 96% rename from packages/mana-configuration-panel/src/configuration/default-node-render.tsx rename to packages/mana-configuration-panel/src/default-node-render.tsx index 0bba5b8..873c9c0 100644 --- a/packages/mana-configuration-panel/src/configuration/default-node-render.tsx +++ b/packages/mana-configuration-panel/src/default-node-render.tsx @@ -1,4 +1,4 @@ -import type { RenderProps } from '@difizen/mana-core'; +import type { RenderProps } from '@difizen/mana-app'; import { Checkbox, DatePicker, Input, InputNumber, Select, Switch } from 'antd'; import moment from 'moment'; import React from 'react'; diff --git a/packages/mana-configuration-panel/src/configuration/index.less b/packages/mana-configuration-panel/src/index.less similarity index 100% rename from packages/mana-configuration-panel/src/configuration/index.less rename to packages/mana-configuration-panel/src/index.less diff --git a/packages/mana-configuration-panel/src/index.spec.ts b/packages/mana-configuration-panel/src/index.spec.ts index d114a18..c6a7073 100644 --- a/packages/mana-configuration-panel/src/index.spec.ts +++ b/packages/mana-configuration-panel/src/index.spec.ts @@ -1,12 +1,7 @@ -import 'react'; import assert from 'assert'; -import { ManaPreset } from './index'; - -// import { ConfigurtionMenuModule } from './index'; - describe('mana-configuration-panel', () => { it('import', () => { - assert(ManaPreset); + assert(true); }); }); diff --git a/packages/mana-configuration-panel/src/index.ts b/packages/mana-configuration-panel/src/index.ts index d2f4752..7489ffc 100644 --- a/packages/mana-configuration-panel/src/index.ts +++ b/packages/mana-configuration-panel/src/index.ts @@ -1,7 +1,5 @@ -import { ManaModule } from '@difizen/mana-app'; - -import { SettingEditorModule } from './configuration'; - -export * from './configuration'; - -export const ManaPreset = ManaModule.create().dependOn(SettingEditorModule); +export * from './configuration-panel-view.js'; +export * from './configuration-render-contribution.js'; +export * from './default-node-render.js'; +export * from './setting-editor-view.js'; +export * from './module'; diff --git a/packages/mana-configuration-panel/src/configuration/module.ts b/packages/mana-configuration-panel/src/module.ts similarity index 100% rename from packages/mana-configuration-panel/src/configuration/module.ts rename to packages/mana-configuration-panel/src/module.ts diff --git a/packages/mana-configuration-panel/src/configuration/setting-editor-view.tsx b/packages/mana-configuration-panel/src/setting-editor-view.tsx similarity index 96% rename from packages/mana-configuration-panel/src/configuration/setting-editor-view.tsx rename to packages/mana-configuration-panel/src/setting-editor-view.tsx index 3fe74a6..0c2437b 100644 --- a/packages/mana-configuration-panel/src/configuration/setting-editor-view.tsx +++ b/packages/mana-configuration-panel/src/setting-editor-view.tsx @@ -13,7 +13,7 @@ import { import { SplitPanel } from '@difizen/mana-react'; import React from 'react'; -import { ConfigurationPanelView } from './index.js'; +import { ConfigurationPanelView } from './configuration-panel-view'; export const SettingEditorComponent: React.FC = () => { const viewInstance = useInject(ViewInstance);