ember-source 6.1.0-alpha.4 → 6.1.0-alpha.6

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.
Files changed (114) hide show
  1. package/build-metadata.json +3 -3
  2. package/dist/ember-template-compiler.js +193 -106
  3. package/dist/ember-testing.js +1 -1
  4. package/dist/ember.debug.js +54 -53
  5. package/dist/ember.prod.js +60 -59
  6. package/dist/packages/@ember/-internals/glimmer/index.js +2 -2
  7. package/dist/packages/@ember/-internals/routing/index.js +2 -2
  8. package/dist/packages/@ember/-internals/runtime/index.js +1 -1
  9. package/dist/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
  10. package/dist/packages/@ember/application/index.js +4 -4
  11. package/dist/packages/@ember/application/instance.js +1 -1
  12. package/dist/packages/@ember/component/helper.js +1 -1
  13. package/dist/packages/@ember/component/index.js +1 -1
  14. package/dist/packages/@ember/engine/index.js +4 -4
  15. package/dist/packages/@ember/engine/instance.js +1 -1
  16. package/dist/packages/@ember/helper/index.js +1 -1
  17. package/dist/packages/@ember/modifier/index.js +1 -1
  18. package/dist/packages/@ember/renderer/index.js +1 -1
  19. package/dist/packages/@ember/routing/index.js +1 -1
  20. package/dist/packages/@ember/routing/lib/utils.js +2 -2
  21. package/dist/packages/@ember/routing/route.js +3 -3
  22. package/dist/packages/@ember/routing/router.js +3 -3
  23. package/dist/packages/@ember/template/index.js +1 -1
  24. package/dist/packages/@ember/template-compiler/-internal-primitives.js +1 -0
  25. package/dist/packages/@ember/template-compiler/-internal-utils.js +1 -0
  26. package/dist/packages/@ember/template-compiler/index.js +1 -0
  27. package/dist/packages/@ember/template-compiler/lib/-internal/primitives.js +1 -0
  28. package/dist/packages/@ember/template-compiler/lib/compile-options.js +106 -0
  29. package/dist/packages/@ember/template-compiler/lib/dasherize-component-name.js +21 -0
  30. package/dist/packages/@ember/template-compiler/lib/plugins/assert-against-attrs.js +52 -0
  31. package/dist/packages/@ember/template-compiler/lib/plugins/assert-against-named-outlets.js +27 -0
  32. package/dist/packages/@ember/template-compiler/lib/plugins/assert-input-helper-without-block.js +31 -0
  33. package/dist/packages/@ember/template-compiler/lib/plugins/assert-reserved-named-arguments.js +51 -0
  34. package/dist/packages/@ember/template-compiler/lib/plugins/index.js +40 -0
  35. package/dist/packages/@ember/template-compiler/lib/plugins/transform-action-syntax.js +65 -0
  36. package/dist/packages/@ember/template-compiler/lib/plugins/transform-each-in-into-each.js +51 -0
  37. package/dist/packages/@ember/template-compiler/lib/plugins/transform-each-track-array.js +33 -0
  38. package/dist/packages/@ember/template-compiler/lib/plugins/transform-in-element.js +33 -0
  39. package/dist/packages/@ember/template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.js +37 -0
  40. package/dist/packages/@ember/template-compiler/lib/plugins/transform-resolutions.js +6 -0
  41. package/dist/packages/@ember/template-compiler/lib/plugins/transform-wrap-mount-and-outlet.js +57 -0
  42. package/dist/packages/@ember/template-compiler/lib/plugins/utils.js +52 -0
  43. package/dist/packages/@ember/template-compiler/lib/public-api.js +1 -0
  44. package/dist/packages/@ember/template-compiler/lib/runtime.js +1 -0
  45. package/dist/packages/@ember/template-compiler/lib/system/calculate-location-display.js +28 -0
  46. package/dist/packages/@ember/template-compiler/lib/template.js +2158 -0
  47. package/dist/packages/@ember/template-compiler/runtime.js +1 -0
  48. package/dist/packages/@glimmer/opcode-compiler/index.js +1 -1
  49. package/dist/packages/@glimmer/runtime/index.js +1 -1
  50. package/dist/packages/ember/barrel.js +12 -11
  51. package/dist/packages/ember/version.js +1 -1
  52. package/dist/packages/ember-testing/lib/ext/rsvp.js +1 -1
  53. package/dist/packages/ember-testing/lib/helpers/current_path.js +2 -2
  54. package/dist/packages/ember-testing/lib/helpers/current_route_name.js +2 -2
  55. package/dist/packages/ember-testing/lib/helpers/pause_test.js +1 -1
  56. package/dist/packages/ember-testing/lib/helpers/wait.js +1 -1
  57. package/dist/packages/ember-testing/lib/initializers.js +3 -3
  58. package/dist/packages/ember-testing/lib/test/promise.js +1 -1
  59. package/dist/packages/router_js/index.js +2 -2
  60. package/dist/packages/rsvp/index.js +1 -1
  61. package/dist/packages/shared-chunks/{index-aNnE3pXR.js → index-DY343flI.js} +3 -3
  62. package/dist/packages/shared-chunks/{router-DrLZsJeE.js → router-DzoGfa3Y.js} +2 -2
  63. package/dist/packages/shared-chunks/{rsvp-DaQAFb0W.js → rsvp-ziM3qQyS.js} +25 -26
  64. package/dist/packages/shared-chunks/{setup-registry-MiB1DeH5.js → setup-registry-Dv4lHUt7.js} +1 -1
  65. package/dist/packages/shared-chunks/transform-resolutions-C5E6h6P-.js +9830 -0
  66. package/dist/packages/shared-chunks/{unrecognized-url-error-zpz-JEoG.js → unrecognized-url-error-DqWaSb4F.js} +6 -5
  67. package/docs/data.json +308 -24
  68. package/package.json +28 -4
  69. package/types/publish.mjs +12 -2
  70. package/types/stable/@ember/template-compiler/-internal-primitives.d.ts +3 -0
  71. package/types/stable/@ember/template-compiler/-internal-utils.d.ts +3 -0
  72. package/types/stable/@ember/template-compiler/index.d.ts +3 -0
  73. package/types/stable/@ember/template-compiler/lib/-internal/primitives.d.ts +8 -0
  74. package/types/stable/@ember/template-compiler/lib/compile-options.d.ts +6 -0
  75. package/types/stable/@ember/template-compiler/lib/dasherize-component-name.d.ts +5 -0
  76. package/types/stable/@ember/template-compiler/lib/plugins/assert-against-attrs.d.ts +20 -0
  77. package/types/stable/@ember/template-compiler/lib/plugins/assert-against-named-outlets.d.ts +14 -0
  78. package/types/stable/@ember/template-compiler/lib/plugins/assert-input-helper-without-block.d.ts +5 -0
  79. package/types/stable/@ember/template-compiler/lib/plugins/assert-reserved-named-arguments.d.ts +5 -0
  80. package/types/stable/@ember/template-compiler/lib/plugins/index.d.ts +29 -0
  81. package/types/stable/@ember/template-compiler/lib/plugins/transform-action-syntax.d.ts +28 -0
  82. package/types/stable/@ember/template-compiler/lib/plugins/transform-each-in-into-each.d.ts +24 -0
  83. package/types/stable/@ember/template-compiler/lib/plugins/transform-each-track-array.d.ts +24 -0
  84. package/types/stable/@ember/template-compiler/lib/plugins/transform-in-element.d.ts +22 -0
  85. package/types/stable/@ember/template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.d.ts +4 -0
  86. package/types/stable/@ember/template-compiler/lib/plugins/transform-resolutions.d.ts +5 -0
  87. package/types/stable/@ember/template-compiler/lib/plugins/transform-wrap-mount-and-outlet.d.ts +36 -0
  88. package/types/stable/@ember/template-compiler/lib/plugins/utils.d.ts +28 -0
  89. package/types/stable/@ember/template-compiler/lib/public-api.d.ts +4 -0
  90. package/types/stable/@ember/template-compiler/lib/public-types.d.ts +11 -0
  91. package/types/stable/@ember/template-compiler/lib/runtime.d.ts +3 -0
  92. package/types/stable/@ember/template-compiler/lib/system/calculate-location-display.d.ts +7 -0
  93. package/types/stable/@ember/template-compiler/lib/template.d.ts +217 -0
  94. package/types/stable/@ember/template-compiler/lib/types.d.ts +51 -0
  95. package/types/stable/@ember/template-compiler/runtime.d.ts +3 -0
  96. package/types/stable/ember/barrel.d.ts +3 -1
  97. package/types/stable/ember/index.d.ts +3 -1
  98. package/types/stable/ember-template-compiler/lib/-internal.d.ts +3 -0
  99. package/types/stable/ember-template-compiler/lib/plugins/assert-against-attrs.d.ts +2 -18
  100. package/types/stable/ember-template-compiler/lib/plugins/assert-against-named-outlets.d.ts +2 -12
  101. package/types/stable/ember-template-compiler/lib/plugins/assert-input-helper-without-block.d.ts +2 -3
  102. package/types/stable/ember-template-compiler/lib/plugins/assert-reserved-named-arguments.d.ts +2 -3
  103. package/types/stable/ember-template-compiler/lib/plugins/index.d.ts +15 -3
  104. package/types/stable/ember-template-compiler/lib/plugins/transform-action-syntax.d.ts +2 -26
  105. package/types/stable/ember-template-compiler/lib/plugins/transform-each-in-into-each.d.ts +2 -22
  106. package/types/stable/ember-template-compiler/lib/plugins/transform-each-track-array.d.ts +2 -22
  107. package/types/stable/ember-template-compiler/lib/plugins/transform-in-element.d.ts +2 -20
  108. package/types/stable/ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.d.ts +2 -2
  109. package/types/stable/ember-template-compiler/lib/plugins/transform-resolutions.d.ts +2 -3
  110. package/types/stable/ember-template-compiler/lib/plugins/transform-wrap-mount-and-outlet.d.ts +2 -34
  111. package/types/stable/ember-template-compiler/lib/plugins/utils.d.ts +1 -27
  112. package/types/stable/ember-template-compiler/lib/public-api.d.ts +1 -1
  113. package/types/stable/index.d.ts +27 -1
  114. package/types/stable/@ember/-internals/glimmer/lib/glimmer-component-docs.d.ts +0 -388
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "6.1.0-alpha.4",
2
+ "version": "6.1.0-alpha.6",
3
3
  "buildType": "tag",
