@absolutejs/absolute 0.19.0-beta.750 → 0.19.0-beta.752

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.
@@ -14362,7 +14362,10 @@ var handleAngularPageRequest = async (input) => {
14362
14362
  // src/angular/page.ts
14363
14363
  var defineAngularPage = (definition) => definition;
14364
14364
  // src/angular/preserveAcrossHmr.ts
14365
+ import { ChangeDetectorRef, inject } from "@angular/core";
14365
14366
  var isDev2 = () => {
14367
+ if (typeof window === "undefined")
14368
+ return false;
14366
14369
  const scope = globalThis;
14367
14370
  return Boolean(scope.__DEV__) || Boolean(scope.ngDevMode);
14368
14371
  };
@@ -14382,6 +14385,13 @@ var getRebootFlag = () => {
14382
14385
  const scope = globalThis;
14383
14386
  return scope.__ABS_HMR_REBOOT_IN_PROGRESS__ ??= { value: false };
14384
14387
  };
14388
+ var getRebootStats = () => {
14389
+ const scope = globalThis;
14390
+ return scope.__ABS_HMR_REBOOT_STATS__ ??= {
14391
+ captured: 0,
14392
+ restoredKeys: new Set
14393
+ };
14394
+ };
14385
14395
  var buildCacheKey = (instance, key) => {
14386
14396
  const className = instance.constructor?.name;
14387
14397
  if (!className || className === "Object")
@@ -14399,6 +14409,12 @@ var restoreFromCache = (instance, key) => {
14399
14409
  instance[prop] = value;
14400
14410
  } catch {}
14401
14411
  }
14412
+ getRebootStats().restoredKeys.add(key);
14413
+ try {
14414
+ const cdr = inject(ChangeDetectorRef, { optional: true });
14415
+ if (cdr)
14416
+ queueMicrotask(() => cdr.markForCheck());
14417
+ } catch {}
14402
14418
  };
14403
14419
  var preserveAcrossHmr = (instance, key) => {
14404
14420
  if (!isDev2())
@@ -14413,9 +14429,9 @@ var preserveAcrossHmr = (instance, key) => {
14413
14429
  }
14414
14430
  };
14415
14431
  // src/angular/pendingTask.ts
14416
- import { inject, PendingTasks } from "@angular/core";
14432
+ import { inject as inject2, PendingTasks } from "@angular/core";
14417
14433
  var withPendingTask = async (work) => {
14418
- const removeTask = inject(PendingTasks).add();
14434
+ const removeTask = inject2(PendingTasks).add();
14419
14435
  try {
14420
14436
  return await work();
14421
14437
  } finally {
@@ -14616,11 +14632,11 @@ var renderIsland = (props) => renderIslandMarkup(requireCurrentIslandRegistry(),
14616
14632
  // src/angular/components/stream-slot.component.ts
14617
14633
  import {
14618
14634
  ChangeDetectionStrategy,
14619
- ChangeDetectorRef,
14635
+ ChangeDetectorRef as ChangeDetectorRef2,
14620
14636
  Component as Component2,
14621
14637
  Input as Input2,
14622
14638
  NgZone,
14623
- inject as inject2,
14639
+ inject as inject3,
14624
14640
  signal
14625
14641
  } from "@angular/core";
14626
14642
  import { DomSanitizer } from "@angular/platform-browser";
@@ -14637,9 +14653,9 @@ class StreamSlotComponent {
14637
14653
  constructor() {
14638
14654
  this.fallbackHtml = "";
14639
14655
  }
14640
- cdr = inject2(ChangeDetectorRef);
14641
- sanitizer = inject2(DomSanitizer);
14642
- zone = inject2(NgZone);
14656
+ cdr = inject3(ChangeDetectorRef2);
14657
+ sanitizer = inject3(DomSanitizer);
14658
+ zone = inject3(NgZone);
14643
14659
  slotConsumer = (payload) => {
14644
14660
  this.zone.run(() => {
14645
14661
  this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(resolvePayloadHtml(payload)));
@@ -14747,5 +14763,5 @@ export {
14747
14763
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
14748
14764
  };
14749
14765
 
14750
- //# debugId=ADBF5B233B29BFC764756E2164756E21
14766
+ //# debugId=0D36D7E5DFF7439D64756E2164756E21
14751
14767
  //# sourceMappingURL=index.js.map