@angular/core 19.0.0-next.5 → 19.0.0-next.6

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 v19.0.0-next.5
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.5
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.5
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.5
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -175,10 +175,10 @@ class TestBedApplicationErrorHandler {
175
175
  throw e;
176
176
  }
177
177
  }
178
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.5", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
179
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.5", ngImport: i0, type: TestBedApplicationErrorHandler }); }
178
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.6", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
179
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.6", ngImport: i0, type: TestBedApplicationErrorHandler }); }
180
180
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.5", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.6", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
182
182
  type: Injectable
183
183
  }] });
184
184
 
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.5
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4339,6 +4339,27 @@ export declare class ExperimentalPendingTasks {
4339
4339
  * @returns A cleanup function that removes a task when called.
4340
4340
  */
4341
4341
  add(): () => void;
4342
+ /**
4343
+ * Runs an asynchronous function and blocks the application's stability until the function completes.
4344
+ *
4345
+ * ```
4346
+ * pendingTasks.run(async () => {
4347
+ * const userData = await fetch('/api/user');
4348
+ * this.userData.set(userData);
4349
+ * });
4350
+ * ```
4351
+ *
4352
+ * Application stability is at least delayed until the next tick after the `run` method resolves
4353
+ * so it is safe to make additional updates to application state that would require UI synchronization:
4354
+ *
4355
+ * ```
4356
+ * const userData = await pendingTasks.run(() => fetch('/api/user'));
4357
+ * this.userData.set(userData);
4358
+ * ```
4359
+ *
4360
+ * @param fn The asynchronous function to execute
4361
+ */
4362
+ run<T>(fn: () => Promise<T>): Promise<T>;
4342
4363
  /** @nocollapse */
4343
4364
  static ɵprov: unknown;
4344
4365
  }
@@ -6099,7 +6120,7 @@ export declare const Input: InputDecorator;
6099
6120
  * <span>{{firstName()}}</span>
6100
6121
  * ```
6101
6122
  *
6102
- * @developerPreview
6123
+ * @publicAPI
6103
6124
  * @initializerApiFunction
6104
6125
  */
6105
6126
  export declare const input: InputFunction;
@@ -6179,7 +6200,7 @@ declare enum InputFlags {
6179
6200
  * The function exposes an API for also declaring required inputs via the
6180
6201
  * `input.required` function.
6181
6202
  *
6182
- * @developerPreview
6203
+ * @publicAPI
6183
6204
  * @docsPrivate Ignored because `input` is the canonical API entry.
6184
6205
  */
6185
6206
  export declare interface InputFunction {
@@ -6213,7 +6234,7 @@ export declare interface InputFunction {
6213
6234
  * Consumers of your directive/component need to bind to this
6214
6235
  * input. If unset, a compile time error will be reported.
6215
6236
  *
6216
- * @developerPreview
6237
+ * @publicAPI
6217
6238
  */
6218
6239
  required: {
6219
6240
  /** Declares a required input of type `T`. */
@@ -6229,7 +6250,7 @@ export declare interface InputFunction {
6229
6250
  }
6230
6251
 
6231
6252
  /**
6232
- * @developerPreview
6253
+ * @publicAPI
6233
6254
  *
6234
6255
  * Options for signal inputs.
6235
6256
  */
@@ -6252,7 +6273,7 @@ export declare interface InputOptions<T, TransformT> {
6252
6273
  /**
6253
6274
  * Signal input options without the transform option.
6254
6275
  *
6255
- * @developerPreview
6276
+ * @publicAPI
6256
6277
  */
6257
6278
  export declare type InputOptionsWithoutTransform<T> = Omit<InputOptions<T, T>, 'transform'> & {
6258
6279
  transform?: undefined;
@@ -6261,7 +6282,7 @@ export declare type InputOptionsWithoutTransform<T> = Omit<InputOptions<T, T>, '
6261
6282
  /**
6262
6283
  * Signal input options with the transform option required.
6263
6284
  *
6264
- * @developerPreview
6285
+ * @publicAPI
6265
6286
  */
6266
6287
  export declare type InputOptionsWithTransform<T, TransformT> = Required<Pick<InputOptions<T, TransformT>, 'transform'>> & InputOptions<T, TransformT>;
6267
6288
 
@@ -6274,7 +6295,7 @@ export declare type InputOptionsWithTransform<T, TransformT> = Required<Pick<Inp
6274
6295
  *
6275
6296
  * @see {@link InputOptionsWithTransform} for inputs with transforms.
6276
6297
  *
6277
- * @developerPreview
6298
+ * @publicAPI
6278
6299
  */
6279
6300
  export declare interface InputSignal<T> extends InputSignalWithTransform<T, T> {
6280
6301
  }
@@ -6322,7 +6343,7 @@ declare interface InputSignalNode<T, TransformT> extends SignalNode<T> {
6322
6343
  *
6323
6344
  * @see {@link InputSignal} for additional information.
6324
6345
  *
6325
- * @developerPreview
6346
+ * @publicAPI
6326
6347
  */
6327
6348
  export declare interface InputSignalWithTransform<T, TransformT> extends Signal<T> {
6328
6349
  [SIGNAL]: InputSignalNode<T, TransformT>;
@@ -7318,7 +7339,7 @@ export declare enum MissingTranslationStrategy {
7318
7339
  * }
7319
7340
  * ```
