@burdenoff/microfe-movethewheels 2026.1114.1 → 2026.1123.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MoveTheWheelsRoot.js +149 -133
- package/dist/MoveTheWheelsRoutes.js +157 -139
- package/dist/components/EntityConversationsCard.js +145 -0
- package/dist/components/maps/MapCanvas.js +4 -3
- package/dist/events/rybbit.js +87 -0
- package/dist/generated/tracking-quality-operations.d.ts +342 -0
- package/dist/hooks/useEntityComments.js +111 -0
- package/dist/hooks/useFleet.js +394 -311
- package/dist/hooks/useInventory.js +378 -313
- package/dist/hooks/useMultiModalShipments.js +58 -53
- package/dist/hooks/useOrders.js +178 -158
- package/dist/hooks/useRoutes.js +146 -130
- package/dist/index.js +35 -34
- package/dist/movethewheels/components/EntityConversationsCard.d.ts +8 -0
- package/dist/movethewheels/events/rybbit.d.ts +27 -0
- package/dist/movethewheels/hooks/useEntityComments.d.ts +26 -0
- package/dist/movethewheels/hooks/useFleet.d.ts +73 -1
- package/dist/movethewheels/hooks/useInventory.d.ts +19 -0
- package/dist/movethewheels/index.d.ts +1 -0
- package/dist/movethewheels/pages/DocumentsLibraryPage.d.ts +1 -0
- package/dist/movethewheels/pages/NotificationsCenterPage.d.ts +1 -0
- package/dist/movethewheels/types/index.d.ts +95 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/check-check.js +10 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/layers.js +17 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +7 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/send.js +10 -0
- package/dist/pages/DocumentsLibraryPage.js +235 -0
- package/dist/pages/DriverDetailsPage.js +625 -351
- package/dist/pages/NotificationsCenterPage.js +310 -0
- package/dist/pages/OrderDetailsPage.js +48 -42
- package/dist/pages/RouteDetailsPage.js +257 -251
- package/dist/pages/TrackingPage.js +202 -196
- package/dist/pages/VehicleDetailsPage.js +616 -314
- package/dist/pages/WarehouseDetailsPage.js +539 -253
- package/dist/stories/ControlTowerWidgets.stories.d.ts +10 -0
- package/dist/stories/DataTable.stories.d.ts +15 -0
- package/dist/stories/FleetCards.stories.d.ts +9 -0
- package/dist/stories/OrderForms.stories.d.ts +8 -0
- package/dist/stories/RouteMap.stories.d.ts +7 -0
- package/dist/stories/ShipmentTimeline.stories.d.ts +6 -0
- package/package.json +3 -2
- package/src/generated/tracking-quality-operations.ts +407 -0
- package/src/movethewheels/MoveTheWheelsRoot.tsx +16 -0
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +17 -2
- package/src/movethewheels/components/EntityConversationsCard.tsx +143 -0
- package/src/movethewheels/components/maps/MapCanvas.tsx +3 -3
- package/src/movethewheels/events/__tests__/rybbit.test.ts +98 -0
- package/src/movethewheels/events/rybbit.ts +191 -0
- package/src/movethewheels/hooks/useEntityComments.ts +258 -0
- package/src/movethewheels/hooks/useFleet.ts +300 -5
- package/src/movethewheels/hooks/useInventory.ts +231 -3
- package/src/movethewheels/hooks/useMultiModalShipments.ts +8 -1
- package/src/movethewheels/hooks/useOrders.ts +19 -3
- package/src/movethewheels/hooks/useRoutes.ts +14 -2
- package/src/movethewheels/index.ts +1 -0
- package/src/movethewheels/pages/DocumentsLibraryPage.tsx +229 -0
- package/src/movethewheels/pages/DriverDetailsPage.tsx +250 -1
- package/src/movethewheels/pages/NotificationsCenterPage.tsx +331 -0
- package/src/movethewheels/pages/OrderDetailsPage.tsx +8 -0
- package/src/movethewheels/pages/RouteDetailsPage.tsx +6 -0
- package/src/movethewheels/pages/TrackingPage.tsx +8 -0
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +255 -1
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +266 -2
- package/src/movethewheels/types/index.ts +103 -2
- package/src/stories/ControlTowerWidgets.stories.tsx +150 -0
- package/src/stories/DataTable.stories.tsx +94 -0
- package/src/stories/FleetCards.stories.tsx +77 -0
- package/src/stories/OrderForms.stories.tsx +84 -0
- package/src/stories/RouteMap.stories.tsx +43 -0
- package/src/stories/ShipmentTimeline.stories.tsx +128 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// src/movethewheels/events/rybbit.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"movethewheels.page.viewed",
|
|
4
|
+
"movethewheels.order.created",
|
|
5
|
+
"movethewheels.shipment.created",
|
|
6
|
+
"movethewheels.shipment.delivered",
|
|
7
|
+
"movethewheels.delivery_job.assigned",
|
|
8
|
+
"movethewheels.route.planned",
|
|
9
|
+
"movethewheels.vehicle.assigned",
|
|
10
|
+
"movethewheels.warehouse.inbound_received",
|
|
11
|
+
"movethewheels.vehicle.service_recorded",
|
|
12
|
+
"billing.plan.upgraded"
|
|
13
|
+
];
|
|
14
|
+
function t(e) {
|
|
15
|
+
return (e.split("?")[0]?.split("#")[0] ?? "/").replace(/\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}(?=\/|$)/gi, "/:id").replace(/\/[0-9]{4,}(?=\/|$)/g, "/:id");
|
|
16
|
+
}
|
|
17
|
+
function n(e) {
|
|
18
|
+
return e ?? void 0;
|
|
19
|
+
}
|
|
20
|
+
function r(e, r, i) {
|
|
21
|
+
let a = t(r);
|
|
22
|
+
e.emitCustom("movethewheels.page.viewed", {
|
|
23
|
+
workspaceId: n(i),
|
|
24
|
+
path: a,
|
|
25
|
+
product: "movethewheels"
|
|
26
|
+
}, { component: "movethewheels-router" });
|
|
27
|
+
}
|
|
28
|
+
function i(e, t, r, i) {
|
|
29
|
+
e.emitCustom("movethewheels.order.created", {
|
|
30
|
+
workspaceId: n(r),
|
|
31
|
+
orderId: t,
|
|
32
|
+
priority: i?.priority,
|
|
33
|
+
itemCount: i?.itemCount
|
|
34
|
+
}, { component: "movethewheels-orders" });
|
|
35
|
+
}
|
|
36
|
+
function a(e, t, r, i) {
|
|
37
|
+
e.emitCustom("movethewheels.shipment.created", {
|
|
38
|
+
workspaceId: n(r),
|
|
39
|
+
shipmentId: t,
|
|
40
|
+
mode: i?.mode,
|
|
41
|
+
isMultiModal: i?.isMultiModal
|
|
42
|
+
}, { component: "movethewheels-shipments" });
|
|
43
|
+
}
|
|
44
|
+
function o(e, t, r) {
|
|
45
|
+
e.emitCustom("movethewheels.shipment.delivered", {
|
|
46
|
+
workspaceId: n(r),
|
|
47
|
+
shipmentId: t
|
|
48
|
+
}, { component: "movethewheels-shipments" });
|
|
49
|
+
}
|
|
50
|
+
function s(e, t, r, i) {
|
|
51
|
+
e.emitCustom("movethewheels.delivery_job.assigned", {
|
|
52
|
+
workspaceId: n(r),
|
|
53
|
+
deliveryJobId: t,
|
|
54
|
+
hasDriver: i?.hasDriver,
|
|
55
|
+
hasVehicle: i?.hasVehicle
|
|
56
|
+
}, { component: "movethewheels-dispatch" });
|
|
57
|
+
}
|
|
58
|
+
function c(e, t, r, i) {
|
|
59
|
+
e.emitCustom("movethewheels.route.planned", {
|
|
60
|
+
workspaceId: n(r),
|
|
61
|
+
routeId: t,
|
|
62
|
+
optimized: i?.optimized,
|
|
63
|
+
stopCount: i?.stopCount
|
|
64
|
+
}, { component: "movethewheels-routes" });
|
|
65
|
+
}
|
|
66
|
+
function l(e, t, r, i) {
|
|
67
|
+
e.emitCustom("movethewheels.vehicle.assigned", {
|
|
68
|
+
workspaceId: n(i),
|
|
69
|
+
vehicleId: t,
|
|
70
|
+
driverId: r
|
|
71
|
+
}, { component: "movethewheels-fleet" });
|
|
72
|
+
}
|
|
73
|
+
function u(e, t, r, i) {
|
|
74
|
+
e.emitCustom("movethewheels.warehouse.inbound_received", {
|
|
75
|
+
workspaceId: n(i),
|
|
76
|
+
warehouseId: t,
|
|
77
|
+
inventoryItemId: r
|
|
78
|
+
}, { component: "movethewheels-inventory" });
|
|
79
|
+
}
|
|
80
|
+
function d(e, t, r, i) {
|
|
81
|
+
e.emitCustom("movethewheels.vehicle.service_recorded", {
|
|
82
|
+
workspaceId: n(r),
|
|
83
|
+
vehicleId: t,
|
|
84
|
+
serviceType: i
|
|
85
|
+
}, { component: "movethewheels-fleet" });
|
|
86
|
+
}
|
|
87
|
+
export { e as MOVETHEWHEELS_RYBBIT_EVENT_ALLOWLIST, s as emitDeliveryJobAssigned, i as emitOrderCreated, r as emitPageViewed, c as emitRoutePlanned, a as emitShipmentCreated, o as emitShipmentDelivered, l as emitVehicleAssigned, d as emitVehicleServiceRecorded, u as emitWarehouseInboundReceived, t as normalizeAnalyticsPagePath };
|