@hulkapps/app-manager-vue 3.1.21 → 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.21",
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.21"
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,
@@ -462,7 +463,7 @@ export default {
462
463
  visibility:
463
464
  plan.description
464
465
  && selectedInterval === 'monthly'
465
- && plan.is_custom === false
466
+ && isPublicPlan(plan)
466
467
  ? 'visible'
467
468
  : 'hidden',
468
469
  }"
@@ -594,7 +595,7 @@ export default {
594
595
  visibility:
595
596
  plan.description
596
597
  && selectedInterval === 'annually'
597
- && plan.is_custom === false
598
+ && isPublicPlan(plan)
598
599
  ? 'visible'
599
600
  : 'hidden',
600
601
  }"