# SDK migrations

This file ships in both @lockerverse/sdk and @lockerverse/react. Use the copy in
the target installed release. This is an agent-run procedure, not an install
script. Installing a package does not edit host code or guarantee these steps ran.

## 0.2.259 — page visits

- **Affected:** every widget hook that sends analytics (payment, donate
  launcher, signup, bookings, auctions; React and the browser embed). A page
  that shows Lockerverse content now sends one Page Viewed when the hook
  mounts, before any widget view, so reports can compare visits with widget
  views and checkouts. Before, Page Viewed went only with the first widget event.
- **Automatic:** on after the update. No host code change.
- **Host adoption:** `analytics: false` in the hook options still turns all
  analytics off.
- **Check:** load a page that uses a widget hook; the network panel shows a
  POST to `/api/v1/s/batch` within a few seconds, with no click.

## 0.2.258 — booking and auction analytics

- **Affected:** `useLockerverseBookings`, `useLockerverseAuction`,
  `useLockerverseAuctions`, and `LockerverseAuctionItem` checkout (React and the
  browser embed). They send the same anonymous product analytics as the payment
  widget: Widget Viewed, Auction Viewed, Auction Item Viewed, Checkout Started,
  Payment Info Entered, Payment Failed, Order Confirmation Viewed. No contact
  data, bid amounts or free text are sent. Bids are reported by the backend.
- **Automatic:** on after the update. No host code change.
- **Host adoption:** pass `analytics: false` in the hook options to opt out.
  Booking hosts that use a development client also pass `environment:
  "development"` to `useLockerverseBookings`. Global Privacy Control and Do Not
  Track are honored without code.
- **Check:** open an auction item page; the network panel shows a POST to
  `/api/v1/s/batch`. Do not place a live bid or payment for this check.

## 0.2.257 — product analytics

- **Affected:** `@lockerverse/react` payment, donate launcher and signup widgets.
  The widgets send anonymous analytics events (Page Viewed, Widget Viewed,
  Checkout Started, Payment Info Entered, Payment Failed, Order Confirmation
  Viewed, Form Submitted) to `analytics-be.lockerverse.com`. No contact data,
  payment data, or page query strings other than marketing parameters are sent.
  The SDK stores an anonymous ID, a session ID and first/last-touch attribution
  in the host page's `localStorage` (`lv_sdk_*` keys). Payment requests add
  attribution fields (`analyticsAnonymousId`, `utm_*`, `campaign_id`,
  `referral_user_id`, `checkoutReferrer`, `landingUrl`, `first_*`) to the payment `metadata`.
- **Automatic:** on after the update. No host code change.
- **Host adoption:** hosts that must not send analytics pass
  `useLockerverseWidget(options, { analytics: false })` and
  `useLockerverseSignup(options, { analytics: false })`. Global Privacy Control
  and Do Not Track are honored without code. Hosts with a cookie or privacy
  notice mention first-party analytics storage.
- **Check:** open a page with a widget and `?utm_source=test`; the network panel
  shows a POST to `/api/v1/s/batch` and `localStorage` has `lv_sdk_anonymous_id`.
  Do not submit a live payment for this check.

## 0.2.256 — booking member prices

- **Affected:** `@lockerverse/sdk/bookings`. A catalog service can have
  `memberPrice: {label, amountCents}`. The new `client.price(serviceVariationId,
  email)` returns the price for that customer. A member price is used once per
  email. Attempts with a member price have `priceLabel` and
  `regularAmountCents`; `amountCents` stays the charged price.
- **Automatic:** none. Existing booking pages keep showing the regular price,
  and the backend charges the member price to qualifying emails.
- **Host adoption:** booking pages that show a total before payment call
  `client.price` when the email or service changes and show its `amountCents`
  as the total and on the Pay button. Show `memberPrice.label` next to it.
- **Check:** on a business with a member price, enter a qualifying email and
  see the member price; enter another email and see the regular price. Do not
  submit a live payment for this check.

## 0.2.255 — returning bidders keep their details

- **Affected:** `LockerverseAuctionItem` bid and Buy Now checkout, in React and
  in the browser embed.
- **Automatic:** after an accepted bid or a paid purchase, the checkout saves
  the bidder's email, phone, billing name and address, and delivery address in
  the browser's local storage (`lockerverse:auction-bidder`). The next checkout
  on the same site fills these fields. The card is never saved; the bidder
  enters it again. Bidders can edit any filled field.
- **Host adoption:** none. Script hosts update the pinned script URL to `@0.2.255` to adopt.
- **Check:** place a test bid on a dev auction, return to the item, and open
  the checkout again. Email, phone and billing address are filled.

## Unreleased — classic-script embed loader

- **Affected:** the optional browser auction embed. A new file,
  `dist/embed/lockerverse-loader.js`, ships beside `dist/embed/lockerverse.js`.
  Existing React, Core and module-script embed integrations are unchanged.
- **Optional adoption:** hosts that can add only a plain script URL, such as a
  CMS block that inserts `<script src>` without `type="module"`, load the
  version-pinned loader URL and keep the same `<lockerverse-auctions>` element.
  The loader loads the module embed from its own folder and version.
- **Check:** load the host page, confirm the catalog and an item open, and
  confirm no script error appears. Do not submit a live bid for this check.

## 0.2.242 — custom product availability

The standard launcher handles shared limits automatically. Custom pickers can use `getLockerverseProductAvailability` from `@lockerverse/sdk/checkout`. The matching React release includes an example in its payment widget guide.

## 0.2.237 — signup address suggestions

