@siemens/live-preview 49.11.0 → 49.13.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@siemens/live-preview",
3
3
  "description": "Element live preview for web",
4
- "version": "49.11.0",
4
+ "version": "49.13.0",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {
@@ -26,13 +26,13 @@
26
26
  "tslib": "^2.3.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@angular/common": "21",
30
- "@angular/core": "21",
29
+ "@angular/common": "21 - 22",
30
+ "@angular/core": "21 - 22",
31
31
  "react": "18 || 19",
32
32
  "react-dom": "18 || 19",
33
33
  "vue": "3",
34
34
  "vue3-sfc-loader": "0.9.5",
35
- "@babel/standalone": "7.29.7"
35
+ "@babel/standalone": "8.0.2"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "react": {
@@ -101,6 +101,23 @@ declare class SiLivePreviewRendererComponent implements OnChanges, OnDestroy {
101
101
  private stringifyLog;
102
102
  private cloneComponentWithoutIvyStuff;
103
103
  private updateDynamicTemplate;
104
+ /**
105
+ * When the host application is built with AOT, the Angular compiler tree-shakes the
106
+ * `ɵɵsetNgModuleScope` calls (because `ngJitMode` is `false`). As a result, NgModules that are
107
+ * compiled from source expose no `imports`/`exports` scope on their `ɵmod` at runtime.
108
+ *
109
+ * Re-compiling the edited example via JIT (`compileComponent`) therefore cannot resolve the
110
+ * directives and pipes that are exported through such an imported NgModule. A common symptom is
111
+ * a missing value accessor for a form control component used with `ngModel`, which throws
112
+ * `NG01203`.
113
+ *
114
+ * The originally (AOT-)compiled component already carries the fully resolved scope in its
115
+ * component definition. Reusing its directive and pipe defs on the recompiled component restores
116
+ * the complete scope without depending on runtime NgModule metadata.
117
+ */
118
+ private reuseResolvedScopeOfOriginalComponent;
119
+ /** Merges two (possibly lazy) Ivy def lists into a single deduplicated factory. */
120
+ private mergeDefs;
104
121
  private getAnnotation;
105
122
  private getAnnotationInAot;
106
123
  private createAbstractComponentClass;