@useinsider/guido 3.19.0-beta.e11b9a3 → 3.19.0-beta.e424587
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 +0 -1
- package/dist/@types/config/schemas.js +37 -39
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +82 -79
- package/dist/components/organisms/AutoSaveController.vue2.js +8 -10
- package/dist/components/organisms/header/EditorActions.vue.js +5 -5
- package/dist/components/organisms/header/EditorActions.vue2.js +46 -83
- package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
- package/dist/components/organisms/header/LeftSlot.vue2.js +12 -16
- package/dist/components/wrappers/WpDrawer.vue.js +7 -9
- package/dist/components/wrappers/WpDrawer.vue2.js +1 -1
- package/dist/composables/useAutoSave.js +44 -46
- package/dist/composables/useCortexBlueprintBridge.js +122 -54
- package/dist/composables/useEmailTemplateApplier.js +111 -50
- package/dist/composables/useHtmlCompiler.js +26 -37
- package/dist/composables/useHtmlValidator.js +0 -2
- package/dist/composables/useSave.js +45 -93
- package/dist/composables/validators/useCouponBlockValidator.js +21 -24
- package/dist/composables/validators/useUnsubscribeBlockValidator.js +27 -34
- package/dist/config/compiler/itemsCompilerRules.js +14 -5
- package/dist/config/compiler/utils/itemsCompilerUtils.js +48 -21
- package/dist/config/migrator/itemsBlockMigrator.js +245 -253
- package/dist/config/migrator/recommendationMigrator.js +28 -21
- package/dist/config/migrator/recommendationPartnerMigrator.js +36 -30
- package/dist/extensions/Blocks/Items/block.js +78 -67
- package/dist/extensions/Blocks/Items/constants/cardLayout.js +20 -0
- package/dist/extensions/Blocks/Items/constants/cardWidth.js +20 -0
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +18 -17
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +114 -105
- package/dist/extensions/Blocks/Items/enums/productEnums.js +14 -9
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +11 -9
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +1 -1
- package/dist/extensions/Blocks/Items/template.js +219 -204
- package/dist/extensions/Blocks/Recommendation/utils/partnerCustomizations.js +3 -1
- package/dist/guido.css +1 -1
- package/dist/src/@types/config/schemas.d.ts +0 -4
- package/dist/src/components/Guido.vue.d.ts +1 -17
- package/dist/src/components/organisms/header/EditorActions.vue.d.ts +1 -17
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -17
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -17
- package/dist/src/components/wrappers/WpDrawer.vue.d.ts +3 -4
- package/dist/src/composables/useAutoSave.d.ts +1 -4
- package/dist/src/composables/useConfig.d.ts +0 -2
- package/dist/src/composables/useCortexBlueprintBridge.d.ts +2 -3
- package/dist/src/composables/useEmailTemplateApplier.d.ts +18 -5
- package/dist/src/composables/useGuidoActions.d.ts +2 -0
- package/dist/src/composables/useHtmlValidator.d.ts +0 -21
- package/dist/src/composables/useSave.d.ts +1 -6
- package/dist/src/composables/validators/useCouponBlockValidator.d.ts +0 -3
- package/dist/src/composables/validators/useUnsubscribeBlockValidator.d.ts +0 -10
- package/dist/src/config/compiler/utils/itemsCompilerUtils.d.ts +5 -0
- package/dist/src/extensions/Blocks/Items/block.d.ts +5 -0
- package/dist/src/extensions/Blocks/Items/constants/cardLayout.d.ts +44 -0
- package/dist/src/extensions/Blocks/Items/constants/cardWidth.d.ts +12 -0
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +3 -0
- package/dist/src/extensions/Blocks/Items/template.d.ts +19 -0
- package/dist/src/mock/cortexChatStore.d.ts +12 -0
- package/dist/src/stores/config.d.ts +0 -32
- package/dist/src/stores/guido-email-editor.d.ts +20 -10
- package/dist/src/stores/onboarding.d.ts +4 -0
- package/dist/src/stores/recommendation.d.ts +5 -0
- package/dist/src/utils/dateUtil.d.ts +10 -0
- package/dist/src/utils/genericUtil.d.ts +3 -0
- package/dist/src/utils/liquidProtection.d.ts +3 -0
- package/dist/src/utils/templatePreparation.d.ts +0 -30
- package/dist/static/styles/components/version-history.css.js +2 -6
- package/dist/stores/config.js +67 -84
- package/dist/stores/guido-email-editor.js +3 -1
- package/dist/stores/onboarding.js +4 -0
- package/dist/utils/liquidProtection.js +5 -0
- package/dist/utils/pairProductVariables.js +71 -71
- package/dist/utils/templatePreparation.js +36 -39
- package/package.json +1 -1
- package/dist/components/organisms/validation/ValidationErrorDrawer.vue.js +0 -20
- package/dist/components/organisms/validation/ValidationErrorDrawer.vue2.js +0 -50
- package/dist/composables/useSaveValidation.js +0 -284
- package/dist/composables/useSaveValidationRollout.js +0 -20
- package/dist/enums/save-validation.js +0 -4
- package/dist/services/settingsApi.js +0 -11
- package/dist/src/@types/save-validation.d.ts +0 -19
- package/dist/src/components/organisms/validation/ValidationErrorDrawer.vue.d.ts +0 -2
- package/dist/src/composables/useSaveValidation.d.ts +0 -6
- package/dist/src/composables/useSaveValidationRollout.d.ts +0 -4
- package/dist/src/enums/save-validation.d.ts +0 -27
- package/dist/src/services/settingsApi.d.ts +0 -6
- package/dist/src/stores/save-validation.d.ts +0 -22
- package/dist/src/stores/setup-settings.d.ts +0 -4
- package/dist/stores/save-validation.js +0 -30
- package/dist/stores/setup-settings.js +0 -10
|
@@ -1,28 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { PRODUCT_WRAPPER_SELECTOR as A, hasZeroWidthDeclaration as E, isZeroWidthValue as u, withWidthPin as h, PRODUCT_TD_SELECTOR as S, withoutZeroWidth as _ } from "../../../extensions/Blocks/Items/constants/cardWidth.js";
|
|
2
|
+
import { protectLiquid as m, restoreLiquid as y } from "../../../utils/liquidProtection.js";
|
|
3
|
+
const f = "MSO_ITEMS_HIDE_START", D = "MSO_ITEMS_HIDE_END", T = "mso-hide:all; max-height:0; overflow:hidden; font-size:0; line-height:0;", M = ".ins-product-cart td.horizontal-price, .ins-product-cart td.vertical-price";
|
|
4
|
+
function g(e) {
|
|
5
|
+
if (!e.includes("vertical-price") || !e.includes("ins-product-cart"))
|
|
6
|
+
return e;
|
|
7
|
+
const n = e.replaceAll("{%", "<!--{%").replaceAll("%}", "%}-->"), r = new DOMParser().parseFromString(n, "text/html");
|
|
8
|
+
let s = !1;
|
|
9
|
+
if (r.querySelectorAll(M).forEach((t) => {
|
|
10
|
+
var d, a;
|
|
11
|
+
const o = t.getAttribute("style") || "";
|
|
10
12
|
if (!/display\s*:\s*none/i.test(o))
|
|
11
13
|
return;
|
|
12
|
-
const
|
|
13
|
-
if (((
|
|
14
|
-
const
|
|
15
|
-
|
|
14
|
+
const l = t.previousSibling;
|
|
15
|
+
if (((l == null ? void 0 : l.nodeType) !== Node.COMMENT_NODE || l.data !== f) && ((d = t.parentNode) == null || d.insertBefore(r.createComment(f), t), (a = t.parentNode) == null || a.insertBefore(r.createComment(D), t.nextSibling)), !/mso-hide/i.test(o)) {
|
|
16
|
+
const p = o.trim().endsWith(";") ? " " : "; ";
|
|
17
|
+
t.setAttribute("style", `${o}${p}${T}`);
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
}), !
|
|
19
|
-
return
|
|
20
|
-
const
|
|
21
|
-
return ((
|
|
19
|
+
s = !0;
|
|
20
|
+
}), !s)
|
|
21
|
+
return e;
|
|
22
|
+
const c = n.match(/<!DOCTYPE[^>]*>/i);
|
|
23
|
+
return ((c ? `${c[0]}
|
|
22
24
|
` : "") + r.documentElement.outerHTML).replaceAll("<!--{%", "{%").replaceAll("%}-->", "%}").replaceAll("<!--{%", "{%").replaceAll("%}-->", "%}");
|
|
23
25
|
}
|
|
26
|
+
function I(e) {
|
|
27
|
+
if (!e.includes("ins-product-wrapper") && !e.includes("ins-product-td"))
|
|
28
|
+
return e;
|
|
29
|
+
const n = new DOMParser().parseFromString(m(e), "text/html");
|
|
30
|
+
let r = !1;
|
|
31
|
+
if (n.querySelectorAll(A).forEach((i) => {
|
|
32
|
+
const t = i.getAttribute("style") || "";
|
|
33
|
+
if (!E(t) && !u(i.getAttribute("width")))
|
|
34
|
+
return;
|
|
35
|
+
const o = h(t);
|
|
36
|
+
o !== t && (i.setAttribute("style", o), r = !0), u(i.getAttribute("width")) && (i.setAttribute("width", "100%"), r = !0);
|
|
37
|
+
}), n.querySelectorAll(S).forEach((i) => {
|
|
38
|
+
const t = i.getAttribute("style") || "";
|
|
39
|
+
if (E(t)) {
|
|
40
|
+
const o = _(t);
|
|
41
|
+
o ? i.setAttribute("style", o) : i.removeAttribute("style"), r = !0;
|
|
42
|
+
}
|
|
43
|
+
u(i.getAttribute("width")) && (i.removeAttribute("width"), r = !0);
|
|
44
|
+
}), !r)
|
|
45
|
+
return e;
|
|
46
|
+
const s = e.match(/<!DOCTYPE[^>]*>/i), c = s ? `${s[0]}
|
|
47
|
+
` : "";
|
|
48
|
+
return y(c + n.documentElement.outerHTML);
|
|
49
|
+
}
|
|
24
50
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
51
|
+
D as MSO_ITEMS_HIDE_END,
|
|
52
|
+
f as MSO_ITEMS_HIDE_START,
|
|
53
|
+
I as normalizeItemsBlockWidths,
|
|
54
|
+
g as wrapHiddenPriceTdsForOutlook
|
|
28
55
|
};
|