@useinsider/guido 3.18.2-beta.fc246a7 → 3.18.2-beta.fc87f65
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/components/Guido.vue.js +3 -3
- package/dist/components/Guido.vue2.js +30 -30
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +13 -11
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +76 -57
- package/dist/components/organisms/extensions/recommendation/RemoveStrategyModal.vue2.js +23 -37
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +20 -18
- package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.js +21 -0
- package/dist/components/organisms/onboarding/RecommendationStrategyOnboarding.vue2.js +47 -0
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +34 -34
- package/dist/composables/useCustomInterfaceAppearance.js +56 -46
- package/dist/composables/useHtmlValidator.js +87 -82
- package/dist/composables/useHttp.js +24 -22
- package/dist/composables/useRecommendation.js +40 -35
- package/dist/composables/useStripo.js +30 -30
- package/dist/config/migrator/itemsBlockMigrator.js +167 -257
- package/dist/enums/extensions/recommendationBlock.js +38 -31
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +17 -18
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +105 -114
- package/dist/extensions/Blocks/Items/enums/productEnums.js +9 -14
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +9 -11
- package/dist/extensions/Blocks/Items/template.js +204 -219
- package/dist/extensions/Blocks/Recommendation/block.js +43 -39
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +21 -20
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +40 -35
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +84 -52
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +74 -74
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +194 -91
- package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +26 -16
- package/dist/extensions/Blocks/Recommendation/utils/strategyCommit.js +24 -0
- package/dist/extensions/Blocks/Recommendation/validation/requiredFields.js +21 -12
- package/dist/guido.css +1 -1
- package/dist/services/templateLibraryApi.js +17 -14
- package/dist/src/components/organisms/onboarding/RecommendationStrategyOnboarding.vue.d.ts +2 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +2 -0
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +0 -3
- package/dist/src/extensions/Blocks/Items/template.d.ts +0 -19
- package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +2 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +9 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +7 -2
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +79 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/strategyCommit.d.ts +14 -0
- package/dist/src/extensions/Blocks/Recommendation/validation/requiredFields.d.ts +4 -0
- package/dist/src/stores/onboarding.d.ts +377 -0
- package/dist/src/utils/genericUtil.d.ts +6 -0
- package/dist/src/utils/liquidDynamicContent.d.ts +20 -0
- package/dist/static/styles/components/recommendation-strategy.css.js +34 -4
- package/dist/static/styles/components/skeleton.css.js +23 -0
- package/dist/stores/onboarding.js +41 -36
- package/dist/utils/genericUtil.js +63 -54
- package/dist/utils/liquidDynamicContent.js +15 -0
- package/dist/utils/pairProductVariables.js +71 -71
- package/dist/utils/templatePreparation.js +61 -60
- package/package.json +5 -5
- package/dist/extensions/Blocks/Items/constants/cardLayout.js +0 -20
- package/dist/src/extensions/Blocks/Items/constants/cardLayout.d.ts +0 -44
|
@@ -92,20 +92,15 @@ const t = '<td align="center" class="ins-product-td items-block items-block-v2">
|
|
|
92
92
|
quantity: {
|
|
93
93
|
CART_ITEMS: {
|
|
94
94
|
ATTR: "ins_apr_quantity",
|
|
95
|
-
DEFAULT: "3"
|
|
96
|
-
LEGACY_DEFAULTS: []
|
|
95
|
+
DEFAULT: "3"
|
|
97
96
|
},
|
|
98
97
|
BROWSED_ITEMS: {
|
|
99
98
|
ATTR: "browsed_item_quantity",
|
|
100
|
-
DEFAULT: "
|
|
101
|
-
// Was '7' before SD-149368 corrected it; still tokenize the legacy value so
|
|
102
|
-
// already-saved browsed-items templates keep exporting the merge tag, not literal '7'.
|
|
103
|
-
LEGACY_DEFAULTS: ["7"]
|
|
99
|
+
DEFAULT: "7"
|
|
104
100
|
},
|
|
105
101
|
PURCHASED_ITEMS: {
|
|
106
102
|
ATTR: "purchased_item_quantity",
|
|
107
|
-
DEFAULT: "10"
|
|
108
|
-
LEGACY_DEFAULTS: []
|
|
103
|
+
DEFAULT: "10"
|
|
109
104
|
}
|
|
110
105
|
},
|
|
111
106
|
price: {
|
|
@@ -129,8 +124,8 @@ const t = '<td align="center" class="ins-product-td items-block items-block-v2">
|
|
|
129
124
|
CURRENCY: "browsed_item_productcurrency",
|
|
130
125
|
DEFAULT_PRICE: "1249.99",
|
|
131
126
|
DEFAULT_PRICE_FORMATTED: "1,249.99",
|
|
132
|
-
DEFAULT_SINGLE_PRICE: "
|
|
133
|
-
DEFAULT_SINGLE_PRICE_FORMATTED: "
|
|
127
|
+
DEFAULT_SINGLE_PRICE: "178.57",
|
|
128
|
+
DEFAULT_SINGLE_PRICE_FORMATTED: "178.57",
|
|
134
129
|
DEFAULT_CURRENCY: "USD"
|
|
135
130
|
},
|
|
136
131
|
PURCHASED_ITEMS: {
|
|
@@ -167,8 +162,8 @@ const t = '<td align="center" class="ins-product-td items-block items-block-v2">
|
|
|
167
162
|
CURRENCY: "browsed_item_productcurrency",
|
|
168
163
|
DEFAULT_PRICE: "2049.99",
|
|
169
164
|
DEFAULT_PRICE_FORMATTED: "2,049.99",
|
|
170
|
-
DEFAULT_SINGLE_PRICE: "
|
|
171
|
-
DEFAULT_SINGLE_PRICE_FORMATTED: "
|
|
165
|
+
DEFAULT_SINGLE_PRICE: "292.86",
|
|
166
|
+
DEFAULT_SINGLE_PRICE_FORMATTED: "292.86",
|
|
172
167
|
DEFAULT_CURRENCY: "USD"
|
|
173
168
|
},
|
|
174
169
|
PURCHASED_ITEMS: {
|
|
@@ -219,7 +214,7 @@ const t = '<td align="center" class="ins-product-td items-block items-block-v2">
|
|
|
219
214
|
function a(e, i = 8) {
|
|
220
215
|
return s(1, i + 1).map((_) => `${e}_${_}`);
|
|
221
216
|
}
|
|
222
|
-
function
|
|
217
|
+
function R() {
|
|
223
218
|
const { PAIRS_FOR_EXTENSION: e } = r, i = [];
|
|
224
219
|
return i.push(
|
|
225
220
|
e.imageSrc.CART_ITEMS.ATTR,
|
|
@@ -279,7 +274,7 @@ function T() {
|
|
|
279
274
|
), i;
|
|
280
275
|
}
|
|
281
276
|
const p = E(
|
|
282
|
-
|
|
277
|
+
R(),
|
|
283
278
|
(e) => a(e)
|
|
284
279
|
);
|
|
285
280
|
export {
|
|
@@ -1,49 +1,47 @@
|
|
|
1
1
|
const t = `{-{-TEMPLATE_FIRST_LINE-}-}
|
|
2
|
-
<table class="es-left ins-product-wrapper ins-product-cart" width="100%" cellspacing="0" cellpadding="0"
|
|
2
|
+
<table class="es-left ins-product-wrapper ins-product-cart" width="100%" cellspacing="0" cellpadding="0">
|
|
3
3
|
<tbody>
|
|
4
4
|
<tr>
|
|
5
5
|
<td style="padding: 16px 9px;">
|
|
6
|
-
<table class="es-left esdev-disable-select" cellspacing="0" cellpadding="0" align="left" width="100%"
|
|
6
|
+
<table class="es-left esdev-disable-select" cellspacing="0" cellpadding="0" align="left" width="100%">
|
|
7
7
|
<tbody>
|
|
8
8
|
<tr>
|
|
9
|
-
<td class="product-image-class es-
|
|
9
|
+
<td class="product-image-class es-p10r" data-slot-1>
|
|
10
10
|
<table width="100%">
|
|
11
11
|
<tbody>
|
|
12
12
|
{-{-PRODUCT_IMAGE-}-}
|
|
13
13
|
</tbody>
|
|
14
14
|
</table>
|
|
15
15
|
</td>
|
|
16
|
-
|
|
17
|
-
max-width only so a fixed-layout table can still shrink the column in narrow structures -->
|
|
18
|
-
<td class="product-name-class es-p5l es-p5r" data-slot-2 style="max-width: 130px;">
|
|
16
|
+
<td class="product-name-class es-p10l es-p10r" data-slot-2>
|
|
19
17
|
<table width="100%" style="table-layout: fixed;">
|
|
20
18
|
<tbody>
|
|
21
19
|
{-{-PRODUCT_NAME-}-}
|
|
22
20
|
</tbody>
|
|
23
21
|
</table>
|
|
24
22
|
</td>
|
|
25
|
-
<td class="product-quantity-class es-
|
|
23
|
+
<td class="product-quantity-class es-p10l es-p10r" data-slot-3>
|
|
26
24
|
<table width="100%">
|
|
27
25
|
<tbody>
|
|
28
26
|
{-{-PRODUCT_QUANTITY-}-}
|
|
29
27
|
</tbody>
|
|
30
28
|
</table>
|
|
31
29
|
</td>
|
|
32
|
-
<td class="product-price-class horizontal-price" data-slot-4>
|
|
30
|
+
<td class="product-price-class horizontal-price es-p10l es-p10r" data-slot-4>
|
|
33
31
|
<table width="100%">
|
|
34
32
|
<tbody>
|
|
35
33
|
{-{-PRODUCT_PRICE-}-}
|
|
36
34
|
</tbody>
|
|
37
35
|
</table>
|
|
38
36
|
</td>
|
|
39
|
-
<td class="product-original-price-class horizontal-price" data-slot-5>
|
|
37
|
+
<td class="product-original-price-class horizontal-price es-p10l es-p10r" data-slot-5>
|
|
40
38
|
<table width="100%">
|
|
41
39
|
<tbody>
|
|
42
40
|
{-{-PRODUCT_ORIGINAL_PRICE-}-}
|
|
43
41
|
</tbody>
|
|
44
42
|
</table>
|
|
45
43
|
</td>
|
|
46
|
-
<td class="product-price-container vertical-price" data-slot-4 style="display: none;">
|
|
44
|
+
<td class="product-price-container vertical-price es-p10l es-p10r" data-slot-4 style="display: none;">
|
|
47
45
|
<table class="product-price-class" width="100%" data-slot-4>
|
|
48
46
|
<tbody>
|
|
49
47
|
{-{-PRODUCT_PRICE-}-}
|
|
@@ -56,7 +54,7 @@ const t = `{-{-TEMPLATE_FIRST_LINE-}-}
|
|
|
56
54
|
</tbody>
|
|
57
55
|
</table>
|
|
58
56
|
</td>
|
|
59
|
-
<td class="product-button-class es-
|
|
57
|
+
<td class="product-button-class es-p10l" data-slot-6>
|
|
60
58
|
<table width="100%">
|
|
61
59
|
<tbody>
|
|
62
60
|
{-{-PRODUCT_BUTTON-}-}
|