@absolutejs/absolute 0.19.0-beta.360 → 0.19.0-beta.361
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/{StreamSlot-m5a5fnfq.svelte → StreamSlot-kyee4w0z.svelte} +1 -1
- package/dist/angular/browser.js +402 -4
- package/dist/angular/browser.js.map +9 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +15 -0
- package/dist/angular/components/core/streamingSlotRegistry.js +12 -3
- package/dist/angular/components/stream-slot.component.js +1 -1
- package/dist/angular/index.js +12 -2
- package/dist/angular/index.js.map +6 -5
- package/dist/index.js +12 -2
- package/dist/index.js.map +5 -4
- package/dist/react/components/browser/index.js +3 -8
- package/dist/react/components/index.js +6 -37
- package/dist/react/components/index.js.map +5 -5
- package/dist/react/index.js +12 -2
- package/dist/react/index.js.map +5 -4
- package/dist/src/angular/browser.d.ts +3 -0
- package/dist/src/core/streamingSlotRegistrar.d.ts +5 -0
- package/dist/src/core/streamingSlotRegistry.d.ts +0 -1
- package/dist/svelte/components/StreamSlot.svelte +1 -1
- package/dist/svelte/index.js +13 -3
- package/dist/svelte/index.js.map +5 -4
- package/dist/vue/components/index.js +6 -37
- package/dist/vue/components/index.js.map +5 -5
- package/dist/vue/index.js +47 -37
- package/dist/vue/index.js.map +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -180425,6 +180425,15 @@ var appendStreamingSlotPatchesToStream = (stream, slots = [], {
|
|
|
180425
180425
|
});
|
|
180426
180426
|
};
|
|
180427
180427
|
|
|
180428
|
+
// src/core/streamingSlotRegistrar.ts
|
|
180429
|
+
var registrar = null;
|
|
180430
|
+
var setStreamingSlotRegistrar = (nextRegistrar) => {
|
|
180431
|
+
registrar = nextRegistrar;
|
|
180432
|
+
};
|
|
180433
|
+
var registerStreamingSlot = (slot) => {
|
|
180434
|
+
registrar?.(slot);
|
|
180435
|
+
};
|
|
180436
|
+
|
|
180428
180437
|
// src/core/streamingSlotRegistry.ts
|
|
180429
180438
|
var asyncLocalStorage;
|
|
180430
180439
|
var isServerRuntime = () => typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
@@ -180439,7 +180448,7 @@ var ensureAsyncLocalStorage = async () => {
|
|
|
180439
180448
|
asyncLocalStorage = new mod.AsyncLocalStorage;
|
|
180440
180449
|
return asyncLocalStorage;
|
|
180441
180450
|
};
|
|
180442
|
-
var
|
|
180451
|
+
var registerStreamingSlot2 = (slot) => {
|
|
180443
180452
|
if (!asyncLocalStorage)
|
|
180444
180453
|
return;
|
|
180445
180454
|
const store = asyncLocalStorage.getStore();
|
|
@@ -180447,6 +180456,7 @@ var registerStreamingSlot = (slot) => {
|
|
|
180447
180456
|
return;
|
|
180448
180457
|
store.set(slot.id, slot);
|
|
180449
180458
|
};
|
|
180459
|
+
setStreamingSlotRegistrar(registerStreamingSlot2);
|
|
180450
180460
|
var runWithStreamingSlotRegistry = async (task) => {
|
|
180451
180461
|
const storage = await ensureAsyncLocalStorage();
|
|
180452
180462
|
if (!storage) {
|
|
@@ -187245,5 +187255,5 @@ export {
|
|
|
187245
187255
|
ANGULAR_INIT_TIMEOUT_MS
|
|
187246
187256
|
};
|
|
187247
187257
|
|
|
187248
|
-
//# debugId=
|
|
187258
|
+
//# debugId=0554EBBE9C058B6264756E2164756E21
|
|
187249
187259
|
//# sourceMappingURL=index.js.map
|