@angular/core 17.0.0-next.8 → 17.0.0-rc.0

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.
Files changed (54) hide show
  1. package/esm2022/src/application_ref.mjs +2 -1
  2. package/esm2022/src/core_private_export.mjs +4 -3
  3. package/esm2022/src/core_render3_private_export.mjs +2 -2
  4. package/esm2022/src/debug/debug_node.mjs +5 -9
  5. package/esm2022/src/defer/cleanup.mjs +70 -0
  6. package/esm2022/src/defer/discovery.mjs +47 -0
  7. package/esm2022/src/defer/dom_triggers.mjs +256 -0
  8. package/esm2022/src/defer/idle_scheduler.mjs +109 -0
  9. package/esm2022/src/defer/instructions.mjs +641 -0
  10. package/esm2022/src/defer/interfaces.mjs +79 -0
  11. package/esm2022/src/defer/timer_scheduler.mjs +192 -0
  12. package/esm2022/src/defer/utils.mjs +134 -0
  13. package/esm2022/src/hydration/api.mjs +1 -2
  14. package/esm2022/src/hydration/utils.mjs +2 -2
  15. package/esm2022/src/render/api.mjs +1 -1
  16. package/esm2022/src/render3/after_render_hooks.mjs +31 -1
  17. package/esm2022/src/render3/index.mjs +3 -2
  18. package/esm2022/src/render3/instructions/all.mjs +2 -2
  19. package/esm2022/src/render3/instructions/control_flow.mjs +25 -15
  20. package/esm2022/src/render3/interfaces/container.mjs +1 -4
  21. package/esm2022/src/render3/interfaces/definition.mjs +2 -4
  22. package/esm2022/src/render3/interfaces/i18n.mjs +1 -4
  23. package/esm2022/src/render3/interfaces/injector.mjs +1 -4
  24. package/esm2022/src/render3/interfaces/node.mjs +1 -4
  25. package/esm2022/src/render3/interfaces/projection.mjs +2 -4
  26. package/esm2022/src/render3/interfaces/query.mjs +2 -4
  27. package/esm2022/src/render3/interfaces/renderer.mjs +2 -4
  28. package/esm2022/src/render3/interfaces/renderer_dom.mjs +2 -4
  29. package/esm2022/src/render3/interfaces/view.mjs +1 -4
  30. package/esm2022/src/render3/list_reconciliation.mjs +58 -34
  31. package/esm2022/src/render3/reactive_lview_consumer.mjs +2 -7
  32. package/esm2022/src/version.mjs +1 -1
  33. package/esm2022/testing/src/logger.mjs +3 -3
  34. package/fesm2022/core.mjs +777 -741
  35. package/fesm2022/core.mjs.map +1 -1
  36. package/fesm2022/primitives/signals.mjs +1 -1
  37. package/fesm2022/rxjs-interop.mjs +1 -1
  38. package/fesm2022/testing.mjs +1 -1
  39. package/index.d.ts +43 -6
  40. package/package.json +1 -1
  41. package/primitives/signals/index.d.ts +1 -1
  42. package/rxjs-interop/index.d.ts +1 -1
  43. package/schematics/migrations/block-template-entities/bundle.js +413 -247
  44. package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
  45. package/schematics/migrations/compiler-options/bundle.js +13 -13
  46. package/schematics/migrations/transfer-state/bundle.js +13 -13
  47. package/schematics/ng-generate/control-flow-migration/bundle.js +471 -259
  48. package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
  49. package/schematics/ng-generate/standalone-migration/bundle.js +659 -486
  50. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  51. package/testing/index.d.ts +1 -1
  52. package/esm2022/src/render3/instructions/defer.mjs +0 -1225
  53. package/esm2022/src/render3/instructions/defer_events.mjs +0 -174
  54. package/esm2022/src/render3/interfaces/defer.mjs +0 -79
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.8
2
+ * @license Angular v17.0.0-rc.0
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.0.0-next.8
2
+ * @license Angular v17.0.0-rc.0
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.0.0-next.8
2
+ * @license Angular v17.0.0-rc.0
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.0.0-next.8
2
+ * @license Angular v17.0.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -2340,10 +2340,6 @@ export declare class DebugElement extends DebugNode {
2340
2340
  };
