@sonordev/site-kit 2.6.1 → 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.
@@ -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 { x as CalendarView, w as CheckoutForm, C as CreateCheckoutOptions, D as DiscountValidationResult, z as EventCalendar, u as EventEmbed, y as EventModal, E as EventTile, O as OfferingCard, s as OfferingList, P as ProcessorConfig, t 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, F as formatDate, I as formatDateRange, G as formatDateTime, B as formatPrice, H as formatTime, M as getOfferingUrl, J as getRelativeTimeUntil, K as getSpotsRemaining, L as isEventSoldOut, r as registerForEvent, A as useEventModal, v as validateAddress, p as validateDiscountCode } from '../useEventModal-DvqBRau-.mjs';
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
 
@@ -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 { x as CalendarView, w as CheckoutForm, C as CreateCheckoutOptions, D as DiscountValidationResult, z as EventCalendar, u as EventEmbed, y as EventModal, E as EventTile, O as OfferingCard, s as OfferingList, P as ProcessorConfig, t 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, F as formatDate, I as formatDateRange, G as formatDateTime, B as formatPrice, H as formatTime, M as getOfferingUrl, J as getRelativeTimeUntil, K as getSpotsRemaining, L as isEventSoldOut, r as registerForEvent, A as useEventModal, v as validateAddress, p as validateDiscountCode } from '../useEventModal-C4Dr4Psb.js';
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
 
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkD5ES7H7E_js = require('../chunk-D5ES7H7E.js');
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 chunkD5ES7H7E_js.CalendarView; }
13
+ get: function () { return chunkKCA5OLS4_js.CalendarView; }
14
14
  });
15
15
  Object.defineProperty(exports, "CheckoutForm", {
16
16
  enumerable: true,
17
- get: function () { return chunkD5ES7H7E_js.CheckoutForm; }
17
+ get: function () { return chunkKCA5OLS4_js.CheckoutForm; }
18
18
  });
19
19
  Object.defineProperty(exports, "EventCalendar", {
20
20
  enumerable: true,
21
- get: function () { return chunkD5ES7H7E_js.EventCalendar; }
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 chunkD5ES7H7E_js.EventEmbed; }
29
+ get: function () { return chunkKCA5OLS4_js.EventEmbed; }
26
30
  });
27
31
  Object.defineProperty(exports, "EventModal", {
28
32
  enumerable: true,
29
- get: function () { return chunkD5ES7H7E_js.EventModal; }
33
+ get: function () { return chunkKCA5OLS4_js.EventModal; }
30
34
  });
31
35
  Object.defineProperty(exports, "EventTile", {
32
36
  enumerable: true,
33
- get: function () { return chunkD5ES7H7E_js.EventTile; }
37
+ get: function () { return chunkKCA5OLS4_js.EventTile; }
34
38
  });
35
39
  Object.defineProperty(exports, "EventsWidget", {
36
40
  enumerable: true,
37
- get: function () { return chunkD5ES7H7E_js.EventsWidget; }
41
+ get: function () { return chunkKCA5OLS4_js.EventsWidget; }
38
42
  });
39
43
  Object.defineProperty(exports, "OfferingCard", {
40
44
  enumerable: true,
41
- get: function () { return chunkD5ES7H7E_js.OfferingCard; }
45
+ get: function () { return chunkKCA5OLS4_js.OfferingCard; }
42
46
  });
43
47
  Object.defineProperty(exports, "OfferingList", {
44
48
  enumerable: true,
45
- get: function () { return chunkD5ES7H7E_js.OfferingList; }
49
+ get: function () { return chunkKCA5OLS4_js.OfferingList; }
46
50
  });
47
51
  Object.defineProperty(exports, "ProductDetail", {
48
52
  enumerable: true,
49
- get: function () { return chunkD5ES7H7E_js.ProductDetail; }
53
+ get: function () { return chunkKCA5OLS4_js.ProductDetail; }
50
54
  });
51
55
  Object.defineProperty(exports, "ProductEmbed", {
52
56
  enumerable: true,
53
- get: function () { return chunkD5ES7H7E_js.ProductEmbed; }
57
+ get: function () { return chunkKCA5OLS4_js.ProductEmbed; }
54
58
  });
55
59
  Object.defineProperty(exports, "ProductGrid", {
56
60
  enumerable: true,
57
- get: function () { return chunkD5ES7H7E_js.ProductGrid; }
61
+ get: function () { return chunkKCA5OLS4_js.ProductGrid; }
58
62
  });
59
63
  Object.defineProperty(exports, "ProductPage", {
60
64
  enumerable: true,
61
- get: function () { return chunkD5ES7H7E_js.ProductPage; }
65
+ get: function () { return chunkKCA5OLS4_js.ProductPage; }
62
66
  });
63
67
  Object.defineProperty(exports, "RegistrationForm", {
64
68
  enumerable: true,
65
- get: function () { return chunkD5ES7H7E_js.RegistrationForm; }
69
+ get: function () { return chunkKCA5OLS4_js.RegistrationForm; }
66
70
  });
