tf-checkout-react-native 2.0.0-beta.24 → 2.0.0-beta.25

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 (3) hide show
  1. package/README.md +11 -11
  2. package/docs/API.md +6 -6
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -5,12 +5,12 @@ tickets. Start with `EmbeddedCheckout`, compose individual sections, or own the
5
5
  presentation using `useCheckout` and the shared API. The package includes its
6
6
  private shared core; hosts do not install `tf-checkout-shared`.
7
7
 
8
- This reference is for **`tf-checkout-react-native@2.0.0-beta.24`**, a
8
+ This reference is for **`tf-checkout-react-native@2.0.0-beta.25`**, a
9
9
  prerelease with a different API from 1.x (including its `CheckoutV2`). Pin the
10
10
  version: `latest` and `beta` tags can move; check `npm view tf-checkout-react-native dist-tags`.
11
- The [API reference](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.24/docs/API.md)
12
- covers components and hooks; the [declarations](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.24/dist/index.d.ts)
13
- contain all types. The [web package](https://www.npmjs.com/package/tf-checkout-react/v/2.0.0-beta.24)
11
+ The [API reference](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.25/docs/API.md)
12
+ covers components and hooks; the [declarations](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.25/dist/index.d.ts)
13
+ contain all types. The [web package](https://www.npmjs.com/package/tf-checkout-react/v/2.0.0-beta.25)
14
14
  shares the engine but has different UI and ports. Availability depends on the
15
15
  backend, event, gateway, account and device; installation does not establish
16
16
  hosted-checkout parity or payment acceptance.
@@ -49,7 +49,7 @@ identify duplicates.
49
49
  For an Expo project with compatible React and RN versions:
50
50
 
51
51
  ```sh
52
- npx expo install tf-checkout-react-native@2.0.0-beta.24 \
52
+ npx expo install tf-checkout-react-native@2.0.0-beta.25 \
53
53
  @tanstack/react-query @stripe/stripe-react-native \
54
54
  @react-native-clipboard/clipboard react-native-webview \
55
55
  react-native-render-html@6.3.4 expo-secure-store
@@ -76,7 +76,7 @@ using your normal process. For a bare React Native app, install the peers in
76
76
  the app (React and React Native are normally already present):
77
77
 
78
78
  ```sh
79
- npm install tf-checkout-react-native@2.0.0-beta.24 @tanstack/react-query \
79
+ npm install tf-checkout-react-native@2.0.0-beta.25 @tanstack/react-query \
80
80
  @stripe/stripe-react-native @react-native-clipboard/clipboard \
81
81
  react-native-webview react-native-render-html@6.3.4
82
82
  ```
@@ -540,7 +540,7 @@ and email-confirmation defaults; match it with the paired `Payment` props. The
540
540
  SDK's confirmation email value is a UI check; the order API uses the primary
541
541
  email. Recheck terms, privacy and marketing consent with your own policy.
542
542
 
543
- **Beta.23 consent limitation:** when `privacyPolicy` is supplied, the stock
543
+ **Consent limitation:** when `privacyPolicy` is supplied, the stock
544
544
  privacy checkbox reads and writes `consent.ttfOptIn`, which the order sends as
545
545
  `ttf_opt_in`. It is not independent of the Ticket Fairy marketing flag. The
546
546
  brand opt-in uses a separate value. If both opt-in labels are explicitly empty,
@@ -679,7 +679,7 @@ controlled provider must create its `value` with the same `paymentSheet` and
679
679
  supported. In headless UI, use `checkout.paymentSheet?.placeOrder()` when
680
680
  available; the normal `Payment` section chooses it for the eligible card row.
681
681
 
682
- In beta.24 the sheet is limited to eligible non-MXN Stripe PaymentIntents whose
682
+ In beta.25 the sheet is limited to eligible non-MXN Stripe PaymentIntents whose
683
683
  original methods are card alone, or card plus Cash App Pay in USD. It does not
684
684
  admit delayed methods, create a new intent or add a Stripe Customer/saved-card
685
685
  contract. The SDK checks the original intent's identity, amount and currency
@@ -879,7 +879,7 @@ reads require an appropriately authorized account session; the checkout buyer
879
879
  scope does not grant it. Low-level APIs do not replace checkout preflight or
880
880
  payment reconciliation.
881
881
 
882
- The [API reference](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.24/docs/API.md)
882
+ The [API reference](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.25/docs/API.md)
883
883
  includes the full component and hook catalog.
884
884
 
885
885
  ## Authentication and account components
@@ -900,7 +900,7 @@ Additional exports include `TicketChange`, `TicketRefund`, `TicketGift`,
900
900
  `Streaming`, `PhoneAuthentication`, `AccountEmailEnrichment`,
901
901
  `EventDiscussionView` and post reactions. Their availability depends on the
902
902
  deployed backend, authorized account scope and host-owned navigation. See the
903
- [API reference](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.24/docs/API.md)
903
+ [API reference](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.25/docs/API.md)
904
904
  for component variants and required props.
905
905
 
906
906
  Standalone account components that use query hooks need a `QueryClientProvider`;
@@ -950,7 +950,7 @@ against the exact new version, backend and devices. The historical
950
950
  and [1.0.47 declarations](https://unpkg.com/tf-checkout-react-native@1.0.47/lib/typescript/src/index.d.ts)
951
951
  describe the old package; examples there are not 2.x instructions.
952
952
 
953
- | 1.x integration | 2.x beta.24 approach |
953
+ | 1.x integration | 2.x beta.25 approach |
954
954
  | --- | --- |
955
955
  | `setConfig({ EVENT_ID, ENV, ... })` and event-bound global UI | Restore a secure adapter and call `configureCheckout({ env, clientId, clientSecret: '', storage })`; pass `eventId` to the checkout or section. |
956
956
  | `Tickets` callbacks such as `onAddToCartSuccess` / `onPressMyOrders` | `Tickets` uses `onContinue` / `onSelectSeats`; the host owns orders navigation. Rework the host flow, not just prop names. |
package/docs/API.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # React Native API reference
2
2
 
3
3
  This reference describes the API and behavior shipped in
4
- `tf-checkout-react-native@2.0.0-beta.24`. Read it alongside the
5
- [package README](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.24/README.md)
4
+ `tf-checkout-react-native@2.0.0-beta.25`. Read it alongside the
5
+ [package README](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.25/README.md)
6
6
  for installation, secure setup, complete examples, payment safety and
7
- limitations. The [published declarations](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.24/dist/index.d.ts)
7
+ limitations. The [published declarations](https://unpkg.com/tf-checkout-react-native@2.0.0-beta.25/dist/index.d.ts)
8
8
  are authoritative for exact types and include the remaining DTO fields.
9
9
  The shared core is bundled; do not install its private workspace package.
10
10
  Availability of any operation depends on the deployed backend, event, account,
@@ -15,7 +15,7 @@ its OS-protected synchronous storage adapter. Hooks using React Query need a
15
15
  `QueryClientProvider` (provided inside `CheckoutProvider`). Do not put
16
16
  confidential client secrets into the app.
17
17
 
18
- **TypeScript troubleshooting:** beta.24 declarations reference a global
18
+ **TypeScript troubleshooting:** beta.25 declarations reference a global
19
19
  `Crypto` type. A host configuration excluding DOM and lacking a compatible
20
20
  ambient `Crypto` type may report TS2304 while checking SDK declarations. Supply
21
21
  compatible host type definitions where possible. `skipLibCheck` skips
@@ -127,7 +127,7 @@ rendered. Without `onContinue` it mirrors edits into the combined form. A
127
127
  matching email/holder flags and `requirePrivacyPolicy` when the host requires
128
128
  that checkbox. `onPrivacyRequired` lets the host reveal the inline error.
129
129
 
130
- In beta.24 the stock `privacyPolicy` checkbox shares `consent.ttfOptIn`, sent
130
+ In beta.25 the stock `privacyPolicy` checkbox shares `consent.ttfOptIn`, sent
131
131
  as `ttf_opt_in`; it does not capture independent privacy and marketing choices.
132
132
  If both opt-in labels are explicitly empty, consent may not be committed and
133
133
  the privacy gate can remain blocked. `skipWhenProfileComplete` (or embedded
@@ -297,7 +297,7 @@ SDK primitive styles; `resolveTheme(partial)` resolves the light/dark tokens.
297
297
 
298
298
  Import these as `hooks.use…`, except the **top-level native** `useCheckout()`
299
299
  and the context/theme hooks in the preceding sections. Parameters below describe
300
- beta.24; consult the declarations for exact returned state, types, generics and
300
+ beta.25; consult the declarations for exact returned state, types, generics and
301
301
  callbacks. Hook state is scoped to the active configuration/session. Avoid using
302
302
  an old async result to mutate a newly signed-in buyer's UI. Some hooks return
303
303
  React Query query/mutation results; flow hooks return their own state, commands
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tf-checkout-react-native",
3
- "version": "2.0.0-beta.24",
3
+ "version": "2.0.0-beta.25",
4
4
  "description": "TheTicketFairy ReactNative Checkout library",
5
5
  "homepage": "https://github.com/theticketfairy/tf-shared-libraries#readme",
6
6
  "author": "The Ticket Fairy",