@fanfare-io/fanfare-sdk-react 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -47,8 +47,8 @@ export { GrantedPanel } from './components/compositions/granted-panel';
47
47
  export type { GrantedPanelProps } from './components/compositions/granted-panel';
48
48
  export { OutcomePanel } from './components/compositions/outcome-panel';
49
49
  export type { OutcomePanelProps } from './components/compositions/outcome-panel';
50
- export { ExperienceWidget, type AccessCodeSlotProps, type AuthSlotProps, type ChallengeSlotProps, type CheckoutProcessingSlotProps, type EndedSlotProps, type EnterableSlotProps, type ErrorSlotProps, type ExperienceRenderProps, type ExperienceWidgetProps, type ExperienceWidgetSlots, type ExpiredSlotProps, type GrantedSlotProps, type LoadingSlotProps, type ParticipatingSlotProps, type PaymentCollectionSlotProps, type ReceiptSlotProps, type ReservationCheckoutSlotProps, type SlotProps, type StartSlotProps, type UpcomingSlotProps, type WaitlistSlotProps, } from './components/widgets/experience-widget';
51
- export { CheckoutProcessingPanel, PaymentCollectionPanel, ReceiptPanel, ReservationCheckoutPanel, } from './components/checkout';
50
+ export { ExperienceWidget, type AccessCodeSlotProps, type AuthSlotProps, type ChallengeSlotProps, type CheckoutProcessingSlotProps, type EndedSlotProps, type EnterableSlotProps, type ErrorSlotProps, type ExperienceRenderProps, type ExperienceWidgetProps, type ExperienceWidgetSlots, type ExpiredSlotProps, type GrantedSlotProps, type LoadingSlotProps, type ParticipatingSlotProps, type PaymentCollectionSlotProps, type ReceiptSlotProps, type SlotProps, type StartSlotProps, type UpcomingSlotProps, type WaitlistSlotProps, } from './components/widgets/experience-widget';
51
+ export { CheckoutProcessingPanel, PaymentCollectionPanel, ReceiptPanel } from './components/checkout';
52
52
  export { LoadingView, StartView, UpcomingModule, WaitlistView } from './components/widgets/internal';
53
53
  export type { LoadingViewProps, StartViewProps, UpcomingModuleProps, WaitlistViewProps, } from './components/widgets/internal';
54
54
  export { AppointmentModule, AuctionModule, DrawModule, QueueModule, TimedReleaseModule, } from './components/widgets/internal';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { A as s, b as n, c as o, e as r, f as t, B as u, C as i, h as l, i as d, j as c, k as P, l as C, m as p, n as m, D as h, E, o as T, p as F, q as M, r as f, F as A, s as S, G as w, I as x, t as y, v as L, L as R, O as V, w as g, P as v, x as k, y as I, z as O, H as B, Q as D, R as J, J as H, K as _, M as b, T as G, N as W, U as z, V as N, W as Q, X as U, Y as j, Z as q, _ as K, $ as X, a0 as Y, a1 as Z, a2 as $, a3 as aa, a4 as ea, a5 as sa, u as na } from "./index-DSJ9q_Zs.js";
