@uptrademedia/site-kit 1.1.4 → 1.1.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.
@@ -1,6 +1,6 @@
1
- import { C as CommerceOffering, a as CommerceVariant, b as CheckoutResult, c as CommerceSchedule } from '../types-Dz2HtHds.mjs';
2
- export { A as AdditionalField, d as AdditionalFieldOption, e as Cart, f as CartItem, g as CheckoutCustomer, h as CheckoutFormProps, i as CommerceApiConfig, j as CommerceCategory, E as EventEmbedProps, k as EventTileProps, F as FetchEventsOptions, l as FetchOfferingsOptions, m as OfferingCardProps, n as OfferingDetailProps, o as OfferingListProps, p as OfferingStatus, O as OfferingType, P as PriceType, q as ProductEmbedProps, R as RegistrationFormProps, U as UpcomingEventsProps } from '../types-Dz2HtHds.mjs';
3
- export { C as CalendarView, a as CheckoutForm, E as EventCalendar, b as EventEmbed, c as EventModal, d as EventTile, O as OfferingCard, e as OfferingList, P as ProductEmbed, R as RegistrationForm, U as UpcomingEvents, f as createCheckoutSession, g as fetchActiveProcessor, h as fetchCategories, i as fetchLatestOffering, j as fetchNextEvent, k as fetchOffering, l as fetchOfferings, m as fetchProcessorConfig, n as fetchProductBySlug, o as fetchProducts, p as fetchProductsPublic, q as fetchServices, r as fetchUpcomingEvents, s as formatDate, t as formatDateRange, u as formatDateTime, v as formatPrice, w as formatTime, x as getOfferingUrl, y as getRelativeTimeUntil, z as getSpotsRemaining, A as isEventSoldOut, B as registerForEvent, D as useEventModal } from '../useEventModal-CfeDPU95.mjs';
1
+ import { C as CommerceOffering, a as CommerceVariant, b as CheckoutResult, c as CommerceSchedule } from '../types-DxhEH2tX.mjs';
2
+ export { A as AdditionalField, d as AdditionalFieldOption, e as Cart, f as CartItem, g as CheckoutCustomer, h as CheckoutFormProps, i as CommerceApiConfig, j as CommerceCategory, E as EventEmbedProps, k as EventTileProps, F as FetchEventsOptions, l as FetchOfferingsOptions, m as OfferingCardProps, n as OfferingDetailProps, o as OfferingListProps, p as OfferingStatus, O as OfferingType, P as PriceType, q as ProductEmbedProps, R as RegistrationFormProps, U as UpcomingEventsProps } from '../types-DxhEH2tX.mjs';
3
+ export { C as CalendarView, a as CheckoutForm, b as CreateCheckoutOptions, E as EventCalendar, c as EventEmbed, d as EventModal, e as EventTile, O as OfferingCard, f as OfferingList, P as ProcessorConfig, g as ProductEmbed, R as RegistrationForm, S as ShippingAddress, h as ShippingRate, U as UpcomingEvents, V as ValidateAddressResult, i as createCheckoutSession, j as fetchActiveProcessor, k as fetchCategories, l as fetchLatestOffering, m as fetchNextEvent, n as fetchOffering, o as fetchOfferings, p as fetchProcessorConfig, q as fetchProductBySlug, r as fetchProducts, s as fetchProductsPublic, t as fetchServices, u as fetchShippingRates, v as fetchUpcomingEvents, w as formatDate, x as formatDateRange, y as formatDateTime, z as formatPrice, A as formatTime, B as getOfferingUrl, D as getRelativeTimeUntil, F as getSpotsRemaining, G as isEventSoldOut, H as registerForEvent, I as useEventModal, J as validateAddress } from '../useEventModal-x_RZRewW.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
- import { C as CommerceOffering, a as CommerceVariant, b as CheckoutResult, c as CommerceSchedule } from '../types-Dz2HtHds.js';
2
- export { A as AdditionalField, d as AdditionalFieldOption, e as Cart, f as CartItem, g as CheckoutCustomer, h as CheckoutFormProps, i as CommerceApiConfig, j as CommerceCategory, E as EventEmbedProps, k as EventTileProps, F as FetchEventsOptions, l as FetchOfferingsOptions, m as OfferingCardProps, n as OfferingDetailProps, o as OfferingListProps, p as OfferingStatus, O as OfferingType, P as PriceType, q as ProductEmbedProps, R as RegistrationFormProps, U as UpcomingEventsProps } from '../types-Dz2HtHds.js';
3
- export { C as CalendarView, a as CheckoutForm, E as EventCalendar, b as EventEmbed, c as EventModal, d as EventTile, O as OfferingCard, e as OfferingList, P as ProductEmbed, R as RegistrationForm, U as UpcomingEvents, f as createCheckoutSession, g as fetchActiveProcessor, h as fetchCategories, i as fetchLatestOffering, j as fetchNextEvent, k as fetchOffering, l as fetchOfferings, m as fetchProcessorConfig, n as fetchProductBySlug, o as fetchProducts, p as fetchProductsPublic, q as fetchServices, r as fetchUpcomingEvents, s as formatDate, t as formatDateRange, u as formatDateTime, v as formatPrice, w as formatTime, x as getOfferingUrl, y as getRelativeTimeUntil, z as getSpotsRemaining, A as isEventSoldOut, B as registerForEvent, D as useEventModal } from '../useEventModal-CaDHkAMI.js';
1
+ import { C as CommerceOffering, a as CommerceVariant, b as CheckoutResult, c as CommerceSchedule } from '../types-DxhEH2tX.js';
2
+ export { A as AdditionalField, d as AdditionalFieldOption, e as Cart, f as CartItem, g as CheckoutCustomer, h as CheckoutFormProps, i as CommerceApiConfig, j as CommerceCategory, E as EventEmbedProps, k as EventTileProps, F as FetchEventsOptions, l as FetchOfferingsOptions, m as OfferingCardProps, n as OfferingDetailProps, o as OfferingListProps, p as OfferingStatus, O as OfferingType, P as PriceType, q as ProductEmbedProps, R as RegistrationFormProps, U as UpcomingEventsProps } from '../types-DxhEH2tX.js';
3
+ export { C as CalendarView, a as CheckoutForm, b as CreateCheckoutOptions, E as EventCalendar, c as EventEmbed, d as EventModal, e as EventTile, O as OfferingCard, f as OfferingList, P as ProcessorConfig, g as ProductEmbed, R as RegistrationForm, S as ShippingAddress, h as ShippingRate, U as UpcomingEvents, V as ValidateAddressResult, i as createCheckoutSession, j as fetchActiveProcessor, k as fetchCategories, l as fetchLatestOffering, m as fetchNextEvent, n as fetchOffering, o as fetchOfferings, p as fetchProcessorConfig, q as fetchProductBySlug, r as fetchProducts, s as fetchProductsPublic, t as fetchServices, u as fetchShippingRates, v as fetchUpcomingEvents, w as formatDate, x as formatDateRange, y as formatDateTime, z as formatPrice, A as formatTime, B as getOfferingUrl, D as getRelativeTimeUntil, F as getSpotsRemaining, G as isEventSoldOut, H as registerForEvent, I as useEventModal, J as validateAddress } from '../useEventModal-5fIKdIaY.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import React__default from 'react';
6
6
 
