From 547fd127a1cdbdc73579ad4e7f7e4daccf6a4a95 Mon Sep 17 00:00:00 2001 From: markuczy Date: Wed, 26 Jun 2024 11:31:07 +0200 Subject: [PATCH] refactor: moved remote-webcomponent interface to angular-remote-components --- libs/angular-remote-components/src/index.ts | 1 + .../src/lib/model/remote-webcomponent.ts | 5 +++++ libs/angular-webcomponents/src/index.ts | 2 +- .../src/lib/model/remote-webcomponent-config.model.ts | 6 ------ .../src/lib/model/remote-webcomponent.ts | 5 ----- .../src/lib/utils/webcomponent-router-initializer.utils.ts | 1 + 6 files changed, 8 insertions(+), 12 deletions(-) create mode 100644 libs/angular-remote-components/src/lib/model/remote-webcomponent.ts delete mode 100644 libs/angular-webcomponents/src/lib/model/remote-webcomponent-config.model.ts delete mode 100644 libs/angular-webcomponents/src/lib/model/remote-webcomponent.ts create mode 100644 libs/angular-webcomponents/src/lib/utils/webcomponent-router-initializer.utils.ts diff --git a/libs/angular-remote-components/src/index.ts b/libs/angular-remote-components/src/index.ts index d6f8b139..38fc0f6c 100644 --- a/libs/angular-remote-components/src/index.ts +++ b/libs/angular-remote-components/src/index.ts @@ -1,4 +1,5 @@ export * from './lib/model/remote-component' +export * from './lib/model/remote-webcomponent' export * from './lib/model/remote-component-config.model' export * from './lib/model/injection-tokens' export * from './lib/components/slot/slot.component' diff --git a/libs/angular-remote-components/src/lib/model/remote-webcomponent.ts b/libs/angular-remote-components/src/lib/model/remote-webcomponent.ts new file mode 100644 index 00000000..77c37938 --- /dev/null +++ b/libs/angular-remote-components/src/lib/model/remote-webcomponent.ts @@ -0,0 +1,5 @@ +import { RemoteComponentConfig } from './remote-component-config.model' + +export interface ocxRemoteWebcomponent { + ocxRemoteComponentConfig: RemoteComponentConfig +} diff --git a/libs/angular-webcomponents/src/index.ts b/libs/angular-webcomponents/src/index.ts index 70a66cd7..3d17abd9 100644 --- a/libs/angular-webcomponents/src/index.ts +++ b/libs/angular-webcomponents/src/index.ts @@ -1 +1 @@ -export * from './lib/model/remote-webcomponent' +export * from './lib/utils/webcomponent-router-initializer.utils' diff --git a/libs/angular-webcomponents/src/lib/model/remote-webcomponent-config.model.ts b/libs/angular-webcomponents/src/lib/model/remote-webcomponent-config.model.ts deleted file mode 100644 index 353b7ca2..00000000 --- a/libs/angular-webcomponents/src/lib/model/remote-webcomponent-config.model.ts +++ /dev/null @@ -1,6 +0,0 @@ -export type RemoteWebcomponentConfig = { - appId: string - productName: string - permissions: string[] - baseUrl: string -} diff --git a/libs/angular-webcomponents/src/lib/model/remote-webcomponent.ts b/libs/angular-webcomponents/src/lib/model/remote-webcomponent.ts deleted file mode 100644 index 063628c1..00000000 --- a/libs/angular-webcomponents/src/lib/model/remote-webcomponent.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RemoteWebcomponentConfig } from './remote-webcomponent-config.model' - -export interface ocxRemoteWebcomponent { - ocxRemoteComponentConfig: RemoteWebcomponentConfig -} diff --git a/libs/angular-webcomponents/src/lib/utils/webcomponent-router-initializer.utils.ts b/libs/angular-webcomponents/src/lib/utils/webcomponent-router-initializer.utils.ts new file mode 100644 index 00000000..33e9c0ad --- /dev/null +++ b/libs/angular-webcomponents/src/lib/utils/webcomponent-router-initializer.utils.ts @@ -0,0 +1 @@ +export function initializeRouter() {}