organify-ui 0.3.39 → 0.3.40

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,5 +1,5 @@
1
- import { C as ChatMessage, M as MentionOption, a as MentionType } from '../../inline-ai-CcYfjXIS.js';
2
- export { b as ChatConfig, c as ChatEvents, d as ChatMention, e as ChatMessages, f as ChatPermissions, g as ChatReaction, h as ChatRoom, i as ChatRoomMember, j as ChatSidebar, k as ChatUser, l as CommandBar, m as CommandBarItem, n as CommandBarProps, o as CreateRoomDialog, I as InlineAiButton, p as InlineAiButtonProps, q as MOCK_PROJECTS, r as MOCK_USERS, s as MemberRole, t as MentionPopover, u as MentionPopoverProps, O as OrganifyChat, v as OrganifyChatProps, R as RoomManagementPanel, w as RoomType, x as RoomVisibility, T as TypingIndicatorMock, U as UseAiInlineOptions, y as generateAutoReplies, z as getMockMentionOptions, A as getRoomPermissions, B as typingIndicator, D as useAiInline, E as useChat } from '../../inline-ai-CcYfjXIS.js';
1
+ import { C as ChatMessage, M as MentionOption, a as MentionType } from '../../inline-ai-DGF3HIoy.js';
2
+ export { b as ChatConfig, c as ChatEvents, d as ChatMention, e as ChatMessages, f as ChatPermissions, g as ChatReaction, h as ChatRoom, i as ChatRoomMember, j as ChatSidebar, k as ChatUser, l as CommandBar, m as CommandBarItem, n as CommandBarProps, o as CreateRoomDialog, I as InlineAiButton, p as InlineAiButtonProps, q as MOCK_PROJECTS, r as MOCK_USERS, s as MemberRole, t as MentionPopover, u as MentionPopoverProps, O as OrganifyChat, v as OrganifyChatProps, R as RoomManagementPanel, w as RoomType, x as RoomVisibility, T as TypingIndicatorMock, U as UseAiInlineOptions, y as generateAutoReplies, z as getMockMentionOptions, A as getRoomPermissions, B as typingIndicator, D as useAiInline, E as useChat } from '../../inline-ai-DGF3HIoy.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  export { A as AiAction, a as AiChatMessage, b as AiChatSidebar, c as AiChatSidebarProps } from '../../ai-chat-sidebar-DnEOUzSL.js';
5
5
  import 'react';
@@ -1,4 +1,4 @@
1
- export { AiChatSidebar, ChatMessages, ChatSidebar, CommandBar, CreateRoomDialog, InlineAiButton, MOCK_PROJECTS, MOCK_USERS, MentionPopover, MessageBubble, MessageInput, OrganifyChat, RoomManagementPanel, TypingIndicatorMock, generateAutoReplies, getMockMentionOptions, getRoomPermissions, typingIndicator, useAiInline, useChat } from '../../chunk-V3UZIPZA.js';
1
+ export { AiChatSidebar, ChatMessages, ChatSidebar, CommandBar, CreateRoomDialog, InlineAiButton, MOCK_PROJECTS, MOCK_USERS, MentionPopover, MessageBubble, MessageInput, OrganifyChat, RoomManagementPanel, TypingIndicatorMock, generateAutoReplies, getMockMentionOptions, getRoomPermissions, typingIndicator, useAiInline, useChat } from '../../chunk-5VC6DBVW.js';
2
2
  import '../../chunk-UUBQQVDM.js';
3
3
  import '../../chunk-MZKEDV5W.js';
