@burdenoff/microfe-support 2026.626.1 → 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.
- package/dist/generated/global-operations.d.ts +2517 -0
- package/dist/generated/global-types.d.ts +22913 -0
- package/dist/generated/wspace-operations.d.ts +1 -0
- package/dist/generated/wspace-types.d.ts +57850 -0
- package/dist/index.d.ts +5 -0
- package/dist/support/SupportAdminRoot.d.ts +20 -0
- package/dist/support/SupportAdminRoutes.d.ts +13 -0
- package/dist/support/SupportUserRoot.d.ts +17 -0
- package/dist/support/SupportUserRoutes.d.ts +11 -0
- package/dist/support/components/NotificationToast.d.ts +17 -0
- package/dist/support/components/PageLayout.d.ts +71 -0
- package/dist/support/components/RouteHelpers.d.ts +9 -0
- package/dist/support/components/analytics/CategoryBreakdown.d.ts +9 -0
- package/dist/support/components/analytics/MetricCard.d.ts +10 -0
- package/dist/support/components/analytics/PriorityBreakdown.d.ts +9 -0
- package/dist/support/components/analytics/SLAReport.d.ts +23 -0
- package/dist/support/components/analytics/SatisfactionDistribution.d.ts +23 -0
- package/dist/support/components/analytics/TopAgents.d.ts +19 -0
- package/dist/support/components/analytics/TrendChart.d.ts +15 -0
- package/dist/support/components/kb/ArticleForm.d.ts +25 -0
- package/dist/support/components/settings/CannedResponsesSettings.d.ts +21 -0
- package/dist/support/components/settings/SLAPoliciesSettings.d.ts +18 -0
- package/dist/support/components/settings/TicketCategoriesSettings.d.ts +20 -0
- package/dist/support/components/tickets/AttachmentList.d.ts +7 -0
- package/dist/support/components/tickets/MarkdownContent.d.ts +7 -0
- package/dist/support/components/tickets/MessageComposer.d.ts +22 -0
- package/dist/support/components/tickets/MessageThread.d.ts +12 -0
- package/dist/support/components/tickets/TicketDetailHeader.d.ts +16 -0
- package/dist/support/components/tickets/TicketHeader.d.ts +9 -0
- package/dist/support/components/tickets/TicketSidebar.d.ts +7 -0
- package/dist/support/components/ui.d.ts +5 -0
- package/dist/support/constants.d.ts +20 -0
- package/dist/support/events/rybbit.d.ts +13 -0
- package/dist/support/hooks/index.d.ts +5 -0
- package/dist/support/hooks/useAnalyticsOperations.d.ts +51 -0
- package/dist/support/hooks/useAttachmentsFailedToast.d.ts +2 -0
- package/dist/support/hooks/useChatOperations.d.ts +27 -0
- package/dist/support/hooks/useKnowledgeBaseOperations.d.ts +55 -0
- package/dist/support/hooks/useNotification.d.ts +20 -0
- package/dist/support/hooks/useRegisterFooter.d.ts +6 -0
- package/dist/support/hooks/useSettingsOperations.d.ts +47 -0
- package/dist/support/hooks/useSupportAttachments.d.ts +10 -0
- package/dist/support/hooks/useTicketListOperations.d.ts +31 -0
- package/dist/support/hooks/useTicketOperations.d.ts +39 -0
- package/dist/support/index.d.ts +44 -0
- package/dist/support/pages/AnalyticsPage.d.ts +1 -0
- package/dist/support/pages/ArticleDetailAdminPage.d.ts +7 -0
- package/dist/support/pages/ArticleDetailUserPage.d.ts +7 -0
- package/dist/support/pages/ContactInquiriesPage.d.ts +1 -0
- package/dist/support/pages/ContactInquiryDetailPage.d.ts +1 -0
- package/dist/support/pages/CreateArticlePage.d.ts +1 -0
- package/dist/support/pages/CreateTicketPage.d.ts +1 -0
- package/dist/support/pages/EditArticlePage.d.ts +1 -0
- package/dist/support/pages/JobApplicationDetailPage.d.ts +1 -0
- package/dist/support/pages/JobApplicationsPage.d.ts +1 -0
- package/dist/support/pages/KnowledgeBaseAdminPage.d.ts +7 -0
- package/dist/support/pages/KnowledgeBaseUserPage.d.ts +8 -0
- package/dist/support/pages/SettingsPage.d.ts +1 -0
- package/dist/support/pages/TicketDetailAdminPage.d.ts +8 -0
- package/dist/support/pages/TicketDetailUserPage.d.ts +8 -0
- package/dist/support/pages/TicketListPage.d.ts +11 -0
- package/dist/support/providers/SupportProvider.d.ts +16 -0
- package/dist/support/store/supportStore.d.ts +66 -0
- package/dist/support/types/index.d.ts +160 -0
- package/dist/support/utils/attachments.d.ts +27 -0
- package/dist/support/utils/categoryColors.d.ts +10 -0
- package/dist/support/utils/cn.d.ts +6 -0
- package/dist/support/utils/context.d.ts +2 -0
- package/dist/support/utils/errors.d.ts +2 -0
- package/dist/support/utils/i18n.d.ts +4 -0
- package/dist/support/utils/index.d.ts +57 -0
- package/dist/support/utils/markdown.d.ts +2 -0
- package/dist/support/utils/supportFiles.d.ts +15 -0
- package/dist/support/utils/ticketFilters.d.ts +6 -0
- package/dist/support/utils/uiTokens.d.ts +7 -0
- package/dist/utils/nativeBridge.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { TicketStatus, TicketPriority, SLAMetrics } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Join a base path with a sub-path, avoiding double slashes.
|
|
4
|
+
* Used by Root components to construct navigation paths from basePath.
|
|
5
|
+
*/
|
|
6
|
+
export declare function joinPath(base: string, path: string): string;
|
|
7
|
+
export declare function isAdminRole(role?: string | null): boolean;
|
|
8
|
+
/** Humanise a ContactInquiry.category slug for display, e.g. "plugin-developer" → "Plugin developer". */
|
|
9
|
+
export declare function humanizeCategory(value?: string | null): string;
|
|
10
|
+
/**
|
|
11
|
+
* Format ticket status for display
|
|
12
|
+
*/
|
|
13
|
+
export declare function formatTicketStatus(status: TicketStatus): string;
|
|
14
|
+
/**
|
|
15
|
+
* Get color for ticket priority
|
|
16
|
+
*/
|
|
17
|
+
export declare function getPriorityColor(priority: TicketPriority): string;
|
|
18
|
+
/**
|
|
19
|
+
* Get icon for ticket priority
|
|
20
|
+
*/
|
|
21
|
+
export declare function getPriorityIcon(priority: import('../types').SupportTicketPriority | TicketPriority): string;
|
|
22
|
+
/**
|
|
23
|
+
* Format file size for display
|
|
24
|
+
*/
|
|
25
|
+
export declare function formatFileSize(bytes: number): string;
|
|
26
|
+
/**
|
|
27
|
+
* Format time ago (e.g., "2 hours ago")
|
|
28
|
+
*/
|
|
29
|
+
export declare function formatTimeAgo(date: string | Date): string;
|
|
30
|
+
/**
|
|
31
|
+
* Format duration in minutes to human-readable string
|
|
32
|
+
*/
|
|
33
|
+
export declare function formatDuration(minutes: number): string;
|
|
34
|
+
/**
|
|
35
|
+
* Calculate SLA breach percentage
|
|
36
|
+
*/
|
|
37
|
+
export declare function calculateSLAStatus(slaMetrics: SLAMetrics | undefined): {
|
|
38
|
+
status: 'safe' | 'warning' | 'danger';
|
|
39
|
+
label: string;
|
|
40
|
+
color: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Truncate text with ellipsis
|
|
44
|
+
*/
|
|
45
|
+
export declare function truncateText(text: string, maxLength: number): string;
|
|
46
|
+
/**
|
|
47
|
+
* Extract initials from name
|
|
48
|
+
*/
|
|
49
|
+
export declare function getInitials(name: string): string;
|
|
50
|
+
/**
|
|
51
|
+
* Validate email address
|
|
52
|
+
*/
|
|
53
|
+
export declare function isValidEmail(email: string): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Generate color from string (for avatars, categories, etc.)
|
|
56
|
+
*/
|
|
57
|
+
export declare function stringToColor(str: string): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SupportAttachmentRecord {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
mimeType: string;
|
|
5
|
+
size: string;
|
|
6
|
+
downloadUrl: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function uploadSupportAttachmentFiles(options: {
|
|
9
|
+
ticketId: string;
|
|
10
|
+
files: File[];
|
|
11
|
+
onFileProgress?: (fileName: string, progress: number) => void;
|
|
12
|
+
}): Promise<{
|
|
13
|
+
files: SupportAttachmentRecord[];
|
|
14
|
+
}>;
|
|
15
|
+
export declare function resolveSupportAttachmentFile(fileId: string, ticketId: string): Promise<SupportAttachmentRecord>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type SupportTicket, type SupportTicketFilterInput } from '../../generated/global-types';
|
|
2
|
+
import type { TicketFilters } from '../store/supportStore';
|
|
3
|
+
export declare function buildTicketFilter(ticketFilter: TicketFilters): SupportTicketFilterInput | undefined;
|
|
4
|
+
export declare function scopeTicketFilterToProduct(filter: SupportTicketFilterInput | undefined, productId: string | undefined): SupportTicketFilterInput | undefined;
|
|
5
|
+
export declare function matchesTicketClientFilters(ticket: SupportTicket, ticketFilter: TicketFilters): boolean;
|
|
6
|
+
export declare function matchesTicketSearch(ticket: SupportTicket, query: string): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SlaBreachStatus, SupportTicketPriority, SupportTicketStatus } from '../../generated/global-types';
|
|
2
|
+
export declare const ticketStatusBadgeClasses: Record<SupportTicketStatus, string>;
|
|
3
|
+
export declare const ticketPriorityBadgeClasses: Record<SupportTicketPriority, string>;
|
|
4
|
+
export declare const ticketPriorityDotClasses: Record<SupportTicketPriority, string>;
|
|
5
|
+
export declare const slaBreachBadgeClasses: Record<SlaBreachStatus, string>;
|
|
6
|
+
export declare const slaBreachTextClasses: Record<SlaBreachStatus, string>;
|
|
7
|
+
export declare const analyticsSeriesClasses: readonly ["bg-status-info-bg", "bg-accent-purple", "bg-status-warning-bg", "bg-status-success-bg", "bg-status-error-bg", "bg-accent-teal", "bg-accent-indigo", "bg-muted-foreground"];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { getPlatform, isNative, isIOS, isAndroid, isWeb, nativeImpact, nativeNotify, nativeToast, nativeConfirm, nativeCopyText, nativeShare, nativeOpenUrl, useNativePlatform, useSafeArea, useNativeKeyboard, useAppState, useDeviceInfo, useHaptics, useStatusBar, } from '@burdenoff/fe-libs/shared/native';
|
|
2
|
+
export type { BurdenoffNativePlatform, BurdenoffNativeBridge, SafeAreaInsets, DeviceInfo, HapticImpactStyle, HapticNotificationType, ToastDuration, ConfirmOptions, ShareOptions, AppState, StatusBarTheme, } from '@burdenoff/fe-libs/shared/native';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-support",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.715.1",
|
|
4
4
|
"description": "Burdenoff Support Microfrontend - Complete customer support and ticketing interface",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"main": "./dist/index.js",
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "vite",
|
|
20
|
-
"build": "tsc && vite build --config vite.config.mjs && tsc
|
|
21
|
-
"build:types": "tsc
|
|
20
|
+
"build": "tsc && vite build --config vite.config.mjs && tsc -p tsconfig.build.json",
|
|
21
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
22
22
|
"schema:pull": "graphql-codegen --project schema-wspace && graphql-codegen --project schema-global",
|
|
23
23
|
"codegen": "graphql-codegen --project wspace && graphql-codegen --project global",
|
|
24
24
|
"codegen:watch": "graphql-codegen --project default --watch",
|