@sonordev/site-kit 1.3.4 → 1.3.5
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-SQXUPIMK.mjs → chunk-IZZ7XJYN.mjs} +10 -2
- package/dist/chunk-IZZ7XJYN.mjs.map +1 -0
- package/dist/{chunk-MSBWUOIU.js → chunk-KYNUBF64.js} +10 -2
- package/dist/chunk-KYNUBF64.js.map +1 -0
- package/dist/commerce/index.d.mts +3 -3
- package/dist/commerce/index.d.ts +3 -3
- package/dist/commerce/index.js +43 -43
- package/dist/commerce/index.mjs +1 -1
- package/dist/commerce/server.d.mts +1 -1
- package/dist/commerce/server.d.ts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +25 -25
- package/dist/index.mjs +1 -1
- package/dist/{types-CnIJF-kB.d.mts → types-CyUfjlzS.d.mts} +2 -0
- package/dist/{types-CnIJF-kB.d.ts → types-CyUfjlzS.d.ts} +2 -0
- package/dist/{useEventModal-Cp5mbphv.d.ts → useEventModal-CmPo7hkj.d.ts} +1 -1
- package/dist/{useEventModal-BFhhrNfN.d.mts → useEventModal-shBjc8CK.d.mts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-MSBWUOIU.js.map +0 -1
- package/dist/chunk-SQXUPIMK.mjs.map +0 -1
|
@@ -396,6 +396,10 @@ function OfferingCard({
|
|
|
396
396
|
subscription: "Subscribe"
|
|
397
397
|
}[offering.type] || "View Details";
|
|
398
398
|
const handleClick = () => {
|
|
399
|
+
if (offering.external_url && typeof window !== "undefined") {
|
|
400
|
+
window.open(offering.external_url, "_blank", "noopener,noreferrer");
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
399
403
|
if (onCtaClick) {
|
|
400
404
|
onCtaClick(offering);
|
|
401
405
|
} else if (typeof window !== "undefined") {
|
|
@@ -787,6 +791,10 @@ function EventTile({
|
|
|
787
791
|
const spotsRemaining = schedule ? getSpotsRemaining(schedule.capacity, schedule.current_registrations) : null;
|
|
788
792
|
const defaultCtaText = event.price && event.price > 0 ? "Get Tickets" : "Register Free";
|
|
789
793
|
const handleClick = async () => {
|
|
794
|
+
if (event.external_url) {
|
|
795
|
+
window.open(event.external_url, "_blank", "noopener,noreferrer");
|
|
796
|
+
return;
|
|
797
|
+
}
|
|
790
798
|
if (onCtaClick) {
|
|
791
799
|
onCtaClick(event);
|
|
792
800
|
return;
|
|
@@ -4592,5 +4600,5 @@ function getApiKey() {
|
|
|
4592
4600
|
}
|
|
4593
4601
|
|
|
4594
4602
|
export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, SizeChart, UpcomingEvents, createCheckoutSession, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchShippingRates, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal, validateAddress };
|
|
4595
|
-
//# sourceMappingURL=chunk-
|
|
4596
|
-
//# sourceMappingURL=chunk-
|
|
4603
|
+
//# sourceMappingURL=chunk-IZZ7XJYN.mjs.map
|
|
4604
|
+
//# sourceMappingURL=chunk-IZZ7XJYN.mjs.map
|