@uptrademedia/site-kit 1.0.30 → 1.0.32
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/{chunk-WNCM4GNY.js → chunk-7BEMFSF6.js} +41 -23
- package/dist/chunk-7BEMFSF6.js.map +1 -0
- package/dist/{chunk-L474IOHD.mjs → chunk-A37Z47FZ.mjs} +41 -23
- package/dist/chunk-A37Z47FZ.mjs.map +1 -0
- package/dist/{chunk-WPSRS352.mjs → chunk-BQOFRBGZ.mjs} +3 -3
- package/dist/chunk-BQOFRBGZ.mjs.map +1 -0
- package/dist/{chunk-HCFPU7TU.js → chunk-G7RSD56P.js} +3 -3
- package/dist/chunk-G7RSD56P.js.map +1 -0
- package/dist/{chunk-MDOHOEME.mjs → chunk-GM2ZDV2B.mjs} +63 -45
- package/dist/chunk-GM2ZDV2B.mjs.map +1 -0
- package/dist/{chunk-6J26EHDM.js → chunk-H5PVDCCM.js} +63 -45
- package/dist/chunk-H5PVDCCM.js.map +1 -0
- package/dist/{chunk-XFRPT5ZX.mjs → chunk-X66VOCWP.mjs} +26 -53
- package/dist/chunk-X66VOCWP.mjs.map +1 -0
- package/dist/{chunk-5R4R3WDP.js → chunk-Y4BW6XYJ.js} +26 -53
- package/dist/chunk-Y4BW6XYJ.js.map +1 -0
- package/dist/commerce/index.js +39 -39
- package/dist/commerce/index.mjs +1 -1
- package/dist/engage/index.d.mts +2 -2
- package/dist/engage/index.d.ts +2 -2
- package/dist/engage/index.js +4 -4
- package/dist/engage/index.mjs +1 -1
- package/dist/forms/index.d.mts +1 -1
- package/dist/forms/index.d.ts +1 -1
- package/dist/forms/index.js +6 -4
- package/dist/forms/index.js.map +1 -1
- package/dist/forms/index.mjs +6 -4
- package/dist/forms/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +51 -39
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -12
- package/dist/index.mjs.map +1 -1
- package/dist/seo/index.d.mts +6 -18
- package/dist/seo/index.d.ts +6 -18
- package/dist/seo/index.js +2 -2
- package/dist/seo/index.mjs +1 -1
- package/dist/seo/register-sitemap-cli.js +112 -3
- package/dist/seo/register-sitemap-cli.js.map +1 -1
- package/dist/seo/register-sitemap-cli.mjs +106 -2
- package/dist/seo/register-sitemap-cli.mjs.map +1 -1
- package/dist/setup/client.js +3 -3
- package/dist/setup/client.mjs +1 -1
- package/dist/setup/index.js +3 -3
- package/dist/setup/index.mjs +1 -1
- package/dist/{types-B77UG-p-.d.mts → types-CYPI3-8j.d.mts} +2 -0
- package/dist/{types-B77UG-p-.d.ts → types-CYPI3-8j.d.ts} +2 -0
- package/dist/{types-CWKw0giL.d.ts → types-C_pfGZhI.d.mts} +1 -2
- package/dist/{types-CWKw0giL.d.mts → types-C_pfGZhI.d.ts} +1 -2
- package/package.json +1 -1
- package/dist/chunk-5R4R3WDP.js.map +0 -1
- package/dist/chunk-6J26EHDM.js.map +0 -1
- package/dist/chunk-HCFPU7TU.js.map +0 -1
- package/dist/chunk-L474IOHD.mjs.map +0 -1
- package/dist/chunk-MDOHOEME.mjs.map +0 -1
- package/dist/chunk-WNCM4GNY.js.map +0 -1
- package/dist/chunk-WPSRS352.mjs.map +0 -1
- package/dist/chunk-XFRPT5ZX.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2,12 +2,12 @@ export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fet
|
|
|
2
2
|
import './chunk-M5VNAX5I.mjs';
|
|
3
3
|
export { TestimonialSection, fetchReviewStats, fetchReviews } from './chunk-QD66FTXZ.mjs';
|
|
4
4
|
export { AEOBlock, AEOCitedContent, AEOClaim, AEOComparison, AEODefinition, AEOEntity, AEOProvenanceList, AEOStep, AEOSteps, AEOSummary, DEFAULT_SPEAKABLE_SELECTORS, SpeakableSchema, createLLMsFullTxtHandler, createLLMsTxtHandler, createSpeakableSchema, generateLLMsFullTxt, generateLLMsTxt, getBusinessInfo, getFAQItems as getLLMFAQItems, getServices as getLLMServices, getLLMsData, getPageSummaries, getSpeakableSelectorsForPage } from './chunk-CG53ASWX.mjs';
|
|
5
|
-
export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, OfferingCard, OfferingList, ProductEmbed, RegistrationForm, UpcomingEvents, createCheckoutSession, fetchNextEvent, fetchOffering, fetchOfferings, fetchProducts, fetchServices, fetchUpcomingEvents, formatDate, formatDateTime, formatPrice, getOfferingUrl, registerForEvent, useEventModal } from './chunk-
|
|
6
|
-
export { SetupWizard } from './chunk-
|
|
5
|
+
export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, OfferingCard, OfferingList, ProductEmbed, RegistrationForm, UpcomingEvents, createCheckoutSession, fetchNextEvent, fetchOffering, fetchOfferings, fetchProducts, fetchServices, fetchUpcomingEvents, formatDate, formatDateTime, formatPrice, getOfferingUrl, registerForEvent, useEventModal } from './chunk-A37Z47FZ.mjs';
|
|
6
|
+
export { SetupWizard } from './chunk-X66VOCWP.mjs';
|
|
7
7
|
export { clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './chunk-ASVFZY6X.mjs';
|
|
8
|
-
import { SitemapSync } from './chunk-
|
|
8
|
+
import { SitemapSync } from './chunk-BQOFRBGZ.mjs';
|
|
9
9
|
import { AnalyticsProvider } from './chunk-OW2C3ATV.mjs';
|
|
10
|
-
import { EngageWidget } from './chunk-
|
|
10
|
+
import { EngageWidget } from './chunk-GM2ZDV2B.mjs';
|
|
11
11
|
import { configureFormsApi } from './chunk-SMUFNQLM.mjs';
|
|
12
12
|
import './chunk-4XPGGLVP.mjs';
|
|
13
13
|
import React3, { createContext, useContext, useState, useRef, useCallback, useEffect, useMemo, Suspense } from 'react';
|
|
@@ -1864,11 +1864,20 @@ async function fetchAvailability(typeSlug, date, orgSlug, apiUrl, apiKey, timezo
|
|
|
1864
1864
|
const response = await fetch(endpoint, { headers: buildHeaders(key) });
|
|
1865
1865
|
if (!response.ok) {
|
|
1866
1866
|
const msg = await response.json().catch(() => ({ message: response.statusText }));
|
|
1867
|
-
|
|
1868
|
-
|
|
1867
|
+
let detail = msg && typeof msg.message === "string" ? String(msg.message).trim() : (response.statusText || "").trim();
|
|
1868
|
+
if (detail === String(response.status) || /^\d+$/.test(detail)) detail = "";
|
|
1869
|
+
const rest = detail ? `${response.status} ${detail}` : String(response.status);
|
|
1870
|
+
const fallback = response.status === 404 && !detail ? "No times available. In the Portal, check Sync \u2192 Booking Types (Schedule a Tour) has a host assigned and the project API key is set for this site." : null;
|
|
1871
|
+
throw new Error(fallback || `Failed to fetch availability: ${rest}`.trim());
|
|
1869
1872
|
}
|
|
1870
1873
|
const data = await response.json();
|
|
1871
|
-
|
|
1874
|
+
const raw = data.slots || [];
|
|
1875
|
+
return raw.map((slot) => ({
|
|
1876
|
+
start: slot.startTime ?? slot.start,
|
|
1877
|
+
end: slot.endTime ?? slot.end,
|
|
1878
|
+
hostId: slot.hostId,
|
|
1879
|
+
available: slot.available !== false
|
|
1880
|
+
}));
|
|
1872
1881
|
}
|
|
1873
1882
|
async function createSlotHold(holdData, apiUrl, apiKey) {
|
|
1874
1883
|
const cfg = getApiConfig3();
|
|
@@ -2322,7 +2331,8 @@ function BookingWidget({
|
|
|
2322
2331
|
groupedSlots.evening.length > 0 && /* @__PURE__ */ jsxs("div", { className: "bw-time-group", children: [
|
|
2323
2332
|
/* @__PURE__ */ jsx("span", { className: "bw-time-label", children: "Evening" }),
|
|
2324
2333
|
groupedSlots.evening.map((slot) => /* @__PURE__ */ jsx(TimeButton, { slot, selected: selectedSlot?.start === slot.start, confirmed: confirmedSlot && selectedSlot?.start === slot.start, onClick: () => handleSlotSelect(slot), onConfirm: handleSlotConfirm, timezone, loading }, slot.start))
|
|
2325
|
-
] })
|
|
2334
|
+
] }),
|
|
2335
|
+
(groupedSlots.afternoon.length > 0 || groupedSlots.evening.length > 0) && /* @__PURE__ */ jsx("p", { className: "bw-times-scroll-hint", children: "Scroll for more times" })
|
|
2326
2336
|
] }) })
|
|
2327
2337
|
] })
|
|
2328
2338
|
] }),
|
|
@@ -2422,7 +2432,6 @@ function BookingWidget({
|
|
|
2422
2432
|
step === "success" && bookingResult && /* @__PURE__ */ jsxs("div", { className: "bw-step bw-fade-in bw-success", children: [
|
|
2423
2433
|
/* @__PURE__ */ jsx("div", { className: "bw-success-icon", children: /* @__PURE__ */ jsx(CheckCircleIcon, {}) }),
|
|
2424
2434
|
/* @__PURE__ */ jsx("h2", { className: "bw-heading", children: "You\u2019re Booked!" }),
|
|
2425
|
-
/* @__PURE__ */ jsx("p", { className: "bw-conf-code", children: bookingResult.booking.confirmationCode }),
|
|
2426
2435
|
/* @__PURE__ */ jsxs("div", { className: "bw-details-card", children: [
|
|
2427
2436
|
/* @__PURE__ */ jsxs("div", { className: "bw-detail-row", children: [
|
|
2428
2437
|
/* @__PURE__ */ jsx("span", { className: "bw-detail-label", children: "When" }),
|
|
@@ -2460,7 +2469,7 @@ function BookingWidget({
|
|
|
2460
2469
|
] })
|
|
2461
2470
|
] }),
|
|
2462
2471
|
/* @__PURE__ */ jsxs("p", { className: "bw-email-notice", children: [
|
|
2463
|
-
"
|
|
2472
|
+
"If your host uses Google Calendar, a calendar invite will be sent to ",
|
|
2464
2473
|
/* @__PURE__ */ jsx("strong", { children: guestInfo.email }),
|
|
2465
2474
|
"."
|
|
2466
2475
|
] })
|
|
@@ -2562,7 +2571,7 @@ var WIDGET_CSS = `
|
|
|
2562
2571
|
.bw-datetime-layout { flex-direction: column; }
|
|
2563
2572
|
}
|
|
2564
2573
|
@media (min-width: 560px) {
|
|
2565
|
-
.bw-datetime-layout { min-height:
|
|
2574
|
+
.bw-datetime-layout { min-height: 400px; }
|
|
2566
2575
|
.bw-calendar { flex: 1 1 auto; padding-right: 16px; border-right: 1px solid #f0f0f0; }
|
|
2567
2576
|
.bw-times { width: 180px; flex-shrink: 0; padding-left: 16px; }
|
|
2568
2577
|
}
|
|
@@ -2611,9 +2620,12 @@ var WIDGET_CSS = `
|
|
|
2611
2620
|
display: flex; align-items: center; justify-content: center;
|
|
2612
2621
|
height: 100%; min-height: 160px; color: #9ca3af; font-size: 0.8125rem; text-align: center; padding: 16px;
|
|
2613
2622
|
}
|
|
2614
|
-
.bw-times-scroll { overflow-y: auto; max-height:
|
|
2623
|
+
.bw-times-scroll { overflow-y: auto; max-height: 400px; overflow-x: hidden; }
|
|
2615
2624
|
.bw-times-date { font-weight: 600; font-size: 0.8125rem; color: #374151; margin: 0 0 12px 0; }
|
|
2616
2625
|
.bw-time-group { margin-bottom: 16px; }
|
|
2626
|
+
.bw-times-scroll-hint {
|
|
2627
|
+
font-size: 0.6875rem; color: #9ca3af; text-align: center; margin: 8px 0 0 0; padding-bottom: 8px;
|
|
2628
|
+
}
|
|
2617
2629
|
.bw-time-label { display: block; font-size: 0.6875rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
|
|
2618
2630
|
|
|
2619
2631
|
.bw-time-btn {
|