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.
- package/README.md +0 -1
- package/blueprints/-addon-import.js +4 -6
- package/blueprints/-utils.js +6 -9
- package/build-metadata.json +3 -3
- package/dist/dev/packages/@ember/-internals/glimmer/index.js +11 -11
- package/dist/dev/packages/@ember/-internals/metal/index.js +15 -15
- package/dist/dev/packages/@ember/-internals/routing/index.js +3 -3
- package/dist/dev/packages/@ember/-internals/runtime/index.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +7 -7
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
- package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
- package/dist/dev/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
- package/dist/dev/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
- package/dist/dev/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
- package/dist/dev/packages/@ember/application/index.js +5 -6
- package/dist/dev/packages/@ember/application/instance.js +3 -3
- package/dist/dev/packages/@ember/application/namespace.js +1 -1
- package/dist/dev/packages/@ember/array/index.js +10 -64
- package/dist/dev/packages/@ember/array/lib/is-array.js +71 -0
- package/dist/dev/packages/@ember/array/proxy.js +8 -8
- package/dist/dev/packages/@ember/component/helper.js +1 -1
- package/dist/dev/packages/@ember/component/index.js +18 -12
- package/dist/dev/packages/@ember/component/template-only.js +1 -1
- package/dist/dev/packages/@ember/controller/index.js +3 -3
- package/dist/dev/packages/@ember/debug/data-adapter.js +3 -3
- package/dist/dev/packages/@ember/engine/index.js +5 -5
- package/dist/dev/packages/@ember/engine/instance.js +1 -1
- package/dist/dev/packages/@ember/helper/index.js +8 -27
- package/dist/dev/packages/@ember/modifier/index.js +2 -2
- package/dist/dev/packages/@ember/modifier/on.js +1 -1
- package/dist/dev/packages/@ember/object/compat.js +2 -2
- package/dist/dev/packages/@ember/object/computed.js +2 -2
- package/dist/dev/packages/@ember/object/core.js +4 -4
- package/dist/dev/packages/@ember/object/index.js +28 -23
- package/dist/dev/packages/@ember/object/lib/computed/computed_macros.js +4 -4
- package/dist/dev/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -2
- package/dist/dev/packages/@ember/object/mixin.js +2 -2
- package/dist/dev/packages/@ember/object/observable.js +6 -6
- package/dist/dev/packages/@ember/object/observers.js +1 -1
- package/dist/dev/packages/@ember/object/promise-proxy-mixin.js +3 -3
- package/dist/dev/packages/@ember/reactive/collections.js +153 -153
- package/dist/dev/packages/@ember/renderer/index.js +1 -1
- package/dist/dev/packages/@ember/routing/-internals.js +3 -3
- package/dist/dev/packages/@ember/routing/index.js +12 -8
- package/dist/dev/packages/@ember/routing/lib/generate_controller.js +2 -3
- package/dist/dev/packages/@ember/routing/lib/routing-service.js +4 -4
- package/dist/dev/packages/@ember/routing/lib/utils.js +3 -3
- package/dist/dev/packages/@ember/routing/route.js +11 -11
- package/dist/dev/packages/@ember/routing/router-service.js +24 -17
- package/dist/dev/packages/@ember/routing/router.js +5 -5
- package/dist/dev/packages/@ember/runloop/index.js +1 -1
- package/dist/dev/packages/@ember/service/index.js +1 -1
- package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +3 -3
- package/dist/dev/packages/@ember/template-compiler/lib/template.js +1 -1
- package/dist/dev/packages/@ember/template-factory/index.js +1 -1
- package/dist/dev/packages/@ember/utils/lib/is_empty.js +1 -1
- package/dist/dev/packages/@glimmer/encoder/index.js +1 -1
- package/dist/dev/packages/@glimmer/manager/index.js +4 -4
- package/dist/dev/packages/@glimmer/node/index.js +2 -2
- package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/dev/packages/@glimmer/program/index.js +7 -7
- package/dist/dev/packages/@glimmer/reference/index.js +3 -3
- package/dist/dev/packages/@glimmer/runtime/index.js +12 -12
- package/dist/dev/packages/@glimmer/tracking/index.js +2 -2
- package/dist/dev/packages/@glimmer/tracking/primitives/cache/index.js +1 -1
- package/dist/dev/packages/@glimmer/validator/index.js +3 -3
- package/dist/dev/packages/@glimmer/vm/index.js +1 -1
- package/dist/dev/packages/ember/version.js +1 -1
- package/dist/dev/packages/router_js/index.js +2 -2
- package/dist/dev/packages/rsvp/index.js +2281 -1
- package/dist/dev/packages/shared-chunks/{alias-ZcMQckQV.js → alias-DpqL1qx6.js} +6 -6
- package/dist/dev/packages/shared-chunks/{api-BAmlf_CN.js → api-BlZDPg1n.js} +5 -5
- package/dist/dev/packages/shared-chunks/{element-builder--iTIJyCB.js → api-C0PAtEgQ.js} +137 -118
- package/dist/dev/packages/shared-chunks/{api-BawZUDYD.js → api-DuLOZMO_.js} +3 -3
- package/dist/dev/packages/shared-chunks/{args-proxy-BNLuRFlO.js → args-proxy-CS5Brs3_.js} +2 -2
- package/dist/dev/packages/shared-chunks/{untouchable-this-B3DVwpHS.js → arguments-CDkbOqTS.js} +230 -230
- package/dist/dev/packages/shared-chunks/{array-Bh_kUjzy.js → array-CVEnNWng.js} +1 -1
- package/dist/dev/packages/shared-chunks/{cache-B7dqAS38.js → cache-DGDPVCpC.js} +1 -2
- package/dist/dev/packages/shared-chunks/{capabilities-CZkuOqqC.js → capabilities-CajW4QjE.js} +1 -1
- package/dist/dev/packages/shared-chunks/{chain-tags-D6tuFUj_.js → chain-tags-uWSImHzB.js} +3 -3
- package/dist/dev/packages/shared-chunks/{computed-CJnghmXC.js → computed-BPCtuOxQ.js} +4 -4
- package/dist/dev/packages/shared-chunks/{curly-BBzF_bI8.js → curly-Ei5G8jhk.js} +4 -4
- package/dist/dev/packages/shared-chunks/{element-DQJOvSlQ.js → element-BYLB-q7a.js} +5 -3
- package/dist/dev/packages/shared-chunks/{flags-B9qxc-pB.js → flags-BZxHQ0yn.js} +1 -1
- package/dist/dev/packages/shared-chunks/{get-D5b5QlqE.js → get-6I3sjd-I.js} +32 -35
- package/dist/{prod/packages/shared-chunks/get_properties-Nn08mLAH.js → dev/packages/shared-chunks/get_properties-Cm2sWt5f.js} +1 -1
- package/dist/dev/packages/shared-chunks/{hash-BRRFQJ99.js → hash-6NDs_5_f.js} +18 -12
- package/dist/dev/packages/shared-chunks/{helper-Do7NCZHI.js → helper-DIj85_-f.js} +21 -9
- package/dist/dev/packages/shared-chunks/{index-CwnQYqK5.js → index-B3pPx1fL.js} +111 -132
- package/dist/dev/packages/shared-chunks/{index-CyZiGiEI.js → index-DaFzpTIE.js} +4 -3
- package/dist/dev/packages/shared-chunks/{injected_property-B4T-FzZZ.js → injected_property-CbBLr5jt.js} +1 -1
- package/dist/dev/packages/shared-chunks/{internal-CAL-jHZt.js → internal-DTOXyEGM.js} +3 -3
- package/dist/dev/packages/shared-chunks/{internal-helper-Ez7zbEIa.js → internal-helper-CKrni0b_.js} +1 -1
- package/dist/dev/packages/shared-chunks/{invoke-B8M5fQQS.js → invoke-d9sqa50M.js} +3 -3
- package/dist/dev/packages/shared-chunks/{libraries-CHBwbR72.js → libraries-DwffpMGE.js} +1 -1
- package/dist/dev/packages/shared-chunks/{meta-BmRXesrk.js → meta-BqC7f9Ia.js} +1 -1
- package/dist/dev/packages/shared-chunks/{or-O0eJQ4K-.js → not-DYh6AY9Z.js} +36 -36
- package/dist/dev/packages/shared-chunks/{observers-C2DurkLG.js → observers-DMlX2nCi.js} +3 -3
- package/dist/dev/packages/shared-chunks/{on-BueSMv9L.js → on-DlF0Wy7P.js} +10 -10
- package/dist/dev/packages/shared-chunks/{program-DzAfcWFj.js → program-DlgjqLa6.js} +1 -1
- package/dist/dev/packages/shared-chunks/{program-context-CadjldRr.js → program-context-Dq8xN2HI.js} +3 -2
- package/dist/dev/packages/shared-chunks/{property_get-CIBS9umw.js → property_get-CRP7MFz_.js} +2 -2
- package/dist/dev/packages/shared-chunks/{property_set-D3PKyisF.js → property_set-qCUylPEK.js} +2 -2
- package/dist/dev/packages/shared-chunks/{reference-BoPB2LfI.js → reference-BqOLhKFy.js} +3 -3
- package/dist/dev/packages/shared-chunks/{rehydrate-builder-DCyIgnCR.js → rehydrate-builder-C6k1XhET.js} +1 -1
- package/dist/dev/packages/shared-chunks/{render-CpKaO-BO.js → render-87_sKZ_k.js} +86 -86
- package/dist/dev/packages/shared-chunks/{rsvp-CnCSY930.js → rsvp.es-DR7yS7qg.js} +150 -154
- package/dist/dev/packages/shared-chunks/{serialize-builder-DxgGRvH_.js → serialize-builder-BlxBjwO-.js} +1 -1
- package/dist/dev/packages/shared-chunks/{set_properties-BghuuGJx.js → set_properties-C4TSebH6.js} +2 -2
- package/dist/dev/packages/shared-chunks/{setup-registry-BC5VMvei.js → setup-registry-9DCmHTFF.js} +18 -18
- package/dist/dev/packages/shared-chunks/{syscall-ops-BPFtDquC.js → syscall-ops-CN7STuUn.js} +1 -1
- package/dist/dev/packages/shared-chunks/{template-only-BqOt8bDl.js → template-only-Cu639ICT.js} +2 -4
- package/dist/dev/packages/shared-chunks/{textarea-WSlUEr0y.js → textarea-C4lYkaHj.js} +11 -7
- package/dist/dev/packages/shared-chunks/{tracked-CKE4wnE6.js → tracked-DEyf0T_X.js} +4 -4
- package/dist/dev/packages/shared-chunks/{tracked-data-CGnA4ytZ.js → tracked-data-DgqqRdYO.js} +2 -2
- package/dist/dev/packages/shared-chunks/{unique-id-CgmHQiwi.js → unique-id-DQOhouG1.js} +2 -2
- package/dist/dev/packages/shared-chunks/{unrecognized-url-error-B3wUTorp.js → unrecognized-url-error-BJHjL30Q.js} +1 -1
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +11 -11
- package/dist/prod/packages/@ember/-internals/metal/index.js +15 -15
- package/dist/prod/packages/@ember/-internals/routing/index.js +3 -3
- package/dist/prod/packages/@ember/-internals/runtime/index.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +7 -7
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -1
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -3
- package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -1
- package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -2
- package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
- package/dist/prod/packages/@ember/application/index.js +5 -6
- package/dist/prod/packages/@ember/application/instance.js +3 -3
- package/dist/prod/packages/@ember/application/namespace.js +1 -1
- package/dist/prod/packages/@ember/array/index.js +11 -58
- package/dist/prod/packages/@ember/array/lib/is-array.js +64 -0
- package/dist/prod/packages/@ember/array/proxy.js +8 -8
- package/dist/prod/packages/@ember/component/helper.js +1 -1
- package/dist/prod/packages/@ember/component/index.js +18 -12
- package/dist/prod/packages/@ember/component/template-only.js +1 -1
- package/dist/prod/packages/@ember/controller/index.js +3 -3
- package/dist/prod/packages/@ember/debug/data-adapter.js +3 -3
- package/dist/prod/packages/@ember/engine/index.js +5 -5
- package/dist/prod/packages/@ember/engine/instance.js +1 -1
- package/dist/prod/packages/@ember/helper/index.js +8 -27
- package/dist/prod/packages/@ember/modifier/index.js +2 -2
- package/dist/prod/packages/@ember/modifier/on.js +1 -1
- package/dist/prod/packages/@ember/object/compat.js +2 -2
- package/dist/prod/packages/@ember/object/computed.js +2 -2
- package/dist/prod/packages/@ember/object/core.js +4 -4
- package/dist/prod/packages/@ember/object/index.js +28 -23
- package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +4 -4
- package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -2
- package/dist/prod/packages/@ember/object/mixin.js +2 -2
- package/dist/prod/packages/@ember/object/observable.js +6 -6
- package/dist/prod/packages/@ember/object/observers.js +1 -1
- package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +3 -3
- package/dist/prod/packages/@ember/reactive/collections.js +153 -153
- package/dist/prod/packages/@ember/renderer/index.js +1 -1
- package/dist/prod/packages/@ember/routing/index.js +12 -8
- package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -2
- package/dist/prod/packages/@ember/routing/lib/routing-service.js +4 -4
- package/dist/prod/packages/@ember/routing/lib/utils.js +3 -3
- package/dist/prod/packages/@ember/routing/route.js +11 -11
- package/dist/prod/packages/@ember/routing/router-service.js +24 -17
- package/dist/prod/packages/@ember/routing/router.js +5 -5
- package/dist/prod/packages/@ember/runloop/index.js +1 -1
- package/dist/prod/packages/@ember/service/index.js +1 -1
- package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +3 -3
- package/dist/prod/packages/@ember/template-compiler/lib/template.js +2 -2
- package/dist/prod/packages/@ember/template-factory/index.js +1 -1
- package/dist/prod/packages/@ember/utils/lib/is_empty.js +1 -1
- package/dist/prod/packages/@glimmer/encoder/index.js +1 -1
- package/dist/prod/packages/@glimmer/manager/index.js +4 -4
- package/dist/prod/packages/@glimmer/node/index.js +3 -3
- package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/prod/packages/@glimmer/program/index.js +8 -8
- package/dist/prod/packages/@glimmer/reference/index.js +4 -4
- package/dist/prod/packages/@glimmer/runtime/index.js +13 -13
- package/dist/prod/packages/@glimmer/tracking/index.js +2 -2
- package/dist/prod/packages/@glimmer/tracking/primitives/cache/index.js +1 -1
- package/dist/prod/packages/@glimmer/util/index.js +2 -2
- package/dist/prod/packages/@glimmer/validator/index.js +3 -3
- package/dist/prod/packages/@glimmer/vm/index.js +1 -1
- package/dist/prod/packages/ember/version.js +1 -1
- package/dist/prod/packages/ember-template-compiler/index.js +2 -2
- package/dist/prod/packages/router_js/index.js +2 -2
- package/dist/prod/packages/rsvp/index.js +2281 -1
- package/dist/prod/packages/shared-chunks/{alias-DBW_V5vD.js → alias-Bod6qdNp.js} +6 -6
- package/dist/prod/packages/shared-chunks/{api-CM1trl_4.js → api-B_poQGXS.js} +5 -5
- package/dist/prod/packages/shared-chunks/{element-builder-CnlTPNyw.js → api-CQexacBn.js} +137 -118
- package/dist/prod/packages/shared-chunks/{api-zh_k31vb.js → api-DlJKfm_f.js} +3 -3
- package/dist/prod/packages/shared-chunks/{args-proxy-BDXbXCF9.js → args-proxy-CCoFtYLS.js} +2 -2
- package/dist/prod/packages/shared-chunks/{debug-render-tree-CF5O4-WI.js → arguments-BzAkZVBa.js} +193 -193
- package/dist/prod/packages/shared-chunks/{array-D6Couewv.js → array-BzReKMeW.js} +1 -1
- package/dist/prod/packages/shared-chunks/{cache-BIlOoPA7.js → cache-CofLhaS4.js} +1 -2
- package/dist/prod/packages/shared-chunks/{capabilities-_5e35539.js → capabilities-BuVYh-vx.js} +1 -1
- package/dist/prod/packages/shared-chunks/{chain-tags-C9rFtQ_x.js → chain-tags-B2J7DsxO.js} +3 -3
- package/dist/prod/packages/shared-chunks/{compiler-c4yUVrl_.js → compiler-lBSssiWp.js} +1 -1
- package/dist/prod/packages/shared-chunks/{computed-DjCIU_ht.js → computed-DtIStxvq.js} +4 -4
- package/dist/prod/packages/shared-chunks/{curly-ZzX43b50.js → curly-IY06zACp.js} +4 -4
- package/dist/prod/packages/shared-chunks/{element-DUOVW5Ho.js → element-DgHdPZ8u.js} +5 -3
- package/dist/prod/packages/shared-chunks/{flags-B9qxc-pB.js → flags-BZxHQ0yn.js} +1 -1
- package/dist/prod/packages/shared-chunks/{get-t0-itmA-.js → get-Dago5uGl.js} +33 -36
- package/dist/{dev/packages/shared-chunks/get_properties-CIm8IAtP.js → prod/packages/shared-chunks/get_properties-Dg3xFpiS.js} +1 -1
- package/dist/prod/packages/shared-chunks/{hash-mcs3pEFO.js → hash-gEXIsSO4.js} +24 -18
- package/dist/prod/packages/shared-chunks/{helper-DLjV2ZZW.js → helper-DkXiTBjc.js} +21 -9
- package/dist/prod/packages/shared-chunks/{index-Bj71BDDA.js → index-Bf53M8eS.js} +5 -4
- package/dist/prod/packages/shared-chunks/{index-qDFz6Mfe.js → index-CslMfEpb.js} +110 -131
- package/dist/prod/packages/shared-chunks/{injected_property--eJunJph.js → injected_property-Y-FadDej.js} +1 -1
- package/dist/prod/packages/shared-chunks/{internal-DidurjJB.js → internal-BQ7zHrqS.js} +3 -3
- package/dist/prod/packages/shared-chunks/{internal-helper-DIbr1RgC.js → internal-helper-Bz1lpDXr.js} +1 -1
- package/dist/prod/packages/shared-chunks/{invoke-Cj5zMqHz.js → invoke-DhQ5QRp2.js} +3 -3
- package/dist/prod/packages/shared-chunks/{libraries-_k-4KK5_.js → libraries-DBql0hdn.js} +1 -1
- package/dist/prod/packages/shared-chunks/{meta-B9mldqPL.js → meta-BJtIZDir.js} +1 -1
- package/dist/prod/packages/shared-chunks/{normalize-D9jDJVGg.js → normalize-C_IStty9.js} +1 -1
- package/dist/prod/packages/shared-chunks/{or-3AxY5TPj.js → not-BOIVROuv.js} +28 -28
- package/dist/prod/packages/shared-chunks/{observers-CDkeR0nI.js → observers-BmobpXAF.js} +3 -3
- package/dist/prod/packages/shared-chunks/{on-B5NVufs_.js → on-BZHAxzdq.js} +10 -10
- package/dist/prod/packages/shared-chunks/{program-B7CWdS8W.js → program-BAh__OXZ.js} +2 -2
- package/dist/prod/packages/shared-chunks/{program-context-B8HKU7wu.js → program-context-COSioH46.js} +3 -2
- package/dist/prod/packages/shared-chunks/{property_get-CAFdpRyu.js → property_get-DAKgbeJX.js} +2 -2
- package/dist/prod/packages/shared-chunks/{property_set-BunbMFtp.js → property_set-BaQJdVfS.js} +2 -2
- package/dist/prod/packages/shared-chunks/{reference-BshxG6wn.js → reference-CG0yPgLy.js} +3 -3
- package/dist/prod/packages/shared-chunks/{rehydrate-builder-DJ8k-6fg.js → rehydrate-builder-Blt1x9MP.js} +3 -3
- package/dist/prod/packages/shared-chunks/{render-DkJJmoI4.js → render-Dx7lr1hR.js} +88 -88
- package/dist/prod/packages/shared-chunks/{rsvp-CnCSY930.js → rsvp.es-DR7yS7qg.js} +150 -154
- package/dist/prod/packages/shared-chunks/{serialize-builder-R3Ozg0sC.js → serialize-builder-BvAXYHTr.js} +2 -2
- package/dist/prod/packages/shared-chunks/{set_properties-LT3RzRmJ.js → set_properties-Qxhw4qzw.js} +2 -2
- package/dist/prod/packages/shared-chunks/{setup-registry-C2KfZJWI.js → setup-registry-U-6VaNQG.js} +18 -18
- package/dist/prod/packages/shared-chunks/{syscall-ops-BPFtDquC.js → syscall-ops-CN7STuUn.js} +1 -1
- package/dist/prod/packages/shared-chunks/{template-only-BtLl0uH0.js → template-only-DKNcKM5b.js} +2 -4
- package/dist/prod/packages/shared-chunks/{textarea-CHqL0Rdh.js → textarea-DOmZ1x0E.js} +11 -7
- package/dist/prod/packages/shared-chunks/{tracked-DAVrVqJl.js → tracked-B9380JtC.js} +4 -4
- package/dist/prod/packages/shared-chunks/{tracked-data-C83f5V5S.js → tracked-data-CHq42QHb.js} +2 -2
- package/dist/prod/packages/shared-chunks/{unique-id-CfHImDRV.js → unique-id-o2pS74go.js} +2 -2
- package/dist/prod/packages/shared-chunks/{unrecognized-url-error-DDBwfzdm.js → unrecognized-url-error-EgNrnFu_.js} +1 -1
- package/docs/data.json +316 -334
- package/package.json +6 -4
- package/types/stable/@ember/-internals/glimmer/index.d.ts +165 -121
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/mount.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/outlet.d.ts +1 -1
- package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +8 -2
- package/types/stable/@ember/-internals/glimmer/lib/glimmer-tracking-docs.d.ts +12 -12
- package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +18 -6
- package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +3 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +65 -121
- package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +8 -4
- package/types/stable/@ember/-internals/glimmer/lib/helpers/each-in.d.ts +16 -14
- package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +2 -0
- package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +11 -7
- package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +23 -29
- package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +3 -1
- package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +95 -49
- package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +23 -54
- package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +6 -2
- package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +4 -8
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +10 -10
- package/types/stable/@ember/-internals/glimmer/lib/renderer.d.ts +1 -2
- package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +2 -0
- package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +2 -14
- package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +15 -11
- package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +17 -10
- package/types/stable/@ember/-internals/runtime/lib/mixins/target_action_support.d.ts +1 -1
- package/types/stable/@ember/array/index.d.ts +6 -29
- package/types/stable/@ember/array/lib/is-array.d.ts +35 -0
- package/types/stable/@ember/component/template-only.d.ts +1 -3
- package/types/stable/@ember/controller/index.d.ts +1 -1
- package/types/stable/@ember/helper/index.d.ts +0 -19
- package/types/stable/@ember/object/index.d.ts +4 -3
- package/types/stable/@ember/object/observable.d.ts +4 -0
- package/types/stable/@ember/reactive/collections.d.ts +0 -6
- package/types/stable/@ember/routing/lib/generate_controller.d.ts +1 -1
- package/types/stable/@ember/routing/route.d.ts +2 -2
- package/types/stable/@ember/routing/router-service.d.ts +20 -12
- package/types/stable/@glimmer/runtime/lib/component/template-only.d.ts +0 -2
- package/types/stable/@glimmer/runtime/lib/dom/sanitized-values.d.ts +2 -2
- package/types/stable/@glimmer/runtime/lib/helpers/array.d.ts +1 -1
- package/types/stable/@glimmer/runtime/lib/helpers/concat.d.ts +8 -3
- package/types/stable/@glimmer/runtime/lib/helpers/fn.d.ts +13 -7
- package/types/stable/@glimmer/runtime/lib/helpers/get.d.ts +21 -29
- package/types/stable/@glimmer/runtime/lib/helpers/hash.d.ts +1 -1
- package/types/stable/@glimmer/syntax/lib/get-template-locals.d.ts +1 -1
- package/types/stable/@glimmer/tracking/index.d.ts +12 -12
- package/types/stable/index.d.ts +1 -0
- package/dist/prod/packages/shared-chunks/{collections-C3Y8z_9v.js → collections-GpG8lT2g.js} +9 -9
package/dist/dev/packages/shared-chunks/{untouchable-this-B3DVwpHS.js → arguments-CDkbOqTS.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { u as unwrap, e as expect, a as isIndexable, d as dict, S as StackImpl } from './collections-DPkjqeA3.js';
|
|
2
|
-
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
3
1
|
import { a as $v0, b as $t1, c as $t0, d as $pc, e as $ra, f as $fp, g as $sp, h as $s1, $ as $s0 } from './registers-C_W2qYHJ.js';
|
|
4
2
|
import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
|
|
5
|
-
import {
|
|
3
|
+
import { e as expect, S as StackImpl, u as unwrap, a as isIndexable, d as dict } from './collections-DPkjqeA3.js';
|
|
4
|
+
import { c as createComputeRef, v as valueForRef, a as createConstRef, e as createPrimitiveRef, i as isConstRef, U as UNDEFINED_REFERENCE, N as NULL_REFERENCE, T as TRUE_REFERENCE, F as FALSE_REFERENCE, R as REFERENCE, h as createDebugAliasRef } from './reference-BqOLhKFy.js';
|
|
6
5
|
import { b as EMPTY_STRING_ARRAY, e as enumerate, c as emptyArray } from './array-utils-CZQxrdD3.js';
|
|
7
|
-
import {
|
|
6
|
+
import { C as CONSTANT_TAG, I as INITIAL, v as validateTag, c as consumeTag, a as valueForTag, o as beginTrackFrame, s as endTrackFrame, k as CURRENT_TAG } from './cache-DGDPVCpC.js';
|
|
8
7
|
import { C as CURRIED_MODIFIER, a as CURRIED_COMPONENT } from './curried-BZnYakIg.js';
|
|
9
|
-
import { j as VM_SYSCALL_SIZE, k as VM_CHILD_SCOPE_OP, l as VM_POP_SCOPE_OP, m as VM_PUSH_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, o as VM_CONSTANT_OP, p as decodeHandle, q as VM_CONSTANT_REFERENCE_OP, r as VM_PRIMITIVE_OP, s as isHandle, t as decodeImmediate, u as VM_PRIMITIVE_REFERENCE_OP, v as VM_DUP_OP, w as VM_POP_OP, x as VM_LOAD_OP, y as VM_FETCH_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, A as VM_ENTER_OP, B as VM_EXIT_OP, C as VM_PUSH_SYMBOL_TABLE_OP, D as VM_PUSH_BLOCK_SCOPE_OP, E as VM_COMPILE_BLOCK_OP, F as VM_INVOKE_YIELD_OP, G as VM_JUMP_IF_OP, H as VM_JUMP_UNLESS_OP, I as VM_JUMP_EQ_OP, b as VM_ASSERT_SAME_OP, J as VM_TO_BOOLEAN_OP, K as VM_TEXT_OP, L as VM_COMMENT_OP, M as VM_OPEN_ELEMENT_OP, N as VM_OPEN_DYNAMIC_ELEMENT_OP, O as VM_PUSH_REMOTE_ELEMENT_OP, P as VM_POP_REMOTE_ELEMENT_OP, Q as VM_FLUSH_ELEMENT_OP, R as VM_CLOSE_ELEMENT_OP, S as VM_MODIFIER_OP, T as VM_DYNAMIC_MODIFIER_OP, U as VM_STATIC_ATTR_OP, W as VM_DYNAMIC_ATTR_OP, X as VM_PUSH_COMPONENT_DEFINITION_OP, Y as VM_RESOLVE_DYNAMIC_COMPONENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, Z as VM_PUSH_ARGS_OP, _ as VM_PUSH_EMPTY_ARGS_OP, $ as VM_CAPTURE_ARGS_OP, a0 as VM_PREPARE_ARGS_OP, a1 as VM_CREATE_COMPONENT_OP, a2 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a3 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a4 as VM_PUT_COMPONENT_OPERATIONS_OP, a5 as VM_COMPONENT_ATTR_OP, a6 as VM_STATIC_COMPONENT_ATTR_OP, a7 as VM_DID_CREATE_ELEMENT_OP, a8 as VM_GET_COMPONENT_SELF_OP, a9 as VM_GET_COMPONENT_TAG_NAME_OP, aa as VM_GET_COMPONENT_LAYOUT_OP, V as VM_MAIN_OP, ab as VM_POPULATE_LAYOUT_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, ag as VM_DID_RENDER_LAYOUT_OP, ah as VM_COMMIT_COMPONENT_TRANSACTION_OP } from './syscall-ops-
|
|
8
|
+
import { j as VM_SYSCALL_SIZE, k as VM_CHILD_SCOPE_OP, l as VM_POP_SCOPE_OP, m as VM_PUSH_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, o as VM_CONSTANT_OP, p as decodeHandle, q as VM_CONSTANT_REFERENCE_OP, r as VM_PRIMITIVE_OP, s as isHandle, t as decodeImmediate, u as VM_PRIMITIVE_REFERENCE_OP, v as VM_DUP_OP, w as VM_POP_OP, x as VM_LOAD_OP, y as VM_FETCH_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, A as VM_ENTER_OP, B as VM_EXIT_OP, C as VM_PUSH_SYMBOL_TABLE_OP, D as VM_PUSH_BLOCK_SCOPE_OP, E as VM_COMPILE_BLOCK_OP, F as VM_INVOKE_YIELD_OP, G as VM_JUMP_IF_OP, H as VM_JUMP_UNLESS_OP, I as VM_JUMP_EQ_OP, b as VM_ASSERT_SAME_OP, J as VM_TO_BOOLEAN_OP, K as VM_TEXT_OP, L as VM_COMMENT_OP, M as VM_OPEN_ELEMENT_OP, N as VM_OPEN_DYNAMIC_ELEMENT_OP, O as VM_PUSH_REMOTE_ELEMENT_OP, P as VM_POP_REMOTE_ELEMENT_OP, Q as VM_FLUSH_ELEMENT_OP, R as VM_CLOSE_ELEMENT_OP, S as VM_MODIFIER_OP, T as VM_DYNAMIC_MODIFIER_OP, U as VM_STATIC_ATTR_OP, W as VM_DYNAMIC_ATTR_OP, X as VM_PUSH_COMPONENT_DEFINITION_OP, Y as VM_RESOLVE_DYNAMIC_COMPONENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, Z as VM_PUSH_ARGS_OP, _ as VM_PUSH_EMPTY_ARGS_OP, $ as VM_CAPTURE_ARGS_OP, a0 as VM_PREPARE_ARGS_OP, a1 as VM_CREATE_COMPONENT_OP, a2 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a3 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a4 as VM_PUT_COMPONENT_OPERATIONS_OP, a5 as VM_COMPONENT_ATTR_OP, a6 as VM_STATIC_COMPONENT_ATTR_OP, a7 as VM_DID_CREATE_ELEMENT_OP, a8 as VM_GET_COMPONENT_SELF_OP, a9 as VM_GET_COMPONENT_TAG_NAME_OP, aa as VM_GET_COMPONENT_LAYOUT_OP, V as VM_MAIN_OP, ab as VM_POPULATE_LAYOUT_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, ag as VM_DID_RENDER_LAYOUT_OP, ah as VM_COMMIT_COMPONENT_TRANSACTION_OP } from './syscall-ops-CN7STuUn.js';
|
|
10
9
|
import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
|
|
11
10
|
import { a as assert } from './assert-Zqc4wiAV.js';
|
|
12
11
|
import { u as unwrapTemplate } from './template-BRrQR6KS.js';
|
|
13
12
|
import { registerDestructor, destroy, associateDestroyableChild } from '../@glimmer/destroyable/index.js';
|
|
14
|
-
import { m as managerHasCapability } from './capabilities-
|
|
15
|
-
import {
|
|
13
|
+
import { m as managerHasCapability } from './capabilities-CajW4QjE.js';
|
|
14
|
+
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
15
|
+
import { I as InternalComponentCapabilities } from './flags-BZxHQ0yn.js';
|
|
16
16
|
import { n as normalizeStringValue, C as ConcreteBounds } from './normalize-CKySQVU7.js';
|
|
17
|
-
import { b as getInternalModifierManager } from './api-
|
|
17
|
+
import { b as getInternalModifierManager } from './api-DuLOZMO_.js';
|
|
18
18
|
import { toBool } from '../@glimmer/global-context/index.js';
|
|
19
19
|
|
|
20
20
|
function CheckInstanceof(Class) {
|
|
@@ -49,34 +49,45 @@ function check(value, checker, message) {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
add(name, evaluate, kind = 'syscall') {
|
|
60
|
-
this.evaluateOpcode[name] = {
|
|
61
|
-
syscall: kind !== 'machine',
|
|
62
|
-
evaluate
|
|
52
|
+
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
53
|
+
function buildUntouchableThis(source) {
|
|
54
|
+
let context = null;
|
|
55
|
+
{
|
|
56
|
+
let assertOnProperty = property => {
|
|
57
|
+
let access = typeof property === 'symbol' || typeof property === 'number' ? `[${String(property)}]` : `.${property}`;
|
|
58
|
+
throw new Error(`You accessed \`this${access}\` from a function passed to the ${source}, but the function itself was not bound to a valid \`this\` context. Consider updating to use a bound function (for instance, use an arrow function, \`() => {}\`).`);
|
|
63
59
|
};
|
|
60
|
+
context = new Proxy({}, {
|
|
61
|
+
get(_target, property) {
|
|
62
|
+
assertOnProperty(property);
|
|
63
|
+
},
|
|
64
|
+
set(_target, property) {
|
|
65
|
+
assertOnProperty(property);
|
|
66
|
+
return false;
|
|
67
|
+
},
|
|
68
|
+
has(_target, property) {
|
|
69
|
+
assertOnProperty(property);
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
64
73
|
}
|
|
65
|
-
|
|
66
|
-
let operation = unwrap(this.evaluateOpcode[type]);
|
|
67
|
-
if (operation.syscall) {
|
|
68
|
-
assert(!opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);
|
|
69
|
-
operation.evaluate(vm, opcode);
|
|
70
|
-
} else {
|
|
71
|
-
assert(opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);
|
|
72
|
-
operation.evaluate(vm.lowlevel, opcode);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
74
|
+
return context;
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
function hasCustomDebugRenderTreeLifecycle(manager) {
|
|
79
|
+
return 'getDebugCustomRenderTree' in manager;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function resolveComponent(resolver, constants, name, owner) {
|
|
83
|
+
let definition = resolver?.lookupComponent?.(name, expect(owner)) ?? null;
|
|
84
|
+
if (!definition) {
|
|
85
|
+
throw new Error(`Attempted to resolve \`${name}\`, which was expected to be a component, but nothing was found.`);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme
|
|
89
|
+
return constants.resolvedComponent(definition, name);
|
|
78
90
|
}
|
|
79
|
-
const APPEND_OPCODES = new AppendOpcodes();
|
|
80
91
|
|
|
81
92
|
const TYPE = Symbol('TYPE');
|
|
82
93
|
const INNER = Symbol('INNER');
|
|
@@ -153,20 +164,198 @@ function curry(type, spec, owner, args, resolved = false) {
|
|
|
153
164
|
return new CurriedValue(type, spec, owner, args, resolved);
|
|
154
165
|
}
|
|
155
166
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
167
|
+
let GUID = 0;
|
|
168
|
+
class Ref {
|
|
169
|
+
id = GUID++;
|
|
170
|
+
value;
|
|
171
|
+
constructor(value) {
|
|
172
|
+
this.value = value;
|
|
173
|
+
}
|
|
174
|
+
get() {
|
|
175
|
+
return this.value;
|
|
176
|
+
}
|
|
177
|
+
release() {
|
|
178
|
+
if (this.value === null) {
|
|
179
|
+
throw new Error('BUG: double release?');
|
|
180
|
+
}
|
|
181
|
+
this.value = null;
|
|
182
|
+
}
|
|
183
|
+
toString() {
|
|
184
|
+
let label = `Ref ${this.id}`;
|
|
185
|
+
if (this.value === null) {
|
|
186
|
+
return `${label} (released)`;
|
|
187
|
+
} else {
|
|
188
|
+
try {
|
|
189
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
190
|
+
return `${label}: ${this.value}`;
|
|
191
|
+
} catch {
|
|
192
|
+
return label;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
159
196
|
}
|
|
197
|
+
class DebugRenderTreeImpl {
|
|
198
|
+
stack = new StackImpl();
|
|
199
|
+
refs = new WeakMap();
|
|
200
|
+
roots = new Set();
|
|
201
|
+
nodes = new WeakMap();
|
|
202
|
+
begin() {
|
|
203
|
+
this.reset();
|
|
204
|
+
}
|
|
205
|
+
create(state, node) {
|
|
206
|
+
let internalNode = assign({}, node, {
|
|
207
|
+
bounds: null,
|
|
208
|
+
refs: new Set()
|
|
209
|
+
});
|
|
210
|
+
this.nodes.set(state, internalNode);
|
|
211
|
+
this.appendChild(internalNode, state);
|
|
212
|
+
this.enter(state);
|
|
213
|
+
}
|
|
214
|
+
update(state) {
|
|
215
|
+
this.enter(state);
|
|
216
|
+
}
|
|
217
|
+
didRender(state, bounds) {
|
|
218
|
+
if (this.stack.current !== state) {
|
|
219
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
220
|
+
throw new Error(`BUG: expecting ${this.stack.current}, got ${state}`);
|
|
221
|
+
}
|
|
222
|
+
this.nodeFor(state).bounds = bounds;
|
|
223
|
+
this.exit();
|
|
224
|
+
}
|
|
225
|
+
willDestroy(state) {
|
|
226
|
+
expect(this.refs.get(state)).release();
|
|
227
|
+
}
|
|
228
|
+
commit() {
|
|
229
|
+
this.reset();
|
|
230
|
+
}
|
|
231
|
+
capture() {
|
|
232
|
+
return this.captureRefs(this.roots);
|
|
233
|
+
}
|
|
234
|
+
reset() {
|
|
235
|
+
if (this.stack.size !== 0) {
|
|
236
|
+
// We probably encountered an error during the rendering loop. This will
|
|
237
|
+
// likely trigger undefined behavior and memory leaks as the error left
|
|
238
|
+
// things in an inconsistent state. It is recommended that the user
|
|
239
|
+
// refresh the page.
|
|
160
240
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
241
|
+
// TODO: We could warn here? But this happens all the time in our tests?
|
|
242
|
+
|
|
243
|
+
// Clean up the root reference to prevent errors from happening if we
|
|
244
|
+
// attempt to capture the render tree (Ember Inspector may do this)
|
|
245
|
+
let root = expect(this.stack.toArray()[0]);
|
|
246
|
+
let ref = this.refs.get(root);
|
|
247
|
+
if (ref !== undefined) {
|
|
248
|
+
this.roots.delete(ref);
|
|
249
|
+
}
|
|
250
|
+
while (!this.stack.isEmpty()) {
|
|
251
|
+
this.stack.pop();
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
enter(state) {
|
|
256
|
+
this.stack.push(state);
|
|
257
|
+
}
|
|
258
|
+
exit() {
|
|
259
|
+
if (this.stack.size === 0) {
|
|
260
|
+
throw new Error('BUG: unbalanced pop');
|
|
261
|
+
}
|
|
262
|
+
this.stack.pop();
|
|
263
|
+
}
|
|
264
|
+
nodeFor(state) {
|
|
265
|
+
return expect(this.nodes.get(state));
|
|
266
|
+
}
|
|
267
|
+
appendChild(node, state) {
|
|
268
|
+
if (this.refs.has(state)) {
|
|
269
|
+
throw new Error('BUG: child already appended');
|
|
270
|
+
}
|
|
271
|
+
let parent = this.stack.current;
|
|
272
|
+
let ref = new Ref(state);
|
|
273
|
+
this.refs.set(state, ref);
|
|
274
|
+
if (parent) {
|
|
275
|
+
let parentNode = this.nodeFor(parent);
|
|
276
|
+
parentNode.refs.add(ref);
|
|
277
|
+
node.parent = parentNode;
|
|
278
|
+
} else {
|
|
279
|
+
this.roots.add(ref);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
captureRefs(refs) {
|
|
283
|
+
let captured = [];
|
|
284
|
+
refs.forEach(ref => {
|
|
285
|
+
let state = ref.get();
|
|
286
|
+
if (state) {
|
|
287
|
+
captured.push(this.captureNode(`render-node:${ref.id}`, state));
|
|
288
|
+
} else {
|
|
289
|
+
refs.delete(ref);
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
return captured;
|
|
293
|
+
}
|
|
294
|
+
captureNode(id, state) {
|
|
295
|
+
let node = this.nodeFor(state);
|
|
296
|
+
let {
|
|
297
|
+
type,
|
|
298
|
+
name,
|
|
299
|
+
args,
|
|
300
|
+
instance,
|
|
301
|
+
refs
|
|
302
|
+
} = node;
|
|
303
|
+
let bounds = this.captureBounds(node);
|
|
304
|
+
let children = this.captureRefs(refs);
|
|
305
|
+
return {
|
|
306
|
+
id,
|
|
307
|
+
type,
|
|
308
|
+
name,
|
|
309
|
+
args: reifyArgsDebug(args),
|
|
310
|
+
instance,
|
|
311
|
+
bounds,
|
|
312
|
+
children
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
captureBounds(node) {
|
|
316
|
+
let bounds = expect(node.bounds);
|
|
317
|
+
let parentElement = bounds.parentElement();
|
|
318
|
+
let firstNode = bounds.firstNode();
|
|
319
|
+
let lastNode = bounds.lastNode();
|
|
320
|
+
return {
|
|
321
|
+
parentElement,
|
|
322
|
+
firstNode,
|
|
323
|
+
lastNode
|
|
324
|
+
};
|
|
165
325
|
}
|
|
326
|
+
}
|
|
327
|
+
function getDebugName(definition, manager = definition.manager) {
|
|
328
|
+
return definition.resolvedName ?? definition.debugName ?? manager.getDebugName(definition.state);
|
|
329
|
+
}
|
|
166
330
|
|
|
167
|
-
|
|
168
|
-
|
|
331
|
+
class AppendOpcodes {
|
|
332
|
+
// This code is intentionally putting unsafe `null`s into the array that it
|
|
333
|
+
// will intentionally overwrite before anyone can see them.
|
|
334
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
335
|
+
evaluateOpcode = new Array(VM_SYSCALL_SIZE).fill(null);
|
|
336
|
+
constructor() {
|
|
337
|
+
}
|
|
338
|
+
add(name, evaluate, kind = 'syscall') {
|
|
339
|
+
this.evaluateOpcode[name] = {
|
|
340
|
+
syscall: kind !== 'machine',
|
|
341
|
+
evaluate
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
evaluate(vm, opcode, type) {
|
|
345
|
+
let operation = unwrap(this.evaluateOpcode[type]);
|
|
346
|
+
if (operation.syscall) {
|
|
347
|
+
assert(!opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);
|
|
348
|
+
operation.evaluate(vm, opcode);
|
|
349
|
+
} else {
|
|
350
|
+
assert(opcode.isMachine, `BUG: Mismatch between operation.syscall (${operation.syscall}) and opcode.isMachine (${opcode.isMachine}) for ${opcode.type}`);
|
|
351
|
+
operation.evaluate(vm.lowlevel, opcode);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
169
354
|
}
|
|
355
|
+
function externs(vm) {
|
|
356
|
+
return undefined;
|
|
357
|
+
}
|
|
358
|
+
const APPEND_OPCODES = new AppendOpcodes();
|
|
170
359
|
|
|
171
360
|
function createClassListRef(list) {
|
|
172
361
|
return createComputeRef(() => {
|
|
@@ -1932,193 +2121,4 @@ const EMPTY_NAMED = Object.freeze(Object.create(null));
|
|
|
1932
2121
|
const EMPTY_POSITIONAL = EMPTY_REFERENCES;
|
|
1933
2122
|
const EMPTY_ARGS = createCapturedArgs(EMPTY_NAMED, EMPTY_POSITIONAL);
|
|
1934
2123
|
|
|
1935
|
-
let GUID = 0;
|
|
1936
|
-
class Ref {
|
|
1937
|
-
id = GUID++;
|
|
1938
|
-
value;
|
|
1939
|
-
constructor(value) {
|
|
1940
|
-
this.value = value;
|
|
1941
|
-
}
|
|
1942
|
-
get() {
|
|
1943
|
-
return this.value;
|
|
1944
|
-
}
|
|
1945
|
-
release() {
|
|
1946
|
-
if (this.value === null) {
|
|
1947
|
-
throw new Error('BUG: double release?');
|
|
1948
|
-
}
|
|
1949
|
-
this.value = null;
|
|
1950
|
-
}
|
|
1951
|
-
toString() {
|
|
1952
|
-
let label = `Ref ${this.id}`;
|
|
1953
|
-
if (this.value === null) {
|
|
1954
|
-
return `${label} (released)`;
|
|
1955
|
-
} else {
|
|
1956
|
-
try {
|
|
1957
|
-
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
1958
|
-
return `${label}: ${this.value}`;
|
|
1959
|
-
} catch {
|
|
1960
|
-
return label;
|
|
1961
|
-
}
|
|
1962
|
-
}
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
class DebugRenderTreeImpl {
|
|
1966
|
-
stack = new StackImpl();
|
|
1967
|
-
refs = new WeakMap();
|
|
1968
|
-
roots = new Set();
|
|
1969
|
-
nodes = new WeakMap();
|
|
1970
|
-
begin() {
|
|
1971
|
-
this.reset();
|
|
1972
|
-
}
|
|
1973
|
-
create(state, node) {
|
|
1974
|
-
let internalNode = assign({}, node, {
|
|
1975
|
-
bounds: null,
|
|
1976
|
-
refs: new Set()
|
|
1977
|
-
});
|
|
1978
|
-
this.nodes.set(state, internalNode);
|
|
1979
|
-
this.appendChild(internalNode, state);
|
|
1980
|
-
this.enter(state);
|
|
1981
|
-
}
|
|
1982
|
-
update(state) {
|
|
1983
|
-
this.enter(state);
|
|
1984
|
-
}
|
|
1985
|
-
didRender(state, bounds) {
|
|
1986
|
-
if (this.stack.current !== state) {
|
|
1987
|
-
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
1988
|
-
throw new Error(`BUG: expecting ${this.stack.current}, got ${state}`);
|
|
1989
|
-
}
|
|
1990
|
-
this.nodeFor(state).bounds = bounds;
|
|
1991
|
-
this.exit();
|
|
1992
|
-
}
|
|
1993
|
-
willDestroy(state) {
|
|
1994
|
-
expect(this.refs.get(state)).release();
|
|
1995
|
-
}
|
|
1996
|
-
commit() {
|
|
1997
|
-
this.reset();
|
|
1998
|
-
}
|
|
1999
|
-
capture() {
|
|
2000
|
-
return this.captureRefs(this.roots);
|
|
2001
|
-
}
|
|
2002
|
-
reset() {
|
|
2003
|
-
if (this.stack.size !== 0) {
|
|
2004
|
-
// We probably encountered an error during the rendering loop. This will
|
|
2005
|
-
// likely trigger undefined behavior and memory leaks as the error left
|
|
2006
|
-
// things in an inconsistent state. It is recommended that the user
|
|
2007
|
-
// refresh the page.
|
|
2008
|
-
|
|
2009
|
-
// TODO: We could warn here? But this happens all the time in our tests?
|
|
2010
|
-
|
|
2011
|
-
// Clean up the root reference to prevent errors from happening if we
|
|
2012
|
-
// attempt to capture the render tree (Ember Inspector may do this)
|
|
2013
|
-
let root = expect(this.stack.toArray()[0]);
|
|
2014
|
-
let ref = this.refs.get(root);
|
|
2015
|
-
if (ref !== undefined) {
|
|
2016
|
-
this.roots.delete(ref);
|
|
2017
|
-
}
|
|
2018
|
-
while (!this.stack.isEmpty()) {
|
|
2019
|
-
this.stack.pop();
|
|
2020
|
-
}
|
|
2021
|
-
}
|
|
2022
|
-
}
|
|
2023
|
-
enter(state) {
|
|
2024
|
-
this.stack.push(state);
|
|
2025
|
-
}
|
|
2026
|
-
exit() {
|
|
2027
|
-
if (this.stack.size === 0) {
|
|
2028
|
-
throw new Error('BUG: unbalanced pop');
|
|
2029
|
-
}
|
|
2030
|
-
this.stack.pop();
|
|
2031
|
-
}
|
|
2032
|
-
nodeFor(state) {
|
|
2033
|
-
return expect(this.nodes.get(state));
|
|
2034
|
-
}
|
|
2035
|
-
appendChild(node, state) {
|
|
2036
|
-
if (this.refs.has(state)) {
|
|
2037
|
-
throw new Error('BUG: child already appended');
|
|
2038
|
-
}
|
|
2039
|
-
let parent = this.stack.current;
|
|
2040
|
-
let ref = new Ref(state);
|
|
2041
|
-
this.refs.set(state, ref);
|
|
2042
|
-
if (parent) {
|
|
2043
|
-
let parentNode = this.nodeFor(parent);
|
|
2044
|
-
parentNode.refs.add(ref);
|
|
2045
|
-
node.parent = parentNode;
|
|
2046
|
-
} else {
|
|
2047
|
-
this.roots.add(ref);
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
captureRefs(refs) {
|
|
2051
|
-
let captured = [];
|
|
2052
|
-
refs.forEach(ref => {
|
|
2053
|
-
let state = ref.get();
|
|
2054
|
-
if (state) {
|
|
2055
|
-
captured.push(this.captureNode(`render-node:${ref.id}`, state));
|
|
2056
|
-
} else {
|
|
2057
|
-
refs.delete(ref);
|
|
2058
|
-
}
|
|
2059
|
-
});
|
|
2060
|
-
return captured;
|
|
2061
|
-
}
|
|
2062
|
-
captureNode(id, state) {
|
|
2063
|
-
let node = this.nodeFor(state);
|
|
2064
|
-
let {
|
|
2065
|
-
type,
|
|
2066
|
-
name,
|
|
2067
|
-
args,
|
|
2068
|
-
instance,
|
|
2069
|
-
refs
|
|
2070
|
-
} = node;
|
|
2071
|
-
let bounds = this.captureBounds(node);
|
|
2072
|
-
let children = this.captureRefs(refs);
|
|
2073
|
-
return {
|
|
2074
|
-
id,
|
|
2075
|
-
type,
|
|
2076
|
-
name,
|
|
2077
|
-
args: reifyArgsDebug(args),
|
|
2078
|
-
instance,
|
|
2079
|
-
bounds,
|
|
2080
|
-
children
|
|
2081
|
-
};
|
|
2082
|
-
}
|
|
2083
|
-
captureBounds(node) {
|
|
2084
|
-
let bounds = expect(node.bounds);
|
|
2085
|
-
let parentElement = bounds.parentElement();
|
|
2086
|
-
let firstNode = bounds.firstNode();
|
|
2087
|
-
let lastNode = bounds.lastNode();
|
|
2088
|
-
return {
|
|
2089
|
-
parentElement,
|
|
2090
|
-
firstNode,
|
|
2091
|
-
lastNode
|
|
2092
|
-
};
|
|
2093
|
-
}
|
|
2094
|
-
}
|
|
2095
|
-
function getDebugName(definition, manager = definition.manager) {
|
|
2096
|
-
return definition.resolvedName ?? definition.debugName ?? manager.getDebugName(definition.state);
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
2100
|
-
function buildUntouchableThis(source) {
|
|
2101
|
-
let context = null;
|
|
2102
|
-
{
|
|
2103
|
-
let assertOnProperty = property => {
|
|
2104
|
-
let access = typeof property === 'symbol' || typeof property === 'number' ? `[${String(property)}]` : `.${property}`;
|
|
2105
|
-
throw new Error(`You accessed \`this${access}\` from a function passed to the ${source}, but the function itself was not bound to a valid \`this\` context. Consider updating to use a bound function (for instance, use an arrow function, \`() => {}\`).`);
|
|
2106
|
-
};
|
|
2107
|
-
context = new Proxy({}, {
|
|
2108
|
-
get(_target, property) {
|
|
2109
|
-
assertOnProperty(property);
|
|
2110
|
-
},
|
|
2111
|
-
set(_target, property) {
|
|
2112
|
-
assertOnProperty(property);
|
|
2113
|
-
return false;
|
|
2114
|
-
},
|
|
2115
|
-
has(_target, property) {
|
|
2116
|
-
assertOnProperty(property);
|
|
2117
|
-
return false;
|
|
2118
|
-
}
|
|
2119
|
-
});
|
|
2120
|
-
}
|
|
2121
|
-
return context;
|
|
2122
|
-
}
|
|
2123
|
-
|
|
2124
2124
|
export { APPEND_OPCODES as A, BeginTrackFrameOpcode as B, CurriedValue as C, DebugRenderTreeImpl as D, EMPTY_ARGS as E, JumpIfNotModifiedOpcode as J, VMArgumentsImpl as V, EMPTY_NAMED as a, EMPTY_POSITIONAL as b, createCapturedArgs as c, curry as d, reifyNamed as e, reifyPositional as f, buildUntouchableThis as g, check as h, isArgumentError as i, isCurriedType as j, resolveCurriedValue as k, AssertFilter as l, externs as m, EndTrackFrameOpcode as n, reifyArgs as r };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../@ember/debug/index.js';
|
|
2
2
|
import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';
|
|
3
3
|
import { s as sendEvent, a as addListener, r as removeListener } from './events-6aFVjD4k.js';
|
|
4
|
-
import { n as notifyPropertyChange } from './computed-
|
|
4
|
+
import { n as notifyPropertyChange } from './computed-BPCtuOxQ.js';
|
|
5
5
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
6
6
|
|
|
7
7
|
function arrayContentWillChange(array, startIdx, removeAmt, addAmt) {
|
|
@@ -182,7 +182,6 @@ const CONSTANT_TAG_ID = 3;
|
|
|
182
182
|
//////////
|
|
183
183
|
|
|
184
184
|
const COMPUTE = Symbol('TAG_COMPUTE');
|
|
185
|
-
Reflect.set(globalThis, 'COMPUTE_SYMBOL', COMPUTE);
|
|
186
185
|
|
|
187
186
|
//////////
|
|
188
187
|
|
|
@@ -593,4 +592,4 @@ function untrack(callback) {
|
|
|
593
592
|
}
|
|
594
593
|
}
|
|
595
594
|
|
|
596
|
-
export { ALLOW_CYCLES as A,
|
|
595
|
+
export { ALLOW_CYCLES as A, resetTracking as B, CONSTANT_TAG as C, DIRTY_TAG as D, INITIAL as I, UPDATE_TAG as U, VOLATILE as V, valueForTag as a, createUpdatableTag as b, consumeTag as c, unwrap as d, debug as e, combine as f, createCache as g, getValue as h, COMPUTE as i, CONSTANT as j, CURRENT_TAG as k, CurrentTag as l, VOLATILE_TAG as m, VolatileTag as n, beginTrackFrame as o, beginUntrackFrame as p, bump as q, createTag as r, endTrackFrame as s, track as t, untrack as u, validateTag as v, endUntrackFrame as w, isConst as x, isConstTag as y, isTracking as z };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { peekMeta, meta } from '../@ember/-internals/meta/lib/meta.js';
|
|
2
2
|
import { i as isObject } from './spec-BXl1reqK.js';
|
|
3
3
|
import '../@ember/debug/index.js';
|
|
4
|
-
import {
|
|
5
|
-
import { t as tagFor, d as dirtyTagFor, a as tagMetaFor } from './meta-
|
|
4
|
+
import { C as CONSTANT_TAG, f as combine, v as validateTag, b as createUpdatableTag, U as UPDATE_TAG } from './cache-DGDPVCpC.js';
|
|
5
|
+
import { t as tagFor, d as dirtyTagFor, a as tagMetaFor } from './meta-BqC7f9Ia.js';
|
|
6
6
|
import { a as setupMandatorySetter } from './mandatory-setter-BpbAMTzV.js';
|
|
7
7
|
import { t as toString } from './to-string-C7M8LBLH.js';
|
|
8
8
|
import { isDestroyed } from '../@glimmer/destroyable/index.js';
|
|
9
|
-
import { g as getCustomTagFor } from './args-proxy-
|
|
9
|
+
import { g as getCustomTagFor } from './args-proxy-CS5Brs3_.js';
|
|
10
10
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
11
11
|
|
|
12
12
|
function objectAt(array, index) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { meta, peekMeta } from '../@ember/-internals/meta/lib/meta.js';
|
|
2
2
|
import { s as setWithMandatorySetter } from './mandatory-setter-BpbAMTzV.js';
|
|
3
3
|
import { d as descriptorForProperty, a as isClassicDecorator, c as ComputedDescriptor, i as isElementDescriptor, m as makeComputedDecorator, b as descriptorForDecorator } from './decorator-B5Uh5NFI.js';
|
|
4
|
-
import { c as revalidateObservers, d as flushSyncObservers, e as resumeObserverDeactivation, s as suspendedObserverDeactivation, b as addObserver, g as setObserverSuspended } from './observers-
|
|
4
|
+
import { c as revalidateObservers, d as flushSyncObservers, e as resumeObserverDeactivation, s as suspendedObserverDeactivation, b as addObserver, g as setObserverSuspended } from './observers-DMlX2nCi.js';
|
|
5
5
|
import { t as toString } from './to-string-C7M8LBLH.js';
|
|
6
6
|
import inspect from '../@ember/debug/lib/inspect.js';
|
|
7
7
|
import '../@ember/debug/index.js';
|
|
8
8
|
import { isDestroyed } from '../@glimmer/destroyable/index.js';
|
|
9
|
-
import {
|
|
10
|
-
import { a as tagMetaFor, t as tagFor } from './meta-
|
|
11
|
-
import { m as markObjectAsDirty, b as getChainTagsForKeys, f as finishLazyChains } from './chain-tags-
|
|
9
|
+
import { v as validateTag, u as untrack, U as UPDATE_TAG, A as ALLOW_CYCLES, a as valueForTag, c as consumeTag, t as track } from './cache-DGDPVCpC.js';
|
|
10
|
+
import { a as tagMetaFor, t as tagFor } from './meta-BqC7f9Ia.js';
|
|
11
|
+
import { m as markObjectAsDirty, b as getChainTagsForKeys, f as finishLazyChains } from './chain-tags-uWSImHzB.js';
|
|
12
12
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -3,11 +3,11 @@ import { g as guidFor } from './guid-Cbq2sNV_.js';
|
|
|
3
3
|
import { getViewElement, clearElementView, clearViewElement, addChildView, setViewElement, setElementView } from '../@ember/-internals/views/lib/system/utils.js';
|
|
4
4
|
import { debugFreeze } from '../@ember/debug/index.js';
|
|
5
5
|
import { _instrumentStart } from '../@ember/instrumentation/index.js';
|
|
6
|
-
import {
|
|
7
|
-
import { f as reifyPositional } from './
|
|
6
|
+
import { c as createComputeRef, v as valueForRef, e as createPrimitiveRef, f as childRefFor, g as childRefFromParts, a as createConstRef, d as isUpdatableRef, u as updateRef } from './reference-BqOLhKFy.js';
|
|
7
|
+
import { f as reifyPositional } from './arguments-CDkbOqTS.js';
|
|
8
8
|
import { E as EMPTY_ARRAY } from './array-utils-CZQxrdD3.js';
|
|
9
|
-
import {
|
|
10
|
-
import { g as get } from './property_get-
|
|
9
|
+
import { a as valueForTag, p as beginUntrackFrame, w as endUntrackFrame, o as beginTrackFrame, s as endTrackFrame, c as consumeTag, v as validateTag } from './cache-DGDPVCpC.js';
|
|
10
|
+
import { g as get } from './property_get-CRP7MFz_.js';
|
|
11
11
|
import { dasherize } from '../@ember/-internals/string/index.js';
|
|
12
12
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
13
13
|
import { registerDestructor } from '../@glimmer/destroyable/index.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as setInternalComponentManager } from './api-
|
|
1
|
+
import { c as createComputeRef, v as valueForRef, N as NULL_REFERENCE } from './reference-BqOLhKFy.js';
|
|
2
|
+
import { s as setInternalComponentManager } from './api-DuLOZMO_.js';
|
|
3
3
|
import '../@ember/debug/index.js';
|
|
4
|
-
import { i as internalHelper } from './internal-helper-
|
|
4
|
+
import { i as internalHelper } from './internal-helper-CKrni0b_.js';
|
|
5
5
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -84,6 +84,8 @@ function getElementDefinition(tagName) {
|
|
|
84
84
|
Passing `null`, `undefined`, or non-string values will throw an assertion error.
|
|
85
85
|
|
|
86
86
|
Changing the tag name will tear down and recreate the element and its contents.
|
|
87
|
+
|
|
88
|
+
The `element` helper is built-in and does not need to be imported.
|
|
87
89
|
|
|
88
90
|
@method element
|
|
89
91
|
@for Ember.Templates.helpers
|
|
@@ -21,4 +21,4 @@ const TYPE_MASK = 0b00000000000000000000000011111111;
|
|
|
21
21
|
const OPERAND_LEN_MASK = 0b00000000000000000000001100000000;
|
|
22
22
|
const MACHINE_MASK = 0b00000000000000000000010000000000;
|
|
23
23
|
|
|
24
|
-
export { ARG_SHIFT as A, InternalComponentCapabilities as I, MACHINE_MASK as M, OPERAND_LEN_MASK as O, TYPE_MASK as T,
|
|
24
|
+
export { ARG_SHIFT as A, InternalComponentCapabilities as I, MACHINE_MASK as M, OPERAND_LEN_MASK as O, TYPE_MASK as T, TYPE_SIZE as a, MAX_SIZE as b };
|