Skip to content

Commit

Permalink
fix(admin-ui): Make ExtensionHostComponent work with new extension APIs
Browse files Browse the repository at this point in the history
The new APIs require standalone components.
  • Loading branch information
michaelbromley committed Oct 11, 2023
1 parent ed109b9 commit b917e62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
} from '@angular/core';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
import { ActivatedRoute } from '@angular/router';
import { SharedModule } from '../../shared.module';

import { ExtensionHostConfig } from './extension-host-config';
import { ExtensionHostService } from './extension-host.service';
Expand All @@ -22,6 +23,8 @@ import { ExtensionHostService } from './extension-host.service';
templateUrl: './extension-host.component.html',
styleUrls: ['./extension-host.component.scss'],
changeDetection: ChangeDetectionStrategy.Default,
standalone: true,
imports: [SharedModule],
providers: [ExtensionHostService],
})
export class ExtensionHostComponent implements OnInit, AfterViewInit, OnDestroy {
Expand Down
2 changes: 0 additions & 2 deletions packages/admin-ui/src/lib/core/src/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ import { DropdownComponent } from './components/dropdown/dropdown.component';
import { EditNoteDialogComponent } from './components/edit-note-dialog/edit-note-dialog.component';
import { EmptyPlaceholderComponent } from './components/empty-placeholder/empty-placeholder.component';
import { EntityInfoComponent } from './components/entity-info/entity-info.component';
import { ExtensionHostComponent } from './components/extension-host/extension-host.component';
import { FacetValueChipComponent } from './components/facet-value-chip/facet-value-chip.component';
import { FacetValueSelectorComponent } from './components/facet-value-selector/facet-value-selector.component';
import { FocalPointControlComponent } from './components/focal-point-control/focal-point-control.component';
Expand Down Expand Up @@ -249,7 +248,6 @@ const DECLARATIONS = [
ChannelAssignmentControlComponent,
ChannelLabelPipe,
IfDefaultChannelActiveDirective,
ExtensionHostComponent,
CustomFieldLabelPipe,
CustomFieldDescriptionPipe,
FocalPointControlComponent,
Expand Down

0 comments on commit b917e62

Please sign in to comment.