@absolutejs/absolute 0.19.0-beta.710 → 0.19.0-beta.711

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.
@@ -40,8 +40,9 @@ export class DeferSlotComponent {
40
40
  if (this.registerServerSlot()) {
41
41
  return;
42
42
  }
43
- const consumers = (window.__ABS_SLOT_CONSUMERS__ =
44
- window.__ABS_SLOT_CONSUMERS__ ?? {});
43
+ const absoluteWindow = window;
44
+ const consumers = (absoluteWindow.__ABS_SLOT_CONSUMERS__ =
45
+ absoluteWindow.__ABS_SLOT_CONSUMERS__ ?? {});
45
46
  consumers[id] = (payload) => {
46
47
  if (!this.runtimeReady())
47
48
  return false;
@@ -57,7 +58,8 @@ export class DeferSlotComponent {
57
58
  requestAnimationFrame(() => {
58
59
  this.runtimeReady.set(true);
59
60
  this.cdr.markForCheck();
60
- window.__ABS_SLOT_FLUSH__?.();
61
+ const absoluteWindow = window;
62
+ absoluteWindow.__ABS_SLOT_FLUSH__?.();
61
63
  });
62
64
  }
63
65
  ngOnDestroy() {
@@ -66,7 +68,8 @@ export class DeferSlotComponent {
66
68
  const { id } = this;
67
69
  if (!id)
68
70
  return;
69
- delete window.__ABS_SLOT_CONSUMERS__?.[id];
71
+ const absoluteWindow = window;
72
+ delete absoluteWindow.__ABS_SLOT_CONSUMERS__?.[id];
70
73
  }
71
74
  registerServerSlot() {
72
75
  const { id, resolve } = this;
@@ -42,21 +42,23 @@ export class StreamSlotComponent {
42
42
  this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(this.fallbackHtml));
43
43
  return;
44
44
  }
45
- const consumers = (window.__ABS_SLOT_CONSUMERS__ =
46
- window.__ABS_SLOT_CONSUMERS__ ?? {});
45
+ const absoluteWindow = window;
46
+ const consumers = (absoluteWindow.__ABS_SLOT_CONSUMERS__ =
47
+ absoluteWindow.__ABS_SLOT_CONSUMERS__ ?? {});
47
48
  consumers[this.id] = this.slotConsumer;
48
49
  this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(this.fallbackHtml));
49
- const pendingPayload = window.__ABS_SLOT_PENDING__?.[this.id];
50
+ const pendingPayload = absoluteWindow.__ABS_SLOT_PENDING__?.[this.id];
50
51
  if (pendingPayload !== undefined) {
51
52
  this.slotConsumer(pendingPayload);
52
- delete window.__ABS_SLOT_PENDING__?.[this.id];
53
+ delete absoluteWindow.__ABS_SLOT_PENDING__?.[this.id];
53
54
  }
54
55
  }
55
56
  ngOnDestroy() {
56
57
  if (typeof window === 'undefined')
57
58
  return;
58
- if (window.__ABS_SLOT_CONSUMERS__) {
59
- delete window.__ABS_SLOT_CONSUMERS__[this.id];
59
+ const absoluteWindow = window;
60
+ if (absoluteWindow.__ABS_SLOT_CONSUMERS__) {
61
+ delete absoluteWindow.__ABS_SLOT_CONSUMERS__[this.id];
60
62
  }
61
63
  }
62
64
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: StreamSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -14234,20 +14234,22 @@ class StreamSlotComponent {
14234
14234
  this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(this.fallbackHtml));
14235
14235
  return;
14236
14236
  }
14237
- const consumers = window.__ABS_SLOT_CONSUMERS__ = window.__ABS_SLOT_CONSUMERS__ ?? {};
14237
+ const absoluteWindow = window;
14238
+ const consumers = absoluteWindow.__ABS_SLOT_CONSUMERS__ = absoluteWindow.__ABS_SLOT_CONSUMERS__ ?? {};
14238
14239
  consumers[this.id] = this.slotConsumer;
14239
14240
  this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(this.fallbackHtml));
14240
- const pendingPayload = window.__ABS_SLOT_PENDING__?.[this.id];
14241
+ const pendingPayload = absoluteWindow.__ABS_SLOT_PENDING__?.[this.id];
14241
14242
  if (pendingPayload !== undefined) {
14242
14243
  this.slotConsumer(pendingPayload);
14243
- delete window.__ABS_SLOT_PENDING__?.[this.id];
14244
+ delete absoluteWindow.__ABS_SLOT_PENDING__?.[this.id];
14244
14245
  }
14245
14246
  }
14246
14247
  ngOnDestroy() {
14247
14248
  if (typeof window === "undefined")
14248
14249
  return;
14249
- if (window.__ABS_SLOT_CONSUMERS__) {
14250
- delete window.__ABS_SLOT_CONSUMERS__[this.id];
14250
+ const absoluteWindow = window;
14251
+ if (absoluteWindow.__ABS_SLOT_CONSUMERS__) {
14252
+ delete absoluteWindow.__ABS_SLOT_CONSUMERS__[this.id];
14251
14253
  }
14252
14254
  }
14253
14255
  }
@@ -14301,5 +14303,5 @@ export {
14301
14303
  Island
14302
14304
  };
14303
14305
 
14304
- //# debugId=076EB08BFA02854364756E2164756E21
14306
+ //# debugId=97C03D4F07817D1C64756E2164756E21
14305
14307
  //# sourceMappingURL=index.js.map