@angular/core 17.2.3 → 17.3.0-next.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.2.3
2
+ * @license Angular v17.3.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.2.3
2
+ * @license Angular v17.3.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.2.3
2
+ * @license Angular v17.3.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.2.3
2
+ * @license Angular v17.3.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4314,6 +4314,33 @@ export declare interface Host {
4314
4314
  */
4315
4315
  export declare const Host: HostDecorator;
4316
4316
 
4317
+ /**
4318
+ * Creates a token that can be used to inject static attributes of the host node.
4319
+ *
4320
+ * @usageNotes
4321
+ * ### Injecting an attribute that is known to exist
4322
+ * ```typescript
4323
+ * @Directive()
4324
+ * class MyDir {
4325
+ * attr: string = inject(new HostAttributeToken('some-attr'));
4326
+ * }
4327
+ * ```
4328
+ *
4329
+ * ### Optionally injecting an attribute
4330
+ * ```typescript
4331
+ * @Directive()
4332
+ * class MyDir {
4333
+ * attr: string | null = inject(new HostAttributeToken('some-attr'), {optional: true});
4334
+ * }
4335
+ * ```
4336
+ * @publicApi
4337
+ */
4338
+ export declare class HostAttributeToken {
4339
+ private attributeName;
4340
+ constructor(attributeName: string);
4341
+ toString(): string;
4342
+ }
4343
+
4317
4344
  /**
4318
4345
  * Type of the HostBinding metadata.
4319
4346
  *
@@ -5018,6 +5045,37 @@ export declare function inject<T>(token: ProviderToken<T>, options: InjectOption
5018
5045
  */
5019
5046
  export declare function inject<T>(token: ProviderToken<T>, options: InjectOptions): T | null;
5020
5047
 
5048
+ /**
5049
+ * @param token A token that represents a static attribute on the host node that should be injected.
5050
+ * @returns Value of the attribute if it exists.
5051
+ * @throws If called outside of a supported context or the attribute does not exist.
5052
+ *
5053
+ * @publicApi
5054
+ */
5055
+ export declare function inject(token: HostAttributeToken): string;
5056
+
5057
+ /**
5058
+ * @param token A token that represents a static attribute on the host node that should be injected.
5059
+ * @returns Value of the attribute if it exists, otherwise `null`.
5060
+ * @throws If called outside of a supported context.
5061
+ *
5062
+ * @publicApi
5063
+ */
5064
+ export declare function inject(token: HostAttributeToken, options: {
5065
+ optional: true;
5066
+ }): string | null;
5067
+
5068
+ /**
5069
+ * @param token A token that represents a static attribute on the host node that should be injected.
5070
+ * @returns Value of the attribute if it exists.
5071
+ * @throws If called outside of a supported context or the attribute does not exist.
5072
+ *
5073
+ * @publicApi
5074
+ */
5075
+ export declare function inject(token: HostAttributeToken, options: {
5076
+ optional: false;
5077
+ }): string;
5078
+
5021
5079
  /**
5022
5080
  * Type of the Injectable metadata.
5023
5081
  *
@@ -15026,6 +15084,12 @@ export declare function ɵɵinject<T>(token: ProviderToken<T>): T;
15026
15084
 
15027
15085
  export declare function ɵɵinject<T>(token: ProviderToken<T>, flags?: InjectFlags): T | null;
15028
15086
 
15087
+ export declare function ɵɵinject(token: HostAttributeToken): string;
15088
+
15089
+ export declare function ɵɵinject(token: HostAttributeToken, flags?: InjectFlags): string | null;
15090
+
15091
+ export declare function ɵɵinject<T>(token: ProviderToken<T> | HostAttributeToken, flags?: InjectFlags): string | null;
15092
+
15029
15093
  /**
15030
15094
  * Information about how a type or `InjectionToken` interfaces with the DI system.
15031
15095
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "17.2.3",
3
+ "version": "17.3.0-next.1",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.2.3
2
+ * @license Angular v17.3.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.2.3
2
+ * @license Angular v17.3.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -25489,7 +25489,7 @@ var ResourceLoader = class {
25489
25489
  };
25490
25490
 
25491
25491
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/jit_compiler_facade.mjs
25492
- var SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT = false;
25492
+ var SHOULD_USE_TEMPLATE_PIPELINE_FOR_JIT = true;
25493
25493
  var CompilerFacadeImpl = class {
25494
25494
  constructor(jitEvaluator = new JitEvaluator()) {
25495
25495
  this.jitEvaluator = jitEvaluator;
@@ -26070,7 +26070,7 @@ function publishFacade(global) {
26070
26070
  }
26071
26071
 
26072
26072
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
26073
- var VERSION2 = new Version("17.2.3");
26073
+ var VERSION2 = new Version("17.3.0-next.1");
26074
26074
 
26075
26075
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
26076
26076
  var _VisitorMode;