@insforge/react 1.0.9-dev.2 → 1.1.0
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.
- package/dist/components.cjs +3 -1
- package/dist/components.cjs.map +1 -1
- package/dist/components.d.cts +2 -1
- package/dist/components.d.ts +2 -1
- package/dist/components.js +3 -1
- package/dist/components.js.map +1 -1
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
18
18
|
import { InsforgeContext } from '@insforge/shared/react';
|
|
19
19
|
import { AlertTriangle, Check, EyeOff, Eye, Loader2, CircleCheck, X, User, LogOut } from 'lucide-react';
|
|
20
20
|
import { z } from 'zod';
|
|
21
|
+
import { createPortal } from 'react-dom';
|
|
21
22
|
|
|
22
23
|
var __create = Object.create;
|
|
23
24
|
var __defProp = Object.defineProperty;
|
|
@@ -5493,7 +5494,7 @@ function UserProfileModal({ onClose, onError }) {
|
|
|
5493
5494
|
return null;
|
|
5494
5495
|
}
|
|
5495
5496
|
const initials = user.profile?.name ? user.profile.name.charAt(0).toUpperCase() : user.email.split("@")[0].slice(0, 2).toUpperCase();
|
|
5496
|
-
|
|
5497
|
+
const modalContent = /* @__PURE__ */ jsx(ProfileModalOverlay, { onClick: handleOverlayClick, children: /* @__PURE__ */ jsxs(ProfileModalContainer, { onClick: (e) => e.stopPropagation(), children: [
|
|
5497
5498
|
/* @__PURE__ */ jsxs(ProfileModalHeader, { children: [
|
|
5498
5499
|
/* @__PURE__ */ jsx(ProfileModalTitle, { children: "Profile" }),
|
|
5499
5500
|
/* @__PURE__ */ jsx(ProfileModalCloseButton, { onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ jsx(X, {}) })
|
|
@@ -5535,6 +5536,7 @@ function UserProfileModal({ onClose, onError }) {
|
|
|
5535
5536
|
] })
|
|
5536
5537
|
] }) : /* @__PURE__ */ jsx(ProfileButton, { $primary: true, onClick: () => setIsEditing(true), children: "Edit Profile" }) })
|
|
5537
5538
|
] }) });
|
|
5539
|
+
return createPortal(modalContent, document.body);
|
|
5538
5540
|
}
|
|
5539
5541
|
function UserButton({
|
|
5540
5542
|
afterSignOutUrl = "/",
|