@hulkapps/app-manager-vue 3.1.20 → 3.1.22

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@hulkapps/app-manager-vue",
3
- "version": "3.1.20",
3
+ "version": "3.1.22",
4
4
  "description": "Vue SDK to render app manager contents",
5
5
  "main": "dist/app-manager-vue.ssr.js",
6
6
  "browser": "dist/app-manager-vue.esm.js",
@@ -68,7 +68,8 @@
68
68
  </strong>
69
69
  </ToggleButton> -->
70
70
  </div>
71
- <PlanShowcaseBanner
71
+ <!-- -------------------- Bundle Plan Banner -------------------- -->
72
+ <!-- <PlanShowcaseBanner
72
73
  v-if="bundle_plan"
73
74
  :useCardStyle="true"
74
75
  :width="this.width"
@@ -76,7 +77,7 @@
76
77
  :realPrice="parseFloat(calculateDiscountedPrice(bundle_plan)).toFixed(0)"
77
78
  :oldPrice="bundle_plan.price" @plan-clicked="handlePlanClicked(bundle_plan)"
78
79
  :isCurrentPlan="isCurrentPlanId(bundle_plan)"
79
- />
80
+ /> -->
80
81
  <PPage
81
82
  :class="[
82
83
  'app-manager-plan-page-slider',
@@ -396,7 +397,7 @@ export default {
396
397
  if (this.discount_code !== null) {
397
398
  params['discount_code'] = this.discount_code;
398
399
  }
399
- params['frontend_sdk_version'] = "3.1.20"
400
+ params['frontend_sdk_version'] = "3.1.22"
400
401
  let {data} = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/plans`, {params: params}).catch(error => {
401
402
  console.error(error)
402
403
  });
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  import VariantButton from "./VariantButton";
3
3
  import Swiper, {Navigation, Pagination} from "swiper";
4
- import {calculatePlanPriceWithDiscounts, isPlanButtonDisabled, formatFeature, getPlanButtonText, isPlanNote} from "@/helpers";
4
+ import {calculatePlanPriceWithDiscounts, isPlanButtonDisabled, formatFeature, getPlanButtonText, isPlanNote, isPublicPlan} from "@/helpers";
5
5
 
6
6
  export default {
7
7
  name: "PlanCardsHighlights",
@@ -105,6 +105,7 @@ export default {
105
105
  }
106
106
  },
107
107
  methods: {
108
+ isPublicPlan,
108
109
  getPlanButtonText,
109
110
  isPlanNote,
110
111
  isPlanButtonDisabled,
@@ -142,10 +143,15 @@ export default {
142
143
 
143
144
  return this.normalizeSortOrder(a.display_order) - this.normalizeSortOrder(b.display_order);
144
145
  })
145
- .map((feature) => ({
146
- ...feature,
147
- value: plan.features[feature.uuid]?.value ?? plan.features[feature.uuid],
148
- }));
146
+ .map((feature) => {
147
+ const assignedFeature = plan.features[feature.uuid];
148
+ return {
149
+ ...feature,
150
+ value: assignedFeature && assignedFeature.value !== undefined
151
+ ? assignedFeature.value
152
+ : assignedFeature,
153
+ };
154
+ });
149
155
  },
150
156
  preparePlanFeatures(plan) {
151
157
  const highlights = this.getSortedPlanHighlights(plan);
@@ -457,7 +463,7 @@ export default {
457
463
  visibility:
458
464
  plan.description
459
465
  && selectedInterval === 'monthly'
460
- && plan.is_custom === false
466
+ && isPublicPlan(plan)
461
467
  ? 'visible'
462
468
  : 'hidden',
463
469
  }"
@@ -589,7 +595,7 @@ export default {
589
595
  visibility:
590
596
  plan.description
591
597
  && selectedInterval === 'annually'
592
- && plan.is_custom === false
598
+ && isPublicPlan(plan)
593
599
  ? 'visible'
594
600
  : 'hidden',
595
601
  }"