@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.
- 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/forms/index.d.mts +2 -0
- package/dist/forms/index.d.ts +2 -0
- package/dist/forms/index.js +395 -211
- package/dist/forms/index.js.map +1 -1
- package/dist/forms/index.mjs +329 -149
- package/dist/forms/index.mjs.map +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/forms/index.d.mts
CHANGED
|
@@ -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) */
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -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) */
|