3
- import { RTL_LOCALES as ra, isRTLLocale as ta } from "@fanfare-io/fanfare-sdk-i18n";
2
+ import { A as s, b as n, c as o, e as r, f as t, B as u, C as i, h as l, i as d, j as c, k as P, l as C, m as p, n as m, D as E, E as T, o as h, p as F, q as M, r as f, F as A, s as S, G as w, I as x, t as y, v as L, L as V, O as g, w as R, P as v, x as I, y as O, z as k, H as B, Q as D, R as J, J as H, K as _, T as b, M as G, N as W, U as z, W as N, V as Q, X as U, Y as j, Z as q, _ as K, $ as X, a0 as Y, a1 as Z, a2 as $, a3 as aa, a4 as ea, u as sa } from "./index-DMM2uyyz.js";
3
+ import { RTL_LOCALES as oa, isRTLLocale as ra } from "@fanfare-io/fanfare-sdk-i18n";
4
4
  export {
5
5
  s as AccessCodeForm,
6
6
  n as AppointmentModule,
@@ -16,9 +16,9 @@ export {
16
16
  C as CardTitle,
17
17
  p as ChallengeGate,
18
18
  m as CheckoutProcessingPanel,
19
- h as DrawModule,
20
- E as EndedModule,
21
- T as ErrorView,
19
+ E as DrawModule,
20
+ T as EndedModule,
21
+ h as ErrorView,
22
22
  F as ExperienceJourneyController,
23
23
  M as ExperienceJourneySkeleton,
24
24
  f as ExperienceWidget,
@@ -28,36 +28,35 @@ export {
28
28
  x as I18nProvider,
29
29
  y as InfoPanel,
30
30
  L as Input,
31
- R as LoadingView,
32
- V as OTPInput,
33
- g as OutcomePanel,
31
+ V as LoadingView,
32
+ g as OTPInput,
33
+ R as OutcomePanel,
34
34
  v as PanelBody,
35
- k as PanelFooter,
36
- I as PanelHeading,
37
- O as PanelLayout,
35
+ I as PanelFooter,
36
+ O as PanelHeading,
37
+ k as PanelLayout,
38
38
  B as PaymentCollectionPanel,
39
39
  D as QueueModule,
40
- ra as RTL_LOCALES,
40
+ oa as RTL_LOCALES,
41
41
  J as ReceiptPanel,
42
- H as ReservationCheckoutPanel,
43
- _ as ShadowDOMPreview,
44
- b as StartView,
45
- G as THEME_CSS_VARS,
46
- W as ThemeProvider,
47
- z as TimedReleaseModule,
48
- N as UpcomingModule,
49
- Q as WaitlistView,
50
- U as buildThemeCssVars,
51
- j as buttonVariants,
52
- ta as isRTLLocale,
53
- q as normalizeOutcomeReason,
54
- K as useBeaconTracker,
55
- X as useExperienceJourney,
56
- Y as useFanfare,
57
- Z as useFanfareAuth,
58
- $ as useFanfareDomBridge,
59
- aa as useJourneySnapshot,
60
- ea as useNanostore,
61
- sa as useSdkEvent,
62
- na as useTranslations
42
+ H as ShadowDOMPreview,
43
+ _ as StartView,
44
+ b as THEME_CSS_VARS,
45
+ G as ThemeProvider,
46
+ W as TimedReleaseModule,
47
+ z as UpcomingModule,
48
+ N as WaitlistView,
49
+ Q as buildThemeCssVars,
50
+ U as buttonVariants,
51
+ ra as isRTLLocale,
52
+ j as normalizeOutcomeReason,
53
+ q as useBeaconTracker,
54
+ K as useExperienceJourney,
55
+ X as useFanfare,
56
+ Y as useFanfareAuth,
57
+ Z as useFanfareDomBridge,
58
+ $ as useJourneySnapshot,
59
+ aa as useNanostore,
60
+ ea as useSdkEvent,
61
+ sa as useTranslations
63
62
  };
@@ -2,7 +2,7 @@
2
2
  import { jsxs as E, Fragment as F, jsx as g } from "react/jsx-runtime";
3
3
  import * as r from "react";
4
4
  import { createPortal as M } from "react-dom";
5
- import { u as B, a as D, d as N, S as I, B as O, g as _ } from "./index-DSJ9q_Zs.js";
5
+ import { u as B, a as D, d as N, S as I, B as O, g as _ } from "./index-DMM2uyyz.js";
6
6
  const j = [
7
7
  "--ff-color-foreground",
8
8
  "--ff-font-sans",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanfare-io/fanfare-sdk-react",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "React adapter for Fanfare SDK",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",
@@ -43,8 +43,8 @@
43
43
  "nanostores": "^1.1.0",
44
44
  "tailwind-merge": "^2.6.0",
45
45
  "valibot": "^1.1.0",
46
- "@fanfare-io/fanfare-sdk-core": "0.13.0",
47
- "@fanfare-io/fanfare-sdk-i18n": "0.13.0"
46
+ "@fanfare-io/fanfare-sdk-core": "0.14.0",
47
+ "@fanfare-io/fanfare-sdk-i18n": "0.14.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@iconify-json/heroicons": "^1.2.3",
@@ -91,8 +91,8 @@
91
91
  "vite-plugin-dts": "^4.5.4",
92
92
  "vite-tsconfig-paths": "^5.1.4",
93
93
  "vitest": "^4.1.10",
94
- "@fanfare-io/fanfare-sdk-core": "0.13.0",
95
- "@fanfare-io/fanfare-sdk-solid": "0.13.0"
94
+ "@fanfare-io/fanfare-sdk-core": "0.14.0",
95
+ "@fanfare-io/fanfare-sdk-solid": "0.14.0"
96
96
  },
97
97
  "sideEffects": [
98
98
  "**/*.css"
@@ -1,18 +0,0 @@
1
- import { ReservationCheckoutSlotProps } from '../widgets/experience-widget';
2
- import * as React from "react";
3
- /**
4
- * Default reservation-checkout panel for post-win checkout flows.
5
- *
6
- * `Countdown`'s `onComplete` is a no-op: the journey machine owns the reservation's expiry (it
7
- * arms its own timer and transitions the sequence to `ended` when the deadline passes), so the
8
- * panel never disables itself locally — it simply stops being rendered once the phase changes.
9
- *
10
- * Elements renders only on the internal-processor arm. The discriminator is `processor`; an absent
11
- * configuration block on that arm means the configuration read failed, which is a retryable outage
12
- * inside a ticking window — never a signal that another processor is in play.
13
- *
14
- * A pending action adds visible substates over the same screen rather than replacing it: the card
15
- * field stays mounted through the whole challenge, because a consumer whose bank prompt failed may
16
- * need to submit again with the card they already typed.
17
- */
18
- export declare function ReservationCheckoutPanel({ reservation, savedPaymentMethods, processor, paymentProvider, pendingAction, onConfirm, onResume, isConfirming, onRetryPaymentConfig, ...slotProps }: ReservationCheckoutSlotProps): React.ReactElement;