- **Automatic:** `LockerverseSignup` uses the city and state entered in the form when searching streets. A search can start with a street alone. Empty results and service failures explain how to continue with manual entry.
- **Host adoption:** existing hosts that pass `googlePlacesApiKey` need no code change. Hosts without a key can continue using manual entry. Auction and payment checkouts use Stripe's address fields.
- **Check:** type `Merry Lane` with city and state blank, then move focus to City and back to Street address. With a working key, suggestions or the empty-result message should appear. Repeat with city and state filled in. Do not submit the signup for this check.

## 0.2.236 — community styling across auction surfaces

- **Automatic:** after updating matching SDK and React packages, the auction browser, catalog, standalone item cards, item checkout, and its result share the community accent. Cards use solid branded actions and a matching hover/focus border. Hex, CSS named, RGB and HSL accents receive contrasting text. The SDK composites translucent colors against the selected theme. Explicit `style` values take precedence; provide `--lockerverse-accent-contrast` for a contextual CSS color during server rendering. The Auburn Vault collection uses its configured two-column layout on wide screens.
- **Host adoption:** use `getAuctionPresentationStyle(auction, overrides?, theme?)` from `@lockerverse/react/auction-presentation` or `@lockerverse/react/auction` when composing a custom host view. A standalone result can use the helper with its community color and pass the returned `style`. Pinned embeds can continue using `getAuctionEmbedPresentation` for their catalog options.
- **Script hosts:** update the pinned script URL to `@0.2.236`. Keep `accent` when an explicit override is intended. React hosts keep control of headings, filters, navigation, and themes.
- **Check:** check the same auction's catalog, item, and result action colors in light and dark themes. Verify host color overrides and card focus without creating a live transaction.

## 0.2.235 — shared auction embed presentation

- **Script hosts:** update the script URL to `@0.2.235`. A pinned auction shows its items without the catalog header or filters. Its actions use the community color. Omit `accent` to use that color, or supply an explicit override. Auburn’s installed collection uses two columns on wide screens.
- **React embed hosts:** import `getAuctionEmbedPresentation(auction)` from `@lockerverse/react/auction-presentation` (safe for server components) or `@lockerverse/react/auction`. Spread `catalog` or `item` onto the corresponding component. `defaultTheme` provides the collection-specific default when applicable. Other React integrations need no host changes.
- **Check:** compare the same pinned auction in the script and hosted page in both themes. Check card actions, focus, item links, and the payment button without submitting a bid or payment.

## 0.2.234 — light auction catalog colors

Light catalogs use the configured accent for selected status filters and a darker accent border for hovered or focused cards. Update the package or pinned embed URL to adopt the styles.

## 0.2.233 — equal-height auction cards

The standard auction catalog now aligns card bottoms and bid buttons within each row. Update the React package or the browser embed script to this version to adopt the layout.

## 0.2.230 — browser embed loading and dark theme

- **Adoption:** change the script URL from `@0.2.229` to `@0.2.230`.
  Keep the same element and public auction attributes.
- **Automatic:** the embed shows placeholders during the first catalog load
  and supplies its own background for the selected theme.
- **Check:** open the page on a fresh visit, switch between light and dark,
  and check the auction catalog and item on the host’s background.

## 0.2.229 — optional browser auction embed

- **Affected:** the separate browser artifact in `@lockerverse/react`, at
  `dist/embed/lockerverse.js`. Existing React and Core imports are unchanged.
- **Optional adoption:** non-React hosts can load one version-pinned module script
  and add `<lockerverse-auctions community="…"></lockerverse-auctions>`. The
  artifact bundles React and styles; it requires no host React installation.
- **Required for embed hosts:** read the browser embed guide, set public resource
  identity, allow the required script/API/media/payment resources, and preserve
  the `lv-<instance>-auction` and `lv-<instance>-item` query parameters. Use unique,
  stable instance names when a page has more than one embed.
- **Identity:** community, auction, environment, and instance remain fixed while
  mounted. Replace it with a new element to change them. Theme and accent can
  update in place. Do not remount during an unresolved payment or bid.
- **Limits:** this optional fallback renders in the browser and has no template
  slots or custom React renderers. Keep existing server-rendered integrations.
  Host security policies and payment-domain requirements still apply.
- **Check:** verify the published script, catalog, direct item links, Back/Forward,
  mobile layout, gallery, and checkout loading on the host without submitting a
  live transaction. Existing React consumers need no host edits for this option.

## Unreleased — business booking setup and payment verification

- **Affected:** optional SDK bookings, React booking state and booking payment.
- **Required for live bookings:** pass `customer: { name, email, phone }` to
  `initialize`; use the server's service and account configuration. Existing
  sandbox calls without customer details remain supported.
- **Recommended:** use `client.createSession(previousAccessToken?)` to start or
  renew a public booking session. Keep the returned capability private and retain
  it for saved-booking recovery. The method does not store or rotate host state.
- **Required for bank verification:** pass `attempt` and `onRecover` to
  `LockerverseBookingPayment`. Render it while `paymentVisible` is true and use
  `disabled={!canPay && !needsPaymentAction}`. This keeps Stripe mounted during
  submission and lets a recovered payment continue its bank verification.
- **Required for payment review:** show the saved attempt's `serviceName`,
  `amountCents`, `currency` and `timeZone`, rather than the current service configuration.
  The payment component prefers these saved values; legacy amount/currency props
  remain accepted. Keep new payments disabled if the saved amount is missing.
- **Automatic:** the optional payment component uses the attempt's Stripe account
  and recovers the same payment after a bank verification. Other entry points and
  consumers have no change. Neither booking data entry imports Stripe.
- **Automatic recovery:** configuration failure no longer prevents recovery of a
  saved attempt. Bank verification can continue for an existing payment even
  while the owner's current setup prevents new payments.