7320
7341
  *
7321
- * @developerPreview
7342
+ * @publicAPI
7322
7343
  * @initializerApiFunction
7323
7344
  */
7324
7345
  export declare const model: ModelFunction;
@@ -7331,7 +7352,7 @@ export declare const model: ModelFunction;
7331
7352
  * The function exposes an API for also declaring required models via the
7332
7353
  * `model.required` function.
7333
7354
  *
7334
- * @developerPreview
7355
+ * @publicAPI
7335
7356
  * @docsPrivate Ignored because `model` is the canonical API entry.
7336
7357
  */
7337
7358
  export declare interface ModelFunction {
@@ -7354,7 +7375,7 @@ export declare interface ModelFunction {
7354
7375
  }
7355
7376
 
7356
7377
  /**
7357
- * @developerPreview
7378
+ * @publicAPI
7358
7379
  *
7359
7380
  * Options for model signals.
7360
7381
  */
@@ -7372,7 +7393,7 @@ export declare interface ModelOptions {
7372
7393
  * A model signal is a writeable signal that can be exposed as an output.
7373
7394
  * Whenever its value is updated, it emits to the output.
7374
7395
  *
7375
- * @developerPreview
7396
+ * @publicAPI
7376
7397
  */
7377
7398
  export declare interface ModelSignal<T> extends WritableSignal<T>, InputSignal<T>, OutputRef<T> {
7378
7399
  [SIGNAL]: InputSignalNode<T, T>;
@@ -8192,9 +8213,8 @@ export declare const Output: OutputDecorator;
8192
8213
  * this.nameChange.emit(newName);
8193
8214
  * }
8194
8215
  * ```
8195
- *
8196
- * @developerPreview
8197
8216
  * @initializerApiFunction {"showTypesInSignaturePreview": true}
8217
+ * @publicAPI
8198
8218
  */
8199
8219
  export declare function output<T = void>(opts?: OutputOptions): OutputEmitterRef<T>;
8200
8220
 
@@ -8236,7 +8256,7 @@ export declare interface OutputDecorator {
8236
8256
  * <my-comp (valueChange)="processNewValue($event)" />
8237
8257
  * ```
8238
8258
  *
8239
- * @developerPreview
8259
+ * @publicAPI
8240
8260
  */
8241
8261
  export declare class OutputEmitterRef<T> implements OutputRef<T> {
8242
8262
  private destroyed;
@@ -8251,7 +8271,7 @@ export declare class OutputEmitterRef<T> implements OutputRef<T> {
8251
8271
  /**
8252
8272
  * Options for declaring an output.
8253
8273
  *
8254
- * @developerPreview
8274
+ * @publicAPI
8255
8275
  */
8256
8276
  export declare interface OutputOptions {
8257
8277
  alias?: string;
@@ -8260,7 +8280,7 @@ export declare interface OutputOptions {
8260
8280
  /**
8261
8281
  * A reference to an Angular output.
8262
8282
  *
8263
- * @developerPreview
8283
+ * @publicAPI
8264
8284
  */
8265
8285
  export declare interface OutputRef<T> {
8266
8286
  /**
@@ -8281,7 +8301,7 @@ export declare interface OutputRef<T> {
8281
8301
  * Note: Angular will automatically clean up subscriptions
8282
8302
  * when the directive/component of the output is destroyed.
8283
8303
  *
8284
- * @developerPreview
8304
+ * @publicAPI
8285
8305
  */
8286
8306
  export declare interface OutputRefSubscription {
8287
8307
  unsubscribe(): void;
@@ -15229,6 +15249,22 @@ export declare function ɵɵdefer(index: number, primaryTmplIndex: number, depen
15229
15249
  */
15230
15250
  export declare function ɵɵdeferEnableTimerScheduling(tView: TView, tDetails: TDeferBlockDetails, placeholderConfigIndex?: number | null, loadingConfigIndex?: number | null): void;
15231
15251
 
15252
+ export declare function ɵɵdeferHydrateNever(): void;
15253
+
15254
+ export declare function ɵɵdeferHydrateOnHover(): void;
15255
+
15256
+ export declare function ɵɵdeferHydrateOnIdle(): void;
15257
+
15258
+ export declare function ɵɵdeferHydrateOnImmediate(): void;
15259
+
15260
+ export declare function ɵɵdeferHydrateOnInteraction(): void;
15261
+
15262
+ export declare function ɵɵdeferHydrateOnTimer(): void;
15263
+
15264
+ export declare function ɵɵdeferHydrateOnViewport(): void;
15265
+
15266
+ export declare function ɵɵdeferHydrateWhen(): void;
15267
+
15232
15268
  /**
15233
15269
  * Creates runtime data structures for the `on hover` deferred trigger.
15234
15270
  * @param triggerIndex Index at which to find the trigger element.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "19.0.0-next.5",
3
+ "version": "19.0.0-next.6",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.5
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.5
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.5
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */