@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.
@@ -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 deliberately short: HubSpot slots go stale in about a minute,
24
- * and a slot that is gone by the time it is clicked costs a booking. Fresh
25
- * enough to trust, cached enough not to blink.
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;AAaD;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"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.572",
3
+ "version": "0.0.573-1932.5262.1",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -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 deliberately short: HubSpot slots go stale in about a minute,
35
- * and a slot that is gone by the time it is clicked costs a booking. Fresh
36
- * enough to trust, cached enough not to blink.
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
- /** ~half HubSpot's own slot volatility window — see the docblock. */
64
- const AVAILABILITY_STALE_MS = 30_000;
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). */