@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/assets/angular/package.json +8 -8
- package/assets/angular/src/app/app.component.ts +3 -2
- package/fesm2022/siemens-live-preview-webcomponents.mjs +4 -3
- package/fesm2022/siemens-live-preview-webcomponents.mjs.map +1 -1
- package/fesm2022/siemens-live-preview.mjs +56 -18
- package/fesm2022/siemens-live-preview.mjs.map +1 -1
- package/package.json +4 -4
- package/types/siemens-live-preview.d.ts +17 -0
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.
|
|
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": "
|
|
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;
|