- **Optional, one-step checkout:** booking configuration now has `payment`
  (`publishableKey`, `stripeAccountId`) while it is ready, and
  `LockerverseBookingPayment` accepts `beforeConfirm`. Show the contact fields and
  card entry on one screen, and create the attempt with the customer in
  `beforeConfirm` (see the bookings guide). Hosts that keep a separate contact
  step need no change.
- **Check:** a new business uses its own booking and payment account; customer
  contact details reach the saved booking; a test card that needs authentication
  completes or recovers without a second payment. Keep `clientSecret` private.

## 0.2.224-dev.1 — clearer booking payment messages

- **Affected:** the optional React booking payment component.
- **Automatic:** card loading and payment result messages use customer language.
  Payment locks and saved-booking recovery are unchanged.
- **Required:** update the matching SDK/React pair and deploy the host. No API or
  prop changes are needed. Other consumers need no integration edits.
- **Check:** a card loading error asks the customer to reload and check the booking
  before another payment.

## 0.2.223-dev.1 — optional bookings

- No change is required for existing checkout, signup, auction or event consumers.
- Booking hosts must import the separate `@lockerverse/sdk/bookings` and
  `@lockerverse/react/bookings` entries and read `guides/bookings.md`.
- Load `@lockerverse/react/booking-payment` only when a recovered attempt can pay.
  Follow the optional Stripe peers in the target package manifest.
- Move business credentials and payment/booking work to the Lockerverse backend.
  Keep host access storage private and update the hook sessionKey on access changes.
- Do not release an unknown payment outcome by clearing local state. Recover the
  saved server attempt before permitting another payment.

## Upgrade procedure

1. Before installation, record the resolved installed version of each package
   from the lockfile or package manager, the host framework, and the features in
   use. Do not use a dependency range as proof of the installed version.
2. Select a published matching stable SDK/React pair. A copy-prompt version is a
   minimum, not a request to downgrade. Preserve a newer matching stable pair.
   Core-only consumers do not need to add React. Use the existing package manager
   and update the real lockfile. Follow peer requirements in the target manifests.
3. After installation, read this target file and SDK_RULES.md. React consumers
   must also read guides/integration.md and each applicable resource guide.
   Follow SDK_RULES.md to create or merge the short host-root AGENTS.md section
   so future upgrades use this procedure even without a new integration prompt.
4. For each affected package, apply all entries where old version < entry version
   <= target version, from oldest to newest. Include releases skipped by the
   upgrade. Use semantic version comparison, not string comparison. An Unreleased
   section is not a published migration and must not be applied to a stable host.
5. Apply required steps. Apply recommended steps when the feature and host support
   them and they fit the task. Keep deliberate host choices. For every skipped
   step, state why it does not apply or what prevents it. Do not silently count it
   as complete. Do not replace a framework, change payment mode, or publish a site
   merely because a migration recommends a capability.
6. Run the host's relevant existing build and checks. Inspect initial HTML when
   SSR applies and the browser behavior for the changed feature. Do not create
   live transactions. Report old/new versions, applied entries, automatic changes,
   skipped actions and reasons, check results, and any remaining work.

If the old version is unknown, identify it from the prior lockfile or Git history.
If it cannot be found, report that limit and use the baseline review below. Do not
claim that every historical migration was applied. Read this file even if the
version already matches: a previous upgrade may have missed host adoption steps.

## 0.2.222 — shorter donation heading

- **Affected:** React donate launcher optional donation sections.
- **Automatic:** removes the helper sentence beneath Add a donation. The heading
  and amount controls remain, with no change to selection or checkout behavior.
- **Required:** upgrade matching SDK/React packages and deploy the host. No prop
  changes are needed.
- **Check:** the donation section shows its heading followed by amount choices.

## 0.2.221 — stock status beside product prices

- **Affected:** React donate launcher product availability labels.
- **Automatic:** unselected sold-out products show plain, prominent status text
  on the right instead of disabled quantity controls. Selected products retain
  removal controls, including when stock changes or a shared limit is reached.
- **Required:** upgrade matching SDK/React packages and deploy the host. No prop
  changes are needed.
- **Check:** Sold out appears on the right without an icon or badge; existing
  selections can still be reduced or removed.

## 0.2.220 — clearer stock labels

- **Affected:** React donate launcher product availability labels.
- **Automatic:** Sold out and Limit reached use compact, high-contrast badges.
  Stock limits, quantity controls, and community colors are unchanged.
- **Required:** upgrade matching SDK/React packages and deploy the host. No prop
  changes are needed.
- **Check:** stock badges are easy to identify in light and dark themes.

## 0.2.219 — remove the donation accent stripe

- **Affected:** React donate launcher optional donation sections.
- **Automatic:** removes the inset left accent stripe while retaining the brand
  surface, icon, and selected amount styling.
- **Required:** upgrade matching SDK/React packages and deploy the host. No prop
  changes are needed.
- **Check:** the donation card has no thick left stripe in either theme.

## 0.2.218 — branded donation section

- **Affected:** React donate launcher optional donation sections.
- **Automatic:** the donation card uses the active brand accent for its surface,
  leading edge, and heart icon. Amount selection and stock behavior are unchanged.
- **Required:** upgrade matching SDK/React packages and deploy the host. No new
  props are needed. Hosts that want the saved community brand should omit fixed
  accent and accent-contrast style overrides; the SDK derives both from the catalog.
- **Check:** the donation section and selected amount match the community color
  in light and dark themes, with visible stock labels from 0.2.217.

## 0.2.217 — visible stock labels in hosted checkout

