@absolutejs/absolute 0.19.0-beta.290 → 0.19.0-beta.292

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.
@@ -30687,8 +30687,9 @@ var ssrDirty = false, lastSelector = "angular-page", isRecord4 = (value) => type
30687
30687
  const sanitizer = getSsrSanitizer(deps);
30688
30688
  const providers = buildProviders(deps, sanitizer, maybeProps, tokenMap);
30689
30689
  const rawHtml = await renderAngularApp(deps, PageComponent, providers, htmlString);
30690
- const htmlWithLoweredIslands = hasIslands ? await lowerAngularServerIslands(rawHtml) : rawHtml;
30691
- const html = injectIslandPageContext(injectSsrScripts(htmlWithLoweredIslands, requestId, indexPath, maybeProps), { hasIslands });
30690
+ const shouldProcessIslands = hasIslands || rawHtml.includes("<absolute-island");
30691
+ const htmlWithLoweredIslands = shouldProcessIslands ? await lowerAngularServerIslands(rawHtml) : rawHtml;
30692
+ const html = injectIslandPageContext(injectSsrScripts(htmlWithLoweredIslands, requestId, indexPath, maybeProps), { hasIslands: shouldProcessIslands });
30692
30693
  return new Response(html, {
30693
30694
  headers: { "Content-Type": "text/html" }
30694
30695
  });
@@ -39665,16 +39666,7 @@ init_ssrRender();
39665
39666
 
39666
39667
  // src/angular/Island.ts
39667
39668
  init_compiler();
39668
- init_renderIslandMarkup();
39669
- import {
39670
- Component as Component3,
39671
- HostBinding,
39672
- inject,
39673
- Input
39674
- } from "@angular/core";
39675
- import {
39676
- DomSanitizer
39677
- } from "@angular/platform-browser";
39669
+ import { Component as Component3, HostBinding, Input } from "@angular/core";
39678
39670
  class IslandComponent {
39679
39671
  constructor() {
39680
39672
  this.component = "";
@@ -39682,20 +39674,9 @@ class IslandComponent {
39682
39674
  this.hydrate = "load";
39683
39675
  this.props = {};
39684
39676
  }
39685
- sanitizer = inject(DomSanitizer);
39686
- markup = "";
39687
39677
  get serializedProps() {
39688
39678
  return JSON.stringify(this.props);
39689
39679
  }
39690
- async ngOnChanges() {
39691
- const html = await renderIslandMarkup(requireCurrentIslandRegistry(), {
39692
- component: this.component,
39693
- framework: this.framework,
39694
- hydrate: this.hydrate,
39695
- props: this.props
39696
- });
39697
- this.markup = this.sanitizer.bypassSecurityTrustHtml(html);
39698
- }
39699
39680
  }
39700
39681
  __legacyDecorateClassTS([
39701
39682
  Input(),
@@ -39722,7 +39703,7 @@ IslandComponent = __legacyDecorateClassTS([
39722
39703
  Component3({
39723
39704
  selector: "absolute-island",
39724
39705
  standalone: true,
39725
- template: '<div [innerHTML]="markup"></div>'
39706
+ template: "<div></div>"
39726
39707
  })
39727
39708
  ], IslandComponent);
39728
39709
  var Island = IslandComponent;
@@ -39841,5 +39822,5 @@ export {
39841
39822
  Island
39842
39823
  };
39843
39824
 
39844
- //# debugId=E2803F6E6300980064756E2164756E21
39825
+ //# debugId=984C48D74E2AEAC364756E2164756E21
39845
39826
  //# sourceMappingURL=index.js.map