@@ -2,18 +2,15 @@ import type { Resolver } from '@ember/owner';
22import ApplicationInstance from '@ember/application/instance' ;
33import Application from '@ember/application' ;
44import EmberObject from '@ember/object' ;
5-
6- import Ember from 'ember' ;
5+ import { Registry } from '@ember/-internals/container' ;
6+ import { ComponentLookup } from '@ ember/-internals/views ' ;
77
88import type { FullName } from '@ember/owner' ;
99
10- // These shenanigans work around the fact that the import locations are not
11- // public API and are not stable, so we jump through hoops to get the right
12- // types and values to use.
1310import {
1411 ContainerProxyMixin ,
1512 RegistryProxyMixin ,
16- } from './-owner-mixin-imports.ts ' ;
13+ } from '@ember/-internals/runtime ' ;
1714
1815/**
1916 * Adds methods that are normally only on registry to the container. This is largely to support the legacy APIs
@@ -102,10 +99,9 @@ export default function buildRegistry(resolver: Resolver) {
10299 const fallbackRegistry = Application . buildRegistry ( namespace ) ;
103100 // TODO: only do this on Ember < 3.13
104101 // @ts -ignore: this is private API.
105- fallbackRegistry . register ( 'component-lookup:main' , Ember . ComponentLookup ) ;
102+ fallbackRegistry . register ( 'component-lookup:main' , ComponentLookup ) ;
106103
107- // @ts -ignore: this is private API.
108- const registry = new Ember . Registry ( {
104+ const registry = new Registry ( {
109105 fallback : fallbackRegistry ,
110106 } ) ;
111107
0 commit comments