@getmicdrop/venue-calendar 4.3.62 → 4.3.64

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.
Files changed (67) hide show
  1. package/dist/{AddOnCard-DAk2utke.js → AddOnCard-CmK4bDY6.js} +4 -4
  2. package/dist/{ArrowLeftIcon-B2NmxWA9.js → ArrowLeftIcon-DcG0YVCM.js} +1 -1
  3. package/dist/{BlockPlaceholder-IligENph.js → BlockPlaceholder-BRzS72r6.js} +1 -1
  4. package/dist/{Calendar-DM7xqU81.js → Calendar-BOweKeiV.js} +2 -2
  5. package/dist/{CalendarFoundryView-uG2d_J_1.js → CalendarFoundryView-CKfpO1x8.js} +17 -17
  6. package/dist/{CalendarIcon-3jHpw2aE.js → CalendarIcon-DuxP0sxw.js} +1 -1
  7. package/dist/{CartView-C3yY3Umt.js → CartView-YNf1axYi.js} +33 -33
  8. package/dist/{Checkout-CtNDr22Y.js → Checkout-Betu62EF.js} +12 -12
  9. package/dist/{Checkout-D5xQo_-j.js → Checkout-D1VywGiq.js} +10 -10
  10. package/dist/{CheckoutTimer-Btjo7PEg.js → CheckoutTimer-DTufmYO_.js} +1 -1
  11. package/dist/{ChevronDownIcon-Dp1MGPEN.js → ChevronDownIcon-ClOg3b7E.js} +1 -1
  12. package/dist/{CloseIcon-DKrZf_7a.js → CloseIcon-CWQWjUzZ.js} +1 -1
  13. package/dist/{CollectionView-cwWo1mF3.js → CollectionView-PRegJwQb.js} +4 -4
  14. package/dist/{Event-DTJ0vZr1.js → Event--MH8pGju.js} +63 -63
  15. package/dist/{EventPage-CnOqHn95.js → EventPage-BGYvfkiB.js} +9 -9
  16. package/dist/{Input-CLSPTEMv.js → Input-BT3hf13K.js} +1 -1
  17. package/dist/{MailIcon-COatZ9tD.js → MailIcon-ivrn0IXt.js} +1 -1
  18. package/dist/{PasswordInput-BxuPPAe8.js → PasswordInput-CYZVT6fp.js} +1 -1
  19. package/dist/{RecommendationsRail-D9S_5rVW.js → RecommendationsRail-CPr__oRL.js} +12 -12
  20. package/dist/{ScarcityBadge-DU6RgcCz.js → ScarcityBadge-CDDlvbDh.js} +3 -3
  21. package/dist/{Select-CjELEaSF.js → Select-Bxdq5nKS.js} +1 -1
  22. package/dist/{SeriesPage-BTo2IP4b.js → SeriesPage-DhmD95h9.js} +2 -2
  23. package/dist/{Success-3ivVwkoj.js → Success-Cgrr7FqT.js} +10 -10
  24. package/dist/{TagIcon-CfyFlUh_.js → TagIcon-CFtOYvWM.js} +1 -1
  25. package/dist/{WarningCircleIcon-DsYifP07.js → WarningCircleIcon-Nmw1CPAT.js} +1 -1
  26. package/dist/{WarningTriIcon-C2oaxNjx.js → WarningTriIcon-flvVXH1d.js} +1 -1
  27. package/dist/api/transformers/venue.d.ts +1 -1
  28. package/dist/{api-BX4Imu-R.js → api-Vyamuo2p.js} +1 -1
  29. package/dist/{copyToClipboard-CIu22_xq.js → copyToClipboard-BmB4QyKB.js} +1 -1
  30. package/dist/{createErrorGate.svelte-Z3I2WfRr.js → createErrorGate.svelte-CDXAf5Lm.js} +1 -1
  31. package/dist/{scarcity-ClhXuC6t.js → datetime-ClxISJBt.js} +58 -57
  32. package/dist/{event-transform-CG6CJlbD.js → event-transform-L2ZTddgP.js} +19 -19
  33. package/dist/{href-Dz1CMH4c.js → href-DKLRNO3s.js} +1 -1
  34. package/dist/{i18n-DLFy3vxe.js → i18n-DFlVZfRe.js} +9 -9
  35. package/dist/{to-event-card-props-DObG6xUq.js → to-event-card-props-CmDQ3iGb.js} +34 -35
  36. package/dist/types/index.d.ts +602 -597
  37. package/dist/{utils-C15ZjLiK.js → utils-C_wZYlA9.js} +1 -1
  38. package/dist/{venue-Dv8MYjz_.js → venue-CMrlfcp2.js} +1 -1
  39. package/dist/venue-calendar.es.js +31 -31
  40. package/dist/venue-calendar.iife.js +13 -13
  41. package/dist/venue-calendar.umd.js +13 -13
  42. package/package.json +2 -1
  43. package/src/lib/constants/scarcity.ts +181 -0
  44. /package/dist/locales/{4.3.62 → 4.3.64}/flow/de.js +0 -0
  45. /package/dist/locales/{4.3.62 → 4.3.64}/flow/es.js +0 -0
  46. /package/dist/locales/{4.3.62 → 4.3.64}/flow/fr.js +0 -0
  47. /package/dist/locales/{4.3.62 → 4.3.64}/flow/id.js +0 -0
  48. /package/dist/locales/{4.3.62 → 4.3.64}/flow/it.js +0 -0
  49. /package/dist/locales/{4.3.62 → 4.3.64}/flow/ja.js +0 -0
  50. /package/dist/locales/{4.3.62 → 4.3.64}/flow/ko.js +0 -0
  51. /package/dist/locales/{4.3.62 → 4.3.64}/flow/nl.js +0 -0
  52. /package/dist/locales/{4.3.62 → 4.3.64}/flow/pl.js +0 -0
  53. /package/dist/locales/{4.3.62 → 4.3.64}/flow/pt-br.js +0 -0
  54. /package/dist/locales/{4.3.62 → 4.3.64}/flow/tr.js +0 -0
  55. /package/dist/locales/{4.3.62 → 4.3.64}/flow/zh.js +0 -0
  56. /package/dist/locales/{4.3.62 → 4.3.64}/main/de.js +0 -0
  57. /package/dist/locales/{4.3.62 → 4.3.64}/main/es.js +0 -0
  58. /package/dist/locales/{4.3.62 → 4.3.64}/main/fr.js +0 -0
  59. /package/dist/locales/{4.3.62 → 4.3.64}/main/id.js +0 -0
  60. /package/dist/locales/{4.3.62 → 4.3.64}/main/it.js +0 -0
  61. /package/dist/locales/{4.3.62 → 4.3.64}/main/ja.js +0 -0
  62. /package/dist/locales/{4.3.62 → 4.3.64}/main/ko.js +0 -0
  63. /package/dist/locales/{4.3.62 → 4.3.64}/main/nl.js +0 -0
  64. /package/dist/locales/{4.3.62 → 4.3.64}/main/pl.js +0 -0
  65. /package/dist/locales/{4.3.62 → 4.3.64}/main/pt-br.js +0 -0
  66. /package/dist/locales/{4.3.62 → 4.3.64}/main/tr.js +0 -0
  67. /package/dist/locales/{4.3.62 → 4.3.64}/main/zh.js +0 -0
