ember-source 7.2.0-alpha.3 → 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 (284) hide show
  1. package/README.md +0 -1
  2. package/blueprints/-addon-import.js +4 -6
  3. package/blueprints/-utils.js +6 -9
  4. package/build-metadata.json +3 -3
  5. package/dist/dev/packages/@ember/-internals/glimmer/index.js +11 -11
  6. package/dist/dev/packages/@ember/-internals/metal/index.js +15 -15
  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/views/lib/mixins/action_support.js +1 -1
  14. package/dist/dev/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
  15. package/dist/dev/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
  16. package/dist/dev/packages/@ember/application/index.js +5 -6
  17. package/dist/dev/packages/@ember/application/instance.js +3 -3
  18. package/dist/dev/packages/@ember/application/namespace.js +1 -1
  19. package/dist/dev/packages/@ember/array/index.js +10 -64
  20. package/dist/dev/packages/@ember/array/lib/is-array.js +71 -0
  21. package/dist/dev/packages/@ember/array/proxy.js +8 -8
  22. package/dist/dev/packages/@ember/component/helper.js +1 -1
  23. package/dist/dev/packages/@ember/component/index.js +18 -12
  24. package/dist/dev/packages/@ember/component/template-only.js +1 -1
  25. package/dist/dev/packages/@ember/controller/index.js +3 -3
  26. package/dist/dev/packages/@ember/debug/data-adapter.js +3 -3
  27. package/dist/dev/packages/@ember/engine/index.js +5 -5
  28. package/dist/dev/packages/@ember/engine/instance.js +1 -1
  29. package/dist/dev/packages/@ember/helper/index.js +8 -27
  30. package/dist/dev/packages/@ember/modifier/index.js +2 -2
  31. package/dist/dev/packages/@ember/modifier/on.js +1 -1
  32. package/dist/dev/packages/@ember/object/compat.js +2 -2
  33. package/dist/dev/packages/@ember/object/computed.js +2 -2
  34. package/dist/dev/packages/@ember/object/core.js +4 -4
  35. package/dist/dev/packages/@ember/object/index.js +28 -23
  36. package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +4 -4
  37. package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -2
  38. package/dist/dev/packages/@ember/object/mixin.js +2 -2
  39. package/dist/dev/packages/@ember/object/observable.js +6 -6
  40. package/dist/dev/packages/@ember/object/observers.js +1 -1
  41. package/dist/dev/packages/@ember/object/promise-proxy-mixin.js +3 -3
  42. package/dist/dev/packages/@ember/reactive/collections.js +153 -153
  43. package/dist/dev/packages/@ember/renderer/index.js +1 -1
  44. package/dist/dev/packages/@ember/routing/-internals.js +3 -3
  45. package/dist/dev/packages/@ember/routing/index.js +12 -8
  46. package/dist/dev/packages/@ember/routing/lib/generate_controller.js +2 -3
  47. package/dist/dev/packages/@ember/routing/lib/routing-service.js +4 -4
  48. package/dist/dev/packages/@ember/routing/lib/utils.js +3 -3
  49. package/dist/dev/packages/@ember/routing/route.js +11 -11
  50. package/dist/dev/packages/@ember/routing/router-service.js +24 -17
  51. package/dist/dev/packages/@ember/routing/router.js +5 -5
  52. package/dist/dev/packages/@ember/runloop/index.js +1 -1
  53. package/dist/dev/packages/@ember/service/index.js +1 -1
  54. package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +3 -3
  55. package/dist/dev/packages/@ember/template-compiler/lib/template.js +1 -1
  56. package/dist/dev/packages/@ember/template-factory/index.js +1 -1
  57. package/dist/dev/packages/@ember/utils/lib/is_empty.js +1 -1
  58. package/dist/dev/packages/@glimmer/encoder/index.js +1 -1
  59. package/dist/dev/packages/@glimmer/manager/index.js +4 -4
  60. package/dist/dev/packages/@glimmer/node/index.js +2 -2
  61. package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
  62. package/dist/dev/packages/@glimmer/program/index.js +7 -7
  63. package/dist/dev/packages/@glimmer/reference/index.js +3 -3
  64. package/dist/dev/packages/@glimmer/runtime/index.js +12 -12
  65. package/dist/dev/packages/@glimmer/tracking/index.js +2 -2
  66. package/dist/dev/packages/@glimmer/tracking/primitives/cache/index.js +1 -1
  67. package/dist/dev/packages/@glimmer/validator/index.js +3 -3
  68. package/dist/dev/packages/@glimmer/vm/index.js +1 -1
  69. package/dist/dev/packages/ember/version.js +1 -1
  70. package/dist/dev/packages/router_js/index.js +2 -2
  71. package/dist/dev/packages/rsvp/index.js +2281 -1
  72. package/dist/dev/packages/shared-chunks/{alias-ZcMQckQV.js → alias-DpqL1qx6.js} +6 -6
  73. package/dist/dev/packages/shared-chunks/{api-BAmlf_CN.js → api-BlZDPg1n.js} +5 -5
  74. package/dist/dev/packages/shared-chunks/{element-builder--iTIJyCB.js → api-C0PAtEgQ.js} +137 -118
  75. package/dist/dev/packages/shared-chunks/{api-BawZUDYD.js → api-DuLOZMO_.js} +3 -3
  76. package/dist/dev/packages/shared-chunks/{args-proxy-BNLuRFlO.js → args-proxy-CS5Brs3_.js} +2 -2
  77. package/dist/dev/packages/shared-chunks/{untouchable-this-B3DVwpHS.js → arguments-CDkbOqTS.js} +230 -230
  78. package/dist/dev/packages/shared-chunks/{array-Bh_kUjzy.js → array-CVEnNWng.js} +1 -1
  79. package/dist/dev/packages/shared-chunks/{cache-B7dqAS38.js → cache-DGDPVCpC.js} +1 -2
  80. package/dist/dev/packages/shared-chunks/{capabilities-CZkuOqqC.js → capabilities-CajW4QjE.js} +1 -1
  81. package/dist/dev/packages/shared-chunks/{chain-tags-D6tuFUj_.js → chain-tags-uWSImHzB.js} +3 -3
  82. package/dist/dev/packages/shared-chunks/{computed-CJnghmXC.js → computed-BPCtuOxQ.js} +4 -4
  83. package/dist/dev/packages/shared-chunks/{curly-BBzF_bI8.js → curly-Ei5G8jhk.js} +4 -4
  84. package/dist/dev/packages/shared-chunks/{element-DQJOvSlQ.js → element-BYLB-q7a.js} +5 -3
  85. package/dist/dev/packages/shared-chunks/{flags-B9qxc-pB.js → flags-BZxHQ0yn.js} +1 -1
  86. package/dist/dev/packages/shared-chunks/{get-D5b5QlqE.js → get-6I3sjd-I.js} +32 -35
  87. package/dist/{prod/packages/shared-chunks/get_properties-Nn08mLAH.js → dev/packages/shared-chunks/get_properties-Cm2sWt5f.js} +1 -1
  88. package/dist/dev/packages/shared-chunks/{hash-BRRFQJ99.js → hash-6NDs_5_f.js} +18 -12
  89. package/dist/dev/packages/shared-chunks/{helper-Do7NCZHI.js → helper-DIj85_-f.js} +21 -9
  90. package/dist/dev/packages/shared-chunks/{index-CwnQYqK5.js → index-B3pPx1fL.js} +111 -132
  91. package/dist/dev/packages/shared-chunks/{index-CyZiGiEI.js → index-DaFzpTIE.js} +4 -3
  92. package/dist/dev/packages/shared-chunks/{injected_property-B4T-FzZZ.js → injected_property-CbBLr5jt.js} +1 -1
  93. package/dist/dev/packages/shared-chunks/{internal-CAL-jHZt.js → internal-DTOXyEGM.js} +3 -3
  94. package/dist/dev/packages/shared-chunks/{internal-helper-Ez7zbEIa.js → internal-helper-CKrni0b_.js} +1 -1
  95. package/dist/dev/packages/shared-chunks/{invoke-B8M5fQQS.js → invoke-d9sqa50M.js} +3 -3
  96. package/dist/dev/packages/shared-chunks/{libraries-CHBwbR72.js → libraries-DwffpMGE.js} +1 -1
  97. package/dist/dev/packages/shared-chunks/{meta-BmRXesrk.js → meta-BqC7f9Ia.js} +1 -1
  98. package/dist/dev/packages/shared-chunks/{or-O0eJQ4K-.js → not-DYh6AY9Z.js} +36 -36
  99. package/dist/dev/packages/shared-chunks/{observers-C2DurkLG.js → observers-DMlX2nCi.js} +3 -3
  100. package/dist/dev/packages/shared-chunks/{on-BueSMv9L.js → on-DlF0Wy7P.js} +10 -10
  101. package/dist/dev/packages/shared-chunks/{program-DzAfcWFj.js → program-DlgjqLa6.js} +1 -1
  102. package/dist/dev/packages/shared-chunks/{program-context-CadjldRr.js → program-context-Dq8xN2HI.js} +3 -2
  103. package/dist/dev/packages/shared-chunks/{property_get-CIBS9umw.js → property_get-CRP7MFz_.js} +2 -2
  104. package/dist/dev/packages/shared-chunks/{property_set-D3PKyisF.js → property_set-qCUylPEK.js} +2 -2
  105. package/dist/dev/packages/shared-chunks/{reference-BoPB2LfI.js → reference-BqOLhKFy.js} +3 -3
  106. package/dist/dev/packages/shared-chunks/{rehydrate-builder-DCyIgnCR.js → rehydrate-builder-C6k1XhET.js} +1 -1
  107. package/dist/dev/packages/shared-chunks/{render-CpKaO-BO.js → render-87_sKZ_k.js} +86 -86
  108. package/dist/dev/packages/shared-chunks/{rsvp-CnCSY930.js → rsvp.es-DR7yS7qg.js} +150 -154
  109. package/dist/dev/packages/shared-chunks/{serialize-builder-DxgGRvH_.js → serialize-builder-BlxBjwO-.js} +1 -1
  110. package/dist/dev/packages/shared-chunks/{set_properties-BghuuGJx.js → set_properties-C4TSebH6.js} +2 -2
  111. package/dist/dev/packages/shared-chunks/{setup-registry-BC5VMvei.js → setup-registry-9DCmHTFF.js} +18 -18
  112. package/dist/dev/packages/shared-chunks/{syscall-ops-BPFtDquC.js → syscall-ops-CN7STuUn.js} +1 -1
  113. package/dist/dev/packages/shared-chunks/{template-only-BqOt8bDl.js → template-only-Cu639ICT.js} +2 -4
  114. package/dist/dev/packages/shared-chunks/{textarea-WSlUEr0y.js → textarea-C4lYkaHj.js} +11 -7
  115. package/dist/dev/packages/shared-chunks/{tracked-CKE4wnE6.js → tracked-DEyf0T_X.js} +4 -4
  116. package/dist/dev/packages/shared-chunks/{tracked-data-CGnA4ytZ.js → tracked-data-DgqqRdYO.js} +2 -2
  117. package/dist/dev/packages/shared-chunks/{unique-id-CgmHQiwi.js → unique-id-DQOhouG1.js} +2 -2
  118. package/dist/dev/packages/shared-chunks/{unrecognized-url-error-B3wUTorp.js → unrecognized-url-error-BJHjL30Q.js} +1 -1
  119. package/dist/prod/packages/@ember/-internals/glimmer/index.js +11 -11
  120. package/dist/prod/packages/@ember/-internals/metal/index.js +15 -15
  121. package/dist/prod/packages/@ember/-internals/routing/index.js +3 -3
  122. package/dist/prod/packages/@ember/-internals/runtime/index.js +1 -1
  123. package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
  124. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +7 -7
  125. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
  126. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
  127. package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
  128. package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
  129. package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
  130. package/dist/prod/packages/@ember/application/index.js +5 -6
  131. package/dist/prod/packages/@ember/application/instance.js +3 -3
  132. package/dist/prod/packages/@ember/application/namespace.js +1 -1
  133. package/dist/prod/packages/@ember/array/index.js +11 -58
  134. package/dist/prod/packages/@ember/array/lib/is-array.js +64 -0
  135. package/dist/prod/packages/@ember/array/proxy.js +8 -8
  136. package/dist/prod/packages/@ember/component/helper.js +1 -1
  137. package/dist/prod/packages/@ember/component/index.js +18 -12
  138. package/dist/prod/packages/@ember/component/template-only.js +1 -1
  139. package/dist/prod/packages/@ember/controller/index.js +3 -3
  140. package/dist/prod/packages/@ember/debug/data-adapter.js +3 -3
  141. package/dist/prod/packages/@ember/engine/index.js +5 -5
  142. package/dist/prod/packages/@ember/engine/instance.js +1 -1
  143. package/dist/prod/packages/@ember/helper/index.js +8 -27
  144. package/dist/prod/packages/@ember/modifier/index.js +2 -2
  145. package/dist/prod/packages/@ember/modifier/on.js +1 -1
  146. package/dist/prod/packages/@ember/object/compat.js +2 -2
  147. package/dist/prod/packages/@ember/object/computed.js +2 -2
  148. package/dist/prod/packages/@ember/object/core.js +4 -4
  149. package/dist/prod/packages/@ember/object/index.js +28 -23
  150. package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +4 -4
  151. package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -2
  152. package/dist/prod/packages/@ember/object/mixin.js +2 -2
  153. package/dist/prod/packages/@ember/object/observable.js +6 -6
  154. package/dist/prod/packages/@ember/object/observers.js +1 -1
  155. package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +3 -3
  156. package/dist/prod/packages/@ember/reactive/collections.js +153 -153
  157. package/dist/prod/packages/@ember/renderer/index.js +1 -1
  158. package/dist/prod/packages/@ember/routing/index.js +12 -8
  159. package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -2
  160. package/dist/prod/packages/@ember/routing/lib/routing-service.js +4 -4
  161. package/dist/prod/packages/@ember/routing/lib/utils.js +3 -3
  162. package/dist/prod/packages/@ember/routing/route.js +11 -11
  163. package/dist/prod/packages/@ember/routing/router-service.js +24 -17
  164. package/dist/prod/packages/@ember/routing/router.js +5 -5
  165. package/dist/prod/packages/@ember/runloop/index.js +1 -1
  166. package/dist/prod/packages/@ember/service/index.js +1 -1
  167. package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +3 -3
  168. package/dist/prod/packages/@ember/template-compiler/lib/template.js +2 -2
  169. package/dist/prod/packages/@ember/template-factory/index.js +1 -1
  170. package/dist/prod/packages/@ember/utils/lib/is_empty.js +1 -1
  171. package/dist/prod/packages/@glimmer/encoder/index.js +1 -1
  172. package/dist/prod/packages/@glimmer/manager/index.js +4 -4
  173. package/dist/prod/packages/@glimmer/node/index.js +3 -3
  174. package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -2
  175. package/dist/prod/packages/@glimmer/program/index.js +8 -8
  176. package/dist/prod/packages/@glimmer/reference/index.js +4 -4
  177. package/dist/prod/packages/@glimmer/runtime/index.js +13 -13
  178. package/dist/prod/packages/@glimmer/tracking/index.js +2 -2
  179. package/dist/prod/packages/@glimmer/tracking/primitives/cache/index.js +1 -1
  180. package/dist/prod/packages/@glimmer/util/index.js +2 -2
  181. package/dist/prod/packages/@glimmer/validator/index.js +3 -3
  182. package/dist/prod/packages/@glimmer/vm/index.js +1 -1
  183. package/dist/prod/packages/ember/version.js +1 -1
  184. package/dist/prod/packages/ember-template-compiler/index.js +2 -2
  185. package/dist/prod/packages/router_js/index.js +2 -2
  186. package/dist/prod/packages/rsvp/index.js +2281 -1
  187. package/dist/prod/packages/shared-chunks/{alias-DBW_V5vD.js → alias-Bod6qdNp.js} +6 -6
  188. package/dist/prod/packages/shared-chunks/{api-CM1trl_4.js → api-B_poQGXS.js} +5 -5
  189. package/dist/prod/packages/shared-chunks/{element-builder-CnlTPNyw.js → api-CQexacBn.js} +137 -118
  190. package/dist/prod/packages/shared-chunks/{api-zh_k31vb.js → api-DlJKfm_f.js} +3 -3
  191. package/dist/prod/packages/shared-chunks/{args-proxy-BDXbXCF9.js → args-proxy-CCoFtYLS.js} +2 -2
  192. package/dist/prod/packages/shared-chunks/{debug-render-tree-CF5O4-WI.js → arguments-BzAkZVBa.js} +193 -193
  193. package/dist/prod/packages/shared-chunks/{array-D6Couewv.js → array-BzReKMeW.js} +1 -1
  194. package/dist/prod/packages/shared-chunks/{cache-BIlOoPA7.js → cache-CofLhaS4.js} +1 -2
  195. package/dist/prod/packages/shared-chunks/{capabilities-_5e35539.js → capabilities-BuVYh-vx.js} +1 -1
  196. package/dist/prod/packages/shared-chunks/{chain-tags-C9rFtQ_x.js → chain-tags-B2J7DsxO.js} +3 -3
  197. package/dist/prod/packages/shared-chunks/{compiler-c4yUVrl_.js → compiler-lBSssiWp.js} +1 -1
  198. package/dist/prod/packages/shared-chunks/{computed-DjCIU_ht.js → computed-DtIStxvq.js} +4 -4
  199. package/dist/prod/packages/shared-chunks/{curly-ZzX43b50.js → curly-IY06zACp.js} +4 -4
  200. package/dist/prod/packages/shared-chunks/{element-DUOVW5Ho.js → element-DgHdPZ8u.js} +5 -3
  201. package/dist/prod/packages/shared-chunks/{flags-B9qxc-pB.js → flags-BZxHQ0yn.js} +1 -1
  202. package/dist/prod/packages/shared-chunks/{get-t0-itmA-.js → get-Dago5uGl.js} +33 -36
  203. package/dist/{dev/packages/shared-chunks/get_properties-CIm8IAtP.js → prod/packages/shared-chunks/get_properties-Dg3xFpiS.js} +1 -1
  204. package/dist/prod/packages/shared-chunks/{hash-mcs3pEFO.js → hash-gEXIsSO4.js} +24 -18
  205. package/dist/prod/packages/shared-chunks/{helper-DLjV2ZZW.js → helper-DkXiTBjc.js} +21 -9
  206. package/dist/prod/packages/shared-chunks/{index-Bj71BDDA.js → index-Bf53M8eS.js} +5 -4
  207. package/dist/prod/packages/shared-chunks/{index-qDFz6Mfe.js → index-CslMfEpb.js} +110 -131
  208. package/dist/prod/packages/shared-chunks/{injected_property--eJunJph.js → injected_property-Y-FadDej.js} +1 -1
  209. package/dist/prod/packages/shared-chunks/{internal-DidurjJB.js → internal-BQ7zHrqS.js} +3 -3
  210. package/dist/prod/packages/shared-chunks/{internal-helper-DIbr1RgC.js → internal-helper-Bz1lpDXr.js} +1 -1
  211. package/dist/prod/packages/shared-chunks/{invoke-Cj5zMqHz.js → invoke-DhQ5QRp2.js} +3 -3
  212. package/dist/prod/packages/shared-chunks/{libraries-_k-4KK5_.js → libraries-DBql0hdn.js} +1 -1
  213. package/dist/prod/packages/shared-chunks/{meta-B9mldqPL.js → meta-BJtIZDir.js} +1 -1
  214. package/dist/prod/packages/shared-chunks/{normalize-D9jDJVGg.js → normalize-C_IStty9.js} +1 -1
  215. package/dist/prod/packages/shared-chunks/{or-3AxY5TPj.js → not-BOIVROuv.js} +28 -28
  216. package/dist/prod/packages/shared-chunks/{observers-CDkeR0nI.js → observers-BmobpXAF.js} +3 -3
  217. package/dist/prod/packages/shared-chunks/{on-B5NVufs_.js → on-BZHAxzdq.js} +10 -10
  218. package/dist/prod/packages/shared-chunks/{program-B7CWdS8W.js → program-BAh__OXZ.js} +2 -2
  219. package/dist/prod/packages/shared-chunks/{program-context-B8HKU7wu.js → program-context-COSioH46.js} +3 -2
  220. package/dist/prod/packages/shared-chunks/{property_get-CAFdpRyu.js → property_get-DAKgbeJX.js} +2 -2
  221. package/dist/prod/packages/shared-chunks/{property_set-BunbMFtp.js → property_set-BaQJdVfS.js} +2 -2
  222. package/dist/prod/packages/shared-chunks/{reference-BshxG6wn.js → reference-CG0yPgLy.js} +3 -3
  223. package/dist/prod/packages/shared-chunks/{rehydrate-builder-DJ8k-6fg.js → rehydrate-builder-Blt1x9MP.js} +3 -3
  224. package/dist/prod/packages/shared-chunks/{render-DkJJmoI4.js → render-Dx7lr1hR.js} +88 -88
  225. package/dist/prod/packages/shared-chunks/{rsvp-CnCSY930.js → rsvp.es-DR7yS7qg.js} +150 -154
  226. package/dist/prod/packages/shared-chunks/{serialize-builder-R3Ozg0sC.js → serialize-builder-BvAXYHTr.js} +2 -2
  227. package/dist/prod/packages/shared-chunks/{set_properties-LT3RzRmJ.js → set_properties-Qxhw4qzw.js} +2 -2
  228. package/dist/prod/packages/shared-chunks/{setup-registry-C2KfZJWI.js → setup-registry-U-6VaNQG.js} +18 -18
  229. package/dist/prod/packages/shared-chunks/{syscall-ops-BPFtDquC.js → syscall-ops-CN7STuUn.js} +1 -1
  230. package/dist/prod/packages/shared-chunks/{template-only-BtLl0uH0.js → template-only-DKNcKM5b.js} +2 -4
  231. package/dist/prod/packages/shared-chunks/{textarea-CHqL0Rdh.js → textarea-DOmZ1x0E.js} +11 -7
  232. package/dist/prod/packages/shared-chunks/{tracked-DAVrVqJl.js → tracked-B9380JtC.js} +4 -4
  233. package/dist/prod/packages/shared-chunks/{tracked-data-C83f5V5S.js → tracked-data-CHq42QHb.js} +2 -2
  234. package/dist/prod/packages/shared-chunks/{unique-id-CfHImDRV.js → unique-id-o2pS74go.js} +2 -2
  235. package/dist/prod/packages/shared-chunks/{unrecognized-url-error-DDBwfzdm.js → unrecognized-url-error-EgNrnFu_.js} +1 -1
  236. package/docs/data.json +316 -334
  237. package/package.json +6 -4
  238. package/types/stable/@ember/-internals/glimmer/index.d.ts +165 -121
  239. package/types/stable/@ember/-internals/glimmer/lib/component-managers/mount.d.ts +1 -1
  240. package/types/stable/@ember/-internals/glimmer/lib/component-managers/outlet.d.ts +1 -1
  241. package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +8 -2
  242. package/types/stable/@ember/-internals/glimmer/lib/glimmer-tracking-docs.d.ts +12 -12
  243. package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +18 -6
  244. package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +3 -1
  245. package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +65 -121
  246. package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +8 -4
  247. package/types/stable/@ember/-internals/glimmer/lib/helpers/each-in.d.ts +16 -14
  248. package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +2 -0
  249. package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +11 -7
  250. package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +23 -29
  251. package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +3 -1
  252. package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +95 -49
  253. package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +23 -54
  254. package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +6 -2
  255. package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +4 -8
  256. package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +10 -10
  257. package/types/stable/@ember/-internals/glimmer/lib/renderer.d.ts +1 -2
  258. package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +2 -0
  259. package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +2 -14
  260. package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +15 -11
  261. package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +17 -10
  262. package/types/stable/@ember/-internals/runtime/lib/mixins/target_action_support.d.ts +1 -1
  263. package/types/stable/@ember/array/index.d.ts +6 -29
  264. package/types/stable/@ember/array/lib/is-array.d.ts +35 -0
  265. package/types/stable/@ember/component/template-only.d.ts +1 -3
  266. package/types/stable/@ember/controller/index.d.ts +1 -1
  267. package/types/stable/@ember/helper/index.d.ts +0 -19
  268. package/types/stable/@ember/object/index.d.ts +4 -3
  269. package/types/stable/@ember/object/observable.d.ts +4 -0
  270. package/types/stable/@ember/reactive/collections.d.ts +0 -6
  271. package/types/stable/@ember/routing/lib/generate_controller.d.ts +1 -1
  272. package/types/stable/@ember/routing/route.d.ts +2 -2
  273. package/types/stable/@ember/routing/router-service.d.ts +20 -12
  274. package/types/stable/@glimmer/runtime/lib/component/template-only.d.ts +0 -2
  275. package/types/stable/@glimmer/runtime/lib/dom/sanitized-values.d.ts +2 -2
  276. package/types/stable/@glimmer/runtime/lib/helpers/array.d.ts +1 -1
  277. package/types/stable/@glimmer/runtime/lib/helpers/concat.d.ts +8 -3
  278. package/types/stable/@glimmer/runtime/lib/helpers/fn.d.ts +13 -7
  279. package/types/stable/@glimmer/runtime/lib/helpers/get.d.ts +21 -29
  280. package/types/stable/@glimmer/runtime/lib/helpers/hash.d.ts +1 -1
  281. package/types/stable/@glimmer/syntax/lib/get-template-locals.d.ts +1 -1
  282. package/types/stable/@glimmer/tracking/index.d.ts +12 -12
  283. package/types/stable/index.d.ts +1 -0
  284. package/dist/prod/packages/shared-chunks/{collections-C3Y8z_9v.js → collections-GpG8lT2g.js} +9 -9
