@burdenoff/microfe-movethewheels 2026.704.1 → 2026.704.2
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/{RouteDetailsPage-BHQbFgI9.js → RouteDetailsPage-sRRVY5UM.js} +1 -1
- package/dist/{RoutesPage-Dqd5Don6.js → RoutesPage-hec06HnD.js} +1 -1
- package/dist/index.js +2 -2
- package/dist/{useRoutes-C_ZCYJ_h.js → useRoutes-DAdy2BGv.js} +8 -8
- package/package.json +1 -1
- package/src/movethewheels/hooks/useRoutes.ts +17 -7
|
@@ -12,7 +12,7 @@ import { t as A } from "./save-CcfoIn2J.js";
|
|
|
12
12
|
import { t as j } from "./square-pen-Dr1X-P2s.js";
|
|
13
13
|
import { t as M } from "./trash-2-CC4KugEJ.js";
|
|
14
14
|
import { r as N } from "./useFleet-BfA_-VUW.js";
|
|
15
|
-
import { r as P, t as F } from "./useRoutes-
|
|
15
|
+
import { r as P, t as F } from "./useRoutes-DAdy2BGv.js";
|
|
16
16
|
import { n as I } from "./maps-CtfuCAmh.js";
|
|
17
17
|
import { o as L, r as R } from "./StatusBadge-BfiF-nNI.js";
|
|
18
18
|
import { t as z } from "./FormError-D4T5FWZA.js";
|
|
@@ -3,7 +3,7 @@ import { t as a } from "./DataTable-CmdZd6iV.js";
|
|
|
3
3
|
import { t as o } from "./navigation-BFki5UJz.js";
|
|
4
4
|
import { t as s } from "./plus-Bk_G-lFC.js";
|
|
5
5
|
import { t as c } from "./refresh-cw-C4-jecjy.js";
|
|
6
|
-
import { n as l, r as u } from "./useRoutes-
|
|
6
|
+
import { n as l, r as u } from "./useRoutes-DAdy2BGv.js";
|
|
7
7
|
import { o as d, r as f } from "./StatusBadge-BfiF-nNI.js";
|
|
8
8
|
import { r as p } from "./formatters-FWJDwTFv.js";
|
|
9
9
|
import { useState as m } from "react";
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import { n as Ye, r as Xe, t as Ze } from "./useOrders-B5FV0kcz.js";
|
|
|
20
20
|
import { a as Qe, i as $e, n as et, o as tt, r as nt, t as rt } from "./useFleet-BfA_-VUW.js";
|
|
21
21
|
import { a as it, c as at, n as ot, o as st, r as ct, t as lt } from "./useInventory-BO7TSgq_.js";
|
|
22
22
|
import { n as ut, r as dt, t as ft } from "./useCustomers-BQ4AIEAT.js";
|
|
23
|
-
import { n as pt, r as mt, t as ht } from "./useRoutes-
|
|
23
|
+
import { n as pt, r as mt, t as ht } from "./useRoutes-DAdy2BGv.js";
|
|
24
24
|
import { a as gt, c as _t, d as vt, f as yt, i as bt, l as xt, n as St, o as Ct, r as wt, s as Tt, t as Et, u as Dt } from "./charts-Dv_zxP7L.js";
|
|
25
25
|
import { a as Ot, i as kt, n as At, o as jt, r as Mt, s as Nt, t as Pt } from "./useTracking-7nd_XOSL.js";
|
|
26
26
|
import { t as Ft } from "./useReports-hUXb8ryJ.js";
|
|
@@ -117,7 +117,7 @@ function mn() {
|
|
|
117
117
|
})
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
var hn = P(() => import("./DashboardPage-BoswH3ec.js")), gn = P(() => import("./OrdersListPage-DvICveRv.js")), _n = P(() => import("./OrderDetailsPage-DRYifXm9.js")), B = P(() => import("./CreateOrderPage-CXbhJLLz.js")), vn = P(() => import("./TrackingPage-Cg0tYGJe.js")), yn = P(() => import("./LiveTrackingPage-5U68u3oA.js")), bn = P(() => import("./FleetPage-qWRj7WFO.js")), xn = P(() => import("./VehiclesPage-BfBEyXGs.js")), V = P(() => import("./VehicleDetailsPage-BbZlCFPo.js")), Sn = P(() => import("./DriversPage-6Z61dpDI.js")), H = P(() => import("./DriverDetailsPage-CPO0G8Ki.js")), Cn = P(() => import("./InventoryPage-DbR4Z--d.js")), wn = P(() => import("./ProductsPage-CokwDOR2.js")), U = P(() => import("./ProductDetailsPage-CWgcRqGR.js")), Tn = P(() => import("./WarehousesPage-M3NaBT0z.js")), W = P(() => import("./WarehouseDetailsPage-DxNhiaoI.js")), En = P(() => import("./CustomersPage-CwtVspuq.js")), G = P(() => import("./CustomerDetailsPage-CHzg75Q5.js")), Dn = P(() => import("./RoutesPage-
|
|
120
|
+
var hn = P(() => import("./DashboardPage-BoswH3ec.js")), gn = P(() => import("./OrdersListPage-DvICveRv.js")), _n = P(() => import("./OrderDetailsPage-DRYifXm9.js")), B = P(() => import("./CreateOrderPage-CXbhJLLz.js")), vn = P(() => import("./TrackingPage-Cg0tYGJe.js")), yn = P(() => import("./LiveTrackingPage-5U68u3oA.js")), bn = P(() => import("./FleetPage-qWRj7WFO.js")), xn = P(() => import("./VehiclesPage-BfBEyXGs.js")), V = P(() => import("./VehicleDetailsPage-BbZlCFPo.js")), Sn = P(() => import("./DriversPage-6Z61dpDI.js")), H = P(() => import("./DriverDetailsPage-CPO0G8Ki.js")), Cn = P(() => import("./InventoryPage-DbR4Z--d.js")), wn = P(() => import("./ProductsPage-CokwDOR2.js")), U = P(() => import("./ProductDetailsPage-CWgcRqGR.js")), Tn = P(() => import("./WarehousesPage-M3NaBT0z.js")), W = P(() => import("./WarehouseDetailsPage-DxNhiaoI.js")), En = P(() => import("./CustomersPage-CwtVspuq.js")), G = P(() => import("./CustomerDetailsPage-CHzg75Q5.js")), Dn = P(() => import("./RoutesPage-hec06HnD.js")), K = P(() => import("./RouteDetailsPage-sRRVY5UM.js")), On = P(() => import("./AnalyticsPage-900jpV2T.js")), kn = P(() => import("./FinancePage-DYadOUzC.js")), An = P(() => import("./MarketplacePage-DMH0HNDH.js")), jn = P(() => import("./ImportExportPage-BhWGfbH3.js")), Mn = P(() => import("./ReportsPage-MU8F9DQC.js")), Nn = P(() => import("./SettingsPage-_6SIlcBX.js")), Pn = P(() => import("./AIAssistantPage-MWJLAMN_.js"));
|
|
121
121
|
function Fn() {
|
|
122
122
|
return /* @__PURE__ */ L(rn, {
|
|
123
123
|
fallback: /* @__PURE__ */ L(mn, {}),
|
|
@@ -20,19 +20,19 @@ function p(e) {
|
|
|
20
20
|
}
|
|
21
21
|
function m(e) {
|
|
22
22
|
return Array.isArray(e) ? e.map((e, t) => {
|
|
23
|
-
let n = e ?? {};
|
|
23
|
+
let n = e ?? {}, r = n.address, i = r && typeof r == "object" ? r : {}, a = typeof r == "string" ? r : void 0;
|
|
24
24
|
return {
|
|
25
25
|
id: String(n.id ?? `stop-${t + 1}`),
|
|
26
26
|
orderId: String(n.orderId ?? ""),
|
|
27
27
|
sequence: Number(n.sequence ?? t + 1),
|
|
28
28
|
address: {
|
|
29
|
-
street: String(n.street ?? ""),
|
|
30
|
-
city: String(n.city ?? ""),
|
|
31
|
-
state: String(n.state ?? ""),
|
|
32
|
-
postalCode: String(n.postalCode ?? ""),
|
|
33
|
-
country: String(n.country ?? ""),
|
|
34
|
-
latitude: Number(n.latitude ?? 0),
|
|
35
|
-
longitude: Number(n.longitude ?? 0)
|
|
29
|
+
street: String(i.street ?? n.street ?? a ?? ""),
|
|
30
|
+
city: String(i.city ?? n.city ?? ""),
|
|
31
|
+
state: String(i.state ?? n.state ?? ""),
|
|
32
|
+
postalCode: String(i.postalCode ?? n.postalCode ?? ""),
|
|
33
|
+
country: String(i.country ?? n.country ?? ""),
|
|
34
|
+
latitude: Number(i.latitude ?? n.latitude ?? n.lat ?? 0),
|
|
35
|
+
longitude: Number(i.longitude ?? n.longitude ?? n.lng ?? 0)
|
|
36
36
|
},
|
|
37
37
|
type: n.type === "pickup" ? "pickup" : "delivery",
|
|
38
38
|
scheduledTime: n.scheduledTime ? new Date(String(n.scheduledTime)) : /* @__PURE__ */ new Date(),
|
package/package.json
CHANGED
|
@@ -183,18 +183,28 @@ function mapWaypoints(waypoints: unknown): RouteStop[] {
|
|
|
183
183
|
if (!Array.isArray(waypoints)) return [];
|
|
184
184
|
return waypoints.map((point, index) => {
|
|
185
185
|
const item = (point ?? {}) as Record<string, unknown>;
|
|
186
|
+
// A waypoint's address round-trips in several shapes: a nested address
|
|
187
|
+
// object (from a RouteStop the form builds), a flat address string (imports
|
|
188
|
+
// / seeds), or flat street/city fields (legacy). Read whichever is present
|
|
189
|
+
// so addresses survive the read and the edit form re-populates its stops.
|
|
190
|
+
const rawAddr = item.address;
|
|
191
|
+
const addrObj = (rawAddr && typeof rawAddr === 'object' ? rawAddr : {}) as Record<
|
|
192
|
+
string,
|
|
193
|
+
unknown
|
|
194
|
+
>;
|
|
195
|
+
const addrStr = typeof rawAddr === 'string' ? rawAddr : undefined;
|
|
186
196
|
return {
|
|
187
197
|
id: String(item.id ?? `stop-${index + 1}`),
|
|
188
198
|
orderId: String(item.orderId ?? ''),
|
|
189
199
|
sequence: Number(item.sequence ?? index + 1),
|
|
190
200
|
address: {
|
|
191
|
-
street: String(item.street ?? ''),
|
|
192
|
-
city: String(item.city ?? ''),
|
|
193
|
-
state: String(item.state ?? ''),
|
|
194
|
-
postalCode: String(item.postalCode ?? ''),
|
|
195
|
-
country: String(item.country ?? ''),
|
|
196
|
-
latitude: Number(item.latitude ?? 0),
|
|
197
|
-
longitude: Number(item.longitude ?? 0),
|
|
201
|
+
street: String(addrObj.street ?? item.street ?? addrStr ?? ''),
|
|
202
|
+
city: String(addrObj.city ?? item.city ?? ''),
|
|
203
|
+
state: String(addrObj.state ?? item.state ?? ''),
|
|
204
|
+
postalCode: String(addrObj.postalCode ?? item.postalCode ?? ''),
|
|
205
|
+
country: String(addrObj.country ?? item.country ?? ''),
|
|
206
|
+
latitude: Number(addrObj.latitude ?? item.latitude ?? item.lat ?? 0),
|
|
207
|
+
longitude: Number(addrObj.longitude ?? item.longitude ?? item.lng ?? 0),
|
|
198
208
|
},
|
|
199
209
|
type: item.type === 'pickup' ? 'pickup' : 'delivery',
|
|
200
210
|
scheduledTime: item.scheduledTime ? new Date(String(item.scheduledTime)) : new Date(),
|