ember-source 7.2.0-alpha.4 → 7.2.0-beta.1

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 (326) hide show
  1. package/blueprints/-addon-import.js +4 -6
  2. package/blueprints/-utils.js +6 -9
  3. package/build-metadata.json +3 -3
  4. package/dist/dev/packages/@ember/-internals/browser-environment/index.js +1 -1
  5. package/dist/dev/packages/@ember/-internals/glimmer/index.js +11 -11
  6. package/dist/dev/packages/@ember/-internals/metal/index.js +18 -18
  7. package/dist/dev/packages/@ember/-internals/routing/index.js +3 -3
  8. package/dist/dev/packages/@ember/-internals/runtime/index.js +1 -1
  9. package/dist/dev/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
  10. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +7 -7
  11. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
  12. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
  13. package/dist/dev/packages/@ember/-internals/utils/index.js +2 -2
  14. package/dist/dev/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
  15. package/dist/dev/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
  16. package/dist/dev/packages/@ember/-internals/views/lib/system/utils.js +1 -1
  17. package/dist/dev/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
  18. package/dist/dev/packages/@ember/application/index.js +6 -7
  19. package/dist/dev/packages/@ember/application/instance.js +4 -4
  20. package/dist/dev/packages/@ember/application/namespace.js +3 -3
  21. package/dist/dev/packages/@ember/array/index.js +10 -64
  22. package/dist/dev/packages/@ember/array/lib/is-array.js +71 -0
  23. package/dist/dev/packages/@ember/array/proxy.js +8 -8
  24. package/dist/dev/packages/@ember/component/helper.js +1 -1
  25. package/dist/dev/packages/@ember/component/index.js +21 -15
  26. package/dist/dev/packages/@ember/component/template-only.js +1 -1
  27. package/dist/dev/packages/@ember/controller/index.js +3 -3
  28. package/dist/dev/packages/@ember/debug/data-adapter.js +3 -3
  29. package/dist/dev/packages/@ember/debug/index.js +1 -1
  30. package/dist/dev/packages/@ember/engine/index.js +5 -5
  31. package/dist/dev/packages/@ember/engine/instance.js +2 -2
  32. package/dist/dev/packages/@ember/helper/index.js +8 -27
  33. package/dist/dev/packages/@ember/modifier/index.js +2 -2
  34. package/dist/dev/packages/@ember/modifier/on.js +1 -1
  35. package/dist/dev/packages/@ember/object/-internals.js +2 -2
  36. package/dist/dev/packages/@ember/object/compat.js +3 -3
  37. package/dist/dev/packages/@ember/object/computed.js +2 -2
  38. package/dist/dev/packages/@ember/object/core.js +7 -7
  39. package/dist/dev/packages/@ember/object/evented.js +2 -2
  40. package/dist/dev/packages/@ember/object/events.js +1 -1
  41. package/dist/dev/packages/@ember/object/index.js +30 -25
  42. package/dist/dev/packages/@ember/object/internals.js +1 -1
  43. package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +5 -5
  44. package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +3 -3
  45. package/dist/dev/packages/@ember/object/mixin.js +6 -6
  46. package/dist/dev/packages/@ember/object/observable.js +7 -7
  47. package/dist/dev/packages/@ember/object/observers.js +1 -1
  48. package/dist/dev/packages/@ember/object/promise-proxy-mixin.js +3 -3
  49. package/dist/dev/packages/@ember/reactive/collections.js +153 -153
  50. package/dist/dev/packages/@ember/renderer/index.js +1 -1
  51. package/dist/dev/packages/@ember/routing/-internals.js +3 -3
  52. package/dist/dev/packages/@ember/routing/index.js +12 -8
  53. package/dist/dev/packages/@ember/routing/lib/generate_controller.js +2 -3
  54. package/dist/dev/packages/@ember/routing/lib/routing-service.js +5 -5
  55. package/dist/dev/packages/@ember/routing/lib/utils.js +3 -3
  56. package/dist/dev/packages/@ember/routing/route.js +12 -12
  57. package/dist/dev/packages/@ember/routing/router-service.js +25 -18
  58. package/dist/dev/packages/@ember/routing/router.js +5 -5
  59. package/dist/dev/packages/@ember/runloop/index.js +1 -1
  60. package/dist/dev/packages/@ember/service/index.js +1 -1
  61. package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +3 -3
  62. package/dist/dev/packages/@ember/template-compiler/lib/template.js +2 -2
  63. package/dist/dev/packages/@ember/template-factory/index.js +1 -1
  64. package/dist/dev/packages/@ember/utils/lib/is_empty.js +1 -1
  65. package/dist/dev/packages/@glimmer/encoder/index.js +1 -1
  66. package/dist/dev/packages/@glimmer/manager/index.js +4 -4
  67. package/dist/dev/packages/@glimmer/node/index.js +3 -3
  68. package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
  69. package/dist/dev/packages/@glimmer/program/index.js +10 -10
  70. package/dist/dev/packages/@glimmer/reference/index.js +5 -5
  71. package/dist/dev/packages/@glimmer/runtime/index.js +13 -13
  72. package/dist/dev/packages/@glimmer/tracking/index.js +2 -2
  73. package/dist/dev/packages/@glimmer/tracking/primitives/cache/index.js +1 -1
  74. package/dist/dev/packages/@glimmer/util/index.js +4 -4
  75. package/dist/dev/packages/@glimmer/validator/index.js +3 -3
  76. package/dist/dev/packages/@glimmer/vm/index.js +2 -2
  77. package/dist/dev/packages/ember/version.js +1 -1
  78. package/dist/dev/packages/ember-template-compiler/index.js +4 -4
  79. package/dist/dev/packages/router_js/index.js +2 -2
  80. package/dist/dev/packages/rsvp/index.js +2281 -1
  81. package/dist/dev/packages/shared-chunks/{alias-RGbDZoAB.js → alias-DpqL1qx6.js} +7 -7
  82. package/dist/dev/packages/shared-chunks/{api-BT9M3UaD.js → api-BlZDPg1n.js} +6 -6
  83. package/dist/dev/packages/shared-chunks/{element-builder-Cl1kHFJE.js → api-C0PAtEgQ.js} +139 -120
  84. package/dist/dev/packages/shared-chunks/{api-DG5kRT-o.js → api-DuLOZMO_.js} +3 -3
  85. package/dist/dev/packages/shared-chunks/{args-proxy-CB0SM6jC.js → args-proxy-CS5Brs3_.js} +2 -2
  86. package/dist/dev/packages/shared-chunks/{untouchable-this-BHdAERUu.js → arguments-CDkbOqTS.js} +236 -236
  87. package/dist/dev/packages/shared-chunks/{array-BMaSKezP.js → array-CVEnNWng.js} +3 -3
  88. package/dist/dev/packages/shared-chunks/{array-utils-BEaSKdEb.js → array-utils-CZQxrdD3.js} +1 -1
  89. package/dist/dev/packages/shared-chunks/{cache-CeWOBNQg.js → cache-DGDPVCpC.js} +2 -3
  90. package/dist/dev/packages/shared-chunks/{capabilities-CZkuOqqC.js → capabilities-CajW4QjE.js} +1 -1
  91. package/dist/dev/packages/shared-chunks/{chain-tags-DfmU63mS.js → chain-tags-uWSImHzB.js} +4 -4
  92. package/dist/dev/packages/shared-chunks/{collections-DEt-i-8B.js → collections-DPkjqeA3.js} +2 -2
  93. package/dist/dev/packages/shared-chunks/{compiler-DhH2WLpA.js → compiler-QUSl_urU.js} +3 -3
  94. package/dist/dev/packages/shared-chunks/{computed-Daavz6vC.js → computed-BPCtuOxQ.js} +6 -6
  95. package/dist/dev/packages/shared-chunks/{curly-YoYS2vXw.js → curly-Ei5G8jhk.js} +7 -7
  96. package/dist/dev/packages/shared-chunks/{curried-Cnjy9_ug.js → curried-BZnYakIg.js} +1 -1
  97. package/dist/dev/packages/shared-chunks/{decorator-DYQwMItS.js → decorator-B5Uh5NFI.js} +1 -1
  98. package/dist/dev/packages/shared-chunks/{element-bBwMD8cw.js → element-BYLB-q7a.js} +5 -3
  99. package/dist/dev/packages/shared-chunks/{events-B1lx9T1I.js → events-6aFVjD4k.js} +1 -1
  100. package/dist/{prod/packages/shared-chunks/flags-B9qxc-pB.js → dev/packages/shared-chunks/flags-BZxHQ0yn.js} +1 -1
  101. package/dist/dev/packages/shared-chunks/{get-CO3EIWsm.js → get-6I3sjd-I.js} +33 -36
  102. package/dist/{prod/packages/shared-chunks/get_properties-wj_Qmotj.js → dev/packages/shared-chunks/get_properties-Cm2sWt5f.js} +1 -1
  103. package/dist/dev/packages/shared-chunks/{guid-PO2v9BaN.js → guid-Cbq2sNV_.js} +1 -1
  104. package/dist/dev/packages/shared-chunks/{hash-2-93qikL.js → hash-6NDs_5_f.js} +18 -12
  105. package/dist/dev/packages/shared-chunks/{helper-Bm6EhgSW.js → helper-DIj85_-f.js} +21 -9
  106. package/dist/dev/packages/shared-chunks/{index-dyv6rcBf.js → index-B3pPx1fL.js} +113 -134
  107. package/dist/dev/packages/shared-chunks/{index-DX90CU4L.js → index-BGP1rw3B.js} +1 -1
  108. package/dist/dev/packages/shared-chunks/{index-DkwVSPP5.js → index-DaFzpTIE.js} +10 -9
  109. package/dist/dev/packages/shared-chunks/{injected_property-B075jH6c.js → injected_property-CbBLr5jt.js} +2 -2
  110. package/dist/dev/packages/shared-chunks/{internal-Bpr6ihB_.js → internal-DTOXyEGM.js} +4 -4
  111. package/dist/dev/packages/shared-chunks/{internal-helper-IC87S6iZ.js → internal-helper-CKrni0b_.js} +1 -1
  112. package/dist/dev/packages/shared-chunks/{invoke-Ds0KEfP_.js → invoke-d9sqa50M.js} +3 -3
  113. package/dist/dev/packages/shared-chunks/{libraries-P8Ins5CB.js → libraries-DwffpMGE.js} +1 -1
  114. package/dist/dev/packages/shared-chunks/{meta-Cjo3zQJq.js → meta-BqC7f9Ia.js} +1 -1
  115. package/dist/{prod/packages/shared-chunks/namespace_search-TFdmjK_a.js → dev/packages/shared-chunks/namespace_search-BfvzEQzN.js} +1 -1
  116. package/dist/dev/packages/shared-chunks/{normalize-CxG_iVLJ.js → normalize-CKySQVU7.js} +2 -2
  117. package/dist/dev/packages/shared-chunks/{or-Bg6rCMF8.js → not-DYh6AY9Z.js} +36 -36
  118. package/dist/dev/packages/shared-chunks/{observers-CejcZw5s.js → observers-DMlX2nCi.js} +5 -5
  119. package/dist/dev/packages/shared-chunks/{on-Ch_lyozr.js → on-DlF0Wy7P.js} +10 -10
  120. package/dist/dev/packages/shared-chunks/{present-D0EfKzC6.js → present-B1rrjAVM.js} +1 -1
  121. package/dist/{prod/packages/shared-chunks/program-CF651Zuj.js → dev/packages/shared-chunks/program-DlgjqLa6.js} +3 -3
  122. package/dist/dev/packages/shared-chunks/{program-context-BaYVr5GA.js → program-context-Dq8xN2HI.js} +5 -4
  123. package/dist/dev/packages/shared-chunks/{property_get-BjbsrgpU.js → property_get-CRP7MFz_.js} +3 -3
  124. package/dist/dev/packages/shared-chunks/{property_set-LJskl202.js → property_set-qCUylPEK.js} +3 -3
  125. package/dist/dev/packages/shared-chunks/{reference-C-OXd_kp.js → reference-BqOLhKFy.js} +3 -3
  126. package/dist/dev/packages/shared-chunks/{registers-Buvdhhxx.js → registers-C_W2qYHJ.js} +1 -1
  127. package/dist/dev/packages/shared-chunks/{rehydrate-builder-IH4d_JQy.js → rehydrate-builder-C6k1XhET.js} +4 -4
  128. package/dist/dev/packages/shared-chunks/{render-Dz3OWqXy.js → render-87_sKZ_k.js} +94 -94
  129. package/dist/dev/packages/shared-chunks/{rsvp-C6j8G1D1.js → rsvp.es-DR7yS7qg.js} +150 -154
  130. package/dist/dev/packages/shared-chunks/{serialize-builder-DKliZPPG.js → serialize-builder-BlxBjwO-.js} +2 -2
  131. package/dist/dev/packages/shared-chunks/{set_properties-CNds2HCH.js → set_properties-C4TSebH6.js} +2 -2
  132. package/dist/dev/packages/shared-chunks/{setup-registry-C_YovxNX.js → setup-registry-9DCmHTFF.js} +18 -18
  133. package/dist/{prod/packages/shared-chunks/simple-cast-BXTrayoV.js → dev/packages/shared-chunks/simple-cast-DCvJLSin.js} +1 -1
  134. package/dist/{prod/packages/shared-chunks/super-D4qkU4uq.js → dev/packages/shared-chunks/super-BBBjgF69.js} +1 -1
  135. package/dist/{prod/packages/shared-chunks/syscall-ops-nrBHMOTp.js → dev/packages/shared-chunks/syscall-ops-CN7STuUn.js} +1 -1
  136. package/dist/dev/packages/shared-chunks/{template-B0Apv9g2.js → template-BRrQR6KS.js} +1 -1
  137. package/dist/dev/packages/shared-chunks/{template-only-BxYzSEnC.js → template-only-Cu639ICT.js} +2 -4
  138. package/dist/dev/packages/shared-chunks/{textarea-DHjEFpZu.js → textarea-C4lYkaHj.js} +12 -8
  139. package/dist/dev/packages/shared-chunks/{tracked-B76E1nGz.js → tracked-DEyf0T_X.js} +5 -5
  140. package/dist/dev/packages/shared-chunks/{tracked-data-CH1USZZy.js → tracked-data-DgqqRdYO.js} +2 -2
  141. package/dist/dev/packages/shared-chunks/{unique-id-Hd96VZlE.js → unique-id-DQOhouG1.js} +2 -2
  142. package/dist/dev/packages/shared-chunks/{unrecognized-url-error-BQdkjTtZ.js → unrecognized-url-error-BJHjL30Q.js} +2 -2
  143. package/dist/{prod/packages/shared-chunks/vm-ops-5QCUIRx4.js → dev/packages/shared-chunks/vm-ops-ImHv0Wtg.js} +1 -1
  144. package/dist/prod/packages/@ember/-internals/glimmer/index.js +11 -11
  145. package/dist/prod/packages/@ember/-internals/metal/index.js +18 -18
  146. package/dist/prod/packages/@ember/-internals/routing/index.js +3 -3
  147. package/dist/prod/packages/@ember/-internals/runtime/index.js +1 -1
  148. package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
  149. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +7 -7
  150. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
  151. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
  152. package/dist/prod/packages/@ember/-internals/utils/index.js +2 -2
  153. package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
  154. package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
  155. package/dist/prod/packages/@ember/-internals/views/lib/system/utils.js +1 -1
  156. package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
  157. package/dist/prod/packages/@ember/application/index.js +5 -6
  158. package/dist/prod/packages/@ember/application/instance.js +4 -4
  159. package/dist/prod/packages/@ember/application/namespace.js +3 -3
  160. package/dist/prod/packages/@ember/array/index.js +11 -58
  161. package/dist/prod/packages/@ember/array/lib/is-array.js +64 -0
  162. package/dist/prod/packages/@ember/array/proxy.js +8 -8
  163. package/dist/prod/packages/@ember/component/helper.js +1 -1
  164. package/dist/prod/packages/@ember/component/index.js +20 -14
  165. package/dist/prod/packages/@ember/component/template-only.js +1 -1
  166. package/dist/prod/packages/@ember/controller/index.js +3 -3
  167. package/dist/prod/packages/@ember/debug/data-adapter.js +3 -3
  168. package/dist/prod/packages/@ember/engine/index.js +5 -5
  169. package/dist/prod/packages/@ember/engine/instance.js +2 -2
  170. package/dist/prod/packages/@ember/helper/index.js +8 -27
  171. package/dist/prod/packages/@ember/modifier/index.js +2 -2
  172. package/dist/prod/packages/@ember/modifier/on.js +1 -1
  173. package/dist/prod/packages/@ember/object/-internals.js +2 -2
  174. package/dist/prod/packages/@ember/object/compat.js +3 -3
  175. package/dist/prod/packages/@ember/object/computed.js +2 -2
  176. package/dist/prod/packages/@ember/object/core.js +7 -7
  177. package/dist/prod/packages/@ember/object/evented.js +2 -2
  178. package/dist/prod/packages/@ember/object/events.js +1 -1
  179. package/dist/prod/packages/@ember/object/index.js +30 -25
  180. package/dist/prod/packages/@ember/object/internals.js +2 -2
  181. package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +4 -4
  182. package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -2
  183. package/dist/prod/packages/@ember/object/mixin.js +6 -6
  184. package/dist/prod/packages/@ember/object/observable.js +7 -7
  185. package/dist/prod/packages/@ember/object/observers.js +1 -1
  186. package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +3 -3
  187. package/dist/prod/packages/@ember/reactive/collections.js +153 -153
  188. package/dist/prod/packages/@ember/renderer/index.js +1 -1
  189. package/dist/prod/packages/@ember/routing/index.js +12 -8
  190. package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -2
  191. package/dist/prod/packages/@ember/routing/lib/routing-service.js +4 -4
  192. package/dist/prod/packages/@ember/routing/lib/utils.js +3 -3
  193. package/dist/prod/packages/@ember/routing/route.js +12 -12
  194. package/dist/prod/packages/@ember/routing/router-service.js +24 -17
  195. package/dist/prod/packages/@ember/routing/router.js +5 -5
  196. package/dist/prod/packages/@ember/runloop/index.js +1 -1
  197. package/dist/prod/packages/@ember/service/index.js +1 -1
  198. package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +3 -3
  199. package/dist/prod/packages/@ember/template-compiler/lib/template.js +2 -2
  200. package/dist/prod/packages/@ember/template-factory/index.js +1 -1
  201. package/dist/prod/packages/@ember/utils/lib/is_empty.js +1 -1
  202. package/dist/prod/packages/@glimmer/encoder/index.js +1 -1
  203. package/dist/prod/packages/@glimmer/manager/index.js +4 -4
  204. package/dist/prod/packages/@glimmer/node/index.js +3 -3
  205. package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -2
  206. package/dist/prod/packages/@glimmer/program/index.js +10 -10
  207. package/dist/prod/packages/@glimmer/reference/index.js +5 -5
  208. package/dist/prod/packages/@glimmer/runtime/index.js +13 -13
  209. package/dist/prod/packages/@glimmer/tracking/index.js +2 -2
  210. package/dist/prod/packages/@glimmer/tracking/primitives/cache/index.js +1 -1
  211. package/dist/prod/packages/@glimmer/util/index.js +4 -4
  212. package/dist/prod/packages/@glimmer/validator/index.js +3 -3
  213. package/dist/prod/packages/@glimmer/vm/index.js +2 -2
  214. package/dist/prod/packages/ember/version.js +1 -1
  215. package/dist/prod/packages/ember-template-compiler/index.js +4 -4
  216. package/dist/prod/packages/router_js/index.js +2 -2
  217. package/dist/prod/packages/rsvp/index.js +2281 -1
  218. package/dist/prod/packages/shared-chunks/{alias-DsIh-16z.js → alias-Bod6qdNp.js} +7 -7
  219. package/dist/prod/packages/shared-chunks/{api-CGZbGcvX.js → api-B_poQGXS.js} +6 -6
  220. package/dist/prod/packages/shared-chunks/{element-builder-CZePCkbA.js → api-CQexacBn.js} +139 -120
  221. package/dist/prod/packages/shared-chunks/{api-DOLN_cR2.js → api-DlJKfm_f.js} +3 -3
  222. package/dist/prod/packages/shared-chunks/{args-proxy-CaXVcI8G.js → args-proxy-CCoFtYLS.js} +2 -2
  223. package/dist/prod/packages/shared-chunks/{debug-render-tree-CYENUjgX.js → arguments-BzAkZVBa.js} +198 -198
  224. package/dist/prod/packages/shared-chunks/{array-DYFI95FA.js → array-BzReKMeW.js} +3 -3
  225. package/dist/prod/packages/shared-chunks/{array-utils-BEaSKdEb.js → array-utils-CZQxrdD3.js} +1 -1
  226. package/dist/prod/packages/shared-chunks/{cache-CG6_L9db.js → cache-CofLhaS4.js} +1 -2
  227. package/dist/prod/packages/shared-chunks/{capabilities-_5e35539.js → capabilities-BuVYh-vx.js} +1 -1
  228. package/dist/prod/packages/shared-chunks/{chain-tags-BP0V2LnZ.js → chain-tags-B2J7DsxO.js} +4 -4
  229. package/dist/prod/packages/shared-chunks/{collections-By4M3cTy.js → collections-GpG8lT2g.js} +10 -10
  230. package/dist/prod/packages/shared-chunks/{compiler-DQmEjFyx.js → compiler-lBSssiWp.js} +2 -2
  231. package/dist/prod/packages/shared-chunks/{computed-D6MVTTDd.js → computed-DtIStxvq.js} +6 -6
  232. package/dist/prod/packages/shared-chunks/{curly-DCYSwLtz.js → curly-IY06zACp.js} +7 -7
  233. package/dist/prod/packages/shared-chunks/{curried-Cnjy9_ug.js → curried-BZnYakIg.js} +1 -1
  234. package/dist/prod/packages/shared-chunks/{decorator-B8Lpq40g.js → decorator-9ikVwsjY.js} +1 -1
  235. package/dist/prod/packages/shared-chunks/{element-CT5H5uxF.js → element-DgHdPZ8u.js} +5 -3
  236. package/dist/prod/packages/shared-chunks/{events-C7aYCy0N.js → events-DYrYz3V8.js} +1 -1
  237. package/dist/{dev/packages/shared-chunks/flags-B9qxc-pB.js → prod/packages/shared-chunks/flags-BZxHQ0yn.js} +1 -1
  238. package/dist/prod/packages/shared-chunks/{get-tlL23wmp.js → get-Dago5uGl.js} +33 -36
  239. package/dist/{dev/packages/shared-chunks/get_properties-B203vZpz.js → prod/packages/shared-chunks/get_properties-Dg3xFpiS.js} +1 -1
  240. package/dist/prod/packages/shared-chunks/{guid-PO2v9BaN.js → guid-Cbq2sNV_.js} +1 -1
  241. package/dist/prod/packages/shared-chunks/{hash-C6IoC4eR.js → hash-gEXIsSO4.js} +24 -18
  242. package/dist/prod/packages/shared-chunks/{helper-CCK8Ef0x.js → helper-DkXiTBjc.js} +21 -9
  243. package/dist/prod/packages/shared-chunks/{index-D-rcNBLp.js → index-Bf53M8eS.js} +9 -8
  244. package/dist/prod/packages/shared-chunks/{index-DabsnYit.js → index-CslMfEpb.js} +110 -131
  245. package/dist/prod/packages/shared-chunks/{injected_property-COGiYHKc.js → injected_property-Y-FadDej.js} +2 -2
  246. package/dist/prod/packages/shared-chunks/{internal-BEJC2IJ-.js → internal-BQ7zHrqS.js} +4 -4
  247. package/dist/prod/packages/shared-chunks/{internal-helper-CoxiRnnb.js → internal-helper-Bz1lpDXr.js} +1 -1
  248. package/dist/prod/packages/shared-chunks/{invoke-D_jsLbsj.js → invoke-DhQ5QRp2.js} +3 -3
  249. package/dist/prod/packages/shared-chunks/{libraries-Bs3H8iwC.js → libraries-DBql0hdn.js} +2 -2
  250. package/dist/prod/packages/shared-chunks/{meta-Ce6-qROq.js → meta-BJtIZDir.js} +1 -1
  251. package/dist/{dev/packages/shared-chunks/namespace_search-TFdmjK_a.js → prod/packages/shared-chunks/namespace_search-BfvzEQzN.js} +1 -1
  252. package/dist/prod/packages/shared-chunks/{normalize-Bx4H3NjB.js → normalize-C_IStty9.js} +2 -2
  253. package/dist/prod/packages/shared-chunks/{or-sYlRiUn_.js → not-BOIVROuv.js} +28 -28
  254. package/dist/prod/packages/shared-chunks/{observers-Ci31SE36.js → observers-BmobpXAF.js} +5 -5
  255. package/dist/prod/packages/shared-chunks/{on-Dgmychhk.js → on-BZHAxzdq.js} +10 -10
  256. package/dist/{dev/packages/shared-chunks/program-CPXeXWVB.js → prod/packages/shared-chunks/program-BAh__OXZ.js} +3 -3
  257. package/dist/prod/packages/shared-chunks/{program-context-DmI53TzJ.js → program-context-COSioH46.js} +5 -4
  258. package/dist/prod/packages/shared-chunks/{property_get-Sw0SicEZ.js → property_get-DAKgbeJX.js} +2 -2
  259. package/dist/prod/packages/shared-chunks/{property_set-SHEIPMUG.js → property_set-BaQJdVfS.js} +3 -3
  260. package/dist/prod/packages/shared-chunks/{reference-D2agTt1V.js → reference-CG0yPgLy.js} +3 -3
  261. package/dist/prod/packages/shared-chunks/{registers-Buvdhhxx.js → registers-C_W2qYHJ.js} +1 -1
  262. package/dist/prod/packages/shared-chunks/{rehydrate-builder-B7MtrWip.js → rehydrate-builder-Blt1x9MP.js} +4 -4
  263. package/dist/prod/packages/shared-chunks/{render-B790-vbk.js → render-Dx7lr1hR.js} +94 -94
  264. package/dist/prod/packages/shared-chunks/{rsvp-C6j8G1D1.js → rsvp.es-DR7yS7qg.js} +150 -154
  265. package/dist/prod/packages/shared-chunks/{serialize-builder-kEyOKbzp.js → serialize-builder-BvAXYHTr.js} +2 -2
  266. package/dist/prod/packages/shared-chunks/{set_properties-CcLLHg1w.js → set_properties-Qxhw4qzw.js} +2 -2
  267. package/dist/prod/packages/shared-chunks/{setup-registry-D14I0iDX.js → setup-registry-U-6VaNQG.js} +18 -18
  268. package/dist/{dev/packages/shared-chunks/simple-cast-BXTrayoV.js → prod/packages/shared-chunks/simple-cast-DCvJLSin.js} +1 -1
  269. package/dist/{dev/packages/shared-chunks/super-D4qkU4uq.js → prod/packages/shared-chunks/super-BBBjgF69.js} +1 -1
  270. package/dist/{dev/packages/shared-chunks/syscall-ops-nrBHMOTp.js → prod/packages/shared-chunks/syscall-ops-CN7STuUn.js} +1 -1
  271. package/dist/prod/packages/shared-chunks/{template-B0Apv9g2.js → template-BRrQR6KS.js} +1 -1
  272. package/dist/prod/packages/shared-chunks/{template-only-CP0NT7ce.js → template-only-DKNcKM5b.js} +2 -4
  273. package/dist/prod/packages/shared-chunks/{textarea-B_JYBuE8.js → textarea-DOmZ1x0E.js} +11 -7
  274. package/dist/prod/packages/shared-chunks/{tracked-CXcapuAm.js → tracked-B9380JtC.js} +5 -5
  275. package/dist/prod/packages/shared-chunks/{tracked-data-DNDzhYXf.js → tracked-data-CHq42QHb.js} +2 -2
  276. package/dist/prod/packages/shared-chunks/{unique-id-Hn8Qp4dS.js → unique-id-o2pS74go.js} +2 -2
  277. package/dist/prod/packages/shared-chunks/{unrecognized-url-error-ClNyMFJt.js → unrecognized-url-error-EgNrnFu_.js} +2 -2
  278. package/dist/{dev/packages/shared-chunks/vm-ops-5QCUIRx4.js → prod/packages/shared-chunks/vm-ops-ImHv0Wtg.js} +1 -1
  279. package/docs/data.json +316 -334
  280. package/package.json +6 -4
  281. package/types/stable/@ember/-internals/glimmer/index.d.ts +165 -121
  282. package/types/stable/@ember/-internals/glimmer/lib/component-managers/mount.d.ts +1 -1
  283. package/types/stable/@ember/-internals/glimmer/lib/component-managers/outlet.d.ts +1 -1
  284. package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +8 -2
  285. package/types/stable/@ember/-internals/glimmer/lib/glimmer-tracking-docs.d.ts +12 -12
  286. package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +18 -6
  287. package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +3 -1
  288. package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +65 -121
  289. package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +8 -4
  290. package/types/stable/@ember/-internals/glimmer/lib/helpers/each-in.d.ts +16 -14
  291. package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +2 -0
  292. package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +11 -7
  293. package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +23 -29
  294. package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +3 -1
  295. package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +95 -49
  296. package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +23 -54
  297. package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +6 -2
  298. package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +4 -8
  299. package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +10 -10
  300. package/types/stable/@ember/-internals/glimmer/lib/renderer.d.ts +1 -2
  301. package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +2 -0
  302. package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +2 -14
  303. package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +15 -11
  304. package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +17 -10
  305. package/types/stable/@ember/-internals/runtime/lib/mixins/target_action_support.d.ts +1 -1
  306. package/types/stable/@ember/array/index.d.ts +6 -29
  307. package/types/stable/@ember/array/lib/is-array.d.ts +35 -0
  308. package/types/stable/@ember/component/template-only.d.ts +1 -3
  309. package/types/stable/@ember/controller/index.d.ts +1 -1
  310. package/types/stable/@ember/helper/index.d.ts +0 -19
  311. package/types/stable/@ember/object/index.d.ts +4 -3
  312. package/types/stable/@ember/object/observable.d.ts +4 -0
  313. package/types/stable/@ember/reactive/collections.d.ts +0 -6
  314. package/types/stable/@ember/routing/lib/generate_controller.d.ts +1 -1
  315. package/types/stable/@ember/routing/route.d.ts +2 -2
  316. package/types/stable/@ember/routing/router-service.d.ts +20 -12
  317. package/types/stable/@glimmer/runtime/lib/component/template-only.d.ts +0 -2
  318. package/types/stable/@glimmer/runtime/lib/dom/sanitized-values.d.ts +2 -2
  319. package/types/stable/@glimmer/runtime/lib/helpers/array.d.ts +1 -1
  320. package/types/stable/@glimmer/runtime/lib/helpers/concat.d.ts +8 -3
  321. package/types/stable/@glimmer/runtime/lib/helpers/fn.d.ts +13 -7
  322. package/types/stable/@glimmer/runtime/lib/helpers/get.d.ts +21 -29
  323. package/types/stable/@glimmer/runtime/lib/helpers/hash.d.ts +1 -1
  324. package/types/stable/@glimmer/syntax/lib/get-template-locals.d.ts +1 -1
  325. package/types/stable/@glimmer/tracking/index.d.ts +12 -12
  326. package/types/stable/index.d.ts +1 -0
