From dd0dc39f76076e1c90a9a904e6daca65939958fc Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Tue, 1 Aug 2023 15:09:03 +0200 Subject: [PATCH] fix vite warnings for circular imports --- .../packages/core/section/section-default.element.ts | 10 +--------- .../src/packages/core/section/section-views/index.ts | 2 +- .../dictionary/entity-actions/export/export.action.ts | 2 -- .../dictionary/entity-actions/import/import.action.ts | 2 -- .../language/language-workspace-editor.element.ts | 1 + .../workspace/language/language-workspace.element.ts | 2 -- 6 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-default.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-default.element.ts index c622fc3544..b8621538cf 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-default.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-default.element.ts @@ -1,15 +1,7 @@ import type { UmbWorkspaceElement } from '../workspace/workspace.element.js'; import type { UmbSectionViewsElement } from './section-views/section-views.element.js'; import { UUITextStyles } from '@umbraco-cms/backoffice/external/uui'; -import { - css, - html, - nothing, - customElement, - property, - state, - PropertyValueMap, -} from '@umbraco-cms/backoffice/external/lit'; +import { css, html, nothing, customElement, property, state } from '@umbraco-cms/backoffice/external/lit'; import { map } from '@umbraco-cms/backoffice/external/rxjs'; import { ManifestSection, diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-views/index.ts b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-views/index.ts index 10cbafcc82..531fcd0759 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/section/section-views/index.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/section/section-views/index.ts @@ -1 +1 @@ -export * from './section-views.element.js'; +export type * from './section-views.element.js'; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/export/export.action.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/export/export.action.ts index 232b8b9f64..d0df2f5468 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/export/export.action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/export/export.action.ts @@ -9,8 +9,6 @@ import { UMB_EXPORT_DICTIONARY_MODAL, } from '@umbraco-cms/backoffice/modal'; -import './export-dictionary-modal.element.js'; - export default class UmbExportDictionaryEntityAction extends UmbEntityActionBase { static styles = [UUITextStyles]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/import/import.action.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/import/import.action.ts index d6a4a7ef7b..c9baf69a82 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/import/import.action.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/entity-actions/import/import.action.ts @@ -9,8 +9,6 @@ import { UMB_IMPORT_DICTIONARY_MODAL, } from '@umbraco-cms/backoffice/modal'; -import './import-dictionary-modal.element.js'; - export default class UmbImportDictionaryEntityAction extends UmbEntityActionBase { static styles = [UUITextStyles]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace-editor.element.ts index a46b1d968e..6f05d5fe2b 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace-editor.element.ts @@ -4,6 +4,7 @@ import { css, html, customElement, state, ifDefined } from '@umbraco-cms/backoff import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; import { LanguageResponseModel } from '@umbraco-cms/backoffice/backend-api'; import { UMB_ENTITY_WORKSPACE_CONTEXT } from '@umbraco-cms/backoffice/workspace'; + @customElement('umb-language-workspace-editor') export class UmbLanguageWorkspaceEditorElement extends UmbLitElement { #workspaceContext?: UmbLanguageWorkspaceContext; diff --git a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.element.ts b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.element.ts index c22ecff601..f4ae8fe6fa 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/settings/languages/workspace/language/language-workspace.element.ts @@ -3,8 +3,6 @@ import { UUITextStyles } from '@umbraco-cms/backoffice/external/uui'; import { css, html, customElement, state } from '@umbraco-cms/backoffice/external/lit'; import type { UmbRoute } from '@umbraco-cms/backoffice/router'; import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; - -import './language-workspace-editor.element.js'; import { UmbWorkspaceIsNewRedirectController } from '@umbraco-cms/backoffice/workspace'; @customElement('umb-language-workspace')