@sonordev/site-kit 1.3.4 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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-CnIJF-kB.mjs';
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-CyUfjlzS.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
 
4
4
  /**
@@ -139,6 +139,18 @@ interface ProcessorConfig {
139
139
  * Returns public-safe values (app IDs, location IDs) for SDK initialization.
140
140
  */
141
141
  declare function fetchProcessorConfig(): Promise<ProcessorConfig | null>;
142
+ /**
143
+ * Create a Stripe PaymentIntent for inline card payment (no redirect).
144
+ * Use with Stripe Elements on the frontend to collect and confirm card details directly.
145
+ * The existing payment_intent.succeeded webhook handles marking the sale as paid.
146
+ */
147
+ declare function createPaymentIntent(options: CreateCheckoutOptions): Promise<{
148
+ success: boolean;
149
+ clientSecret?: string;
150
+ saleId?: string;
151
+ confirmationNumber?: string;
152
+ error?: string;
153
+ }>;
142
154
  /**
143
155
  * Create a checkout session for a product or service
144
156
  * Supports both Stripe and Square based on project configuration
@@ -271,4 +283,4 @@ interface UseEventModalReturn {
271
283
  }
272
284
  declare function useEventModal(): UseEventModalReturn;
273
285
 
274
- export { formatDate as A, formatDateTime as B, type CreateCheckoutOptions as C, formatTime as D, EventTile as E, formatDateRange as F, getRelativeTimeUntil as G, getSpotsRemaining as H, isEventSoldOut as I, getOfferingUrl as J, 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, fetchActiveProcessor as m, fetchProcessorConfig as n, type ShippingRate as o, OfferingList as p, ProductEmbed as q, registerForEvent as r, EventEmbed as s, CheckoutForm as t, CalendarView as u, validateAddress as v, EventModal as w, EventCalendar as x, useEventModal as y, formatPrice as z };
286
+ export { formatPrice as A, formatDate as B, type CreateCheckoutOptions as C, formatDateTime as D, EventTile as E, formatTime as F, formatDateRange as G, getRelativeTimeUntil as H, getSpotsRemaining as I, isEventSoldOut as J, getOfferingUrl as K, 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, type ShippingRate as p, OfferingList as q, registerForEvent as r, ProductEmbed as s, EventEmbed as t, CheckoutForm as u, validateAddress as v, CalendarView as w, EventModal as x, EventCalendar as y, useEventModal as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonordev/site-kit",
3
- "version": "1.3.4",
3
+ "version": "1.4.0",
4
4
  "description": "Complete client-side integration kit for Sonor - SEO, Analytics, Engage, Forms, Blog",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",