@@ -1,165 +1,173 @@
1
1
  'use strict';
2
2
 
3
- var chunkYZRNC2Z6_js = require('../chunk-YZRNC2Z6.js');
3
+ var chunkFR6DV5QX_js = require('../chunk-FR6DV5QX.js');
4
4
  require('../chunk-ZSMWDLMK.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "CalendarView", {
9
9
  enumerable: true,
10
- get: function () { return chunkYZRNC2Z6_js.CalendarView; }
10
+ get: function () { return chunkFR6DV5QX_js.CalendarView; }
11
11
  });
12
12
  Object.defineProperty(exports, "CheckoutForm", {
13
13
  enumerable: true,
14
- get: function () { return chunkYZRNC2Z6_js.CheckoutForm; }
14
+ get: function () { return chunkFR6DV5QX_js.CheckoutForm; }
15
15
  });
16
16
  Object.defineProperty(exports, "EventCalendar", {
17
17
  enumerable: true,
18
- get: function () { return chunkYZRNC2Z6_js.EventCalendar; }
18
+ get: function () { return chunkFR6DV5QX_js.EventCalendar; }
19
19
  });
20
20
  Object.defineProperty(exports, "EventEmbed", {
21
21
  enumerable: true,
22
- get: function () { return chunkYZRNC2Z6_js.EventEmbed; }
22
+ get: function () { return chunkFR6DV5QX_js.EventEmbed; }
23
23
  });
24
24
  Object.defineProperty(exports, "EventModal", {
25
25
  enumerable: true,
26
- get: function () { return chunkYZRNC2Z6_js.EventModal; }
26
+ get: function () { return chunkFR6DV5QX_js.EventModal; }
27
27
  });
28
28
  Object.defineProperty(exports, "EventTile", {
29
29
  enumerable: true,
30
- get: function () { return chunkYZRNC2Z6_js.EventTile; }
30
+ get: function () { return chunkFR6DV5QX_js.EventTile; }
31
31
  });
32
32
  Object.defineProperty(exports, "EventsWidget", {
33
33
  enumerable: true,
34
- get: function () { return chunkYZRNC2Z6_js.EventsWidget; }
34
+ get: function () { return chunkFR6DV5QX_js.EventsWidget; }
35
35
  });
36
36
  Object.defineProperty(exports, "OfferingCard", {
37
37
  enumerable: true,
38
- get: function () { return chunkYZRNC2Z6_js.OfferingCard; }
38
+ get: function () { return chunkFR6DV5QX_js.OfferingCard; }
39
39
  });
40
40
  Object.defineProperty(exports, "OfferingList", {
41
41
  enumerable: true,
42
- get: function () { return chunkYZRNC2Z6_js.OfferingList; }
42
+ get: function () { return chunkFR6DV5QX_js.OfferingList; }
43
43
  });
44
44
  Object.defineProperty(exports, "ProductDetail", {
45
45
  enumerable: true,
46
- get: function () { return chunkYZRNC2Z6_js.ProductDetail; }
46
+ get: function () { return chunkFR6DV5QX_js.ProductDetail; }
47
47
  });
48
48
  Object.defineProperty(exports, "ProductEmbed", {
49
49
  enumerable: true,
50
- get: function () { return chunkYZRNC2Z6_js.ProductEmbed; }
50
+ get: function () { return chunkFR6DV5QX_js.ProductEmbed; }
51
51
  });
52
52
  Object.defineProperty(exports, "ProductGrid", {
53
53
  enumerable: true,
54
- get: function () { return chunkYZRNC2Z6_js.ProductGrid; }
54
+ get: function () { return chunkFR6DV5QX_js.ProductGrid; }
55
55
  });
56
56
  Object.defineProperty(exports, "ProductPage", {
57
57
  enumerable: true,
58
- get: function () { return chunkYZRNC2Z6_js.ProductPage; }
58
+ get: function () { return chunkFR6DV5QX_js.ProductPage; }
59
59
  });
60
60
  Object.defineProperty(exports, "RegistrationForm", {
61
61
  enumerable: true,
62
- get: function () { return chunkYZRNC2Z6_js.RegistrationForm; }
62
+ get: function () { return chunkFR6DV5QX_js.RegistrationForm; }
63
63
  });
64
64
  Object.defineProperty(exports, "UpcomingEvents", {
65
65
  enumerable: true,
66
- get: function () { return chunkYZRNC2Z6_js.UpcomingEvents; }
66
+ get: function () { return chunkFR6DV5QX_js.UpcomingEvents; }
67
67
  });
