Skip to content

feat(types): dropin/headless doc sync for June '26#90

Merged
cdevos-purse merged 1 commit into
mainfrom
types/types-sync-june-26
Jun 19, 2026
Merged

feat(types): dropin/headless doc sync for June '26#90
cdevos-purse merged 1 commit into
mainfrom
types/types-sync-june-26

Conversation

@cdevos-purse

Copy link
Copy Markdown
Contributor

Summary

Consolidates #88 and #89 — both bot PRs were byte-for-byte identical (same generated output), so this replaces them with a single clean commit.

Targets v0.9.0 (minor bump driven by feat: squash commit on merge).

New API surface

Wallet / tokens

  • WalletAPI.setAsFavorite({ id }) — mark a token as favorite via the wallet API
  • PurseHeadlessCheckoutPrimaryToken.isFavorite — reactive Readable<boolean>
  • PurseHeadlessCheckoutPrimaryToken.setAsFavorite() — convenience wrapper
  • PurseHeadlessCheckoutToken.createdAt? — ISO 8601 creation date for chronological sorting
  • IntegratedToken.created_at? — raw wallet field

Hosted fields

  • PurseHeadlessCheckoutPrimaryMethod.supportsHostedFields — whether method supports iframe card input
  • PurseHeadlessCheckoutPrimaryToken.supportsHostedFields — same on token level
  • PurseHeadlessCheckoutGetPaymentElementOptions.partner made optional (match by method alone)
  • PurseHeadlessCheckoutGetPaymentElementOptions.xPayButton? — Apple Pay / Google Pay button config
  • New error METHOD_DOES_NOT_SUPPORT_HOSTED_FIELDS (replaces silent warning)

Dropin theme

  • DropinTheme.title.color? — title text color override
  • DropinTheme.xpay? — Apple Pay (buttonstyle) + Google Pay (buttonColor) theme controls

Session

  • PaymentSession.source narrowed to LegacyPaymentSession; rawSource? holds the OrchestrationPaymentSession
  • Payment.setSession / PursePayment.setSession signature narrowed accordingly

i18n

  • common.sessionExpiredTitle, common.sessionExpiredBody, common.refreshPageToTryAgain added across all locales

Dropin hooks

  • InitOptions.hooks.onRefreshSession return type broadened to PurseHeadlessCheckoutV1Params["paymentSession"] | string | void

Test plan

  • CI build + lint + check-exports + unit tests pass on this PR
  • After merge: on-push-main release workflow creates tag v0.9.0, bumps package.json, updates CHANGELOG.md

@cdevos-purse
cdevos-purse requested a review from a team as a code owner June 19, 2026 09:00
@cdevos-purse
cdevos-purse merged commit 023d73d into main Jun 19, 2026
4 checks passed
@cdevos-purse
cdevos-purse deleted the types/types-sync-june-26 branch June 19, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant