@burdenoff/microfe-conversations 2026.525.1 → 2026.525.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.
- package/package.json +1 -1
- package/dist/__tests__/setup.d.ts +0 -2
- package/dist/__tests__/setup.d.ts.map +0 -1
- package/dist/conversations/ConversationsAdminRoot.d.ts +0 -19
- package/dist/conversations/ConversationsAdminRoot.d.ts.map +0 -1
- package/dist/conversations/ConversationsAdminRoutes.d.ts +0 -18
- package/dist/conversations/ConversationsAdminRoutes.d.ts.map +0 -1
- package/dist/conversations/ConversationsRoot.d.ts +0 -33
- package/dist/conversations/ConversationsRoot.d.ts.map +0 -1
- package/dist/conversations/ConversationsUserRoot.d.ts +0 -17
- package/dist/conversations/ConversationsUserRoot.d.ts.map +0 -1
- package/dist/conversations/ConversationsUserRoutes.d.ts +0 -12
- package/dist/conversations/ConversationsUserRoutes.d.ts.map +0 -1
- package/dist/conversations/components/ConversationCard.d.ts +0 -14
- package/dist/conversations/components/ConversationCard.d.ts.map +0 -1
- package/dist/conversations/components/LazyPageBoundary.d.ts +0 -25
- package/dist/conversations/components/LazyPageBoundary.d.ts.map +0 -1
- package/dist/conversations/components/MessageBubble.d.ts +0 -21
- package/dist/conversations/components/MessageBubble.d.ts.map +0 -1
- package/dist/conversations/components/PageLayout.d.ts +0 -57
- package/dist/conversations/components/PageLayout.d.ts.map +0 -1
- package/dist/conversations/components/PermissionGuard.d.ts +0 -21
- package/dist/conversations/components/PermissionGuard.d.ts.map +0 -1
- package/dist/conversations/constants/featureFlags.d.ts +0 -8
- package/dist/conversations/constants/featureFlags.d.ts.map +0 -1
- package/dist/conversations/constants/permissions.d.ts +0 -174
- package/dist/conversations/constants/permissions.d.ts.map +0 -1
- package/dist/conversations/hooks/useAdminFeatureFlags.d.ts +0 -8
- package/dist/conversations/hooks/useAdminFeatureFlags.d.ts.map +0 -1
- package/dist/conversations/hooks/useConversationQueries.d.ts +0 -83
- package/dist/conversations/hooks/useConversationQueries.d.ts.map +0 -1
- package/dist/conversations/hooks/useExportConversation.d.ts +0 -10
- package/dist/conversations/hooks/useExportConversation.d.ts.map +0 -1
- package/dist/conversations/hooks/useMessageQueries.d.ts +0 -85
- package/dist/conversations/hooks/useMessageQueries.d.ts.map +0 -1
- package/dist/conversations/hooks/useMessageSubscriptions.d.ts +0 -24
- package/dist/conversations/hooks/useMessageSubscriptions.d.ts.map +0 -1
- package/dist/conversations/hooks/useUserFeatureFlags.d.ts +0 -5
- package/dist/conversations/hooks/useUserFeatureFlags.d.ts.map +0 -1
- package/dist/conversations/index.d.ts +0 -31
- package/dist/conversations/index.d.ts.map +0 -1
- package/dist/conversations/pages/AdminConversationsLandingPage.d.ts +0 -9
- package/dist/conversations/pages/AdminConversationsLandingPage.d.ts.map +0 -1
- package/dist/conversations/pages/ConversationAdminPages.d.ts +0 -5
- package/dist/conversations/pages/ConversationAdminPages.d.ts.map +0 -1
- package/dist/conversations/pages/ConversationDetailPage.d.ts +0 -2
- package/dist/conversations/pages/ConversationDetailPage.d.ts.map +0 -1
- package/dist/conversations/pages/ConversationListPage.d.ts +0 -5
- package/dist/conversations/pages/ConversationListPage.d.ts.map +0 -1
- package/dist/conversations/pages/ConversationsLandingPage.d.ts +0 -9
- package/dist/conversations/pages/ConversationsLandingPage.d.ts.map +0 -1
- package/dist/conversations/pages/ConversationsSettingsPage.d.ts +0 -2
- package/dist/conversations/pages/ConversationsSettingsPage.d.ts.map +0 -1
- package/dist/conversations/pages/NewConversationPage.d.ts +0 -2
- package/dist/conversations/pages/NewConversationPage.d.ts.map +0 -1
- package/dist/conversations/providers/ConversationsProvider.d.ts +0 -13
- package/dist/conversations/providers/ConversationsProvider.d.ts.map +0 -1
- package/dist/conversations/store/conversationsStore.d.ts +0 -29
- package/dist/conversations/store/conversationsStore.d.ts.map +0 -1
- package/dist/conversations/types/index.d.ts +0 -352
- package/dist/conversations/types/index.d.ts.map +0 -1
- package/dist/conversations/utils/cn.d.ts +0 -8
- package/dist/conversations/utils/cn.d.ts.map +0 -1
- package/dist/conversations/utils/i18n.d.ts +0 -15
- package/dist/conversations/utils/i18n.d.ts.map +0 -1
- package/dist/conversations/utils/mappers.d.ts +0 -32
- package/dist/conversations/utils/mappers.d.ts.map +0 -1
- package/dist/conversations/utils/navigation.d.ts +0 -18
- package/dist/conversations/utils/navigation.d.ts.map +0 -1
- package/dist/dev/main.d.ts +0 -2
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts +0 -2
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts +0 -23527
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -2008
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts +0 -57851
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -3
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { Message, MessageType } from '../types';
|
|
2
|
-
|
|
3
|
-
interface UseGetMessagesOptions {
|
|
4
|
-
first?: number;
|
|
5
|
-
after?: string;
|
|
6
|
-
before?: string;
|
|
7
|
-
}
|
|
8
|
-
interface UseGetMessagesResult {
|
|
9
|
-
messages: Message[];
|
|
10
|
-
loading: boolean;
|
|
11
|
-
error: Error | null;
|
|
12
|
-
hasNextPage: boolean;
|
|
13
|
-
hasPreviousPage: boolean;
|
|
14
|
-
fetchMore: () => void;
|
|
15
|
-
fetchPrevious: () => void;
|
|
16
|
-
refetch: () => void;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Hook: Fetch paginated messages for a conversation.
|
|
20
|
-
*/
|
|
21
|
-
export declare function useGetMessages(conversationId: string, options?: UseGetMessagesOptions): UseGetMessagesResult;
|
|
22
|
-
interface UseGetThreadResult {
|
|
23
|
-
messages: Message[];
|
|
24
|
-
loading: boolean;
|
|
25
|
-
error: Error | null;
|
|
26
|
-
fetchMore: () => void;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Hook: Fetch thread replies for a message.
|
|
30
|
-
*/
|
|
31
|
-
export declare function useGetThread(messageId: string, options?: {
|
|
32
|
-
first?: number;
|
|
33
|
-
after?: string;
|
|
34
|
-
}): UseGetThreadResult;
|
|
35
|
-
interface SendMessageInput {
|
|
36
|
-
conversationId: string;
|
|
37
|
-
content: string;
|
|
38
|
-
type?: MessageType;
|
|
39
|
-
parentMessageId?: string;
|
|
40
|
-
attachmentIds?: string[];
|
|
41
|
-
mentionUserIds?: string[];
|
|
42
|
-
refetchFirst?: number;
|
|
43
|
-
}
|
|
44
|
-
interface UseSendMessageResult {
|
|
45
|
-
sendMessage: (input: SendMessageInput) => Promise<Message | null>;
|
|
46
|
-
loading: boolean;
|
|
47
|
-
error: Error | null;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Hook: Send a message to a conversation.
|
|
51
|
-
*/
|
|
52
|
-
export declare function useSendMessage(): UseSendMessageResult;
|
|
53
|
-
interface UseEditMessageResult {
|
|
54
|
-
editMessage: (messageId: string, content: string, reason?: string) => Promise<Message | null>;
|
|
55
|
-
loading: boolean;
|
|
56
|
-
error: Error | null;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Hook: Edit an existing message.
|
|
60
|
-
*/
|
|
61
|
-
export declare function useEditMessage(): UseEditMessageResult;
|
|
62
|
-
interface UseMessageActionsResult {
|
|
63
|
-
deleteMessage: (messageId: string) => Promise<boolean>;
|
|
64
|
-
addReaction: (messageId: string, emoji: string) => Promise<boolean>;
|
|
65
|
-
removeReaction: (messageId: string, emoji: string) => Promise<boolean>;
|
|
66
|
-
pinMessage: (messageId: string) => Promise<boolean>;
|
|
67
|
-
unpinMessage: (messageId: string) => Promise<boolean>;
|
|
68
|
-
loading: boolean;
|
|
69
|
-
error: Error | null;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Hook: Message action mutations (delete, react, pin).
|
|
73
|
-
*/
|
|
74
|
-
export declare function useMessageActions(): UseMessageActionsResult;
|
|
75
|
-
interface UseSearchMessagesResult {
|
|
76
|
-
messages: Message[];
|
|
77
|
-
loading: boolean;
|
|
78
|
-
error: Error | null;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Hook: Search messages across conversations or within a conversation.
|
|
82
|
-
*/
|
|
83
|
-
export declare function useSearchMessages(query: string, conversationId?: string): UseSearchMessagesResult;
|
|
84
|
-
export {};
|
|
85
|
-
//# sourceMappingURL=useMessageQueries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageQueries.d.ts","sourceRoot":"","sources":["../../../src/conversations/hooks/useMessageQueries.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIrD,UAAU,qBAAqB;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,oBAAoB,CAsDtB;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAA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AAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACpE,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvE,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACpD,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACtD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,uBAAuB,CA0E3D;AAED,UAAU,uBAAuB;IAC/B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,cAAc,CAAC,EAAE,MAAM,GACtB,uBAAuB,CAezB"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare function useMessageStreamForConversation(conversationId: string | undefined): void;
|
|
2
|
-
/**
|
|
3
|
-
* Reactions stream: subscribe per-message. Useful for a focused message
|
|
4
|
-
* preview (not the entire conversation).
|
|
5
|
-
*/
|
|
6
|
-
export declare function useReactionStreamForMessage(messageId: string | undefined): void;
|
|
7
|
-
/**
|
|
8
|
-
* Read-receipt stream for a single message — used by the read-by indicator.
|
|
9
|
-
*/
|
|
10
|
-
export declare function useReadReceiptStreamForMessage(messageId: string | undefined): void;
|
|
11
|
-
/**
|
|
12
|
-
* Subscribe to all conversation-level lifecycle events for the current actor.
|
|
13
|
-
*
|
|
14
|
-
* - `conversationAdded` — refresh the conversation list when one is created.
|
|
15
|
-
* - `conversationDeleted` — evict from cache when one is removed.
|
|
16
|
-
* - `conversationUpdated` — Apollo normalisation handles automatically; no
|
|
17
|
-
* manual write required.
|
|
18
|
-
* - `participantChanged` — refresh members panel.
|
|
19
|
-
*
|
|
20
|
-
* Use at the top of the list page / landing page once. Safe to call multiple
|
|
21
|
-
* times across components — Apollo deduplicates.
|
|
22
|
-
*/
|
|
23
|
-
export declare function useConversationStream(conversationId?: string | undefined): void;
|
|
24
|
-
//# sourceMappingURL=useMessageSubscriptions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageSubscriptions.d.ts","sourceRoot":"","sources":["../../../src/conversations/hooks/useMessageSubscriptions.ts"],"names":[],"mappings":"AAmGA,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,MAAM,GAAG,SAAS,GACjC,IAAI,CAwCN;AAED;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,SAAS,EAAE,MAAM,GAAG,SAAS,GAC5B,IAAI,CASN;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,MAAM,GAAG,SAAS,GAC5B,IAAI,CASN;AAmBD;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CACnC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,GAClC,IAAI,CA0DN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUserFeatureFlags.d.ts","sourceRoot":"","sources":["../../../src/conversations/hooks/useUserFeatureFlags.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CAMtD"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Conversations Microfrontend
|
|
3
|
-
*
|
|
4
|
-
* Provides a comprehensive messaging and conversation interface
|
|
5
|
-
* for direct messages, group chats, channels, and threaded discussions.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* import { ConversationsRoot, type ConversationsRootProps } from '@burdenoff/micro-fe/conversations';
|
|
10
|
-
*
|
|
11
|
-
* function App() {
|
|
12
|
-
* const props: ConversationsRootProps = {
|
|
13
|
-
* basePath: '/conversations',
|
|
14
|
-
* navigate: (path) => router.push(path),
|
|
15
|
-
* currentUser: { id: '1', email: 'user@example.com' },
|
|
16
|
-
* workspaceId: 'ws-123',
|
|
17
|
-
* apiGatewayUrl: 'https://api.example.com',
|
|
18
|
-
* authToken: 'token',
|
|
19
|
-
* };
|
|
20
|
-
*
|
|
21
|
-
* return <ConversationsRoot {...props} />;
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export { ConversationsRoot } from './ConversationsRoot';
|
|
26
|
-
export { ConversationsUserRoot } from './ConversationsUserRoot';
|
|
27
|
-
export { ConversationsAdminRoot } from './ConversationsAdminRoot';
|
|
28
|
-
export type { ConversationsRootProps, Conversation, Message, Participant, Reaction, Attachment, Mention, ConversationMembership, ConversationFilter, MessageFilter, ConversationType, ConversationState, ConversationVisibility, MessageType, MessageStatus, ParticipantRole, MembershipStatus, NotificationLevel, MentionType, PresenceStatus, ConversationsView, ConversationDisplayMode, } from './types';
|
|
29
|
-
export { useConversations } from './providers/ConversationsProvider';
|
|
30
|
-
export { useConversationsStore } from './store/conversationsStore';
|
|
31
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conversations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,YAAY,EACV,sBAAsB,EACtB,YAAY,EACZ,OAAO,EACP,WAAW,EACX,QAAQ,EACR,UAAU,EACV,OAAO,EACP,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,WAAW,EACX,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Admin-facing landing page for the Conversations microfrontend.
|
|
3
|
-
*
|
|
4
|
-
* Lightweight overview + section directory. Each card links to its canonical
|
|
5
|
-
* sub-route (`/moderation`, `/bulk`, `/audit`, `/apps`) for the API-backed
|
|
6
|
-
* admin surfaces.
|
|
7
|
-
*/
|
|
8
|
-
export declare function AdminConversationsLandingPage(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=AdminConversationsLandingPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminConversationsLandingPage.d.ts","sourceRoot":"","sources":["../../../src/conversations/pages/AdminConversationsLandingPage.tsx"],"names":[],"mappings":"AA2EA;;;;;;GAMG;AACH,wBAAgB,6BAA6B,4CAmE5C"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function ModerationQueuePage(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
export declare function BulkOperationsPage(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare function ConversationAuditLogPage(): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function AppInstallationsPage(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=ConversationAdminPages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationAdminPages.d.ts","sourceRoot":"","sources":["../../../src/conversations/pages/ConversationAdminPages.tsx"],"names":[],"mappings":"AAyPA,wBAAgB,mBAAmB,4CAoGlC;AAED,wBAAgB,kBAAkB,4CA2GjC;AAED,wBAAgB,wBAAwB,4CA0DvC;AAED,wBAAgB,oBAAoB,4CA+LnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationDetailPage.d.ts","sourceRoot":"","sources":["../../../src/conversations/pages/ConversationDetailPage.tsx"],"names":[],"mappings":"AA0CA,wBAAgB,sBAAsB,4CAuqBrC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export interface ConversationListPageProps {
|
|
2
|
-
forcedFilterParam?: "channel" | "direct" | "group" | "archived";
|
|
3
|
-
}
|
|
4
|
-
export declare function ConversationListPage({ forcedFilterParam, }?: ConversationListPageProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=ConversationListPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationListPage.d.ts","sourceRoot":"","sources":["../../../src/conversations/pages/ConversationListPage.tsx"],"names":[],"mappings":"AA2EA,MAAM,WAAW,yBAAyB;IACxC,iBAAiB,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;CACjE;AAED,wBAAgB,oBAAoB,CAAC,EACnC,iBAAiB,GAClB,GAAE,yBAA8B,2CA0YhC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tabbed landing page for the Conversations microfrontend.
|
|
3
|
-
*
|
|
4
|
-
* Renders an underline tab bar at the top and swaps the active panel
|
|
5
|
-
* based on the `?tab=...` URL search param. The first tab ("all") uses
|
|
6
|
-
* a clean URL with no `tab` param.
|
|
7
|
-
*/
|
|
8
|
-
export declare function ConversationsLandingPage(): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=ConversationsLandingPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationsLandingPage.d.ts","sourceRoot":"","sources":["../../../src/conversations/pages/ConversationsLandingPage.tsx"],"names":[],"mappings":"AAqCA;;;;;;GAMG;AACH,wBAAgB,wBAAwB,4CA8HvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationsSettingsPage.d.ts","sourceRoot":"","sources":["../../../src/conversations/pages/ConversationsSettingsPage.tsx"],"names":[],"mappings":"AAgBA,wBAAgB,yBAAyB,4CA+QxC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NewConversationPage.d.ts","sourceRoot":"","sources":["../../../src/conversations/pages/NewConversationPage.tsx"],"names":[],"mappings":"AA6CA,wBAAgB,mBAAmB,4CAoalC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { ConversationsRootProps } from '../types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Hook to access Conversations context
|
|
6
|
-
*/
|
|
7
|
-
export declare const useConversations: () => ConversationsRootProps;
|
|
8
|
-
/**
|
|
9
|
-
* Provider component for Conversations microfrontend
|
|
10
|
-
* Sets up routing, context, Apollo Client, and React Query client
|
|
11
|
-
*/
|
|
12
|
-
export declare const ConversationsProvider: FC<PropsWithChildren<ConversationsRootProps>>;
|
|
13
|
-
//# sourceMappingURL=ConversationsProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationsProvider.d.ts","sourceRoot":"","sources":["../../../src/conversations/providers/ConversationsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAmBnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAoDvD;;GAEG;AACH,eAAO,MAAM,gBAAgB,8BAQ5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CACpC,iBAAiB,CAAC,sBAAsB,CAAC,CAmM1C,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Conversation, ConversationFilter, ConversationDisplayMode } from '../types';
|
|
2
|
-
|
|
3
|
-
interface ConversationsState {
|
|
4
|
-
activeConversationId: string | null;
|
|
5
|
-
viewMode: ConversationDisplayMode;
|
|
6
|
-
searchQuery: string;
|
|
7
|
-
conversationFilter: ConversationFilter;
|
|
8
|
-
messageDrafts: Record<string, string>;
|
|
9
|
-
isSidebarOpen: boolean;
|
|
10
|
-
isParticipantsPanelOpen: boolean;
|
|
11
|
-
selectedConversations: Conversation[];
|
|
12
|
-
setActiveConversationId: (id: string | null) => void;
|
|
13
|
-
setViewMode: (mode: ConversationDisplayMode) => void;
|
|
14
|
-
setSearchQuery: (query: string) => void;
|
|
15
|
-
updateConversationFilter: (filter: Partial<ConversationFilter>) => void;
|
|
16
|
-
resetConversationFilter: () => void;
|
|
17
|
-
setMessageDraft: (conversationId: string, draft: string) => void;
|
|
18
|
-
clearMessageDraft: (conversationId: string) => void;
|
|
19
|
-
toggleSidebar: () => void;
|
|
20
|
-
setSidebarOpen: (open: boolean) => void;
|
|
21
|
-
toggleParticipantsPanel: () => void;
|
|
22
|
-
setParticipantsPanelOpen: (open: boolean) => void;
|
|
23
|
-
setSelectedConversations: (conversations: Conversation[]) => void;
|
|
24
|
-
toggleConversationSelection: (conversation: Conversation) => void;
|
|
25
|
-
clearSelection: () => void;
|
|
26
|
-
}
|
|
27
|
-
export declare const useConversationsStore: import('zustand').UseBoundStore<import('zustand').StoreApi<ConversationsState>>;
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=conversationsStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conversationsStore.d.ts","sourceRoot":"","sources":["../../../src/conversations/store/conversationsStore.ts"],"names":[],"mapp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AM,IAAI,CAAC;CAC5B;AAYD,eAAO,MAAM,qBAAqB,iFAyD/B,CAAC"}
|
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Navigation item for shell integration
|
|
3
|
-
*/
|
|
4
|
-
export interface NavItem {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
path: string;
|
|
8
|
-
icon?: React.ReactNode;
|
|
9
|
-
badge?: number;
|
|
10
|
-
order?: number;
|
|
11
|
-
group?: string;
|
|
12
|
-
visible?: boolean;
|
|
13
|
-
/** Nested children items for dropdown menus */
|
|
14
|
-
children?: NavItem[];
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Footer item for shell integration
|
|
18
|
-
*/
|
|
19
|
-
export interface FooterItem {
|
|
20
|
-
id: string;
|
|
21
|
-
label: string;
|
|
22
|
-
type: "status" | "action";
|
|
23
|
-
order?: number;
|
|
24
|
-
section: "left" | "center" | "right";
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Base microfrontend root props.
|
|
28
|
-
*/
|
|
29
|
-
export interface MicrofrontendRootProps {
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Props for the ConversationsRoot component
|
|
33
|
-
*/
|
|
34
|
-
export interface ConversationsRootProps extends MicrofrontendRootProps {
|
|
35
|
-
/**
|
|
36
|
-
* Base path for the conversations microfrontend
|
|
37
|
-
*/
|
|
38
|
-
basePath?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Workspace ID for scoping operations
|
|
41
|
-
*/
|
|
42
|
-
workspaceId?: string;
|
|
43
|
-
/**
|
|
44
|
-
* API Gateway URL for GraphQL requests
|
|
45
|
-
*/
|
|
46
|
-
apiGatewayUrl?: string;
|
|
47
|
-
/**
|
|
48
|
-
* Authentication token for API requests (platform identity JWT)
|
|
49
|
-
*/
|
|
50
|
-
authToken?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Workspace token for workspace-scoped API requests (workspace access JWT).
|
|
53
|
-
* The gateway requires both authToken (Authorization) and workspaceToken
|
|
54
|
-
* (X-Workspace-Authorization) for workspace operations.
|
|
55
|
-
*/
|
|
56
|
-
workspaceToken?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Optional token refresh callback provided by the shell.
|
|
59
|
-
*/
|
|
60
|
-
getWorkspaceToken?: () => Promise<string | null>;
|
|
61
|
-
/**
|
|
62
|
-
* Navigation function provided by the shell
|
|
63
|
-
*/
|
|
64
|
-
navigate?: (path: string) => void;
|
|
65
|
-
/**
|
|
66
|
-
* Current user information
|
|
67
|
-
*/
|
|
68
|
-
currentUser?: {
|
|
69
|
-
id: string;
|
|
70
|
-
email: string;
|
|
71
|
-
firstName?: string;
|
|
72
|
-
lastName?: string;
|
|
73
|
-
avatarUrl?: string;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* Optional callback when a conversation is selected
|
|
77
|
-
*/
|
|
78
|
-
onConversationSelect?: (conversation: Conversation) => void;
|
|
79
|
-
/**
|
|
80
|
-
* Optional callback when a message is sent
|
|
81
|
-
*/
|
|
82
|
-
onMessageSend?: (message: Message, conversationId: string) => void;
|
|
83
|
-
/**
|
|
84
|
-
* Optional default view to show
|
|
85
|
-
*/
|
|
86
|
-
defaultView?: ConversationsView;
|
|
87
|
-
/**
|
|
88
|
-
* Optional function to register navigation items with the shell
|
|
89
|
-
* Injected by the shell app
|
|
90
|
-
*/
|
|
91
|
-
registerNavItems?: (items: NavItem | NavItem[]) => () => void;
|
|
92
|
-
/**
|
|
93
|
-
* Optional function to register footer items with the shell
|
|
94
|
-
* Injected by the shell app
|
|
95
|
-
*/
|
|
96
|
-
registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
|
|
97
|
-
/**
|
|
98
|
-
* Which variant of the conversations UI is active.
|
|
99
|
-
*
|
|
100
|
-
* **Set by the Root component that is mounted** — host apps must not
|
|
101
|
-
* set this directly; any host-passed value is ignored because the
|
|
102
|
-
* Root component always overrides it before passing to the provider:
|
|
103
|
-
* - `ConversationsUserRoot` -> `"user"`
|
|
104
|
-
* - `ConversationsAdminRoot` -> `"admin"`
|
|
105
|
-
* - Legacy `ConversationsRoot` leaves this undefined (behaves as user).
|
|
106
|
-
*
|
|
107
|
-
* Consumers can branch on this inside the provider/context if needed.
|
|
108
|
-
*/
|
|
109
|
-
variant?: "user" | "admin";
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Conversation entity
|
|
113
|
-
*/
|
|
114
|
-
export interface Conversation {
|
|
115
|
-
id: string;
|
|
116
|
-
title: string;
|
|
117
|
-
description?: string;
|
|
118
|
-
avatar?: string;
|
|
119
|
-
settings?: Record<string, unknown>;
|
|
120
|
-
sourceContext?: {
|
|
121
|
-
product?: string;
|
|
122
|
-
pagePath: string;
|
|
123
|
-
contextHref: string;
|
|
124
|
-
contextTitle?: string;
|
|
125
|
-
entityType?: string;
|
|
126
|
-
entityId?: string;
|
|
127
|
-
activeTab?: string;
|
|
128
|
-
};
|
|
129
|
-
type: ConversationType;
|
|
130
|
-
state: ConversationState;
|
|
131
|
-
visibility: ConversationVisibility;
|
|
132
|
-
isGroup: boolean;
|
|
133
|
-
memberCount: number;
|
|
134
|
-
unreadCount: number;
|
|
135
|
-
mentionCount: number;
|
|
136
|
-
lastMessage?: Message;
|
|
137
|
-
isPinned: boolean;
|
|
138
|
-
isMuted: boolean;
|
|
139
|
-
features: ConversationFeatures;
|
|
140
|
-
createdBy: {
|
|
141
|
-
id: string;
|
|
142
|
-
name: string;
|
|
143
|
-
};
|
|
144
|
-
createdAt: string;
|
|
145
|
-
updatedAt: string;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Conversation features configuration
|
|
149
|
-
*/
|
|
150
|
-
export interface ConversationFeatures {
|
|
151
|
-
threads: boolean;
|
|
152
|
-
reactions: boolean;
|
|
153
|
-
mentions: boolean;
|
|
154
|
-
calls: boolean;
|
|
155
|
-
apps: boolean;
|
|
156
|
-
polls: boolean;
|
|
157
|
-
anonymousMode: boolean;
|
|
158
|
-
screenShare: boolean;
|
|
159
|
-
recording: boolean;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Conversation membership
|
|
163
|
-
*/
|
|
164
|
-
export interface ConversationMembership {
|
|
165
|
-
id: string;
|
|
166
|
-
conversationId: string;
|
|
167
|
-
userId: string;
|
|
168
|
-
role: ParticipantRole;
|
|
169
|
-
status: MembershipStatus;
|
|
170
|
-
unreadCount: number;
|
|
171
|
-
mentionCount: number;
|
|
172
|
-
notificationLevel: NotificationLevel;
|
|
173
|
-
isMuted: boolean;
|
|
174
|
-
isPinned: boolean;
|
|
175
|
-
canSendMessages: boolean;
|
|
176
|
-
canAddMembers: boolean;
|
|
177
|
-
canRemoveMembers: boolean;
|
|
178
|
-
joinedAt: string;
|
|
179
|
-
lastReadAt?: string;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Conversation participant (display-friendly)
|
|
183
|
-
*/
|
|
184
|
-
export interface Participant {
|
|
185
|
-
id: string;
|
|
186
|
-
userId: string;
|
|
187
|
-
name: string;
|
|
188
|
-
avatarUrl?: string;
|
|
189
|
-
role: ParticipantRole;
|
|
190
|
-
status: PresenceStatus;
|
|
191
|
-
joinedAt: string;
|
|
192
|
-
lastSeenAt?: string;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Message entity
|
|
196
|
-
*/
|
|
197
|
-
export interface Message {
|
|
198
|
-
id: string;
|
|
199
|
-
conversationId: string;
|
|
200
|
-
type: MessageType;
|
|
201
|
-
status: MessageStatus;
|
|
202
|
-
content: string;
|
|
203
|
-
authorId: string;
|
|
204
|
-
authorType: string;
|
|
205
|
-
isAnonymous: boolean;
|
|
206
|
-
sender: {
|
|
207
|
-
id: string;
|
|
208
|
-
name: string;
|
|
209
|
-
avatarUrl?: string;
|
|
210
|
-
};
|
|
211
|
-
parentMessageId?: string;
|
|
212
|
-
threadRootId?: string;
|
|
213
|
-
threadLevel: number;
|
|
214
|
-
replyCount: number;
|
|
215
|
-
isEdited: boolean;
|
|
216
|
-
editedAt?: string;
|
|
217
|
-
isPinned: boolean;
|
|
218
|
-
reactions: Reaction[];
|
|
219
|
-
mentions: Mention[];
|
|
220
|
-
attachments: Attachment[];
|
|
221
|
-
permissions: MessagePermissions;
|
|
222
|
-
createdAt: string;
|
|
223
|
-
updatedAt: string;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Message reaction
|
|
227
|
-
*/
|
|
228
|
-
export interface Reaction {
|
|
229
|
-
id: string;
|
|
230
|
-
emoji: string;
|
|
231
|
-
count: number;
|
|
232
|
-
users: Array<{
|
|
233
|
-
id: string;
|
|
234
|
-
name: string;
|
|
235
|
-
}>;
|
|
236
|
-
currentUserReacted: boolean;
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Message mention
|
|
240
|
-
*/
|
|
241
|
-
export interface Mention {
|
|
242
|
-
id: string;
|
|
243
|
-
mentionedUser?: string;
|
|
244
|
-
mentionType: MentionType;
|
|
245
|
-
offset: number;
|
|
246
|
-
length: number;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Message attachment
|
|
250
|
-
*/
|
|
251
|
-
export interface Attachment {
|
|
252
|
-
id: string;
|
|
253
|
-
fileId: string;
|
|
254
|
-
fileName: string;
|
|
255
|
-
fileSize: number;
|
|
256
|
-
mimeType: string;
|
|
257
|
-
downloadUrl?: string;
|
|
258
|
-
width?: number;
|
|
259
|
-
height?: number;
|
|
260
|
-
duration?: number;
|
|
261
|
-
thumbnail?: string;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Message permissions for current user
|
|
265
|
-
*/
|
|
266
|
-
export interface MessagePermissions {
|
|
267
|
-
canEdit: boolean;
|
|
268
|
-
canDelete: boolean;
|
|
269
|
-
canReact: boolean;
|
|
270
|
-
canReply: boolean;
|
|
271
|
-
canPin: boolean;
|
|
272
|
-
canHide: boolean;
|
|
273
|
-
canReport: boolean;
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* Conversation filter options
|
|
277
|
-
*/
|
|
278
|
-
export interface ConversationFilter {
|
|
279
|
-
search: string;
|
|
280
|
-
type: ConversationType | "all";
|
|
281
|
-
state: ConversationState | "all";
|
|
282
|
-
visibility: ConversationVisibility | "all";
|
|
283
|
-
hasUnread: boolean | undefined;
|
|
284
|
-
isPinned: boolean | undefined;
|
|
285
|
-
isMuted: boolean | undefined;
|
|
286
|
-
}
|
|
287
|
-
/**
|
|
288
|
-
* Message filter options
|
|
289
|
-
*/
|
|
290
|
-
export interface MessageFilter {
|
|
291
|
-
types?: MessageType[];
|
|
292
|
-
authorIds?: string[];
|
|
293
|
-
hasAttachments?: boolean;
|
|
294
|
-
hasMentions?: boolean;
|
|
295
|
-
isUnread?: boolean;
|
|
296
|
-
isPinned?: boolean;
|
|
297
|
-
fromDate?: string;
|
|
298
|
-
toDate?: string;
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* Conversation type
|
|
302
|
-
*/
|
|
303
|
-
export type ConversationType = "DIRECT" | "GROUP" | "CHANNEL" | "BROADCAST" | "SUPPORT" | "ANNOUNCEMENT" | "BOT";
|
|
304
|
-
/**
|
|
305
|
-
* Conversation state
|
|
306
|
-
*/
|
|
307
|
-
export type ConversationState = "ACTIVE" | "ARCHIVED" | "DELETED";
|
|
308
|
-
/**
|
|
309
|
-
* Conversation visibility
|
|
310
|
-
*/
|
|
311
|
-
export type ConversationVisibility = "PUBLIC" | "PRIVATE" | "PROTECTED";
|
|
312
|
-
/**
|
|
313
|
-
* Message type
|
|
314
|
-
*/
|
|
315
|
-
export type MessageType = "TEXT" | "FILE" | "IMAGE" | "VIDEO" | "AUDIO" | "SYSTEM" | "POLL";
|
|
316
|
-
/**
|
|
317
|
-
* Message status
|
|
318
|
-
*/
|
|
319
|
-
export type MessageStatus = "SENDING" | "SENT" | "DELIVERED" | "READ" | "FAILED" | "DELETED";
|
|
320
|
-
/**
|
|
321
|
-
* Participant role
|
|
322
|
-
*/
|
|
323
|
-
export type ParticipantRole = "OWNER" | "ADMIN" | "MODERATOR" | "MEMBER" | "GUEST" | "OBSERVER";
|
|
324
|
-
/**
|
|
325
|
-
* Membership status
|
|
326
|
-
*/
|
|
327
|
-
export type MembershipStatus = "ACTIVE" | "INVITED" | "LEFT" | "REMOVED" | "BANNED";
|
|
328
|
-
/**
|
|
329
|
-
* Notification level
|
|
330
|
-
*/
|
|
331
|
-
export type NotificationLevel = "ALL" | "MENTIONS" | "DIRECT" | "NONE";
|
|
332
|
-
/**
|
|
333
|
-
* Mention type
|
|
334
|
-
*/
|
|
335
|
-
export type MentionType = "USER" | "ALL" | "HERE" | "ROLE";
|
|
336
|
-
/**
|
|
337
|
-
* Presence status
|
|
338
|
-
*/
|
|
339
|
-
export type PresenceStatus = "ONLINE" | "OFFLINE" | "AWAY" | "DO_NOT_DISTURB";
|
|
340
|
-
/**
|
|
341
|
-
* Call type
|
|
342
|
-
*/
|
|
343
|
-
export type CallType = "AUDIO" | "VIDEO" | "SCREEN_SHARE" | "SCREEN_SHARE_WITH_CONTROL";
|
|
344
|
-
/**
|
|
345
|
-
* View mode for the conversations UI
|
|
346
|
-
*/
|
|
347
|
-
export type ConversationsView = "inbox" | "channels" | "directs" | "threads" | "archived" | "settings";
|
|
348
|
-
/**
|
|
349
|
-
* View mode for conversation list display
|
|
350
|
-
*/
|
|
351
|
-
export type ConversationDisplayMode = "list" | "grid" | "compact";
|
|
352
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/conversations/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EA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