@burdenoff/microfe-theglobalfuel 2026.509.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/README.md +12 -0
  2. package/dist/dev/main.d.ts +2 -0
  3. package/dist/dev/main.d.ts.map +1 -0
  4. package/dist/generated/global-operations.d.ts +2 -0
  5. package/dist/generated/global-operations.d.ts.map +1 -0
  6. package/dist/generated/global-types.d.ts +18199 -0
  7. package/dist/generated/global-types.d.ts.map +1 -0
  8. package/dist/generated/wspace-operations.d.ts +2 -0
  9. package/dist/generated/wspace-operations.d.ts.map +1 -0
  10. package/dist/generated/wspace-types.d.ts +43046 -0
  11. package/dist/generated/wspace-types.d.ts.map +1 -0
  12. package/dist/index.d.ts +2 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +5 -0
  15. package/dist/node_modules/clsx/dist/clsx.js +18 -0
  16. package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
  17. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1674 -0
  18. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  19. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts +5 -0
  20. package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +1 -0
  21. package/dist/theglobalfuel/TheGlobalFuelRoot.js +175 -0
  22. package/dist/theglobalfuel/TheGlobalFuelRoot.js.map +1 -0
  23. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +2 -0
  24. package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +1 -0
  25. package/dist/theglobalfuel/TheGlobalFuelRoutes.js +91 -0
  26. package/dist/theglobalfuel/TheGlobalFuelRoutes.js.map +1 -0
  27. package/dist/theglobalfuel/index.d.ts +5 -0
  28. package/dist/theglobalfuel/index.d.ts.map +1 -0
  29. package/dist/theglobalfuel/index.js +3 -0
  30. package/dist/theglobalfuel/pages/AiIntelligencePage.d.ts +2 -0
  31. package/dist/theglobalfuel/pages/AiIntelligencePage.d.ts.map +1 -0
  32. package/dist/theglobalfuel/pages/AiIntelligencePage.js +190 -0
  33. package/dist/theglobalfuel/pages/AiIntelligencePage.js.map +1 -0
  34. package/dist/theglobalfuel/pages/AnalyticsPage.d.ts +2 -0
  35. package/dist/theglobalfuel/pages/AnalyticsPage.d.ts.map +1 -0
  36. package/dist/theglobalfuel/pages/AnalyticsPage.js +241 -0
  37. package/dist/theglobalfuel/pages/AnalyticsPage.js.map +1 -0
  38. package/dist/theglobalfuel/pages/CompliancePage.d.ts +2 -0
  39. package/dist/theglobalfuel/pages/CompliancePage.d.ts.map +1 -0
  40. package/dist/theglobalfuel/pages/CompliancePage.js +173 -0
  41. package/dist/theglobalfuel/pages/CompliancePage.js.map +1 -0
  42. package/dist/theglobalfuel/pages/DashboardPage.d.ts +2 -0
  43. package/dist/theglobalfuel/pages/DashboardPage.d.ts.map +1 -0
  44. package/dist/theglobalfuel/pages/DashboardPage.js +145 -0
  45. package/dist/theglobalfuel/pages/DashboardPage.js.map +1 -0
  46. package/dist/theglobalfuel/pages/FinancialPage.d.ts +2 -0
  47. package/dist/theglobalfuel/pages/FinancialPage.d.ts.map +1 -0
  48. package/dist/theglobalfuel/pages/FinancialPage.js +204 -0
  49. package/dist/theglobalfuel/pages/FinancialPage.js.map +1 -0
  50. package/dist/theglobalfuel/pages/FleetManagementPage.d.ts +2 -0
  51. package/dist/theglobalfuel/pages/FleetManagementPage.d.ts.map +1 -0
  52. package/dist/theglobalfuel/pages/FleetManagementPage.js +244 -0
  53. package/dist/theglobalfuel/pages/FleetManagementPage.js.map +1 -0
  54. package/dist/theglobalfuel/pages/MarketplacePage.d.ts +2 -0
  55. package/dist/theglobalfuel/pages/MarketplacePage.d.ts.map +1 -0
  56. package/dist/theglobalfuel/pages/MarketplacePage.js +260 -0
  57. package/dist/theglobalfuel/pages/MarketplacePage.js.map +1 -0
  58. package/dist/theglobalfuel/pages/OperationsPage.d.ts +2 -0
  59. package/dist/theglobalfuel/pages/OperationsPage.d.ts.map +1 -0
  60. package/dist/theglobalfuel/pages/OperationsPage.js +190 -0
  61. package/dist/theglobalfuel/pages/OperationsPage.js.map +1 -0
  62. package/dist/theglobalfuel/pages/QualityControlPage.d.ts +2 -0
  63. package/dist/theglobalfuel/pages/QualityControlPage.d.ts.map +1 -0
  64. package/dist/theglobalfuel/pages/QualityControlPage.js +215 -0
  65. package/dist/theglobalfuel/pages/QualityControlPage.js.map +1 -0
  66. package/dist/theglobalfuel/pages/ReportsPage.d.ts +2 -0
  67. package/dist/theglobalfuel/pages/ReportsPage.d.ts.map +1 -0
  68. package/dist/theglobalfuel/pages/ReportsPage.js +247 -0
  69. package/dist/theglobalfuel/pages/ReportsPage.js.map +1 -0
  70. package/dist/theglobalfuel/pages/ResourcesPage.d.ts +2 -0
  71. package/dist/theglobalfuel/pages/ResourcesPage.d.ts.map +1 -0
  72. package/dist/theglobalfuel/pages/ResourcesPage.js +225 -0
  73. package/dist/theglobalfuel/pages/ResourcesPage.js.map +1 -0
  74. package/dist/theglobalfuel/pages/RiskManagementPage.d.ts +2 -0
  75. package/dist/theglobalfuel/pages/RiskManagementPage.d.ts.map +1 -0
  76. package/dist/theglobalfuel/pages/RiskManagementPage.js +230 -0
  77. package/dist/theglobalfuel/pages/RiskManagementPage.js.map +1 -0
  78. package/dist/theglobalfuel/pages/SupplyChainPage.d.ts +2 -0
  79. package/dist/theglobalfuel/pages/SupplyChainPage.d.ts.map +1 -0
  80. package/dist/theglobalfuel/pages/SupplyChainPage.js +214 -0
  81. package/dist/theglobalfuel/pages/SupplyChainPage.js.map +1 -0
  82. package/dist/theglobalfuel/pages/SustainabilityPage.d.ts +2 -0
  83. package/dist/theglobalfuel/pages/SustainabilityPage.d.ts.map +1 -0
  84. package/dist/theglobalfuel/pages/SustainabilityPage.js +261 -0
  85. package/dist/theglobalfuel/pages/SustainabilityPage.js.map +1 -0
  86. package/dist/theglobalfuel/pages/TrainingPage.d.ts +2 -0
  87. package/dist/theglobalfuel/pages/TrainingPage.d.ts.map +1 -0
  88. package/dist/theglobalfuel/pages/TrainingPage.js +253 -0
  89. package/dist/theglobalfuel/pages/TrainingPage.js.map +1 -0
  90. package/dist/theglobalfuel/providers/TheGlobalFuelProvider.d.ts +6 -0
  91. package/dist/theglobalfuel/providers/TheGlobalFuelProvider.d.ts.map +1 -0
  92. package/dist/theglobalfuel/providers/TheGlobalFuelProvider.js +27 -0
  93. package/dist/theglobalfuel/providers/TheGlobalFuelProvider.js.map +1 -0
  94. package/dist/theglobalfuel/store/theglobalfuelStore.d.ts +163 -0
  95. package/dist/theglobalfuel/store/theglobalfuelStore.d.ts.map +1 -0
  96. package/dist/theglobalfuel/store/theglobalfuelStore.js +712 -0
  97. package/dist/theglobalfuel/store/theglobalfuelStore.js.map +1 -0
  98. package/dist/theglobalfuel/types/index.d.ts +51 -0
  99. package/dist/theglobalfuel/types/index.d.ts.map +1 -0
  100. package/dist/theglobalfuel/utils/cn.d.ts +4 -0
  101. package/dist/theglobalfuel/utils/cn.d.ts.map +1 -0
  102. package/dist/theglobalfuel/utils/cn.js +10 -0
  103. package/dist/theglobalfuel/utils/cn.js.map +1 -0
  104. package/dist/theglobalfuel/utils/i18n.d.ts +6 -0
  105. package/dist/theglobalfuel/utils/i18n.d.ts.map +1 -0
  106. package/dist/theglobalfuel/utils/i18n.js +15 -0
  107. package/dist/theglobalfuel/utils/i18n.js.map +1 -0
  108. package/dist/theglobalfuel/utils/navigation.d.ts +2 -0
  109. package/dist/theglobalfuel/utils/navigation.d.ts.map +1 -0
  110. package/dist/theglobalfuel/utils/navigation.js +8 -0
  111. package/dist/theglobalfuel/utils/navigation.js.map +1 -0
  112. package/package.json +107 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theglobalfuelStore.js","names":[],"sources":["../../../src/theglobalfuel/store/theglobalfuelStore.ts"],"sourcesContent":["import { create } from 'zustand';\nimport type { OverviewMetric, WorkItem } from '../types';\n\n// ---- Energy-domain data types ----\n\nexport interface Facility {\n id: string;\n name: string;\n type: 'refinery' | 'terminal' | 'pipeline_station' | 'storage_depot' | 'processing_plant';\n location: string;\n status: 'operational' | 'maintenance' | 'offline';\n capacity: string;\n utilization: number;\n}\n\nexport interface OperationsRecord {\n id: string;\n facility: string;\n type: 'crude_processing' | 'distillation' | 'blending' | 'pipeline_transfer' | 'storage';\n throughput: string;\n status: 'running' | 'scheduled' | 'completed' | 'delayed';\n efficiency: number;\n startDate: string;\n}\n\nexport interface FleetVehicle {\n id: string;\n type: 'tanker_truck' | 'pipeline_pig' | 'lng_carrier' | 'rail_tank' | 'barge';\n status: 'active' | 'idle' | 'maintenance';\n driver: string;\n location: string;\n cargo: string;\n capacityBarrels: number;\n currentLoadBarrels: number;\n destination: string;\n eta: string;\n fuelLevel: number;\n}\n\nexport interface SupplyChainShipment {\n id: string;\n origin: string;\n destination: string;\n commodity: string;\n volumeBarrels: number;\n status: 'in-transit' | 'delivered' | 'delayed' | 'loading';\n eta: string;\n carrier: string;\n}\n\nexport interface SustainabilityMetrics {\n esgScore: number;\n esgRating: string;\n carbonEmissionsMTCO2e: number;\n carbonChange: number;\n renewableEnergyPct: number;\n wasteRecycledPct: number;\n scope1: number;\n scope2: number;\n scope3: number;\n waterConsumptionM3: number;\n flareReductionPct: number;\n}\n\nexport interface ComplianceItem {\n id: string;\n framework: string;\n status: 'compliant' | 'review' | 'non-compliant';\n score: number;\n lastAudit: string;\n nextAudit: string;\n}\n\nexport interface RiskAssessment {\n id: string;\n category:\n | 'operational'\n | 'supply_chain'\n | 'compliance'\n | 'financial'\n | 'safety'\n | 'environmental';\n title: string;\n description: string;\n probability: 'low' | 'medium' | 'high';\n impact: 'low' | 'medium' | 'high';\n riskLevel: 'low' | 'medium' | 'high' | 'critical';\n status: 'active' | 'mitigated' | 'monitoring';\n owner: string;\n mitigationBudget: string;\n}\n\nexport interface QualityTest {\n id: string;\n batchId: string;\n product: string;\n testDate: string;\n status: 'passed' | 'warning' | 'failed';\n technician: string;\n metrics: Record<\n string,\n { value: number; unit: string; spec: string; result: 'pass' | 'warning' | 'fail' }\n >;\n}\n\nexport interface FinancialRecord {\n revenueUSD: number;\n opexUSD: number;\n netProfitUSD: number;\n profitMarginPct: number;\n crudePricePerBarrel: number;\n gasPricePerMMBTU: number;\n revenueStreams: { name: string; amountUSD: number; pct: number }[];\n costBreakdown: { name: string; amountUSD: number; pct: number }[];\n}\n\nexport interface TrainingProgram {\n id: string;\n title: string;\n category: 'safety' | 'technical' | 'operations' | 'compliance' | 'management';\n level: 'required' | 'intermediate' | 'advanced';\n duration: string;\n enrolled: number;\n completed: number;\n completionRate: number;\n instructor: string;\n}\n\nexport interface AIInsight {\n id: string;\n type: 'predictive_maintenance' | 'demand_forecast' | 'anomaly_detection' | 'optimization';\n equipment: string;\n prediction: string;\n confidence: number;\n severity: 'low' | 'medium' | 'high';\n recommendation: string;\n timeframe: string;\n}\n\nexport interface MarketplaceProduct {\n id: string;\n name: string;\n category: string;\n pricePerBarrel: number;\n stockBarrels: number;\n minOrderBarrels: number;\n apiGravity: string;\n sulfurContentPct: number;\n rating: number;\n certifications: string[];\n}\n\n// ---- Store state ----\n\ninterface TheGlobalFuelState {\n metrics: OverviewMetric[];\n workItems: WorkItem[];\n selectedView: string;\n facilities: Facility[];\n operations: OperationsRecord[];\n fleet: FleetVehicle[];\n supplyChain: SupplyChainShipment[];\n sustainability: SustainabilityMetrics;\n compliance: ComplianceItem[];\n risks: RiskAssessment[];\n qualityTests: QualityTest[];\n financials: FinancialRecord;\n training: TrainingProgram[];\n aiInsights: AIInsight[];\n marketplace: MarketplaceProduct[];\n setSelectedView: (view: string) => void;\n setWorkItems: (items: WorkItem[]) => void;\n}\n\nexport const useTheGlobalFuelStore = create<TheGlobalFuelState>((set) => ({\n metrics: [\n { label: 'Daily Production', value: '847K bbl', trend: '+3.2%' },\n { label: 'Pipeline Throughput', value: '1.2M bbl/d', trend: '+1.8%' },\n { label: 'Refinery Utilization', value: '94.3%', trend: '+2.1%' },\n { label: 'ESG Score', value: '82 (A)', trend: '+5.2%' },\n ],\n workItems: [\n {\n id: 'w1',\n title: 'Crude distillation unit turnaround - Unit 4',\n status: 'active',\n owner: 'Refinery Ops',\n updatedAt: '2h ago',\n },\n {\n id: 'w2',\n title: 'Pipeline integrity inspection - Segment 12',\n status: 'planned',\n owner: 'Pipeline Eng',\n updatedAt: '5h ago',\n },\n {\n id: 'w3',\n title: 'Flare gas recovery system maintenance',\n status: 'at_risk',\n owner: 'Environmental',\n updatedAt: '1d ago',\n },\n {\n id: 'w4',\n title: 'LNG terminal commissioning phase 2',\n status: 'completed',\n owner: 'Terminal Ops',\n updatedAt: '2d ago',\n },\n ],\n selectedView: 'overview',\n\n facilities: [\n {\n id: 'FAC-001',\n name: 'Gulf Coast Refinery',\n type: 'refinery',\n location: 'Houston, TX',\n status: 'operational',\n capacity: '250,000 bbl/d',\n utilization: 94.3,\n },\n {\n id: 'FAC-002',\n name: 'Midland Terminal',\n type: 'terminal',\n location: 'Midland, TX',\n status: 'operational',\n capacity: '180,000 bbl/d',\n utilization: 87.1,\n },\n {\n id: 'FAC-003',\n name: 'Cushing Storage Hub',\n type: 'storage_depot',\n location: 'Cushing, OK',\n status: 'operational',\n capacity: '12M bbl',\n utilization: 72.5,\n },\n {\n id: 'FAC-004',\n name: 'Baytown Processing Plant',\n type: 'processing_plant',\n location: 'Baytown, TX',\n status: 'maintenance',\n capacity: '120,000 bbl/d',\n utilization: 0,\n },\n {\n id: 'FAC-005',\n name: 'Pipeline Station Alpha',\n type: 'pipeline_station',\n location: 'Permian Basin, TX',\n status: 'operational',\n capacity: '500,000 bbl/d',\n utilization: 91.8,\n },\n ],\n\n operations: [\n {\n id: 'OPS-001',\n facility: 'Gulf Coast Refinery',\n type: 'crude_processing',\n throughput: '236,000 bbl/d',\n status: 'running',\n efficiency: 94.3,\n startDate: '2025-01-15',\n },\n {\n id: 'OPS-002',\n facility: 'Gulf Coast Refinery',\n type: 'distillation',\n throughput: '215,000 bbl/d',\n status: 'running',\n efficiency: 91.2,\n startDate: '2025-01-15',\n },\n {\n id: 'OPS-003',\n facility: 'Midland Terminal',\n type: 'pipeline_transfer',\n throughput: '157,000 bbl/d',\n status: 'running',\n efficiency: 87.1,\n startDate: '2025-02-01',\n },\n {\n id: 'OPS-004',\n facility: 'Cushing Storage Hub',\n type: 'storage',\n throughput: '45,000 bbl/d',\n status: 'scheduled',\n efficiency: 72.5,\n startDate: '2025-03-01',\n },\n {\n id: 'OPS-005',\n facility: 'Baytown Processing Plant',\n type: 'blending',\n throughput: '0 bbl/d',\n status: 'delayed',\n efficiency: 0,\n startDate: '2025-02-20',\n },\n ],\n\n fleet: [\n {\n id: 'TRK-001',\n type: 'tanker_truck',\n status: 'active',\n driver: 'John Smith',\n location: 'Houston, TX',\n cargo: 'Crude Oil WTI',\n capacityBarrels: 210,\n currentLoadBarrels: 195,\n destination: 'Gulf Coast Refinery',\n eta: '2h 15m',\n fuelLevel: 68,\n },\n {\n id: 'TRK-002',\n type: 'tanker_truck',\n status: 'active',\n driver: 'Maria Garcia',\n location: 'Midland, TX',\n cargo: 'Permian Crude',\n capacityBarrels: 210,\n currentLoadBarrels: 180,\n destination: 'Cushing Storage Hub',\n eta: '4h 30m',\n fuelLevel: 82,\n },\n {\n id: 'LNG-001',\n type: 'lng_carrier',\n status: 'active',\n driver: 'Capt. R. Wilson',\n location: 'Gulf of Mexico',\n cargo: 'LNG Cargo',\n capacityBarrels: 850000,\n currentLoadBarrels: 780000,\n destination: 'Sabine Pass Terminal',\n eta: '18h',\n fuelLevel: 71,\n },\n {\n id: 'RAIL-001',\n type: 'rail_tank',\n status: 'idle',\n driver: 'K. Patel',\n location: 'Cushing Rail Yard',\n cargo: 'None',\n capacityBarrels: 700,\n currentLoadBarrels: 0,\n destination: 'Awaiting Assignment',\n eta: 'N/A',\n fuelLevel: 100,\n },\n {\n id: 'TRK-003',\n type: 'tanker_truck',\n status: 'maintenance',\n driver: 'R. Johnson',\n location: 'Service Center',\n cargo: 'None',\n capacityBarrels: 210,\n currentLoadBarrels: 0,\n destination: 'Service Center',\n eta: 'N/A',\n fuelLevel: 45,\n },\n ],\n\n supplyChain: [\n {\n id: 'SCH-001',\n origin: 'Permian Basin, TX',\n destination: 'Gulf Coast Refinery',\n commodity: 'WTI Crude Oil',\n volumeBarrels: 125000,\n status: 'in-transit',\n eta: 'Tomorrow 2:30 PM',\n carrier: 'Plains All American',\n },\n {\n id: 'SCH-002',\n origin: 'Cushing, OK',\n destination: 'PADD III Refineries',\n commodity: 'Light Sweet Crude',\n volumeBarrels: 250000,\n status: 'loading',\n eta: 'Mar 18, 2025',\n carrier: 'Enterprise Products',\n },\n {\n id: 'SCH-003',\n origin: 'Saudi Arabia',\n destination: 'Houston Ship Channel',\n commodity: 'Arab Light Crude',\n volumeBarrels: 2000000,\n status: 'in-transit',\n eta: 'Apr 02, 2025',\n carrier: 'VLCC Tanker Fleet',\n },\n {\n id: 'SCH-004',\n origin: 'Gulf Coast Refinery',\n destination: 'East Coast Terminals',\n commodity: 'ULSD (Diesel)',\n volumeBarrels: 80000,\n status: 'delivered',\n eta: 'Delivered',\n carrier: 'Colonial Pipeline',\n },\n ],\n\n sustainability: {\n esgScore: 82,\n esgRating: 'A',\n carbonEmissionsMTCO2e: 485000,\n carbonChange: -8.3,\n renewableEnergyPct: 18.5,\n wasteRecycledPct: 76.2,\n scope1: 285000,\n scope2: 125000,\n scope3: 75000,\n waterConsumptionM3: 3250000,\n flareReductionPct: 42.5,\n },\n\n compliance: [\n {\n id: 'CMP-001',\n framework: 'EPA Clean Air Act',\n status: 'compliant',\n score: 96,\n lastAudit: '2025-01-15',\n nextAudit: '2025-07-15',\n },\n {\n id: 'CMP-002',\n framework: 'OSHA Process Safety (PSM)',\n status: 'compliant',\n score: 98,\n lastAudit: '2025-02-01',\n nextAudit: '2025-08-01',\n },\n {\n id: 'CMP-003',\n framework: 'EPA SPCC (Spill Prevention)',\n status: 'review',\n score: 89,\n lastAudit: '2024-11-20',\n nextAudit: '2025-05-20',\n },\n {\n id: 'CMP-004',\n framework: 'DOT Pipeline Safety (49 CFR)',\n status: 'compliant',\n score: 100,\n lastAudit: '2025-01-10',\n nextAudit: '2025-07-10',\n },\n {\n id: 'CMP-005',\n framework: 'ISO 14001 Environmental',\n status: 'compliant',\n score: 94,\n lastAudit: '2024-12-15',\n nextAudit: '2025-06-15',\n },\n ],\n\n risks: [\n {\n id: 'RISK-001',\n category: 'operational',\n title: 'CDU Heat Exchanger Fouling',\n description:\n 'Progressive fouling in crude distillation unit heat exchangers reducing throughput efficiency',\n probability: 'medium',\n impact: 'high',\n riskLevel: 'high',\n status: 'active',\n owner: 'Refinery Operations Mgr',\n mitigationBudget: '$450,000',\n },\n {\n id: 'RISK-002',\n category: 'supply_chain',\n title: 'Strait of Hormuz Transit Risk',\n description: 'Geopolitical tensions affecting crude oil imports through Strait of Hormuz',\n probability: 'low',\n impact: 'high',\n riskLevel: 'medium',\n status: 'monitoring',\n owner: 'Supply Chain VP',\n mitigationBudget: '$2,100,000',\n },\n {\n id: 'RISK-003',\n category: 'environmental',\n title: 'Pipeline Corrosion Segment 12',\n description: 'Detected wall thinning in pipeline segment 12 near river crossing',\n probability: 'medium',\n impact: 'high',\n riskLevel: 'critical',\n status: 'active',\n owner: 'Pipeline Integrity Eng',\n mitigationBudget: '$1,800,000',\n },\n {\n id: 'RISK-004',\n category: 'financial',\n title: 'Crude Oil Price Volatility',\n description: 'WTI/Brent spread widening impacting refining margins',\n probability: 'high',\n impact: 'high',\n riskLevel: 'high',\n status: 'active',\n owner: 'CFO',\n mitigationBudget: '$5,000,000',\n },\n {\n id: 'RISK-005',\n category: 'safety',\n title: 'H2S Exposure - Tank Farm B',\n description: 'Elevated H2S readings near sour crude storage tanks',\n probability: 'low',\n impact: 'high',\n riskLevel: 'medium',\n status: 'active',\n owner: 'HSE Manager',\n mitigationBudget: '$320,000',\n },\n ],\n\n qualityTests: [\n {\n id: 'QC-001',\n batchId: 'BATCH-7521',\n product: 'ULSD (Ultra-Low Sulfur Diesel)',\n testDate: '2025-02-11',\n status: 'passed',\n technician: 'Dr. Emily Chen',\n metrics: {\n sulfurContent: { value: 8, unit: 'ppm', spec: '<15 ppm', result: 'pass' },\n cetaneNumber: { value: 52, unit: '', spec: '>40', result: 'pass' },\n flashPoint: { value: 62, unit: 'C', spec: '>52C', result: 'pass' },\n density: { value: 0.845, unit: 'kg/L', spec: '0.82-0.86', result: 'pass' },\n },\n },\n {\n id: 'QC-002',\n batchId: 'BATCH-7522',\n product: 'Gasoline (Regular Unleaded)',\n testDate: '2025-02-11',\n status: 'warning',\n technician: 'Dr. M. Roberts',\n metrics: {\n octaneRating: { value: 87.2, unit: 'RON', spec: '>87', result: 'pass' },\n reidVaporPressure: { value: 9.8, unit: 'psi', spec: '7.0-10.0', result: 'warning' },\n benzeneContent: { value: 0.48, unit: '%', spec: '<0.62', result: 'pass' },\n sulfurContent: { value: 9, unit: 'ppm', spec: '<10', result: 'warning' },\n },\n },\n {\n id: 'QC-003',\n batchId: 'BATCH-7523',\n product: 'Jet Fuel (Jet A-1)',\n testDate: '2025-02-12',\n status: 'passed',\n technician: 'Dr. S. Williams',\n metrics: {\n freezingPoint: { value: -52, unit: 'C', spec: '<-47C', result: 'pass' },\n flashPoint: { value: 42, unit: 'C', spec: '>38C', result: 'pass' },\n density: { value: 0.802, unit: 'kg/L', spec: '0.775-0.840', result: 'pass' },\n thermalStability: { value: 260, unit: 'C', spec: '>260C', result: 'pass' },\n },\n },\n ] as QualityTest[],\n\n financials: {\n revenueUSD: 2_450_000_000,\n opexUSD: 1_820_000_000,\n netProfitUSD: 630_000_000,\n profitMarginPct: 25.7,\n crudePricePerBarrel: 78.45,\n gasPricePerMMBTU: 3.28,\n revenueStreams: [\n { name: 'Refined Products (Gasoline, Diesel, Jet)', amountUSD: 1_470_000_000, pct: 60 },\n { name: 'Crude Oil Trading', amountUSD: 490_000_000, pct: 20 },\n { name: 'Natural Gas & NGL', amountUSD: 294_000_000, pct: 12 },\n { name: 'Petrochemicals', amountUSD: 196_000_000, pct: 8 },\n ],\n costBreakdown: [\n { name: 'Crude Oil Procurement', amountUSD: 1_001_000_000, pct: 55 },\n { name: 'Refinery Operations', amountUSD: 364_000_000, pct: 20 },\n { name: 'Transportation & Logistics', amountUSD: 218_400_000, pct: 12 },\n { name: 'Labor & Benefits', amountUSD: 236_600_000, pct: 13 },\n ],\n },\n\n training: [\n {\n id: 'TRN-001',\n title: 'H2S Safety & Emergency Response',\n category: 'safety',\n level: 'required',\n duration: '8 hours',\n enrolled: 156,\n completed: 142,\n completionRate: 91,\n instructor: 'Capt. R. Martinez',\n },\n {\n id: 'TRN-002',\n title: 'Crude Distillation Operations',\n category: 'technical',\n level: 'intermediate',\n duration: '16 hours',\n enrolled: 45,\n completed: 38,\n completionRate: 84,\n instructor: 'Dr. A. Patel',\n },\n {\n id: 'TRN-003',\n title: 'Pipeline Integrity Management',\n category: 'operations',\n level: 'advanced',\n duration: '24 hours',\n enrolled: 28,\n completed: 22,\n completionRate: 79,\n instructor: 'J. Williams, PE',\n },\n {\n id: 'TRN-004',\n title: 'EPA SPCC Compliance Training',\n category: 'compliance',\n level: 'required',\n duration: '4 hours',\n enrolled: 200,\n completed: 195,\n completionRate: 98,\n instructor: 'L. Thompson, Esq.',\n },\n {\n id: 'TRN-005',\n title: 'Refinery Turnaround Management',\n category: 'management',\n level: 'advanced',\n duration: '32 hours',\n enrolled: 18,\n completed: 12,\n completionRate: 67,\n instructor: 'M. Rodriguez, VP',\n },\n ],\n\n aiInsights: [\n {\n id: 'AI-001',\n type: 'predictive_maintenance',\n equipment: 'CDU Heat Exchanger E-301',\n prediction: 'Fouling rate exceeding threshold - cleaning needed',\n confidence: 94,\n severity: 'high',\n recommendation: 'Schedule cleaning during next planned downtime in 5-7 days',\n timeframe: '5-7 days',\n },\n {\n id: 'AI-002',\n type: 'anomaly_detection',\n equipment: 'Compressor K-201',\n prediction: 'Vibration pattern anomaly detected - bearing wear likely',\n confidence: 91,\n severity: 'high',\n recommendation: 'Order replacement bearings and schedule maintenance',\n timeframe: '3-5 days',\n },\n {\n id: 'AI-003',\n type: 'demand_forecast',\n equipment: 'PADD III Market',\n prediction: 'Diesel demand expected to increase 12% next quarter',\n confidence: 87,\n severity: 'medium',\n recommendation: 'Increase ULSD production allocation by 15,000 bbl/d',\n timeframe: '30-90 days',\n },\n {\n id: 'AI-004',\n type: 'optimization',\n equipment: 'FCC Unit',\n prediction: 'Catalyst regeneration cycle can be optimized for 3.2% yield improvement',\n confidence: 89,\n severity: 'medium',\n recommendation: 'Adjust regeneration temperature profile per AI model output',\n timeframe: '7-14 days',\n },\n ],\n\n marketplace: [\n {\n id: 'MKT-001',\n name: 'WTI Crude Oil',\n category: 'Crude Oil',\n pricePerBarrel: 78.45,\n stockBarrels: 12_000_000,\n minOrderBarrels: 10_000,\n apiGravity: '39.6 API',\n sulfurContentPct: 0.24,\n rating: 4.9,\n certifications: ['NYMEX Deliverable', 'Pipeline Quality'],\n },\n {\n id: 'MKT-002',\n name: 'Brent Crude Oil',\n category: 'Crude Oil',\n pricePerBarrel: 82.1,\n stockBarrels: 8_500_000,\n minOrderBarrels: 25_000,\n apiGravity: '38.3 API',\n sulfurContentPct: 0.37,\n rating: 4.8,\n certifications: ['ICE Deliverable', 'Dated Brent'],\n },\n {\n id: 'MKT-003',\n name: 'ULSD (Ultra-Low Sulfur Diesel)',\n category: 'Refined Products',\n pricePerBarrel: 98.2,\n stockBarrels: 3_200_000,\n minOrderBarrels: 5_000,\n apiGravity: '35.0 API',\n sulfurContentPct: 0.0015,\n rating: 4.9,\n certifications: ['EPA Tier 3', 'ASTM D975'],\n },\n {\n id: 'MKT-004',\n name: 'Natural Gas (Henry Hub)',\n category: 'Natural Gas',\n pricePerBarrel: 3.28,\n stockBarrels: 45_000_000,\n minOrderBarrels: 100_000,\n apiGravity: 'N/A',\n sulfurContentPct: 0,\n rating: 4.7,\n certifications: ['Pipeline Quality', 'FERC Approved'],\n },\n {\n id: 'MKT-005',\n name: 'Jet Fuel (Jet A-1)',\n category: 'Aviation Fuel',\n pricePerBarrel: 105.5,\n stockBarrels: 1_800_000,\n minOrderBarrels: 10_000,\n apiGravity: '43.0 API',\n sulfurContentPct: 0.003,\n rating: 5.0,\n certifications: ['ASTM D1655', 'DEF STAN 91-91'],\n },\n {\n id: 'MKT-006',\n name: 'Permian Basin Crude',\n category: 'Crude Oil',\n pricePerBarrel: 76.8,\n stockBarrels: 5_400_000,\n minOrderBarrels: 10_000,\n apiGravity: '41.2 API',\n sulfurContentPct: 0.18,\n rating: 4.6,\n certifications: ['Pipeline Quality', 'Midland Grade'],\n },\n ],\n\n setSelectedView: (view) => set({ selectedView: view }),\n setWorkItems: (items) => set({ workItems: items }),\n}));\n"],"mappings":";;AA8KA,IAAa,IAAwB,GAA4B,OAAS;CACxE,SAAS;EACP;GAAE,OAAO;GAAoB,OAAO;GAAY,OAAO;GAAS;EAChE;GAAE,OAAO;GAAuB,OAAO;GAAc,OAAO;GAAS;EACrE;GAAE,OAAO;GAAwB,OAAO;GAAS,OAAO;GAAS;EACjE;GAAE,OAAO;GAAa,OAAO;GAAU,OAAO;GAAS;EACxD;CACD,WAAW;EACT;GACE,IAAI;GACJ,OAAO;GACP,QAAQ;GACR,OAAO;GACP,WAAW;GACZ;EACD;GACE,IAAI;GACJ,OAAO;GACP,QAAQ;GACR,OAAO;GACP,WAAW;GACZ;EACD;GACE,IAAI;GACJ,OAAO;GACP,QAAQ;GACR,OAAO;GACP,WAAW;GACZ;EACD;GACE,IAAI;GACJ,OAAO;GACP,QAAQ;GACR,OAAO;GACP,WAAW;GACZ;EACF;CACD,cAAc;CAEd,YAAY;EACV;GACE,IAAI;GACJ,MAAM;GACN,MAAM;GACN,UAAU;GACV,QAAQ;GACR,UAAU;GACV,aAAa;GACd;EACD;GACE,IAAI;GACJ,MAAM;GACN,MAAM;GACN,UAAU;GACV,QAAQ;GACR,UAAU;GACV,aAAa;GACd;EACD;GACE,IAAI;G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AkB;GAClB,QAAQ;GACR,gBAAgB,CAAC,cAAc,YAAY;GAC5C;EACD;GACE,IAAI;GACJ,MAAM;GACN,UAAU;GACV,gBAAgB;GAChB,cAAc;GACd,iBAAiB;GACjB,YAAY;GACZ,kBAAkB;GAClB,QAAQ;GACR,gBAAgB,CAAC,oBAAoB,gBAAgB;GACtD;EACD;GACE,IAAI;GACJ,MAAM;GACN,UAAU;GACV,gBAAgB;GAChB,cAAc;GACd,iBAAiB;GACjB,YAAY;GACZ,kBAAkB;GAClB,QAAQ;GACR,gBAAgB,CAAC,cAAc,iBAAiB;GACjD;EACD;GACE,IAAI;GACJ,MAAM;GACN,UAAU;GACV,gBAAgB;GAChB,cAAc;GACd,iBAAiB;GACjB,YAAY;GACZ,kBAAkB;GAClB,QAAQ;GACR,gBAAgB,CAAC,oBAAoB,gBAAgB;GACtD;EACF;CAED,kBAAkB,MAAS,EAAI,EAAE,cAAc,GAAM,CAAC;CACtD,eAAe,MAAU,EAAI,EAAE,WAAW,GAAO,CAAC;CACnD,EAAE"}