68
68
  Object.defineProperty(exports, "createCheckoutSession", {
69
69
  enumerable: true,
70
- get: function () { return chunkYZRNC2Z6_js.createCheckoutSession; }
70
+ get: function () { return chunkFR6DV5QX_js.createCheckoutSession; }
71
71
  });
72
72
  Object.defineProperty(exports, "fetchActiveProcessor", {
73
73
  enumerable: true,
74
- get: function () { return chunkYZRNC2Z6_js.fetchActiveProcessor; }
74
+ get: function () { return chunkFR6DV5QX_js.fetchActiveProcessor; }
75
75
  });
76
76
  Object.defineProperty(exports, "fetchCategories", {
77
77
  enumerable: true,
78
- get: function () { return chunkYZRNC2Z6_js.fetchCategories; }
78
+ get: function () { return chunkFR6DV5QX_js.fetchCategories; }
79
79
  });
80
80
  Object.defineProperty(exports, "fetchLatestOffering", {
81
81
  enumerable: true,
82
- get: function () { return chunkYZRNC2Z6_js.fetchLatestOffering; }
82
+ get: function () { return chunkFR6DV5QX_js.fetchLatestOffering; }
83
83
  });
84
84
  Object.defineProperty(exports, "fetchNextEvent", {
85
85
  enumerable: true,
86
- get: function () { return chunkYZRNC2Z6_js.fetchNextEvent; }
86
+ get: function () { return chunkFR6DV5QX_js.fetchNextEvent; }
87
87
  });
88
88
  Object.defineProperty(exports, "fetchOffering", {
89
89
  enumerable: true,
90
- get: function () { return chunkYZRNC2Z6_js.fetchOffering; }
90
+ get: function () { return chunkFR6DV5QX_js.fetchOffering; }
91
91
  });
92
92
  Object.defineProperty(exports, "fetchOfferings", {
93
93
  enumerable: true,
94
- get: function () { return chunkYZRNC2Z6_js.fetchOfferings; }
94
+ get: function () { return chunkFR6DV5QX_js.fetchOfferings; }
95
95
  });
96
96
  Object.defineProperty(exports, "fetchProcessorConfig", {
97
97
  enumerable: true,
98
- get: function () { return chunkYZRNC2Z6_js.fetchProcessorConfig; }
98
+ get: function () { return chunkFR6DV5QX_js.fetchProcessorConfig; }
99
99
  });
100
100
  Object.defineProperty(exports, "fetchProductBySlug", {
101
101
  enumerable: true,
102
- get: function () { return chunkYZRNC2Z6_js.fetchProductBySlug; }
102
+ get: function () { return chunkFR6DV5QX_js.fetchProductBySlug; }
103
103
  });
104
104
  Object.defineProperty(exports, "fetchProducts", {
105
105
  enumerable: true,
106
- get: function () { return chunkYZRNC2Z6_js.fetchProducts; }
106
+ get: function () { return chunkFR6DV5QX_js.fetchProducts; }
107
107
  });
108
108
  Object.defineProperty(exports, "fetchProductsPublic", {
109
109
  enumerable: true,
110
- get: function () { return chunkYZRNC2Z6_js.fetchProductsPublic; }
110
+ get: function () { return chunkFR6DV5QX_js.fetchProductsPublic; }
111
111
  });
112
112
  Object.defineProperty(exports, "fetchServices", {
113
113
  enumerable: true,
114
- get: function () { return chunkYZRNC2Z6_js.fetchServices; }
114
+ get: function () { return chunkFR6DV5QX_js.fetchServices; }
115
+ });
116
+ Object.defineProperty(exports, "fetchShippingRates", {
117
+ enumerable: true,
118
+ get: function () { return chunkFR6DV5QX_js.fetchShippingRates; }
115
119
  });
116
120
  Object.defineProperty(exports, "fetchUpcomingEvents", {
117
121
  enumerable: true,
118
- get: function () { return chunkYZRNC2Z6_js.fetchUpcomingEvents; }
122
+ get: function () { return chunkFR6DV5QX_js.fetchUpcomingEvents; }
119
123
  });
120
124
  Object.defineProperty(exports, "formatDate", {
121
125
  enumerable: true,
122
- get: function () { return chunkYZRNC2Z6_js.formatDate; }
126
+ get: function () { return chunkFR6DV5QX_js.formatDate; }
123
127
  });
124
128
  Object.defineProperty(exports, "formatDateRange", {
125
129
  enumerable: true,
126
- get: function () { return chunkYZRNC2Z6_js.formatDateRange; }
130
+ get: function () { return chunkFR6DV5QX_js.formatDateRange; }
127
131
  });
128
132
  Object.defineProperty(exports, "formatDateTime", {
129
133
  enumerable: true,
130
- get: function () { return chunkYZRNC2Z6_js.formatDateTime; }
134
+ get: function () { return chunkFR6DV5QX_js.formatDateTime; }
131
135
  });
132
136
  Object.defineProperty(exports, "formatPrice", {
133
137
  enumerable: true,
134
- get: function () { return chunkYZRNC2Z6_js.formatPrice; }
138
+ get: function () { return chunkFR6DV5QX_js.formatPrice; }
135
139
  });
136
140
  Object.defineProperty(exports, "formatTime", {
137
141
  enumerable: true,
138
- get: function () { return chunkYZRNC2Z6_js.formatTime; }
142
+ get: function () { return chunkFR6DV5QX_js.formatTime; }
139
143
  });
140
144
  Object.defineProperty(exports, "getOfferingUrl", {
141
145
  enumerable: true,
142
- get: function () { return chunkYZRNC2Z6_js.getOfferingUrl; }
146
+ get: function () { return chunkFR6DV5QX_js.getOfferingUrl; }
143
147
  });
