@siemens/live-preview 49.1.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/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.1.0",
4
+ "version": "49.2.0",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {
@@ -18,6 +18,7 @@
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
24
  "glob": "13.0.6",
@@ -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.1"
34
+ "@babel/standalone": "7.29.2"
34
35
  },
35
36
  "peerDependenciesMeta": {
36
37
  "react": {
@@ -404,6 +404,60 @@ declare class SiLivePreviewQrComponent implements AfterViewInit, OnDestroy, OnCh
404
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>;
405
405
  }
406
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
+
407
461
  /**
408
462
  * Copyright (c) Siemens 2016 - 2026
409
463
  * SPDX-License-Identifier: MIT
@@ -475,5 +529,5 @@ declare class SiLivePreviewModule {
475
529
  static ɵinj: i0.ɵɵInjectorDeclaration<SiLivePreviewModule>;
476
530
  }
477
531
 
478
- 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 };
479
533
  export type { SiLivePreviewConfig, SiLivePreviewInternals, ThemeType };