@absolutejs/absolute 0.19.0-beta.419 → 0.19.0-beta.420
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 +13 -1
- package/dist/angular/browser.js.map +3 -3
- package/dist/angular/components/defer-slot.component.js +12 -1
- package/dist/angular/index.js +14 -2
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +1 -1
- package/dist/build.js +2 -2
- package/dist/build.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/src/angular/components/defer-slot.component.d.ts +1 -0
- package/package.json +1 -1
package/dist/angular/browser.js
CHANGED
|
@@ -9549,6 +9549,7 @@ Injectable({
|
|
|
9549
9549
|
var IslandStore = IslandStoreImpl;
|
|
9550
9550
|
// src/angular/components/defer-slot.component.ts
|
|
9551
9551
|
import {
|
|
9552
|
+
afterNextRender,
|
|
9552
9553
|
ChangeDetectionStrategy,
|
|
9553
9554
|
ChangeDetectorRef,
|
|
9554
9555
|
Component as Component2,
|
|
@@ -9605,6 +9606,7 @@ class DeferSlotComponent {
|
|
|
9605
9606
|
this.id = "";
|
|
9606
9607
|
}
|
|
9607
9608
|
cdr = inject2(ChangeDetectorRef);
|
|
9609
|
+
runtimeReady = signal(false);
|
|
9608
9610
|
slotData = signal({});
|
|
9609
9611
|
state = signal("fallback");
|
|
9610
9612
|
activeTemplate = () => {
|
|
@@ -9639,9 +9641,19 @@ class DeferSlotComponent {
|
|
|
9639
9641
|
}
|
|
9640
9642
|
const consumers = window.__ABS_SLOT_CONSUMERS__ = window.__ABS_SLOT_CONSUMERS__ ?? {};
|
|
9641
9643
|
consumers[id] = (payload) => {
|
|
9644
|
+
if (!this.runtimeReady())
|
|
9645
|
+
return false;
|
|
9642
9646
|
this.applyPatchPayload(payload);
|
|
9643
9647
|
return true;
|
|
9644
9648
|
};
|
|
9649
|
+
afterNextRender(() => {
|
|
9650
|
+
this.runtimeReady.set(true);
|
|
9651
|
+
if (typeof window.__ABS_SLOT_FLUSH__ === "function") {
|
|
9652
|
+
requestAnimationFrame(() => {
|
|
9653
|
+
window.__ABS_SLOT_FLUSH__?.();
|
|
9654
|
+
});
|
|
9655
|
+
}
|
|
9656
|
+
});
|
|
9645
9657
|
}
|
|
9646
9658
|
ngOnDestroy() {
|
|
9647
9659
|
if (typeof window === "undefined")
|
|
@@ -9978,5 +9990,5 @@ export {
|
|
|
9978
9990
|
DeferErrorTemplateDirective
|
|
9979
9991
|
};
|
|
9980
9992
|
|
|
9981
|
-
//# debugId=
|
|
9993
|
+
//# debugId=5B5381312600775464756E2164756E21
|
|
9982
9994
|
//# sourceMappingURL=browser.js.map
|