@@ -1,53 +1,48 @@
1
1
  import { privatize } from '../@ember/-internals/container/index.js';
2
2
  import { E as ENV } from './env-DXxsTFkM.js';
3
3
  import { isFactory, getOwner } from '../@ember/-internals/owner/index.js';
4
- import { a as guidFor } from './guid-PO2v9BaN.js';
4
+ import { g as guidFor } from './guid-Cbq2sNV_.js';
5
5
  import { getViewId, getViewElement } from '../@ember/-internals/views/lib/system/utils.js';
6
6
  import { h as hasDOM } from './has-dom-DdQORPzI.js';
7
7
  import { assert } from '../@ember/debug/lib/assert.js';
8
8
  import { schedule, _backburner, _getCurrentRunLoop } from '../@ember/runloop/index.js';
9
9
  import { associateDestroyableChild, isDestroyed, destroy, registerDestructor, isDestroying } from '../@glimmer/destroyable/index.js';
10
10
  import { artifacts } from '../@glimmer/program/index.js';
11
- import { R as RuntimeOpImpl } from './program-CF651Zuj.js';
12
- import { v as valueForRef, U as UNDEFINED_REFERENCE, b as createComputeRef, d as createConstRef, f as createInvokableRef, h as createReadOnlyRef, i as createUnboundRef, a as childRefFromParts, u as updateRef } from './reference-D2agTt1V.js';
13
- import { e as clientBuilder } from './element-builder-CZePCkbA.js';
14
- import { E as EMPTY_ARGS, f as createCapturedArgs, c as EMPTY_POSITIONAL, g as curry } from './debug-render-tree-CYENUjgX.js';
15
- import { g as runtimeOptions, i as inTransaction, r as renderComponent$1, d as renderMain } from './render-B790-vbk.js';
16
- import { d as dict } from './collections-By4M3cTy.js';
17
- import { u as unwrapTemplate, b as CurlyComponentManager, i as initialRenderInstrumentDetails, a as ComponentStateBucket, D as DIRTY_TAG, c as isCurlyManager, B as BOUNDS } from './curly-DCYSwLtz.js';
18
- import { b as CONSTANT_TAG, k as consumeTag, t as isTracking, D as DIRTY_TAG$1, m as createTag, y as valueForTag, c as CURRENT_TAG, x as validateTag } from './cache-CG6_L9db.js';
19
- import { a as RSVP } from './rsvp-C6j8G1D1.js';
20
- import '../@ember/engine/instance.js';
11
+ import { R as RuntimeOpImpl } from './program-BAh__OXZ.js';
12
+ import { v as valueForRef, U as UNDEFINED_REFERENCE, c as createComputeRef, a as createConstRef, h as createInvokableRef, j as createReadOnlyRef, k as createUnboundRef, g as childRefFromParts, u as updateRef } from './reference-CG0yPgLy.js';
13
+ import { c as clientBuilder } from './api-CQexacBn.js';
14
+ import { E as EMPTY_ARGS, c as createCapturedArgs, b as EMPTY_POSITIONAL, d as curry } from './arguments-BzAkZVBa.js';
15
+ import { g as runtimeOptions, i as inTransaction, r as renderComponent$1, d as renderMain } from './render-Dx7lr1hR.js';
16
+ import { d as dict } from './collections-GpG8lT2g.js';
17
+ import { u as unwrapTemplate, a as CurlyComponentManager, i as initialRenderInstrumentDetails, b as ComponentStateBucket, D as DIRTY_TAG, c as isCurlyManager, B as BOUNDS } from './curly-IY06zACp.js';
18
+ import { C as CONSTANT_TAG, c as consumeTag, f as isTracking, D as DIRTY_TAG$1, r as createTag, a as valueForTag, k as CURRENT_TAG, v as validateTag } from './cache-CofLhaS4.js';
21
19
  import { _instrumentStart } from '../@ember/instrumentation/index.js';