4
- "SHA": "13d4340cd7596f95e42241ad5ec833dd8870f433",
5
- "assetPath": "/tag/shas/13d4340cd7596f95e42241ad5ec833dd8870f433.tgz"
4
+ "SHA": "f1ff3a47fe34d727c7907e1881148331e7f8938c",
5
+ "assetPath": "/tag/shas/f1ff3a47fe34d727c7907e1881148331e7f8938c.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.1.0-alpha.4
8
+ * @version 6.1.0-alpha.6
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */
@@ -12976,13 +12976,13 @@ var define, require;
12976
12976
  params = null,
12977
12977
  hash = null,
12978
12978
  blockParams = null;
12979
- return 2 === statement.length ? blocks = normalizeBlocks(statement[1]) : 3 === statement.length ? (Array.isArray(statement[1]) ? params = normalizeParams(statement[1]) : ({
12979
+ return 2 === statement.length ? blocks = normalizeBlocks(statement[1]) : 3 === statement.length ? (Array.isArray(statement[1]) ? params = normalizeParams(statement[1]) : {
12980
12980
  hash: hash,
12981
12981
  blockParams: blockParams
12982
- } = normalizeBlockHash(statement[1])), blocks = normalizeBlocks(statement[2])) : 4 === statement.length && (params = normalizeParams(statement[1]), ({
12982
+ } = normalizeBlockHash(statement[1]), blocks = normalizeBlocks(statement[2])) : 4 === statement.length && (params = normalizeParams(statement[1]), {
12983
12983
  hash: hash,
12984
12984
  blockParams: blockParams
12985
- } = normalizeBlockHash(statement[2])), blocks = normalizeBlocks(statement[3])), {
12985
+ } = normalizeBlockHash(statement[2]), blocks = normalizeBlocks(statement[3])), {
12986
12986
  head: extractBlockHead(head),
12987
12987
  params: params,
12988
12988
  hash: hash,
@@ -15651,14 +15651,14 @@ 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.1.0-alpha.4';
15654
+ const version = '6.1.0-alpha.6';
15655
15655
 
15656
15656
  const emberVersion = /*#__PURE__*/Object.defineProperty({
15657
15657
  __proto__: null,
15658
15658
  default: version
15659
15659
  }, Symbol.toStringTag, { value: 'Module' });
15660
15660
 
15661
- function calculateLocationDisplay(moduleName, loc) {
15661
+ function calculateLocationDisplay$1(moduleName, loc) {
15662
15662
  let moduleInfo = '';
15663
15663
  if (moduleName) {
15664
15664
  moduleInfo += `'${moduleName}' `;
@@ -15685,20 +15685,15 @@ var define, require;
15685
15685
  return moduleInfo;
15686
15686
  }
15687
15687
 
15688
- const emberTemplateCompilerLibSystemCalculateLocationDisplay = /*#__PURE__*/Object.defineProperty({
15689
- __proto__: null,
15690
- default: calculateLocationDisplay
15691
- }, Symbol.toStringTag, { value: 'Module' });
15692
-
15693
15688
  function isPath(node) {
15694
15689
  return node.type === 'PathExpression';
15695
15690
  }
15696
- function isSubExpression(node) {
15697
- return node.type === 'SubExpression';
15698
- }
15699
15691
  function isStringLiteral(node) {
15700
15692
  return node.type === 'StringLiteral';
15701
15693
  }
15694
+ function inScope(env, name) {
15695
+ return Boolean(env.lexicalScope?.(name));
15696
+ }
15702
15697
  function getLocalName(node) {
15703
15698
  if (typeof node === 'string') {
15704
15699
  return node;
@@ -15706,9 +15701,6 @@ var define, require;
15706
15701
  return node.original;
15707
15702
  }
15708
15703
  }
15709
- function inScope(env, name) {
15710
- return Boolean(env.lexicalScope?.(name));
15711
- }
15712
15704
  function trackLocals(env) {
15713
15705
  let locals = new Map();
15714
15706
  let node = {
@@ -15744,15 +15736,6 @@ var define, require;
15744
15736
  };
15745
15737
  }
15746
15738
 
15747
- const emberTemplateCompilerLibPluginsUtils = /*#__PURE__*/Object.defineProperty({
15748
- __proto__: null,
15749
- inScope,
15750
- isPath,
15751
- isStringLiteral,
15752
- isSubExpression,
15753
- trackLocals
15754
- }, Symbol.toStringTag, { value: 'Module' });
15755
-
15756
15739
  /**
15757
15740
  @module ember
15758
15741
  */
@@ -15785,14 +15768,14 @@ var define, require;
15785
15768
  ...visitor,
15786
15769
  PathExpression(node) {
15787
15770
  if (isAttrs(node, hasLocal)) {
15788
- (assert(`Using {{attrs}} to reference named arguments is not supported. {{${node.original}}} should be updated to {{@${node.original.slice(6)}}}. ${calculateLocationDisplay(moduleName, node.loc)}`));
15771
+ (assert(`Using {{attrs}} to reference named arguments is not supported. {{${node.original}}} should be updated to {{@${node.original.slice(6)}}}. ${calculateLocationDisplay$1(moduleName, node.loc)}`));
15789
15772
  } else if (isThisDotAttrs(node)) {
15790
15773
  // When removing this, ensure `{{this.attrs.foo}}` is left as-is, without triggering
15791
15774
  // any assertions/deprecations. It's perfectly legal to reference `{{this.attrs.foo}}`
15792
15775
  // in the template since it is a real property on the backing class – it will give you
15793
15776
  // a `MutableCell` wrapper object, but maybe that's what you want. And in any case,
15794
15777
  // there is no compelling to special case that property access.
15795
- (deprecate(`Using {{this.attrs}} to reference named arguments has been deprecated. {{${node.original}}} should be updated to {{@${node.original.slice(11)}}}. ${calculateLocationDisplay(moduleName, node.loc)}`, false, {
15778
+ (deprecate(`Using {{this.attrs}} to reference named arguments has been deprecated. {{${node.original}}} should be updated to {{@${node.original.slice(11)}}}. ${calculateLocationDisplay$1(moduleName, node.loc)}`, false, {
15796
15779
  id: 'attrs-arg-access',
15797
15780
  url: 'https://deprecations.emberjs.com/v3.x/#toc_attrs-arg-access',
15798
15781
  until: '6.0.0',
@@ -15815,11 +15798,6 @@ var define, require;
15815
15798
  return node.head.type === 'ThisHead' && node.tail[0] === 'attrs';
15816
15799
  }
15817
15800
 
15818
- const emberTemplateCompilerLibPluginsAssertAgainstAttrs = /*#__PURE__*/Object.defineProperty({
15819
- __proto__: null,
15820
- default: assertAgainstAttrs
15821
- }, Symbol.toStringTag, { value: 'Module' });
15822
-
15823
15801
  /**
15824
15802
  @module ember
15825
15803
  */
@@ -15842,7 +15820,7 @@ var define, require;
15842
15820
  ...visitor,
15843
15821
  MustacheStatement(node) {
15844
15822
  if (node.path.type === 'PathExpression' && node.path.original === 'outlet' && node.params[0] && !hasLocal('outlet')) {
15845
- let sourceInformation = calculateLocationDisplay(moduleName, node.loc);
15823
+ let sourceInformation = calculateLocationDisplay$1(moduleName, node.loc);
15846
15824
  (assert(`Named outlets were removed in Ember 4.0. See https://deprecations.emberjs.com/v3.x#toc_route-render-template for guidance on alternative APIs for named outlet use cases. ${sourceInformation}`));
15847
15825
  }
15848
15826
  }
@@ -15850,11 +15828,6 @@ var define, require;
15850
15828
  };
15851
15829
  }
15852
15830
 
15853
- const emberTemplateCompilerLibPluginsAssertAgainstNamedOutlets = /*#__PURE__*/Object.defineProperty({
15854
- __proto__: null,
15855
- default: assertAgainstNamedOutlets
15856
- }, Symbol.toStringTag, { value: 'Module' });
15857
-
15858
15831
  function errorOnInputWithContent(env) {
15859
15832
  let moduleName = env.meta?.moduleName;
15860
15833
  let {
@@ -15875,15 +15848,10 @@ var define, require;
15875
15848
  };
15876
15849
  }
15877
15850
  function assertMessage$1(moduleName, node) {
15878
- let sourceInformation = calculateLocationDisplay(moduleName, node.loc);
15851
+ let sourceInformation = calculateLocationDisplay$1(moduleName, node.loc);
15879
15852
  return `The {{input}} helper cannot be used in block form. ${sourceInformation}`;
15880
15853
  }
15881
15854
 
15882
- const emberTemplateCompilerLibPluginsAssertInputHelperWithoutBlock = /*#__PURE__*/Object.defineProperty({
15883
- __proto__: null,
15884
- default: errorOnInputWithContent
15885
- }, Symbol.toStringTag, { value: 'Module' });
15886
-
15887
15855
  function assertReservedNamedArguments(env) {
15888
15856
  let moduleName = env.meta?.moduleName;
15889
15857
  return {
@@ -15899,7 +15867,7 @@ var define, require;
15899
15867
  loc
15900
15868
  }) {
15901
15869
  if (name === '@__ARGS__') {
15902
- (assert(`${assertMessage(name)} ${calculateLocationDisplay(moduleName, loc)}`));
15870
+ (assert(`${assertMessage(name)} ${calculateLocationDisplay$1(moduleName, loc)}`));
15903
15871
  }
15904
15872
  },
15905
15873
  HashPair({
@@ -15907,7 +15875,7 @@ var define, require;
15907
15875
  loc
15908
15876
  }) {
15909
15877
  if (key === '__ARGS__') {
15910
- (assert(`${assertMessage(key)} ${calculateLocationDisplay(moduleName, loc)}`));
15878
+ (assert(`${assertMessage(key)} ${calculateLocationDisplay$1(moduleName, loc)}`));
15911
15879
  }
15912
15880
  },
15913
15881
  PathExpression({
@@ -15915,7 +15883,7 @@ var define, require;
15915
15883
  loc
15916
15884
  }) {
15917
15885
  if (isReserved(original)) {
15918
- (assert(`${assertMessage(original)} ${calculateLocationDisplay(moduleName, loc)}`));
15886
+ (assert(`${assertMessage(original)} ${calculateLocationDisplay$1(moduleName, loc)}`));
15919
15887
  }
15920
15888
  }
15921
15889
  }
@@ -15929,11 +15897,6 @@ var define, require;
15929
15897
  return `'${name}' is reserved.`;
15930
15898
  }
15931
15899
 
15932
- const emberTemplateCompilerLibPluginsAssertReservedNamedArguments = /*#__PURE__*/Object.defineProperty({
15933
- __proto__: null,
15934
- default: assertReservedNamedArguments
15935
- }, Symbol.toStringTag, { value: 'Module' });
15936
-
15937
15900
  /**
15938
15901
  @module ember
15939
15902
  */
@@ -15996,11 +15959,6 @@ var define, require;
15996
15959
  node.params.unshift(builders.path('this'));
15997
15960
  }
15998
15961
 
15999
- const emberTemplateCompilerLibPluginsTransformActionSyntax = /*#__PURE__*/Object.defineProperty({
16000
- __proto__: null,
16001
- default: transformActionSyntax
16002
- }, Symbol.toStringTag, { value: 'Module' });
16003
-
16004
15962
  /**
16005
15963
  @module ember
16006
15964
  */
@@ -16049,11 +16007,6 @@ var define, require;
16049
16007
  };
16050
16008
  }
16051
16009
 
16052
- const emberTemplateCompilerLibPluginsTransformEachInIntoEach = /*#__PURE__*/Object.defineProperty({
16053
- __proto__: null,
16054
- default: transformEachInIntoEach
16055
- }, Symbol.toStringTag, { value: 'Module' });
16056
-
16057
16010
  /**
16058
16011
  @module ember
16059
16012
  */
@@ -16101,11 +16054,6 @@ var define, require;
16101
16054
  };
16102
16055
  }
16103
16056
 
16104
- const emberTemplateCompilerLibPluginsTransformEachTrackArray = /*#__PURE__*/Object.defineProperty({
16105
- __proto__: null,
16106
- default: transformEachTrackArray
16107
- }, Symbol.toStringTag, { value: 'Module' });
16108
-
16109
16057
  /**
16110
16058
  @module ember
16111
16059
  */
@@ -16151,12 +16099,7 @@ var define, require;
16151
16099
  };
16152
16100
  }
