@useinsider/guido 3.17.0 → 3.18.0-beta.41e529d
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/README.md +6 -5
- package/dist/@types/config/schemas.js +10 -7
- package/dist/components/Guido.vue.js +10 -10
- package/dist/components/Guido.vue2.js +86 -78
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +21 -0
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +131 -0
- package/dist/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.js +18 -0
- package/dist/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue2.js +25 -0
- package/dist/components/organisms/extensions/recommendation/RemoveStrategyModal.vue.js +17 -0
- package/dist/components/organisms/extensions/recommendation/RemoveStrategyModal.vue2.js +57 -0
- package/dist/components/organisms/extensions/recommendation/StrategyInfoBoxContent.vue.js +19 -0
- package/dist/components/organisms/extensions/recommendation/StrategyInfoBoxContent.vue2.js +63 -0
- package/dist/composables/useCustomInterfaceAppearance.js +56 -38
- package/dist/composables/useLegacyStrategyConversion.js +52 -0
- package/dist/composables/useModuleRepair.js +33 -0
- package/dist/composables/useRecommendation.js +41 -34
- package/dist/composables/useSave.js +30 -29
- package/dist/composables/useStripo.js +15 -15
- package/dist/composables/useSyncModuleExtractor.js +15 -13
- package/dist/composables/validators/useSyncModuleBlockValidator.js +24 -0
- package/dist/config/i18n/en/labels.json.js +1 -1
- package/dist/config/migrator/index.js +9 -8
- package/dist/config/migrator/recommendation/compositionMapper.js +20 -20
- package/dist/config/migrator/recommendation/extractors.js +29 -24
- package/dist/config/migrator/recommendation/htmlBuilder.js +116 -130
- package/dist/config/migrator/recommendation/settingsMapper.js +17 -17
- package/dist/config/migrator/recommendationMigrator.js +31 -25
- package/dist/config/migrator/recommendationTitleMigrator.js +119 -0
- package/dist/enums/academy.js +2 -1
- package/dist/enums/date.js +5 -3
- package/dist/enums/extensions/recommendationBlock.js +4 -1
- package/dist/extensions/Blocks/Items/block.js +118 -49
- package/dist/extensions/Blocks/Items/constants/currency.js +25 -0
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +25 -24
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +12 -11
- package/dist/extensions/Blocks/Items/template.js +153 -152
- package/dist/extensions/Blocks/Items/utils/constants.js +4 -0
- package/dist/extensions/Blocks/Recommendation/block.js +35 -29
- package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +1 -1
- package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +29 -27
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +35 -28
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +309 -236
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +242 -180
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +159 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +1 -0
- package/dist/extensions/Blocks/Recommendation/controls/title/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +31 -29
- package/dist/extensions/Blocks/Recommendation/services/configService.js +54 -36
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +23 -4
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +217 -80
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +3 -3
- package/dist/extensions/Blocks/Recommendation/templates/titleRows.js +33 -0
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +85 -107
- package/dist/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.js +58 -0
- package/dist/extensions/Blocks/Recommendation/utils/nodeConfigWriter.js +22 -0
- package/dist/extensions/Blocks/Recommendation/utils/recommendationBlockCount.js +10 -6
- package/dist/extensions/Blocks/common-control.js +22 -19
- package/dist/guido.css +1 -1
- package/dist/services/recommendationApi.js +81 -33
- package/dist/src/@types/config/schemas.d.ts +6 -0
- package/dist/src/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.d.ts +3 -0
- package/dist/src/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.d.ts +2 -0
- package/dist/src/components/organisms/extensions/recommendation/RemoveStrategyModal.vue.d.ts +2 -0
- package/dist/src/components/organisms/extensions/recommendation/StrategyInfoBoxContent.vue.d.ts +15 -0
- package/dist/src/composables/useConfig.d.ts +4 -0
- package/dist/src/composables/useLegacyStrategyConversion.d.ts +3 -0
- package/dist/src/composables/useModuleRepair.d.ts +18 -0
- package/dist/src/composables/useRecommendation.d.ts +1 -0
- package/dist/src/composables/useSyncModuleExtractor.d.ts +2 -0
- package/dist/src/composables/validators/useSyncModuleBlockValidator.d.ts +3 -0
- package/dist/src/config/migrator/recommendation/extractors.d.ts +8 -0
- package/dist/src/config/migrator/recommendationTitleMigrator.d.ts +5 -0
- package/dist/src/enums/academy.d.ts +1 -0
- package/dist/src/enums/date.d.ts +1 -0
- package/dist/src/enums/extensions/recommendationBlock.d.ts +3 -0
- package/dist/src/extensions/Blocks/Items/block.d.ts +35 -0
- package/dist/src/extensions/Blocks/Items/constants/currency.d.ts +43 -0
- package/dist/src/extensions/Blocks/Items/utils/constants.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +2 -1
- package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +3 -6
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +2 -2
- package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +12 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +11 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +44 -8
- package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +17 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/title/index.d.ts +86 -0
- package/dist/src/extensions/Blocks/Recommendation/services/configService.d.ts +12 -1
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +229 -10
- package/dist/src/extensions/Blocks/Recommendation/templates/titleRows.d.ts +13 -0
- package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/legacyStrategyMigration.d.ts +39 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/nodeConfigWriter.d.ts +31 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/recommendationBlockCount.d.ts +6 -2
- package/dist/src/extensions/Blocks/common-control.d.ts +4 -1
- package/dist/src/mock/api/recommendation-strategies.d.ts +2 -0
- package/dist/src/services/recommendationApi.d.ts +5 -1
- package/dist/src/stores/config.d.ts +178 -0
- package/dist/src/stores/save-as-template.d.ts +4 -3
- package/dist/src/utils/genericUtil.d.ts +5 -0
- package/dist/src/utils/itemsCurrencyRepair.d.ts +17 -0
- package/dist/static/assets/icons/filled-arrow-rising.svg.js +5 -0
- package/dist/static/assets/icons/line-change.svg.js +5 -0
- package/dist/static/assets/icons/line-delete.svg.js +5 -0
- package/dist/static/assets/icons/line-info.svg.js +5 -0
- package/dist/static/assets/icons/line-plus.svg.js +5 -0
- package/dist/static/styles/components/recommendation-strategy.css.js +220 -0
- package/dist/static/styles/customEditorStyle.css.js +3 -1
- package/dist/stores/config.js +66 -59
- package/dist/utils/dateUtil.js +23 -10
- package/dist/utils/genericUtil.js +28 -27
- package/dist/utils/itemsCurrencyRepair.js +39 -0
- package/dist/utils/pairProductVariables.js +58 -58
- package/dist/utils/templatePreparation.js +35 -34
- package/package.json +3 -2
- package/dist/composables/useModuleDynamicContentRepair.js +0 -37
- package/dist/src/composables/useModuleDynamicContentRepair.d.ts +0 -13
|
@@ -1,52 +1,100 @@
|
|
|
1
|
-
import { useHttp as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
(
|
|
5
|
-
attributeName:
|
|
6
|
-
attributeJs:
|
|
7
|
-
attributeType:
|
|
8
|
-
type:
|
|
9
|
-
displayName:
|
|
10
|
-
isFilterable:
|
|
11
|
-
},
|
|
1
|
+
import { useHttp as y } from "../composables/useHttp.js";
|
|
2
|
+
import { URLS as c, QUERY_PARAMS as u } from "../enums/extensions/recommendationBlock.js";
|
|
3
|
+
const g = "[sr_strategies.status][=][active]*[sr_strategies.suitable_channels][~][EMAIL]", l = (s) => s.reduce(
|
|
4
|
+
(i, o, d) => (i[d] = {
|
|
5
|
+
attributeName: o.attributeName,
|
|
6
|
+
attributeJs: o.attributeJs,
|
|
7
|
+
attributeType: o.attributeType,
|
|
8
|
+
type: o.type,
|
|
9
|
+
displayName: o.displayName,
|
|
10
|
+
isFilterable: o.isFilterable
|
|
11
|
+
}, i),
|
|
12
12
|
{}
|
|
13
|
-
),
|
|
14
|
-
const { get:
|
|
13
|
+
), _ = () => {
|
|
14
|
+
const { get: s, post: i } = y(), { get: o } = y({ headers: {} }), d = "6KcLM9TwheVB1mgK";
|
|
15
15
|
return {
|
|
16
16
|
fetchRecommendationCreateData: async () => {
|
|
17
17
|
try {
|
|
18
|
-
return (await
|
|
19
|
-
} catch (
|
|
20
|
-
throw console.error("fetchUserModalState error:",
|
|
18
|
+
return (await s(`${c.NEWSLETTER_RECOMMENDATIONS_PATH}/create-data`)).data;
|
|
19
|
+
} catch (t) {
|
|
20
|
+
throw console.error("fetchUserModalState error:", t), t;
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
fetchRecommendationFilters: async () => {
|
|
24
24
|
try {
|
|
25
|
-
const { data:
|
|
26
|
-
|
|
27
|
-
),
|
|
28
|
-
return
|
|
29
|
-
} catch (
|
|
30
|
-
throw console.error("fetchRecommendationFilters error:",
|
|
25
|
+
const { data: t } = await s(
|
|
26
|
+
c.PRODUCT_ATTRIBUTES_PATH
|
|
27
|
+
), r = Array.isArray(t) ? t : (t == null ? void 0 : t.data) ?? [];
|
|
28
|
+
return l(r);
|
|
29
|
+
} catch (t) {
|
|
30
|
+
throw console.error("fetchRecommendationFilters error:", t), t;
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
fetchRecommendationProducts: async (
|
|
34
|
-
var
|
|
33
|
+
fetchRecommendationProducts: async (t, r) => {
|
|
34
|
+
var e;
|
|
35
35
|
try {
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const m = decodeURIComponent(
|
|
36
|
+
const a = new URLSearchParams(Object.entries(r));
|
|
37
|
+
a.set(u.CLIENT_ID, d);
|
|
38
|
+
const m = decodeURIComponent(a.toString());
|
|
39
39
|
console.debug("🏁 Recommendation API Query:", m);
|
|
40
|
-
const
|
|
41
|
-
`${
|
|
40
|
+
const n = await o(
|
|
41
|
+
`${c.RECOMMENDATION_API_URL}/v2/${t}?${m}`
|
|
42
42
|
);
|
|
43
|
-
return ((
|
|
44
|
-
} catch (
|
|
45
|
-
throw console.error("fetchRecommendationProducts error:",
|
|
43
|
+
return ((e = n == null ? void 0 : n.data) == null ? void 0 : e.data) ?? [];
|
|
44
|
+
} catch (a) {
|
|
45
|
+
throw console.error("fetchRecommendationProducts error:", a), a;
|
|
46
46
|
}
|
|
47
|
+
},
|
|
48
|
+
fetchRecommendationProductsByUrl: async (t) => {
|
|
49
|
+
var r;
|
|
50
|
+
try {
|
|
51
|
+
const e = new RegExp(`[?&]${u.CLIENT_ID}=`).test(t), a = t.includes("?") ? "&" : "?", m = e ? t : `${t}${a}${u.CLIENT_ID}=${d}`, n = await o(
|
|
52
|
+
m
|
|
53
|
+
);
|
|
54
|
+
return ((r = n == null ? void 0 : n.data) == null ? void 0 : r.data) ?? [];
|
|
55
|
+
} catch (e) {
|
|
56
|
+
return console.error("fetchRecommendationProductsByUrl error:", e), [];
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
fetchRecommendationStrategies: async () => {
|
|
60
|
+
try {
|
|
61
|
+
const { data: t } = await s(
|
|
62
|
+
`${c.RECOMMENDATION_STRATEGIES_PATH}?filters=${encodeURIComponent(g)}`
|
|
63
|
+
);
|
|
64
|
+
return Array.isArray(t) ? t : (t == null ? void 0 : t.data) ?? [];
|
|
65
|
+
} catch (t) {
|
|
66
|
+
throw console.error("fetchRecommendationStrategies error:", t), t;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
generateStrategyEndpoint: async (t, r) => {
|
|
70
|
+
try {
|
|
71
|
+
const { data: e } = await i(
|
|
72
|
+
`${c.RECOMMENDATION_STRATEGIES_PATH}/endpoint-generate`,
|
|
73
|
+
{
|
|
74
|
+
campaignId: 0,
|
|
75
|
+
pageTypes: [],
|
|
76
|
+
isPreviewer: !1,
|
|
77
|
+
strategy: t,
|
|
78
|
+
userId: "",
|
|
79
|
+
currency: r
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
return !e || typeof e != "object" || !("full_path" in e || "data" in e) ? (console.error("generateStrategyEndpoint unexpected response shape:", e), null) : "full_path" in e ? e : e.data;
|
|
83
|
+
} catch (e) {
|
|
84
|
+
return console.error("generateStrategyEndpoint error:", e), null;
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
migrateLegacyStrategy: async (t) => {
|
|
88
|
+
const { data: r } = await i(
|
|
89
|
+
`${c.NEWSLETTER_RECOMMENDATIONS_PATH}/migrate-strategies`,
|
|
90
|
+
t
|
|
91
|
+
), e = r && typeof r == "object" && "data" in r ? r.data : r, a = e == null ? void 0 : e.strategyId;
|
|
92
|
+
if (a == null || a === "")
|
|
93
|
+
throw new Error("[Guido] migrate-strategies returned no strategyId");
|
|
94
|
+
return String(a);
|
|
47
95
|
}
|
|
48
96
|
};
|
|
49
97
|
};
|
|
50
98
|
export {
|
|
51
|
-
|
|
99
|
+
_ as useRecommendationApi
|
|
52
100
|
};
|
|
@@ -50,6 +50,8 @@ export declare const IdentitySchema: v.ObjectSchema<{
|
|
|
50
50
|
readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "userId is required">]>;
|
|
51
51
|
/** Optional variation ID for A/B testing */
|
|
52
52
|
readonly variationId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
53
|
+
/** Optional numeric campaign ID of the host campaign; absent for templates and modules */
|
|
54
|
+
readonly campaignId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
53
55
|
}, undefined>;
|
|
54
56
|
/**
|
|
55
57
|
* Partner configuration - organization and product context
|
|
@@ -395,6 +397,7 @@ export declare const FeaturesSchema: v.ObjectSchema<{
|
|
|
395
397
|
readonly allowlistEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
396
398
|
/** Enable persistent link tracking-id assignment for the click heatmap (opt-in) */
|
|
397
399
|
readonly linkTrackingIds: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
400
|
+
readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
398
401
|
}, undefined>;
|
|
399
402
|
/**
|
|
400
403
|
* Default block types available in Stripo
|
|
@@ -624,6 +627,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
624
627
|
readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, "userId is required">]>;
|
|
625
628
|
/** Optional variation ID for A/B testing */
|
|
626
629
|
readonly variationId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
630
|
+
/** Optional numeric campaign ID of the host campaign; absent for templates and modules */
|
|
631
|
+
readonly campaignId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
627
632
|
}, undefined>;
|
|
628
633
|
/** Partner configuration (required) */
|
|
629
634
|
readonly partner: v.ObjectSchema<{
|
|
@@ -794,6 +799,7 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
794
799
|
readonly allowlistEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
795
800
|
/** Enable persistent link tracking-id assignment for the click heatmap (opt-in) */
|
|
796
801
|
readonly linkTrackingIds: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
802
|
+
readonly reusableRecommendationStrategy: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
797
803
|
}, undefined>, {}>;
|
|
798
804
|
/** Block configuration */
|
|
799
805
|
readonly blocks: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@useinsider/design-system-organisms/style';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
export default _default;
|
package/dist/src/components/organisms/extensions/recommendation/LegacyStrategyUpdatedModal.vue.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
package/dist/src/components/organisms/extensions/recommendation/StrategyInfoBoxContent.vue.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RrsStrategy } from '@@/Types/recommendation';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
strategy: RrsStrategy;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -11,6 +11,7 @@ export declare const useConfig: () => {
|
|
|
11
11
|
templateId: string;
|
|
12
12
|
userId: string;
|
|
13
13
|
variationId?: string | undefined;
|
|
14
|
+
campaignId?: string | undefined;
|
|
14
15
|
};
|
|
15
16
|
partner: {
|
|
16
17
|
name: string;
|
|
@@ -99,6 +100,7 @@ export declare const useConfig: () => {
|
|
|
99
100
|
autosave: boolean;
|
|
100
101
|
allowlistEnabled: boolean;
|
|
101
102
|
linkTrackingIds: boolean;
|
|
103
|
+
reusableRecommendationStrategy: boolean;
|
|
102
104
|
};
|
|
103
105
|
blocks: {
|
|
104
106
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -145,6 +147,7 @@ export declare const useConfig: () => {
|
|
|
145
147
|
templateId: string;
|
|
146
148
|
userId: string;
|
|
147
149
|
variationId?: string | undefined;
|
|
150
|
+
campaignId?: string | undefined;
|
|
148
151
|
} | null>;
|
|
149
152
|
partner: import("vue").ComputedRef<{
|
|
150
153
|
name: string;
|
|
@@ -233,6 +236,7 @@ export declare const useConfig: () => {
|
|
|
233
236
|
autosave: boolean;
|
|
234
237
|
allowlistEnabled: boolean;
|
|
235
238
|
linkTrackingIds: boolean;
|
|
239
|
+
reusableRecommendationStrategy: boolean;
|
|
236
240
|
} | null>;
|
|
237
241
|
blocks: import("vue").ComputedRef<{
|
|
238
242
|
excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ModuleAddData, ModuleModifier } from '@@/Types/stripo';
|
|
2
|
+
export declare const UNRESOLVED_DYNAMIC_CONTENT_ON_DROP_KEY = "dynamic-content.unresolved-attributes-on-drop";
|
|
3
|
+
/**
|
|
4
|
+
* Repairs saved modules as they are dropped or copied into the editor, in one pass
|
|
5
|
+
* over the module HTML. Two independent repairs run through a single write-back:
|
|
6
|
+
*
|
|
7
|
+
* - Dynamic content: saved modules serialize merge-tag chips by their display label
|
|
8
|
+
* (`{{ Phone Number }}`); this maps them back to their canonical token
|
|
9
|
+
* (`{{phone_number}}`) using the account's dynamic-content list.
|
|
10
|
+
* - Items currency: v2 Items blocks can carry price `data-curency` /
|
|
11
|
+
* `data-currency_symbol` attrs that drifted from their `esd-ext-config`; these are
|
|
12
|
+
* healed from config (the export contract reads those exact attrs).
|
|
13
|
+
*
|
|
14
|
+
* Wired into Stripo via the `onModuleAdd` init callback (see `useStripo`).
|
|
15
|
+
*/
|
|
16
|
+
export declare const useModuleRepair: () => {
|
|
17
|
+
handleModuleAdd: (data: ModuleAddData, modifier: ModuleModifier) => void;
|
|
18
|
+
};
|
|
@@ -18,6 +18,7 @@ export declare const useRecommendation: () => {
|
|
|
18
18
|
getRecommendationCampaignData: (id: string) => CampaignData;
|
|
19
19
|
buildCampaignUrl: (campaignId: string, overrides?: {
|
|
20
20
|
strategy: string;
|
|
21
|
+
strategyId: string;
|
|
21
22
|
language: string;
|
|
22
23
|
currencyCode: string;
|
|
23
24
|
size: string;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { SyncModuleExtractResult } from '@@/Types/events';
|
|
2
|
+
export declare const SYNC_MODULE_CLASS = "esd-synchronizable-module";
|
|
3
|
+
export declare const SYNC_MODULE_SELECTOR = ".esd-synchronizable-module";
|
|
2
4
|
export declare const useSyncModuleExtractor: () => {
|
|
3
5
|
extractSyncModuleData: (html: string) => SyncModuleExtractResult;
|
|
4
6
|
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export declare function extractTitleText(block: Element): string;
|
|
2
|
+
/**
|
|
3
|
+
* Fallback for legacy configs that carry no `p_recommendation_title` variable:
|
|
4
|
+
* the rendered HTML decides. A missing or `display: none` title container means
|
|
5
|
+
* the user never saw a title, so the migrated block keeps it toggled off.
|
|
6
|
+
* @param block - The legacy recommendation block element
|
|
7
|
+
* @returns True when the legacy block renders a visible title
|
|
8
|
+
*/
|
|
9
|
+
export declare function hasVisibleTitle(block: Element): boolean;
|
|
2
10
|
/**
|
|
3
11
|
* Card background lives on either the block (`bgcolor`/`style`) or per-card
|
|
4
12
|
* cells (`.product-card`). Returns empty string when no background is set —
|
|
@@ -8,5 +8,6 @@ export declare const ACADEMY_LINKS: {
|
|
|
8
8
|
readonly EMAIL_EDITOR: "https://academy.insiderone.com/docs/email-drag-and-drop-editor";
|
|
9
9
|
readonly GLOBAL_UNSUBSCRIBE: "https://academy.insiderone.com/docs/global-unsubscribe-preference-center";
|
|
10
10
|
readonly AMP_FOR_EMAILS: "https://academy.insiderone.com/docs/amp-for-emails";
|
|
11
|
+
readonly EMAIL_RECOMMENDATION_BLOCK: "https://academy.insiderone.com/docs/new-editor-email-recommendation-block";
|
|
11
12
|
};
|
|
12
13
|
export type AcademyLinkKey = keyof typeof ACADEMY_LINKS;
|
package/dist/src/enums/date.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import type { RecommendationFeedItem } from '@@/Types/recommendation';
|
|
|
3
3
|
export declare const URLS: {
|
|
4
4
|
RECOMMENDATION_API_URL: string;
|
|
5
5
|
PRODUCT_ATTRIBUTES_PATH: string;
|
|
6
|
+
RECOMMENDATION_STRATEGIES_PATH: string;
|
|
7
|
+
RECOMMENDATION_STRATEGIES_PANEL_PATH: string;
|
|
8
|
+
NEWSLETTER_RECOMMENDATIONS_PATH: string;
|
|
6
9
|
};
|
|
7
10
|
export declare const QUERY_PARAMS: {
|
|
8
11
|
CLIENT_ID: string;
|
|
@@ -16,6 +16,10 @@ export declare const BLOCK_ID: BlockId;
|
|
|
16
16
|
* - Onboarding support
|
|
17
17
|
*/
|
|
18
18
|
export declare class ItemsBlock extends Block {
|
|
19
|
+
/** Block instances whose currency attrs were already self-healed this session (SD-147588 — undo-safe). */
|
|
20
|
+
private _currencyHealed;
|
|
21
|
+
/** blockInstanceIds already claimed by a live block this session (SD-147588 collision detection). */
|
|
22
|
+
private _seenInstanceIds;
|
|
19
23
|
getId(): string;
|
|
20
24
|
getIcon(): string;
|
|
21
25
|
getBlockCompositionType(): BlockCompositionType;
|
|
@@ -42,4 +46,35 @@ export declare class ItemsBlock extends Block {
|
|
|
42
46
|
* relies on this td-level fallback in pairProductVariables.
|
|
43
47
|
*/
|
|
44
48
|
private _stampProductTdDomAttributes;
|
|
49
|
+
/**
|
|
50
|
+
* Whether a currency self-heal pass should run for this block (SD-147588). The only gate here is
|
|
51
|
+
* once-per-session: heal each instance at most once, so the auto-fix can't fight undo (undo
|
|
52
|
+
* re-drifts the attr, which would otherwise re-trigger the heal forever). The position-vs-symbol
|
|
53
|
+
* authority split lives in `_reconcileCurrencyDomAttributes` — position is always authoritative,
|
|
54
|
+
* the symbol write alone is skipped for the 'USD' sentinel — so we must NOT gate the whole pass
|
|
55
|
+
* on symbol customization here, or a default-symbol block with a toggled location never heals.
|
|
56
|
+
*/
|
|
57
|
+
private _shouldReconcileCurrency;
|
|
58
|
+
/** Marks a block instance's currency as reconciled so it is not healed again (undo-safe). */
|
|
59
|
+
private _markCurrencyHealed;
|
|
60
|
+
/**
|
|
61
|
+
* Resolves the id for a just-created block to one that is unique per live instance.
|
|
62
|
+
* A saved module serializes its blockInstanceId, so every re-drop of the same module
|
|
63
|
+
* arrives with an id already owned by a live instance — reusing it collides both the
|
|
64
|
+
* currency heal guard and settings-panel switch detection. Mint a fresh id on absence
|
|
65
|
+
* or collision, otherwise keep the existing one. Registers the result as claimed.
|
|
66
|
+
*/
|
|
67
|
+
private _resolveInstanceId;
|
|
68
|
+
/**
|
|
69
|
+
* Stamps the export-read currency attrs onto every price `<p>` from config, so a template whose
|
|
70
|
+
* attrs drifted (e.g. a location toggle before the sync fix) self-heals to match the editor.
|
|
71
|
+
* Config is the source of truth — never derive from visible text.
|
|
72
|
+
*
|
|
73
|
+
* Authority split lives in `currencyAttrTargets` (SD-147588) — position only when a location
|
|
74
|
+
* is recorded, symbol only when customized — so this heal and the module-drop repair can't drift.
|
|
75
|
+
*
|
|
76
|
+
* Returns true only when an attr actually changed, so the caller can skip an empty apply that
|
|
77
|
+
* would otherwise re-trigger onDocumentChanged and loop.
|
|
78
|
+
*/
|
|
79
|
+
private _reconcileCurrencyDomAttributes;
|
|
45
80
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single owner for the Items price currency export contract (SD-147588).
|
|
3
|
+
*
|
|
4
|
+
* `data-curency` is deliberately misspelled (one `r`) — it is the attribute the
|
|
5
|
+
* server-side export transform (pairProductVariables) actually reads, so every
|
|
6
|
+
* layer that writes it and the live reader (template, controls, block self-heal,
|
|
7
|
+
* pairProductVariables) MUST go through these constants. A typo fix or mapping change
|
|
8
|
+
* in one of them would otherwise silently break sync with the others and ship the wrong
|
|
9
|
+
* currency position/token to the inbox. Mirrors the Recommendation block's `CURRENCY_ATTR`.
|
|
10
|
+
*
|
|
11
|
+
* Exception: the legacy migrator reads the raw misspelled string on purpose — it parses
|
|
12
|
+
* old templates frozen with that exact attr name, so it must NOT follow a future rename here.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ITEMS_CURRENCY_ATTR: {
|
|
15
|
+
readonly POSITION: "data-curency";
|
|
16
|
+
readonly SYMBOL: "data-currency_symbol";
|
|
17
|
+
};
|
|
18
|
+
/** Currency location select value `'1'` = after (price then symbol), anything else = before. */
|
|
19
|
+
export declare function currencyPositionFromLocation(location: string | undefined): 'after' | 'before';
|
|
20
|
+
/**
|
|
21
|
+
* Whether a currency symbol is a partner customization vs the 'USD' default sentinel (SD-144644).
|
|
22
|
+
* The default value means "use the catalog currency", so it is treated as NOT customized — the one
|
|
23
|
+
* rule shared by the export transform (pairProductVariables) and the block self-heal, kept here so
|
|
24
|
+
* the two layers can never drift. Trims first so a whitespace-only value is not read as custom.
|
|
25
|
+
*/
|
|
26
|
+
export declare function isCustomCurrencySymbol(symbol: string | null | undefined): boolean;
|
|
27
|
+
export interface CurrencyAttrTargets {
|
|
28
|
+
/** Desired `data-curency`; `undefined` = leave the DOM attr as-is (no location recorded). */
|
|
29
|
+
position?: 'before' | 'after';
|
|
30
|
+
/** Desired `data-currency_symbol`; `undefined` = leave it (empty / the 'USD' sentinel). */
|
|
31
|
+
symbol?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The single authority rule for which price currency attrs a config wants written,
|
|
35
|
+
* shared by the block self-heal (Items/block.ts) and the module-drop repair
|
|
36
|
+
* (itemsCurrencyRepair) so the two can never drift (SD-147588). Position is authoritative
|
|
37
|
+
* only when a location is explicitly recorded (an absent value is "unknown", not 'before');
|
|
38
|
+
* the symbol is written only for a custom value (never the 'USD' default sentinel).
|
|
39
|
+
*/
|
|
40
|
+
export declare function currencyAttrTargets(config: {
|
|
41
|
+
priceCurrencyLocation?: string;
|
|
42
|
+
priceCurrencySymbol?: string;
|
|
43
|
+
}): CurrencyAttrTargets;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Block root selector — the container Stripo stamps on every v2 Items block.
|
|
3
|
+
* Legacy (`.esd-cart-items-block` &co.) is deliberately out of scope: it is
|
|
4
|
+
* normalized to v2 by `itemsBlockMigrator` at template load.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ITEMS_BLOCK_SELECTOR = ".items-block-v2";
|
|
@@ -10,5 +10,6 @@ export declare enum RecommendationBlockId {
|
|
|
10
10
|
OMNIBUS_PRICE = "recommendation-block-omnibus-price",
|
|
11
11
|
OMNIBUS_DISCOUNT = "recommendation-block-omnibus-discount",
|
|
12
12
|
IMAGE = "recommendation-block-image",
|
|
13
|
-
CUSTOM_ATTRIBUTE = "recommendation-block-custom-attribute"
|
|
13
|
+
CUSTOM_ATTRIBUTE = "recommendation-block-custom-attribute",
|
|
14
|
+
TITLE = "recommendation-block-title"
|
|
14
15
|
}
|
|
@@ -65,5 +65,12 @@ export declare enum RecommendationControlId {
|
|
|
65
65
|
CUSTOM_ATTR_SIZE = "recommendation-block-custom-attr-size-control",
|
|
66
66
|
CUSTOM_ATTR_STYLE = "recommendation-block-custom-attr-style-control",
|
|
67
67
|
CUSTOM_ATTR_TEXT_TRIM = "recommendation-block-custom-attr-text-trim-control",
|
|
68
|
+
TITLE_ALIGN = "recommendation-block-title-align-control",
|
|
69
|
+
TITLE_BACKGROUND = "recommendation-block-title-background-control",
|
|
70
|
+
TITLE_COLOR = "recommendation-block-title-color-control",
|
|
71
|
+
TITLE_FONT_FAMILY = "recommendation-block-title-font-family-control",
|
|
72
|
+
TITLE_PADDINGS = "recommendation-block-title-paddings-control",
|
|
73
|
+
TITLE_SIZE = "recommendation-block-title-size-control",
|
|
74
|
+
TITLE_STYLE = "recommendation-block-title-style-control",
|
|
68
75
|
SYNC_INFO_MESSAGE = "recommendation-block-sync-info-message"
|
|
69
76
|
}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* - Merging partial updates with existing config
|
|
9
9
|
*/
|
|
10
10
|
import type { RecommendationNodeConfig, CurrencyConfig, OmnibusTextConfig } from '../types/nodeConfig';
|
|
11
|
+
export declare const PRE_RRS_CONFIG_VERSION = 1;
|
|
12
|
+
export declare const CURRENT_CONFIG_VERSION = 2;
|
|
11
13
|
/**
|
|
12
14
|
* Default currency configuration
|
|
13
15
|
* Uses USD as the base currency with standard formatting
|
|
@@ -32,6 +34,7 @@ export declare const DEFAULT_COMPOSITION: string[];
|
|
|
32
34
|
/**
|
|
33
35
|
* Default visibility settings for card elements
|
|
34
36
|
* Omnibus elements are hidden by default (not all regions require them)
|
|
37
|
+
* The block-level title is visible on a fresh drop.
|
|
35
38
|
*/
|
|
36
39
|
export declare const DEFAULT_VISIBILITY: Record<string, boolean>;
|
|
37
40
|
/**
|
|
@@ -47,9 +50,3 @@ export declare const DEFAULT_NODE_CONFIG: RecommendationNodeConfig;
|
|
|
47
50
|
* View Together and Purchase Together algorithms are disabled because these require product id.
|
|
48
51
|
*/
|
|
49
52
|
export declare const EXCLUDED_ALGORITHM_IDS: number[];
|
|
50
|
-
/**
|
|
51
|
-
* Current configuration version
|
|
52
|
-
* Increment this when making breaking changes to the schema
|
|
53
|
-
* Used for migration detection
|
|
54
|
-
*/
|
|
55
|
-
export declare const CURRENT_CONFIG_VERSION = 1;
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { RecommendationBlockId } from './blockIds';
|
|
10
10
|
export { RecommendationControlId } from './controlIds';
|
|
11
|
-
export { BLOCK_ROOT_SELECTOR, CONTAINER_SELECTOR, DESKTOP_CONTAINER_SELECTOR, MOBILE_CONTAINER_SELECTOR, MOBILE_ROW_SELECTOR, CSS_CLASS_RECO_BUTTON, CSS_CLASS_SKIP_COMPILE, RECOMMENDATION_VARIABLE_BUILTIN_ATTRIBUTES, CURRENCY_ATTR, ATTR_PRODUCT_IMAGE, ATTR_PRODUCT_NAME, ATTR_PRODUCT_PRICE, ATTR_PRODUCT_OLD_PRICE, ATTR_PRODUCT_OMNIBUS_PRICE, ATTR_PRODUCT_OMNIBUS_DISCOUNT, ATTR_PRODUCT_BUTTON, ATTR_CUSTOM_PREFIX, ATTR_DATA_CARD_COMPOSITION, ATTR_DATA_CUSTOM_ATTRIBUTES, ATTR_PRODUCT_ATTR, SELECTOR_ATTRIBUTE_ROW, ATTR_DATA_ATTRIBUTE_TYPE, PRODUCT_ATTRIBUTE_PREFIX, BUILT_IN_DEFAULT_ATTRIBUTES, } from './selectors';
|
|
11
|
+
export { BLOCK_ROOT_SELECTOR, CONTAINER_SELECTOR, DESKTOP_CONTAINER_SELECTOR, MOBILE_CONTAINER_SELECTOR, MOBILE_ROW_SELECTOR, CSS_CLASS_RECO_BUTTON, CSS_CLASS_SKIP_COMPILE, RECOMMENDATION_VARIABLE_BUILTIN_ATTRIBUTES, CURRENCY_ATTR, ATTR_PRODUCT_IMAGE, ATTR_PRODUCT_NAME, ATTR_PRODUCT_PRICE, ATTR_PRODUCT_OLD_PRICE, ATTR_PRODUCT_OMNIBUS_PRICE, ATTR_PRODUCT_OMNIBUS_DISCOUNT, ATTR_PRODUCT_BUTTON, ATTR_RECOMMENDATION_TITLE, SELECTOR_TITLE_CELL, ATTR_CUSTOM_PREFIX, ATTR_DATA_CARD_COMPOSITION, ATTR_DATA_CUSTOM_ATTRIBUTES, ATTR_PRODUCT_ATTR, CSS_CLASS_ATTRIBUTE_ROW, CSS_CLASS_SPACER, SELECTOR_ATTRIBUTE_ROW, ATTR_DATA_ATTRIBUTE_TYPE, ATTR_DATA_VISIBILITY, PRODUCT_ATTRIBUTE_PREFIX, BUILT_IN_DEFAULT_ATTRIBUTES, } from './selectors';
|
|
12
12
|
export { LAYOUT_VALUES, LAYOUT_OPTIONS, DEFAULT_PRODUCTS_PER_ROW, DEFAULT_CARDS_IN_ROW, DEFAULT_MOBILE_CARDS_IN_ROW, MAX_PRODUCT_COUNT, MIN_PRODUCT_COUNT, MAX_PRODUCTS_PER_ROW, MIN_PRODUCTS_PER_ROW, MAX_MOBILE_PRODUCTS_PER_ROW, MIN_MOBILE_PRODUCTS_PER_ROW, DEFAULT_COLUMN_SPACING, DEFAULT_ROW_SPACING, DEFAULT_MOBILE_COLUMN_SPACING, DEFAULT_MOBILE_ROW_SPACING, MIN_SPACING, MAX_SPACING, SPACING_STEP, } from './layout';
|
|
13
|
-
export { DEFAULT_NODE_CONFIG, DEFAULT_CURRENCY, DEFAULT_COMPOSITION, DEFAULT_VISIBILITY, CURRENT_CONFIG_VERSION, EXCLUDED_ALGORITHM_IDS, } from './defaultConfig';
|
|
13
|
+
export { DEFAULT_NODE_CONFIG, DEFAULT_CURRENCY, DEFAULT_COMPOSITION, DEFAULT_VISIBILITY, CURRENT_CONFIG_VERSION, PRE_RRS_CONFIG_VERSION, EXCLUDED_ALGORITHM_IDS, } from './defaultConfig';
|
|
@@ -58,6 +58,10 @@ export declare const ATTR_PRODUCT_OLD_PRICE = "productOldPrice";
|
|
|
58
58
|
export declare const ATTR_PRODUCT_OMNIBUS_PRICE = "productOmnibusPrice";
|
|
59
59
|
export declare const ATTR_PRODUCT_OMNIBUS_DISCOUNT = "productOmnibusDiscount";
|
|
60
60
|
export declare const ATTR_PRODUCT_BUTTON = "productButton";
|
|
61
|
+
export declare const ATTR_RECOMMENDATION_TITLE = "recommendationTitle";
|
|
62
|
+
export declare const CSS_CLASS_TITLE_CELL = "ins-recommendation-title";
|
|
63
|
+
/** Title cell — the only `esd-block-text` living outside the product containers. */
|
|
64
|
+
export declare const SELECTOR_TITLE_CELL = ".ins-recommendation-title";
|
|
61
65
|
/**
|
|
62
66
|
* Custom attribute constants
|
|
63
67
|
* Used for dynamically added product attributes in Card Composition
|
|
@@ -68,12 +72,20 @@ export declare const ATTR_CUSTOM_PREFIX = "customAttr:";
|
|
|
68
72
|
export declare const ATTR_DATA_CUSTOM_ATTRIBUTES = "data-custom-attributes";
|
|
69
73
|
/** HTML data attribute on the block root holding the comma-joined composition order */
|
|
70
74
|
export declare const ATTR_DATA_CARD_COMPOSITION = "data-card-composition";
|
|
75
|
+
/** HTML attribute on the block root carrying its per-document unique id */
|
|
76
|
+
export declare const RECOMMENDATION_ID_ATTR = "recommendation-id";
|
|
71
77
|
/** HTML attribute on <td> elements identifying the product attribute for compiler template variable generation */
|
|
72
78
|
export declare const ATTR_PRODUCT_ATTR = "product-attr";
|
|
79
|
+
/** Class every composition attribute row carries — the visibility toggle and the compiler both key on it */
|
|
80
|
+
export declare const CSS_CLASS_ATTRIBUTE_ROW = "recommendation-attribute-row";
|
|
73
81
|
/** Row wrapper of one composition entry inside a product card */
|
|
74
82
|
export declare const SELECTOR_ATTRIBUTE_ROW = ".recommendation-attribute-row";
|
|
75
83
|
/** HTML attribute on an attribute row holding its composition key */
|
|
76
84
|
export declare const ATTR_DATA_ATTRIBUTE_TYPE = "data-attribute-type";
|
|
85
|
+
/** HTML attribute on an attribute row holding its visibility (`1` / `0`) */
|
|
86
|
+
export declare const ATTR_DATA_VISIBILITY = "data-visibility";
|
|
87
|
+
/** Class on the spacer cell of the row that trails a title */
|
|
88
|
+
export declare const CSS_CLASS_SPACER = "spacer";
|
|
77
89
|
/** Prefix `resolveProductAttrValue` puts on custom (non-default) product attributes in `product-attr` values */
|
|
78
90
|
export declare const PRODUCT_ATTRIBUTE_PREFIX = "product_attribute.";
|
|
79
91
|
/**
|
|
@@ -33,6 +33,8 @@ export declare class RecommendationCardCompositionControl extends CommonControl
|
|
|
33
33
|
private _normalizeComposition;
|
|
34
34
|
private _readCustomAttributesFromNode;
|
|
35
35
|
private _readVisibilityFromRows;
|
|
36
|
+
private _withTitlePresence;
|
|
37
|
+
private _hasTitle;
|
|
36
38
|
private _getDefaultVisibilities;
|
|
37
39
|
private _extractVisibilityFromRows;
|
|
38
40
|
private _parseVisibilityValue;
|
|
@@ -187,6 +189,15 @@ export declare class RecommendationCardCompositionControl extends CommonControl
|
|
|
187
189
|
*/
|
|
188
190
|
private _buildCompositionHtml;
|
|
189
191
|
private _applyVisibilityToBlock;
|
|
192
|
+
private _applyTitleVisibilityToBlock;
|
|
193
|
+
private _resolveTitleInjection;
|
|
194
|
+
private _readTitleHtml;
|
|
195
|
+
private _findTitleRows;
|
|
196
|
+
private _findTitleRowsByClass;
|
|
197
|
+
private _isSpacerRow;
|
|
198
|
+
private _findTitleContainerBody;
|
|
199
|
+
private _readInnerHtml;
|
|
200
|
+
private _defaultTitleParagraph;
|
|
190
201
|
/**
|
|
191
202
|
* Finds the composition array index for the Nth custom attribute (0-based).
|
|
192
203
|
* Scans left-to-right, counting only entries with the custom prefix.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export { RecommendationBlockControl, CONTROL_BLOCK_ID, AlgorithmControl, ALGORITHM_CONTROL_ID, LocaleControl, LOCALE_CONTROL_ID, CurrencyControl, CURRENCY_CONTROL_ID, ProductCountControl, PRODUCT_COUNT_CONTROL_ID, ProductLayoutControl, PRODUCT_LAYOUT_CONTROL_ID, FiltersControl, FILTERS_CONTROL_ID, ShuffleControl, SHUFFLE_CONTROL_ID, LayoutOrientationControl, LAYOUT_ORIENTATION_CONTROL_ID, PricePlacementControl, PRICE_PLACEMENT_CONTROL_ID, } from './main';
|
|
13
13
|
export * from './main/utils';
|
|
14
|
+
export { TitleControls } from './title';
|
|
14
15
|
export { NameControls } from './name';
|
|
15
16
|
export { PriceControls } from './price';
|
|
16
17
|
export { OldPriceControls } from './oldPrice';
|