@flamingo-stack/openframe-frontend-core 0.0.572 → 0.0.573-1932.5262.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/components/meeting-scheduler/index.cjs +1 -1
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/dist/hooks/use-meeting-booking.d.ts +3 -3
- package/dist/hooks/use-meeting-booking.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/hooks/use-meeting-booking.ts +7 -5
|
@@ -20,9 +20,9 @@ import type { BookingConfirmation, MeetingAvailability, MeetingBookingErrorCode
|
|
|
20
20
|
* it keeps rendering (with nothing selectable yet) while only the times column
|
|
21
21
|
* — the part that genuinely has no answer — shows a placeholder.
|
|
22
22
|
*
|
|
23
|
-
* `staleTime` is
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* `staleTime` is ZERO: the host serves availability live (no-store), and a
|
|
24
|
+
* cached month re-shown while paging back is organizer-visible staleness. A
|
|
25
|
+
* slot gone by the time it is clicked costs a booking — always refetch.
|
|
26
26
|
*
|
|
27
27
|
* Booking: a mutation, guarded so a second submit can't start while one is in
|
|
28
28
|
* flight (the transport never retries POST — this is the only double-booking
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-meeting-booking.d.ts","sourceRoot":"","sources":["../../src/hooks/use-meeting-booking.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,mCAAmC,CAAC;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,OAAO,CAAC;IACZ,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"use-meeting-booking.d.ts","sourceRoot":"","sources":["../../src/hooks/use-meeting-booking.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,mCAAmC,CAAC;AAI3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,OAAO,CAAC;IACZ,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAeD;0EAC0E;AAC1E,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,6DAEhG;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C;;IAqGG,iFAAiF;;IAEjF,6EAA6E;;;;sCAhGnC,MAAM;;6BA+EhC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,OAAO,CAAC,aAAa,CAAC;;EA0BnE"}
|
package/package.json
CHANGED
|
@@ -31,9 +31,9 @@ import { MAX_MONTH_OFFSET } from '../utils/hubspot-meetings-convention';
|
|
|
31
31
|
* it keeps rendering (with nothing selectable yet) while only the times column
|
|
32
32
|
* — the part that genuinely has no answer — shows a placeholder.
|
|
33
33
|
*
|
|
34
|
-
* `staleTime` is
|
|
35
|
-
*
|
|
36
|
-
*
|
|
34
|
+
* `staleTime` is ZERO: the host serves availability live (no-store), and a
|
|
35
|
+
* cached month re-shown while paging back is organizer-visible staleness. A
|
|
36
|
+
* slot gone by the time it is clicked costs a booking — always refetch.
|
|
37
37
|
*
|
|
38
38
|
* Booking: a mutation, guarded so a second submit can't start while one is in
|
|
39
39
|
* flight (the transport never retries POST — this is the only double-booking
|
|
@@ -60,8 +60,10 @@ const KNOWN_CODES: MeetingBookingErrorCode[] = [
|
|
|
60
60
|
'MEETING_UNAVAILABLE',
|
|
61
61
|
];
|
|
62
62
|
|
|
63
|
-
/**
|
|
64
|
-
|
|
63
|
+
/** Always refetch — availability is served live (no-store) by the host; a
|
|
64
|
+
* cached month shown while paging back is exactly the staleness the server
|
|
65
|
+
* layers were stripped to kill (2026-08-27). */
|
|
66
|
+
const AVAILABILITY_STALE_MS = 0;
|
|
65
67
|
|
|
66
68
|
/** Query key for one month of one link. Exported so a host can prefetch or
|
|
67
69
|
* invalidate a month it knows changed (e.g. after booking elsewhere). */
|