@useinsider/guido 3.4.1-beta.00eb92e → 3.4.1-beta.2120861
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/composables/useCustomInterfaceAppearance.js +16 -18
- package/dist/composables/useStripo.js +49 -47
- package/dist/composables/useStripoNotifications.js +28 -0
- package/dist/config/migrator/checkboxMigrator.js +69 -20
- package/dist/config/migrator/radioButtonMigrator.js +91 -36
- package/dist/enums/toaster.js +2 -2
- package/dist/services/templateLibraryApi.js +22 -21
- package/dist/src/composables/useStripoNotifications.d.ts +4 -0
- package/dist/src/enums/toaster.d.ts +2 -1
- package/dist/src/stores/toaster.d.ts +2 -1
- package/dist/static/styles/components/wide-panel.css.js +0 -5
- package/dist/stores/toaster.js +10 -9
- package/package.json +2 -2
- package/dist/config/migrator/textBlockMigration.js +0 -65
- package/dist/src/config/migrator/textBlockMigration.d.ts +0 -24
- package/dist/static/styles/components/notification.css.js +0 -74
|
@@ -4,21 +4,20 @@ import e from "../static/styles/components/amp-block.css.js";
|
|
|
4
4
|
import i from "../static/styles/components/base-input.css.js";
|
|
5
5
|
import p from "../static/styles/components/button-group.css.js";
|
|
6
6
|
import n from "../static/styles/components/button.css.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import s from "../static/styles/components/combobox.css.js";
|
|
8
|
+
import C from "../static/styles/components/counter.css.js";
|
|
9
9
|
import f from "../static/styles/components/dropdown-menu.css.js";
|
|
10
10
|
import a from "../static/styles/components/loader.css.js";
|
|
11
11
|
import u from "../static/styles/components/narrow-panel.css.js";
|
|
12
|
-
import c from "../static/styles/components/
|
|
13
|
-
import d from "../static/styles/components/
|
|
14
|
-
import l from "../static/styles/components/
|
|
15
|
-
import h from "../static/styles/components/
|
|
16
|
-
import w from "../static/styles/components/
|
|
17
|
-
import y from "../static/styles/components/
|
|
18
|
-
import B from "../static/styles/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
b,
|
|
12
|
+
import c from "../static/styles/components/popup.css.js";
|
|
13
|
+
import d from "../static/styles/components/switcher.css.js";
|
|
14
|
+
import l from "../static/styles/components/tabs.css.js";
|
|
15
|
+
import h from "../static/styles/components/tools.css.js";
|
|
16
|
+
import w from "../static/styles/components/version-history.css.js";
|
|
17
|
+
import y from "../static/styles/components/wide-panel.css.js";
|
|
18
|
+
import B from "../static/styles/variables.css.js";
|
|
19
|
+
const b = [
|
|
20
|
+
B,
|
|
22
21
|
// Must be on top
|
|
23
22
|
S,
|
|
24
23
|
// Must be on top
|
|
@@ -27,8 +26,8 @@ const A = [
|
|
|
27
26
|
i,
|
|
28
27
|
p,
|
|
29
28
|
n,
|
|
30
|
-
C,
|
|
31
29
|
s,
|
|
30
|
+
C,
|
|
32
31
|
f,
|
|
33
32
|
a,
|
|
34
33
|
u,
|
|
@@ -37,13 +36,12 @@ const A = [
|
|
|
37
36
|
l,
|
|
38
37
|
h,
|
|
39
38
|
w,
|
|
40
|
-
y
|
|
41
|
-
B
|
|
39
|
+
y
|
|
42
40
|
].join(`
|
|
43
41
|
|
|
44
|
-
`),
|
|
42
|
+
`), v = () => ({ importCss: () => {
|
|
45
43
|
const o = new CSSStyleSheet();
|
|
46
|
-
o.replaceSync(
|
|
44
|
+
o.replaceSync(b);
|
|
47
45
|
const r = document.querySelector("ui-editor");
|
|
48
46
|
if (!r)
|
|
49
47
|
return;
|
|
@@ -51,5 +49,5 @@ const A = [
|
|
|
51
49
|
t && (t.adoptedStyleSheets = [o]);
|
|
52
50
|
} });
|
|
53
51
|
export {
|
|
54
|
-
|
|
52
|
+
v as useCustomInterfaceAppearance
|
|
55
53
|
};
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useBlocksConfig as
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import { useCustomInterfaceAppearance as
|
|
5
|
-
import { useFullStoryBridge as
|
|
6
|
-
import { useStripoEventHandler as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
1
|
+
import { useActionsApi as U } from "./useActionsApi.js";
|
|
2
|
+
import { useBlocksConfig as R } from "./useBlocksConfig.js";
|
|
3
|
+
import { useConfig as q } from "./useConfig.js";
|
|
4
|
+
import { useCustomInterfaceAppearance as x } from "./useCustomInterfaceAppearance.js";
|
|
5
|
+
import { useFullStoryBridge as H } from "./useFullStoryBridge.js";
|
|
6
|
+
import { useStripoEventHandler as N } from "./useStripoEventHandler.js";
|
|
7
|
+
import { useStripoNotifications as O } from "./useStripoNotifications.js";
|
|
8
|
+
import { useToaster as j } from "./useToaster.js";
|
|
9
|
+
import { localePatch as L } from "../config/i18n/index.js";
|
|
10
|
+
import { useStripoApi as $ } from "../services/stripoApi.js";
|
|
11
|
+
import z from "../static/styles/customEditorStyle.css.js";
|
|
11
12
|
import { useEditorStore as E } from "../stores/editor.js";
|
|
12
|
-
import { dynamicContentToMergeTags as
|
|
13
|
-
import
|
|
14
|
-
const
|
|
15
|
-
const { features:
|
|
13
|
+
import { dynamicContentToMergeTags as G } from "../utils/genericUtil.js";
|
|
14
|
+
import J from "../package.json.js";
|
|
15
|
+
const ct = (C, c) => {
|
|
16
|
+
const { features: l, template: h, isFeatureEnabled: u } = q(), { handleError: m } = j(), { getToken: w, getCustomFonts: b, getSyncModulesStatus: k } = $(), { handleEvent: B } = N(), { getStripoNotifications: T } = O(), { getStripoBlocksConfig: V } = R(), _ = async (i, s = [], r = !1) => {
|
|
16
17
|
var g, S, y;
|
|
17
|
-
const
|
|
18
|
+
const t = E(), { html: p, css: a } = i, { baseBlocks: o, extensions: d } = await V(), f = ((g = l.value) == null ? void 0 : g.displayConditions) ?? !0, v = ((S = l.value) == null ? void 0 : S.modulesDisabled) ?? !1, M = ((y = h.value) == null ? void 0 : y.forceRecreate) ?? !1, A = "https://email-static.useinsider.com https://edge.fullstory.com https://rs.fullstory.com", D = T();
|
|
18
19
|
window.UIEditor.initEditor(
|
|
19
20
|
document.querySelector("#guido-editor"),
|
|
20
21
|
{
|
|
21
22
|
metadata: C,
|
|
22
23
|
html: p,
|
|
23
24
|
css: a,
|
|
24
|
-
forceRecreate:
|
|
25
|
+
forceRecreate: M,
|
|
25
26
|
locale: "en",
|
|
26
27
|
undoButtonSelector: "#guido__undo-button",
|
|
27
28
|
redoButtonSelector: "#guido__redo-button",
|
|
@@ -31,96 +32,97 @@ const se = (C, l) => {
|
|
|
31
32
|
customAppearanceMergetags: !u("liquidSyntax"),
|
|
32
33
|
customAppearanceMergetagsBorderColor: "#f1f3fe",
|
|
33
34
|
customAppearanceMergetagsBackgroundColor: "#f1f3fe",
|
|
34
|
-
customViewStyles:
|
|
35
|
+
customViewStyles: z,
|
|
35
36
|
conditionsEnabled: f,
|
|
36
37
|
customConditionsEnabled: f,
|
|
37
38
|
enableXSSSecurity: !0,
|
|
38
|
-
modulesDisabled:
|
|
39
|
-
syncModulesEnabled:
|
|
39
|
+
modulesDisabled: v,
|
|
40
|
+
syncModulesEnabled: r,
|
|
40
41
|
messageSettingsEnabled: !0,
|
|
41
42
|
displayGmailAnnotations: !0,
|
|
42
43
|
displayHiddenPreheader: !1,
|
|
43
44
|
displayTitle: !1,
|
|
44
45
|
displayUTM: !1,
|
|
45
46
|
selectElementAfterDrop: !0,
|
|
46
|
-
allowedScriptSourceDomains:
|
|
47
|
+
allowedScriptSourceDomains: A,
|
|
47
48
|
...o ? { baseBlocks: o } : {},
|
|
48
49
|
editorFonts: {
|
|
49
50
|
showDefaultStandardFonts: !0,
|
|
50
51
|
showDefaultNotStandardFonts: !0,
|
|
51
|
-
customFonts:
|
|
52
|
+
customFonts: s
|
|
52
53
|
},
|
|
53
54
|
mergeTags: [
|
|
54
55
|
{
|
|
55
|
-
entries:
|
|
56
|
-
|
|
56
|
+
entries: G(
|
|
57
|
+
c.preselectedDynamicContentList,
|
|
57
58
|
u("liquidSyntax")
|
|
58
59
|
)
|
|
59
60
|
}
|
|
60
61
|
],
|
|
61
|
-
async onTokenRefreshRequest(
|
|
62
|
+
async onTokenRefreshRequest(e) {
|
|
62
63
|
try {
|
|
63
64
|
const n = await w();
|
|
64
|
-
|
|
65
|
+
e(n);
|
|
65
66
|
} catch (n) {
|
|
66
67
|
m(n, "Failed to refresh token");
|
|
67
68
|
}
|
|
68
69
|
},
|
|
69
70
|
onTemplateLoaded() {
|
|
70
71
|
try {
|
|
71
|
-
const { importCss:
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
const { importCss: e } = x(), { activateCustomViewStyles: n, updateTimerInClonedTemplate: I } = U(), { injectFullStory: P } = H();
|
|
73
|
+
e(), n(), P(), I(), c.onReady(), t.isStripoInitialized = !0, t.loadingStatus = !1, setTimeout(() => {
|
|
74
|
+
t.hasChanges = !1;
|
|
74
75
|
}, 1e3);
|
|
75
|
-
} catch (
|
|
76
|
-
m(
|
|
76
|
+
} catch (e) {
|
|
77
|
+
m(e, "Failed to load custom interface appearance");
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
|
-
onCodeEditorVisibilityChanged(
|
|
80
|
-
|
|
80
|
+
onCodeEditorVisibilityChanged(e) {
|
|
81
|
+
t.isCodeEditorOpen = e;
|
|
81
82
|
},
|
|
82
|
-
onEditorVisualModeChanged(
|
|
83
|
-
|
|
83
|
+
onEditorVisualModeChanged(e) {
|
|
84
|
+
t.editorVisualMode = e.toLowerCase();
|
|
84
85
|
},
|
|
85
|
-
onVersionHistoryVisibilityChanged(
|
|
86
|
-
|
|
86
|
+
onVersionHistoryVisibilityChanged(e) {
|
|
87
|
+
t.isVersionHistoryOpen = e;
|
|
87
88
|
},
|
|
88
89
|
onDataChanged() {
|
|
89
|
-
|
|
90
|
+
t.hasChanges = !0;
|
|
90
91
|
},
|
|
91
92
|
onEvent: B,
|
|
93
|
+
notifications: D,
|
|
92
94
|
ignoreClickOutsideSelectors: [
|
|
93
95
|
"#guido-dynamic-content-modal",
|
|
94
96
|
".in-on-board-wrapper",
|
|
95
97
|
".in-drawer__container"
|
|
96
98
|
],
|
|
97
99
|
extensions: d,
|
|
98
|
-
localePatch:
|
|
100
|
+
localePatch: L
|
|
99
101
|
}
|
|
100
102
|
);
|
|
101
|
-
},
|
|
103
|
+
}, F = (i) => new Promise((s, r) => {
|
|
102
104
|
var d;
|
|
103
105
|
if (document.getElementById("UiEditorScript")) {
|
|
104
|
-
i(),
|
|
106
|
+
i(), s();
|
|
105
107
|
return;
|
|
106
108
|
}
|
|
107
|
-
const
|
|
109
|
+
const t = J.guido, a = `https://email-static.useinsider.com/guido/${(d = t == null ? void 0 : t.stripo) == null ? void 0 : d.version}/UIEditor.js`, o = document.createElement("script");
|
|
108
110
|
o.id = "UiEditorScript", o.type = "module", o.src = a, o.onload = () => {
|
|
109
|
-
i(),
|
|
111
|
+
i(), s();
|
|
110
112
|
}, o.onerror = () => {
|
|
111
|
-
|
|
113
|
+
r(new Error(`Failed to load Stripo UIEditor script from S3: ${a}`));
|
|
112
114
|
}, document.body.appendChild(o);
|
|
113
115
|
});
|
|
114
116
|
return { initPlugin: async (i) => {
|
|
115
|
-
await
|
|
116
|
-
const
|
|
117
|
+
await F(async () => {
|
|
118
|
+
const s = E(), [r, t] = await Promise.all([
|
|
117
119
|
b(),
|
|
118
120
|
k()
|
|
119
121
|
]);
|
|
120
|
-
|
|
122
|
+
s.syncModulesEnabled = t, await _(i, r, t);
|
|
121
123
|
});
|
|
122
124
|
} };
|
|
123
125
|
};
|
|
124
126
|
export {
|
|
125
|
-
|
|
127
|
+
ct as useStripo
|
|
126
128
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useToaster as d } from "./useToaster.js";
|
|
2
|
+
import { ToasterTypeOptions as c } from "../enums/toaster.js";
|
|
3
|
+
const p = () => {
|
|
4
|
+
const { showToaster: s, hideToaster: u } = d();
|
|
5
|
+
let r = null, l = null;
|
|
6
|
+
const n = (t, o, i, e, f = {}) => {
|
|
7
|
+
if (r === i && l === o)
|
|
8
|
+
return;
|
|
9
|
+
r = i, l = o;
|
|
10
|
+
const a = e != null && e.action ? { text: e.action.label, onClick: e.action.func } : void 0;
|
|
11
|
+
s({ type: t, message: o, actionButton: a, autoHide: f.autoHide });
|
|
12
|
+
};
|
|
13
|
+
return { getStripoNotifications: () => ({
|
|
14
|
+
info: (t, o, i) => n(c.Info, t, o, i),
|
|
15
|
+
success: (t, o, i) => n(c.Success, t, o, i),
|
|
16
|
+
warn: (t, o, i) => n(c.Warning, t, o, i),
|
|
17
|
+
error: (t, o, i) => n(c.Alert, t, o, i),
|
|
18
|
+
// Loader represents an in-progress operation; Stripo dismisses it via hide(id)
|
|
19
|
+
// when the operation finishes, so we disable auto-hide for this variant.
|
|
20
|
+
loader: (t, o, i) => n(c.Info, t, o, i, { autoHide: !1 }),
|
|
21
|
+
hide: (t) => {
|
|
22
|
+
r === t && (u(), r = null, l = null);
|
|
23
|
+
}
|
|
24
|
+
}) };
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
p as useStripoNotifications
|
|
28
|
+
};
|
|
@@ -1,36 +1,85 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
class C {
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var y = (s, t, e) => t in s ? x(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var m = (s, t, e) => y(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import b from "../../extensions/Blocks/Checkbox/template.js";
|
|
5
|
+
class f {
|
|
7
6
|
constructor() {
|
|
8
|
-
|
|
7
|
+
m(this, "parser");
|
|
9
8
|
this.parser = new DOMParser();
|
|
10
9
|
}
|
|
11
10
|
migrate(t) {
|
|
12
11
|
try {
|
|
13
|
-
const e = this.parser.parseFromString(t, "text/html"),
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
let i = !1;
|
|
17
|
-
return n.forEach((o) => {
|
|
18
|
-
if (o.classList.contains("checkbox-block-v2"))
|
|
12
|
+
const e = this.parser.parseFromString(t, "text/html"), i = e.querySelectorAll("td.checkbox-block");
|
|
13
|
+
return i.length === 0 ? t : (i.forEach((r) => {
|
|
14
|
+
if (r.classList.contains("checkbox-block-v2"))
|
|
19
15
|
return;
|
|
20
|
-
const
|
|
21
|
-
`<table id="tempDoc"><tbody><tr>${
|
|
16
|
+
const n = r.getAttribute("id"), l = this.extractTextFromElement(r, "ins-title"), c = this.extractTextFromElement(r, "ins-description"), a = this.buildTextBlock(l), p = this.buildTextBlock(c), g = b.replace("{-{-TITLE-}-}", a).replace("{-{-DESCRIPTION-}-}", p), o = this.parser.parseFromString(
|
|
17
|
+
`<table id="tempDoc"><tbody><tr>${g}</tr></tbody></table>`,
|
|
22
18
|
"text/html"
|
|
23
19
|
).querySelector(".checkbox-block-v2");
|
|
24
|
-
|
|
25
|
-
}),
|
|
20
|
+
o && r.parentNode && (o.setAttribute("id", n || ""), r.parentNode.replaceChild(o, r));
|
|
21
|
+
}), e.documentElement.outerHTML);
|
|
26
22
|
} catch (e) {
|
|
27
23
|
return console.error("CheckboxMigrator failed:", e), t;
|
|
28
24
|
}
|
|
29
25
|
}
|
|
26
|
+
extractTextFromElement(t, e) {
|
|
27
|
+
var o, d;
|
|
28
|
+
const i = t.querySelector(`.${e}`);
|
|
29
|
+
if (!i)
|
|
30
|
+
return {
|
|
31
|
+
text: e === "ins-title" ? "Title" : "Description",
|
|
32
|
+
isBold: !1,
|
|
33
|
+
isItalic: !1,
|
|
34
|
+
align: "left",
|
|
35
|
+
styles: ""
|
|
36
|
+
};
|
|
37
|
+
const r = i.querySelector("p");
|
|
38
|
+
if (!r)
|
|
39
|
+
return {
|
|
40
|
+
text: ((o = i.textContent) == null ? void 0 : o.trim()) || (e === "ins-title" ? "Title" : "Description"),
|
|
41
|
+
isBold: !1,
|
|
42
|
+
isItalic: !1,
|
|
43
|
+
align: i.getAttribute("align") || "left",
|
|
44
|
+
styles: ""
|
|
45
|
+
};
|
|
46
|
+
const n = ((d = r.textContent) == null ? void 0 : d.trim()) || (e === "ins-title" ? "Title" : "Description"), l = r.getAttribute("style") || "", c = i.getAttribute("align") || r.getAttribute("align") || "left", a = /font-weight\s*:\s*bold/i.test(l) || !!r.querySelector("b, strong"), p = /font-style\s*:\s*italic/i.test(l) || !!r.querySelector("i, em"), g = this.removeStyleProperties(l, ["font-weight", "font-style"]), u = this.convertInlineToBlock(g);
|
|
47
|
+
return {
|
|
48
|
+
text: n,
|
|
49
|
+
isBold: a,
|
|
50
|
+
isItalic: p,
|
|
51
|
+
align: c,
|
|
52
|
+
styles: u
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
buildTextBlock(t) {
|
|
56
|
+
let e = t.text;
|
|
57
|
+
t.isBold && t.isItalic ? e = `<strong path="1,0"><em path="1,0,0">${e}</em></strong>` : t.isBold ? e = `<strong path="1,0">${e}</strong>` : t.isItalic && (e = `<em path="1,0">${e}</em>`);
|
|
58
|
+
const i = t.align ? ` align="${t.align}"` : "", r = t.styles ? ` style="${t.styles}"` : "";
|
|
59
|
+
return `
|
|
60
|
+
<td class="esd-block-text" ${i}>
|
|
61
|
+
<p path="1" ${r}>
|
|
62
|
+
${e}
|
|
63
|
+
</p>
|
|
64
|
+
</td>
|
|
65
|
+
`;
|
|
66
|
+
}
|
|
67
|
+
removeStyleProperties(t, e) {
|
|
68
|
+
return t ? e.reduce((r, n) => {
|
|
69
|
+
const l = new RegExp(`${n}\\s*:\\s*[^;]*;?`, "gi");
|
|
70
|
+
return r.replace(l, "");
|
|
71
|
+
}, t).replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim() : "";
|
|
72
|
+
}
|
|
73
|
+
convertInlineToBlock(t) {
|
|
74
|
+
if (!t)
|
|
75
|
+
return "";
|
|
76
|
+
let e = t.replace(/display\s*:\s*inline/gi, "display: block");
|
|
77
|
+
return /display\s*:/i.test(e) || (e = e ? `${e}; display: block` : "display: block"), e.replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim();
|
|
78
|
+
}
|
|
30
79
|
}
|
|
31
|
-
function
|
|
32
|
-
return new
|
|
80
|
+
function k(s) {
|
|
81
|
+
return new f().migrate(s);
|
|
33
82
|
}
|
|
34
83
|
export {
|
|
35
|
-
|
|
84
|
+
k as migrateCheckbox
|
|
36
85
|
};
|
|
@@ -1,54 +1,109 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
class R {
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var T = (l, e, t) => e in l ? x(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t;
|
|
3
|
+
var b = (l, e, t) => T(l, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import S from "../../extensions/Blocks/RadioButton/template.js";
|
|
5
|
+
class B {
|
|
7
6
|
constructor() {
|
|
8
|
-
|
|
7
|
+
b(this, "parser");
|
|
9
8
|
this.parser = new DOMParser();
|
|
10
9
|
}
|
|
11
|
-
migrate(
|
|
10
|
+
migrate(e) {
|
|
12
11
|
try {
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
15
|
-
return
|
|
16
|
-
let
|
|
17
|
-
return
|
|
12
|
+
const t = this.parser.parseFromString(e, "text/html"), s = t.querySelectorAll("td.radio-button-block"), i = t.querySelectorAll("td.radio-button-v2");
|
|
13
|
+
if (s.length === 0 && i.length === 0)
|
|
14
|
+
return e;
|
|
15
|
+
let o = !1;
|
|
16
|
+
return s.forEach((r) => {
|
|
18
17
|
if (r.classList.contains("radio-button-v2"))
|
|
19
18
|
return;
|
|
20
|
-
const
|
|
21
|
-
`<table id="tempDoc"><tbody><tr>${
|
|
19
|
+
const n = r.getAttribute("id"), a = this.extractTextFromElement(r, "ins-title"), g = this.extractTextFromElement(r, "ins-description"), c = this.extractTextFromElement(r, "ins-subscribe"), u = this.extractTextFromElement(r, "ins-unsubscribe"), p = this.buildTextBlock(a), d = this.buildTextBlock(g), y = this.buildTextBlock({ ...c, classList: "" }), f = this.buildTextBlock({ ...u, classList: "" }), h = S.replace("{-{-TITLE-}-}", p).replace("{-{-DESCRIPTION-}-}", d).replace("{-{-YES-}-}", y).replace("{-{-NO-}-}", f), m = this.parser.parseFromString(
|
|
20
|
+
`<table id="tempDoc"><tbody><tr>${h}</tr></tbody></table>`,
|
|
22
21
|
"text/html"
|
|
23
22
|
).querySelector(".radio-button-v2");
|
|
24
|
-
|
|
25
|
-
}),
|
|
26
|
-
} catch (
|
|
27
|
-
return console.error("RadioButtonMigrator failed:",
|
|
23
|
+
m && r.parentNode && (m.setAttribute("id", n || ""), r.parentNode.replaceChild(m, r), o = !0);
|
|
24
|
+
}), o = this.healRadioButtonV2(t) || o, o ? t.documentElement.outerHTML : e;
|
|
25
|
+
} catch (t) {
|
|
26
|
+
return console.error("RadioButtonMigrator failed:", t), e;
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
healRadioButtonV2(
|
|
31
|
-
let
|
|
32
|
-
return
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
if (!
|
|
29
|
+
healRadioButtonV2(e) {
|
|
30
|
+
let t = !1;
|
|
31
|
+
return e.querySelectorAll("td.radio-button-v2").forEach((s) => {
|
|
32
|
+
var d;
|
|
33
|
+
s.classList.contains("radio-button-block") || (s.classList.add("radio-button-block"), t = !0);
|
|
34
|
+
const i = s.querySelector("input#radioYes"), o = s.querySelector("input#radioNo");
|
|
35
|
+
if (!i || !o)
|
|
37
36
|
return;
|
|
38
|
-
const r = ((
|
|
39
|
-
if (!r && !
|
|
37
|
+
const r = ((d = i.parentElement) == null ? void 0 : d.querySelector(":scope > p")) || null;
|
|
38
|
+
if (!r && !i.hasAttribute("align"))
|
|
40
39
|
return;
|
|
41
|
-
const
|
|
42
|
-
if (!
|
|
40
|
+
const n = i.closest("tr"), a = o.closest("tr");
|
|
41
|
+
if (!n || !a || n === a || !n.parentNode)
|
|
43
42
|
return;
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
}),
|
|
43
|
+
const g = (r == null ? void 0 : r.innerHTML.trim()) || "Yes", c = a.cloneNode(!0), u = c.querySelector("input#radioNo"), p = c.querySelector("p");
|
|
44
|
+
u && (u.setAttribute("id", "radioYes"), u.removeAttribute("align")), p && (p.innerHTML = g), n.parentNode.replaceChild(c, n), t = !0;
|
|
45
|
+
}), t;
|
|
46
|
+
}
|
|
47
|
+
extractTextFromElement(e, t) {
|
|
48
|
+
var d, y;
|
|
49
|
+
const s = e.querySelector(`.${t}`);
|
|
50
|
+
if (!s)
|
|
51
|
+
return {
|
|
52
|
+
text: t === "ins-title" ? "Title" : "Description",
|
|
53
|
+
isBold: !1,
|
|
54
|
+
isItalic: !1,
|
|
55
|
+
align: "left",
|
|
56
|
+
styles: "",
|
|
57
|
+
classList: ""
|
|
58
|
+
};
|
|
59
|
+
const i = s.querySelector("p");
|
|
60
|
+
if (!i)
|
|
61
|
+
return {
|
|
62
|
+
text: ((d = s.textContent) == null ? void 0 : d.trim()) || (t === "ins-title" ? "Title" : "Description"),
|
|
63
|
+
isBold: !1,
|
|
64
|
+
isItalic: !1,
|
|
65
|
+
align: s.getAttribute("align") || "left",
|
|
66
|
+
styles: "",
|
|
67
|
+
classList: ""
|
|
68
|
+
};
|
|
69
|
+
const o = ((y = i.textContent) == null ? void 0 : y.trim()) || (t === "ins-title" ? "Title" : "Description"), r = i.getAttribute("style") || "", n = s.getAttribute("align") || i.getAttribute("align") || "left", a = /font-weight\s*:\s*bold/i.test(r) || !!i.querySelector("b, strong"), g = /font-style\s*:\s*italic/i.test(r) || !!i.querySelector("i, em"), c = this.removeStyleProperties(r, ["font-weight", "font-style"]), u = this.convertInlineToBlock(c), p = s.getAttribute("class") || "";
|
|
70
|
+
return {
|
|
71
|
+
text: o,
|
|
72
|
+
isBold: a,
|
|
73
|
+
isItalic: g,
|
|
74
|
+
align: n,
|
|
75
|
+
styles: u,
|
|
76
|
+
classList: p
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
buildTextBlock(e) {
|
|
80
|
+
let t = e.text;
|
|
81
|
+
e.isBold && e.isItalic ? t = `<strong path="1,0"><em path="1,0,0">${t}</em></strong>` : e.isBold ? t = `<strong path="1,0">${t}</strong>` : e.isItalic && (t = `<em path="1,0">${t}</em>`);
|
|
82
|
+
const s = e.align ? ` align="${e.align}"` : "", i = e.styles ? ` style="${e.styles.replaceAll('"', "'")}"` : "";
|
|
83
|
+
return `
|
|
84
|
+
<td class="esd-block-text ${e.classList}" ${s}>
|
|
85
|
+
<p path="1" ${i}>
|
|
86
|
+
${t}
|
|
87
|
+
</p>
|
|
88
|
+
</td>
|
|
89
|
+
`;
|
|
90
|
+
}
|
|
91
|
+
removeStyleProperties(e, t) {
|
|
92
|
+
return e ? t.reduce((i, o) => {
|
|
93
|
+
const r = new RegExp(`${o}\\s*:\\s*[^;]*;?`, "gi");
|
|
94
|
+
return i.replace(r, "");
|
|
95
|
+
}, e).replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim() : "";
|
|
96
|
+
}
|
|
97
|
+
convertInlineToBlock(e) {
|
|
98
|
+
if (!e)
|
|
99
|
+
return "";
|
|
100
|
+
let t = e.replace(/display\s*:\s*inline/gi, "display: block");
|
|
101
|
+
return /display\s*:/i.test(t) || (t = t ? `${t}; display: block` : "display: block"), t.replace(/;\s*;/g, ";").replace(/^;|;$/g, "").trim();
|
|
47
102
|
}
|
|
48
103
|
}
|
|
49
|
-
function
|
|
50
|
-
return new
|
|
104
|
+
function L(l) {
|
|
105
|
+
return new B().migrate(l);
|
|
51
106
|
}
|
|
52
107
|
export {
|
|
53
|
-
|
|
108
|
+
L as migrateRadioButton
|
|
54
109
|
};
|
package/dist/enums/toaster.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var n = /* @__PURE__ */ ((r) => (r.Success = "success", r.Warning = "warning", r.Alert = "error", r.Info = "information", r))(n || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
n as ToasterTypeOptions
|
|
4
4
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { useConfig as
|
|
2
|
-
import { useHttp as
|
|
3
|
-
import { useToaster as
|
|
1
|
+
import { useConfig as b } from "../composables/useConfig.js";
|
|
2
|
+
import { useHttp as C } from "../composables/useHttp.js";
|
|
3
|
+
import { useToaster as S } from "../composables/useToaster.js";
|
|
4
4
|
import { useTranslations as h } from "../composables/useTranslations.js";
|
|
5
|
-
import { useLiquidValidator as
|
|
6
|
-
import { EditorType as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { useLiquidValidator as v } from "../composables/validators/useLiquidValidator.js";
|
|
6
|
+
import { EditorType as N } from "../enums/defaults.js";
|
|
7
|
+
import { ToasterTypeOptions as g } from "../enums/toaster.js";
|
|
8
|
+
import { useRecommendationExtensionStore as x } from "../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
9
|
+
import { useSaveAsTemplateStore as A } from "../stores/save-as-template.js";
|
|
9
10
|
import { base64EncodeWithSpecialChars as r } from "../utils/base64.js";
|
|
10
|
-
import { useTemplatePreparation as
|
|
11
|
-
const
|
|
12
|
-
const { get: n, post: m } =
|
|
11
|
+
import { useTemplatePreparation as E } from "../utils/templatePreparation.js";
|
|
12
|
+
const j = () => {
|
|
13
|
+
const { get: n, post: m } = C(), { handleError: o, showToaster: l } = S(), { config: c, isFeatureEnabled: p } = b(), { validateLiquidSyntax: f } = v(), u = h();
|
|
13
14
|
return {
|
|
14
15
|
getCategories: async () => {
|
|
15
16
|
try {
|
|
@@ -39,21 +40,21 @@ const $ = () => {
|
|
|
39
40
|
createTemplate: async () => {
|
|
40
41
|
var e, t, d, y;
|
|
41
42
|
try {
|
|
42
|
-
const { prepareTemplateDetails: i } =
|
|
43
|
-
if (p("liquidSyntax") && !await
|
|
43
|
+
const { prepareTemplateDetails: i } = E(), s = A(), a = await i();
|
|
44
|
+
if (p("liquidSyntax") && !await f(a.compiledHtml))
|
|
44
45
|
return !1;
|
|
45
|
-
const
|
|
46
|
+
const T = {
|
|
46
47
|
name: s.getTemplateName,
|
|
47
48
|
categories: s.getSelectedCategoryIds,
|
|
48
49
|
productId: ((t = (e = c.value) == null ? void 0 : e.partner) == null ? void 0 : t.productType) || 0,
|
|
49
|
-
editorType:
|
|
50
|
+
editorType: N,
|
|
50
51
|
messageType: ((y = (d = c.value) == null ? void 0 : d.partner) == null ? void 0 : y.messageType) || 0,
|
|
51
52
|
content: r(a.compiledHtml),
|
|
52
53
|
css: r(a.css),
|
|
53
54
|
unsubscriptionPreferencePageStatus: !1,
|
|
54
55
|
unsubscriptionPreferencePages: [],
|
|
55
56
|
recommendationCampaignUrls: r(
|
|
56
|
-
|
|
57
|
+
x().recommendationCampaignUrls
|
|
57
58
|
),
|
|
58
59
|
recommendationConfigs: r({}),
|
|
59
60
|
isGuido: !0,
|
|
@@ -65,22 +66,22 @@ const $ = () => {
|
|
|
65
66
|
css: a.css,
|
|
66
67
|
dynamicContentList: a.dynamicContentList
|
|
67
68
|
})
|
|
68
|
-
}, { data: { type:
|
|
69
|
+
}, { data: { type: w } } = await m(
|
|
69
70
|
"/newsletter/template-library/create-template",
|
|
70
|
-
|
|
71
|
+
T
|
|
71
72
|
);
|
|
72
|
-
return
|
|
73
|
+
return w === "alert" ? (l({
|
|
73
74
|
message: u(
|
|
74
75
|
"newsletter.template-library-save-alert",
|
|
75
76
|
{ templateName: s.getTemplateName }
|
|
76
77
|
),
|
|
77
|
-
type:
|
|
78
|
+
type: g.Alert
|
|
78
79
|
}), !1) : (l({
|
|
79
80
|
message: u(
|
|
80
81
|
"newsletter.template-library-save-success",
|
|
81
82
|
{ templateName: s.getTemplateName }
|
|
82
83
|
),
|
|
83
|
-
type:
|
|
84
|
+
type: g.Success
|
|
84
85
|
}), !0);
|
|
85
86
|
} catch (i) {
|
|
86
87
|
return o(i, "Failed to create template"), !1;
|
|
@@ -89,5 +90,5 @@ const $ = () => {
|
|
|
89
90
|
};
|
|
90
91
|
};
|
|
91
92
|
export {
|
|
92
|
-
|
|
93
|
+
j as useTemplateLibraryApi
|
|
93
94
|
};
|
|
@@ -11,8 +11,9 @@ export declare const useToasterStore: import("pinia").StoreDefinition<"guidoToas
|
|
|
11
11
|
text: string;
|
|
12
12
|
onClick: () => void;
|
|
13
13
|
} | undefined;
|
|
14
|
+
autoHide: boolean;
|
|
14
15
|
} & import("pinia").PiniaCustomStateProperties<ToasterState>) => boolean;
|
|
15
16
|
}, {
|
|
16
|
-
showToaster(this: ToasterState, { type, message, actionButton }: ToasterOptions): void;
|
|
17
|
+
showToaster(this: ToasterState, { type, message, actionButton, autoHide }: ToasterOptions): void;
|
|
17
18
|
hideToaster(this: ToasterState): void;
|
|
18
19
|
}>;
|
|
@@ -11,11 +11,6 @@ ue-description a {
|
|
|
11
11
|
display: none;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
/* Override the rule above for the Gmail Promotions switcher docs link — remove with DT-28355. */
|
|
15
|
-
ue-lock-container.e2e-promotions-switcher ue-description a {
|
|
16
|
-
display: unset;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
14
|
.label {
|
|
20
15
|
font-size: 13px;
|
|
21
16
|
color: var(--guido-color-gray-800);
|
package/dist/stores/toaster.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { ToasterTypeOptions as e } from "../enums/toaster.js";
|
|
2
|
-
import { defineStore as
|
|
3
|
-
const
|
|
2
|
+
import { defineStore as a } from "pinia";
|
|
3
|
+
const u = () => ({
|
|
4
4
|
status: !1,
|
|
5
5
|
type: e.Success,
|
|
6
6
|
text: "",
|
|
7
7
|
icon: "",
|
|
8
8
|
withIcon: !0,
|
|
9
9
|
withoutLeftMargin: !1,
|
|
10
|
-
actionButton: void 0
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
actionButton: void 0,
|
|
11
|
+
autoHide: !0
|
|
12
|
+
}), c = a("guidoToaster", {
|
|
13
|
+
state: () => u(),
|
|
13
14
|
getters: {
|
|
14
|
-
shouldAutoHide: (t) => t.status && !!t.text
|
|
15
|
+
shouldAutoHide: (t) => t.status && !!t.text && t.autoHide
|
|
15
16
|
},
|
|
16
17
|
actions: {
|
|
17
|
-
showToaster({ type: t = e.Success, message:
|
|
18
|
-
this.status = !0, this.text =
|
|
18
|
+
showToaster({ type: t = e.Success, message: o, actionButton: s, autoHide: i = !0 }) {
|
|
19
|
+
this.status = !0, this.text = o, this.type = t, this.actionButton = s, this.autoHide = i;
|
|
19
20
|
},
|
|
20
21
|
hideToaster() {
|
|
21
22
|
this.status = !1;
|
|
@@ -23,5 +24,5 @@ const a = () => ({
|
|
|
23
24
|
}
|
|
24
25
|
});
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
c as useToasterStore
|
|
27
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.4.1-beta.
|
|
3
|
+
"version": "3.4.1-beta.2120861",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"license": "ISC",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@stripoinc/ui-editor-extensions": "3.8.0",
|
|
38
|
-
"@useinsider/design-system-vue": "1.
|
|
38
|
+
"@useinsider/design-system-vue": "1.2.0",
|
|
39
39
|
"@vueuse/core": "11.3.0",
|
|
40
40
|
"lodash-es": "4.17.21",
|
|
41
41
|
"pinia": "2.3.1",
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
const I = {
|
|
2
|
-
"ins-title": "Title",
|
|
3
|
-
"ins-description": "Description",
|
|
4
|
-
"ins-subscribe": "Yes",
|
|
5
|
-
"ins-unsubscribe": "No"
|
|
6
|
-
}, y = /font-weight\s*:\s*[^;]*;?/gi, S = /font-style\s*:\s*[^;]*;?/gi, u = /;\s*;/g, T = /^;|;$/g, d = /display\s*:\s*inline/gi, m = /display\s*:/i, b = /font-weight\s*:\s*bold/i, A = /font-style\s*:\s*italic/i, R = /^<(?:strong|b)\b/i, $ = /^<(?:em|i)\b/i;
|
|
7
|
-
function L(t) {
|
|
8
|
-
return t ? t.replace(y, "").replace(S, "").replace(u, ";").replace(T, "").trim() : "";
|
|
9
|
-
}
|
|
10
|
-
function O(t) {
|
|
11
|
-
if (!t)
|
|
12
|
-
return "";
|
|
13
|
-
let e = t.replace(d, "display: block");
|
|
14
|
-
return m.test(e) || (e = e ? `${e}; display: block` : "display: block"), e.replace(u, ";").replace(T, "").trim();
|
|
15
|
-
}
|
|
16
|
-
function B(t, e) {
|
|
17
|
-
var c, a;
|
|
18
|
-
const o = I[e], l = t.querySelector(`.${e}`);
|
|
19
|
-
if (!l)
|
|
20
|
-
return {
|
|
21
|
-
paragraphs: [{ innerHtml: o, isBold: !1, isItalic: !1, styles: "" }],
|
|
22
|
-
align: "left",
|
|
23
|
-
containerClass: ""
|
|
24
|
-
};
|
|
25
|
-
const n = Array.from(l.querySelectorAll("p")), p = l.getAttribute("align") || ((c = n[0]) == null ? void 0 : c.getAttribute("align")) || "left", i = l.getAttribute("class") || "";
|
|
26
|
-
return n.length === 0 ? {
|
|
27
|
-
paragraphs: [{
|
|
28
|
-
innerHtml: ((a = l.textContent) == null ? void 0 : a.trim()) || o,
|
|
29
|
-
isBold: !1,
|
|
30
|
-
isItalic: !1,
|
|
31
|
-
styles: ""
|
|
32
|
-
}],
|
|
33
|
-
align: p,
|
|
34
|
-
containerClass: ""
|
|
35
|
-
} : { paragraphs: n.map((r) => {
|
|
36
|
-
const _ = r.getAttribute("style") || "", f = b.test(_) || !!r.querySelector("b, strong"), g = A.test(_) || !!r.querySelector("i, em"), E = L(_);
|
|
37
|
-
return {
|
|
38
|
-
// Legacy parity: empty <p> → fallback placeholder; <p><br></p> is not empty.
|
|
39
|
-
innerHtml: r.innerHTML.trim() || o,
|
|
40
|
-
isBold: f,
|
|
41
|
-
isItalic: g,
|
|
42
|
-
styles: O(E)
|
|
43
|
-
};
|
|
44
|
-
}), align: p, containerClass: i };
|
|
45
|
-
}
|
|
46
|
-
function C(t, e = "") {
|
|
47
|
-
const o = t.align ? ` align="${t.align}"` : "", l = t.paragraphs.map((n, p) => {
|
|
48
|
-
const i = p + 1;
|
|
49
|
-
let s = n.innerHtml;
|
|
50
|
-
const c = n.isBold && !R.test(s), a = n.isItalic && !$.test(s);
|
|
51
|
-
c && a ? s = `<strong path="${i},0"><em path="${i},0,0">${s}</em></strong>` : c ? s = `<strong path="${i},0">${s}</strong>` : a && (s = `<em path="${i},0">${s}</em>`);
|
|
52
|
-
const r = n.styles ? ` style="${n.styles.replaceAll('"', "'")}"` : "";
|
|
53
|
-
return `<p path="${i}"${r}>${s}</p>`;
|
|
54
|
-
}).join(`
|
|
55
|
-
`);
|
|
56
|
-
return `
|
|
57
|
-
<td class="esd-block-text ${e}" ${o}>
|
|
58
|
-
${l}
|
|
59
|
-
</td>
|
|
60
|
-
`;
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
C as buildTextBlock,
|
|
64
|
-
B as extractTextFromElement
|
|
65
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared text-block migration helpers used by both `radioButtonMigrator` and
|
|
3
|
-
* `checkboxMigrator`. Extracts a legacy v1 `.ins-title` / `.ins-description`
|
|
4
|
-
* cell into a paragraph descriptor and rebuilds it as a v2 `esd-block-text`
|
|
5
|
-
* cell — preserving every <p>, every inline tag (<u>, <a>, <br>, <strong>,
|
|
6
|
-
* <em>) and re-encoding bold/italic detection as canonical tags.
|
|
7
|
-
*/
|
|
8
|
-
export type InsCellClass = 'ins-title' | 'ins-description' | 'ins-subscribe' | 'ins-unsubscribe';
|
|
9
|
-
type ParagraphContent = {
|
|
10
|
-
innerHtml: string;
|
|
11
|
-
isBold: boolean;
|
|
12
|
-
isItalic: boolean;
|
|
13
|
-
styles: string;
|
|
14
|
-
};
|
|
15
|
-
export type TextContent = {
|
|
16
|
-
paragraphs: ParagraphContent[];
|
|
17
|
-
align: string;
|
|
18
|
-
};
|
|
19
|
-
export type ExtractedTextContent = TextContent & {
|
|
20
|
-
containerClass: string;
|
|
21
|
-
};
|
|
22
|
-
export declare function extractTextFromElement(parent: Element, className: InsCellClass): ExtractedTextContent;
|
|
23
|
-
export declare function buildTextBlock(content: TextContent, extraClass?: string): string;
|
|
24
|
-
export {};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
const n = `ue-notifications-container {
|
|
2
|
-
left: 96px;
|
|
3
|
-
margin: 0;
|
|
4
|
-
bottom: 32px;
|
|
5
|
-
top: unset;
|
|
6
|
-
width: unset;
|
|
7
|
-
position: fixed;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
ue-notifications-container ue-message + ue-message {
|
|
11
|
-
margin-bottom: 24px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
ue-notifications-container .alert-message-wrapper {
|
|
15
|
-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
|
|
16
|
-
border: none;
|
|
17
|
-
padding: 16px 24px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
ue-notifications-container .alert-message-wrapper.info,
|
|
21
|
-
ue-notifications-container .alert-message-wrapper.loader {
|
|
22
|
-
background-color: var(--guido-color-background-toaster-info) !important;
|
|
23
|
-
color: inherit;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.alert-message-wrapper .alert-message-main {
|
|
27
|
-
align-items: center;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
ue-notifications-container ue-caption .caption {
|
|
31
|
-
color: var(--guido-color-white) !important;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
ue-block-thumb-hint {
|
|
35
|
-
text-align: left;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
ue-notifications-container .alert-message-wrapper .alert-message-main .alert-message-content {
|
|
39
|
-
width: calc(100% - 64px);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
ue-notifications-container .alert-message-wrapper .alert-message-main .alert-message-text {
|
|
43
|
-
font-size: 15px;
|
|
44
|
-
font-weight: 600;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
ue-notifications-container .alert-message-text,
|
|
48
|
-
ue-notifications-container .alert-message-wrapper ue-icon-component.icon,
|
|
49
|
-
ue-notifications-container .alert-message-wrapper ue-icon-component.icon-button {
|
|
50
|
-
color: var(--guido-color-white);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
ue-notifications-container ue-message ue-button.close {
|
|
54
|
-
margin: 0 0 0 16px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
ue-notifications-container .alert-message-wrapper.success {
|
|
58
|
-
background: var(--guido-color-background-toaster-success);
|
|
59
|
-
color: inherit;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
ue-notifications-container .alert-message-wrapper.error {
|
|
63
|
-
background: var(--guido-color-background-toaster-error);
|
|
64
|
-
color: inherit;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
ue-notifications-container .alert-message-wrapper.warn {
|
|
68
|
-
background: var(--guido-color-background-toaster-warn);
|
|
69
|
-
color: inherit;
|
|
70
|
-
}
|
|
71
|
-
`;
|
|
72
|
-
export {
|
|
73
|
-
n as default
|
|
74
|
-
};
|