Skip to content

Commit 94df899

Browse files
committed
Clean up imports
1 parent 7547bed commit 94df899

69 files changed

Lines changed: 167 additions & 156 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/@ember/-internals/container/index.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,17 @@ The public API, specified on the application namespace should be considered the
55
@private
66
*/
77

8-
export { default as Registry, privatize } from './lib/registry';
9-
export { default as Container, getFactoryFor, setFactoryFor, INIT_FACTORY } from './lib/container';
8+
export {
9+
default as Registry,
10+
Resolver,
11+
ResolverClass,
12+
TypeOptions,
13+
privatize,
14+
} from './lib/registry';
15+
export {
16+
default as Container,
17+
getFactoryFor,
18+
setFactoryFor,
19+
FactoryManager,
20+
INIT_FACTORY,
21+
} from './lib/container';

packages/@ember/-internals/extension-support/lib/container_debug_adapter.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import { classify, dasherize } from '@ember/string';
2-
import type { NativeArray } from '@ember/-internals/runtime';
3-
import { A as emberA, typeOf, Namespace, Object as EmberObject } from '@ember/-internals/runtime';
2+
import { A as emberA } from '@ember/array';
3+
import type { NativeArray } from '@ember/array';
4+
import Namespace from '@ember/application/namespace';
5+
import EmberObject from '@ember/object';
6+
import { typeOf } from '@ember/-internals/runtime';
47
import type { Owner } from '@ember/-internals/owner';
58
import { getOwner } from '@ember/-internals/owner';
6-
import type { Resolver } from '@ember/-internals/container/lib/registry';
9+
import type { Resolver } from '@ember/-internals/container';
710

811
/**
912
@module @ember/debug

packages/@ember/-internals/extension-support/lib/data_adapter.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import type { Owner } from '@ember/-internals/owner';
22
import { getOwner } from '@ember/-internals/owner';
33
import { _backburner } from '@ember/runloop';
4-
import { get } from '@ember/-internals/metal';
4+
import EmberObject, { get } from '@ember/object';
55
import { dasherize } from '@ember/string';
6-
import type { NativeArray } from '@ember/-internals/runtime';
7-
import { Namespace, Object as EmberObject, A as emberA } from '@ember/-internals/runtime';
6+
import type { NativeArray } from '@ember/array';
7+
import { A as emberA } from '@ember/array';
8+
import Namespace from '@ember/application/namespace';
89
import type { Cache } from '@glimmer/validator';
910
import { consumeTag, createCache, getValue, tagFor, untrack } from '@glimmer/validator';
1011
import type { ContainerDebugAdapter } from '..';

packages/@ember/-internals/glimmer/index.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,16 @@ export { default as Input } from './lib/components/input';
299299
export { default as LinkTo } from './lib/components/link-to';
300300
export { default as Textarea } from './lib/components/textarea';
301301
export { default as Component } from './lib/component';
302-
export { default as Helper, helper } from './lib/helper';
302+
export {
303+
default as Helper,
304+
helper,
305+
HelperFactory,
306+
HelperFunction,
307+
SimpleHelper,
308+
} from './lib/helper';
309+
export { ActionState } from './lib/modifiers/action';
303310
export { SafeString, escapeExpression, htmlSafe, isHTMLSafe } from './lib/utils/string';
304-
export { Renderer, _resetRenderers, renderSettled } from './lib/renderer';
311+
export { Renderer, View, _resetRenderers, renderSettled } from './lib/renderer';
305312
export {
306313
getTemplate,
307314
setTemplate,
@@ -316,7 +323,7 @@ export { DOMChanges, NodeDOMTreeConstruction, DOMTreeConstruction } from './lib/
316323
// TODO just test these through public API
317324
// a lot of these are testing how a problem was solved
318325
// rather than the problem was solved
319-
export { default as OutletView } from './lib/views/outlet';
326+
export { default as OutletView, BootEnvironment } from './lib/views/outlet';
320327
export { OutletState } from './lib/utils/outlet';
321328
export {
322329
componentCapabilities,

packages/@ember/-internals/glimmer/lib/component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { get, PROPERTY_DID_CHANGE } from '@ember/-internals/metal';
2-
import type { PropertyDidChange } from '@ember/-internals/metal/lib/property_events';
1+
import { PROPERTY_DID_CHANGE } from '@ember/-internals/metal';
2+
import type { PropertyDidChange } from '@ember/-internals/metal';
3+
import { get } from '@ember/object';
34
import { getOwner } from '@ember/-internals/owner';
45
import { TargetActionSupport } from '@ember/-internals/runtime';
56
import {

packages/@ember/-internals/glimmer/lib/components/link-to.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import type { Route, RouterState, RoutingService } from '@ember/-internals/routing';
1+
import type { RouterState, RoutingService } from '@ember/-internals/routing';
2+
import type Route from '@ember/routing/route';
23
import { isSimpleClick } from '@ember/-internals/views';
34
import { assert, debugFreeze, inspect, warn } from '@ember/debug';
45
import { getEngineParent } from '@ember/engine';

packages/@ember/-internals/glimmer/lib/environment.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { ENV } from '@ember/-internals/environment';
2-
import { get, set, _getProp, _setProp } from '@ember/-internals/metal';
2+
import { get, set } from '@ember/object';
3+
import { _getProp, _setProp } from '@ember/-internals/metal';
34
import type { Owner } from '@ember/-internals/owner';
45
import { getDebugName } from '@ember/-internals/utils';
56
import { constructStyleDeprecationMessage } from '@ember/-internals/views';
67
import { EMBER_DEFAULT_HELPER_MANAGER } from '@ember/canary-features';
78
import { assert, deprecate, warn } from '@ember/debug';
8-
import type { DeprecationOptions } from '@ember/debug/lib/deprecate';
9+
import type { DeprecationOptions } from '@ember/debug';
910
import { schedule, _backburner } from '@ember/runloop';
1011
import { DEBUG } from '@glimmer/env';
1112
import setGlobalContext from '@glimmer/global-context';

packages/@ember/-internals/glimmer/lib/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@module @ember/component
33
*/
44

5-
import type { FactoryManager } from '@ember/-internals/container/lib/container';
5+
import type { FactoryManager } from '@ember/-internals/container';
66
import type { Factory, Owner } from '@ember/-internals/owner';
77
import { setOwner } from '@ember/-internals/owner';
88
import { FrameworkObject } from '@ember/-internals/runtime';

packages/@ember/-internals/glimmer/lib/helpers/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
@module ember
33
*/
4-
import { get } from '@ember/-internals/metal';
4+
import { get } from '@ember/object';
55
import type { AnyFn } from '@ember/-internals/utils/types';
66
import { assert } from '@ember/debug';
77
import { flaggedInstrument } from '@ember/instrumentation';

packages/@ember/-internals/glimmer/lib/resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { privatize as P } from '@ember/-internals/container';
2-
import type { TypeOptions } from '@ember/-internals/container/lib/registry';
2+
import type { TypeOptions } from '@ember/-internals/container';
33
import { ENV } from '@ember/-internals/environment';
44
import type { Factory, Owner } from '@ember/-internals/owner';
55
import { isFactory } from '@ember/-internals/owner';

0 commit comments

Comments
 (0)