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
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import { toBool } from '../@glimmer/global-context/index.js';
|
|
2
|
-
import {
|
|
3
|
-
import { i as internalHelper } from './hash-
|
|
4
|
-
|
|
5
|
-
const and = internalHelper(({
|
|
6
|
-
positional
|
|
7
|
-
}) => {
|
|
8
|
-
return createComputeRef(() => {
|
|
9
|
-
let last;
|
|
10
|
-
for (let i = 0; i < positional.length; i++) {
|
|
11
|
-
let arg = positional[i];
|
|
12
|
-
last = arg ? valueForRef(arg) : arg;
|
|
13
|
-
if (!toBool(last)) return last;
|
|
14
|
-
}
|
|
15
|
-
return last;
|
|
16
|
-
}, null, 'and');
|
|
17
|
-
});
|
|
2
|
+
import { c as createComputeRef, v as valueForRef } from './reference-CG0yPgLy.js';
|
|
3
|
+
import { i as internalHelper } from './hash-gEXIsSO4.js';
|
|
18
4
|
|
|
19
5
|
/**
|
|
20
6
|
* Performs a strict equality comparison.
|
|
@@ -25,6 +11,15 @@ function eq(left, right) {
|
|
|
25
11
|
return left === right;
|
|
26
12
|
}
|
|
27
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Performs a strict inequality comparison.
|
|
16
|
+
*
|
|
17
|
+
* left !== right
|
|
18
|
+
*/
|
|
19
|
+
function neq(left, right) {
|
|
20
|
+
return left !== right;
|
|
21
|
+
}
|
|
22
|
+
|
|
28
23
|
/**
|
|
29
24
|
* Performs a greater than comparison.
|
|
30
25
|
*
|
|
@@ -61,18 +56,19 @@ function lte(left, right) {
|
|
|
61
56
|
return left <= right;
|
|
62
57
|
}
|
|
63
58
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
};
|
|
59
|
+
const and = internalHelper(({
|
|
60
|
+
positional
|
|
61
|
+
}) => {
|
|
62
|
+
return createComputeRef(() => {
|
|
63
|
+
let last;
|
|
64
|
+
for (let i = 0; i < positional.length; i++) {
|
|
65
|
+
let arg = positional[i];
|
|
66
|
+
last = arg ? valueForRef(arg) : arg;
|
|
67
|
+
if (!toBool(last)) return last;
|
|
68
|
+
}
|
|
69
|
+
return last;
|
|
70
|
+
}, null, 'and');
|
|
71
|
+
});
|
|
76
72
|
|
|
77
73
|
const or = internalHelper(({
|
|
78
74
|
positional
|
|
@@ -88,4 +84,8 @@ const or = internalHelper(({
|
|
|
88
84
|
}, null, 'or');
|
|
89
85
|
});
|
|
90
86
|
|
|
87
|
+
const not = (...args) => {
|
|
88
|
+
return !toBool(args[0]);
|
|
89
|
+
};
|
|
90
|
+
|
|
91
91
|
export { and as a, gte as b, lte as c, not as d, eq as e, gt as g, lt as l, neq as n, or as o };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { E as ENV } from './env-DXxsTFkM.js';
|
|
2
2
|
import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';
|
|
3
3
|
import { registerDestructor } from '../@glimmer/destroyable/index.js';
|
|
4
|
-
import {
|
|
5
|
-
import { a as tagMetaFor } from './meta-
|
|
6
|
-
import { g as getChainTagsForKey } from './chain-tags-
|
|
4
|
+
import { a as valueForTag, v as validateTag, k as CURRENT_TAG } from './cache-CofLhaS4.js';
|
|
5
|
+
import { a as tagMetaFor } from './meta-BJtIZDir.js';
|
|
6
|
+
import { g as getChainTagsForKey } from './chain-tags-B2J7DsxO.js';
|
|
7
7
|
import { a as addListener, r as removeListener, s as sendEvent } from './events-DYrYz3V8.js';
|
|
8
8
|
|
|
9
9
|
const AFTER_OBSERVERS = ':change';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as check } from './
|
|
1
|
+
import { g as check } from './arguments-BzAkZVBa.js';
|
|
2
2
|
import { registerDestructor } from '../@glimmer/destroyable/index.js';
|
|
3
|
-
import { k as setInternalModifierManager } from './api-
|
|
4
|
-
import { v as valueForRef } from './reference-
|
|
5
|
-
import {
|
|
3
|
+
import { k as setInternalModifierManager } from './api-DlJKfm_f.js';
|
|
4
|
+
import { v as valueForRef } from './reference-CG0yPgLy.js';
|
|
5
|
+
import { b as createUpdatableTag } from './cache-CofLhaS4.js';
|
|
6
6
|
|
|
7
7
|
class OnModifierState {
|
|
8
8
|
tag = createUpdatableTag();
|
|
@@ -114,11 +114,7 @@ function addEventListener(element, eventName, callback, options) {
|
|
|
114
114
|
For example, if you'd like to run a function on your component when a `<button>`
|
|
115
115
|
in the components template is clicked you might do something like:
|
|
116
116
|
|
|
117
|
-
```app/components/like-post.
|
|
118
|
-
<button {{on 'click' this.saveLike}}>Like this post!</button>
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
```app/components/like-post.js
|
|
117
|
+
```app/components/like-post.gjs
|
|
122
118
|
import Component from '@glimmer/component';
|
|
123
119
|
import { action } from '@ember/object';
|
|
124
120
|
|
|
@@ -127,6 +123,10 @@ function addEventListener(element, eventName, callback, options) {
|
|
|
127
123
|
// someone likes your post!
|
|
128
124
|
// better send a request off to your server...
|
|
129
125
|
}
|
|
126
|
+
|
|
127
|
+
<template>
|
|
128
|
+
<button {{on 'click' this.saveLike}}>Like this post!</button>
|
|
129
|
+
</template>
|
|
130
130
|
}
|
|
131
131
|
```
|
|
132
132
|
|
|
@@ -174,7 +174,7 @@ function addEventListener(element, eventName, callback, options) {
|
|
|
174
174
|
properly bound to the `items-list`, but let's explore what happens if we
|
|
175
175
|
left out the arrow function:
|
|
176
176
|
|
|
177
|
-
```app/components/like-post.
|
|
177
|
+
```app/components/like-post.gjs
|
|
178
178
|
import Component from '@glimmer/component';
|
|
179
179
|
|
|
180
180
|
export default class LikePostComponent extends Component {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as unwrap } from './collections-
|
|
2
|
-
import { O as OPERAND_LEN_MASK, A as ARG_SHIFT, M as MACHINE_MASK, T as TYPE_MASK } from './flags-
|
|
1
|
+
import { u as unwrap } from './collections-GpG8lT2g.js';
|
|
2
|
+
import { O as OPERAND_LEN_MASK, A as ARG_SHIFT, M as MACHINE_MASK, T as TYPE_MASK } from './flags-BZxHQ0yn.js';
|
|
3
3
|
|
|
4
4
|
class RuntimeOpImpl {
|
|
5
5
|
offset = 0;
|
package/dist/prod/packages/shared-chunks/{program-context-B8HKU7wu.js → program-context-COSioH46.js}
RENAMED
|
@@ -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-
|
|
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-
|
|
5
|
+
import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-Bf53M8eS.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);
|
package/dist/prod/packages/shared-chunks/{property_get-CAFdpRyu.js → property_get-DAKgbeJX.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as setProxy } from './is_proxy-Bzg0d4m4.js';
|
|
2
2
|
import { isEmberArray } from '../@ember/array/-internals.js';
|
|
3
|
-
import { t as track,
|
|
4
|
-
import { t as tagFor } from './meta-
|
|
3
|
+
import { t as track, f as isTracking, c as consumeTag } from './cache-CofLhaS4.js';
|
|
4
|
+
import { t as tagFor } from './meta-BJtIZDir.js';
|
|
5
5
|
import { C as Cache } from './cache-qDyqAcpg.js';
|
|
6
6
|
|
|
7
7
|
const firstDotIndexCache = new Cache(1000, key => key.indexOf('.'));
|
package/dist/prod/packages/shared-chunks/{property_set-BunbMFtp.js → property_set-BaQJdVfS.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as lookupDescriptor } from './lookup-descriptor-CwcVgaLv.js';
|
|
2
2
|
import { C as COMPUTED_SETTERS } from './decorator-9ikVwsjY.js';
|
|
3
|
-
import { i as isPath, _ as _getPath } from './property_get-
|
|
4
|
-
import { n as notifyPropertyChange } from './computed-
|
|
3
|
+
import { i as isPath, _ as _getPath } from './property_get-DAKgbeJX.js';
|
|
4
|
+
import { n as notifyPropertyChange } from './computed-DtIStxvq.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
@module @ember/object
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as expect, i as isDict } from './collections-GpG8lT2g.js';
|
|
2
2
|
import { setProp, getProp } from '../@glimmer/global-context/index.js';
|
|
3
|
-
import { C as CONSTANT_TAG, I as INITIAL, v as validateTag, t as track,
|
|
3
|
+
import { C as CONSTANT_TAG, I as INITIAL, v as validateTag, t as track, a as valueForTag, c as consumeTag } from './cache-CofLhaS4.js';
|
|
4
4
|
|
|
5
5
|
const REFERENCE = Symbol('REFERENCE');
|
|
6
6
|
const CONSTANT = 0;
|
|
@@ -148,4 +148,4 @@ function childRefFromParts(root, parts) {
|
|
|
148
148
|
}
|
|
149
149
|
let createDebugAliasRef;
|
|
150
150
|
|
|
151
|
-
export { FALSE_REFERENCE as F, NULL_REFERENCE as N, REFERENCE as R, TRUE_REFERENCE as T, UNDEFINED_REFERENCE as U,
|
|
151
|
+
export { FALSE_REFERENCE as F, NULL_REFERENCE as N, REFERENCE as R, TRUE_REFERENCE as T, UNDEFINED_REFERENCE as U, createConstRef as a, isUpdatableRef as b, createComputeRef as c, isInvokableRef as d, createPrimitiveRef as e, childRefFor as f, childRefFromParts as g, createInvokableRef as h, isConstRef as i, createReadOnlyRef as j, createUnboundRef as k, createDebugAliasRef as l, updateRef as u, valueForRef as v };
|
|
@@ -1,8 +1,8 @@
|
|
|
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 './
|
|
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-CQexacBn.js';
|
|
2
2
|
import { c as castToSimple, a as castToBrowser } from './simple-cast-DCvJLSin.js';
|
|
3
|
-
import { e as expect } from './collections-
|
|
3
|
+
import { e as expect } from './collections-GpG8lT2g.js';
|
|
4
4
|
import { a as assert } from './assert-Zqc4wiAV.js';
|
|
5
|
-
import { C as ConcreteBounds, a as CursorImpl } from './normalize-
|
|
5
|
+
import { C as ConcreteBounds, a as CursorImpl } from './normalize-C_IStty9.js';
|
|
6
6
|
|
|
7
7
|
const SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';
|
|
8
8
|
function isSerializationFirstNode(node) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as unwrap, e as expect, c as isIndexable, S as StackImpl } from './collections-
|
|
1
|
+
import { u as unwrap, e as expect, c as isIndexable, S as StackImpl } from './collections-GpG8lT2g.js';
|
|
2
2
|
import { a as unwrapHandle } from './template-BRrQR6KS.js';
|
|
3
|
-
import {
|
|
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-CG0yPgLy.js';
|
|
4
4
|
import { a as assert } from './assert-Zqc4wiAV.js';
|
|
5
|
-
import { P as ProgramImpl } from './program-
|
|
6
|
-
import { t as track, U as UPDATE_TAG,
|
|
7
|
-
import {
|
|
8
|
-
import { B as BLACKLIST_TABLE, f as DOMOperations, D as DOMTreeConstruction, N as NewTreeBuilder } from './
|
|
5
|
+
import { P as ProgramImpl } from './program-BAh__OXZ.js';
|
|
6
|
+
import { t as track, U as UPDATE_TAG, o as beginTrackFrame, s as endTrackFrame } from './cache-CofLhaS4.js';
|
|
7
|
+
import { D as DebugRenderTreeImpl, i as isArgumentError, h as isCurriedType, d as curry, A as APPEND_OPCODES, g as check, j as resolveCurriedValue, f as reifyPositional, k as AssertFilter, V as VMArgumentsImpl, l as externs, J as JumpIfNotModifiedOpcode, B as BeginTrackFrameOpcode, m as EndTrackFrameOpcode } from './arguments-BzAkZVBa.js';
|
|
8
|
+
import { B as BLACKLIST_TABLE, f as DOMOperations, D as DOMTreeConstruction, N as NewTreeBuilder } from './api-CQexacBn.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 { createIteratorRef, createIteratorItemRef } from '../@glimmer/reference/index.js';
|
|
@@ -13,90 +13,11 @@ import { r as reverse } from './array-utils-CZQxrdD3.js';
|
|
|
13
13
|
import { a as $v0, d as $pc, e as $ra, f as $fp, g as $sp, i as isLowLevelRegister } from './registers-C_W2qYHJ.js';
|
|
14
14
|
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';
|
|
15
15
|
import { a as CURRIED_COMPONENT, b as CURRIED_HELPER } from './curried-BZnYakIg.js';
|
|
16
|
-
import { ai as
|
|
16
|
+
import { ai as VM_CURRY_OP, 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, p as decodeHandle, aB as VM_ENTER_LIST_OP, aC as VM_EXIT_LIST_OP, aD as VM_ITERATE_OP } from './syscall-ops-CN7STuUn.js';
|
|
17
17
|
import { toBool } from '../@glimmer/global-context/index.js';
|
|
18
|
-
import { a as getInternalHelperManager, c as hasInternalComponentManager, d as hasInternalHelperManager } from './api-
|
|
18
|
+
import { a as getInternalHelperManager, c as hasInternalComponentManager, d as hasInternalHelperManager } from './api-DlJKfm_f.js';
|
|
19
19
|
import { ContentType } from '../@glimmer/vm/index.js';
|
|
20
|
-
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-
|
|
21
|
-
|
|
22
|
-
// Allow the contents of `debugCallback` without extra annotations
|
|
23
|
-
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
|
24
|
-
|
|
25
|
-
function debugCallback(context, get) {
|
|
26
|
-
// eslint-disable-next-line no-console
|
|
27
|
-
console.info('Use `context`, and `get(<path>)` to debug this template.');
|
|
28
|
-
|
|
29
|
-
// for example...
|
|
30
|
-
context === get('this');
|
|
31
|
-
|
|
32
|
-
// eslint-disable-next-line no-debugger
|
|
33
|
-
debugger;
|
|
34
|
-
}
|
|
35
|
-
let callback = debugCallback;
|
|
36
|
-
|
|
37
|
-
// For testing purposes
|
|
38
|
-
function setDebuggerCallback(cb) {
|
|
39
|
-
callback = cb;
|
|
40
|
-
}
|
|
41
|
-
function resetDebuggerCallback() {
|
|
42
|
-
callback = debugCallback;
|
|
43
|
-
}
|
|
44
|
-
class ScopeInspector {
|
|
45
|
-
#symbols;
|
|
46
|
-
constructor(scope, symbols) {
|
|
47
|
-
this.scope = scope;
|
|
48
|
-
this.#symbols = symbols;
|
|
49
|
-
}
|
|
50
|
-
get(path) {
|
|
51
|
-
let {
|
|
52
|
-
scope
|
|
53
|
-
} = this;
|
|
54
|
-
let symbols = this.#symbols;
|
|
55
|
-
let parts = path.split('.');
|
|
56
|
-
let [head, ...tail] = path.split('.');
|
|
57
|
-
let ref;
|
|
58
|
-
if (head === 'this') {
|
|
59
|
-
ref = scope.getSelf();
|
|
60
|
-
} else if (symbols.locals[head]) {
|
|
61
|
-
ref = unwrap(scope.getSymbol(symbols.locals[head]));
|
|
62
|
-
} else {
|
|
63
|
-
ref = this.scope.getSelf();
|
|
64
|
-
tail = parts;
|
|
65
|
-
}
|
|
66
|
-
return tail.reduce((r, part) => childRefFor(r, part), ref);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
APPEND_OPCODES.add(VM_DEBUGGER_OP, (vm, {
|
|
70
|
-
op1: _debugInfo
|
|
71
|
-
}) => {
|
|
72
|
-
let debuggerInfo = vm.constants.getValue(decodeHandle(_debugInfo));
|
|
73
|
-
let inspector = new ScopeInspector(vm.scope(), debuggerInfo);
|
|
74
|
-
callback(valueForRef(vm.getSelf()), path => valueForRef(inspector.get(path)));
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
['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);
|
|
78
|
-
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;
|
|
79
|
-
function isWhitespace(string) {
|
|
80
|
-
return WHITESPACE.test(string);
|
|
81
|
-
}
|
|
82
|
-
class DOMChangesImpl extends DOMOperations {
|
|
83
|
-
namespace;
|
|
84
|
-
constructor(document) {
|
|
85
|
-
super(document);
|
|
86
|
-
this.document = document;
|
|
87
|
-
this.namespace = null;
|
|
88
|
-
}
|
|
89
|
-
setAttribute(element, name, value) {
|
|
90
|
-
element.setAttribute(name, value);
|
|
91
|
-
}
|
|
92
|
-
removeAttribute(element, name) {
|
|
93
|
-
element.removeAttribute(name);
|
|
94
|
-
}
|
|
95
|
-
insertAfter(element, node, reference) {
|
|
96
|
-
this.insertBefore(element, node, reference.nextSibling);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
const DOMChanges = DOMChangesImpl;
|
|
20
|
+
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-C_IStty9.js';
|
|
100
21
|
|
|
101
22
|
class DynamicScopeImpl {
|
|
102
23
|
bucket;
|
|
@@ -201,6 +122,30 @@ class ScopeImpl {
|
|
|
201
122
|
}
|
|
202
123
|
}
|
|
203
124
|
|
|
125
|
+
['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);
|
|
126
|
+
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;
|
|
127
|
+
function isWhitespace(string) {
|
|
128
|
+
return WHITESPACE.test(string);
|
|
129
|
+
}
|
|
130
|
+
class DOMChangesImpl extends DOMOperations {
|
|
131
|
+
namespace;
|
|
132
|
+
constructor(document) {
|
|
133
|
+
super(document);
|
|
134
|
+
this.document = document;
|
|
135
|
+
this.namespace = null;
|
|
136
|
+
}
|
|
137
|
+
setAttribute(element, name, value) {
|
|
138
|
+
element.setAttribute(name, value);
|
|
139
|
+
}
|
|
140
|
+
removeAttribute(element, name) {
|
|
141
|
+
element.removeAttribute(name);
|
|
142
|
+
}
|
|
143
|
+
insertAfter(element, node, reference) {
|
|
144
|
+
this.insertBefore(element, node, reference.nextSibling);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
const DOMChanges = DOMChangesImpl;
|
|
148
|
+
|
|
204
149
|
const TRANSACTION = Symbol('TRANSACTION');
|
|
205
150
|
class TransactionImpl {
|
|
206
151
|
scheduledInstallModifiers = [];
|
|
@@ -701,6 +646,61 @@ APPEND_OPCODES.add(VM_APPEND_NODE_OP, vm => {
|
|
|
701
646
|
vm.tree().appendDynamicNode(value);
|
|
702
647
|
});
|
|
703
648
|
|
|
649
|
+
// Allow the contents of `debugCallback` without extra annotations
|
|
650
|
+
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
|
651
|
+
|
|
652
|
+
function debugCallback(context, get) {
|
|
653
|
+
// eslint-disable-next-line no-console
|
|
654
|
+
console.info('Use `context`, and `get(<path>)` to debug this template.');
|
|
655
|
+
|
|
656
|
+
// for example...
|
|
657
|
+
context === get('this');
|
|
658
|
+
|
|
659
|
+
// eslint-disable-next-line no-debugger
|
|
660
|
+
debugger;
|
|
661
|
+
}
|
|
662
|
+
let callback = debugCallback;
|
|
663
|
+
|
|
664
|
+
// For testing purposes
|
|
665
|
+
function setDebuggerCallback(cb) {
|
|
666
|
+
callback = cb;
|
|
667
|
+
}
|
|
668
|
+
function resetDebuggerCallback() {
|
|
669
|
+
callback = debugCallback;
|
|
670
|
+
}
|
|
671
|
+
class ScopeInspector {
|
|
672
|
+
#symbols;
|
|
673
|
+
constructor(scope, symbols) {
|
|
674
|
+
this.scope = scope;
|
|
675
|
+
this.#symbols = symbols;
|
|
676
|
+
}
|
|
677
|
+
get(path) {
|
|
678
|
+
let {
|
|
679
|
+
scope
|
|
680
|
+
} = this;
|
|
681
|
+
let symbols = this.#symbols;
|
|
682
|
+
let parts = path.split('.');
|
|
683
|
+
let [head, ...tail] = path.split('.');
|
|
684
|
+
let ref;
|
|
685
|
+
if (head === 'this') {
|
|
686
|
+
ref = scope.getSelf();
|
|
687
|
+
} else if (symbols.locals[head]) {
|
|
688
|
+
ref = unwrap(scope.getSymbol(symbols.locals[head]));
|
|
689
|
+
} else {
|
|
690
|
+
ref = this.scope.getSelf();
|
|
691
|
+
tail = parts;
|
|
692
|
+
}
|
|
693
|
+
return tail.reduce((r, part) => childRefFor(r, part), ref);
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
APPEND_OPCODES.add(VM_DEBUGGER_OP, (vm, {
|
|
697
|
+
op1: _debugInfo
|
|
698
|
+
}) => {
|
|
699
|
+
let debuggerInfo = vm.constants.getValue(decodeHandle(_debugInfo));
|
|
700
|
+
let inspector = new ScopeInspector(vm.scope(), debuggerInfo);
|
|
701
|
+
callback(valueForRef(vm.getSelf()), path => valueForRef(inspector.get(path)));
|
|
702
|
+
});
|
|
703
|
+
|
|
704
704
|
APPEND_OPCODES.add(VM_ENTER_LIST_OP, (vm, {
|
|
705
705
|
op1: relativeStart,
|
|
706
706
|
op2: elseTarget
|