@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/dist/app-manager-vue.esm.js +36 -13
- package/dist/app-manager-vue.min.js +1 -1
- package/dist/app-manager-vue.ssr.js +66 -43
- package/dist/hulkapps-app-manager.css +1 -1
- package/dist/hulkapps-app-manager.min.css +1 -1
- package/package.json +1 -1
- package/src/components/Plans/AppManagerSliderPlan.vue +6 -0
- package/src/components/PolarisNew/PlanCardsHighlights.vue +2 -2
- package/src/components/PolarisNew/PlanTable.vue +25 -7
package/package.json
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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>
|