@angular/compiler 18.2.1 → 18.2.2

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 v18.2.1
2
+ * @license Angular v18.2.2
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1405,6 +1405,31 @@ declare enum FactoryTarget_2 {
1405
1405
  NgModule = 4
1406
1406
  }
1407
1407
 
1408
+ /**
1409
+ * Given a template string and a set of available directive selectors,
1410
+ * computes a list of matching selectors and splits them into 2 buckets:
1411
+ * (1) eagerly used in a template and (2) directives used only in defer
1412
+ * blocks. Similarly, returns 2 lists of pipes (eager and deferrable).
1413
+ *
1414
+ * Note: deferrable directives selectors and pipes names used in `@defer`
1415
+ * blocks are **candidates** and API caller should make sure that:
1416
+ *
1417
+ * * A Component where a given template is defined is standalone
1418
+ * * Underlying dependency classes are also standalone
1419
+ * * Dependency class symbols are not eagerly used in a TS file
1420
+ * where a host component (that owns the template) is located
1421
+ */
1422
+ export declare function findMatchingDirectivesAndPipes(template: string, directiveSelectors: string[]): {
1423
+ directives: {
1424
+ regular: string[];
1425
+ deferCandidates: string[];
1426
+ };
1427
+ pipes: {
1428
+ regular: string[];
1429
+ deferCandidates: string[];
1430
+ };
1431
+ };
1432
+
1408
1433
  declare function fn(params: FnParam[], body: Statement[], type?: Type | null, sourceSpan?: ParseSourceSpan | null, name?: string | null): FunctionExpr;
1409
1434
 
1410
1435
  declare class FnParam {
@@ -2063,11 +2088,12 @@ export declare class MessageBundle {
2063
2088
  private _implicitTags;
2064
2089
  private _implicitAttrs;
2065
2090
  private _locale;
2091
+ private readonly _preserveWhitespace;
2066
2092
  private _messages;
2067
2093
  constructor(_htmlParser: HtmlParser, _implicitTags: string[], _implicitAttrs: {
2068
2094
  [k: string]: string[];
2069
- }, _locale?: string | null);
2070
- updateFromTemplate(html: string, url: string, interpolationConfig: InterpolationConfig): ParseError[];
2095
+ }, _locale?: string | null, _preserveWhitespace?: boolean);
2096
+ updateFromTemplate(source: string, url: string, interpolationConfig: InterpolationConfig): ParseError[];
2071
2097
  getMessages(): i18n.Message[];
2072
2098
  write(serializer: Serializer, filterSources?: (path: string) => string): string;
2073
2099
  }
@@ -2547,6 +2573,10 @@ export declare interface ParseTemplateOptions {
2547
2573
  * Preserve original line endings instead of normalizing '\r\n' endings to '\n'.
2548
2574
  */
2549
2575
  preserveLineEndings?: boolean;
2576
+ /**
2577
+ * Preserve whitespace significant to rendering.
2578
+ */
2579
+ preserveSignificantWhitespace?: boolean;
2550
2580
  /**
2551
2581
  * How to parse interpolation markers.
2552
2582
  */
@@ -5604,6 +5634,8 @@ export declare class Xliff2 extends Serializer {
5604
5634
  }
5605
5635
 
5606
5636
  export declare class Xmb extends Serializer {
5637
+ private readonly preservePlaceholders;
5638
+ constructor(preservePlaceholders?: boolean);
5607
5639
  write(messages: i18n.Message[], locale: string | null): string;
5608
5640
  load(content: string, url: string): {
5609
5641
  locale: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler",
3
- "version": "18.2.1",
3
+ "version": "18.2.2",
4
4
  "description": "Angular - the compiler library",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/core": "18.2.1"
14
+ "@angular/core": "18.2.2"
15
15
  },
16
16
  "peerDependenciesMeta": {
17
17
  "@angular/core": {