@stigg/react-sdk 5.30.1 → 5.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.30.1",
2
+ "version": "5.32.0",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -114,7 +114,7 @@
114
114
  "@emotion/react": "^11.10.5",
115
115
  "@emotion/styled": "^11.10.5",
116
116
  "@mui/material": "^5.12.0",
117
- "@stigg/js-client-sdk": "3.36.0",
117
+ "@stigg/js-client-sdk": "3.38.0",
118
118
  "@stripe/react-stripe-js": "^2.1.1",
119
119
  "@stripe/stripe-js": "^1.54.1",
120
120
  "@types/styled-components": "^5.1.26",
@@ -39,6 +39,7 @@ type EntitlementRowProps = {
39
39
  resetPeriod?: EntitlementResetPeriod | null;
40
40
  displayNameOverride?: string | null;
41
41
  feature?: {
42
+ id: string;
42
43
  units?: string | null | undefined;
43
44
  unitsPlural?: string | null | undefined;
44
45
  unitQuantity?: number | null;
@@ -110,7 +111,7 @@ export function EntitlementRow(props: EntitlementRowProps) {
110
111
  const displayName = getEntitlementDisplay(restProps);
111
112
 
112
113
  return (
113
- <EntitlementRowContainer className="stigg-entitlement-row-container">
114
+ <EntitlementRowContainer className={`stigg-entitlement-row-container stigg-entitlement-${restProps.feature?.id}`}>
114
115
  <EntitlementIconContainer>
115
116
  <EntitlementCheckIcon className="stigg-entitlement-row-icon" />
116
117
  </EntitlementIconContainer>
@@ -40,7 +40,7 @@ export function PlanEntitlements({
40
40
  return (
41
41
  <EntitlementRow
42
42
  key={`priceUnitEntitlement-${price?.feature?.displayName}`}
43
- feature={price?.feature}
43
+ feature={price?.feature ? { ...price.feature, id: price.feature.featureId } : null}
44
44
  minUnitQuantity={price?.minUnitQuantity}
45
45
  maxUnitQuantity={price?.maxUnitQuantity}
46
46
  />