@angular/core 18.1.0-next.0 → 18.1.0-next.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.
Files changed (48) hide show
  1. package/esm2022/primitives/event-dispatch/index.mjs +2 -1
  2. package/esm2022/primitives/event-dispatch/src/dispatcher.mjs +4 -3
  3. package/esm2022/primitives/event-dispatch/src/event_dispatcher.mjs +4 -6
  4. package/esm2022/primitives/event-dispatch/src/event_type.mjs +2 -2
  5. package/esm2022/primitives/signals/src/graph.mjs +6 -5
  6. package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +2 -4
  7. package/esm2022/src/core.mjs +1 -1
  8. package/esm2022/src/core_private_export.mjs +2 -2
  9. package/esm2022/src/event_delegation_utils.mjs +68 -0
  10. package/esm2022/src/event_emitter.mjs +20 -11
  11. package/esm2022/src/hydration/annotate.mjs +18 -7
  12. package/esm2022/src/hydration/api.mjs +2 -2
  13. package/esm2022/src/hydration/event_replay.mjs +46 -69
  14. package/esm2022/src/hydration/tokens.mjs +6 -1
  15. package/esm2022/src/pending_tasks.mjs +15 -20
  16. package/esm2022/src/render3/after_render_hooks.mjs +67 -132
  17. package/esm2022/src/render3/component_ref.mjs +1 -1
  18. package/esm2022/src/render3/instructions/change_detection.mjs +27 -24
  19. package/esm2022/src/render3/instructions/listener.mjs +5 -5
  20. package/esm2022/src/render3/instructions/shared.mjs +3 -3
  21. package/esm2022/src/render3/reactive_lview_consumer.mjs +56 -3
  22. package/esm2022/src/version.mjs +1 -1
  23. package/esm2022/testing/src/logger.mjs +3 -3
  24. package/fesm2022/core.mjs +474 -432
  25. package/fesm2022/core.mjs.map +1 -1
  26. package/fesm2022/primitives/event-dispatch.mjs +9 -10
  27. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  28. package/fesm2022/primitives/signals.mjs +6 -5
  29. package/fesm2022/primitives/signals.mjs.map +1 -1
  30. package/fesm2022/rxjs-interop.mjs +1 -1
  31. package/fesm2022/testing.mjs +1 -1
  32. package/index.d.ts +218 -28
  33. package/package.json +2 -2
  34. package/primitives/event-dispatch/index.d.ts +66 -1
  35. package/primitives/signals/index.d.ts +1 -1
  36. package/rxjs-interop/index.d.ts +1 -1
  37. package/schematics/migrations/after-render-phase/bundle.js +602 -0
  38. package/schematics/migrations/after-render-phase/bundle.js.map +7 -0
  39. package/schematics/migrations/http-providers/bundle.js +10 -2
  40. package/schematics/migrations/http-providers/bundle.js.map +2 -2
  41. package/schematics/migrations/invalid-two-way-bindings/bundle.js +177 -8
  42. package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +3 -3
  43. package/schematics/migrations.json +5 -0
  44. package/schematics/ng-generate/control-flow-migration/bundle.js +192 -16
  45. package/schematics/ng-generate/control-flow-migration/bundle.js.map +3 -3
  46. package/schematics/ng-generate/standalone-migration/bundle.js +9197 -9490
  47. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  48. package/testing/index.d.ts +1 -1
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "18.1.0-next.0",
3
+ "version": "18.1.0-next.2",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
7
7
  "engines": {
8
- "node": "^18.13.0 || >=20.9.0"
8
+ "node": "^18.19.1 || ^20.11.1 || >=22.0.0"
9
9
  },
10
10
  "exports": {
11
11
  "./schematics/*": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.1.0-next.0
2
+ * @license Angular v18.1.0-next.2
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -24,6 +24,15 @@ declare interface ActionInfo {
24
24
 
25
25
  declare type ActionInfoInternal = [name: string, element: Element];
26
26
 
27
+ export declare const Attribute: {
28
+ JSACTION: string;
29
+ OI: string;
30
+ VED: string;
31
+ VET: string;
32
+ JSINSTANCE: string;
33
+ JSTRACK: string;
34
+ };
35
+
27
36
  /**
28
37
  * Provides a factory function for bootstrapping an event contract on a
29
38
  * specified object (by default, exposed on the `window`).
@@ -436,6 +445,48 @@ export declare const isCaptureEvent: (eventType: string) => boolean;
436
445
  */
437
446
  export declare const isSupportedEvent: (eventType: string) => boolean;
438
447
 
448
+ /**
449
+ * The jsaction attribute defines a mapping of a DOM event to a
450
+ * generic event (aka jsaction), to which the actual event handlers
451
+ * that implement the behavior of the application are bound. The
452
+ * value is a semicolon separated list of colon separated pairs of
453
+ * an optional DOM event name and a jsaction name. If the optional
454
+ * DOM event name is omitted, 'click' is assumed. The jsaction names
455
+ * are dot separated pairs of a namespace and a simple jsaction
456
+ * name.
457
+ *
458
+ * See grammar in README.md for expected syntax in the attribute value.
459
+ */
460
+ export declare const JSACTION = "jsaction";
461
+
462
+ /**
463
+ * Support for iteration on reprocessing.
464
+ *
465
+ * Used by ActionFlow.
466
+ */
467
+ export declare const JSINSTANCE = "jsinstance";
468
+
469
+ /**
470
+ * All click jsactions that happen on the element that carries this
471
+ * attribute or its descendants are automatically logged.
472
+ * Impressions of jsactions on these elements are tracked too, if
473
+ * requested by the impression() method of ActionFlow.
474
+ *
475
+ * Used by ActionFlow.
476
+ */
477
+ export declare const JSTRACK = "jstrack";
478
+
479
+ /**
480
+ * The oi attribute is a log impression tag for impression logging
481
+ * and action tracking. For an element that carries a jsaction
482
+ * attribute, the element is identified for the purpose of
483
+ * impression logging and click tracking by the dot separated path
484
+ * of all oi attributes in the chain of ancestors of the element.
485
+ *
486
+ * Used by ActionFlow.
487
+ */
488
+ export declare const OI = "oi";
489
+
439
490
  /**
440
491
  * Sets the `action` to `clickonly` for a click event that is not an a11y click
441
492
  * and if there is not already a click action.
@@ -508,4 +559,18 @@ declare function unsetAction(eventInfo: EventInfo): void;
508
559
  */
509
560
  declare function updateEventInfoForA11yClick(eventInfo: eventInfoLib.EventInfo): void;
510
561
 
562
+ /**
563
+ * The ved attribute is an encoded ClickTrackingCGI proto to track
564
+ * visual elements.
565
+ *
566
+ * Used by ActionFlow.
567
+ */
568
+ export declare const VED = "ved";
569
+
570
+ /**
571
+ * The vet attribute is the visual element type used to identify tracked
572
+ * visual elements.
573
+ */
574
+ export declare const VET = "vet";
575
+
511
576
  export { }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.1.0-next.0
2
+ * @license Angular v18.1.0-next.2
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 v18.1.0-next.0
2
+ * @license Angular v18.1.0-next.2
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */