@flamingo-stack/openframe-frontend-core 0.0.575-snapshot.20260827225444 → 0.0.575
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 +5 -9
- package/dist/components/meeting-scheduler/index.cjs.map +1 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +6 -10
- package/dist/components/meeting-scheduler/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/meeting-scheduler/index.tsx +14 -16
|
@@ -27,7 +27,6 @@ require('../../chunk-GQWM3ECA.cjs');
|
|
|
27
27
|
require('../../chunk-TON3YCCW.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
31
30
|
var _chunk2BFZHTSDcjs = require('../../chunk-2BFZHTSD.cjs');
|
|
32
31
|
require('../../chunk-D55IENZJ.cjs');
|
|
33
32
|
require('../../chunk-7Z64COGD.cjs');
|
|
@@ -1080,7 +1079,6 @@ function HubSpotMeetingScheduler({
|
|
|
1080
1079
|
const [confirmation, setConfirmation] = _react.useState.call(void 0, null);
|
|
1081
1080
|
const [bookingError, setBookingError] = _react.useState.call(void 0, null);
|
|
1082
1081
|
const { honeypotInputProps, getSignals, resetSignals } = _chunk2BFZHTSDcjs.useHumanitySignals.call(void 0, );
|
|
1083
|
-
const { toast } = _chunk2BFZHTSDcjs.useToast.call(void 0, );
|
|
1084
1082
|
const autoAdvanceCount = _react.useRef.call(void 0, 0);
|
|
1085
1083
|
const [machineFor, setMachineFor] = _react.useState.call(void 0, meetingId);
|
|
1086
1084
|
if (machineFor !== meetingId) {
|
|
@@ -1142,15 +1140,9 @@ function HubSpotMeetingScheduler({
|
|
|
1142
1140
|
setStep("slot");
|
|
1143
1141
|
resetSignals();
|
|
1144
1142
|
void refetchAvailability();
|
|
1145
|
-
} else {
|
|
1146
|
-
toast({
|
|
1147
|
-
variant: "error",
|
|
1148
|
-
title: "Booking failed",
|
|
1149
|
-
description: _nullishCoalesce(BOOKING_ERROR_COPY[code], () => ( BOOKING_ERROR_COPY.VALIDATION))
|
|
1150
|
-
});
|
|
1151
1143
|
}
|
|
1152
1144
|
},
|
|
1153
|
-
[book, onBooked, refetchAvailability, resetSignals
|
|
1145
|
+
[book, onBooked, refetchAvailability, resetSignals]
|
|
1154
1146
|
);
|
|
1155
1147
|
const escapeHatch = fallbackUrl ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS6LZN66Dcjs.Button, { variant: "outline", size: "small-legacy", href: fallbackUrl, openInNewTab: true, children: "Open in HubSpot" }) : null;
|
|
1156
1148
|
if (isLoadingAvailability && !availability) {
|
|
@@ -1209,6 +1201,10 @@ function HubSpotMeetingScheduler({
|
|
|
1209
1201
|
"\xB7 ",
|
|
1210
1202
|
_chunkSPAAKHQAcjs.formatDurationCompact.call(void 0, durationMs / 1e3)
|
|
1211
1203
|
] }),
|
|
1204
|
+
bookingError && bookingError !== "SLOT_TAKEN" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkQDOBY3TPcjs.Alert, { variant: "error", className: "flex flex-col items-start gap-[var(--spacing-system-xs)]", children: [
|
|
1205
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQDOBY3TPcjs.AlertDescription, { children: _nullishCoalesce(BOOKING_ERROR_COPY[bookingError], () => ( BOOKING_ERROR_COPY.VALIDATION)) }),
|
|
1206
|
+
escapeHatch
|
|
1207
|
+
] }),
|
|
1212
1208
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1213
1209
|
BookingForm,
|
|
1214
1210
|
{
|