| 21 | imports: [PreviewError], |
| 22 | }) |
| 23 | export class Preview { |
| 24 | private readonly domSanitizer = inject(DomSanitizer); |
| 25 | private readonly nodeRuntimeSandbox = inject(NodeRuntimeSandbox); |
| 26 | private readonly nodeRuntimeState = inject(NodeRuntimeState); |
| 27 | |
| 28 | loadingProgressValue = this.nodeRuntimeState.loadingStep; |
| 29 | protected loadingEnum = LoadingStep; |
| 30 | |
| 31 | readonly previewUrl = toSignal(this.nodeRuntimeSandbox.previewUrl$, {initialValue: null}); |
| 32 | protected readonly previewUrlForIFrame = computed(() => { |
| 33 | const url = this.previewUrl(); |
| 34 | return url !== null ? this.domSanitizer.bypassSecurityTrustResourceUrl(url) : null; |
| 35 | }); |
| 36 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…