4
4
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -26,7 +26,7 @@ export { IconProps, OrgAI, OrgActivity, OrgArrowLeft, OrgArrowRight, OrgAttachme
26
26
  export { QueryClient, QueryClientProvider } from '@tanstack/react-query';
27
27
  export { Theme, ThemeProvider, ThemeProviderProps, useTheme } from './providers/theme-provider.js';
28
28
  export { I18nProvider, I18nProviderProps, Locale, TranslationKey, createTranslator, useI18n } from './i18n/index.js';
29
- export { b as ChatConfig, c as ChatEvents, d as ChatMention, C as ChatMessage, e as ChatMessages, f as ChatPermissions, g as ChatReaction, h as ChatRoom, i as ChatRoomMember, j as ChatSidebar, k as ChatUser, l as CommandBar, m as CommandBarItem, n as CommandBarProps, o as CreateRoomDialog, I as InlineAiButton, p as InlineAiButtonProps, q as MOCK_PROJECTS, r as MOCK_USERS, s as MemberRole, O as OrganifyChat, v as OrganifyChatProps, R as RoomManagementPanel, w as RoomType, x as RoomVisibility, T as TypingIndicatorMock, U as UseAiInlineOptions, y as generateAutoReplies, z as getMockMentionOptions, A as getRoomPermissions, B as typingIndicator, D as useAiInline, E as useChat } from './inline-ai-CcYfjXIS.js';
29
+ export { b as ChatConfig, c as ChatEvents, d as ChatMention, C as ChatMessage, e as ChatMessages, f as ChatPermissions, g as ChatReaction, h as ChatRoom, i as ChatRoomMember, j as ChatSidebar, k as ChatUser, l as CommandBar, m as CommandBarItem, n as CommandBarProps, o as CreateRoomDialog, I as InlineAiButton, p as InlineAiButtonProps, q as MOCK_PROJECTS, r as MOCK_USERS, s as MemberRole, O as OrganifyChat, v as OrganifyChatProps, R as RoomManagementPanel, w as RoomType, x as RoomVisibility, T as TypingIndicatorMock, U as UseAiInlineOptions, y as generateAutoReplies, z as getMockMentionOptions, A as getRoomPermissions, B as typingIndicator, D as useAiInline, E as useChat } from './inline-ai-DGF3HIoy.js';
30
30
  export { A as AiAction, a as AiChatMessage, b as AiChatSidebar, c as AiChatSidebarProps } from './ai-chat-sidebar-DnEOUzSL.js';
31
31
  export { Notification, NotificationBell, NotificationBellProps, NotificationItem, NotificationItemProps, NotificationList, NotificationListProps, NotificationMetadata, NotificationPreferenceChannel, NotificationPreferences, NotificationPriority, NotificationType, OrganifyNotifications, OrganifyNotificationsProps, PresenceAvatarStack, PresenceAvatarStackProps, PresenceIndicator, PresenceIndicatorProps, PresenceStatus, PresenceUser, UserPresence, useNotifications, usePresence } from './components/notifications/index.js';
32
32
  export { AiAdminLog, AiAdminLogsResponse, AiAdminStatsResponse, AiAdminUserStat, AiAdminUsersResponse, AiChatResponse, AiClient, AiClientConfig, AiCommandResponse, AiResetResponse, AiSuggestResponse, AiUsageResponse, UseAiChatOptions, UseAiChatResult, UseAiCommandOptions, UseAiCommandResult, UseAiSuggestOptions, UseAiSuggestResult, UseAiUsageResult, createAiClient, useAiChat, useAiCommand, useAiSuggest, useAiUsage } from './ai/index.js';
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ export { NotificationBell, NotificationItem, NotificationList, OrganifyNotificat
3
3
  export { createAiClient, useAiChat, useAiCommand, useAiSuggest, useAiUsage } from './chunk-NV4RWAQ2.js';
4
4
  export { I18nProvider, createTranslator, useI18n } from './chunk-FQA33MF4.js';
5
5
  export { ThemeProvider, useTheme } from './chunk-RFOKENE3.js';
6
- import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, UserAvatar, ResponsiveDialog, Separator, Label, Input, Textarea, Button, UserDisplayName, Tabs, TabsList, TabsTrigger, TabsContent, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, DialogFooter, DialogClose } from './chunk-V3UZIPZA.js';
7
- 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, 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 } from './chunk-V3UZIPZA.js';
6
+ import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, UserAvatar, ResponsiveDialog, Separator, Label, Input, Textarea, Button, UserDisplayName, Tabs, TabsList, TabsTrigger, TabsContent, Select, SelectTrigger, SelectValue, SelectContent, SelectItem, DialogFooter, DialogClose } from './chunk-5VC6DBVW.js';
7
+ 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, 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 } from './chunk-5VC6DBVW.js';
8
8
  import { cn, Drawer, DrawerContent, DrawerHeader, DrawerTitle, DrawerDescription, Skeleton, useOrganify, useOrganifyGql, Avatar, AvatarFallback, useOrganifyUser, useOrganifyApi, Badge, ScrollArea, useOrganifyWorkspace, useOrganifyNavigation, useOrganifyProject, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, AvatarImage } from './chunk-UUBQQVDM.js';
