@absolutejs/absolute 0.19.0-beta.412 → 0.19.0-beta.414

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.
@@ -9585,23 +9585,25 @@ class StreamSlotComponent {
9585
9585
  };
9586
9586
  currentHtml = signal("");
9587
9587
  ngOnInit() {
9588
- this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(this.fallbackHtml));
9589
- if (typeof window !== "undefined")
9588
+ if (typeof window === "undefined") {
9589
+ this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(this.fallbackHtml));
9590
+ registerStreamingSlot({
9591
+ errorHtml: this.errorHtml,
9592
+ fallbackHtml: this.fallbackHtml,
9593
+ id: this.id,
9594
+ resolve: this.resolve,
9595
+ timeoutMs: this.timeoutMs
9596
+ });
9590
9597
  return;
9591
- registerStreamingSlot({
9592
- errorHtml: this.errorHtml,
9593
- fallbackHtml: this.fallbackHtml,
9594
- id: this.id,
9595
- resolve: this.resolve,
9596
- timeoutMs: this.timeoutMs
9597
- });
9598
+ }
9599
+ const existingHtml = this.readSlotHtml();
9600
+ this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(existingHtml && existingHtml.length > 0 ? existingHtml : this.fallbackHtml));
9598
9601
  }
9599
9602
  ngAfterViewInit() {
9600
9603
  if (typeof window === "undefined")
9601
9604
  return;
9602
9605
  window.addEventListener(SLOT_PATCH_EVENT, this.patchListener);
9603
- const slotElement = this.hostElement.nativeElement.querySelector(`#slot-${this.id}`);
9604
- const existingHtml = slotElement?.innerHTML;
9606
+ const existingHtml = this.readSlotHtml();
9605
9607
  if (existingHtml && existingHtml !== this.fallbackHtml) {
9606
9608
  this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(existingHtml));
9607
9609
  this.cdr.markForCheck();
@@ -9612,6 +9614,10 @@ class StreamSlotComponent {
9612
9614
  return;
9613
9615
  window.removeEventListener(SLOT_PATCH_EVENT, this.patchListener);
9614
9616
  }
9617
+ readSlotHtml() {
9618
+ const slotElement = this.hostElement.nativeElement.querySelector(`#slot-${this.id}`);
9619
+ return slotElement?.innerHTML ?? "";
9620
+ }
9615
9621
  }
9616
9622
  __legacyDecorateClassTS([
9617
9623
  Input2(),
@@ -9639,6 +9645,9 @@ __legacyDecorateClassTS([
9639
9645
  ], StreamSlotComponent.prototype, "timeoutMs", undefined);
9640
9646
  StreamSlotComponent = __legacyDecorateClassTS([
9641
9647
  Component2({
9648
+ host: {
9649
+ ngSkipHydration: "true"
9650
+ },
9642
9651
  changeDetection: ChangeDetectionStrategy.OnPush,
9643
9652
  selector: "abs-stream-slot",
9644
9653
  standalone: true,
@@ -9847,5 +9856,5 @@ export {
9847
9856
  DeferSlotComponent
9848
9857
  };
9849
9858
 
9850
- //# debugId=C044773DF109DE1064756E2164756E21
9859
+ //# debugId=C2AC8DF32DE23EC564756E2164756E21
9851
9860
  //# sourceMappingURL=browser.js.map