16153
16101
 
16154
- const emberTemplateCompilerLibPluginsTransformInElement = /*#__PURE__*/Object.defineProperty({
16155
- __proto__: null,
16156
- default: transformInElement
16157
- }, Symbol.toStringTag, { value: 'Module' });
16158
-
16159
- function transformQuotedBindingsIntoJustBindings( /* env */
16102
+ function transformQuotedBindingsIntoJustBindings(/* env */
16160
16103
  ) {
16161
16104
  return {
16162
16105
  name: 'transform-quoted-bindings-into-just-bindings',
@@ -16192,11 +16135,6 @@ var define, require;
16192
16135
  return undefined;
16193
16136
  }
16194
16137
 
16195
- const emberTemplateCompilerLibPluginsTransformQuotedBindingsIntoJustBindings = /*#__PURE__*/Object.defineProperty({
16196
- __proto__: null,
16197
- default: transformQuotedBindingsIntoJustBindings
16198
- }, Symbol.toStringTag, { value: 'Module' });
16199
-
16200
16138
  /**
16201
16139
  @module ember
16202
16140
  */
@@ -16315,19 +16253,14 @@ var define, require;
16315
16253
  }
16316
16254
  function transformParams(b, params, type, moduleName, loc) {
16317
16255
  let [first, ...rest] = params;
16318
- (!(first) && assert(`The ${type} keyword requires at least one positional arguments ${calculateLocationDisplay(moduleName, loc)}`, first));
16256
+ (!(first) && assert(`The ${type} keyword requires at least one positional arguments ${calculateLocationDisplay$1(moduleName, loc)}`, first));
16319
16257
  if (isStringLiteral(first)) {
16320
16258
  return [b.sexpr(b.path('-resolve', first.loc), [b.string(`${type}:${first.value}`)], undefined, first.loc), ...rest];
16321
16259
  } else {
16322
- return [b.sexpr(b.path('-disallow-dynamic-resolution', first.loc), [first], b.hash([b.pair('type', b.string(type), first.loc), b.pair('loc', b.string(calculateLocationDisplay(moduleName, loc)), first.loc), b.pair('original', b.string(build(first)))]), first.loc), ...rest];
16260
+ return [b.sexpr(b.path('-disallow-dynamic-resolution', first.loc), [first], b.hash([b.pair('type', b.string(type), first.loc), b.pair('loc', b.string(calculateLocationDisplay$1(moduleName, loc)), first.loc), b.pair('original', b.string(build(first)))]), first.loc), ...rest];
16323
16261
  }
16324
16262
  }
16325
16263
 
16326
- const emberTemplateCompilerLibPluginsTransformResolutions = /*#__PURE__*/Object.defineProperty({
16327
- __proto__: null,
16328
- default: transformResolutions
16329
- }, Symbol.toStringTag, { value: 'Module' });
16330
-
16331
16264
  /**
16332
16265
  @module ember
16333
16266
  */
@@ -16382,15 +16315,24 @@ var define, require;
16382
16315
  };
