@absolutejs/absolute 0.19.0-beta.859 → 0.19.0-beta.860
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-O7pKCK/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-O7pKCK/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-O7pKCK/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";
|
package/dist/build.js
CHANGED
|
@@ -9565,6 +9565,19 @@ var ENTITY_DECORATOR_RE, buildHmrTail = (className, encodedIdLiteral) => `
|
|
|
9565
9565
|
|
|
9566
9566
|
// absolutejs HMR \u2014 auto-generated; mirrors compileHmrInitializer from
|
|
9567
9567
|
// @angular/compiler with import.meta.hot adapted to globalThis.__angularHmr.
|
|
9568
|
+
//
|
|
9569
|
+
// We invoke \`\u0275\u0275replaceMetadata\` rather than calling the surgical
|
|
9570
|
+
// update directly. Both end up applying the new \`\u0275cmp\` to the class,
|
|
9571
|
+
// but \`\u0275\u0275replaceMetadata\` ALSO walks the LView tree and runs
|
|
9572
|
+
// \`recreateLView\` on each affected instance \u2014 that's what triggers
|
|
9573
|
+
// the actual template re-render, style swap, and lifecycle hook
|
|
9574
|
+
// re-fire. Calling the update fn directly mutates the def but
|
|
9575
|
+
// Angular's runtime never observes it, so views don't update.
|
|
9576
|
+
//
|
|
9577
|
+
// Pipes / directives / services don't have a \`\u0275cmp\` and aren't
|
|
9578
|
+
// tracked in the LView tree the same way; for those we still fall
|
|
9579
|
+
// back to a direct call (the surgical module's job is just to
|
|
9580
|
+
// patch the prototype, no view recreation needed).
|
|
9568
9581
|
{
|
|
9569
9582
|
const __ng_hmr_id = ${encodedIdLiteral};
|
|
9570
9583
|
const __ng_hmr_load = async (t) => {
|
|
@@ -9572,7 +9585,21 @@ var ENTITY_DECORATOR_RE, buildHmrTail = (className, encodedIdLiteral) => `
|
|
|
9572
9585
|
import('/@ng/component?c=' + encodeURIComponent(__ng_hmr_id) + '&t=' + t),
|
|
9573
9586
|
import('@angular/core')
|
|
9574
9587
|
]);
|
|
9575
|
-
if (u
|
|
9588
|
+
if (!u || typeof u.default !== 'function') return;
|
|
9589
|
+
if (${className}.\u0275cmp && typeof core.\u0275\u0275replaceMetadata === 'function') {
|
|
9590
|
+
core.\u0275\u0275replaceMetadata(
|
|
9591
|
+
${className},
|
|
9592
|
+
u.default,
|
|
9593
|
+
[core],
|
|
9594
|
+
[],
|
|
9595
|
+
import.meta,
|
|
9596
|
+
__ng_hmr_id
|
|
9597
|
+
);
|
|
9598
|
+
} else {
|
|
9599
|
+
// Non-component entity (pipe / directive / service) \u2014 no
|
|
9600
|
+
// LView tree to walk, just apply the prototype patch.
|
|
9601
|
+
u.default(${className}, [core]);
|
|
9602
|
+
}
|
|
9576
9603
|
};
|
|
9577
9604
|
if (typeof globalThis !== 'undefined' &&
|
|
9578
9605
|
globalThis.__angularHmr &&
|
|
@@ -21581,5 +21608,5 @@ export {
|
|
|
21581
21608
|
build
|
|
21582
21609
|
};
|
|
21583
21610
|
|
|
21584
|
-
//# debugId=
|
|
21611
|
+
//# debugId=9DE391363E94C8DE64756E2164756E21
|
|
21585
21612
|
//# sourceMappingURL=build.js.map
|