Skip to content

Commit f5501aa

Browse files
committed
fix(metadata): moved cedar import to component
1 parent 9c3c460 commit f5501aa

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/app/features/metadata/components/cedar-template-form/cedar-template-form.component.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,18 @@ import { toSignal } from '@angular/core/rxjs-interop';
2424
import { ActivatedRoute } from '@angular/router';
2525

2626
import { ENVIRONMENT } from '@core/provider/environment.provider';
27-
import { CEDAR_CONFIG, CEDAR_VIEWER_CONFIG } from '@osf/features/metadata/constants';
28-
import { CedarMetadataHelper } from '@osf/features/metadata/helpers';
27+
28+
import 'cedar-artifact-viewer';
29+
import 'cedar-embeddable-editor';
30+
31+
import { CEDAR_CONFIG, CEDAR_VIEWER_CONFIG } from '../../constants';
32+
import { CedarMetadataHelper } from '../../helpers';
2933
import {
3034
CedarEditorElement,
3135
CedarMetadataDataTemplateJsonApi,
3236
CedarMetadataRecordData,
3337
CedarRecordDataBinding,
34-
} from '@osf/features/metadata/models';
35-
36-
import 'cedar-artifact-viewer';
38+
} from '../../models';
3739

3840
@Component({
3941
selector: 'osf-cedar-template-form',

src/main.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import { bootstrapApplication } from '@angular/platform-browser';
33
import { AppComponent } from '@osf/app.component';
44
import { appConfig } from '@osf/app.config';
55

6-
// Import CEDAR Embeddable Editor web component
7-
import 'cedar-embeddable-editor';
8-
96
bootstrapApplication(AppComponent, {
107
providers: [...appConfig.providers],
118
}).catch((err) =>

0 commit comments

Comments
 (0)