@sonordev/site-kit 1.3.4 → 1.4.0
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-MSBWUOIU.js → chunk-JDC3UINW.js} +2424 -460
- package/dist/chunk-JDC3UINW.js.map +1 -0
- package/dist/{chunk-SQXUPIMK.mjs → chunk-ULAQCW4X.mjs} +2424 -461
- package/dist/chunk-ULAQCW4X.mjs.map +1 -0
- package/dist/commerce/index.d.mts +19 -28
- package/dist/commerce/index.d.ts +19 -28
- package/dist/commerce/index.js +47 -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-BzkdS69g.d.mts} +14 -2
- package/dist/{useEventModal-BFhhrNfN.d.mts → useEventModal-a3_W6n-e.d.ts} +14 -2
- package/package.json +1 -1
- package/dist/chunk-MSBWUOIU.js.map +0 -1
- package/dist/chunk-SQXUPIMK.mjs.map +0 -1
|
@@ -1,46 +1,37 @@
|
|
|
1
|
-
import { C as CommerceOffering, a as CommerceVariant, b as CheckoutResult, S as SizeChart$1, c as CommerceSchedule } from '../types-
|
|
2
|
-
export { o as AdditionalField, A as AdditionalFieldOption, g as Cart, f as CartItem, h as CheckoutCustomer, n as CheckoutFormProps, p as CommerceApiConfig, e as CommerceCategory, m as EventEmbedProps, E as EventTileProps, q as FetchEventsOptions, F as FetchOfferingsOptions, i as OfferingCardProps, k as OfferingDetailProps, j as OfferingListProps, d as OfferingStatus, O as OfferingType, P as PriceType, l as ProductEmbedProps, R as RegistrationFormProps, U as UpcomingEventsProps } from '../types-
|
|
3
|
-
export {
|
|
1
|
+
import { C as CommerceOffering, a as CommerceVariant, b as CheckoutResult, S as SizeChart$1, c as CommerceSchedule } from '../types-CyUfjlzS.mjs';
|
|
2
|
+
export { o as AdditionalField, A as AdditionalFieldOption, g as Cart, f as CartItem, h as CheckoutCustomer, n as CheckoutFormProps, p as CommerceApiConfig, e as CommerceCategory, m as EventEmbedProps, E as EventTileProps, q as FetchEventsOptions, F as FetchOfferingsOptions, i as OfferingCardProps, k as OfferingDetailProps, j as OfferingListProps, d as OfferingStatus, O as OfferingType, P as PriceType, l as ProductEmbedProps, R as RegistrationFormProps, U as UpcomingEventsProps } from '../types-CyUfjlzS.mjs';
|
|
3
|
+
export { w as CalendarView, u as CheckoutForm, C as CreateCheckoutOptions, y as EventCalendar, t as EventEmbed, x as EventModal, E as EventTile, O as OfferingCard, q as OfferingList, P as ProcessorConfig, s as ProductEmbed, R as RegistrationForm, S as ShippingAddress, p as ShippingRate, U as UpcomingEvents, V as ValidateAddressResult, l as createCheckoutSession, m as createPaymentIntent, n as fetchActiveProcessor, g as fetchCategories, b as fetchLatestOffering, j as fetchNextEvent, a as fetchOffering, f as fetchOfferings, o as fetchProcessorConfig, e as fetchProductBySlug, c as fetchProducts, d as fetchProductsPublic, h as fetchServices, k as fetchShippingRates, i as fetchUpcomingEvents, B as formatDate, G as formatDateRange, D as formatDateTime, A as formatPrice, F as formatTime, K as getOfferingUrl, H as getRelativeTimeUntil, I as getSpotsRemaining, J as isEventSoldOut, r as registerForEvent, z as useEventModal, v as validateAddress } from '../useEventModal-BzkdS69g.mjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React__default from 'react';
|
|
6
6
|
|
|
7
|
+
interface TrustBadge {
|
|
8
|
+
icon?: 'lock' | 'truck' | 'return' | 'shield';
|
|
9
|
+
label: string;
|
|
10
|
+
sublabel?: string;
|
|
11
|
+
}
|
|
7
12
|
interface ProductDetailProps {
|
|
8
|
-
/** Pre-loaded product data (for SSR) */
|
|
9
13
|
product?: CommerceOffering;
|
|
10
|
-
/** Product slug to fetch (if not pre-loaded) */
|
|
11
14
|
slug?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/** Show buy now button */
|
|
15
|
-
showBuyNow?: boolean;
|
|
16
|
-
/** Show quantity selector */
|
|
17
|
-
showQuantity?: boolean;
|
|
18
|
-
/** Show variant selector */
|
|
19
|
-
showVariants?: boolean;
|
|
20
|
-
/** Show product gallery */
|
|
15
|
+
successUrl?: string;
|
|
16
|
+
cancelUrl?: string;
|
|
21
17
|
showGallery?: boolean;
|
|
22
|
-
|
|
18
|
+
showVariants?: boolean;
|
|
19
|
+
showQuantity?: boolean;
|
|
20
|
+
showSizeChart?: boolean;
|
|
23
21
|
showFeatures?: boolean;
|
|
24
|
-
/** Show specifications table */
|
|
25
22
|
showSpecifications?: boolean;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/** Callback when added to cart */
|
|
23
|
+
showDescription?: boolean;
|
|
24
|
+
showTrustBadges?: boolean;
|
|
25
|
+
showInventory?: boolean;
|
|
26
|
+
trustBadges?: TrustBadge[];
|
|
31
27
|
onAddToCart?: (product: CommerceOffering, variant?: CommerceVariant, quantity?: number) => void;
|
|
32
|
-
/** Callback when buy now clicked */
|
|
33
|
-
onBuyNow?: (product: CommerceOffering, variant?: CommerceVariant, quantity?: number) => void;
|
|
34
|
-
/** Callback on checkout success */
|
|
35
28
|
onCheckoutSuccess?: (result: CheckoutResult) => void;
|
|
36
|
-
/** Callback on checkout error */
|
|
37
29
|
onCheckoutError?: (error: string) => void;
|
|
38
|
-
/** Additional class names */
|
|
39
30
|
className?: string;
|
|
40
|
-
/** Custom styles */
|
|
41
31
|
style?: React__default.CSSProperties;
|
|
32
|
+
layout?: 'horizontal' | 'stacked';
|
|
42
33
|
}
|
|
43
|
-
declare function ProductDetail({ product: propProduct, slug,
|
|
34
|
+
declare function ProductDetail({ product: propProduct, slug, successUrl, cancelUrl, showGallery, showVariants, showQuantity, showSizeChart, showFeatures, showSpecifications, showDescription, showTrustBadges, showInventory, trustBadges, onAddToCart, onCheckoutSuccess, onCheckoutError, className, style: customStyle, layout, }: ProductDetailProps): react_jsx_runtime.JSX.Element;
|
|
44
35
|
|
|
45
36
|
interface SizeChartProps {
|
|
46
37
|
chart: SizeChart$1;
|
package/dist/commerce/index.d.ts
CHANGED
|
@@ -1,46 +1,37 @@
|
|
|
1
|
-
import { C as CommerceOffering, a as CommerceVariant, b as CheckoutResult, S as SizeChart$1, c as CommerceSchedule } from '../types-
|
|
2
|
-
export { o as AdditionalField, A as AdditionalFieldOption, g as Cart, f as CartItem, h as CheckoutCustomer, n as CheckoutFormProps, p as CommerceApiConfig, e as CommerceCategory, m as EventEmbedProps, E as EventTileProps, q as FetchEventsOptions, F as FetchOfferingsOptions, i as OfferingCardProps, k as OfferingDetailProps, j as OfferingListProps, d as OfferingStatus, O as OfferingType, P as PriceType, l as ProductEmbedProps, R as RegistrationFormProps, U as UpcomingEventsProps } from '../types-
|
|
3
|
-
export {
|
|
1
|
+
import { C as CommerceOffering, a as CommerceVariant, b as CheckoutResult, S as SizeChart$1, c as CommerceSchedule } from '../types-CyUfjlzS.js';
|
|
2
|
+
export { o as AdditionalField, A as AdditionalFieldOption, g as Cart, f as CartItem, h as CheckoutCustomer, n as CheckoutFormProps, p as CommerceApiConfig, e as CommerceCategory, m as EventEmbedProps, E as EventTileProps, q as FetchEventsOptions, F as FetchOfferingsOptions, i as OfferingCardProps, k as OfferingDetailProps, j as OfferingListProps, d as OfferingStatus, O as OfferingType, P as PriceType, l as ProductEmbedProps, R as RegistrationFormProps, U as UpcomingEventsProps } from '../types-CyUfjlzS.js';
|
|
3
|
+
export { w as CalendarView, u as CheckoutForm, C as CreateCheckoutOptions, y as EventCalendar, t as EventEmbed, x as EventModal, E as EventTile, O as OfferingCard, q as OfferingList, P as ProcessorConfig, s as ProductEmbed, R as RegistrationForm, S as ShippingAddress, p as ShippingRate, U as UpcomingEvents, V as ValidateAddressResult, l as createCheckoutSession, m as createPaymentIntent, n as fetchActiveProcessor, g as fetchCategories, b as fetchLatestOffering, j as fetchNextEvent, a as fetchOffering, f as fetchOfferings, o as fetchProcessorConfig, e as fetchProductBySlug, c as fetchProducts, d as fetchProductsPublic, h as fetchServices, k as fetchShippingRates, i as fetchUpcomingEvents, B as formatDate, G as formatDateRange, D as formatDateTime, A as formatPrice, F as formatTime, K as getOfferingUrl, H as getRelativeTimeUntil, I as getSpotsRemaining, J as isEventSoldOut, r as registerForEvent, z as useEventModal, v as validateAddress } from '../useEventModal-a3_W6n-e.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React__default from 'react';
|
|
6
6
|
|
|
7
|
+
interface TrustBadge {
|
|
8
|
+
icon?: 'lock' | 'truck' | 'return' | 'shield';
|
|
9
|
+
label: string;
|
|
10
|
+
sublabel?: string;
|
|
11
|
+
}
|
|
7
12
|
interface ProductDetailProps {
|
|
8
|
-
/** Pre-loaded product data (for SSR) */
|
|
9
13
|
product?: CommerceOffering;
|
|
10
|
-
/** Product slug to fetch (if not pre-loaded) */
|
|
11
14
|
slug?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/** Show buy now button */
|
|
15
|
-
showBuyNow?: boolean;
|
|
16
|
-
/** Show quantity selector */
|
|
17
|
-
showQuantity?: boolean;
|
|
18
|
-
/** Show variant selector */
|
|
19
|
-
showVariants?: boolean;
|
|
20
|
-
/** Show product gallery */
|
|
15
|
+
successUrl?: string;
|
|
16
|
+
cancelUrl?: string;
|
|
21
17
|
showGallery?: boolean;
|
|
22
|
-
|
|
18
|
+
showVariants?: boolean;
|
|
19
|
+
showQuantity?: boolean;
|
|
20
|
+
showSizeChart?: boolean;
|
|
23
21
|
showFeatures?: boolean;
|
|
24
|
-
/** Show specifications table */
|
|
25
22
|
showSpecifications?: boolean;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/** Callback when added to cart */
|
|
23
|
+
showDescription?: boolean;
|
|
24
|
+
showTrustBadges?: boolean;
|
|
25
|
+
showInventory?: boolean;
|
|
26
|
+
trustBadges?: TrustBadge[];
|
|
31
27
|
onAddToCart?: (product: CommerceOffering, variant?: CommerceVariant, quantity?: number) => void;
|
|
32
|
-
/** Callback when buy now clicked */
|
|
33
|
-
onBuyNow?: (product: CommerceOffering, variant?: CommerceVariant, quantity?: number) => void;
|
|
34
|
-
/** Callback on checkout success */
|
|
35
28
|
onCheckoutSuccess?: (result: CheckoutResult) => void;
|
|
36
|
-
/** Callback on checkout error */
|
|
37
29
|
onCheckoutError?: (error: string) => void;
|
|
38
|
-
/** Additional class names */
|
|
39
30
|
className?: string;
|
|
40
|
-
/** Custom styles */
|
|
41
31
|
style?: React__default.CSSProperties;
|
|
32
|
+
layout?: 'horizontal' | 'stacked';
|
|
42
33
|
}
|
|
43
|
-
declare function ProductDetail({ product: propProduct, slug,
|
|
34
|
+
declare function ProductDetail({ product: propProduct, slug, successUrl, cancelUrl, showGallery, showVariants, showQuantity, showSizeChart, showFeatures, showSpecifications, showDescription, showTrustBadges, showInventory, trustBadges, onAddToCart, onCheckoutSuccess, onCheckoutError, className, style: customStyle, layout, }: ProductDetailProps): react_jsx_runtime.JSX.Element;
|
|
44
35
|
|
|
45
36
|
interface SizeChartProps {
|
|
46
37
|
chart: SizeChart$1;
|
package/dist/commerce/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkJDC3UINW_js = require('../chunk-JDC3UINW.js');
|
|
5
5
|
require('../chunk-FRN4JQXL.js');
|
|
6
6
|
require('../chunk-GTLIGQDM.js');
|
|
7
7
|
require('../chunk-ZSMWDLMK.js');
|
|
@@ -10,171 +10,175 @@ require('../chunk-ZSMWDLMK.js');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "CalendarView", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkJDC3UINW_js.CalendarView; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkJDC3UINW_js.CheckoutForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "EventCalendar", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkJDC3UINW_js.EventCalendar; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "EventEmbed", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkJDC3UINW_js.EventEmbed; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "EventModal", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkJDC3UINW_js.EventModal; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "EventTile", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkJDC3UINW_js.EventTile; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "EventsWidget", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkJDC3UINW_js.EventsWidget; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "OfferingCard", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkJDC3UINW_js.OfferingCard; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "OfferingList", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkJDC3UINW_js.OfferingList; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "ProductDetail", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkJDC3UINW_js.ProductDetail; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkJDC3UINW_js.ProductEmbed; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ProductGrid", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkJDC3UINW_js.ProductGrid; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "ProductPage", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkJDC3UINW_js.ProductPage; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkJDC3UINW_js.RegistrationForm; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "SizeChart", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkJDC3UINW_js.SizeChart; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkJDC3UINW_js.UpcomingEvents; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkJDC3UINW_js.createCheckoutSession; }
|
|
78
|
+
});
|
|
79
|
+
Object.defineProperty(exports, "createPaymentIntent", {
|
|
80
|
+
enumerable: true,
|
|
81
|
+
get: function () { return chunkJDC3UINW_js.createPaymentIntent; }
|
|
78
82
|
});
|
|
79
83
|
Object.defineProperty(exports, "fetchActiveProcessor", {
|
|
80
84
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkJDC3UINW_js.fetchActiveProcessor; }
|
|
82
86
|
});
|
|
83
87
|
Object.defineProperty(exports, "fetchCategories", {
|
|
84
88
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkJDC3UINW_js.fetchCategories; }
|
|
86
90
|
});
|
|
87
91
|
Object.defineProperty(exports, "fetchLatestOffering", {
|
|
88
92
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkJDC3UINW_js.fetchLatestOffering; }
|
|
90
94
|
});
|
|
91
95
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
92
96
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkJDC3UINW_js.fetchNextEvent; }
|
|
94
98
|
});
|
|
95
99
|
Object.defineProperty(exports, "fetchOffering", {
|
|
96
100
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkJDC3UINW_js.fetchOffering; }
|
|
98
102
|
});
|
|
99
103
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
100
104
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkJDC3UINW_js.fetchOfferings; }
|
|
102
106
|
});
|
|
103
107
|
Object.defineProperty(exports, "fetchProcessorConfig", {
|
|
104
108
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkJDC3UINW_js.fetchProcessorConfig; }
|
|
106
110
|
});
|
|
107
111
|
Object.defineProperty(exports, "fetchProductBySlug", {
|
|
108
112
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkJDC3UINW_js.fetchProductBySlug; }
|
|
110
114
|
});
|
|
111
115
|
Object.defineProperty(exports, "fetchProducts", {
|
|
112
116
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkJDC3UINW_js.fetchProducts; }
|
|
114
118
|
});
|
|
115
119
|
Object.defineProperty(exports, "fetchProductsPublic", {
|
|
116
120
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkJDC3UINW_js.fetchProductsPublic; }
|
|
118
122
|
});
|
|
119
123
|
Object.defineProperty(exports, "fetchServices", {
|
|
120
124
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkJDC3UINW_js.fetchServices; }
|
|
122
126
|
});
|
|
123
127
|
Object.defineProperty(exports, "fetchShippingRates", {
|
|
124
128
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkJDC3UINW_js.fetchShippingRates; }
|
|
126
130
|
});
|
|
127
131
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
128
132
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkJDC3UINW_js.fetchUpcomingEvents; }
|
|
130
134
|
});
|
|
131
135
|
Object.defineProperty(exports, "formatDate", {
|
|
132
136
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkJDC3UINW_js.formatDate; }
|
|
134
138
|
});
|
|
135
139
|
Object.defineProperty(exports, "formatDateRange", {
|
|
136
140
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkJDC3UINW_js.formatDateRange; }
|
|
138
142
|
});
|
|
139
143
|
Object.defineProperty(exports, "formatDateTime", {
|
|
140
144
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkJDC3UINW_js.formatDateTime; }
|
|
142
146
|
});
|
|
143
147
|
Object.defineProperty(exports, "formatPrice", {
|
|
144
148
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkJDC3UINW_js.formatPrice; }
|
|
146
150
|
});
|
|
147
151
|
Object.defineProperty(exports, "formatTime", {
|
|
148
152
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkJDC3UINW_js.formatTime; }
|
|
150
154
|
});
|
|
151
155
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
152
156
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkJDC3UINW_js.getOfferingUrl; }
|
|
154
158
|
});
|
|
155
159
|
Object.defineProperty(exports, "getRelativeTimeUntil", {
|
|
156
160
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkJDC3UINW_js.getRelativeTimeUntil; }
|
|
158
162
|
});
|
|
159
163
|
Object.defineProperty(exports, "getSpotsRemaining", {
|
|
160
164
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkJDC3UINW_js.getSpotsRemaining; }
|
|
162
166
|
});
|
|
163
167
|
Object.defineProperty(exports, "isEventSoldOut", {
|
|
164
168
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkJDC3UINW_js.isEventSoldOut; }
|
|
166
170
|
});
|
|
167
171
|
Object.defineProperty(exports, "registerForEvent", {
|
|
168
172
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkJDC3UINW_js.registerForEvent; }
|
|
170
174
|
});
|
|
171
175
|
Object.defineProperty(exports, "useEventModal", {
|
|
172
176
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkJDC3UINW_js.useEventModal; }
|
|
174
178
|
});
|
|
175
179
|
Object.defineProperty(exports, "validateAddress", {
|
|
176
180
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkJDC3UINW_js.validateAddress; }
|
|
178
182
|
});
|
|
179
183
|
//# sourceMappingURL=index.js.map
|
|
180
184
|
//# sourceMappingURL=index.js.map
|
package/dist/commerce/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
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 } from '../chunk-
|
|
2
|
+
export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, SizeChart, UpcomingEvents, createCheckoutSession, createPaymentIntent, 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 } from '../chunk-ULAQCW4X.mjs';
|
|
3
3
|
import '../chunk-AU4GIQQU.mjs';
|
|
4
4
|
import '../chunk-FP66BKW6.mjs';
|
|
5
5
|
import '../chunk-4XPGGLVP.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -5,8 +5,8 @@ export { c as AnalyticsConfig, b as AnalyticsEvent, P as PageView } from './type
|
|
|
5
5
|
export { C as ChatConfig, c as EngageElement, d as WidgetConfig } from './types-BnCwwUX3.mjs';
|
|
6
6
|
export { a as FormField, F as FormSubmission, M as ManagedFormConfig } from './types-0dmq3k20.mjs';
|
|
7
7
|
export { d as BlogAuthor, b as BlogCategory, B as BlogPostType } from './types-D08004rU.mjs';
|
|
8
|
-
export { g as Cart, f as CartItem, e as CommerceCategory, C as CommerceOffering, c as CommerceSchedule, a as CommerceVariant, O as OfferingType } from './types-
|
|
9
|
-
export {
|
|
8
|
+
export { g as Cart, f as CartItem, e as CommerceCategory, C as CommerceOffering, c as CommerceSchedule, a as CommerceVariant, O as OfferingType } from './types-CyUfjlzS.mjs';
|
|
9
|
+
export { w as CalendarView, u as CheckoutForm, y as EventCalendar, t as EventEmbed, x as EventModal, E as EventTile, O as OfferingCard, q as OfferingList, s as ProductEmbed, R as RegistrationForm, U as UpcomingEvents, l as createCheckoutSession, j as fetchNextEvent, a as fetchOffering, f as fetchOfferings, c as fetchProducts, h as fetchServices, i as fetchUpcomingEvents, B as formatDate, D as formatDateTime, A as formatPrice, K as getOfferingUrl, r as registerForEvent, z as useEventModal } from './useEventModal-BzkdS69g.mjs';
|
|
10
10
|
export { RedirectConfig, RedirectRule, clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './redirects/index.mjs';
|
|
11
11
|
export { g as ImageApiConfig, I as ImageFile, M as ManagedImage, b as ManagedImageData, a as ManagedImageProps, d as assignImageToSlot, e as clearImageSlot, f as fetchManagedImage, c as fetchManagedImages, l as listImageFiles, u as uploadImage } from './api-DTKSHh_w.mjs';
|
|
12
12
|
export { S as SetupWizard } from './SetupWizard-Cki06kB0.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export { c as AnalyticsConfig, b as AnalyticsEvent, P as PageView } from './type
|
|
|
5
5
|
export { C as ChatConfig, c as EngageElement, d as WidgetConfig } from './types-BnCwwUX3.js';
|
|
6
6
|
export { a as FormField, F as FormSubmission, M as ManagedFormConfig } from './types-0dmq3k20.js';
|
|
7
7
|
export { d as BlogAuthor, b as BlogCategory, B as BlogPostType } from './types-D08004rU.js';
|
|
8
|
-
export { g as Cart, f as CartItem, e as CommerceCategory, C as CommerceOffering, c as CommerceSchedule, a as CommerceVariant, O as OfferingType } from './types-
|
|
9
|
-
export {
|
|
8
|
+
export { g as Cart, f as CartItem, e as CommerceCategory, C as CommerceOffering, c as CommerceSchedule, a as CommerceVariant, O as OfferingType } from './types-CyUfjlzS.js';
|
|
9
|
+
export { w as CalendarView, u as CheckoutForm, y as EventCalendar, t as EventEmbed, x as EventModal, E as EventTile, O as OfferingCard, q as OfferingList, s as ProductEmbed, R as RegistrationForm, U as UpcomingEvents, l as createCheckoutSession, j as fetchNextEvent, a as fetchOffering, f as fetchOfferings, c as fetchProducts, h as fetchServices, i as fetchUpcomingEvents, B as formatDate, D as formatDateTime, A as formatPrice, K as getOfferingUrl, r as registerForEvent, z as useEventModal } from './useEventModal-a3_W6n-e.js';
|
|
10
10
|
export { RedirectConfig, RedirectRule, clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './redirects/index.js';
|
|
11
11
|
export { g as ImageApiConfig, I as ImageFile, M as ManagedImage, b as ManagedImageData, a as ManagedImageProps, d as assignImageToSlot, e as clearImageSlot, f as fetchManagedImage, c as fetchManagedImages, l as listImageFiles, u as uploadImage } from './api-DTKSHh_w.js';
|
|
12
12
|
export { S as SetupWizard } from './SetupWizard-Cki06kB0.js';
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var chunkX4J33XQD_js = require('./chunk-X4J33XQD.js');
|
|
|
5
5
|
var chunkG6VGUAK2_js = require('./chunk-G6VGUAK2.js');
|
|
6
6
|
var chunkTKQLH33E_js = require('./chunk-TKQLH33E.js');
|
|
7
7
|
require('./chunk-DY4K6X3A.js');
|
|
8
|
-
var
|
|
8
|
+
var chunkJDC3UINW_js = require('./chunk-JDC3UINW.js');
|
|
9
9
|
var chunkV2WSPLCN_js = require('./chunk-V2WSPLCN.js');
|
|
10
10
|
var chunkIFAW7JFO_js = require('./chunk-IFAW7JFO.js');
|
|
11
11
|
require('./chunk-EUNL6GAL.js');
|
|
@@ -1585,99 +1585,99 @@ Object.defineProperty(exports, "fetchReviews", {
|
|
|
1585
1585
|
});
|
|
1586
1586
|
Object.defineProperty(exports, "CalendarView", {
|
|
1587
1587
|
enumerable: true,
|
|
1588
|
-
get: function () { return
|
|
1588
|
+
get: function () { return chunkJDC3UINW_js.CalendarView; }
|
|
1589
1589
|
});
|
|
1590
1590
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
1591
1591
|
enumerable: true,
|
|
1592
|
-
get: function () { return
|
|
1592
|
+
get: function () { return chunkJDC3UINW_js.CheckoutForm; }
|
|
1593
1593
|
});
|
|
1594
1594
|
Object.defineProperty(exports, "EventCalendar", {
|
|
1595
1595
|
enumerable: true,
|
|
1596
|
-
get: function () { return
|
|
1596
|
+
get: function () { return chunkJDC3UINW_js.EventCalendar; }
|
|
1597
1597
|
});
|
|
1598
1598
|
Object.defineProperty(exports, "EventEmbed", {
|
|
1599
1599
|
enumerable: true,
|
|
1600
|
-
get: function () { return
|
|
1600
|
+
get: function () { return chunkJDC3UINW_js.EventEmbed; }
|
|
1601
1601
|
});
|
|
1602
1602
|
Object.defineProperty(exports, "EventModal", {
|
|
1603
1603
|
enumerable: true,
|
|
1604
|
-
get: function () { return
|
|
1604
|
+
get: function () { return chunkJDC3UINW_js.EventModal; }
|
|
1605
1605
|
});
|
|
1606
1606
|
Object.defineProperty(exports, "EventTile", {
|
|
1607
1607
|
enumerable: true,
|
|
1608
|
-
get: function () { return
|
|
1608
|
+
get: function () { return chunkJDC3UINW_js.EventTile; }
|
|
1609
1609
|
});
|
|
1610
1610
|
Object.defineProperty(exports, "OfferingCard", {
|
|
1611
1611
|
enumerable: true,
|
|
1612
|
-
get: function () { return
|
|
1612
|
+
get: function () { return chunkJDC3UINW_js.OfferingCard; }
|
|
1613
1613
|
});
|
|
1614
1614
|
Object.defineProperty(exports, "OfferingList", {
|
|
1615
1615
|
enumerable: true,
|
|
1616
|
-
get: function () { return
|
|
1616
|
+
get: function () { return chunkJDC3UINW_js.OfferingList; }
|
|
1617
1617
|
});
|
|
1618
1618
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
1619
1619
|
enumerable: true,
|
|
1620
|
-
get: function () { return
|
|
1620
|
+
get: function () { return chunkJDC3UINW_js.ProductEmbed; }
|
|
1621
1621
|
});
|
|
1622
1622
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
1623
1623
|
enumerable: true,
|
|
1624
|
-
get: function () { return
|
|
1624
|
+
get: function () { return chunkJDC3UINW_js.RegistrationForm; }
|
|
1625
1625
|
});
|
|
1626
1626
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
1627
1627
|
enumerable: true,
|
|
1628
|
-
get: function () { return
|
|
1628
|
+
get: function () { return chunkJDC3UINW_js.UpcomingEvents; }
|
|
1629
1629
|
});
|
|
1630
1630
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
1631
1631
|
enumerable: true,
|
|
1632
|
-
get: function () { return
|
|
1632
|
+
get: function () { return chunkJDC3UINW_js.createCheckoutSession; }
|
|
1633
1633
|
});
|
|
1634
1634
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
1635
1635
|
enumerable: true,
|
|
1636
|
-
get: function () { return
|
|
1636
|
+
get: function () { return chunkJDC3UINW_js.fetchNextEvent; }
|
|
1637
1637
|
});
|
|
1638
1638
|
Object.defineProperty(exports, "fetchOffering", {
|
|
1639
1639
|
enumerable: true,
|
|
1640
|
-
get: function () { return
|
|
1640
|
+
get: function () { return chunkJDC3UINW_js.fetchOffering; }
|
|
1641
1641
|
});
|
|
1642
1642
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
1643
1643
|
enumerable: true,
|
|
1644
|
-
get: function () { return
|
|
1644
|
+
get: function () { return chunkJDC3UINW_js.fetchOfferings; }
|
|
1645
1645
|
});
|
|
1646
1646
|
Object.defineProperty(exports, "fetchProducts", {
|
|
1647
1647
|
enumerable: true,
|
|
1648
|
-
get: function () { return
|
|
1648
|
+
get: function () { return chunkJDC3UINW_js.fetchProducts; }
|
|
1649
1649
|
});
|
|
1650
1650
|
Object.defineProperty(exports, "fetchServices", {
|
|
1651
1651
|
enumerable: true,
|
|
1652
|
-
get: function () { return
|
|
1652
|
+
get: function () { return chunkJDC3UINW_js.fetchServices; }
|
|
1653
1653
|
});
|
|
1654
1654
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
1655
1655
|
enumerable: true,
|
|
1656
|
-
get: function () { return
|
|
1656
|
+
get: function () { return chunkJDC3UINW_js.fetchUpcomingEvents; }
|
|
1657
1657
|
});
|
|
1658
1658
|
Object.defineProperty(exports, "formatDate", {
|
|
1659
1659
|
enumerable: true,
|
|
1660
|
-
get: function () { return
|
|
1660
|
+
get: function () { return chunkJDC3UINW_js.formatDate; }
|
|
1661
1661
|
});
|
|
1662
1662
|
Object.defineProperty(exports, "formatDateTime", {
|
|
1663
1663
|
enumerable: true,
|
|
1664
|
-
get: function () { return
|
|
1664
|
+
get: function () { return chunkJDC3UINW_js.formatDateTime; }
|
|
1665
1665
|
});
|
|
1666
1666
|
Object.defineProperty(exports, "formatPrice", {
|
|
1667
1667
|
enumerable: true,
|
|
1668
|
-
get: function () { return
|
|
1668
|
+
get: function () { return chunkJDC3UINW_js.formatPrice; }
|
|
1669
1669
|
});
|
|
1670
1670
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
1671
1671
|
enumerable: true,
|
|
1672
|
-
get: function () { return
|
|
1672
|
+
get: function () { return chunkJDC3UINW_js.getOfferingUrl; }
|
|
1673
1673
|
});
|
|
1674
1674
|
Object.defineProperty(exports, "registerForEvent", {
|
|
1675
1675
|
enumerable: true,
|
|
1676
|
-
get: function () { return
|
|
1676
|
+
get: function () { return chunkJDC3UINW_js.registerForEvent; }
|
|
1677
1677
|
});
|
|
1678
1678
|
Object.defineProperty(exports, "useEventModal", {
|
|
1679
1679
|
enumerable: true,
|
|
1680
|
-
get: function () { return
|
|
1680
|
+
get: function () { return chunkJDC3UINW_js.useEventModal; }
|
|
1681
1681
|
});
|
|
1682
1682
|
Object.defineProperty(exports, "BookingWidget", {
|
|
1683
1683
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ export { clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleMa
|
|
|
4
4
|
export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fetchManagedImages, listImageFiles, uploadImage } from './chunk-36Y7OWES.mjs';
|
|
5
5
|
export { TestimonialSection, fetchReviewStats, fetchReviews } from './chunk-APZMXRI3.mjs';
|
|
6
6
|
import './chunk-N24BPFF6.mjs';
|
|
7
|
-
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-
|
|
7
|
+
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-ULAQCW4X.mjs';
|
|
8
8
|
export { BookingWidget, createBooking, createSlotHold, detectTimezone, fetchAvailability, fetchAvailableDates, fetchBookingTypeDetails, fetchBookingTypes, formatDate as formatBookingDate, formatTime as formatBookingTime, formatDuration, releaseSlotHold } from './chunk-WW2DKGBM.mjs';
|
|
9
9
|
export { SetupWizard } from './chunk-IKIJEKU3.mjs';
|
|
10
10
|
import './chunk-VZMDH3R4.mjs';
|
|
@@ -36,6 +36,8 @@ interface CommerceOffering {
|
|
|
36
36
|
location?: string;
|
|
37
37
|
is_virtual?: boolean;
|
|
38
38
|
virtual_meeting_url?: string;
|
|
39
|
+
/** External URL for registration/tickets. When set, site-kit links externally instead of internal checkout. */
|
|
40
|
+
external_url?: string;
|
|
39
41
|
requires_booking?: boolean;
|
|
40
42
|
booking_lead_time_hours?: number;
|
|
41
43
|
category?: CommerceCategory;
|
|
@@ -36,6 +36,8 @@ interface CommerceOffering {
|
|
|
36
36
|
location?: string;
|
|
37
37
|
is_virtual?: boolean;
|
|
38
38
|
virtual_meeting_url?: string;
|
|
39
|
+
/** External URL for registration/tickets. When set, site-kit links externally instead of internal checkout. */
|
|
40
|
+
external_url?: string;
|
|
39
41
|
requires_booking?: boolean;
|
|
40
42
|
booking_lead_time_hours?: number;
|
|
41
43
|
category?: CommerceCategory;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FetchOfferingsOptions, C as CommerceOffering, q as FetchEventsOptions, h as CheckoutCustomer, b as CheckoutResult, i as OfferingCardProps, j as OfferingListProps, E as EventTileProps, U as UpcomingEventsProps, l as ProductEmbedProps, m as EventEmbedProps, n as CheckoutFormProps, R as RegistrationFormProps, c as CommerceSchedule } from './types-
|
|
1
|
+
import { F as FetchOfferingsOptions, C as CommerceOffering, q as FetchEventsOptions, h as CheckoutCustomer, b as CheckoutResult, i as OfferingCardProps, j as OfferingListProps, E as EventTileProps, U as UpcomingEventsProps, l as ProductEmbedProps, m as EventEmbedProps, n as CheckoutFormProps, R as RegistrationFormProps, c as CommerceSchedule } from './types-CyUfjlzS.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -139,6 +139,18 @@ interface ProcessorConfig {
|
|
|
139
139
|
* Returns public-safe values (app IDs, location IDs) for SDK initialization.
|
|
140
140
|
*/
|
|
141
141
|
declare function fetchProcessorConfig(): Promise<ProcessorConfig | null>;
|
|
142
|
+
/**
|
|
143
|
+
* Create a Stripe PaymentIntent for inline card payment (no redirect).
|
|
144
|
+
* Use with Stripe Elements on the frontend to collect and confirm card details directly.
|
|
145
|
+
* The existing payment_intent.succeeded webhook handles marking the sale as paid.
|
|
146
|
+
*/
|
|
147
|
+
declare function createPaymentIntent(options: CreateCheckoutOptions): Promise<{
|
|
148
|
+
success: boolean;
|
|
149
|
+
clientSecret?: string;
|
|
150
|
+
saleId?: string;
|
|
151
|
+
confirmationNumber?: string;
|
|
152
|
+
error?: string;
|
|
153
|
+
}>;
|
|
142
154
|
/**
|
|
143
155
|
* Create a checkout session for a product or service
|
|
144
156
|
* Supports both Stripe and Square based on project configuration
|
|
@@ -271,4 +283,4 @@ interface UseEventModalReturn {
|
|
|
271
283
|
}
|
|
272
284
|
declare function useEventModal(): UseEventModalReturn;
|
|
273
285
|
|
|
274
|
-
export {
|
|
286
|
+
export { formatPrice as A, formatDate as B, type CreateCheckoutOptions as C, formatDateTime as D, EventTile as E, formatTime as F, formatDateRange as G, getRelativeTimeUntil as H, getSpotsRemaining as I, isEventSoldOut as J, getOfferingUrl as K, OfferingCard as O, type ProcessorConfig as P, RegistrationForm as R, type ShippingAddress as S, UpcomingEvents as U, type ValidateAddressResult as V, fetchOffering as a, fetchLatestOffering as b, fetchProducts as c, fetchProductsPublic as d, fetchProductBySlug as e, fetchOfferings as f, fetchCategories as g, fetchServices as h, fetchUpcomingEvents as i, fetchNextEvent as j, fetchShippingRates as k, createCheckoutSession as l, createPaymentIntent as m, fetchActiveProcessor as n, fetchProcessorConfig as o, type ShippingRate as p, OfferingList as q, registerForEvent as r, ProductEmbed as s, EventEmbed as t, CheckoutForm as u, validateAddress as v, CalendarView as w, EventModal as x, EventCalendar as y, useEventModal as z };
|