Skip to content

Conversation

@lukasmisiunas
Copy link
Contributor

@lukasmisiunas lukasmisiunas commented Sep 22, 2025

  • Change the prop name in PlanPaywall from requiredPlanIds to accessPlanIds to better indicate that the restricted content it not locked by the plans, but rather that it's unlocked by the plans. This should make the component/service API more clear and remove ambiguity when providing and empty array
  • Add accessPlanIds and isLoggedIn to PlanPaywall.Fallback, so the consumer implementation is more convenient
  • Remove data- attributes for components that don't render DOM elements by default

The previous field name 'requiredPlanIds' was misleading as it suggested
content was restricted BY those plan IDs. In reality, content in
PlanPaywall.RestrictedContent is locked by default and gets UNLOCKED
when the member has one of the specified plan IDs.

The new name 'accessPlanIds' clearly indicates these IDs grant access
to otherwise restricted content, making the API more intuitive.

Changes:
- Updated PlanPaywallServiceConfig interface
- Updated service logic and component examples
- Updated API documentation and demo applications
- Rebuilt package with new field name
@lukasmisiunas lukasmisiunas force-pushed the refactor/rename-required-plan-ids-to-access-plan-ids branch from 387beed to 1ede2c6 Compare September 24, 2025 16:50
@lukasmisiunas lukasmisiunas changed the title refactor(pricing-plans): rename requiredPlanIds to accessPlanIds feat(pricing-plans): rename props, add more data to PlanPaywall Sep 24, 2025
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