kaafil-react-uikit 0.11.5 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/index.css +1 -1
- package/dist/manager/index.cjs +24 -2
- package/dist/manager/index.cjs.map +1 -1
- package/dist/manager/index.js +24 -2
- package/dist/manager/index.js.map +1 -1
- package/package.json +1 -1
package/dist/manager/index.cjs
CHANGED
|
@@ -7349,8 +7349,8 @@ function CheckIcon5(props) {
|
|
|
7349
7349
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7350
7350
|
"svg",
|
|
7351
7351
|
{
|
|
7352
|
-
width: "
|
|
7353
|
-
height: "
|
|
7352
|
+
width: "20",
|
|
7353
|
+
height: "20",
|
|
7354
7354
|
viewBox: "0 0 24 24",
|
|
7355
7355
|
fill: "none",
|
|
7356
7356
|
stroke: "currentColor",
|
|
@@ -8004,6 +8004,7 @@ function ReadyManagerPickupsSection({
|
|
|
8004
8004
|
style
|
|
8005
8005
|
}) {
|
|
8006
8006
|
const pickups = chunkUSKVWPJD_cjs.usePickups(tripRef);
|
|
8007
|
+
const outbox = chunk5ORJRFXZ_cjs.useOutboxStatus();
|
|
8007
8008
|
const StopListUI = components?.StopList ?? StopList;
|
|
8008
8009
|
const BoardingViewUI = components?.BoardingView ?? BoardingView;
|
|
8009
8010
|
const [kind, setKind] = react.useState("PICKUP");
|
|
@@ -8027,6 +8028,27 @@ function ReadyManagerPickupsSection({
|
|
|
8027
8028
|
cancelled = true;
|
|
8028
8029
|
};
|
|
8029
8030
|
}, [ready, selectedStopId, kind]);
|
|
8031
|
+
const drainedFrom = react.useRef(outbox.pending);
|
|
8032
|
+
react.useEffect(() => {
|
|
8033
|
+
const hadWork = drainedFrom.current > 0;
|
|
8034
|
+
drainedFrom.current = outbox.pending;
|
|
8035
|
+
if (!hadWork || outbox.pending > 0) {
|
|
8036
|
+
return;
|
|
8037
|
+
}
|
|
8038
|
+
if (pickups.status !== "ready" || selectedStopId === void 0) {
|
|
8039
|
+
return;
|
|
8040
|
+
}
|
|
8041
|
+
let cancelled = false;
|
|
8042
|
+
void pickups.manifestByPickup({ kind }).then((result) => {
|
|
8043
|
+
if (!cancelled) {
|
|
8044
|
+
setManifest(result);
|
|
8045
|
+
}
|
|
8046
|
+
});
|
|
8047
|
+
void pickups.refreshLive();
|
|
8048
|
+
return () => {
|
|
8049
|
+
cancelled = true;
|
|
8050
|
+
};
|
|
8051
|
+
}, [outbox.pending, selectedStopId, kind]);
|
|
8030
8052
|
if (pickups.status === "loading") {
|
|
8031
8053
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-pickups__skeleton", style: chunk5ORJRFXZ_cjs.tokenStyle(style), children: [
|
|
8032
8054
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-manager-pickups__skeleton-line" }),
|