@absolutejs/absolute 0.19.0-beta.836 → 0.19.0-beta.837

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-bA9nAi/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-7GOEb9/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-bA9nAi/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-7GOEb9/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-bA9nAi/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-7GOEb9/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";
@@ -11,6 +11,11 @@ let currentOverlayKind: 'compilation' | 'runtime' | null = null;
11
11
  // a "N of M" badge so you can step through them.
12
12
  const runtimeErrors: ErrorOverlayOptions[] = [];
13
13
  let activeRuntimeIndex = 0;
14
+ let pendingCompilationOpts: ErrorOverlayOptions | null = null;
15
+ // Tracks which queue renderOverlay should pull from. Driven by
16
+ // showErrorOverlay BEFORE renderOverlay runs so the choice is unambiguous
17
+ // (currentOverlayKind reflects what's currently mounted, not what's queued).
18
+ let activeMode: 'runtime' | 'compilation' | null = null;
14
19
 
15
20
  const frameworkLabels: Record<string, string> = {
16
21
  angular: 'Angular',
@@ -48,6 +53,8 @@ export const hideErrorOverlay = () => {
48
53
  // fresh overlay, otherwise stale entries accumulate forever.
49
54
  runtimeErrors.length = 0;
50
55
  activeRuntimeIndex = 0;
56
+ pendingCompilationOpts = null;
57
+ activeMode = null;
51
58
  if (!elm || !elm.parentNode) {
52
59
  removeOverlayElement();
53
60
 
@@ -258,7 +265,7 @@ const formatErrorForCopy = (opts: ErrorOverlayOptions) => {
258
265
 
259
266
  const renderOverlay = () => {
260
267
  const opts =
261
- currentOverlayKind === 'runtime'
268
+ activeMode === 'runtime'
262
269
  ? runtimeErrors[activeRuntimeIndex]
263
270
  : pendingCompilationOpts;
264
271
  if (!opts) return;
@@ -299,7 +306,7 @@ const renderOverlay = () => {
299
306
  // Multi-error nav: visible only when more than one runtime error has
300
307
  // fired since the last dismiss. Compilation errors always replace, so
301
308
  // they never need this row.
302
- if (currentOverlayKind === 'runtime' && runtimeErrors.length > 1) {
309
+ if (activeMode === 'runtime' && runtimeErrors.length > 1) {
303
310
  const navRow = document.createElement('div');
304
311
  navRow.style.cssText =
305
312
  'display:flex;align-items:center;gap:12px;margin-bottom:20px;padding:10px 14px;background:rgba(71,85,105,0.25);border-radius:10px;border:1px solid rgba(71,85,105,0.4);';
@@ -340,7 +347,7 @@ const renderOverlay = () => {
340
347
  if (locSection) content.appendChild(locSection);
341
348
  const stackSection = buildStackSection(stack, message);
342
349
  if (stackSection) content.appendChild(stackSection);
343
- if (currentOverlayKind === 'runtime') {
350
+ if (activeMode === 'runtime') {
344
351
  content.appendChild(buildDiagnosticsSection());
345
352
  }
346
353
 
@@ -412,10 +419,9 @@ const renderOverlay = () => {
412
419
  errorOverlayElement = overlay;
413
420
  };
414
421
 
415
- let pendingCompilationOpts: ErrorOverlayOptions | null = null;
416
-
417
422
  export const showErrorOverlay = (opts: ErrorOverlayOptions) => {
418
423
  const kind = opts.kind || 'compilation';
424
+ activeMode = kind;
419
425
  if (kind === 'runtime') {
420
426
  // Suppress duplicates — Angular and other frameworks often re-throw
421
427
  // the same error from multiple async boundaries (zone, scheduler,
package/package.json CHANGED
@@ -384,5 +384,5 @@
384
384
  ]
385
385
  }
386
386
  },
387
- "version": "0.19.0-beta.836"
387
+ "version": "0.19.0-beta.837"
388
388
  }