@optifye/dashboard-core 6.0.5 → 6.0.6
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/index.d.mts +42 -2
- package/dist/index.d.ts +42 -2
- package/dist/index.js +166 -8
- package/dist/index.mjs +163 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2604,6 +2604,28 @@ declare const authRateLimitService: {
|
|
|
2604
2604
|
clearAllRateLimits: typeof clearAllRateLimits$1;
|
|
2605
2605
|
};
|
|
2606
2606
|
|
|
2607
|
+
/**
|
|
2608
|
+
* Additional options for Mixpanel initialization specifically for
|
|
2609
|
+
* Session Replay & Heatmap support. All options map 1-to-1 to the
|
|
2610
|
+
* Mixpanel JS SDK `init` options documented here:
|
|
2611
|
+
* https://docs.mixpanel.com/docs/replay/web/
|
|
2612
|
+
*/
|
|
2613
|
+
interface MixpanelSessionOptions {
|
|
2614
|
+
/** Percentage (1 = 1%) of sessions to record. */
|
|
2615
|
+
recordSessionsPercent?: number;
|
|
2616
|
+
/** How long (ms) of user inactivity before ending a recording. */
|
|
2617
|
+
recordIdleTimeoutMs?: number;
|
|
2618
|
+
/** Capture click heat-map data during recorded sessions. */
|
|
2619
|
+
recordHeatmapData?: boolean;
|
|
2620
|
+
/** Enable <canvas> recording (experimental). */
|
|
2621
|
+
recordCanvas?: boolean;
|
|
2622
|
+
/** CSS selector for elements to block from recording (e.g. images). */
|
|
2623
|
+
recordBlockSelector?: string;
|
|
2624
|
+
/** CSS selector for elements whose text should be masked. */
|
|
2625
|
+
recordMaskTextSelector?: string;
|
|
2626
|
+
/** Any additional raw init options the caller wants to forward */
|
|
2627
|
+
[key: string]: unknown;
|
|
2628
|
+
}
|
|
2607
2629
|
/**
|
|
2608
2630
|
* Initializes Mixpanel with the provided token.
|
|
2609
2631
|
* Should be called once from the application setup (e.g., within DashboardProvider)
|
|
@@ -2612,9 +2634,23 @@ declare const authRateLimitService: {
|
|
|
2612
2634
|
* @param debug - Optional. Enable Mixpanel debug mode.
|
|
2613
2635
|
* @param trackPageView - Optional. Enable automatic page view tracking by Mixpanel.
|
|
2614
2636
|
*/
|
|
2615
|
-
declare const initializeCoreMixpanel: (token: string,
|
|
2637
|
+
declare const initializeCoreMixpanel: (token: string, debugOrOptions?: boolean | (MixpanelSessionOptions & {
|
|
2638
|
+
debug?: boolean;
|
|
2639
|
+
trackPageView?: boolean;
|
|
2640
|
+
}), trackPageViewArg?: boolean) => void;
|
|
2616
2641
|
declare const trackCorePageView: (pageName: string, properties?: Record<string, any>) => void;
|
|
2617
2642
|
declare const trackCoreEvent: (eventName: string, properties?: Record<string, any>) => void;
|
|
2643
|
+
/** Manually start Session Replay recording regardless of sampling percent. */
|
|
2644
|
+
declare const startCoreSessionRecording: () => void;
|
|
2645
|
+
/** Manually stop an active Session Replay recording. */
|
|
2646
|
+
declare const stopCoreSessionRecording: () => void;
|
|
2647
|
+
/**
|
|
2648
|
+
* Get the current replay-ID & associated properties ($mp_replay_id) so that
|
|
2649
|
+
* callers can attach it to server-side or 3rd-party events.
|
|
2650
|
+
*/
|
|
2651
|
+
declare const getCoreSessionRecordingProperties: () => Record<string, any>;
|
|
2652
|
+
/** Obtain the absolute Mixpanel URL which allows viewing the current replay. */
|
|
2653
|
+
declare const getCoreSessionReplayUrl: () => string | null;
|
|
2618
2654
|
declare const identifyCoreUser: (userId: string, userProperties?: Record<string, any>) => void;
|
|
2619
2655
|
declare const resetCoreMixpanel: () => void;
|
|
2620
2656
|
|
|
@@ -2640,6 +2676,10 @@ declare class SSEChatClient {
|
|
|
2640
2676
|
companyId: string;
|
|
2641
2677
|
lineId: string;
|
|
2642
2678
|
shiftId: number;
|
|
2679
|
+
allLines?: Array<{
|
|
2680
|
+
id: string;
|
|
2681
|
+
name: string;
|
|
2682
|
+
}>;
|
|
2643
2683
|
}, callbacks: {
|
|
2644
2684
|
onThreadCreated?: (threadId: string) => void;
|
|
2645
2685
|
onMessage?: (text: string) => void;
|
|
@@ -4946,4 +4986,4 @@ interface ThreadSidebarProps {
|
|
|
4946
4986
|
}
|
|
4947
4987
|
declare const ThreadSidebar: React__default.FC<ThreadSidebarProps>;
|
|
4948
4988
|
|
|
4949
|
-
export { ACTION_NAMES, AIAgentView, type Action, type ActionName, type ActionService, type ActionThreshold, type ActiveBreak, type AnalyticsConfig, AuthCallback, type AuthCallbackProps, AuthCallbackView, type AuthCallbackViewProps, type AuthConfig, AuthProvider, type AuthUser, AuthenticatedFactoryView, AuthenticatedHelpView, AuthenticatedHomeView, AuthenticatedTargetsView, BarChart, type BarChartDataItem, type BarChartProps, type BarProps, BaseHistoryCalendar, type BaseHistoryCalendarProps, type BaseLineMetric, type BasePerformanceMetric, type BottleneckFilterType, type BottleneckVideo, type BottleneckVideoData, BottlenecksContent, type BottlenecksContentProps, type BreadcrumbItem, type Break, BreakNotificationPopup, type BreakNotificationPopupProps, type BreakRowProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChatMessage, type ChatThread, type ClipCounts, type ComponentOverride, type CoreComponents, type CurrentShiftResult, CycleTimeChart, type CycleTimeChartProps, CycleTimeOverTimeChart, type CycleTimeOverTimeChartProps, DEFAULT_ANALYTICS_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_CONFIG, DEFAULT_DATABASE_CONFIG, DEFAULT_DATE_TIME_CONFIG, DEFAULT_ENDPOINTS_CONFIG, DEFAULT_ENTITY_CONFIG, DEFAULT_SHIFT_CONFIG, DEFAULT_THEME_CONFIG, DEFAULT_VIDEO_CONFIG, DEFAULT_WORKSPACE_CONFIG, DEFAULT_WORKSPACE_POSITIONS, type DashboardConfig, DashboardHeader, type DashboardKPIs, DashboardLayout, type DashboardLayoutProps, DashboardOverridesProvider, DashboardProvider, type DashboardService, type DatabaseConfig, DateDisplay, type DateTimeConfig, DateTimeDisplay, type DateTimeDisplayProps, type DayHistoryData, type DaySummaryData, DebugAuth, DebugAuthView, EmptyStateMessage, type EmptyStateMessageProps, type EndpointsConfig, type EntityConfig, type FactoryOverviewData, FactoryView, type FactoryViewProps, type FormatNumberOptions, GaugeChart, type GaugeChartProps, GridComponentsPlaceholder, Header, type HeaderProps, HelpView, type HelpViewProps, type HistoryCalendarProps, HomeView, type HookOverride, HourlyOutputChart, type HourlyOutputChartProps, type HourlyPerformance, type ISTDateProps, ISTTimer, type ISTTimerProps, KPICard, type KPICardProps, KPIDetailView, type KPIDetailViewProps, KPIGrid, type KPIGridProps, KPIHeader, type KPIHeaderProps, KPISection, type KPITrend, KPIsOverviewView, type KPIsOverviewViewProps, LINE_1_UUID, LINE_2_UUID, LargeOutputProgressChart, type LargeOutputProgressChartProps, LeaderboardDetailView, type LeaderboardDetailViewProps, type LeaderboardEntry, Legend, LineChart, type LineChartDataItem, type LineChartProps, type LineDetails, type LineDisplayData, LineHistoryCalendar, type LineHistoryCalendarProps, type LineInfo, type LineMetrics, LineMonthlyHistory, type LineMonthlyHistoryProps, type LineMonthlyMetric, LineMonthlyPdfGenerator, type LineMonthlyPdfGeneratorProps, type LineNavigationParams, LinePdfExportButton, type LinePdfExportButtonProps, LinePdfGenerator, type LinePdfGeneratorProps, type LineProps, type LineShiftConfig, type LineSnapshot, type LineThreshold, LineWhatsAppShareButton, type LineWhatsAppShareProps, LiveTimer, LoadingInline, LoadingInline as LoadingInlineProps, LoadingOverlay, LoadingPage, LoadingSkeleton, LoadingSkeleton as LoadingSkeletonProps, LoadingSpinner, LoadingState, LoadingState as LoadingStateProps, LoginPage, type LoginPageProps, LoginView, type LoginViewProps, MainLayout, type MainLayoutProps, type Metric, MetricCard, type MetricCardProps$1 as MetricCardProps, type MetricsError, type NavItem, type NavItemTrackingEvent, NoWorkspaceData, type OperatorData, type OperatorInfo, OptifyeAgentClient, type OptifyeAgentContext, type OptifyeAgentRequest, type OptifyeAgentResponse, OutputProgressChart, type OutputProgressChartProps, type OverridesMap, type OverviewLineMetric, type OverviewWorkspaceMetric, PageHeader, type PageHeaderProps, type PageOverride, PieChart, type PieChartProps, type PoorPerformingWorkspace, type ProfileMenuItem, ProfileView, type QualityMetric, type QualityOverview, type QualityService, type RateLimitOptions, type RateLimitResult, type RealtimeService, RegistryProvider, type RoutePath, type S3ClipsAPIParams, type S3Config, type S3ListObjectsParams, S3Service, type S3ServiceConfig, type SKU, type SKUConfig, type SKUCreateInput, type SKUListProps, SKUManagementView, type SKUModalProps, type SKUSelectorProps, type SKUUpdateInput, type SOPCategory, SOPComplianceChart, type SOPComplianceChartProps, SSEChatClient, type SSEEvent, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type ShiftConfig, type ShiftConfiguration, type ShiftConfigurationRecord, type ShiftData$2 as ShiftData, ShiftDisplay, type ShiftHistoryData, type ShiftHoursMap, type ShiftPanelProps, type ShiftSummaryData, type ShiftTime, ShiftsView, type ShiftsViewProps, SideNavBar, type SideNavBarProps, type SimpleLine, SingleVideoStream, type SingleVideoStreamProps, Skeleton, SlackAPI, type StreamProxyConfig, SubscriptionManager, SubscriptionManagerProvider, type SupabaseClient, SupabaseProvider, type Target, TargetWorkspaceGrid, type TargetWorkspaceGridProps, TargetsView, type TargetsViewProps, type ThemeColorValue, type ThemeConfig, ThreadSidebar, TimeDisplay, TimePickerDropdown, type TrackingEventProperties, type TrendDirection, type UnderperformingWorkspace, type UnderperformingWorkspaces, type UseActiveBreaksResult, type UseDashboardMetricsProps, type UseFactoryOverviewOptions, type UseFormatNumberResult, type UseMessagesResult, type UseRealtimeLineMetricsProps, type UseTargetsOptions, type UseThreadsResult, type UseWorkspaceOperatorsOptions, type UserProfileConfig, VideoCard, type VideoConfig, type VideoCroppingConfig, type VideoCroppingRect, VideoGridView, type VideoMetadata, VideoPreloader, type VideoSeverity, type VideoSummary, type VideoType, WORKSPACE_POSITIONS, type WhatsAppSendResult, WhatsAppShareButton, type WhatsAppShareButtonProps, type WhatsappService, type Workspace, type WorkspaceActionUpdate, WorkspaceCard, type WorkspaceCardProps, type WorkspaceConfig, WrappedComponent as WorkspaceDetailView, type WorkspaceDetailedMetrics, WorkspaceDisplayNameExample, WorkspaceGrid, WorkspaceGridItem, type WorkspaceGridItemProps, WorkspaceHistoryCalendar, WorkspaceMetricCards, type WorkspaceMetricCardsProps, type WorkspaceMetrics, WorkspaceMonthlyDataFetcher, type WorkspaceMonthlyDataFetcherProps, type WorkspaceMonthlyMetric, WorkspaceMonthlyPdfGenerator, type WorkspaceMonthlyPdfGeneratorProps, type WorkspaceNavigationParams, WorkspacePdfExportButton, type WorkspacePdfExportButtonProps, WorkspacePdfGenerator, type WorkspacePdfGeneratorProps, type WorkspacePosition, type WorkspaceQualityData, type WorkspaceUrlMapping, WorkspaceWhatsAppShareButton, type WorkspaceWhatsAppShareProps, actionService, apiUtils, authCoreService, authOTPService, authRateLimitService, cacheService, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, forceRefreshWorkspaceDisplayNames, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllLineDisplayNames, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getConfiguredLineIds, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultLineId, getDefaultTabForWorkspace, getLineDisplayName, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getSubscriptionManager, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isLegacyConfiguration, isTransitionPeriod, isValidFactoryViewConfiguration, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, migrateLegacyConfiguration, optifyeAgentClient, preInitializeWorkspaceDisplayNames, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, resetSubscriptionManager, s3VideoPreloader, skuService, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAllWorkspaceMetrics, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHlsStreamWithCropping, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useSKUs, useShiftConfig, useShifts, useSubscriptionManager, useSubscriptionManagerSafe, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useVideoConfig, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
|
|
4989
|
+
export { ACTION_NAMES, AIAgentView, type Action, type ActionName, type ActionService, type ActionThreshold, type ActiveBreak, type AnalyticsConfig, AuthCallback, type AuthCallbackProps, AuthCallbackView, type AuthCallbackViewProps, type AuthConfig, AuthProvider, type AuthUser, AuthenticatedFactoryView, AuthenticatedHelpView, AuthenticatedHomeView, AuthenticatedTargetsView, BarChart, type BarChartDataItem, type BarChartProps, type BarProps, BaseHistoryCalendar, type BaseHistoryCalendarProps, type BaseLineMetric, type BasePerformanceMetric, type BottleneckFilterType, type BottleneckVideo, type BottleneckVideoData, BottlenecksContent, type BottlenecksContentProps, type BreadcrumbItem, type Break, BreakNotificationPopup, type BreakNotificationPopupProps, type BreakRowProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChatMessage, type ChatThread, type ClipCounts, type ComponentOverride, type CoreComponents, type CurrentShiftResult, CycleTimeChart, type CycleTimeChartProps, CycleTimeOverTimeChart, type CycleTimeOverTimeChartProps, DEFAULT_ANALYTICS_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_CONFIG, DEFAULT_DATABASE_CONFIG, DEFAULT_DATE_TIME_CONFIG, DEFAULT_ENDPOINTS_CONFIG, DEFAULT_ENTITY_CONFIG, DEFAULT_SHIFT_CONFIG, DEFAULT_THEME_CONFIG, DEFAULT_VIDEO_CONFIG, DEFAULT_WORKSPACE_CONFIG, DEFAULT_WORKSPACE_POSITIONS, type DashboardConfig, DashboardHeader, type DashboardKPIs, DashboardLayout, type DashboardLayoutProps, DashboardOverridesProvider, DashboardProvider, type DashboardService, type DatabaseConfig, DateDisplay, type DateTimeConfig, DateTimeDisplay, type DateTimeDisplayProps, type DayHistoryData, type DaySummaryData, DebugAuth, DebugAuthView, EmptyStateMessage, type EmptyStateMessageProps, type EndpointsConfig, type EntityConfig, type FactoryOverviewData, FactoryView, type FactoryViewProps, type FormatNumberOptions, GaugeChart, type GaugeChartProps, GridComponentsPlaceholder, Header, type HeaderProps, HelpView, type HelpViewProps, type HistoryCalendarProps, HomeView, type HookOverride, HourlyOutputChart, type HourlyOutputChartProps, type HourlyPerformance, type ISTDateProps, ISTTimer, type ISTTimerProps, KPICard, type KPICardProps, KPIDetailView, type KPIDetailViewProps, KPIGrid, type KPIGridProps, KPIHeader, type KPIHeaderProps, KPISection, type KPITrend, KPIsOverviewView, type KPIsOverviewViewProps, LINE_1_UUID, LINE_2_UUID, LargeOutputProgressChart, type LargeOutputProgressChartProps, LeaderboardDetailView, type LeaderboardDetailViewProps, type LeaderboardEntry, Legend, LineChart, type LineChartDataItem, type LineChartProps, type LineDetails, type LineDisplayData, LineHistoryCalendar, type LineHistoryCalendarProps, type LineInfo, type LineMetrics, LineMonthlyHistory, type LineMonthlyHistoryProps, type LineMonthlyMetric, LineMonthlyPdfGenerator, type LineMonthlyPdfGeneratorProps, type LineNavigationParams, LinePdfExportButton, type LinePdfExportButtonProps, LinePdfGenerator, type LinePdfGeneratorProps, type LineProps, type LineShiftConfig, type LineSnapshot, type LineThreshold, LineWhatsAppShareButton, type LineWhatsAppShareProps, LiveTimer, LoadingInline, LoadingInline as LoadingInlineProps, LoadingOverlay, LoadingPage, LoadingSkeleton, LoadingSkeleton as LoadingSkeletonProps, LoadingSpinner, LoadingState, LoadingState as LoadingStateProps, LoginPage, type LoginPageProps, LoginView, type LoginViewProps, MainLayout, type MainLayoutProps, type Metric, MetricCard, type MetricCardProps$1 as MetricCardProps, type MetricsError, type NavItem, type NavItemTrackingEvent, NoWorkspaceData, type OperatorData, type OperatorInfo, OptifyeAgentClient, type OptifyeAgentContext, type OptifyeAgentRequest, type OptifyeAgentResponse, OutputProgressChart, type OutputProgressChartProps, type OverridesMap, type OverviewLineMetric, type OverviewWorkspaceMetric, PageHeader, type PageHeaderProps, type PageOverride, PieChart, type PieChartProps, type PoorPerformingWorkspace, type ProfileMenuItem, ProfileView, type QualityMetric, type QualityOverview, type QualityService, type RateLimitOptions, type RateLimitResult, type RealtimeService, RegistryProvider, type RoutePath, type S3ClipsAPIParams, type S3Config, type S3ListObjectsParams, S3Service, type S3ServiceConfig, type SKU, type SKUConfig, type SKUCreateInput, type SKUListProps, SKUManagementView, type SKUModalProps, type SKUSelectorProps, type SKUUpdateInput, type SOPCategory, SOPComplianceChart, type SOPComplianceChartProps, SSEChatClient, type SSEEvent, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type ShiftConfig, type ShiftConfiguration, type ShiftConfigurationRecord, type ShiftData$2 as ShiftData, ShiftDisplay, type ShiftHistoryData, type ShiftHoursMap, type ShiftPanelProps, type ShiftSummaryData, type ShiftTime, ShiftsView, type ShiftsViewProps, SideNavBar, type SideNavBarProps, type SimpleLine, SingleVideoStream, type SingleVideoStreamProps, Skeleton, SlackAPI, type StreamProxyConfig, SubscriptionManager, SubscriptionManagerProvider, type SupabaseClient, SupabaseProvider, type Target, TargetWorkspaceGrid, type TargetWorkspaceGridProps, TargetsView, type TargetsViewProps, type ThemeColorValue, type ThemeConfig, ThreadSidebar, TimeDisplay, TimePickerDropdown, type TrackingEventProperties, type TrendDirection, type UnderperformingWorkspace, type UnderperformingWorkspaces, type UseActiveBreaksResult, type UseDashboardMetricsProps, type UseFactoryOverviewOptions, type UseFormatNumberResult, type UseMessagesResult, type UseRealtimeLineMetricsProps, type UseTargetsOptions, type UseThreadsResult, type UseWorkspaceOperatorsOptions, type UserProfileConfig, VideoCard, type VideoConfig, type VideoCroppingConfig, type VideoCroppingRect, VideoGridView, type VideoMetadata, VideoPreloader, type VideoSeverity, type VideoSummary, type VideoType, WORKSPACE_POSITIONS, type WhatsAppSendResult, WhatsAppShareButton, type WhatsAppShareButtonProps, type WhatsappService, type Workspace, type WorkspaceActionUpdate, WorkspaceCard, type WorkspaceCardProps, type WorkspaceConfig, WrappedComponent as WorkspaceDetailView, type WorkspaceDetailedMetrics, WorkspaceDisplayNameExample, WorkspaceGrid, WorkspaceGridItem, type WorkspaceGridItemProps, WorkspaceHistoryCalendar, WorkspaceMetricCards, type WorkspaceMetricCardsProps, type WorkspaceMetrics, WorkspaceMonthlyDataFetcher, type WorkspaceMonthlyDataFetcherProps, type WorkspaceMonthlyMetric, WorkspaceMonthlyPdfGenerator, type WorkspaceMonthlyPdfGeneratorProps, type WorkspaceNavigationParams, WorkspacePdfExportButton, type WorkspacePdfExportButtonProps, WorkspacePdfGenerator, type WorkspacePdfGeneratorProps, type WorkspacePosition, type WorkspaceQualityData, type WorkspaceUrlMapping, WorkspaceWhatsAppShareButton, type WorkspaceWhatsAppShareProps, actionService, apiUtils, authCoreService, authOTPService, authRateLimitService, cacheService, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, forceRefreshWorkspaceDisplayNames, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllLineDisplayNames, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getConfiguredLineIds, getCoreSessionRecordingProperties, getCoreSessionReplayUrl, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultLineId, getDefaultTabForWorkspace, getLineDisplayName, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getSubscriptionManager, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isLegacyConfiguration, isTransitionPeriod, isValidFactoryViewConfiguration, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, migrateLegacyConfiguration, optifyeAgentClient, preInitializeWorkspaceDisplayNames, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, resetSubscriptionManager, s3VideoPreloader, skuService, startCoreSessionRecording, stopCoreSessionRecording, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAllWorkspaceMetrics, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHlsStreamWithCropping, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useSKUs, useShiftConfig, useShifts, useSubscriptionManager, useSubscriptionManagerSafe, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useVideoConfig, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
|
package/dist/index.d.ts
CHANGED
|
@@ -2604,6 +2604,28 @@ declare const authRateLimitService: {
|
|
|
2604
2604
|
clearAllRateLimits: typeof clearAllRateLimits$1;
|
|
2605
2605
|
};
|
|
2606
2606
|
|
|
2607
|
+
/**
|
|
2608
|
+
* Additional options for Mixpanel initialization specifically for
|
|
2609
|
+
* Session Replay & Heatmap support. All options map 1-to-1 to the
|
|
2610
|
+
* Mixpanel JS SDK `init` options documented here:
|
|
2611
|
+
* https://docs.mixpanel.com/docs/replay/web/
|
|
2612
|
+
*/
|
|
2613
|
+
interface MixpanelSessionOptions {
|
|
2614
|
+
/** Percentage (1 = 1%) of sessions to record. */
|
|
2615
|
+
recordSessionsPercent?: number;
|
|
2616
|
+
/** How long (ms) of user inactivity before ending a recording. */
|
|
2617
|
+
recordIdleTimeoutMs?: number;
|
|
2618
|
+
/** Capture click heat-map data during recorded sessions. */
|
|
2619
|
+
recordHeatmapData?: boolean;
|
|
2620
|
+
/** Enable <canvas> recording (experimental). */
|
|
2621
|
+
recordCanvas?: boolean;
|
|
2622
|
+
/** CSS selector for elements to block from recording (e.g. images). */
|
|
2623
|
+
recordBlockSelector?: string;
|
|
2624
|
+
/** CSS selector for elements whose text should be masked. */
|
|
2625
|
+
recordMaskTextSelector?: string;
|
|
2626
|
+
/** Any additional raw init options the caller wants to forward */
|
|
2627
|
+
[key: string]: unknown;
|
|
2628
|
+
}
|
|
2607
2629
|
/**
|
|
2608
2630
|
* Initializes Mixpanel with the provided token.
|
|
2609
2631
|
* Should be called once from the application setup (e.g., within DashboardProvider)
|
|
@@ -2612,9 +2634,23 @@ declare const authRateLimitService: {
|
|
|
2612
2634
|
* @param debug - Optional. Enable Mixpanel debug mode.
|
|
2613
2635
|
* @param trackPageView - Optional. Enable automatic page view tracking by Mixpanel.
|
|
2614
2636
|
*/
|
|
2615
|
-
declare const initializeCoreMixpanel: (token: string,
|
|
2637
|
+
declare const initializeCoreMixpanel: (token: string, debugOrOptions?: boolean | (MixpanelSessionOptions & {
|
|
2638
|
+
debug?: boolean;
|
|
2639
|
+
trackPageView?: boolean;
|
|
2640
|
+
}), trackPageViewArg?: boolean) => void;
|
|
2616
2641
|
declare const trackCorePageView: (pageName: string, properties?: Record<string, any>) => void;
|
|
2617
2642
|
declare const trackCoreEvent: (eventName: string, properties?: Record<string, any>) => void;
|
|
2643
|
+
/** Manually start Session Replay recording regardless of sampling percent. */
|
|
2644
|
+
declare const startCoreSessionRecording: () => void;
|
|
2645
|
+
/** Manually stop an active Session Replay recording. */
|
|
2646
|
+
declare const stopCoreSessionRecording: () => void;
|
|
2647
|
+
/**
|
|
2648
|
+
* Get the current replay-ID & associated properties ($mp_replay_id) so that
|
|
2649
|
+
* callers can attach it to server-side or 3rd-party events.
|
|
2650
|
+
*/
|
|
2651
|
+
declare const getCoreSessionRecordingProperties: () => Record<string, any>;
|
|
2652
|
+
/** Obtain the absolute Mixpanel URL which allows viewing the current replay. */
|
|
2653
|
+
declare const getCoreSessionReplayUrl: () => string | null;
|
|
2618
2654
|
declare const identifyCoreUser: (userId: string, userProperties?: Record<string, any>) => void;
|
|
2619
2655
|
declare const resetCoreMixpanel: () => void;
|
|
2620
2656
|
|
|
@@ -2640,6 +2676,10 @@ declare class SSEChatClient {
|
|
|
2640
2676
|
companyId: string;
|
|
2641
2677
|
lineId: string;
|
|
2642
2678
|
shiftId: number;
|
|
2679
|
+
allLines?: Array<{
|
|
2680
|
+
id: string;
|
|
2681
|
+
name: string;
|
|
2682
|
+
}>;
|
|
2643
2683
|
}, callbacks: {
|
|
2644
2684
|
onThreadCreated?: (threadId: string) => void;
|
|
2645
2685
|
onMessage?: (text: string) => void;
|
|
@@ -4946,4 +4986,4 @@ interface ThreadSidebarProps {
|
|
|
4946
4986
|
}
|
|
4947
4987
|
declare const ThreadSidebar: React__default.FC<ThreadSidebarProps>;
|
|
4948
4988
|
|
|
4949
|
-
export { ACTION_NAMES, AIAgentView, type Action, type ActionName, type ActionService, type ActionThreshold, type ActiveBreak, type AnalyticsConfig, AuthCallback, type AuthCallbackProps, AuthCallbackView, type AuthCallbackViewProps, type AuthConfig, AuthProvider, type AuthUser, AuthenticatedFactoryView, AuthenticatedHelpView, AuthenticatedHomeView, AuthenticatedTargetsView, BarChart, type BarChartDataItem, type BarChartProps, type BarProps, BaseHistoryCalendar, type BaseHistoryCalendarProps, type BaseLineMetric, type BasePerformanceMetric, type BottleneckFilterType, type BottleneckVideo, type BottleneckVideoData, BottlenecksContent, type BottlenecksContentProps, type BreadcrumbItem, type Break, BreakNotificationPopup, type BreakNotificationPopupProps, type BreakRowProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChatMessage, type ChatThread, type ClipCounts, type ComponentOverride, type CoreComponents, type CurrentShiftResult, CycleTimeChart, type CycleTimeChartProps, CycleTimeOverTimeChart, type CycleTimeOverTimeChartProps, DEFAULT_ANALYTICS_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_CONFIG, DEFAULT_DATABASE_CONFIG, DEFAULT_DATE_TIME_CONFIG, DEFAULT_ENDPOINTS_CONFIG, DEFAULT_ENTITY_CONFIG, DEFAULT_SHIFT_CONFIG, DEFAULT_THEME_CONFIG, DEFAULT_VIDEO_CONFIG, DEFAULT_WORKSPACE_CONFIG, DEFAULT_WORKSPACE_POSITIONS, type DashboardConfig, DashboardHeader, type DashboardKPIs, DashboardLayout, type DashboardLayoutProps, DashboardOverridesProvider, DashboardProvider, type DashboardService, type DatabaseConfig, DateDisplay, type DateTimeConfig, DateTimeDisplay, type DateTimeDisplayProps, type DayHistoryData, type DaySummaryData, DebugAuth, DebugAuthView, EmptyStateMessage, type EmptyStateMessageProps, type EndpointsConfig, type EntityConfig, type FactoryOverviewData, FactoryView, type FactoryViewProps, type FormatNumberOptions, GaugeChart, type GaugeChartProps, GridComponentsPlaceholder, Header, type HeaderProps, HelpView, type HelpViewProps, type HistoryCalendarProps, HomeView, type HookOverride, HourlyOutputChart, type HourlyOutputChartProps, type HourlyPerformance, type ISTDateProps, ISTTimer, type ISTTimerProps, KPICard, type KPICardProps, KPIDetailView, type KPIDetailViewProps, KPIGrid, type KPIGridProps, KPIHeader, type KPIHeaderProps, KPISection, type KPITrend, KPIsOverviewView, type KPIsOverviewViewProps, LINE_1_UUID, LINE_2_UUID, LargeOutputProgressChart, type LargeOutputProgressChartProps, LeaderboardDetailView, type LeaderboardDetailViewProps, type LeaderboardEntry, Legend, LineChart, type LineChartDataItem, type LineChartProps, type LineDetails, type LineDisplayData, LineHistoryCalendar, type LineHistoryCalendarProps, type LineInfo, type LineMetrics, LineMonthlyHistory, type LineMonthlyHistoryProps, type LineMonthlyMetric, LineMonthlyPdfGenerator, type LineMonthlyPdfGeneratorProps, type LineNavigationParams, LinePdfExportButton, type LinePdfExportButtonProps, LinePdfGenerator, type LinePdfGeneratorProps, type LineProps, type LineShiftConfig, type LineSnapshot, type LineThreshold, LineWhatsAppShareButton, type LineWhatsAppShareProps, LiveTimer, LoadingInline, LoadingInline as LoadingInlineProps, LoadingOverlay, LoadingPage, LoadingSkeleton, LoadingSkeleton as LoadingSkeletonProps, LoadingSpinner, LoadingState, LoadingState as LoadingStateProps, LoginPage, type LoginPageProps, LoginView, type LoginViewProps, MainLayout, type MainLayoutProps, type Metric, MetricCard, type MetricCardProps$1 as MetricCardProps, type MetricsError, type NavItem, type NavItemTrackingEvent, NoWorkspaceData, type OperatorData, type OperatorInfo, OptifyeAgentClient, type OptifyeAgentContext, type OptifyeAgentRequest, type OptifyeAgentResponse, OutputProgressChart, type OutputProgressChartProps, type OverridesMap, type OverviewLineMetric, type OverviewWorkspaceMetric, PageHeader, type PageHeaderProps, type PageOverride, PieChart, type PieChartProps, type PoorPerformingWorkspace, type ProfileMenuItem, ProfileView, type QualityMetric, type QualityOverview, type QualityService, type RateLimitOptions, type RateLimitResult, type RealtimeService, RegistryProvider, type RoutePath, type S3ClipsAPIParams, type S3Config, type S3ListObjectsParams, S3Service, type S3ServiceConfig, type SKU, type SKUConfig, type SKUCreateInput, type SKUListProps, SKUManagementView, type SKUModalProps, type SKUSelectorProps, type SKUUpdateInput, type SOPCategory, SOPComplianceChart, type SOPComplianceChartProps, SSEChatClient, type SSEEvent, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type ShiftConfig, type ShiftConfiguration, type ShiftConfigurationRecord, type ShiftData$2 as ShiftData, ShiftDisplay, type ShiftHistoryData, type ShiftHoursMap, type ShiftPanelProps, type ShiftSummaryData, type ShiftTime, ShiftsView, type ShiftsViewProps, SideNavBar, type SideNavBarProps, type SimpleLine, SingleVideoStream, type SingleVideoStreamProps, Skeleton, SlackAPI, type StreamProxyConfig, SubscriptionManager, SubscriptionManagerProvider, type SupabaseClient, SupabaseProvider, type Target, TargetWorkspaceGrid, type TargetWorkspaceGridProps, TargetsView, type TargetsViewProps, type ThemeColorValue, type ThemeConfig, ThreadSidebar, TimeDisplay, TimePickerDropdown, type TrackingEventProperties, type TrendDirection, type UnderperformingWorkspace, type UnderperformingWorkspaces, type UseActiveBreaksResult, type UseDashboardMetricsProps, type UseFactoryOverviewOptions, type UseFormatNumberResult, type UseMessagesResult, type UseRealtimeLineMetricsProps, type UseTargetsOptions, type UseThreadsResult, type UseWorkspaceOperatorsOptions, type UserProfileConfig, VideoCard, type VideoConfig, type VideoCroppingConfig, type VideoCroppingRect, VideoGridView, type VideoMetadata, VideoPreloader, type VideoSeverity, type VideoSummary, type VideoType, WORKSPACE_POSITIONS, type WhatsAppSendResult, WhatsAppShareButton, type WhatsAppShareButtonProps, type WhatsappService, type Workspace, type WorkspaceActionUpdate, WorkspaceCard, type WorkspaceCardProps, type WorkspaceConfig, WrappedComponent as WorkspaceDetailView, type WorkspaceDetailedMetrics, WorkspaceDisplayNameExample, WorkspaceGrid, WorkspaceGridItem, type WorkspaceGridItemProps, WorkspaceHistoryCalendar, WorkspaceMetricCards, type WorkspaceMetricCardsProps, type WorkspaceMetrics, WorkspaceMonthlyDataFetcher, type WorkspaceMonthlyDataFetcherProps, type WorkspaceMonthlyMetric, WorkspaceMonthlyPdfGenerator, type WorkspaceMonthlyPdfGeneratorProps, type WorkspaceNavigationParams, WorkspacePdfExportButton, type WorkspacePdfExportButtonProps, WorkspacePdfGenerator, type WorkspacePdfGeneratorProps, type WorkspacePosition, type WorkspaceQualityData, type WorkspaceUrlMapping, WorkspaceWhatsAppShareButton, type WorkspaceWhatsAppShareProps, actionService, apiUtils, authCoreService, authOTPService, authRateLimitService, cacheService, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, forceRefreshWorkspaceDisplayNames, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllLineDisplayNames, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getConfiguredLineIds, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultLineId, getDefaultTabForWorkspace, getLineDisplayName, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getSubscriptionManager, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isLegacyConfiguration, isTransitionPeriod, isValidFactoryViewConfiguration, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, migrateLegacyConfiguration, optifyeAgentClient, preInitializeWorkspaceDisplayNames, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, resetSubscriptionManager, s3VideoPreloader, skuService, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAllWorkspaceMetrics, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHlsStreamWithCropping, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useSKUs, useShiftConfig, useShifts, useSubscriptionManager, useSubscriptionManagerSafe, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useVideoConfig, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
|
|
4989
|
+
export { ACTION_NAMES, AIAgentView, type Action, type ActionName, type ActionService, type ActionThreshold, type ActiveBreak, type AnalyticsConfig, AuthCallback, type AuthCallbackProps, AuthCallbackView, type AuthCallbackViewProps, type AuthConfig, AuthProvider, type AuthUser, AuthenticatedFactoryView, AuthenticatedHelpView, AuthenticatedHomeView, AuthenticatedTargetsView, BarChart, type BarChartDataItem, type BarChartProps, type BarProps, BaseHistoryCalendar, type BaseHistoryCalendarProps, type BaseLineMetric, type BasePerformanceMetric, type BottleneckFilterType, type BottleneckVideo, type BottleneckVideoData, BottlenecksContent, type BottlenecksContentProps, type BreadcrumbItem, type Break, BreakNotificationPopup, type BreakNotificationPopupProps, type BreakRowProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChatMessage, type ChatThread, type ClipCounts, type ComponentOverride, type CoreComponents, type CurrentShiftResult, CycleTimeChart, type CycleTimeChartProps, CycleTimeOverTimeChart, type CycleTimeOverTimeChartProps, DEFAULT_ANALYTICS_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_CONFIG, DEFAULT_DATABASE_CONFIG, DEFAULT_DATE_TIME_CONFIG, DEFAULT_ENDPOINTS_CONFIG, DEFAULT_ENTITY_CONFIG, DEFAULT_SHIFT_CONFIG, DEFAULT_THEME_CONFIG, DEFAULT_VIDEO_CONFIG, DEFAULT_WORKSPACE_CONFIG, DEFAULT_WORKSPACE_POSITIONS, type DashboardConfig, DashboardHeader, type DashboardKPIs, DashboardLayout, type DashboardLayoutProps, DashboardOverridesProvider, DashboardProvider, type DashboardService, type DatabaseConfig, DateDisplay, type DateTimeConfig, DateTimeDisplay, type DateTimeDisplayProps, type DayHistoryData, type DaySummaryData, DebugAuth, DebugAuthView, EmptyStateMessage, type EmptyStateMessageProps, type EndpointsConfig, type EntityConfig, type FactoryOverviewData, FactoryView, type FactoryViewProps, type FormatNumberOptions, GaugeChart, type GaugeChartProps, GridComponentsPlaceholder, Header, type HeaderProps, HelpView, type HelpViewProps, type HistoryCalendarProps, HomeView, type HookOverride, HourlyOutputChart, type HourlyOutputChartProps, type HourlyPerformance, type ISTDateProps, ISTTimer, type ISTTimerProps, KPICard, type KPICardProps, KPIDetailView, type KPIDetailViewProps, KPIGrid, type KPIGridProps, KPIHeader, type KPIHeaderProps, KPISection, type KPITrend, KPIsOverviewView, type KPIsOverviewViewProps, LINE_1_UUID, LINE_2_UUID, LargeOutputProgressChart, type LargeOutputProgressChartProps, LeaderboardDetailView, type LeaderboardDetailViewProps, type LeaderboardEntry, Legend, LineChart, type LineChartDataItem, type LineChartProps, type LineDetails, type LineDisplayData, LineHistoryCalendar, type LineHistoryCalendarProps, type LineInfo, type LineMetrics, LineMonthlyHistory, type LineMonthlyHistoryProps, type LineMonthlyMetric, LineMonthlyPdfGenerator, type LineMonthlyPdfGeneratorProps, type LineNavigationParams, LinePdfExportButton, type LinePdfExportButtonProps, LinePdfGenerator, type LinePdfGeneratorProps, type LineProps, type LineShiftConfig, type LineSnapshot, type LineThreshold, LineWhatsAppShareButton, type LineWhatsAppShareProps, LiveTimer, LoadingInline, LoadingInline as LoadingInlineProps, LoadingOverlay, LoadingPage, LoadingSkeleton, LoadingSkeleton as LoadingSkeletonProps, LoadingSpinner, LoadingState, LoadingState as LoadingStateProps, LoginPage, type LoginPageProps, LoginView, type LoginViewProps, MainLayout, type MainLayoutProps, type Metric, MetricCard, type MetricCardProps$1 as MetricCardProps, type MetricsError, type NavItem, type NavItemTrackingEvent, NoWorkspaceData, type OperatorData, type OperatorInfo, OptifyeAgentClient, type OptifyeAgentContext, type OptifyeAgentRequest, type OptifyeAgentResponse, OutputProgressChart, type OutputProgressChartProps, type OverridesMap, type OverviewLineMetric, type OverviewWorkspaceMetric, PageHeader, type PageHeaderProps, type PageOverride, PieChart, type PieChartProps, type PoorPerformingWorkspace, type ProfileMenuItem, ProfileView, type QualityMetric, type QualityOverview, type QualityService, type RateLimitOptions, type RateLimitResult, type RealtimeService, RegistryProvider, type RoutePath, type S3ClipsAPIParams, type S3Config, type S3ListObjectsParams, S3Service, type S3ServiceConfig, type SKU, type SKUConfig, type SKUCreateInput, type SKUListProps, SKUManagementView, type SKUModalProps, type SKUSelectorProps, type SKUUpdateInput, type SOPCategory, SOPComplianceChart, type SOPComplianceChartProps, SSEChatClient, type SSEEvent, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, type ShiftConfig, type ShiftConfiguration, type ShiftConfigurationRecord, type ShiftData$2 as ShiftData, ShiftDisplay, type ShiftHistoryData, type ShiftHoursMap, type ShiftPanelProps, type ShiftSummaryData, type ShiftTime, ShiftsView, type ShiftsViewProps, SideNavBar, type SideNavBarProps, type SimpleLine, SingleVideoStream, type SingleVideoStreamProps, Skeleton, SlackAPI, type StreamProxyConfig, SubscriptionManager, SubscriptionManagerProvider, type SupabaseClient, SupabaseProvider, type Target, TargetWorkspaceGrid, type TargetWorkspaceGridProps, TargetsView, type TargetsViewProps, type ThemeColorValue, type ThemeConfig, ThreadSidebar, TimeDisplay, TimePickerDropdown, type TrackingEventProperties, type TrendDirection, type UnderperformingWorkspace, type UnderperformingWorkspaces, type UseActiveBreaksResult, type UseDashboardMetricsProps, type UseFactoryOverviewOptions, type UseFormatNumberResult, type UseMessagesResult, type UseRealtimeLineMetricsProps, type UseTargetsOptions, type UseThreadsResult, type UseWorkspaceOperatorsOptions, type UserProfileConfig, VideoCard, type VideoConfig, type VideoCroppingConfig, type VideoCroppingRect, VideoGridView, type VideoMetadata, VideoPreloader, type VideoSeverity, type VideoSummary, type VideoType, WORKSPACE_POSITIONS, type WhatsAppSendResult, WhatsAppShareButton, type WhatsAppShareButtonProps, type WhatsappService, type Workspace, type WorkspaceActionUpdate, WorkspaceCard, type WorkspaceCardProps, type WorkspaceConfig, WrappedComponent as WorkspaceDetailView, type WorkspaceDetailedMetrics, WorkspaceDisplayNameExample, WorkspaceGrid, WorkspaceGridItem, type WorkspaceGridItemProps, WorkspaceHistoryCalendar, WorkspaceMetricCards, type WorkspaceMetricCardsProps, type WorkspaceMetrics, WorkspaceMonthlyDataFetcher, type WorkspaceMonthlyDataFetcherProps, type WorkspaceMonthlyMetric, WorkspaceMonthlyPdfGenerator, type WorkspaceMonthlyPdfGeneratorProps, type WorkspaceNavigationParams, WorkspacePdfExportButton, type WorkspacePdfExportButtonProps, WorkspacePdfGenerator, type WorkspacePdfGeneratorProps, type WorkspacePosition, type WorkspaceQualityData, type WorkspaceUrlMapping, WorkspaceWhatsAppShareButton, type WorkspaceWhatsAppShareProps, actionService, apiUtils, authCoreService, authOTPService, authRateLimitService, cacheService, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, forceRefreshWorkspaceDisplayNames, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllLineDisplayNames, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getConfiguredLineIds, getCoreSessionRecordingProperties, getCoreSessionReplayUrl, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultLineId, getDefaultTabForWorkspace, getLineDisplayName, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getSubscriptionManager, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isLegacyConfiguration, isTransitionPeriod, isValidFactoryViewConfiguration, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, migrateLegacyConfiguration, optifyeAgentClient, preInitializeWorkspaceDisplayNames, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, resetSubscriptionManager, s3VideoPreloader, skuService, startCoreSessionRecording, stopCoreSessionRecording, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAllWorkspaceMetrics, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHlsStreamWithCropping, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useSKUs, useShiftConfig, useShifts, useSubscriptionManager, useSubscriptionManagerSafe, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useVideoConfig, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
|
package/dist/index.js
CHANGED
|
@@ -2107,7 +2107,7 @@ var authRateLimitService = {
|
|
|
2107
2107
|
};
|
|
2108
2108
|
var isMixpanelInitialized = false;
|
|
2109
2109
|
var currentUserProperties;
|
|
2110
|
-
var initializeCoreMixpanel = (token,
|
|
2110
|
+
var initializeCoreMixpanel = (token, debugOrOptions, trackPageViewArg) => {
|
|
2111
2111
|
if (!token) {
|
|
2112
2112
|
console.warn("Mixpanel token not provided for initialization. Mixpanel will not be enabled.");
|
|
2113
2113
|
return;
|
|
@@ -2116,15 +2116,51 @@ var initializeCoreMixpanel = (token, debug, trackPageView) => {
|
|
|
2116
2116
|
console.warn("Mixpanel already initialized. Ignoring subsequent initialization.");
|
|
2117
2117
|
return;
|
|
2118
2118
|
}
|
|
2119
|
-
|
|
2119
|
+
let debug;
|
|
2120
|
+
let trackPageView;
|
|
2121
|
+
let sessionOpts = {};
|
|
2122
|
+
if (typeof debugOrOptions === "boolean" || debugOrOptions === void 0) {
|
|
2123
|
+
debug = debugOrOptions;
|
|
2124
|
+
trackPageView = trackPageViewArg;
|
|
2125
|
+
} else {
|
|
2126
|
+
const opts = debugOrOptions;
|
|
2127
|
+
({ debug, trackPageView, ...sessionOpts } = opts);
|
|
2128
|
+
}
|
|
2129
|
+
const initOptions = {
|
|
2120
2130
|
debug: debug ?? process.env.NODE_ENV === "development",
|
|
2121
|
-
// Keep env var as fallback if not explicitly passed
|
|
2122
2131
|
track_pageview: trackPageView ?? true,
|
|
2123
|
-
// Default to true if not specified in config
|
|
2124
2132
|
persistence: "localStorage"
|
|
2133
|
+
};
|
|
2134
|
+
if (sessionOpts.recordSessionsPercent !== void 0) {
|
|
2135
|
+
initOptions.record_sessions_percent = sessionOpts.recordSessionsPercent;
|
|
2136
|
+
} else {
|
|
2137
|
+
initOptions.record_sessions_percent = 1;
|
|
2138
|
+
}
|
|
2139
|
+
if (sessionOpts.recordIdleTimeoutMs !== void 0) {
|
|
2140
|
+
initOptions.record_idle_timeout_ms = sessionOpts.recordIdleTimeoutMs;
|
|
2141
|
+
}
|
|
2142
|
+
if (sessionOpts.recordHeatmapData !== void 0) {
|
|
2143
|
+
initOptions.record_heatmap_data = sessionOpts.recordHeatmapData;
|
|
2144
|
+
} else {
|
|
2145
|
+
initOptions.record_heatmap_data = true;
|
|
2146
|
+
}
|
|
2147
|
+
if (sessionOpts.recordCanvas !== void 0) {
|
|
2148
|
+
initOptions.record_canvas = sessionOpts.recordCanvas;
|
|
2149
|
+
}
|
|
2150
|
+
if (sessionOpts.recordBlockSelector !== void 0) {
|
|
2151
|
+
initOptions.record_block_selector = sessionOpts.recordBlockSelector;
|
|
2152
|
+
}
|
|
2153
|
+
if (sessionOpts.recordMaskTextSelector !== void 0) {
|
|
2154
|
+
initOptions.record_mask_text_selector = sessionOpts.recordMaskTextSelector;
|
|
2155
|
+
}
|
|
2156
|
+
Object.keys(sessionOpts).forEach((key) => {
|
|
2157
|
+
if (!(key in initOptions)) {
|
|
2158
|
+
initOptions[key] = sessionOpts[key];
|
|
2159
|
+
}
|
|
2125
2160
|
});
|
|
2161
|
+
mixpanel__default.default.init(token, initOptions);
|
|
2126
2162
|
isMixpanelInitialized = true;
|
|
2127
|
-
console.log("Mixpanel initialized in dashboard-core.");
|
|
2163
|
+
console.log("Mixpanel initialized in dashboard-core with Session Replay support.");
|
|
2128
2164
|
};
|
|
2129
2165
|
var trackCorePageView = (pageName, properties) => {
|
|
2130
2166
|
if (!isMixpanelInitialized) return;
|
|
@@ -2140,6 +2176,46 @@ var trackCoreEvent = (eventName, properties) => {
|
|
|
2140
2176
|
};
|
|
2141
2177
|
mixpanel__default.default.track(eventName, mergedProps);
|
|
2142
2178
|
};
|
|
2179
|
+
var startCoreSessionRecording = () => {
|
|
2180
|
+
try {
|
|
2181
|
+
if (!isMixpanelInitialized) return;
|
|
2182
|
+
if (typeof mixpanel__default.default.start_session_recording === "function") {
|
|
2183
|
+
mixpanel__default.default.start_session_recording();
|
|
2184
|
+
}
|
|
2185
|
+
} catch (err) {
|
|
2186
|
+
console.error("[Mixpanel] Unable to start session recording:", err);
|
|
2187
|
+
}
|
|
2188
|
+
};
|
|
2189
|
+
var stopCoreSessionRecording = () => {
|
|
2190
|
+
try {
|
|
2191
|
+
if (!isMixpanelInitialized) return;
|
|
2192
|
+
if (typeof mixpanel__default.default.stop_session_recording === "function") {
|
|
2193
|
+
mixpanel__default.default.stop_session_recording();
|
|
2194
|
+
}
|
|
2195
|
+
} catch (err) {
|
|
2196
|
+
console.error("[Mixpanel] Unable to stop session recording:", err);
|
|
2197
|
+
}
|
|
2198
|
+
};
|
|
2199
|
+
var getCoreSessionRecordingProperties = () => {
|
|
2200
|
+
try {
|
|
2201
|
+
if (!isMixpanelInitialized) return {};
|
|
2202
|
+
if (typeof mixpanel__default.default.get_session_recording_properties === "function") {
|
|
2203
|
+
return mixpanel__default.default.get_session_recording_properties() || {};
|
|
2204
|
+
}
|
|
2205
|
+
} catch {
|
|
2206
|
+
}
|
|
2207
|
+
return {};
|
|
2208
|
+
};
|
|
2209
|
+
var getCoreSessionReplayUrl = () => {
|
|
2210
|
+
try {
|
|
2211
|
+
if (!isMixpanelInitialized) return null;
|
|
2212
|
+
if (typeof mixpanel__default.default.get_session_replay_url === "function") {
|
|
2213
|
+
return mixpanel__default.default.get_session_replay_url();
|
|
2214
|
+
}
|
|
2215
|
+
} catch {
|
|
2216
|
+
}
|
|
2217
|
+
return null;
|
|
2218
|
+
};
|
|
2143
2219
|
var identifyCoreUser = (userId, userProperties) => {
|
|
2144
2220
|
if (!isMixpanelInitialized) return;
|
|
2145
2221
|
mixpanel__default.default.identify(userId);
|
|
@@ -2191,8 +2267,9 @@ var SSEChatClient = class {
|
|
|
2191
2267
|
thread_id: threadId,
|
|
2192
2268
|
user_id: userId,
|
|
2193
2269
|
company_id: context.companyId,
|
|
2194
|
-
|
|
2195
|
-
|
|
2270
|
+
shift_id: context.shiftId,
|
|
2271
|
+
// Send all_lines if available, otherwise fall back to single line_id
|
|
2272
|
+
...context.allLines && context.allLines.length > 0 ? { all_lines: context.allLines } : { line_id: context.lineId }
|
|
2196
2273
|
}),
|
|
2197
2274
|
signal: controller.signal,
|
|
2198
2275
|
// Don't include credentials since the API returns Access-Control-Allow-Origin: *
|
|
@@ -25770,6 +25847,12 @@ var AIAgentView = () => {
|
|
|
25770
25847
|
const lineId = getLineIdFromPath();
|
|
25771
25848
|
const { shiftId } = getCurrentShift(dateTimeConfig.defaultTimezone || "Asia/Kolkata", shiftConfig);
|
|
25772
25849
|
const companyId = entityConfig.companyId || "default-company-id";
|
|
25850
|
+
const configuredLineIds = getConfiguredLineIds(entityConfig);
|
|
25851
|
+
const lineDisplayNames = getAllLineDisplayNames(entityConfig);
|
|
25852
|
+
const allLines = configuredLineIds.map((id3) => ({
|
|
25853
|
+
id: id3,
|
|
25854
|
+
name: lineDisplayNames[id3] || `Line ${id3.substring(0, 8)}`
|
|
25855
|
+
}));
|
|
25773
25856
|
const ACTIVE_THREAD_STORAGE_KEY = `ai-agent-active-thread-${lineId}`;
|
|
25774
25857
|
React19.useLayoutEffect(() => {
|
|
25775
25858
|
const savedThreadId = localStorage.getItem(ACTIVE_THREAD_STORAGE_KEY);
|
|
@@ -25940,7 +26023,8 @@ var AIAgentView = () => {
|
|
|
25940
26023
|
{
|
|
25941
26024
|
companyId,
|
|
25942
26025
|
lineId,
|
|
25943
|
-
shiftId
|
|
26026
|
+
shiftId,
|
|
26027
|
+
allLines
|
|
25944
26028
|
},
|
|
25945
26029
|
{
|
|
25946
26030
|
onThreadCreated: (threadId) => {
|
|
@@ -26587,6 +26671,13 @@ var AIAgentView = () => {
|
|
|
26587
26671
|
console.error("Bar chart missing required parameters:", { data: !!args.data, x_field: !!args.x_field, y_field: !!args.y_field });
|
|
26588
26672
|
return null;
|
|
26589
26673
|
}
|
|
26674
|
+
if (!Array.isArray(args.data)) {
|
|
26675
|
+
console.error("Bar chart data must be an array, got:", typeof args.data, args.data);
|
|
26676
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26677
|
+
"Error: Chart data must be an array. Received: ",
|
|
26678
|
+
typeof args.data
|
|
26679
|
+
] }) }, `bar-error-${key}`);
|
|
26680
|
+
}
|
|
26590
26681
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full h-64", children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.BarChart, { data: args.data, margin: CHART_STYLES.margin, children: [
|
|
26591
26682
|
/* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26592
26683
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -26624,6 +26715,13 @@ var AIAgentView = () => {
|
|
|
26624
26715
|
console.error("Line chart missing required parameters:", { data: !!args.data, x_field: !!args.x_field, y_field: !!args.y_field });
|
|
26625
26716
|
return null;
|
|
26626
26717
|
}
|
|
26718
|
+
if (!Array.isArray(args.data)) {
|
|
26719
|
+
console.error("Line chart data must be an array, got:", typeof args.data, args.data);
|
|
26720
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26721
|
+
"Error: Chart data must be an array. Received: ",
|
|
26722
|
+
typeof args.data
|
|
26723
|
+
] }) }, `line-error-${key}`);
|
|
26724
|
+
}
|
|
26627
26725
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full h-64", children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.LineChart, { data: args.data, margin: CHART_STYLES.margin, children: [
|
|
26628
26726
|
/* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26629
26727
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -26665,6 +26763,13 @@ var AIAgentView = () => {
|
|
|
26665
26763
|
console.error("Available args:", Object.keys(args));
|
|
26666
26764
|
return null;
|
|
26667
26765
|
}
|
|
26766
|
+
if (!Array.isArray(args.data)) {
|
|
26767
|
+
console.error("Pie chart data must be an array, got:", typeof args.data, args.data);
|
|
26768
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26769
|
+
"Error: Chart data must be an array. Received: ",
|
|
26770
|
+
typeof args.data
|
|
26771
|
+
] }) }, `pie-error-${key}`);
|
|
26772
|
+
}
|
|
26668
26773
|
const pieData = args.data.map((item) => ({
|
|
26669
26774
|
name: item[args.label_field],
|
|
26670
26775
|
value: item[args.value_field]
|
|
@@ -26684,6 +26789,13 @@ var AIAgentView = () => {
|
|
|
26684
26789
|
console.error("Comparison table missing required data");
|
|
26685
26790
|
return null;
|
|
26686
26791
|
}
|
|
26792
|
+
if (!Array.isArray(args.data)) {
|
|
26793
|
+
console.error("Comparison table data must be an array, got:", typeof args.data, args.data);
|
|
26794
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26795
|
+
"Error: Table data must be an array. Received: ",
|
|
26796
|
+
typeof args.data
|
|
26797
|
+
] }) }, `table-error-${key}`);
|
|
26798
|
+
}
|
|
26687
26799
|
const columns = args.columns || Object.keys(args.data[0] || {});
|
|
26688
26800
|
let sortedData = [...args.data];
|
|
26689
26801
|
if (args.sort_by && columns.includes(args.sort_by)) {
|
|
@@ -26723,6 +26835,13 @@ var AIAgentView = () => {
|
|
|
26723
26835
|
});
|
|
26724
26836
|
return null;
|
|
26725
26837
|
}
|
|
26838
|
+
if (!Array.isArray(args.data)) {
|
|
26839
|
+
console.error("Multi-line chart data must be an array, got:", typeof args.data, args.data);
|
|
26840
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26841
|
+
"Error: Chart data must be an array. Received: ",
|
|
26842
|
+
typeof args.data
|
|
26843
|
+
] }) }, `multi-line-error-${key}`);
|
|
26844
|
+
}
|
|
26726
26845
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full h-80", children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.LineChart, { data: args.data, margin: CHART_STYLES.margin, children: [
|
|
26727
26846
|
/* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26728
26847
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -26776,6 +26895,13 @@ var AIAgentView = () => {
|
|
|
26776
26895
|
});
|
|
26777
26896
|
return null;
|
|
26778
26897
|
}
|
|
26898
|
+
if (!Array.isArray(args.data)) {
|
|
26899
|
+
console.error("Stacked bar chart data must be an array, got:", typeof args.data, args.data);
|
|
26900
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26901
|
+
"Error: Chart data must be an array. Received: ",
|
|
26902
|
+
typeof args.data
|
|
26903
|
+
] }) }, `stacked-bar-error-${key}`);
|
|
26904
|
+
}
|
|
26779
26905
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full h-80", children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.BarChart, { data: args.data, margin: CHART_STYLES.margin, children: [
|
|
26780
26906
|
/* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26781
26907
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -26828,6 +26954,13 @@ var AIAgentView = () => {
|
|
|
26828
26954
|
});
|
|
26829
26955
|
return null;
|
|
26830
26956
|
}
|
|
26957
|
+
if (!Array.isArray(args.data)) {
|
|
26958
|
+
console.error("Dual-axis chart data must be an array, got:", typeof args.data, args.data);
|
|
26959
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26960
|
+
"Error: Chart data must be an array. Received: ",
|
|
26961
|
+
typeof args.data
|
|
26962
|
+
] }) }, `dual-axis-error-${key}`);
|
|
26963
|
+
}
|
|
26831
26964
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full h-80", children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.ComposedChart, { data: args.data, margin: { ...CHART_STYLES.margin, bottom: 80 }, children: [
|
|
26832
26965
|
/* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26833
26966
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -26915,6 +27048,13 @@ var AIAgentView = () => {
|
|
|
26915
27048
|
});
|
|
26916
27049
|
return null;
|
|
26917
27050
|
}
|
|
27051
|
+
if (!Array.isArray(args.data)) {
|
|
27052
|
+
console.error("Scatter plot data must be an array, got:", typeof args.data, args.data);
|
|
27053
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
27054
|
+
"Error: Chart data must be an array. Received: ",
|
|
27055
|
+
typeof args.data
|
|
27056
|
+
] }) }, `scatter-error-${key}`);
|
|
27057
|
+
}
|
|
26918
27058
|
const groupedData = args.data.reduce((acc, item) => {
|
|
26919
27059
|
const group = item[args.group_field];
|
|
26920
27060
|
if (!acc[group]) {
|
|
@@ -26978,6 +27118,13 @@ var AIAgentView = () => {
|
|
|
26978
27118
|
});
|
|
26979
27119
|
return null;
|
|
26980
27120
|
}
|
|
27121
|
+
if (!Array.isArray(args.data)) {
|
|
27122
|
+
console.error("Combo chart data must be an array, got:", typeof args.data, args.data);
|
|
27123
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
27124
|
+
"Error: Chart data must be an array. Received: ",
|
|
27125
|
+
typeof args.data
|
|
27126
|
+
] }) }, `combo-error-${key}`);
|
|
27127
|
+
}
|
|
26981
27128
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full h-80", children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.ComposedChart, { data: args.data, margin: { ...CHART_STYLES.margin, bottom: 80 }, children: [
|
|
26982
27129
|
/* @__PURE__ */ jsxRuntime.jsx(recharts.CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26983
27130
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -27052,6 +27199,13 @@ var AIAgentView = () => {
|
|
|
27052
27199
|
});
|
|
27053
27200
|
return null;
|
|
27054
27201
|
}
|
|
27202
|
+
if (!Array.isArray(args.data)) {
|
|
27203
|
+
console.error("Area chart data must be an array, got:", typeof args.data, args.data);
|
|
27204
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
27205
|
+
"Error: Chart data must be an array. Received: ",
|
|
27206
|
+
typeof args.data
|
|
27207
|
+
] }) }, `area-error-${key}`);
|
|
27208
|
+
}
|
|
27055
27209
|
return /* @__PURE__ */ jsxRuntime.jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full h-80", children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsxs(recharts.ComposedChart, { data: args.data, margin: { ...CHART_STYLES.margin, bottom: 80 }, children: [
|
|
27056
27210
|
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs("linearGradient", { id: "colorGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
27057
27211
|
/* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "5%", stopColor: CHART_COLORS.primary, stopOpacity: 0.8 }),
|
|
@@ -34146,6 +34300,8 @@ exports.getCompanyMetricsTableName = getCompanyMetricsTableName;
|
|
|
34146
34300
|
exports.getConfigurableShortWorkspaceDisplayName = getConfigurableShortWorkspaceDisplayName;
|
|
34147
34301
|
exports.getConfigurableWorkspaceDisplayName = getConfigurableWorkspaceDisplayName;
|
|
34148
34302
|
exports.getConfiguredLineIds = getConfiguredLineIds;
|
|
34303
|
+
exports.getCoreSessionRecordingProperties = getCoreSessionRecordingProperties;
|
|
34304
|
+
exports.getCoreSessionReplayUrl = getCoreSessionReplayUrl;
|
|
34149
34305
|
exports.getCurrentShift = getCurrentShift;
|
|
34150
34306
|
exports.getCurrentTimeInZone = getCurrentTimeInZone;
|
|
34151
34307
|
exports.getDashboardHeaderTimeInZone = getDashboardHeaderTimeInZone;
|
|
@@ -34197,6 +34353,8 @@ exports.resetCoreMixpanel = resetCoreMixpanel;
|
|
|
34197
34353
|
exports.resetSubscriptionManager = resetSubscriptionManager;
|
|
34198
34354
|
exports.s3VideoPreloader = s3VideoPreloader;
|
|
34199
34355
|
exports.skuService = skuService;
|
|
34356
|
+
exports.startCoreSessionRecording = startCoreSessionRecording;
|
|
34357
|
+
exports.stopCoreSessionRecording = stopCoreSessionRecording;
|
|
34200
34358
|
exports.storeWorkspaceMapping = storeWorkspaceMapping;
|
|
34201
34359
|
exports.streamProxyConfig = streamProxyConfig;
|
|
34202
34360
|
exports.throttledReloadDashboard = throttledReloadDashboard;
|
package/dist/index.mjs
CHANGED
|
@@ -2078,7 +2078,7 @@ var authRateLimitService = {
|
|
|
2078
2078
|
};
|
|
2079
2079
|
var isMixpanelInitialized = false;
|
|
2080
2080
|
var currentUserProperties;
|
|
2081
|
-
var initializeCoreMixpanel = (token,
|
|
2081
|
+
var initializeCoreMixpanel = (token, debugOrOptions, trackPageViewArg) => {
|
|
2082
2082
|
if (!token) {
|
|
2083
2083
|
console.warn("Mixpanel token not provided for initialization. Mixpanel will not be enabled.");
|
|
2084
2084
|
return;
|
|
@@ -2087,15 +2087,51 @@ var initializeCoreMixpanel = (token, debug, trackPageView) => {
|
|
|
2087
2087
|
console.warn("Mixpanel already initialized. Ignoring subsequent initialization.");
|
|
2088
2088
|
return;
|
|
2089
2089
|
}
|
|
2090
|
-
|
|
2090
|
+
let debug;
|
|
2091
|
+
let trackPageView;
|
|
2092
|
+
let sessionOpts = {};
|
|
2093
|
+
if (typeof debugOrOptions === "boolean" || debugOrOptions === void 0) {
|
|
2094
|
+
debug = debugOrOptions;
|
|
2095
|
+
trackPageView = trackPageViewArg;
|
|
2096
|
+
} else {
|
|
2097
|
+
const opts = debugOrOptions;
|
|
2098
|
+
({ debug, trackPageView, ...sessionOpts } = opts);
|
|
2099
|
+
}
|
|
2100
|
+
const initOptions = {
|
|
2091
2101
|
debug: debug ?? process.env.NODE_ENV === "development",
|
|
2092
|
-
// Keep env var as fallback if not explicitly passed
|
|
2093
2102
|
track_pageview: trackPageView ?? true,
|
|
2094
|
-
// Default to true if not specified in config
|
|
2095
2103
|
persistence: "localStorage"
|
|
2104
|
+
};
|
|
2105
|
+
if (sessionOpts.recordSessionsPercent !== void 0) {
|
|
2106
|
+
initOptions.record_sessions_percent = sessionOpts.recordSessionsPercent;
|
|
2107
|
+
} else {
|
|
2108
|
+
initOptions.record_sessions_percent = 1;
|
|
2109
|
+
}
|
|
2110
|
+
if (sessionOpts.recordIdleTimeoutMs !== void 0) {
|
|
2111
|
+
initOptions.record_idle_timeout_ms = sessionOpts.recordIdleTimeoutMs;
|
|
2112
|
+
}
|
|
2113
|
+
if (sessionOpts.recordHeatmapData !== void 0) {
|
|
2114
|
+
initOptions.record_heatmap_data = sessionOpts.recordHeatmapData;
|
|
2115
|
+
} else {
|
|
2116
|
+
initOptions.record_heatmap_data = true;
|
|
2117
|
+
}
|
|
2118
|
+
if (sessionOpts.recordCanvas !== void 0) {
|
|
2119
|
+
initOptions.record_canvas = sessionOpts.recordCanvas;
|
|
2120
|
+
}
|
|
2121
|
+
if (sessionOpts.recordBlockSelector !== void 0) {
|
|
2122
|
+
initOptions.record_block_selector = sessionOpts.recordBlockSelector;
|
|
2123
|
+
}
|
|
2124
|
+
if (sessionOpts.recordMaskTextSelector !== void 0) {
|
|
2125
|
+
initOptions.record_mask_text_selector = sessionOpts.recordMaskTextSelector;
|
|
2126
|
+
}
|
|
2127
|
+
Object.keys(sessionOpts).forEach((key) => {
|
|
2128
|
+
if (!(key in initOptions)) {
|
|
2129
|
+
initOptions[key] = sessionOpts[key];
|
|
2130
|
+
}
|
|
2096
2131
|
});
|
|
2132
|
+
mixpanel.init(token, initOptions);
|
|
2097
2133
|
isMixpanelInitialized = true;
|
|
2098
|
-
console.log("Mixpanel initialized in dashboard-core.");
|
|
2134
|
+
console.log("Mixpanel initialized in dashboard-core with Session Replay support.");
|
|
2099
2135
|
};
|
|
2100
2136
|
var trackCorePageView = (pageName, properties) => {
|
|
2101
2137
|
if (!isMixpanelInitialized) return;
|
|
@@ -2111,6 +2147,46 @@ var trackCoreEvent = (eventName, properties) => {
|
|
|
2111
2147
|
};
|
|
2112
2148
|
mixpanel.track(eventName, mergedProps);
|
|
2113
2149
|
};
|
|
2150
|
+
var startCoreSessionRecording = () => {
|
|
2151
|
+
try {
|
|
2152
|
+
if (!isMixpanelInitialized) return;
|
|
2153
|
+
if (typeof mixpanel.start_session_recording === "function") {
|
|
2154
|
+
mixpanel.start_session_recording();
|
|
2155
|
+
}
|
|
2156
|
+
} catch (err) {
|
|
2157
|
+
console.error("[Mixpanel] Unable to start session recording:", err);
|
|
2158
|
+
}
|
|
2159
|
+
};
|
|
2160
|
+
var stopCoreSessionRecording = () => {
|
|
2161
|
+
try {
|
|
2162
|
+
if (!isMixpanelInitialized) return;
|
|
2163
|
+
if (typeof mixpanel.stop_session_recording === "function") {
|
|
2164
|
+
mixpanel.stop_session_recording();
|
|
2165
|
+
}
|
|
2166
|
+
} catch (err) {
|
|
2167
|
+
console.error("[Mixpanel] Unable to stop session recording:", err);
|
|
2168
|
+
}
|
|
2169
|
+
};
|
|
2170
|
+
var getCoreSessionRecordingProperties = () => {
|
|
2171
|
+
try {
|
|
2172
|
+
if (!isMixpanelInitialized) return {};
|
|
2173
|
+
if (typeof mixpanel.get_session_recording_properties === "function") {
|
|
2174
|
+
return mixpanel.get_session_recording_properties() || {};
|
|
2175
|
+
}
|
|
2176
|
+
} catch {
|
|
2177
|
+
}
|
|
2178
|
+
return {};
|
|
2179
|
+
};
|
|
2180
|
+
var getCoreSessionReplayUrl = () => {
|
|
2181
|
+
try {
|
|
2182
|
+
if (!isMixpanelInitialized) return null;
|
|
2183
|
+
if (typeof mixpanel.get_session_replay_url === "function") {
|
|
2184
|
+
return mixpanel.get_session_replay_url();
|
|
2185
|
+
}
|
|
2186
|
+
} catch {
|
|
2187
|
+
}
|
|
2188
|
+
return null;
|
|
2189
|
+
};
|
|
2114
2190
|
var identifyCoreUser = (userId, userProperties) => {
|
|
2115
2191
|
if (!isMixpanelInitialized) return;
|
|
2116
2192
|
mixpanel.identify(userId);
|
|
@@ -2162,8 +2238,9 @@ var SSEChatClient = class {
|
|
|
2162
2238
|
thread_id: threadId,
|
|
2163
2239
|
user_id: userId,
|
|
2164
2240
|
company_id: context.companyId,
|
|
2165
|
-
|
|
2166
|
-
|
|
2241
|
+
shift_id: context.shiftId,
|
|
2242
|
+
// Send all_lines if available, otherwise fall back to single line_id
|
|
2243
|
+
...context.allLines && context.allLines.length > 0 ? { all_lines: context.allLines } : { line_id: context.lineId }
|
|
2167
2244
|
}),
|
|
2168
2245
|
signal: controller.signal,
|
|
2169
2246
|
// Don't include credentials since the API returns Access-Control-Allow-Origin: *
|
|
@@ -25741,6 +25818,12 @@ var AIAgentView = () => {
|
|
|
25741
25818
|
const lineId = getLineIdFromPath();
|
|
25742
25819
|
const { shiftId } = getCurrentShift(dateTimeConfig.defaultTimezone || "Asia/Kolkata", shiftConfig);
|
|
25743
25820
|
const companyId = entityConfig.companyId || "default-company-id";
|
|
25821
|
+
const configuredLineIds = getConfiguredLineIds(entityConfig);
|
|
25822
|
+
const lineDisplayNames = getAllLineDisplayNames(entityConfig);
|
|
25823
|
+
const allLines = configuredLineIds.map((id3) => ({
|
|
25824
|
+
id: id3,
|
|
25825
|
+
name: lineDisplayNames[id3] || `Line ${id3.substring(0, 8)}`
|
|
25826
|
+
}));
|
|
25744
25827
|
const ACTIVE_THREAD_STORAGE_KEY = `ai-agent-active-thread-${lineId}`;
|
|
25745
25828
|
useLayoutEffect(() => {
|
|
25746
25829
|
const savedThreadId = localStorage.getItem(ACTIVE_THREAD_STORAGE_KEY);
|
|
@@ -25911,7 +25994,8 @@ var AIAgentView = () => {
|
|
|
25911
25994
|
{
|
|
25912
25995
|
companyId,
|
|
25913
25996
|
lineId,
|
|
25914
|
-
shiftId
|
|
25997
|
+
shiftId,
|
|
25998
|
+
allLines
|
|
25915
25999
|
},
|
|
25916
26000
|
{
|
|
25917
26001
|
onThreadCreated: (threadId) => {
|
|
@@ -26558,6 +26642,13 @@ var AIAgentView = () => {
|
|
|
26558
26642
|
console.error("Bar chart missing required parameters:", { data: !!args.data, x_field: !!args.x_field, y_field: !!args.y_field });
|
|
26559
26643
|
return null;
|
|
26560
26644
|
}
|
|
26645
|
+
if (!Array.isArray(args.data)) {
|
|
26646
|
+
console.error("Bar chart data must be an array, got:", typeof args.data, args.data);
|
|
26647
|
+
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26648
|
+
"Error: Chart data must be an array. Received: ",
|
|
26649
|
+
typeof args.data
|
|
26650
|
+
] }) }, `bar-error-${key}`);
|
|
26651
|
+
}
|
|
26561
26652
|
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsx("div", { className: "w-full h-64", children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(BarChart$1, { data: args.data, margin: CHART_STYLES.margin, children: [
|
|
26562
26653
|
/* @__PURE__ */ jsx(CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26563
26654
|
/* @__PURE__ */ jsx(
|
|
@@ -26595,6 +26686,13 @@ var AIAgentView = () => {
|
|
|
26595
26686
|
console.error("Line chart missing required parameters:", { data: !!args.data, x_field: !!args.x_field, y_field: !!args.y_field });
|
|
26596
26687
|
return null;
|
|
26597
26688
|
}
|
|
26689
|
+
if (!Array.isArray(args.data)) {
|
|
26690
|
+
console.error("Line chart data must be an array, got:", typeof args.data, args.data);
|
|
26691
|
+
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26692
|
+
"Error: Chart data must be an array. Received: ",
|
|
26693
|
+
typeof args.data
|
|
26694
|
+
] }) }, `line-error-${key}`);
|
|
26695
|
+
}
|
|
26598
26696
|
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsx("div", { className: "w-full h-64", children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(LineChart$1, { data: args.data, margin: CHART_STYLES.margin, children: [
|
|
26599
26697
|
/* @__PURE__ */ jsx(CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26600
26698
|
/* @__PURE__ */ jsx(
|
|
@@ -26636,6 +26734,13 @@ var AIAgentView = () => {
|
|
|
26636
26734
|
console.error("Available args:", Object.keys(args));
|
|
26637
26735
|
return null;
|
|
26638
26736
|
}
|
|
26737
|
+
if (!Array.isArray(args.data)) {
|
|
26738
|
+
console.error("Pie chart data must be an array, got:", typeof args.data, args.data);
|
|
26739
|
+
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26740
|
+
"Error: Chart data must be an array. Received: ",
|
|
26741
|
+
typeof args.data
|
|
26742
|
+
] }) }, `pie-error-${key}`);
|
|
26743
|
+
}
|
|
26639
26744
|
const pieData = args.data.map((item) => ({
|
|
26640
26745
|
name: item[args.label_field],
|
|
26641
26746
|
value: item[args.value_field]
|
|
@@ -26655,6 +26760,13 @@ var AIAgentView = () => {
|
|
|
26655
26760
|
console.error("Comparison table missing required data");
|
|
26656
26761
|
return null;
|
|
26657
26762
|
}
|
|
26763
|
+
if (!Array.isArray(args.data)) {
|
|
26764
|
+
console.error("Comparison table data must be an array, got:", typeof args.data, args.data);
|
|
26765
|
+
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26766
|
+
"Error: Table data must be an array. Received: ",
|
|
26767
|
+
typeof args.data
|
|
26768
|
+
] }) }, `table-error-${key}`);
|
|
26769
|
+
}
|
|
26658
26770
|
const columns = args.columns || Object.keys(args.data[0] || {});
|
|
26659
26771
|
let sortedData = [...args.data];
|
|
26660
26772
|
if (args.sort_by && columns.includes(args.sort_by)) {
|
|
@@ -26694,6 +26806,13 @@ var AIAgentView = () => {
|
|
|
26694
26806
|
});
|
|
26695
26807
|
return null;
|
|
26696
26808
|
}
|
|
26809
|
+
if (!Array.isArray(args.data)) {
|
|
26810
|
+
console.error("Multi-line chart data must be an array, got:", typeof args.data, args.data);
|
|
26811
|
+
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26812
|
+
"Error: Chart data must be an array. Received: ",
|
|
26813
|
+
typeof args.data
|
|
26814
|
+
] }) }, `multi-line-error-${key}`);
|
|
26815
|
+
}
|
|
26697
26816
|
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsx("div", { className: "w-full h-80", children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(LineChart$1, { data: args.data, margin: CHART_STYLES.margin, children: [
|
|
26698
26817
|
/* @__PURE__ */ jsx(CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26699
26818
|
/* @__PURE__ */ jsx(
|
|
@@ -26747,6 +26866,13 @@ var AIAgentView = () => {
|
|
|
26747
26866
|
});
|
|
26748
26867
|
return null;
|
|
26749
26868
|
}
|
|
26869
|
+
if (!Array.isArray(args.data)) {
|
|
26870
|
+
console.error("Stacked bar chart data must be an array, got:", typeof args.data, args.data);
|
|
26871
|
+
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26872
|
+
"Error: Chart data must be an array. Received: ",
|
|
26873
|
+
typeof args.data
|
|
26874
|
+
] }) }, `stacked-bar-error-${key}`);
|
|
26875
|
+
}
|
|
26750
26876
|
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsx("div", { className: "w-full h-80", children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(BarChart$1, { data: args.data, margin: CHART_STYLES.margin, children: [
|
|
26751
26877
|
/* @__PURE__ */ jsx(CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26752
26878
|
/* @__PURE__ */ jsx(
|
|
@@ -26799,6 +26925,13 @@ var AIAgentView = () => {
|
|
|
26799
26925
|
});
|
|
26800
26926
|
return null;
|
|
26801
26927
|
}
|
|
26928
|
+
if (!Array.isArray(args.data)) {
|
|
26929
|
+
console.error("Dual-axis chart data must be an array, got:", typeof args.data, args.data);
|
|
26930
|
+
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
26931
|
+
"Error: Chart data must be an array. Received: ",
|
|
26932
|
+
typeof args.data
|
|
26933
|
+
] }) }, `dual-axis-error-${key}`);
|
|
26934
|
+
}
|
|
26802
26935
|
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsx("div", { className: "w-full h-80", children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(ComposedChart, { data: args.data, margin: { ...CHART_STYLES.margin, bottom: 80 }, children: [
|
|
26803
26936
|
/* @__PURE__ */ jsx(CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26804
26937
|
/* @__PURE__ */ jsx(
|
|
@@ -26886,6 +27019,13 @@ var AIAgentView = () => {
|
|
|
26886
27019
|
});
|
|
26887
27020
|
return null;
|
|
26888
27021
|
}
|
|
27022
|
+
if (!Array.isArray(args.data)) {
|
|
27023
|
+
console.error("Scatter plot data must be an array, got:", typeof args.data, args.data);
|
|
27024
|
+
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
27025
|
+
"Error: Chart data must be an array. Received: ",
|
|
27026
|
+
typeof args.data
|
|
27027
|
+
] }) }, `scatter-error-${key}`);
|
|
27028
|
+
}
|
|
26889
27029
|
const groupedData = args.data.reduce((acc, item) => {
|
|
26890
27030
|
const group = item[args.group_field];
|
|
26891
27031
|
if (!acc[group]) {
|
|
@@ -26949,6 +27089,13 @@ var AIAgentView = () => {
|
|
|
26949
27089
|
});
|
|
26950
27090
|
return null;
|
|
26951
27091
|
}
|
|
27092
|
+
if (!Array.isArray(args.data)) {
|
|
27093
|
+
console.error("Combo chart data must be an array, got:", typeof args.data, args.data);
|
|
27094
|
+
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
27095
|
+
"Error: Chart data must be an array. Received: ",
|
|
27096
|
+
typeof args.data
|
|
27097
|
+
] }) }, `combo-error-${key}`);
|
|
27098
|
+
}
|
|
26952
27099
|
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsx("div", { className: "w-full h-80", children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(ComposedChart, { data: args.data, margin: { ...CHART_STYLES.margin, bottom: 80 }, children: [
|
|
26953
27100
|
/* @__PURE__ */ jsx(CartesianGrid, { ...CHART_STYLES.grid }),
|
|
26954
27101
|
/* @__PURE__ */ jsx(
|
|
@@ -27023,6 +27170,13 @@ var AIAgentView = () => {
|
|
|
27023
27170
|
});
|
|
27024
27171
|
return null;
|
|
27025
27172
|
}
|
|
27173
|
+
if (!Array.isArray(args.data)) {
|
|
27174
|
+
console.error("Area chart data must be an array, got:", typeof args.data, args.data);
|
|
27175
|
+
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsxs("div", { className: "text-red-500 text-sm", children: [
|
|
27176
|
+
"Error: Chart data must be an array. Received: ",
|
|
27177
|
+
typeof args.data
|
|
27178
|
+
] }) }, `area-error-${key}`);
|
|
27179
|
+
}
|
|
27026
27180
|
return /* @__PURE__ */ jsx(ChartWrapper, { title: args.title, children: /* @__PURE__ */ jsx("div", { className: "w-full h-80", children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(ComposedChart, { data: args.data, margin: { ...CHART_STYLES.margin, bottom: 80 }, children: [
|
|
27027
27181
|
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "colorGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
27028
27182
|
/* @__PURE__ */ jsx("stop", { offset: "5%", stopColor: CHART_COLORS.primary, stopOpacity: 0.8 }),
|
|
@@ -33952,4 +34106,4 @@ var S3Service = class {
|
|
|
33952
34106
|
}
|
|
33953
34107
|
};
|
|
33954
34108
|
|
|
33955
|
-
export { ACTION_NAMES, AIAgentView_default as AIAgentView, AuthCallback, AuthCallbackView_default as AuthCallbackView, AuthProvider, AuthenticatedFactoryView, AuthenticatedHelpView, AuthenticatedHomeView, AuthenticatedTargetsView, BarChart, BaseHistoryCalendar, BottlenecksContent, BreakNotificationPopup, Card2 as Card, CardContent2 as CardContent, CardDescription2 as CardDescription, CardFooter2 as CardFooter, CardHeader2 as CardHeader, CardTitle2 as CardTitle, CycleTimeChart, CycleTimeOverTimeChart, DEFAULT_ANALYTICS_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_CONFIG, DEFAULT_DATABASE_CONFIG, DEFAULT_DATE_TIME_CONFIG, DEFAULT_ENDPOINTS_CONFIG, DEFAULT_ENTITY_CONFIG, DEFAULT_SHIFT_CONFIG, DEFAULT_THEME_CONFIG, DEFAULT_VIDEO_CONFIG, DEFAULT_WORKSPACE_CONFIG, DEFAULT_WORKSPACE_POSITIONS, DashboardHeader, DashboardLayout, DashboardOverridesProvider, DashboardProvider, DateDisplay_default as DateDisplay, DateTimeDisplay, DebugAuth, DebugAuthView_default as DebugAuthView, EmptyStateMessage, FactoryView_default as FactoryView, GaugeChart, GridComponentsPlaceholder, Header, HelpView_default as HelpView, HomeView_default as HomeView, HourlyOutputChart2 as HourlyOutputChart, ISTTimer_default as ISTTimer, KPICard, KPIDetailView_default as KPIDetailView, KPIGrid, KPIHeader, KPISection, KPIsOverviewView_default as KPIsOverviewView, LINE_1_UUID, LINE_2_UUID, LargeOutputProgressChart, LeaderboardDetailView_default as LeaderboardDetailView, Legend6 as Legend, LineChart, LineHistoryCalendar, LineMonthlyHistory, LineMonthlyPdfGenerator, LinePdfExportButton, LinePdfGenerator, LineWhatsAppShareButton, LiveTimer, LoadingInline, LoadingOverlay_default as LoadingOverlay, LoadingPage_default as LoadingPage, LoadingSkeleton, LoadingSpinner_default as LoadingSpinner, LoadingState, LoginPage, LoginView_default as LoginView, MainLayout, MetricCard_default as MetricCard, NoWorkspaceData, OptifyeAgentClient, OutputProgressChart, PageHeader, PieChart4 as PieChart, ProfileView_default as ProfileView, RegistryProvider, S3Service, SKUManagementView, SOPComplianceChart, SSEChatClient, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, ShiftDisplay_default as ShiftDisplay, ShiftsView_default as ShiftsView, SideNavBar, SingleVideoStream_default as SingleVideoStream, Skeleton, SlackAPI, SubscriptionManager, SubscriptionManagerProvider, SupabaseProvider, TargetWorkspaceGrid, TargetsView_default as TargetsView, ThreadSidebar, TimeDisplay_default as TimeDisplay, TimePickerDropdown, VideoCard, VideoGridView, VideoPreloader, WORKSPACE_POSITIONS, WhatsAppShareButton, WorkspaceCard, WorkspaceDetailView_default as WorkspaceDetailView, WorkspaceDisplayNameExample, WorkspaceGrid, WorkspaceGridItem, WorkspaceHistoryCalendar, WorkspaceMetricCards, WorkspaceMonthlyDataFetcher, WorkspaceMonthlyPdfGenerator, WorkspacePdfExportButton, WorkspacePdfGenerator, WorkspaceWhatsAppShareButton, actionService, apiUtils, authCoreService, authOTPService, authRateLimitService, cacheService, checkRateLimit2 as checkRateLimit, clearAllRateLimits2 as clearAllRateLimits, clearRateLimit2 as clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, forceRefreshWorkspaceDisplayNames, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllLineDisplayNames, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getConfiguredLineIds, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultLineId, getDefaultTabForWorkspace, getLineDisplayName, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getSubscriptionManager, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isLegacyConfiguration, isTransitionPeriod, isValidFactoryViewConfiguration, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, migrateLegacyConfiguration, optifyeAgentClient, preInitializeWorkspaceDisplayNames, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, resetSubscriptionManager, s3VideoPreloader, skuService, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAllWorkspaceMetrics, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHlsStreamWithCropping, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useSKUs, useShiftConfig, useShifts, useSubscriptionManager, useSubscriptionManagerSafe, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useVideoConfig, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
|
|
34109
|
+
export { ACTION_NAMES, AIAgentView_default as AIAgentView, AuthCallback, AuthCallbackView_default as AuthCallbackView, AuthProvider, AuthenticatedFactoryView, AuthenticatedHelpView, AuthenticatedHomeView, AuthenticatedTargetsView, BarChart, BaseHistoryCalendar, BottlenecksContent, BreakNotificationPopup, Card2 as Card, CardContent2 as CardContent, CardDescription2 as CardDescription, CardFooter2 as CardFooter, CardHeader2 as CardHeader, CardTitle2 as CardTitle, CycleTimeChart, CycleTimeOverTimeChart, DEFAULT_ANALYTICS_CONFIG, DEFAULT_AUTH_CONFIG, DEFAULT_CONFIG, DEFAULT_DATABASE_CONFIG, DEFAULT_DATE_TIME_CONFIG, DEFAULT_ENDPOINTS_CONFIG, DEFAULT_ENTITY_CONFIG, DEFAULT_SHIFT_CONFIG, DEFAULT_THEME_CONFIG, DEFAULT_VIDEO_CONFIG, DEFAULT_WORKSPACE_CONFIG, DEFAULT_WORKSPACE_POSITIONS, DashboardHeader, DashboardLayout, DashboardOverridesProvider, DashboardProvider, DateDisplay_default as DateDisplay, DateTimeDisplay, DebugAuth, DebugAuthView_default as DebugAuthView, EmptyStateMessage, FactoryView_default as FactoryView, GaugeChart, GridComponentsPlaceholder, Header, HelpView_default as HelpView, HomeView_default as HomeView, HourlyOutputChart2 as HourlyOutputChart, ISTTimer_default as ISTTimer, KPICard, KPIDetailView_default as KPIDetailView, KPIGrid, KPIHeader, KPISection, KPIsOverviewView_default as KPIsOverviewView, LINE_1_UUID, LINE_2_UUID, LargeOutputProgressChart, LeaderboardDetailView_default as LeaderboardDetailView, Legend6 as Legend, LineChart, LineHistoryCalendar, LineMonthlyHistory, LineMonthlyPdfGenerator, LinePdfExportButton, LinePdfGenerator, LineWhatsAppShareButton, LiveTimer, LoadingInline, LoadingOverlay_default as LoadingOverlay, LoadingPage_default as LoadingPage, LoadingSkeleton, LoadingSpinner_default as LoadingSpinner, LoadingState, LoginPage, LoginView_default as LoginView, MainLayout, MetricCard_default as MetricCard, NoWorkspaceData, OptifyeAgentClient, OutputProgressChart, PageHeader, PieChart4 as PieChart, ProfileView_default as ProfileView, RegistryProvider, S3Service, SKUManagementView, SOPComplianceChart, SSEChatClient, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, ShiftDisplay_default as ShiftDisplay, ShiftsView_default as ShiftsView, SideNavBar, SingleVideoStream_default as SingleVideoStream, Skeleton, SlackAPI, SubscriptionManager, SubscriptionManagerProvider, SupabaseProvider, TargetWorkspaceGrid, TargetsView_default as TargetsView, ThreadSidebar, TimeDisplay_default as TimeDisplay, TimePickerDropdown, VideoCard, VideoGridView, VideoPreloader, WORKSPACE_POSITIONS, WhatsAppShareButton, WorkspaceCard, WorkspaceDetailView_default as WorkspaceDetailView, WorkspaceDisplayNameExample, WorkspaceGrid, WorkspaceGridItem, WorkspaceHistoryCalendar, WorkspaceMetricCards, WorkspaceMonthlyDataFetcher, WorkspaceMonthlyPdfGenerator, WorkspacePdfExportButton, WorkspacePdfGenerator, WorkspaceWhatsAppShareButton, actionService, apiUtils, authCoreService, authOTPService, authRateLimitService, cacheService, checkRateLimit2 as checkRateLimit, clearAllRateLimits2 as clearAllRateLimits, clearRateLimit2 as clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, forceRefreshWorkspaceDisplayNames, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllLineDisplayNames, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getConfiguredLineIds, getCoreSessionRecordingProperties, getCoreSessionReplayUrl, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultLineId, getDefaultTabForWorkspace, getLineDisplayName, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getSubscriptionManager, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isLegacyConfiguration, isTransitionPeriod, isValidFactoryViewConfiguration, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, migrateLegacyConfiguration, optifyeAgentClient, preInitializeWorkspaceDisplayNames, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, resetSubscriptionManager, s3VideoPreloader, skuService, startCoreSessionRecording, stopCoreSessionRecording, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAllWorkspaceMetrics, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHlsStreamWithCropping, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useSKUs, useShiftConfig, useShifts, useSubscriptionManager, useSubscriptionManagerSafe, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useVideoConfig, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
|