@absolutejs/absolute 0.19.0-beta.710 → 0.19.0-beta.712
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.
- package/dist/angular/browser.js +14 -9
- package/dist/angular/browser.js.map +4 -4
- package/dist/angular/components/defer-slot.component.js +7 -4
- package/dist/angular/components/stream-slot.component.js +8 -6
- package/dist/angular/index.js +8 -6
- package/dist/angular/index.js.map +4 -4
- package/dist/angular/server.js.map +2 -2
- package/dist/build.js.map +2 -2
- package/dist/cli/index.js +18 -3
- package/dist/client/index.js.map +2 -2
- package/dist/index.js.map +2 -2
- package/dist/islands/index.js.map +2 -2
- package/dist/react/index.js.map +2 -2
- package/dist/svelte/index.js.map +2 -2
- package/dist/types/style-module-shim.d.ts +29 -0
- package/dist/vue/index.js.map +2 -2
- package/package.json +4 -1
|
@@ -40,8 +40,9 @@ export class DeferSlotComponent {
|
|
|
40
40
|
if (this.registerServerSlot()) {
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
46
|
-
|
|
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 =
|
|
50
|
+
const pendingPayload = absoluteWindow.__ABS_SLOT_PENDING__?.[this.id];
|
|
50
51
|
if (pendingPayload !== undefined) {
|
|
51
52
|
this.slotConsumer(pendingPayload);
|
|
52
|
-
delete
|
|
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
|
-
|
|
59
|
-
|
|
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 }); }
|
package/dist/angular/index.js
CHANGED
|
@@ -14234,20 +14234,22 @@ class StreamSlotComponent {
|
|
|
14234
14234
|
this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(this.fallbackHtml));
|
|
14235
14235
|
return;
|
|
14236
14236
|
}
|
|
14237
|
-
const
|
|
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 =
|
|
14241
|
+
const pendingPayload = absoluteWindow.__ABS_SLOT_PENDING__?.[this.id];
|
|
14241
14242
|
if (pendingPayload !== undefined) {
|
|
14242
14243
|
this.slotConsumer(pendingPayload);
|
|
14243
|
-
delete
|
|
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
|
-
|
|
14250
|
-
|
|
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=
|
|
14306
|
+
//# debugId=97C03D4F07817D1C64756E2164756E21
|
|
14305
14307
|
//# sourceMappingURL=index.js.map
|