@sonordev/site-kit 2.6.3 → 2.7.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-HSSKX77P.mjs → chunk-FN7ADGWH.mjs} +729 -5
- package/dist/chunk-FN7ADGWH.mjs.map +1 -0
- package/dist/{chunk-D5ES7H7E.js → chunk-KCA5OLS4.js} +729 -4
- package/dist/chunk-KCA5OLS4.js.map +1 -0
- package/dist/commerce/index.d.mts +1 -1
- package/dist/commerce/index.d.ts +1 -1
- package/dist/commerce/index.js +49 -45
- package/dist/commerce/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +29 -25
- package/dist/index.mjs +1 -1
- package/dist/{useEventModal-DvqBRau-.d.mts → useEventModal-4W_y1SYY.d.mts} +36 -3
- package/dist/{useEventModal-C4Dr4Psb.d.ts → useEventModal-CJLCmH5Y.d.ts} +36 -3
- package/package.json +1 -1
- package/dist/chunk-D5ES7H7E.js.map +0 -1
- package/dist/chunk-HSSKX77P.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CommerceOffering, a as CommerceVariant, b as CheckoutResult, S as SizeChart$1, c as CommerceSchedule } from '../types-B0xmgGw-.mjs';
|
|
2
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-B0xmgGw-.mjs';
|
|
3
|
-
export {
|
|
3
|
+
export { A as CalendarView, x as CheckoutForm, s as CheckoutLineItem, C as CreateCheckoutOptions, D as DiscountValidationResult, F as EventCalendar, y as EventCheckout, z as EventCheckoutProps, w as EventEmbed, B as EventModal, E as EventTile, O as OfferingCard, t as OfferingList, P as ProcessorConfig, u as ProductEmbed, R as RegistrationForm, S as ShippingAddress, q 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, I as formatDate, L as formatDateRange, J as formatDateTime, H as formatPrice, K as formatTime, T as getOfferingUrl, M as getRelativeTimeUntil, N as getSpotsRemaining, Q as isEventSoldOut, r as registerForEvent, G as useEventModal, v as validateAddress, p as validateDiscountCode } from '../useEventModal-4W_y1SYY.mjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React__default from 'react';
|
|
6
6
|
|
package/dist/commerce/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as CommerceOffering, a as CommerceVariant, b as CheckoutResult, S as SizeChart$1, c as CommerceSchedule } from '../types-B0xmgGw-.js';
|
|
2
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-B0xmgGw-.js';
|
|
3
|
-
export {
|
|
3
|
+
export { A as CalendarView, x as CheckoutForm, s as CheckoutLineItem, C as CreateCheckoutOptions, D as DiscountValidationResult, F as EventCalendar, y as EventCheckout, z as EventCheckoutProps, w as EventEmbed, B as EventModal, E as EventTile, O as OfferingCard, t as OfferingList, P as ProcessorConfig, u as ProductEmbed, R as RegistrationForm, S as ShippingAddress, q 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, I as formatDate, L as formatDateRange, J as formatDateTime, H as formatPrice, K as formatTime, T as getOfferingUrl, M as getRelativeTimeUntil, N as getSpotsRemaining, Q as isEventSoldOut, r as registerForEvent, G as useEventModal, v as validateAddress, p as validateDiscountCode } from '../useEventModal-CJLCmH5Y.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import React__default from 'react';
|
|
6
6
|
|
package/dist/commerce/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkKCA5OLS4_js = require('../chunk-KCA5OLS4.js');
|
|
5
5
|
require('../chunk-LWJDQ2BT.js');
|
|
6
6
|
require('../chunk-EJXWFTKA.js');
|
|
7
7
|
require('../chunk-ZSMWDLMK.js');
|
|
@@ -10,179 +10,183 @@ require('../chunk-ZSMWDLMK.js');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "CalendarView", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkKCA5OLS4_js.CalendarView; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkKCA5OLS4_js.CheckoutForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "EventCalendar", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkKCA5OLS4_js.EventCalendar; }
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(exports, "EventCheckout", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return chunkKCA5OLS4_js.EventCheckout; }
|
|
22
26
|
});
|
|
23
27
|
Object.defineProperty(exports, "EventEmbed", {
|
|
24
28
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkKCA5OLS4_js.EventEmbed; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "EventModal", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkKCA5OLS4_js.EventModal; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "EventTile", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkKCA5OLS4_js.EventTile; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "EventsWidget", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkKCA5OLS4_js.EventsWidget; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "OfferingCard", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkKCA5OLS4_js.OfferingCard; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "OfferingList", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkKCA5OLS4_js.OfferingList; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "ProductDetail", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkKCA5OLS4_js.ProductDetail; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkKCA5OLS4_js.ProductEmbed; }
|
|
54
58
|
});
|
|
55
59
|
Object.defineProperty(exports, "ProductGrid", {
|
|
56
60
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkKCA5OLS4_js.ProductGrid; }
|
|
58
62
|
});
|
|
59
63
|
Object.defineProperty(exports, "ProductPage", {
|
|
60
64
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkKCA5OLS4_js.ProductPage; }
|
|
62
66
|
});
|
|
63
67
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
64
68
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkKCA5OLS4_js.RegistrationForm; }
|
|
66
70
|
});
|
|
67
71
|
Object.defineProperty(exports, "SizeChart", {
|
|
68
72
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkKCA5OLS4_js.SizeChart; }
|
|
70
74
|
});
|
|
71
75
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
72
76
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkKCA5OLS4_js.UpcomingEvents; }
|
|
74
78
|
});
|
|
75
79
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
76
80
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkKCA5OLS4_js.createCheckoutSession; }
|
|
78
82
|
});
|
|
79
83
|
Object.defineProperty(exports, "createPaymentIntent", {
|
|
80
84
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkKCA5OLS4_js.createPaymentIntent; }
|
|
82
86
|
});
|
|
83
87
|
Object.defineProperty(exports, "fetchActiveProcessor", {
|
|
84
88
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkKCA5OLS4_js.fetchActiveProcessor; }
|
|
86
90
|
});
|
|
87
91
|
Object.defineProperty(exports, "fetchCategories", {
|
|
88
92
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkKCA5OLS4_js.fetchCategories; }
|
|
90
94
|
});
|
|
91
95
|
Object.defineProperty(exports, "fetchLatestOffering", {
|
|
92
96
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkKCA5OLS4_js.fetchLatestOffering; }
|
|
94
98
|
});
|
|
95
99
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
96
100
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkKCA5OLS4_js.fetchNextEvent; }
|
|
98
102
|
});
|
|
99
103
|
Object.defineProperty(exports, "fetchOffering", {
|
|
100
104
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkKCA5OLS4_js.fetchOffering; }
|
|
102
106
|
});
|
|
103
107
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
104
108
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkKCA5OLS4_js.fetchOfferings; }
|
|
106
110
|
});
|
|
107
111
|
Object.defineProperty(exports, "fetchProcessorConfig", {
|
|
108
112
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkKCA5OLS4_js.fetchProcessorConfig; }
|
|
110
114
|
});
|
|
111
115
|
Object.defineProperty(exports, "fetchProductBySlug", {
|
|
112
116
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkKCA5OLS4_js.fetchProductBySlug; }
|
|
114
118
|
});
|
|
115
119
|
Object.defineProperty(exports, "fetchProducts", {
|
|
116
120
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkKCA5OLS4_js.fetchProducts; }
|
|
118
122
|
});
|
|
119
123
|
Object.defineProperty(exports, "fetchProductsPublic", {
|
|
120
124
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkKCA5OLS4_js.fetchProductsPublic; }
|
|
122
126
|
});
|
|
123
127
|
Object.defineProperty(exports, "fetchServices", {
|
|
124
128
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkKCA5OLS4_js.fetchServices; }
|
|
126
130
|
});
|
|
127
131
|
Object.defineProperty(exports, "fetchShippingRates", {
|
|
128
132
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkKCA5OLS4_js.fetchShippingRates; }
|
|
130
134
|
});
|
|
131
135
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
132
136
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkKCA5OLS4_js.fetchUpcomingEvents; }
|
|
134
138
|
});
|
|
135
139
|
Object.defineProperty(exports, "formatDate", {
|
|
136
140
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkKCA5OLS4_js.formatDate; }
|
|
138
142
|
});
|
|
139
143
|
Object.defineProperty(exports, "formatDateRange", {
|
|
140
144
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkKCA5OLS4_js.formatDateRange; }
|
|
142
146
|
});
|
|
143
147
|
Object.defineProperty(exports, "formatDateTime", {
|
|
144
148
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkKCA5OLS4_js.formatDateTime; }
|
|
146
150
|
});
|
|
147
151
|
Object.defineProperty(exports, "formatPrice", {
|
|
148
152
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkKCA5OLS4_js.formatPrice; }
|
|
150
154
|
});
|
|
151
155
|
Object.defineProperty(exports, "formatTime", {
|
|
152
156
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkKCA5OLS4_js.formatTime; }
|
|
154
158
|
});
|
|
155
159
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
156
160
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkKCA5OLS4_js.getOfferingUrl; }
|
|
158
162
|
});
|
|
159
163
|
Object.defineProperty(exports, "getRelativeTimeUntil", {
|
|
160
164
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkKCA5OLS4_js.getRelativeTimeUntil; }
|
|
162
166
|
});
|
|
163
167
|
Object.defineProperty(exports, "getSpotsRemaining", {
|
|
164
168
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkKCA5OLS4_js.getSpotsRemaining; }
|
|
166
170
|
});
|
|
167
171
|
Object.defineProperty(exports, "isEventSoldOut", {
|
|
168
172
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkKCA5OLS4_js.isEventSoldOut; }
|
|
170
174
|
});
|
|
171
175
|
Object.defineProperty(exports, "registerForEvent", {
|
|
172
176
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkKCA5OLS4_js.registerForEvent; }
|
|
174
178
|
});
|
|
175
179
|
Object.defineProperty(exports, "useEventModal", {
|
|
176
180
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkKCA5OLS4_js.useEventModal; }
|
|
178
182
|
});
|
|
179
183
|
Object.defineProperty(exports, "validateAddress", {
|
|
180
184
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkKCA5OLS4_js.validateAddress; }
|
|
182
186
|
});
|
|
183
187
|
Object.defineProperty(exports, "validateDiscountCode", {
|
|
184
188
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkKCA5OLS4_js.validateDiscountCode; }
|
|
186
190
|
});
|
|
187
191
|
//# sourceMappingURL=index.js.map
|
|
188
192
|
//# 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, 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, validateDiscountCode } from '../chunk-
|
|
2
|
+
export { CalendarView, CheckoutForm, EventCalendar, EventCheckout, 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, validateDiscountCode } from '../chunk-FN7ADGWH.mjs';
|
|
3
3
|
import '../chunk-W5QMQMUS.mjs';
|
|
4
4
|
import '../chunk-6EEXEVSE.mjs';
|
|
5
5
|
import '../chunk-4XPGGLVP.mjs';
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ export { C as ChatConfig, c as EngageElement, d as WidgetConfig } from './types-
|
|
|
4
4
|
export { a as FormField, F as FormSubmission, M as ManagedFormConfig } from './types-0dmq3k20.mjs';
|
|
5
5
|
export { a as BlogAuthor, b as BlogCategory, B as BlogPostType } from './types-5P5B9RgV.mjs';
|
|
6
6
|
export { g as Cart, f as CartItem, e as CommerceCategory, C as CommerceOffering, c as CommerceSchedule, a as CommerceVariant, O as OfferingType } from './types-B0xmgGw-.mjs';
|
|
7
|
-
export {
|
|
7
|
+
export { A as CalendarView, x as CheckoutForm, s as CheckoutLineItem, F as EventCalendar, y as EventCheckout, z as EventCheckoutProps, w as EventEmbed, B as EventModal, E as EventTile, O as OfferingCard, t as OfferingList, u 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, I as formatDate, J as formatDateTime, H as formatPrice, T as getOfferingUrl, r as registerForEvent, G as useEventModal } from './useEventModal-4W_y1SYY.mjs';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import React__default from 'react';
|
|
10
10
|
export { RedirectConfig, RedirectRule, clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './redirects/index.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { C as ChatConfig, c as EngageElement, d as WidgetConfig } from './types-
|
|
|
4
4
|
export { a as FormField, F as FormSubmission, M as ManagedFormConfig } from './types-0dmq3k20.js';
|
|
5
5
|
export { a as BlogAuthor, b as BlogCategory, B as BlogPostType } from './types-5P5B9RgV.js';
|
|
6
6
|
export { g as Cart, f as CartItem, e as CommerceCategory, C as CommerceOffering, c as CommerceSchedule, a as CommerceVariant, O as OfferingType } from './types-B0xmgGw-.js';
|
|
7
|
-
export {
|
|
7
|
+
export { A as CalendarView, x as CheckoutForm, s as CheckoutLineItem, F as EventCalendar, y as EventCheckout, z as EventCheckoutProps, w as EventEmbed, B as EventModal, E as EventTile, O as OfferingCard, t as OfferingList, u 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, I as formatDate, J as formatDateTime, H as formatPrice, T as getOfferingUrl, r as registerForEvent, G as useEventModal } from './useEventModal-CJLCmH5Y.js';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
import React__default from 'react';
|
|
10
10
|
export { RedirectConfig, RedirectRule, clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './redirects/index.js';
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var chunkIFVMZFNT_js = require('./chunk-IFVMZFNT.js');
|
|
|
5
5
|
require('./chunk-GCPPXUAI.js');
|
|
6
6
|
var chunkEATGSR46_js = require('./chunk-EATGSR46.js');
|
|
7
7
|
require('./chunk-JP5WGL75.js');
|
|
8
|
-
var
|
|
8
|
+
var chunkKCA5OLS4_js = require('./chunk-KCA5OLS4.js');
|
|
9
9
|
var chunkZQINTH5K_js = require('./chunk-ZQINTH5K.js');
|
|
10
10
|
require('./chunk-LWJDQ2BT.js');
|
|
11
11
|
require('./chunk-EJXWFTKA.js');
|
|
@@ -214,99 +214,103 @@ Object.defineProperty(exports, "fetchReviews", {
|
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "CalendarView", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkKCA5OLS4_js.CalendarView; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkKCA5OLS4_js.CheckoutForm; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "EventCalendar", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkKCA5OLS4_js.EventCalendar; }
|
|
226
|
+
});
|
|
227
|
+
Object.defineProperty(exports, "EventCheckout", {
|
|
228
|
+
enumerable: true,
|
|
229
|
+
get: function () { return chunkKCA5OLS4_js.EventCheckout; }
|
|
226
230
|
});
|
|
227
231
|
Object.defineProperty(exports, "EventEmbed", {
|
|
228
232
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkKCA5OLS4_js.EventEmbed; }
|
|
230
234
|
});
|
|
231
235
|
Object.defineProperty(exports, "EventModal", {
|
|
232
236
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkKCA5OLS4_js.EventModal; }
|
|
234
238
|
});
|
|
235
239
|
Object.defineProperty(exports, "EventTile", {
|
|
236
240
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkKCA5OLS4_js.EventTile; }
|
|
238
242
|
});
|
|
239
243
|
Object.defineProperty(exports, "OfferingCard", {
|
|
240
244
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkKCA5OLS4_js.OfferingCard; }
|
|
242
246
|
});
|
|
243
247
|
Object.defineProperty(exports, "OfferingList", {
|
|
244
248
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkKCA5OLS4_js.OfferingList; }
|
|
246
250
|
});
|
|
247
251
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
248
252
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkKCA5OLS4_js.ProductEmbed; }
|
|
250
254
|
});
|
|
251
255
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
252
256
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkKCA5OLS4_js.RegistrationForm; }
|
|
254
258
|
});
|
|
255
259
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
256
260
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkKCA5OLS4_js.UpcomingEvents; }
|
|
258
262
|
});
|
|
259
263
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
260
264
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkKCA5OLS4_js.createCheckoutSession; }
|
|
262
266
|
});
|
|
263
267
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
264
268
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkKCA5OLS4_js.fetchNextEvent; }
|
|
266
270
|
});
|
|
267
271
|
Object.defineProperty(exports, "fetchOffering", {
|
|
268
272
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkKCA5OLS4_js.fetchOffering; }
|
|
270
274
|
});
|
|
271
275
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
272
276
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkKCA5OLS4_js.fetchOfferings; }
|
|
274
278
|
});
|
|
275
279
|
Object.defineProperty(exports, "fetchProducts", {
|
|
276
280
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkKCA5OLS4_js.fetchProducts; }
|
|
278
282
|
});
|
|
279
283
|
Object.defineProperty(exports, "fetchServices", {
|
|
280
284
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkKCA5OLS4_js.fetchServices; }
|
|
282
286
|
});
|
|
283
287
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
284
288
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkKCA5OLS4_js.fetchUpcomingEvents; }
|
|
286
290
|
});
|
|
287
291
|
Object.defineProperty(exports, "formatDate", {
|
|
288
292
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkKCA5OLS4_js.formatDate; }
|
|
290
294
|
});
|
|
291
295
|
Object.defineProperty(exports, "formatDateTime", {
|
|
292
296
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkKCA5OLS4_js.formatDateTime; }
|
|
294
298
|
});
|
|
295
299
|
Object.defineProperty(exports, "formatPrice", {
|
|
296
300
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunkKCA5OLS4_js.formatPrice; }
|
|
298
302
|
});
|
|
299
303
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
300
304
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkKCA5OLS4_js.getOfferingUrl; }
|
|
302
306
|
});
|
|
303
307
|
Object.defineProperty(exports, "registerForEvent", {
|
|
304
308
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkKCA5OLS4_js.registerForEvent; }
|
|
306
310
|
});
|
|
307
311
|
Object.defineProperty(exports, "useEventModal", {
|
|
308
312
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkKCA5OLS4_js.useEventModal; }
|
|
310
314
|
});
|
|
311
315
|
Object.defineProperty(exports, "BookingWidget", {
|
|
312
316
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fet
|
|
|
3
3
|
import './chunk-CU6OGBKK.mjs';
|
|
4
4
|
export { TestimonialSection, fetchReviewStats, fetchReviews } from './chunk-UUDE46TZ.mjs';
|
|
5
5
|
import './chunk-B22WSN4L.mjs';
|
|
6
|
-
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 { CalendarView, CheckoutForm, EventCalendar, EventCheckout, EventEmbed, EventModal, EventTile, OfferingCard, OfferingList, ProductEmbed, RegistrationForm, UpcomingEvents, createCheckoutSession, fetchNextEvent, fetchOffering, fetchOfferings, fetchProducts, fetchServices, fetchUpcomingEvents, formatDate, formatDateTime, formatPrice, getOfferingUrl, registerForEvent, useEventModal } from './chunk-FN7ADGWH.mjs';
|
|
7
7
|
export { BookingWidget, createBooking, createSlotHold, detectTimezone, fetchAvailability, fetchAvailableDates, fetchBookingTypeDetails, fetchBookingTypes, formatDate as formatBookingDate, formatTime as formatBookingTime, formatDuration, releaseSlotHold } from './chunk-AT2ZF3TL.mjs';
|
|
8
8
|
import './chunk-W5QMQMUS.mjs';
|
|
9
9
|
import './chunk-6EEXEVSE.mjs';
|
|
@@ -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,
|
|
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, c as CommerceSchedule, R as RegistrationFormProps } from './types-B0xmgGw-.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -106,11 +106,23 @@ declare function validateAddress(address: Omit<ShippingAddress, 'name' | 'phone'
|
|
|
106
106
|
*/
|
|
107
107
|
declare function fetchActiveProcessor(): Promise<'stripe' | 'square' | null>;
|
|
108
108
|
declare function registerForEvent(eventId: string, scheduleId: string | undefined, customer: CheckoutCustomer): Promise<CheckoutResult>;
|
|
109
|
-
interface
|
|
109
|
+
interface CheckoutLineItem {
|
|
110
110
|
offeringId: string;
|
|
111
111
|
variantId?: string;
|
|
112
112
|
scheduleId?: string;
|
|
113
|
+
quantity: number;
|
|
114
|
+
}
|
|
115
|
+
interface CreateCheckoutOptions {
|
|
116
|
+
offeringId?: string;
|
|
117
|
+
variantId?: string;
|
|
118
|
+
scheduleId?: string;
|
|
113
119
|
quantity?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Multi-line cart (v1: events only, all items must share offeringId + scheduleId).
|
|
122
|
+
* When provided, takes precedence over offeringId/variantId/quantity. Requires
|
|
123
|
+
* `sourceId` (Square Web Payments SDK nonce) — Square inline only in v1.
|
|
124
|
+
*/
|
|
125
|
+
lineItems?: CheckoutLineItem[];
|
|
114
126
|
customer?: CheckoutCustomer;
|
|
115
127
|
successUrl?: string;
|
|
116
128
|
cancelUrl?: string;
|
|
@@ -190,6 +202,27 @@ category, variant, showDate, showTime, showLocation, showCapacity, showPrice, sh
|
|
|
190
202
|
declare function CheckoutForm({ offering, scheduleId, variantId, quantity: initialQuantity, mode, // 'checkout' | 'register'
|
|
191
203
|
showQuantity, submitText, onSuccess, onError, className, formClassName, inputClassName, buttonClassName, }: CheckoutFormProps): react_jsx_runtime.JSX.Element;
|
|
192
204
|
|
|
205
|
+
interface EventCheckoutProps {
|
|
206
|
+
/** Event offering — must include `variants` (multi-tier) or have a base price (single-tier). */
|
|
207
|
+
event: CommerceOffering;
|
|
208
|
+
/** Specific schedule to book. Defaults to first upcoming schedule on the event. */
|
|
209
|
+
schedule?: CommerceSchedule;
|
|
210
|
+
/** Collect a phone number (defaults to true; tickets often need contact). */
|
|
211
|
+
collectPhone?: boolean;
|
|
212
|
+
/** Maximum quantity per individual variant row (default 10). */
|
|
213
|
+
maxPerVariant?: number;
|
|
214
|
+
/** Card label override (e.g. "Card details" vs "Payment"). */
|
|
215
|
+
cardLabel?: string;
|
|
216
|
+
/** Submit button text override. Falls back to "Buy {total}". */
|
|
217
|
+
submitText?: string;
|
|
218
|
+
/** Success callback after a successful charge. */
|
|
219
|
+
onSuccess?: (result: CheckoutResult) => void;
|
|
220
|
+
/** Error callback. */
|
|
221
|
+
onError?: (error: string) => void;
|
|
222
|
+
className?: string;
|
|
223
|
+
}
|
|
224
|
+
declare function EventCheckout({ event, schedule: propSchedule, collectPhone, maxPerVariant, cardLabel, submitText, onSuccess, onError, className, }: EventCheckoutProps): react_jsx_runtime.JSX.Element;
|
|
225
|
+
|
|
193
226
|
declare function RegistrationForm({ event, scheduleId, title, submitText, successMessage, collectPhone, additionalFields, onSuccess, onError, className, formClassName, inputClassName, buttonClassName, }: RegistrationFormProps): react_jsx_runtime.JSX.Element;
|
|
194
227
|
|
|
195
228
|
interface CalendarViewProps {
|
|
@@ -299,4 +332,4 @@ interface UseEventModalReturn {
|
|
|
299
332
|
}
|
|
300
333
|
declare function useEventModal(): UseEventModalReturn;
|
|
301
334
|
|
|
302
|
-
export {
|
|
335
|
+
export { CalendarView as A, EventModal as B, type CreateCheckoutOptions as C, type DiscountValidationResult as D, EventTile as E, EventCalendar as F, useEventModal as G, formatPrice as H, formatDate as I, formatDateTime as J, formatTime as K, formatDateRange as L, getRelativeTimeUntil as M, getSpotsRemaining as N, OfferingCard as O, type ProcessorConfig as P, isEventSoldOut as Q, RegistrationForm as R, type ShippingAddress as S, getOfferingUrl as T, 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, validateDiscountCode as p, type ShippingRate as q, registerForEvent as r, type CheckoutLineItem as s, OfferingList as t, ProductEmbed as u, validateAddress as v, EventEmbed as w, CheckoutForm as x, EventCheckout as y, type EventCheckoutProps as z };
|
|
@@ -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,
|
|
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, c as CommerceSchedule, R as RegistrationFormProps } from './types-B0xmgGw-.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -106,11 +106,23 @@ declare function validateAddress(address: Omit<ShippingAddress, 'name' | 'phone'
|
|
|
106
106
|
*/
|
|
107
107
|
declare function fetchActiveProcessor(): Promise<'stripe' | 'square' | null>;
|
|
108
108
|
declare function registerForEvent(eventId: string, scheduleId: string | undefined, customer: CheckoutCustomer): Promise<CheckoutResult>;
|
|
109
|
-
interface
|
|
109
|
+
interface CheckoutLineItem {
|
|
110
110
|
offeringId: string;
|
|
111
111
|
variantId?: string;
|
|
112
112
|
scheduleId?: string;
|
|
113
|
+
quantity: number;
|
|
114
|
+
}
|
|
115
|
+
interface CreateCheckoutOptions {
|
|
116
|
+
offeringId?: string;
|
|
117
|
+
variantId?: string;
|
|
118
|
+
scheduleId?: string;
|
|
113
119
|
quantity?: number;
|
|
120
|
+
/**
|
|
121
|
+
* Multi-line cart (v1: events only, all items must share offeringId + scheduleId).
|
|
122
|
+
* When provided, takes precedence over offeringId/variantId/quantity. Requires
|
|
123
|
+
* `sourceId` (Square Web Payments SDK nonce) — Square inline only in v1.
|
|
124
|
+
*/
|
|
125
|
+
lineItems?: CheckoutLineItem[];
|
|
114
126
|
customer?: CheckoutCustomer;
|
|
115
127
|
successUrl?: string;
|
|
116
128
|
cancelUrl?: string;
|
|
@@ -190,6 +202,27 @@ category, variant, showDate, showTime, showLocation, showCapacity, showPrice, sh
|
|
|
190
202
|
declare function CheckoutForm({ offering, scheduleId, variantId, quantity: initialQuantity, mode, // 'checkout' | 'register'
|
|
191
203
|
showQuantity, submitText, onSuccess, onError, className, formClassName, inputClassName, buttonClassName, }: CheckoutFormProps): react_jsx_runtime.JSX.Element;
|
|
192
204
|
|
|
205
|
+
interface EventCheckoutProps {
|
|
206
|
+
/** Event offering — must include `variants` (multi-tier) or have a base price (single-tier). */
|
|
207
|
+
event: CommerceOffering;
|
|
208
|
+
/** Specific schedule to book. Defaults to first upcoming schedule on the event. */
|
|
209
|
+
schedule?: CommerceSchedule;
|
|
210
|
+
/** Collect a phone number (defaults to true; tickets often need contact). */
|
|
211
|
+
collectPhone?: boolean;
|
|
212
|
+
/** Maximum quantity per individual variant row (default 10). */
|
|
213
|
+
maxPerVariant?: number;
|
|
214
|
+
/** Card label override (e.g. "Card details" vs "Payment"). */
|
|
215
|
+
cardLabel?: string;
|
|
216
|
+
/** Submit button text override. Falls back to "Buy {total}". */
|
|
217
|
+
submitText?: string;
|
|
218
|
+
/** Success callback after a successful charge. */
|
|
219
|
+
onSuccess?: (result: CheckoutResult) => void;
|
|
220
|
+
/** Error callback. */
|
|
221
|
+
onError?: (error: string) => void;
|
|
222
|
+
className?: string;
|
|
223
|
+
}
|
|
224
|
+
declare function EventCheckout({ event, schedule: propSchedule, collectPhone, maxPerVariant, cardLabel, submitText, onSuccess, onError, className, }: EventCheckoutProps): react_jsx_runtime.JSX.Element;
|
|
225
|
+
|
|
193
226
|
declare function RegistrationForm({ event, scheduleId, title, submitText, successMessage, collectPhone, additionalFields, onSuccess, onError, className, formClassName, inputClassName, buttonClassName, }: RegistrationFormProps): react_jsx_runtime.JSX.Element;
|
|
194
227
|
|
|
195
228
|
interface CalendarViewProps {
|
|
@@ -299,4 +332,4 @@ interface UseEventModalReturn {
|
|
|
299
332
|
}
|
|
300
333
|
declare function useEventModal(): UseEventModalReturn;
|
|
301
334
|
|
|
302
|
-
export {
|
|
335
|
+
export { CalendarView as A, EventModal as B, type CreateCheckoutOptions as C, type DiscountValidationResult as D, EventTile as E, EventCalendar as F, useEventModal as G, formatPrice as H, formatDate as I, formatDateTime as J, formatTime as K, formatDateRange as L, getRelativeTimeUntil as M, getSpotsRemaining as N, OfferingCard as O, type ProcessorConfig as P, isEventSoldOut as Q, RegistrationForm as R, type ShippingAddress as S, getOfferingUrl as T, 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, validateDiscountCode as p, type ShippingRate as q, registerForEvent as r, type CheckoutLineItem as s, OfferingList as t, ProductEmbed as u, validateAddress as v, EventEmbed as w, CheckoutForm as x, EventCheckout as y, type EventCheckoutProps as z };
|