16383
16316
  }
16384
16317
 
16385
- const emberTemplateCompilerLibPluginsTransformWrapMountAndOutlet = /*#__PURE__*/Object.defineProperty({
16386
- __proto__: null,
16387
- default: transformWrapMountAndOutlet
16388
- }, Symbol.toStringTag, { value: 'Module' });
16318
+ const INTERNAL_PLUGINS$1 = {
16319
+ AssertAgainstAttrs: assertAgainstAttrs,
16320
+ AssertAgainstNamedOutlets: assertAgainstNamedOutlets,
16321
+ AssertInputHelperWithoutBlock: errorOnInputWithContent,
16322
+ AssertReservedNamedArguments: assertReservedNamedArguments,
16323
+ TransformActionSyntax: transformActionSyntax,
16324
+ TransformEachInIntoEach: transformEachInIntoEach,
16325
+ TransformEachTrackArray: transformEachTrackArray,
16326
+ TransformInElement: transformInElement,
16327
+ TransformQuotedBindingsIntoJustBindings: transformQuotedBindingsIntoJustBindings,
16328
+ TransformResolutions: transformResolutions,
16329
+ TransformWrapMountAndOutlet: transformWrapMountAndOutlet
16330
+ };
16389
16331
 
16390
16332
  // order of plugins is important
