Skip to content

feat(react-paypal-js-storybook): add v6 LPM stories#994

Open
Mathanjeevika wants to merge 3 commits into
paypal:mainfrom
Mathanjeevika:feature/lpm-storybook
Open

feat(react-paypal-js-storybook): add v6 LPM stories#994
Mathanjeevika wants to merge 3 commits into
paypal:mainfrom
Mathanjeevika:feature/lpm-storybook

Conversation

@Mathanjeevika

Copy link
Copy Markdown

Summary

  • Adds Storybook stories, a shared story factory (shared/lpm/{code,storyFactory,utils}.ts), and a dedicated provider decorator (LPMPayPalProviderDecorator.tsx) for all 50 v6 SDK Local Payment Methods.
  • Adds a generate:lpm-stories script that regenerates the 50 per-LPM story files from the LPM registry.
  • Small hand-merged additions to existing shared files: a skipPayPalProvider opt-out on withPayPalProvider, an LPM group in the Storybook sidebar order, and the new decorator's barrel export.

Context

This is PR 3 of 3 split out from #926 per review feedback requesting the original monolithic PR be broken up:

  1. feat(paypal-js): add v6 Local Payment Methods (LPM) types #992paypal-js v6 LPM type declarations
  2. feat(react-paypal-js): add v6 Local Payment Methods (LPM) React wrapper core #993react-paypal-js core LPM wrapper
  3. this PR — Storybook stories for LPM components (this PR)

This branch is stacked on #993's branch (feature/lpm-react-wrapper-core), since the LPM stories import LPM_REGISTRY-driven exports from @paypal/react-paypal-js/sdk-v6/local-payment-methods. Because the head is on a fork, GitHub can only diff against main, so this PR's diff currently also includes #993's commit until #993 merges — please review only the last commit (feat(react-paypal-js-storybook): add v6 LPM stories) for now, or hold review until #992 and #993 land and this is rebased to show a clean diff.

Test plan

  • npx tsc --noEmit passes for the storybook v6 package
  • no lint/test script exists for this Storybook package (not part of CI validation for this package)

Mathanjeevika and others added 2 commits July 13, 2026 09:57
…er core

Adds the generic, registry-driven React wrapper for all 50 v6 Local
Payment Methods, exposed via the ./sdk-v6/local-payment-methods subpath
so the default @paypal/react-paypal-js export is unaffected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds Storybook stories, a shared story factory, and a PayPal provider
decorator for all 50 v6 Local Payment Methods, generated from the
LPM_REGISTRY added in the react-paypal-js LPM wrapper.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Mathanjeevika
Mathanjeevika requested a review from a team as a code owner July 13, 2026 04:30
@changeset-bot

changeset-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e27ab6b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@paypal/react-paypal-js Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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