kaafil-react-uikit 0.4.2 → 0.5.0
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 +16 -0
- package/dist/admin/index.cjs +36 -36
- package/dist/admin/index.js +1 -1
- package/dist/{chunk-QMUIZHJO.js → chunk-FEJL6GKJ.js} +5 -6
- package/dist/chunk-FEJL6GKJ.js.map +1 -0
- package/dist/{chunk-V6UQ6GIM.cjs → chunk-IBVCH6GC.cjs} +5 -6
- package/dist/chunk-IBVCH6GC.cjs.map +1 -0
- package/dist/core/index.cjs +31 -31
- package/dist/core/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-QMUIZHJO.js.map +0 -1
- package/dist/chunk-V6UQ6GIM.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,22 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
and this package uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
While on `0.x` a minor bump may carry a breaking change; the entry will say so.
|
|
8
8
|
|
|
9
|
+
## [0.5.0] — 2026-09-14
|
|
10
|
+
|
|
11
|
+
Requires `kaafil-js@^0.5.0` and an engine carrying the matching wire change.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **"Add traveller" failed with "Couldn't add them. Nothing changed — try
|
|
16
|
+
again", and never made a request at all.** `addTraveller` sent
|
|
17
|
+
`useServerTime().now()` as the manifest entry's `sourceUpdatedAt`. That hook
|
|
18
|
+
throws until a `snapshot.updated` event carrying `serverTime` has landed,
|
|
19
|
+
and that event comes from the offline lane, which the desk's direct reads
|
|
20
|
+
never drive — so on the desk it threw before the request was built. The
|
|
21
|
+
field is now optional on the wire and omitted here; the server stamps the
|
|
22
|
+
write, exactly as `assignManager` already did. This is the add-traveller
|
|
23
|
+
failure from the QA report, whose real cause was a clock, not the write.
|
|
24
|
+
|
|
9
25
|
## [0.4.2] — 2026-09-14
|
|
10
26
|
|
|
11
27
|
All four found by driving the real UI with a browser rather than reading the
|
package/dist/admin/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIBVCH6GC_cjs = require('../chunk-IBVCH6GC.cjs');
|
|
4
4
|
var chunkDI77H7ED_cjs = require('../chunk-DI77H7ED.cjs');
|
|
5
5
|
require('../chunk-LO3GQFQ6.cjs');
|
|
6
6
|
var chunkQD4Z5DRT_cjs = require('../chunk-QD4Z5DRT.cjs');
|
|
@@ -1006,7 +1006,7 @@ function AgencySettingsScreen({
|
|
|
1006
1006
|
style
|
|
1007
1007
|
}) {
|
|
1008
1008
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
1009
|
-
const { document: document2, loaded, lastFetchFailed, refresh, patchSettings } =
|
|
1009
|
+
const { document: document2, loaded, lastFetchFailed, refresh, patchSettings } = chunkIBVCH6GC_cjs.useAgencySettings();
|
|
1010
1010
|
const [selectedSectionId, setSelectedSectionId] = react.useState(AGENCY_SETTINGS_SECTIONS[0]?.id);
|
|
1011
1011
|
const [savingSectionId, setSavingSectionId] = react.useState(void 0);
|
|
1012
1012
|
const [sectionError, setSectionError] = react.useState(void 0);
|
|
@@ -1704,7 +1704,7 @@ function ChecklistTemplateEditor({
|
|
|
1704
1704
|
style
|
|
1705
1705
|
}) {
|
|
1706
1706
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
1707
|
-
const { templates, loaded, lastFetchFailed, refresh, patchTemplate, publishTemplate } =
|
|
1707
|
+
const { templates, loaded, lastFetchFailed, refresh, patchTemplate, publishTemplate } = chunkIBVCH6GC_cjs.useAgencyChecklistTemplates();
|
|
1708
1708
|
const template = templates.find((candidate) => candidate.id === templateId);
|
|
1709
1709
|
const [title, setTitle] = react.useState("");
|
|
1710
1710
|
const [items, setItems] = react.useState([]);
|
|
@@ -2304,7 +2304,7 @@ function ChecklistTemplateLibrary({
|
|
|
2304
2304
|
style
|
|
2305
2305
|
}) {
|
|
2306
2306
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
2307
|
-
const { templates, loaded, lastFetchFailed, refresh, createTemplate, removeTemplate } =
|
|
2307
|
+
const { templates, loaded, lastFetchFailed, refresh, createTemplate, removeTemplate } = chunkIBVCH6GC_cjs.useAgencyChecklistTemplates();
|
|
2308
2308
|
const isControlled = controlledCreating !== void 0 && onCreatingChange !== void 0;
|
|
2309
2309
|
const [internalCreating, setInternalCreating] = react.useState(false);
|
|
2310
2310
|
const creating = isControlled ? controlledCreating : internalCreating;
|
|
@@ -4209,7 +4209,7 @@ function FormBuilder({ formId, onBack, components, style }) {
|
|
|
4209
4209
|
deleteField,
|
|
4210
4210
|
reorderForm,
|
|
4211
4211
|
listBindings
|
|
4212
|
-
} =
|
|
4212
|
+
} = chunkIBVCH6GC_cjs.useAgencyForms();
|
|
4213
4213
|
const [form, setForm] = react.useState(void 0);
|
|
4214
4214
|
const [loadFailed, setLoadFailed] = react.useState(false);
|
|
4215
4215
|
const [bindings, setBindings] = react.useState([]);
|
|
@@ -4917,7 +4917,7 @@ function FormsLibrary({
|
|
|
4917
4917
|
style
|
|
4918
4918
|
}) {
|
|
4919
4919
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
4920
|
-
const { forms, loaded, lastFetchFailed, refresh, createForm } =
|
|
4920
|
+
const { forms, loaded, lastFetchFailed, refresh, createForm } = chunkIBVCH6GC_cjs.useAgencyForms();
|
|
4921
4921
|
const isControlled = controlledCreating !== void 0 && onCreatingChange !== void 0;
|
|
4922
4922
|
const [internalCreating, setInternalCreating] = react.useState(false);
|
|
4923
4923
|
const creating = isControlled ? controlledCreating : internalCreating;
|
|
@@ -5295,7 +5295,7 @@ function ManagerResultsListBody({
|
|
|
5295
5295
|
onRetry
|
|
5296
5296
|
}) {
|
|
5297
5297
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
5298
|
-
const directories =
|
|
5298
|
+
const directories = chunkIBVCH6GC_cjs.useDirectories();
|
|
5299
5299
|
const [errorMessage, setErrorMessage] = react.useState(void 0);
|
|
5300
5300
|
const [hasSettled, setHasSettled] = react.useState(false);
|
|
5301
5301
|
const ManagerRow = ManagerResultRowComponent ?? ManagerResultRow;
|
|
@@ -5314,7 +5314,7 @@ function ManagerResultsListBody({
|
|
|
5314
5314
|
},
|
|
5315
5315
|
[directories, filters]
|
|
5316
5316
|
);
|
|
5317
|
-
const { rows, hasNext, hasPrev, loadNext, loadPrev } =
|
|
5317
|
+
const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIBVCH6GC_cjs.usePaginatedList(fetch);
|
|
5318
5318
|
const isLoading = !hasSettled;
|
|
5319
5319
|
const reportedCount = isLoading || errorMessage !== void 0 ? void 0 : rows.length;
|
|
5320
5320
|
react.useEffect(() => {
|
|
@@ -5684,7 +5684,7 @@ function ManagerProfileSection({
|
|
|
5684
5684
|
style
|
|
5685
5685
|
}) {
|
|
5686
5686
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
5687
|
-
const { read, readFailed, refresh } =
|
|
5687
|
+
const { read, readFailed, refresh } = chunkIBVCH6GC_cjs.useAgencyManagerProfile(managerRef);
|
|
5688
5688
|
const Hero = components?.Hero ?? ManagerProfileHero;
|
|
5689
5689
|
const AssignmentsCard = components?.AssignmentsCard ?? ManagerAssignmentsCard;
|
|
5690
5690
|
if (readFailed) {
|
|
@@ -5756,7 +5756,7 @@ function TemplateAuthoringFlow({
|
|
|
5756
5756
|
}
|
|
5757
5757
|
function AddTravellerModal({ onClose, onCreated }) {
|
|
5758
5758
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
5759
|
-
const directories =
|
|
5759
|
+
const directories = chunkIBVCH6GC_cjs.useDirectories();
|
|
5760
5760
|
const titleId = react.useId();
|
|
5761
5761
|
const [fullName, setFullName] = react.useState("");
|
|
5762
5762
|
const [phone, setPhone] = react.useState("");
|
|
@@ -6131,7 +6131,7 @@ function TravellerResultsListBody({
|
|
|
6131
6131
|
onRetry
|
|
6132
6132
|
}) {
|
|
6133
6133
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
6134
|
-
const directories =
|
|
6134
|
+
const directories = chunkIBVCH6GC_cjs.useDirectories();
|
|
6135
6135
|
const [errorMessage, setErrorMessage] = react.useState(void 0);
|
|
6136
6136
|
const [hasSettled, setHasSettled] = react.useState(false);
|
|
6137
6137
|
const fetch = react.useCallback(
|
|
@@ -6150,7 +6150,7 @@ function TravellerResultsListBody({
|
|
|
6150
6150
|
},
|
|
6151
6151
|
[directories, query]
|
|
6152
6152
|
);
|
|
6153
|
-
const { rows, hasNext, hasPrev, loadNext, loadPrev } =
|
|
6153
|
+
const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIBVCH6GC_cjs.usePaginatedList(fetch);
|
|
6154
6154
|
const isLoading = !hasSettled;
|
|
6155
6155
|
const reportedCount = isLoading || errorMessage !== void 0 ? void 0 : rows.length;
|
|
6156
6156
|
react.useEffect(() => {
|
|
@@ -7421,7 +7421,7 @@ function TriggerTemplateEditor({
|
|
|
7421
7421
|
style
|
|
7422
7422
|
}) {
|
|
7423
7423
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
7424
|
-
const { triggers, loaded, lastFetchFailed, refresh, patchTrigger } =
|
|
7424
|
+
const { triggers, loaded, lastFetchFailed, refresh, patchTrigger } = chunkIBVCH6GC_cjs.useAgencyJourneyTriggers();
|
|
7425
7425
|
const [savingId, setSavingId] = react.useState(void 0);
|
|
7426
7426
|
const [selectedId, setSelectedId] = react.useState(void 0);
|
|
7427
7427
|
const filtered = tripModeFilter === void 0 ? triggers : triggers.filter((trigger) => trigger.tripMode === tripModeFilter);
|
|
@@ -7665,7 +7665,7 @@ function TripBookingsSection({
|
|
|
7665
7665
|
style
|
|
7666
7666
|
}) {
|
|
7667
7667
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
7668
|
-
const bookings =
|
|
7668
|
+
const bookings = chunkIBVCH6GC_cjs.useBookings(tripRef);
|
|
7669
7669
|
const ready = bookings.status === "ready" ? bookings : null;
|
|
7670
7670
|
const groups = react.useMemo(
|
|
7671
7671
|
() => ready === null ? [] : groupByKind(liveBookings(ready.bookings)),
|
|
@@ -9154,7 +9154,7 @@ function TripResultsListBody({
|
|
|
9154
9154
|
onRetry
|
|
9155
9155
|
}) {
|
|
9156
9156
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
9157
|
-
const { makeTripsFetch } =
|
|
9157
|
+
const { makeTripsFetch } = chunkIBVCH6GC_cjs.useAgencyTrips();
|
|
9158
9158
|
const [errorCode, setErrorCode] = react.useState(void 0);
|
|
9159
9159
|
const [hasSettled, setHasSettled] = react.useState(false);
|
|
9160
9160
|
const Row = TripRowComponent ?? TripRow;
|
|
@@ -9173,7 +9173,7 @@ function TripResultsListBody({
|
|
|
9173
9173
|
},
|
|
9174
9174
|
[makeTripsFetch, filters]
|
|
9175
9175
|
);
|
|
9176
|
-
const { rows, hasNext, hasPrev, loadNext, loadPrev } =
|
|
9176
|
+
const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIBVCH6GC_cjs.usePaginatedList(fetch);
|
|
9177
9177
|
const isLoading = !hasSettled;
|
|
9178
9178
|
const reportedCount = isLoading || errorCode !== void 0 ? void 0 : rows.length;
|
|
9179
9179
|
react.useEffect(() => {
|
|
@@ -10042,9 +10042,9 @@ function TripDocumentsSection({ tripRef, style }) {
|
|
|
10042
10042
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
10043
10043
|
const files = chunkDI77H7ED_cjs.useFiles({ tripRef });
|
|
10044
10044
|
const expenses = chunkDI77H7ED_cjs.useExpenses(tripRef);
|
|
10045
|
-
const bookings =
|
|
10046
|
-
const { listTripManifest } =
|
|
10047
|
-
const { statuses, loaded: capabilityLoaded } =
|
|
10045
|
+
const bookings = chunkIBVCH6GC_cjs.useBookings(tripRef);
|
|
10046
|
+
const { listTripManifest } = chunkIBVCH6GC_cjs.useDirectories();
|
|
10047
|
+
const { statuses, loaded: capabilityLoaded } = chunkIBVCH6GC_cjs.useCapabilityStatuses(tripRef);
|
|
10048
10048
|
const capability = statuses.get("files");
|
|
10049
10049
|
const [state, setState] = react.useState({ kind: "loading" });
|
|
10050
10050
|
const [purpose, setPurpose] = react.useState(null);
|
|
@@ -12454,7 +12454,7 @@ function TripFormsSection({
|
|
|
12454
12454
|
}) {
|
|
12455
12455
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
12456
12456
|
const forms = chunkDI77H7ED_cjs.useForms(tripRef);
|
|
12457
|
-
const { listTripManifest } =
|
|
12457
|
+
const { listTripManifest } = chunkIBVCH6GC_cjs.useDirectories();
|
|
12458
12458
|
const [openFormId, setOpenFormId] = react.useState(null);
|
|
12459
12459
|
const [completion, setCompletion] = react.useState(void 0);
|
|
12460
12460
|
const [manifest, setManifest] = react.useState(void 0);
|
|
@@ -14211,7 +14211,7 @@ function AddTravellerDialog({
|
|
|
14211
14211
|
}) {
|
|
14212
14212
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
14213
14213
|
const titleId = react.useId();
|
|
14214
|
-
const { makeTravellersFetch, addTraveller, createAgencyTraveller } =
|
|
14214
|
+
const { makeTravellersFetch, addTraveller, createAgencyTraveller } = chunkIBVCH6GC_cjs.useDirectories();
|
|
14215
14215
|
const [mode, setMode] = react.useState("search");
|
|
14216
14216
|
const [term, setTerm] = react.useState("");
|
|
14217
14217
|
const [debounced, setDebounced] = react.useState("");
|
|
@@ -14378,7 +14378,7 @@ function DirectoryResults({
|
|
|
14378
14378
|
onPick
|
|
14379
14379
|
}) {
|
|
14380
14380
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
14381
|
-
const { rows, hasNext, loadNext, settled, error } =
|
|
14381
|
+
const { rows, hasNext, loadNext, settled, error } = chunkIBVCH6GC_cjs.usePaginatedList(fetch);
|
|
14382
14382
|
if (!settled) {
|
|
14383
14383
|
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-manifest-section__dialog-note", "aria-live": "polite", children: t("chrome.tripManifest.addSearching") });
|
|
14384
14384
|
}
|
|
@@ -14463,7 +14463,7 @@ function EditPartyDialog({
|
|
|
14463
14463
|
}) {
|
|
14464
14464
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
14465
14465
|
const titleId = react.useId();
|
|
14466
|
-
const { patchParty, deleteParty } =
|
|
14466
|
+
const { patchParty, deleteParty } = chunkIBVCH6GC_cjs.useDirectories();
|
|
14467
14467
|
const party = group.party;
|
|
14468
14468
|
const [kind, setKind] = react.useState(
|
|
14469
14469
|
party?.kind ?? "OTHER"
|
|
@@ -15158,7 +15158,7 @@ function ManifestResultsBody({
|
|
|
15158
15158
|
onRetry
|
|
15159
15159
|
}) {
|
|
15160
15160
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
15161
|
-
const { makeManifestFetch, facets, groupedPageSize } =
|
|
15161
|
+
const { makeManifestFetch, facets, groupedPageSize } = chunkIBVCH6GC_cjs.useAgencyTripManifest(tripRef);
|
|
15162
15162
|
const [errorCode, setErrorCode] = react.useState(void 0);
|
|
15163
15163
|
const [hasSettled, setHasSettled] = react.useState(false);
|
|
15164
15164
|
const [serverTime, setServerTime] = react.useState(void 0);
|
|
@@ -15183,7 +15183,7 @@ function ManifestResultsBody({
|
|
|
15183
15183
|
},
|
|
15184
15184
|
[makeManifestFetch, filters, grouped, groupedPageSize]
|
|
15185
15185
|
);
|
|
15186
|
-
const { rows, hasNext, hasPrev, loadNext, loadPrev } =
|
|
15186
|
+
const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIBVCH6GC_cjs.usePaginatedList(fetch, {
|
|
15187
15187
|
accumulate: grouped
|
|
15188
15188
|
});
|
|
15189
15189
|
react.useEffect(() => {
|
|
@@ -15372,7 +15372,7 @@ function RemoveTravellerDialog({
|
|
|
15372
15372
|
onRemoved
|
|
15373
15373
|
}) {
|
|
15374
15374
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
15375
|
-
const { removeFromManifest } =
|
|
15375
|
+
const { removeFromManifest } = chunkIBVCH6GC_cjs.useDirectories();
|
|
15376
15376
|
const titleId = react.useId();
|
|
15377
15377
|
const [pending, setPending] = react.useState(false);
|
|
15378
15378
|
const [errorCode, setErrorCode] = react.useState(void 0);
|
|
@@ -15465,10 +15465,10 @@ function ShareLinkDialog({
|
|
|
15465
15465
|
}) {
|
|
15466
15466
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
15467
15467
|
const titleId = react.useId();
|
|
15468
|
-
const buildShareUrl =
|
|
15468
|
+
const buildShareUrl = chunkIBVCH6GC_cjs.useBuildShareUrl();
|
|
15469
15469
|
const isFamily = travellerRef === null;
|
|
15470
|
-
const offerable =
|
|
15471
|
-
const { links, readFailed, mint, revoke, regenerate, reveal } =
|
|
15470
|
+
const offerable = chunkIBVCH6GC_cjs.familySafeSections(isFamily);
|
|
15471
|
+
const { links, readFailed, mint, revoke, regenerate, reveal } = chunkIBVCH6GC_cjs.useShareLinks(
|
|
15472
15472
|
tripRef,
|
|
15473
15473
|
travellerRef
|
|
15474
15474
|
);
|
|
@@ -15872,8 +15872,8 @@ function TravellerDetailDialog({
|
|
|
15872
15872
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
15873
15873
|
const titleId = react.useId();
|
|
15874
15874
|
const { read, readFailed, refresh } = chunkDI77H7ED_cjs.useTravellerProfile(tripRef, travellerRef);
|
|
15875
|
-
const forms =
|
|
15876
|
-
const { addTravellerNote } =
|
|
15875
|
+
const forms = chunkIBVCH6GC_cjs.useTravellerFormResponses(tripRef, travellerRef);
|
|
15876
|
+
const { addTravellerNote } = chunkIBVCH6GC_cjs.useDirectories();
|
|
15877
15877
|
const [noteDraft, setNoteDraft] = react.useState("");
|
|
15878
15878
|
const [notePending, setNotePending] = react.useState(false);
|
|
15879
15879
|
const [noteFailed, setNoteFailed] = react.useState(false);
|
|
@@ -22206,7 +22206,7 @@ function WarningIcon13(props) {
|
|
|
22206
22206
|
|
|
22207
22207
|
// src/admin/composite/office/TripWorkspace/internal/panels/deriveCloseout.ts
|
|
22208
22208
|
function tabForBlocker(row) {
|
|
22209
|
-
return
|
|
22209
|
+
return chunkIBVCH6GC_cjs.resolveBlockerDeepLink({ actionKey: row.actionKey })?.tab;
|
|
22210
22210
|
}
|
|
22211
22211
|
function orderedBlockers(rows) {
|
|
22212
22212
|
return [...rows].sort((a, b) => {
|
|
@@ -22587,7 +22587,7 @@ var ROLE_LABEL_KEY = {
|
|
|
22587
22587
|
};
|
|
22588
22588
|
function OverviewManagersCard({ trip, onChanged }) {
|
|
22589
22589
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
22590
|
-
const { promoteManager, assignManager, unassignManager, makeManagersFetch } =
|
|
22590
|
+
const { promoteManager, assignManager, unassignManager, makeManagersFetch } = chunkIBVCH6GC_cjs.useDirectories();
|
|
22591
22591
|
const [pendingId, setPendingId] = react.useState(void 0);
|
|
22592
22592
|
const [errorCode, setErrorCode] = react.useState(void 0);
|
|
22593
22593
|
const [assignOpen, setAssignOpen] = react.useState(false);
|
|
@@ -23185,7 +23185,7 @@ function TripWorkspace({
|
|
|
23185
23185
|
style
|
|
23186
23186
|
}) {
|
|
23187
23187
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
23188
|
-
const { read, readFailed, refresh } =
|
|
23188
|
+
const { read, readFailed, refresh } = chunkIBVCH6GC_cjs.useAgencyTrip(tripRef);
|
|
23189
23189
|
if (readFailed) {
|
|
23190
23190
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__status-block", role: "alert", children: [
|
|
23191
23191
|
/* @__PURE__ */ jsxRuntime.jsx(WarningIcon13, { className: "kf-trip-workspace__status-icon" }),
|
|
@@ -23231,7 +23231,7 @@ function TripWorkspaceBody({
|
|
|
23231
23231
|
components,
|
|
23232
23232
|
style
|
|
23233
23233
|
}) {
|
|
23234
|
-
const { statuses, loaded } =
|
|
23234
|
+
const { statuses, loaded } = chunkIBVCH6GC_cjs.useCapabilityStatuses(tripRef);
|
|
23235
23235
|
const Head = components?.TripWorkspaceHead ?? TripWorkspaceHead;
|
|
23236
23236
|
const tabs = react.useMemo(() => resolveTripTabs(trip.eventType, statuses), [trip.eventType, statuses]);
|
|
23237
23237
|
const [requestedTab, setRequestedTab] = react.useState(initialTab ?? "overview");
|
|
@@ -23642,7 +23642,7 @@ function ReadyKaafilAgencyWorkspace(props) {
|
|
|
23642
23642
|
style
|
|
23643
23643
|
} = props;
|
|
23644
23644
|
const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
|
|
23645
|
-
const agencyAdminMe =
|
|
23645
|
+
const agencyAdminMe = chunkIBVCH6GC_cjs.useAgencyAdminMe();
|
|
23646
23646
|
const [internalPane, setInternalPane] = react.useState(
|
|
23647
23647
|
initialPane ?? "trips"
|
|
23648
23648
|
);
|
package/dist/admin/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useAgencySettings, useAgencyChecklistTemplates, useAgencyForms, useAgencyManagerProfile, useAgencyJourneyTriggers, useBookings, useDirectories, useCapabilityStatuses, useAgencyTrip, useAgencyAdminMe, useTravellerFormResponses, useBuildShareUrl, familySafeSections, useShareLinks, usePaginatedList, useAgencyTrips, useAgencyTripManifest, resolveBlockerDeepLink } from '../chunk-
|
|
1
|
+
import { useAgencySettings, useAgencyChecklistTemplates, useAgencyForms, useAgencyManagerProfile, useAgencyJourneyTriggers, useBookings, useDirectories, useCapabilityStatuses, useAgencyTrip, useAgencyAdminMe, useTravellerFormResponses, useBuildShareUrl, familySafeSections, useShareLinks, usePaginatedList, useAgencyTrips, useAgencyTripManifest, resolveBlockerDeepLink } from '../chunk-FEJL6GKJ.js';
|
|
2
2
|
import { useChecklists, useFiles, useExpenses, useVendors, useFloat, useManagers, useForms, useItinerary, useCollections, useParties, usePickups, useRooming, useSeating, classifyError, useTravellerProfile, roomingHeuristicSeverity, useManagerToday, useCloseout, parseRoomingTone, TONE_FAMILIES, SHADES_PER_FAMILY, FALLBACK_GLYPH } from '../chunk-3E2FN5JJ.js';
|
|
3
3
|
import '../chunk-ITGVRN2S.js';
|
|
4
4
|
export { BootErrorScreen, LockedTripScreen, NotFoundScreen, OfflineFallbackScreen, PlanLockedScreen, SessionExpiredScreen } from '../chunk-762SWUEG.js';
|
|
@@ -470,7 +470,7 @@ var DirectoriesWriteError = class _DirectoriesWriteError extends Error {
|
|
|
470
470
|
};
|
|
471
471
|
function useDirectories(agencyRef) {
|
|
472
472
|
const client = useKaafilClient();
|
|
473
|
-
|
|
473
|
+
useServerTime();
|
|
474
474
|
const makeManagersFetch = useCallback(
|
|
475
475
|
(filters) => async (cursor) => {
|
|
476
476
|
const page = await client.agencies.managers.listPage({
|
|
@@ -559,8 +559,7 @@ function useDirectories(agencyRef) {
|
|
|
559
559
|
{
|
|
560
560
|
externalTravellerId: input.externalTravellerId,
|
|
561
561
|
fullName: input.fullName,
|
|
562
|
-
phone: input.phone
|
|
563
|
-
sourceUpdatedAt: serverTime.now()
|
|
562
|
+
phone: input.phone
|
|
564
563
|
}
|
|
565
564
|
]
|
|
566
565
|
});
|
|
@@ -584,7 +583,7 @@ function useDirectories(agencyRef) {
|
|
|
584
583
|
throw new DirectoriesWriteError(classifyError(error));
|
|
585
584
|
}
|
|
586
585
|
},
|
|
587
|
-
[client
|
|
586
|
+
[client]
|
|
588
587
|
);
|
|
589
588
|
const createAgencyTraveller = useCallback(
|
|
590
589
|
async (input) => {
|
|
@@ -1465,5 +1464,5 @@ var TRIP_TAB_KEY_SET = {
|
|
|
1465
1464
|
};
|
|
1466
1465
|
|
|
1467
1466
|
export { AppShell, CLOSEOUT_ACTION_TAB, ConfigShell, ErrorShell, KaafilUIKitProvider, OfflineShell, SessionShell, TelemetryShell, ThemeShell, familySafeSections, fromSearchParams, isTripTabKey, resolveBlockerDeepLink, toSearchParams, useAgencyAdminMe, useAgencyChecklistTemplates, useAgencyForms, useAgencyJourneyTriggers, useAgencyManagerProfile, useAgencySettings, useAgencyTrip, useAgencyTripManifest, useAgencyTrips, useBookings, useBuildShareUrl, useCapabilityStatuses, useDefaultCapabilityViews, useDirectories, usePaginatedList, useShareLinks, useTravellerFormResponses };
|
|
1468
|
-
//# sourceMappingURL=chunk-
|
|
1469
|
-
//# sourceMappingURL=chunk-
|
|
1467
|
+
//# sourceMappingURL=chunk-FEJL6GKJ.js.map
|
|
1468
|
+
//# sourceMappingURL=chunk-FEJL6GKJ.js.map
|