67
71
  Object.defineProperty(exports, "SizeChart", {
68
72
  enumerable: true,
69
- get: function () { return chunkD5ES7H7E_js.SizeChart; }
73
+ get: function () { return chunkKCA5OLS4_js.SizeChart; }
70
74
  });
71
75
  Object.defineProperty(exports, "UpcomingEvents", {
72
76
  enumerable: true,
73
- get: function () { return chunkD5ES7H7E_js.UpcomingEvents; }
77
+ get: function () { return chunkKCA5OLS4_js.UpcomingEvents; }
74
78
  });
75
79
  Object.defineProperty(exports, "createCheckoutSession", {
76
80
  enumerable: true,
77
- get: function () { return chunkD5ES7H7E_js.createCheckoutSession; }
81
+ get: function () { return chunkKCA5OLS4_js.createCheckoutSession; }
78
82
  });
79
83
  Object.defineProperty(exports, "createPaymentIntent", {
80
84
  enumerable: true,
81
- get: function () { return chunkD5ES7H7E_js.createPaymentIntent; }
85
+ get: function () { return chunkKCA5OLS4_js.createPaymentIntent; }
82
86
  });
83
87
  Object.defineProperty(exports, "fetchActiveProcessor", {
84
88
  enumerable: true,
85
- get: function () { return chunkD5ES7H7E_js.fetchActiveProcessor; }
89
+ get: function () { return chunkKCA5OLS4_js.fetchActiveProcessor; }
86
90
  });
87
91
  Object.defineProperty(exports, "fetchCategories", {
88
92
  enumerable: true,
89
- get: function () { return chunkD5ES7H7E_js.fetchCategories; }
93
+ get: function () { return chunkKCA5OLS4_js.fetchCategories; }
90
94
  });
91
95
  Object.defineProperty(exports, "fetchLatestOffering", {
92
96
  enumerable: true,
93
- get: function () { return chunkD5ES7H7E_js.fetchLatestOffering; }
97
+ get: function () { return chunkKCA5OLS4_js.fetchLatestOffering; }
94
98
  });
95
99
  Object.defineProperty(exports, "fetchNextEvent", {
96
100
  enumerable: true,
97
- get: function () { return chunkD5ES7H7E_js.fetchNextEvent; }
101
+ get: function () { return chunkKCA5OLS4_js.fetchNextEvent; }
98
102
  });
99
103
  Object.defineProperty(exports, "fetchOffering", {
100
104
  enumerable: true,
101
- get: function () { return chunkD5ES7H7E_js.fetchOffering; }
105
+ get: function () { return chunkKCA5OLS4_js.fetchOffering; }
102
106
  });
103
107
  Object.defineProperty(exports, "fetchOfferings", {
104
108
  enumerable: true,
105
- get: function () { return chunkD5ES7H7E_js.fetchOfferings; }
109
+ get: function () { return chunkKCA5OLS4_js.fetchOfferings; }
106
110
  });
107
111
  Object.defineProperty(exports, "fetchProcessorConfig", {
108
112
  enumerable: true,
109
- get: function () { return chunkD5ES7H7E_js.fetchProcessorConfig; }
113
+ get: function () { return chunkKCA5OLS4_js.fetchProcessorConfig; }
110
114
  });
111
115
  Object.defineProperty(exports, "fetchProductBySlug", {
112
116
  enumerable: true,
113
- get: function () { return chunkD5ES7H7E_js.fetchProductBySlug; }
117
+ get: function () { return chunkKCA5OLS4_js.fetchProductBySlug; }
114
118
  });
115
119
  Object.defineProperty(exports, "fetchProducts", {
116
120
  enumerable: true,
117
- get: function () { return chunkD5ES7H7E_js.fetchProducts; }
121
+ get: function () { return chunkKCA5OLS4_js.fetchProducts; }
118
122
  });
119
123
  Object.defineProperty(exports, "fetchProductsPublic", {
120
124
  enumerable: true,
121
- get: function () { return chunkD5ES7H7E_js.fetchProductsPublic; }
125
+ get: function () { return chunkKCA5OLS4_js.fetchProductsPublic; }
122
126
  });
123
127
  Object.defineProperty(exports, "fetchServices", {
124
128
  enumerable: true,
125
- get: function () { return chunkD5ES7H7E_js.fetchServices; }
129
+ get: function () { return chunkKCA5OLS4_js.fetchServices; }
126
130
  });
127
131
  Object.defineProperty(exports, "fetchShippingRates", {
128
132
  enumerable: true,
129
- get: function () { return chunkD5ES7H7E_js.fetchShippingRates; }
133
+ get: function () { return chunkKCA5OLS4_js.fetchShippingRates; }
130
134
  });