22
- import { c as capabilityFlagsFrom } from './capabilities-_5e35539.js';
23
- import { h as templateFactory } from './index-D-rcNBLp.js';
20
+ import { c as capabilityFlagsFrom } from './capabilities-BuVYh-vx.js';
21
+ import { t as templateFactory } from './index-Bf53M8eS.js';
24
22
  import { g as getFactoryFor } from './container-BYOnjnwz.js';
25
- import { g as get, a as _getProp } from './property_get-Sw0SicEZ.js';
26
- import { _ as _setProp, s as set } from './property_set-SHEIPMUG.js';
23
+ import { g as get, a as _getProp } from './property_get-DAKgbeJX.js';
24
+ import { _ as _setProp, s as set } from './property_set-BaQJdVfS.js';
27
25
  import setGlobalContext from '../@glimmer/global-context/index.js';
28
- import { t as tagForObject, o as objectAt, b as tagForProperty } from './chain-tags-BP0V2LnZ.js';
26
+ import { t as tagForObject, o as objectAt, a as tagForProperty } from './chain-tags-B2J7DsxO.js';
29
27
  import { isEmberArray } from '../@ember/array/-internals.js';
30
28
  import { i as isObject } from './spec-BXl1reqK.js';
31
- import { t as tagFor } from './meta-Ce6-qROq.js';
29
+ import { t as tagFor } from './meta-BJtIZDir.js';
32
30
  import { contentFor } from '../@ember/-internals/runtime/lib/mixins/-proxy.js';
