ember-source 5.6.0-beta.1 → 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 +2 -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 +24 -20
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +34 -8
- 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 +1 -1
- package/lib/index.js +1 -1
- package/package.json +3 -3
- package/types/stable/@ember/template-compilation/index.d.ts +8 -12
- package/types/stable/@ember/test/index.d.ts +1 -1
- /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
package/dist/header/license.js
CHANGED
|
@@ -6,6 +6,7 @@ import { assert, warn, debugFreeze, inspect, deprecate } from '@ember/debug';
|
|
|
6
6
|
import { action as action$1 } from '@ember/object';
|
|
7
7
|
import { valueForRef, isConstRef, createConstRef, isUpdatableRef, updateRef, createPrimitiveRef, childRefFor, createComputeRef, childRefFromParts, isInvokableRef, createUnboundRef, createInvokableRef, createReadOnlyRef, createDebugAliasRef, UNDEFINED_REFERENCE } from '@glimmer/reference';
|
|
8
8
|
import { untrack, createCache, consumeTag, tagFor, getValue, valueForTag, beginUntrackFrame, endUntrackFrame, beginTrackFrame, endTrackFrame, validateTag, createTag, dirtyTag, CONSTANT_TAG, isTracking, debug, createUpdatableTag, CURRENT_TAG } from '@glimmer/validator';
|
|
9
|
+
import { on } from '@ember/modifier';
|
|
9
10
|
import { tracked, get, PROPERTY_DID_CHANGE, tagForObject, objectAt, tagForProperty, _getProp, _setProp, set } from '@ember/-internals/metal';
|
|
10
11
|
import { setOwner, getOwner, isFactory } from '@ember/-internals/owner';
|
|
11
12
|
import { guidFor, enumerableSymbol, getDebugName, isProxy, isObject, uuid } from '@ember/-internals/utils';
|
|
@@ -17,7 +18,7 @@ import { flaggedInstrument, _instrumentStart } from '@ember/instrumentation';
|
|
|
17
18
|
import { service } from '@ember/service';
|
|
18
19
|
import { DEBUG } from '@glimmer/env';
|
|
19
20
|
import { TargetActionSupport, _contentFor } from '@ember/-internals/runtime';
|
|
20
|
-
import { reifyPositional, normalizeProperty, EMPTY_ARGS, createCapturedArgs, EMPTY_POSITIONAL, curry, templateOnlyComponent, TEMPLATE_ONLY_COMPONENT_MANAGER, hash, array, concat, fn, get as get$1, on, runtimeContext, DOMTreeConstruction, DOMChanges, clientBuilder, inTransaction, renderMain, rehydrationBuilder } from '@glimmer/runtime';
|
|
21
|
+
import { reifyPositional, normalizeProperty, EMPTY_ARGS, createCapturedArgs, EMPTY_POSITIONAL, curry, templateOnlyComponent, TEMPLATE_ONLY_COMPONENT_MANAGER, hash, array, concat, fn, get as get$1, on as on$1, runtimeContext, DOMTreeConstruction, DOMChanges, clientBuilder, inTransaction, renderMain, rehydrationBuilder } from '@glimmer/runtime';
|
|
21
22
|
export { DOMChanges, DOMTreeConstruction, isSerializationFirstNode } from '@glimmer/runtime';
|
|
22
23
|
import { unwrapTemplate, EMPTY_ARRAY as EMPTY_ARRAY$1, dict } from '@glimmer/util';
|
|
23
24
|
import { dasherize } from '@ember/-internals/string';
|
|
@@ -38,7 +39,8 @@ import { isArray } from '@ember/array';
|
|
|
38
39
|
import { generateControllerFactory } from '@ember/routing/-internals';
|
|
39
40
|
|
|
40
41
|
var RootTemplate = precompileTemplate(`{{component this}}`, {
|
|
41
|
-
moduleName: 'packages/@ember/-internals/glimmer/lib/templates/root.hbs'
|
|
42
|
+
moduleName: 'packages/@ember/-internals/glimmer/lib/templates/root.hbs',
|
|
43
|
+
strictMode: true
|
|
42
44
|
});
|
|
43
45
|
|
|
44
46
|
var InputTemplate = precompileTemplate(`<input
|
|
@@ -58,7 +60,13 @@ var InputTemplate = precompileTemplate(`<input
|
|
|
58
60
|
{{on "paste" this.valueDidChange}}
|
|
59
61
|
{{on "cut" this.valueDidChange}}
|
|
60
62
|
/>`, {
|
|
61
|
-
moduleName: 'packages/@ember/-internals/glimmer/lib/templates/input.hbs'
|
|
63
|
+
moduleName: 'packages/@ember/-internals/glimmer/lib/templates/input.hbs',
|
|
64
|
+
strictMode: true,
|
|
65
|
+
scope() {
|
|
66
|
+
return {
|
|
67
|
+
on
|
|
68
|
+
};
|
|
69
|
+
}
|
|
62
70
|
});
|
|
63
71
|
|
|
64
72
|
function NOOP$2() {}
|
|
@@ -567,7 +575,13 @@ var LinkToTemplate = precompileTemplate(`<a
|
|
|
567
575
|
|
|
568
576
|
{{on 'click' this.click}}
|
|
569
577
|
>{{yield}}</a>`, {
|
|
570
|
-
moduleName: 'packages/@ember/-internals/glimmer/lib/templates/link-to.hbs'
|
|
578
|
+
moduleName: 'packages/@ember/-internals/glimmer/lib/templates/link-to.hbs',
|
|
579
|
+
strictMode: true,
|
|
580
|
+
scope() {
|
|
581
|
+
return {
|
|
582
|
+
on
|
|
583
|
+
};
|
|
584
|
+
}
|
|
571
585
|
});
|
|
572
586
|
|
|
573
587
|
var __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -1148,7 +1162,13 @@ var TextareaTemplate = precompileTemplate(`<textarea
|
|
|
1148
1162
|
{{on "paste" this.valueDidChange}}
|
|
1149
1163
|
{{on "cut" this.valueDidChange}}
|
|
1150
1164
|
/>`, {
|
|
1151
|
-
moduleName: 'packages/@ember/-internals/glimmer/lib/templates/textarea.hbs'
|
|
1165
|
+
moduleName: 'packages/@ember/-internals/glimmer/lib/templates/textarea.hbs',
|
|
1166
|
+
strictMode: true,
|
|
1167
|
+
scope() {
|
|
1168
|
+
return {
|
|
1169
|
+
on
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1152
1172
|
});
|
|
1153
1173
|
|
|
1154
1174
|
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -4400,7 +4420,7 @@ const BUILTIN_KEYWORD_MODIFIERS = {
|
|
|
4400
4420
|
};
|
|
4401
4421
|
const BUILTIN_MODIFIERS = {
|
|
4402
4422
|
...BUILTIN_KEYWORD_MODIFIERS,
|
|
4403
|
-
on
|
|
4423
|
+
on: on$1
|
|
4404
4424
|
};
|
|
4405
4425
|
const CLASSIC_HELPER_MANAGER_ASSOCIATED = new WeakSet();
|
|
4406
4426
|
class ResolverImpl {
|
|
@@ -5002,8 +5022,14 @@ function setTemplate(name, template) {
|
|
|
5002
5022
|
return TEMPLATES[name] = template;
|
|
5003
5023
|
}
|
|
5004
5024
|
|
|
5005
|
-
var OutletTemplate = precompileTemplate(`{{component (
|
|
5006
|
-
moduleName: 'packages/@ember/-internals/glimmer/lib/templates/outlet.hbs'
|
|
5025
|
+
var OutletTemplate = precompileTemplate(`{{component (outletHelper)}}`, {
|
|
5026
|
+
moduleName: 'packages/@ember/-internals/glimmer/lib/templates/outlet.hbs',
|
|
5027
|
+
strictMode: true,
|
|
5028
|
+
scope() {
|
|
5029
|
+
return {
|
|
5030
|
+
outletHelper
|
|
5031
|
+
};
|
|
5032
|
+
}
|
|
5007
5033
|
});
|
|
5008
5034
|
|
|
5009
5035
|
function setupApplicationRegistry(registry) {
|
|
@@ -12,7 +12,7 @@ registerHelper = testingNotAvailableMessage;
|
|
|
12
12
|
registerWaiter = testingNotAvailableMessage;
|
|
13
13
|
unregisterHelper = testingNotAvailableMessage;
|
|
14
14
|
unregisterWaiter = testingNotAvailableMessage;
|
|
15
|
-
export function
|
|
15
|
+
export function registerTestImplementation(impl) {
|
|
16
16
|
let {
|
|
17
17
|
Test
|
|
18
18
|
} = impl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "5.6.0-beta.
|
|
1
|
+
export default "5.6.0-beta.2";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './lib/public-api';
|
|
2
2
|
import * as EmberTesting from './lib/public-api';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { registerTestImplementation } from '@ember/test';
|
|
4
|
+
registerTestImplementation(EmberTesting);
|
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": "5.6.0-beta.
|
|
6
|
+
"version": "5.6.0-beta.2"
|
|
7
7
|
},
|
|
8
8
|
"files": {
|
|
9
9
|
"node_modules/rsvp/lib/rsvp/promise/all.js": {
|
package/lib/index.js
CHANGED
|
@@ -166,7 +166,7 @@ module.exports = {
|
|
|
166
166
|
plugins: [
|
|
167
167
|
babelHelperPlugin,
|
|
168
168
|
buildDebugMacroPlugin(!isProduction),
|
|
169
|
-
['babel-plugin-ember-template-compilation', { compilerPath }],
|
|
169
|
+
[require.resolve('babel-plugin-ember-template-compilation'), { compilerPath }],
|
|
170
170
|
...vmBabelPlugins({ isDebug: !isProduction }),
|
|
171
171
|
],
|
|
172
172
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-source",
|
|
3
|
-
"version": "5.6.0-beta.
|
|
3
|
+
"version": "5.6.0-beta.2",
|
|
4
4
|
"description": "A JavaScript framework for creating ambitious web applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"@glimmer/vm-babel-plugins": "0.85.13",
|
|
77
77
|
"@simple-dom/interface": "^1.4.0",
|
|
78
78
|
"babel-plugin-debug-macros": "^0.3.4",
|
|
79
|
+
"babel-plugin-ember-template-compilation": "^2.1.1",
|
|
79
80
|
"babel-plugin-filter-imports": "^4.0.0",
|
|
80
81
|
"backburner.js": "^2.8.0",
|
|
81
82
|
"broccoli-concat": "^4.2.5",
|
|
@@ -120,7 +121,6 @@
|
|
|
120
121
|
"@typescript-eslint/parser": "^5.62.0",
|
|
121
122
|
"ast-types": "^0.14.2",
|
|
122
123
|
"auto-dist-tag": "^2.1.1",
|
|
123
|
-
"babel-plugin-ember-template-compilation": "^2.1.1",
|
|
124
124
|
"babel-template": "^6.26.0",
|
|
125
125
|
"broccoli-babel-transpiler": "^7.8.1",
|
|
126
126
|
"broccoli-persistent-filter": "^2.3.1",
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
"node": "16.20.0",
|
|
203
203
|
"pnpm": "8.10.0"
|
|
204
204
|
},
|
|
205
|
-
"_originalVersion": "5.6.0-beta.
|
|
205
|
+
"_originalVersion": "5.6.0-beta.2",
|
|
206
206
|
"_versionPreviouslyCalculated": true,
|
|
207
207
|
"publishConfig": {
|
|
208
208
|
"tag": "beta"
|
|
@@ -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
|
}
|
|
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
|