131
135
  Object.defineProperty(exports, "fetchUpcomingEvents", {
132
136
  enumerable: true,
133
- get: function () { return chunkD5ES7H7E_js.fetchUpcomingEvents; }
137
+ get: function () { return chunkKCA5OLS4_js.fetchUpcomingEvents; }
134
138
  });
135
139
  Object.defineProperty(exports, "formatDate", {
136
140
  enumerable: true,
137
- get: function () { return chunkD5ES7H7E_js.formatDate; }
141
+ get: function () { return chunkKCA5OLS4_js.formatDate; }
138
142
  });
139
143
  Object.defineProperty(exports, "formatDateRange", {
140
144
  enumerable: true,
141
- get: function () { return chunkD5ES7H7E_js.formatDateRange; }
145
+ get: function () { return chunkKCA5OLS4_js.formatDateRange; }
142
146
  });
143
147
  Object.defineProperty(exports, "formatDateTime", {
144
148
  enumerable: true,
145
- get: function () { return chunkD5ES7H7E_js.formatDateTime; }
149
+ get: function () { return chunkKCA5OLS4_js.formatDateTime; }
146
150
  });
147
151
  Object.defineProperty(exports, "formatPrice", {
148
152
  enumerable: true,
149
- get: function () { return chunkD5ES7H7E_js.formatPrice; }
153
+ get: function () { return chunkKCA5OLS4_js.formatPrice; }
150
154
  });
151
155
  Object.defineProperty(exports, "formatTime", {
152
156
  enumerable: true,
153
- get: function () { return chunkD5ES7H7E_js.formatTime; }
157
+ get: function () { return chunkKCA5OLS4_js.formatTime; }
154
158
  });
155
159
  Object.defineProperty(exports, "getOfferingUrl", {
156
160
  enumerable: true,
157
- get: function () { return chunkD5ES7H7E_js.getOfferingUrl; }
161
+ get: function () { return chunkKCA5OLS4_js.getOfferingUrl; }
158
162
  });
159
163
  Object.defineProperty(exports, "getRelativeTimeUntil", {
160
164
  enumerable: true,
161
- get: function () { return chunkD5ES7H7E_js.getRelativeTimeUntil; }
165
+ get: function () { return chunkKCA5OLS4_js.getRelativeTimeUntil; }
162
166
  });
163
167
  Object.defineProperty(exports, "getSpotsRemaining", {
164
168
  enumerable: true,
165
- get: function () { return chunkD5ES7H7E_js.getSpotsRemaining; }
169
+ get: function () { return chunkKCA5OLS4_js.getSpotsRemaining; }
166
170
  });
167
171
  Object.defineProperty(exports, "isEventSoldOut", {
168
172
  enumerable: true,
169
- get: function () { return chunkD5ES7H7E_js.isEventSoldOut; }
173
+ get: function () { return chunkKCA5OLS4_js.isEventSoldOut; }
170
174
  });
171
175
  Object.defineProperty(exports, "registerForEvent", {
172
176
  enumerable: true,
173
- get: function () { return chunkD5ES7H7E_js.registerForEvent; }
177
+ get: function () { return chunkKCA5OLS4_js.registerForEvent; }
174
178
  });
175
179
  Object.defineProperty(exports, "useEventModal", {
176
180
  enumerable: true,
177
- get: function () { return chunkD5ES7H7E_js.useEventModal; }
181
+ get: function () { return chunkKCA5OLS4_js.useEventModal; }
178
182
  });
179
183
  Object.defineProperty(exports, "validateAddress", {
180
184
  enumerable: true,
181
- get: function () { return chunkD5ES7H7E_js.validateAddress; }
185
+ get: function () { return chunkKCA5OLS4_js.validateAddress; }
182
186
  });
183
187
  Object.defineProperty(exports, "validateDiscountCode", {
184
188
  enumerable: true,
185
- get: function () { return chunkD5ES7H7E_js.validateDiscountCode; }
189
+ get: function () { return chunkKCA5OLS4_js.validateDiscountCode; }
186
190
  });
187
191
  //# sourceMappingURL=index.js.map
188
192
  //# sourceMappingURL=index.js.map
@@ -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-HSSKX77P.mjs';
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';
@@ -353,6 +353,8 @@ interface UseFormReturn {
353
353
  isLoading: boolean;
354
354
  /** Error fetching form */
355
355
  fetchError: Error | null;
356
+ /** Human-readable error from the last submit attempt (null when none) */
357
+ submitError: string | null;
356
358
  /** All form fields */
357
359
  allFields: FormField$2[];
358
360
  /** Fields for current step (multi-step) or all fields (single step) */
@@ -353,6 +353,8 @@ interface UseFormReturn {
353
353
  isLoading: boolean;
354
354
  /** Error fetching form */
355
355
  fetchError: Error | null;
356
+ /** Human-readable error from the last submit attempt (null when none) */
357
+ submitError: string | null;
356
358
  /** All form fields */
357
359
  allFields: FormField$2[];
358
360
  /** Fields for current step (multi-step) or all fields (single step) */