- **Affected:** React donate launcher product availability labels.
- **Automatic:** availability uses a dedicated element and class, so host styles
  that hide product descriptions do not also hide Sold out or Limit reached.
- **Required:** upgrade matching SDK/React packages and deploy the host. No prop
  changes are needed. Stock selection behavior from 0.2.216 is unchanged.
- **Check:** unavailable products show their status beside the disabled controls.

## 0.2.216 — stock limits in the product picker

- **Affected:** React donate launchers and hosted V2 product selection.
- **Automatic:** sold-out products cannot be added. Quantity controls use listing
  and shared stock limits as well as product limits. Existing unavailable choices
  remain removable, and Continue asks buyers to adjust them before checkout.
- **Required:** update matching SDK/React packages and deploy the host. No props
  or stock settings need to change. Checkout still checks authoritative stock.
- **Check:** open a sold-out catalog, confirm available donations remain usable,
  and check quantity caps without making a payment.

## 0.2.215 — remove the extra donation choice frame

- **Affected:** full-page React donate launchers with optional donations.
- **Automatic:** product-list framing applies only to the order product section,
  so donation choices no longer inherit its border, background, or clipping.
  Individual amount buttons and the outer donation card keep their styling.
- **Required:** upgrade matching SDK/React packages and deploy the host. No prop
  changes are needed. The original wallet behavior restored in 0.2.214 remains.
- **Check:** donation choices have no extra surrounding frame, selected amounts
  remain clear, and the order product list keeps its border.

## 0.2.214 — restore the original payment wallet behavior

- **Affected:** React payment widgets and donate launchers.
- **Automatic:** removes the Express Checkout addition from 0.2.212 and restores
  the original Payment Element wallet behavior. Safari Apple Pay and eligible
  Google Pay remain available; the added desktop Chrome Apple Pay flow is removed.
- **Required:** hosts on 0.2.212 must use matching SDK/React packages at 0.2.214,
  or explicitly roll back both packages to 0.2.211. No prop changes are needed.
- **Check:** confirm the original payment options in Chrome and Safari without
  making a payment. Version 0.2.211 hosts already have this behavior.

## 0.2.211 — auction bid tips and faster payment entry

- **Affected:** React auction item pages and auction checkout.
- **Automatic:** fixed and maximum bid explanations appear in info tips on hover,
  keyboard focus, or tap, without a separate paragraph. Active item pages warm
  the checkout code and Stripe before Continue. The checkout form can appear
  while Stripe fields finish loading. No bid or purchase is created by preload.
- **Required:** upgrade matching SDK/React packages and deploy the host. No host
  props or auction settings need to change. Catalog pages do not preload Stripe.
- **Check:** open both tips with a mouse and keyboard, press Escape, then use
  Continue with a slow connection. Contact fields should appear before Stripe
  is ready. Check Back and payment load failure without submitting a live bid.

## 0.2.210 — Apple Pay and Google Pay

- **Affected:** React payment widgets, donate launchers, and auction checkout,
  including bid payment-method setup.
- **Automatic:** allows Apple Pay and Google Pay when Stripe reports that the
  wallet is available. Existing card, ACH, and off-session setup rules remain.
- **Required:** upgrade matching SDK/React packages and deploy each host. Enable
  both wallets in Stripe and register every checkout domain and subdomain on
  the account that takes the charge, including connected accounts for direct
  charges. For cross-origin embeds, register both the host and iframe domains
  and set `allow="payment *"` on every containing iframe. A restrictive
  `Permissions-Policy` header must also permit payment for these origins.
- **Check:** use HTTPS and an eligible browser with a configured wallet. Check
  direct checkout and embedded checkout on desktop and mobile. Stripe controls
  wallet availability; unsupported devices can continue to use card entry.
  No SDK prop changes or live transactions are required for this check.

## 0.2.209 — slightly stronger ticket tint

- **Affected:** React donate launcher ticket products with community branding.
- **Automatic:** increases the shared ticket body and quantity tint from 14% to
  18% of the community color. Layout, neutral controls, and focus stay unchanged.
- **Required:** upgrade matching SDK/React packages and deploy the host. No prop
  or product changes are needed. Check desktop and mobile ticket readability.

## 0.2.208 — unified community-tinted paper tickets

- **Affected:** React donate launcher ticket products (`event_admission`).
- **Automatic:** ticket body and quantity section share a 14% tint of the actual
  community color over the paper surface. Controls remain neutral and readable.
  Missing colors and disabled community branding use plain paper throughout.
  Removes the issuer logo, community name, and colored edge added in 0.2.207.
  Perforation and checkout focus behavior remain unchanged.
- **Required:** upgrade the matching SDK/React packages and deploy the updated
  stylesheet. No host props or product configuration changes are needed.
- **Check:** verify matching ticket surfaces, quantity controls, and keyboard
  focus at desktop and mobile widths. Do not submit a live payment.

## 0.2.207 — community branding on paper tickets

- **Affected:** React donate launcher ticket products (`event_admission`).
- **Automatic:** paper tickets show the available community logo and name with
  a narrow theme accent edge. Paper surfaces and quantity controls stay neutral.
  Ticket branding is omitted when `showCommunityBranding` is false.
- **Required:** update the matching SDK/React packages and deploy the host with
  the updated stylesheet. No host prop or product configuration change is needed.
- **Check:** inspect ticket names and quantity controls at mobile and desktop
  widths, including communities with no logo and widgets with branding disabled.

## 0.2.205 — checkout field focus

- **Affected:** React donate launcher checkout forms in page and modal layouts.
- **Automatic:** the launcher focus outline applies only to launcher controls.
  Embedded payment fields keep their own focus indicator, with no extra outer
  outline. Phone groups and Stripe fields keep their existing focus behavior.
