@aurelia/runtime-html
Advanced tools
Comparing version 2.0.1-dev.202405010737 to 2.0.1-dev.202405031042
@@ -20,3 +20,3 @@ import { CustomElementStaticAuDefinition } from '../custom-element'; | ||
unsubscribe(subscriber: IAuSlotSubscriber): void; | ||
binding(_initiator: IHydratedController, _parent: IHydratedParentController): void | Promise<void>; | ||
binding(_initiator: IHydratedController, parent: IHydratedParentController): void | Promise<void>; | ||
attaching(initiator: IHydratedController, _parent: IHydratedParentController): void | Promise<void>; | ||
@@ -23,0 +23,0 @@ detaching(initiator: IHydratedController, _parent: IHydratedParentController): void | Promise<void>; |
{ | ||
"name": "@aurelia/runtime-html", | ||
"version": "2.0.1-dev.202405010737", | ||
"version": "2.0.1-dev.202405031042", | ||
"main": "dist/cjs/index.cjs", | ||
@@ -57,9 +57,9 @@ "module": "dist/esm/index.mjs", | ||
"dependencies": { | ||
"@aurelia/kernel": "2.0.1-dev.202405010737", | ||
"@aurelia/metadata": "2.0.1-dev.202405010737", | ||
"@aurelia/platform": "2.0.1-dev.202405010737", | ||
"@aurelia/platform-browser": "2.0.1-dev.202405010737", | ||
"@aurelia/runtime": "2.0.1-dev.202405010737", | ||
"@aurelia/expression-parser": "2.0.1-dev.202405010737", | ||
"@aurelia/template-compiler": "2.0.1-dev.202405010737" | ||
"@aurelia/kernel": "2.0.1-dev.202405031042", | ||
"@aurelia/metadata": "2.0.1-dev.202405031042", | ||
"@aurelia/platform": "2.0.1-dev.202405031042", | ||
"@aurelia/platform-browser": "2.0.1-dev.202405031042", | ||
"@aurelia/runtime": "2.0.1-dev.202405031042", | ||
"@aurelia/expression-parser": "2.0.1-dev.202405031042", | ||
"@aurelia/template-compiler": "2.0.1-dev.202405031042" | ||
}, | ||
@@ -66,0 +66,0 @@ "devDependencies": { |
@@ -167,5 +167,16 @@ import { Scope } from '../../binding/scope'; | ||
_initiator: IHydratedController, | ||
_parent: IHydratedParentController, | ||
parent: IHydratedParentController, | ||
): void | Promise<void> { | ||
this._parentScope = this.$controller.scope.parent!; | ||
// if this <au-slot> was created by another au slot, the controller hierarchy will be like this: | ||
// C(au-slot)#1 --> C(synthetic)#1 --> C(au-slot)#2 --> C(synthetic)#2 | ||
// | ||
// C(synthetic)#2 is what will provide the content for C(au-slot)#1 | ||
// but C(au-slot)#1 is what will provide the $host value for the content of C(au-slot)#2 | ||
// | ||
// because of this structure, walk 2 level of controller at once to find the right parent scope for $host value | ||
while (parent.vmKind === 'synthetic' && parent.parent?.viewModel instanceof AuSlot) { | ||
parent = parent.parent.parent as IHydratedParentController; | ||
} | ||
this._parentScope = parent.scope; | ||
let outerScope: Scope; | ||
@@ -172,0 +183,0 @@ if (this._hasProjection) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4230252
76546
+ Added@aurelia/expression-parser@2.0.1-dev.202405031042(transitive)
+ Added@aurelia/kernel@2.0.1-dev.202405031042(transitive)
+ Added@aurelia/metadata@2.0.1-dev.202405031042(transitive)
+ Added@aurelia/platform@2.0.1-dev.202405031042(transitive)
+ Added@aurelia/platform-browser@2.0.1-dev.202405031042(transitive)
+ Added@aurelia/runtime@2.0.1-dev.202405031042(transitive)
+ Added@aurelia/template-compiler@2.0.1-dev.202405031042(transitive)
- Removed@aurelia/expression-parser@2.0.1-dev.202405010737(transitive)
- Removed@aurelia/kernel@2.0.1-dev.202405010737(transitive)
- Removed@aurelia/metadata@2.0.1-dev.202405010737(transitive)
- Removed@aurelia/platform@2.0.1-dev.202405010737(transitive)
- Removed@aurelia/platform-browser@2.0.1-dev.202405010737(transitive)
- Removed@aurelia/runtime@2.0.1-dev.202405010737(transitive)
- Removed@aurelia/template-compiler@2.0.1-dev.202405010737(transitive)