@@ -0,0 +1,51 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface NavItem {
4
+ id: string;
5
+ label: string;
6
+ path: string;
7
+ icon?: React.ReactNode;
8
+ order?: number;
9
+ group?: string;
10
+ children?: NavItem[];
11
+ }
12
+ export interface FooterItem {
13
+ id: string;
14
+ label: string;
15
+ type: 'status' | 'action';
16
+ order?: number;
17
+ section: 'left' | 'center' | 'right';
18
+ }
19
+ export interface TheGlobalFuelRootProps {
20
+ basePath?: string;
21
+ workspaceId?: string;
22
+ tenantId?: string;
23
+ apiGatewayUrl?: string;
24
+ authToken?: string;
25
+ navigate?: (path: string) => void;
26
+ currentUser?: {
27
+ id: string;
28
+ email: string;
29
+ firstName?: string;
30
+ lastName?: string;
31
+ avatar?: string;
32
+ username?: string;
33
+ name?: string;
34
+ role?: string;
35
+ } | null;
36
+ registerNavItems?: (items: NavItem | NavItem[]) => () => void;
37
+ registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
38
+ }
39
+ export interface OverviewMetric {
40
+ label: string;
41
+ value: string;
42
+ trend: string;
43
+ }
44
+ export interface WorkItem {
45
+ id: string;
46
+ title: string;
47
+ status: 'active' | 'planned' | 'at_risk' | 'completed';
48
+ owner: string;
49
+ updatedAt: string;
50
+ }
51
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,GAAG,IAAI,CAAC;IACT,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,KAAK,MAAM,IAAI,CAAC;IAC9D,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,EAAE,KAAK,MAAM,IAAI,CAAC;CACxE;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;IACvD,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,4 @@
1
+ import { ClassValue } from 'clsx';
2
+
3
+ export declare function cn(...inputs: ClassValue[]): string;
4
+ //# sourceMappingURL=cn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
@@ -0,0 +1,10 @@
1
+ import e from "../../node_modules/clsx/dist/clsx.js";
2
+ import { twMerge as t } from "../../node_modules/tailwind-merge/dist/bundle-mjs.js";
3
+ //#region src/theglobalfuel/utils/cn.ts
4
+ function n(...n) {
5
+ return t(e(n));
6
+ }
7
+ //#endregion
8
+ export { n as cn };
9
+
10
+ //# sourceMappingURL=cn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cn.js","names":[],"sources":["../../../src/theglobalfuel/utils/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"],"mappings":";;;AAGA,SAAgB,EAAG,GAAG,GAAsB;AAC1C,QAAO,EAAQ,EAAK,EAAO,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';
2
+
3
+ type TranslationParams = Record<string, string | number>;
4
+ export declare function tWithFallback(t: I18nContextValue['t'], key: string, fallback: string, params?: TranslationParams): string;
5
+ export {};
6
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAE/F,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAazD,wBAAgB,aAAa,CAC3B,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,GACzB,MAAM,CAOR"}
@@ -0,0 +1,15 @@
1
+ //#region src/theglobalfuel/utils/i18n.ts
2
+ function e(e, t) {
3
+ return t ? e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
4
+ let r = t[n];
5
+ return r === void 0 ? `{{${n}}}` : String(r);
6
+ }) : e;
7
+ }
8
+ function t(t, n, r, i) {
9
+ let a = t(n, i);
10
+ return a === n ? e(r, i) : a;
11
+ }
12
+ //#endregion
13
+ export { t as tWithFallback };
14
+
15
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.js","names":[],"sources":["../../../src/theglobalfuel/utils/i18n.ts"],"sourcesContent":["import type { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\ntype TranslationParams = Record<string, string | number>;\n\nfunction interpolateFallback(fallback: string, params?: TranslationParams): string {\n if (!params) {\n return fallback;\n }\n\n return fallback.replace(/\\{\\{\\s*(\\w+)\\s*\\}\\}/g, (_, key: string) => {\n const value = params[key];\n return value === undefined ? `{{${key}}}` : String(value);\n });\n}\n\nexport function tWithFallback(\n t: I18nContextValue['t'],\n key: string,\n fallback: string,\n params?: TranslationParams\n): string {\n const translated = t(key, params);\n if (translated === key) {\n return interpolateFallback(fallback, params);\n }\n\n return translated;\n}\n"],"mappings":";AAIA,SAAS,EAAoB,GAAkB,GAAoC;AAKjF,QAJK,IAIE,EAAS,QAAQ,yBAAyB,GAAG,MAAgB;EAClE,IAAM,IAAQ,EAAO;AACrB,SAAO,MAAU,KAAA,IAAY,KAAK,EAAI,MAAM,OAAO,EAAM;GACzD,GANO;;AASX,SAAgB,EACd,GACA,GACA,GACA,GACQ;CACR,IAAM,IAAa,EAAE,GAAK,EAAO;AAKjC,QAJI,MAAe,IACV,EAAoB,GAAU,EAAO,GAGvC"}
@@ -0,0 +1,2 @@
1
+ export declare function joinPath(basePath: string, relativePath: string): string;
2
+ //# sourceMappingURL=navigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/utils/navigation.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAIvE"}
@@ -0,0 +1,8 @@
1
+ //#region src/theglobalfuel/utils/navigation.ts
2
+ function e(e, t) {
3
+ return (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
4
+ }
5
+ //#endregion
6
+ export { e as joinPath };
7
+
8
+ //# sourceMappingURL=navigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.js","names":[],"sources":["../../../src/theglobalfuel/utils/navigation.ts"],"sourcesContent":["export function joinPath(basePath: string, relativePath: string): string {\n const cleanBase = basePath.endsWith('/') ? basePath.slice(0, -1) : basePath;\n const cleanPath = relativePath.startsWith('/') ? relativePath : `/${relativePath}`;\n return cleanBase + cleanPath;\n}\n"],"mappings":";AAAA,SAAgB,EAAS,GAAkB,GAA8B;AAGvE,SAFkB,EAAS,SAAS,IAAI,GAAG,EAAS,MAAM,GAAG,GAAG,GAAG,MACjD,EAAa,WAAW,IAAI,GAAG,IAAe,IAAI"}
package/package.json ADDED
@@ -0,0 +1,107 @@
1
+ {
2
+ "name": "@burdenoff/microfe-theglobalfuel",
3
+ "version": "2026.509.101",
4
+ "description": "Burdenoff TheGlobalFuel Microfrontend",
5
+ "type": "module",
6
+ "files": [
7
+ "dist",
8
+ "package.json",
9
+ "README.md"
10
+ ],
11
+ "imports": {
12
+ "#src/*": "./src/*",
13
+ "#theglobalfuel/*": "./src/theglobalfuel/*"
14
+ },
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js"
19
+ }
20
+ },
21
+ "main": "./dist/index.js",
22
+ "types": "./dist/index.d.ts",
23
+ "scripts": {
24
+ "dev": "vite",
25
+ "build": "tsc && vite build",
26
+ "lint": "eslint .",
27
+ "format": "prettier --write \"src/**/*.{ts,tsx}\"",
28
+ "type:check": "tsc --noEmit",
29
+ "sanity": "bun run codegen && bun run lint && bun run format && bun run type:check && bun run build",
30
+ "schema:pull": "graphql-codegen --project schema-wspace && graphql-codegen --project schema-global",
31
+ "codegen": "graphql-codegen --project wspace && graphql-codegen --project global",
32
+ "codegen:all": "bun run schema:pull && bun run codegen",
33
+ "switch:status": "bun scripts/deps-mode.ts status",
34
+ "switch:remote": "bun scripts/deps-mode.ts remote",
35
+ "switch:local": "bun scripts/deps-mode.ts local",
36
+ "switch:check": "bun scripts/deps-mode.ts check",
37
+ "prepare": "lefthook install || true",
38
+ "format:check": "prettier --check \"src/**/*.{ts,tsx}\""
39
+ },
40
+ "dependencies": {
41
+ "@apollo/client": "^4.0.11",
42
+ "@burdenoff/fe-libs": "2026.507.125",
43
+ "@tanstack/react-query": "^5.90.16",
44
+ "clsx": "^2.1.1",
45
+ "graphql": "^16.10.0",
46
+ "lucide-react": "^0.468.0",
47
+ "react": "^19.0.0",
48
+ "react-dom": "^19.0.0",
49
+ "react-router-dom": "^7.1.3",
50
+ "tailwind-merge": "^3.4.0",
51
+ "zustand": "^5.0.3",
52
+ "recharts": "^2.15.0",
53
+ "framer-motion": "^12.0.0"
54
+ },
55
+ "devDependencies": {
56
+ "@eslint/js": "^9.39.2",
57
+ "@graphql-codegen/add": "^5.0.0",
58
+ "@graphql-codegen/cli": "^5.0.0",
59
+ "@graphql-codegen/import-types-preset": "^3.0.0",
60
+ "@graphql-codegen/schema-ast": "^4.0.0",
61
+ "@graphql-codegen/typescript": "^4.0.0",
62
+ "@graphql-codegen/typescript-operations": "^4.0.0",
63
+ "@graphql-codegen/typescript-react-apollo": "^4.0.0",
64
+ "@types/react": "^19.0.2",
65
+ "@types/react-dom": "^19.0.2",
66
+ "@vitejs/plugin-react": "^4.3.4",
67
+ "autoprefixer": "^10.4.20",
68
+ "eslint": "^9.18.0",
69
+ "eslint-plugin-react": "^7.37.5",
70
+ "eslint-plugin-react-hooks": "^7.0.1",
71
+ "eslint-plugin-react-refresh": "^0.4.26",
72
+ "lefthook": "^2.1.1",
73
+ "postcss": "^8.4.49",
74
+ "prettier": "^3.4.2",
75
+ "tailwindcss": "^4.0.0",
76
+ "typescript": "^5.9.0",
77
+ "typescript-eslint": "^8.54.0",
78
+ "vite": "8.0.8",
79
+ "vite-plugin-dts": "3.9.1"
80
+ },
81
+ "peerDependencies": {
82
+ "@apollo/client": "^4.0.11",
83
+ "react": "^19.0.0",
84
+ "react-dom": "^19.0.0",
85
+ "zustand": "^5.0.0"
86
+ },
87
+ "publishConfig": {
88
+ "access": "restricted"
89
+ },
90
+ "overrides": {
91
+ "lodash": ">=4.17.21",
92
+ "lodash-es": ">=4.17.21",
93
+ "dompurify": ">=3.3.4",
94
+ "fast-xml-parser": ">=4.5.5",
95
+ "@xmldom/xmldom": ">=0.8.12",
96
+ "swiper": ">=12.1.2",
97
+ "brace-expansion": ">=1.1.13",
98
+ "follow-redirects": ">=1.15.12",
99
+ "smol-toml": ">=1.6.1",
100
+ "axios": ">=1.15.0",
101
+ "flatted": ">=3.4.1",
102
+ "yaml": ">=2.8.3",
103
+ "picomatch": ">=2.3.2",
104
+ "immutable": ">=3.8.3",
105
+ "minimatch": ">=3.1.3"
106
+ }
107
+ }