- **Required:** update the matching SDK/React packages and deploy the host with
  the updated SDK stylesheet. No prop or host CSS changes are needed.

## 0.2.204 — paper ticket cards

- **Affected:** React donate launcher products configured as `event_admission`.
- **Automatic:** ticket cards use a warm paper body, a separate quantity stub,
  and perforation notches in both light and dark themes. The card uses existing
  product text and controls; no event details or fulfillment settings are added.
- **Required:** update the matching SDK/React packages and deploy the host with
  the payment stylesheet. No host prop or saved product change is needed.
- **Check:** confirm ticket quantity buttons and optional single-ticket switches
  remain visible and keyboard accessible at desktop and mobile widths. Other
  product styles and payment behavior are unchanged.

## 0.2.203 — ticket cards and payment summary placement

- **Affected:** React payment forms and donate launchers, including hosted checkout.
- **Automatic:** launcher checkout starts with contact fields and places tips and
  the order summary near the payment button. Products configured with
  `fulfillmentType: "event_admission"` use ticket edges and a perforated quantity
  stub. No product fulfillment settings change.
- **Required:** update the matching SDK/React packages and deploy the host with
  its payment stylesheet. No host edit is needed for these launcher defaults.
- **Optional:** set `paymentSummaryPosition="top"`, `"bottom"`, or `"hidden"` on
  `LockerversePayment` or `LockerverseDonateLauncher`. Direct payment defaults
  to `"top"`; launchers default to `"bottom"`. Hidden summaries still show the
  final amount on the payment button.
- **Check:** select items, continue, edit the order, and confirm contact fields
  come first and the final summary is above payment. Check ticket quantity
  controls at desktop and mobile widths. Do not submit a live payment.

## 0.2.201 — stable hosted checkout heading

Page launchers keep the same logo and heading mounted during selection and
payment. Edit order appears below that heading. No host prop change is needed.
Dialog launchers and fixed checkout remain unchanged. Check Continue and Edit
order at desktop and mobile widths.

## 0.2.200 — shared page launcher loading state

React page launchers accept `loadingFallback` to replace the entire launcher
while catalog options initialize or refresh. Hosts can pass their existing page
skeleton to avoid a second SDK loading panel. Dialog launchers and fixed payment
components are unchanged. Adoption is optional; verify cold load and Continue.

## 0.2.197 — disable Stripe Link in React widget checkout

New React widget checkout forms request card payments, plus US bank account
payments when the community enables ACH. They no longer request Stripe Link.
This applies to the launcher and fixed payment component, for both one-time and
subscription checkout. It does not change existing subscriptions or payments,
Stripe account settings, or payment flows in hosts that have not upgraded.
No host prop change is required.

## 0.2.197 — hosted donate launcher presentation

- **Affected:** React donate launcher integrations that need a hosted product picker.
- **Automatic:** Dialog remains the default presentation. Fixed-price one-time
  products configured with a maximum quantity of one use an on/off switch.
  Products that allow larger quantities retain quantity controls. Fixed checkout
  has no product-selection change.
- **Optional:** Set `presentation="page"` for the same selection and payment steps
  inline. Use `productIds` to limit selectable catalog products and
  `initialSelection` for editable starting choices. Use catalog IDs for the filter
  and product slugs for selection. Omitted filter means all; empty means none.
  Required shipping remains automatic. These properties are initial mount
  configuration; remount for another link. Filtering is not server authorization.
- **Optional:** Use `showDescription={false}` and the public page root class,
  `className`, `style`, and existing theme tokens for minimal branded pages.
- **Hosted URL:** `https://app.lockerverse.com/<community>/widgets/v2/<widget>/checkout`
  defaults to dark. Optional `include` lists purchasable product slugs;
  `q.<slug>` prefills quantities. Use `theme=light` for light mode. The app
  deployment selects its backend. The fixed checkout remains separate.
  Older SDK-domain `/checkout?community=<slug>&widget=<slug>` links redirect
  to the app, preserving the product filter, quantities, and theme.
- **Verification:** Check both themes, mobile width, excluded prefill, quantity
  limits, Continue, and Edit order without submitting a live payment.

## 0.2.196 — save reusable payment methods

- **Affected:** React one-time payments, subscriptions, auction Buy Now, and
  purchase recovery. Deferred Stripe Elements now requests `off_session` setup
  so its configuration matches the backend PaymentIntent and saves supported
  reusable methods, including Link, to the customer.
- **Required:** update the matching SDK/React packages and deploy the host with
  the backend payment-saving change. No host prop changes are required.
- **Unchanged:** existing purchases are not converted into reusable methods.
  Future charges can still require customer authentication. Methods without
  off-session support cannot be made reusable by this setting.
- **Check:** in Stripe test mode, complete supported payment methods and verify
  the successful PaymentIntent and customer payment-method attachment. Verify
  auction Buy Now and purchase recovery with the same backend configuration.

## 0.2.194 — sharper large auction gallery photos

- **Affected:** React auction item gallery responsive images.
- **Automatic:** the main gallery can select the existing 1920-pixel image
  variant for large displays and high-density screens. Smaller variants remain
  available; the browser selects a source for the rendered size and pixel ratio.
- **Required host changes:** upgrade Core and React together and deploy the host.
  No integration code changes are required.
- **Unchanged:** image layout, thumbnails, full-screen viewer, and checkout.
- **Check:** inspect the selected image source in a wide embedded gallery on a
  high-density screen. Confirm it can use the 1920-pixel variant without cropping.

## 0.2.193 — complete auction gallery photos

- **Affected:** React auction item galleries and photo thumbnails.
- **Automatic:** gallery photos fit inside their reserved space without cropping.
  Wide and tall photos remain complete, matching the full-screen photo viewer.