9
9
  export { Avatar, AvatarFallback, AvatarImage, Badge, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, OrganifyContext, OrganifyProvider, ScrollArea, ScrollBar, Skeleton, SkeletonCard, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, avatarVariants, badgeVariants, cn, useOrganify, useOrganifyApi, useOrganifyGql, useOrganifyNavigation, useOrganifyProject, useOrganifyRest, useOrganifyUser, useOrganifyWorkspace } from './chunk-UUBQQVDM.js';
10
10
  import { OrgDiamond, OrgPlus, OrgComment, OrgEdit, OrgTrash, OrgSprint, OrgCheckCircle, OrgAttachment, OrgCalendar, OrgMail, OrgBoard, OrgRocket, OrgWarning, OrgFlag, OrgShield, OrgZap, OrgStar } from './chunk-MZKEDV5W.js';
@@ -17,6 +17,8 @@ interface ChatRoom {
17
17
  createdBy: string | null;
18
18
  archived: boolean;
19
19
  lastMessageAt: string | null;
20
+ /** Whether the current user has explicitly joined this room this session */
21
+ isJoined?: boolean;
20
22
  }
21
23
  interface ChatRoomMember {
22
24
  id: string;
@@ -203,6 +205,8 @@ interface RoomManagementPanelProps {
203
205
  permissions: ChatPermissions;
204
206
  currentUserId: string;
205
207
  loading?: boolean;
208
+ /** All workspace members — used to resolve names and for the "add member" search */
209
+ workspaceMembers?: ChatUser[];
206
210
  onClose: () => void;
207
211
  onUpdateRoom: (roomId: string, updates: {
208
212
  name?: string;
@@ -213,9 +217,10 @@ interface RoomManagementPanelProps {
213
217
  onLeaveRoom: (roomId: string) => Promise<void>;
214
218
  onRemoveMember: (roomId: string, userId: string) => Promise<void>;
215
219
  onUpdateMemberRole: (roomId: string, userId: string, role: MemberRole) => Promise<void>;
220
+ onAddMember?: (roomId: string, userId: string) => Promise<void>;
216
221
  className?: string;
217
222
  }
218
- declare function RoomManagementPanel({ room, members, permissions, currentUserId, loading, onClose, onUpdateRoom, onArchiveRoom, onLeaveRoom, onRemoveMember, onUpdateMemberRole, className, }: RoomManagementPanelProps): react_jsx_runtime.JSX.Element;
223
+ declare function RoomManagementPanel({ room, members, permissions, currentUserId, loading, workspaceMembers, onClose, onUpdateRoom, onArchiveRoom, onLeaveRoom, onRemoveMember, onUpdateMemberRole, onAddMember, className, }: RoomManagementPanelProps): react_jsx_runtime.JSX.Element;
219
224
 
220
225
  interface UseChatOptions {
221
226
  workspaceRole?: 'OWNER' | 'ADMIN' | 'MEMBER' | 'GUEST';
@@ -287,6 +292,7 @@ declare function useChat(options?: UseChatOptions): {
287
292
  displayName: string;
288
293
  avatarUrl?: string;
289
294
  }>;
295
+ joinRoom: (roomId: string, roomType: string) => Promise<void>;
290
296
  };
291
297
 
292
298
  type MentionType = 'user' | 'project' | 'task';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "organify-ui",
3
- "version": "0.3.39",
3
+ "version": "0.3.40",
4
4
  "description": "Organify Design System — Liquid Glass UI components with glassmorphism, branded icons, i18n, and theme system for React",
5
5
  "license": "MIT",
6
6
  "author": "Organify <dev@organify.studio>",