@stigg/react-sdk 4.2.0 → 4.2.1

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": "4.2.0",
2
+ "version": "4.2.1",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -147,9 +147,11 @@ export function PlanOfferingButton({
147
147
  const planComparison = compareSelectedTierToCurrentTier(selectedTierByFeature, currentSubscription);
148
148
  switch (planComparison) {
149
149
  case PriceTierComparison.Lower:
150
+ buttonProps.intentionType = SubscribeIntentionType.CHANGE_UNIT_QUANTITY;
150
151
  buttonProps.title = resolvedDowngrade;
151
152
  break;
152
153
  case PriceTierComparison.Higher:
154
+ buttonProps.intentionType = SubscribeIntentionType.CHANGE_UNIT_QUANTITY;
153
155
  buttonProps.title = resolvedUpgrade;
154
156
  break;
155
157
 
@@ -28,6 +28,7 @@ export enum SubscribeIntentionType {
28
28
  UPGRADE_TRIAL_TO_PAID = 'UPGRADE_TRIAL_TO_PAID',
29
29
  REQUEST_CUSTOM_PLAN_ACCESS = 'REQUEST_CUSTOM_PLAN_ACCESS',
30
30
  CHANGE_BILLING_PERIOD = 'CHANGE_BILLING_PERIOD',
31
+ CHANGE_UNIT_QUANTITY = 'CHANGE_UNIT_QUANTITY',
31
32
  UPGRADE_PLAN = 'UPGRADE_PLAN',
32
33
  DOWNGRADE_PLAN = 'DOWNGRADE_PLAN',
33
34
  CANCEL_SCHEDULED_UPDATES = 'CANCEL_SCHEDULED_UPDATES',