- **Required host changes:** upgrade Core and React together and deploy the host.
  No integration code changes are required.
- **Recommended:** use the original high-resolution product photo. This display
  change cannot restore detail missing from an uploaded source image.
- **Unchanged:** catalog cards, gallery dimensions, navigation, and checkout.
- **Check:** inspect a wide and a tall photo on desktop and mobile. Confirm all
  edges remain visible in the item gallery, thumbnails, and full-screen viewer.

## 0.2.191 — auction item additional charges

- **Affected:** Core auction item data, purchase quotes, and React auction checkout.
- **Automatic:** optional `additionalCharge` charges the first-item amount plus the
  additional-item amount for each further unit. Checkout and receipts show the configured charge
  separately. Bids use one unit and add the first-unit charge only if the bid wins.
  The bid amount and minimum increments remain unchanged. `maxQuantityPerOrder` limits each order; null inventory remains unlimited.
- **Required:** deploy the matching auction backend before enabling additional charges.
  Upgrade Core and React together. Custom purchase forms must obtain `getPurchaseQuote`,
  display the charge, and submit `expectedAdditionalChargeCents` with `expectedTotalCents`.
  Custom bid forms must disclose the first-unit charge and submit the same expected
  charge and total fields. Winner settlement uses the charge saved with the bid.
  Service fees continue to use merchandise subtotal only. Existing items need no edits.
- **Optional:** set `--lockerverse-auction-catalog-columns` on the auction style to
  choose desktop grid columns. Mobile retains one column.
- **Check:** compare one, two, and maximum quantity totals with the server quote,
  verify the per-order limit, and inspect the named charge row before payment.

## 0.2.189 — widget load recovery and Sentry releases

- **Affected:** Core widget loading and SDK failure reporting.
- **Automatic:** a widget GET retries once after a network failure or request
  timeout, with a full timeout for each attempt. Invalid responses, cancellation,
  HTTP errors, and payment submissions do not retry. Only the final failure is
  reported. Errors expose the safe optional `failureKind` field; Sentry receives
  `sdk.failure_kind` and a valid `lockerverse-sdk@<version>` release name.
- **Required host changes:** upgrade Core and React together and deploy the host.
  No integration code changes are required.
- **Check:** interrupt the first widget request and confirm that the second loads
  the widget. Check the final failure classification and Sentry release association.

## 0.2.185 — shipping for additional items

- **Affected:** Core checkout estimates and the React donation launcher.
- **Automatic:** `requiredShipping.additionalUnitAmountCents` adds a shipping
  charge for each trigger item after the first. The shipping product remains one
  line with quantity one. Omitted or zero values retain the flat shipping charge.
- **Required host changes:** upgrade Core and React together. Custom price
  summaries must include the additional charge and render authoritative quotes.
  The backend must support the field before a widget enables it.
- **Unchanged:** product prices, email eligibility, fixed discounts, donation-only
  orders, and widgets without this optional setting.
- **Check:** select one, two, and the maximum allowed trigger quantity. Confirm the
  local summary and server quote agree; removing all trigger items removes shipping.

## 0.2.184 — single focus boundary for form fields

- **Affected:** React form controls and the shared phone field in payment and signup.
- **Automatic:** the focus outline overlaps the field border, so focus has one
  clear boundary instead of two separated rings. Keyboard focus remains visible;
  the phone country selector keeps its own inset focus indicator.
- **Required host changes:** none; upgrade Core and React together.
- **Check:** focus the email and phone fields with a pointer and keyboard. Each
  field must have one continuous focus boundary without a gap.

## 0.2.183 — email discounts and required shipping

Required: upgrade Core and React together. Existing email percentage discounts need no host changes.

Widgets can now use a private contact list for email eligibility, a fixed amount discount, and an optional discount message. Entered-email matching remains unchanged. Public quotes contain optional `amountOffCents` and `message`; custom renderers must not assume `percentageOff` exists.

Required shipping appears in `catalog.widget.requiredShipping`. Do not offer this product as a separate shopper choice. The SDK adds its quantity once when a trigger product is selected; the server also enforces this rule. Render authoritative quote line items and totals, including shipping. The built-in launcher and payment summary handle this automatically.


## 0.2.177 — Secure checkout loading recovery

- **Affected:** React payment widget Stripe fields.
- **Automatic:** failed field or script loads show a reload action. Fields that
  remain unready for 30 seconds show a delay message. Late readiness removes
  the message without resetting the checkout or submitting a payment.
- **Required host changes:** none; keep Core and React versions matched.
- **Check:** block Stripe loading in an isolated browser, confirm the message,
  restore access, and use Reload checkout. Confirm normal fields still load.
- Reload is an explicit customer action and can clear unsaved form entries.
  Saved payment recovery remains in session storage.


## 0.2.175 — Match Stripe Elements payment method configuration

- **Affected:** Core checkout submission and React payment widgets.
- **Automatic:** React configures explicit card, Link, and community-enabled bank
  methods in Stripe Elements and marks the confirmation request with
  `paymentMethodConfiguration: "explicit"`. This matches the backend's Stripe
  PaymentIntent configuration.
- **Required:** deploy the backend that supports this optional marker before
  upgrading React. Keep Core and React matched. Existing Core-only callers omit
  the marker and retain automatic payment methods. Custom Elements integrations
  must send the marker only when they use the explicit method list.
- **Check:** submit card and bank payments through Stripe Elements in test mode,
  including recurring checkout. Confirm pending recovery and settlement.

## 0.2.173 — widget ACH and SDK checkout UI

### Bank authorization terms

