ember-source 6.2.0-alpha.2 → 6.2.0-alpha.4
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 +2 -2
- package/dist/ember-testing.js +1 -1
- package/dist/ember.debug.js +2 -25
- package/dist/ember.prod.js +2 -9
- package/dist/packages/@ember/-internals/glimmer/index.js +2 -2
- package/dist/packages/@ember/application/index.js +2 -2
- package/dist/packages/@ember/application/instance.js +1 -1
- package/dist/packages/@ember/component/helper.js +1 -1
- package/dist/packages/@ember/component/index.js +1 -1
- package/dist/packages/@ember/engine/index.js +2 -2
- package/dist/packages/@ember/helper/index.js +1 -1
- package/dist/packages/@ember/modifier/index.js +1 -1
- package/dist/packages/@ember/renderer/index.js +1 -1
- package/dist/packages/@ember/routing/index.js +1 -1
- package/dist/packages/@ember/routing/route.js +0 -2
- package/dist/packages/@ember/template/index.js +1 -1
- package/dist/packages/ember/barrel.js +1 -1
- package/dist/packages/ember/version.js +1 -1
- package/dist/packages/ember-testing/lib/initializers.js +1 -1
- package/dist/packages/shared-chunks/{index-aNnE3pXR.js → index-C7oKNWrX.js} +24 -21
- package/dist/packages/shared-chunks/{setup-registry-MiB1DeH5.js → setup-registry-CFRLjlg1.js} +1 -1
- package/docs/data.json +25 -61
- package/package.json +2 -2
- package/types/stable/@ember/-internals/glimmer/lib/utils/outlet.d.ts +1 -28
package/build-metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "6.2.0-alpha.
|
|
2
|
+
"version": "6.2.0-alpha.4",
|
|
3
3
|
"buildType": "tag",
|
|
4
|
-
"SHA": "
|
|
5
|
-
"assetPath": "/tag/shas/
|
|
4
|
+
"SHA": "cb59342a36b35c0e6a940fb03ea00cbabe396492",
|
|
5
|
+
"assetPath": "/tag/shas/cb59342a36b35c0e6a940fb03ea00cbabe396492.tgz"
|
|
6
6
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
|
6
6
|
* @license Licensed under MIT license
|
|
7
7
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
|
8
|
-
* @version 6.2.0-alpha.
|
|
8
|
+
* @version 6.2.0-alpha.4
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable no-var */
|
|
11
11
|
/* globals global globalThis self */
|
|
@@ -15651,7 +15651,7 @@ var define, require;
|
|
|
15651
15651
|
}, Symbol.toStringTag, { value: 'Module' });
|
|
15652
15652
|
|
|
15653
15653
|
// this file gets replaced with the real value during the build
|
|
15654
|
-
const version = '6.2.0-alpha.
|
|
15654
|
+
const version = '6.2.0-alpha.4';
|
|
15655
15655
|
|
|
15656
15656
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
15657
15657
|
__proto__: null,
|
package/dist/ember-testing.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
|
6
6
|
* @license Licensed under MIT license
|
|
7
7
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
|
8
|
-
* @version 6.2.0-alpha.
|
|
8
|
+
* @version 6.2.0-alpha.4
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable no-var */
|
|
11
11
|
/* globals global globalThis self */
|
package/dist/ember.debug.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
|
6
6
|
* @license Licensed under MIT license
|
|
7
7
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
|
8
|
-
* @version 6.2.0-alpha.
|
|
8
|
+
* @version 6.2.0-alpha.4
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable no-var */
|
|
11
11
|
/* globals global globalThis self */
|
|
@@ -3379,7 +3379,7 @@ var define, require;
|
|
|
3379
3379
|
}, Symbol.toStringTag, { value: 'Module' });
|
|
3380
3380
|
|
|
3381
3381
|
// this file gets replaced with the real value during the build
|
|
3382
|
-
const Version = '6.2.0-alpha.
|
|
3382
|
+
const Version = '6.2.0-alpha.4';
|
|
3383
3383
|
|
|
3384
3384
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
3385
3385
|
__proto__: null,
|
|
@@ -37071,8 +37071,6 @@ var define, require;
|
|
|
37071
37071
|
let template = owner.lookup(`template:${route.templateName || name}`);
|
|
37072
37072
|
let render = {
|
|
37073
37073
|
owner,
|
|
37074
|
-
into: undefined,
|
|
37075
|
-
outlet: 'main',
|
|
37076
37074
|
name,
|
|
37077
37075
|
controller,
|
|
37078
37076
|
model,
|
|
@@ -39863,25 +39861,6 @@ var define, require;
|
|
|
39863
39861
|
if (render === undefined) return null;
|
|
39864
39862
|
let template = render.template;
|
|
39865
39863
|
if (template === undefined) return null;
|
|
39866
|
-
if (isTemplateFactory(template)) {
|
|
39867
|
-
template = template(render.owner);
|
|
39868
|
-
{
|
|
39869
|
-
let message = 'The `template` property of `OutletState` should be a ' + '`Template` rather than a `TemplateFactory`. This is known to be a ' + "problem in older versions of `@ember/test-helpers`. If you haven't " + 'done so already, try upgrading to the latest version.\n\n';
|
|
39870
|
-
if (template.result === 'ok' && typeof template.moduleName === 'string') {
|
|
39871
|
-
message += 'The offending template has a moduleName `' + template.moduleName + '`, which might be helpful for identifying ' + 'source of this issue.\n\n';
|
|
39872
|
-
}
|
|
39873
|
-
message += 'Please note that `OutletState` is a private API in Ember.js ' + "and not meant to be used outside of the framework's internal code.";
|
|
39874
|
-
(deprecate$1(message, false, {
|
|
39875
|
-
id: 'outlet-state-template-factory',
|
|
39876
|
-
until: '5.9.0',
|
|
39877
|
-
for: 'ember-source',
|
|
39878
|
-
since: {
|
|
39879
|
-
available: '5.6.0',
|
|
39880
|
-
enabled: '5.6.0'
|
|
39881
|
-
}
|
|
39882
|
-
}));
|
|
39883
|
-
}
|
|
39884
|
-
}
|
|
39885
39864
|
return {
|
|
39886
39865
|
ref,
|
|
39887
39866
|
name: render.name,
|
|
@@ -40119,8 +40098,6 @@ var define, require;
|
|
|
40119
40098
|
},
|
|
40120
40099
|
render: {
|
|
40121
40100
|
owner: owner,
|
|
40122
|
-
into: undefined,
|
|
40123
|
-
outlet: 'main',
|
|
40124
40101
|
name: TOP_LEVEL_NAME,
|
|
40125
40102
|
controller: undefined,
|
|
40126
40103
|
model: undefined,
|
package/dist/ember.prod.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
|
|
6
6
|
* @license Licensed under MIT license
|
|
7
7
|
* See https://raw.github.com/emberjs/ember.js/master/LICENSE
|
|
8
|
-
* @version 6.2.0-alpha.
|
|
8
|
+
* @version 6.2.0-alpha.4
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable no-var */
|
|
11
11
|
/* globals global globalThis self */
|
|
@@ -2620,7 +2620,7 @@ var define, require;
|
|
|
2620
2620
|
}, Symbol.toStringTag, { value: 'Module' });
|
|
2621
2621
|
|
|
2622
2622
|
// this file gets replaced with the real value during the build
|
|
2623
|
-
const Version = '6.2.0-alpha.
|
|
2623
|
+
const Version = '6.2.0-alpha.4';
|
|
2624
2624
|
|
|
2625
2625
|
const emberVersion = /*#__PURE__*/Object.defineProperty({
|
|
2626
2626
|
__proto__: null,
|
|
@@ -34961,8 +34961,6 @@ var define, require;
|
|
|
34961
34961
|
let template = owner.lookup(`template:${route.templateName || name}`);
|
|
34962
34962
|
let render = {
|
|
34963
34963
|
owner,
|
|
34964
|
-
into: undefined,
|
|
34965
|
-
outlet: 'main',
|
|
34966
34964
|
name,
|
|
34967
34965
|
controller,
|
|
34968
34966
|
model,
|
|
@@ -37596,9 +37594,6 @@ var define, require;
|
|
|
37596
37594
|
if (render === undefined) return null;
|
|
37597
37595
|
let template = render.template;
|
|
37598
37596
|
if (template === undefined) return null;
|
|
37599
|
-
if (isTemplateFactory(template)) {
|
|
37600
|
-
template = template(render.owner);
|
|
37601
|
-
}
|
|
37602
37597
|
return {
|
|
37603
37598
|
ref,
|
|
37604
37599
|
name: render.name,
|
|
@@ -37833,8 +37828,6 @@ var define, require;
|
|
|
37833
37828
|
},
|
|
37834
37829
|
render: {
|
|
37835
37830
|
owner: owner,
|
|
37836
|
-
into: undefined,
|
|
37837
|
-
outlet: 'main',
|
|
37838
37831
|
name: TOP_LEVEL_NAME,
|
|
37839
37832
|
controller: undefined,
|
|
37840
37833
|
model: undefined,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { templateFactory as template, templateCacheCounters } from '../../../@glimmer/opcode-compiler/index.js';
|
|
2
|
-
export { C as Component, H as Helper, I as Input, L as LinkTo, O as OutletView, b as Renderer, R as RootTemplate, S as SafeString, T as Textarea, _ as _resetRenderers, e as escapeExpression, h as helper, a as htmlSafe, i as isHTMLSafe, r as renderSettled, u as uniqueId } from '../../../shared-chunks/index-
|
|
2
|
+
export { C as Component, H as Helper, I as Input, L as LinkTo, O as OutletView, b as Renderer, R as RootTemplate, S as SafeString, T as Textarea, _ as _resetRenderers, e as escapeExpression, h as helper, a as htmlSafe, i as isHTMLSafe, r as renderSettled, u as uniqueId } from '../../../shared-chunks/index-C7oKNWrX.js';
|
|
3
3
|
export { g as getTemplate, a as getTemplates, h as hasTemplate, s as setTemplate, b as setTemplates } from '../../../shared-chunks/template_registry-DigcUg9m.js';
|
|
4
|
-
export { a as setupApplicationRegistry, s as setupEngineRegistry } from '../../../shared-chunks/setup-registry-
|
|
4
|
+
export { a as setupApplicationRegistry, s as setupEngineRegistry } from '../../../shared-chunks/setup-registry-CFRLjlg1.js';
|
|
5
5
|
export { DOMChanges, DOMTreeConstruction, isSerializationFirstNode } from '../../../@glimmer/runtime/index.js';
|
|
6
6
|
export { NodeDOMTreeConstruction } from '../../../@glimmer/node/index.js';
|
|
7
7
|
export { s as setComponentManager } from '../../../shared-chunks/managers-CbMgnSoo.js';
|
|
@@ -47,8 +47,8 @@ import ApplicationInstance from './instance.js';
|
|
|
47
47
|
import Engine, { buildInitializerMethod } from '../engine/index.js';
|
|
48
48
|
import { p as privatize } from '../../shared-chunks/registry-B8WARvkP.js';
|
|
49
49
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
50
|
-
import '../../shared-chunks/index-
|
|
51
|
-
import { a as setupApplicationRegistry } from '../../shared-chunks/setup-registry-
|
|
50
|
+
import '../../shared-chunks/index-C7oKNWrX.js';
|
|
51
|
+
import { a as setupApplicationRegistry } from '../../shared-chunks/setup-registry-CFRLjlg1.js';
|
|
52
52
|
import '../../@glimmer/runtime/index.js';
|
|
53
53
|
import '../../@glimmer/reference/index.js';
|
|
54
54
|
import RouterService from '../routing/router-service.js';
|
|
@@ -2,7 +2,7 @@ import '../object/index.js';
|
|
|
2
2
|
import { h as hasDOM, e as environment } from '../../shared-chunks/index-BGP1rw3B.js';
|
|
3
3
|
import EngineInstance from '../engine/instance.js';
|
|
4
4
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
5
|
-
import { r as renderSettled } from '../../shared-chunks/index-
|
|
5
|
+
import { r as renderSettled } from '../../shared-chunks/index-C7oKNWrX.js';
|
|
6
6
|
import '../../shared-chunks/registry-B8WARvkP.js';
|
|
7
7
|
import '../debug/index.js';
|
|
8
8
|
import '../../@glimmer/runtime/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
2
|
-
export { H as default, h as helper } from '../../shared-chunks/index-
|
|
2
|
+
export { H as default, h as helper } from '../../shared-chunks/index-C7oKNWrX.js';
|
|
3
3
|
import '../../shared-chunks/registry-B8WARvkP.js';
|
|
4
4
|
import '../debug/index.js';
|
|
5
5
|
import '../../@glimmer/runtime/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { componentCapabilities as capabilities, getComponentTemplate, setComponentTemplate } from '../../@glimmer/manager/index.js';
|
|
2
2
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
3
|
-
export { I as Input, T as Textarea, C as default } from '../../shared-chunks/index-
|
|
3
|
+
export { I as Input, T as Textarea, C as default } from '../../shared-chunks/index-C7oKNWrX.js';
|
|
4
4
|
import '../../shared-chunks/registry-B8WARvkP.js';
|
|
5
5
|
import '../debug/index.js';
|
|
6
6
|
import '../../@glimmer/runtime/index.js';
|
|
@@ -30,8 +30,8 @@ import '../-internals/views/lib/mixins/view_state_support.js';
|
|
|
30
30
|
import '../-internals/views/lib/mixins/view_support.js';
|
|
31
31
|
import '../-internals/views/lib/mixins/action_support.js';
|
|
32
32
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
33
|
-
import '../../shared-chunks/index-
|
|
34
|
-
import { s as setupEngineRegistry } from '../../shared-chunks/setup-registry-
|
|
33
|
+
import '../../shared-chunks/index-C7oKNWrX.js';
|
|
34
|
+
import { s as setupEngineRegistry } from '../../shared-chunks/setup-registry-CFRLjlg1.js';
|
|
35
35
|
import '../../@glimmer/runtime/index.js';
|
|
36
36
|
import '../runloop/index.js';
|
|
37
37
|
import '../../@glimmer/reference/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { helperCapabilities, setHelperManager as setHelperManager$1 } from '../../@glimmer/manager/index.js';
|
|
2
2
|
import { invokeHelper as invokeHelper$1, hash as hash$1, array as array$1, concat as concat$1, get as get$1, fn as fn$1 } from '../../@glimmer/runtime/index.js';
|
|
3
3
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
4
|
-
import { u as uniqueId$1 } from '../../shared-chunks/index-
|
|
4
|
+
import { u as uniqueId$1 } from '../../shared-chunks/index-C7oKNWrX.js';
|
|
5
5
|
import '../../shared-chunks/registry-B8WARvkP.js';
|
|
6
6
|
import '../debug/index.js';
|
|
7
7
|
import '../runloop/index.js';
|
|
@@ -2,7 +2,7 @@ import { setModifierManager as setModifierManager$1 } from '../../@glimmer/manag
|
|
|
2
2
|
export { modifierCapabilities as capabilities } from '../../@glimmer/manager/index.js';
|
|
3
3
|
export { on } from './on.js';
|
|
4
4
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
5
|
-
import '../../shared-chunks/index-
|
|
5
|
+
import '../../shared-chunks/index-C7oKNWrX.js';
|
|
6
6
|
import '../../shared-chunks/registry-B8WARvkP.js';
|
|
7
7
|
import '../debug/index.js';
|
|
8
8
|
import '../../@glimmer/runtime/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
2
|
-
export { r as renderSettled } from '../../shared-chunks/index-
|
|
2
|
+
export { r as renderSettled } from '../../shared-chunks/index-C7oKNWrX.js';
|
|
3
3
|
import '../../shared-chunks/registry-B8WARvkP.js';
|
|
4
4
|
import '../debug/index.js';
|
|
5
5
|
import '../../@glimmer/runtime/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
2
|
-
export { L as LinkTo } from '../../shared-chunks/index-
|
|
2
|
+
export { L as LinkTo } from '../../shared-chunks/index-C7oKNWrX.js';
|
|
3
3
|
import '../../shared-chunks/registry-B8WARvkP.js';
|
|
4
4
|
import '../debug/index.js';
|
|
5
5
|
import '../../@glimmer/runtime/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
2
|
-
export { a as htmlSafe, i as isHTMLSafe } from '../../shared-chunks/index-
|
|
2
|
+
export { a as htmlSafe, i as isHTMLSafe } from '../../shared-chunks/index-C7oKNWrX.js';
|
|
3
3
|
import '../../shared-chunks/registry-B8WARvkP.js';
|
|
4
4
|
import '../debug/index.js';
|
|
5
5
|
import '../../@glimmer/runtime/index.js';
|
|
@@ -39,7 +39,7 @@ import MutableEnumerable from '../@ember/enumerable/mutable.js';
|
|
|
39
39
|
import '../@ember/-internals/runtime/lib/mixins/target_action_support.js';
|
|
40
40
|
import '../@ember/-internals/runtime/lib/ext/rsvp.js';
|
|
41
41
|
import { templateFactory } from '../@glimmer/opcode-compiler/index.js';
|
|
42
|
-
import { I as Input, C as Component, H as Helper, e as escapeExpression } from '../shared-chunks/index-
|
|
42
|
+
import { I as Input, C as Component, H as Helper, e as escapeExpression } from '../shared-chunks/index-C7oKNWrX.js';
|
|
43
43
|
import { a as getTemplates, b as setTemplates } from '../shared-chunks/template_registry-DigcUg9m.js';
|
|
44
44
|
import { isSerializationFirstNode, templateOnlyComponent, invokeHelper, hash, array, concat, get as get$1, on as on$1, fn } from '../@glimmer/runtime/index.js';
|
|
45
45
|
import { run } from '../@ember/runloop/index.js';
|
|
@@ -36,7 +36,7 @@ import '../../shared-chunks/unrecognized-url-error-zpz-JEoG.js';
|
|
|
36
36
|
import '../../@ember/routing/lib/routing-service.js';
|
|
37
37
|
import '../../@ember/controller/index.js';
|
|
38
38
|
import '../../@glimmer/opcode-compiler/index.js';
|
|
39
|
-
import '../../shared-chunks/index-
|
|
39
|
+
import '../../shared-chunks/index-C7oKNWrX.js';
|
|
40
40
|
import '../../shared-chunks/registry-B8WARvkP.js';
|
|
41
41
|
import '../../@glimmer/runtime/index.js';
|
|
42
42
|
import '../../@glimmer/reference/index.js';
|
|
@@ -4677,6 +4677,30 @@ const mountHelper = internalHelper((args, owner) => {
|
|
|
4677
4677
|
});
|
|
4678
4678
|
});
|
|
4679
4679
|
|
|
4680
|
+
/**
|
|
4681
|
+
The `{{outlet}}` helper lets you specify where a child route will render in
|
|
4682
|
+
your template. An important use of the `{{outlet}}` helper is in your
|
|
4683
|
+
application's `application.hbs` file:
|
|
4684
|
+
|
|
4685
|
+
```app/templates/application.hbs
|
|
4686
|
+
<MyHeader />
|
|
4687
|
+
|
|
4688
|
+
<div class="my-dynamic-content">
|
|
4689
|
+
<!-- this content will change based on the current route, which depends on the current URL -->
|
|
4690
|
+
{{outlet}}
|
|
4691
|
+
</div>
|
|
4692
|
+
|
|
4693
|
+
<MyFooter />
|
|
4694
|
+
```
|
|
4695
|
+
|
|
4696
|
+
See the [routing guide](https://guides.emberjs.com/release/routing/rendering-a-template/) for more
|
|
4697
|
+
information on how your `route` interacts with the `{{outlet}}` helper.
|
|
4698
|
+
Note: Your content __will not render__ if there isn't an `{{outlet}}` for it.
|
|
4699
|
+
|
|
4700
|
+
@method outlet
|
|
4701
|
+
@for Ember.Templates.helpers
|
|
4702
|
+
@public
|
|
4703
|
+
*/
|
|
4680
4704
|
const outletHelper = internalHelper((_args, owner, scope) => {
|
|
4681
4705
|
(isDevelopingApp() && !(owner) && assert('Expected owner to be present, {{outlet}} requires an owner', owner));
|
|
4682
4706
|
(isDevelopingApp() && !(scope) && assert('Expected dynamic scope to be present. You may have attempted to use the {{outlet}} keyword dynamically. This keyword cannot be used dynamically.', scope));
|
|
@@ -4730,25 +4754,6 @@ function stateFor(ref, outlet) {
|
|
|
4730
4754
|
if (render === undefined) return null;
|
|
4731
4755
|
let template = render.template;
|
|
4732
4756
|
if (template === undefined) return null;
|
|
4733
|
-
if (isTemplateFactory(template)) {
|
|
4734
|
-
template = template(render.owner);
|
|
4735
|
-
if (isDevelopingApp()) {
|
|
4736
|
-
let message = 'The `template` property of `OutletState` should be a ' + '`Template` rather than a `TemplateFactory`. This is known to be a ' + "problem in older versions of `@ember/test-helpers`. If you haven't " + 'done so already, try upgrading to the latest version.\n\n';
|
|
4737
|
-
if (template.result === 'ok' && typeof template.moduleName === 'string') {
|
|
4738
|
-
message += 'The offending template has a moduleName `' + template.moduleName + '`, which might be helpful for identifying ' + 'source of this issue.\n\n';
|
|
4739
|
-
}
|
|
4740
|
-
message += 'Please note that `OutletState` is a private API in Ember.js ' + "and not meant to be used outside of the framework's internal code.";
|
|
4741
|
-
(isDevelopingApp() && !(false) && deprecate(message, false, {
|
|
4742
|
-
id: 'outlet-state-template-factory',
|
|
4743
|
-
until: '5.9.0',
|
|
4744
|
-
for: 'ember-source',
|
|
4745
|
-
since: {
|
|
4746
|
-
available: '5.6.0',
|
|
4747
|
-
enabled: '5.6.0'
|
|
4748
|
-
}
|
|
4749
|
-
}));
|
|
4750
|
-
}
|
|
4751
|
-
}
|
|
4752
4757
|
return {
|
|
4753
4758
|
ref,
|
|
4754
4759
|
name: render.name,
|
|
@@ -4998,8 +5003,6 @@ class OutletView {
|
|
|
4998
5003
|
},
|
|
4999
5004
|
render: {
|
|
5000
5005
|
owner: owner,
|
|
5001
|
-
into: undefined,
|
|
5002
|
-
outlet: 'main',
|
|
5003
5006
|
name: TOP_LEVEL_NAME,
|
|
5004
5007
|
controller: undefined,
|
|
5005
5008
|
model: undefined,
|
package/dist/packages/shared-chunks/{setup-registry-MiB1DeH5.js → setup-registry-CFRLjlg1.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as privatize } from './registry-B8WARvkP.js';
|
|
2
2
|
import { getOwner } from '../@ember/-internals/owner/index.js';
|
|
3
3
|
import '../@ember/debug/index.js';
|
|
4
|
-
import { R as RootTemplate, b as Renderer, O as OutletView, c as OutletTemplate, I as Input, L as LinkTo, T as Textarea } from './index-
|
|
4
|
+
import { R as RootTemplate, b as Renderer, O as OutletView, c as OutletTemplate, I as Input, L as LinkTo, T as Textarea } from './index-C7oKNWrX.js';
|
|
5
5
|
import { clientBuilder, rehydrationBuilder } from '../@glimmer/runtime/index.js';
|
|
6
6
|
import { serializeBuilder } from '../@glimmer/node/index.js';
|
|
7
7
|
import { isDevelopingApp } from '@embroider/macros';
|
package/docs/data.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "The Ember API",
|
|
4
4
|
"description": "The Ember API: a framework for building ambitious web applications",
|
|
5
5
|
"url": "https://emberjs.com/",
|
|
6
|
-
"version": "6.2.0-alpha.
|
|
6
|
+
"version": "6.2.0-alpha.4"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -6224,7 +6224,7 @@
|
|
|
6224
6224
|
},
|
|
6225
6225
|
{
|
|
6226
6226
|
"file": "packages/@ember/-internals/glimmer/lib/syntax/outlet.ts",
|
|
6227
|
-
"line":
|
|
6227
|
+
"line": 21,
|
|
6228
6228
|
"description": "The `{{outlet}}` helper lets you specify where a child route will render in\nyour template. An important use of the `{{outlet}}` helper is in your\napplication's `application.hbs` file:\n\n```app/templates/application.hbs\n<MyHeader />\n\n<div class=\"my-dynamic-content\">\n <!-- this content will change based on the current route, which depends on the current URL -->\n {{outlet}}\n</div>\n\n<MyFooter />\n```\n\nSee the [routing guide](https://guides.emberjs.com/release/routing/rendering-a-template/) for more\ninformation on how your `route` interacts with the `{{outlet}}` helper.\nNote: Your content __will not render__ if there isn't an `{{outlet}}` for it.",
|
|
6229
6229
|
"itemtype": "method",
|
|
6230
6230
|
"name": "outlet",
|
|
@@ -6262,77 +6262,53 @@
|
|
|
6262
6262
|
},
|
|
6263
6263
|
{
|
|
6264
6264
|
"file": "packages/@ember/-internals/glimmer/lib/utils/outlet.ts",
|
|
6265
|
-
"line":
|
|
6265
|
+
"line": 5,
|
|
6266
6266
|
"description": "This is usually inherited from the parent (all the way up to the app\ninstance). However, engines uses this to swap out the owner when crossing\na mount point.",
|
|
6267
6267
|
"class": "@ember/template",
|
|
6268
6268
|
"module": "ember"
|
|
6269
6269
|
},
|
|
6270
6270
|
{
|
|
6271
6271
|
"file": "packages/@ember/-internals/glimmer/lib/utils/outlet.ts",
|
|
6272
|
-
"line":
|
|
6273
|
-
"deprecated": true,
|
|
6274
|
-
"deprecationMessage": "This used to specify \"which parent route to render into\",\nwhich is not a thing anymore.",
|
|
6275
|
-
"class": "@ember/template",
|
|
6276
|
-
"module": "ember"
|
|
6277
|
-
},
|
|
6278
|
-
{
|
|
6279
|
-
"file": "packages/@ember/-internals/glimmer/lib/utils/outlet.ts",
|
|
6280
|
-
"line": 34,
|
|
6281
|
-
"deprecated": true,
|
|
6282
|
-
"deprecationMessage": "This used to specify \"which named outlet in the parent\ntemplate to render into\", which is not a thing anymore.",
|
|
6283
|
-
"class": "@ember/template",
|
|
6284
|
-
"module": "ember"
|
|
6285
|
-
},
|
|
6286
|
-
{
|
|
6287
|
-
"file": "packages/@ember/-internals/glimmer/lib/utils/outlet.ts",
|
|
6288
|
-
"line": 40,
|
|
6272
|
+
"line": 12,
|
|
6289
6273
|
"description": "The name of the route/template",
|
|
6290
6274
|
"class": "@ember/template",
|
|
6291
6275
|
"module": "ember"
|
|
6292
6276
|
},
|
|
6293
6277
|
{
|
|
6294
6278
|
"file": "packages/@ember/-internals/glimmer/lib/utils/outlet.ts",
|
|
6295
|
-
"line":
|
|
6279
|
+
"line": 17,
|
|
6296
6280
|
"description": "The controller (the self of the outlet component)",
|
|
6297
6281
|
"class": "@ember/template",
|
|
6298
6282
|
"module": "ember"
|
|
6299
6283
|
},
|
|
6300
6284
|
{
|
|
6301
6285
|
"file": "packages/@ember/-internals/glimmer/lib/utils/outlet.ts",
|
|
6302
|
-
"line":
|
|
6286
|
+
"line": 22,
|
|
6303
6287
|
"description": "The model (the resolved value of the model hook)",
|
|
6304
6288
|
"class": "@ember/template",
|
|
6305
6289
|
"module": "ember"
|
|
6306
6290
|
},
|
|
6307
6291
|
{
|
|
6308
6292
|
"file": "packages/@ember/-internals/glimmer/lib/utils/outlet.ts",
|
|
6309
|
-
"line":
|
|
6310
|
-
"description": "template (the
|
|
6293
|
+
"line": 27,
|
|
6294
|
+
"description": "The template (the route template to use in the {{outlet}})",
|
|
6311
6295
|
"class": "@ember/template",
|
|
6312
6296
|
"module": "ember"
|
|
6313
6297
|
},
|
|
6314
6298
|
{
|
|
6315
6299
|
"file": "packages/@ember/-internals/glimmer/lib/utils/outlet.ts",
|
|
6316
|
-
"line":
|
|
6300
|
+
"line": 34,
|
|
6317
6301
|
"description": "Represents what was rendered into this outlet.",
|
|
6318
6302
|
"class": "@ember/template",
|
|
6319
6303
|
"module": "ember"
|
|
6320
6304
|
},
|
|
6321
6305
|
{
|
|
6322
6306
|
"file": "packages/@ember/-internals/glimmer/lib/utils/outlet.ts",
|
|
6323
|
-
"line":
|
|
6307
|
+
"line": 39,
|
|
6324
6308
|
"description": "Represents what, if any, should be rendered into the next {{outlet}} found\nat this level.\n\nThis used to be a dictionary of children outlets, including the {{outlet}}\n\"main\" outlet any {{outlet \"named\"}} named outlets. Since named outlets\nare not a thing anymore, this can now just be a single`child`.",
|
|
6325
6309
|
"class": "@ember/template",
|
|
6326
6310
|
"module": "ember"
|
|
6327
6311
|
},
|
|
6328
|
-
{
|
|
6329
|
-
"file": "packages/@ember/-internals/glimmer/lib/utils/outlet.ts",
|
|
6330
|
-
"line": 79,
|
|
6331
|
-
"deprecated": true,
|
|
6332
|
-
"deprecationMessage": "This tracks whether this outlet state actually made it onto the page\nsomewhere. This was more of a problem when you can declare named outlets\nleft and right, and anything can render into anywhere else. We want to\nwarn users when you tried to render into somewhere that does not exist,\nbut we don't know what named outlets exists until after we have rendered\neverything, so this was used to track these orphan renders.\n\nThis can still happen, if, according to the router, a route is active and\nso its template should be rendered, but the parent template is missing the\n`{{outlet}}` keyword, or that it was hidden by an `{{#if}}` or something.\nI guess that is considered valid, because nothing checks for this anymore.\nseems valid for the parent to decide not to render a child template?",
|
|
6333
|
-
"class": "@ember/template",
|
|
6334
|
-
"module": "ember"
|
|
6335
|
-
},
|
|
6336
6312
|
{
|
|
6337
6313
|
"file": "packages/@ember/-internals/glimmer/lib/utils/string.ts",
|
|
6338
6314
|
"line": 47,
|
|
@@ -6404,13 +6380,13 @@
|
|
|
6404
6380
|
},
|
|
6405
6381
|
{
|
|
6406
6382
|
"file": "packages/@ember/-internals/glimmer/lib/views/outlet.ts",
|
|
6407
|
-
"line":
|
|
6383
|
+
"line": 114,
|
|
6408
6384
|
"class": "Component",
|
|
6409
6385
|
"module": "@ember/template"
|
|
6410
6386
|
},
|
|
6411
6387
|
{
|
|
6412
6388
|
"file": "packages/@ember/-internals/glimmer/lib/views/outlet.ts",
|
|
6413
|
-
"line":
|
|
6389
|
+
"line": 122,
|
|
6414
6390
|
"class": "Component",
|
|
6415
6391
|
"module": "@ember/template"
|
|
6416
6392
|
},
|
|
@@ -16949,7 +16925,7 @@
|
|
|
16949
16925
|
},
|
|
16950
16926
|
{
|
|
16951
16927
|
"file": "packages/@ember/routing/route.ts",
|
|
16952
|
-
"line":
|
|
16928
|
+
"line": 2043,
|
|
16953
16929
|
"description": "The controller associated with this route.\n\nExample\n\n```app/routes/form.js\nimport Route from '@ember/routing/route';\nimport { action } from '@ember/object';\n\nexport default class FormRoute extends Route {\n @action\n willTransition(transition) {\n if (this.controller.get('userHasEnteredData') &&\n !confirm('Are you sure you want to abandon progress?')) {\n transition.abort();\n } else {\n // Bubble the `willTransition` action so that\n // parent routes can decide whether or not to abort.\n return true;\n }\n }\n}\n```",
|
|
16954
16930
|
"itemtype": "property",
|
|
16955
16931
|
"name": "controller",
|
|
@@ -16962,7 +16938,7 @@
|
|
|
16962
16938
|
},
|
|
16963
16939
|
{
|
|
16964
16940
|
"file": "packages/@ember/routing/route.ts",
|
|
16965
|
-
"line":
|
|
16941
|
+
"line": 2074,
|
|
16966
16942
|
"description": "This action is called when one or more query params have changed. Bubbles.",
|
|
16967
16943
|
"itemtype": "method",
|
|
16968
16944
|
"name": "queryParamsDidChange",
|
|
@@ -19508,7 +19484,7 @@
|
|
|
19508
19484
|
},
|
|
19509
19485
|
{
|
|
19510
19486
|
"message": "replacing incorrect tag: returns with return",
|
|
19511
|
-
"line": " packages/@ember/routing/route.ts:
|
|
19487
|
+
"line": " packages/@ember/routing/route.ts:2074"
|
|
19512
19488
|
},
|
|
19513
19489
|
{
|
|
19514
19490
|
"message": "unknown tag: internal",
|
|
@@ -19540,51 +19516,39 @@
|
|
|
19540
19516
|
},
|
|
19541
19517
|
{
|
|
19542
19518
|
"message": "Missing item type\nThis is usually inherited from the parent (all the way up to the app\ninstance). However, engines uses this to swap out the owner when crossing\na mount point.",
|
|
19543
|
-
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:
|
|
19544
|
-
},
|
|
19545
|
-
{
|
|
19546
|
-
"message": "Missing item type",
|
|
19547
|
-
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:28"
|
|
19548
|
-
},
|
|
19549
|
-
{
|
|
19550
|
-
"message": "Missing item type",
|
|
19551
|
-
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:34"
|
|
19519
|
+
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:5"
|
|
19552
19520
|
},
|
|
19553
19521
|
{
|
|
19554
19522
|
"message": "Missing item type\nThe name of the route/template",
|
|
19555
|
-
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:
|
|
19523
|
+
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:12"
|
|
19556
19524
|
},
|
|
19557
19525
|
{
|
|
19558
19526
|
"message": "Missing item type\nThe controller (the self of the outlet component)",
|
|
19559
|
-
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:
|
|
19527
|
+
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:17"
|
|
19560
19528
|
},
|
|
19561
19529
|
{
|
|
19562
19530
|
"message": "Missing item type\nThe model (the resolved value of the model hook)",
|
|
19563
|
-
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:
|
|
19531
|
+
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:22"
|
|
19564
19532
|
},
|
|
19565
19533
|
{
|
|
19566
|
-
"message": "Missing item type\
|
|
19567
|
-
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:
|
|
19534
|
+
"message": "Missing item type\nThe template (the route template to use in the {{outlet}})",
|
|
19535
|
+
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:27"
|
|
19568
19536
|
},
|
|
19569
19537
|
{
|
|
19570
19538
|
"message": "Missing item type\nRepresents what was rendered into this outlet.",
|
|
19571
|
-
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:
|
|
19539
|
+
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:34"
|
|
19572
19540
|
},
|
|
19573
19541
|
{
|
|
19574
19542
|
"message": "Missing item type\nRepresents what, if any, should be rendered into the next {{outlet}} found\nat this level.\n\nThis used to be a dictionary of children outlets, including the {{outlet}}\n\"main\" outlet any {{outlet \"named\"}} named outlets. Since named outlets\nare not a thing anymore, this can now just be a single`child`.",
|
|
19575
|
-
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:
|
|
19576
|
-
},
|
|
19577
|
-
{
|
|
19578
|
-
"message": "Missing item type",
|
|
19579
|
-
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:79"
|
|
19543
|
+
"line": " packages/@ember/-internals/glimmer/lib/utils/outlet.ts:39"
|
|
19580
19544
|
},
|
|
19581
19545
|
{
|
|
19582
19546
|
"message": "Missing item type",
|
|
19583
|
-
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:
|
|
19547
|
+
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:114"
|
|
19584
19548
|
},
|
|
19585
19549
|
{
|
|
19586
19550
|
"message": "Missing item type",
|
|
19587
|
-
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:
|
|
19551
|
+
"line": " packages/@ember/-internals/glimmer/lib/views/outlet.ts:122"
|
|
19588
19552
|
},
|
|
19589
19553
|
{
|
|
19590
19554
|
"message": "Missing item type",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "6.2.0-alpha.
|
|
3
|
+
"version": "6.2.0-alpha.4",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
"node": "16.20.0",
|
|
402
402
|
"pnpm": "8.10.0"
|
|
403
403
|
},
|
|
404
|
-
"_originalVersion": "6.2.0-alpha.
|
|
404
|
+
"_originalVersion": "6.2.0-alpha.4",
|
|
405
405
|
"_versionPreviouslyCalculated": true,
|
|
406
406
|
"publishConfig": {
|
|
407
407
|
"tag": "alpha"
|
|
@@ -8,16 +8,6 @@ declare module '@ember/-internals/glimmer/lib/utils/outlet' {
|
|
|
8
8
|
* a mount point.
|
|
9
9
|
*/
|
|
10
10
|
owner: InternalOwner;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated This used to specify "which parent route to render into",
|
|
13
|
-
* which is not a thing anymore.
|
|
14
|
-
*/
|
|
15
|
-
into: undefined;
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated This used to specify "which named outlet in the parent
|
|
18
|
-
* template to render into", which is not a thing anymore.
|
|
19
|
-
*/
|
|
20
|
-
outlet: 'main';
|
|
21
11
|
/**
|
|
22
12
|
* The name of the route/template
|
|
23
13
|
*/
|
|
@@ -31,7 +21,7 @@ declare module '@ember/-internals/glimmer/lib/utils/outlet' {
|
|
|
31
21
|
*/
|
|
32
22
|
model: unknown;
|
|
33
23
|
/**
|
|
34
|
-
* template (the
|
|
24
|
+
* The template (the route template to use in the {{outlet}})
|
|
35
25
|
*/
|
|
36
26
|
template: Template | undefined;
|
|
37
27
|
}
|
|
@@ -51,22 +41,5 @@ declare module '@ember/-internals/glimmer/lib/utils/outlet' {
|
|
|
51
41
|
outlets: {
|
|
52
42
|
main: OutletState | undefined;
|
|
53
43
|
};
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated
|
|
56
|
-
*
|
|
57
|
-
* This tracks whether this outlet state actually made it onto the page
|
|
58
|
-
* somewhere. This was more of a problem when you can declare named outlets
|
|
59
|
-
* left and right, and anything can render into anywhere else. We want to
|
|
60
|
-
* warn users when you tried to render into somewhere that does not exist,
|
|
61
|
-
* but we don't know what named outlets exists until after we have rendered
|
|
62
|
-
* everything, so this was used to track these orphan renders.
|
|
63
|
-
*
|
|
64
|
-
* This can still happen, if, according to the router, a route is active and
|
|
65
|
-
* so its template should be rendered, but the parent template is missing the
|
|
66
|
-
* `{{outlet}}` keyword, or that it was hidden by an `{{#if}}` or something.
|
|
67
|
-
* I guess that is considered valid, because nothing checks for this anymore.
|
|
68
|
-
* seems valid for the parent to decide not to render a child template?
|
|
69
|
-
*/
|
|
70
|
-
wasUsed?: undefined;
|
|
71
44
|
}
|
|
72
45
|
}
|