@burdenoff/microfe-support 2026.625.2 → 2026.715.1

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.
Files changed (110) hide show
  1. package/dist/generated/global-operations.d.ts +2517 -0
  2. package/dist/generated/global-types.d.ts +22913 -0
  3. package/dist/generated/wspace-operations.d.ts +1 -0
  4. package/dist/generated/wspace-types.d.ts +57850 -0
  5. package/dist/index.d.ts +5 -0
  6. package/dist/support/SupportAdminRoot.d.ts +20 -0
  7. package/dist/support/SupportAdminRoutes.d.ts +13 -0
  8. package/dist/support/SupportUserRoot.d.ts +17 -0
  9. package/dist/support/SupportUserRoutes.d.ts +11 -0
  10. package/dist/support/components/NotificationToast.d.ts +17 -0
  11. package/dist/support/components/PageLayout.d.ts +71 -0
  12. package/dist/support/components/RouteHelpers.d.ts +9 -0
  13. package/dist/support/components/analytics/CategoryBreakdown.d.ts +9 -0
  14. package/dist/support/components/analytics/MetricCard.d.ts +10 -0
  15. package/dist/support/components/analytics/PriorityBreakdown.d.ts +9 -0
  16. package/dist/support/components/analytics/SLAReport.d.ts +23 -0
  17. package/dist/support/components/analytics/SatisfactionDistribution.d.ts +23 -0
  18. package/dist/support/components/analytics/TopAgents.d.ts +19 -0
  19. package/dist/support/components/analytics/TrendChart.d.ts +15 -0
  20. package/dist/support/components/kb/ArticleForm.d.ts +25 -0
  21. package/dist/support/components/settings/CannedResponsesSettings.d.ts +21 -0
  22. package/dist/support/components/settings/SLAPoliciesSettings.d.ts +18 -0
  23. package/dist/support/components/settings/TicketCategoriesSettings.d.ts +20 -0
  24. package/dist/support/components/tickets/AttachmentList.d.ts +7 -0
  25. package/dist/support/components/tickets/MarkdownContent.d.ts +7 -0
  26. package/dist/support/components/tickets/MessageComposer.d.ts +22 -0
  27. package/dist/support/components/tickets/MessageThread.d.ts +12 -0
  28. package/dist/support/components/tickets/TicketDetailHeader.d.ts +16 -0
  29. package/dist/support/components/tickets/TicketHeader.d.ts +9 -0
  30. package/dist/support/components/tickets/TicketSidebar.d.ts +7 -0
  31. package/dist/support/components/ui.d.ts +5 -0
  32. package/dist/support/components/ui.js +2 -2
  33. package/dist/support/constants.d.ts +20 -0
  34. package/dist/support/events/rybbit.d.ts +13 -0
  35. package/dist/support/hooks/index.d.ts +5 -0
  36. package/dist/support/hooks/useAnalyticsOperations.d.ts +51 -0
  37. package/dist/support/hooks/useAttachmentsFailedToast.d.ts +2 -0
  38. package/dist/support/hooks/useChatOperations.d.ts +27 -0
  39. package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +55 -0
  40. package/dist/support/hooks/useNotification.d.ts +20 -0
  41. package/dist/support/hooks/useRegisterFooter.d.ts +6 -0
  42. package/dist/support/hooks/useSettingsOperations.d.ts +47 -0
  43. package/dist/support/hooks/useSupportAttachments.d.ts +10 -0
  44. package/dist/support/hooks/useTicketListOperations.d.ts +31 -0
  45. package/dist/support/hooks/useTicketOperations.d.ts +39 -0
  46. package/dist/support/index.d.ts +44 -0
  47. package/dist/support/pages/AnalyticsPage.d.ts +1 -0
  48. package/dist/support/pages/AnalyticsPage.js +144 -113
  49. package/dist/support/pages/AnalyticsPage.js.map +1 -1
  50. package/dist/support/pages/ArticleDetailAdminPage.d.ts +7 -0
  51. package/dist/support/pages/ArticleDetailAdminPage.js +150 -113
  52. package/dist/support/pages/ArticleDetailAdminPage.js.map +1 -1
  53. package/dist/support/pages/ArticleDetailUserPage.d.ts +7 -0
  54. package/dist/support/pages/ArticleDetailUserPage.js +90 -83
  55. package/dist/support/pages/ArticleDetailUserPage.js.map +1 -1
  56. package/dist/support/pages/ContactInquiriesPage.d.ts +1 -0
  57. package/dist/support/pages/ContactInquiriesPage.js +48 -44
  58. package/dist/support/pages/ContactInquiriesPage.js.map +1 -1
  59. package/dist/support/pages/ContactInquiryDetailPage.d.ts +1 -0
  60. package/dist/support/pages/ContactInquiryDetailPage.js +225 -205
  61. package/dist/support/pages/ContactInquiryDetailPage.js.map +1 -1
  62. package/dist/support/pages/CreateArticlePage.d.ts +1 -0
  63. package/dist/support/pages/CreateArticlePage.js +50 -46
  64. package/dist/support/pages/CreateArticlePage.js.map +1 -1
  65. package/dist/support/pages/CreateTicketPage.d.ts +1 -0
  66. package/dist/support/pages/CreateTicketPage.js +122 -116
  67. package/dist/support/pages/CreateTicketPage.js.map +1 -1
  68. package/dist/support/pages/EditArticlePage.d.ts +1 -0
  69. package/dist/support/pages/EditArticlePage.js +76 -80
  70. package/dist/support/pages/EditArticlePage.js.map +1 -1
  71. package/dist/support/pages/JobApplicationDetailPage.d.ts +1 -0
  72. package/dist/support/pages/JobApplicationDetailPage.js +292 -269
  73. package/dist/support/pages/JobApplicationDetailPage.js.map +1 -1
  74. package/dist/support/pages/JobApplicationsPage.d.ts +1 -0
  75. package/dist/support/pages/JobApplicationsPage.js +50 -46
  76. package/dist/support/pages/JobApplicationsPage.js.map +1 -1
  77. package/dist/support/pages/KnowledgeBaseAdminPage.d.ts +7 -0
  78. package/dist/support/pages/KnowledgeBaseAdminPage.js +84 -81
  79. package/dist/support/pages/KnowledgeBaseAdminPage.js.map +1 -1
  80. package/dist/support/pages/KnowledgeBaseUserPage.d.ts +8 -0
  81. package/dist/support/pages/KnowledgeBaseUserPage.js +76 -75
  82. package/dist/support/pages/KnowledgeBaseUserPage.js.map +1 -1
  83. package/dist/support/pages/SettingsPage.d.ts +1 -0
  84. package/dist/support/pages/SettingsPage.js +215 -182
  85. package/dist/support/pages/SettingsPage.js.map +1 -1
  86. package/dist/support/pages/TicketDetailAdminPage.d.ts +8 -0
  87. package/dist/support/pages/TicketDetailAdminPage.js +158 -128
  88. package/dist/support/pages/TicketDetailAdminPage.js.map +1 -1
  89. package/dist/support/pages/TicketDetailUserPage.d.ts +8 -0
  90. package/dist/support/pages/TicketDetailUserPage.js +174 -141
  91. package/dist/support/pages/TicketDetailUserPage.js.map +1 -1
  92. package/dist/support/pages/TicketListPage.d.ts +11 -0
  93. package/dist/support/pages/TicketListPage.js +171 -170
  94. package/dist/support/pages/TicketListPage.js.map +1 -1
  95. package/dist/support/providers/SupportProvider.d.ts +16 -0
  96. package/dist/support/store/supportStore.d.ts +66 -0
  97. package/dist/support/types/index.d.ts +160 -0
  98. package/dist/support/utils/attachments.d.ts +27 -0
  99. package/dist/support/utils/categoryColors.d.ts +10 -0
  100. package/dist/support/utils/cn.d.ts +6 -0
  101. package/dist/support/utils/context.d.ts +2 -0
  102. package/dist/support/utils/errors.d.ts +2 -0
  103. package/dist/support/utils/i18n.d.ts +4 -0
  104. package/dist/support/utils/index.d.ts +57 -0
  105. package/dist/support/utils/markdown.d.ts +2 -0
  106. package/dist/support/utils/supportFiles.d.ts +15 -0
  107. package/dist/support/utils/ticketFilters.d.ts +6 -0
  108. package/dist/support/utils/uiTokens.d.ts +7 -0
  109. package/dist/utils/nativeBridge.d.ts +2 -0
  110. package/package.json +4 -4
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Support Microfrontend - Root Export
3
+ * Re-exports from the main support module for build-time composition
4
+ */
5
+ export * from './support';
@@ -0,0 +1,20 @@
1
+ import type { FC } from 'react';
2
+ import type { SupportRootProps } from './types';
3
+ /**
4
+ * Admin-facing root component for the Support microfrontend.
5
+ *
6
+ * Renders admin support management routes (tickets with full controls,
7
+ * contact inquiries, KB authoring, analytics, settings).
8
+ *
9
+ * Use this in admin-app where platform administrators manage support operations.
10
+ *
11
+ * Navigation registration is optional — admin-app uses shell-owned nav
12
+ * (NavRegistration.tsx with contentMfeProps), so registerNavItems won't be provided.
13
+ * Other shells that pass registerNavItems will get admin nav items registered.
14
+ *
15
+ * For user-facing support features, use SupportUserRoot instead.
16
+ *
17
+ * Note: This is a UI-layer route split, not a security boundary.
18
+ * Access control is enforced at the API/server level.
19
+ */
20
+ export declare const SupportAdminRoot: FC<SupportRootProps>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Admin-facing routes for the Support microfrontend.
3
+ *
4
+ * Includes all support management routes:
5
+ * - Ticket management (list and view with full admin controls)
6
+ * - Contact inquiries management
7
+ * - Knowledge base authoring (create, edit, publish)
8
+ * - Support analytics and reporting
9
+ * - Support settings (SLA policies, canned responses, categories)
10
+ *
11
+ * User-only ticket and knowledge-base routes are excluded — see SupportUserRoutes for those.
12
+ */
13
+ export declare function SupportAdminRoutes(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import type { FC } from 'react';
2
+ import type { SupportRootProps } from './types';
3
+ /**
4
+ * User-facing root component for the Support microfrontend.
5
+ *
6
+ * Renders only user-relevant routes (tickets and KB browsing)
7
+ * and registers user-only navigation items with the shell.
8
+ *
9
+ * Use this in product app shells (vibecontrols-app, bigconsole, etc.)
10
+ * where end users interact with the support module.
11
+ *
12
+ * For admin-facing support features, use SupportAdminRoot instead.
13
+ *
14
+ * Note: This is a UI-layer route split, not a security boundary.
15
+ * Access control is enforced at the API/server level.
16
+ */
17
+ export declare const SupportUserRoot: FC<SupportRootProps>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * User-facing routes for the Support microfrontend.
3
+ *
4
+ * Only includes routes relevant to end users:
5
+ * - Ticket management (list, create, view)
6
+ * - Knowledge base browsing (read-only, published articles)
7
+ *
8
+ * Admin-only features (inquiries, analytics, settings, KB authoring)
9
+ * are excluded — see SupportAdminRoutes for those.
10
+ */
11
+ export declare function SupportUserRoutes(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { NotificationState } from '../hooks/useNotification';
3
+ interface NotificationToastProps {
4
+ notification: NotificationState | null;
5
+ }
6
+ /**
7
+ * Shared fixed-corner toast for CreateTicketPage + TicketDetail* pages.
8
+ *
9
+ * ARIA: `alert` + `assertive` for errors so a screen reader interrupts; `status`
10
+ * + `polite` for success/info so it's announced without cutting off other
11
+ * speech. `aria-atomic` so the full message reads as one unit.
12
+ *
13
+ * Icon choice: `Info` for the `'info'` variant — `AlertCircle` incorrectly
14
+ * implies failure/warning in sighted UX.
15
+ */
16
+ export declare function NotificationToast({ notification }: NotificationToastProps): ReactElement | null;
17
+ export {};
@@ -0,0 +1,71 @@
1
+ import type { ReactNode } from 'react';
2
+ interface PageLayoutProps {
3
+ children: ReactNode;
4
+ /** Page title */
5
+ title?: string;
6
+ /** Page subtitle/description */
7
+ subtitle?: string;
8
+ /** Icon component to display next to title */
9
+ icon?: ReactNode;
10
+ /** Actions to display in header (buttons, etc.) */
11
+ headerActions?: ReactNode;
12
+ /** Additional header content below title */
13
+ headerContent?: ReactNode;
14
+ /** Maximum width of content: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full' */
15
+ maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
16
+ /** Whether to show the header section */
17
+ showHeader?: boolean;
18
+ /** Additional CSS classes for the container */
19
+ className?: string;
20
+ /** Additional CSS classes for the content area */
21
+ contentClassName?: string;
22
+ /**
23
+ * Boff UI 2.0 living-glass hero backdrop. When true, the header zone is wrapped
24
+ * in a `relative overflow-hidden` container with a subtle drifting AuroraBackground
25
+ * behind it (sits at -z-10, never moves content, reduced-motion safe). Reserve for
26
+ * the MFE's primary landing page — ONE aurora per MFE.
27
+ */
28
+ aurora?: boolean;
29
+ /**
30
+ * When provided, the title is split so this trailing noun is rendered with a
31
+ * brand GradientText fill (one hero heading accent per page). The remaining
32
+ * leading text stays in the plain title colour.
33
+ */
34
+ titleAccent?: string;
35
+ }
36
+ /**
37
+ * PageLayout - A consistent page wrapper with responsive design for Support module
38
+ *
39
+ * Features:
40
+ * - Proper max-width constraints
41
+ * - Responsive padding
42
+ * - Animated entrance
43
+ * - Consistent header styling
44
+ */
45
+ export declare function PageLayout({ children, title, subtitle, icon, headerActions, headerContent, maxWidth, showHeader, className, contentClassName, aurora, titleAccent, }: PageLayoutProps): import("react/jsx-runtime").JSX.Element;
46
+ /**
47
+ * EmptyState - A consistent empty state component
48
+ */
49
+ export declare function EmptyState({ icon, illustration, illustrationAlt, title, description, action, className, }: {
50
+ icon?: ReactNode;
51
+ /**
52
+ * Boff UI 2.0 on-brand illustration name (served by the host shell at
53
+ * /illustrations/<name>.webp). When provided, the empty state renders the
54
+ * richer IllustratedEmptyState instead of the plain icon variant. Reserve for
55
+ * genuine zero/no-results states — keep gate/permission states on the icon.
56
+ */
57
+ illustration?: string;
58
+ illustrationAlt?: string;
59
+ title: string;
60
+ description?: string;
61
+ action?: ReactNode;
62
+ className?: string;
63
+ }): import("react/jsx-runtime").JSX.Element;
64
+ /**
65
+ * LoadingState - A consistent loading state component
66
+ */
67
+ export declare function LoadingState({ message, className, }: {
68
+ message?: string;
69
+ className?: string;
70
+ }): import("react/jsx-runtime").JSX.Element;
71
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Shared loading fallback for lazy-loaded route pages.
3
+ */
4
+ export declare function PageLoader(): import("react/jsx-runtime").JSX.Element;
5
+ /**
6
+ * Catch-all redirect that sends unknown paths to the tickets page.
7
+ * Uses basePath from SupportProvider context and joinPath to avoid double-slashes.
8
+ */
9
+ export declare function CatchAllRedirect(): null;
@@ -0,0 +1,9 @@
1
+ interface CategoryCount {
2
+ category: string;
3
+ count: number;
4
+ }
5
+ interface CategoryBreakdownProps {
6
+ data: CategoryCount[];
7
+ }
8
+ export declare function CategoryBreakdown({ data }: CategoryBreakdownProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,10 @@
1
+ import { LucideIcon } from 'lucide-react';
2
+ interface MetricCardProps {
3
+ title: string;
4
+ value: string;
5
+ icon: LucideIcon;
6
+ iconColor: string;
7
+ subtitle?: string;
8
+ }
9
+ export declare function MetricCard({ title, value, icon: Icon, iconColor, subtitle }: MetricCardProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ interface PriorityCount {
2
+ priority: string;
3
+ count: number;
4
+ }
5
+ interface PriorityBreakdownProps {
6
+ data: PriorityCount[];
7
+ }
8
+ export declare function PriorityBreakdown({ data }: PriorityBreakdownProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,23 @@
1
+ interface SLAComplianceByPriority {
2
+ priority: string;
3
+ tickets: number;
4
+ compliance: number;
5
+ }
6
+ interface SLAReportProps {
7
+ report: {
8
+ period: {
9
+ startDate: string;
10
+ endDate: string;
11
+ label: string;
12
+ };
13
+ totalTickets: number;
14
+ firstResponseCompliance: number;
15
+ resolutionCompliance: number;
16
+ avgFirstResponseTime: number;
17
+ avgResolutionTime: number;
18
+ breachedTickets: number;
19
+ byPriority: SLAComplianceByPriority[];
20
+ };
21
+ }
22
+ export declare function SLAReport({ report }: SLAReportProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,23 @@
1
+ interface SatisfactionMetrics {
2
+ period: {
3
+ startDate: string;
4
+ endDate: string;
5
+ label: string;
6
+ };
7
+ totalResponses: number;
8
+ averageRating: number;
9
+ csat: number;
10
+ nps: number;
11
+ ratings: {
12
+ rating1: number;
13
+ rating2: number;
14
+ rating3: number;
15
+ rating4: number;
16
+ rating5: number;
17
+ };
18
+ }
19
+ interface SatisfactionDistributionProps {
20
+ metrics: SatisfactionMetrics;
21
+ }
22
+ export declare function SatisfactionDistribution({ metrics }: SatisfactionDistributionProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,19 @@
1
+ interface TopAgent {
2
+ agent: {
3
+ id: string;
4
+ user: {
5
+ id: string;
6
+ name: string;
7
+ email: string;
8
+ avatarUrl?: string | null;
9
+ };
10
+ };
11
+ ticketsResolved: number;
12
+ avgRating: number;
13
+ rank: number;
14
+ }
15
+ interface TopAgentsProps {
16
+ agents: TopAgent[];
17
+ }
18
+ export declare function TopAgents({ agents }: TopAgentsProps): import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,15 @@
1
+ interface TrendDataPoint {
2
+ timestamp: string;
3
+ value: number;
4
+ label?: string | null;
5
+ }
6
+ interface TrendChartProps {
7
+ trends: TrendDataPoint[];
8
+ period: {
9
+ startDate: string;
10
+ endDate: string;
11
+ label: string;
12
+ };
13
+ }
14
+ export declare function TrendChart({ trends, period }: TrendChartProps): import("react/jsx-runtime").JSX.Element | null;
15
+ export {};
@@ -0,0 +1,25 @@
1
+ export interface ArticleFormData {
2
+ title: string;
3
+ slug: string;
4
+ content: string;
5
+ excerpt: string;
6
+ categoryId: string;
7
+ tags: string[];
8
+ metaDescription: string;
9
+ status: 'DRAFT' | 'PUBLISHED';
10
+ }
11
+ interface Category {
12
+ id: string;
13
+ name: string;
14
+ color?: string;
15
+ }
16
+ interface ArticleFormProps {
17
+ initialData?: Partial<ArticleFormData>;
18
+ categories: Category[];
19
+ onSubmit: (data: ArticleFormData) => Promise<void>;
20
+ onCancel: () => void;
21
+ isSubmitting: boolean;
22
+ submitLabel?: string;
23
+ }
24
+ export declare function ArticleForm({ initialData, categories, onSubmit, onCancel, isSubmitting, submitLabel, }: ArticleFormProps): import("react/jsx-runtime").JSX.Element;
25
+ export {};
@@ -0,0 +1,21 @@
1
+ interface CannedResponse {
2
+ id: string;
3
+ title: string;
4
+ content: string;
5
+ tags?: string[];
6
+ isActive?: boolean;
7
+ }
8
+ interface CannedResponseInput {
9
+ title: string;
10
+ content: string;
11
+ tags?: string[];
12
+ isActive?: boolean;
13
+ }
14
+ interface CannedResponsesSettingsProps {
15
+ responses: CannedResponse[];
16
+ onCreate: (input: CannedResponseInput) => Promise<CannedResponse>;
17
+ onUpdate: (id: string, input: Partial<CannedResponseInput>) => Promise<CannedResponse>;
18
+ onDelete: (id: string) => Promise<void>;
19
+ }
20
+ export declare function CannedResponsesSettings({ responses, onCreate, onUpdate, onDelete, }: CannedResponsesSettingsProps): import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -0,0 +1,18 @@
1
+ interface SLAPolicy {
2
+ id: string;
3
+ name: string;
4
+ priority: string;
5
+ firstResponseTimeMinutes: number;
6
+ resolutionTimeMinutes: number;
7
+ businessHoursOnly: boolean;
8
+ active: boolean;
9
+ }
10
+ interface SLAPoliciesSettingsProps {
11
+ policies: SLAPolicy[];
12
+ defaultPolicyId?: string;
13
+ onCreate: (input: SLAPolicy) => Promise<SLAPolicy>;
14
+ onUpdate: (id: string, input: SLAPolicy) => Promise<SLAPolicy>;
15
+ onDelete: (id: string) => Promise<void>;
16
+ }
17
+ export declare function SLAPoliciesSettings({ policies, defaultPolicyId, onCreate, onUpdate, onDelete, }: SLAPoliciesSettingsProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,20 @@
1
+ interface TicketCategory {
2
+ id?: string;
3
+ name: string;
4
+ slug: string;
5
+ description?: string;
6
+ color?: string;
7
+ icon?: string;
8
+ displayOrder?: number;
9
+ isActive?: boolean;
10
+ articleCount?: number;
11
+ parentId?: string;
12
+ }
13
+ interface TicketCategoriesSettingsProps {
14
+ categories: TicketCategory[];
15
+ onCreate: (input: Omit<TicketCategory, 'id' | 'articleCount'>) => Promise<TicketCategory | null | undefined>;
16
+ onUpdate: (id: string, input: Partial<TicketCategory>) => Promise<TicketCategory | null | undefined>;
17
+ onDelete: (id: string) => Promise<boolean | null | undefined>;
18
+ }
19
+ export declare function TicketCategoriesSettings({ categories, onCreate, onUpdate, onDelete, }: TicketCategoriesSettingsProps): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { FC } from 'react';
2
+ interface AttachmentListProps {
3
+ fileIds: string[];
4
+ ticketId: string;
5
+ }
6
+ export declare const AttachmentList: FC<AttachmentListProps>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { FC } from 'react';
2
+ interface MarkdownContentProps {
3
+ content: string;
4
+ className?: string;
5
+ }
6
+ export declare const MarkdownContent: FC<MarkdownContentProps>;
7
+ export {};
@@ -0,0 +1,22 @@
1
+ import { type FC } from 'react';
2
+ export interface MessageComposerSendResult {
3
+ preserveAttachedFiles?: boolean;
4
+ preserveMessage?: boolean;
5
+ }
6
+ interface MessageComposerProps {
7
+ ticketId: string;
8
+ onSendMessage: (content: string, isInternal: boolean, files: File[]) => Promise<MessageComposerSendResult | void>;
9
+ placeholder?: string;
10
+ disabled?: boolean;
11
+ allowInternalNotes?: boolean;
12
+ cannedResponses?: readonly CannedResponseOption[];
13
+ cannedResponsesLoading?: boolean;
14
+ }
15
+ export interface CannedResponseOption {
16
+ id: string;
17
+ title: string;
18
+ content: string;
19
+ shortcut?: string | null;
20
+ }
21
+ export declare const MessageComposer: FC<MessageComposerProps>;
22
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { FC } from 'react';
2
+ import type { SupportMessage } from '../../../generated/global-types';
3
+ interface MessageThreadProps {
4
+ ticketId: string;
5
+ messages: SupportMessage[];
6
+ currentUserId?: string;
7
+ viewerRole?: 'customer' | 'agent';
8
+ showInternalMessages?: boolean;
9
+ showRealAgentIdentity?: boolean;
10
+ }
11
+ export declare const MessageThread: FC<MessageThreadProps>;
12
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { FC } from 'react';
2
+ import type { SupportTicket } from '../../../generated/global-types';
3
+ interface TicketDetailHeaderProps {
4
+ ticket: SupportTicket;
5
+ onBack: () => void;
6
+ onReopenTicket?: () => Promise<void>;
7
+ onCreateNewTicket?: () => void;
8
+ actionsDisabled?: boolean;
9
+ }
10
+ /**
11
+ * Read-only ticket header for user-facing pages.
12
+ * Displays ticket info, status, and priority without admin controls
13
+ * (no status change dropdown, no assignment).
14
+ */
15
+ export declare const TicketDetailHeader: FC<TicketDetailHeaderProps>;
16
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { FC } from 'react';
2
+ import type { SupportTicket, SupportTicketStatus } from '../../../generated/global-types';
3
+ interface TicketHeaderProps {
4
+ ticket: SupportTicket;
5
+ onBack: () => void;
6
+ onStatusChange: (status: SupportTicketStatus) => void;
7
+ }
8
+ export declare const TicketHeader: FC<TicketHeaderProps>;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { FC } from 'react';
2
+ import type { SupportTicket } from '../../../generated/global-types';
3
+ interface TicketSidebarProps {
4
+ ticket: SupportTicket;
5
+ }
6
+ export declare const TicketSidebar: FC<TicketSidebarProps>;
7
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * UI Component re-exports from @burdenoff/fe-libs
3
+ * All styled components are imported from the shared fe-libs package
4
+ */
5
+ export { Button, Badge, Card, CardContent, CardHeader, CardTitle, CardDescription, CardFooter, Input, Skeleton, Separator, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Tabs, TabsList, TabsTrigger, TabsContent, Textarea, Label, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, DropdownMenuSeparator, ScrollArea, GlassCard, EmphasisPanel, ShowMore, CTAOverflowMenu, PagePurpose, NextSteps, } from '@burdenoff/fe-libs/ui';
@@ -1,2 +1,2 @@
1
- import { Badge as e, Button as t, CTAOverflowMenu as n, EmphasisPanel as r, GlassCard as i, Input as a } from "@burdenoff/fe-libs/ui";
2
- export { e as Badge, t as Button, n as CTAOverflowMenu, r as EmphasisPanel, i as GlassCard, a as Input };
1
+ import { Badge as e, Button as t, CTAOverflowMenu as n, EmphasisPanel as r, GlassCard as i, Input as a, NextSteps as o, PagePurpose as s } from "@burdenoff/fe-libs/ui";
2
+ export { e as Badge, t as Button, n as CTAOverflowMenu, r as EmphasisPanel, i as GlassCard, a as Input, o as NextSteps, s as PagePurpose };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Maximum number of reopens allowed per ticket. Mirrors the server limit
3
+ * enforced in global-support-svc so the client chip / cap banner / reopen
4
+ * button all read from a single source. When the server limit changes,
5
+ * update this constant AND the server check in lockstep (or, ideally,
6
+ * graduate this to a config value the server returns on the ticket).
7
+ */
8
+ export declare const MAX_REOPEN_COUNT = 3;
9
+ /**
10
+ * Search param used to carry create-ticket attachment-failure signal across
11
+ * the redirect from the create page to the newly-created ticket detail page.
12
+ *
13
+ * Only a code-level flag is surfaced in the URL. The user-facing message is
14
+ * composed entirely client-side in `useAttachmentsFailedToast` so no server-
15
+ * provided text ever lands in the URL, browser history, referer header, or
16
+ * proxy / analytics logs. The original message variant
17
+ * (`attachmentsFailedMessage`) that carried raw `extractErrorMessage(...)`
18
+ * output was removed for exactly that reason.
19
+ */
20
+ export declare const ATTACHMENTS_FAILED_PARAM = "attachmentsFailed";
@@ -0,0 +1,13 @@
1
+ import type { EventBus } from '@burdenoff/fe-libs/shared/events';
2
+ type SupportAnalyticsTicket = {
3
+ id: string;
4
+ status?: string | null;
5
+ priority?: string | null;
6
+ categoryId?: string | null;
7
+ };
8
+ export declare const SUPPORT_RYBBIT_EVENT_ALLOWLIST: readonly ["support.ticket.created", "support.ticket.closed", "support.ticket.reopened", "support.kb.article_rated"];
9
+ export declare function emitSupportTicketCreated(eventBus: EventBus, ticket: SupportAnalyticsTicket, workspaceId?: string | null): void;
10
+ export declare function emitSupportTicketClosed(eventBus: EventBus, ticket: SupportAnalyticsTicket, workspaceId?: string | null): void;
11
+ export declare function emitSupportTicketReopened(eventBus: EventBus, ticket: SupportAnalyticsTicket, workspaceId?: string | null): void;
12
+ export declare function emitSupportKbArticleRated(eventBus: EventBus, articleId: string, helpful: boolean): void;
13
+ export {};
@@ -0,0 +1,5 @@
1
+ export { useTicketOperations } from './useTicketOperations';
2
+ export { useChatOperations } from './useChatOperations';
3
+ export { useKnowledgeBaseOperations } from './useKnowledgeBaseOperations';
4
+ export { useAnalyticsOperations } from './useAnalyticsOperations';
5
+ export { useSupportStore } from '../store/supportStore';
@@ -0,0 +1,51 @@
1
+ import { TimePeriod, TrendGroupBy } from '../../generated/global-types';
2
+ export { TimePeriod };
3
+ export declare function useAnalyticsOperations(): {
4
+ analytics: {
5
+ stats: any;
6
+ categoryBreakdown: any;
7
+ priorityBreakdown: any;
8
+ sourceBreakdown: any;
9
+ ticketTrends: any;
10
+ } | null;
11
+ slaReport: any;
12
+ satisfaction: any;
13
+ agentLeaderboard: any;
14
+ trends: any;
15
+ period: TimePeriod;
16
+ trendGroupBy: TrendGroupBy;
17
+ analyticsLoading: boolean;
18
+ slaReportLoading: boolean;
19
+ satisfactionLoading: boolean;
20
+ leaderboardLoading: boolean;
21
+ trendsLoading: boolean;
22
+ isLoading: boolean;
23
+ analyticsError: import("@apollo/client").ErrorLike | undefined;
24
+ slaReportError: import("@apollo/client").ErrorLike | undefined;
25
+ satisfactionError: import("@apollo/client").ErrorLike | undefined;
26
+ leaderboardError: import("@apollo/client").ErrorLike | undefined;
27
+ trendsError: import("@apollo/client").ErrorLike | undefined;
28
+ updatePeriod: (newPeriod: TimePeriod) => void;
29
+ updateTrendGroupBy: (groupBy: TrendGroupBy) => void;
30
+ refetchAnalytics: (variables?: any) => Promise<{
31
+ data: any;
32
+ error?: import("@apollo/client").ErrorLike;
33
+ }>;
34
+ refetchSLAReport: (variables?: any) => Promise<{
35
+ data: any;
36
+ error?: import("@apollo/client").ErrorLike;
37
+ }>;
38
+ refetchSatisfaction: (variables?: any) => Promise<{
39
+ data: any;
40
+ error?: import("@apollo/client").ErrorLike;
41
+ }>;
42
+ refetchLeaderboard: (variables?: any) => Promise<{
43
+ data: any;
44
+ error?: import("@apollo/client").ErrorLike;
45
+ }>;
46
+ refetchTrends: (variables?: any) => Promise<{
47
+ data: any;
48
+ error?: import("@apollo/client").ErrorLike;
49
+ }>;
50
+ exportReport: (format: "PDF" | "CSV") => Promise<void>;
51
+ };
@@ -0,0 +1,2 @@
1
+ import type { UseNotificationApi } from './useNotification';
2
+ export declare function useAttachmentsFailedToast(notify: UseNotificationApi['notify']): void;
@@ -0,0 +1,27 @@
1
+ import type { ChatMessage, ChatSession } from '../types';
2
+ export declare function useChatOperations(sessionId?: string): {
3
+ chatSessions: ChatSession[];
4
+ currentSession: ChatSession | null;
5
+ messages: ChatMessage[];
6
+ sessionsLoading: boolean;
7
+ sessionLoading: boolean;
8
+ startingChat: boolean;
9
+ sendingMessage: boolean;
10
+ endingChat: boolean;
11
+ chatSession: import("../store/supportStore").ChatSessionState;
12
+ initiateChatSession: (input: {
13
+ name?: string;
14
+ email?: string;
15
+ subject?: string;
16
+ }) => Promise<ChatSession | undefined>;
17
+ sendMessage: (content: string, attachments?: File[]) => Promise<ChatMessage | undefined>;
18
+ terminateChatSession: (_feedback?: {
19
+ rating?: number;
20
+ comment?: string;
21
+ }) => Promise<void>;
22
+ refetchSessions: () => Promise<void>;
23
+ refetchSession: () => Promise<void>;
24
+ minimizeChat: () => void;
25
+ maximizeChat: () => void;
26
+ setAgentTyping: (typing: boolean) => void;
27
+ };