@angular/compiler 20.2.0-next.2 → 20.2.0-next.4

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0-next.2
2
+ * @license Angular v20.2.0-next.4
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -5392,18 +5392,21 @@ type ScopedNode = Template | SwitchBlockCase | IfBlockBranch | ForLoopBlock | Fo
5392
5392
  /** Possible values that a reference can be resolved to. */
5393
5393
  type ReferenceTarget<DirectiveT> = {
5394
5394
  directive: DirectiveT;
5395
- node: DirectiveOwner;
5395
+ node: Exclude<DirectiveOwner, HostElement>;
5396
5396
  } | Element | Template;
5397
5397
  /** Entity that is local to the template and defined within the template. */
5398
5398
  type TemplateEntity = Reference | Variable | LetDeclaration;
5399
5399
  /** Nodes that can have directives applied to them. */
5400
- type DirectiveOwner = Element | Template | Component | Directive;
5400
+ type DirectiveOwner = Element | Template | Component | Directive | HostElement;
5401
5401
  /**
5402
5402
  * A logical target for analysis, which could contain a template or other types of bindings.
5403
5403
  */
5404
- interface Target {
5404
+ interface Target<DirectiveT> {
5405
5405
  template?: Node[];
5406
- host?: HostElement;
5406
+ host?: {
5407
+ node: HostElement;
5408
+ directives: DirectiveT[];
5409
+ };
5407
5410
  }
5408
5411
  /**
5409
5412
  * A data structure which can indicate whether a given property name is present or not.
@@ -5480,7 +5483,7 @@ interface DirectiveMeta {
5480
5483
  * The returned `BoundTarget` has an API for extracting information about the processed target.
5481
5484
  */
5482
5485
  interface TargetBinder<D extends DirectiveMeta> {
5483
- bind(target: Target): BoundTarget<D>;
5486
+ bind(target: Target<D>): BoundTarget<D>;
5484
5487
  }
5485
5488
  /**
5486
5489
  * Result of performing the binding operation against a `Target`.
@@ -5494,7 +5497,7 @@ interface BoundTarget<DirectiveT extends DirectiveMeta> {
5494
5497
  /**
5495
5498
  * Get the original `Target` that was bound.
5496
5499
  */
5497
- readonly target: Target;
5500
+ readonly target: Target<DirectiveT>;
5498
5501
  /**
5499
5502
  * For a given template node (either an `Element` or a `Template`), get the set of directives
5500
5503
  * which matched the node, if any.
@@ -5619,7 +5622,7 @@ declare class R3TargetBinder<DirectiveT extends DirectiveMeta> implements Target
5619
5622
  * Perform a binding operation on the given `Target` and return a `BoundTarget` which contains
5620
5623
  * metadata about the types referenced in the template.
5621
5624
  */
5622
- bind(target: Target): BoundTarget<DirectiveT>;
5625
+ bind(target: Target<DirectiveT>): BoundTarget<DirectiveT>;
5623
5626
  }
5624
5627
 
5625
5628
  /*!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "20.2.0-next.2",
3
+ "version": "20.2.0-next.4",
4
4
  "description": "Angular - the compiler library",
5
5
  "author": "angular",
6
6
  "license": "MIT",