@sonordev/site-kit 1.4.4 → 1.4.6
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-GA2MN6CF.mjs → chunk-EG2FNRKR.mjs} +291 -15
- package/dist/chunk-EG2FNRKR.mjs.map +1 -0
- package/dist/{chunk-BYXMT7IG.js → chunk-WAY6CT4A.js} +291 -14
- package/dist/chunk-WAY6CT4A.js.map +1 -0
- package/dist/commerce/index.d.mts +3 -3
- package/dist/commerce/index.d.ts +3 -3
- package/dist/commerce/index.js +48 -44
- 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-Bn7nF4Ty.d.mts → types-B0xmgGw-.d.mts} +16 -0
- package/dist/{types-Bn7nF4Ty.d.ts → types-B0xmgGw-.d.ts} +16 -0
- package/dist/{useEventModal-DGZ3Wu1t.d.mts → useEventModal-C4Dr4Psb.d.ts} +18 -2
- package/dist/{useEventModal-DojKfkPE.d.ts → useEventModal-DvqBRau-.d.mts} +18 -2
- package/package.json +1 -1
- package/dist/chunk-BYXMT7IG.js.map +0 -1
- package/dist/chunk-GA2MN6CF.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
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-B0xmgGw-.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-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';
|
|
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
|
-
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-B0xmgGw-.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-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';
|
|
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 chunkWAY6CT4A_js = require('../chunk-WAY6CT4A.js');
|
|
5
5
|
require('../chunk-FRN4JQXL.js');
|
|
6
6
|
require('../chunk-GTLIGQDM.js');
|
|
7
7
|
require('../chunk-ZSMWDLMK.js');
|
|
@@ -10,175 +10,179 @@ require('../chunk-ZSMWDLMK.js');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "CalendarView", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkWAY6CT4A_js.CalendarView; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkWAY6CT4A_js.CheckoutForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "EventCalendar", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkWAY6CT4A_js.EventCalendar; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "EventEmbed", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkWAY6CT4A_js.EventEmbed; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "EventModal", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkWAY6CT4A_js.EventModal; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "EventTile", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkWAY6CT4A_js.EventTile; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "EventsWidget", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkWAY6CT4A_js.EventsWidget; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "OfferingCard", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkWAY6CT4A_js.OfferingCard; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "OfferingList", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkWAY6CT4A_js.OfferingList; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "ProductDetail", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkWAY6CT4A_js.ProductDetail; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkWAY6CT4A_js.ProductEmbed; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ProductGrid", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkWAY6CT4A_js.ProductGrid; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "ProductPage", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkWAY6CT4A_js.ProductPage; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkWAY6CT4A_js.RegistrationForm; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "SizeChart", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkWAY6CT4A_js.SizeChart; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkWAY6CT4A_js.UpcomingEvents; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkWAY6CT4A_js.createCheckoutSession; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "createPaymentIntent", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkWAY6CT4A_js.createPaymentIntent; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "fetchActiveProcessor", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkWAY6CT4A_js.fetchActiveProcessor; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "fetchCategories", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkWAY6CT4A_js.fetchCategories; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "fetchLatestOffering", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkWAY6CT4A_js.fetchLatestOffering; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkWAY6CT4A_js.fetchNextEvent; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "fetchOffering", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkWAY6CT4A_js.fetchOffering; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkWAY6CT4A_js.fetchOfferings; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "fetchProcessorConfig", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkWAY6CT4A_js.fetchProcessorConfig; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "fetchProductBySlug", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkWAY6CT4A_js.fetchProductBySlug; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "fetchProducts", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkWAY6CT4A_js.fetchProducts; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "fetchProductsPublic", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkWAY6CT4A_js.fetchProductsPublic; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "fetchServices", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkWAY6CT4A_js.fetchServices; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "fetchShippingRates", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkWAY6CT4A_js.fetchShippingRates; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkWAY6CT4A_js.fetchUpcomingEvents; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "formatDate", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkWAY6CT4A_js.formatDate; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "formatDateRange", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkWAY6CT4A_js.formatDateRange; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "formatDateTime", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkWAY6CT4A_js.formatDateTime; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "formatPrice", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkWAY6CT4A_js.formatPrice; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "formatTime", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkWAY6CT4A_js.formatTime; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkWAY6CT4A_js.getOfferingUrl; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "getRelativeTimeUntil", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkWAY6CT4A_js.getRelativeTimeUntil; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "getSpotsRemaining", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkWAY6CT4A_js.getSpotsRemaining; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "isEventSoldOut", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkWAY6CT4A_js.isEventSoldOut; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "registerForEvent", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkWAY6CT4A_js.registerForEvent; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "useEventModal", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkWAY6CT4A_js.useEventModal; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "validateAddress", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkWAY6CT4A_js.validateAddress; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "validateDiscountCode", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return chunkWAY6CT4A_js.validateDiscountCode; }
|
|
182
186
|
});
|
|
183
187
|
//# sourceMappingURL=index.js.map
|
|
184
188
|
//# 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 } 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, validateDiscountCode } from '../chunk-EG2FNRKR.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-B0xmgGw-.mjs';
|
|
9
|
+
export { x as CalendarView, w as CheckoutForm, z as EventCalendar, u as EventEmbed, y as EventModal, E as EventTile, O as OfferingCard, s as OfferingList, t 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, F as formatDate, G as formatDateTime, B as formatPrice, M as getOfferingUrl, r as registerForEvent, A as useEventModal } from './useEventModal-DvqBRau-.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-B0xmgGw-.js';
|
|
9
|
+
export { x as CalendarView, w as CheckoutForm, z as EventCalendar, u as EventEmbed, y as EventModal, E as EventTile, O as OfferingCard, s as OfferingList, t 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, F as formatDate, G as formatDateTime, B as formatPrice, M as getOfferingUrl, r as registerForEvent, A as useEventModal } from './useEventModal-C4Dr4Psb.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 chunkWAY6CT4A_js = require('./chunk-WAY6CT4A.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 chunkWAY6CT4A_js.CalendarView; }
|
|
1589
1589
|
});
|
|
1590
1590
|
Object.defineProperty(exports, "CheckoutForm", {
|
|
1591
1591
|
enumerable: true,
|
|
1592
|
-
get: function () { return
|
|
1592
|
+
get: function () { return chunkWAY6CT4A_js.CheckoutForm; }
|
|
1593
1593
|
});
|
|
1594
1594
|
Object.defineProperty(exports, "EventCalendar", {
|
|
1595
1595
|
enumerable: true,
|
|
1596
|
-
get: function () { return
|
|
1596
|
+
get: function () { return chunkWAY6CT4A_js.EventCalendar; }
|
|
1597
1597
|
});
|
|
1598
1598
|
Object.defineProperty(exports, "EventEmbed", {
|
|
1599
1599
|
enumerable: true,
|
|
1600
|
-
get: function () { return
|
|
1600
|
+
get: function () { return chunkWAY6CT4A_js.EventEmbed; }
|
|
1601
1601
|
});
|
|
1602
1602
|
Object.defineProperty(exports, "EventModal", {
|
|
1603
1603
|
enumerable: true,
|
|
1604
|
-
get: function () { return
|
|
1604
|
+
get: function () { return chunkWAY6CT4A_js.EventModal; }
|
|
1605
1605
|
});
|
|
1606
1606
|
Object.defineProperty(exports, "EventTile", {
|
|
1607
1607
|
enumerable: true,
|
|
1608
|
-
get: function () { return
|
|
1608
|
+
get: function () { return chunkWAY6CT4A_js.EventTile; }
|
|
1609
1609
|
});
|
|
1610
1610
|
Object.defineProperty(exports, "OfferingCard", {
|
|
1611
1611
|
enumerable: true,
|
|
1612
|
-
get: function () { return
|
|
1612
|
+
get: function () { return chunkWAY6CT4A_js.OfferingCard; }
|
|
1613
1613
|
});
|
|
1614
1614
|
Object.defineProperty(exports, "OfferingList", {
|
|
1615
1615
|
enumerable: true,
|
|
1616
|
-
get: function () { return
|
|
1616
|
+
get: function () { return chunkWAY6CT4A_js.OfferingList; }
|
|
1617
1617
|
});
|
|
1618
1618
|
Object.defineProperty(exports, "ProductEmbed", {
|
|
1619
1619
|
enumerable: true,
|
|
1620
|
-
get: function () { return
|
|
1620
|
+
get: function () { return chunkWAY6CT4A_js.ProductEmbed; }
|
|
1621
1621
|
});
|
|
1622
1622
|
Object.defineProperty(exports, "RegistrationForm", {
|
|
1623
1623
|
enumerable: true,
|
|
1624
|
-
get: function () { return
|
|
1624
|
+
get: function () { return chunkWAY6CT4A_js.RegistrationForm; }
|
|
1625
1625
|
});
|
|
1626
1626
|
Object.defineProperty(exports, "UpcomingEvents", {
|
|
1627
1627
|
enumerable: true,
|
|
1628
|
-
get: function () { return
|
|
1628
|
+
get: function () { return chunkWAY6CT4A_js.UpcomingEvents; }
|
|
1629
1629
|
});
|
|
1630
1630
|
Object.defineProperty(exports, "createCheckoutSession", {
|
|
1631
1631
|
enumerable: true,
|
|
1632
|
-
get: function () { return
|
|
1632
|
+
get: function () { return chunkWAY6CT4A_js.createCheckoutSession; }
|
|
1633
1633
|
});
|
|
1634
1634
|
Object.defineProperty(exports, "fetchNextEvent", {
|
|
1635
1635
|
enumerable: true,
|
|
1636
|
-
get: function () { return
|
|
1636
|
+
get: function () { return chunkWAY6CT4A_js.fetchNextEvent; }
|
|
1637
1637
|
});
|
|
1638
1638
|
Object.defineProperty(exports, "fetchOffering", {
|
|
1639
1639
|
enumerable: true,
|
|
1640
|
-
get: function () { return
|
|
1640
|
+
get: function () { return chunkWAY6CT4A_js.fetchOffering; }
|
|
1641
1641
|
});
|
|
1642
1642
|
Object.defineProperty(exports, "fetchOfferings", {
|
|
1643
1643
|
enumerable: true,
|
|
1644
|
-
get: function () { return
|
|
1644
|
+
get: function () { return chunkWAY6CT4A_js.fetchOfferings; }
|
|
1645
1645
|
});
|
|
1646
1646
|
Object.defineProperty(exports, "fetchProducts", {
|
|
1647
1647
|
enumerable: true,
|
|
1648
|
-
get: function () { return
|
|
1648
|
+
get: function () { return chunkWAY6CT4A_js.fetchProducts; }
|
|
1649
1649
|
});
|
|
1650
1650
|
Object.defineProperty(exports, "fetchServices", {
|
|
1651
1651
|
enumerable: true,
|
|
1652
|
-
get: function () { return
|
|
1652
|
+
get: function () { return chunkWAY6CT4A_js.fetchServices; }
|
|
1653
1653
|
});
|
|
1654
1654
|
Object.defineProperty(exports, "fetchUpcomingEvents", {
|
|
1655
1655
|
enumerable: true,
|
|
1656
|
-
get: function () { return
|
|
1656
|
+
get: function () { return chunkWAY6CT4A_js.fetchUpcomingEvents; }
|
|
1657
1657
|
});
|
|
1658
1658
|
Object.defineProperty(exports, "formatDate", {
|
|
1659
1659
|
enumerable: true,
|
|
1660
|
-
get: function () { return
|
|
1660
|
+
get: function () { return chunkWAY6CT4A_js.formatDate; }
|
|
1661
1661
|
});
|
|
1662
1662
|
Object.defineProperty(exports, "formatDateTime", {
|
|
1663
1663
|
enumerable: true,
|
|
1664
|
-
get: function () { return
|
|
1664
|
+
get: function () { return chunkWAY6CT4A_js.formatDateTime; }
|
|
1665
1665
|
});
|
|
1666
1666
|
Object.defineProperty(exports, "formatPrice", {
|
|
1667
1667
|
enumerable: true,
|
|
1668
|
-
get: function () { return
|
|
1668
|
+
get: function () { return chunkWAY6CT4A_js.formatPrice; }
|
|
1669
1669
|
});
|
|
1670
1670
|
Object.defineProperty(exports, "getOfferingUrl", {
|
|
1671
1671
|
enumerable: true,
|
|
1672
|
-
get: function () { return
|
|
1672
|
+
get: function () { return chunkWAY6CT4A_js.getOfferingUrl; }
|
|
1673
1673
|
});
|
|
1674
1674
|
Object.defineProperty(exports, "registerForEvent", {
|
|
1675
1675
|
enumerable: true,
|
|
1676
|
-
get: function () { return
|
|
1676
|
+
get: function () { return chunkWAY6CT4A_js.registerForEvent; }
|
|
1677
1677
|
});
|
|
1678
1678
|
Object.defineProperty(exports, "useEventModal", {
|
|
1679
1679
|
enumerable: true,
|
|
1680
|
-
get: function () { return
|
|
1680
|
+
get: function () { return chunkWAY6CT4A_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-EG2FNRKR.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';
|
|
@@ -17,7 +17,10 @@ interface CommerceOffering {
|
|
|
17
17
|
short_description?: string;
|
|
18
18
|
long_description?: string;
|
|
19
19
|
featured_image_url?: string;
|
|
20
|
+
featured_image_id?: string;
|
|
20
21
|
gallery_images?: string[];
|
|
22
|
+
/** Gallery image IDs in order, for mapping to metadata like model info */
|
|
23
|
+
gallery_image_ids?: string[];
|
|
21
24
|
price_type: PriceType;
|
|
22
25
|
price?: number;
|
|
23
26
|
compare_at_price?: number;
|
|
@@ -47,6 +50,19 @@ interface CommerceOffering {
|
|
|
47
50
|
seo_description?: string;
|
|
48
51
|
features?: string[];
|
|
49
52
|
specifications?: Record<string, string>;
|
|
53
|
+
metadata?: {
|
|
54
|
+
care_instructions?: string;
|
|
55
|
+
sizing_notes?: string;
|
|
56
|
+
notices?: string[];
|
|
57
|
+
/** Model info keyed by gallery image ID */
|
|
58
|
+
image_model_info?: Record<string, {
|
|
59
|
+
model_name?: string;
|
|
60
|
+
height?: string;
|
|
61
|
+
weight?: string;
|
|
62
|
+
wearing_size?: string;
|
|
63
|
+
}>;
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
};
|
|
50
66
|
schedules?: CommerceSchedule[];
|
|
51
67
|
next_schedule?: CommerceSchedule;
|
|
52
68
|
variants?: CommerceVariant[];
|
|
@@ -17,7 +17,10 @@ interface CommerceOffering {
|
|
|
17
17
|
short_description?: string;
|
|
18
18
|
long_description?: string;
|
|
19
19
|
featured_image_url?: string;
|
|
20
|
+
featured_image_id?: string;
|
|
20
21
|
gallery_images?: string[];
|
|
22
|
+
/** Gallery image IDs in order, for mapping to metadata like model info */
|
|
23
|
+
gallery_image_ids?: string[];
|
|
21
24
|
price_type: PriceType;
|
|
22
25
|
price?: number;
|
|
23
26
|
compare_at_price?: number;
|
|
@@ -47,6 +50,19 @@ interface CommerceOffering {
|
|
|
47
50
|
seo_description?: string;
|
|
48
51
|
features?: string[];
|
|
49
52
|
specifications?: Record<string, string>;
|
|
53
|
+
metadata?: {
|
|
54
|
+
care_instructions?: string;
|
|
55
|
+
sizing_notes?: string;
|
|
56
|
+
notices?: string[];
|
|
57
|
+
/** Model info keyed by gallery image ID */
|
|
58
|
+
image_model_info?: Record<string, {
|
|
59
|
+
model_name?: string;
|
|
60
|
+
height?: string;
|
|
61
|
+
weight?: string;
|
|
62
|
+
wearing_size?: string;
|
|
63
|
+
}>;
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
};
|
|
50
66
|
schedules?: CommerceSchedule[];
|
|
51
67
|
next_schedule?: CommerceSchedule;
|
|
52
68
|
variants?: CommerceVariant[];
|
|
@@ -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-B0xmgGw-.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -124,7 +124,23 @@ interface CreateCheckoutOptions {
|
|
|
124
124
|
shippingService?: string;
|
|
125
125
|
/** Shipping cost in dollars (from selected rate) */
|
|
126
126
|
shippingCost?: number;
|
|
127
|
+
/** Discount/promo code to apply */
|
|
128
|
+
discountCode?: string;
|
|
127
129
|
}
|
|
130
|
+
interface DiscountValidationResult {
|
|
131
|
+
valid: boolean;
|
|
132
|
+
discount_amount?: number;
|
|
133
|
+
discount_type?: 'percentage' | 'fixed_amount' | 'free_shipping';
|
|
134
|
+
discount_value?: number;
|
|
135
|
+
code?: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
message?: string;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Validate a discount code against the current order.
|
|
141
|
+
* Returns the discount amount if valid, or an error message if not.
|
|
142
|
+
*/
|
|
143
|
+
declare function validateDiscountCode(code: string, subtotal: number, offeringIds?: string[]): Promise<DiscountValidationResult>;
|
|
128
144
|
interface ProcessorConfig {
|
|
129
145
|
processor: 'stripe' | 'square' | null;
|
|
130
146
|
squareAppId?: string;
|
|
@@ -283,4 +299,4 @@ interface UseEventModalReturn {
|
|
|
283
299
|
}
|
|
284
300
|
declare function useEventModal(): UseEventModalReturn;
|
|
285
301
|
|
|
286
|
-
export {
|
|
302
|
+
export { useEventModal as A, formatPrice as B, type CreateCheckoutOptions as C, type DiscountValidationResult as D, EventTile as E, formatDate as F, formatDateTime as G, formatTime as H, formatDateRange as I, getRelativeTimeUntil as J, getSpotsRemaining as K, isEventSoldOut as L, getOfferingUrl as M, 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, validateDiscountCode as p, type ShippingRate as q, registerForEvent as r, OfferingList as s, ProductEmbed as t, EventEmbed as u, validateAddress as v, CheckoutForm as w, CalendarView as x, EventModal as y, EventCalendar 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, 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-B0xmgGw-.mjs';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -124,7 +124,23 @@ interface CreateCheckoutOptions {
|
|
|
124
124
|
shippingService?: string;
|
|
125
125
|
/** Shipping cost in dollars (from selected rate) */
|
|
126
126
|
shippingCost?: number;
|
|
127
|
+
/** Discount/promo code to apply */
|
|
128
|
+
discountCode?: string;
|
|
127
129
|
}
|
|
130
|
+
interface DiscountValidationResult {
|
|
131
|
+
valid: boolean;
|
|
132
|
+
discount_amount?: number;
|
|
133
|
+
discount_type?: 'percentage' | 'fixed_amount' | 'free_shipping';
|
|
134
|
+
discount_value?: number;
|
|
135
|
+
code?: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
message?: string;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Validate a discount code against the current order.
|
|
141
|
+
* Returns the discount amount if valid, or an error message if not.
|
|
142
|
+
*/
|
|
143
|
+
declare function validateDiscountCode(code: string, subtotal: number, offeringIds?: string[]): Promise<DiscountValidationResult>;
|
|
128
144
|
interface ProcessorConfig {
|
|
129
145
|
processor: 'stripe' | 'square' | null;
|
|
130
146
|
squareAppId?: string;
|
|
@@ -283,4 +299,4 @@ interface UseEventModalReturn {
|
|
|
283
299
|
}
|
|
284
300
|
declare function useEventModal(): UseEventModalReturn;
|
|
285
301
|
|
|
286
|
-
export {
|
|
302
|
+
export { useEventModal as A, formatPrice as B, type CreateCheckoutOptions as C, type DiscountValidationResult as D, EventTile as E, formatDate as F, formatDateTime as G, formatTime as H, formatDateRange as I, getRelativeTimeUntil as J, getSpotsRemaining as K, isEventSoldOut as L, getOfferingUrl as M, 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, validateDiscountCode as p, type ShippingRate as q, registerForEvent as r, OfferingList as s, ProductEmbed as t, EventEmbed as u, validateAddress as v, CheckoutForm as w, CalendarView as x, EventModal as y, EventCalendar as z };
|