@absolutejs/absolute 0.19.0-beta.966 → 0.19.0-beta.968
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 +24 -20
- package/dist/angular/browser.js.map +5 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +214 -185
- package/dist/angular/index.js.map +10 -8
- package/dist/angular/server.js +197 -172
- package/dist/angular/server.js.map +8 -7
- package/dist/build.js +1429 -1019
- package/dist/build.js.map +10 -6
- package/dist/client/index.js +17 -43
- package/dist/client/index.js.map +4 -5
- package/dist/index.js +1481 -1071
- package/dist/index.js.map +11 -7
- package/dist/islands/index.js +17 -43
- package/dist/islands/index.js.map +4 -5
- package/dist/react/index.js +18 -36
- package/dist/react/index.js.map +3 -3
- package/dist/react/server.js +2 -2
- package/dist/react/server.js.map +2 -2
- package/dist/src/angular/browser.d.ts +1 -2
- package/dist/src/angular/composables/index.d.ts +1 -0
- package/dist/src/angular/composables/usePageContext.d.ts +16 -0
- package/dist/src/angular/index.d.ts +1 -2
- package/dist/src/angular/loadRouteMounts.d.ts +3 -0
- package/dist/src/angular/pageHandler.d.ts +18 -12
- package/dist/src/angular/server.d.ts +0 -1
- package/dist/src/angular/ssrRender.d.ts +2 -6
- package/dist/src/build/emitAngularProvidersFiles.d.ts +18 -0
- package/dist/src/build/emitAngularRouteMounts.d.ts +3 -0
- package/dist/src/build/runAngularHandlerScan.d.ts +10 -0
- package/dist/src/build/scanAngularHandlerCalls.d.ts +35 -0
- package/dist/svelte/index.js +18 -36
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +2 -2
- package/dist/svelte/server.js.map +2 -2
- package/dist/types/angular.d.ts +15 -46
- package/dist/types/ember.d.ts +1 -3
- package/dist/vue/index.js +18 -36
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +2 -2
- package/dist/vue/server.js.map +2 -2
- package/package.json +1 -1
package/dist/angular/browser.js
CHANGED
|
@@ -9391,10 +9391,13 @@ var provideDeterministicEnv = (options = {}) => {
|
|
|
9391
9391
|
}
|
|
9392
9392
|
];
|
|
9393
9393
|
};
|
|
9394
|
+
// src/angular/composables/usePageContext.ts
|
|
9395
|
+
import { inject, REQUEST_CONTEXT } from "@angular/core";
|
|
9396
|
+
var usePageContext = () => inject(REQUEST_CONTEXT);
|
|
9394
9397
|
// src/angular/composables/useResource.ts
|
|
9395
|
-
import { DestroyRef, inject, signal } from "@angular/core";
|
|
9398
|
+
import { DestroyRef, inject as inject2, signal } from "@angular/core";
|
|
9396
9399
|
var useResource = (fetcher, options = {}) => {
|
|
9397
|
-
const destroyRef =
|
|
9400
|
+
const destroyRef = inject2(DestroyRef);
|
|
9398
9401
|
const start = options.start ?? "immediate";
|
|
9399
9402
|
const data = signal(null);
|
|
9400
9403
|
const error = signal(null);
|
|
@@ -9452,16 +9455,16 @@ var useResource = (fetcher, options = {}) => {
|
|
|
9452
9455
|
return { cancel, data, error, loading, mutate, refresh };
|
|
9453
9456
|
};
|
|
9454
9457
|
// src/angular/composables/useSubscription.ts
|
|
9455
|
-
import { DestroyRef as DestroyRef2, inject as
|
|
9458
|
+
import { DestroyRef as DestroyRef2, inject as inject3 } from "@angular/core";
|
|
9456
9459
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
9457
9460
|
function useSubscription(observable, observerOrNext) {
|
|
9458
|
-
const destroyRef =
|
|
9461
|
+
const destroyRef = inject3(DestroyRef2);
|
|
9459
9462
|
return observable.pipe(takeUntilDestroyed(destroyRef)).subscribe(typeof observerOrNext === "function" ? { next: observerOrNext } : observerOrNext);
|
|
9460
9463
|
}
|
|
9461
9464
|
// src/angular/composables/useTimers.ts
|
|
9462
|
-
import { DestroyRef as DestroyRef3, inject as
|
|
9465
|
+
import { DestroyRef as DestroyRef3, inject as inject4 } from "@angular/core";
|
|
9463
9466
|
var useTimers = () => {
|
|
9464
|
-
const destroyRef =
|
|
9467
|
+
const destroyRef = inject4(DestroyRef3);
|
|
9465
9468
|
const timeouts = new Set;
|
|
9466
9469
|
const intervals = new Set;
|
|
9467
9470
|
const clearAll = () => {
|
|
@@ -9501,7 +9504,7 @@ var useTimers = () => {
|
|
|
9501
9504
|
};
|
|
9502
9505
|
};
|
|
9503
9506
|
// src/angular/preserveAcrossHmr.ts
|
|
9504
|
-
import { ChangeDetectorRef, inject as
|
|
9507
|
+
import { ChangeDetectorRef, inject as inject5 } from "@angular/core";
|
|
9505
9508
|
|
|
9506
9509
|
// src/angular/hmrPreserveCore.ts
|
|
9507
9510
|
var isHmrPreserveDev = () => {
|
|
@@ -9572,7 +9575,7 @@ var preserveAcrossHmr = (instance, key) => {
|
|
|
9572
9575
|
if (!restored)
|
|
9573
9576
|
return;
|
|
9574
9577
|
try {
|
|
9575
|
-
const cdr =
|
|
9578
|
+
const cdr = inject5(ChangeDetectorRef, { optional: true });
|
|
9576
9579
|
if (cdr)
|
|
9577
9580
|
queueMicrotask(() => cdr.markForCheck());
|
|
9578
9581
|
} catch {}
|
|
@@ -9730,9 +9733,9 @@ Island = __legacyDecorateClassTS([
|
|
|
9730
9733
|
})
|
|
9731
9734
|
], Island);
|
|
9732
9735
|
// src/angular/pendingTask.ts
|
|
9733
|
-
import { inject as
|
|
9736
|
+
import { inject as inject6, PendingTasks } from "@angular/core";
|
|
9734
9737
|
var withPendingTask = async (work) => {
|
|
9735
|
-
const removeTask =
|
|
9738
|
+
const removeTask = inject6(PendingTasks).add();
|
|
9736
9739
|
try {
|
|
9737
9740
|
return await work();
|
|
9738
9741
|
} finally {
|
|
@@ -9887,7 +9890,7 @@ import {
|
|
|
9887
9890
|
Component as Component2,
|
|
9888
9891
|
ContentChild,
|
|
9889
9892
|
Input as Input2,
|
|
9890
|
-
inject as
|
|
9893
|
+
inject as inject8,
|
|
9891
9894
|
signal as signal2
|
|
9892
9895
|
} from "@angular/core";
|
|
9893
9896
|
import { NgTemplateOutlet } from "@angular/common";
|
|
@@ -9901,9 +9904,9 @@ var isAngularDeferSlotPayload = (value) => {
|
|
|
9901
9904
|
};
|
|
9902
9905
|
|
|
9903
9906
|
// src/angular/components/defer-slot-templates.directive.ts
|
|
9904
|
-
import { Directive, TemplateRef, inject as
|
|
9907
|
+
import { Directive, TemplateRef, inject as inject7 } from "@angular/core";
|
|
9905
9908
|
class DeferErrorTemplateDirective {
|
|
9906
|
-
templateRef =
|
|
9909
|
+
templateRef = inject7(TemplateRef);
|
|
9907
9910
|
}
|
|
9908
9911
|
DeferErrorTemplateDirective = __legacyDecorateClassTS([
|
|
9909
9912
|
Directive({
|
|
@@ -9913,7 +9916,7 @@ DeferErrorTemplateDirective = __legacyDecorateClassTS([
|
|
|
9913
9916
|
], DeferErrorTemplateDirective);
|
|
9914
9917
|
|
|
9915
9918
|
class DeferFallbackTemplateDirective {
|
|
9916
|
-
templateRef =
|
|
9919
|
+
templateRef = inject7(TemplateRef);
|
|
9917
9920
|
}
|
|
9918
9921
|
DeferFallbackTemplateDirective = __legacyDecorateClassTS([
|
|
9919
9922
|
Directive({
|
|
@@ -9923,7 +9926,7 @@ DeferFallbackTemplateDirective = __legacyDecorateClassTS([
|
|
|
9923
9926
|
], DeferFallbackTemplateDirective);
|
|
9924
9927
|
|
|
9925
9928
|
class DeferResolvedTemplateDirective {
|
|
9926
|
-
templateRef =
|
|
9929
|
+
templateRef = inject7(TemplateRef);
|
|
9927
9930
|
}
|
|
9928
9931
|
DeferResolvedTemplateDirective = __legacyDecorateClassTS([
|
|
9929
9932
|
Directive({
|
|
@@ -9937,7 +9940,7 @@ class DeferSlotComponent {
|
|
|
9937
9940
|
constructor() {
|
|
9938
9941
|
this.id = "";
|
|
9939
9942
|
}
|
|
9940
|
-
cdr =
|
|
9943
|
+
cdr = inject8(ChangeDetectorRef2);
|
|
9941
9944
|
runtimeReady = signal2(false);
|
|
9942
9945
|
serverSlotRegistered = false;
|
|
9943
9946
|
slotData = signal2({});
|
|
@@ -10220,7 +10223,7 @@ import {
|
|
|
10220
10223
|
ChangeDetectorRef as ChangeDetectorRef3,
|
|
10221
10224
|
Component as Component4,
|
|
10222
10225
|
Input as Input3,
|
|
10223
|
-
inject as
|
|
10226
|
+
inject as inject9,
|
|
10224
10227
|
signal as signal4
|
|
10225
10228
|
} from "@angular/core";
|
|
10226
10229
|
import { DomSanitizer } from "@angular/platform-browser";
|
|
@@ -10237,8 +10240,8 @@ class StreamSlotComponent {
|
|
|
10237
10240
|
constructor() {
|
|
10238
10241
|
this.fallbackHtml = "";
|
|
10239
10242
|
}
|
|
10240
|
-
cdr =
|
|
10241
|
-
sanitizer =
|
|
10243
|
+
cdr = inject9(ChangeDetectorRef3);
|
|
10244
|
+
sanitizer = inject9(DomSanitizer);
|
|
10242
10245
|
slotConsumer = (payload) => {
|
|
10243
10246
|
this.currentHtml.set(this.sanitizer.bypassSecurityTrustHtml(resolvePayloadHtml(payload)));
|
|
10244
10247
|
this.cdr.markForCheck();
|
|
@@ -10331,6 +10334,7 @@ export {
|
|
|
10331
10334
|
useTimers,
|
|
10332
10335
|
useSubscription,
|
|
10333
10336
|
useResource,
|
|
10337
|
+
usePageContext,
|
|
10334
10338
|
renderIsland,
|
|
10335
10339
|
provideDeterministicEnv,
|
|
10336
10340
|
preserveAcrossHmr,
|
|
@@ -10351,5 +10355,5 @@ export {
|
|
|
10351
10355
|
ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
|
|
10352
10356
|
};
|
|
10353
10357
|
|
|
10354
|
-
//# debugId=
|
|
10358
|
+
//# debugId=CC85C04F779D102864756E2164756E21
|
|
10355
10359
|
//# sourceMappingURL=browser.js.map
|