@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
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/__tests__/setup.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ConversationsRootProps } from './types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Admin-facing Root component for the Conversations microfrontend.
|
|
6
|
-
*
|
|
7
|
-
* Mounted by `admin-app` under its `AdminGuard`. Registers the
|
|
8
|
-
* governance nav tree (Overview, Moderation, Bulk Operations,
|
|
9
|
-
* Audit Log, App Installations), sets the provider variant to
|
|
10
|
-
* `"admin"` internally (host-passed `variant` values are ignored),
|
|
11
|
-
* and renders `ConversationsAdminRoutes`.
|
|
12
|
-
*
|
|
13
|
-
* This Root currently ships with placeholder pages; real admin
|
|
14
|
-
* governance implementations land in follow-up tickets.
|
|
15
|
-
*
|
|
16
|
-
* Must NOT be mounted by user-facing app-shells.
|
|
17
|
-
*/
|
|
18
|
-
export declare const ConversationsAdminRoot: FC<ConversationsRootProps>;
|
|
19
|
-
//# sourceMappingURL=ConversationsAdminRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationsAdminRoot.d.ts","sourceRoot":"","sources":["../../src/conversations/ConversationsAdminRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAYhC,OAAO,KAAK,EAAW,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAM/D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,sBAAsB,CAkJ7D,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Admin-facing routes for the Conversations microfrontend.
|
|
3
|
-
*
|
|
4
|
-
* All imports in this file are eager — when real admin pages are added
|
|
5
|
-
* and become `React.lazy()`, wrap the `<Routes>` below in
|
|
6
|
-
* `<LazyPageBoundary source="admin">` (from ./components/LazyPageBoundary)
|
|
7
|
-
* to get the shared retry / spinner UI.
|
|
8
|
-
*
|
|
9
|
-
* Routes (relative to basePath, e.g., /conversations):
|
|
10
|
-
* - / -> AdminConversationsLandingPage (overview + section directory)
|
|
11
|
-
* - /moderation -> Moderation queue
|
|
12
|
-
* - /bulk -> Bulk operations
|
|
13
|
-
* - /audit -> Audit log viewer
|
|
14
|
-
* - /apps -> App installations
|
|
15
|
-
* - * -> redirect to landing
|
|
16
|
-
*/
|
|
17
|
-
export declare function ConversationsAdminRoutes(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
//# sourceMappingURL=ConversationsAdminRoutes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationsAdminRoutes.d.ts","sourceRoot":"","sources":["../../src/conversations/ConversationsAdminRoutes.tsx"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,wBAAwB,4CAkBvC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ConversationsRootProps } from './types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Root component for the Conversations microfrontend.
|
|
6
|
-
*
|
|
7
|
-
* This is the main entry point that host applications import and render.
|
|
8
|
-
* It sets up the necessary providers and renders the internal routing.
|
|
9
|
-
* Automatically registers navigation items with the shell if registration functions are provided.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* import { ConversationsRoot, type ConversationsRootProps } from '@burdenoff/micro-fe/conversations';
|
|
14
|
-
*
|
|
15
|
-
* function App() {
|
|
16
|
-
* const props: ConversationsRootProps = {
|
|
17
|
-
* basePath: '/conversations',
|
|
18
|
-
* navigate: (path) => router.push(path),
|
|
19
|
-
* currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },
|
|
20
|
-
* workspaceId: 'ws-123',
|
|
21
|
-
* apiGatewayUrl: 'https://api.example.com',
|
|
22
|
-
* authToken: 'token',
|
|
23
|
-
* defaultView: 'inbox',
|
|
24
|
-
* onConversationSelect: (conversation) => console.log('Conversation selected:', conversation),
|
|
25
|
-
* registerNavItems: (items) => { return () => {}; },
|
|
26
|
-
* };
|
|
27
|
-
*
|
|
28
|
-
* return <ConversationsRoot {...props} />;
|
|
29
|
-
* }
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare const ConversationsRoot: FC<ConversationsRootProps>;
|
|
33
|
-
//# sourceMappingURL=ConversationsRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationsRoot.d.ts","sourceRoot":"","sources":["../../src/conversations/ConversationsRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAW,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAK/D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAkHxD,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ConversationsRootProps } from './types';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* User-facing Root component for the Conversations microfrontend.
|
|
6
|
-
*
|
|
7
|
-
* Mounted by user app-shells (vibecontrols-app, bigconsole-app,
|
|
8
|
-
* workspaces-app, …). Registers the user nav tree (Inbox, All
|
|
9
|
-
* conversations, New conversation, Archived, Settings), sets the
|
|
10
|
-
* provider variant to `"user"` internally (host-passed `variant`
|
|
11
|
-
* values are ignored), and renders `ConversationsUserRoutes`.
|
|
12
|
-
*
|
|
13
|
-
* Admin governance surfaces live in `ConversationsAdminRoot` and
|
|
14
|
-
* must not be reached through this Root.
|
|
15
|
-
*/
|
|
16
|
-
export declare const ConversationsUserRoot: FC<ConversationsRootProps>;
|
|
17
|
-
//# sourceMappingURL=ConversationsUserRoot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationsUserRoot.d.ts","sourceRoot":"","sources":["../../src/conversations/ConversationsUserRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAW,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAK/D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,sBAAsB,CAoH5D,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* User-facing routes for the Conversations microfrontend.
|
|
3
|
-
*
|
|
4
|
-
* Routes (relative to basePath, e.g., /conversations):
|
|
5
|
-
* - / -> Conversation list page (inbox tabs)
|
|
6
|
-
* - /list -> Conversation list page
|
|
7
|
-
* - /new -> Create new conversation
|
|
8
|
-
* - /:conversationId -> Conversation detail (chat view)
|
|
9
|
-
* - /settings -> Personal notification settings
|
|
10
|
-
*/
|
|
11
|
-
export declare function ConversationsUserRoutes(): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
//# sourceMappingURL=ConversationsUserRoutes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationsUserRoutes.d.ts","sourceRoot":"","sources":["../../src/conversations/ConversationsUserRoutes.tsx"],"names":[],"mappings":"AAgCA;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,4CAatC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Conversation } from '../types';
|
|
2
|
-
|
|
3
|
-
interface ConversationCardProps {
|
|
4
|
-
conversation: Conversation;
|
|
5
|
-
isActive?: boolean;
|
|
6
|
-
onClick?: (conversation: Conversation) => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* ConversationCard - Displays a conversation in the list view.
|
|
10
|
-
* Shows avatar, title, last message preview, unread count, and metadata.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ConversationCard: import('react').NamedExoticComponent<ConversationCardProps>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=ConversationCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationCard.d.ts","sourceRoot":"","sources":["../../../src/conversations/components/ConversationCard.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,UAAU,qBAAqB;IAC7B,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAC;CAChD;AAkED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,6DA+J3B,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ComponentType, LazyExoticComponent, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
export declare function lazyRetry<TProps extends object = object>(factory: () => Promise<{
|
|
4
|
-
default: ComponentType<TProps>;
|
|
5
|
-
}>): LazyExoticComponent<ComponentType<TProps>>;
|
|
6
|
-
/**
|
|
7
|
-
* Fallback spinner rendered while a lazy-loaded page chunk is resolving.
|
|
8
|
-
*/
|
|
9
|
-
export declare function PageLoader(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
/**
|
|
11
|
-
* Wraps a subtree with `<LazyErrorBoundary>` + `<Suspense>` so that any
|
|
12
|
-
* `React.lazy()` / `lazyRetry()` page chunk below it gets a consistent
|
|
13
|
-
* loading spinner and retry UI.
|
|
14
|
-
*
|
|
15
|
-
* The Suspense is keyed by the boundary's internal `retryKey` counter
|
|
16
|
-
* so non-chunk render errors can be recovered by unmounting + remounting
|
|
17
|
-
* the subtree. Chunk-load errors bypass this path and trigger a full
|
|
18
|
-
* page reload (see `LazyErrorBoundary.handleRetry` — React.lazy's
|
|
19
|
-
* promise cache cannot be cleared without creating a fresh lazy ref).
|
|
20
|
-
*/
|
|
21
|
-
export declare function LazyPageBoundary({ children, source, }: {
|
|
22
|
-
children: ReactNode;
|
|
23
|
-
source?: string;
|
|
24
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
//# sourceMappingURL=LazyPageBoundary.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LazyPageBoundary.d.ts","sourceRoot":"","sources":["../../../src/conversations/components/LazyPageBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EAElB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA8Ef,wBAAgB,SAAS,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,EACtD,OAAO,EAAE,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC,GACzD,mBAAmB,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAe5C;AAED;;GAEG;AACH,wBAAgB,UAAU,4CAMzB;AAqND;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,2CAUA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Message } from '../types';
|
|
2
|
-
|
|
3
|
-
interface MessageBubbleProps {
|
|
4
|
-
message: Message;
|
|
5
|
-
isOwnMessage?: boolean;
|
|
6
|
-
showAvatar?: boolean;
|
|
7
|
-
showSender?: boolean;
|
|
8
|
-
onReply?: (message: Message) => void;
|
|
9
|
-
onReact?: (messageId: string, emoji: string) => void;
|
|
10
|
-
onEdit?: (message: Message) => void;
|
|
11
|
-
onDelete?: (messageId: string) => void;
|
|
12
|
-
onTogglePin?: (messageId: string, isPinned: boolean) => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* MessageBubble - Displays a single message in a chat view.
|
|
16
|
-
* Supports own messages (right-aligned) and other messages (left-aligned).
|
|
17
|
-
* Shows sender info, content, timestamp, reactions, and action buttons.
|
|
18
|
-
*/
|
|
19
|
-
export declare const MessageBubble: import('react').NamedExoticComponent<MessageBubbleProps>;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=MessageBubble.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessageBubble.d.ts","sourceRoot":"","sources":["../../../src/conversations/components/MessageBubble.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExC,UAAU,kBAAkB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9D;AAiDD;;;;GAIG;AACH,eAAO,MAAM,aAAa,0DAoTxB,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
interface PageLayoutProps {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
/** Page title */
|
|
6
|
-
title?: string;
|
|
7
|
-
/** Page subtitle/description */
|
|
8
|
-
subtitle?: string;
|
|
9
|
-
/** Icon component to display next to title */
|
|
10
|
-
icon?: ReactNode;
|
|
11
|
-
/** Actions to display in header (buttons, etc.) */
|
|
12
|
-
headerActions?: ReactNode;
|
|
13
|
-
/** Additional header content below title */
|
|
14
|
-
headerContent?: ReactNode;
|
|
15
|
-
/** Maximum width of content: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full' */
|
|
16
|
-
maxWidth?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full";
|
|
17
|
-
/** Whether to show the header section */
|
|
18
|
-
showHeader?: boolean;
|
|
19
|
-
/** Additional CSS classes for the container */
|
|
20
|
-
className?: string;
|
|
21
|
-
/** Additional CSS classes for the content area */
|
|
22
|
-
contentClassName?: string;
|
|
23
|
-
/** Stable selector for guided tours and smoke tests */
|
|
24
|
-
dataTour?: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* PageLayout - A consistent page wrapper with responsive design
|
|
28
|
-
*
|
|
29
|
-
* Features:
|
|
30
|
-
* - Proper max-width constraints
|
|
31
|
-
* - Responsive padding
|
|
32
|
-
* - Animated entrance
|
|
33
|
-
* - Consistent header styling
|
|
34
|
-
*/
|
|
35
|
-
export declare function PageLayout({ children, title, subtitle, icon, headerActions, headerContent, maxWidth, showHeader, className, contentClassName, dataTour, }: PageLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
/**
|
|
37
|
-
* PageSection - A section within a page with consistent spacing
|
|
38
|
-
*/
|
|
39
|
-
export declare function PageSection({ children, title, description, actions, className, }: {
|
|
40
|
-
children: ReactNode;
|
|
41
|
-
title?: string;
|
|
42
|
-
description?: string;
|
|
43
|
-
actions?: ReactNode;
|
|
44
|
-
className?: string;
|
|
45
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
/**
|
|
47
|
-
* EmptyState - A consistent empty state component
|
|
48
|
-
*/
|
|
49
|
-
export declare function EmptyState({ icon, title, description, action, className, }: {
|
|
50
|
-
icon?: ReactNode;
|
|
51
|
-
title: string;
|
|
52
|
-
description?: string;
|
|
53
|
-
action?: ReactNode;
|
|
54
|
-
className?: string;
|
|
55
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
export {};
|
|
57
|
-
//# sourceMappingURL=PageLayout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../../src/conversations/components/PageLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC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rB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAyBA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { ConversationsPermission } from '../constants/permissions';
|
|
3
|
-
|
|
4
|
-
interface PermissionGuardProps {
|
|
5
|
-
permission: ConversationsPermission;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
allowUnavailablePermissions?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Wraps page content with a permission check.
|
|
11
|
-
* Shows a loading spinner while permissions resolve, then either
|
|
12
|
-
* renders children (if permitted) or an AccessDenied screen.
|
|
13
|
-
*
|
|
14
|
-
* `allowUnavailablePermissions` is for user-facing routes whose backend
|
|
15
|
-
* resolvers remain authoritative but whose host shell may not have hydrated
|
|
16
|
-
* local RBAC context yet. It only permits rendering when permission data is
|
|
17
|
-
* unavailable; explicit loaded denials still render AccessDenied.
|
|
18
|
-
*/
|
|
19
|
-
export declare const PermissionGuard: FC<PermissionGuardProps>;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=PermissionGuard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionGuard.d.ts","sourceRoot":"","sources":["../../../src/conversations/components/PermissionGuard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQ3C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAExE,UAAU,oBAAoB;IAC5B,UAAU,EAAE,uBAAuB,CAAC;IACpC,QAAQ,EAAE,SAAS,CAAC;IACpB,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA+CpD,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const CONVERSATIONS_FLAGS: {
|
|
2
|
-
readonly MODERATION: "conversations.moderation";
|
|
3
|
-
readonly BULK_OPERATIONS: "conversations.bulk-operations";
|
|
4
|
-
readonly AUDIT_LOG: "conversations.audit-log";
|
|
5
|
-
readonly APP_INSTALLATIONS: "conversations.app-installations";
|
|
6
|
-
readonly ARCHIVED_VIEW: "conversations.archived-view";
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=featureFlags.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"featureFlags.d.ts","sourceRoot":"","sources":["../../../src/conversations/constants/featureFlags.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;CAMtB,CAAC"}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RBAC permission constants for the Conversations microfrontend.
|
|
3
|
-
*
|
|
4
|
-
* Mirrors the @rbac directives in wspace-conversations-svc
|
|
5
|
-
* (12 resources × 17+ actions, all scopeType: "wspace").
|
|
6
|
-
*
|
|
7
|
-
* Three records are exported:
|
|
8
|
-
* - CONVERSATIONS_PERMISSIONS — master record (union of everything)
|
|
9
|
-
* - CONVERSATIONS_USER_PERMISSIONS — curated subset safe for user-facing UI
|
|
10
|
-
* - CONVERSATIONS_ADMIN_PERMISSIONS — curated subset for admin / governance UI
|
|
11
|
-
*
|
|
12
|
-
* Three derived union types are exported alongside:
|
|
13
|
-
* - ConversationsPermission
|
|
14
|
-
* - ConversationsUserPermission
|
|
15
|
-
* - ConversationsAdminPermission
|
|
16
|
-
*
|
|
17
|
-
* The USER / ADMIN split is a UI-level convention — the backend gateway
|
|
18
|
-
* enforces the real rule via @rbac directives and resolver-level ownership
|
|
19
|
-
* checks. See `workspaces-specs/modules/conversations/ADMIN-USER-SPLIT.md`
|
|
20
|
-
* (ownership rule + naming-convention note) and `RBAC.md` for the canonical
|
|
21
|
-
* role-to-permission mapping.
|
|
22
|
-
*/
|
|
23
|
-
export declare const CONVERSATIONS_PERMISSIONS: {
|
|
24
|
-
readonly CONVERSATION_READ: "conversation:read";
|
|
25
|
-
readonly CONVERSATION_LIST: "conversation:list";
|
|
26
|
-
readonly CONVERSATION_CREATE: "conversation:create";
|
|
27
|
-
readonly CONVERSATION_UPDATE: "conversation:update";
|
|
28
|
-
readonly CONVERSATION_DELETE: "conversation:delete";
|
|
29
|
-
readonly CONVERSATION_ARCHIVE: "conversation:archive";
|
|
30
|
-
readonly CONVERSATION_UNARCHIVE: "conversation:unarchive";
|
|
31
|
-
readonly MESSAGE_READ: "message:read";
|
|
32
|
-
readonly MESSAGE_CREATE: "message:create";
|
|
33
|
-
readonly MESSAGE_UPDATE: "message:update";
|
|
34
|
-
readonly MESSAGE_DELETE: "message:delete";
|
|
35
|
-
readonly MESSAGE_REACT: "message:react";
|
|
36
|
-
readonly MESSAGE_PIN: "message:pin";
|
|
37
|
-
readonly MESSAGE_MODERATE: "message:moderate";
|
|
38
|
-
readonly MESSAGE_REPORT: "message:report";
|
|
39
|
-
readonly MESSAGE_VOTE: "message:vote";
|
|
40
|
-
readonly MESSAGE_DRAFT_READ: "message-draft:read";
|
|
41
|
-
readonly MESSAGE_DRAFT_CREATE: "message-draft:create";
|
|
42
|
-
readonly MESSAGE_DRAFT_DELETE: "message-draft:delete";
|
|
43
|
-
readonly PARTICIPANT_READ: "participant:read";
|
|
44
|
-
readonly PARTICIPANT_ADD: "participant:add";
|
|
45
|
-
readonly PARTICIPANT_REMOVE: "participant:remove";
|
|
46
|
-
readonly PARTICIPANT_UPDATE: "participant:update";
|
|
47
|
-
readonly PARTICIPANT_LEAVE: "participant:leave";
|
|
48
|
-
readonly CONVERSATION_INVITE_READ: "conversation-invite:read";
|
|
49
|
-
readonly CONVERSATION_INVITE_CREATE: "conversation-invite:create";
|
|
50
|
-
readonly CONVERSATION_INVITE_JOIN: "conversation-invite:join";
|
|
51
|
-
readonly CALL_READ: "call:read";
|
|
52
|
-
readonly CALL_CREATE: "call:create";
|
|
53
|
-
readonly CALL_JOIN: "call:join";
|
|
54
|
-
readonly CALL_LEAVE: "call:leave";
|
|
55
|
-
readonly CALL_END: "call:end";
|
|
56
|
-
readonly CALL_UPDATE: "call:update";
|
|
57
|
-
readonly CALL_RECORD: "call:record";
|
|
58
|
-
readonly APP_INSTALLATION_READ: "app-installation:read";
|
|
59
|
-
readonly APP_INSTALLATION_CREATE: "app-installation:create";
|
|
60
|
-
readonly APP_INSTALLATION_UPDATE: "app-installation:update";
|
|
61
|
-
readonly APP_INSTALLATION_DELETE: "app-installation:delete";
|
|
62
|
-
readonly APP_INSTALLATION_EXECUTE: "app-installation:execute";
|
|
63
|
-
readonly PRESENCE_READ: "presence:read";
|
|
64
|
-
readonly PRESENCE_UPDATE: "presence:update";
|
|
65
|
-
readonly ENTITY_COMMENT_READ: "entity-comment:read";
|
|
66
|
-
readonly ENTITY_COMMENT_CREATE: "entity-comment:create";
|
|
67
|
-
readonly ENTITY_COMMENT_UPDATE: "entity-comment:update";
|
|
68
|
-
readonly ENTITY_COMMENT_DELETE: "entity-comment:delete";
|
|
69
|
-
readonly ENTITY_COMMENT_ASSIGN: "entity-comment:assign";
|
|
70
|
-
readonly ENTITY_COMMENT_EXPORT: "entity-comment:export";
|
|
71
|
-
readonly COMMENT_ATTACHMENT_READ: "comment-attachment:read";
|
|
72
|
-
readonly COMMENT_ATTACHMENT_CREATE: "comment-attachment:create";
|
|
73
|
-
readonly COMMENT_ATTACHMENT_UPDATE: "comment-attachment:update";
|
|
74
|
-
readonly COMMENT_ATTACHMENT_DELETE: "comment-attachment:delete";
|
|
75
|
-
readonly COMMENT_TAG_READ: "comment-tag:read";
|
|
76
|
-
readonly COMMENT_TAG_ASSIGN: "comment-tag:assign";
|
|
77
|
-
readonly COMMENT_TAG_UPDATE: "comment-tag:update";
|
|
78
|
-
readonly COMMENT_TAG_DELETE: "comment-tag:delete";
|
|
79
|
-
readonly SCHEDULED_COMMENT_READ: "scheduled-comment:read";
|
|
80
|
-
readonly SCHEDULED_COMMENT_CREATE: "scheduled-comment:create";
|
|
81
|
-
readonly SCHEDULED_COMMENT_UPDATE: "scheduled-comment:update";
|
|
82
|
-
readonly SCHEDULED_COMMENT_DELETE: "scheduled-comment:delete";
|
|
83
|
-
readonly SCHEDULED_COMMENT_EXECUTE: "scheduled-comment:execute";
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* USER — curated subset of permissions safe to reference from
|
|
87
|
-
* user-facing UI (inbox, chat detail, personal settings, etc).
|
|
88
|
-
*
|
|
89
|
-
* Users retain full CRUDL on their own conversations / messages.
|
|
90
|
-
* The backend additionally enforces ownership at runtime — see the
|
|
91
|
-
* "Ownership rule" in `workspaces-specs/modules/conversations/ADMIN-USER-SPLIT.md`:
|
|
92
|
-
* these constants authorize the action on actor-owned resources only;
|
|
93
|
-
* the same action on another user's resource requires an ADMIN permission.
|
|
94
|
-
*
|
|
95
|
-
* Per `RBAC.md`: any member can `message:report` and — when the conversation
|
|
96
|
-
* setting `allowInviteLinks=true` — any member can `conversation-invite:create`.
|
|
97
|
-
* Both constants therefore live in the USER subset. The shell additionally
|
|
98
|
-
* gates invite creation on the conversation setting at render time.
|
|
99
|
-
*/
|
|
100
|
-
export declare const CONVERSATIONS_USER_PERMISSIONS: {
|
|
101
|
-
readonly CONVERSATION_READ: "conversation:read";
|
|
102
|
-
readonly CONVERSATION_LIST: "conversation:list";
|
|
103
|
-
readonly CONVERSATION_CREATE: "conversation:create";
|
|
104
|
-
readonly CONVERSATION_UPDATE: "conversation:update";
|
|
105
|
-
readonly MESSAGE_READ: "message:read";
|
|
106
|
-
readonly MESSAGE_CREATE: "message:create";
|
|
107
|
-
readonly MESSAGE_UPDATE: "message:update";
|
|
108
|
-
readonly MESSAGE_DELETE: "message:delete";
|
|
109
|
-
readonly MESSAGE_REACT: "message:react";
|
|
110
|
-
readonly MESSAGE_REPORT: "message:report";
|
|
111
|
-
readonly MESSAGE_VOTE: "message:vote";
|
|
112
|
-
readonly MESSAGE_DRAFT_READ: "message-draft:read";
|
|
113
|
-
readonly MESSAGE_DRAFT_CREATE: "message-draft:create";
|
|
114
|
-
readonly MESSAGE_DRAFT_DELETE: "message-draft:delete";
|
|
115
|
-
readonly PARTICIPANT_READ: "participant:read";
|
|
116
|
-
readonly PARTICIPANT_LEAVE: "participant:leave";
|
|
117
|
-
readonly CONVERSATION_INVITE_READ: "conversation-invite:read";
|
|
118
|
-
readonly CONVERSATION_INVITE_CREATE: "conversation-invite:create";
|
|
119
|
-
readonly CONVERSATION_INVITE_JOIN: "conversation-invite:join";
|
|
120
|
-
readonly CALL_READ: "call:read";
|
|
121
|
-
readonly CALL_CREATE: "call:create";
|
|
122
|
-
readonly CALL_JOIN: "call:join";
|
|
123
|
-
readonly CALL_LEAVE: "call:leave";
|
|
124
|
-
readonly CALL_UPDATE: "call:update";
|
|
125
|
-
readonly APP_INSTALLATION_READ: "app-installation:read";
|
|
126
|
-
readonly PRESENCE_READ: "presence:read";
|
|
127
|
-
readonly PRESENCE_UPDATE: "presence:update";
|
|
128
|
-
readonly ENTITY_COMMENT_READ: "entity-comment:read";
|
|
129
|
-
readonly ENTITY_COMMENT_CREATE: "entity-comment:create";
|
|
130
|
-
readonly ENTITY_COMMENT_UPDATE: "entity-comment:update";
|
|
131
|
-
readonly ENTITY_COMMENT_DELETE: "entity-comment:delete";
|
|
132
|
-
readonly COMMENT_ATTACHMENT_READ: "comment-attachment:read";
|
|
133
|
-
readonly COMMENT_ATTACHMENT_CREATE: "comment-attachment:create";
|
|
134
|
-
readonly COMMENT_ATTACHMENT_UPDATE: "comment-attachment:update";
|
|
135
|
-
readonly COMMENT_ATTACHMENT_DELETE: "comment-attachment:delete";
|
|
136
|
-
readonly COMMENT_TAG_READ: "comment-tag:read";
|
|
137
|
-
readonly SCHEDULED_COMMENT_READ: "scheduled-comment:read";
|
|
138
|
-
readonly SCHEDULED_COMMENT_CREATE: "scheduled-comment:create";
|
|
139
|
-
readonly SCHEDULED_COMMENT_UPDATE: "scheduled-comment:update";
|
|
140
|
-
readonly SCHEDULED_COMMENT_DELETE: "scheduled-comment:delete";
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* ADMIN / MODERATOR governance — curated subset of permissions
|
|
144
|
-
* that should only be referenced from admin surfaces
|
|
145
|
-
* (admin-app ConversationsAdminRoot). Gates bulk operations,
|
|
146
|
-
* moderation, participant administration, and workspace-wide
|
|
147
|
-
* lifecycle actions.
|
|
148
|
-
*/
|
|
149
|
-
export declare const CONVERSATIONS_ADMIN_PERMISSIONS: {
|
|
150
|
-
readonly CONVERSATION_DELETE: "conversation:delete";
|
|
151
|
-
readonly CONVERSATION_ARCHIVE: "conversation:archive";
|
|
152
|
-
readonly CONVERSATION_UNARCHIVE: "conversation:unarchive";
|
|
153
|
-
readonly MESSAGE_PIN: "message:pin";
|
|
154
|
-
readonly MESSAGE_MODERATE: "message:moderate";
|
|
155
|
-
readonly PARTICIPANT_ADD: "participant:add";
|
|
156
|
-
readonly PARTICIPANT_REMOVE: "participant:remove";
|
|
157
|
-
readonly PARTICIPANT_UPDATE: "participant:update";
|
|
158
|
-
readonly CALL_END: "call:end";
|
|
159
|
-
readonly CALL_RECORD: "call:record";
|
|
160
|
-
readonly APP_INSTALLATION_CREATE: "app-installation:create";
|
|
161
|
-
readonly APP_INSTALLATION_UPDATE: "app-installation:update";
|
|
162
|
-
readonly APP_INSTALLATION_DELETE: "app-installation:delete";
|
|
163
|
-
readonly APP_INSTALLATION_EXECUTE: "app-installation:execute";
|
|
164
|
-
readonly ENTITY_COMMENT_ASSIGN: "entity-comment:assign";
|
|
165
|
-
readonly ENTITY_COMMENT_EXPORT: "entity-comment:export";
|
|
166
|
-
readonly COMMENT_TAG_ASSIGN: "comment-tag:assign";
|
|
167
|
-
readonly COMMENT_TAG_UPDATE: "comment-tag:update";
|
|
168
|
-
readonly COMMENT_TAG_DELETE: "comment-tag:delete";
|
|
169
|
-
readonly SCHEDULED_COMMENT_EXECUTE: "scheduled-comment:execute";
|
|
170
|
-
};
|
|
171
|
-
export type ConversationsPermission = (typeof CONVERSATIONS_PERMISSIONS)[keyof typeof CONVERSATIONS_PERMISSIONS];
|
|
172
|
-
export type ConversationsUserPermission = (typeof CONVERSATIONS_USER_PERMISSIONS)[keyof typeof CONVERSATIONS_USER_PERMISSIONS];
|
|
173
|
-
export type ConversationsAdminPermission = (typeof CONVERSATIONS_ADMIN_PERMISSIONS)[keyof typeof CONVERSATIONS_ADMIN_PERMISSIONS];
|
|
174
|
-
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../src/conversations/constants/permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2F5B,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DjC,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;CA6BlC,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAE7E,MAAM,MAAM,2BAA2B,GACrC,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,OAAO,8BAA8B,CAAC,CAAC;AAEvF,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAdminFeatureFlags.d.ts","sourceRoot":"","sources":["../../../src/conversations/hooks/useAdminFeatureFlags.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,oBAAoB,IAAI,iBAAiB,CAaxD"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { Conversation, ConversationType, ConversationVisibility } from '../types';
|
|
2
|
-
|
|
3
|
-
interface UseGetConversationsOptions {
|
|
4
|
-
first?: number;
|
|
5
|
-
after?: string;
|
|
6
|
-
types?: ConversationType[];
|
|
7
|
-
hasUnread?: boolean;
|
|
8
|
-
isPinned?: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface UseGetConversationsResult {
|
|
11
|
-
conversations: Conversation[];
|
|
12
|
-
loading: boolean;
|
|
13
|
-
error: Error | null;
|
|
14
|
-
hasNextPage: boolean;
|
|
15
|
-
fetchMore: () => void;
|
|
16
|
-
refetch: () => void;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Hook: Fetch a paginated list of conversations.
|
|
20
|
-
*/
|
|
21
|
-
export declare function useGetConversations(options?: UseGetConversationsOptions): UseGetConversationsResult;
|
|
22
|
-
interface UseGetConversationResult {
|
|
23
|
-
conversation: Conversation | null;
|
|
24
|
-
loading: boolean;
|
|
25
|
-
error: Error | null;
|
|
26
|
-
refetch: () => void;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Hook: Fetch a single conversation by ID.
|
|
30
|
-
*/
|
|
31
|
-
export declare function useGetConversation(conversationId: string): UseGetConversationResult;
|
|
32
|
-
interface UseSearchConversationsResult {
|
|
33
|
-
conversations: Conversation[];
|
|
34
|
-
loading: boolean;
|
|
35
|
-
error: Error | null;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Hook: Search conversations by query string.
|
|
39
|
-
*/
|
|
40
|
-
export declare function useSearchConversations(query: string): UseSearchConversationsResult;
|
|
41
|
-
interface CreateConversationInput {
|
|
42
|
-
type: ConversationType;
|
|
43
|
-
title?: string;
|
|
44
|
-
description?: string;
|
|
45
|
-
participantIds: string[];
|
|
46
|
-
visibility?: ConversationVisibility;
|
|
47
|
-
}
|
|
48
|
-
interface UseCreateConversationResult {
|
|
49
|
-
createConversation: (input: CreateConversationInput) => Promise<Conversation | null>;
|
|
50
|
-
loading: boolean;
|
|
51
|
-
error: Error | null;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Hook: Create a new conversation.
|
|
55
|
-
*/
|
|
56
|
-
export declare function useCreateConversation(): UseCreateConversationResult;
|
|
57
|
-
interface UseUpdateConversationResult {
|
|
58
|
-
archiveConversation: (id: string) => Promise<boolean>;
|
|
59
|
-
pinConversation: (id: string) => Promise<boolean>;
|
|
60
|
-
unpinConversation: (id: string) => Promise<boolean>;
|
|
61
|
-
muteConversation: (id: string) => Promise<boolean>;
|
|
62
|
-
unmuteConversation: (id: string) => Promise<boolean>;
|
|
63
|
-
loading: boolean;
|
|
64
|
-
error: Error | null;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Hook: Conversation mutation operations.
|
|
68
|
-
*/
|
|
69
|
-
export declare function useConversationActions(): UseUpdateConversationResult;
|
|
70
|
-
interface UseUpdateConversationOptions {
|
|
71
|
-
updateConversation: (input: {
|
|
72
|
-
id: string;
|
|
73
|
-
title?: string;
|
|
74
|
-
description?: string;
|
|
75
|
-
avatarUrl?: string;
|
|
76
|
-
settings?: Record<string, unknown>;
|
|
77
|
-
}) => Promise<Conversation | null>;
|
|
78
|
-
loading: boolean;
|
|
79
|
-
error: Error | null;
|
|
80
|
-
}
|
|
81
|
-
export declare function useUpdateConversation(): UseUpdateConversationOptions;
|
|
82
|
-
export {};
|
|
83
|
-
//# sourceMappingURL=useConversationQueries.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useConversationQueries.d.ts","sourceRoot":"","sources":["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;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,wBAAgB,qBAAqB,IAAI,4BAA4B,CAyCpE"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type ExportFormat = "JSON" | "CSV" | "MARKDOWN";
|
|
2
|
-
interface UseExportConversationResult {
|
|
3
|
-
exportComments: (entityType: string, entityId: string, format?: ExportFormat) => Promise<string | null>;
|
|
4
|
-
loading: boolean;
|
|
5
|
-
error: Error | null;
|
|
6
|
-
downloadUrl: string | null;
|
|
7
|
-
}
|
|
8
|
-
export declare function useExportConversation(): UseExportConversationResult;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=useExportConversation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useExportConversation.d.ts","sourceRoot":"","sources":["../../../src/conversations/hooks/useExportConversation.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,CAAC;AAEvD,UAAU,2BAA2B;IACnC,cAAc,EAAE,CACd,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,YAAY,KAClB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,wBAAgB,qBAAqB,IAAI,2BAA2B,CA2CnE"}
|