144
148
  Object.defineProperty(exports, "getRelativeTimeUntil", {
145
149
  enumerable: true,
146
- get: function () { return chunkYZRNC2Z6_js.getRelativeTimeUntil; }
150
+ get: function () { return chunkFR6DV5QX_js.getRelativeTimeUntil; }
147
151
  });
148
152
  Object.defineProperty(exports, "getSpotsRemaining", {
149
153
  enumerable: true,
150
- get: function () { return chunkYZRNC2Z6_js.getSpotsRemaining; }
154
+ get: function () { return chunkFR6DV5QX_js.getSpotsRemaining; }
151
155
  });
152
156
  Object.defineProperty(exports, "isEventSoldOut", {
153
157
  enumerable: true,
154
- get: function () { return chunkYZRNC2Z6_js.isEventSoldOut; }
158
+ get: function () { return chunkFR6DV5QX_js.isEventSoldOut; }
155
159
  });
156
160
  Object.defineProperty(exports, "registerForEvent", {
157
161
  enumerable: true,
158
- get: function () { return chunkYZRNC2Z6_js.registerForEvent; }
162
+ get: function () { return chunkFR6DV5QX_js.registerForEvent; }
159
163
  });
160
164
  Object.defineProperty(exports, "useEventModal", {
161
165
  enumerable: true,
162
- get: function () { return chunkYZRNC2Z6_js.useEventModal; }
166
+ get: function () { return chunkFR6DV5QX_js.useEventModal; }
167
+ });
168
+ Object.defineProperty(exports, "validateAddress", {
169
+ enumerable: true,
170
+ get: function () { return chunkFR6DV5QX_js.validateAddress; }
163
171
  });
164
172
  //# sourceMappingURL=index.js.map
165
173
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, UpcomingEvents, createCheckoutSession, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal } from '../chunk-TI5CH4WT.mjs';
1
+ export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, EventsWidget, OfferingCard, OfferingList, ProductDetail, ProductEmbed, ProductGrid, ProductPage, RegistrationForm, UpcomingEvents, createCheckoutSession, fetchActiveProcessor, fetchCategories, fetchLatestOffering, fetchNextEvent, fetchOffering, fetchOfferings, fetchProcessorConfig, fetchProductBySlug, fetchProducts, fetchProductsPublic, fetchServices, fetchShippingRates, fetchUpcomingEvents, formatDate, formatDateRange, formatDateTime, formatPrice, formatTime, getOfferingUrl, getRelativeTimeUntil, getSpotsRemaining, isEventSoldOut, registerForEvent, useEventModal, validateAddress } from '../chunk-IARDGI5N.mjs';
2
2
  import '../chunk-4XPGGLVP.mjs';
3
3
  //# sourceMappingURL=index.mjs.map
4
4
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,4 @@
1
- import { C as CommerceOffering, O as OfferingType } from '../types-Dz2HtHds.mjs';
1
+ import { C as CommerceOffering, O as OfferingType } from '../types-DxhEH2tX.mjs';
2
2
 
