@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.js
CHANGED
|
@@ -4,12 +4,12 @@ var chunkKUGMH4ZF_js = require('./chunk-KUGMH4ZF.js');
|
|
|
4
4
|
require('./chunk-MXBDMOVK.js');
|
|
5
5
|
var chunkUJQ73OS6_js = require('./chunk-UJQ73OS6.js');
|
|
6
6
|
var chunkVOR53RUR_js = require('./chunk-VOR53RUR.js');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var chunk7BEMFSF6_js = require('./chunk-7BEMFSF6.js');
|
|
8
|
+
var chunkY4BW6XYJ_js = require('./chunk-Y4BW6XYJ.js');
|
|
9
9
|
var chunk4KKQQRZV_js = require('./chunk-4KKQQRZV.js');
|
|
10
|
-
var
|
|
10
|
+
var chunkG7RSD56P_js = require('./chunk-G7RSD56P.js');
|
|
11
11
|
var chunkHGTTGJVZ_js = require('./chunk-HGTTGJVZ.js');
|
|
12
|
-
var
|
|
12
|
+
var chunkH5PVDCCM_js = require('./chunk-H5PVDCCM.js');
|
|
13
13
|
var chunkADHVEFWD_js = require('./chunk-ADHVEFWD.js');
|
|
14
14
|
require('./chunk-ZSMWDLMK.js');
|
|
15
15
|
var React3 = require('react');
|
|
@@ -430,7 +430,7 @@ function SiteKitProvider({
|
|
|
430
430
|
content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
431
431
|
content,
|
|
432
432
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
433
|
-
|
|
433
|
+
chunkH5PVDCCM_js.EngageWidget,
|
|
434
434
|
{
|
|
435
435
|
apiUrl: finalApiUrl,
|
|
436
436
|
apiKey,
|
|
@@ -442,7 +442,7 @@ function SiteKitProvider({
|
|
|
442
442
|
}
|
|
443
443
|
content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
444
444
|
content,
|
|
445
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
445
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkG7RSD56P_js.SitemapSync, { debug })
|
|
446
446
|
] });
|
|
447
447
|
return /* @__PURE__ */ jsxRuntime.jsx(SiteKitContext.Provider, { value: contextValue, children: content });
|
|
448
448
|
}
|
|
@@ -1870,11 +1870,20 @@ async function fetchAvailability(typeSlug, date, orgSlug, apiUrl, apiKey, timezo
|
|
|
1870
1870
|
const response = await fetch(endpoint, { headers: buildHeaders(key) });
|
|
1871
1871
|
if (!response.ok) {
|
|
1872
1872
|
const msg = await response.json().catch(() => ({ message: response.statusText }));
|
|
1873
|
-
|
|
1874
|
-
|
|
1873
|
+
let detail = msg && typeof msg.message === "string" ? String(msg.message).trim() : (response.statusText || "").trim();
|
|
1874
|
+
if (detail === String(response.status) || /^\d+$/.test(detail)) detail = "";
|
|
1875
|
+
const rest = detail ? `${response.status} ${detail}` : String(response.status);
|
|
1876
|
+
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;
|
|
1877
|
+
throw new Error(fallback || `Failed to fetch availability: ${rest}`.trim());
|
|
1875
1878
|
}
|
|
1876
1879
|
const data = await response.json();
|
|
1877
|
-
|
|
1880
|
+
const raw = data.slots || [];
|
|
1881
|
+
return raw.map((slot) => ({
|
|
1882
|
+
start: slot.startTime ?? slot.start,
|
|
1883
|
+
end: slot.endTime ?? slot.end,
|
|
1884
|
+
hostId: slot.hostId,
|
|
1885
|
+
available: slot.available !== false
|
|
1886
|
+
}));
|
|
1878
1887
|
}
|
|
1879
1888
|
async function createSlotHold(holdData, apiUrl, apiKey) {
|
|
1880
1889
|
const cfg = getApiConfig3();
|
|
@@ -2328,7 +2337,8 @@ function BookingWidget({
|
|
|
2328
2337
|
groupedSlots.evening.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bw-time-group", children: [
|
|
2329
2338
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "bw-time-label", children: "Evening" }),
|
|
2330
2339
|
groupedSlots.evening.map((slot) => /* @__PURE__ */ jsxRuntime.jsx(TimeButton, { slot, selected: selectedSlot?.start === slot.start, confirmed: confirmedSlot && selectedSlot?.start === slot.start, onClick: () => handleSlotSelect(slot), onConfirm: handleSlotConfirm, timezone, loading }, slot.start))
|
|
2331
|
-
] })
|
|
2340
|
+
] }),
|
|
2341
|
+
(groupedSlots.afternoon.length > 0 || groupedSlots.evening.length > 0) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "bw-times-scroll-hint", children: "Scroll for more times" })
|
|
2332
2342
|
] }) })
|
|
2333
2343
|
] })
|
|
2334
2344
|
] }),
|
|
@@ -2428,7 +2438,6 @@ function BookingWidget({
|
|
|
2428
2438
|
step === "success" && bookingResult && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bw-step bw-fade-in bw-success", children: [
|
|
2429
2439
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "bw-success-icon", children: /* @__PURE__ */ jsxRuntime.jsx(CheckCircleIcon, {}) }),
|
|
2430
2440
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "bw-heading", children: "You\u2019re Booked!" }),
|
|
2431
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "bw-conf-code", children: bookingResult.booking.confirmationCode }),
|
|
2432
2441
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bw-details-card", children: [
|
|
2433
2442
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bw-detail-row", children: [
|
|
2434
2443
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "bw-detail-label", children: "When" }),
|
|
@@ -2466,7 +2475,7 @@ function BookingWidget({
|
|
|
2466
2475
|
] })
|
|
2467
2476
|
] }),
|
|
2468
2477
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "bw-email-notice", children: [
|
|
2469
|
-
"
|
|
2478
|
+
"If your host uses Google Calendar, a calendar invite will be sent to ",
|
|
2470
2479
|
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: guestInfo.email }),
|
|
2471
2480
|
"."
|
|
2472
2481
|
] })
|
|
@@ -2568,7 +2577,7 @@ var WIDGET_CSS = `
|
|
|
2568
2577
|
.bw-datetime-layout { flex-direction: column; }
|
|
2569
2578
|
}
|
|
2570
2579
|
@media (min-width: 560px) {
|
|
2571
|
-
.bw-datetime-layout { min-height:
|
|
2580
|
+
.bw-datetime-layout { min-height: 400px; }
|
|
2572
2581
|
.bw-calendar { flex: 1 1 auto; padding-right: 16px; border-right: 1px solid #f0f0f0; }
|
|
2573
2582
|
.bw-times { width: 180px; flex-shrink: 0; padding-left: 16px; }
|
|
2574
2583
|
}
|
|
@@ -2617,9 +2626,12 @@ var WIDGET_CSS = `
|
|
|
2617
2626
|
display: flex; align-items: center; justify-content: center;
|
|
2618
2627
|
height: 100%; min-height: 160px; color: #9ca3af; font-size: 0.8125rem; text-align: center; padding: 16px;
|
|
2619
2628
|
}
|
|
2620
|
-
.bw-times-scroll { overflow-y: auto; max-height:
|
|
2629
|
+
.bw-times-scroll { overflow-y: auto; max-height: 400px; overflow-x: hidden; }
|
|
2621
2630
|
.bw-times-date { font-weight: 600; font-size: 0.8125rem; color: #374151; margin: 0 0 12px 0; }
|
|
2622
2631
|
.bw-time-group { margin-bottom: 16px; }
|
|
2632
|
+
.bw-times-scroll-hint {
|
|
2633
|
+
font-size: 0.6875rem; color: #9ca3af; text-align: center; margin: 8px 0 0 0; padding-bottom: 8px;
|
|
2634
|
+
}
|
|
2623
2635
|
.bw-time-label { display: block; font-size: 0.6875rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
|
|
2624
2636
|
|
|
2625
2637
|
.bw-time-btn {
|
|
@@ -2856,103 +2868,103 @@ Object.defineProperty(exports, "getSpeakableSelectorsForPage", {
|
|
|
2856
2868
|
});
|
|
2857
2869
|
Object.defineProperty(exports, "CalendarView", {
|
|
2858
2870
|
enumerable: true,
|
|
2859
|
-
get: function () { return
|
|
2871
|
+
get: function () { return chunk7BEMFSF6_js.CalendarView; }
|
|
2860
2872
|
});
|
|
2861
2873
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
2862
2874
|
enumerable: true,
|
|
2863
|
-
get: function () { return
|
|
2875
|
+
get: function () { return chunk7BEMFSF6_js.CheckoutForm; }
|
|
2864
2876
|
});
|
|
2865
2877
|
Object.defineProperty(exports, "EventCalendar", {
|
|
2866
2878
|
enumerable: true,
|
|
2867
|
-
get: function () { return
|
|
2879
|
+
get: function () { return chunk7BEMFSF6_js.EventCalendar; }
|
|
2868
2880
|
});
|
|
2869
2881
|
Object.defineProperty(exports, "EventEmbed", {
|
|
2870
2882
|
enumerable: true,
|
|
2871
|
-
get: function () { return
|
|
2883
|
+
get: function () { return chunk7BEMFSF6_js.EventEmbed; }
|
|
2872
2884
|
});
|
|
2873
2885
|
Object.defineProperty(exports, "EventModal", {
|
|
2874
2886
|
enumerable: true,
|
|
2875
|
-
get: function () { return
|
|
2887
|
+
get: function () { return chunk7BEMFSF6_js.EventModal; }
|
|
2876
2888
|
});
|
|
2877
2889
|
Object.defineProperty(exports, "EventTile", {
|
|
2878
2890
|
enumerable: true,
|
|
2879
|
-
get: function () { return
|
|
2891
|
+
get: function () { return chunk7BEMFSF6_js.EventTile; }
|
|
2880
2892
|
});
|
|
2881
2893
|
Object.defineProperty(exports, "OfferingCard", {
|
|
2882
2894
|
enumerable: true,
|
|
2883
|
-
get: function () { return
|
|
2895
|
+
get: function () { return chunk7BEMFSF6_js.OfferingCard; }
|
|
2884
2896
|
});
|
|
2885
2897
|
Object.defineProperty(exports, "OfferingList", {
|
|
2886
2898
|
enumerable: true,
|
|
2887
|
-
get: function () { return
|
|
2899
|
+
get: function () { return chunk7BEMFSF6_js.OfferingList; }
|
|
2888
2900
|
});
|
|
2889
2901
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
2890
2902
|
enumerable: true,
|
|
2891
|
-
get: function () { return
|
|
2903
|
+
get: function () { return chunk7BEMFSF6_js.ProductEmbed; }
|
|
2892
2904
|
});
|
|
2893
2905
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
2894
2906
|
enumerable: true,
|
|
2895
|
-
get: function () { return
|
|
2907
|
+
get: function () { return chunk7BEMFSF6_js.RegistrationForm; }
|
|
2896
2908
|
});
|
|
2897
2909
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
2898
2910
|
enumerable: true,
|
|
2899
|
-
get: function () { return
|
|
2911
|
+
get: function () { return chunk7BEMFSF6_js.UpcomingEvents; }
|
|
2900
2912
|
});
|
|
2901
2913
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
2902
2914
|
enumerable: true,
|
|
2903
|
-
get: function () { return
|
|
2915
|
+
get: function () { return chunk7BEMFSF6_js.createCheckoutSession; }
|
|
2904
2916
|
});
|
|
2905
2917
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
2906
2918
|
enumerable: true,
|
|
2907
|
-
get: function () { return
|
|
2919
|
+
get: function () { return chunk7BEMFSF6_js.fetchNextEvent; }
|
|
2908
2920
|
});
|
|
2909
2921
|
Object.defineProperty(exports, "fetchOffering", {
|
|
2910
2922
|
enumerable: true,
|
|
2911
|
-
get: function () { return
|
|
2923
|
+
get: function () { return chunk7BEMFSF6_js.fetchOffering; }
|
|
2912
2924
|
});
|
|
2913
2925
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
2914
2926
|
enumerable: true,
|
|
2915
|
-
get: function () { return
|
|
2927
|
+
get: function () { return chunk7BEMFSF6_js.fetchOfferings; }
|
|
2916
2928
|
});
|
|
2917
2929
|
Object.defineProperty(exports, "fetchProducts", {
|
|
2918
2930
|
enumerable: true,
|
|
2919
|
-
get: function () { return
|
|
2931
|
+
get: function () { return chunk7BEMFSF6_js.fetchProducts; }
|
|
2920
2932
|
});
|
|
2921
2933
|
Object.defineProperty(exports, "fetchServices", {
|
|
2922
2934
|
enumerable: true,
|
|
2923
|
-
get: function () { return
|
|
2935
|
+
get: function () { return chunk7BEMFSF6_js.fetchServices; }
|
|
2924
2936
|
});
|
|
2925
2937
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
2926
2938
|
enumerable: true,
|
|
2927
|
-
get: function () { return
|
|
2939
|
+
get: function () { return chunk7BEMFSF6_js.fetchUpcomingEvents; }
|
|
2928
2940
|
});
|
|
2929
2941
|
Object.defineProperty(exports, "formatDate", {
|
|
2930
2942
|
enumerable: true,
|
|
2931
|
-
get: function () { return
|
|
2943
|
+
get: function () { return chunk7BEMFSF6_js.formatDate; }
|
|
2932
2944
|
});
|
|
2933
2945
|
Object.defineProperty(exports, "formatDateTime", {
|
|
2934
2946
|
enumerable: true,
|
|
2935
|
-
get: function () { return
|
|
2947
|
+
get: function () { return chunk7BEMFSF6_js.formatDateTime; }
|
|
2936
2948
|
});
|
|
2937
2949
|
Object.defineProperty(exports, "formatPrice", {
|
|
2938
2950
|
enumerable: true,
|
|
2939
|
-
get: function () { return
|
|
2951
|
+
get: function () { return chunk7BEMFSF6_js.formatPrice; }
|
|
2940
2952
|
});
|
|
2941
2953
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
2942
2954
|
enumerable: true,
|
|
2943
|
-
get: function () { return
|
|
2955
|
+
get: function () { return chunk7BEMFSF6_js.getOfferingUrl; }
|
|
2944
2956
|
});
|
|
2945
2957
|
Object.defineProperty(exports, "registerForEvent", {
|
|
2946
2958
|
enumerable: true,
|
|
2947
|
-
get: function () { return
|
|
2959
|
+
get: function () { return chunk7BEMFSF6_js.registerForEvent; }
|
|
2948
2960
|
});
|
|
2949
2961
|
Object.defineProperty(exports, "useEventModal", {
|
|
2950
2962
|
enumerable: true,
|
|
2951
|
-
get: function () { return
|
|
2963
|
+
get: function () { return chunk7BEMFSF6_js.useEventModal; }
|
|
2952
2964
|
});
|
|
2953
2965
|
Object.defineProperty(exports, "SetupWizard", {
|
|
2954
2966
|
enumerable: true,
|
|
2955
|
-
get: function () { return
|
|
2967
|
+
get: function () { return chunkY4BW6XYJ_js.SetupWizard; }
|
|
2956
2968
|
});
|
|
2957
2969
|
Object.defineProperty(exports, "clearRedirectCache", {
|
|
2958
2970
|
enumerable: true,
|