33
31
  import { i as isProxy } from './is_proxy-Bzg0d4m4.js';
34
- import { i as internalHelper } from './internal-helper-CoxiRnnb.js';
32
+ import { i as internalHelper } from './internal-helper-Bz1lpDXr.js';
35
33
  import { i as isHTMLSafe } from './index-D-xTBV4B.js';
36
- import { isArray } from '../@ember/array/index.js';
34
+ import isArray from '../@ember/array/lib/is-array.js';
37
35
  import { g as getComponentTemplate } from './template-Dc_cBOoX.js';
38
- import { c as hasInternalComponentManager, j as setInternalHelperManager, g as getInternalComponentManager } from './api-DOLN_cR2.js';
39
- import { h as hash, f as fn, a as array } from './hash-C6IoC4eR.js';
40
- import { g as get$1, c as concat } from './get-tlL23wmp.js';
41
- import { o as on } from './on-Dgmychhk.js';
42
- import { T as TEMPLATE_ONLY_COMPONENT_MANAGER, t as templateOnlyComponent } from './template-only-CP0NT7ce.js';
43
- import { i as isClassicHelper, C as CLASSIC_HELPER_MANAGER } from './helper-CCK8Ef0x.js';
36
+ import { c as hasInternalComponentManager, j as setInternalHelperManager, g as getInternalComponentManager } from './api-DlJKfm_f.js';
37
+ import { h as hash, f as fn, a as array } from './hash-gEXIsSO4.js';
38
+ import { g as get$1, c as concat } from './get-Dago5uGl.js';
39
+ import { o as on } from './on-BZHAxzdq.js';
40
+ import { T as TEMPLATE_ONLY_COMPONENT_MANAGER, t as templateOnlyComponent } from './template-only-DKNcKM5b.js';
41
+ import { i as isClassicHelper, C as CLASSIC_HELPER_MANAGER } from './helper-DkXiTBjc.js';
44
42
  import { dasherize } from '../@ember/-internals/string/index.js';