- **Affected:** React payment widgets with ACH enabled.
- **Automatic:** Stripe displays its bank authorization terms before payment confirmation.
- **Adoption:** update the matching SDK/React pair. No prop changes are required.
- **Check:** confirm that the bank authorization text is visible when a bank account is selected.

### Widget ACH and subscription payment recovery

- **Affected:** Core checkout data and React payment widgets.
- **Automatic:** bank payment availability follows the stored community setting
  returned by the backend. Missing policy remains disabled.
  Pending payments keep their existing payment reference. A failed subscription
  invoice can return `action_required` with `requiresAction: false` and `retryUrl`;
  React shows a link to pay the same invoice instead of creating a second subscription.
  Bank microdeposit verification uses the same recovery link for Stripe's hosted
  verification page.
- **Required for custom payment UI:** preserve the reference for pending and
  action-required results. Handle `retryUrl` by opening the provider recovery page, and recover
  status before permitting a new checkout. Do not treat submission as settlement.
- **Adoption:** deploy the matching backend policy and recovery contract before
  enabling ACH. Existing React hosts need no component prop changes. Keep Core and
  React versions matched when upgrading. Auction payment methods are unchanged.
- **Check:** verify disabled/enabled bank visibility and pending, bank
  verification, invoice retry, success, and terminal failure in Stripe test mode.
  Do not create a live transaction for this check.

### Check pending payment status

- **Affected:** React payment widgets with unresolved payments.
- **Automatic behavior:** the existing pending-payment screen now offers Check
  payment status. It checks the saved payment reference and cannot submit a new
  payment. The control is disabled while the check runs.
- **Required host changes:** none. Update Core and React together.
- **Verification:** complete a test bank payment, return to its pending checkout,
  and check its status. Confirm completion clears recovery storage.

### SDK payment recovery and completion UI

- **Affected:** React payment widgets and custom hosts that persist payment recovery.
- **Optional adoption:** pass `recoveryStorageKey` to `LockerversePayment` to let
  the SDK save and restore the pending payment in session storage. Use a stable
  key scoped to the API environment, community, and widget. Remove the host's
  storage code and recovery-driven component key. Do not combine automatic
  persistence with a second host persistence writer.
- **Compatibility:** the SDK reads the hosted Next app's existing version 1
  records when the same key is used. It writes version 2 records with widget
  identity. It checks widget and selection identity before recovery and keeps
  an unresolved record if those details differ. Recovery uses the saved connected
  account even if current payment routing has changed. Storage is read after hydration,
  before the payable form mounts. No contact details or payment tokens are saved.
- **Optional UI adoption:** use `completionView="summary"` for the SDK confirmation
  panel and remove the host's duplicate success panel. Completion callbacks still
  run. The default inline message and explicit `resumePayment` integrations remain
  supported. Auctions and legacy custom checkout forms are unchanged.
- **Check:** reload a pending checkout and confirm the existing payment is checked;
  verify a changed selection cannot discard it. Check both paid and free order
  confirmation panels. Do not submit a live transaction for this check.

## 0.2.170 — six-month payment widgets

Affected: @lockerverse/sdk checkout and @lockerverse/react payment widgets.

- **Required:** upgrade both packages together before offering Products whose
  `paymentOption` is `every-six-months`. This option requires a backend that
  supports a Stripe month interval with an interval count of 6.
- **Automatic:** catalog validation, recurring selection, Stripe subscription
  mode, checkout summaries, and payment buttons recognize the new option.
- **Recommended:** custom host price labels should show “Every 6 months”. Fixed
  hosted product URLs must omit `amount` and `paymentOption` overrides.
- **Unchanged:** one-time, monthly, and annual Products retain their behavior.
- **Check:** load a six-month Product and confirm its amount and cadence before
  submission. Do not submit a live payment for an integration check.


## 0.2.166 — single dropdown arrow

- **Affected:** native single-select custom fields in React signup and payment forms.
- **Automatic:** removes the conflicting browser arrow so the existing SDK arrow
  appears once. Field options, values, and selection behavior are unchanged.
- **Adoption:** update the matching SDK/React packages and deploy the host to apply
  the corrected stylesheet. No host code or saved field changes are required.
- **Check:** confirm that the dropdown shows one arrow and options remain selectable.

## 0.2.202 — fixed and maximum auction bids

- **Affected:** Core auction submissions and React auction item checkout/results.
- **Required:** deploy backend maximum-bid support before enabling this UI. The
  item response must include `supportsMaximumBids: true`. Older responses retain
  fixed bidding only. Upgrade the matching SDK/React pair in hosts; existing
  ready-made auction components need no new props.
- **Optional custom UI:** pass `bidType: "maximum"` to `createBid`; `amount` is the
  private limit in integer USD cents. Omit `bidType`, or use `"fixed"`, for a
  fixed public bid. Read the capability before offering maximum bids. Submission
  pricing is the maximum possible total, not the final sale price.
- **Automatic:** the ready-made UI defaults to fixed bidding and offers maximum
  bidding only on supported items. Checkout and results label maximum amounts as
  limits. Guest checkout, contact fields, and payment recovery remain unchanged.
- **Rules:** accepted submissions are independent and cannot be edited or canceled.
  A later submission can compete with the same guest's earlier maximum. Submitted
  does not mean leading, accepted after card setup, or paid. Never retry an
  uncertain bid automatically.
- **Check:** verify fixed/maximum selection, Back preserving the choice, maximum
  fee labels, and unavailable capability behavior in the simulated State Lab.
  Confirm that no private maximum appears in public item data.

## 0.2.165 — multi-select custom fields

