@insforge/react 1.0.9-dev.2 → 1.0.9-dev.3

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.
@@ -5,6 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
5
5
  var react = require('@insforge/shared/react');
6
6
  var lucideReact = require('lucide-react');
7
7
  var zod = require('zod');
8
+ var reactDom = require('react-dom');
8
9
 
9
10
  function _interopNamespace(e) {
10
11
  if (e && e.__esModule) return e;
@@ -4971,7 +4972,7 @@ function UserProfileModal({ onClose, onError }) {
4971
4972
  return null;
4972
4973
  }
4973
4974
  const initials = user.profile?.name ? user.profile.name.charAt(0).toUpperCase() : user.email.split("@")[0].slice(0, 2).toUpperCase();
4974
- return /* @__PURE__ */ jsxRuntime.jsx(ProfileModalOverlay, { onClick: handleOverlayClick, children: /* @__PURE__ */ jsxRuntime.jsxs(ProfileModalContainer, { onClick: (e) => e.stopPropagation(), children: [
4975
+ const modalContent = /* @__PURE__ */ jsxRuntime.jsx(ProfileModalOverlay, { onClick: handleOverlayClick, children: /* @__PURE__ */ jsxRuntime.jsxs(ProfileModalContainer, { onClick: (e) => e.stopPropagation(), children: [
4975
4976
  /* @__PURE__ */ jsxRuntime.jsxs(ProfileModalHeader, { children: [
4976
4977
  /* @__PURE__ */ jsxRuntime.jsx(ProfileModalTitle, { children: "Profile" }),
4977
4978
  /* @__PURE__ */ jsxRuntime.jsx(ProfileModalCloseButton, { onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, {}) })
@@ -5013,6 +5014,7 @@ function UserProfileModal({ onClose, onError }) {
5013
5014
  ] })
5014
5015
  ] }) : /* @__PURE__ */ jsxRuntime.jsx(ProfileButton, { $primary: true, onClick: () => setIsEditing(true), children: "Edit Profile" }) })
5015
5016
  ] }) });
5017
+ return reactDom.createPortal(modalContent, document.body);
5016
5018
  }
5017
5019
  function UserButton({
5018
5020
  afterSignOutUrl = "/",