@@ -1,597 +1,602 @@
1
- /**
2
- * TypeScript definitions for @getmicdrop/venue-calendar
3
- */
4
-
5
- // ============================================================================
6
- // Event Data Types
7
- // ============================================================================
8
-
9
- /**
10
- * Event data structure returned from the API or passed to components
11
- */
12
- export interface EventData {
13
- id: string | number;
14
- name: string;
15
- date: string;
16
- startDateTime?: string;
17
- endDateTime?: string;
18
- image?: string;
19
- description?: string;
20
- venueId?: string | number;
21
- venueID?: string | number;
22
- timeZone?: string;
23
- location?: string;
24
- slug?: string;
25
- status?: 'on_sale' | 'selling_fast' | 'sold_out';
26
- }
27
-
28
- /**
29
- * Ticket data structure
30
- */
31
- export interface TicketData {
32
- id: string | number;
33
- name: string;
34
- price: number;
35
- quantity?: number;
36
- description?: string;
37
- available?: number;
38
- }
39
-
40
- // ============================================================================
41
- // Theme Types
42
- // ============================================================================
43
-
44
- /**
45
- * Theme color configuration using HSL format
46
- * All values should be HSL strings like "217 91% 60%"
47
- */
48
- export interface ThemeColors {
49
- /** Brand primary color */
50
- brandPrimary: string;
51
- /** Primary text color */
52
- textPrimary: string;
53
- /** Secondary text color */
54
- textSecondary: string;
55
- /** Tertiary text color */
56
- textTertiary: string;
57
- /** Primary background color */
58
- bgPrimary: string;
59
- /** Secondary background color */
60
- bgSecondary: string;
61
- /** Quaternary background color */
62
- bgQuaternary: string;
63
- /** Primary stroke/border color */
64
- strokePrimary: string;
65
- /** Secondary stroke/border color */
66
- strokeSecondary: string;
67
- /** On sale status color */
68
- statusOnSale: string;
69
- /** Selling fast status color */
70
- statusSellingFast: string;
71
- /** Sold out status color */
72
- statusSoldOut: string;
73
- /** Today's date background color */
74
- todayBg: string;
75
- /** Today's date text color */
76
- todayText: string;
77
- /** Event dot color for on sale */
78
- eventDotOnSale: string;
79
- /** Event dot color for selling fast */
80
- eventDotSellingFast: string;
81
- /** Event dot color for sold out */
82
- eventDotSoldOut: string;
83
- /** Hover background color */
84
- hoverBg: string;
85
- /** Focus ring color */
86
- focusRing: string;
87
- }
88
-
89
- /**
90
- * Preset themes collection
91
- */
92
- export interface Themes {
93
- light: ThemeColors;
94
- dark: ThemeColors;
95
- highContrast: ThemeColors;
96
- }
97
-
98
- // ============================================================================
99
- // View Option Types
100
- // ============================================================================
101
-
102
- /**
103
- * View option for the calendar view switcher
104
- */
105
- export interface ViewOption {
106
- id: number;
107
- text: string;
108
- /** @deprecated Not rendered — the view switcher shows `text` only. Kept optional for backward compatibility. */
109
- icon?: string;
110
- ariaLabel?: string;
111
- }
112
-
113
- export type ViewType = 'list' | 'gallery' | 'calendar';
114
-
115
- // ============================================================================
116
- // Component Props Interfaces
117
- // ============================================================================
118
-
119
- /**
120
- * Base options for all init functions
121
- */
122
- export interface BaseInitOptions {
123
- /** CSS selector or HTMLElement to mount the component */
124
- target: string | HTMLElement;
125
- /** The venue ID (optional, default: '1') */
126
- venueId?: string;
127
- /** The organization ID (optional, default: '1') */
128
- organizationId?: string;
129
- /**
130
- * BCP-47 locale tag (e.g. 'es', 'es-MX'). Selects the bundled locale for the
131
- * label catalogue; undefined falls back to the browser locale, then English.
132
- * Threaded through every init entry point (vc#693).
133
- */
134
- locale?: string;
135
- }
136
-
137
- /**
138
- * Options for initializing the Venue Calendar component
139
- */
140
- export interface CalendarProps extends BaseInitOptions {
141
- /** Initial view: 'list', 'gallery', or 'calendar' (default: 'calendar') */
142
- view?: ViewType;
143
- /** Array of event objects to display */
144
- events?: EventData[];
145
- /** Whether to show view switcher (default: true) */
146
- showViewOptions?: boolean;
147
- /** Whether to show month navigation (default: true) */
148
- showMonthSwitcher?: boolean;
149
- /** Show the search box even without the view switcher (default: false) */
150
- showSearch?: boolean;
151
- /** Gallery/List/Carousel show at most this many events; null = all, with
152
- * load more on Gallery (default: null) */
153
- maxItems?: number | null;
154
- /** Hide card parts; only `false` hides (default: every part shown) */
155
- eventDetails?: {
156
- poster?: boolean;
157
- date?: boolean;
158
- description?: boolean;
159
- } | null;
160
- /** Which show the Featured view spotlights. Falls through to the next
161
- * upcoming show when the pick is absent or no longer in the feed — a
162
- * collection pick always falls through, since the event feed carries no
163
- * collection membership to match on (default: null) */
164
- featuredItem?: {
165
- type?: 'event' | 'series' | 'collection';
166
- id: string | number;
167
- } | null;
168
- /** How big each view draws its events: S packs more in, L gives each
169
- * event more room, M is the default look (default: 'M') */
170
- size?: 'S' | 'M' | 'L';
171
- /** Level of the calendar's screen-reader heading: 2 when the host page
172
- * already carries its h1 (default: 1) */
173
- headingLevel?: 1 | 2;
174
- /** How every card draws its poster: 'fit' shows the whole poster, 'fill'
175
- * crops it to cover the frame (default: 'fit') */
176
- posterFit?: 'fill' | 'fit';
177
- /** What fills around a 'fit' poster: a blurred copy of it, or the
178
- * section's own colour (default: 'blur') */
179
- posterBackdrop?: 'blur' | 'color';
180
- /** Opening a show rewrites the host page's title and share tags to the
181
- * show's, restoring them on close. Both embeds turn it on unless the host
182
- * sets inject-seo="false" (default for a direct call: false) */
183
- injectSeo?: boolean;
184
- /** Current month store (Svelte writable store) */
185
- currentMonth?: import('svelte/store').Writable<number>;
186
- /** Current year store (Svelte writable store) */
187
- currentYear?: import('svelte/store').Writable<number>;
188
- /** Handler for navigating to next month */
189
- handleNext?: () => void;
190
- /** Handler for navigating to previous month */
191
- handlePrev?: () => void;
192
- /** Callback function when an event is clicked */
193
- onEventClick?: (_event: EventData) => void;
194
- /**
195
- * Render the show detail / series / collection IN-PLACE on click + deep
196
- * link instead of navigating the host page (default: true for embeds).
197
- * Pass false to keep the host responsible for navigation, or supply your
198
- * own onEventClick to take over click handling entirely.
199
- */
200
- inlineEntityViews?: boolean;
201
- /**
202
- * The host's brand scheme, applied on the widget's root so every calendar
203
- * surface — time buttons included — wears it. null = the default palette.
204
- */
205
- colors?: ColorSchemeColors | null;
206
- }
207
-
208
- /**
209
- * Options for initializing the (inline) Event Page.
210
- */
211
- export interface EventPageOptions extends BaseInitOptions {
212
- /** The event ID to display (the page self-fetches), or pass rawEvent. */
213
- eventId?: string | number;
214
- /** Pre-fetched raw event payload (skips the self-fetch). */
215
- rawEvent?: any;
216
- /** Event slug (cosmetic). */
217
- slug?: string;
218
- /** Callback when the back control is clicked. */
219
- onNavigateBack?: () => void;
220
- /** Callback when proceeding to checkout (cart already created). */
221
- onNavigateToCart?: (
222
- _id: string | number,
223
- _slug: string,
224
- _rawEvent: any
225
- ) => void;
226
- /** Callback when a series occurrence is clicked. */
227
- onBuyTickets?: (_eventId: string | number, _slug: string) => void;
228
- /** i18n label overrides. */
229
- labels?: Record<string, string>;
230
- }
231
-
232
- /**
233
- * Success callback data from checkout
234
- */
235
- export interface CheckoutSuccessData {
236
- orderId?: string;
237
- eventId?: string;
238
- event?: EventData;
239
- }
240
-
241
- /**
242
- * Options for initializing the Checkout View
243
- */
244
- export interface CheckoutOptions extends BaseInitOptions {
245
- /** The event ID to display */
246
- eventId: string;
247
- /** The event slug (optional) */
248
- slug?: string;
249
- /** Array of available tickets (optional) */
250
- availableTickets?: TicketData[];
251
- /** Callback when checkout is successful */
252
- onSuccess?: (_data: CheckoutSuccessData) => void;
253
- /** Callback when navigating to success page */
254
- onNavigateToSuccess?: (_data: CheckoutSuccessData) => void;
255
- }
256
-
257
- /**
258
- * Options for initializing the Success View
259
- */
260
- export interface SuccessViewOptions extends BaseInitOptions {
261
- /** The event ID (optional) */
262
- eventId?: string;
263
- /** The event slug (optional) */
264
- slug?: string;
265
- /** The order ID (optional) */
266
- orderId?: string;
267
- }
268
-
269
- /**
270
- * Alias for CalendarProps for backward compatibility
271
- */
272
- export type InitOptions = CalendarProps;
273
-
274
- // ============================================================================
275
- // Svelte Component Instance
276
- // ============================================================================
277
-
278
- /**
279
- * Svelte component instance returned by init functions
280
- */
281
- export interface SvelteComponentInstance {
282
- /** Destroy the component and clean up */
283
- $destroy?: () => void;
284
- /** Internal cleanup for success listener */
285
- _successCleanup?: () => void;
286
- }
287
-
288
- // ============================================================================
289
- // Exported Functions
290
- // ============================================================================
291
-
292
- /**
293
- * Initialize the Venue Calendar component
294
- * @param options - Configuration options
295
- * @returns The Svelte component instance, or null if target not found
296
- */
297
- export function initVenueCalendar(
298
- _options: CalendarProps
299
- ): SvelteComponentInstance | null;
300
-
301
- /**
302
- * Initialize the (inline) Event Page.
303
- * @param options - Configuration options
304
- * @returns The Svelte component instance, or null if target not found / no event
305
- */
306
- export function initEventPage(
307
- _options: EventPageOptions
308
- ): SvelteComponentInstance | null;
309
-
310
- /**
311
- * Initialize the Checkout View
312
- * @param options - Configuration options
313
- * @returns The Svelte component instance, or null if target not found or eventId missing
314
- */
315
- export function initCheckoutView(
316
- _options: CheckoutOptions
317
- ): SvelteComponentInstance | null;
318
-
319
- /**
320
- * Alias for initCheckoutView
321
- */
322
- export const initCheckout: typeof initCheckoutView;
323
-
324
- /**
325
- * Initialize the Success View
326
- * @param options - Configuration options
327
- * @returns The Svelte component instance, or null if target not found
328
- */
329
- export function initSuccessView(
330
- _options: SuccessViewOptions
331
- ): SvelteComponentInstance | null;
332
-
333
- /**
334
- * Alias for initSuccessView
335
- */
336
- export const initSuccess: typeof initSuccessView;
337
-
338
- /**
339
- * Auto-mount: Automatically finds and mounts calendar to elements with class 'micdrop-calendar-container'
340
- */
341
- export function autoMount(): void;
342
-
343
- // ============================================================================
344
- // Runtime Configuration
345
- // ============================================================================
346
-
347
- /**
348
- * Opt-in embed integration settings for a venue site embedding the widget.
349
- */
350
- export interface EmbedConfig {
351
- /**
352
- * Emit a MICDROP_CHECKOUT_COMPLETE postMessage when an order completes. The
353
- * payload is non-PII: `{ orderId, eventId }`. Default: false.
354
- */
355
- postMessageOnSuccess?: boolean;
356
- /**
357
- * REQUIRED concrete origin (e.g. 'https://venue.example') for the
358
- * MICDROP_CHECKOUT_COMPLETE message. The message is never posted to '*'; without a
359
- * concrete absolute origin nothing is sent and a warning is logged.
360
- */
361
- postMessageTargetOrigin?: string | null;
362
- }
363
-
364
- /**
365
- * Options for {@link configureVenueCalendar}. All fields are optional — pass
366
- * only the keys you want to change.
367
- */
368
- export interface ConfigureVenueCalendarOptions {
369
- /** Called whenever the widget surfaces a caught error (wire into Sentry/Rollbar/etc). */
370
- onError?: (_error: Error, _context: { source: string }) => void;
371
- /** Override the backend origin for multi-region setups. */
372
- apiBaseUrl?: string;
373
- /** Request timeout in ms, forwarded to the API client. */
374
- apiTimeout?: number;
375
- /** Retry count, forwarded to the API client. */
376
- apiRetries?: number;
377
- /** Opt-in embed integration settings (see {@link EmbedConfig}). */
378
- embed?: EmbedConfig;
379
- }
380
-
381
- /**
382
- * Configure the calendar widget at runtime: error reporting, API overrides,
383
- * and the opt-in embed integration (e.g. the MICDROP_CHECKOUT_COMPLETE postMessage).
384
- * @param options - Configuration options
385
- */
386
- export function configureVenueCalendar(
387
- _options?: ConfigureVenueCalendarOptions
388
- ): void;
389
-
390
- // ============================================================================
391
- // Theme Exports
392
- // ============================================================================
393
-
394
- /**
395
- * Collection of preset themes
396
- */
397
- export const themes: Themes;
398
-
399
- /**
400
- * Light theme preset
401
- */
402
- export const lightTheme: ThemeColors;
403
-
404
- /**
405
- * Dark theme preset
406
- */
407
- export const darkTheme: ThemeColors;
408
-
409
- /**
410
- * High contrast theme preset for accessibility
411
- */
412
- export const highContrastTheme: ThemeColors;
413
-
414
- /**
415
- * Apply a theme to the calendar widget
416
- * @param theme - Theme object with HSL color values
417
- * @param container - Optional container element (defaults to document.documentElement)
418
- */
419
- export function applyTheme(
420
- _theme: Partial<ThemeColors>,
421
- _container?: HTMLElement
422
- ): void;
423
-
424
- /**
425
- * Generate CSS string for embedding themes
426
- * @param theme - Theme object
427
- * @returns CSS string with custom properties
428
- */
429
- export function generateThemeCSS(_theme: Partial<ThemeColors>): string;
430
-
431
- // ============================================================================
432
- // Brand scheme → calendar CSS variables
433
- // ============================================================================
434
-
435
- /**
436
- * The builder's saved colour scheme: token name → hex string. Partial schemes
437
- * are fine — a missing or invalid token is left to the stylesheet's default.
438
- */
439
- export type ColorSchemeColors = Record<string, string>;
440
-
441
- /**
442
- * Map a scheme to venue-calendar's CSS variables (`--brand-primary` …) as
443
- * wrapper-less HSL strings ("209 99% 50%").
444
- */
445
- export function schemeColorsToCSSVars(
446
- _colors: ColorSchemeColors | null | undefined
447
- ): Record<string, string>;
448
-
449
- /**
450
- * Write a scheme onto an element as inline custom properties. Pass the
451
- * widget's own root: the stylesheet declares the default palette on that root,
452
- * so a variable set on an ancestor never reaches it. Returns the names written.
453
- */
454
- export function applySchemeColors(
455
- _colors: ColorSchemeColors | null | undefined,
456
- _container: HTMLElement
457
- ): string[];
458
-
459
- /** Remove what applySchemeColors wrote. */
460
- export function clearSchemeColors(
461
- _container: HTMLElement,
462
- _names: string[]
463
- ): void;
464
-
465
- // ============================================================================
466
- // Scarcity Canon
467
- // ============================================================================
468
- // These MUST be declared by hand. This file is not generated — it is copied
469
- // verbatim from `src/lib/types/` to `dist/types/` by vite.config.lib.js and is
470
- // what package.json's "types" points at, so a runtime `export` added to
471
- // VenueCalendar.js is invisible to TypeScript until it is also declared here.
472
- // The `exports` map has no wildcard either, so a deep import
473
- // (`@getmicdrop/venue-calendar/constants/scarcity`) is not an escape hatch.
474
- // Consumers — notably micdrop-frontend's admin mirror in
475
- // `src/lib/foundry/settings-tickets/scarcity.ts` — import these from the
476
- // package ENTRY, and that import only typechecks because of the declarations
477
- // below. Keep them in sync with `src/lib/constants/scarcity.ts`.
478
-
479
- /**
480
- * Scarcity tier for a ticket. `sold-out` at zero remaining, `urgent` carries an
481
- * exact count ("Only N left"), `low` is the vague badge, `plenty` no claim.
482
- */
483
- export type ScarcityLevel = 'sold-out' | 'urgent' | 'low' | 'plenty';
484
-
485
- /**
486
- * The sliding-scale knobs behind every scarcity claim in venue-calendar.
487
- * Percent thresholds bend toward the absolute floor/cap so the claim scales
488
- * with venue size; `MAX_EXACT_COUNT` caps when an exact count may be revealed.
489
- */
490
- export const SCARCITY_THRESHOLDS: {
491
- readonly URGENT_PCT: 10;
492
- readonly LOW_PCT: 20;
493
- readonly MAX_EXACT_COUNT: 20;
494
- readonly ABSOLUTE_FLOOR: 5;
495
- readonly ABSOLUTE_CAP: 30;
496
- };
497
-
498
- /**
499
- * Compute the scarcity level for a (remaining, total) pair.
500
- *
501
- * Returns 'plenty' when `total <= 0` (no percentage to compute — treat as
502
- * unlimited/unknown capacity, make no claim) and 'sold-out' for remaining <= 0.
503
- */
504
- export function computeScarcityLevel(
505
- _remaining: number,
506
- _total: number
507
- ): ScarcityLevel;
508
-
509
- // ============================================================================
510
- // Svelte Component Exports
511
- // ============================================================================
512
-
513
- /**
514
- * VenueCalendar Svelte component (CalendarContainer)
515
- */
516
- export const VenueCalendar: any;
517
-
518
- /**
519
- * Checkout Svelte component
520
- */
521
- export const Checkout: any;
522
-
523
- /**
524
- * CheckoutView alias for Checkout
525
- */
526
- export const CheckoutView: any;
527
-
528
- /**
529
- * Success Svelte component
530
- */
531
- export const Success: any;
532
-
533
- /**
534
- * EventPage Svelte component — full event page with EventMeta, ScarcityBadge, etc.
535
- */
536
- export const EventPage: any;
537
-
538
- /**
539
- * SeriesPage Svelte component — series landing page with hero, upcoming dates, performers, FAQ sidebar
540
- */
541
- export const SeriesPage: any;
542
-
543
- /**
544
- * SeriesHomeView alias (deprecated — use SeriesPage instead)
545
- */
546
- export const SeriesHomeView: any;
547
-
548
- /**
549
- * CollectionView Svelte component
550
- */
551
- export const CollectionView: any;
552
-
553
- /**
554
- * ViewTicketsEmbed — the buyer's post-purchase ticket view (dice-swipe), as a
555
- * LOADER: calling it resolves to the component, which is what keeps the view in
556
- * its own chunk. Takes `{ orderUUID, locale?, labels? }` and self-fetches the
557
- * order.
558
- *
559
- * This file is hand-written, so an export missing from it is invisible until a
560
- * consumer imports it: the runtime barrel has exported this one since v3.6.0,
561
- * and micdrop-frontend's apex `/tickets/<orderUUID>` route (MIC-3859) could not
562
- * type-check against the published package without a local module augmentation.
563
- * That augmentation can be deleted once a release carrying this line is pinned.
564
- */
565
- export const ViewTicketsEmbed: any;
566
-
567
- // ============================================================================
568
- // Default Export
569
- // ============================================================================
570
-
571
- declare const _default: {
572
- initVenueCalendar: typeof initVenueCalendar;
573
- initEventPage: typeof initEventPage;
574
- initCheckoutView: typeof initCheckoutView;
575
- initCheckout: typeof initCheckoutView;
576
- initSuccessView: typeof initSuccessView;
577
- initSuccess: typeof initSuccessView;
578
- autoMount: typeof autoMount;
579
- VenueCalendar: any;
580
- themes: Themes;
581
- lightTheme: ThemeColors;
582
- darkTheme: ThemeColors;
583
- highContrastTheme: ThemeColors;
584
- applyTheme: typeof applyTheme;
585
- generateThemeCSS: typeof generateThemeCSS;
586
- Checkout: any;
587
- CheckoutView: any;
588
- Success: any;
589
- /** @deprecated Use Success instead */
590
- Sucess: any;
591
- EventPage: any;
592
- SeriesPage: any;
593
- SeriesHomeView: any;
594
- CollectionView: any;
595
- };
596
-
597
- export default _default;
1
+ /**
2
+ * TypeScript definitions for @getmicdrop/venue-calendar
3
+ */
4
+
5
+ // ============================================================================
6
+ // Event Data Types
7
+ // ============================================================================
8
+
9
+ /**
10
+ * Event data structure returned from the API or passed to components
11
+ */
12
+ export interface EventData {
13
+ id: string | number;
14
+ name: string;
15
+ date: string;
16
+ startDateTime?: string;
17
+ endDateTime?: string;
18
+ image?: string;
19
+ description?: string;
20
+ venueId?: string | number;
21
+ venueID?: string | number;
22
+ timeZone?: string;
23
+ location?: string;
24
+ slug?: string;
25
+ status?: 'on_sale' | 'selling_fast' | 'sold_out';
26
+ }
27
+
28
+ /**
29
+ * Ticket data structure
30
+ */
31
+ export interface TicketData {
32
+ id: string | number;
33
+ name: string;
34
+ price: number;
35
+ quantity?: number;
36
+ description?: string;
37
+ available?: number;
38
+ }
39
+
40
+ // ============================================================================
41
+ // Theme Types
42
+ // ============================================================================
43
+
44
+ /**
45
+ * Theme color configuration using HSL format
46
+ * All values should be HSL strings like "217 91% 60%"
47
+ */
48
+ export interface ThemeColors {
49
+ /** Brand primary color */
50
+ brandPrimary: string;
51
+ /** Primary text color */
52
+ textPrimary: string;
53
+ /** Secondary text color */
54
+ textSecondary: string;
55
+ /** Tertiary text color */
56
+ textTertiary: string;
57
+ /** Primary background color */
58
+ bgPrimary: string;
59
+ /** Secondary background color */
60
+ bgSecondary: string;
61
+ /** Quaternary background color */
62
+ bgQuaternary: string;
63
+ /** Primary stroke/border color */
64
+ strokePrimary: string;
65
+ /** Secondary stroke/border color */
66
+ strokeSecondary: string;
67
+ /** On sale status color */
68
+ statusOnSale: string;
69
+ /** Selling fast status color */
70
+ statusSellingFast: string;
71
+ /** Sold out status color */
72
+ statusSoldOut: string;
73
+ /** Today's date background color */
74
+ todayBg: string;
75
+ /** Today's date text color */
76
+ todayText: string;
77
+ /** Event dot color for on sale */
78
+ eventDotOnSale: string;
79
+ /** Event dot color for selling fast */
80
+ eventDotSellingFast: string;
81
+ /** Event dot color for sold out */
82
+ eventDotSoldOut: string;
83
+ /** Hover background color */
84
+ hoverBg: string;
85
+ /** Focus ring color */
86
+ focusRing: string;
87
+ }
88
+
89
+ /**
90
+ * Preset themes collection
91
+ */
92
+ export interface Themes {
93
+ light: ThemeColors;
94
+ dark: ThemeColors;
95
+ highContrast: ThemeColors;
96
+ }
97
+
98
+ // ============================================================================
99
+ // View Option Types
100
+ // ============================================================================
101
+
102
+ /**
103
+ * View option for the calendar view switcher
104
+ */
105
+ export interface ViewOption {
106
+ id: number;
107
+ text: string;
108
+ /** @deprecated Not rendered — the view switcher shows `text` only. Kept optional for backward compatibility. */
109
+ icon?: string;
110
+ ariaLabel?: string;
111
+ }
112
+
113
+ export type ViewType = 'list' | 'gallery' | 'calendar';
114
+
115
+ // ============================================================================
116
+ // Component Props Interfaces
117
+ // ============================================================================
118
+
119
+ /**
120
+ * Base options for all init functions
121
+ */
122
+ export interface BaseInitOptions {
123
+ /** CSS selector or HTMLElement to mount the component */
124
+ target: string | HTMLElement;
125
+ /** The venue ID (optional, default: '1') */
126
+ venueId?: string;
127
+ /** The organization ID (optional, default: '1') */
128
+ organizationId?: string;
129
+ /**
130
+ * BCP-47 locale tag (e.g. 'es', 'es-MX'). Selects the bundled locale for the
131
+ * label catalogue; undefined falls back to the browser locale, then English.
132
+ * Threaded through every init entry point (vc#693).
133
+ */
134
+ locale?: string;
135
+ }
136
+
137
+ /**
138
+ * Options for initializing the Venue Calendar component
139
+ */
140
+ export interface CalendarProps extends BaseInitOptions {
141
+ /** Initial view: 'list', 'gallery', or 'calendar' (default: 'calendar') */
142
+ view?: ViewType;
143
+ /** Array of event objects to display */
144
+ events?: EventData[];
145
+ /** Whether to show view switcher (default: true) */
146
+ showViewOptions?: boolean;
147
+ /** Whether to show month navigation (default: true) */
148
+ showMonthSwitcher?: boolean;
149
+ /** Show the search box even without the view switcher (default: false) */
150
+ showSearch?: boolean;
151
+ /** Gallery/List/Carousel show at most this many events; null = all, with
152
+ * load more on Gallery (default: null) */
153
+ maxItems?: number | null;
154
+ /** Hide card parts; only `false` hides (default: every part shown) */
155
+ eventDetails?: {
156
+ poster?: boolean;
157
+ date?: boolean;
158
+ description?: boolean;
159
+ } | null;
160
+ /** Which show the Featured view spotlights. Falls through to the next
161
+ * upcoming show when the pick is absent or no longer in the feed — a
162
+ * collection pick always falls through, since the event feed carries no
163
+ * collection membership to match on (default: null) */
164
+ featuredItem?: {
165
+ type?: 'event' | 'series' | 'collection';
166
+ id: string | number;
167
+ } | null;
168
+ /** How big each view draws its events: S packs more in, L gives each
169
+ * event more room, M is the default look (default: 'M') */
170
+ size?: 'S' | 'M' | 'L';
171
+ /** Level of the calendar's screen-reader heading: 2 when the host page
172
+ * already carries its h1 (default: 1) */
173
+ headingLevel?: 1 | 2;
174
+ /** How every card draws its poster: 'fit' shows the whole poster, 'fill'
175
+ * crops it to cover the frame (default: 'fit') */
176
+ posterFit?: 'fill' | 'fit';
177
+ /** What fills around a 'fit' poster: a blurred copy of it, or the
178
+ * section's own colour (default: 'blur') */
179
+ posterBackdrop?: 'blur' | 'color';
180
+ /** Opening a show rewrites the host page's title and share tags to the
181
+ * show's, restoring them on close. Both embeds turn it on unless the host
182
+ * sets inject-seo="false" (default for a direct call: false) */
183
+ injectSeo?: boolean;
184
+ /** Current month store (Svelte writable store) */
185
+ currentMonth?: import('svelte/store').Writable<number>;
186
+ /** Current year store (Svelte writable store) */
187
+ currentYear?: import('svelte/store').Writable<number>;
188
+ /** Handler for navigating to next month */
189
+ handleNext?: () => void;
190
+ /** Handler for navigating to previous month */
191
+ handlePrev?: () => void;
192
+ /** Callback function when an event is clicked */
193
+ onEventClick?: (_event: EventData) => void;
194
+ /**
195
+ * Render the show detail / series / collection IN-PLACE on click + deep
196
+ * link instead of navigating the host page (default: true for embeds).
197
+ * Pass false to keep the host responsible for navigation, or supply your
198
+ * own onEventClick to take over click handling entirely.
199
+ */
200
+ inlineEntityViews?: boolean;
201
+ /**
202
+ * The host's brand scheme, applied on the widget's root so every calendar
203
+ * surface — time buttons included — wears it. null = the default palette.
204
+ */
205
+ colors?: ColorSchemeColors | null;
206
+ }
207
+
208
+ /**
209
+ * Options for initializing the (inline) Event Page.
210
+ */
211
+ export interface EventPageOptions extends BaseInitOptions {
212
+ /** The event ID to display (the page self-fetches), or pass rawEvent. */
213
+ eventId?: string | number;
214
+ /** Pre-fetched raw event payload (skips the self-fetch). */
215
+ rawEvent?: any;
216
+ /** Event slug (cosmetic). */
217
+ slug?: string;
218
+ /** Callback when the back control is clicked. */
219
+ onNavigateBack?: () => void;
220
+ /** Callback when proceeding to checkout (cart already created). */
221
+ onNavigateToCart?: (
222
+ _id: string | number,
223
+ _slug: string,
224
+ _rawEvent: any
225
+ ) => void;
226
+ /** Callback when a series occurrence is clicked. */
227
+ onBuyTickets?: (_eventId: string | number, _slug: string) => void;
228
+ /** i18n label overrides. */
229
+ labels?: Record<string, string>;
230
+ }
231
+
232
+ /**
233
+ * Success callback data from checkout
234
+ */
235
+ export interface CheckoutSuccessData {
236
+ orderId?: string;
237
+ eventId?: string;
238
+ event?: EventData;
239
+ }
240
+
241
+ /**
242
+ * Options for initializing the Checkout View
243
+ */
244
+ export interface CheckoutOptions extends BaseInitOptions {
245
+ /** The event ID to display */
246
+ eventId: string;
247
+ /** The event slug (optional) */
248
+ slug?: string;
249
+ /** Array of available tickets (optional) */
250
+ availableTickets?: TicketData[];
251
+ /** Callback when checkout is successful */
252
+ onSuccess?: (_data: CheckoutSuccessData) => void;
253
+ /** Callback when navigating to success page */
254
+ onNavigateToSuccess?: (_data: CheckoutSuccessData) => void;
255
+ }
256
+
257
+ /**
258
+ * Options for initializing the Success View
259
+ */
260
+ export interface SuccessViewOptions extends BaseInitOptions {
261
+ /** The event ID (optional) */
262
+ eventId?: string;
263
+ /** The event slug (optional) */
264
+ slug?: string;
265
+ /** The order ID (optional) */
266
+ orderId?: string;
267
+ }
268
+
269
+ /**
270
+ * Alias for CalendarProps for backward compatibility
271
+ */
272
+ export type InitOptions = CalendarProps;
273
+
274
+ // ============================================================================
275
+ // Svelte Component Instance
276
+ // ============================================================================
277
+
278
+ /**
279
+ * Svelte component instance returned by init functions
280
+ */
281
+ export interface SvelteComponentInstance {
282
+ /** Destroy the component and clean up */
283
+ $destroy?: () => void;
284
+ /** Internal cleanup for success listener */
285
+ _successCleanup?: () => void;
286
+ }
287
+
288
+ // ============================================================================
289
+ // Exported Functions
290
+ // ============================================================================
291
+
292
+ /**
293
+ * Initialize the Venue Calendar component
294
+ * @param options - Configuration options
295
+ * @returns The Svelte component instance, or null if target not found
296
+ */
297
+ export function initVenueCalendar(
298
+ _options: CalendarProps
299
+ ): SvelteComponentInstance | null;
300
+
301
+ /**
302
+ * Initialize the (inline) Event Page.
303
+ * @param options - Configuration options
304
+ * @returns The Svelte component instance, or null if target not found / no event
305
+ */
306
+ export function initEventPage(
307
+ _options: EventPageOptions
308
+ ): SvelteComponentInstance | null;
309
+
310
+ /**
311
+ * Initialize the Checkout View
312
+ * @param options - Configuration options
313
+ * @returns The Svelte component instance, or null if target not found or eventId missing
314
+ */
315
+ export function initCheckoutView(
316
+ _options: CheckoutOptions
317
+ ): SvelteComponentInstance | null;
318
+
319
+ /**
320
+ * Alias for initCheckoutView
321
+ */
322
+ export const initCheckout: typeof initCheckoutView;
323
+
324
+ /**
325
+ * Initialize the Success View
326
+ * @param options - Configuration options
327
+ * @returns The Svelte component instance, or null if target not found
328
+ */
329
+ export function initSuccessView(
330
+ _options: SuccessViewOptions
331
+ ): SvelteComponentInstance | null;
332
+
333
+ /**
334
+ * Alias for initSuccessView
335
+ */
336
+ export const initSuccess: typeof initSuccessView;
337
+
338
+ /**
339
+ * Auto-mount: Automatically finds and mounts calendar to elements with class 'micdrop-calendar-container'
340
+ */
341
+ export function autoMount(): void;
342
+
343
+ // ============================================================================
344
+ // Runtime Configuration
345
+ // ============================================================================
346
+
347
+ /**
348
+ * Opt-in embed integration settings for a venue site embedding the widget.
349
+ */
350
+ export interface EmbedConfig {
351
+ /**
352
+ * Emit a MICDROP_CHECKOUT_COMPLETE postMessage when an order completes. The
353
+ * payload is non-PII: `{ orderId, eventId }`. Default: false.
354
+ */
355
+ postMessageOnSuccess?: boolean;
356
+ /**
357
+ * REQUIRED concrete origin (e.g. 'https://venue.example') for the
358
+ * MICDROP_CHECKOUT_COMPLETE message. The message is never posted to '*'; without a
359
+ * concrete absolute origin nothing is sent and a warning is logged.
360
+ */
361
+ postMessageTargetOrigin?: string | null;
362
+ }
363
+
364
+ /**
365
+ * Options for {@link configureVenueCalendar}. All fields are optional — pass
366
+ * only the keys you want to change.
367
+ */
368
+ export interface ConfigureVenueCalendarOptions {
369
+ /** Called whenever the widget surfaces a caught error (wire into Sentry/Rollbar/etc). */
370
+ onError?: (_error: Error, _context: { source: string }) => void;
371
+ /** Override the backend origin for multi-region setups. */
372
+ apiBaseUrl?: string;
373
+ /** Request timeout in ms, forwarded to the API client. */
374
+ apiTimeout?: number;
375
+ /** Retry count, forwarded to the API client. */
376
+ apiRetries?: number;
377
+ /** Opt-in embed integration settings (see {@link EmbedConfig}). */
378
+ embed?: EmbedConfig;
379
+ }
380
+
381
+ /**
382
+ * Configure the calendar widget at runtime: error reporting, API overrides,
383
+ * and the opt-in embed integration (e.g. the MICDROP_CHECKOUT_COMPLETE postMessage).
384
+ * @param options - Configuration options
385
+ */
386
+ export function configureVenueCalendar(
387
+ _options?: ConfigureVenueCalendarOptions
388
+ ): void;
389
+
390
+ // ============================================================================
391
+ // Theme Exports
392
+ // ============================================================================
393
+
394
+ /**
395
+ * Collection of preset themes
396
+ */
397
+ export const themes: Themes;
398
+
399
+ /**
400
+ * Light theme preset
401
+ */
402
+ export const lightTheme: ThemeColors;
403
+
404
+ /**
405
+ * Dark theme preset
406
+ */
407
+ export const darkTheme: ThemeColors;
408
+
409
+ /**
410
+ * High contrast theme preset for accessibility
411
+ */
412
+ export const highContrastTheme: ThemeColors;
413
+
414
+ /**
415
+ * Apply a theme to the calendar widget
416
+ * @param theme - Theme object with HSL color values
417
+ * @param container - Optional container element (defaults to document.documentElement)
418
+ */
419
+ export function applyTheme(
420
+ _theme: Partial<ThemeColors>,
421
+ _container?: HTMLElement
422
+ ): void;
423
+
424
+ /**
425
+ * Generate CSS string for embedding themes
426
+ * @param theme - Theme object
427
+ * @returns CSS string with custom properties
428
+ */
429
+ export function generateThemeCSS(_theme: Partial<ThemeColors>): string;
430
+
431
+ // ============================================================================
432
+ // Brand scheme → calendar CSS variables
433
+ // ============================================================================
434
+
435
+ /**
436
+ * The builder's saved colour scheme: token name → hex string. Partial schemes
437
+ * are fine — a missing or invalid token is left to the stylesheet's default.
438
+ */
439
+ export type ColorSchemeColors = Record<string, string>;
440
+
441
+ /**
442
+ * Map a scheme to venue-calendar's CSS variables (`--brand-primary` …) as
443
+ * wrapper-less HSL strings ("209 99% 50%").
444
+ */
445
+ export function schemeColorsToCSSVars(
446
+ _colors: ColorSchemeColors | null | undefined
447
+ ): Record<string, string>;
448
+
449
+ /**
450
+ * Write a scheme onto an element as inline custom properties. Pass the
451
+ * widget's own root: the stylesheet declares the default palette on that root,
452
+ * so a variable set on an ancestor never reaches it. Returns the names written.
453
+ */
454
+ export function applySchemeColors(
455
+ _colors: ColorSchemeColors | null | undefined,
456
+ _container: HTMLElement
457
+ ): string[];
458
+
459
+ /** Remove what applySchemeColors wrote. */
460
+ export function clearSchemeColors(
461
+ _container: HTMLElement,
462
+ _names: string[]
463
+ ): void;
464
+
465
+ // ============================================================================
466
+ // Scarcity Canon
467
+ // ============================================================================
468
+ // These MUST be declared by hand. This file is not generated — it is copied
469
+ // verbatim from `src/lib/types/` to `dist/types/` by vite.config.lib.js and is
470
+ // what package.json's "types" points at, so a runtime `export` added to
471
+ // VenueCalendar.js is invisible to TypeScript until it is also declared here.
472
+ // The `exports` map has no wildcard either, so a deep import
473
+ // (`@getmicdrop/venue-calendar/constants/scarcity`) is not an escape hatch.
474
+ // Consumers — notably micdrop-frontend's admin mirror in
475
+ // `src/lib/foundry/settings-tickets/scarcity.ts` — import these from the
476
+ // package ENTRY, and that import only typechecks because of the declarations
477
+ // below. Keep them in sync with `src/lib/constants/scarcity.ts`.
478
+
479
+ /**
480
+ * Scarcity tier for a ticket. `sold-out` at zero remaining, `urgent` carries an
481
+ * exact count ("Only N left"), `low` is the vague badge, `plenty` no claim.
482
+ */
483
+ export type ScarcityLevel = 'sold-out' | 'urgent' | 'low' | 'plenty';
484
+
485
+ /**
486
+ * The sliding-scale knobs behind every scarcity claim in venue-calendar.
487
+ * Percent thresholds bend toward the absolute floor/cap so the claim scales
488
+ * with venue size; `MAX_EXACT_COUNT` caps when an exact count may be revealed.
489
+ */
490
+ export const SCARCITY_THRESHOLDS: {
491
+ readonly URGENT_PCT: 10;
492
+ readonly LOW_PCT: 20;
493
+ readonly MAX_EXACT_COUNT: 20;
494
+ readonly ABSOLUTE_FLOOR: 5;
495
+ readonly ABSOLUTE_CAP: 30;
496
+ };
497
+
498
+ /**
499
+ * Compute the scarcity level for a (remaining, total) pair.
500
+ *
501
+ * Returns 'plenty' when `total <= 0` (no percentage to compute — treat as
502
+ * unlimited/unknown capacity, make no claim) and 'sold-out' for remaining <= 0.
503
+ *
504
+ * The implementation takes a third `policy` parameter (MIC-3808) and this
505
+ * declaration deliberately omits it: it exists only so a test can reach the
506
+ * branch, and a package consumer passing its own policy would be standing up a
507
+ * second scarcity ladder. Narrowing the public signature is the point, not drift.
508
+ */
509
+ export function computeScarcityLevel(
510
+ _remaining: number,
511
+ _total: number
512
+ ): ScarcityLevel;
513
+
514
+ // ============================================================================
515
+ // Svelte Component Exports
516
+ // ============================================================================
517
+
518
+ /**
519
+ * VenueCalendar Svelte component (CalendarContainer)
520
+ */
521
+ export const VenueCalendar: any;
522
+
523
+ /**
524
+ * Checkout Svelte component
525
+ */
526
+ export const Checkout: any;
527
+
528
+ /**
529
+ * CheckoutView alias for Checkout
530
+ */
531
+ export const CheckoutView: any;
532
+
533
+ /**
534
+ * Success Svelte component
535
+ */
536
+ export const Success: any;
537
+
538
+ /**
539
+ * EventPage Svelte component — full event page with EventMeta, ScarcityBadge, etc.
540
+ */
541
+ export const EventPage: any;
542
+
543
+ /**
544
+ * SeriesPage Svelte component — series landing page with hero, upcoming dates, performers, FAQ sidebar
545
+ */
546
+ export const SeriesPage: any;
547
+
548
+ /**
549
+ * SeriesHomeView alias (deprecated — use SeriesPage instead)
550
+ */
551
+ export const SeriesHomeView: any;
552
+
553
+ /**
554
+ * CollectionView Svelte component
555
+ */
556
+ export const CollectionView: any;
557
+
558
+ /**
559
+ * ViewTicketsEmbed — the buyer's post-purchase ticket view (dice-swipe), as a
560
+ * LOADER: calling it resolves to the component, which is what keeps the view in
561
+ * its own chunk. Takes `{ orderUUID, locale?, labels? }` and self-fetches the
562
+ * order.
563
+ *
564
+ * This file is hand-written, so an export missing from it is invisible until a
565
+ * consumer imports it: the runtime barrel has exported this one since v3.6.0,
566
+ * and micdrop-frontend's apex `/tickets/<orderUUID>` route (MIC-3859) could not
567
+ * type-check against the published package without a local module augmentation.
568
+ * That augmentation can be deleted once a release carrying this line is pinned.
569
+ */
570
+ export const ViewTicketsEmbed: any;
571
+
572
+ // ============================================================================
573
+ // Default Export
574
+ // ============================================================================
575
+
576
+ declare const _default: {
577
+ initVenueCalendar: typeof initVenueCalendar;
578
+ initEventPage: typeof initEventPage;
579
+ initCheckoutView: typeof initCheckoutView;
580
+ initCheckout: typeof initCheckoutView;
581
+ initSuccessView: typeof initSuccessView;
582
+ initSuccess: typeof initSuccessView;
583
+ autoMount: typeof autoMount;
584
+ VenueCalendar: any;
585
+ themes: Themes;
586
+ lightTheme: ThemeColors;
587
+ darkTheme: ThemeColors;
588
+ highContrastTheme: ThemeColors;
589
+ applyTheme: typeof applyTheme;
590
+ generateThemeCSS: typeof generateThemeCSS;
591
+ Checkout: any;
592
+ CheckoutView: any;
593
+ Success: any;
594
+ /** @deprecated Use Success instead */
595
+ Sucess: any;
596
+ EventPage: any;
597
+ SeriesPage: any;
598
+ SeriesHomeView: any;
599
+ CollectionView: any;
600
+ };
601
+
602
+ export default _default;