@hulkapps/app-manager-vue 3.1.9 → 3.1.11

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.9",
3
+ "version": "3.1.11",
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",
@@ -408,6 +408,12 @@ export default {
408
408
  this.plans = data.plans;
409
409
  this.plans = this.plans?.sort((planA, planB) => parseFloat(planA.price) - parseFloat(planB.price));
410
410
 
411
+ if (this.plans?.length > 0 && data.most_popular_plan_ids?.length > 0) {
412
+ this.plans.forEach(plan => {
413
+ plan.most_popular = data.most_popular_plan_ids.includes(plan.id);
414
+ });
415
+ }
416
+
411
417
  if (this.plans[0].store_base_plan) {
412
418
  this.subtitleContent = this.translateMe('App plans are based on your existing shopify plan');
413
419
  }
@@ -406,7 +406,7 @@ export default {
406
406
  index === (monthlyPlans.length - 1) ? 'last-card' : '',
407
407
  ]"
408
408
  >
409
- <div class="most-popular" v-if="plan.choose_later_plan">
409
+ <div class="most-popular" v-if="plan.most_popular">
410
410
  <div class="most-popular-label">
411
411
  {{ translateMe("Most popular") }}
412
412
  </div>
@@ -537,7 +537,7 @@ export default {
537
537
  index === (annualPlans.length - 1) ? 'last-card' : '',
538
538
  ]"
539
539
  >
540
- <div class="most-popular" v-if="plan.choose_later_plan">
540
+ <div class="most-popular" v-if="plan.most_popular">
541
541
  <div class="most-popular-label">
542
542
  {{ translateMe("Most popular") }}
543
543
  </div>
@@ -105,7 +105,17 @@ export default {
105
105
  featureNames.forEach((featureName, index) => {
106
106
  const feature = features[index];
107
107
  if (featureName && feature) {
108
- feature.style.height = `${featureName.offsetHeight}px`;
108
+ featureName.style.height = 'auto';
109
+ feature.style.height = 'auto';
110
+
111
+ let measured = featureName.getBoundingClientRect().height;
112
+ if (!measured || measured <= 0) {
113
+ measured = featureName.offsetHeight;
114
+ }
115
+
116
+ const intHeight = Math.ceil(measured);
117
+ featureName.style.height = `${intHeight}px`;
118
+ feature.style.height = `${intHeight}px`;
109
119
  }
110
120
  });
111
121
  });
@@ -128,10 +138,12 @@ export default {
128
138
  slides.forEach((slide, index) => {
129
139
  const planName = planNames[index];
130
140
  if (planName) {
131
- planNameHeight = Math.max(
132
- planName.offsetHeight,
133
- planNameHeight
134
- );
141
+ let measured = planName.getBoundingClientRect().height;
142
+ if (!measured || measured <= 0) {
143
+ measured = planName.offsetHeight;
144
+ }
145
+ const intMeasured = Math.ceil(measured);
146
+ planNameHeight = Math.max(planNameHeight, intMeasured);
135
147
  }
136
148
  });
137
149
  // Set the minHeight for the plans available name
@@ -838,8 +850,8 @@ export default {
838
850
  padding: 12px;
839
851
  border-bottom: 1px solid #e3e3e3;
840
852
  border-left: 1px solid #e3e3e3;
841
- word-wrap: break-word;
842
- overflow-wrap: break-word;
853
+ /* word-wrap: break-word;
854
+ overflow-wrap: break-word;*/
843
855
  word-break: normal;
844
856
  hyphens: none;
845
857
  }
@@ -1051,4 +1063,10 @@ export default {
1051
1063
  width: calc(100% + -2px);
1052
1064
  }
1053
1065
  }
1066
+
1067
+ @media (max-width: 400px) {
1068
+ .plan-feature-name {
1069
+ padding: 12px 4px;
1070
+ }
1071
+ }
1054
1072
  </style>