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

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.
@@ -9366,7 +9366,10 @@ var provideDeterministicEnv = (options = {}) => {
9366
9366
  // src/angular/page.ts
9367
9367
  var defineAngularPage = (definition) => definition;
9368
9368
  // src/angular/preserveAcrossHmr.ts
9369
+ import { ChangeDetectorRef, inject } from "@angular/core";
9369
9370
  var isDev = () => {
9371
+ if (typeof window === "undefined")
9372
+ return false;
9370
9373
  const scope = globalThis;
9371
9374
  return Boolean(scope.__DEV__) || Boolean(scope.ngDevMode);
9372
9375
  };
@@ -9386,6 +9389,13 @@ var getRebootFlag = () => {
9386
9389
  const scope = globalThis;
9387
9390
  return scope.__ABS_HMR_REBOOT_IN_PROGRESS__ ??= { value: false };
9388
9391
  };
9392
+ var getRebootStats = () => {
9393
+ const scope = globalThis;
9394
+ return scope.__ABS_HMR_REBOOT_STATS__ ??= {
9395
+ captured: 0,
9396
+ restoredKeys: new Set
9397
+ };
9398
+ };
9389
9399
  var buildCacheKey = (instance, key) => {
9390
9400
  const className = instance.constructor?.name;
9391
9401
  if (!className || className === "Object")
@@ -9403,6 +9413,12 @@ var restoreFromCache = (instance, key) => {
9403
9413
  instance[prop] = value;
9404
9414
  } catch {}
9405
9415
  }
9416
+ getRebootStats().restoredKeys.add(key);
9417
+ try {
9418
+ const cdr = inject(ChangeDetectorRef, { optional: true });
9419
+ if (cdr)
9420
+ queueMicrotask(() => cdr.markForCheck());
9421
+ } catch {}
9406
9422
  };
9407
9423
  var preserveAcrossHmr = (instance, key) => {
9408
9424
  if (!isDev())
@@ -9569,9 +9585,9 @@ Island = __legacyDecorateClassTS([
9569
9585
  })
9570
9586
  ], Island);
9571
9587
  // src/angular/pendingTask.ts
9572
- import { inject, PendingTasks } from "@angular/core";
9588
+ import { inject as inject2, PendingTasks } from "@angular/core";
9573
9589
  var withPendingTask = async (work) => {
9574
- const removeTask = inject(PendingTasks).add();
9590
+ const removeTask = inject2(PendingTasks).add();
9575
9591
  try {
9576
9592
  return await work();
9577
9593
  } finally {
@@ -9726,11 +9742,11 @@ var IslandStore = IslandStoreImpl;
9726
9742
  // src/angular/components/defer-slot.component.ts
9727
9743
  import {
9728
9744
  ChangeDetectionStrategy,
9729
- ChangeDetectorRef,
9745
+ ChangeDetectorRef as ChangeDetectorRef2,
9730
9746
  Component as Component2,
9731
9747
  ContentChild,
9732
9748
  Input as Input2,
9733
- inject as inject3,
9749
+ inject as inject4,
9734
9750
  signal
9735
9751
  } from "@angular/core";
9736
9752
  import { NgTemplateOutlet } from "@angular/common";
@@ -9744,9 +9760,9 @@ var isAngularDeferSlotPayload = (value) => {
9744
9760
  };
9745
9761
 
9746
9762
  // src/angular/components/defer-slot-templates.directive.ts
9747
- import { Directive, TemplateRef, inject as inject2 } from "@angular/core";
9763
+ import { Directive, TemplateRef, inject as inject3 } from "@angular/core";
9748
9764
  class DeferErrorTemplateDirective {
9749
- templateRef = inject2(TemplateRef);
9765
+ templateRef = inject3(TemplateRef);
9750
9766
  }
9751
9767
  DeferErrorTemplateDirective = __legacyDecorateClassTS([
9752
9768
  Directive({
@@ -9756,7 +9772,7 @@ DeferErrorTemplateDirective = __legacyDecorateClassTS([
9756
9772
  ], DeferErrorTemplateDirective);
9757
9773
 
9758
9774
  class DeferFallbackTemplateDirective {
9759
- templateRef = inject2(TemplateRef);
9775
+ templateRef = inject3(TemplateRef);
9760
9776
  }
9761
9777
  DeferFallbackTemplateDirective = __legacyDecorateClassTS([
9762
9778
  Directive({
@@ -9766,7 +9782,7 @@ DeferFallbackTemplateDirective = __legacyDecorateClassTS([
9766
9782
  ], DeferFallbackTemplateDirective);
9767
9783
 
9768
9784
  class DeferResolvedTemplateDirective {
9769
- templateRef = inject2(TemplateRef);
9785
+ templateRef = inject3(TemplateRef);
9770
9786
  }
9771
9787
  DeferResolvedTemplateDirective = __legacyDecorateClassTS([
9772
9788
  Directive({
@@ -9780,7 +9796,7 @@ class DeferSlotComponent {
9780
9796
  constructor() {
9781
9797
  this.id = "";
9782
9798
  }
9783
- cdr = inject3(ChangeDetectorRef);
9799
+ cdr = inject4(ChangeDetectorRef2);
9784
9800
  runtimeReady = signal(false);
9785
9801
  serverSlotRegistered = false;
9786
9802
  slotData = signal({});
@@ -10060,11 +10076,11 @@ ImageComponent = __legacyDecorateClassTS([
10060
10076
  // src/angular/components/stream-slot.component.ts
10061
10077
  import {
10062
10078
  ChangeDetectionStrategy as ChangeDetectionStrategy2,
10063
- ChangeDetectorRef as ChangeDetectorRef2,
10079
+ ChangeDetectorRef as ChangeDetectorRef3,
10064
10080
  Component as Component4,
10065
10081
  Input as Input3,
10066
10082
  NgZone,
10067
- inject as inject4,
10083
+ inject as inject5,
10068
10084
  signal as signal3
10069
10085
  } from "@angular/core";
10070
10086
  import { DomSanitizer } from "@angular/platform-browser";
@@ -10081,9 +10097,9 @@ class StreamSlotComponent {
10081
10097
  constructor() {
10082
10098
  this.fallbackHtml = "";
10083
10099
  }
10084
- cdr = inject4(ChangeDetectorRef2);
10085
- sanitizer = inject4(DomSanitizer);
10086
- zone = inject4(NgZone);
10100
+ cdr = inject5(ChangeDetectorRef3);
10101
+ sanitizer = inject5(DomSanitizer);
10102
+ zone = inject5(NgZone);
10087
10103
  slotConsumer = (payload) => {
10088
10104
  this.zone.run(() => {
10089
10105
  this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(resolvePayloadHtml(payload)));
@@ -10199,5 +10215,5 @@ export {
10199
10215
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
10200
10216
  };
10201
10217
 
10202
- //# debugId=3A87E310D66CF71064756E2164756E21
10218
+ //# debugId=DFF35B5D805657E164756E2164756E21
10203
10219
  //# sourceMappingURL=browser.js.map