45
- import { a as uniqueId } from './unique-id-Hn8Qp4dS.js';
46
- import '../route-recognizer/index.js';
47
- import './unrecognized-url-error-ClNyMFJt.js';
48
- import '../@ember/routing/lib/routing-service.js';
43
+ import { a as uniqueId } from './unique-id-o2pS74go.js';
49
44
  import { generateControllerFactory } from '../@ember/routing/lib/generate_controller.js';
50
- import { E as EvaluationContextImpl } from './program-context-DmI53TzJ.js';
45
+ import { E as EvaluationContextImpl } from './program-context-COSioH46.js';
51
46
 
52
47
  function instrumentationPayload$1(def) {
53
48
  // "main" used to be the outlet name, keeping it around for compatibility
@@ -90,13 +85,14 @@ class OutletComponentManager {
90
85
  let currentState = valueForRef(currentStateRef);
91
86
  let currentOwner = currentState?.render?.owner;
92
87
  if (parentOwner && parentOwner !== currentOwner) {
88
+ let engineInstance = currentOwner;
93
89
  let {
94
90
  mountPoint
95
- } = currentOwner;
91
+ } = engineInstance;
96
92
  if (mountPoint) {
97
93
  state.engine = {
98
94
  mountPoint,
99
- instance: currentOwner
95
+ instance: engineInstance
100
96
  };
101
97
  }
102
98
  }
@@ -239,7 +235,7 @@ class RootComponentDefinition {
239
235
  */
240
236
 
241
237
  /**
242
- The `{{#each}}` helper loops over elements in a collection. It is an extension
238
+ The `{{#each}}` keyword loops over elements in a collection. It is an extension
243
239
  of the base Handlebars `{{#each}}` helper.
244
240
 
245
241
  The default behavior of `{{#each}}` is to yield its inner block once for every
@@ -283,6 +279,8 @@ class RootComponentDefinition {
283
279
  {{/each}}
284
280
  </ul>
285
281
  ```
282
+
283
+ `#each` is a keyword and does not need to be imported.
286
284
 
287
285
  ### Specifying Keys
288
286
 
@@ -350,11 +348,11 @@ class RootComponentDefinition {
350
348
  */
351
349
 
352
350
  /**
353
- The `{{each-in}}` helper loops over properties on an object.
351
+ The `{{#each-in}}` keyword loops over properties on an object.
354
352
 
355
353
  For example, given this component definition:
356
354
 
357
- ```app/components/developer-details.js
355
+ ```app/components/developer-details.gjs
358
356
  import Component from '@glimmer/component';
359
357
  import { tracked } from '@glimmer/tracking';
360
358
 
@@ -363,21 +361,19 @@ class RootComponentDefinition {
363
361
  "name": "Shelly Sails",
364
362
  "age": 42
365
363
  };
364
+
365
+ <template>
366
+ <ul>
367
+ {{#each-in this.developer as |key value|}}
368
+ <li>{{key}}: {{value}}</li>
369
+ {{/each-in}}
370
+ </ul>
371
+ </template>
366
372
  }
367
373
  ```
368
374
 
369
375
  This template would display all properties on the `developer`
370
- object in a list:
371
-
372
- ```app/components/developer-details.hbs
373
- <ul>
374
- {{#each-in this.developer as |key value|}}
375
- <li>{{key}}: {{value}}</li>
376
- {{/each-in}}
377
- </ul>
378
- ```
379
-
380
- Outputting their name and age:
376
+ object in a list, outputting their name and age:
381
377
 
382
378
  ```html
383
379
  <ul>
@@ -385,6 +381,8 @@ class RootComponentDefinition {
385
381
  <li>age: 42</li>
386
382
  </ul>
387
383
  ```
384
+
385
+ `#each-in` is a keyword and does not need to be imported.
388
386
 
389
387
  @method each-in
390
388
  @for Ember.Templates.helpers
@@ -776,73 +774,42 @@ const trackArray = internalHelper(({
776
774
  */
777
775
 
778
776
  /**
779
- The `mut` helper lets you __clearly specify__ that a child `Component` can update the
780
- (mutable) value passed to it, which will __change the value of the parent component__.
781
-
782
- To specify that a parameter is mutable, when invoking the child `Component`:
777
+ The `mut` helper is a shortcut for updating for args.
778
+
779
+ However, defining update functions on your backing class is preferable to using `mut`.
780
+
781
+ More directly: Don't use `mut`.
783
782
 
784
- ```handlebars
785
- <MyChild @childClickCount={{fn (mut totalClicks)}} />
786
- ```
787
-
788
- or
789
-
790
- ```handlebars
791
- {{my-child childClickCount=(mut totalClicks)}}
792
- ```
793
-
794
- The child `Component` can then modify the parent's value just by modifying its own
795
- property:
796
-
797
- ```javascript
798
- // my-child.js
799
- export default class MyChild extends Component {
800
- click() {
801
- this.incrementProperty('childClickCount');
802
- }
803
- }
804
- ```
805
-
806
- Note that for curly components (`{{my-component}}`) the bindings are already mutable,
807
- making the `mut` unnecessary.
808
-
809
- Additionally, the `mut` helper can be combined with the `fn` helper to
810
- mutate a value. For example:
811
-
812
- ```handlebars
813
- <MyChild @childClickCount={{this.totalClicks}} @click-count-change={{fn (mut totalClicks))}} />
814
- ```
815
-
816
- or
783
+ The `mut` helper, when used with `fn`, will return a function that
784
+ sets the value passed to `mut` to its first argument. As an example, we can create a
785
+ button that increments a value passing the value directly to the `fn`:
817
786
 
818
787
  ```handlebars
819
- {{my-child childClickCount=totalClicks click-count-change=(fn (mut totalClicks))}}
788
+ <MyChild @childClickCount={{this.totalClicks}} @clickCountChange={{fn (mut this.totalClicks)}} />
820
789
  ```
821
790
 
822
- The child `Component` would invoke the function with the new click value:
791
+ The child `Component` would invoke the function with the new click count:
823
792
 
824
- ```javascript
825
- // my-child.js
793
+ ```app/components/my-child.gjs
794
+ import Component from '@glimmer/component';
795
+ import { action } from '@ember/object';
796
+
826
797
  export default class MyChild extends Component {
827
- click() {
828
- this.get('click-count-change')(this.get('childClickCount') + 1);
798
+ @action
799
+ update() {
800
+ this.args.clickCountChange(this.args.childClickCount + 1);
829
801
  }
802
+
803
+ <template>
804
+ <button {{on "click" this.update}}>
805
+ Click me!
806
+ </button>
807
+ </template>
830
808
  }
831
809
  ```
832
810
 
833
811
  The `mut` helper changes the `totalClicks` value to what was provided as the `fn` argument.
834
812
 
835
- The `mut` helper, when used with `fn`, will return a function that
836
- sets the value passed to `mut` to its first argument. As an example, we can create a
837
- button that increments a value passing the value directly to the `fn`:
838
-
839
- ```handlebars
840
- {{! inc helper is not provided by Ember }}
841
- <button onclick={{fn (mut count) (inc count)}}>
842
- Increment count
843
- </button>
844
- ```
845
-
846
813
  @method mut
847
814
  @param {Object} [attr] the "two-way" attribute that can be modified.
848
815
  @for Ember.Templates.helpers
@@ -864,6 +831,10 @@ const mut = internalHelper(({
864
831
  /**
865
832
  The `readonly` helper let's you specify that a binding is one-way only,
866
833
  instead of two-way.
834
+
835
+ This is a vestigial helper from the days of `@ember/component` and does not apply to
836
+ components extending from `@glimmer/component`.
837
+
867
838
  When you pass a `readonly` binding from an outer context (e.g. parent component),
868
839
  to to an inner context (e.g. child component), you are saying that changing that
869
840
  property in the inner context does not change the value in the outer context.
@@ -876,14 +847,6 @@ const mut = internalHelper(({
876
847
  }
877
848
  ```
878
849
 
879
- ```app/templates/components/my-parent.hbs
880
- {{log totalClicks}} // -> 3
881
- <MyChild @childClickCount={{readonly totalClicks}} />
882
- ```
883
- ```
884
- {{my-child childClickCount=(readonly totalClicks)}}
885
- ```
886
-
887
850
  Now, when you update `childClickCount`:
888
851
 
889
852
  ```app/components/my-child.js
@@ -1160,15 +1123,14 @@ class MountDefinition {
1160
1123
 
1161
1124
  For example, the following template mounts the `ember-chat` engine:
1162
1125
 
1163
- ```handlebars
1164
- {{! application.hbs }}
1126
+ ```app/templates/application.gjs
1165
1127
  {{mount "ember-chat"}}
1166
1128
  ```
1167
1129
 
1168
1130
  Additionally, you can also pass in a `model` argument that will be
1169
1131
  set as the engines model. This can be an existing object:
1170
1132
 
1171
- ```
1133
+ ```hbs
1172
1134
  <div>
1173
1135
  {{mount 'admin' model=userSettings}}
1174
1136
  </div>
@@ -1176,15 +1138,20 @@ class MountDefinition {
1176
1138
 
1177
1139
  Or an inline `hash`, and you can even pass components:
1178
1140
 
1141
+ ```gjs
1142
+ import SignInButton from '../components/sign-in-button';
1143
+ <template>
1144
+ <div>
1145
+ <h1>Application template!</h1>
1146
+ {{mount 'admin' model=(hash
1147
+ title='Secret Admin'
1148
+ signInButton=SignInButton
1149
+ )}}
1150
+ </div>
1151
+ </template>
1179
1152
  ```
1180
- <div>
1181
- <h1>Application template!</h1>
1182
- {{mount 'admin' model=(hash
1183
- title='Secret Admin'
1184
- signInButton=(component 'sign-in-button')
1185
- )}}
1186
- </div>
1187
- ```
1153
+
1154
+ `mount` is built-in and does not need to be imported.
1188
1155
 
1189
1156
  @method mount
1190
1157
  @param {String} name Name of the engine to mount.
@@ -1316,23 +1283,30 @@ function makeRouteTemplate(owner, name, template) {
1316
1283
  /**
1317
1284
  The `{{outlet}}` helper lets you specify where a child route will render in
1318
1285
  your template. An important use of the `{{outlet}}` helper is in your
1319
- application's `application.hbs` file:
1320
-
1321
- ```app/templates/application.hbs
1322
- <MyHeader />
1323
-
1324
- <div class="my-dynamic-content">
1325
- <!-- this content will change based on the current route, which depends on the current URL -->
1326
- {{outlet}}
1327
- </div>
1328
-
1329
- <MyFooter />
1286
+ application's `application.gjs` file:
1287
+
1288
+ ```app/templates/application.gjs
1289
+ import MyHeader from '../components/my-header';
1290
+ import MyFooter from '../components/my-footer';
1291
+
1292
+ <template>
1293
+ <MyHeader />
1294
+
1295
+ <div class="my-dynamic-content">
1296
+ <!-- this content will change based on the current route, which depends on the current URL -->
1297
+ {{outlet}}
1298
+ </div>
1299
+
1300
+ <MyFooter />
1301
+ </template>
1330
1302
  ```
1331
1303
 
1332
1304
  See the [routing guide](https://guides.emberjs.com/release/routing/rendering-a-template/) for more
1333
1305
  information on how your `route` interacts with the `{{outlet}}` helper.
1334
1306
  Note: Your content __will not render__ if there isn't an `{{outlet}}` for it.
1335
1307
 
1308
+ `outlet` is built-in and does not need to be imported.
1309
+
1336
1310
  @method outlet
1337
1311
  @for Ember.Templates.helpers
1338
1312
  @public
@@ -1828,7 +1802,12 @@ let renderSettledDeferred = null;
1828
1802
  */
1829
1803
  function renderSettled() {
1830
1804
  if (renderSettledDeferred === null) {
1831
- renderSettledDeferred = RSVP.defer();
1805
+ let resolve;
1806
+ let promise = new Promise(r => resolve = r);
1807
+ renderSettledDeferred = {
1808
+ promise,
1809
+ resolve
1810
+ };
1832
1811
  // if there is no current runloop, the promise created above will not have
1833
1812
  // a chance to resolve (because its resolved in backburner's "end" event)
1834
1813
  if (!_getCurrentRunLoop()) {
@@ -1,6 +1,6 @@
1
1
  import { getOwner } from '../@ember/-internals/owner/index.js';
2
- import { d as computed, f as defineProperty } from './computed-D6MVTTDd.js';
3
- import { c as isElementDescriptor } from './decorator-B8Lpq40g.js';
2
+ import { c as computed, d as defineProperty } from './computed-DtIStxvq.js';
3
+ import { i as isElementDescriptor } from './decorator-9ikVwsjY.js';
4
4
 
5
5
  let DEBUG_INJECTION_FUNCTIONS;
6
6
 
@@ -1,11 +1,11 @@
1
1
  import { setOwner } from '../@ember/-internals/owner/index.js';
2
- import { a as guidFor } from './guid-PO2v9BaN.js';
2
+ import { g as guidFor } from './guid-Cbq2sNV_.js';
3
3
  import './env-DXxsTFkM.js';
4
4
  import { assert } from '../@ember/debug/lib/assert.js';
5
5
  import { s as setComponentTemplate } from './template-Dc_cBOoX.js';
6
- import { s as setInternalComponentManager } from './api-DOLN_cR2.js';
7
- import { v as valueForRef, d as createConstRef } from './reference-D2agTt1V.js';
8
- import { w as untrack } from './cache-CG6_L9db.js';
6
+ import { s as setInternalComponentManager } from './api-DlJKfm_f.js';
7
+ import { v as valueForRef, a as createConstRef } from './reference-CG0yPgLy.js';
8
+ import { u as untrack } from './cache-CofLhaS4.js';
9
9
 
10
10
  function NOOP() {}
11
11
  class InternalComponent {
@@ -1,4 +1,4 @@
1
- import { j as setInternalHelperManager } from './api-DOLN_cR2.js';
1
+ import { j as setInternalHelperManager } from './api-DlJKfm_f.js';
2
2
 
3
3
  function internalHelper(helper) {
4
4
  return setInternalHelperManager(helper, {});
@@ -1,8 +1,8 @@
1
1
  import { associateDestroyableChild } from '../@glimmer/destroyable/index.js';
2
- import { a as getInternalHelperManager, f as hasValue, h as hasDestroyable } from './api-DOLN_cR2.js';
2
+ import { a as getInternalHelperManager, f as hasValue, h as hasDestroyable } from './api-DlJKfm_f.js';
3
3
  import { getOwner } from '../@glimmer/owner/index.js';
4
- import { l as createCache, q as getValue } from './cache-CG6_L9db.js';
5
- import { E as EMPTY_ARGS, b as EMPTY_NAMED, c as EMPTY_POSITIONAL } from './debug-render-tree-CYENUjgX.js';
4
+ import { e as createCache, g as getValue } from './cache-CofLhaS4.js';
5
+ import { E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL } from './arguments-BzAkZVBa.js';
6
6
 
7
7
  function getArgs(proxy) {
8
8
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme
@@ -1,5 +1,5 @@
1
1
  import VERSION from '../ember/version.js';
2
- import './property_get-Sw0SicEZ.js';
2
+ import './property_get-DAKgbeJX.js';
3
3
 
4
4
  /**
5
5
  @module ember
@@ -56,4 +56,4 @@ class Libraries {
56
56
  const LIBRARIES = new Libraries();
57
57
  LIBRARIES.registerCoreLibrary('Ember', VERSION);
58
58
 
59
- export { LIBRARIES as L, Libraries as a };
59
+ export { Libraries as L, LIBRARIES as a };
@@ -1,4 +1,4 @@
1
- import { n as createUpdatableTag, D as DIRTY_TAG } from './cache-CG6_L9db.js';
1
+ import { b as createUpdatableTag, D as DIRTY_TAG } from './cache-CofLhaS4.js';
2
2
 
3
3
  ///////////
4
4
 
@@ -131,4 +131,4 @@ function tryIsNamespace(lookup, prop) {
131
131
  }
132
132
  }
133
133
 
134
- export { NAMESPACES as N, NAMESPACES_BY_ID as a, addNamespace as b, findNamespaces as c, processNamespace as d, setUnprocessedMixins as e, findNamespace as f, isSearchDisabled as i, processAllNamespaces as p, removeNamespace as r, setSearchDisabled as s };
134
+ export { NAMESPACES as N, NAMESPACES_BY_ID as a, addNamespace as b, findNamespaces as c, processNamespace as d, setSearchDisabled as e, findNamespace as f, isSearchDisabled as i, processAllNamespaces as p, removeNamespace as r, setUnprocessedMixins as s };
@@ -1,4 +1,4 @@
1
- import { b as expect } from './collections-By4M3cTy.js';
1
+ import { e as expect } from './collections-GpG8lT2g.js';
2
2
  import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
3
3
 
4
4
  class CursorImpl {
@@ -81,4 +81,4 @@ function isString(value) {
81
81
  return typeof value === 'string';
82
82
  }
83
83
 
84
- export { ConcreteBounds as C, CursorImpl as a, isFragment as b, clear as c, isNode as d, isSafeString as e, isString as f, isEmpty as i, move as m, normalizeStringValue as n, shouldCoerce as s };
84
+ export { ConcreteBounds as C, CursorImpl as a, isEmpty as b, clear as c, isString as d, isFragment as e, isNode as f, isSafeString as i, move as m, normalizeStringValue as n, shouldCoerce as s };
@@ -1,20 +1,6 @@
1
1
  import { toBool } from '../@glimmer/global-context/index.js';
2
- import { b as createComputeRef, v as valueForRef } from './reference-D2agTt1V.js';
3
- import { i as internalHelper } from './hash-C6IoC4eR.js';
4
-
5
- const and = internalHelper(({
6
- positional
7
- }) => {
8
- return createComputeRef(() => {
9
- let last;
10
- for (let i = 0; i < positional.length; i++) {
11
- let arg = positional[i];
12
- last = arg ? valueForRef(arg) : arg;
13
- if (!toBool(last)) return last;
14
- }
15
- return last;
16
- }, null, 'and');
17
- });
2
+ import { c as createComputeRef, v as valueForRef } from './reference-CG0yPgLy.js';
3
+ import { i as internalHelper } from './hash-gEXIsSO4.js';
18
4
 
19
5
  /**
20
6
  * Performs a strict equality comparison.
@@ -25,6 +11,15 @@ function eq(left, right) {
25
11
  return left === right;
26
12
  }
27
13
 
14
+ /**
15
+ * Performs a strict inequality comparison.
16
+ *
17
+ * left !== right
18
+ */
19
+ function neq(left, right) {
20
+ return left !== right;
21
+ }
22
+
28
23
  /**
29
24
  * Performs a greater than comparison.
30
25
  *
@@ -61,18 +56,19 @@ function lte(left, right) {
61
56
  return left <= right;
62
57
  }
63
58
 
64
- /**
65
- * Performs a strict inequality comparison.
66
- *
67
- * left !== right
68
- */
69
- function neq(left, right) {
70
- return left !== right;
71
- }
72
-
73
- const not = (...args) => {
74
- return !toBool(args[0]);
75
- };
59
+ const and = internalHelper(({
60
+ positional
61
+ }) => {
62
+ return createComputeRef(() => {
63
+ let last;
64
+ for (let i = 0; i < positional.length; i++) {
65
+ let arg = positional[i];
66
+ last = arg ? valueForRef(arg) : arg;
67
+ if (!toBool(last)) return last;
68
+ }
69
+ return last;
70
+ }, null, 'and');
71
+ });
76
72
 
77
73
  const or = internalHelper(({
78
74
  positional
@@ -88,4 +84,8 @@ const or = internalHelper(({
88
84
  }, null, 'or');
89
85
  });
90
86
 
87
+ const not = (...args) => {
88
+ return !toBool(args[0]);
89
+ };
90
+
91
91
  export { and as a, gte as b, lte as c, not as d, eq as e, gt as g, lt as l, neq as n, or as o };
@@ -1,10 +1,10 @@
1
1
  import { E as ENV } from './env-DXxsTFkM.js';
2
2
  import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';
3
3
  import { registerDestructor } from '../@glimmer/destroyable/index.js';
4
- import { y as valueForTag, x as validateTag, c as CURRENT_TAG } from './cache-CG6_L9db.js';
5
- import { a as tagMetaFor } from './meta-Ce6-qROq.js';
6
- import { g as getChainTagsForKey } from './chain-tags-BP0V2LnZ.js';
7
- import { a as addListener, r as removeListener, s as sendEvent } from './events-C7aYCy0N.js';
4
+ import { a as valueForTag, v as validateTag, k as CURRENT_TAG } from './cache-CofLhaS4.js';
5
+ import { a as tagMetaFor } from './meta-BJtIZDir.js';
6
+ import { g as getChainTagsForKey } from './chain-tags-B2J7DsxO.js';
7
+ import { a as addListener, r as removeListener, s as sendEvent } from './events-DYrYz3V8.js';
8
8
 
9
9
  const AFTER_OBSERVERS = ':change';
10
10
  function changeEvent(keyName) {
@@ -196,4 +196,4 @@ function destroyObservers(target) {
196
196
  if (ASYNC_OBSERVERS.size > 0) ASYNC_OBSERVERS.delete(target);
197
197
  }
198
198
 
199
- export { ASYNC_OBSERVERS as A, SYNC_OBSERVERS as S, activateObserver as a, addObserver as b, flushSyncObservers as c, resumeObserverDeactivation as d, revalidateObservers as e, flushAsyncObservers as f, suspendedObserverDeactivation as g, removeObserver as r, setObserverSuspended as s };
199
+ export { ASYNC_OBSERVERS as A, SYNC_OBSERVERS as S, activateObserver as a, addObserver as b, revalidateObservers as c, flushSyncObservers as d, resumeObserverDeactivation as e, flushAsyncObservers as f, setObserverSuspended as g, removeObserver as r, suspendedObserverDeactivation as s };
@@ -1,8 +1,8 @@
1
- import { e as check } from './debug-render-tree-CYENUjgX.js';
1
+ import { g as check } from './arguments-BzAkZVBa.js';
2
2
  import { registerDestructor } from '../@glimmer/destroyable/index.js';
3
- import { k as setInternalModifierManager } from './api-DOLN_cR2.js';
4
- import { v as valueForRef } from './reference-D2agTt1V.js';
5
- import { n as createUpdatableTag } from './cache-CG6_L9db.js';
3
+ import { k as setInternalModifierManager } from './api-DlJKfm_f.js';
4
+ import { v as valueForRef } from './reference-CG0yPgLy.js';
5
+ import { b as createUpdatableTag } from './cache-CofLhaS4.js';
6
6
 
7
7
  class OnModifierState {
8
8
  tag = createUpdatableTag();
@@ -114,11 +114,7 @@ function addEventListener(element, eventName, callback, options) {
114
114
  For example, if you'd like to run a function on your component when a `<button>`
115
115
  in the components template is clicked you might do something like:
116
116
 
117
- ```app/components/like-post.hbs
118
- <button {{on 'click' this.saveLike}}>Like this post!</button>
119
- ```
120
-
121
- ```app/components/like-post.js
117
+ ```app/components/like-post.gjs
122
118
  import Component from '@glimmer/component';
123
119
  import { action } from '@ember/object';
124
120
 
@@ -127,6 +123,10 @@ function addEventListener(element, eventName, callback, options) {
127
123
  // someone likes your post!
128
124
  // better send a request off to your server...
129
125
  }
126
+
127
+ <template>
128
+ <button {{on 'click' this.saveLike}}>Like this post!</button>
129
+ </template>
130
130
  }
131
131
  ```
132
132
 
@@ -174,7 +174,7 @@ function addEventListener(element, eventName, callback, options) {
174
174
  properly bound to the `items-list`, but let's explore what happens if we
175
175
  left out the arrow function:
176
176
 
177
- ```app/components/like-post.js
177
+ ```app/components/like-post.gjs
178
178
  import Component from '@glimmer/component';
179
179
 
180
180
  export default class LikePostComponent extends Component {
@@ -1,5 +1,5 @@
1
- import { u as unwrap } from './collections-DEt-i-8B.js';
2
- import { O as OPERAND_LEN_MASK, A as ARG_SHIFT, M as MACHINE_MASK, T as TYPE_MASK } from './flags-B9qxc-pB.js';
1
+ import { u as unwrap } from './collections-GpG8lT2g.js';
2
+ import { O as OPERAND_LEN_MASK, A as ARG_SHIFT, M as MACHINE_MASK, T as TYPE_MASK } from './flags-BZxHQ0yn.js';
3
3
 
4
4
  class RuntimeOpImpl {
5
5
  offset = 0;
@@ -173,4 +173,4 @@ function sizeof(table, handle) {
173
173
  }
174
174
  }
175
175
 
176
- export { ProgramHeapImpl as P, RuntimeOpImpl as R, ProgramImpl as a };
176
+ export { ProgramImpl as P, RuntimeOpImpl as R, ProgramHeapImpl as a };