@absolutejs/absolute 0.19.0-beta.1083 → 0.19.0-beta.1085
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 +18 -18
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/components/defer-slot-templates.directive.js +2 -2
- package/dist/angular/components/defer-slot.component.js +3 -3
- package/dist/angular/components/image.component.js +3 -3
- package/dist/angular/components/stream-slot.component.js +3 -3
- package/dist/angular/index.js +43 -43
- package/dist/angular/server.js +31 -31
- package/dist/build.js +105 -54
- package/dist/build.js.map +4 -4
- package/dist/cli/config/server.js +11 -11
- package/dist/client/index.js +13 -13
- package/dist/index.js +130 -79
- package/dist/index.js.map +4 -4
- package/dist/islands/index.js +14 -14
- package/dist/react/browser.js +3 -3
- package/dist/react/components/browser/index.js +5 -5
- package/dist/react/components/index.js +7 -7
- package/dist/react/hooks/index.js +2 -2
- package/dist/react/index.js +30 -30
- package/dist/react/jsxDevRuntimeCompat.js +1 -1
- package/dist/react/router/browser.js +2 -2
- package/dist/react/router/index.js +2 -2
- package/dist/react/server.js +13 -13
- package/dist/src/build/chainInlineSourcemaps.d.ts +1 -0
- package/dist/src/core/build.d.ts +5 -0
- package/dist/src/utils/loadConfig.d.ts +1 -0
- package/dist/svelte/index.js +26 -26
- package/dist/svelte/router/page.js +1 -1
- package/dist/svelte/server.js +13 -13
- package/dist/types/build.d.ts +1 -0
- package/dist/vue/browser.js +3 -3
- package/dist/vue/components/Image.js +1 -1
- package/dist/vue/components/index.js +5 -5
- package/dist/vue/index.js +36 -36
- package/dist/vue/server.js +13 -13
- package/package.json +1 -1
- package/dist/.absolutejs/generated/angular/indexes/angular-example.1g23yr9r.js +0 -167
- package/dist/.absolutejs/generated/react/indexes/ReactExample.e6kzvjqy.js +0 -3
- package/dist/.absolutejs/generated/svelte/client/pages/SvelteExample.5pq2wmw6.js +0 -1
- package/dist/.absolutejs/generated/svelte/indexes/pages/SvelteExample.9zcw5vtg.js +0 -1
- package/dist/.absolutejs/generated/vue/client/pages/VueExample.q47m56s4.js +0 -1
- package/dist/.absolutejs/generated/vue/indexes/VueExample.6bqszcxv.js +0 -1
- package/dist/_prerendered/angular.html +0 -45
- package/dist/_prerendered/angular.meta +0 -1
- package/dist/_prerendered/html.html +0 -70
- package/dist/_prerendered/html.meta +0 -1
- package/dist/_prerendered/htmx.html +0 -239
- package/dist/_prerendered/htmx.meta +0 -1
- package/dist/_prerendered/index.html +0 -70
- package/dist/_prerendered/index.meta +0 -1
- package/dist/_prerendered/react.html +0 -1
- package/dist/_prerendered/react.meta +0 -1
- package/dist/_prerendered/vue.html +0 -41
- package/dist/_prerendered/vue.meta +0 -1
- package/dist/angular/example/angular/pages/angular-example.djr1v9hj.js +0 -373
- package/dist/angular/vendor/angular_common.js +0 -310
- package/dist/angular/vendor/angular_common_http.js +0 -129
- package/dist/angular/vendor/angular_core.js +0 -1177
- package/dist/angular/vendor/angular_core_primitives_di.js +0 -36
- package/dist/angular/vendor/angular_core_primitives_signals.js +0 -132
- package/dist/angular/vendor/angular_platform-browser.js +0 -117
- package/dist/angular/vendor/angular_router.js +0 -6410
- package/dist/angular/vendor/chunk-2c9evnn0.js +0 -4764
- package/dist/angular/vendor/chunk-3evcs0sk.js +0 -2567
- package/dist/angular/vendor/chunk-5h3qyvpj.js +0 -729
- package/dist/angular/vendor/chunk-hgg0w52m.js +0 -62
- package/dist/angular/vendor/chunk-n6rt7w2y.js +0 -23
- package/dist/angular/vendor/chunk-t4tc7c8b.js +0 -28013
- package/dist/angular/vendor/chunk-vqd7j0kb.js +0 -1786
- package/dist/angular/vendor/chunk-yqjkhk8j.js +0 -145
- package/dist/angular/vendor/server/angular_common.js +0 -311
- package/dist/angular/vendor/server/angular_common_http.js +0 -130
- package/dist/angular/vendor/server/angular_core.js +0 -1178
- package/dist/angular/vendor/server/angular_core_primitives_di.js +0 -37
- package/dist/angular/vendor/server/angular_core_primitives_signals.js +0 -133
- package/dist/angular/vendor/server/angular_platform-browser.js +0 -118
- package/dist/angular/vendor/server/angular_platform-server.js +0 -59
- package/dist/angular/vendor/server/angular_router.js +0 -261
- package/dist/angular/vendor/server/angular_ssr.js +0 -11669
- package/dist/angular/vendor/server/chunk-2akxms5e.js +0 -2566
- package/dist/angular/vendor/server/chunk-659a9c3p.js +0 -6218
- package/dist/angular/vendor/server/chunk-8eecnjd1.js +0 -16686
- package/dist/angular/vendor/server/chunk-9jz2apvp.js +0 -743
- package/dist/angular/vendor/server/chunk-dhs2bg35.js +0 -48
- package/dist/angular/vendor/server/chunk-hs2gc8sr.js +0 -1787
- package/dist/angular/vendor/server/chunk-k46n34mb.js +0 -63
- package/dist/angular/vendor/server/chunk-p2fdvyh1.js +0 -4767
- package/dist/angular/vendor/server/chunk-r0w9r4bg.js +0 -730
- package/dist/angular/vendor/server/chunk-vthxj7kd.js +0 -146
- package/dist/angular/vendor/server/chunk-xahr7f2f.js +0 -35534
- package/dist/assets/css/tailwind.generated.css +0 -218
- package/dist/assets/css/vue-example-compiled.abzaxheq.css +0 -32
- package/dist/assets/ico/favicon.ico +0 -0
- package/dist/assets/png/absolutejs-temp.png +0 -0
- package/dist/assets/svg/HTML5_Badge.svg +0 -7
- package/dist/assets/svg/angular.svg +0 -18
- package/dist/assets/svg/htmx-logo-black.svg +0 -9
- package/dist/assets/svg/htmx-logo-white.svg +0 -9
- package/dist/assets/svg/react.svg +0 -1
- package/dist/assets/svg/svelte-logo.svg +0 -1
- package/dist/assets/svg/vue-logo.svg +0 -4
- package/dist/chunk-7pp6gkg8.js +0 -2
- package/dist/chunk-ek2qyx2c.js +0 -11
- package/dist/chunk-ysr5ycdt.js +0 -2
- package/dist/client.tsx +0 -15
- package/dist/example/html/scripts/typescript-example.fqn9zkdh.js +0 -1
- package/dist/html/pages/HTMLExample.html +0 -70
- package/dist/htmx/htmx.min.js +0 -1
- package/dist/htmx/pages/HTMXExample.html +0 -239
- package/dist/htmx.min.js +0 -1
- package/dist/indexes/angular-example.xsx88ph0.css +0 -227
- package/dist/indexes/html-example.s3banzdc.css +0 -221
- package/dist/indexes/htmx-example.5vgssc3f.css +0 -221
- package/dist/indexes/react-example.bz1k8xa2.css +0 -245
- package/dist/indexes/svelte-example.vy3015es.css +0 -221
- package/dist/indexes/vue-example.q4vf2wtq.css +0 -228
- package/dist/manifest.json +0 -26
- package/dist/nested/dynamic-module.txt +0 -1
- package/dist/package-asset.txt +0 -1
- package/dist/react/vendor/chunk-2kh60w9b.js +0 -33
- package/dist/react/vendor/chunk-9g12fvrw.js +0 -236
- package/dist/react/vendor/chunk-rejbymp5.js +0 -837
- package/dist/react/vendor/chunk-wwy122hz.js +0 -200
- package/dist/react/vendor/react-dom.js +0 -44
- package/dist/react/vendor/react-dom_client.js +0 -15864
- package/dist/react/vendor/react-refresh_runtime.js +0 -304
- package/dist/react/vendor/react.js +0 -103
- package/dist/react/vendor/react_jsx-dev-runtime.js +0 -17
- package/dist/react/vendor/react_jsx-runtime.js +0 -22
- package/dist/robots.txt +0 -2
- package/dist/runtime/blob.txt +0 -1
- package/dist/runtime/dir-join.txt +0 -1
- package/dist/runtime/nested/binary.bin +0 -1
- package/dist/runtime/nested/readfile.txt +0 -1
- package/dist/runtime/template.html +0 -1
- package/dist/server.js +0 -92156
- package/dist/sitemap.xml +0 -48
- package/dist/svelte/server/pages/SvelteExample.fxs20w1b.js +0 -290
- package/dist/svelte/vendor/chunk-5qdxn1p3.js +0 -4586
- package/dist/svelte/vendor/chunk-8qdfbbez.js +0 -12
- package/dist/svelte/vendor/chunk-r2jyyfjt.js +0 -4495
- package/dist/svelte/vendor/svelte.js +0 -49
- package/dist/svelte/vendor/svelte_internal.js +0 -2
- package/dist/svelte/vendor/svelte_internal_client.js +0 -395
- package/dist/svelte/vendor/svelte_internal_disclose-version.js +0 -7
- package/dist/svelte/vendor/svelte_internal_flags_async.js +0 -6
- package/dist/svelte/vendor/svelte_internal_flags_legacy.js +0 -6
- package/dist/svelte/vendor/svelte_store.js +0 -99
- package/dist/vue/server/pages/VueExample.fyhmna2p.css +0 -32
- package/dist/vue/server/pages/VueExample.fyhmna2p.js +0 -75
- package/dist/vue/vendor/vue.js +0 -11011
package/dist/angular/browser.js
CHANGED
|
@@ -9342,7 +9342,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
9342
9342
|
getWarningController()?.maybeWarn(primitiveName);
|
|
9343
9343
|
};
|
|
9344
9344
|
// src/angular/deterministicEnv.ts
|
|
9345
|
-
import { InjectionToken } from "
|
|
9345
|
+
import { InjectionToken } from "@angular/core";
|
|
9346
9346
|
var DEFAULT_DETERMINISTIC_SEED = "absolute-angular";
|
|
9347
9347
|
var DEFAULT_DETERMINISTIC_NOW = 0;
|
|
9348
9348
|
var HASH_MULTIPLIER = 31;
|
|
@@ -9395,10 +9395,10 @@ var provideDeterministicEnv = (options = {}) => {
|
|
|
9395
9395
|
];
|
|
9396
9396
|
};
|
|
9397
9397
|
// src/angular/composables/usePageContext.ts
|
|
9398
|
-
import { inject, REQUEST_CONTEXT } from "
|
|
9398
|
+
import { inject, REQUEST_CONTEXT } from "@angular/core";
|
|
9399
9399
|
var usePageContext = () => inject(REQUEST_CONTEXT);
|
|
9400
9400
|
// src/angular/composables/useResource.ts
|
|
9401
|
-
import { DestroyRef, inject as inject2, signal } from "
|
|
9401
|
+
import { DestroyRef, inject as inject2, signal } from "@angular/core";
|
|
9402
9402
|
var useResource = (fetcher, options = {}) => {
|
|
9403
9403
|
const destroyRef = inject2(DestroyRef);
|
|
9404
9404
|
const start = options.start ?? "immediate";
|
|
@@ -9458,15 +9458,15 @@ var useResource = (fetcher, options = {}) => {
|
|
|
9458
9458
|
return { cancel, data, error, loading, mutate, refresh };
|
|
9459
9459
|
};
|
|
9460
9460
|
// src/angular/composables/useSubscription.ts
|
|
9461
|
-
import { DestroyRef as DestroyRef2, inject as inject3 } from "
|
|
9462
|
-
import { takeUntilDestroyed } from "
|
|
9461
|
+
import { DestroyRef as DestroyRef2, inject as inject3 } from "@angular/core";
|
|
9462
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
9463
9463
|
function useSubscription(observable, observerOrNext, destroyRef) {
|
|
9464
9464
|
const captured = destroyRef ?? inject3(DestroyRef2);
|
|
9465
9465
|
const observer = typeof observerOrNext === "function" ? { next: observerOrNext } : observerOrNext;
|
|
9466
9466
|
return observable.pipe(takeUntilDestroyed(captured)).subscribe(observer);
|
|
9467
9467
|
}
|
|
9468
9468
|
// src/angular/composables/useTimers.ts
|
|
9469
|
-
import { DestroyRef as DestroyRef3, inject as inject4 } from "
|
|
9469
|
+
import { DestroyRef as DestroyRef3, inject as inject4 } from "@angular/core";
|
|
9470
9470
|
var useTimers = () => {
|
|
9471
9471
|
const destroyRef = inject4(DestroyRef3);
|
|
9472
9472
|
const timeouts = new Set;
|
|
@@ -9508,7 +9508,7 @@ var useTimers = () => {
|
|
|
9508
9508
|
};
|
|
9509
9509
|
};
|
|
9510
9510
|
// src/angular/preserveAcrossHmr.ts
|
|
9511
|
-
import { ChangeDetectorRef, inject as inject5 } from "
|
|
9511
|
+
import { ChangeDetectorRef, inject as inject5 } from "@angular/core";
|
|
9512
9512
|
|
|
9513
9513
|
// src/angular/hmrPreserveCore.ts
|
|
9514
9514
|
var buildCacheKey = (instance, key) => {
|
|
@@ -9585,13 +9585,13 @@ var preserveAcrossHmr = (instance, key) => {
|
|
|
9585
9585
|
} catch {}
|
|
9586
9586
|
};
|
|
9587
9587
|
// src/angular/Island.browser.ts
|
|
9588
|
-
import"
|
|
9588
|
+
import"@angular/compiler";
|
|
9589
9589
|
import {
|
|
9590
9590
|
Component,
|
|
9591
9591
|
ElementRef,
|
|
9592
9592
|
Input,
|
|
9593
9593
|
ViewChild
|
|
9594
|
-
} from "
|
|
9594
|
+
} from "@angular/core";
|
|
9595
9595
|
|
|
9596
9596
|
// src/client/preserveIslandMarkup.ts
|
|
9597
9597
|
init_islandMarkupAttributes();
|
|
@@ -9733,7 +9733,7 @@ Island = __legacyDecorateClassTS([
|
|
|
9733
9733
|
})
|
|
9734
9734
|
], Island);
|
|
9735
9735
|
// src/angular/pendingTask.ts
|
|
9736
|
-
import { inject as inject6, PendingTasks } from "
|
|
9736
|
+
import { inject as inject6, PendingTasks } from "@angular/core";
|
|
9737
9737
|
var withPendingTask = async (work) => {
|
|
9738
9738
|
const removeTask = inject6(PendingTasks).add();
|
|
9739
9739
|
try {
|
|
@@ -9750,7 +9750,7 @@ var createTypedIsland = (_registry) => (props) => {
|
|
|
9750
9750
|
};
|
|
9751
9751
|
// src/angular/islandStore.ts
|
|
9752
9752
|
var import_rxjs = __toESM(require_cjs(), 1);
|
|
9753
|
-
import { Injectable } from "
|
|
9753
|
+
import { Injectable } from "@angular/core";
|
|
9754
9754
|
|
|
9755
9755
|
// node_modules/zustand/esm/vanilla.mjs
|
|
9756
9756
|
var createStoreImpl = (createState) => {
|
|
@@ -9892,8 +9892,8 @@ import {
|
|
|
9892
9892
|
Input as Input2,
|
|
9893
9893
|
inject as inject8,
|
|
9894
9894
|
signal as signal2
|
|
9895
|
-
} from "
|
|
9896
|
-
import { NgTemplateOutlet } from "
|
|
9895
|
+
} from "@angular/core";
|
|
9896
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
9897
9897
|
|
|
9898
9898
|
// src/angular/components/defer-slot-payload.ts
|
|
9899
9899
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
@@ -9904,7 +9904,7 @@ var isAngularDeferSlotPayload = (value) => {
|
|
|
9904
9904
|
};
|
|
9905
9905
|
|
|
9906
9906
|
// src/angular/components/defer-slot-templates.directive.ts
|
|
9907
|
-
import { Directive, TemplateRef, inject as inject7 } from "
|
|
9907
|
+
import { Directive, TemplateRef, inject as inject7 } from "@angular/core";
|
|
9908
9908
|
class DeferErrorTemplateDirective {
|
|
9909
9909
|
templateRef = inject7(TemplateRef);
|
|
9910
9910
|
}
|
|
@@ -10076,8 +10076,8 @@ DeferSlotComponent = __legacyDecorateClassTS([
|
|
|
10076
10076
|
], DeferSlotComponent);
|
|
10077
10077
|
// src/angular/components/image.component.ts
|
|
10078
10078
|
init_imageProcessing();
|
|
10079
|
-
import { Component as Component3, computed, input, signal as signal3 } from "
|
|
10080
|
-
import { NgStyle } from "
|
|
10079
|
+
import { Component as Component3, computed, input, signal as signal3 } from "@angular/core";
|
|
10080
|
+
import { NgStyle } from "@angular/common";
|
|
10081
10081
|
var resolveBlurBg = (placeholderValue, blurDataUrl) => {
|
|
10082
10082
|
if (typeof placeholderValue === "string" && placeholderValue !== "blur" && placeholderValue.startsWith("data:")) {
|
|
10083
10083
|
return generateBlurSvg(placeholderValue);
|
|
@@ -10225,8 +10225,8 @@ import {
|
|
|
10225
10225
|
Input as Input3,
|
|
10226
10226
|
inject as inject9,
|
|
10227
10227
|
signal as signal4
|
|
10228
|
-
} from "
|
|
10229
|
-
import { DomSanitizer } from "
|
|
10228
|
+
} from "@angular/core";
|
|
10229
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
10230
10230
|
var isObjectRecord3 = (value) => Boolean(value) && typeof value === "object";
|
|
10231
10231
|
var isHtmlPayload = (payload) => isObjectRecord3(payload) && typeof payload.html === "string";
|
|
10232
10232
|
var resolvePayloadHtml = (payload) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-cupHjw/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-cupHjw/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-cupHjw/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Directive, TemplateRef, inject } from '
|
|
2
|
-
import * as i0 from "
|
|
1
|
+
import { Directive, TemplateRef, inject } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
3
|
export class DeferErrorTemplateDirective {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.templateRef = inject(TemplateRef);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Input, inject, signal } from '
|
|
2
|
-
import { NgTemplateOutlet } from '
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Input, inject, signal } from '@angular/core';
|
|
2
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
3
3
|
import { isStreamingSlotCollectionActive, registerStreamingSlot, warnMissingStreamingSlotCollector } from './core/streamingSlotRegistrar.js';
|
|
4
4
|
import { isAngularDeferSlotPayload } from './defer-slot-payload.js';
|
|
5
5
|
import { DeferErrorTemplateDirective, DeferFallbackTemplateDirective, DeferResolvedTemplateDirective } from './defer-slot-templates.directive.js';
|
|
6
|
-
import * as i0 from "
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
7
|
export class DeferSlotComponent {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.cdr = inject(ChangeDetectorRef);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component, computed, input, signal } from '
|
|
2
|
-
import { NgStyle } from '
|
|
1
|
+
import { Component, computed, input, signal } from '@angular/core';
|
|
2
|
+
import { NgStyle } from '@angular/common';
|
|
3
3
|
import { DEFAULT_QUALITY, buildOptimizedUrl, generateBlurSvg, generateSrcSet } from '@absolutejs/absolute/image';
|
|
4
|
-
import * as i0 from "
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
5
|
/** Resolve the blur background CSS value from placeholder config */
|
|
6
6
|
const resolveBlurBg = (placeholderValue, blurDataUrl) => {
|
|
7
7
|
if (typeof placeholderValue === 'string' &&
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, inject, signal } from '
|
|
2
|
-
import { DomSanitizer } from '
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, inject, signal } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
3
|
import { isStreamingSlotCollectionActive, registerStreamingSlot, warnMissingStreamingSlotCollector } from './core/streamingSlotRegistrar.js';
|
|
4
|
-
import * as i0 from "
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
5
|
const isObjectRecord = (value) => Boolean(value) && typeof value === 'object';
|
|
6
6
|
const isHtmlPayload = (payload) => isObjectRecord(payload) && typeof payload.html === 'string';
|
|
7
7
|
const resolvePayloadHtml = (payload) => {
|
package/dist/angular/index.js
CHANGED
|
@@ -458,16 +458,16 @@ var initDominoAdapter = (platformServer) => {
|
|
|
458
458
|
}
|
|
459
459
|
}, loadAngularDeps = async () => {
|
|
460
460
|
if (!isProductionRuntime()) {
|
|
461
|
-
await import("
|
|
461
|
+
await import("@angular/compiler");
|
|
462
462
|
}
|
|
463
463
|
const { applyPatches: applyPatches2 } = await Promise.resolve().then(() => (init_angularPatch(), exports_angularPatch));
|
|
464
464
|
await applyPatches2();
|
|
465
465
|
const useBareSpecifiers = !isProductionRuntime();
|
|
466
466
|
const [platformBrowser, platformServer, common, core] = await Promise.all([
|
|
467
|
-
useBareSpecifiers ? import("
|
|
468
|
-
useBareSpecifiers ? import("
|
|
469
|
-
useBareSpecifiers ? import("
|
|
470
|
-
useBareSpecifiers ? import("
|
|
467
|
+
useBareSpecifiers ? import("@angular/platform-browser") : import(resolveAngularRuntimePath("@angular/platform-browser")),
|
|
468
|
+
useBareSpecifiers ? import("@angular/platform-server") : import(resolveAngularRuntimePath("@angular/platform-server")),
|
|
469
|
+
useBareSpecifiers ? import("@angular/common") : import(resolveAngularRuntimePath("@angular/common")),
|
|
470
|
+
useBareSpecifiers ? import("@angular/core") : import(resolveAngularRuntimePath("@angular/core"))
|
|
471
471
|
]);
|
|
472
472
|
if (!isDevelopmentRuntime()) {
|
|
473
473
|
core.enableProdMode();
|
|
@@ -623,8 +623,8 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
|
|
|
623
623
|
const [selector] = firstSelectorGroup;
|
|
624
624
|
return typeof selector === "string" && selector.length > 0 ? selector : null;
|
|
625
625
|
}, createAngularIslandApp = async () => {
|
|
626
|
-
const { EnvironmentInjector, provideZonelessChangeDetection } = await import("
|
|
627
|
-
const { createApplication } = await import("
|
|
626
|
+
const { EnvironmentInjector, provideZonelessChangeDetection } = await import("@angular/core");
|
|
627
|
+
const { createApplication } = await import("@angular/platform-browser");
|
|
628
628
|
const app = await createApplication({
|
|
629
629
|
providers: [provideZonelessChangeDetection()]
|
|
630
630
|
});
|
|
@@ -696,8 +696,8 @@ var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_i
|
|
|
696
696
|
}
|
|
697
697
|
return html.slice(start, end + endTag.length);
|
|
698
698
|
}, mountAngularIsland = async (component, element, props, islandId) => {
|
|
699
|
-
await import("
|
|
700
|
-
const { createComponent, inputBinding } = await import("
|
|
699
|
+
await import("@angular/compiler");
|
|
700
|
+
const { createComponent, inputBinding } = await import("@angular/core");
|
|
701
701
|
const selector = getAngularIslandSelector(islandId);
|
|
702
702
|
const { app, environmentInjector } = await getAngularIslandApp();
|
|
703
703
|
let rootElement = element.querySelector(selector);
|
|
@@ -769,14 +769,14 @@ var renderAngularIslandToHtmlInternal = async (component, props, islandId) => {
|
|
|
769
769
|
match = LEADING_HOISTED_RESOURCE_RE.exec(result);
|
|
770
770
|
}
|
|
771
771
|
return result.trimStart();
|
|
772
|
-
}, renderReactIslandToHtml = (component, props) => import("
|
|
772
|
+
}, renderReactIslandToHtml = (component, props) => import("react").then(({ createElement }) => import("react-dom/server").then(({ renderToString }) => stripLeadingHoistedResources(renderToString(createElement(component, props))))), renderSvelteIslandToHtml = (component, props) => import("svelte/server").then(({ render }) => {
|
|
773
773
|
const { body } = render(component, { props });
|
|
774
774
|
return body;
|
|
775
|
-
}), renderVueIslandToHtml = (component, props) => import("
|
|
775
|
+
}), renderVueIslandToHtml = (component, props) => import("vue").then(({ createSSRApp, h: createVueVNode }) => {
|
|
776
776
|
const app = createSSRApp({
|
|
777
777
|
render: () => createVueVNode(component, props)
|
|
778
778
|
});
|
|
779
|
-
return import("
|
|
779
|
+
return import("vue/server-renderer").then(({ renderToString }) => renderToString(app));
|
|
780
780
|
});
|
|
781
781
|
var init_islandSsr = __esm(() => {
|
|
782
782
|
renderAngularIslandToHtml2 = renderAngularIslandToHtmlInternal;
|
|
@@ -2212,7 +2212,7 @@ var serverCacheRoot2, compiledModuleCache2, originalSourcePathCache, transpiler,
|
|
|
2212
2212
|
}
|
|
2213
2213
|
const resolutionSourcePath = await resolveOriginalSourcePath(sourcePath);
|
|
2214
2214
|
const source = await Bun.file(sourcePath).text();
|
|
2215
|
-
const { compile, preprocess } = await import("
|
|
2215
|
+
const { compile, preprocess } = await import("svelte/compiler");
|
|
2216
2216
|
const loweredAwaitSource = lowerSvelteAwaitSlotSyntax(source);
|
|
2217
2217
|
const loweredSource = lowerSvelteIslandSyntax(loweredAwaitSource.code, "server");
|
|
2218
2218
|
const preprocessed = await preprocess(loweredSource.code, createSvelteStylePreprocessor());
|
|
@@ -2325,7 +2325,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
|
|
|
2325
2325
|
const cachedModulePath = compiledModuleCache3.get(sourcePath);
|
|
2326
2326
|
if (cachedModulePath)
|
|
2327
2327
|
return cachedModulePath;
|
|
2328
|
-
const compiler = await import("
|
|
2328
|
+
const compiler = await import("@vue/compiler-sfc");
|
|
2329
2329
|
const source = await Bun.file(sourcePath).text();
|
|
2330
2330
|
const { descriptor } = compiler.parse(source, { filename: sourcePath });
|
|
2331
2331
|
const componentId = Bun.hash(sourcePath).toString(BASE_36_RADIX).slice(0, ISLAND_COMPONENT_ID_LENGTH);
|
|
@@ -2610,7 +2610,7 @@ __export(exports_devRouteRegistrationCallsite, {
|
|
|
2610
2610
|
getCurrentRouteRegistrationCallsite: () => getCurrentRouteRegistrationCallsite
|
|
2611
2611
|
});
|
|
2612
2612
|
import { AsyncLocalStorage } from "async_hooks";
|
|
2613
|
-
import { Elysia } from "
|
|
2613
|
+
import { Elysia } from "elysia";
|
|
2614
2614
|
var ROUTE_CALLSITE_STORAGE_KEY, ROUTE_CALLSITE_PATCHED_KEY, ROUTE_METHOD_NAMES, PAGE_HANDLER_NAMES, pageHandlerWrappers, handlerSourceMentionsPageHelper = (handler) => {
|
|
2615
2615
|
const source = handler.toString();
|
|
2616
2616
|
return PAGE_HANDLER_NAMES.some((name) => source.includes(name));
|
|
@@ -4128,7 +4128,7 @@ __export(exports_compileAngular, {
|
|
|
4128
4128
|
import { existsSync as existsSync5, readFileSync as readFileSync5, promises as fs } from "fs";
|
|
4129
4129
|
import { join as join9, basename as basename3, sep, dirname as dirname5, resolve as resolve7, relative as relative5 } from "path";
|
|
4130
4130
|
var {Glob } = globalThis.Bun;
|
|
4131
|
-
import ts from "
|
|
4131
|
+
import ts from "typescript";
|
|
4132
4132
|
var traceAngularPhase = async (name, fn, metadata) => {
|
|
4133
4133
|
const tracePhase = globalThis.__absoluteBuildTracePhase;
|
|
4134
4134
|
return tracePhase ? tracePhase(`compile/angular/${name}`, fn, metadata) : await fn();
|
|
@@ -4465,8 +4465,8 @@ var traceAngularPhase = async (name, fn, metadata) => {
|
|
|
4465
4465
|
buildIslandMetadataExports(readFileSync5(inputPath, "utf-8"))
|
|
4466
4466
|
];
|
|
4467
4467
|
})), { entries: inputPaths.length });
|
|
4468
|
-
await traceAngularPhase("aot/preload-compiler", () => import("
|
|
4469
|
-
const { readConfiguration, performCompilation, EmitFlags } = await traceAngularPhase("aot/import-compiler-cli", () => import("
|
|
4468
|
+
await traceAngularPhase("aot/preload-compiler", () => import("@angular/compiler"));
|
|
4469
|
+
const { readConfiguration, performCompilation, EmitFlags } = await traceAngularPhase("aot/import-compiler-cli", () => import("@angular/compiler-cli"));
|
|
4470
4470
|
const tsLibDir = await traceAngularPhase("aot/resolve-typescript-lib", () => {
|
|
4471
4471
|
const tsPath = __require.resolve("typescript");
|
|
4472
4472
|
const tsRootDir = dirname5(tsPath);
|
|
@@ -14475,10 +14475,10 @@ var runWithStreamingSlotRegistry = async (task) => {
|
|
|
14475
14475
|
};
|
|
14476
14476
|
|
|
14477
14477
|
// src/angular/index.ts
|
|
14478
|
-
import"
|
|
14478
|
+
import"@angular/compiler";
|
|
14479
14479
|
|
|
14480
14480
|
// src/angular/deterministicEnv.ts
|
|
14481
|
-
import { InjectionToken } from "
|
|
14481
|
+
import { InjectionToken } from "@angular/core";
|
|
14482
14482
|
var DEFAULT_DETERMINISTIC_SEED = "absolute-angular";
|
|
14483
14483
|
var DEFAULT_DETERMINISTIC_NOW = 0;
|
|
14484
14484
|
var HASH_MULTIPLIER = 31;
|
|
@@ -14841,8 +14841,8 @@ var buildErrorProps = (error) => {
|
|
|
14841
14841
|
return { message: String(error), name: "Error" };
|
|
14842
14842
|
};
|
|
14843
14843
|
var renderReactError = async (conventionPath, errorProps) => {
|
|
14844
|
-
const { createElement } = await import("
|
|
14845
|
-
const { renderToReadableStream } = await import("
|
|
14844
|
+
const { createElement } = await import("react");
|
|
14845
|
+
const { renderToReadableStream } = await import("react-dom/server");
|
|
14846
14846
|
const mod = await import(conventionPath);
|
|
14847
14847
|
const ErrorComponent = mod.default;
|
|
14848
14848
|
if (typeof ErrorComponent !== "function")
|
|
@@ -14855,7 +14855,7 @@ var renderReactError = async (conventionPath, errorProps) => {
|
|
|
14855
14855
|
});
|
|
14856
14856
|
};
|
|
14857
14857
|
var renderSvelteError = async (conventionPath, errorProps) => {
|
|
14858
|
-
const { render } = await import("
|
|
14858
|
+
const { render } = await import("svelte/server");
|
|
14859
14859
|
const mod = await import(conventionPath);
|
|
14860
14860
|
const ErrorComponent = mod.default;
|
|
14861
14861
|
if (!ErrorComponent)
|
|
@@ -14878,8 +14878,8 @@ var unescapeVueStyles = (ssrBody) => {
|
|
|
14878
14878
|
return { body, styles };
|
|
14879
14879
|
};
|
|
14880
14880
|
var renderVueError = async (conventionPath, errorProps) => {
|
|
14881
|
-
const { createSSRApp, h } = await import("
|
|
14882
|
-
const { renderToString } = await import("
|
|
14881
|
+
const { createSSRApp, h } = await import("vue");
|
|
14882
|
+
const { renderToString } = await import("vue/server-renderer");
|
|
14883
14883
|
const mod = await import(conventionPath);
|
|
14884
14884
|
const ErrorComponent = mod.default;
|
|
14885
14885
|
if (!ErrorComponent)
|
|
@@ -14971,8 +14971,8 @@ var renderConventionError = async (framework, pageName, error) => {
|
|
|
14971
14971
|
return null;
|
|
14972
14972
|
};
|
|
14973
14973
|
var renderReactNotFound = async (conventionPath) => {
|
|
14974
|
-
const { createElement } = await import("
|
|
14975
|
-
const { renderToReadableStream } = await import("
|
|
14974
|
+
const { createElement } = await import("react");
|
|
14975
|
+
const { renderToReadableStream } = await import("react-dom/server");
|
|
14976
14976
|
const mod = await import(conventionPath);
|
|
14977
14977
|
const NotFoundComponent = mod.default;
|
|
14978
14978
|
if (typeof NotFoundComponent !== "function")
|
|
@@ -14985,7 +14985,7 @@ var renderReactNotFound = async (conventionPath) => {
|
|
|
14985
14985
|
});
|
|
14986
14986
|
};
|
|
14987
14987
|
var renderSvelteNotFound = async (conventionPath) => {
|
|
14988
|
-
const { render } = await import("
|
|
14988
|
+
const { render } = await import("svelte/server");
|
|
14989
14989
|
const mod = await import(conventionPath);
|
|
14990
14990
|
const NotFoundComponent = mod.default;
|
|
14991
14991
|
if (!NotFoundComponent)
|
|
@@ -14998,8 +14998,8 @@ var renderSvelteNotFound = async (conventionPath) => {
|
|
|
14998
14998
|
});
|
|
14999
14999
|
};
|
|
15000
15000
|
var renderVueNotFound = async (conventionPath) => {
|
|
15001
|
-
const { createSSRApp, h } = await import("
|
|
15002
|
-
const { renderToString } = await import("
|
|
15001
|
+
const { createSSRApp, h } = await import("vue");
|
|
15002
|
+
const { renderToString } = await import("vue/server-renderer");
|
|
15003
15003
|
const mod = await import(conventionPath);
|
|
15004
15004
|
const NotFoundComponent = mod.default;
|
|
15005
15005
|
if (!NotFoundComponent)
|
|
@@ -15450,7 +15450,7 @@ var ensureAngularCompiler = () => {
|
|
|
15450
15450
|
if (isProductionRuntime())
|
|
15451
15451
|
return Promise.resolve();
|
|
15452
15452
|
if (!compilerImportPromise) {
|
|
15453
|
-
compilerImportPromise = import("
|
|
15453
|
+
compilerImportPromise = import("@angular/compiler");
|
|
15454
15454
|
}
|
|
15455
15455
|
return compilerImportPromise;
|
|
15456
15456
|
};
|
|
@@ -15608,10 +15608,10 @@ var handleAngularPageRequest = async (input) => {
|
|
|
15608
15608
|
});
|
|
15609
15609
|
};
|
|
15610
15610
|
// src/angular/composables/usePageContext.ts
|
|
15611
|
-
import { inject, REQUEST_CONTEXT } from "
|
|
15611
|
+
import { inject, REQUEST_CONTEXT } from "@angular/core";
|
|
15612
15612
|
var usePageContext = () => inject(REQUEST_CONTEXT);
|
|
15613
15613
|
// src/angular/composables/useResource.ts
|
|
15614
|
-
import { DestroyRef, inject as inject2, signal } from "
|
|
15614
|
+
import { DestroyRef, inject as inject2, signal } from "@angular/core";
|
|
15615
15615
|
var useResource = (fetcher, options = {}) => {
|
|
15616
15616
|
const destroyRef = inject2(DestroyRef);
|
|
15617
15617
|
const start = options.start ?? "immediate";
|
|
@@ -15671,15 +15671,15 @@ var useResource = (fetcher, options = {}) => {
|
|
|
15671
15671
|
return { cancel, data, error, loading, mutate, refresh };
|
|
15672
15672
|
};
|
|
15673
15673
|
// src/angular/composables/useSubscription.ts
|
|
15674
|
-
import { DestroyRef as DestroyRef2, inject as inject3 } from "
|
|
15675
|
-
import { takeUntilDestroyed } from "
|
|
15674
|
+
import { DestroyRef as DestroyRef2, inject as inject3 } from "@angular/core";
|
|
15675
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
15676
15676
|
function useSubscription(observable, observerOrNext, destroyRef) {
|
|
15677
15677
|
const captured = destroyRef ?? inject3(DestroyRef2);
|
|
15678
15678
|
const observer = typeof observerOrNext === "function" ? { next: observerOrNext } : observerOrNext;
|
|
15679
15679
|
return observable.pipe(takeUntilDestroyed(captured)).subscribe(observer);
|
|
15680
15680
|
}
|
|
15681
15681
|
// src/angular/composables/useTimers.ts
|
|
15682
|
-
import { DestroyRef as DestroyRef3, inject as inject4 } from "
|
|
15682
|
+
import { DestroyRef as DestroyRef3, inject as inject4 } from "@angular/core";
|
|
15683
15683
|
var useTimers = () => {
|
|
15684
15684
|
const destroyRef = inject4(DestroyRef3);
|
|
15685
15685
|
const timeouts = new Set;
|
|
@@ -15721,7 +15721,7 @@ var useTimers = () => {
|
|
|
15721
15721
|
};
|
|
15722
15722
|
};
|
|
15723
15723
|
// src/angular/preserveAcrossHmr.ts
|
|
15724
|
-
import { ChangeDetectorRef, inject as inject5 } from "
|
|
15724
|
+
import { ChangeDetectorRef, inject as inject5 } from "@angular/core";
|
|
15725
15725
|
|
|
15726
15726
|
// src/angular/hmrPreserveCore.ts
|
|
15727
15727
|
var buildCacheKey = (instance, key) => {
|
|
@@ -15798,7 +15798,7 @@ var preserveAcrossHmr = (instance, key) => {
|
|
|
15798
15798
|
} catch {}
|
|
15799
15799
|
};
|
|
15800
15800
|
// src/angular/pendingTask.ts
|
|
15801
|
-
import { inject as inject6, PendingTasks } from "
|
|
15801
|
+
import { inject as inject6, PendingTasks } from "@angular/core";
|
|
15802
15802
|
var withPendingTask = async (work) => {
|
|
15803
15803
|
const removeTask = inject6(PendingTasks).add();
|
|
15804
15804
|
try {
|
|
@@ -15815,8 +15815,8 @@ var createTypedIsland = (registry) => (props) => renderIslandMarkup(registry, pr
|
|
|
15815
15815
|
init_ssrRender();
|
|
15816
15816
|
|
|
15817
15817
|
// src/angular/Island.ts
|
|
15818
|
-
import"
|
|
15819
|
-
import { Component, HostBinding, Input } from "
|
|
15818
|
+
import"@angular/compiler";
|
|
15819
|
+
import { Component, HostBinding, Input } from "@angular/core";
|
|
15820
15820
|
class Island {
|
|
15821
15821
|
constructor() {
|
|
15822
15822
|
this.component = "";
|
|
@@ -15858,7 +15858,7 @@ Island = __legacyDecorateClassTS([
|
|
|
15858
15858
|
], Island);
|
|
15859
15859
|
// src/angular/islandStore.ts
|
|
15860
15860
|
var import_rxjs = __toESM(require_cjs(), 1);
|
|
15861
|
-
import { Injectable } from "
|
|
15861
|
+
import { Injectable } from "@angular/core";
|
|
15862
15862
|
|
|
15863
15863
|
// node_modules/zustand/esm/vanilla.mjs
|
|
15864
15864
|
var createStoreImpl = (createState) => {
|
|
@@ -16002,8 +16002,8 @@ import {
|
|
|
16002
16002
|
Input as Input2,
|
|
16003
16003
|
inject as inject7,
|
|
16004
16004
|
signal as signal2
|
|
16005
|
-
} from "
|
|
16006
|
-
import { DomSanitizer } from "
|
|
16005
|
+
} from "@angular/core";
|
|
16006
|
+
import { DomSanitizer } from "@angular/platform-browser";
|
|
16007
16007
|
var isObjectRecord5 = (value) => Boolean(value) && typeof value === "object";
|
|
16008
16008
|
var isHtmlPayload = (payload) => isObjectRecord5(payload) && typeof payload.html === "string";
|
|
16009
16009
|
var resolvePayloadHtml = (payload) => {
|