- **Affected:** React signup and payment forms with `multi_select` custom fields.
  The field now opens a dropdown with multiple choices instead of a native listbox.
  Accessible dropdown support adds Base UI Select to the signup bundle. The packed
  signup consumer measures 111.80 kB brotli, about 32 kB above its former 80 kB
  budget; hosts should account for this increase in initial JavaScript.
- **Required:** upgrade the matching SDK/React packages and deploy the host with
  its existing signup or payment stylesheet. No host code or saved field changes
  are required. Selected option IDs remain arrays; single-select fields are unchanged.
- **Check:** open the dropdown, select and remove multiple options, and confirm
  keyboard navigation, Escape, and required-field feedback. Do not submit a live
  signup or payment for this check.

## Existing integration baseline through 0.2.161

This guide starts with the current integration baseline. It is not a complete
record of older breaking changes. For an integration created before this guide,
review this section once, including when its version already matches the target.
The feature guide and public types in the target package define the exact API.

### Required when applicable

- **Hosts that use both React and Core:** keep installed versions matched and use public entry points.
  Read the installed contract instead of an old copied integration prompt.
- **Auction media proxy:** if using mediaBaseUrl, pass the full loaded auction
  snapshot to components and initialAuction. Forward w and f query parameters
  unchanged. Check that a resized response has the expected dimensions and type.
- **Public route identity:** keep configured community and auction identity fixed.
  Use real item and return links. Handle missing items without selecting another
  item silently. Follow the host router's missing-page behavior.
- **Checkout and recovery:** preserve supported recovery state and private data
  handling. Never restart an uncertain transaction to recover from a load error.

### Recommended host adoption

- **Existing SSR hosts:** load public data on the server and seed
  useLockerverseAuction with initialAuction or useLockerverseAuctions with
  initialAuctions. Keep public content outside client-only payment boundaries.
  Keep that content visible during silent refresh. Verify it in the raw response.
- **Dedicated auction item pages:** set itemHeadingLevel={1}; avoid a competing
  page title heading. Embedded item views can keep the default level 2.
- **Gallery:** set galleryImageSizes when the host differs from the default
  full-width mobile / 45vw desktop layout. Check the first image before hydration
  and selected photos after interaction. Keep full-screen sizing separate.
- **Import boundaries:** use feature entry points such as
  @lockerverse/react/auction-item and @lockerverse/react/auction-data. Remove host
  imports that eagerly load payment UI when the page does not yet need it.
- **Host metadata and assets:** check offer descriptions against current prices.
  Keep local fonts, responsive photos, and background videos within the host's
  performance budget. These are host tasks, not automatic SDK transformations.

### Automatic SDK behavior in the baseline

Supported auction media paths use responsive sizes through the configured proxy.
The gallery gives the first photo high priority and uses eager/lazy loading for
selected/other photos. Transaction headings follow the item heading level.
Auction checkout code is deferred until payment or recovery needs it. These
benefits require the supported components and data paths; custom host UI must
adopt the corresponding APIs itself. The SDK cannot remove the host's own eager
imports or server-render a browser-only website.

## Versioned changes

### 0.2.161 — Deferred auction checkout code

Affected: @lockerverse/react auction item and transaction UI.

- **Automatic:** the supported auction UI loads checkout code when payment or
  recovery needs it. No public prop change is required.
- **Recommended:** use the narrow auction imports and remove unused eager payment
  imports from the host. Do not remove payment peers required by the chosen flow.
- **Check:** compare initial page requests with checkout requests. Public item
  content must remain available before checkout loads; recovery must keep its
  existing state. Do not expect the total size of every reachable chunk to shrink.

### 0.2.160 — Transaction heading hierarchy

Affected: @lockerverse/react auction item UI.

- **Automatic:** transaction and status headings follow the item heading level.
- **Recommended:** dedicated pages should use itemHeadingLevel={1}. Embedded
  views should retain the level that fits their surrounding page.
- **Check:** inspect the rendered heading order, including transaction states.
  This change must not require a new host CSS workaround or a widget remount.

### 0.2.159 — Gallery loading and item heading controls

Affected: @lockerverse/react auction item UI.

- **Automatic:** selected photos load eagerly and other photos load lazily. The
  first photo has high fetch priority; lazy photos can use automatic image sizing.
- **Recommended:** set galleryImageSizes for a custom host container and use
  itemHeadingLevel={1} on a dedicated item page. Read guides/auctions.md for the
  supported props. Embedded views can keep the defaults.
- **Check:** inspect the first response, image request sizes, and heading order.
  Check gallery selection and full-screen viewing without changing image quality.

### 0.2.158 — Responsive images through a configured proxy

Affected: @lockerverse/react auction images and @lockerverse/sdk auction data.

- **Automatic:** supported auction images retain responsive resize URLs through
  the configured mediaBaseUrl instead of losing resizing on that proxy path.
- **Required when using a proxy:** pass the full loaded snapshot to the UI and
  server seed. Configure the host rewrite to forward w and f unchanged to the
  media service. Do not reconstruct the snapshot and discard mediaBaseUrl.
- **Check:** confirm resized response dimensions and content type through the
  actual proxy. Signed, external, and unsupported URLs must keep their original
  behavior. Hosts without a custom proxy do not need a proxy configuration change.

## Entry format for future releases

Add new version entries above older entries. Before publication, replace any
Unreleased heading with the actual release version. Keep prior entries intact.
Each entry must state:

- Version and affected packages/features.
- Required changes, with the old and new API or behavior for breaking changes.
- Recommended host changes and the conditions where they apply.
- Automatic improvements and cases that need no host edit.
- Completion checks and any limits or manual follow-up.

For a new installation, use the current feature guides and baseline instead of
reproducing old APIs from migration examples.
