@absolutejs/absolute 0.19.0-beta.328 → 0.19.0-beta.329

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.
@@ -38356,7 +38356,11 @@ var initializeIslandMarkupSnapshot = () => {
38356
38356
  element2.dataset.props ?? "{}"
38357
38357
  ].join("::");
38358
38358
  const existing = snapshotMap.get(signature) ?? [];
38359
- existing.push(element2.innerHTML);
38359
+ const attributes = Object.fromEntries(element2.getAttributeNames().map((name) => [name, element2.getAttribute(name) ?? ""]));
38360
+ existing.push({
38361
+ attributes,
38362
+ innerHTML: element2.innerHTML
38363
+ });
38360
38364
  snapshotMap.set(signature, existing);
38361
38365
  }
38362
38366
  };
@@ -38378,15 +38382,13 @@ var preserveIslandMarkup = (props) => {
38378
38382
  claimMap.set(signature, claimedCount + 1);
38379
38383
  }
38380
38384
  return {
38381
- attributes: getIslandMarkerAttributes(props),
38382
- innerHTML: snapshotCandidate ?? candidate?.innerHTML ?? ""
38385
+ attributes: snapshotCandidate?.attributes ?? getIslandMarkerAttributes(props),
38386
+ innerHTML: snapshotCandidate?.innerHTML ?? candidate?.innerHTML ?? ""
38383
38387
  };
38384
38388
  };
38385
38389
 
38386
38390
  // src/angular/Island.browser.ts
38387
38391
  init_islandMarkupAttributes();
38388
- var toAttributeString = (props) => serializeIslandAttributes(getIslandMarkerAttributes(props));
38389
-
38390
38392
  class IslandComponent {
38391
38393
  constructor() {
38392
38394
  this.component = "";
@@ -38403,8 +38405,8 @@ class IslandComponent {
38403
38405
  hydrate: this.hydrate,
38404
38406
  props: this.props
38405
38407
  };
38406
- const { innerHTML } = preserveIslandMarkup(runtimeProps);
38407
- this.markup = this.sanitizer.bypassSecurityTrustHtml(`<div ${toAttributeString(runtimeProps)}>${innerHTML}</div>`);
38408
+ const { attributes, innerHTML } = preserveIslandMarkup(runtimeProps);
38409
+ this.markup = this.sanitizer.bypassSecurityTrustHtml(`<div ${serializeIslandAttributes(attributes)}>${innerHTML}</div>`);
38408
38410
  }
38409
38411
  }
38410
38412
  __legacyDecorateClassTS([
@@ -38554,5 +38556,5 @@ export {
38554
38556
  Island
38555
38557
  };
38556
38558
 
38557
- //# debugId=BDD2A8F49709FCFA64756E2164756E21
38559
+ //# debugId=EE06E1390168803264756E2164756E21
38558
38560
  //# sourceMappingURL=browser.js.map