@paul-portfolio/react 0.8.0 → 0.8.1

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.
@@ -107,7 +107,10 @@ export function GuidedTour({ open, steps, onClose, onFinish, 'aria-label': ariaL
107
107
  previouslyFocused?.focus?.();
108
108
  };
109
109
  }, [open, onClose]);
110
- if (!open || !current)
110
+ // No document on the server, and the overlay portals to it — render nothing
111
+ // there rather than reaching createPortal(document.body). A host that opens
112
+ // the tour during SSR then gets a clean no-op instead of a crash.
113
+ if (!open || !current || typeof document === 'undefined')
111
114
  return null;
112
115
  const go = (target) => {
113
116
  const clamped = Math.max(0, Math.min(steps.length - 1, target));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paul-portfolio/react",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "React components for the Paul Design System",
5
5
  "license": "MIT",
6
6
  "repository": {