3
3
  /**
4
4
  * @uptrade/site-kit/commerce - Server-side utilities
@@ -1,4 +1,4 @@
1
- import { C as CommerceOffering, O as OfferingType } from '../types-Dz2HtHds.js';
1
+ import { C as CommerceOffering, O as OfferingType } from '../types-DxhEH2tX.js';
2
2
 
3
3
  /**
4
4
  * @uptrade/site-kit/commerce - Server-side utilities
@@ -1,22 +1,22 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- var chunkYT74LIC4_js = require('../chunk-YT74LIC4.js');
4
+ var chunk6ODMCZHH_js = require('../chunk-6ODMCZHH.js');
5
5
  require('../chunk-ZSMWDLMK.js');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "ChatWidget", {
10
10
  enumerable: true,
11
- get: function () { return chunkYT74LIC4_js.ChatWidget; }
11
+ get: function () { return chunk6ODMCZHH_js.ChatWidget; }
12
12
  });
13
13
  Object.defineProperty(exports, "DesignRenderer", {
14
14
  enumerable: true,
15
- get: function () { return chunkYT74LIC4_js.DesignRenderer; }
15
+ get: function () { return chunk6ODMCZHH_js.DesignRenderer; }
16
16
  });
17
17
  Object.defineProperty(exports, "EngageWidget", {
18
18
  enumerable: true,
19
- get: function () { return chunkYT74LIC4_js.EngageWidget; }
19
+ get: function () { return chunk6ODMCZHH_js.EngageWidget; }
20
20
  });
21
21
  //# sourceMappingURL=index.js.map
22
22
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- export { ChatWidget, DesignRenderer, EngageWidget } from '../chunk-DUH5S5MV.mjs';
2
+ export { ChatWidget, DesignRenderer, EngageWidget } from '../chunk-E6L6AY2Q.mjs';
3
3
  import '../chunk-4XPGGLVP.mjs';
4
4
  //# sourceMappingURL=index.mjs.map
5
5
  //# sourceMappingURL=index.mjs.map
package/dist/index.d.mts CHANGED
@@ -5,8 +5,8 @@ export { b as AnalyticsConfig, c as AnalyticsEvent, P as PageView } from './type
5
5
  export { C as ChatConfig, h as EngageElement, W as WidgetConfig } from './types-C_pfGZhI.mjs';
6
6
  export { a as FormField, F as FormSubmission, M as ManagedFormConfig } from './types-CYPI3-8j.mjs';
7
7
  export { e as BlogAuthor, b as BlogCategory, B as BlogPostType } from './types-CMNYdZwT.mjs';
8
- export { e as Cart, f as CartItem, j as CommerceCategory, C as CommerceOffering, c as CommerceSchedule, a as CommerceVariant, O as OfferingType } from './types-Dz2HtHds.mjs';
9
- export { C as CalendarView, a as CheckoutForm, E as EventCalendar, b as EventEmbed, c as EventModal, d as EventTile, O as OfferingCard, e as OfferingList, P as ProductEmbed, R as RegistrationForm, U as UpcomingEvents, f as createCheckoutSession, j as fetchNextEvent, k as fetchOffering, l as fetchOfferings, o as fetchProducts, q as fetchServices, r as fetchUpcomingEvents, s as formatDate, u as formatDateTime, v as formatPrice, x as getOfferingUrl, B as registerForEvent, D as useEventModal } from './useEventModal-CfeDPU95.mjs';
8
+ export { e as Cart, f as CartItem, j as CommerceCategory, C as CommerceOffering, c as CommerceSchedule, a as CommerceVariant, O as OfferingType } from './types-DxhEH2tX.mjs';
9
+ export { C as CalendarView, a as CheckoutForm, E as EventCalendar, c as EventEmbed, d as EventModal, e as EventTile, O as OfferingCard, f as OfferingList, g as ProductEmbed, R as RegistrationForm, U as UpcomingEvents, i as createCheckoutSession, m as fetchNextEvent, n as fetchOffering, o as fetchOfferings, r as fetchProducts, t as fetchServices, v as fetchUpcomingEvents, w as formatDate, y as formatDateTime, z as formatPrice, B as getOfferingUrl, H as registerForEvent, I as useEventModal } from './useEventModal-x_RZRewW.mjs';
10
10
  export { RedirectConfig, RedirectRule, clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './redirects/index.mjs';
11
11
  export { I as ImageApiConfig, a as ImageFile, M as ManagedImage, b as ManagedImageData, c as ManagedImageProps, d as assignImageToSlot, e as clearImageSlot, f as fetchManagedImage, g as fetchManagedImages, l as listImageFiles, u as uploadImage } from './api-l44k92vp.mjs';
12
12
  export { S as SetupWizard } from './SetupWizard-Cki06kB0.mjs';
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ export { b as AnalyticsConfig, c as AnalyticsEvent, P as PageView } from './type
5
5
  export { C as ChatConfig, h as EngageElement, W as WidgetConfig } from './types-C_pfGZhI.js';
6
6
  export { a as FormField, F as FormSubmission, M as ManagedFormConfig } from './types-CYPI3-8j.js';
7
7
  export { e as BlogAuthor, b as BlogCategory, B as BlogPostType } from './types-CMNYdZwT.js';
8
- export { e as Cart, f as CartItem, j as CommerceCategory, C as CommerceOffering, c as CommerceSchedule, a as CommerceVariant, O as OfferingType } from './types-Dz2HtHds.js';
9
- export { C as CalendarView, a as CheckoutForm, E as EventCalendar, b as EventEmbed, c as EventModal, d as EventTile, O as OfferingCard, e as OfferingList, P as ProductEmbed, R as RegistrationForm, U as UpcomingEvents, f as createCheckoutSession, j as fetchNextEvent, k as fetchOffering, l as fetchOfferings, o as fetchProducts, q as fetchServices, r as fetchUpcomingEvents, s as formatDate, u as formatDateTime, v as formatPrice, x as getOfferingUrl, B as registerForEvent, D as useEventModal } from './useEventModal-CaDHkAMI.js';
8
+ export { e as Cart, f as CartItem, j as CommerceCategory, C as CommerceOffering, c as CommerceSchedule, a as CommerceVariant, O as OfferingType } from './types-DxhEH2tX.js';
9
+ export { C as CalendarView, a as CheckoutForm, E as EventCalendar, c as EventEmbed, d as EventModal, e as EventTile, O as OfferingCard, f as OfferingList, g as ProductEmbed, R as RegistrationForm, U as UpcomingEvents, i as createCheckoutSession, m as fetchNextEvent, n as fetchOffering, o as fetchOfferings, r as fetchProducts, t as fetchServices, v as fetchUpcomingEvents, w as formatDate, y as formatDateTime, z as formatPrice, B as getOfferingUrl, H as registerForEvent, I as useEventModal } from './useEventModal-5fIKdIaY.js';
10
10
  export { RedirectConfig, RedirectRule, clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './redirects/index.js';
11
11
  export { I as ImageApiConfig, a as ImageFile, M as ManagedImage, b as ManagedImageData, c as ManagedImageProps, d as assignImageToSlot, e as clearImageSlot, f as fetchManagedImage, g as fetchManagedImages, l as listImageFiles, u as uploadImage } from './api-l44k92vp.js';
12
12
  export { S as SetupWizard } from './SetupWizard-Cki06kB0.js';
package/dist/index.js CHANGED
@@ -3,12 +3,12 @@
3
3
  var chunkKUGMH4ZF_js = require('./chunk-KUGMH4ZF.js');
4
4
  require('./chunk-KHP4AK3O.js');
5
5
  var chunkUJQ73OS6_js = require('./chunk-UJQ73OS6.js');
6
- var chunkYZRNC2Z6_js = require('./chunk-YZRNC2Z6.js');
6
+ var chunkFR6DV5QX_js = require('./chunk-FR6DV5QX.js');
7
7
  var chunkGHSZWROI_js = require('./chunk-GHSZWROI.js');
8
8
  var chunkV7QPQBFG_js = require('./chunk-V7QPQBFG.js');
9
9
  var chunkG7RSD56P_js = require('./chunk-G7RSD56P.js');
10
10
  var chunkHGTTGJVZ_js = require('./chunk-HGTTGJVZ.js');
11
- var chunkYT74LIC4_js = require('./chunk-YT74LIC4.js');
11
+ var chunk6ODMCZHH_js = require('./chunk-6ODMCZHH.js');
12
12
  var chunkADHVEFWD_js = require('./chunk-ADHVEFWD.js');
13
13
  require('./chunk-ZSMWDLMK.js');
14
14
  var React3 = require('react');
@@ -433,7 +433,7 @@ function SiteKitProvider({
433
433
  content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
434
434
  content,
435
435
  /* @__PURE__ */ jsxRuntime.jsx(
436
- chunkYT74LIC4_js.EngageWidget,
436
+ chunk6ODMCZHH_js.EngageWidget,
437
437
  {
438
438
  apiUrl: finalApiUrl,
439
439
  apiKey,
@@ -2780,99 +2780,99 @@ Object.defineProperty(exports, "fetchReviews", {
2780
2780
  });
2781
2781
  Object.defineProperty(exports, "CalendarView", {
2782
2782
  enumerable: true,
2783
- get: function () { return chunkYZRNC2Z6_js.CalendarView; }
2783
+ get: function () { return chunkFR6DV5QX_js.CalendarView; }
2784
2784
  });
2785
2785
  Object.defineProperty(exports, "CheckoutForm", {
2786
2786
  enumerable: true,
2787
- get: function () { return chunkYZRNC2Z6_js.CheckoutForm; }
2787
+ get: function () { return chunkFR6DV5QX_js.CheckoutForm; }
2788
2788
  });
2789
2789
  Object.defineProperty(exports, "EventCalendar", {
2790
2790
  enumerable: true,
2791
- get: function () { return chunkYZRNC2Z6_js.EventCalendar; }
2791
+ get: function () { return chunkFR6DV5QX_js.EventCalendar; }
2792
2792
  });
2793
2793
  Object.defineProperty(exports, "EventEmbed", {
2794
2794
  enumerable: true,
2795
- get: function () { return chunkYZRNC2Z6_js.EventEmbed; }
2795
+ get: function () { return chunkFR6DV5QX_js.EventEmbed; }
2796
2796
  });
2797
2797
  Object.defineProperty(exports, "EventModal", {
2798
2798
  enumerable: true,
2799
- get: function () { return chunkYZRNC2Z6_js.EventModal; }
2799
+ get: function () { return chunkFR6DV5QX_js.EventModal; }
2800
2800
  });
2801
2801
  Object.defineProperty(exports, "EventTile", {
2802
2802
  enumerable: true,
2803
- get: function () { return chunkYZRNC2Z6_js.EventTile; }
2803
+ get: function () { return chunkFR6DV5QX_js.EventTile; }
2804
2804
  });
2805
2805
  Object.defineProperty(exports, "OfferingCard", {
2806
2806
  enumerable: true,
2807
- get: function () { return chunkYZRNC2Z6_js.OfferingCard; }
2807
+ get: function () { return chunkFR6DV5QX_js.OfferingCard; }
2808
2808
  });
2809
2809
  Object.defineProperty(exports, "OfferingList", {
2810
2810
  enumerable: true,
2811
- get: function () { return chunkYZRNC2Z6_js.OfferingList; }
2811
+ get: function () { return chunkFR6DV5QX_js.OfferingList; }
2812
2812
  });
2813
2813
  Object.defineProperty(exports, "ProductEmbed", {
2814
2814
  enumerable: true,
2815
- get: function () { return chunkYZRNC2Z6_js.ProductEmbed; }
2815
+ get: function () { return chunkFR6DV5QX_js.ProductEmbed; }
2816
2816
  });
2817
2817
  Object.defineProperty(exports, "RegistrationForm", {
2818
2818
  enumerable: true,
2819
- get: function () { return chunkYZRNC2Z6_js.RegistrationForm; }
2819
+ get: function () { return chunkFR6DV5QX_js.RegistrationForm; }
2820
2820
  });
2821
2821
  Object.defineProperty(exports, "UpcomingEvents", {
2822
2822
  enumerable: true,
2823
- get: function () { return chunkYZRNC2Z6_js.UpcomingEvents; }
2823
+ get: function () { return chunkFR6DV5QX_js.UpcomingEvents; }
2824
2824
  });
2825
2825
  Object.defineProperty(exports, "createCheckoutSession", {
2826
2826
  enumerable: true,
2827
- get: function () { return chunkYZRNC2Z6_js.createCheckoutSession; }
2827
+ get: function () { return chunkFR6DV5QX_js.createCheckoutSession; }
2828
2828
  });
2829
2829
  Object.defineProperty(exports, "fetchNextEvent", {
2830
2830
  enumerable: true,
2831
- get: function () { return chunkYZRNC2Z6_js.fetchNextEvent; }
2831
+ get: function () { return chunkFR6DV5QX_js.fetchNextEvent; }
2832
2832
  });
2833
2833
  Object.defineProperty(exports, "fetchOffering", {
2834
2834
  enumerable: true,
2835
- get: function () { return chunkYZRNC2Z6_js.fetchOffering; }
2835
+ get: function () { return chunkFR6DV5QX_js.fetchOffering; }
2836
2836
  });
2837
2837
  Object.defineProperty(exports, "fetchOfferings", {
2838
2838
  enumerable: true,
2839
- get: function () { return chunkYZRNC2Z6_js.fetchOfferings; }
2839
+ get: function () { return chunkFR6DV5QX_js.fetchOfferings; }
2840
2840
  });
2841
2841
  Object.defineProperty(exports, "fetchProducts", {
2842
2842
  enumerable: true,
2843
- get: function () { return chunkYZRNC2Z6_js.fetchProducts; }
2843
+ get: function () { return chunkFR6DV5QX_js.fetchProducts; }
2844
2844
  });
2845
2845
  Object.defineProperty(exports, "fetchServices", {
2846
2846
  enumerable: true,
2847
- get: function () { return chunkYZRNC2Z6_js.fetchServices; }
2847
+ get: function () { return chunkFR6DV5QX_js.fetchServices; }
2848
2848
  });
2849
2849
  Object.defineProperty(exports, "fetchUpcomingEvents", {
2850
2850
  enumerable: true,
2851
- get: function () { return chunkYZRNC2Z6_js.fetchUpcomingEvents; }
2851
+ get: function () { return chunkFR6DV5QX_js.fetchUpcomingEvents; }
2852
2852
  });
2853
2853
  Object.defineProperty(exports, "formatDate", {
2854
2854
  enumerable: true,
2855
- get: function () { return chunkYZRNC2Z6_js.formatDate; }
2855
+ get: function () { return chunkFR6DV5QX_js.formatDate; }
2856
2856
  });
2857
2857
  Object.defineProperty(exports, "formatDateTime", {
2858
2858
  enumerable: true,
2859
- get: function () { return chunkYZRNC2Z6_js.formatDateTime; }
2859
+ get: function () { return chunkFR6DV5QX_js.formatDateTime; }
2860
2860
  });
2861
2861
  Object.defineProperty(exports, "formatPrice", {
2862
2862
  enumerable: true,
2863
- get: function () { return chunkYZRNC2Z6_js.formatPrice; }
2863
+ get: function () { return chunkFR6DV5QX_js.formatPrice; }
2864
2864
  });
2865
2865
  Object.defineProperty(exports, "getOfferingUrl", {
2866
2866
  enumerable: true,
2867
- get: function () { return chunkYZRNC2Z6_js.getOfferingUrl; }
2867
+ get: function () { return chunkFR6DV5QX_js.getOfferingUrl; }
2868
2868
  });
2869
2869
  Object.defineProperty(exports, "registerForEvent", {
2870
2870
  enumerable: true,
2871
- get: function () { return chunkYZRNC2Z6_js.registerForEvent; }
2871
+ get: function () { return chunkFR6DV5QX_js.registerForEvent; }
2872
2872
  });
2873
2873
  Object.defineProperty(exports, "useEventModal", {
2874
2874
  enumerable: true,
2875
- get: function () { return chunkYZRNC2Z6_js.useEventModal; }
2875
+ get: function () { return chunkFR6DV5QX_js.useEventModal; }
2876
2876
  });
2877
2877
  Object.defineProperty(exports, "SetupWizard", {
2878
2878
  enumerable: true,
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fetchManagedImages, listImageFiles, uploadImage } from './chunk-JTLOJLWQ.mjs';
2
2
  import './chunk-CSB2IVNY.mjs';
3
3
  export { TestimonialSection, fetchReviewStats, fetchReviews } from './chunk-QD66FTXZ.mjs';
4
- 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-TI5CH4WT.mjs';
4
+ 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-IARDGI5N.mjs';
5
5
  export { SetupWizard } from './chunk-ZUYWXUHQ.mjs';
6
6
  export { clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './chunk-TJUON7TH.mjs';
7
7
  import { SitemapSync } from './chunk-BQOFRBGZ.mjs';
8
8
  import { AnalyticsProvider } from './chunk-OW2C3ATV.mjs';
9
- import { EngageWidget } from './chunk-DUH5S5MV.mjs';
9
+ import { EngageWidget } from './chunk-E6L6AY2Q.mjs';
10
10
  import { configureFormsApi } from './chunk-SMUFNQLM.mjs';
11
11
  import './chunk-4XPGGLVP.mjs';
12
12
  import React3, { createContext, useContext, useState, useRef, useCallback, useEffect, useMemo, Suspense } from 'react';
@@ -27,6 +27,8 @@ interface CommerceOffering {
27
27
  track_inventory?: boolean;
28
28
  inventory_count?: number;
29
29
  allow_backorder?: boolean;
30
+ /** Is clothing product - enables size variants and per-size inventory */
31
+ is_clothing?: boolean;
30
32
  duration_minutes?: number;
31
33
  capacity?: number;
32
34
  location?: string;
@@ -62,6 +64,7 @@ interface CommerceVariant {
62
64
  sku?: string;
63
65
  price?: number;
64
66
  inventory_count?: number;
67
+ track_inventory?: boolean;
65
68
  options?: Record<string, string>;
66
69
  image_url?: string;
67
70
  is_default?: boolean;
@@ -27,6 +27,8 @@ interface CommerceOffering {
27
27
  track_inventory?: boolean;
28
28
  inventory_count?: number;
29
29
  allow_backorder?: boolean;
30
+ /** Is clothing product - enables size variants and per-size inventory */
31
+ is_clothing?: boolean;
30
32
  duration_minutes?: number;
31
33
  capacity?: number;
32
34
  location?: string;
@@ -62,6 +64,7 @@ interface CommerceVariant {
62
64
  sku?: string;
63
65
  price?: number;
64
66
  inventory_count?: number;
67
+ track_inventory?: boolean;
65
68
  options?: Record<string, string>;
66
69
  image_url?: string;
67
70
  is_default?: boolean;
@@ -1,4 +1,4 @@
1
- import { g as CheckoutCustomer, b as CheckoutResult, C as CommerceOffering, l as FetchOfferingsOptions, F as FetchEventsOptions, m as OfferingCardProps, o as OfferingListProps, k as EventTileProps, U as UpcomingEventsProps, q as ProductEmbedProps, E as EventEmbedProps, h as CheckoutFormProps, R as RegistrationFormProps, c as CommerceSchedule } from './types-Dz2HtHds.js';
1
+ import { g as CheckoutCustomer, b as CheckoutResult, C as CommerceOffering, l as FetchOfferingsOptions, F as FetchEventsOptions, m as OfferingCardProps, o as OfferingListProps, k as EventTileProps, U as UpcomingEventsProps, q as ProductEmbedProps, E as EventEmbedProps, h as CheckoutFormProps, R as RegistrationFormProps, c as CommerceSchedule } from './types-DxhEH2tX.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
 
4
4
  /**
@@ -59,6 +59,47 @@ declare function fetchCategories(): Promise<{
59
59
  name: string;
60
60
  slug: string;
61
61
  }[]>;
62
+ interface ShippingAddress {
63
+ street1: string;
64
+ street2?: string;
65
+ city: string;
66
+ state: string;
67
+ zip: string;
68
+ country?: string;
69
+ name?: string;
70
+ phone?: string;
71
+ }
72
+ interface ShippingRate {
73
+ carrier: string;
74
+ service: string;
75
+ amount: string;
76
+ currency: string;
77
+ estimatedDays?: number;
78
+ objectId?: string;
79
+ }
80
+ interface ValidateAddressResult {
81
+ isValid: boolean;
82
+ normalized?: {
83
+ street1: string;
84
+ street2?: string;
85
+ city: string;
86
+ state: string;
87
+ zip: string;
88
+ country: string;
89
+ };
90
+ messages?: string[];
91
+ }
92
+ /**
93
+ * Fetch shipping rates for checkout (when shipping is enabled)
94
+ */
95
+ declare function fetchShippingRates(shippingAddress: ShippingAddress, offerings: Array<{
96
+ offering_id: string;
97
+ quantity?: number;
98
+ }>): Promise<ShippingRate[]>;
99
+ /**
100
+ * Validate a shipping address before checkout
101
+ */
102
+ declare function validateAddress(address: Omit<ShippingAddress, 'name' | 'phone'>): Promise<ValidateAddressResult>;
62
103
  /**
63
104
  * Fetch the active payment processor for the current project.
64
105
  * Returns 'stripe' | 'square' | null.
@@ -75,6 +116,14 @@ interface CreateCheckoutOptions {
75
116
  cancelUrl?: string;
76
117
  /** Square card nonce from Web Payments SDK for inline card collection (no redirect) */
77
118
  sourceId?: string;
119
+ /** Shipping address (required for physical products when shipping_enabled) */
120
+ shippingAddress?: ShippingAddress;
121
+ /** Selected shipping carrier from rates */
122
+ shippingCarrier?: string;
123
+ /** Selected shipping service from rates */
124
+ shippingService?: string;
125
+ /** Shipping cost in dollars (from selected rate) */
126
+ shippingCost?: number;
78
127
  }
79
128
  interface ProcessorConfig {
80
129
  processor: 'stripe' | 'square' | null;
@@ -82,6 +131,8 @@ interface ProcessorConfig {
82
131
  squareLocationId?: string;
83
132
  squareEnvironment?: string;
84
133
  stripePublishableKey?: string;
134
+ /** Whether shipping is enabled for this project */
135
+ shipping_enabled?: boolean;
85
136
  }
86
137
  /**
87
138
  * Fetch client-side SDK config for the active payment processor.
@@ -92,14 +143,7 @@ declare function fetchProcessorConfig(): Promise<ProcessorConfig | null>;
92
143
  * Create a checkout session for a product or service
93
144
  * Supports both Stripe and Square based on project configuration
94
145
  */
95
- declare function createCheckoutSession(optionsOrOfferingId: CreateCheckoutOptions | string, legacyOptions?: {
96
- variantId?: string;
97
- scheduleId?: string;
98
- quantity?: number;
99
- customer?: CheckoutCustomer;
100
- successUrl?: string;
101
- cancelUrl?: string;
102
- }): Promise<CheckoutResult>;
146
+ declare function createCheckoutSession(optionsOrOfferingId: CreateCheckoutOptions | string, legacyOptions?: Omit<CreateCheckoutOptions, 'offeringId'>): Promise<CheckoutResult>;
103
147
 
104
148
  declare function OfferingCard({ offering, variant, showImage, showPrice, showDescription, showCta, ctaText, onCtaClick, className, imageClassName, titleClassName, priceClassName, descriptionClassName, ctaClassName, }: OfferingCardProps): react_jsx_runtime.JSX.Element;
105
149
 
@@ -227,4 +271,4 @@ interface UseEventModalReturn {
227
271
  }
228
272
  declare function useEventModal(): UseEventModalReturn;
229
273
 
230
- export { isEventSoldOut as A, registerForEvent as B, CalendarView as C, useEventModal as D, EventCalendar as E, OfferingCard as O, ProductEmbed as P, RegistrationForm as R, UpcomingEvents as U, CheckoutForm as a, EventEmbed as b, EventModal as c, EventTile as d, OfferingList as e, createCheckoutSession as f, fetchActiveProcessor as g, fetchCategories as h, fetchLatestOffering as i, fetchNextEvent as j, fetchOffering as k, fetchOfferings as l, fetchProcessorConfig as m, fetchProductBySlug as n, fetchProducts as o, fetchProductsPublic as p, fetchServices as q, fetchUpcomingEvents as r, formatDate as s, formatDateRange as t, formatDateTime as u, formatPrice as v, formatTime as w, getOfferingUrl as x, getRelativeTimeUntil as y, getSpotsRemaining as z };
274
+ export { formatTime as A, getOfferingUrl as B, CalendarView as C, getRelativeTimeUntil as D, EventCalendar as E, getSpotsRemaining as F, isEventSoldOut as G, registerForEvent as H, useEventModal as I, validateAddress as J, OfferingCard as O, type ProcessorConfig as P, RegistrationForm as R, type ShippingAddress as S, UpcomingEvents as U, type ValidateAddressResult as V, CheckoutForm as a, type CreateCheckoutOptions as b, EventEmbed as c, EventModal as d, EventTile as e, OfferingList as f, ProductEmbed as g, type ShippingRate as h, createCheckoutSession as i, fetchActiveProcessor as j, fetchCategories as k, fetchLatestOffering as l, fetchNextEvent as m, fetchOffering as n, fetchOfferings as o, fetchProcessorConfig as p, fetchProductBySlug as q, fetchProducts as r, fetchProductsPublic as s, fetchServices as t, fetchShippingRates as u, fetchUpcomingEvents as v, formatDate as w, formatDateRange as x, formatDateTime as y, formatPrice as z };