kaafil-react-uikit 0.11.5 → 0.11.7

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.
@@ -1,9 +1,9 @@
1
1
  import { useManagerMe, useConflicts, useNotifications } from '../chunk-U6IE2UYL.js';
2
- import { FORM_FIELD_KIND_SINGLE_BOOLEAN, useChecklists, useManagers, useCloseout, useFiles, useFloat, useForms, useParties, useItinerary, useVendors, useExpenses, useCollections, useManagerToday, usePickups, useRooming, useTravellerProfile, useSeating } from '../chunk-63JQKLMH.js';
2
+ import { FORM_FIELD_KIND_SINGLE_BOOLEAN, useChecklists, useManagers, useCloseout, useFiles, useFloat, useForms, useParties, useItinerary, useVendors, useExpenses, useCollections, useManagerToday, usePickups, useRooming, useTravellerProfile, useSeating } from '../chunk-XGPX7TYV.js';
3
3
  import { useOfflineEngine } from '../chunk-RCWSMWQD.js';
4
4
  import { OfflineFallbackScreen } from '../chunk-LOLQNRIK.js';
5
5
  export { BootErrorScreen, LockedTripScreen, NotFoundScreen, OfflineFallbackScreen, SessionExpiredScreen } from '../chunk-LOLQNRIK.js';
6
- import { createRegistry, useKaafilChrome, useSession, tokenStyle, useOutboxStatus, useKaafilBrand } from '../chunk-YJJ4DI42.js';
6
+ import { createRegistry, useKaafilChrome, useSession, tokenStyle, useOutboxStatus, useOfflineEvent, useKaafilBrand } from '../chunk-YJJ4DI42.js';
7
7
  import { useState, useRef, useEffect, useMemo, useId } from 'react';
8
8
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
9
9
 
@@ -7348,8 +7348,8 @@ function CheckIcon5(props) {
7348
7348
  return /* @__PURE__ */ jsx(
7349
7349
  "svg",
7350
7350
  {
7351
- width: "16",
7352
- height: "16",
7351
+ width: "20",
7352
+ height: "20",
7353
7353
  viewBox: "0 0 24 24",
7354
7354
  fill: "none",
7355
7355
  stroke: "currentColor",
@@ -8026,6 +8026,13 @@ function ReadyManagerPickupsSection({
8026
8026
  cancelled = true;
8027
8027
  };
8028
8028
  }, [ready, selectedStopId, kind]);
8029
+ useOfflineEvent("sync.drained", () => {
8030
+ if (pickups.status !== "ready" || selectedStopId === void 0) {
8031
+ return;
8032
+ }
8033
+ void pickups.manifestByPickup({ kind }).then(setManifest);
8034
+ void pickups.refreshLive();
8035
+ });
8029
8036
  if (pickups.status === "loading") {
8030
8037
  return /* @__PURE__ */ jsxs("div", { className: "kf-manager-pickups__skeleton", style: tokenStyle(style), children: [
8031
8038
  /* @__PURE__ */ jsx("div", { className: "kf-manager-pickups__skeleton-line" }),