2341
2341
  /**
2342
2342
  * The inline styles of the DOM element.
2343
- *
2344
- * Will be `null` if there is no `style` property on the underlying DOM element.
2345
- *
2346
- * @see [ElementCSSInlineStyle](https://developer.mozilla.org/en-US/docs/Web/API/ElementCSSInlineStyle/style)
2347
2343
  */
2348
2344
  get styles(): {
2349
2345
  [key: string]: string | null;
@@ -5139,6 +5135,18 @@ declare type InputTransformFunction_2 = any;
5139
5135
  */
5140
5136
  declare type InsertBeforeIndex = null | number | number[];
5141
5137
 
5138
+ /**
5139
+ * Options passed to `internalAfterNextRender`.
5140
+ */
5141
+ declare interface InternalAfterNextRenderOptions {
5142
+ /**
5143
+ * The `Injector` to use during creation.
5144
+ *
5145
+ * If this is not provided, the current injection context will be used instead (via `inject`).
5146
+ */
5147
+ injector?: Injector;
5148
+ }
5149
+
5142
5150
  declare interface InternalNgModuleRef<T> extends NgModuleRef<T> {
5143
5151
  _bootstrapComponents: Type<any>[];
5144
5152
  }
@@ -6344,6 +6352,7 @@ declare interface NgModuleScopeInfoFromDecorator {
6344
6352
  /**
6345
6353
  * A token for third-party components that can register themselves with NgProbe.
6346
6354
  *
6355
+ * @deprecated
6347
6356
  * @publicApi
6348
6357
  */
6349
6358
  export declare class NgProbeToken {
@@ -10609,6 +10618,17 @@ export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBy
10609
10618
 
10610
10619
  export declare function ɵallowSanitizationBypassAndThrow(value: any, type: ɵBypassType): boolean;
10611
10620
 
10621
+ /**
10622
+ * This enum is meant to be used by `ɵtype` properties of the different renderers implemented
10623
+ * by the framework
10624
+ *
10625
+ * We choose to not add `ɵtype` to `Renderer2` to no expose it to the public API.
10626
+ */
10627
+ export declare const enum ɵAnimationRendererType {
10628
+ Regular = 0,
10629
+ Delegated = 1
10630
+ }
10631
+
10612
10632
  /**
10613
10633
  * Annotates all components bootstrapped in a given ApplicationRef
10614
10634
  * with info needed for hydration.
@@ -11022,7 +11042,7 @@ export declare const ɵdefaultIterableDiffers: IterableDiffers;
11022
11042
  export declare const ɵdefaultKeyValueDiffers: KeyValueDiffers;
11023
11043
 
11024
11044
  /**
11025
- * Internal token used for configuring defer block behavior.
11045
+ * **INTERNAL**, token used for configuring defer block behavior.
11026
11046
  */
11027
11047
  export declare const ɵDEFER_BLOCK_CONFIG: InjectionToken<ɵDeferBlockConfig>;
11028
11048
 
@@ -11545,6 +11565,23 @@ export declare interface ɵInjectorProfilerContext {
11545
11565
  token: Type<unknown> | null;
11546
11566
  }
11547
11567
 
11568
+ /**
11569
+ * Register a callback to run once before any userspace `afterRender` or
11570
+ * `afterNextRender` callbacks.
11571
+ *
11572
+ * This function should almost always be used instead of `afterRender` or
11573
+ * `afterNextRender` for implementing framework functionality. Consider:
11574
+ *
11575
+ * 1.) `AfterRenderPhase.EarlyRead` is intended to be used for implementing
11576
+ * custom layout. If the framework itself mutates the DOM after *any*
11577
+ * `AfterRenderPhase.EarlyRead` callbacks are run, the phase can no
11578
+ * longer reliably serve its purpose.
11579
+ *
11580
+ * 2.) Importing `afterRender` in the framework can reduce the ability for it
11581
+ * to be tree-shaken, and the framework shouldn't need much of the behavior.
11582
+ */
11583
+ export declare function ɵinternalAfterNextRender(callback: VoidFunction, options?: InternalAfterNextRenderOptions): void;
11584
+
11548
11585
  /**
11549
11586
  * Internal create application API that implements the core application creation logic and optional
11550
11587
  * bootstrap logic.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "17.0.0-next.8",
3
+ "version": "17.0.0-rc.0",
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.0.0-next.8
2
+ * @license Angular v17.0.0-rc.0
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.0.0-next.8
2
+ * @license Angular v17.0.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */