organify-ui 0.3.49 → 0.3.52
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,4 +1,4 @@
|
|
|
1
|
-
import { cn, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, ScrollArea, Skeleton, useOrganifyApi, useOrganify, Avatar, AvatarImage, AvatarFallback, Drawer, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerFooter, Badge,
|
|
1
|
+
import { cn, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, ScrollArea, Skeleton, useOrganifyApi, useOrganify, Avatar, AvatarImage, AvatarFallback, useOrganifyUser, Drawer, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, DrawerFooter, Badge, useOrganifyWorkspace, useOrganifyGql } from './chunk-Q2YXAUZX.js';
|
|
2
2
|
import { OrgPlus, OrgSearch, OrgComment, OrgClose, OrgEdit, OrgTeam, OrgGlobe, OrgLock, OrgCheckCircle, OrgError, OrgWarning, OrgInfo, OrgChevronDown, OrgChevronRight, OrgDoor, OrgTrash, OrgCheck, OrgFolder, OrgChevronLeft } from './chunk-J5TEVLDY.js';
|
|
3
3
|
import * as React6 from 'react';
|
|
4
4
|
import React6__default, { useState, useEffect, useCallback } from 'react';
|
|
@@ -616,9 +616,13 @@ function UserDisplayName({
|
|
|
616
616
|
className,
|
|
617
617
|
style
|
|
618
618
|
}) {
|
|
619
|
+
const currentUser = useOrganifyUser();
|
|
619
620
|
const resolved = useResolvedUser(!nameProp && userId != null ? userId : null);
|
|
620
621
|
const isLoading = !nameProp && userId != null && resolved === void 0;
|
|
621
|
-
|
|
622
|
+
let displayName = nameProp ?? resolved?.name ?? (isLoading ? loadingFallback : "?");
|
|
623
|
+
if (currentUser?.id === String(userId)) {
|
|
624
|
+
displayName += " (eu)";
|
|
625
|
+
}
|
|
622
626
|
return /* @__PURE__ */ jsx(
|
|
623
627
|
"span",
|
|
624
628
|
{
|
|
@@ -4897,5 +4901,5 @@ function useAiInline({ gatewayUrl, workspaceId, projectId }) {
|
|
|
4897
4901
|
}
|
|
4898
4902
|
|
|
4899
4903
|
export { AiChatSidebar, Alert, Button, ChatMessages, ChatSidebar, CommandBar, CreateRoomDialog, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, InlineAiButton, Input, Label, MOCK_PROJECTS, MOCK_USERS, MentionPopover, MessageBubble, MessageInput, OrgLoader, OrgLoaderInline, OrganifyChat, ResponsiveDialog, RoomManagementPanel, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TypingIndicatorMock, UserAvatar, UserDisplayName, alertVariants, buttonVariants, generateAutoReplies, getMockMentionOptions, getRoomPermissions, inputVariants, invalidateUserCache, orgLoaderVariants, resolveUser, seedUserCache, typingIndicator, useAiInline, useChat, useResolvedUser };
|
|
4900
|
-
//# sourceMappingURL=chunk-
|
|
4901
|
-
//# sourceMappingURL=chunk-
|
|
4904
|
+
//# sourceMappingURL=chunk-MULZPGDM.js.map
|
|
4905
|
+
//# sourceMappingURL=chunk-MULZPGDM.js.map
|