@@ -1,17 +1,17 @@
1
1
  import { a as assign } from './object-utils-AijlD-JH.js';
2
2
  import { b as EMPTY_STRING_ARRAY, E as EMPTY_ARRAY, e as enumerate, r as reverse } from './array-utils-CZQxrdD3.js';
3
- import { r as VM_PRIMITIVE_OP, aF as encodeHandle, av as VM_CONCAT_OP, am as VM_GET_VARIABLE_OP, q as VM_CONSTANT_REFERENCE_OP, aq as VM_GET_PROPERTY_OP, at as VM_HAS_BLOCK_OP, as as VM_SPREAD_BLOCK_OP, E as VM_COMPILE_BLOCK_OP, au as VM_HAS_BLOCK_PARAMS_OP, aw as VM_IF_INLINE_OP, ax as VM_NOT_OP, ay as VM_GET_DYNAMIC_VAR_OP, az as VM_LOG_OP, y as VM_FETCH_OP, u as VM_PRIMITIVE_REFERENCE_OP, al as VM_HELPER_OP, v as VM_DUP_OP, ak as VM_DYNAMIC_HELPER_OP, w as VM_POP_OP, $ as VM_CAPTURE_ARGS_OP, aj as VM_CURRY_OP, aG as isSmallInt, aH as encodeImmediate, m as VM_PUSH_DYNAMIC_SCOPE_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, ar as VM_GET_BLOCK_OP, F as VM_INVOKE_YIELD_OP, l as VM_POP_SCOPE_OP, k as VM_CHILD_SCOPE_OP, an as VM_SET_VARIABLE_OP, o as VM_CONSTANT_OP, D as VM_PUSH_BLOCK_SCOPE_OP, C as VM_PUSH_SYMBOL_TABLE_OP, _ as VM_PUSH_EMPTY_ARGS_OP, Z as VM_PUSH_ARGS_OP, A as VM_ENTER_OP, I as VM_JUMP_EQ_OP, B as VM_EXIT_OP, H as VM_JUMP_UNLESS_OP, X as VM_PUSH_COMPONENT_DEFINITION_OP, x as VM_LOAD_OP, a3 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a1 as VM_CREATE_COMPONENT_OP, a2 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a8 as VM_GET_COMPONENT_SELF_OP, ap as VM_ROOT_SCOPE_OP, ao as VM_SET_BLOCK_OP, ag as VM_DID_RENDER_LAYOUT_OP, ah as VM_COMMIT_COMPONENT_TRANSACTION_OP, a0 as VM_PREPARE_ARGS_OP, ac as VM_VIRTUAL_ROOT_SCOPE_OP, ad as VM_SET_NAMED_VARIABLES_OP, ae as VM_SET_BLOCKS_OP, af as VM_INVOKE_COMPONENT_LAYOUT_OP, a4 as VM_PUT_COMPONENT_OPERATIONS_OP, N as VM_OPEN_DYNAMIC_ELEMENT_OP, a7 as VM_DID_CREATE_ELEMENT_OP, Q as VM_FLUSH_ELEMENT_OP, R as VM_CLOSE_ELEMENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, Y as VM_RESOLVE_DYNAMIC_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, aa as VM_GET_COMPONENT_LAYOUT_OP, ab as VM_POPULATE_LAYOUT_OP, a9 as VM_GET_COMPONENT_TAG_NAME_OP, L as VM_COMMENT_OP, S as VM_MODIFIER_OP, T as VM_DYNAMIC_MODIFIER_OP, U as VM_STATIC_ATTR_OP, a6 as VM_STATIC_COMPONENT_ATTR_OP, W as VM_DYNAMIC_ATTR_OP, a5 as VM_COMPONENT_ATTR_OP, M as VM_OPEN_ELEMENT_OP, ai as VM_DEBUGGER_OP, K as VM_TEXT_OP, aA as VM_DYNAMIC_CONTENT_TYPE_OP, O as VM_PUSH_REMOTE_ELEMENT_OP, P as VM_POP_REMOTE_ELEMENT_OP, J as VM_TO_BOOLEAN_OP, aB as VM_ENTER_LIST_OP, aD as VM_ITERATE_OP, aC as VM_EXIT_LIST_OP } from './syscall-ops-BPFtDquC.js';
3
+ import { r as VM_PRIMITIVE_OP, aE as encodeHandle, au as VM_CONCAT_OP, al as VM_GET_VARIABLE_OP, q as VM_CONSTANT_REFERENCE_OP, ap as VM_GET_PROPERTY_OP, as as VM_HAS_BLOCK_OP, ar as VM_SPREAD_BLOCK_OP, E as VM_COMPILE_BLOCK_OP, at as VM_HAS_BLOCK_PARAMS_OP, av as VM_IF_INLINE_OP, aw as VM_NOT_OP, ax as VM_GET_DYNAMIC_VAR_OP, ay as VM_LOG_OP, y as VM_FETCH_OP, u as VM_PRIMITIVE_REFERENCE_OP, ak as VM_HELPER_OP, v as VM_DUP_OP, aj as VM_DYNAMIC_HELPER_OP, w as VM_POP_OP, $ as VM_CAPTURE_ARGS_OP, ai as VM_CURRY_OP, aF as isSmallInt, aG as encodeImmediate, m as VM_PUSH_DYNAMIC_SCOPE_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, aq as VM_GET_BLOCK_OP, F as VM_INVOKE_YIELD_OP, l as VM_POP_SCOPE_OP, k as VM_CHILD_SCOPE_OP, am as VM_SET_VARIABLE_OP, o as VM_CONSTANT_OP, D as VM_PUSH_BLOCK_SCOPE_OP, C as VM_PUSH_SYMBOL_TABLE_OP, _ as VM_PUSH_EMPTY_ARGS_OP, Z as VM_PUSH_ARGS_OP, A as VM_ENTER_OP, I as VM_JUMP_EQ_OP, B as VM_EXIT_OP, H as VM_JUMP_UNLESS_OP, X as VM_PUSH_COMPONENT_DEFINITION_OP, x as VM_LOAD_OP, a3 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a1 as VM_CREATE_COMPONENT_OP, a2 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a8 as VM_GET_COMPONENT_SELF_OP, ao as VM_ROOT_SCOPE_OP, an as VM_SET_BLOCK_OP, ag as VM_DID_RENDER_LAYOUT_OP, ah as VM_COMMIT_COMPONENT_TRANSACTION_OP, a0 as VM_PREPARE_ARGS_OP, ac as VM_VIRTUAL_ROOT_SCOPE_OP, ad as VM_SET_NAMED_VARIABLES_OP, ae as VM_SET_BLOCKS_OP, af as VM_INVOKE_COMPONENT_LAYOUT_OP, a4 as VM_PUT_COMPONENT_OPERATIONS_OP, N as VM_OPEN_DYNAMIC_ELEMENT_OP, a7 as VM_DID_CREATE_ELEMENT_OP, Q as VM_FLUSH_ELEMENT_OP, R as VM_CLOSE_ELEMENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, Y as VM_RESOLVE_DYNAMIC_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, aa as VM_GET_COMPONENT_LAYOUT_OP, ab as VM_POPULATE_LAYOUT_OP, a9 as VM_GET_COMPONENT_TAG_NAME_OP, L as VM_COMMENT_OP, S as VM_MODIFIER_OP, T as VM_DYNAMIC_MODIFIER_OP, U as VM_STATIC_ATTR_OP, a6 as VM_STATIC_COMPONENT_ATTR_OP, W as VM_DYNAMIC_ATTR_OP, a5 as VM_COMPONENT_ATTR_OP, M as VM_OPEN_ELEMENT_OP, aA as VM_DEBUGGER_OP, K as VM_TEXT_OP, b as VM_ASSERT_SAME_OP, az as VM_DYNAMIC_CONTENT_TYPE_OP, O as VM_PUSH_REMOTE_ELEMENT_OP, P as VM_POP_REMOTE_ELEMENT_OP, J as VM_TO_BOOLEAN_OP, aB as VM_ENTER_LIST_OP, aD as VM_ITERATE_OP, aC as VM_EXIT_LIST_OP } from './syscall-ops-CN7STuUn.js';
4
4
  import { b as VM_RETURN_OP, i as isMachineOp, f as VM_PUSH_FRAME_OP, e as VM_POP_FRAME_OP, d as VM_INVOKE_VIRTUAL_OP, c as VM_JUMP_OP, a as VM_RETURN_TO_OP, V as VM_INVOKE_STATIC_OP } from './vm-ops-ImHv0Wtg.js';
