Frontend SDKs
React SDK
- Pricing table
- Added:
CurrentSubscriptionOverrideFn
type to support for overriding the current subscription in the paywall. - Bug fixes
- Added:
- Bug fixes
- Checkout widget
- Added: New CSS classes (see here):
stigg-checkout-summary-captions
stigg-checkout-summary-captions-remaining-credits
stigg-checkout-summary-captions-scheduled-updates
stigg-checkout-summary-captions-next-billing
- Added: New CSS classes (see here):
- Bug fixes
- Fixed: price amounts with decimal points now always appear with 2 decimal points (i.e. 23.10).
-
Added: custom React hooks
- useStiggContext
- useBooleanEntitlement
- useNumericEntitlement
- useMeteredEntitlement
- useActiveSubscriptions
- useCustomerPortal
-
Added: entitlement guard components
- BooleanEntitlementGuard
- NumericEntitlementGuard
- MeteredEntitlementGuard
-
Added: support for offline mode
-
Added:
GetUsageHistoryV2
-
⚠️ Deprecated:
GetUsageHistory
(please useGetUsageHistoryV2
instead) -
Changed:
- Input Object:
customerRefId
renamed tocustomerId
resourceRefId
renamed toresourceId
featureRefId
renamed tofeatureId
resetPeriod
removedyearlyResetPeriodConfiguration
removedmonthlyResetPeriodConfiguration
removedweeklyResetPeriodConfiguration
removed
- Output Object
startDate
removedendDate
removedusageMeasurements[i].date
renamed toseries[0].point[i].timestamp
usageMeasurements[i].value
renamed toseries[0].point[i].value
usageMeasurements[i].isResetPoint
renamed toseries[0].point[i].isResetPoint
- Old Value:
true
if and only if usage was reset due to periodic reset. - New Value:
true
if and only if usage was reset due to periodic reset or due to a plan transition.
- Old Value:
groups[i].groupInfo[j].key
renamed toseries[i].tags[j].key
groups[i].groupInfo[j].value
renamed toseries[i].tags[j].value
groups[i].usageMeasurements[j].date
renamed toseries[i].point[j].timestamp
groups[i].usageMeasurements[j].value
renamed toseries[i].point[j].value
groups[i].usageMeasurements[j].isResetPoint
renamed toseries[i].point[j].isResetPoint
- Old Value:
true
if and only if usage was reset due to periodic reset. - New Value:
true
if and only if usage was reset due to periodic reset or due to a plan transition.
- Old Value:
- Input Object:
- Added: ability to override prices when there’s a scheduled update in place (currently without widgets)
- Customer portal widget
- Fixed: Block size is not displayed in Subscription section
-
Checkout widget
- Added: responsive layout for mobile
-
Customer portal widget
- Added: responsive layout for mobile
-
Checkout widget
- Fixed: stair-step pricing values are now formatted using commas (,)
-
Pricing table widget
- Fixed: stair-step pricing values are now formatted using commas (,)
- Checkout widget
- Added: Ability to skip steps
- Added: New CSS classes
stigg-checkout-progress-container
stigg-checkout-summary-plan-title-container
stigg-checkout-summary-usage-charges-container
stigg-checkout-summary-base-charges-container
- Pricing table widget
- Added: support for yearly reset period
- Fixed: custom CSS not reflected in Checkout Widget
- Fixed: custom CSS not reflected in Customer Portal Widget
- Checkout widget
- Added: price breakdown in tiered pricing
- Customer portal widget
- Added:
stigg-entitlement-usage
class to allow hiding entitlements
- Added: