ember-source 4.3.0-alpha.3 → 4.3.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 +1149 -762
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +74 -43
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +2419 -1374
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +1 -0
- package/dist/packages/@ember/-internals/glimmer/index.js +53 -0
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +11 -11
- package/package.json +12 -12
package/dist/header/license.js
CHANGED
|
@@ -3406,6 +3406,59 @@ const Component = CoreView.extend(ChildViewsSupport, ViewStateSupport, ClassName
|
|
|
3406
3406
|
@since 1.13.0
|
|
3407
3407
|
*/
|
|
3408
3408
|
didUpdate() {}
|
|
3409
|
+
/**
|
|
3410
|
+
Called when the component has updated and rerendered itself.
|
|
3411
|
+
Called only during a rerender, not during an initial render.
|
|
3412
|
+
@event didUpdate
|
|
3413
|
+
@public
|
|
3414
|
+
@since 1.13.0
|
|
3415
|
+
*/
|
|
3416
|
+
|
|
3417
|
+
/**
|
|
3418
|
+
Layout can be used to wrap content in a component.
|
|
3419
|
+
@property layout
|
|
3420
|
+
@type Function
|
|
3421
|
+
@public
|
|
3422
|
+
*/
|
|
3423
|
+
|
|
3424
|
+
/**
|
|
3425
|
+
The name of the layout to lookup if no layout is provided.
|
|
3426
|
+
By default `Component` will lookup a template with this name in
|
|
3427
|
+
`Ember.TEMPLATES` (a shared global object).
|
|
3428
|
+
@property layoutName
|
|
3429
|
+
@type String
|
|
3430
|
+
@default null
|
|
3431
|
+
@private
|
|
3432
|
+
*/
|
|
3433
|
+
|
|
3434
|
+
/**
|
|
3435
|
+
The HTML `id` of the component's element in the DOM. You can provide this
|
|
3436
|
+
value yourself but it must be unique (just as in HTML):
|
|
3437
|
+
```handlebars
|
|
3438
|
+
{{my-component elementId="a-really-cool-id"}}
|
|
3439
|
+
```
|
|
3440
|
+
```handlebars
|
|
3441
|
+
<MyComponent @elementId="a-really-cool-id" />
|
|
3442
|
+
```
|
|
3443
|
+
If not manually set a default value will be provided by the framework.
|
|
3444
|
+
Once rendered an element's `elementId` is considered immutable and you
|
|
3445
|
+
should never change it. If you need to compute a dynamic value for the
|
|
3446
|
+
`elementId`, you should do this when the component or element is being
|
|
3447
|
+
instantiated:
|
|
3448
|
+
```javascript
|
|
3449
|
+
export default Component.extend({
|
|
3450
|
+
init() {
|
|
3451
|
+
this._super(...arguments);
|
|
3452
|
+
var index = this.get('index');
|
|
3453
|
+
this.set('elementId', `component-id${index}`);
|
|
3454
|
+
}
|
|
3455
|
+
});
|
|
3456
|
+
```
|
|
3457
|
+
@property elementId
|
|
3458
|
+
@type String
|
|
3459
|
+
@public
|
|
3460
|
+
*/
|
|
3461
|
+
|
|
3409
3462
|
|
|
3410
3463
|
});
|
|
3411
3464
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "4.3.0-alpha.
|
|
1
|
+
export default "4.3.0-alpha.4";
|
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": "4.3.0-alpha.
|
|
6
|
+
"version": "4.3.0-alpha.4"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
|
@@ -2310,7 +2310,7 @@
|
|
|
2310
2310
|
"module": "rsvp",
|
|
2311
2311
|
"namespace": "",
|
|
2312
2312
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
2313
|
-
"line":
|
|
2313
|
+
"line": 55,
|
|
2314
2314
|
"description": "A container used to instantiate and cache objects.\n\nEvery `Container` must be associated with a `Registry`, which is referenced\nto determine the factory and options that should be used to instantiate\nobjects.\n\nThe public API for `Container` is still in flux and should not be considered\nstable.",
|
|
2315
2315
|
"access": "private",
|
|
2316
2316
|
"tagname": ""
|
|
@@ -4443,7 +4443,7 @@
|
|
|
4443
4443
|
},
|
|
4444
4444
|
{
|
|
4445
4445
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4446
|
-
"line":
|
|
4446
|
+
"line": 95,
|
|
4447
4447
|
"access": "private",
|
|
4448
4448
|
"tagname": "",
|
|
4449
4449
|
"itemtype": "property",
|
|
@@ -4455,7 +4455,7 @@
|
|
|
4455
4455
|
},
|
|
4456
4456
|
{
|
|
4457
4457
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4458
|
-
"line":
|
|
4458
|
+
"line": 102,
|
|
4459
4459
|
"access": "private",
|
|
4460
4460
|
"tagname": "",
|
|
4461
4461
|
"itemtype": "property",
|
|
@@ -4466,7 +4466,7 @@
|
|
|
4466
4466
|
},
|
|
4467
4467
|
{
|
|
4468
4468
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4469
|
-
"line":
|
|
4469
|
+
"line": 108,
|
|
4470
4470
|
"access": "private",
|
|
4471
4471
|
"tagname": "",
|
|
4472
4472
|
"itemtype": "property",
|
|
@@ -4477,7 +4477,7 @@
|
|
|
4477
4477
|
},
|
|
4478
4478
|
{
|
|
4479
4479
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4480
|
-
"line":
|
|
4480
|
+
"line": 114,
|
|
4481
4481
|
"description": "Given a fullName return a corresponding instance.\n The default behavior is for lookup to return a singleton instance.\nThe singleton is scoped to the container, allowing multiple containers\nto all have their own locally scoped singletons.\n ```javascript\nlet registry = new Registry();\nlet container = registry.container();\n registry.register('api:twitter', Twitter);\n let twitter = container.lookup('api:twitter');\n twitter instanceof Twitter; // => true\n // by default the container will return singletons\nlet twitter2 = container.lookup('api:twitter');\ntwitter2 instanceof Twitter; // => true\n twitter === twitter2; //=> true\n```\n If singletons are not wanted, an optional flag can be provided at lookup.\n ```javascript\nlet registry = new Registry();\nlet container = registry.container();\n registry.register('api:twitter', Twitter);\n let twitter = container.lookup('api:twitter', { singleton: false });\nlet twitter2 = container.lookup('api:twitter', { singleton: false });\n twitter === twitter2; //=> false\n```",
|
|
4482
4482
|
"access": "private",
|
|
4483
4483
|
"tagname": "",
|
|
@@ -4513,7 +4513,7 @@
|
|
|
4513
4513
|
},
|
|
4514
4514
|
{
|
|
4515
4515
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4516
|
-
"line":
|
|
4516
|
+
"line": 154,
|
|
4517
4517
|
"description": "A depth first traversal, destroying the container, its descendant containers and all\ntheir managed objects.",
|
|
4518
4518
|
"access": "private",
|
|
4519
4519
|
"tagname": "",
|
|
@@ -4524,7 +4524,7 @@
|
|
|
4524
4524
|
},
|
|
4525
4525
|
{
|
|
4526
4526
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4527
|
-
"line":
|
|
4527
|
+
"line": 171,
|
|
4528
4528
|
"description": "Clear either the entire cache or just the cache for a particular key.",
|
|
4529
4529
|
"access": "private",
|
|
4530
4530
|
"tagname": "",
|
|
@@ -4542,7 +4542,7 @@
|
|
|
4542
4542
|
},
|
|
4543
4543
|
{
|
|
4544
4544
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4545
|
-
"line":
|
|
4545
|
+
"line": 188,
|
|
4546
4546
|
"description": "Returns an object that can be used to provide an owner to a\nmanually created instance.",
|
|
4547
4547
|
"access": "private",
|
|
4548
4548
|
"tagname": "",
|
|
@@ -4557,7 +4557,7 @@
|
|
|
4557
4557
|
},
|
|
4558
4558
|
{
|
|
4559
4559
|
"file": "packages/@ember/-internals/container/lib/container.ts",
|
|
4560
|
-
"line":
|
|
4560
|
+
"line": 201,
|
|
4561
4561
|
"description": "Given a fullName, return the corresponding factory. The consumer of the factory\nis responsible for the destruction of any factory instances, as there is no\nway for the container to ensure instances are destroyed when it itself is\ndestroyed.",
|
|
4562
4562
|
"access": "public",
|
|
4563
4563
|
"tagname": "",
|
|
@@ -18411,7 +18411,7 @@
|
|
|
18411
18411
|
"warnings": [
|
|
18412
18412
|
{
|
|
18413
18413
|
"message": "replacing incorrect tag: returns with return",
|
|
18414
|
-
"line": " packages/@ember/-internals/container/lib/container.ts:
|
|
18414
|
+
"line": " packages/@ember/-internals/container/lib/container.ts:188"
|
|
18415
18415
|
},
|
|
18416
18416
|
{
|
|
18417
18417
|
"message": "unknown tag: internal",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "4.3.0-alpha.
|
|
3
|
+
"version": "4.3.0-alpha.4",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
"ember-cli-version-checker": "^5.1.2",
|
|
70
70
|
"ember-router-generator": "^2.0.0",
|
|
71
71
|
"inflection": "^1.13.1",
|
|
72
|
-
"resolve": "^1.
|
|
72
|
+
"resolve": "^1.22.0",
|
|
73
73
|
"semver": "^7.3.4",
|
|
74
74
|
"silent-error": "^1.1.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@babel/preset-env": "^7.
|
|
77
|
+
"@babel/preset-env": "^7.16.11",
|
|
78
78
|
"@glimmer/compiler": "0.83.1",
|
|
79
79
|
"@glimmer/destroyable": "0.83.1",
|
|
80
80
|
"@glimmer/env": "^0.1.7",
|
|
@@ -89,12 +89,12 @@
|
|
|
89
89
|
"@glimmer/runtime": "0.83.1",
|
|
90
90
|
"@glimmer/validator": "0.83.1",
|
|
91
91
|
"@simple-dom/document": "^1.4.0",
|
|
92
|
-
"@types/qunit": "^2.11.
|
|
92
|
+
"@types/qunit": "^2.11.3",
|
|
93
93
|
"@types/rsvp": "^4.0.4",
|
|
94
94
|
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
|
95
95
|
"@typescript-eslint/parser": "^5.10.0",
|
|
96
|
-
"auto-dist-tag": "^1.
|
|
97
|
-
"aws-sdk": "^2.
|
|
96
|
+
"auto-dist-tag": "^2.1.1",
|
|
97
|
+
"aws-sdk": "^2.1066.0",
|
|
98
98
|
"babel-template": "^6.26.0",
|
|
99
99
|
"backburner.js": "^2.7.0",
|
|
100
100
|
"broccoli-babel-transpiler": "^7.8.0",
|
|
@@ -103,12 +103,12 @@
|
|
|
103
103
|
"broccoli-rollup": "^2.1.1",
|
|
104
104
|
"broccoli-source": "^3.0.1",
|
|
105
105
|
"broccoli-string-replace": "^0.1.2",
|
|
106
|
-
"broccoli-typescript-compiler": "^
|
|
106
|
+
"broccoli-typescript-compiler": "^8.0.0",
|
|
107
107
|
"broccoli-uglify-sourcemap": "^4.0.0",
|
|
108
108
|
"common-tags": "^1.8.2",
|
|
109
109
|
"core-js": "^2.6.5",
|
|
110
110
|
"dag-map": "^2.0.2",
|
|
111
|
-
"ember-cli": "^4.1.
|
|
111
|
+
"ember-cli": "^4.1.1",
|
|
112
112
|
"ember-cli-blueprint-test-helpers": "^0.19.2",
|
|
113
113
|
"ember-cli-browserstack": "^2.0.1",
|
|
114
114
|
"ember-cli-dependency-checker": "^3.2.0",
|
|
@@ -127,14 +127,14 @@
|
|
|
127
127
|
"expect-type": "^0.13.0",
|
|
128
128
|
"express": "^4.17.1",
|
|
129
129
|
"finalhandler": "^1.1.2",
|
|
130
|
-
"fs-extra": "^
|
|
130
|
+
"fs-extra": "^10.0.0",
|
|
131
131
|
"git-repo-info": "^2.1.1",
|
|
132
132
|
"github": "^0.2.3",
|
|
133
133
|
"glob": "^7.2.0",
|
|
134
134
|
"html-differ": "^1.4.0",
|
|
135
135
|
"lodash.uniq": "^4.5.0",
|
|
136
136
|
"mkdirp": "^1.0.4",
|
|
137
|
-
"mocha": "^
|
|
137
|
+
"mocha": "^9.2.0",
|
|
138
138
|
"npm-run-all": "^4.1.5",
|
|
139
139
|
"prettier": "^2.1.2",
|
|
140
140
|
"puppeteer": "^3.0.4",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"serve-static": "^1.14.1",
|
|
148
148
|
"simple-dom": "^1.4.0",
|
|
149
149
|
"testem": "^3.6.0",
|
|
150
|
-
"testem-failure-only-reporter": "^0.0
|
|
150
|
+
"testem-failure-only-reporter": "^1.0.0",
|
|
151
151
|
"typescript": "^4.5.4"
|
|
152
152
|
},
|
|
153
153
|
"engines": {
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"ember-addon": {
|
|
157
157
|
"after": "ember-cli-legacy-blueprints"
|
|
158
158
|
},
|
|
159
|
-
"_originalVersion": "4.3.0-alpha.
|
|
159
|
+
"_originalVersion": "4.3.0-alpha.4",
|
|
160
160
|
"_versionPreviouslyCalculated": true,
|
|
161
161
|
"publishConfig": {
|
|
162
162
|
"tag": "alpha"
|