ember-source 6.12.0-beta.3 → 7.0.0-alpha.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/blueprints/initializer-test/files/__root__/__testType__/__path__/__name__-test.ts +2 -2
- package/blueprints/instance-initializer-test/files/__root__/__testType__/__path__/__name__-test.ts +3 -3
- package/build-metadata.json +3 -3
- package/dist/{packages/shared-chunks/registry-XY5cfmbH.js → dev/packages/@ember/-internals/container/index.js} +28 -27
- package/dist/{packages → dev/packages}/@ember/-internals/deprecations/index.js +5 -16
- package/dist/{packages/shared-chunks/env-DEd6hPbj.js → dev/packages/@ember/-internals/environment/index.js} +31 -53
- package/dist/dev/packages/@ember/-internals/glimmer/index.js +42 -0
- package/dist/{packages → dev/packages}/@ember/-internals/meta/lib/meta.js +37 -38
- package/dist/dev/packages/@ember/-internals/metal/index.js +63 -0
- package/dist/{packages → dev/packages}/@ember/-internals/routing/index.js +7 -8
- package/dist/{packages → dev/packages}/@ember/-internals/runtime/lib/ext/rsvp.js +1 -2
- package/dist/{packages → dev/packages}/@ember/-internals/runtime/lib/mixins/-proxy.js +14 -15
- package/dist/{packages → dev/packages}/@ember/-internals/runtime/lib/mixins/action_handler.js +21 -9
- package/dist/{packages → dev/packages}/@ember/-internals/runtime/lib/mixins/registry_proxy.js +11 -2
- package/dist/{packages → dev/packages}/@ember/-internals/runtime/lib/mixins/target_action_support.js +22 -9
- package/dist/{packages → dev/packages}/@ember/-internals/string/index.js +1 -2
- package/dist/dev/packages/@ember/-internals/utils/index.js +34 -0
- package/dist/{packages → dev/packages}/@ember/-internals/views/lib/compat/fallback-view-registry.js +1 -2
- package/dist/{packages → dev/packages}/@ember/-internals/views/lib/mixins/action_support.js +16 -10
- package/dist/{packages → dev/packages}/@ember/-internals/views/lib/system/event_dispatcher.js +19 -20
- package/dist/{packages → dev/packages}/@ember/-internals/views/lib/system/utils.js +7 -23
- package/dist/{packages → dev/packages}/@ember/-internals/views/lib/views/core_view.js +6 -7
- package/dist/{packages → dev/packages}/@ember/-internals/views/lib/views/states.js +3 -4
- package/dist/{packages → dev/packages}/@ember/application/index.js +50 -121
- package/dist/{packages → dev/packages}/@ember/application/instance.js +17 -17
- package/dist/{packages → dev/packages}/@ember/application/namespace.js +27 -9
- package/dist/{packages → dev/packages}/@ember/array/index.js +34 -25
- package/dist/{packages → dev/packages}/@ember/array/proxy.js +19 -20
- package/dist/{packages → dev/packages}/@ember/canary-features/index.js +1 -1
- package/dist/dev/packages/@ember/component/helper.js +14 -0
- package/dist/{packages → dev/packages}/@ember/component/index.js +12 -12
- package/dist/{packages → dev/packages}/@ember/component/template-only.js +6 -6
- package/dist/{packages → dev/packages}/@ember/controller/index.js +7 -9
- package/dist/{packages → dev/packages}/@ember/debug/container-debug-adapter.js +6 -7
- package/dist/{packages → dev/packages}/@ember/debug/data-adapter.js +6 -7
- package/dist/{packages → dev/packages}/@ember/debug/index.js +4 -11
- package/dist/{packages → dev/packages}/@ember/debug/lib/assert.js +1 -3
- package/dist/{packages → dev/packages}/@ember/debug/lib/deprecate.js +7 -3
- package/dist/{packages → dev/packages}/@ember/debug/lib/handlers.js +1 -3
- package/dist/{packages → dev/packages}/@ember/debug/lib/warn.js +1 -2
- package/dist/{packages → dev/packages}/@ember/engine/index.js +22 -22
- package/dist/dev/packages/@ember/engine/instance.js +200 -0
- package/dist/{packages → dev/packages}/@ember/helper/index.js +12 -11
- package/dist/{packages → dev/packages}/@ember/instrumentation/index.js +3 -8
- package/dist/dev/packages/@ember/modifier/index.js +23 -0
- package/dist/{packages → dev/packages}/@ember/modifier/on.js +6 -6
- package/dist/dev/packages/@ember/object/-internals.js +49 -0
- package/dist/{packages → dev/packages}/@ember/object/compat.js +11 -12
- package/dist/{packages → dev/packages}/@ember/object/computed.js +7 -8
- package/dist/{packages → dev/packages}/@ember/object/core.js +28 -29
- package/dist/{packages → dev/packages}/@ember/object/evented.js +7 -8
- package/dist/dev/packages/@ember/object/events.js +11 -0
- package/dist/{packages → dev/packages}/@ember/object/index.js +18 -19
- package/dist/{packages → dev/packages}/@ember/object/internals.js +1 -1
- package/dist/{packages → dev/packages}/@ember/object/lib/computed/computed_macros.js +30 -27
- package/dist/{packages → dev/packages}/@ember/object/lib/computed/reduce_computed_macros.js +36 -37
- package/dist/{packages → dev/packages}/@ember/object/mixin.js +15 -23
- package/dist/dev/packages/@ember/object/observable.js +181 -0
- package/dist/dev/packages/@ember/object/observers.js +11 -0
- package/dist/{packages → dev/packages}/@ember/object/promise-proxy-mixin.js +7 -8
- package/dist/dev/packages/@ember/renderer/index.js +14 -0
- package/dist/dev/packages/@ember/routing/-internals.js +22 -0
- package/dist/{packages → dev/packages}/@ember/routing/hash-location.js +1 -1
- package/dist/{packages → dev/packages}/@ember/routing/history-location.js +9 -25
- package/dist/dev/packages/@ember/routing/index.js +14 -0
- package/dist/{packages → dev/packages}/@ember/routing/lib/dsl.js +5 -6
- package/dist/{packages → dev/packages}/@ember/routing/lib/generate_controller.js +22 -10
- package/dist/{packages → dev/packages}/@ember/routing/lib/location-utils.js +3 -16
- package/dist/{packages → dev/packages}/@ember/routing/lib/routing-service.js +19 -9
- package/dist/{packages → dev/packages}/@ember/routing/lib/utils.js +12 -13
- package/dist/{packages → dev/packages}/@ember/routing/none-location.js +2 -4
- package/dist/{packages → dev/packages}/@ember/routing/route.js +38 -39
- package/dist/{packages → dev/packages}/@ember/routing/router-service.js +13 -14
- package/dist/{packages → dev/packages}/@ember/routing/router.js +63 -71
- package/dist/{packages → dev/packages}/@ember/runloop/index.js +9 -8
- package/dist/{packages → dev/packages}/@ember/service/index.js +6 -7
- package/dist/dev/packages/@ember/template/index.js +14 -0
- package/dist/{packages → dev/packages}/@ember/template-compilation/index.js +3 -3
- package/dist/dev/packages/@ember/template-compiler/index.js +2 -0
- package/dist/{packages → dev/packages}/@ember/template-compiler/lib/compile-options.js +11 -6
- package/dist/{packages → dev/packages}/@ember/template-compiler/lib/dasherize-component-name.js +1 -2
- package/dist/dev/packages/@ember/template-compiler/lib/plugins/allowed-globals.js +56 -0
- package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/assert-against-attrs.js +19 -3
- package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/assert-against-named-outlets.js +11 -2
- package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/assert-input-helper-without-block.js +1 -2
- package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/assert-reserved-named-arguments.js +3 -4
- package/dist/dev/packages/@ember/template-compiler/lib/plugins/index.js +40 -0
- package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/transform-each-track-array.js +21 -2
- package/dist/dev/packages/@ember/template-compiler/lib/plugins/transform-in-element.js +50 -0
- package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/transform-resolutions.js +2 -3
- package/dist/dev/packages/@ember/template-compiler/lib/template.js +248 -0
- package/dist/dev/packages/@ember/template-factory/index.js +8 -0
- package/dist/dev/packages/@ember/test/index.js +18 -0
- package/dist/{packages → dev/packages}/@ember/utils/lib/compare.js +5 -6
- package/dist/{packages → dev/packages}/@ember/utils/lib/is_empty.js +6 -7
- package/dist/{packages → dev/packages}/@glimmer/destroyable/index.js +21 -16
- package/dist/{packages/shared-chunks/encoder-CT1wqYMF.js → dev/packages/@glimmer/encoder/index.js} +3 -4
- package/dist/{packages → dev/packages}/@glimmer/global-context/index.js +6 -5
- package/dist/{packages/shared-chunks/api-1B_9SjFR.js → dev/packages/@glimmer/manager/index.js} +17 -14
- package/dist/dev/packages/@glimmer/node/index.js +40 -0
- package/dist/{packages → dev/packages}/@glimmer/opcode-compiler/index.js +5 -6
- package/dist/dev/packages/@glimmer/program/index.js +12 -0
- package/dist/dev/packages/@glimmer/reference/index.js +208 -0
- package/dist/dev/packages/@glimmer/runtime/index.js +11 -0
- package/dist/dev/packages/@glimmer/tracking/index.js +137 -0
- package/dist/dev/packages/@glimmer/tracking/primitives/cache/index.js +11 -0
- package/dist/{packages → dev/packages}/@glimmer/util/index.js +2 -3
- package/dist/{packages → dev/packages}/@glimmer/validator/index.js +304 -372
- package/dist/{packages → dev/packages}/@glimmer/vm/index.js +1 -1
- package/dist/{packages → dev/packages}/ember/version.js +2 -2
- package/dist/dev/packages/ember-template-compiler/index.js +109 -0
- package/dist/{packages → dev/packages}/ember-testing/index.js +1 -3
- package/dist/dev/packages/ember-testing/lib/public-api.js +2 -0
- package/dist/dev/packages/ember-testing/lib/test/pending_requests.js +10 -0
- package/dist/dev/packages/ember-testing/lib/test.js +25 -0
- package/dist/{packages/shared-chunks/router-DSi8WnDi.js → dev/packages/router_js/index.js} +120 -58
- package/dist/{packages/shared-chunks/alias-BEMS3qgG.js → dev/packages/shared-chunks/alias-CSC0WIbj.js} +4 -5
- package/dist/{packages/shared-chunks/api-CkUl6KyJ.js → dev/packages/shared-chunks/api-BqXkkT0p.js} +14 -16
- package/dist/{packages/shared-chunks/args-proxy-B91L3LRK.js → dev/packages/shared-chunks/args-proxy-DgXMc9b5.js} +7 -8
- package/dist/{packages/shared-chunks/array-BqYCCatg.js → dev/packages/shared-chunks/array-D8PfjQHi.js} +3 -4
- package/dist/dev/packages/shared-chunks/capabilities-O_xc7Yqk.js +34 -0
- package/dist/{packages/shared-chunks/collections-B8me-ZlQ.js → dev/packages/shared-chunks/collections-D_nY_0UJ.js} +1 -2
- package/dist/{packages/@ember/template-compiler/lib/template.js → dev/packages/shared-chunks/compiler-CNj62pww.js} +22 -243
- package/dist/{packages/shared-chunks/constants-oDhF27qL.js → dev/packages/shared-chunks/constants-eoaL3OJQ.js} +9 -9
- package/dist/{packages/shared-chunks/debug-to-string-BsFOvUtQ.js → dev/packages/shared-chunks/debug-to-string-CFb7h0lY.js} +1 -3
- package/dist/{packages/shared-chunks/dynamic-CuBsUXX8.js → dev/packages/shared-chunks/dynamic-CFg3dljk.js} +108 -134
- package/dist/{packages/shared-chunks/element-builder-BuVym8EM.js → dev/packages/shared-chunks/element-builder-BOxP8emt.js} +4 -5
- package/dist/{packages/shared-chunks/flags-BsZlvEeR.js → dev/packages/shared-chunks/flags-B9qxc-pB.js} +1 -1
- package/dist/{packages/shared-chunks/capabilities-DHiXCCuB.js → dev/packages/shared-chunks/fragment-Cc5k9Oy4.js} +2 -33
- package/dist/{packages/shared-chunks/index-ByyoGpfz.js → dev/packages/shared-chunks/index-PxU6E7q8.js} +658 -214
- package/dist/{packages/shared-chunks/index-CQkjwqTv.js → dev/packages/shared-chunks/index-Q7JnrdBn.js} +20 -19
- package/dist/dev/packages/shared-chunks/invoke-DxRPE05O.js +67 -0
- package/dist/{packages/shared-chunks/is_proxy-C2q5rUMp.js → dev/packages/shared-chunks/is_proxy-B0smdQy8.js} +1 -1
- package/dist/{packages/shared-chunks/mandatory-setter-DLKyVs4Q.js → dev/packages/shared-chunks/mandatory-setter-DHZe7-kW.js} +47 -48
- package/dist/{packages/shared-chunks/name-DVtQREj6.js → dev/packages/shared-chunks/name-Z7dpqvzn.js} +1 -1
- package/dist/{packages/shared-chunks/namespace_search-ClQOZuFA.js → dev/packages/shared-chunks/namespace_search-uT8odThF.js} +3 -4
- package/dist/{packages/shared-chunks/observers-DhgQ6ba5.js → dev/packages/shared-chunks/observers-Bj9qLVau.js} +231 -87
- package/dist/{packages/shared-chunks/program-CcLlGnAU.js → dev/packages/shared-chunks/program-DfV0v8aa.js} +4 -6
- package/dist/{packages/shared-chunks/program-context-CZJnCFdo.js → dev/packages/shared-chunks/program-context-BRjCC_BA.js} +2 -2
- package/dist/{packages/shared-chunks/property_set-DrZnfGQ7.js → dev/packages/shared-chunks/property_set-DaoZXGM5.js} +11 -16
- package/dist/dev/packages/shared-chunks/public-api-C3KlJmEr.js +10 -0
- package/dist/{packages/shared-chunks/reference-B6HMX4y0.js → dev/packages/shared-chunks/reference-C3TKDRnP.js} +11 -12
- package/dist/{packages/@glimmer/runtime/index.js → dev/packages/shared-chunks/rehydrate-builder-DPImr9e9.js} +8 -16
- package/dist/{packages/shared-chunks/render-DTOhhssy.js → dev/packages/shared-chunks/render-sg8BuFaE.js} +16 -23
- package/dist/{packages/shared-chunks/serialize-builder-DEgRJgNQ.js → dev/packages/shared-chunks/serialize-builder-b_gSYCSS.js} +7 -7
- package/dist/{packages/shared-chunks/set_properties-Dag9Xz6u.js → dev/packages/shared-chunks/set_properties-kVGzZL_a.js} +2 -2
- package/dist/{packages/shared-chunks/setup-registry-Bbj8WQen.js → dev/packages/shared-chunks/setup-registry-DGdDOxrk.js} +12 -12
- package/dist/{packages/shared-chunks/simple-cast-BXTrayoV.js → dev/packages/shared-chunks/simple-cast-DCvJLSin.js} +1 -1
- package/dist/{packages/shared-chunks/template-CMHIG4cn.js → dev/packages/shared-chunks/template-kM-7TTcc.js} +3 -4
- package/dist/dev/packages/shared-chunks/to-string-C7M8LBLH.js +36 -0
- package/dist/{packages/shared-chunks/transform-resolutions-vHYYonpB.js → dev/packages/shared-chunks/transform-resolutions-fXGQKGsL.js} +331 -288
- package/dist/{packages/shared-chunks/unrecognized-url-error-BBMMZhBN.js → dev/packages/shared-chunks/unrecognized-url-error-B3wUTorp.js} +103 -39
- package/dist/prod/packages/@ember/-internals/browser-environment/index.js +2 -0
- package/dist/prod/packages/@ember/-internals/container/index.js +697 -0
- package/dist/prod/packages/@ember/-internals/deprecations/index.js +114 -0
- package/dist/prod/packages/@ember/-internals/environment/index.js +171 -0
- package/dist/prod/packages/@ember/-internals/error-handling/index.js +26 -0
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +39 -0
- package/dist/prod/packages/@ember/-internals/meta/index.js +1 -0
- package/dist/prod/packages/@ember/-internals/meta/lib/meta.js +455 -0
- package/dist/prod/packages/@ember/-internals/metal/index.js +61 -0
- package/dist/prod/packages/@ember/-internals/owner/index.js +252 -0
- package/dist/prod/packages/@ember/-internals/routing/index.js +14 -0
- package/dist/prod/packages/@ember/-internals/runtime/index.js +9 -0
- package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +51 -0
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +89 -0
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +187 -0
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/comparable.js +37 -0
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/container_proxy.js +44 -0
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +42 -0
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +142 -0
- package/dist/prod/packages/@ember/-internals/string/index.js +93 -0
- package/dist/prod/packages/@ember/-internals/utility-types/index.js +12 -0
- package/dist/prod/packages/@ember/-internals/utils/index.js +75 -0
- package/dist/prod/packages/@ember/-internals/views/index.js +7 -0
- package/dist/prod/packages/@ember/-internals/views/lib/compat/attrs.js +3 -0
- package/dist/prod/packages/@ember/-internals/views/lib/compat/fallback-view-registry.js +7 -0
- package/dist/prod/packages/@ember/-internals/views/lib/component_lookup.js +14 -0
- package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +35 -0
- package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +227 -0
- package/dist/prod/packages/@ember/-internals/views/lib/system/utils.js +172 -0
- package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +87 -0
- package/dist/prod/packages/@ember/-internals/views/lib/views/states.js +83 -0
- package/dist/prod/packages/@ember/application/index.js +899 -0
- package/dist/prod/packages/@ember/application/instance.js +438 -0
- package/dist/prod/packages/@ember/application/namespace.js +68 -0
- package/dist/prod/packages/@ember/array/-internals.js +9 -0
- package/dist/prod/packages/@ember/array/index.js +591 -0
- package/dist/prod/packages/@ember/array/lib/make-array.js +42 -0
- package/dist/prod/packages/@ember/array/make.js +1 -0
- package/dist/prod/packages/@ember/array/mutable.js +1 -0
- package/dist/prod/packages/@ember/array/proxy.js +267 -0
- package/dist/prod/packages/@ember/canary-features/index.js +67 -0
- package/dist/prod/packages/@ember/component/helper.js +12 -0
- package/dist/prod/packages/@ember/component/index.js +32 -0
- package/dist/prod/packages/@ember/component/template-only.js +39 -0
- package/dist/prod/packages/@ember/controller/index.js +177 -0
- package/dist/prod/packages/@ember/debug/container-debug-adapter.js +117 -0
- package/dist/prod/packages/@ember/debug/data-adapter.js +553 -0
- package/dist/prod/packages/@ember/debug/index.js +30 -0
- package/dist/prod/packages/@ember/debug/lib/assert.js +7 -0
- package/dist/prod/packages/@ember/debug/lib/capture-render-tree.js +28 -0
- package/dist/prod/packages/@ember/debug/lib/deprecate.js +56 -0
- package/dist/prod/packages/@ember/debug/lib/handlers.js +5 -0
- package/dist/prod/packages/@ember/debug/lib/inspect.js +120 -0
- package/dist/prod/packages/@ember/debug/lib/testing.js +9 -0
- package/dist/prod/packages/@ember/debug/lib/warn.js +6 -0
- package/dist/prod/packages/@ember/deprecated-features/index.js +7 -0
- package/dist/prod/packages/@ember/destroyable/index.js +251 -0
- package/dist/prod/packages/@ember/engine/index.js +450 -0
- package/dist/{packages → prod/packages}/@ember/engine/instance.js +24 -10
- package/dist/prod/packages/@ember/engine/lib/engine-parent.js +33 -0
- package/dist/prod/packages/@ember/engine/parent.js +1 -0
- package/dist/prod/packages/@ember/enumerable/index.js +20 -0
- package/dist/prod/packages/@ember/enumerable/mutable.js +22 -0
- package/dist/prod/packages/@ember/helper/index.js +489 -0
- package/dist/prod/packages/@ember/instrumentation/index.js +242 -0
- package/dist/prod/packages/@ember/modifier/index.js +21 -0
- package/dist/prod/packages/@ember/modifier/on.js +20 -0
- package/dist/prod/packages/@ember/object/-internals.js +28 -0
- package/dist/prod/packages/@ember/object/compat.js +128 -0
- package/dist/prod/packages/@ember/object/computed.js +10 -0
- package/dist/prod/packages/@ember/object/core.js +781 -0
- package/dist/prod/packages/@ember/object/evented.js +76 -0
- package/dist/prod/packages/@ember/object/events.js +6 -0
- package/dist/prod/packages/@ember/object/index.js +205 -0
- package/dist/prod/packages/@ember/object/internals.js +8 -0
- package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +776 -0
- package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +1032 -0
- package/dist/prod/packages/@ember/object/mixin.js +560 -0
- package/dist/{packages → prod/packages}/@ember/object/observable.js +80 -15
- package/dist/prod/packages/@ember/object/observers.js +6 -0
- package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +138 -0
- package/dist/prod/packages/@ember/object/proxy.js +98 -0
- package/dist/prod/packages/@ember/owner/index.js +88 -0
- package/dist/prod/packages/@ember/reactive/collections.js +1 -0
- package/dist/prod/packages/@ember/reactive/index.js +12 -0
- package/dist/prod/packages/@ember/renderer/index.js +12 -0
- package/dist/prod/packages/@ember/routing/hash-location.js +153 -0
- package/dist/prod/packages/@ember/routing/history-location.js +250 -0
- package/dist/prod/packages/@ember/routing/index.js +12 -0
- package/dist/prod/packages/@ember/routing/lib/cache.js +37 -0
- package/dist/prod/packages/@ember/routing/lib/controller_for.js +16 -0
- package/dist/prod/packages/@ember/routing/lib/dsl.js +178 -0
- package/dist/prod/packages/@ember/routing/lib/generate_controller.js +62 -0
- package/dist/prod/packages/@ember/routing/lib/location-utils.js +48 -0
- package/dist/prod/packages/@ember/routing/lib/query_params.js +9 -0
- package/dist/prod/packages/@ember/routing/lib/router_state.js +26 -0
- package/dist/prod/packages/@ember/routing/lib/routing-service.js +125 -0
- package/dist/prod/packages/@ember/routing/lib/utils.js +236 -0
- package/dist/prod/packages/@ember/routing/none-location.js +120 -0
- package/dist/prod/packages/@ember/routing/route.js +1604 -0
- package/dist/prod/packages/@ember/routing/router-service.js +640 -0
- package/dist/prod/packages/@ember/routing/router.js +1335 -0
- package/dist/prod/packages/@ember/runloop/index.js +736 -0
- package/dist/prod/packages/@ember/service/index.js +124 -0
- package/dist/prod/packages/@ember/template/index.js +12 -0
- package/dist/prod/packages/@ember/template-compilation/index.js +20 -0
- package/dist/prod/packages/@ember/template-compiler/-internal-primitives.js +1 -0
- package/dist/prod/packages/@ember/template-compiler/-internal-utils.js +1 -0
- package/dist/prod/packages/@ember/template-compiler/index.js +2 -0
- package/dist/prod/packages/@ember/template-compiler/lib/-internal/primitives.js +1 -0
- package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +103 -0
- package/dist/prod/packages/@ember/template-compiler/lib/dasherize-component-name.js +21 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/allowed-globals.js +56 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-against-attrs.js +49 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-against-named-outlets.js +34 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-input-helper-without-block.js +22 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-reserved-named-arguments.js +37 -0
- package/dist/{packages → prod/packages}/@ember/template-compiler/lib/plugins/index.js +1 -1
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-action-syntax.js +65 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-each-in-into-each.js +51 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-each-track-array.js +50 -0
- package/dist/{packages → prod/packages}/@ember/template-compiler/lib/plugins/transform-in-element.js +20 -6
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.js +37 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-resolutions.js +4 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-wrap-mount-and-outlet.js +57 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/utils.js +55 -0
- package/dist/prod/packages/@ember/template-compiler/lib/public-api.js +1 -0
- package/dist/prod/packages/@ember/template-compiler/lib/runtime.js +1 -0
- package/dist/prod/packages/@ember/template-compiler/lib/system/calculate-location-display.js +28 -0
- package/dist/prod/packages/@ember/template-compiler/lib/template.js +245 -0
- package/dist/prod/packages/@ember/template-factory/index.js +5 -0
- package/dist/prod/packages/@ember/test/adapter.js +2 -0
- package/dist/prod/packages/@ember/test/index.js +18 -0
- package/dist/prod/packages/@ember/utils/index.js +7 -0
- package/dist/prod/packages/@ember/utils/lib/compare.js +159 -0
- package/dist/prod/packages/@ember/utils/lib/is-equal.js +60 -0
- package/dist/prod/packages/@ember/utils/lib/is_blank.js +36 -0
- package/dist/prod/packages/@ember/utils/lib/is_empty.js +67 -0
- package/dist/prod/packages/@ember/utils/lib/is_none.js +28 -0
- package/dist/prod/packages/@ember/utils/lib/is_present.js +39 -0
- package/dist/prod/packages/@ember/utils/lib/type-of.js +110 -0
- package/dist/prod/packages/@ember/version/index.js +1 -0
- package/dist/prod/packages/@glimmer/destroyable/index.js +128 -0
- package/dist/prod/packages/@glimmer/encoder/index.js +28 -0
- package/dist/prod/packages/@glimmer/env/index.js +4 -0
- package/dist/prod/packages/@glimmer/global-context/index.js +138 -0
- package/dist/prod/packages/@glimmer/manager/index.js +293 -0
- package/dist/{packages/shared-chunks/node-dom-helper-BYL7Plyj.js → prod/packages/@glimmer/node/index.js} +10 -12
- package/dist/prod/packages/@glimmer/opcode-compiler/index.js +40 -0
- package/dist/prod/packages/@glimmer/owner/index.js +19 -0
- package/dist/prod/packages/@glimmer/program/index.js +12 -0
- package/dist/{packages/shared-chunks/iterable-BKS7az3P.js → prod/packages/@glimmer/reference/index.js} +13 -12
- package/dist/prod/packages/@glimmer/runtime/index.js +9 -0
- package/dist/prod/packages/@glimmer/tracking/index.js +115 -0
- package/dist/prod/packages/@glimmer/tracking/primitives/cache/index.js +6 -0
- package/dist/prod/packages/@glimmer/util/index.js +129 -0
- package/dist/prod/packages/@glimmer/validator/index.js +1027 -0
- package/dist/prod/packages/@glimmer/vm/index.js +15 -0
- package/dist/prod/packages/@glimmer/wire-format/index.js +102 -0
- package/dist/prod/packages/@simple-dom/document/index.js +355 -0
- package/dist/prod/packages/backburner.js/index.js +939 -0
- package/dist/prod/packages/dag-map/index.js +202 -0
- package/dist/prod/packages/ember/version.js +4 -0
- package/dist/prod/packages/ember-template-compiler/index.js +100 -0
- package/dist/prod/packages/ember-testing/index.js +6 -0
- package/dist/prod/packages/ember-testing/lib/adapters/adapter.js +49 -0
- package/dist/prod/packages/ember-testing/lib/public-api.js +2 -0
- package/dist/prod/packages/ember-testing/lib/test/adapter.js +32 -0
- package/dist/prod/packages/ember-testing/lib/test/pending_requests.js +10 -0
- package/dist/prod/packages/ember-testing/lib/test/waiters.js +128 -0
- package/dist/prod/packages/ember-testing/lib/test.js +25 -0
- package/dist/prod/packages/route-recognizer/index.js +671 -0
- package/dist/prod/packages/router_js/index.js +1527 -0
- package/dist/prod/packages/rsvp/index.js +1 -0
- package/dist/prod/packages/shared-chunks/alias-BkT-0B1G.js +81 -0
- package/dist/prod/packages/shared-chunks/api-Co-k4HVs.js +200 -0
- package/dist/prod/packages/shared-chunks/args-proxy-Dl0A0YWI.js +131 -0
- package/dist/prod/packages/shared-chunks/array-EwekEvId.js +117 -0
- package/dist/prod/packages/shared-chunks/array-utils-CZQxrdD3.js +45 -0
- package/dist/prod/packages/shared-chunks/assert-CUCJBR2C.js +19 -0
- package/dist/prod/packages/shared-chunks/cache-qDyqAcpg.js +35 -0
- package/dist/prod/packages/shared-chunks/capabilities-DGmQ_mz4.js +26 -0
- package/dist/prod/packages/shared-chunks/chunk-3SQBS3Y5-Cj4eryg1.js +121 -0
- package/dist/prod/packages/shared-chunks/collections-GpG8lT2g.js +75 -0
- package/dist/prod/packages/shared-chunks/compiler-Ddfo5StE.js +6806 -0
- package/dist/prod/packages/shared-chunks/computed_cache-DmYKevAP.js +12 -0
- package/dist/prod/packages/shared-chunks/constants-b-2IVErl.js +210 -0
- package/dist/prod/packages/shared-chunks/debug-brand-B1TWjOCH.js +12 -0
- package/dist/prod/packages/shared-chunks/decorator-BdDDBUd2.js +123 -0
- package/dist/prod/packages/shared-chunks/dictionary-gc5gpyOG.js +13 -0
- package/dist/prod/packages/shared-chunks/element-builder-CiLTrXD6.js +776 -0
- package/dist/prod/packages/shared-chunks/flags-B9qxc-pB.js +24 -0
- package/dist/prod/packages/shared-chunks/fragment-EpVz5Xuc.js +910 -0
- package/dist/prod/packages/shared-chunks/get-debug-name-BDxIL2Y1.js +3 -0
- package/dist/prod/packages/shared-chunks/has-dom-DdQORPzI.js +4 -0
- package/dist/prod/packages/shared-chunks/index-CSVCFS_p.js +1904 -0
- package/dist/prod/packages/shared-chunks/index-Cc8WmrB-.js +21 -0
- package/dist/prod/packages/shared-chunks/index-DZLHQAlb.js +5842 -0
- package/dist/prod/packages/shared-chunks/injected_property-DL3vQoFA.js +58 -0
- package/dist/prod/packages/shared-chunks/invoke-DxL00a1D.js +53 -0
- package/dist/prod/packages/shared-chunks/is_proxy-Cr1qlMv_.js +16 -0
- package/dist/prod/packages/shared-chunks/lookup-descriptor-CwcVgaLv.js +13 -0
- package/dist/prod/packages/shared-chunks/name-C68GLLO3.js +11 -0
- package/dist/prod/packages/shared-chunks/namespace_search-Aog9nySA.js +1070 -0
- package/dist/prod/packages/shared-chunks/object-utils-AijlD-JH.js +12 -0
- package/dist/prod/packages/shared-chunks/observers-R1ZklwWy.js +714 -0
- package/dist/prod/packages/shared-chunks/on-CrTl7JQU.js +3329 -0
- package/dist/prod/packages/shared-chunks/program-B7SJZ5NF.js +176 -0
- package/dist/prod/packages/shared-chunks/program-context-C-JdYXRA.js +146 -0
- package/dist/prod/packages/shared-chunks/property_set-O080KTKZ.js +99 -0
- package/dist/prod/packages/shared-chunks/public-api-C3KlJmEr.js +10 -0
- package/dist/prod/packages/shared-chunks/reference-BNqcwZWH.js +151 -0
- package/dist/prod/packages/shared-chunks/registers-ylirb0dq.js +35 -0
- package/dist/prod/packages/shared-chunks/rehydrate-builder-CSn1aIO1.js +459 -0
- package/dist/prod/packages/shared-chunks/render-C1ZnScKH.js +1464 -0
- package/dist/prod/packages/shared-chunks/rsvp-CnCSY930.js +2306 -0
- package/dist/prod/packages/shared-chunks/serialize-builder-CVQ3q8rJ.js +124 -0
- package/dist/prod/packages/shared-chunks/set_properties-CjsDTRey.js +101 -0
- package/dist/prod/packages/shared-chunks/setup-registry-CMNYh2jY.js +53 -0
- package/dist/prod/packages/shared-chunks/simple-cast-DCvJLSin.js +33 -0
- package/dist/prod/packages/shared-chunks/super-Cm_a_cLQ.js +275 -0
- package/dist/prod/packages/shared-chunks/template-Dc_cBOoX.js +19 -0
- package/dist/prod/packages/shared-chunks/tracked-ChVNBE2f.js +131 -0
- package/dist/prod/packages/shared-chunks/transform-resolutions-C7wq_Q_c.js +6939 -0
- package/dist/prod/packages/shared-chunks/unrecognized-url-error-DDBwfzdm.js +537 -0
- package/docs/data.json +3009 -2358
- package/lib/index.js +157 -279
- package/package.json +27 -58
- package/types/stable/@ember/-internals/deprecations/index.d.ts +0 -6
- package/types/stable/@ember/-internals/environment/index.d.ts +0 -1
- package/types/stable/@ember/-internals/environment/lib/env.d.ts +0 -3
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/curly.d.ts +3 -6
- package/types/stable/@ember/-internals/glimmer/lib/component-managers/root.d.ts +1 -2
- package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +22 -29
- package/types/stable/@ember/-internals/glimmer/lib/renderer.d.ts +2 -2
- package/types/stable/@ember/-internals/glimmer/lib/resolver.d.ts +0 -2
- package/types/stable/@ember/-internals/glimmer/lib/utils/bindings.d.ts +0 -1
- package/types/stable/@ember/-internals/meta/lib/meta.d.ts +1 -1
- package/types/stable/@ember/-internals/metal/lib/alias.d.ts +0 -11
- package/types/stable/@ember/-internals/metal/lib/decorator.d.ts +0 -1
- package/types/stable/@ember/-internals/metal/lib/each_proxy_events.d.ts +0 -1
- package/types/stable/@ember/-internals/metal/lib/observer.d.ts +0 -2
- package/types/stable/@ember/-internals/metal/lib/property_get.d.ts +4 -10
- package/types/stable/@ember/-internals/utils/index.d.ts +0 -1
- package/types/stable/@ember/-internals/views/lib/system/utils.d.ts +3 -15
- package/types/stable/@ember/application/index.d.ts +2 -63
- package/types/stable/@ember/routing/history-location.d.ts +0 -1
- package/types/stable/@ember/routing/lib/location-utils.d.ts +1 -2
- package/types/stable/@ember/routing/none-location.d.ts +1 -2
- package/types/stable/@ember/template-compiler/index.d.ts +1 -0
- package/types/stable/@ember/template-compiler/lib/plugins/allowed-globals.d.ts +26 -0
- package/types/stable/@ember/test/index.d.ts +0 -3
- package/types/stable/@glimmer/interfaces/lib/compile/wire-format/api.d.ts +1 -1
- package/types/stable/@glimmer/interfaces/lib/template.d.ts +1 -1
- package/types/stable/@glimmer/program/lib/program.d.ts +0 -1
- package/types/stable/@glimmer/validator/lib/collections/map.d.ts +1 -1
- package/types/stable/@handlebars/parser/types/ast.d.ts +148 -0
- package/types/stable/@handlebars/parser/types/index.d.ts +13 -0
- package/types/stable/ember-template-compiler/index.d.ts +0 -2
- package/types/stable/ember-template-compiler/lib/public-api.d.ts +0 -1
- package/types/stable/ember-testing/lib/public-api.d.ts +0 -6
- package/types/stable/ember-testing/lib/test/pending_requests.d.ts +0 -3
- package/types/stable/ember-testing/lib/test.d.ts +0 -23
- package/types/stable/index.d.ts +15 -32
- package/types/stable/router_js/index.d.ts +7 -0
- package/types/stable/router_js/lib/core.d.ts +9 -0
- package/types/stable/router_js/lib/route-info.d.ts +107 -0
- package/types/stable/router_js/lib/router.d.ts +245 -0
- package/types/stable/router_js/lib/transition-aborted-error.d.ts +15 -0
- package/types/stable/router_js/lib/transition-intent/named-transition-intent.d.ts +23 -0
- package/types/stable/router_js/lib/transition-intent/url-transition-intent.d.ts +12 -0
- package/types/stable/router_js/lib/transition-intent.d.ts +13 -0
- package/types/stable/router_js/lib/transition-state.d.ts +25 -0
- package/types/stable/router_js/lib/transition.d.ts +241 -0
- package/types/stable/router_js/lib/unrecognized-url-error.d.ts +11 -0
- package/types/stable/router_js/lib/utils.d.ts +41 -0
- package/dist/ember-template-compiler.js +0 -20631
- package/dist/ember-template-compiler.js.map +0 -1
- package/dist/ember-testing.js +0 -1351
- package/dist/ember-testing.js.map +0 -1
- package/dist/ember.debug.js +0 -52306
- package/dist/ember.debug.js.map +0 -1
- package/dist/ember.prod.js +0 -49369
- package/dist/ember.prod.js.map +0 -1
- package/dist/packages/@ember/-internals/container/index.js +0 -1
- package/dist/packages/@ember/-internals/environment/index.js +0 -1
- package/dist/packages/@ember/-internals/glimmer/index.js +0 -18
- package/dist/packages/@ember/-internals/metal/index.js +0 -51
- package/dist/packages/@ember/-internals/utils/index.js +0 -7
- package/dist/packages/@ember/application/lib/lazy_load.js +0 -68
- package/dist/packages/@ember/component/helper.js +0 -14
- package/dist/packages/@ember/modifier/index.js +0 -23
- package/dist/packages/@ember/object/-internals.js +0 -35
- package/dist/packages/@ember/object/events.js +0 -12
- package/dist/packages/@ember/object/observers.js +0 -12
- package/dist/packages/@ember/renderer/index.js +0 -14
- package/dist/packages/@ember/routing/index.js +0 -14
- package/dist/packages/@ember/template/index.js +0 -14
- package/dist/packages/@ember/template-factory/index.js +0 -8
- package/dist/packages/@ember/test/index.js +0 -27
- package/dist/packages/@glimmer/encoder/index.js +0 -1
- package/dist/packages/@glimmer/manager/index.js +0 -5
- package/dist/packages/@glimmer/node/index.js +0 -2
- package/dist/packages/@glimmer/program/index.js +0 -3
- package/dist/packages/@glimmer/reference/index.js +0 -2
- package/dist/packages/@glimmer/tracking/index.js +0 -48
- package/dist/packages/@glimmer/tracking/primitives/cache/index.js +0 -12
- package/dist/packages/ember/barrel.js +0 -511
- package/dist/packages/ember/index.js +0 -20
- package/dist/packages/ember-template-compiler/index.js +0 -17135
- package/dist/packages/ember-testing/lib/adapters/qunit.js +0 -53
- package/dist/packages/ember-testing/lib/ext/application.js +0 -174
- package/dist/packages/ember-testing/lib/ext/rsvp.js +0 -17
- package/dist/packages/ember-testing/lib/helpers/and_then.js +0 -11
- package/dist/packages/ember-testing/lib/helpers/current_path.js +0 -32
- package/dist/packages/ember-testing/lib/helpers/current_route_name.js +0 -32
- package/dist/packages/ember-testing/lib/helpers/current_url.js +0 -29
- package/dist/packages/ember-testing/lib/helpers/pause_test.js +0 -76
- package/dist/packages/ember-testing/lib/helpers/visit.js +0 -51
- package/dist/packages/ember-testing/lib/helpers/wait.js +0 -55
- package/dist/packages/ember-testing/lib/helpers.js +0 -17
- package/dist/packages/ember-testing/lib/initializers.js +0 -56
- package/dist/packages/ember-testing/lib/public-api.js +0 -8
- package/dist/packages/ember-testing/lib/setup_for_testing.js +0 -31
- package/dist/packages/ember-testing/lib/test/helpers.js +0 -133
- package/dist/packages/ember-testing/lib/test/on_inject_helpers.js +0 -39
- package/dist/packages/ember-testing/lib/test/pending_requests.js +0 -22
- package/dist/packages/ember-testing/lib/test/promise.js +0 -83
- package/dist/packages/ember-testing/lib/test/run.js +0 -11
- package/dist/packages/ember-testing/lib/test.js +0 -68
- package/dist/packages/router_js/index.js +0 -2
- package/dist/packages/shared-chunks/helpers-C1rIkuSd.js +0 -11
- package/dist/packages/shared-chunks/invoke-BjRgvK2V.js +0 -27
- package/dist/packages/shared-chunks/public-api-BQsJemZG.js +0 -20
- package/dist/packages/shared-chunks/template_registry-DigcUg9m.js +0 -24
- package/dist/packages/shared-chunks/to-string-CqD7_vQ4.js +0 -60
- package/types/stable/@ember/-internals/environment/lib/global.d.ts +0 -4
- package/types/stable/@ember/-internals/glimmer/lib/modifiers/internal.d.ts +0 -34
- package/types/stable/@ember/-internals/glimmer/lib/syntax/utils.d.ts +0 -5
- package/types/stable/@ember/-internals/glimmer/lib/templates/empty.d.ts +0 -4
- package/types/stable/@ember/-internals/glimmer/lib/utils/debug-render-message.d.ts +0 -4
- package/types/stable/@ember/-internals/metal/lib/dependent_keys.d.ts +0 -3
- package/types/stable/@ember/-internals/utils/lib/symbol.d.ts +0 -5
- package/types/stable/@ember/application/lib/lazy_load.d.ts +0 -38
- package/types/stable/@ember/template-compiler/lib/public-types.d.ts +0 -3
- package/types/stable/ember/barrel.d.ts +0 -358
- package/types/stable/ember/index.d.ts +0 -358
- package/types/stable/ember-template-compiler/lib/system/bootstrap.d.ts +0 -26
- package/types/stable/ember-template-compiler/lib/system/initializer.d.ts +0 -3
- package/types/stable/ember-testing/lib/adapters/qunit.d.ts +0 -22
- package/types/stable/ember-testing/lib/ext/application.d.ts +0 -12
- package/types/stable/ember-testing/lib/ext/rsvp.d.ts +0 -4
- package/types/stable/ember-testing/lib/helpers/and_then.d.ts +0 -4
- package/types/stable/ember-testing/lib/helpers/current_path.d.ts +0 -22
- package/types/stable/ember-testing/lib/helpers/current_route_name.d.ts +0 -21
- package/types/stable/ember-testing/lib/helpers/current_url.d.ts +0 -22
- package/types/stable/ember-testing/lib/helpers/pause_test.d.ts +0 -52
- package/types/stable/ember-testing/lib/helpers/visit.d.ts +0 -22
- package/types/stable/ember-testing/lib/helpers/wait.d.ts +0 -34
- package/types/stable/ember-testing/lib/helpers.d.ts +0 -3
- package/types/stable/ember-testing/lib/initializers.d.ts +0 -3
- package/types/stable/ember-testing/lib/setup_for_testing.d.ts +0 -15
- package/types/stable/ember-testing/lib/test/helpers.d.ts +0 -116
- package/types/stable/ember-testing/lib/test/on_inject_helpers.d.ts +0 -33
- package/types/stable/ember-testing/lib/test/promise.d.ts +0 -37
- package/types/stable/ember-testing/lib/test/run.d.ts +0 -3
- package/types/stable/loader/lib/index.d.ts +0 -4
- package/types/stable/require.d.ts +0 -4
- /package/dist/{packages → dev/packages}/@ember/-internals/browser-environment/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/-internals/error-handling/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/-internals/meta/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/-internals/owner/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/-internals/runtime/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/-internals/runtime/lib/mixins/comparable.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/-internals/runtime/lib/mixins/container_proxy.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/-internals/utility-types/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/-internals/views/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/-internals/views/lib/compat/attrs.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/-internals/views/lib/component_lookup.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/array/-internals.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/array/lib/make-array.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/array/make.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/array/mutable.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/debug/lib/capture-render-tree.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/debug/lib/inspect.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/debug/lib/testing.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/deprecated-features/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/destroyable/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/engine/lib/engine-parent.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/engine/parent.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/enumerable/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/enumerable/mutable.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/object/proxy.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/owner/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/reactive/collections.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/reactive/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/routing/lib/cache.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/routing/lib/controller_for.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/routing/lib/query_params.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/routing/lib/router_state.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/-internal-primitives.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/-internal-utils.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/lib/-internal/primitives.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/transform-action-syntax.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/transform-each-in-into-each.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/transform-wrap-mount-and-outlet.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/lib/plugins/utils.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/lib/public-api.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/lib/runtime.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/lib/system/calculate-location-display.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/template-compiler/runtime.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/test/adapter.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/utils/index.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/utils/lib/is-equal.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/utils/lib/is_blank.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/utils/lib/is_none.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/utils/lib/is_present.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/utils/lib/type-of.js +0 -0
- /package/dist/{packages → dev/packages}/@ember/version/index.js +0 -0
- /package/dist/{packages → dev/packages}/@glimmer/env/index.js +0 -0
- /package/dist/{packages → dev/packages}/@glimmer/owner/index.js +0 -0
- /package/dist/{packages → dev/packages}/@glimmer/wire-format/index.js +0 -0
- /package/dist/{packages → dev/packages}/@simple-dom/document/index.js +0 -0
- /package/dist/{packages → dev/packages}/backburner.js/index.js +0 -0
- /package/dist/{packages → dev/packages}/dag-map/index.js +0 -0
- /package/dist/{packages → dev/packages}/ember-testing/lib/adapters/adapter.js +0 -0
- /package/dist/{packages → dev/packages}/ember-testing/lib/test/adapter.js +0 -0
- /package/dist/{packages → dev/packages}/ember-testing/lib/test/waiters.js +0 -0
- /package/dist/{packages → dev/packages}/route-recognizer/index.js +0 -0
- /package/dist/{packages → dev/packages}/rsvp/index.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/array-utils-CZQxrdD3.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/assert-CUCJBR2C.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/cache-qDyqAcpg.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/chunk-3SQBS3Y5-Cj4eryg1.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/computed_cache-DmYKevAP.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/debug-brand-B1TWjOCH.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/dictionary-gc5gpyOG.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/index-BGP1rw3B.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/object-utils-AijlD-JH.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/present-B1rrjAVM.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/registers-ylirb0dq.js +0 -0
- /package/dist/{packages → dev/packages}/shared-chunks/rsvp-CnCSY930.js +0 -0
- /package/dist/{packages → prod/packages}/@ember/routing/-internals.js +0 -0
- /package/dist/{packages/@ember/template-compiler/index.js → prod/packages/@ember/template-compiler/runtime.js} +0 -0
package/dist/{packages/shared-chunks/api-CkUl6KyJ.js → dev/packages/shared-chunks/api-BqXkkT0p.js}
RENAMED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { d as debugToString } from './debug-to-string-
|
|
2
|
-
import { isDevelopingApp } from '@embroider/macros';
|
|
1
|
+
import { d as debugToString } from './debug-to-string-CFb7h0lY.js';
|
|
3
2
|
import { debugAssert } from '../@glimmer/global-context/index.js';
|
|
4
3
|
import { associateDestroyableChild } from '../@glimmer/destroyable/index.js';
|
|
5
4
|
import '../@glimmer/validator/index.js';
|
|
6
|
-
import {
|
|
7
|
-
import { a as argsProxyFor } from './args-proxy-
|
|
8
|
-
import { F as FROM_CAPABILITIES, b as buildCapabilities } from './capabilities-
|
|
5
|
+
import { c as createComputeRef, a as createConstRef, U as UNDEFINED_REFERENCE } from './reference-C3TKDRnP.js';
|
|
6
|
+
import { a as argsProxyFor } from './args-proxy-DgXMc9b5.js';
|
|
7
|
+
import { F as FROM_CAPABILITIES, b as buildCapabilities } from './capabilities-O_xc7Yqk.js';
|
|
9
8
|
|
|
10
9
|
function helperCapabilities(managerAPI, options = {}) {
|
|
11
10
|
debugAssert(managerAPI === '3.23', () => `Invalid helper manager compatibility specified; you specified ${managerAPI}, but only '3.23' is supported.`);
|
|
12
|
-
if (
|
|
11
|
+
if ((!(options.hasValue || options.hasScheduledEffect) || options.hasValue && options.hasScheduledEffect)) {
|
|
13
12
|
throw new Error('You must pass either the `hasValue` OR the `hasScheduledEffect` capability when defining a helper manager. Passing neither, or both, is not permitted.');
|
|
14
13
|
}
|
|
15
|
-
if (
|
|
14
|
+
if (options.hasScheduledEffect) {
|
|
16
15
|
throw new Error('The `hasScheduledEffect` capability has not yet been implemented for helper managers. Please pass `hasValue` instead');
|
|
17
16
|
}
|
|
18
17
|
return buildCapabilities({
|
|
@@ -48,7 +47,7 @@ class CustomHelperManager {
|
|
|
48
47
|
delegate = factory(owner);
|
|
49
48
|
|
|
50
49
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme
|
|
51
|
-
if (
|
|
50
|
+
if (!FROM_CAPABILITIES.has(delegate.capabilities)) {
|
|
52
51
|
// TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200
|
|
53
52
|
throw new Error(`Custom helper managers must have a \`capabilities\` property that is the result of calling the \`capabilities('3.23')\` (imported via \`import { capabilities } from '@ember/helper';\`). Received: \`${JSON.stringify(delegate.capabilities
|
|
54
53
|
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
@@ -80,13 +79,13 @@ class CustomHelperManager {
|
|
|
80
79
|
const args = argsProxyFor(capturedArgs, 'helper');
|
|
81
80
|
const bucket = manager.createHelper(definition, args);
|
|
82
81
|
if (hasValue(manager)) {
|
|
83
|
-
let cache = createComputeRef(() => manager.getValue(bucket), null,
|
|
82
|
+
let cache = createComputeRef(() => manager.getValue(bucket), null, manager.getDebugName && manager.getDebugName(definition));
|
|
84
83
|
if (hasDestroyable(manager)) {
|
|
85
84
|
associateDestroyableChild(cache, manager.getDestroyable(bucket));
|
|
86
85
|
}
|
|
87
86
|
return cache;
|
|
88
87
|
} else if (hasDestroyable(manager)) {
|
|
89
|
-
let ref = createConstRef(undefined,
|
|
88
|
+
let ref = createConstRef(undefined, (manager.getDebugName?.(definition) ?? 'unknown helper'));
|
|
90
89
|
associateDestroyableChild(ref, manager.getDestroyable(bucket));
|
|
91
90
|
return ref;
|
|
92
91
|
} else {
|
|
@@ -143,7 +142,7 @@ const HELPER_MANAGERS = new WeakMap();
|
|
|
143
142
|
*/
|
|
144
143
|
const getPrototypeOf = Object.getPrototypeOf;
|
|
145
144
|
function setManager(map, manager, obj) {
|
|
146
|
-
|
|
145
|
+
{
|
|
147
146
|
debugAssert(obj !== null && (typeof obj === 'object' || typeof obj === 'function'),
|
|
148
147
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme
|
|
149
148
|
`Attempted to set a manager on a non-object value. Managers can only be associated with objects or functions. Value was ${debugToString(obj)}`);
|
|
@@ -172,14 +171,14 @@ function setInternalModifierManager(manager, definition) {
|
|
|
172
171
|
return setManager(MODIFIER_MANAGERS, manager, definition);
|
|
173
172
|
}
|
|
174
173
|
function getInternalModifierManager(definition, isOptional) {
|
|
175
|
-
|
|
174
|
+
{
|
|
176
175
|
debugAssert(typeof definition === 'object' && definition !== null || typeof definition === 'function', () =>
|
|
177
176
|
// eslint-disable-next-line @typescript-eslint/no-base-to-string -- @fixme
|
|
178
177
|
`Attempted to use a value as a modifier, but it was not an object or function. Modifier definitions must be objects or functions with an associated modifier manager. The value was: ${definition}`);
|
|
179
178
|
}
|
|
180
179
|
const manager = getManager(MODIFIER_MANAGERS, definition);
|
|
181
180
|
if (manager === undefined) {
|
|
182
|
-
|
|
181
|
+
{
|
|
183
182
|
debugAssert(isOptional,
|
|
184
183
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme
|
|
185
184
|
`Attempted to load a modifier, but there wasn't a modifier manager associated with the definition. The definition was: ${debugToString(definition)}`);
|
|
@@ -207,12 +206,11 @@ function getInternalHelperManager(definition, isOptional) {
|
|
|
207
206
|
return manager;
|
|
208
207
|
} else if (isOptional === true) {
|
|
209
208
|
return null;
|
|
210
|
-
} else
|
|
209
|
+
} else {
|
|
211
210
|
throw new Error(
|
|
212
211
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme
|
|
213
212
|
`Attempted to load a helper, but there wasn't a helper manager associated with the definition. The definition was: ${debugToString(definition)}`);
|
|
214
213
|
}
|
|
215
|
-
return null;
|
|
216
214
|
}
|
|
217
215
|
function setInternalComponentManager(factory, obj) {
|
|
218
216
|
return setManager(COMPONENT_MANAGERS, factory, obj);
|
|
@@ -246,4 +244,4 @@ function hasDefaultHelperManager(definition) {
|
|
|
246
244
|
return typeof definition === 'function';
|
|
247
245
|
}
|
|
248
246
|
|
|
249
|
-
export { CustomHelperManager as C,
|
|
247
|
+
export { CustomHelperManager as C, hasDestroyable as a, hasInternalComponentManager as b, helperCapabilities as c, getInternalModifierManager as d, getInternalComponentManager as e, hasInternalHelperManager as f, getInternalHelperManager as g, hasValue as h, setInternalHelperManager as i, setInternalModifierManager as j, hasInternalModifierManager as k, setInternalComponentManager as s };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import '../@glimmer/global-context/index.js';
|
|
2
|
-
import './debug-to-string-
|
|
3
|
-
import { isDevelopingApp } from '@embroider/macros';
|
|
2
|
+
import './debug-to-string-CFb7h0lY.js';
|
|
4
3
|
import { track } from '../@glimmer/validator/index.js';
|
|
5
|
-
import { v as valueForRef } from './reference-
|
|
4
|
+
import { v as valueForRef } from './reference-C3TKDRnP.js';
|
|
6
5
|
|
|
7
6
|
const CUSTOM_TAG_FOR = new WeakMap();
|
|
8
7
|
function getCustomTagFor(obj) {
|
|
@@ -32,7 +31,7 @@ function tagForPositionalArg(positionalArgs, key) {
|
|
|
32
31
|
positionalArgs.forEach(valueForRef);
|
|
33
32
|
}
|
|
34
33
|
const parsed = convertToInt(key);
|
|
35
|
-
if (parsed !== null && parsed < positionalArgs.length) {
|
|
34
|
+
if (parsed !== null && parsed >= 0 && parsed < positionalArgs.length) {
|
|
36
35
|
// consume the tag of the referenced index
|
|
37
36
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme
|
|
38
37
|
valueForRef(positionalArgs[parsed]);
|
|
@@ -69,7 +68,7 @@ class NamedArgsProxy {
|
|
|
69
68
|
|
|
70
69
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type -- @fixme
|
|
71
70
|
getOwnPropertyDescriptor(_target, prop) {
|
|
72
|
-
if (
|
|
71
|
+
if (!(prop in this.named)) {
|
|
73
72
|
throw new Error(`args proxies do not have real property descriptors, so you should never need to call getOwnPropertyDescriptor yourself. This code exists for enumerability, such as in for-in loops and Object.keys(). Attempted to get the descriptor for \`${String(prop)}\``);
|
|
74
73
|
}
|
|
75
74
|
return {
|
|
@@ -90,7 +89,7 @@ class PositionalArgsProxy {
|
|
|
90
89
|
return positional.length;
|
|
91
90
|
}
|
|
92
91
|
const parsed = convertToInt(prop);
|
|
93
|
-
if (parsed !== null && parsed < positional.length) {
|
|
92
|
+
if (parsed !== null && parsed >= 0 && parsed < positional.length) {
|
|
94
93
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme
|
|
95
94
|
return valueForRef(positional[parsed]);
|
|
96
95
|
}
|
|
@@ -103,7 +102,7 @@ class PositionalArgsProxy {
|
|
|
103
102
|
}
|
|
104
103
|
has(_target, prop) {
|
|
105
104
|
const parsed = convertToInt(prop);
|
|
106
|
-
return parsed !== null && parsed < this.positional.length;
|
|
105
|
+
return parsed !== null && parsed >= 0 && parsed < this.positional.length;
|
|
107
106
|
}
|
|
108
107
|
}
|
|
109
108
|
const argsProxyFor = (capturedArgs, type) => {
|
|
@@ -119,7 +118,7 @@ const argsProxyFor = (capturedArgs, type) => {
|
|
|
119
118
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
120
119
|
const namedTarget = Object.create(null);
|
|
121
120
|
const positionalTarget = [];
|
|
122
|
-
|
|
121
|
+
{
|
|
123
122
|
const setHandler = function (_target, prop) {
|
|
124
123
|
throw new Error(`You attempted to set ${String(prop)} on the arguments of a component, helper, or modifier. Arguments are immutable and cannot be updated directly; they always represent the values that are passed down. If you want to set default values, you should use a getter and local tracked state instead.`);
|
|
125
124
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import '../@ember/debug/index.js';
|
|
2
2
|
import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';
|
|
3
|
-
import { k as sendEvent, n as notifyPropertyChange,
|
|
4
|
-
import { isDevelopingApp } from '@embroider/macros';
|
|
3
|
+
import { k as sendEvent, n as notifyPropertyChange, E as addListener, F as removeListener } from './observers-Bj9qLVau.js';
|
|
5
4
|
import { assert } from '../@ember/debug/lib/assert.js';
|
|
6
5
|
|
|
7
6
|
function arrayContentWillChange(array, startIdx, removeAmt, addAmt) {
|
|
@@ -73,7 +72,7 @@ function replace(array, start, deleteCount, items = EMPTY_ARRAY) {
|
|
|
73
72
|
if (isMutableArray(array)) {
|
|
74
73
|
array.replace(start, deleteCount, items);
|
|
75
74
|
} else {
|
|
76
|
-
(
|
|
75
|
+
(!(Array.isArray(array)) && assert('Can only replace content of a native array or MutableArray', Array.isArray(array)));
|
|
77
76
|
replaceInNativeArray(array, start, deleteCount, items);
|
|
78
77
|
}
|
|
79
78
|
}
|
|
@@ -116,4 +115,4 @@ function removeArrayObserver(array, target, opts) {
|
|
|
116
115
|
return arrayObserversHelper(array, target, opts, removeListener);
|
|
117
116
|
}
|
|
118
117
|
|
|
119
|
-
export {
|
|
118
|
+
export { arrayContentWillChange as a, arrayContentDidChange as b, addArrayObserver as c, removeArrayObserver as d, replaceInNativeArray as e, replace as r };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import './debug-to-string-CFb7h0lY.js';
|
|
2
|
+
import './fragment-Cc5k9Oy4.js';
|
|
3
|
+
import '../@glimmer/global-context/index.js';
|
|
4
|
+
import '../@glimmer/validator/index.js';
|
|
5
|
+
import './reference-C3TKDRnP.js';
|
|
6
|
+
import { I as InternalComponentCapabilities } from './flags-B9qxc-pB.js';
|
|
7
|
+
|
|
8
|
+
const FROM_CAPABILITIES = new WeakSet() ;
|
|
9
|
+
function buildCapabilities(capabilities) {
|
|
10
|
+
{
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- @fixme
|
|
12
|
+
FROM_CAPABILITIES.add(capabilities);
|
|
13
|
+
Object.freeze(capabilities);
|
|
14
|
+
}
|
|
15
|
+
return capabilities;
|
|
16
|
+
}
|
|
17
|
+
const EMPTY = InternalComponentCapabilities.Empty;
|
|
18
|
+
/**
|
|
19
|
+
* Converts a ComponentCapabilities object into a 32-bit integer representation.
|
|
20
|
+
*/
|
|
21
|
+
function capabilityFlagsFrom(capabilities) {
|
|
22
|
+
return EMPTY | capability(capabilities, 'dynamicLayout') | capability(capabilities, 'dynamicTag') | capability(capabilities, 'prepareArgs') | capability(capabilities, 'createArgs') | capability(capabilities, 'attributeHook') | capability(capabilities, 'elementHook') | capability(capabilities, 'dynamicScope') | capability(capabilities, 'createCaller') | capability(capabilities, 'updateHook') | capability(capabilities, 'createInstance') | capability(capabilities, 'wrapped') | capability(capabilities, 'willDestroy') | capability(capabilities, 'hasSubOwner');
|
|
23
|
+
}
|
|
24
|
+
function capability(capabilities, capability) {
|
|
25
|
+
return capabilities[capability] ? InternalComponentCapabilities[capability] : EMPTY;
|
|
26
|
+
}
|
|
27
|
+
function managerHasCapability(_manager, capabilities, capability) {
|
|
28
|
+
return !!(capabilities & capability);
|
|
29
|
+
}
|
|
30
|
+
function hasCapability(capabilities, capability) {
|
|
31
|
+
return !!(capabilities & capability);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { FROM_CAPABILITIES as F, buildCapabilities as b, capabilityFlagsFrom as c, hasCapability as h, managerHasCapability as m };
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import '
|
|
4
|
-
import {
|
|
5
|
-
import { SexpOpcodes as opcodes, WellKnownTagNames, WellKnownAttrNames } from '
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import '
|
|
13
|
-
import '../../../@glimmer/validator/index.js';
|
|
14
|
-
import '../../../shared-chunks/reference-B6HMX4y0.js';
|
|
15
|
-
import '../../../@glimmer/destroyable/index.js';
|
|
16
|
-
import { s as setComponentTemplate } from '../../../shared-chunks/template-CMHIG4cn.js';
|
|
17
|
-
import { t as templateFactory } from '../../../shared-chunks/index-CQkjwqTv.js';
|
|
18
|
-
import compileOptions from './compile-options.js';
|
|
1
|
+
import './debug-to-string-CFb7h0lY.js';
|
|
2
|
+
import { S as SourceOffset, a as SourceSpan, c as cannotReplaceOrRemoveInKeyHandlerYet, d as cannotRemoveNode, e as cannotReplaceNode, f as SYNTHETIC_LOCATION, i as isVoidTag, E as EntityParser, g as EventedTokenizer, n as namedCharRefs, N as NON_EXISTENT_LOCATION, p as parseWithoutProcessing, h as parse, b as build, v as voidMap, j as STRICT_RESOLUTION, T as Template$1, B as Block, k as NamedBlock$1, l as SourceSlice, A as Args$1, P as PositionalArguments, m as NamedArgument$1, o as NamedArguments$1, H as HtmlAttr, q as SplatAttr$1, C as ComponentArg, r as PathExpression$1, K as KeywordExpression, s as ThisReference, t as ArgReference, F as FreeVarReference, L as LocalVarReference, u as CallExpression$1, I as InterpolateExpression$1, w as LiteralExpression, x as AppendContent, y as ElementModifier, z as NamedBlocks$1, D as InvokeBlock$1, G as SimpleElement$1, J as InvokeComponent$1, M as SpanList, O as LooseModeResolution, Q as COMPONENT_NAMESPACE, R as MODIFIER_NAMESPACE, U as HELPER_NAMESPACE, V as HtmlText, W as HtmlComment, X as GlimmerComment, Y as Printer, Z as node, _ as isLiteral$1, $ as maybeLoc, a0 as loc } from './transform-resolutions-fXGQKGsL.js';
|
|
3
|
+
import { a as assert } from './assert-CUCJBR2C.js';
|
|
4
|
+
import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
|
|
5
|
+
import { SexpOpcodes as opcodes, WellKnownTagNames, WellKnownAttrNames } from '../@glimmer/wire-format/index.js';
|
|
6
|
+
import { i as isPresentArray, b as asPresentArray, g as getLast, a as getFirst, m as mapPresentArray } from './present-B1rrjAVM.js';
|
|
7
|
+
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
8
|
+
import { u as unwrap, e as expect, d as dict, b as exhausted } from './collections-D_nY_0UJ.js';
|
|
9
|
+
import { a4 as CURRIED_MODIFIER, au as CURRIED_HELPER, C as CURRIED_COMPONENT } from './fragment-Cc5k9Oy4.js';
|
|
10
|
+
import '../@glimmer/global-context/index.js';
|
|
11
|
+
import '../@glimmer/validator/index.js';
|
|
12
|
+
import './reference-C3TKDRnP.js';
|
|
19
13
|
|
|
20
14
|
function isKeyword(word, type) {
|
|
21
15
|
if (word in KEYWORDS_TYPES) {
|
|
@@ -131,7 +125,7 @@ class Source {
|
|
|
131
125
|
if (seenChars + column > nextLine) return nextLine;
|
|
132
126
|
|
|
133
127
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
134
|
-
|
|
128
|
+
{
|
|
135
129
|
let roundTrip = this.hbsPosFor(seenChars + column);
|
|
136
130
|
assert(roundTrip.line === line);
|
|
137
131
|
assert(roundTrip.column === column);
|
|
@@ -6293,232 +6287,17 @@ function precompile(source, options = defaultOptions) {
|
|
|
6293
6287
|
// JSON is javascript
|
|
6294
6288
|
let stringified = JSON.stringify(templateJSONObject);
|
|
6295
6289
|
if (usedLocals.length > 0) {
|
|
6296
|
-
const
|
|
6290
|
+
const scopeEntries = usedLocals.map(name => {
|
|
6291
|
+
// Reserved words like "this" can't use shorthand property syntax
|
|
6292
|
+
if (name === 'this') {
|
|
6293
|
+
return `"this":this`;
|
|
6294
|
+
}
|
|
6295
|
+
return name;
|
|
6296
|
+
});
|
|
6297
|
+
const scopeFn = `()=>({${scopeEntries.join(',')}})`;
|
|
6297
6298
|
stringified = stringified.replace(`"${SCOPE_PLACEHOLDER}"`, scopeFn);
|
|
6298
6299
|
}
|
|
6299
6300
|
return stringified;
|
|
6300
6301
|
}
|
|
6301
6302
|
|
|
6302
|
-
|
|
6303
|
-
* All possible options passed to `template()` may specify a `moduleName`.
|
|
6304
|
-
*/
|
|
6305
|
-
|
|
6306
|
-
/**
|
|
6307
|
-
* When using `template` in a class, you call it in a `static` block and pass
|
|
6308
|
-
* the class as the `component` option.
|
|
6309
|
-
*
|
|
6310
|
-
* ```ts
|
|
6311
|
-
* class MyComponent extends Component {
|
|
6312
|
-
* static {
|
|
6313
|
-
* template('{{this.greeting}}, {{@place}}!',
|
|
6314
|
-
* { component: this },
|
|
6315
|
-
* // explicit or implicit option goes here
|
|
6316
|
-
* );
|
|
6317
|
-
* }
|
|
6318
|
-
* }
|
|
6319
|
-
* ```
|
|
6320
|
-
*
|
|
6321
|
-
* For the full explicit form, see {@linkcode ExplicitClassOptions}. For the
|
|
6322
|
-
* full implicit form, see {@linkcode ImplicitClassOptions}.
|
|
6323
|
-
*/
|
|
6324
|
-
|
|
6325
|
-
/**
|
|
6326
|
-
* When using `template` outside of a class (i.e. a "template-only component"), you can pass
|
|
6327
|
-
* a `scope` option that explicitly provides the lexical scope for the template.
|
|
6328
|
-
*
|
|
6329
|
-
* This is called the "explicit form".
|
|
6330
|
-
*
|
|
6331
|
-
* ```ts
|
|
6332
|
-
* const greeting = 'Hello';
|
|
6333
|
-
* const HelloWorld = template('{{greeting}} World!', { scope: () => ({ greeting }) });
|
|
6334
|
-
* ```
|
|
6335
|
-
*/
|
|
6336
|
-
|
|
6337
|
-
/**
|
|
6338
|
-
* When using `template` *inside* a class (see
|
|
6339
|
-
* {@linkcode BaseClassTemplateOptions}), you can pass a `scope` option that
|
|
6340
|
-
* explicitly provides the lexical scope for the template, just like a template-only
|
|
6341
|
-
* component (see {@linkcode ExplicitTemplateOnlyOptions}).
|
|
6342
|
-
*
|
|
6343
|
-
* ```ts
|
|
6344
|
-
* class MyComponent extends Component {
|
|
6345
|
-
* static {
|
|
6346
|
-
* template('{{this.greeting}}, {{@place}}!',
|
|
6347
|
-
* { component: this },
|
|
6348
|
-
* // explicit or implicit option goes here
|
|
6349
|
-
* );
|
|
6350
|
-
* }
|
|
6351
|
-
* }
|
|
6352
|
-
* ```
|
|
6353
|
-
*
|
|
6354
|
-
* ## The Scope Function's `instance` Parameter
|
|
6355
|
-
*
|
|
6356
|
-
* However, the explicit `scope` function in a *class* also takes an `instance` option
|
|
6357
|
-
* that provides access to the component's instance.
|
|
6358
|
-
*
|
|
6359
|
-
* Once it's supported in Handlebars, this will make it possible to represent private
|
|
6360
|
-
* fields when using the explicit form.
|
|
6361
|
-
*
|
|
6362
|
-
* ```ts
|
|
6363
|
-
* class MyComponent extends Component {
|
|
6364
|
-
* static {
|
|
6365
|
-
* template('{{this.#greeting}}, {{@place}}!',
|
|
6366
|
-
* { component: this },
|
|
6367
|
-
* scope: (instance) => ({ '#greeting': instance.#greeting }),
|
|
6368
|
-
* );
|
|
6369
|
-
* }
|
|
6370
|
-
* }
|
|
6371
|
-
* ```
|
|
6372
|
-
*/
|
|
6373
|
-
|
|
6374
|
-
/**
|
|
6375
|
-
* The *implicit* form of the `template` function takes an `eval` option that
|
|
6376
|
-
* allows the runtime compiler to evaluate local template variables without
|
|
6377
|
-
* needing to maintain an explicit list of the local variables used in the
|
|
6378
|
-
* template scope.
|
|
6379
|
-
*
|
|
6380
|
-
* The eval options *must* be passed in the following form:
|
|
6381
|
-
*
|
|
6382
|
-
* ```ts
|
|
6383
|
-
* {
|
|
6384
|
-
* eval() { return eval(arguments[0]) }
|
|
6385
|
-
* }
|
|
6386
|
-
* ```
|
|
6387
|
-
*
|
|
6388
|
-
* ## Requirements of the `eval` Option
|
|
6389
|
-
*
|
|
6390
|
-
* **The syntactic form presented above is the only form you should use when
|
|
6391
|
-
* passing an `eval` option.**
|
|
6392
|
-
*
|
|
6393
|
-
* This is _required_ if you want your code to be compatible with the
|
|
6394
|
-
* compile-time implementation of `@ember/template-compiler`. While the runtime
|
|
6395
|
-
* compiler offers a tiny bit of additional wiggle room, you still need to follow
|
|
6396
|
-
* very strict rules.
|
|
6397
|
-
*
|
|
6398
|
-
* We don't recommend trying to memorize the rules. Instead, we recommend using
|
|
6399
|
-
* the snippet presented above and supported by the compile-time implementation.
|
|
6400
|
-
*
|
|
6401
|
-
* ### The Technical Requirements of the `eval` Option
|
|
6402
|
-
*
|
|
6403
|
-
* The `eval` function is passed a single parameter that is a JavaScript
|
|
6404
|
-
* identifier. This will be extended in the future to support private fields.
|
|
6405
|
-
*
|
|
6406
|
-
* Since keywords in JavaScript are contextual (e.g. `await` and `yield`), the
|
|
6407
|
-
* parameter might be a keyword. The `@ember/template-compiler/runtime` expects
|
|
6408
|
-
* the function to throw a `SyntaxError` if the identifier name is not valid in
|
|
6409
|
-
* the current scope. (The direct `eval` function takes care of this out of the
|
|
6410
|
-
* box.)
|
|
6411
|
-
*
|
|
6412
|
-
* Requirements:
|
|
6413
|
-
*
|
|
6414
|
-
* 1. The `eval` method must receive its parameter as `arguments[0]`, which
|
|
6415
|
-
* ensures that the variable name passed to `eval()` is not shadowed by the
|
|
6416
|
-
* function's parameter name.
|
|
6417
|
-
* 2. The `eval` option must be a function or concise method, and not an arrow.
|
|
6418
|
-
* This is because arrows do not have their own `arguments`, which breaks
|
|
6419
|
-
* (1).
|
|
6420
|
-
* 3. The `eval` method must call "*direct* `eval`", and not an alias of `eval`.
|
|
6421
|
-
* Direct `eval` evaluates the code in the scope it was called from, while
|
|
6422
|
-
* aliased versions of `eval` (including `new Function`) evaluate the code in
|
|
6423
|
-
* the global scope.
|
|
6424
|
-
* 4. The `eval` method must return the result of calling "direct `eval`".
|
|
6425
|
-
*
|
|
6426
|
-
* The easiest way to achieve these requirements is to use the exact syntax
|
|
6427
|
-
* presented above. This is *also* the only way to be compatible
|
|
6428
|
-
*
|
|
6429
|
-
* ## Rationale
|
|
6430
|
-
*
|
|
6431
|
-
* This is useful for two reasons:
|
|
6432
|
-
*
|
|
6433
|
-
* 1. This form is a useful _intermediate_ form for the compile-time toolchain.
|
|
6434
|
-
* It allows the content-tag preprocessor to convert the `<template>` syntax
|
|
6435
|
-
* into valid JavaScript without needing to involve full-fledged lexical
|
|
6436
|
-
* analysis.
|
|
6437
|
-
* 2. This form is a convenient form for manual prototyping when using the
|
|
6438
|
-
* runtime compiler directly. While it requires some extra typing relative to
|
|
6439
|
-
* `<template>`, it's a mechanical 1:1 transformation of the syntax.
|
|
6440
|
-
*
|
|
6441
|
-
* In practice, implementations that use a runtime compiler (for example, a
|
|
6442
|
-
* playground running completely in the browser) should probably use the
|
|
6443
|
-
* `content-tag` preprocessor to convert the template into the implicit form,
|
|
6444
|
-
* and then rely on `@ember/template-compiler/runtime` to evaluate the template.
|
|
6445
|
-
*/
|
|
6446
|
-
|
|
6447
|
-
/**
|
|
6448
|
-
* When using `template` outside of a class (i.e. a "template-only component"), you can pass
|
|
6449
|
-
* an `eval` option that _implicitly_ provides the lexical scope for the template.
|
|
6450
|
-
*
|
|
6451
|
-
* This is called the "implicit form".
|
|
6452
|
-
*
|
|
6453
|
-
* ```ts
|
|
6454
|
-
* const greeting = 'Hello';
|
|
6455
|
-
* const HelloWorld = template('{{greeting}} World!', {
|
|
6456
|
-
* eval() { return arguments[0] }
|
|
6457
|
-
* });
|
|
6458
|
-
* ```
|
|
6459
|
-
*
|
|
6460
|
-
* For more details on the requirements of the `eval` option, see {@linkcode ImplicitEvalOption}.
|
|
6461
|
-
*/
|
|
6462
|
-
|
|
6463
|
-
/**
|
|
6464
|
-
* When using `template` inside of a class, you can pass an `eval` option that
|
|
6465
|
-
* _implicitly_ provides the lexical scope for the template, just as you can
|
|
6466
|
-
* with a {@linkcode ImplicitTemplateOnlyOptions | template-only component}.
|
|
6467
|
-
*
|
|
6468
|
-
* This is called the "implicit form".
|
|
6469
|
-
*
|
|
6470
|
-
* ```ts
|
|
6471
|
-
* class MyComponent extends Component {
|
|
6472
|
-
* static {
|
|
6473
|
-
* template('{{this.greeting}}, {{@place}}!',
|
|
6474
|
-
* { component: this },
|
|
6475
|
-
* eval() { return arguments[0] }
|
|
6476
|
-
* );
|
|
6477
|
-
* }
|
|
6478
|
-
* }
|
|
6479
|
-
* ```
|
|
6480
|
-
*
|
|
6481
|
-
* ## Note on Private Fields
|
|
6482
|
-
*
|
|
6483
|
-
* The current implementation of `@ember/template-compiler` does not support
|
|
6484
|
-
* private fields, but once the Handlebars parser adds support for private field
|
|
6485
|
-
* syntax and it's implemented in the Glimmer compiler, the implicit form should
|
|
6486
|
-
* be able to support them.
|
|
6487
|
-
*/
|
|
6488
|
-
|
|
6489
|
-
function template(templateString, providedOptions) {
|
|
6490
|
-
const options = {
|
|
6491
|
-
strictMode: true,
|
|
6492
|
-
...providedOptions
|
|
6493
|
-
};
|
|
6494
|
-
const evaluate = buildEvaluator(options);
|
|
6495
|
-
const normalizedOptions = compileOptions(options);
|
|
6496
|
-
const component = normalizedOptions.component ?? templateOnly();
|
|
6497
|
-
const source = precompile(templateString, normalizedOptions);
|
|
6498
|
-
const template = templateFactory(evaluate(`(${source})`));
|
|
6499
|
-
setComponentTemplate(template, component);
|
|
6500
|
-
return component;
|
|
6501
|
-
}
|
|
6502
|
-
const evaluator = source => {
|
|
6503
|
-
return new Function(`return ${source}`)();
|
|
6504
|
-
};
|
|
6505
|
-
function buildEvaluator(options) {
|
|
6506
|
-
if (options === undefined) {
|
|
6507
|
-
return evaluator;
|
|
6508
|
-
}
|
|
6509
|
-
if (options.eval) {
|
|
6510
|
-
return options.eval;
|
|
6511
|
-
} else {
|
|
6512
|
-
const scope = options.scope?.();
|
|
6513
|
-
if (!scope) {
|
|
6514
|
-
return evaluator;
|
|
6515
|
-
}
|
|
6516
|
-
return source => {
|
|
6517
|
-
const argNames = Object.keys(scope);
|
|
6518
|
-
const argValues = Object.values(scope);
|
|
6519
|
-
return new Function(...argNames, `return (${source})`)(...argValues);
|
|
6520
|
-
};
|
|
6521
|
-
}
|
|
6522
|
-
}
|
|
6523
|
-
|
|
6524
|
-
export { template };
|
|
6303
|
+
export { preprocess as a, precompile as p };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './debug-to-string-
|
|
3
|
-
import { e as expect } from './collections-
|
|
4
|
-
import '
|
|
5
|
-
import { a as getInternalHelperManager, b as getInternalModifierManager, g as getInternalComponentManager } from './api-CkUl6KyJ.js';
|
|
1
|
+
import { c as constants } from './fragment-Cc5k9Oy4.js';
|
|
2
|
+
import './debug-to-string-CFb7h0lY.js';
|
|
3
|
+
import { e as expect } from './collections-D_nY_0UJ.js';
|
|
4
|
+
import { g as getInternalHelperManager, d as getInternalModifierManager, e as getInternalComponentManager } from './api-BqXkkT0p.js';
|
|
6
5
|
import '../@glimmer/destroyable/index.js';
|
|
7
6
|
import '../@glimmer/global-context/index.js';
|
|
8
7
|
import { e as enumerate } from './array-utils-CZQxrdD3.js';
|
|
9
8
|
import '../@glimmer/validator/index.js';
|
|
10
|
-
import './reference-
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
9
|
+
import './reference-C3TKDRnP.js';
|
|
10
|
+
import { c as capabilityFlagsFrom, m as managerHasCapability } from './capabilities-O_xc7Yqk.js';
|
|
11
|
+
import { g as getComponentTemplate } from './template-kM-7TTcc.js';
|
|
12
|
+
import { I as InternalComponentCapabilities } from './flags-B9qxc-pB.js';
|
|
13
|
+
import { t as templateFactory } from './index-Q7JnrdBn.js';
|
|
14
14
|
import { SexpOpcodes as opcodes } from '../@glimmer/wire-format/index.js';
|
|
15
15
|
|
|
16
16
|
function unwrapHandle(handle) {
|