@absolutejs/absolute 0.19.0-beta.871 → 0.19.0-beta.872

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-IHtBo4/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-VGlvkC/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-IHtBo4/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-VGlvkC/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-IHtBo4/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-VGlvkC/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";
@@ -15,18 +15,22 @@ import type {} from '../../../types/globals';
15
15
  * detached root.
16
16
  *
17
17
  * Caveats baked into this approach:
18
- * • The new LView starts as a "root" view (createComponent attaches
19
- * it to ApplicationRef). After splice, it's a child of the
20
- * original parent. We need to detach from ApplicationRef so it's
21
- * not double-tracked.
22
18
  * • Old @Input bindings from the parent are NOT re-applied. The
23
19
  * parent's template flow runs at parent-CD time and wires inputs
24
20
  * then; until then the new instance sees default values. In
25
21
  * practice this matches Tier 1 rebootstrap behavior — no worse.
26
22
  * • Old projection content (ng-content) doesn't transfer. If the
27
23
  * parent injected a child via ng-content, the new instance has an
28
- * empty projection slot until parent re-renders. Logged as a
29
- * known limitation in ANGULAR_PER_COMPONENT_REMOUNT_RESEARCH.md. */
24
+ * empty projection slot until parent re-renders.
25
+ * Class field initializers (e.g. `private foo = inject(Bar)`) are
26
+ * baked into the original class's compiled constructor at bundle
27
+ * time. The surgical update patches `Class.ɵcmp` and prototype
28
+ * methods, but does NOT replace the class itself — so a NEW field
29
+ * added in source after the initial bundle won't appear on the
30
+ * fresh instance. Method-body / decorator / provider / template
31
+ * changes DO take effect (they live on the def, not the
32
+ * constructor). To pick up new field initializers requires a
33
+ * class-level rewrite or escalation to Tier 1b rebootstrap. */
30
34
 
31
35
  import {
32
36
  CONTEXT,
@@ -173,20 +177,6 @@ const teardownOldLView = (oldLView: LView): void => {
173
177
  markLViewDestroyed(oldLView);
174
178
  };
175
179
 
176
- /* The fresh ComponentRef is registered as a root view on
177
- * ApplicationRef. We don't want it tracked there — its parent in the
178
- * view tree is the original parent LView. Detach it. */
179
- const detachFromApplicationRoot = (
180
- componentRef: { hostView: unknown },
181
- core: AngularCoreNamespace
182
- ): void => {
183
- if (!core.ApplicationRef) return;
184
- const w = window as unknown as {
185
- __ANGULAR_APP__?: { detachView?: (view: unknown) => void };
186
- };
187
- w.__ANGULAR_APP__?.detachView?.(componentRef.hostView);
188
- };
189
-
190
180
  export type RemountResult = {
191
181
  className: string;
192
182
  remounted: number;
@@ -246,7 +236,6 @@ export const remountComponentClass = async (
246
236
  }
247
237
 
248
238
  spliceLViewIntoParent(target, fresh.newLView);
249
- detachFromApplicationRoot(fresh.componentRef, core);
250
239
  teardownOldLView(target.oldLView);
251
240
 
252
241
  fresh.componentRef.hostView.detectChanges?.();
package/dist/index.js CHANGED
@@ -21974,9 +21974,14 @@ var STORE_KEY = "__elysiaStore", getGlobalValue = (key) => Reflect.get(globalThi
21974
21974
  if (module === null) {
21975
21975
  return new Response(`No HMR module for id=${id}. The component may not be in the current program, or the program isn't built yet (rebuild on first save).`, { status: 404 });
21976
21976
  }
21977
- const { getDevVendorPaths: getDevVendorPaths2 } = await Promise.resolve().then(() => exports_devVendorPaths);
21977
+ const { getDevVendorPaths: getDevVendorPaths2, getAngularVendorPaths: getAngularVendorPaths2 } = await Promise.resolve().then(() => exports_devVendorPaths);
21978
21978
  const { rewriteImportsInContent: rewriteImportsInContent2 } = await Promise.resolve().then(() => (init_rewriteImportsPlugin(), exports_rewriteImportsPlugin));
21979
- const vendorPaths = getDevVendorPaths2() ?? {};
21979
+ const depVendorPaths = globalThis.__depVendorPaths ?? {};
21980
+ const vendorPaths = {
21981
+ ...getDevVendorPaths2() ?? {},
21982
+ ...getAngularVendorPaths2() ?? {},
21983
+ ...depVendorPaths
21984
+ };
21980
21985
  const rewritten = rewriteImportsInContent2(module, vendorPaths);
21981
21986
  return new Response(rewritten, {
21982
21987
  headers: {
@@ -30400,5 +30405,5 @@ export {
30400
30405
  ANGULAR_INIT_TIMEOUT_MS
30401
30406
  };
30402
30407
 
30403
- //# debugId=CE269C6EA595A26164756E2164756E21
30408
+ //# debugId=2A247ADD3B7452BD64756E2164756E21
30404
30409
  //# sourceMappingURL=index.js.map