@optifye/dashboard-core 4.1.2 → 4.2.0

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 CHANGED
@@ -86,6 +86,7 @@ interface WorkspaceDetailedMetrics {
86
86
  ideal_output_until_now: number;
87
87
  output_difference: number;
88
88
  idle_time?: number;
89
+ idle_time_hourly?: Record<string, string[]>;
89
90
  compliance_efficiency?: number;
90
91
  sop_check?: Record<string, number>;
91
92
  }
@@ -737,27 +738,6 @@ interface ISTDateProps {
737
738
  interface ISTTimerProps {
738
739
  }
739
740
 
740
- /**
741
- * Props for the LeaderboardIndexView component
742
- */
743
- interface LeaderboardIndexViewProps {
744
- /**
745
- * Factory View identifier - used to add the factory view option to the lines list
746
- */
747
- factoryViewId?: string;
748
- /**
749
- * Company UUID to use when displaying factory view
750
- */
751
- companyUuid?: string;
752
- /**
753
- * Function to handle navigation to a specific line
754
- */
755
- onLineSelect?: (lineId: string) => void;
756
- /**
757
- * Optional className for custom styling
758
- */
759
- className?: string;
760
- }
761
741
  /**
762
742
  * Props for the LeaderboardDetailView component
763
743
  */
@@ -795,15 +775,6 @@ interface LeaderboardDetailViewProps {
795
775
  */
796
776
  className?: string;
797
777
  }
798
- /**
799
- * Line option type for the leaderboard index
800
- */
801
- interface LeaderboardLineOption extends SimpleLine {
802
- /**
803
- * Unique identifier for the line
804
- */
805
- id: string;
806
- }
807
778
 
808
779
  /**
809
780
  * Represents hourly performance metrics for a line
@@ -1902,6 +1873,30 @@ declare const useWorkspaceDisplayNamesMap: (workspaceIds: string[], companyId?:
1902
1873
  refetch: () => Promise<void>;
1903
1874
  };
1904
1875
 
1876
+ interface ActiveBreak extends Break {
1877
+ /** The line ID where this break is active */
1878
+ lineId: string;
1879
+ /** The shift name (Day Shift or Night Shift) */
1880
+ shiftName: string;
1881
+ /** Minutes elapsed since break started */
1882
+ elapsedMinutes: number;
1883
+ /** Minutes remaining until break ends */
1884
+ remainingMinutes: number;
1885
+ }
1886
+ interface UseActiveBreaksResult {
1887
+ /** Array of currently active breaks */
1888
+ activeBreaks: ActiveBreak[];
1889
+ /** Whether the hook is loading data */
1890
+ isLoading: boolean;
1891
+ /** Error message if any */
1892
+ error: string | null;
1893
+ }
1894
+ /**
1895
+ * Custom hook to detect and track active breaks across all lines
1896
+ * Updates every minute to check for newly active or ended breaks
1897
+ */
1898
+ declare const useActiveBreaks: (lineIds: string[]) => UseActiveBreaksResult;
1899
+
1905
1900
  /**
1906
1901
  * Interface for navigation method used across packages
1907
1902
  * Abstracts navigation implementation details from components
@@ -1961,7 +1956,7 @@ interface LineNavigationParams {
1961
1956
  * @property {(params: LineNavigationParams) => void} goToLine - Navigates to a line (KPI) page, e.g., '/kpis/[lineId]'.
1962
1957
  * @property {() => void} goToTargets - Navigates to the '/targets' page.
1963
1958
  * @property {() => void} goToShifts - Navigates to the '/shifts' page.
1964
- * @property {() => void} goToLeaderboard - Navigates to the '/leaderboard' page.
1959
+ * @property {() => void} goToLeaderboard - Navigates to the leaderboard page for the default line.
1965
1960
  * @property {() => void} goToFactoryView - Navigates to the '/factory-view' page.
1966
1961
  * @property {() => void} goToProfile - Navigates to the '/profile' page.
1967
1962
  * @property {(path: string, options?: NavigationOptions) => Promise<void>} navigate - Navigates to an arbitrary path with retry logic and optional tracking.
@@ -1971,7 +1966,7 @@ interface LineNavigationParams {
1971
1966
  * @summary Provides abstracted navigation utilities and current route state for the dashboard application.
1972
1967
  * @description This hook serves as a wrapper around the Next.js `useRouter` hook, offering a simplified API for common navigation tasks
1973
1968
  * and for accessing dashboard-specific route information. It helps maintain consistency in navigation logic and route patterns.
1974
- * Assumed route patterns include: `/` (dashboard), `/workspace/[id]`, `/kpis/[lineId]`, `/targets`, `/shifts`, `/leaderboard`, `/factory-view`.
1969
+ * Assumed route patterns include: `/` (dashboard), `/workspace/[id]`, `/kpis/[lineId]`, `/targets`, `/shifts`, `/leaderboard/[lineId]`, `/factory-view`.
1975
1970
  * The `activeLineId` property has a fallback to `entityConfig.defaultLineId` when not on a specific line page, which implies a global default line context (see {@link EntityConfigShape} for expected structure).
1976
1971
  *
1977
1972
  * @returns {NavigationHookReturn} An object containing various navigation actions and properties related to the current route.
@@ -2851,6 +2846,8 @@ interface HourlyOutputChartProps {
2851
2846
  data: number[];
2852
2847
  pphThreshold: number;
2853
2848
  shiftStart: string;
2849
+ showIdleTime?: boolean;
2850
+ idleTimeHourly?: Record<string, string[]>;
2854
2851
  className?: string;
2855
2852
  }
2856
2853
 
@@ -2925,6 +2922,24 @@ interface WhatsAppShareButtonProps {
2925
2922
  }
2926
2923
  declare const WhatsAppShareButton: React__default.FC<WhatsAppShareButtonProps>;
2927
2924
 
2925
+ interface BreakNotificationPopupProps {
2926
+ /** Array of active breaks to display */
2927
+ activeBreaks: ActiveBreak[];
2928
+ /** Optional callback when popup is dismissed */
2929
+ onDismiss?: () => void;
2930
+ /** Whether to show the popup */
2931
+ isVisible?: boolean;
2932
+ /** Optional class name for custom styling */
2933
+ className?: string;
2934
+ /** Line names mapping for display */
2935
+ lineNames?: Record<string, string>;
2936
+ }
2937
+ /**
2938
+ * Break notification popup component
2939
+ * Shows active break information in a minimal, clean way
2940
+ */
2941
+ declare const BreakNotificationPopup: React__default.FC<BreakNotificationPopupProps>;
2942
+
2928
2943
  interface BaseHistoryCalendarProps {
2929
2944
  dailyData: Record<string, DaySummaryData>;
2930
2945
  displayMonth: Date;
@@ -2957,12 +2972,13 @@ declare const BaseHistoryCalendar: React__default.FC<BaseHistoryCalendarProps>;
2957
2972
 
2958
2973
  interface ShiftDisplayProps {
2959
2974
  className?: string;
2975
+ variant?: 'default' | 'enhanced';
2960
2976
  }
2961
2977
  declare const ShiftDisplay: React__default.FC<ShiftDisplayProps>;
2962
2978
 
2963
2979
  /**
2964
- * ISTTimer composes TimeDisplay and ShiftDisplay from within @optifye/dashboard-core.
2965
- * Assumes DashboardProvider is configured with necessary dateTimeConfig and shiftConfig.
2980
+ * ISTTimer composes TimeDisplay from within @optifye/dashboard-core.
2981
+ * Assumes DashboardProvider is configured with necessary dateTimeConfig.
2966
2982
  */
2967
2983
  declare const ISTTimer: React__default.FC;
2968
2984
 
@@ -3740,6 +3756,15 @@ interface MetricCardProps {
3740
3756
  }
3741
3757
  declare const MetricCard: React__default.FC<MetricCardProps>;
3742
3758
 
3759
+ interface TimePickerDropdownProps {
3760
+ value: string;
3761
+ onChange: (value: string) => void;
3762
+ placeholder?: string;
3763
+ className?: string;
3764
+ disabled?: boolean;
3765
+ }
3766
+ declare const TimePickerDropdown: React__default.FC<TimePickerDropdownProps>;
3767
+
3743
3768
  declare const DEFAULT_HLS_CONFIG: {
3744
3769
  maxBufferLength: number;
3745
3770
  maxMaxBufferLength: number;
@@ -3843,6 +3868,30 @@ declare function DebugAuthView(): React__default.ReactNode;
3843
3868
  declare const FactoryView: React__default.FC<FactoryViewProps>;
3844
3869
  declare const AuthenticatedFactoryView: (props: FactoryViewProps) => react_jsx_runtime.JSX.Element | null;
3845
3870
 
3871
+ interface HelpViewProps {
3872
+ /**
3873
+ * Optional callback when a ticket is successfully submitted
3874
+ */
3875
+ onTicketSubmit?: (ticketData: SupportTicket$1) => Promise<void>;
3876
+ /**
3877
+ * Optional custom support email
3878
+ */
3879
+ supportEmail?: string;
3880
+ }
3881
+ interface SupportTicket$1 {
3882
+ subject: string;
3883
+ category: 'general' | 'technical' | 'feature' | 'billing';
3884
+ priority: 'low' | 'normal' | 'high' | 'urgent';
3885
+ description: string;
3886
+ email: string;
3887
+ timestamp: Date;
3888
+ }
3889
+ /**
3890
+ * HelpView component - Support ticket submission page
3891
+ */
3892
+ declare const HelpView: React__default.FC<HelpViewProps>;
3893
+ declare const AuthenticatedHelpView: (props: HelpViewProps) => react_jsx_runtime.JSX.Element | null;
3894
+
3846
3895
  interface HomeViewProps {
3847
3896
  /**
3848
3897
  * UUID of the default line to display
@@ -3943,16 +3992,20 @@ interface KPIDetailViewProps {
3943
3992
  */
3944
3993
  declare const KPIDetailView: React__default.FC<KPIDetailViewProps>;
3945
3994
 
3995
+ interface KPIsOverviewViewProps {
3996
+ companyId?: string;
3997
+ navigate?: (path: string) => void;
3998
+ className?: string;
3999
+ onBackClick?: () => void;
4000
+ backLinkUrl?: string;
4001
+ }
4002
+ declare const KPIsOverviewView: React__default.FC<KPIsOverviewViewProps>;
4003
+
3946
4004
  /**
3947
4005
  * LeaderboardDetailView component for displaying a detailed leaderboard for a specific line
3948
4006
  */
3949
4007
  declare const LeaderboardDetailView: React__default.FC<LeaderboardDetailViewProps>;
3950
4008
 
3951
- /**
3952
- * LeaderboardIndexView component for displaying a list of lines that can be selected for the leaderboard
3953
- */
3954
- declare const LeaderboardIndexView: React__default.FC<LeaderboardIndexViewProps>;
3955
-
3956
4009
  interface LoginViewProps {
3957
4010
  /**
3958
4011
  * Optional logo source URL
@@ -4280,6 +4333,21 @@ declare const streamProxyConfig: {
4280
4333
  };
4281
4334
  };
4282
4335
 
4336
+ interface SupportTicket {
4337
+ subject: string;
4338
+ category: 'general' | 'technical' | 'feature' | 'billing';
4339
+ priority: 'low' | 'normal' | 'high' | 'urgent';
4340
+ description: string;
4341
+ email: string;
4342
+ timestamp: Date;
4343
+ }
4344
+ declare class SlackAPI {
4345
+ /**
4346
+ * Sends a support ticket notification to Slack via the API route
4347
+ */
4348
+ static sendSupportTicketNotification(ticket: SupportTicket): Promise<void>;
4349
+ }
4350
+
4283
4351
  interface ThreadSidebarProps {
4284
4352
  activeThreadId?: string;
4285
4353
  onSelectThread: (threadId: string) => void;
@@ -4288,4 +4356,4 @@ interface ThreadSidebarProps {
4288
4356
  }
4289
4357
  declare const ThreadSidebar: React__default.FC<ThreadSidebarProps>;
4290
4358
 
4291
- export { ACTION_NAMES, AIAgentView, type Action, type ActionName, type ActionService, type ActionThreshold, type AnalyticsConfig, AuthCallback, type AuthCallbackProps, AuthCallbackView, type AuthCallbackViewProps, type AuthConfig, AuthProvider, type AuthUser, AuthenticatedFactoryView, 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, 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_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, GridComponentsPlaceholder, Header, type HeaderProps, 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, LINE_1_UUID, LargeOutputProgressChart, type LargeOutputProgressChartProps, LeaderboardDetailView, type LeaderboardDetailViewProps, type LeaderboardEntry, LeaderboardIndexView, type LeaderboardIndexViewProps, type LeaderboardLineOption, 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, LoadingOverlay, LoadingPage, LoadingSpinner, 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, 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, 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, type StreamProxyConfig, type SupabaseClient, SupabaseProvider, type Target, TargetWorkspaceGrid, type TargetWorkspaceGridProps, TargetsView, type TargetsViewProps, type ThemeColorValue, type ThemeConfig, ThreadSidebar, TimeDisplay, type TrackingEventProperties, type TrendDirection, type UnderperformingWorkspace, type UnderperformingWorkspaces, type UseDashboardMetricsProps, type UseFactoryOverviewOptions, type UseFormatNumberResult, type UseMessagesResult, type UseRealtimeLineMetricsProps, type UseTargetsOptions, type UseThreadsResult, type UseWorkspaceOperatorsOptions, type UserProfileConfig, VideoCard, 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, 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, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultTabForWorkspace, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isTransitionPeriod, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, optifyeAgentClient, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, s3VideoPreloader, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useShiftConfig, useShifts, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
4359
+ 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_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, 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, 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, LoadingOverlay, LoadingPage, LoadingSpinner, 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, 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, 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, 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, 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, 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, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultTabForWorkspace, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isTransitionPeriod, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, optifyeAgentClient, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, s3VideoPreloader, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useShiftConfig, useShifts, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
package/dist/index.d.ts CHANGED
@@ -86,6 +86,7 @@ interface WorkspaceDetailedMetrics {
86
86
  ideal_output_until_now: number;
87
87
  output_difference: number;
88
88
  idle_time?: number;
89
+ idle_time_hourly?: Record<string, string[]>;
89
90
  compliance_efficiency?: number;
90
91
  sop_check?: Record<string, number>;
91
92
  }
@@ -737,27 +738,6 @@ interface ISTDateProps {
737
738
  interface ISTTimerProps {
738
739
  }
739
740
 
740
- /**
741
- * Props for the LeaderboardIndexView component
742
- */
743
- interface LeaderboardIndexViewProps {
744
- /**
745
- * Factory View identifier - used to add the factory view option to the lines list
746
- */
747
- factoryViewId?: string;
748
- /**
749
- * Company UUID to use when displaying factory view
750
- */
751
- companyUuid?: string;
752
- /**
753
- * Function to handle navigation to a specific line
754
- */
755
- onLineSelect?: (lineId: string) => void;
756
- /**
757
- * Optional className for custom styling
758
- */
759
- className?: string;
760
- }
761
741
  /**
762
742
  * Props for the LeaderboardDetailView component
763
743
  */
@@ -795,15 +775,6 @@ interface LeaderboardDetailViewProps {
795
775
  */
796
776
  className?: string;
797
777
  }
798
- /**
799
- * Line option type for the leaderboard index
800
- */
801
- interface LeaderboardLineOption extends SimpleLine {
802
- /**
803
- * Unique identifier for the line
804
- */
805
- id: string;
806
- }
807
778
 
808
779
  /**
809
780
  * Represents hourly performance metrics for a line
@@ -1902,6 +1873,30 @@ declare const useWorkspaceDisplayNamesMap: (workspaceIds: string[], companyId?:
1902
1873
  refetch: () => Promise<void>;
1903
1874
  };
1904
1875
 
1876
+ interface ActiveBreak extends Break {
1877
+ /** The line ID where this break is active */
1878
+ lineId: string;
1879
+ /** The shift name (Day Shift or Night Shift) */
1880
+ shiftName: string;
1881
+ /** Minutes elapsed since break started */
1882
+ elapsedMinutes: number;
1883
+ /** Minutes remaining until break ends */
1884
+ remainingMinutes: number;
1885
+ }
1886
+ interface UseActiveBreaksResult {
1887
+ /** Array of currently active breaks */
1888
+ activeBreaks: ActiveBreak[];
1889
+ /** Whether the hook is loading data */
1890
+ isLoading: boolean;
1891
+ /** Error message if any */
1892
+ error: string | null;
1893
+ }
1894
+ /**
1895
+ * Custom hook to detect and track active breaks across all lines
1896
+ * Updates every minute to check for newly active or ended breaks
1897
+ */
1898
+ declare const useActiveBreaks: (lineIds: string[]) => UseActiveBreaksResult;
1899
+
1905
1900
  /**
1906
1901
  * Interface for navigation method used across packages
1907
1902
  * Abstracts navigation implementation details from components
@@ -1961,7 +1956,7 @@ interface LineNavigationParams {
1961
1956
  * @property {(params: LineNavigationParams) => void} goToLine - Navigates to a line (KPI) page, e.g., '/kpis/[lineId]'.
1962
1957
  * @property {() => void} goToTargets - Navigates to the '/targets' page.
1963
1958
  * @property {() => void} goToShifts - Navigates to the '/shifts' page.
1964
- * @property {() => void} goToLeaderboard - Navigates to the '/leaderboard' page.
1959
+ * @property {() => void} goToLeaderboard - Navigates to the leaderboard page for the default line.
1965
1960
  * @property {() => void} goToFactoryView - Navigates to the '/factory-view' page.
1966
1961
  * @property {() => void} goToProfile - Navigates to the '/profile' page.
1967
1962
  * @property {(path: string, options?: NavigationOptions) => Promise<void>} navigate - Navigates to an arbitrary path with retry logic and optional tracking.
@@ -1971,7 +1966,7 @@ interface LineNavigationParams {
1971
1966
  * @summary Provides abstracted navigation utilities and current route state for the dashboard application.
1972
1967
  * @description This hook serves as a wrapper around the Next.js `useRouter` hook, offering a simplified API for common navigation tasks
1973
1968
  * and for accessing dashboard-specific route information. It helps maintain consistency in navigation logic and route patterns.
1974
- * Assumed route patterns include: `/` (dashboard), `/workspace/[id]`, `/kpis/[lineId]`, `/targets`, `/shifts`, `/leaderboard`, `/factory-view`.
1969
+ * Assumed route patterns include: `/` (dashboard), `/workspace/[id]`, `/kpis/[lineId]`, `/targets`, `/shifts`, `/leaderboard/[lineId]`, `/factory-view`.
1975
1970
  * The `activeLineId` property has a fallback to `entityConfig.defaultLineId` when not on a specific line page, which implies a global default line context (see {@link EntityConfigShape} for expected structure).
1976
1971
  *
1977
1972
  * @returns {NavigationHookReturn} An object containing various navigation actions and properties related to the current route.
@@ -2851,6 +2846,8 @@ interface HourlyOutputChartProps {
2851
2846
  data: number[];
2852
2847
  pphThreshold: number;
2853
2848
  shiftStart: string;
2849
+ showIdleTime?: boolean;
2850
+ idleTimeHourly?: Record<string, string[]>;
2854
2851
  className?: string;
2855
2852
  }
2856
2853
 
@@ -2925,6 +2922,24 @@ interface WhatsAppShareButtonProps {
2925
2922
  }
2926
2923
  declare const WhatsAppShareButton: React__default.FC<WhatsAppShareButtonProps>;
2927
2924
 
2925
+ interface BreakNotificationPopupProps {
2926
+ /** Array of active breaks to display */
2927
+ activeBreaks: ActiveBreak[];
2928
+ /** Optional callback when popup is dismissed */
2929
+ onDismiss?: () => void;
2930
+ /** Whether to show the popup */
2931
+ isVisible?: boolean;
2932
+ /** Optional class name for custom styling */
2933
+ className?: string;
2934
+ /** Line names mapping for display */
2935
+ lineNames?: Record<string, string>;
2936
+ }
2937
+ /**
2938
+ * Break notification popup component
2939
+ * Shows active break information in a minimal, clean way
2940
+ */
2941
+ declare const BreakNotificationPopup: React__default.FC<BreakNotificationPopupProps>;
2942
+
2928
2943
  interface BaseHistoryCalendarProps {
2929
2944
  dailyData: Record<string, DaySummaryData>;
2930
2945
  displayMonth: Date;
@@ -2957,12 +2972,13 @@ declare const BaseHistoryCalendar: React__default.FC<BaseHistoryCalendarProps>;
2957
2972
 
2958
2973
  interface ShiftDisplayProps {
2959
2974
  className?: string;
2975
+ variant?: 'default' | 'enhanced';
2960
2976
  }
2961
2977
  declare const ShiftDisplay: React__default.FC<ShiftDisplayProps>;
2962
2978
 
2963
2979
  /**
2964
- * ISTTimer composes TimeDisplay and ShiftDisplay from within @optifye/dashboard-core.
2965
- * Assumes DashboardProvider is configured with necessary dateTimeConfig and shiftConfig.
2980
+ * ISTTimer composes TimeDisplay from within @optifye/dashboard-core.
2981
+ * Assumes DashboardProvider is configured with necessary dateTimeConfig.
2966
2982
  */
2967
2983
  declare const ISTTimer: React__default.FC;
2968
2984
 
@@ -3740,6 +3756,15 @@ interface MetricCardProps {
3740
3756
  }
3741
3757
  declare const MetricCard: React__default.FC<MetricCardProps>;
3742
3758
 
3759
+ interface TimePickerDropdownProps {
3760
+ value: string;
3761
+ onChange: (value: string) => void;
3762
+ placeholder?: string;
3763
+ className?: string;
3764
+ disabled?: boolean;
3765
+ }
3766
+ declare const TimePickerDropdown: React__default.FC<TimePickerDropdownProps>;
3767
+
3743
3768
  declare const DEFAULT_HLS_CONFIG: {
3744
3769
  maxBufferLength: number;
3745
3770
  maxMaxBufferLength: number;
@@ -3843,6 +3868,30 @@ declare function DebugAuthView(): React__default.ReactNode;
3843
3868
  declare const FactoryView: React__default.FC<FactoryViewProps>;
3844
3869
  declare const AuthenticatedFactoryView: (props: FactoryViewProps) => react_jsx_runtime.JSX.Element | null;
3845
3870
 
3871
+ interface HelpViewProps {
3872
+ /**
3873
+ * Optional callback when a ticket is successfully submitted
3874
+ */
3875
+ onTicketSubmit?: (ticketData: SupportTicket$1) => Promise<void>;
3876
+ /**
3877
+ * Optional custom support email
3878
+ */
3879
+ supportEmail?: string;
3880
+ }
3881
+ interface SupportTicket$1 {
3882
+ subject: string;
3883
+ category: 'general' | 'technical' | 'feature' | 'billing';
3884
+ priority: 'low' | 'normal' | 'high' | 'urgent';
3885
+ description: string;
3886
+ email: string;
3887
+ timestamp: Date;
3888
+ }
3889
+ /**
3890
+ * HelpView component - Support ticket submission page
3891
+ */
3892
+ declare const HelpView: React__default.FC<HelpViewProps>;
3893
+ declare const AuthenticatedHelpView: (props: HelpViewProps) => react_jsx_runtime.JSX.Element | null;
3894
+
3846
3895
  interface HomeViewProps {
3847
3896
  /**
3848
3897
  * UUID of the default line to display
@@ -3943,16 +3992,20 @@ interface KPIDetailViewProps {
3943
3992
  */
3944
3993
  declare const KPIDetailView: React__default.FC<KPIDetailViewProps>;
3945
3994
 
3995
+ interface KPIsOverviewViewProps {
3996
+ companyId?: string;
3997
+ navigate?: (path: string) => void;
3998
+ className?: string;
3999
+ onBackClick?: () => void;
4000
+ backLinkUrl?: string;
4001
+ }
4002
+ declare const KPIsOverviewView: React__default.FC<KPIsOverviewViewProps>;
4003
+
3946
4004
  /**
3947
4005
  * LeaderboardDetailView component for displaying a detailed leaderboard for a specific line
3948
4006
  */
3949
4007
  declare const LeaderboardDetailView: React__default.FC<LeaderboardDetailViewProps>;
3950
4008
 
3951
- /**
3952
- * LeaderboardIndexView component for displaying a list of lines that can be selected for the leaderboard
3953
- */
3954
- declare const LeaderboardIndexView: React__default.FC<LeaderboardIndexViewProps>;
3955
-
3956
4009
  interface LoginViewProps {
3957
4010
  /**
3958
4011
  * Optional logo source URL
@@ -4280,6 +4333,21 @@ declare const streamProxyConfig: {
4280
4333
  };
4281
4334
  };
4282
4335
 
4336
+ interface SupportTicket {
4337
+ subject: string;
4338
+ category: 'general' | 'technical' | 'feature' | 'billing';
4339
+ priority: 'low' | 'normal' | 'high' | 'urgent';
4340
+ description: string;
4341
+ email: string;
4342
+ timestamp: Date;
4343
+ }
4344
+ declare class SlackAPI {
4345
+ /**
4346
+ * Sends a support ticket notification to Slack via the API route
4347
+ */
4348
+ static sendSupportTicketNotification(ticket: SupportTicket): Promise<void>;
4349
+ }
4350
+
4283
4351
  interface ThreadSidebarProps {
4284
4352
  activeThreadId?: string;
4285
4353
  onSelectThread: (threadId: string) => void;
@@ -4288,4 +4356,4 @@ interface ThreadSidebarProps {
4288
4356
  }
4289
4357
  declare const ThreadSidebar: React__default.FC<ThreadSidebarProps>;
4290
4358
 
4291
- export { ACTION_NAMES, AIAgentView, type Action, type ActionName, type ActionService, type ActionThreshold, type AnalyticsConfig, AuthCallback, type AuthCallbackProps, AuthCallbackView, type AuthCallbackViewProps, type AuthConfig, AuthProvider, type AuthUser, AuthenticatedFactoryView, 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, 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_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, GridComponentsPlaceholder, Header, type HeaderProps, 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, LINE_1_UUID, LargeOutputProgressChart, type LargeOutputProgressChartProps, LeaderboardDetailView, type LeaderboardDetailViewProps, type LeaderboardEntry, LeaderboardIndexView, type LeaderboardIndexViewProps, type LeaderboardLineOption, 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, LoadingOverlay, LoadingPage, LoadingSpinner, 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, 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, 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, type StreamProxyConfig, type SupabaseClient, SupabaseProvider, type Target, TargetWorkspaceGrid, type TargetWorkspaceGridProps, TargetsView, type TargetsViewProps, type ThemeColorValue, type ThemeConfig, ThreadSidebar, TimeDisplay, type TrackingEventProperties, type TrendDirection, type UnderperformingWorkspace, type UnderperformingWorkspaces, type UseDashboardMetricsProps, type UseFactoryOverviewOptions, type UseFormatNumberResult, type UseMessagesResult, type UseRealtimeLineMetricsProps, type UseTargetsOptions, type UseThreadsResult, type UseWorkspaceOperatorsOptions, type UserProfileConfig, VideoCard, 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, 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, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultTabForWorkspace, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isTransitionPeriod, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, optifyeAgentClient, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, s3VideoPreloader, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useShiftConfig, useShifts, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };
4359
+ 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_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, 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, 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, LoadingOverlay, LoadingPage, LoadingSpinner, 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, 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, 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, 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, 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, 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, checkRateLimit, clearAllRateLimits, clearRateLimit, clearS3VideoCache, clearS3VideoFromCache, clearWorkspaceDisplayNamesCache, cn, createStreamProxyHandler, createSupabaseClient, createThrottledReload, dashboardService, deleteThread, formatDateInZone, formatDateTimeInZone, formatISTDate, formatIdleTime, formatTimeInZone, fromUrlFriendlyName, getAllThreadMessages, getAllWorkspaceDisplayNamesAsync, getAnonClient, getCameraNumber, getCompanyMetricsTableName, getConfigurableShortWorkspaceDisplayName, getConfigurableWorkspaceDisplayName, getCurrentShift, getCurrentTimeInZone, getDashboardHeaderTimeInZone, getDaysDifferenceInZone, getDefaultCameraStreamUrl, getDefaultTabForWorkspace, getManufacturingInsights, getMetricsTablePrefix, getOperationalDate, getS3SignedUrl, getS3VideoSrc, getShortWorkspaceDisplayName, getShortWorkspaceDisplayNameAsync, getStoredWorkspaceMappings, getThreadMessages, getUserThreads, getUserThreadsPaginated, getWorkspaceDisplayName, getWorkspaceDisplayNameAsync, getWorkspaceDisplayNamesMap, getWorkspaceFromUrl, getWorkspaceNavigationParams, identifyCoreUser, initializeCoreMixpanel, isTransitionPeriod, isValidLineInfoPayload, isValidWorkspaceDetailedMetricsPayload, isValidWorkspaceMetricsPayload, isWorkspaceDisplayNamesLoaded, isWorkspaceDisplayNamesLoading, mergeWithDefaultConfig, optifyeAgentClient, preloadS3Video, preloadS3VideoUrl, preloadS3VideosUrl, preloadVideoUrl, preloadVideosUrl, qualityService, realtimeService, refreshWorkspaceDisplayNames, resetCoreMixpanel, s3VideoPreloader, storeWorkspaceMapping, streamProxyConfig, throttledReloadDashboard, toUrlFriendlyName, trackCoreEvent, trackCorePageView, updateThreadTitle, useActiveBreaks, useAnalyticsConfig, useAuth, useAuthConfig, useComponentOverride, useCustomConfig, useDashboardConfig, useDashboardMetrics, useDatabaseConfig, useDateFormatter, useDateTimeConfig, useEndpointsConfig, useEntityConfig, useFactoryOverviewMetrics, useFeatureFlags, useFormatNumber, useHistoricWorkspaceMetrics, useHlsStream, useHookOverride, useLeaderboardMetrics, useLineDetailedMetrics, useLineKPIs, useLineMetrics, useLineWorkspaceMetrics, useMessages, useMetrics, useNavigation, useOverrides, usePageOverride, useRealtimeLineMetrics, useRegistry, useShiftConfig, useShifts, useSupabase, useSupabaseClient, useTargets, useTheme, useThemeConfig, useThreads, useWorkspaceConfig, useWorkspaceDetailedMetrics, useWorkspaceDisplayName, useWorkspaceDisplayNames, useWorkspaceDisplayNamesMap, useWorkspaceMetrics, useWorkspaceNavigation, useWorkspaceOperators, videoPreloader, whatsappService, withAuth, withRegistry, workspaceService };