ember-source 7.1.0-alpha.2 → 7.1.0-alpha.3
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/build-metadata.json +3 -3
- package/dist/dev/packages/@ember/-internals/glimmer/index.js +7 -7
- package/dist/dev/packages/@ember/application/index.js +5 -5
- package/dist/dev/packages/@ember/application/instance.js +4 -4
- package/dist/dev/packages/@ember/component/helper.js +4 -4
- package/dist/dev/packages/@ember/component/index.js +4 -4
- package/dist/dev/packages/@ember/component/template-only.js +2 -2
- package/dist/dev/packages/@ember/engine/index.js +5 -5
- package/dist/dev/packages/@ember/helper/index.js +5 -5
- package/dist/dev/packages/@ember/modifier/index.js +4 -4
- package/dist/dev/packages/@ember/modifier/on.js +2 -2
- package/dist/dev/packages/@ember/renderer/index.js +4 -4
- package/dist/dev/packages/@ember/routing/index.js +4 -4
- package/dist/dev/packages/@ember/template/index.js +4 -4
- package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +7 -5
- package/dist/dev/packages/@ember/template-compiler/lib/plugins/auto-import-builtins.js +18 -0
- package/dist/dev/packages/@ember/template-compiler/lib/plugins/index.js +1 -1
- package/dist/dev/packages/@ember/template-compiler/lib/plugins/transform-resolutions.js +1 -1
- package/dist/dev/packages/@ember/template-compiler/lib/template.js +2 -2
- package/dist/dev/packages/@ember/template-factory/index.js +1 -1
- package/dist/dev/packages/@glimmer/destroyable/index.js +5 -1
- package/dist/dev/packages/@glimmer/node/index.js +4 -4
- package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -2
- package/dist/dev/packages/@glimmer/program/index.js +1 -1
- package/dist/dev/packages/@glimmer/runtime/index.js +5 -5
- package/dist/dev/packages/ember/version.js +1 -1
- package/dist/dev/packages/ember-template-compiler/index.js +3 -3
- package/dist/dev/packages/shared-chunks/{compiler-BenCxenr.js → compiler-D1leQ3Gl.js} +90 -88
- package/dist/dev/packages/shared-chunks/{constants-DKn6zqFX.js → constants-p7AL-pog.js} +1 -1
- package/dist/dev/packages/shared-chunks/{dynamic-Cu9Xpdzc.js → dynamic-BfDKO5NI.js} +6 -7
- package/dist/dev/packages/shared-chunks/{element-builder-Dw_Ic9cD.js → element-builder-DO43ztVP.js} +2 -2
- package/dist/dev/packages/shared-chunks/{index-CtPSmMCE.js → index-BUPd6pkm.js} +15 -17
- package/dist/dev/packages/shared-chunks/{index-AD_RxZjB.js → index-QZstta6s.js} +6 -6
- package/dist/dev/packages/shared-chunks/{invoke-D0D6CvD5.js → invoke-CgfoEtMT.js} +1 -1
- package/dist/dev/packages/shared-chunks/{program-context-yOi1EExe.js → program-context-sJz0oHOA.js} +1 -1
- package/dist/dev/packages/shared-chunks/{rehydrate-builder-CfBtYUkk.js → rehydrate-builder-CEk2KOIk.js} +3 -5
- package/dist/dev/packages/shared-chunks/{render-t-LAXUYI.js → render-C1HzKUcM.js} +4 -4
- package/dist/dev/packages/shared-chunks/{serialize-builder-BUG9CxHC.js → serialize-builder-CPKxdfiH.js} +3 -3
- package/dist/dev/packages/shared-chunks/{setup-registry-CxXWLs26.js → setup-registry-B7-RknRf.js} +6 -6
- package/dist/dev/packages/shared-chunks/{transform-resolutions-fXGQKGsL.js → transform-resolutions-D-YtZ0_g.js} +2 -2
- package/dist/prod/packages/@ember/-internals/glimmer/index.js +9 -9
- package/dist/prod/packages/@ember/-internals/metal/index.js +10 -10
- package/dist/prod/packages/@ember/-internals/routing/index.js +2 -2
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +4 -4
- package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +2 -2
- 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 +2 -2
- package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +3 -3
- package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +3 -3
- package/dist/prod/packages/@ember/application/index.js +8 -8
- package/dist/prod/packages/@ember/application/instance.js +8 -8
- package/dist/prod/packages/@ember/application/namespace.js +3 -3
- package/dist/prod/packages/@ember/array/index.js +5 -5
- package/dist/prod/packages/@ember/array/proxy.js +5 -5
- package/dist/prod/packages/@ember/component/helper.js +6 -6
- package/dist/prod/packages/@ember/component/index.js +6 -6
- package/dist/prod/packages/@ember/component/template-only.js +4 -4
- package/dist/prod/packages/@ember/controller/index.js +4 -4
- package/dist/prod/packages/@ember/debug/container-debug-adapter.js +2 -2
- package/dist/prod/packages/@ember/debug/data-adapter.js +2 -2
- package/dist/prod/packages/@ember/engine/index.js +9 -9
- package/dist/prod/packages/@ember/helper/index.js +8 -8
- package/dist/prod/packages/@ember/modifier/index.js +6 -6
- package/dist/prod/packages/@ember/modifier/on.js +4 -4
- package/dist/prod/packages/@ember/object/-internals.js +2 -2
- package/dist/prod/packages/@ember/object/compat.js +2 -2
- package/dist/prod/packages/@ember/object/computed.js +4 -4
- package/dist/prod/packages/@ember/object/core.js +2 -2
- package/dist/prod/packages/@ember/object/evented.js +3 -3
- package/dist/prod/packages/@ember/object/events.js +2 -2
- package/dist/prod/packages/@ember/object/index.js +6 -6
- package/dist/prod/packages/@ember/object/internals.js +2 -2
- package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +5 -5
- package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +3 -3
- package/dist/prod/packages/@ember/object/mixin.js +3 -3
- package/dist/prod/packages/@ember/object/observable.js +5 -5
- package/dist/prod/packages/@ember/object/observers.js +2 -2
- package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +4 -4
- package/dist/prod/packages/@ember/renderer/index.js +6 -6
- package/dist/prod/packages/@ember/routing/index.js +6 -6
- package/dist/prod/packages/@ember/routing/lib/generate_controller.js +2 -2
- package/dist/prod/packages/@ember/routing/lib/routing-service.js +2 -2
- package/dist/prod/packages/@ember/routing/lib/utils.js +2 -2
- package/dist/prod/packages/@ember/routing/route.js +6 -6
- package/dist/prod/packages/@ember/routing/router-service.js +2 -2
- package/dist/prod/packages/@ember/routing/router.js +4 -4
- package/dist/prod/packages/@ember/runloop/index.js +2 -2
- package/dist/prod/packages/@ember/service/index.js +3 -3
- package/dist/prod/packages/@ember/template/index.js +6 -6
- package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +9 -7
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/auto-import-builtins.js +18 -0
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/index.js +1 -1
- package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-resolutions.js +1 -1
- package/dist/prod/packages/@ember/template-compiler/lib/template.js +4 -4
- package/dist/prod/packages/@ember/template-factory/index.js +3 -3
- package/dist/prod/packages/@ember/utils/lib/is_empty.js +2 -2
- package/dist/prod/packages/@glimmer/destroyable/index.js +5 -1
- package/dist/prod/packages/@glimmer/manager/index.js +4 -4
- package/dist/prod/packages/@glimmer/node/index.js +6 -6
- package/dist/prod/packages/@glimmer/opcode-compiler/index.js +3 -3
- package/dist/prod/packages/@glimmer/program/index.js +1 -1
- package/dist/prod/packages/@glimmer/runtime/index.js +6 -6
- package/dist/prod/packages/@glimmer/tracking/index.js +3 -3
- package/dist/prod/packages/@glimmer/tracking/primitives/cache/index.js +2 -2
- package/dist/prod/packages/ember/version.js +1 -1
- package/dist/prod/packages/ember-template-compiler/index.js +4 -4
- package/dist/prod/packages/shared-chunks/{alias-BkT-0B1G.js → alias-BLBQkche.js} +3 -3
- package/dist/prod/packages/shared-chunks/{api-Co-k4HVs.js → api-DtWa0ZaF.js} +1 -1
- package/dist/prod/packages/shared-chunks/{array-EwekEvId.js → array-kVQfzrQn.js} +2 -2
- package/dist/prod/packages/shared-chunks/{capabilities-DGmQ_mz4.js → capabilities-DXA-L0iT.js} +1 -1
- package/dist/prod/packages/shared-chunks/{compiler-Rwrmj1ki.js → compiler-Bbki2GT_.js} +53 -92
- package/dist/prod/packages/shared-chunks/{constants-CB3pk7dH.js → constants-2M371WiB.js} +4 -4
- package/dist/prod/packages/shared-chunks/{element-builder-DbktcGKV.js → element-builder-BmLF0C-1.js} +2 -4
- package/dist/prod/packages/shared-chunks/{fragment-EpVz5Xuc.js → fragment-D7nBU9ae.js} +16 -1
- package/dist/prod/packages/shared-chunks/{index-BVy-auLZ.js → index-6pnzcm45.js} +13 -13
- package/dist/prod/packages/shared-chunks/{index-nW__r2nX.js → index-CjaDF9kC.js} +2 -10
- package/dist/prod/packages/shared-chunks/{injected_property-DL3vQoFA.js → injected_property-CTVs5FPh.js} +1 -1
- package/dist/prod/packages/shared-chunks/{invoke-BuwCkcVB.js → invoke-BdJCXD-b.js} +3 -3
- package/dist/prod/packages/shared-chunks/{namespace_search-Aog9nySA.js → namespace_search-Dcdalhj6.js} +1 -1
- package/dist/prod/packages/shared-chunks/{observers-R1ZklwWy.js → observers-tZ2aOzr4.js} +1 -1
- package/dist/prod/packages/shared-chunks/{on-ByzWKBWe.js → on-CLxdmpmk.js} +4 -11
- package/dist/prod/packages/shared-chunks/{program-context-BdUXf-jj.js → program-context-DFiwaPMR.js} +2 -2
- package/dist/prod/packages/shared-chunks/{property_set-O080KTKZ.js → property_set-B2sZxeCw.js} +2 -2
- package/dist/prod/packages/shared-chunks/{rehydrate-builder-M_dh82nR.js → rehydrate-builder-CUefZL4I.js} +3 -7
- package/dist/prod/packages/shared-chunks/{render-DJ-BzvgU.js → render-BlriW61t.js} +4 -6
- package/dist/prod/packages/shared-chunks/{serialize-builder-BpVMgrCr.js → serialize-builder-DgpXSc2Q.js} +5 -5
- package/dist/prod/packages/shared-chunks/{set_properties-CjsDTRey.js → set_properties-C1T46IiN.js} +3 -3
- package/dist/prod/packages/shared-chunks/{setup-registry-KYxkFexK.js → setup-registry-DeObnZ2Z.js} +8 -8
- package/dist/prod/packages/shared-chunks/{tracked-ChVNBE2f.js → tracked-Cl5l4v8b.js} +1 -1
- package/dist/prod/packages/shared-chunks/{transform-resolutions-C7wq_Q_c.js → transform-resolutions-DR4GLmR2.js} +0 -3
- package/docs/data.json +185 -145
- package/package.json +3 -1
- package/types/stable/@glimmer/syntax/lib/source/source.d.ts +2 -1
- package/dist/prod/packages/shared-chunks/assert-CUCJBR2C.js +0 -19
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import './plugins/allowed-globals.js';
|
|
2
2
|
import templateOnly from '../../component/template-only.js';
|
|
3
|
-
import '../../../shared-chunks/fragment-
|
|
3
|
+
import '../../../shared-chunks/fragment-D7nBU9ae.js';
|
|
4
4
|
import '../../../@glimmer/wire-format/index.js';
|
|
5
|
-
import { p as precompile } from '../../../shared-chunks/compiler-
|
|
5
|
+
import { p as precompile } from '../../../shared-chunks/compiler-Bbki2GT_.js';
|
|
6
6
|
import '../../../@glimmer/validator/index.js';
|
|
7
7
|
import '../../../shared-chunks/reference-BNqcwZWH.js';
|
|
8
|
-
import '../../../shared-chunks/capabilities-
|
|
8
|
+
import '../../../shared-chunks/capabilities-DXA-L0iT.js';
|
|
9
9
|
import { s as setComponentTemplate } from '../../../shared-chunks/template-Dc_cBOoX.js';
|
|
10
|
-
import { t as templateFactory } from '../../../shared-chunks/index-
|
|
10
|
+
import { t as templateFactory } from '../../../shared-chunks/index-CjaDF9kC.js';
|
|
11
11
|
import compileOptions, { RUNTIME_KEYWORDS_NAME, keywords } from './compile-options.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../../shared-chunks/fragment-
|
|
1
|
+
import '../../shared-chunks/fragment-D7nBU9ae.js';
|
|
2
2
|
import '../../@glimmer/validator/index.js';
|
|
3
3
|
import '../../shared-chunks/reference-BNqcwZWH.js';
|
|
4
|
-
export { t as createTemplateFactory } from '../../shared-chunks/index-
|
|
5
|
-
import '../../shared-chunks/capabilities-
|
|
4
|
+
export { t as createTemplateFactory } from '../../shared-chunks/index-CjaDF9kC.js';
|
|
5
|
+
import '../../shared-chunks/capabilities-DXA-L0iT.js';
|
|
@@ -3,8 +3,8 @@ import '../../../shared-chunks/super-Cm_a_cLQ.js';
|
|
|
3
3
|
import '../../-internals/environment/index.js';
|
|
4
4
|
import '../../../@glimmer/validator/index.js';
|
|
5
5
|
import '../../../shared-chunks/reference-BNqcwZWH.js';
|
|
6
|
-
import '../../../shared-chunks/capabilities-
|
|
7
|
-
import { m as hasUnknownProperty, g as get } from '../../../shared-chunks/observers-
|
|
6
|
+
import '../../../shared-chunks/capabilities-DXA-L0iT.js';
|
|
7
|
+
import { m as hasUnknownProperty, g as get } from '../../../shared-chunks/observers-tZ2aOzr4.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
@module @ember/utils
|
|
@@ -30,7 +30,11 @@ function iterate(collection, fn) {
|
|
|
30
30
|
function remove(collection, item, message) {
|
|
31
31
|
if (isBrandedArray(collection) && collection.length > 1) {
|
|
32
32
|
let index = collection.indexOf(item);
|
|
33
|
-
collection.
|
|
33
|
+
let lastIndex = collection.length - 1;
|
|
34
|
+
if (index !== lastIndex) {
|
|
35
|
+
collection[index] = collection[lastIndex];
|
|
36
|
+
}
|
|
37
|
+
collection.length = lastIndex;
|
|
34
38
|
return collection;
|
|
35
39
|
} else {
|
|
36
40
|
return null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as setInternalHelperManager, C as CustomHelperManager, s as setInternalComponentManager, j as setInternalModifierManager } from '../../shared-chunks/api-
|
|
2
|
-
export { e as getInternalComponentManager, g as getInternalHelperManager, d as getInternalModifierManager, a as hasDestroyable, b as hasInternalComponentManager, f as hasInternalHelperManager, k as hasInternalModifierManager, h as hasValue, c as helperCapabilities } from '../../shared-chunks/api-
|
|
1
|
+
import { i as setInternalHelperManager, C as CustomHelperManager, s as setInternalComponentManager, j as setInternalModifierManager } from '../../shared-chunks/api-DtWa0ZaF.js';
|
|
2
|
+
export { e as getInternalComponentManager, g as getInternalHelperManager, d as getInternalModifierManager, a as hasDestroyable, b as hasInternalComponentManager, f as hasInternalHelperManager, k as hasInternalModifierManager, h as hasValue, c as helperCapabilities } from '../../shared-chunks/api-DtWa0ZaF.js';
|
|
3
3
|
import { registerDestructor } from '../destroyable/index.js';
|
|
4
4
|
import { untrack, createUpdatableTag } from '../validator/index.js';
|
|
5
5
|
import { a as createConstRef } from '../../shared-chunks/reference-BNqcwZWH.js';
|
|
6
6
|
import { a as argsProxyFor } from '../../shared-chunks/args-proxy-Dl0A0YWI.js';
|
|
7
7
|
export { g as getCustomTagFor, s as setCustomTagFor } from '../../shared-chunks/args-proxy-Dl0A0YWI.js';
|
|
8
|
-
import { b as buildCapabilities } from '../../shared-chunks/capabilities-
|
|
9
|
-
export { c as capabilityFlagsFrom, h as hasCapability, m as managerHasCapability } from '../../shared-chunks/capabilities-
|
|
8
|
+
import { b as buildCapabilities } from '../../shared-chunks/capabilities-DXA-L0iT.js';
|
|
9
|
+
export { c as capabilityFlagsFrom, h as hasCapability, m as managerHasCapability } from '../../shared-chunks/capabilities-DXA-L0iT.js';
|
|
10
10
|
import { a as castToBrowser } from '../../shared-chunks/simple-cast-DCvJLSin.js';
|
|
11
11
|
export { g as getComponentTemplate, s as setComponentTemplate } from '../../shared-chunks/template-Dc_cBOoX.js';
|
|
12
12
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import '../../shared-chunks/fragment-
|
|
1
|
+
import '../../shared-chunks/fragment-D7nBU9ae.js';
|
|
2
2
|
import '../validator/index.js';
|
|
3
3
|
import '../../shared-chunks/reference-BNqcwZWH.js';
|
|
4
|
-
import { C as ConcreteBounds } from '../../shared-chunks/on-
|
|
5
|
-
import '../../shared-chunks/constants-
|
|
6
|
-
import '../../shared-chunks/capabilities-
|
|
4
|
+
import { C as ConcreteBounds } from '../../shared-chunks/on-CLxdmpmk.js';
|
|
5
|
+
import '../../shared-chunks/constants-2M371WiB.js';
|
|
6
|
+
import '../../shared-chunks/capabilities-DXA-L0iT.js';
|
|
7
7
|
import createHTMLDocument from '../../@simple-dom/document/index.js';
|
|
8
|
-
import { D as DOMTreeConstruction } from '../../shared-chunks/element-builder-
|
|
9
|
-
export { s as serializeBuilder } from '../../shared-chunks/serialize-builder-
|
|
8
|
+
import { D as DOMTreeConstruction } from '../../shared-chunks/element-builder-BmLF0C-1.js';
|
|
9
|
+
export { s as serializeBuilder } from '../../shared-chunks/serialize-builder-DgpXSc2Q.js';
|
|
10
10
|
|
|
11
11
|
class NodeDOMTreeConstruction extends DOMTreeConstruction {
|
|
12
12
|
// Hides property on base class
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { E as EMPTY_BLOCKS, W as WrappedBuilder, c as compilable, b as compileStatements, I as invokeStaticBlock, d as invokeStaticBlockWithStack, m as meta, a as templateCacheCounters, e as templateCompilationContext, t as templateFactory } from '../../shared-chunks/index-
|
|
2
|
-
import '../../shared-chunks/fragment-
|
|
1
|
+
export { E as EMPTY_BLOCKS, W as WrappedBuilder, c as compilable, b as compileStatements, I as invokeStaticBlock, d as invokeStaticBlockWithStack, m as meta, a as templateCacheCounters, e as templateCompilationContext, t as templateFactory } from '../../shared-chunks/index-CjaDF9kC.js';
|
|
2
|
+
import '../../shared-chunks/fragment-D7nBU9ae.js';
|
|
3
3
|
import '../validator/index.js';
|
|
4
4
|
import '../../shared-chunks/reference-BNqcwZWH.js';
|
|
5
|
-
export { E as EvaluationContextImpl, S as StdLib, c as compileStd } from '../../shared-chunks/program-context-
|
|
5
|
+
export { E as EvaluationContextImpl, S as StdLib, c as compileStd } from '../../shared-chunks/program-context-DFiwaPMR.js';
|
|
6
6
|
|
|
7
7
|
let debugCompiler;
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ConstantsImpl } from '../../shared-chunks/constants-
|
|
1
|
+
import { C as ConstantsImpl } from '../../shared-chunks/constants-2M371WiB.js';
|
|
2
2
|
import { a as ProgramHeapImpl } from '../../shared-chunks/program-B7SJZ5NF.js';
|
|
3
3
|
export { P as ProgramImpl, R as RuntimeOpImpl } from '../../shared-chunks/program-B7SJZ5NF.js';
|
|
4
4
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '../../shared-chunks/fragment-
|
|
1
|
+
import '../../shared-chunks/fragment-D7nBU9ae.js';
|
|
2
2
|
import '../validator/index.js';
|
|
3
3
|
import '../../shared-chunks/reference-BNqcwZWH.js';
|
|
4
|
-
export { C as ConcreteBounds, a as CurriedValue, b as CursorImpl, D as DOMChanges, E as EMPTY_ARGS, c as EMPTY_NAMED, d as EMPTY_POSITIONAL, e as IDOMChanges, T as TEMPLATE_ONLY_COMPONENT_MANAGER, f as TemplateOnlyComponent, g as TemplateOnlyComponentManager, h as array, i as clear, j as concat, k as createCapturedArgs, l as curry, m as fn, n as get, o as hash, p as isWhitespace, q as on, r as reifyArgs, s as reifyNamed, t as reifyPositional, u as resetDebuggerCallback, v as setDebuggerCallback, w as templateOnlyComponent } from '../../shared-chunks/on-
|
|
5
|
-
export { D as DOMTreeConstruction, a as DynamicAttribute, N as NewTreeBuilder, R as RemoteBlock, b as ResettableBlockImpl, S as SimpleDynamicAttribute, c as clientBuilder, d as dynamicAttribute, n as normalizeProperty } from '../../shared-chunks/element-builder-
|
|
6
|
-
export { D as DynamicScopeImpl, E as EnvironmentImpl, L as LowLevelVM, S as ScopeImpl, U as UpdatingVM, i as inTransaction, r as renderComponent, a as renderMain, b as renderSync, c as runtimeOptions } from '../../shared-chunks/render-
|
|
7
|
-
export { i as invokeHelper } from '../../shared-chunks/invoke-
|
|
4
|
+
export { C as ConcreteBounds, a as CurriedValue, b as CursorImpl, D as DOMChanges, E as EMPTY_ARGS, c as EMPTY_NAMED, d as EMPTY_POSITIONAL, e as IDOMChanges, T as TEMPLATE_ONLY_COMPONENT_MANAGER, f as TemplateOnlyComponent, g as TemplateOnlyComponentManager, h as array, i as clear, j as concat, k as createCapturedArgs, l as curry, m as fn, n as get, o as hash, p as isWhitespace, q as on, r as reifyArgs, s as reifyNamed, t as reifyPositional, u as resetDebuggerCallback, v as setDebuggerCallback, w as templateOnlyComponent } from '../../shared-chunks/on-CLxdmpmk.js';
|
|
5
|
+
export { D as DOMTreeConstruction, a as DynamicAttribute, N as NewTreeBuilder, R as RemoteBlock, b as ResettableBlockImpl, S as SimpleDynamicAttribute, c as clientBuilder, d as dynamicAttribute, n as normalizeProperty } from '../../shared-chunks/element-builder-BmLF0C-1.js';
|
|
6
|
+
export { D as DynamicScopeImpl, E as EnvironmentImpl, L as LowLevelVM, S as ScopeImpl, U as UpdatingVM, i as inTransaction, r as renderComponent, a as renderMain, b as renderSync, c as runtimeOptions } from '../../shared-chunks/render-BlriW61t.js';
|
|
7
|
+
export { i as invokeHelper } from '../../shared-chunks/invoke-BdJCXD-b.js';
|
|
8
8
|
export { destroy, isDestroyed, isDestroying, registerDestructor } from '../destroyable/index.js';
|
|
9
|
-
export { R as RehydrateTree, S as SERIALIZATION_FIRST_NODE_STRING, i as isSerializationFirstNode, r as rehydrationBuilder } from '../../shared-chunks/rehydrate-builder-
|
|
9
|
+
export { R as RehydrateTree, S as SERIALIZATION_FIRST_NODE_STRING, i as isSerializationFirstNode, r as rehydrationBuilder } from '../../shared-chunks/rehydrate-builder-CUefZL4I.js';
|
|
@@ -2,9 +2,9 @@ import '../../shared-chunks/super-Cm_a_cLQ.js';
|
|
|
2
2
|
import '../../@ember/-internals/environment/index.js';
|
|
3
3
|
import { createCache, getValue } from '../validator/index.js';
|
|
4
4
|
import '../../shared-chunks/reference-BNqcwZWH.js';
|
|
5
|
-
import '../../shared-chunks/capabilities-
|
|
6
|
-
import '../../shared-chunks/observers-
|
|
7
|
-
export { t as tracked } from '../../shared-chunks/tracked-
|
|
5
|
+
import '../../shared-chunks/capabilities-DXA-L0iT.js';
|
|
6
|
+
import '../../shared-chunks/observers-tZ2aOzr4.js';
|
|
7
|
+
export { t as tracked } from '../../shared-chunks/tracked-Cl5l4v8b.js';
|
|
8
8
|
|
|
9
9
|
// NOTE: copied from: https://github.com/glimmerjs/glimmer.js/pull/358
|
|
10
10
|
// Both glimmerjs/glimmer.js and emberjs/ember.js have the exact same implementation
|
|
@@ -2,5 +2,5 @@ import '../../../../shared-chunks/super-Cm_a_cLQ.js';
|
|
|
2
2
|
import '../../../../@ember/-internals/environment/index.js';
|
|
3
3
|
export { createCache, getValue, isConst } from '../../../validator/index.js';
|
|
4
4
|
import '../../../../shared-chunks/reference-BNqcwZWH.js';
|
|
5
|
-
import '../../../../shared-chunks/capabilities-
|
|
6
|
-
import '../../../../shared-chunks/observers-
|
|
5
|
+
import '../../../../shared-chunks/capabilities-DXA-L0iT.js';
|
|
6
|
+
import '../../../../shared-chunks/observers-tZ2aOzr4.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import '../shared-chunks/fragment-
|
|
1
|
+
import '../shared-chunks/fragment-D7nBU9ae.js';
|
|
2
2
|
import '../@glimmer/wire-format/index.js';
|
|
3
|
-
import { p as precompile$1 } from '../shared-chunks/compiler-
|
|
4
|
-
export { a as _preprocess, b as _print } from '../shared-chunks/compiler-
|
|
3
|
+
import { p as precompile$1 } from '../shared-chunks/compiler-Bbki2GT_.js';
|
|
4
|
+
export { a as _preprocess, b as _print } from '../shared-chunks/compiler-Bbki2GT_.js';
|
|
5
5
|
import '../@ember/-internals/environment/index.js';
|
|
6
6
|
import { STRICT_MODE_KEYWORDS, STRICT_MODE_TRANSFORMS, RESOLUTION_MODE_TRANSFORMS } from '../@ember/template-compiler/lib/plugins/index.js';
|
|
7
7
|
import '../shared-chunks/super-Cm_a_cLQ.js';
|
|
8
8
|
import { C as Cache } from '../shared-chunks/cache-qDyqAcpg.js';
|
|
9
|
-
import '../shared-chunks/transform-resolutions-
|
|
9
|
+
import '../shared-chunks/transform-resolutions-DR4GLmR2.js';
|
|
10
10
|
|
|
11
11
|
/*
|
|
12
12
|
This diverges from `Ember.String.dasherize` so that`<XFoo />` can resolve to `x-foo`.
|
|
@@ -2,10 +2,10 @@ import { meta } from '../@ember/-internals/meta/lib/meta.js';
|
|
|
2
2
|
import '../@ember/-internals/environment/index.js';
|
|
3
3
|
import inspect from '../@ember/debug/lib/inspect.js';
|
|
4
4
|
import { tagMetaFor, tagFor, untrack, validateTag, updateTag as UPDATE_TAG, valueForTag, consumeTag } from '../@glimmer/validator/index.js';
|
|
5
|
-
import { C as CHAIN_PASS_THROUGH, g as get, k as getChainTagsForKey, l as finishLazyChains } from './observers-
|
|
5
|
+
import { C as CHAIN_PASS_THROUGH, g as get, k as getChainTagsForKey, l as finishLazyChains } from './observers-tZ2aOzr4.js';
|
|
6
6
|
import { m as makeComputedDecorator, b as descriptorForDecorator, c as ComputedDescriptor } from './decorator-BdDDBUd2.js';
|
|
7
|
-
import { d as defineProperty } from './namespace_search-
|
|
8
|
-
import { s as set } from './property_set-
|
|
7
|
+
import { d as defineProperty } from './namespace_search-Dcdalhj6.js';
|
|
8
|
+
import { s as set } from './property_set-B2sZxeCw.js';
|
|
9
9
|
|
|
10
10
|
function alias(altKey) {
|
|
11
11
|
return makeComputedDecorator(new AliasedProperty(altKey), AliasDecoratorImpl);
|
|
@@ -2,7 +2,7 @@ import { associateDestroyableChild } from '../@glimmer/destroyable/index.js';
|
|
|
2
2
|
import '../@glimmer/validator/index.js';
|
|
3
3
|
import { c as createComputeRef, a as createConstRef, U as UNDEFINED_REFERENCE } from './reference-BNqcwZWH.js';
|
|
4
4
|
import { a as argsProxyFor } from './args-proxy-Dl0A0YWI.js';
|
|
5
|
-
import { b as buildCapabilities } from './capabilities-
|
|
5
|
+
import { b as buildCapabilities } from './capabilities-DXA-L0iT.js';
|
|
6
6
|
|
|
7
7
|
function helperCapabilities(managerAPI, options = {}) {
|
|
8
8
|
return buildCapabilities({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../@ember/-internals/environment/index.js';
|
|
2
2
|
import { peekMeta } from '../@ember/-internals/meta/lib/meta.js';
|
|
3
|
-
import { s as sendEvent, e as addListener, f as removeListener } from './observers-
|
|
4
|
-
import { n as notifyPropertyChange } from './namespace_search-
|
|
3
|
+
import { s as sendEvent, e as addListener, f as removeListener } from './observers-tZ2aOzr4.js';
|
|
4
|
+
import { n as notifyPropertyChange } from './namespace_search-Dcdalhj6.js';
|
|
5
5
|
|
|
6
6
|
function arrayContentWillChange(array, startIdx, removeAmt, addAmt) {
|
|
7
7
|
// if no args are passed assume everything changes
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { S as SourceOffset, a as SourceSpan, c as cannotReplaceOrRemoveInKeyHandlerYet, b as cannotRemoveNode, d as cannotReplaceNode, e as SYNTHETIC_LOCATION, E as EntityParser, f as EventedTokenizer, n as namedCharRefs, N as NON_EXISTENT_LOCATION, p as parseWithoutProcessing, g as parse, h as STRICT_RESOLUTION, T as Template$1, B as Block, i as NamedBlock$1, j as SourceSlice, A as Args$1, P as PositionalArguments, k as NamedArgument$1, l as NamedArguments$1, H as HtmlAttr, m as SplatAttr$1, C as ComponentArg, o as PathExpression$1, K as KeywordExpression, q as ThisReference, r as ArgReference, F as FreeVarReference, L as LocalVarReference, s as CallExpression$1, I as InterpolateExpression$1, t as LiteralExpression, u as AppendContent, v as ElementModifier, w as NamedBlocks$1, x as InvokeBlock$1, y as SimpleElement$1, z as InvokeComponent$1, D as SpanList, G as LooseModeResolution, J as COMPONENT_NAMESPACE, M as MODIFIER_NAMESPACE, O as HELPER_NAMESPACE, Q as HtmlText, R as HtmlComment, U as GlimmerComment, V as node, W as isLiteral$1, X as maybeLoc, Y as loc } from './transform-resolutions-
|
|
1
|
+
import { S as SourceOffset, a as SourceSpan, c as cannotReplaceOrRemoveInKeyHandlerYet, b as cannotRemoveNode, d as cannotReplaceNode, e as SYNTHETIC_LOCATION, E as EntityParser, f as EventedTokenizer, n as namedCharRefs, N as NON_EXISTENT_LOCATION, p as parseWithoutProcessing, g as parse, h as STRICT_RESOLUTION, T as Template$1, B as Block, i as NamedBlock$1, j as SourceSlice, A as Args$1, P as PositionalArguments, k as NamedArgument$1, l as NamedArguments$1, H as HtmlAttr, m as SplatAttr$1, C as ComponentArg, o as PathExpression$1, K as KeywordExpression, q as ThisReference, r as ArgReference, F as FreeVarReference, L as LocalVarReference, s as CallExpression$1, I as InterpolateExpression$1, t as LiteralExpression, u as AppendContent, v as ElementModifier, w as NamedBlocks$1, x as InvokeBlock$1, y as SimpleElement$1, z as InvokeComponent$1, D as SpanList, G as LooseModeResolution, J as COMPONENT_NAMESPACE, M as MODIFIER_NAMESPACE, O as HELPER_NAMESPACE, Q as HtmlText, R as HtmlComment, U as GlimmerComment, V as node, W as isLiteral$1, X as maybeLoc, Y as loc } from './transform-resolutions-DR4GLmR2.js';
|
|
2
2
|
import { s as setLocalDebugType } from './debug-brand-B1TWjOCH.js';
|
|
3
3
|
import { SexpOpcodes as opcodes, WellKnownTagNames, WellKnownAttrNames } from '../@glimmer/wire-format/index.js';
|
|
4
|
-
import { a as assert } from './assert-CUCJBR2C.js';
|
|
5
4
|
import { u as unwrap, a as isPresentArray, f as asPresentArray, e as expect, b as getLast, g as getFirst, d as dict, m as mapPresentArray, h as exhausted } from './collections-GpG8lT2g.js';
|
|
6
5
|
import { a as assign } from './object-utils-AijlD-JH.js';
|
|
7
|
-
import { a4 as CURRIED_MODIFIER, au as CURRIED_HELPER, C as CURRIED_COMPONENT } from './fragment-
|
|
6
|
+
import { a4 as CURRIED_MODIFIER, au as CURRIED_HELPER, C as CURRIED_COMPONENT } from './fragment-D7nBU9ae.js';
|
|
8
7
|
import '../@glimmer/validator/index.js';
|
|
9
8
|
import './reference-BNqcwZWH.js';
|
|
10
9
|
|
|
@@ -562,10 +561,14 @@ class Source {
|
|
|
562
561
|
static from(source, options = {}) {
|
|
563
562
|
return new Source(source, options.meta?.moduleName);
|
|
564
563
|
}
|
|
564
|
+
|
|
565
|
+
/** Char offset of each `\n` in the source. */
|
|
566
|
+
#newlineOffsets;
|
|
565
567
|
constructor(source, module = 'an unknown module') {
|
|
566
568
|
this.source = source;
|
|
567
569
|
this.module = module;
|
|
568
570
|
setLocalDebugType('syntax:source', this);
|
|
571
|
+
this.#newlineOffsets = computeNewlineOffsets(source);
|
|
569
572
|
}
|
|
570
573
|
|
|
571
574
|
/**
|
|
@@ -599,50 +602,52 @@ class Source {
|
|
|
599
602
|
});
|
|
600
603
|
}
|
|
601
604
|
hbsPosFor(offset) {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
609
|
-
while (true) {
|
|
610
|
-
let nextLine = this.source.indexOf('\n', seenChars);
|
|
611
|
-
if (offset <= nextLine || nextLine === -1) {
|
|
612
|
-
return {
|
|
613
|
-
line: seenLines + 1,
|
|
614
|
-
column: offset - seenChars
|
|
615
|
-
};
|
|
616
|
-
} else {
|
|
617
|
-
seenLines += 1;
|
|
618
|
-
seenChars = nextLine + 1;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
605
|
+
if (offset < 0 || offset > this.source.length) return null;
|
|
606
|
+
const lineIdx = lowerBound(this.#newlineOffsets, offset);
|
|
607
|
+
return {
|
|
608
|
+
line: lineIdx + 1,
|
|
609
|
+
column: offset - this.#lineStartFor(lineIdx)
|
|
610
|
+
};
|
|
621
611
|
}
|
|
622
|
-
charPosFor(
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
if (seenLines === line - 1) {
|
|
635
|
-
if (seenChars + column > nextLine) return nextLine;
|
|
636
|
-
return seenChars + column;
|
|
637
|
-
} else if (nextLine === -1) {
|
|
638
|
-
return 0;
|
|
639
|
-
} else {
|
|
640
|
-
seenLines += 1;
|
|
641
|
-
seenChars = nextLine + 1;
|
|
642
|
-
}
|
|
612
|
+
charPosFor({
|
|
613
|
+
line,
|
|
614
|
+
column
|
|
615
|
+
}) {
|
|
616
|
+
const lineIdx = line - 1;
|
|
617
|
+
// Valid lines are [0, newlineOffsets.length]. Anything else has no offset.
|
|
618
|
+
if (lineIdx < 0 || lineIdx > this.#newlineOffsets.length || column < 0) return null;
|
|
619
|
+
const lineStart = lineIdx === 0 ? 0 : this.#newlineOffsets[lineIdx - 1] + 1;
|
|
620
|
+
const lineEnd = this.#newlineOffsets[lineIdx] ?? this.source.length;
|
|
621
|
+
const target = lineStart + column;
|
|
622
|
+
if (target <= lineEnd) {
|
|
623
|
+
return target;
|
|
643
624
|
}
|
|
644
|
-
return
|
|
625
|
+
return lineEnd;
|
|
626
|
+
}
|
|
627
|
+
#lineStartFor(lineIdx) {
|
|
628
|
+
if (lineIdx === 0) return 0;
|
|
629
|
+
const prevNl = this.#newlineOffsets[lineIdx - 1];
|
|
630
|
+
return prevNl === undefined ? 0 : prevNl + 1;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
function computeNewlineOffsets(source) {
|
|
634
|
+
const offsets = [];
|
|
635
|
+
for (let i = source.indexOf('\n'); i !== -1; i = source.indexOf('\n', i + 1)) {
|
|
636
|
+
offsets.push(i);
|
|
645
637
|
}
|
|
638
|
+
return offsets;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
/** Lower-bound binary search: smallest i with arr[i] >= target, else arr.length. */
|
|
642
|
+
function lowerBound(arr, target) {
|
|
643
|
+
let lo = 0;
|
|
644
|
+
let hi = arr.length;
|
|
645
|
+
while (lo < hi) {
|
|
646
|
+
const mid = lo + hi >>> 1;
|
|
647
|
+
// mid is in [lo, hi) so always a valid index.
|
|
648
|
+
if (arr[mid] < target) lo = mid + 1;else hi = mid;
|
|
649
|
+
}
|
|
650
|
+
return lo;
|
|
646
651
|
}
|
|
647
652
|
|
|
648
653
|
function generateSyntaxError(message, location) {
|
|
@@ -756,8 +761,6 @@ function getNodeHandler(visitor, nodeType) {
|
|
|
756
761
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
757
762
|
if (visitor.Program) {
|
|
758
763
|
if (nodeType === 'Template' && !visitor.Template || nodeType === 'Block' && !visitor.Block) {
|
|
759
|
-
|
|
760
|
-
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
761
764
|
return visitor.Program;
|
|
762
765
|
}
|
|
763
766
|
}
|
|
@@ -1007,7 +1010,6 @@ function buildBlock(path, params, hash, _defaultBlock, _elseBlock = null, loc, o
|
|
|
1007
1010
|
defaultBlock = _defaultBlock;
|
|
1008
1011
|
}
|
|
1009
1012
|
if (_elseBlock?.type === 'Template') {
|
|
1010
|
-
assert(_elseBlock.blockParams.length === 0);
|
|
1011
1013
|
elseBlock = b.blockItself({
|
|
1012
1014
|
params: [],
|
|
1013
1015
|
body: _elseBlock.body,
|
|
@@ -1083,12 +1085,8 @@ function buildElement(tag, options = {}) {
|
|
|
1083
1085
|
path = buildPath(tag);
|
|
1084
1086
|
}
|
|
1085
1087
|
} else if ('type' in tag) {
|
|
1086
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- supports JS users
|
|
1087
|
-
assert(tag.type === 'PathExpression', `Invalid tag type ${tag.type}`);
|
|
1088
1088
|
path = tag;
|
|
1089
1089
|
} else if ('path' in tag) {
|
|
1090
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- supports JS users
|
|
1091
|
-
assert(tag.path.type === 'PathExpression', `Invalid tag type ${tag.path.type}`);
|
|
1092
1090
|
path = tag.path;
|
|
1093
1091
|
selfClosing = tag.selfClosing;
|
|
1094
1092
|
} else {
|
|
@@ -1193,7 +1191,6 @@ function buildPath(path, loc) {
|
|
|
1193
1191
|
if ('type' in path) {
|
|
1194
1192
|
return path;
|
|
1195
1193
|
} else {
|
|
1196
|
-
assert(path.head.indexOf('.') === -1);
|
|
1197
1194
|
let {
|
|
1198
1195
|
head,
|
|
1199
1196
|
tail
|
|
@@ -1379,7 +1376,8 @@ function buildLegacyPath({
|
|
|
1379
1376
|
head,
|
|
1380
1377
|
tail,
|
|
1381
1378
|
get original() {
|
|
1382
|
-
|
|
1379
|
+
const head = this.head.original;
|
|
1380
|
+
return this.tail.length === 0 ? head : `${head}.${this.tail.join('.')}`;
|
|
1383
1381
|
},
|
|
1384
1382
|
set original(value) {
|
|
1385
1383
|
let [head, ...tail] = asPresentArray(value.split('.'));
|
|
@@ -1739,8 +1737,6 @@ class Builders {
|
|
|
1739
1737
|
return _name;
|
|
1740
1738
|
},
|
|
1741
1739
|
set name(value) {
|
|
1742
|
-
assert(value[0] === '@');
|
|
1743
|
-
assert(value.indexOf('.') === -1);
|
|
1744
1740
|
_name = value;
|
|
1745
1741
|
},
|
|
1746
1742
|
get original() {
|
|
@@ -1767,8 +1763,6 @@ class Builders {
|
|
|
1767
1763
|
return _name;
|
|
1768
1764
|
},
|
|
1769
1765
|
set name(value) {
|
|
1770
|
-
assert(value[0] !== '@');
|
|
1771
|
-
assert(value.indexOf('.') === -1);
|
|
1772
1766
|
_name = value;
|
|
1773
1767
|
},
|
|
1774
1768
|
get original() {
|
|
@@ -1857,27 +1851,22 @@ class Parser {
|
|
|
1857
1851
|
}
|
|
1858
1852
|
get currentTag() {
|
|
1859
1853
|
let node = this.currentNode;
|
|
1860
|
-
assert(node && (node.type === 'StartTag' || node.type === 'EndTag'));
|
|
1861
1854
|
return node;
|
|
1862
1855
|
}
|
|
1863
1856
|
get currentStartTag() {
|
|
1864
1857
|
let node = this.currentNode;
|
|
1865
|
-
assert(node && node.type === 'StartTag');
|
|
1866
1858
|
return node;
|
|
1867
1859
|
}
|
|
1868
1860
|
get currentEndTag() {
|
|
1869
1861
|
let node = this.currentNode;
|
|
1870
|
-
assert(node && node.type === 'EndTag');
|
|
1871
1862
|
return node;
|
|
1872
1863
|
}
|
|
1873
1864
|
get currentComment() {
|
|
1874
1865
|
let node = this.currentNode;
|
|
1875
|
-
assert(node && node.type === 'CommentStatement');
|
|
1876
1866
|
return node;
|
|
1877
1867
|
}
|
|
1878
1868
|
get currentData() {
|
|
1879
1869
|
let node = this.currentNode;
|
|
1880
|
-
assert(node && node.type === 'TextNode');
|
|
1881
1870
|
return node;
|
|
1882
1871
|
}
|
|
1883
1872
|
acceptNode(node) {
|
|
@@ -1934,7 +1923,6 @@ class HandlebarsNodeVisitors extends Parser {
|
|
|
1934
1923
|
// the error.
|
|
1935
1924
|
pendingError = null;
|
|
1936
1925
|
parse(program, blockParams) {
|
|
1937
|
-
assert(program.loc);
|
|
1938
1926
|
let node = b.template({
|
|
1939
1927
|
body: [],
|
|
1940
1928
|
blockParams,
|
|
@@ -1950,7 +1938,6 @@ class HandlebarsNodeVisitors extends Parser {
|
|
|
1950
1938
|
return template;
|
|
1951
1939
|
}
|
|
1952
1940
|
Program(program, blockParams) {
|
|
1953
|
-
assert(program.loc);
|
|
1954
1941
|
let node = b.blockItself({
|
|
1955
1942
|
body: [],
|
|
1956
1943
|
params: blockParams,
|
|
@@ -1977,15 +1964,12 @@ class HandlebarsNodeVisitors extends Parser {
|
|
|
1977
1964
|
if (node !== poppedNode) {
|
|
1978
1965
|
if (poppedNode?.type === 'ElementNode') {
|
|
1979
1966
|
throw generateSyntaxError(`Unclosed element \`${poppedNode.tag}\``, poppedNode.loc);
|
|
1980
|
-
} else {
|
|
1981
|
-
assert(false, `[BUG] mismatched parser elementStack node: ${node.type}`);
|
|
1982
1967
|
}
|
|
1983
1968
|
}
|
|
1984
1969
|
return node;
|
|
1985
1970
|
}
|
|
1986
1971
|
BlockStatement(block) {
|
|
1987
1972
|
if (this.tokenizer.state === 'comment') {
|
|
1988
|
-
assert(block.loc);
|
|
1989
1973
|
this.appendToCommentData(this.sourceForNode(block));
|
|
1990
1974
|
return;
|
|
1991
1975
|
}
|
|
@@ -2573,8 +2557,6 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2573
2557
|
this.finishEndTag(true);
|
|
2574
2558
|
}
|
|
2575
2559
|
} else {
|
|
2576
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- exhaustive
|
|
2577
|
-
assert(tag.type === 'EndTag', `Invalid tag type ${tag.type}`);
|
|
2578
2560
|
this.finishEndTag(false);
|
|
2579
2561
|
}
|
|
2580
2562
|
}
|
|
@@ -2628,9 +2610,7 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2628
2610
|
let parent = this.currentElement();
|
|
2629
2611
|
if (isVoid) {
|
|
2630
2612
|
element.closeTag = null;
|
|
2631
|
-
} else if (element.selfClosing) {
|
|
2632
|
-
assert(element.closeTag === null);
|
|
2633
|
-
} else {
|
|
2613
|
+
} else if (element.selfClosing) ; else {
|
|
2634
2614
|
element.closeTag = closeTagStart.until(this.offset());
|
|
2635
2615
|
}
|
|
2636
2616
|
element.loc = element.loc.withEnd(this.offset());
|
|
@@ -2656,9 +2636,6 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2656
2636
|
if (tag.type === 'StartTag') {
|
|
2657
2637
|
let offset = this.offset();
|
|
2658
2638
|
if (tag.nameStart === null) {
|
|
2659
|
-
assert(tag.nameEnd === null);
|
|
2660
|
-
|
|
2661
|
-
// Note that the tokenizer already consumed the token here
|
|
2662
2639
|
tag.nameStart = offset.move(-1);
|
|
2663
2640
|
}
|
|
2664
2641
|
tag.nameEnd = offset;
|
|
@@ -2754,14 +2731,12 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2754
2731
|
parsePossibleBlockParams() {
|
|
2755
2732
|
// const enums that we can't use directly
|
|
2756
2733
|
const BEFORE_ATTRIBUTE_NAME = 'beforeAttributeName';
|
|
2757
|
-
const ATTRIBUTE_NAME = 'attributeName';
|
|
2758
2734
|
const AFTER_ATTRIBUTE_NAME = 'afterAttributeName';
|
|
2759
2735
|
|
|
2760
2736
|
// Regex to validate the identifier for block parameters.
|
|
2761
2737
|
// Based on the ID validation regex in Handlebars.
|
|
2762
2738
|
|
|
2763
2739
|
const ID_INVERSE_PATTERN = /[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;
|
|
2764
|
-
assert(this.tokenizer.state === ATTRIBUTE_NAME);
|
|
2765
2740
|
const element = this.currentStartTag;
|
|
2766
2741
|
const as = this.currentAttr;
|
|
2767
2742
|
let state = {
|
|
@@ -2769,7 +2744,6 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2769
2744
|
};
|
|
2770
2745
|
const handlers = {
|
|
2771
2746
|
PossibleAs: next => {
|
|
2772
|
-
assert(state.state === 'PossibleAs');
|
|
2773
2747
|
if (isSpace(next)) {
|
|
2774
2748
|
// " as ..."
|
|
2775
2749
|
state = {
|
|
@@ -2790,7 +2764,6 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2790
2764
|
}
|
|
2791
2765
|
},
|
|
2792
2766
|
BeforeStartPipe: next => {
|
|
2793
|
-
assert(state.state === 'BeforeStartPipe');
|
|
2794
2767
|
if (isSpace(next)) {
|
|
2795
2768
|
this.tokenizer.consume();
|
|
2796
2769
|
} else if (next === '|') {
|
|
@@ -2808,7 +2781,6 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2808
2781
|
}
|
|
2809
2782
|
},
|
|
2810
2783
|
BeforeBlockParamName: next => {
|
|
2811
|
-
assert(state.state === 'BeforeBlockParamName');
|
|
2812
2784
|
if (isSpace(next)) {
|
|
2813
2785
|
this.tokenizer.consume();
|
|
2814
2786
|
} else if (next === '') {
|
|
@@ -2848,7 +2820,6 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2848
2820
|
}
|
|
2849
2821
|
},
|
|
2850
2822
|
BlockParamName: next => {
|
|
2851
|
-
assert(state.state === 'BlockParamName');
|
|
2852
2823
|
if (next === '') {
|
|
2853
2824
|
// The HTML tokenizer ran out of characters, so we are either
|
|
2854
2825
|
// encountering mustache or <EOF>, HBS side will attach the error
|
|
@@ -2888,7 +2859,6 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2888
2859
|
}
|
|
2889
2860
|
},
|
|
2890
2861
|
AfterEndPipe: next => {
|
|
2891
|
-
assert(state.state === 'AfterEndPipe');
|
|
2892
2862
|
if (isSpace(next)) {
|
|
2893
2863
|
this.tokenizer.consume();
|
|
2894
2864
|
} else if (next === '') {
|
|
@@ -2922,7 +2892,6 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2922
2892
|
}
|
|
2923
2893
|
},
|
|
2924
2894
|
Error: next => {
|
|
2925
|
-
assert(state.state === 'Error');
|
|
2926
2895
|
if (next === '' || next === '/' || next === '>' || isSpace(next)) {
|
|
2927
2896
|
throw generateSyntaxError(state.message, state.start.until(this.offset()));
|
|
2928
2897
|
} else {
|
|
@@ -2938,7 +2907,6 @@ class TokenizerEventHandlers extends HandlebarsNodeVisitors {
|
|
|
2938
2907
|
next = this.tokenizer.peek();
|
|
2939
2908
|
handlers[state.state](next);
|
|
2940
2909
|
} while (state.state !== 'Done' && next !== '');
|
|
2941
|
-
assert(state.state === 'Done');
|
|
2942
2910
|
}
|
|
2943
2911
|
reportSyntaxError(message) {
|
|
2944
2912
|
throw generateSyntaxError(message, this.offset().collapsed());
|
|
@@ -3339,8 +3307,6 @@ class Builder {
|
|
|
3339
3307
|
});
|
|
3340
3308
|
}
|
|
3341
3309
|
at(name, symbol, loc) {
|
|
3342
|
-
// the `@` should be included so we have a complete source range
|
|
3343
|
-
assert(name[0] === '@');
|
|
3344
3310
|
return new ArgReference({
|
|
3345
3311
|
loc,
|
|
3346
3312
|
name: new SourceSlice({
|
|
@@ -3356,7 +3322,6 @@ class Builder {
|
|
|
3356
3322
|
symbol,
|
|
3357
3323
|
loc
|
|
3358
3324
|
}) {
|
|
3359
|
-
assert(name[0] !== '@');
|
|
3360
3325
|
return new FreeVarReference({
|
|
3361
3326
|
name,
|
|
3362
3327
|
resolution: context,
|
|
@@ -3365,7 +3330,6 @@ class Builder {
|
|
|
3365
3330
|
});
|
|
3366
3331
|
}
|
|
3367
3332
|
localVar(name, symbol, isTemplateLocal, loc) {
|
|
3368
|
-
assert(name[0] !== '@');
|
|
3369
3333
|
return new LocalVarReference({
|
|
3370
3334
|
loc,
|
|
3371
3335
|
name,
|
|
@@ -3774,7 +3738,7 @@ class ExpressionNormalizer {
|
|
|
3774
3738
|
let paramLoc = SpanList.range(paramList, callee.loc.collapse('end'));
|
|
3775
3739
|
let namedLoc = this.block.loc(hash.loc);
|
|
3776
3740
|
let argsLoc = SpanList.range([paramLoc, namedLoc]);
|
|
3777
|
-
let positional = this.block.builder.positional(
|
|
3741
|
+
let positional = this.block.builder.positional(paramList, paramLoc);
|
|
3778
3742
|
let named = this.block.builder.named(hash.pairs.map(p => this.namedArgument(p)), this.block.loc(hash.loc));
|
|
3779
3743
|
switch (callee.type) {
|
|
3780
3744
|
case 'Literal':
|
|
@@ -4159,7 +4123,6 @@ class ElementNormalizer {
|
|
|
4159
4123
|
}
|
|
4160
4124
|
}
|
|
4161
4125
|
attr(m) {
|
|
4162
|
-
assert(m.name[0] !== '@');
|
|
4163
4126
|
if (m.name === '...attributes') {
|
|
4164
4127
|
return this.ctx.builder.splatAttr(this.ctx.table.allocateBlock('attrs'), this.ctx.loc(m.loc));
|
|
4165
4128
|
}
|
|
@@ -4207,7 +4170,6 @@ class ElementNormalizer {
|
|
|
4207
4170
|
}
|
|
4208
4171
|
}
|
|
4209
4172
|
arg(arg) {
|
|
4210
|
-
assert(arg.name[0] === '@');
|
|
4211
4173
|
this.checkArgCall(arg);
|
|
4212
4174
|
let offsets = this.ctx.loc(arg.loc);
|
|
4213
4175
|
let nameSlice = offsets.sliceStartChars({
|
|
@@ -6363,7 +6325,6 @@ class ExpressionEncoder {
|
|
|
6363
6325
|
tail
|
|
6364
6326
|
}) {
|
|
6365
6327
|
let getOp = EXPR.expr(head);
|
|
6366
|
-
assert(getOp[0] !== opcodes.GetStrictKeyword);
|
|
6367
6328
|
return [...getOp, EXPR.Tail(tail)];
|
|
6368
6329
|
}
|
|
6369
6330
|
InterpolateExpression({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as constants } from './fragment-
|
|
1
|
+
import { c as constants } from './fragment-D7nBU9ae.js';
|
|
2
2
|
import { e as expect } from './collections-GpG8lT2g.js';
|
|
3
|
-
import { g as getInternalHelperManager, d as getInternalModifierManager, e as getInternalComponentManager } from './api-
|
|
3
|
+
import { g as getInternalHelperManager, d as getInternalModifierManager, e as getInternalComponentManager } from './api-DtWa0ZaF.js';
|
|
4
4
|
import { e as enumerate } from './array-utils-CZQxrdD3.js';
|
|
5
5
|
import '../@glimmer/validator/index.js';
|
|
6
6
|
import './reference-BNqcwZWH.js';
|
|
7
|
-
import { c as capabilityFlagsFrom, m as managerHasCapability } from './capabilities-
|
|
7
|
+
import { c as capabilityFlagsFrom, m as managerHasCapability } from './capabilities-DXA-L0iT.js';
|
|
8
8
|
import { g as getComponentTemplate } from './template-Dc_cBOoX.js';
|
|
9
9
|
import { I as InternalComponentCapabilities } from './flags-B9qxc-pB.js';
|
|
10
|
-
import { t as templateFactory } from './index-
|
|
10
|
+
import { t as templateFactory } from './index-CjaDF9kC.js';
|
|
11
11
|
import { SexpOpcodes as opcodes } from '../@glimmer/wire-format/index.js';
|
|
12
12
|
|
|
13
13
|
function unwrapHandle(handle) {
|