@siemens/live-preview 49.0.0 → 49.2.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/angular.json +63 -0
- package/assets/angular/package.json +47 -0
- package/assets/angular/src/app/app.component.ts +15 -0
- package/assets/angular/src/app/example.component.ts +12 -0
- package/assets/angular/src/index.html +12 -0
- package/assets/angular/src/main.ts +39 -0
- package/assets/angular/src/styles.scss +16 -0
- package/assets/angular/tsconfig.app.json +10 -0
- package/assets/angular/tsconfig.json +31 -0
- package/fesm2022/siemens-live-preview.mjs +232 -6
- package/fesm2022/siemens-live-preview.mjs.map +1 -1
- package/package.json +5 -4
- package/types/siemens-live-preview.d.ts +56 -1
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.2.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@stackblitz/sdk": "^1.11.0",
|
|
21
22
|
"codeflask": "^1.4.1",
|
|
22
23
|
"qrcode-generator": "^2.0.0",
|
|
23
|
-
"glob": "13.0.
|
|
24
|
+
"glob": "13.0.6",
|
|
24
25
|
"tslib": "^2.3.0"
|
|
25
26
|
},
|
|
26
27
|
"peerDependencies": {
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"react-dom": "18 || 19",
|
|
31
32
|
"vue": "3",
|
|
32
33
|
"vue3-sfc-loader": "0.9.5",
|
|
33
|
-
"@babel/standalone": "7.29.
|
|
34
|
+
"@babel/standalone": "7.29.2"
|
|
34
35
|
},
|
|
35
36
|
"peerDependenciesMeta": {
|
|
36
37
|
"react": {
|
|
@@ -71,4 +72,4 @@
|
|
|
71
72
|
"module": "fesm2022/siemens-live-preview.mjs",
|
|
72
73
|
"typings": "types/siemens-live-preview.d.ts",
|
|
73
74
|
"sideEffects": false
|
|
74
|
-
}
|
|
75
|
+
}
|
|
@@ -102,6 +102,7 @@ declare class SiLivePreviewRendererComponent implements OnChanges, OnDestroy {
|
|
|
102
102
|
private cloneComponentWithoutIvyStuff;
|
|
103
103
|
private updateDynamicTemplate;
|
|
104
104
|
private getAnnotation;
|
|
105
|
+
private getAnnotationInAot;
|
|
105
106
|
private createAbstractComponentClass;
|
|
106
107
|
private createComponentClass;
|
|
107
108
|
private createModule;
|
|
@@ -403,6 +404,60 @@ declare class SiLivePreviewQrComponent implements AfterViewInit, OnDestroy, OnCh
|
|
|
403
404
|
static ɵcmp: i0.ɵɵComponentDeclaration<SiLivePreviewQrComponent, "si-live-preview-qr", never, { "url": { "alias": "url"; "required": false; }; "urlShort": { "alias": "urlShort"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
404
405
|
}
|
|
405
406
|
|
|
407
|
+
/**
|
|
408
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
409
|
+
* SPDX-License-Identifier: MIT
|
|
410
|
+
*/
|
|
411
|
+
type FilePaths = string[];
|
|
412
|
+
type Files = Record<string, string>;
|
|
413
|
+
interface Project {
|
|
414
|
+
/** The frontend framework / template name. */
|
|
415
|
+
name: string;
|
|
416
|
+
/** The files to include in the Stackblitz project. */
|
|
417
|
+
files: Files;
|
|
418
|
+
}
|
|
419
|
+
interface AssetProject extends Omit<Project, 'files'> {
|
|
420
|
+
/** Base URL to load the project files from the application assets folder. */
|
|
421
|
+
assetUrl: string;
|
|
422
|
+
/** Array of file paths retrieved from the application asset folder. */
|
|
423
|
+
files: FilePaths;
|
|
424
|
+
}
|
|
425
|
+
type ProjectTemplates = (AssetProject | Project)[];
|
|
426
|
+
interface StackblitzConfig {
|
|
427
|
+
/**
|
|
428
|
+
* Project templates for Stackblitz
|
|
429
|
+
* Optional set of files and dependencies for to build a Stackblitz project.
|
|
430
|
+
* The key is the template name e.g. angular.
|
|
431
|
+
*/
|
|
432
|
+
templates: ProjectTemplates;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
437
|
+
* SPDX-License-Identifier: MIT
|
|
438
|
+
*/
|
|
439
|
+
|
|
440
|
+
/** Injection token to configure the open in Stackblitz button. */
|
|
441
|
+
declare const SI_STACKBLITZ_CONFIG: InjectionToken<StackblitzConfig>;
|
|
442
|
+
/** Provides the Stackblitz configuration with default template projects. */
|
|
443
|
+
declare const provideStackblitzConfig: (config?: StackblitzConfig) => Provider;
|
|
444
|
+
/**
|
|
445
|
+
* Create default Angular template project config.
|
|
446
|
+
* The files are loaded from the assets folder, consumers need to add the following asset configuration
|
|
447
|
+
* to their angular.json file:
|
|
448
|
+
*
|
|
449
|
+
* ```json
|
|
450
|
+
* "assets": [
|
|
451
|
+
* ...
|
|
452
|
+
* {
|
|
453
|
+
* "glob": "**\/*",
|
|
454
|
+
* "input": "projects/live-preview/assets/",
|
|
455
|
+
* "output": "/assets/"
|
|
456
|
+
* }]
|
|
457
|
+
* ```
|
|
458
|
+
*/
|
|
459
|
+
declare const angularTemplateProject: () => AssetProject;
|
|
460
|
+
|
|
406
461
|
/**
|
|
407
462
|
* Copyright (c) Siemens 2016 - 2026
|
|
408
463
|
* SPDX-License-Identifier: MIT
|
|
@@ -474,5 +529,5 @@ declare class SiLivePreviewModule {
|
|
|
474
529
|
static ɵinj: i0.ɵɵInjectorDeclaration<SiLivePreviewModule>;
|
|
475
530
|
}
|
|
476
531
|
|
|
477
|
-
export { DummyAppSampleComponent, LOG_EVENT, LandscapeSupportService, SI_LIVE_PREVIEW_CONFIG, SI_LIVE_PREVIEW_EXAMPLE_ROUTES, SI_LIVE_PREVIEW_INTERNALS, SiDummyComponent, SiExampleOverviewComponent, SiExampleViewerComponent, SiLivePreviewComponent, SiLivePreviewIframeComponent, SiLivePreviewLocaleApi, SiLivePreviewModule, SiLivePreviewQrComponent, SiLivePreviewRendererComponent, SiLivePreviewRoutingModule, SiLivePreviewThemeApi, SiLivePreviewWebComponentService, SiLivePreviewWrapperComponent, SiLivePreviewModule as SimplLivePreviewModule, SiLivePreviewRoutingModule as SimplLivePreviewRoutingModule, livePreviewRoutes, provideExampleRoutes };
|
|
532
|
+
export { DummyAppSampleComponent, LOG_EVENT, LandscapeSupportService, SI_LIVE_PREVIEW_CONFIG, SI_LIVE_PREVIEW_EXAMPLE_ROUTES, SI_LIVE_PREVIEW_INTERNALS, SI_STACKBLITZ_CONFIG, SiDummyComponent, SiExampleOverviewComponent, SiExampleViewerComponent, SiLivePreviewComponent, SiLivePreviewIframeComponent, SiLivePreviewLocaleApi, SiLivePreviewModule, SiLivePreviewQrComponent, SiLivePreviewRendererComponent, SiLivePreviewRoutingModule, SiLivePreviewThemeApi, SiLivePreviewWebComponentService, SiLivePreviewWrapperComponent, SiLivePreviewModule as SimplLivePreviewModule, SiLivePreviewRoutingModule as SimplLivePreviewRoutingModule, angularTemplateProject, livePreviewRoutes, provideExampleRoutes, provideStackblitzConfig };
|
|
478
533
|
export type { SiLivePreviewConfig, SiLivePreviewInternals, ThemeType };
|