5
5
  import { e as expect, u as unwrap, S as StackImpl, d as dict } from './collections-DPkjqeA3.js';
6
6
  import { i as isPresentArray } from './present-B1rrjAVM.js';
7
7
  import { a as assert } from './assert-Zqc4wiAV.js';
8
8
  import { InstructionEncoderImpl } from '../@glimmer/encoder/index.js';
9
- import { b as TYPE_SIZE, A as ARG_SHIFT, M as MACHINE_MASK, I as InternalComponentCapabilities } from './flags-B9qxc-pB.js';
9
+ import { a as TYPE_SIZE, A as ARG_SHIFT, M as MACHINE_MASK, I as InternalComponentCapabilities } from './flags-BZxHQ0yn.js';
10
10
  import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
11
11
  import { o as opcodes } from './opcodes-CplRyHl_.js';
12
12
  import { a as $v0, f as $fp, $ as $s0, g as $sp, h as $s1 } from './registers-C_W2qYHJ.js';
13
13
  import { ContentType } from '../@glimmer/vm/index.js';
14
- import { h as hasCapability } from './capabilities-CZkuOqqC.js';
14
+ import { h as hasCapability } from './capabilities-CajW4QjE.js';
15
15
 
16
16
  function isGetLikeTuple(opcode) {
17
17
  return Array.isArray(opcode) && opcode.length === 2;
@@ -1612,6 +1612,7 @@ STATEMENTS.add(opcodes.Append, (op, [, value]) => {
1612
1612
  op(VM_DYNAMIC_CONTENT_TYPE_OP);
1613
1613
  }, when => {
1614
1614
  when(ContentType.Component, () => {
1615
+ op(VM_ASSERT_SAME_OP);
1615
1616
  op(VM_RESOLVE_CURRIED_COMPONENT_OP);
1616
1617
  op(VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP);
1617
1618
  InvokeNonStaticComponent(op, {
@@ -1,6 +1,6 @@
1
1
  import { getOwner } from '../@ember/-internals/owner/index.js';
2
2
  import '../@ember/debug/index.js';
3
- import { c as computed, d as defineProperty } from './computed-CJnghmXC.js';
3
+ import { c as computed, d as defineProperty } from './computed-BPCtuOxQ.js';
4
4
  import { i as isElementDescriptor } from './decorator-B5Uh5NFI.js';
5
5
  import { assert } from '../@ember/debug/lib/assert.js';
6
6
 
@@ -2,9 +2,9 @@ import { setOwner } from '../@ember/-internals/owner/index.js';
2
2
  import { g as guidFor } from './guid-Cbq2sNV_.js';
3
3
  import '../@ember/debug/index.js';
4
4
  import { s as setComponentTemplate } from './template-R_5UMHhb.js';
5
- import { s as setInternalComponentManager } from './api-BawZUDYD.js';
6
- import { v as valueForRef, i as isConstRef, c as createConstRef } from './reference-BoPB2LfI.js';
7
- import { x as untrack } from './cache-B7dqAS38.js';
5
+ import { s as setInternalComponentManager } from './api-DuLOZMO_.js';
6
+ import { v as valueForRef, i as isConstRef, a as createConstRef } from './reference-BqOLhKFy.js';
7
+ import { u as untrack } from './cache-DGDPVCpC.js';
8
8
  import { assert } from '../@ember/debug/lib/assert.js';
9
9
 
10
10
  function NOOP() {}
@@ -1,4 +1,4 @@
1
- import { j as setInternalHelperManager } from './api-BawZUDYD.js';
1
+ import { j as setInternalHelperManager } from './api-DuLOZMO_.js';
2
2
 
3
3
  function internalHelper(helper) {
4
4
  return setInternalHelperManager(helper, {});
@@ -1,8 +1,8 @@
1
1
  import { isDestroying, isDestroyed, associateDestroyableChild } from '../@glimmer/destroyable/index.js';
2
- import { a as getInternalHelperManager, f as hasValue, h as hasDestroyable } from './api-BawZUDYD.js';
2
+ import { a as getInternalHelperManager, f as hasValue, h as hasDestroyable } from './api-DuLOZMO_.js';
3
3
  import { getOwner } from '../@glimmer/owner/index.js';
4
- import { l as createCache, r as getValue } from './cache-B7dqAS38.js';
5
- import { E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL } from './untouchable-this-B3DVwpHS.js';
4
+ import { g as createCache, h as getValue } from './cache-DGDPVCpC.js';
5
+ import { E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL } from './arguments-CDkbOqTS.js';
6
6
 
7
7
  let ARGS_CACHES = new WeakMap() ;
8
8
  function getArgs(proxy) {
@@ -1,6 +1,6 @@
1
1
  import { warn, debug } from '../@ember/debug/index.js';
2
2
  import VERSION from '../ember/version.js';
3
- import { g as get } from './property_get-CIBS9umw.js';
3
+ import { g as get } from './property_get-CRP7MFz_.js';
4
4
  import { assert } from '../@ember/debug/lib/assert.js';
5
5
 
6
6
  /**
@@ -1,4 +1,4 @@
1
- import { n as createUpdatableTag, B as unwrap, o as debug, D as DIRTY_TAG } from './cache-B7dqAS38.js';
1
+ import { b as createUpdatableTag, d as unwrap, e as debug, D as DIRTY_TAG } from './cache-DGDPVCpC.js';
2
2
 
3
3
  function isObjectLike(u) {
4
4
  return typeof u === 'object' && u !== null || typeof u === 'function';
@@ -1,23 +1,6 @@
1
1
  import { toBool } from '../@glimmer/global-context/index.js';
2
- import { a as createComputeRef, v as valueForRef } from './reference-BoPB2LfI.js';
3
- import { i as internalHelper } from './hash-BRRFQJ99.js';
4
-
5
- const and = internalHelper(({
6
- positional
7
- }) => {
8
- if (positional.length < 2) {
9
- throw new Error(`\`and\` expects at least two arguments, but received ${positional.length}.`);
10
- }
11
- return createComputeRef(() => {
12
- let last;
13
- for (let i = 0; i < positional.length; i++) {
14
- let arg = positional[i];
15
- last = arg ? valueForRef(arg) : arg;
16
- if (!toBool(last)) return last;
17
- }
18
- return last;
19
- }, null, 'and');
20
- });
2
+ import { c as createComputeRef, v as valueForRef } from './reference-BqOLhKFy.js';
3
+ import { i as internalHelper } from './hash-6NDs_5_f.js';
21
4
 
22
5
  /**
23
6
  * Performs a strict equality comparison.
@@ -31,6 +14,18 @@ function eq(left, right) {
31
14
  return left === right;
32
15
  }
33
16
 
17
+ /**
18
+ * Performs a strict inequality comparison.
19
+ *
20
+ * left !== right
21
+ */
22
+ function neq(left, right) {
23
+ if (arguments.length !== 2) {
24
+ throw new Error(`\`neq\` expects exactly two arguments, but received ${arguments.length}.`);
25
+ }
26
+ return left !== right;
27
+ }
28
+
34
29
  /**
35
30
  * Performs a greater than comparison.
36
31
  *
@@ -79,24 +74,22 @@ function lte(left, right) {
79
74
  return left <= right;
80
75
  }
81
76
 
82
- /**
83
- * Performs a strict inequality comparison.
84
- *
85
- * left !== right
86
- */
87
- function neq(left, right) {
88
- if (arguments.length !== 2) {
89
- throw new Error(`\`neq\` expects exactly two arguments, but received ${arguments.length}.`);
90
- }
91
- return left !== right;
92
- }
93
-
94
- const not = (...args) => {
95
- if (args.length !== 1) {
96
- throw new Error(`\`not\` expects exactly one argument, but received ${args.length}.`);
77
+ const and = internalHelper(({
78
+ positional
79
+ }) => {
80
+ if (positional.length < 2) {
81
+ throw new Error(`\`and\` expects at least two arguments, but received ${positional.length}.`);
97
82
  }
98
- return !toBool(args[0]);
99
- };
83
+ return createComputeRef(() => {
84
+ let last;
85
+ for (let i = 0; i < positional.length; i++) {
86
+ let arg = positional[i];
87
+ last = arg ? valueForRef(arg) : arg;
88
+ if (!toBool(last)) return last;
89
+ }
90
+ return last;
91
+ }, null, 'and');
92
+ });
100
93
 
101
94
  const or = internalHelper(({
102
95
  positional
@@ -115,4 +108,11 @@ const or = internalHelper(({
115
108
  }, null, 'or');
116
109
  });
117
110
 
111
+ const not = (...args) => {
112
+ if (args.length !== 1) {
113
+ throw new Error(`\`not\` expects exactly one argument, but received ${args.length}.`);
114
+ }
115
+ return !toBool(args[0]);
116
+ };
117
+
118
118
  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,9 +1,9 @@
1
1
  import { E as ENV } from './env-g-kaAFLN.js';
2
2
  import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';
3
3
  import { registerDestructor } from '../@glimmer/destroyable/index.js';
4
- import { z as valueForTag, y as validateTag, c as CURRENT_TAG } from './cache-B7dqAS38.js';
5
- import { a as tagMetaFor } from './meta-BmRXesrk.js';
6
- import { g as getChainTagsForKey } from './chain-tags-D6tuFUj_.js';
4
+ import { a as valueForTag, v as validateTag, k as CURRENT_TAG } from './cache-DGDPVCpC.js';
5
+ import { a as tagMetaFor } from './meta-BqC7f9Ia.js';
6
+ import { g as getChainTagsForKey } from './chain-tags-uWSImHzB.js';
7
7
  import { a as addListener, r as removeListener, s as sendEvent } from './events-6aFVjD4k.js';
8
8
 
9
9
  const AFTER_OBSERVERS = ':change';
@@ -1,8 +1,8 @@
1
- import { g as buildUntouchableThis, h as check, e as reifyNamed } from './untouchable-this-B3DVwpHS.js';
1
+ import { g as buildUntouchableThis, h as check, e as reifyNamed } from './arguments-CDkbOqTS.js';
2
2
  import { registerDestructor } from '../@glimmer/destroyable/index.js';
3
- import { k as setInternalModifierManager } from './api-BawZUDYD.js';
4
- import { v as valueForRef } from './reference-BoPB2LfI.js';
5
- import { n as createUpdatableTag } from './cache-B7dqAS38.js';
3
+ import { k as setInternalModifierManager } from './api-DuLOZMO_.js';
4
+ import { v as valueForRef } from './reference-BqOLhKFy.js';
5
+ import { b as createUpdatableTag } from './cache-DGDPVCpC.js';
6
6
 
7
7
  const untouchableContext = buildUntouchableThis('`on` modifier');
8
8
  class OnModifierState {
@@ -139,11 +139,7 @@ function addEventListener(element, eventName, callback, options) {
139
139
  For example, if you'd like to run a function on your component when a `<button>`
140
140
  in the components template is clicked you might do something like:
141
141
 
142
- ```app/components/like-post.hbs
143
- <button {{on 'click' this.saveLike}}>Like this post!</button>
144
- ```
145
-
146
- ```app/components/like-post.js
142
+ ```app/components/like-post.gjs
147
143
  import Component from '@glimmer/component';
148
144
  import { action } from '@ember/object';
149
145
 
@@ -152,6 +148,10 @@ function addEventListener(element, eventName, callback, options) {
152
148
  // someone likes your post!
153
149
  // better send a request off to your server...
154
150
  }
151
+
152
+ <template>
153
+ <button {{on 'click' this.saveLike}}>Like this post!</button>
154
+ </template>
155
155
  }
156
156
  ```
157
157
 
@@ -199,7 +199,7 @@ function addEventListener(element, eventName, callback, options) {
199
199
  properly bound to the `items-list`, but let's explore what happens if we
200
200
  left out the arrow function:
201
201
 
202
- ```app/components/like-post.js
202
+ ```app/components/like-post.gjs
203
203
  import Component from '@glimmer/component';
204
204
 
205
205
  export default class LikePostComponent extends Component {
@@ -1,5 +1,5 @@
1
1
  import { u as unwrap } from './collections-DPkjqeA3.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';
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;
@@ -1,8 +1,8 @@
1
- import { V as VM_MAIN_OP, a as VM_CONTENT_TYPE_OP, b as VM_ASSERT_SAME_OP, c as VM_APPEND_HTML_OP, d as VM_APPEND_TEXT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, g as VM_APPEND_SAFE_HTML_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP } from './syscall-ops-BPFtDquC.js';
1
+ import { V as VM_MAIN_OP, a as VM_CONTENT_TYPE_OP, b as VM_ASSERT_SAME_OP, c as VM_APPEND_HTML_OP, d as VM_APPEND_TEXT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, g as VM_APPEND_SAFE_HTML_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP } from './syscall-ops-CN7STuUn.js';
2
2
  import { V as VM_INVOKE_STATIC_OP } from './vm-ops-ImHv0Wtg.js';
3
3
  import { $ as $s0 } from './registers-C_W2qYHJ.js';
4
4
  import { ContentType } from '../@glimmer/vm/index.js';
5
- import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-CyZiGiEI.js';
5
+ import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-DaFzpTIE.js';
6
6
 
7
7
  class StdLib {
8
8
  constructor(main, trustingGuardedAppend, cautiousGuardedAppend, trustingNonDynamicAppend, cautiousNonDynamicAppend) {
@@ -54,6 +54,7 @@ function StdAppend(op, trusting, nonDynamicAppend) {
54
54
  });
55
55
  if (typeof nonDynamicAppend === 'number') {
56
56
  when(ContentType.Component, () => {
57
+ op(VM_ASSERT_SAME_OP);
57
58
  op(VM_RESOLVE_CURRIED_COMPONENT_OP);
58
59
  op(VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP);
59
60
  InvokeBareComponent(op);
@@ -1,8 +1,8 @@
1
1
  import { s as setProxy } from './is_proxy-Bzg0d4m4.js';
2
2
  import { isEmberArray } from '../@ember/array/-internals.js';
3
3
  import '../@ember/debug/index.js';
4
- import { w as track, u as isTracking, k as consumeTag } from './cache-B7dqAS38.js';
5
- import { t as tagFor } from './meta-BmRXesrk.js';
4
+ import { t as track, z as isTracking, c as consumeTag } from './cache-DGDPVCpC.js';
5
+ import { t as tagFor } from './meta-BqC7f9Ia.js';
6
6
  import { C as Cache } from './cache-qDyqAcpg.js';
7
7
  import { assert } from '../@ember/debug/lib/assert.js';
8
8
 
@@ -2,8 +2,8 @@ import { s as setWithMandatorySetter, l as lookupDescriptor } from './mandatory-
2
2
  import { t as toString } from './to-string-C7M8LBLH.js';
3
3
  import '../@ember/debug/index.js';
4
4
  import { C as COMPUTED_SETTERS } from './decorator-B5Uh5NFI.js';
5
- import { i as isPath, _ as _getPath, a as getPossibleMandatoryProxyValue } from './property_get-CIBS9umw.js';
6
- import { n as notifyPropertyChange } from './computed-CJnghmXC.js';
5
+ import { i as isPath, _ as _getPath, a as getPossibleMandatoryProxyValue } from './property_get-CRP7MFz_.js';
6
+ import { n as notifyPropertyChange } from './computed-BPCtuOxQ.js';
7
7
  import { assert } from '../@ember/debug/lib/assert.js';
8
8
 
9
9
  /**
@@ -1,6 +1,6 @@
1
- import { i as isDict, e as expect } from './collections-DPkjqeA3.js';
1
+ import { e as expect, i as isDict } from './collections-DPkjqeA3.js';
2
2
  import { setProp, getProp } from '../@glimmer/global-context/index.js';
3
- import { b as CONSTANT_TAG, I as INITIAL, y as validateTag, w as track, z as valueForTag, k as consumeTag } from './cache-B7dqAS38.js';
3
+ import { C as CONSTANT_TAG, I as INITIAL, v as validateTag, t as track, a as valueForTag, c as consumeTag } from './cache-DGDPVCpC.js';
4
4
 
5
5
  const REFERENCE = Symbol('REFERENCE');
6
6
  const CONSTANT = 0;
@@ -172,4 +172,4 @@ let createDebugAliasRef;
172
172
  };
173
173
  }
174
174
 
175
- export { FALSE_REFERENCE as F, NULL_REFERENCE as N, REFERENCE as R, TRUE_REFERENCE as T, UNDEFINED_REFERENCE as U, createComputeRef as a, isInvokableRef as b, createConstRef as c, isUpdatableRef as d, createPrimitiveRef as e, childRefFor as f, childRefFromParts as g, createDebugAliasRef as h, isConstRef as i, createInvokableRef as j, createReadOnlyRef as k, createUnboundRef as l, updateRef as u, valueForRef as v };
175
+ export { FALSE_REFERENCE as F, NULL_REFERENCE as N, REFERENCE as R, TRUE_REFERENCE as T, UNDEFINED_REFERENCE as U, createConstRef as a, isInvokableRef as b, createComputeRef as c, isUpdatableRef as d, createPrimitiveRef as e, childRefFor as f, childRefFromParts as g, createDebugAliasRef as h, isConstRef as i, createInvokableRef as j, createReadOnlyRef as k, createUnboundRef as l, updateRef as u, valueForRef as v };
@@ -1,4 +1,4 @@
1
- import { N as NewTreeBuilder, R as RemoteBlock, C as COMMENT_NODE, T as TEXT_NODE, E as ELEMENT_NODE, e as NS_SVG } from './element-builder--iTIJyCB.js';
1
+ import { N as NewTreeBuilder, R as RemoteBlock, C as COMMENT_NODE, T as TEXT_NODE, E as ELEMENT_NODE, e as NS_SVG } from './api-C0PAtEgQ.js';
2
2
  import { c as castToSimple, a as castToBrowser } from './simple-cast-DCvJLSin.js';
3
3
  import { e as expect } from './collections-DPkjqeA3.js';
4
4
  import { a as assert } from './assert-Zqc4wiAV.js';
@@ -1,11 +1,11 @@
1
1
  import { u as unwrap, e as expect, a as isIndexable, S as StackImpl } from './collections-DPkjqeA3.js';
2
2
  import { a as unwrapHandle } from './template-BRrQR6KS.js';
3
- import { v as valueForRef, f as childRefFor, U as UNDEFINED_REFERENCE, a as createComputeRef, T as TRUE_REFERENCE, F as FALSE_REFERENCE, i as isConstRef, u as updateRef, c as createConstRef } from './reference-BoPB2LfI.js';
4
- import { w as track, U as UPDATE_TAG, o as debug, v as resetTracking, g as beginTrackFrame, p as endTrackFrame } from './cache-B7dqAS38.js';
3
+ import { U as UNDEFINED_REFERENCE, c as createComputeRef, v as valueForRef, f as childRefFor, T as TRUE_REFERENCE, F as FALSE_REFERENCE, i as isConstRef, u as updateRef, a as createConstRef } from './reference-BqOLhKFy.js';
4
+ import { t as track, U as UPDATE_TAG, e as debug, B as resetTracking, o as beginTrackFrame, s as endTrackFrame } from './cache-DGDPVCpC.js';
5
5
  import { a as assert } from './assert-Zqc4wiAV.js';
6
- import { P as ProgramImpl } from './program-DzAfcWFj.js';
7
- import { A as APPEND_OPCODES, D as DebugRenderTreeImpl, i as isArgumentError, j as isCurriedType, d as curry, h as check, k as resolveCurriedValue, f as reifyPositional, l as AssertFilter, V as VMArgumentsImpl, m as externs, J as JumpIfNotModifiedOpcode, B as BeginTrackFrameOpcode, n as EndTrackFrameOpcode } from './untouchable-this-B3DVwpHS.js';
8
- import { B as BLACKLIST_TABLE, f as DOMOperations, D as DOMTreeConstruction, N as NewTreeBuilder } from './element-builder--iTIJyCB.js';
6
+ import { P as ProgramImpl } from './program-DlgjqLa6.js';
7
+ import { D as DebugRenderTreeImpl, i as isArgumentError, j as isCurriedType, d as curry, A as APPEND_OPCODES, h as check, k as resolveCurriedValue, f as reifyPositional, l as AssertFilter, V as VMArgumentsImpl, m as externs, J as JumpIfNotModifiedOpcode, B as BeginTrackFrameOpcode, n as EndTrackFrameOpcode } from './arguments-CDkbOqTS.js';
8
+ import { B as BLACKLIST_TABLE, f as DOMOperations, D as DOMTreeConstruction, N as NewTreeBuilder } from './api-C0PAtEgQ.js';
9
9
  import { a as assign } from './object-utils-AijlD-JH.js';
10
10
  import { associateDestroyableChild, _hasDestroyableChildren, destroy, destroyChildren, registerDestructor } from '../@glimmer/destroyable/index.js';
11
11
  import { toBool, debugAssert, assertGlobalContextWasSet } from '../@glimmer/global-context/index.js';
@@ -14,91 +14,12 @@ import { r as reverse } from './array-utils-CZQxrdD3.js';
14
14
  import { a as $v0, d as $pc, e as $ra, f as $fp, g as $sp, i as isLowLevelRegister } from './registers-C_W2qYHJ.js';
15
15
  import { a as VM_RETURN_TO_OP, b as VM_RETURN_OP, c as VM_JUMP_OP, d as VM_INVOKE_VIRTUAL_OP, V as VM_INVOKE_STATIC_OP, e as VM_POP_FRAME_OP, f as VM_PUSH_FRAME_OP } from './vm-ops-ImHv0Wtg.js';
16
16
  import { a as CURRIED_COMPONENT, b as CURRIED_HELPER } from './curried-BZnYakIg.js';
17
- import { ai as VM_DEBUGGER_OP, p as decodeHandle, aj as VM_CURRY_OP, ak as VM_DYNAMIC_HELPER_OP, al as VM_HELPER_OP, am as VM_GET_VARIABLE_OP, an as VM_SET_VARIABLE_OP, ao as VM_SET_BLOCK_OP, ap as VM_ROOT_SCOPE_OP, aq as VM_GET_PROPERTY_OP, ar as VM_GET_BLOCK_OP, as as VM_SPREAD_BLOCK_OP, at as VM_HAS_BLOCK_OP, au as VM_HAS_BLOCK_PARAMS_OP, av as VM_CONCAT_OP, aw as VM_IF_INLINE_OP, ax as VM_NOT_OP, ay as VM_GET_DYNAMIC_VAR_OP, az as VM_LOG_OP, a as VM_CONTENT_TYPE_OP, aA as VM_DYNAMIC_CONTENT_TYPE_OP, c as VM_APPEND_HTML_OP, g as VM_APPEND_SAFE_HTML_OP, d as VM_APPEND_TEXT_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP, aB as VM_ENTER_LIST_OP, aC as VM_EXIT_LIST_OP, aD as VM_ITERATE_OP } from './syscall-ops-BPFtDquC.js';
17
+ import { ai as VM_CURRY_OP, p as decodeHandle, aj as VM_DYNAMIC_HELPER_OP, ak as VM_HELPER_OP, al as VM_GET_VARIABLE_OP, am as VM_SET_VARIABLE_OP, an as VM_SET_BLOCK_OP, ao as VM_ROOT_SCOPE_OP, ap as VM_GET_PROPERTY_OP, aq as VM_GET_BLOCK_OP, ar as VM_SPREAD_BLOCK_OP, as as VM_HAS_BLOCK_OP, at as VM_HAS_BLOCK_PARAMS_OP, au as VM_CONCAT_OP, av as VM_IF_INLINE_OP, aw as VM_NOT_OP, ax as VM_GET_DYNAMIC_VAR_OP, ay as VM_LOG_OP, a as VM_CONTENT_TYPE_OP, az as VM_DYNAMIC_CONTENT_TYPE_OP, c as VM_APPEND_HTML_OP, g as VM_APPEND_SAFE_HTML_OP, d as VM_APPEND_TEXT_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP, aA as VM_DEBUGGER_OP, aB as VM_ENTER_LIST_OP, aC as VM_EXIT_LIST_OP, aD as VM_ITERATE_OP } from './syscall-ops-CN7STuUn.js';
18
18
  import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
19
- import { a as getInternalHelperManager, c as hasInternalComponentManager, d as hasInternalHelperManager } from './api-BawZUDYD.js';
19
+ import { a as getInternalHelperManager, c as hasInternalComponentManager, d as hasInternalHelperManager } from './api-DuLOZMO_.js';
20
20
  import { ContentType } from '../@glimmer/vm/index.js';
21
21
  import { b as isEmpty, d as isString, s as shouldCoerce, i as isSafeString, e as isFragment, f as isNode, m as move, c as clear } from './normalize-CKySQVU7.js';
22
22
 
23
- // Allow the contents of `debugCallback` without extra annotations
24
- /* eslint-disable @typescript-eslint/no-unused-expressions */
25
-
26
- function debugCallback(context, get) {
27
- // eslint-disable-next-line no-console
28
- console.info('Use `context`, and `get(<path>)` to debug this template.');
29
-
30
- // for example...
31
- context === get('this');
32
-
33
- // eslint-disable-next-line no-debugger
34
- debugger;
35
- }
36
- let callback = debugCallback;
37
-
38
- // For testing purposes
39
- function setDebuggerCallback(cb) {
40
- callback = cb;
41
- }
42
- function resetDebuggerCallback() {
43
- callback = debugCallback;
44
- }
45
- class ScopeInspector {
46
- #symbols;
47
- constructor(scope, symbols) {
48
- this.scope = scope;
49
- this.#symbols = symbols;
50
- }
51
- get(path) {
52
- let {
53
- scope
54
- } = this;
55
- let symbols = this.#symbols;
56
- let parts = path.split('.');
57
- let [head, ...tail] = path.split('.');
58
- let ref;
59
- if (head === 'this') {
60
- ref = scope.getSelf();
61
- } else if (symbols.locals[head]) {
62
- ref = unwrap(scope.getSymbol(symbols.locals[head]));
63
- } else {
64
- ref = this.scope.getSelf();
65
- tail = parts;
66
- }
67
- return tail.reduce((r, part) => childRefFor(r, part), ref);
68
- }
69
- }
70
- APPEND_OPCODES.add(VM_DEBUGGER_OP, (vm, {
71
- op1: _debugInfo
72
- }) => {
73
- let debuggerInfo = vm.constants.getValue(decodeHandle(_debugInfo));
74
- let inspector = new ScopeInspector(vm.scope(), debuggerInfo);
75
- callback(valueForRef(vm.getSelf()), path => valueForRef(inspector.get(path)));
76
- });
77
-
78
- ['b', 'big', 'blockquote', 'body', 'br', 'center', 'code', 'dd', 'div', 'dl', 'dt', 'em', 'embed', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'i', 'img', 'li', 'listing', 'main', 'meta', 'nobr', 'ol', 'p', 'pre', 'ruby', 's', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'table', 'tt', 'u', 'ul', 'var'].forEach(tag => BLACKLIST_TABLE[tag] = 1);
79
- const WHITESPACE = /[\t\n\v\f\r \xa0\u{1680}\u{180e}\u{2000}-\u{200a}\u{2028}\u{2029}\u{202f}\u{205f}\u{3000}\u{feff}]/u;
80
- function isWhitespace(string) {
81
- return WHITESPACE.test(string);
82
- }
83
- class DOMChangesImpl extends DOMOperations {
84
- namespace;
85
- constructor(document) {
86
- super(document);
87
- this.document = document;
88
- this.namespace = null;
89
- }
90
- setAttribute(element, name, value) {
91
- element.setAttribute(name, value);
92
- }
93
- removeAttribute(element, name) {
94
- element.removeAttribute(name);
95
- }
96
- insertAfter(element, node, reference) {
97
- this.insertBefore(element, node, reference.nextSibling);
98
- }
99
- }
100
- const DOMChanges = DOMChangesImpl;
101
-
102
23
  class DynamicScopeImpl {
103
24
  bucket;
104
25
  constructor(bucket) {
@@ -202,6 +123,30 @@ class ScopeImpl {
202
123
  }
203
124
  }
204
125
 
126
+ ['b', 'big', 'blockquote', 'body', 'br', 'center', 'code', 'dd', 'div', 'dl', 'dt', 'em', 'embed', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'i', 'img', 'li', 'listing', 'main', 'meta', 'nobr', 'ol', 'p', 'pre', 'ruby', 's', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'table', 'tt', 'u', 'ul', 'var'].forEach(tag => BLACKLIST_TABLE[tag] = 1);
127
+ const WHITESPACE = /[\t\n\v\f\r \xa0\u{1680}\u{180e}\u{2000}-\u{200a}\u{2028}\u{2029}\u{202f}\u{205f}\u{3000}\u{feff}]/u;
128
+ function isWhitespace(string) {
129
+ return WHITESPACE.test(string);
130
+ }
131
+ class DOMChangesImpl extends DOMOperations {
132
+ namespace;
133
+ constructor(document) {
134
+ super(document);
135
+ this.document = document;
136
+ this.namespace = null;
137
+ }
138
+ setAttribute(element, name, value) {
139
+ element.setAttribute(name, value);
140
+ }
141
+ removeAttribute(element, name) {
142
+ element.removeAttribute(name);
143
+ }
144
+ insertAfter(element, node, reference) {
145
+ this.insertBefore(element, node, reference.nextSibling);
146
+ }
147
+ }
148
+ const DOMChanges = DOMChangesImpl;
149
+
205
150
  const TRANSACTION = Symbol('TRANSACTION');
206
151
  class TransactionImpl {
207
152
  scheduledInstallModifiers = [];
@@ -727,6 +672,61 @@ APPEND_OPCODES.add(VM_APPEND_NODE_OP, vm => {
727
672
  vm.tree().appendDynamicNode(value);
728
673
  });
729
674
 
675
+ // Allow the contents of `debugCallback` without extra annotations
676
+ /* eslint-disable @typescript-eslint/no-unused-expressions */
677
+
678
+ function debugCallback(context, get) {
679
+ // eslint-disable-next-line no-console
680
+ console.info('Use `context`, and `get(<path>)` to debug this template.');
681
+
682
+ // for example...
683
+ context === get('this');
684
+
685
+ // eslint-disable-next-line no-debugger
686
+ debugger;
687
+ }
688
+ let callback = debugCallback;
689
+
690
+ // For testing purposes
691
+ function setDebuggerCallback(cb) {
692
+ callback = cb;
693
+ }
694
+ function resetDebuggerCallback() {
695
+ callback = debugCallback;
696
+ }
697
+ class ScopeInspector {
698
+ #symbols;
699
+ constructor(scope, symbols) {
700
+ this.scope = scope;
701
+ this.#symbols = symbols;
702
+ }
703
+ get(path) {
704
+ let {
705
+ scope
706
+ } = this;
707
+ let symbols = this.#symbols;
708
+ let parts = path.split('.');
709
+ let [head, ...tail] = path.split('.');
710
+ let ref;
711
+ if (head === 'this') {
712
+ ref = scope.getSelf();
713
+ } else if (symbols.locals[head]) {
714
+ ref = unwrap(scope.getSymbol(symbols.locals[head]));
715
+ } else {
716
+ ref = this.scope.getSelf();
717
+ tail = parts;
718
+ }
719
+ return tail.reduce((r, part) => childRefFor(r, part), ref);
720
+ }
721
+ }
722
+ APPEND_OPCODES.add(VM_DEBUGGER_OP, (vm, {
723
+ op1: _debugInfo
724
+ }) => {
725
+ let debuggerInfo = vm.constants.getValue(decodeHandle(_debugInfo));
726
+ let inspector = new ScopeInspector(vm.scope(), debuggerInfo);
727
+ callback(valueForRef(vm.getSelf()), path => valueForRef(inspector.get(path)));
728
+ });
729
+
730
730
  APPEND_OPCODES.add(VM_ENTER_LIST_OP, (vm, {
731
731
  op1: relativeStart,
732
732
  op2: elseTarget