codexly-ui 0.10.96 → 0.10.98

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.
@@ -16785,6 +16785,12 @@ class ClxToastService {
16785
16785
  // Each position has its own container div at z-index 9000 (above modals)
16786
16786
  _containers = new Map();
16787
16787
  show(options) {
16788
+ // Toasts are a browser-only UI concern — during SSR there's no `document` to mount the
16789
+ // container into, and no user watching the server's own render to see it anyway. Silently
16790
+ // no-op instead of throwing (an uncaught ReferenceError here crashes the whole Node SSR
16791
+ // process, taking down every other in-flight request with it).
16792
+ if (typeof document === 'undefined')
16793
+ return;
16788
16794
  const position = options.position ?? TOAST_DEFAULTS.position;
16789
16795
  const container = this._getOrCreateContainer(position);
16790
16796
  const entry = {