16391
- const RESOLUTION_MODE_TRANSFORMS = Object.freeze([transformQuotedBindingsIntoJustBindings, assertReservedNamedArguments, transformActionSyntax, assertAgainstAttrs, transformEachInIntoEach, errorOnInputWithContent, transformInElement, transformEachTrackArray, assertAgainstNamedOutlets, transformWrapMountAndOutlet, transformResolutions]);
16392
- const STRICT_MODE_TRANSFORMS = Object.freeze([transformQuotedBindingsIntoJustBindings, assertReservedNamedArguments, transformActionSyntax, transformEachInIntoEach, transformInElement, transformEachTrackArray, assertAgainstNamedOutlets, transformWrapMountAndOutlet]);
16393
- const STRICT_MODE_KEYWORDS = Object.freeze(['action', 'mut', 'readonly', 'unbound',
16333
+ const RESOLUTION_MODE_TRANSFORMS$1 = Object.freeze([transformQuotedBindingsIntoJustBindings, assertReservedNamedArguments, transformActionSyntax, assertAgainstAttrs, transformEachInIntoEach, errorOnInputWithContent, transformInElement, transformEachTrackArray, assertAgainstNamedOutlets, transformWrapMountAndOutlet, transformResolutions]);
16334
+ const STRICT_MODE_TRANSFORMS$1 = Object.freeze([transformQuotedBindingsIntoJustBindings, assertReservedNamedArguments, transformActionSyntax, transformEachInIntoEach, transformInElement, transformEachTrackArray, assertAgainstNamedOutlets, transformWrapMountAndOutlet]);
16335
+ const STRICT_MODE_KEYWORDS$1 = Object.freeze(['action', 'mut', 'readonly', 'unbound',
16394
16336
  // TransformEachInIntoEach
16395
16337
  '-each-in',
16396
16338
  // TransformInElement
@@ -16400,13 +16342,6 @@ var define, require;
16400
16342
  // TransformWrapMountAndOutlet
16401
16343
  '-mount', '-outlet']);
16402
16344
 
16403
- const emberTemplateCompilerLibPluginsIndex = /*#__PURE__*/Object.defineProperty({
16404
- __proto__: null,
16405
- RESOLUTION_MODE_TRANSFORMS,
16406
- STRICT_MODE_KEYWORDS,
16407
- STRICT_MODE_TRANSFORMS
16408
- }, Symbol.toStringTag, { value: 'Module' });
16409
-
16410
16345
  /*
16411
16346
  This diverges from `Ember.String.dasherize` so that`<XFoo />` can resolve to `x-foo`.
16412
16347
  `Ember.String.dasherize` would resolve it to `xfoo`..
@@ -16463,12 +16398,12 @@ var define, require;
16463
16398
  meta.moduleName = options.moduleName;
16464
16399
  }
16465
16400
  if (options.strictMode) {
16466
- options.keywords = STRICT_MODE_KEYWORDS;
16401
+ options.keywords = STRICT_MODE_KEYWORDS$1;
16467
16402
  }
16468
16403
  return options;
16469
16404
  }
16470
16405
  function transformsFor(options) {
16471
- return options.strictMode ? STRICT_MODE_TRANSFORMS : RESOLUTION_MODE_TRANSFORMS;
16406
+ return options.strictMode ? STRICT_MODE_TRANSFORMS$1 : RESOLUTION_MODE_TRANSFORMS$1;
16472
16407
  }
16473
16408
  function compileOptions(_options = {}) {
16474
16409
  let options = buildCompileOptions(_options);
@@ -16550,8 +16485,8 @@ var define, require;
16550
16485
 
16551
16486
  const emberTemplateCompilerLibPublicApi = /*#__PURE__*/Object.defineProperty({
16552
16487
  __proto__: null,
16553
- RESOLUTION_MODE_TRANSFORMS,
16554
- STRICT_MODE_TRANSFORMS,
16488
+ RESOLUTION_MODE_TRANSFORMS: RESOLUTION_MODE_TRANSFORMS$1,
16489
+ STRICT_MODE_TRANSFORMS: STRICT_MODE_TRANSFORMS$1,
16555
16490
  VERSION: version,
16556
16491
  _Ember: ember.default,
16557
16492
  _GlimmerSyntax: glimmerSyntax,
@@ -16652,8 +16587,8 @@ var define, require;
16652
16587
 
16653
16588
  const emberTemplateCompilerIndex = /*#__PURE__*/Object.defineProperty({
16654
16589
  __proto__: null,
16655
- RESOLUTION_MODE_TRANSFORMS,
16656
- STRICT_MODE_TRANSFORMS,
16590
+ RESOLUTION_MODE_TRANSFORMS: RESOLUTION_MODE_TRANSFORMS$1,
16591
+ STRICT_MODE_TRANSFORMS: STRICT_MODE_TRANSFORMS$1,
16657
16592
  VERSION: version,
16658
16593
  _Ember: ember.default,
16659
16594
  _GlimmerSyntax: glimmerSyntax,
@@ -16667,6 +16602,158 @@ var define, require;
16667
16602
  precompile
16668
16603
  }, Symbol.toStringTag, { value: 'Module' });
16669
16604
 
16605
+ const AssertAgainstAttrs = INTERNAL_PLUGINS$1.AssertAgainstAttrs;
16606
+
16607
+ const emberTemplateCompilerLibPluginsAssertAgainstAttrs = /*#__PURE__*/Object.defineProperty({
16608
+ __proto__: null,
16609
+ default: AssertAgainstAttrs
16610
+ }, Symbol.toStringTag, { value: 'Module' });
16611
+
16612
+ const AssertAgainstNamedOutlets = INTERNAL_PLUGINS$1.AssertAgainstNamedOutlets;
16613
+
16614
+ const emberTemplateCompilerLibPluginsAssertAgainstNamedOutlets = /*#__PURE__*/Object.defineProperty({
16615
+ __proto__: null,
16616
+ default: AssertAgainstNamedOutlets
16617
+ }, Symbol.toStringTag, { value: 'Module' });
16618
+
16619
+ const AssertInputHelperWithoutBlock = INTERNAL_PLUGINS$1.AssertInputHelperWithoutBlock;
16620
+
16621
+ const emberTemplateCompilerLibPluginsAssertInputHelperWithoutBlock = /*#__PURE__*/Object.defineProperty({
16622
+ __proto__: null,
16623
+ default: AssertInputHelperWithoutBlock
16624
+ }, Symbol.toStringTag, { value: 'Module' });
16625
+
16626
+ const AssertReservedNamedArguments = INTERNAL_PLUGINS$1.AssertReservedNamedArguments;
16627
+
16628
+ const emberTemplateCompilerLibPluginsAssertReservedNamedArguments = /*#__PURE__*/Object.defineProperty({
16629
+ __proto__: null,
16630
+ default: AssertReservedNamedArguments
16631
+ }, Symbol.toStringTag, { value: 'Module' });
16632
+
16633
+ const TransformActionSyntax = INTERNAL_PLUGINS$1.TransformActionSyntax;
16634
+
16635
+ const emberTemplateCompilerLibPluginsTransformActionSyntax = /*#__PURE__*/Object.defineProperty({
16636
+ __proto__: null,
16637
+ default: TransformActionSyntax
16638
+ }, Symbol.toStringTag, { value: 'Module' });
16639
+
16640
+ const TransformEachInIntoEach = INTERNAL_PLUGINS$1.TransformEachInIntoEach;
16641
+
16642
+ const emberTemplateCompilerLibPluginsTransformEachInIntoEach = /*#__PURE__*/Object.defineProperty({
16643
+ __proto__: null,
16644
+ default: TransformEachInIntoEach
16645
+ }, Symbol.toStringTag, { value: 'Module' });
16646
+
16647
+ const TransformEachTrackArray = INTERNAL_PLUGINS$1.TransformEachTrackArray;
16648
+
16649
+ const emberTemplateCompilerLibPluginsTransformEachTrackArray = /*#__PURE__*/Object.defineProperty({
16650
+ __proto__: null,
16651
+ default: TransformEachTrackArray
16652
+ }, Symbol.toStringTag, { value: 'Module' });
16653
+
16654
+ const TransformInElement = INTERNAL_PLUGINS$1.TransformInElement;
16655
+
16656
+ const emberTemplateCompilerLibPluginsTransformInElement = /*#__PURE__*/Object.defineProperty({
16657
+ __proto__: null,
16658
+ default: TransformInElement
16659
+ }, Symbol.toStringTag, { value: 'Module' });
16660
+
16661
+ const TransformQuotedBindingsIntoJustBindings = INTERNAL_PLUGINS$1.TransformQuotedBindingsIntoJustBindings;
16662
+
16663
+ const emberTemplateCompilerLibPluginsTransformQuotedBindingsIntoJustBindings = /*#__PURE__*/Object.defineProperty({
16664
+ __proto__: null,
16665
+ default: TransformQuotedBindingsIntoJustBindings
16666
+ }, Symbol.toStringTag, { value: 'Module' });
16667
+
16668
+ const TransformResolutions = INTERNAL_PLUGINS$1.TransformResolutions;
16669
+
16670
+ const emberTemplateCompilerLibPluginsTransformResolutions = /*#__PURE__*/Object.defineProperty({
16671
+ __proto__: null,
16672
+ default: TransformResolutions
16673
+ }, Symbol.toStringTag, { value: 'Module' });
16674
+
16675
+ const TransformWrapMountAndOutlet = INTERNAL_PLUGINS$1.TransformWrapMountAndOutlet;
16676
+
16677
+ const emberTemplateCompilerLibPluginsTransformWrapMountAndOutlet = /*#__PURE__*/Object.defineProperty({
16678
+ __proto__: null,
16679
+ default: TransformWrapMountAndOutlet
16680
+ }, Symbol.toStringTag, { value: 'Module' });
16681
+
16682
+ const INTERNAL_PLUGINS = {
16683
+ AssertAgainstAttrs,
16684
+ AssertAgainstNamedOutlets,
16685
+ AssertInputHelperWithoutBlock,
16686
+ AssertReservedNamedArguments,
16687
+ TransformActionSyntax,
16688
+ TransformEachInIntoEach,
16689
+ TransformEachTrackArray,
16690
+ TransformInElement,
16691
+ TransformQuotedBindingsIntoJustBindings,
16692
+ TransformResolutions,
16693
+ TransformWrapMountAndOutlet
16694
+ };
16695
+
16696
+ // order of plugins is important
16697
+ const RESOLUTION_MODE_TRANSFORMS = Object.freeze([TransformQuotedBindingsIntoJustBindings, AssertReservedNamedArguments, TransformActionSyntax, AssertAgainstAttrs, TransformEachInIntoEach, AssertInputHelperWithoutBlock, TransformInElement, TransformEachTrackArray, AssertAgainstNamedOutlets, TransformWrapMountAndOutlet, TransformResolutions]);
16698
+ const STRICT_MODE_TRANSFORMS = Object.freeze([TransformQuotedBindingsIntoJustBindings, AssertReservedNamedArguments, TransformActionSyntax, TransformEachInIntoEach, TransformInElement, TransformEachTrackArray, AssertAgainstNamedOutlets, TransformWrapMountAndOutlet]);
16699
+ const STRICT_MODE_KEYWORDS = Object.freeze(['action', 'mut', 'readonly', 'unbound',
16700
+ // TransformEachInIntoEach
16701
+ '-each-in',
16702
+ // TransformInElement
16703
+ '-in-el-null',
16704
+ // TransformEachTrackArray
16705
+ '-track-array',
16706
+ // TransformWrapMountAndOutlet
16707
+ '-mount', '-outlet']);
16708
+
16709
+ const emberTemplateCompilerLibPluginsIndex = /*#__PURE__*/Object.defineProperty({
16710
+ __proto__: null,
16711
+ INTERNAL_PLUGINS,
16712
+ RESOLUTION_MODE_TRANSFORMS,
16713
+ STRICT_MODE_KEYWORDS,
16714
+ STRICT_MODE_TRANSFORMS
16715
+ }, Symbol.toStringTag, { value: 'Module' });
16716
+
16717
+ const emberTemplateCompilerLibPluginsUtils = /*#__PURE__*/Object.defineProperty({
16718
+ __proto__: null,
16719
+ inScope,
16720
+ isPath,
16721
+ isStringLiteral,
16722
+ trackLocals
16723
+ }, Symbol.toStringTag, { value: 'Module' });
16724
+
16725
+ function calculateLocationDisplay(moduleName, loc) {
16726
+ let moduleInfo = '';
16727
+ if (moduleName) {
16728
+ moduleInfo += `'${moduleName}' `;
16729
+ }
16730
+ if (loc) {
16731
+ let {
16732
+ column,
16733
+ line
16734
+ } = loc.start || {
16735
+ line: undefined,
16736
+ column: undefined
16737
+ };
16738
+ if (line !== undefined && column !== undefined) {
16739
+ if (moduleName) {
16740
+ // only prepend @ if the moduleName was present
16741
+ moduleInfo += '@ ';
16742
+ }
16743
+ moduleInfo += `L${line}:C${column}`;
16744
+ }
16745
+ }
16746
+ if (moduleInfo) {
16747
+ moduleInfo = `(${moduleInfo}) `;
16748
+ }
16749
+ return moduleInfo;
16750
+ }
16751
+
16752
+ const emberTemplateCompilerLibSystemCalculateLocationDisplay = /*#__PURE__*/Object.defineProperty({
16753
+ __proto__: null,
16754
+ default: calculateLocationDisplay
16755
+ }, Symbol.toStringTag, { value: 'Module' });
16756
+
16670
16757
  const emberTemplateCompilerLibTypes = /*#__PURE__*/Object.defineProperty({
16671
16758
  __proto__: null
16672
16759
  }, Symbol.toStringTag, { value: 'Module' });
@@ -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.1.0-alpha.4
8
+ * @version 6.1.0-alpha.6
9
9
  */
10
10
  /* eslint-disable no-var */
11
11
  /* globals global globalThis self */