@useinsider/guido 1.0.2-beta.14a3cf5 → 1.0.2-beta.198f9ce
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 +1 -31
- package/dist/@types/generic.d.ts +0 -4
- package/dist/components/Guido.vue.d.ts +1 -3
- package/dist/components/Guido.vue.js +5 -5
- package/dist/components/Guido.vue2.js +62 -73
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
- package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -15
- package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -3
- package/dist/components/organisms/header/RightSlot.vue.js +3 -5
- package/dist/components/organisms/header/RightSlot.vue2.js +27 -26
- package/dist/components/organisms/header/ViewOptions.vue.js +5 -5
- package/dist/components/organisms/header/ViewOptions.vue2.js +5 -5
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +5 -5
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +11 -11
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +5 -5
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +8 -8
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +28 -40
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +6 -6
- package/dist/composables/useCustomInterfaceAppearance.js +18 -22
- package/dist/composables/useHtmlCompiler.js +9 -17
- package/dist/composables/useStripo.js +25 -27
- package/dist/composables/useToaster.js +17 -17
- package/dist/config/compiler/outlookCompilerRules.d.ts +0 -2
- package/dist/enums/defaults.d.ts +1 -5
- package/dist/enums/defaults.js +10 -14
- package/dist/guido.css +1 -1
- package/dist/static/styles/components/alert-message.css.js +2 -32
- package/dist/static/styles/components/button.css.js +2 -32
- package/dist/static/styles/components/wide-panel.css.js +1 -5
- package/dist/static/styles/customEditorStyle.css.js +0 -6
- package/dist/static/styles/variables.css.js +0 -10
- package/dist/stores/dynamic-content.d.ts +0 -12
- package/dist/stores/dynamic-content.js +6 -7
- package/dist/stores/onboarding.d.ts +8 -72
- package/dist/utils/genericUtil.js +6 -9
- package/dist/utils/templatePreparation.js +14 -21
- package/package.json +1 -1
- package/dist/composables/useHtmlValidator.d.ts +0 -3
- package/dist/composables/useHtmlValidator.js +0 -120
- package/dist/composables/useRecommendation.d.ts +0 -19
- package/dist/composables/useRecommendation.js +0 -27
- package/dist/composables/useSave.d.ts +0 -4
- package/dist/composables/useSave.js +0 -15
- package/dist/config/compiler/outlookCompilerRules.js +0 -36
- package/dist/config/compiler/recommendationCompilerRules.d.ts +0 -2
- package/dist/config/compiler/recommendationCompilerRules.js +0 -83
- package/dist/config/compiler/socialCompilerRules.d.ts +0 -2
- package/dist/config/compiler/socialCompilerRules.js +0 -21
- package/dist/config/compiler/unsubscribeCompilerRules.d.ts +0 -2
- package/dist/config/compiler/unsubscribeCompilerRules.js +0 -64
- package/dist/enums/html-validator.d.ts +0 -6
- package/dist/enums/html-validator.js +0 -7
- package/dist/enums/recommendation.d.ts +0 -54
- package/dist/enums/recommendation.js +0 -56
- package/dist/enums/unsubscribe.d.ts +0 -15
- package/dist/enums/unsubscribe.js +0 -17
- package/dist/mock/api/validator.d.ts +0 -2
- package/dist/static/styles/components/notification.css.js +0 -55
- package/dist/static/styles/components/popup.css.js +0 -68
- package/dist/stores/recommendation.d.ts +0 -10
- package/dist/stores/recommendation.js +0 -9
- package/dist/stores/unsubscribe.d.ts +0 -8
- package/dist/stores/unsubscribe.js +0 -9
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { useRecommendation as u } from "../../composables/useRecommendation.js";
|
|
2
|
-
import { DUMMY_IMAGE_MAPPINGS as P, REGEX as i, CSS as e, CONDITIONS as E, ATTRIBUTES as r, HTML as h } from "../../enums/recommendation.js";
|
|
3
|
-
const H = [
|
|
4
|
-
{
|
|
5
|
-
id: "replace-images-with-variable-names",
|
|
6
|
-
description: "Replacing dummy images with variable names in recommendation module",
|
|
7
|
-
type: "custom",
|
|
8
|
-
processor: (a) => {
|
|
9
|
-
let t = a;
|
|
10
|
-
return Object.entries(P).forEach(([, n]) => {
|
|
11
|
-
Object.entries(n).forEach(([s, o]) => {
|
|
12
|
-
t = t.replaceAll(o, `{{${s}}}`);
|
|
13
|
-
});
|
|
14
|
-
}), t;
|
|
15
|
-
},
|
|
16
|
-
priority: 50
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
id: "replace-recommendation-button-span-css",
|
|
20
|
-
description: "Replacing recommendation button span css",
|
|
21
|
-
type: "replace",
|
|
22
|
-
search: ".ext-product-button span,",
|
|
23
|
-
replacement: ".ext-product-button,",
|
|
24
|
-
replaceAll: !0,
|
|
25
|
-
priority: 51
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: "add-recommendation-unresponsive-css",
|
|
29
|
-
description: "Adding recommendation unresponsive css",
|
|
30
|
-
type: "custom",
|
|
31
|
-
processor: (a) => {
|
|
32
|
-
const { getRecommendationCampaignData: t } = u();
|
|
33
|
-
let n = a;
|
|
34
|
-
const s = n.match(i.ID);
|
|
35
|
-
if (s) {
|
|
36
|
-
const o = [];
|
|
37
|
-
if (s.forEach((c) => {
|
|
38
|
-
const m = c.slice(35, c.length - 1).trim();
|
|
39
|
-
t(m);
|
|
40
|
-
}), o.length) {
|
|
41
|
-
const c = `width:${Math.min(...o)}px!important;`;
|
|
42
|
-
n = n.replace(e.REGULAR_NAME_HEIGHT, `${e.TRIMMED_NAME_HEIGHT} ${c} ${e.ELLIPSIS}`).replace(e.REGULAR_NAME_CONTAINER_HEIGHT, e.TRIMMED_NAME_CONTAINER_CSS).replace(e.RESPONSIVE_NAME_SIZE, `${e.RESPONSIVE_NAME_HEIGHT} ${c} ${e.ELLIPSIS}`).replace(e.RESPONSIVE_NAME_CONTAINER_HEIGHT, e.TRIMMED_RESPONSIVE_NAME_CONTAINER_CSS);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return n;
|
|
46
|
-
},
|
|
47
|
-
priority: 52
|
|
48
|
-
},
|
|
49
|
-
// TODO: prepareRecommendations
|
|
50
|
-
// TODO: addRecommendationCustomFields
|
|
51
|
-
{
|
|
52
|
-
id: "add-discount-conditions",
|
|
53
|
-
description: "Adding discount conditions to the recommendation block",
|
|
54
|
-
type: "custom",
|
|
55
|
-
processor: (a) => {
|
|
56
|
-
let t = a;
|
|
57
|
-
const n = t.match(i.ATTRIBUTE_PARAGRAPH), { getRecommendationCampaignData: s } = u();
|
|
58
|
-
return n !== null && n.forEach((o) => {
|
|
59
|
-
const c = o.match(i.CUSTOM_FIELD);
|
|
60
|
-
if (!c)
|
|
61
|
-
return;
|
|
62
|
-
const [m] = c, p = m.match(i.CUSTOM_FIELD_INDEXES_PART), A = m.match(i.CUSTOM_FIELD_NAME_PART), _ = o.match(i.ATTRIBUTE_PARAGRAPH_START_TAG);
|
|
63
|
-
if (!p || !A || !_)
|
|
64
|
-
return;
|
|
65
|
-
const [l] = p, [T] = A, [d] = _, N = T.substring(1, T.length - 2), R = d.match(i.COMPOSITION) !== null;
|
|
66
|
-
let O = m;
|
|
67
|
-
if (R) {
|
|
68
|
-
const M = l.substring(2, l.length - 3);
|
|
69
|
-
s(M);
|
|
70
|
-
}
|
|
71
|
-
const I = l.substring(2);
|
|
72
|
-
let S = "";
|
|
73
|
-
N in E.IF && (S = E.IF[N].replaceAll(`{${r.DISCOUNT}}`, `${I}${r.DISCOUNT}`).replaceAll(`{${r.OMNIBUS_DISCOUNT}}`, `${I}${r.OMNIBUS_DISCOUNT}`).replaceAll(`{${r.OMNIBUS_PRICE}}`, `${I}${r.OMNIBUS_PRICE}`));
|
|
74
|
-
const $ = `${d}${O}${h.PARAGRAPH_END_TAG}`, C = `${S}${R ? $ : o}${E.ELSE}${d}${h.PARAGRAPH_END_TAG}${E.END_IF}`;
|
|
75
|
-
t = t.replace(o, C);
|
|
76
|
-
}), t;
|
|
77
|
-
},
|
|
78
|
-
priority: 53
|
|
79
|
-
}
|
|
80
|
-
];
|
|
81
|
-
export {
|
|
82
|
-
H as recommendationCompilerRules
|
|
83
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const a = [
|
|
2
|
-
{
|
|
3
|
-
id: "fix-custom-social-block",
|
|
4
|
-
description: "Fixing custom social block.",
|
|
5
|
-
type: "custom",
|
|
6
|
-
processor: (e) => {
|
|
7
|
-
let c = e;
|
|
8
|
-
const s = c.match(/<table[^>]*?class="[^>]*?es-social[^>]*?"[\S\s]*?<\/table>/gm);
|
|
9
|
-
return s && s.forEach((o) => {
|
|
10
|
-
if (o.match(/<img[^>]*?height="[0-9]+?"/gm)) {
|
|
11
|
-
const i = o.replace(/<img[^>]*?height="[0-9]+?"/gm, (t) => t.replace("height", "width"));
|
|
12
|
-
c = c.replace(o, i);
|
|
13
|
-
}
|
|
14
|
-
}), c;
|
|
15
|
-
},
|
|
16
|
-
priority: 80
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
export {
|
|
20
|
-
a as socialCompilerRules
|
|
21
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { usePartner as m } from "../../composables/usePartner.js";
|
|
2
|
-
import { LINK_REGEXES as c, LINK_TYPES as p, URLS as E } from "../../enums/unsubscribe.js";
|
|
3
|
-
import { useUnsubscribeStore as b } from "../../stores/unsubscribe.js";
|
|
4
|
-
const S = [
|
|
5
|
-
{
|
|
6
|
-
id: "add-unsubscribe-link-values",
|
|
7
|
-
description: "Adding unsubscribe link values",
|
|
8
|
-
type: "custom",
|
|
9
|
-
processor: (n) => {
|
|
10
|
-
var a, u;
|
|
11
|
-
const { getPartnerName: i } = m(), t = b();
|
|
12
|
-
let e = n;
|
|
13
|
-
const o = `/${i()}/email/0?user={{iid}}`, r = (a = t.selectedUnsubscribePages) == null ? void 0 : a.find((l) => l.type === p.UNSUBSCRIBE_LINK_TYPE), s = (u = t.selectedUnsubscribePages) == null ? void 0 : u.find((l) => l.type === p.PREFERENCES_LINK_TYPE);
|
|
14
|
-
return r && (e = e.replace(
|
|
15
|
-
c.GLOBAL_UNSUBSCRIBE_LINK_REGEX,
|
|
16
|
-
E.UNSUBSCRIBE_URL + o
|
|
17
|
-
)), s && (e = e.replace(
|
|
18
|
-
c.PREFERENCES_UNSUBSCRIBE_LINK_REGEX,
|
|
19
|
-
E.PREFERENCES_URL + o
|
|
20
|
-
)), e.replace(c.UNSUBSCRIBE_LINK_REGEX, "");
|
|
21
|
-
},
|
|
22
|
-
priority: 60
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
id: "remove-data-ogsb-button-styles",
|
|
26
|
-
description: "Removing styles like [data-ogsb] .es-button.es-button-123 { background: red; }",
|
|
27
|
-
type: "regex",
|
|
28
|
-
pattern: c.DATA_OGSB_BUTTON_CSS_REGEX,
|
|
29
|
-
replacement: "",
|
|
30
|
-
flags: "g",
|
|
31
|
-
priority: 61
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "format-comment-braces",
|
|
35
|
-
description: "Adding spaces around comment braces for proper formatting",
|
|
36
|
-
type: "custom",
|
|
37
|
-
processor: (n) => n.replace(/{#/g, "{ #").replace(/#}/g, "# }"),
|
|
38
|
-
priority: 62
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
id: "add-universal-link-flags",
|
|
42
|
-
description: "Adding universal link flags",
|
|
43
|
-
type: "custom",
|
|
44
|
-
processor: (n) => {
|
|
45
|
-
let i = n;
|
|
46
|
-
const t = i.match(/<a[^>]+>(.*?)<\/a>/gm);
|
|
47
|
-
return t && t.forEach((e) => {
|
|
48
|
-
if (e.includes("insEmail=1"))
|
|
49
|
-
return;
|
|
50
|
-
if (e.match(/<a\s+(?:[^>]*?\s+)?href=(["'`”])(.*?)\1\s+(?:[^>]*?\s+)?universal=(["'`”])true\3/gm)) {
|
|
51
|
-
const o = e.replace(/href=(["'`”])(.*?)\1/gm, (r) => {
|
|
52
|
-
const s = r.slice(6, r.length - 1).trim();
|
|
53
|
-
return r.includes("?") || r.includes("#") ? s.slice(-1) === "&" ? r.replace(s, `${s}insEmail=1`) : r.replace(s, `${s}&insEmail=1`) : r.replace(s, `${s}?insEmail=1`);
|
|
54
|
-
});
|
|
55
|
-
i = i.replace(e, o);
|
|
56
|
-
}
|
|
57
|
-
}), i;
|
|
58
|
-
},
|
|
59
|
-
priority: 63
|
|
60
|
-
}
|
|
61
|
-
];
|
|
62
|
-
export {
|
|
63
|
-
S as unsubscribeCompilerRules
|
|
64
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const CanNotMakeAnyChangesForRunningKey = "newsletter.already-in-progress";
|
|
2
|
-
export declare const CanNotMakeAnyChangesKey = "newsletter.can-not-make-any-changes";
|
|
3
|
-
export declare const CampaignCouldNotBeSavedKey = "newsletter.campaign-could-not-be-saved";
|
|
4
|
-
export declare const DISPLAY_CONDITIONS_REGEX: RegExp;
|
|
5
|
-
export declare const DISPLAY_CONDITIONS_EXCEPTIONS_REGEX: RegExp;
|
|
6
|
-
export declare const REMOVE_CONDITIONS_REGEX: RegExp;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const e = "newsletter.already-in-progress", n = "newsletter.campaign-could-not-be-saved", o = / (==|<=|>=|!=|>|<|in) | (if|elif|endif|else|and|or) |("[\S ]+")|('[\S ]+')|([^”\s\n]+)|(({%)|( %}))/gm, a = /{%( )*now( )(".*")( )*%}/gm;
|
|
2
|
-
export {
|
|
3
|
-
n as CampaignCouldNotBeSavedKey,
|
|
4
|
-
e as CanNotMakeAnyChangesForRunningKey,
|
|
5
|
-
a as DISPLAY_CONDITIONS_EXCEPTIONS_REGEX,
|
|
6
|
-
o as DISPLAY_CONDITIONS_REGEX
|
|
7
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
export declare const DefaultPadding = 20;
|
|
2
|
-
export declare const MinDeviceViewport = 320;
|
|
3
|
-
export declare const VerticalOrientation = "vertical";
|
|
4
|
-
export declare const DUMMY_IMAGE_MAPPINGS: {
|
|
5
|
-
CART_ABANDONMENT: {
|
|
6
|
-
ins_apr_img_1: string;
|
|
7
|
-
ins_apr_img_2: string;
|
|
8
|
-
ins_apr_img_3: string;
|
|
9
|
-
ins_apr_img_4: string;
|
|
10
|
-
};
|
|
11
|
-
BROWSE_ABANDONMENT: {
|
|
12
|
-
browsed_item_img_1: string;
|
|
13
|
-
browsed_item_img_2: string;
|
|
14
|
-
browsed_item_img_3: string;
|
|
15
|
-
browsed_item_img_4: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export declare const ATTRIBUTES: {
|
|
19
|
-
DISCOUNT: string;
|
|
20
|
-
OMNIBUS_DISCOUNT: string;
|
|
21
|
-
OMNIBUS_PRICE: string;
|
|
22
|
-
};
|
|
23
|
-
export declare const CONDITIONS: {
|
|
24
|
-
IF: {
|
|
25
|
-
discount: string;
|
|
26
|
-
omnibus_discount: string;
|
|
27
|
-
omnibus_price: string;
|
|
28
|
-
};
|
|
29
|
-
ELSE: string;
|
|
30
|
-
END_IF: string;
|
|
31
|
-
};
|
|
32
|
-
export declare const REGEX: {
|
|
33
|
-
ID: RegExp;
|
|
34
|
-
ATTRIBUTE_PARAGRAPH: RegExp;
|
|
35
|
-
ATTRIBUTE_PARAGRAPH_START_TAG: RegExp;
|
|
36
|
-
COMPOSITION: RegExp;
|
|
37
|
-
CUSTOM_FIELD: RegExp;
|
|
38
|
-
CUSTOM_FIELD_INDEXES_PART: RegExp;
|
|
39
|
-
CUSTOM_FIELD_NAME_PART: RegExp;
|
|
40
|
-
};
|
|
41
|
-
export declare const HTML: {
|
|
42
|
-
PARAGRAPH_END_TAG: string;
|
|
43
|
-
};
|
|
44
|
-
export declare const CSS: {
|
|
45
|
-
REGULAR_NAME_HEIGHT: string;
|
|
46
|
-
TRIMMED_NAME_HEIGHT: string;
|
|
47
|
-
ELLIPSIS: string;
|
|
48
|
-
REGULAR_NAME_CONTAINER_HEIGHT: string;
|
|
49
|
-
TRIMMED_NAME_CONTAINER_CSS: string;
|
|
50
|
-
RESPONSIVE_NAME_SIZE: string;
|
|
51
|
-
RESPONSIVE_NAME_HEIGHT: string;
|
|
52
|
-
RESPONSIVE_NAME_CONTAINER_HEIGHT: string;
|
|
53
|
-
TRIMMED_RESPONSIVE_NAME_CONTAINER_CSS: string;
|
|
54
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
const s = 20, e = 320, t = {
|
|
2
|
-
CART_ABANDONMENT: {
|
|
3
|
-
ins_apr_img_1: "https://s3-eu-west-1.amazonaws.com/web-image.useinsider.com/email-assets/dummyImages/ins_apr_img_1.png",
|
|
4
|
-
ins_apr_img_2: "https://s3-eu-west-1.amazonaws.com/web-image.useinsider.com/email-assets/dummyImages/ins_apr_img_2.png",
|
|
5
|
-
ins_apr_img_3: "https://s3-eu-west-1.amazonaws.com/web-image.useinsider.com/email-assets/dummyImages/ins_apr_img_3.png",
|
|
6
|
-
ins_apr_img_4: "https://s3-eu-west-1.amazonaws.com/web-image.useinsider.com/email-assets/dummyImages/ins_apr_img_4.png"
|
|
7
|
-
},
|
|
8
|
-
BROWSE_ABANDONMENT: {
|
|
9
|
-
browsed_item_img_1: "https://s3-eu-west-1.amazonaws.com/web-image.useinsider.com/email-assets/dummyImages/browsed_item_img_1.jpg",
|
|
10
|
-
browsed_item_img_2: "https://s3-eu-west-1.amazonaws.com/web-image.useinsider.com/email-assets/dummyImages/browsed_item_img_2.jpg",
|
|
11
|
-
browsed_item_img_3: "https://s3-eu-west-1.amazonaws.com/web-image.useinsider.com/email-assets/dummyImages/browsed_item_img_3.jpg",
|
|
12
|
-
browsed_item_img_4: "https://s3-eu-west-1.amazonaws.com/web-image.useinsider.com/email-assets/dummyImages/browsed_item_img_4.jpg"
|
|
13
|
-
}
|
|
14
|
-
}, i = {
|
|
15
|
-
DISCOUNT: "discount",
|
|
16
|
-
OMNIBUS_DISCOUNT: "omnibus_discount",
|
|
17
|
-
OMNIBUS_PRICE: "omnibus_price"
|
|
18
|
-
}, m = {
|
|
19
|
-
IF: {
|
|
20
|
-
discount: `{% if {${i.DISCOUNT}} != "0%" and {${i.DISCOUNT}} != "" %}`,
|
|
21
|
-
omnibus_discount: `{% if {${i.DISCOUNT}} != "0%" and {${i.DISCOUNT}} != "" and {${i.OMNIBUS_DISCOUNT}} != "0%" and {${i.OMNIBUS_DISCOUNT}} != "" %}`,
|
|
22
|
-
omnibus_price: `{% if {${i.DISCOUNT}} != "0%" and {${i.DISCOUNT}} != "" and {${i.OMNIBUS_PRICE}} != "" %}`
|
|
23
|
-
},
|
|
24
|
-
ELSE: "{% else %}",
|
|
25
|
-
END_IF: "{% endif %}"
|
|
26
|
-
}, _ = {
|
|
27
|
-
ID: /ins-recommendation-v3-campaign-id="(.*?)"/gi,
|
|
28
|
-
ATTRIBUTE_PARAGRAPH: /<p[^>]*?product-attr="(discount|omnibus_discount|omnibus_price)">[\S\s]*?<\/p>/gm,
|
|
29
|
-
ATTRIBUTE_PARAGRAPH_START_TAG: /<p[^>]*?product-attr="(discount|omnibus_discount|omnibus_price)">/gm,
|
|
30
|
-
COMPOSITION: /composition="true"/gm,
|
|
31
|
-
CUSTOM_FIELD: /{{[0-9]+_[0-8]_(discount|omnibus_discount|omnibus_price)}}/gm,
|
|
32
|
-
CUSTOM_FIELD_INDEXES_PART: /{{[0-9]+_[0-8]_/gm,
|
|
33
|
-
CUSTOM_FIELD_NAME_PART: /_(discount|omnibus_discount|omnibus_price)}}/gm
|
|
34
|
-
}, a = {
|
|
35
|
-
PARAGRAPH_END_TAG: "</p>"
|
|
36
|
-
}, n = {
|
|
37
|
-
REGULAR_NAME_HEIGHT: ".ext-product-name.ins-vertical p { height:90px!important;",
|
|
38
|
-
TRIMMED_NAME_HEIGHT: ".ext-product-name.ins-vertical p { height:18px!important;",
|
|
39
|
-
ELLIPSIS: "text-overflow:ellipsis!important; white-space:nowrap!important;",
|
|
40
|
-
REGULAR_NAME_CONTAINER_HEIGHT: ".ext-product-name.ins-vertical { height:100px!important",
|
|
41
|
-
TRIMMED_NAME_CONTAINER_CSS: ".ext-product-name.ins-vertical { height:38px!important; padding:0px!important",
|
|
42
|
-
RESPONSIVE_NAME_SIZE: ".ext-product-name p { height:unset!important; width:100%!important;",
|
|
43
|
-
RESPONSIVE_NAME_HEIGHT: ".ext-product-name p { height:24px!important;",
|
|
44
|
-
RESPONSIVE_NAME_CONTAINER_HEIGHT: ".ext-product-name { height:unset!important",
|
|
45
|
-
TRIMMED_RESPONSIVE_NAME_CONTAINER_CSS: ".ext-product-name { height:44px!important; padding:0px!important"
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
i as ATTRIBUTES,
|
|
49
|
-
m as CONDITIONS,
|
|
50
|
-
n as CSS,
|
|
51
|
-
t as DUMMY_IMAGE_MAPPINGS,
|
|
52
|
-
s as DefaultPadding,
|
|
53
|
-
a as HTML,
|
|
54
|
-
e as MinDeviceViewport,
|
|
55
|
-
_ as REGEX
|
|
56
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const LINK_TYPES: {
|
|
2
|
-
UNSUBSCRIBE_LINK_TYPE: number;
|
|
3
|
-
PREFERENCES_LINK_TYPE: number;
|
|
4
|
-
};
|
|
5
|
-
export declare const LINK_REGEXES: {
|
|
6
|
-
UNSUBSCRIBE_LINK_REGEX: RegExp;
|
|
7
|
-
DATA_OGSB_BUTTON_CSS_REGEX: string;
|
|
8
|
-
GLOBAL_UNSUBSCRIBE_LINK_REGEX: RegExp;
|
|
9
|
-
PREFERENCES_UNSUBSCRIBE_LINK_REGEX: RegExp;
|
|
10
|
-
};
|
|
11
|
-
export declare const URLS: {
|
|
12
|
-
UNSUBSCRIBE_URL: string;
|
|
13
|
-
PREFERENCES_URL: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const INSIDER_ID = "iid";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const E = {
|
|
2
|
-
UNSUBSCRIBE_LINK_TYPE: 1,
|
|
3
|
-
PREFERENCES_LINK_TYPE: 3
|
|
4
|
-
}, s = {
|
|
5
|
-
UNSUBSCRIBE_LINK_REGEX: /{{ins-unsubscribe-link}}/g,
|
|
6
|
-
DATA_OGSB_BUTTON_CSS_REGEX: "\\[data-ogsb\\]\\s*\\.es-button\\.es-button-[0-9]+\\s*\\{(?:[^\\}]*)\\}",
|
|
7
|
-
GLOBAL_UNSUBSCRIBE_LINK_REGEX: /{{ins-global-unsubscribe-link}}/g,
|
|
8
|
-
PREFERENCES_UNSUBSCRIBE_LINK_REGEX: /{{ins-preferences-unsubscribe-link}}/g
|
|
9
|
-
}, _ = {
|
|
10
|
-
UNSUBSCRIBE_URL: "https://mail.useinsider.com/user/v1/unsub",
|
|
11
|
-
PREFERENCES_URL: "https://mail.useinsider.com/user/v1/prefs"
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
s as LINK_REGEXES,
|
|
15
|
-
E as LINK_TYPES,
|
|
16
|
-
_ as URLS
|
|
17
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
const n = `ue-notifications-container {
|
|
2
|
-
left: 96px;
|
|
3
|
-
margin: 0;
|
|
4
|
-
bottom: 32px;
|
|
5
|
-
top: unset;
|
|
6
|
-
width: unset;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
ue-notifications-container ue-message + ue-message {
|
|
10
|
-
margin-bottom: 24px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
ue-notifications-container .alert-message-wrapper {
|
|
14
|
-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
|
|
15
|
-
border: none;
|
|
16
|
-
padding: 16px 24px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
ue-notifications-container .alert-message-wrapper .alert-message-main .alert-message-content {
|
|
20
|
-
width: calc(100% - 64px);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
ue-notifications-container .alert-message-wrapper .alert-message-main .alert-message-text {
|
|
24
|
-
font-size: 15px;
|
|
25
|
-
font-weight: 600;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
ue-notifications-container .alert-message-text,
|
|
29
|
-
ue-notifications-container .alert-message-wrapper ue-icon-component.icon,
|
|
30
|
-
ue-notifications-container .alert-message-wrapper ue-icon-component.icon-button {
|
|
31
|
-
color: var(--guido-color-white);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
ue-notifications-container ue-message ue-button.close {
|
|
35
|
-
margin: 0 0 0 16px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
ue-notifications-container .alert-message-wrapper.success {
|
|
39
|
-
background: var(--guido-color-background-toaster-success);
|
|
40
|
-
color: inherit;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
ue-notifications-container .alert-message-wrapper.error {
|
|
44
|
-
background: var(--guido-color-background-toaster-error);
|
|
45
|
-
color: inherit;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
ue-notifications-container .alert-message-wrapper.warn {
|
|
49
|
-
background: var(--guido-color-background-toaster-warn);
|
|
50
|
-
color: inherit;
|
|
51
|
-
}
|
|
52
|
-
`;
|
|
53
|
-
export {
|
|
54
|
-
n as default
|
|
55
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
const n = `ue-popup {
|
|
2
|
-
-webkit-backdrop-filter: unset;
|
|
3
|
-
backdrop-filter: unset;
|
|
4
|
-
background-color: rgba(44, 53, 70, 0.5);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
ue-popup .popup-wrapper {
|
|
8
|
-
max-width: 400px;
|
|
9
|
-
border: 1px solid var(--guido-color-neutral-200);
|
|
10
|
-
box-shadow: none;
|
|
11
|
-
background: var(--guido-color-white);
|
|
12
|
-
font-size: 15px;
|
|
13
|
-
line-height: 24px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
ue-popup .popup-title {
|
|
17
|
-
padding: 32px 56px 0 32px;
|
|
18
|
-
line-height: 24px;
|
|
19
|
-
font-size: 20px;
|
|
20
|
-
font-weight: 400;
|
|
21
|
-
border-bottom: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
ue-popup .confirmation .confirmation-wrapper {
|
|
25
|
-
padding: 32px;
|
|
26
|
-
gap: 16px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
ue-popup .confirmation .confirmation-actions {
|
|
30
|
-
flex-direction: row-reverse;
|
|
31
|
-
justify-content: space-between;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
ue-popup .danger > .button {
|
|
35
|
-
font-size: 15px;
|
|
36
|
-
padding: 8px 16px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
ue-popup .e2e-cancel {
|
|
40
|
-
margin-left: unset;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
ue-popup .e2e-cancel .button {
|
|
44
|
-
background-color: transparent;
|
|
45
|
-
border: none;
|
|
46
|
-
padding: 8px 0;
|
|
47
|
-
font-size: 15px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
ue-popup .e2e-cancel .button:hover:not(:disabled,.disabled) {
|
|
51
|
-
text-decoration: underline;
|
|
52
|
-
background-color: transparent;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
ue-popup .popup-close {
|
|
56
|
-
top: 32px;
|
|
57
|
-
right: 32px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
ue-popup .popup-close .button {
|
|
61
|
-
padding: 0;
|
|
62
|
-
min-width: unset;
|
|
63
|
-
min-height: unset;
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
export {
|
|
67
|
-
n as default
|
|
68
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type RecommendationConfig = {
|
|
2
|
-
filters: {
|
|
3
|
-
value: string;
|
|
4
|
-
}[];
|
|
5
|
-
};
|
|
6
|
-
interface StoreState {
|
|
7
|
-
recommendationConfigs: RecommendationConfig[];
|
|
8
|
-
}
|
|
9
|
-
export declare const useRecommendationStore: import("pinia").StoreDefinition<"recommendation", StoreState, {}, {}>;
|
|
10
|
-
export {};
|