ember-source 5.6.0-alpha.6 → 5.6.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +33 -2
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +2 -2
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +117 -39
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +0 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +88 -29
- package/dist/packages/@ember/-internals/meta/lib/meta.js +14 -10
- package/dist/packages/@ember/test/adapter.js +1 -2
- package/dist/packages/@ember/test/index.js +1 -1
- package/dist/packages/ember/version.js +1 -1
- package/dist/packages/ember-testing/index.js +2 -2
- package/docs/data.json +17 -17
- package/lib/index.js +12 -0
- package/package.json +6 -5
- package/types/publish.mjs +2 -16
- package/types/stable/@ember/-internals/container/index.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/index.d.ts +3 -3
- package/types/stable/@ember/-internals/glimmer/lib/glimmer-component-docs.d.ts +388 -1
- package/types/stable/@ember/-internals/glimmer/lib/glimmer-tracking-docs.d.ts +245 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +41 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +149 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +28 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +73 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +100 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +44 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/helper.d.ts +43 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +182 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/log.d.ts +19 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/modifier.d.ts +42 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +20 -1
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +95 -1
- package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +47 -1
- package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +55 -1
- package/types/stable/@ember/-internals/glimmer/lib/templates/empty.d.ts +2 -3
- package/types/stable/@ember/-internals/glimmer/lib/templates/input.d.ts +2 -3
- package/types/stable/@ember/-internals/glimmer/lib/templates/link-to.d.ts +2 -3
- package/types/stable/@ember/-internals/glimmer/lib/templates/outlet.d.ts +2 -3
- package/types/stable/@ember/-internals/glimmer/lib/templates/root.d.ts +2 -3
- package/types/stable/@ember/-internals/glimmer/lib/templates/textarea.d.ts +2 -3
- package/types/stable/@ember/-internals/meta/index.d.ts +1 -1
- package/types/stable/@ember/-internals/metal/index.d.ts +10 -10
- package/types/stable/@ember/-internals/metal/lib/dependent_keys.d.ts +3 -1
- package/types/stable/@ember/debug/index.d.ts +1 -1
- package/types/stable/@ember/owner/index.d.ts +9 -9
- package/types/stable/@ember/routing/-internals.d.ts +4 -4
- package/types/stable/@ember/routing/lib/route-info.d.ts +1 -1
- package/types/stable/@ember/routing/router-service.d.ts +2 -2
- package/types/stable/@ember/runloop/-private/backburner.d.ts +2 -2
- package/types/stable/@ember/runloop/index.d.ts +2 -2
- package/types/stable/@ember/template-compilation/index.d.ts +8 -12
- package/types/stable/@ember/test/adapter.d.ts +1 -2
- package/types/stable/@ember/test/index.d.ts +1 -1
- package/types/stable/ember/version.d.ts +2 -2
- package/types/stable/ember-template-compiler/lib/public-api.d.ts +1 -1
- package/types/stable/ember-template-compiler/minimal.d.ts +5 -0
- package/types/stable/index.d.ts +1 -0
- /package/blueprints/component-addon/files/__root__/__path__/{__name__.ts → __name__.js} +0 -0
- /package/blueprints/component-class-addon/files/__root__/__path__/{__name__.ts → __name__.js} +0 -0
- /package/blueprints/helper-addon/files/__root__/__path__/{__name__.ts → __name__.js} +0 -0
- /package/blueprints/route-addon/files/__root__/__path__/{__name__.ts → __name__.js} +0 -0
|
@@ -1 +1,20 @@
|
|
|
1
|
-
declare module '@ember/-internals/glimmer/lib/helpers/page-title' {
|
|
1
|
+
declare module '@ember/-internals/glimmer/lib/helpers/page-title' {
|
|
2
|
+
/**
|
|
3
|
+
@module ember
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
`page-title` allows you to set the title of any page in your application and
|
|
7
|
+
append additional titles for each route. For complete documentation, see
|
|
8
|
+
https://github.com/ember-cli/ember-page-title.
|
|
9
|
+
|
|
10
|
+
```handlebars
|
|
11
|
+
{{page-title "My Page Title" }}
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
@method page-title
|
|
15
|
+
@for Ember.Templates.helpers
|
|
16
|
+
@param {String} param
|
|
17
|
+
@public
|
|
18
|
+
*/
|
|
19
|
+
export {};
|
|
20
|
+
}
|
|
@@ -1 +1,95 @@
|
|
|
1
|
-
declare module '@ember/-internals/glimmer/lib/modifiers/on' {
|
|
1
|
+
declare module '@ember/-internals/glimmer/lib/modifiers/on' {
|
|
2
|
+
/**
|
|
3
|
+
@module ember
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
The `{{on}}` modifier lets you easily add event listeners (it uses
|
|
7
|
+
[EventTarget.addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)
|
|
8
|
+
internally).
|
|
9
|
+
|
|
10
|
+
For example, if you'd like to run a function on your component when a `<button>`
|
|
11
|
+
in the components template is clicked you might do something like:
|
|
12
|
+
|
|
13
|
+
```app/components/like-post.hbs
|
|
14
|
+
<button {{on 'click' this.saveLike}}>Like this post!</button>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```app/components/like-post.js
|
|
18
|
+
import Component from '@glimmer/component';
|
|
19
|
+
import { action } from '@ember/object';
|
|
20
|
+
|
|
21
|
+
export default class LikePostComponent extends Component {
|
|
22
|
+
@action
|
|
23
|
+
saveLike() {
|
|
24
|
+
// someone likes your post!
|
|
25
|
+
// better send a request off to your server...
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Arguments
|
|
31
|
+
|
|
32
|
+
`{{on}}` accepts two positional arguments, and a few named arguments.
|
|
33
|
+
|
|
34
|
+
The positional arguments are:
|
|
35
|
+
|
|
36
|
+
- `event` -- the name to use when calling `addEventListener`
|
|
37
|
+
- `callback` -- the function to be passed to `addEventListener`
|
|
38
|
+
|
|
39
|
+
The named arguments are:
|
|
40
|
+
|
|
41
|
+
- capture -- a `true` value indicates that events of this type will be dispatched
|
|
42
|
+
to the registered listener before being dispatched to any EventTarget beneath it
|
|
43
|
+
in the DOM tree.
|
|
44
|
+
- once -- indicates that the listener should be invoked at most once after being
|
|
45
|
+
added. If true, the listener would be automatically removed when invoked.
|
|
46
|
+
- passive -- if `true`, indicates that the function specified by listener will never
|
|
47
|
+
call preventDefault(). If a passive listener does call preventDefault(), the user
|
|
48
|
+
agent will do nothing other than generate a console warning. See
|
|
49
|
+
[Improving scrolling performance with passive listeners](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listeners)
|
|
50
|
+
to learn more.
|
|
51
|
+
|
|
52
|
+
The callback function passed to `{{on}}` will receive any arguments that are passed
|
|
53
|
+
to the event handler. Most commonly this would be the `event` itself.
|
|
54
|
+
|
|
55
|
+
If you would like to pass additional arguments to the function you should use
|
|
56
|
+
the `{{fn}}` helper.
|
|
57
|
+
|
|
58
|
+
For example, in our example case above if you'd like to pass in the post that
|
|
59
|
+
was being liked when the button is clicked you could do something like:
|
|
60
|
+
|
|
61
|
+
```app/components/like-post.hbs
|
|
62
|
+
<button {{on 'click' (fn this.saveLike @post)}}>Like this post!</button>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
In this case, the `saveLike` function will receive two arguments: the click event
|
|
66
|
+
and the value of `@post`.
|
|
67
|
+
|
|
68
|
+
### Function Context
|
|
69
|
+
|
|
70
|
+
In the example above, we used `@action` to ensure that `likePost` is
|
|
71
|
+
properly bound to the `items-list`, but let's explore what happens if we
|
|
72
|
+
left out `@action`:
|
|
73
|
+
|
|
74
|
+
```app/components/like-post.js
|
|
75
|
+
import Component from '@glimmer/component';
|
|
76
|
+
|
|
77
|
+
export default class LikePostComponent extends Component {
|
|
78
|
+
saveLike() {
|
|
79
|
+
// ...snip...
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
In this example, when the button is clicked `saveLike` will be invoked,
|
|
85
|
+
it will **not** have access to the component instance. In other
|
|
86
|
+
words, it will have no `this` context, so please make sure your functions
|
|
87
|
+
are bound (via `@action` or other means) before passing into `on`!
|
|
88
|
+
|
|
89
|
+
@method on
|
|
90
|
+
@for Ember.Templates.helpers
|
|
91
|
+
@public
|
|
92
|
+
@since 3.11.0
|
|
93
|
+
*/
|
|
94
|
+
export {};
|
|
95
|
+
}
|
|
@@ -1 +1,47 @@
|
|
|
1
|
-
declare module '@ember/-internals/glimmer/lib/syntax/in-element' {
|
|
1
|
+
declare module '@ember/-internals/glimmer/lib/syntax/in-element' {
|
|
2
|
+
/**
|
|
3
|
+
@module ember
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
The `in-element` helper renders its block content outside of the regular flow,
|
|
7
|
+
into a DOM element given by its `destinationElement` positional argument.
|
|
8
|
+
|
|
9
|
+
Common use cases - often referred to as "portals" or "wormholes" - are rendering
|
|
10
|
+
dropdowns, modals or tooltips close to the root of the page to bypass CSS overflow
|
|
11
|
+
rules, or to render content to parts of the page that are outside of the control
|
|
12
|
+
of the Ember app itself (e.g. embedded into a static or server rendered HTML page).
|
|
13
|
+
|
|
14
|
+
```handlebars
|
|
15
|
+
{{#in-element this.destinationElement}}
|
|
16
|
+
<div>Some content</div>
|
|
17
|
+
{{/in-element}}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Arguments
|
|
21
|
+
|
|
22
|
+
`{{in-element}}` requires a single positional argument:
|
|
23
|
+
|
|
24
|
+
- `destinationElement` -- the DOM element to render into. It must exist at the time
|
|
25
|
+
of rendering.
|
|
26
|
+
|
|
27
|
+
It also supports an optional named argument:
|
|
28
|
+
|
|
29
|
+
- `insertBefore` -- by default the DOM element's content is replaced when used as
|
|
30
|
+
`destinationElement`. Passing `null` to `insertBefore` changes the behaviour to
|
|
31
|
+
append the block content to the end of any existing content. Any other value than
|
|
32
|
+
`null` is currently not supported.
|
|
33
|
+
|
|
34
|
+
For example:
|
|
35
|
+
|
|
36
|
+
```handlebars
|
|
37
|
+
{{#in-element this.destinationElement insertBefore=null}}
|
|
38
|
+
<div>Some content</div>
|
|
39
|
+
{{/in-element}}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
@method in-element
|
|
43
|
+
@for Ember.Templates.helpers
|
|
44
|
+
@public
|
|
45
|
+
*/
|
|
46
|
+
export {};
|
|
47
|
+
}
|
|
@@ -1 +1,55 @@
|
|
|
1
|
-
declare module '@ember/-internals/glimmer/lib/syntax/let' {
|
|
1
|
+
declare module '@ember/-internals/glimmer/lib/syntax/let' {
|
|
2
|
+
/**
|
|
3
|
+
@module ember
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
The `let` helper receives one or more positional arguments and yields
|
|
7
|
+
them out as block params.
|
|
8
|
+
|
|
9
|
+
This allows the developer to introduce shorter names for certain computations
|
|
10
|
+
in the template.
|
|
11
|
+
|
|
12
|
+
This is especially useful if you are passing properties to a component
|
|
13
|
+
that receives a lot of options and you want to clean up the invocation.
|
|
14
|
+
|
|
15
|
+
For the following example, the template receives a `post` object with
|
|
16
|
+
`content` and `title` properties.
|
|
17
|
+
|
|
18
|
+
We are going to call the `my-post` component, passing a title which is
|
|
19
|
+
the title of the post suffixed with the name of the blog, the content
|
|
20
|
+
of the post, and a series of options defined in-place.
|
|
21
|
+
|
|
22
|
+
```handlebars
|
|
23
|
+
{{#let
|
|
24
|
+
(concat post.title ' | The Ember.js Blog')
|
|
25
|
+
post.content
|
|
26
|
+
(hash
|
|
27
|
+
theme="high-contrast"
|
|
28
|
+
enableComments=true
|
|
29
|
+
)
|
|
30
|
+
as |title content options|
|
|
31
|
+
}}
|
|
32
|
+
<MyPost @title={{title}} @content={{content}} @options={{options}} />
|
|
33
|
+
{{/let}}
|
|
34
|
+
```
|
|
35
|
+
or
|
|
36
|
+
```handlebars
|
|
37
|
+
{{#let
|
|
38
|
+
(concat post.title ' | The Ember.js Blog')
|
|
39
|
+
post.content
|
|
40
|
+
(hash
|
|
41
|
+
theme="high-contrast"
|
|
42
|
+
enableComments=true
|
|
43
|
+
)
|
|
44
|
+
as |title content options|
|
|
45
|
+
}}
|
|
46
|
+
{{my-post title=title content=content options=options}}
|
|
47
|
+
{{/let}}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
@method let
|
|
51
|
+
@for Ember.Templates.helpers
|
|
52
|
+
@public
|
|
53
|
+
*/
|
|
54
|
+
export {};
|
|
55
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare module '@ember/-internals/glimmer/lib/templates/empty' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default TEMPLATE;
|
|
2
|
+
const _default: import('@glimmer/interfaces').TemplateFactory;
|
|
3
|
+
export default _default;
|
|
5
4
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare module '@ember/-internals/glimmer/lib/templates/input' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default TEMPLATE;
|
|
2
|
+
const _default: import('@glimmer/interfaces').TemplateFactory;
|
|
3
|
+
export default _default;
|
|
5
4
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare module '@ember/-internals/glimmer/lib/templates/link-to' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default TEMPLATE;
|
|
2
|
+
const _default: import('@glimmer/interfaces').TemplateFactory;
|
|
3
|
+
export default _default;
|
|
5
4
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare module '@ember/-internals/glimmer/lib/templates/outlet' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default TEMPLATE;
|
|
2
|
+
const _default: import('@glimmer/interfaces').TemplateFactory;
|
|
3
|
+
export default _default;
|
|
5
4
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare module '@ember/-internals/glimmer/lib/templates/root' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default TEMPLATE;
|
|
2
|
+
const _default: import('@glimmer/interfaces').TemplateFactory;
|
|
3
|
+
export default _default;
|
|
5
4
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare module '@ember/-internals/glimmer/lib/templates/textarea' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export default TEMPLATE;
|
|
2
|
+
const _default: import('@glimmer/interfaces').TemplateFactory;
|
|
3
|
+
export default _default;
|
|
5
4
|
}
|
|
@@ -4,11 +4,11 @@ declare module '@ember/-internals/metal' {
|
|
|
4
4
|
autoComputed,
|
|
5
5
|
isComputed,
|
|
6
6
|
ComputedProperty,
|
|
7
|
-
ComputedDecorator,
|
|
8
|
-
ComputedPropertyGetter,
|
|
9
|
-
ComputedPropertyObj,
|
|
10
|
-
ComputedPropertySetter,
|
|
11
|
-
ComputedPropertyCallback,
|
|
7
|
+
type ComputedDecorator,
|
|
8
|
+
type ComputedPropertyGetter,
|
|
9
|
+
type ComputedPropertyObj,
|
|
10
|
+
type ComputedPropertySetter,
|
|
11
|
+
type ComputedPropertyCallback,
|
|
12
12
|
} from '@ember/-internals/metal/lib/computed';
|
|
13
13
|
export { getCachedValueFor } from '@ember/-internals/metal/lib/computed_cache';
|
|
14
14
|
export { default as alias } from '@ember/-internals/metal/lib/alias';
|
|
@@ -18,7 +18,7 @@ declare module '@ember/-internals/metal' {
|
|
|
18
18
|
_getPath,
|
|
19
19
|
get,
|
|
20
20
|
_getProp,
|
|
21
|
-
HasUnknownProperty,
|
|
21
|
+
type HasUnknownProperty,
|
|
22
22
|
hasUnknownProperty,
|
|
23
23
|
} from '@ember/-internals/metal/lib/property_get';
|
|
24
24
|
export { set, _setProp, trySet } from '@ember/-internals/metal/lib/property_set';
|
|
@@ -49,7 +49,7 @@ declare module '@ember/-internals/metal' {
|
|
|
49
49
|
changeProperties,
|
|
50
50
|
endPropertyChanges,
|
|
51
51
|
notifyPropertyChange,
|
|
52
|
-
PropertyDidChange,
|
|
52
|
+
type PropertyDidChange,
|
|
53
53
|
PROPERTY_DID_CHANGE,
|
|
54
54
|
} from '@ember/-internals/metal/lib/property_events';
|
|
55
55
|
export {
|
|
@@ -58,10 +58,10 @@ declare module '@ember/-internals/metal' {
|
|
|
58
58
|
defineValue,
|
|
59
59
|
} from '@ember/-internals/metal/lib/properties';
|
|
60
60
|
export {
|
|
61
|
-
ExtendedMethodDecorator,
|
|
62
|
-
DecoratorPropertyDescriptor,
|
|
61
|
+
type ExtendedMethodDecorator,
|
|
62
|
+
type DecoratorPropertyDescriptor,
|
|
63
63
|
ComputedDescriptor,
|
|
64
|
-
ElementDescriptor,
|
|
64
|
+
type ElementDescriptor,
|
|
65
65
|
isElementDescriptor,
|
|
66
66
|
nativeDescDecorator,
|
|
67
67
|
descriptorForDecorator,
|
|
@@ -4,7 +4,7 @@ declare module '@ember/debug' {
|
|
|
4
4
|
export { registerHandler as registerWarnHandler } from '@ember/debug/lib/warn';
|
|
5
5
|
export {
|
|
6
6
|
registerHandler as registerDeprecationHandler,
|
|
7
|
-
DeprecationOptions,
|
|
7
|
+
type DeprecationOptions,
|
|
8
8
|
} from '@ember/debug/lib/deprecate';
|
|
9
9
|
export { default as inspect } from '@ember/debug/lib/inspect';
|
|
10
10
|
export { isTesting, setTesting } from '@ember/debug/lib/testing';
|
|
@@ -30,7 +30,7 @@ declare module '@ember/owner' {
|
|
|
30
30
|
@module @ember/owner
|
|
31
31
|
@public
|
|
32
32
|
*/
|
|
33
|
-
import Owner from '@ember/-internals/owner';
|
|
33
|
+
import { type default as Owner } from '@ember/-internals/owner';
|
|
34
34
|
/**
|
|
35
35
|
Framework objects in an Ember application (components, services, routes, etc.)
|
|
36
36
|
are created via a factory and dependency injection system. Each of these
|
|
@@ -75,15 +75,15 @@ declare module '@ember/owner' {
|
|
|
75
75
|
*/
|
|
76
76
|
const getOwner: (object: object) => Owner | undefined;
|
|
77
77
|
export { getOwner };
|
|
78
|
-
export default
|
|
78
|
+
export type { Owner as default };
|
|
79
79
|
export {
|
|
80
80
|
setOwner,
|
|
81
|
-
FullName,
|
|
82
|
-
RegisterOptions,
|
|
83
|
-
Factory,
|
|
84
|
-
FactoryManager,
|
|
85
|
-
KnownForTypeResult,
|
|
86
|
-
Resolver,
|
|
87
|
-
DIRegistry,
|
|
81
|
+
type FullName,
|
|
82
|
+
type RegisterOptions,
|
|
83
|
+
type Factory,
|
|
84
|
+
type FactoryManager,
|
|
85
|
+
type KnownForTypeResult,
|
|
86
|
+
type Resolver,
|
|
87
|
+
type DIRegistry,
|
|
88
88
|
} from '@ember/-internals/owner';
|
|
89
89
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
declare module '@ember/routing/-internals' {
|
|
2
2
|
export { default as RouterState } from '@ember/routing/lib/router_state';
|
|
3
3
|
export { default as RoutingService } from '@ember/routing/lib/routing-service';
|
|
4
|
-
export { RouteArgs, prefixRouteNameArg } from '@ember/routing/lib/utils';
|
|
4
|
+
export { type RouteArgs, prefixRouteNameArg } from '@ember/routing/lib/utils';
|
|
5
5
|
export {
|
|
6
6
|
default as generateController,
|
|
7
7
|
generateControllerFactory,
|
|
8
8
|
} from '@ember/routing/lib/generate_controller';
|
|
9
9
|
export { default as BucketCache } from '@ember/routing/lib/cache';
|
|
10
|
-
export { default as DSL, DSLCallback } from '@ember/routing/lib/dsl';
|
|
11
|
-
export { EngineRouteInfo } from '@ember/routing/lib/engines';
|
|
12
|
-
export { RouteInfo, RouteInfoWithAttributes } from '@ember/routing/lib/route-info';
|
|
10
|
+
export { default as DSL, type DSLCallback } from '@ember/routing/lib/dsl';
|
|
11
|
+
export type { EngineRouteInfo } from '@ember/routing/lib/engines';
|
|
12
|
+
export type { RouteInfo, RouteInfoWithAttributes } from '@ember/routing/lib/route-info';
|
|
13
13
|
export { default as controllerFor } from '@ember/routing/lib/controller_for';
|
|
14
14
|
}
|
|
@@ -4,7 +4,7 @@ declare module '@ember/routing/router-service' {
|
|
|
4
4
|
import type { ModelFor, Transition } from 'router_js';
|
|
5
5
|
import type Route from '@ember/routing/route';
|
|
6
6
|
import EmberRouter from '@ember/routing/router';
|
|
7
|
-
import { RouteInfo, RouteInfoWithAttributes } from '@ember/routing/-internals';
|
|
7
|
+
import type { RouteInfo, RouteInfoWithAttributes } from '@ember/routing/-internals';
|
|
8
8
|
import type { RouteArgs, RouteOptions } from '@ember/routing/lib/utils';
|
|
9
9
|
export const ROUTER: unique symbol;
|
|
10
10
|
/**
|
|
@@ -594,5 +594,5 @@ declare module '@ember/routing/router-service' {
|
|
|
594
594
|
*/
|
|
595
595
|
readonly currentRoute: this['_router']['currentRoute'];
|
|
596
596
|
}
|
|
597
|
-
export { RouterService as default, RouteInfo, RouteInfoWithAttributes };
|
|
597
|
+
export { RouterService as default, type RouteInfo, type RouteInfoWithAttributes };
|
|
598
598
|
}
|
|
@@ -2,6 +2,6 @@ declare module '@ember/runloop/-private/backburner' {
|
|
|
2
2
|
import type Backburner from 'backburner.js';
|
|
3
3
|
export type { Backburner };
|
|
4
4
|
export type DebugInfo = ReturnType<Backburner['getDebugInfo']>;
|
|
5
|
-
export { IQueueItem as QueueItem } from 'backburner.js/dist/backburner/interfaces';
|
|
6
|
-
export { DeferredActionQueues } from 'backburner.js';
|
|
5
|
+
export type { IQueueItem as QueueItem } from 'backburner.js/dist/backburner/interfaces';
|
|
6
|
+
export type { DeferredActionQueues } from 'backburner.js';
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare module '@ember/runloop' {
|
|
2
|
-
import Backburner, { Timer, type DeferredActionQueues } from 'backburner.js';
|
|
2
|
+
import Backburner, { type Timer, type DeferredActionQueues } from 'backburner.js';
|
|
3
3
|
import type { AnyFn } from '@ember/-internals/utility-types';
|
|
4
|
-
export { Timer };
|
|
4
|
+
export type { Timer };
|
|
5
5
|
type PartialParams<P extends any[]> = P extends [infer First, ...infer Rest]
|
|
6
6
|
? [] | [First] | [First, ...PartialParams<Rest>]
|
|
7
7
|
: Required<P> extends [infer First, ...infer Rest]
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
declare module '@ember/template-compilation' {
|
|
2
2
|
import type { TemplateFactory } from '@glimmer/interfaces';
|
|
3
3
|
import type * as ETC from 'ember-template-compiler';
|
|
4
|
-
interface CommonOptions {
|
|
5
|
-
moduleName?: string;
|
|
6
|
-
}
|
|
7
|
-
interface LooseModeOptions extends CommonOptions {
|
|
8
|
-
strictMode?: false;
|
|
9
|
-
}
|
|
10
|
-
interface StrictModeOptions extends CommonOptions {
|
|
11
|
-
strictMode: true;
|
|
12
|
-
scope: () => Record<string, unknown>;
|
|
13
|
-
}
|
|
14
4
|
interface PrecompileTemplate {
|
|
15
|
-
(
|
|
16
|
-
|
|
5
|
+
(
|
|
6
|
+
templateString: string,
|
|
7
|
+
options?: {
|
|
8
|
+
strictMode?: boolean;
|
|
9
|
+
scope?: () => Record<string, unknown>;
|
|
10
|
+
moduleName?: string;
|
|
11
|
+
}
|
|
12
|
+
): TemplateFactory;
|
|
17
13
|
}
|
|
18
14
|
export let __emberTemplateCompiler: undefined | typeof ETC;
|
|
19
15
|
export const compileTemplate: typeof ETC.compile;
|
|
@@ -6,5 +6,5 @@ declare module '@ember/test' {
|
|
|
6
6
|
export let unregisterHelper: (typeof EmberTesting.Test)['unregisterHelper'];
|
|
7
7
|
export let unregisterWaiter: (typeof EmberTesting.Test)['unregisterWaiter'];
|
|
8
8
|
export let _impl: typeof EmberTesting | undefined;
|
|
9
|
-
export function
|
|
9
|
+
export function registerTestImplementation(impl: typeof EmberTesting): void;
|
|
10
10
|
}
|
|
@@ -13,7 +13,7 @@ declare module 'ember-template-compiler/lib/public-api' {
|
|
|
13
13
|
RESOLUTION_MODE_TRANSFORMS,
|
|
14
14
|
STRICT_MODE_TRANSFORMS,
|
|
15
15
|
} from 'ember-template-compiler/lib/plugins';
|
|
16
|
-
export { EmberPrecompileOptions } from 'ember-template-compiler/lib/types';
|
|
16
|
+
export type { EmberPrecompileOptions } from 'ember-template-compiler/lib/types';
|
|
17
17
|
export { preprocess as _preprocess, print as _print } from '@glimmer/syntax';
|
|
18
18
|
export { precompile as _precompile } from '@glimmer/compiler';
|
|
19
19
|
export { _GlimmerSyntax, VERSION };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare module 'ember-template-compiler/minimal' {
|
|
2
|
+
export { default as precompile } from 'ember-template-compiler/lib/system/precompile';
|
|
3
|
+
export { buildCompileOptions as _buildCompileOptions } from 'ember-template-compiler/lib/system/compile-options';
|
|
4
|
+
export { preprocess as _preprocess, print as _print } from '@glimmer/syntax';
|
|
5
|
+
}
|
package/types/stable/index.d.ts
CHANGED
|
@@ -313,6 +313,7 @@
|
|
|
313
313
|
/// <reference path="./ember-template-compiler/lib/system/initializer.d.ts" />
|
|
314
314
|
/// <reference path="./ember-template-compiler/lib/system/precompile.d.ts" />
|
|
315
315
|
/// <reference path="./ember-template-compiler/lib/types.d.ts" />
|
|
316
|
+
/// <reference path="./ember-template-compiler/minimal.d.ts" />
|
|
316
317
|
/// <reference path="./ember-testing/index.d.ts" />
|
|
317
318
|
/// <reference path="./ember-testing/lib/adapters/adapter.d.ts" />
|
|
318
319
|
/// <reference path="./ember-testing/lib/adapters/qunit.d.ts" />
|
|
File without changes
|
/package/blueprints/component-class-addon/files/__root__/__path__/{__name__.ts → __name__.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|