@useinsider/guido 1.0.2-beta.042c129 → 1.0.2-beta.080ccee
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/@types/generic.d.ts +4 -0
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +3 -2
- package/dist/composables/useCustomInterfaceAppearance.js +22 -18
- package/dist/guido.css +1 -1
- package/dist/static/styles/components/alert-message.css.js +32 -2
- package/dist/static/styles/components/button.css.js +32 -2
- package/dist/static/styles/components/notification.css.js +55 -0
- package/dist/static/styles/components/popup.css.js +68 -0
- package/dist/static/styles/components/wide-panel.css.js +5 -1
- package/dist/static/styles/customEditorStyle.css.js +6 -0
- package/dist/static/styles/variables.css.js +10 -0
- package/dist/stores/dynamic-content.d.ts +12 -0
- package/dist/stores/dynamic-content.js +7 -6
- package/dist/utils/genericUtil.js +9 -6
- package/package.json +1 -1
package/dist/@types/generic.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import o from "./AmpToggle.vue2.js";
|
|
2
|
+
/* empty css */
|
|
2
3
|
import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
4
|
var s = function() {
|
|
4
5
|
var r = this, t = r._self._c, e = r._self._setupProxy;
|
|
5
|
-
return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-2 d-f a-i-c b-c-11 b-c-h-11 t-c-4 t-c-h-4 i-c-4 bor-w-1 bor-s-s bor-c-11 bor-r-2", attrs: { id: "guido__amp-error-button", "left-icon": "line-error-box", type: "danger", "label-text-status": !1 }, on: { click: function(
|
|
6
|
+
return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-2 d-f a-i-c b-c-11 b-c-h-11 t-c-4 t-c-h-4 i-c-4 bor-w-1 bor-s-s bor-c-11 bor-r-2", attrs: { id: "guido__amp-error-button", "left-icon": "line-error-box", type: "danger", "label-text-status": !1 }, on: { click: function(l) {
|
|
6
7
|
return e.previewStore.openErrorModal();
|
|
7
8
|
} } }) : r._e()], 1)]);
|
|
8
9
|
}, a = [], i = /* @__PURE__ */ n(
|
|
@@ -11,7 +12,7 @@ var s = function() {
|
|
|
11
12
|
a,
|
|
12
13
|
!1,
|
|
13
14
|
null,
|
|
14
|
-
|
|
15
|
+
"b5997368"
|
|
15
16
|
);
|
|
16
17
|
const d = i.exports;
|
|
17
18
|
export {
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
import S from "../static/styles/base.css.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import m from "../static/styles/components/alert-message.css.js";
|
|
3
|
+
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 C from "../static/styles/components/combobox.css.js";
|
|
8
|
+
import s 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/
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
import c from "../static/styles/components/notification.css.js";
|
|
13
|
+
import d from "../static/styles/components/popup.css.js";
|
|
14
|
+
import l from "../static/styles/components/switcher.css.js";
|
|
15
|
+
import h from "../static/styles/components/tabs.css.js";
|
|
16
|
+
import w from "../static/styles/components/tools.css.js";
|
|
17
|
+
import y from "../static/styles/components/version-history.css.js";
|
|
18
|
+
import B from "../static/styles/components/wide-panel.css.js";
|
|
19
|
+
import b from "../static/styles/variables.css.js";
|
|
20
|
+
const A = [
|
|
21
|
+
b,
|
|
20
22
|
// Must be on top
|
|
21
23
|
S,
|
|
22
24
|
// Must be on top
|
|
23
|
-
e,
|
|
24
25
|
m,
|
|
26
|
+
e,
|
|
25
27
|
i,
|
|
26
28
|
p,
|
|
27
29
|
n,
|
|
28
|
-
s,
|
|
29
30
|
C,
|
|
31
|
+
s,
|
|
30
32
|
f,
|
|
31
33
|
a,
|
|
32
34
|
u,
|
|
@@ -34,12 +36,14 @@ const B = [
|
|
|
34
36
|
d,
|
|
35
37
|
l,
|
|
36
38
|
h,
|
|
37
|
-
w
|
|
39
|
+
w,
|
|
40
|
+
y,
|
|
41
|
+
B
|
|
38
42
|
].join(`
|
|
39
43
|
|
|
40
|
-
`),
|
|
44
|
+
`), F = () => ({ importCss: () => {
|
|
41
45
|
const o = new CSSStyleSheet();
|
|
42
|
-
o.replaceSync(
|
|
46
|
+
o.replaceSync(A);
|
|
43
47
|
const r = document.querySelector("ui-editor");
|
|
44
48
|
if (!r)
|
|
45
49
|
return;
|
|
@@ -47,5 +51,5 @@ const B = [
|
|
|
47
51
|
t && (t.adoptedStyleSheets = [o]);
|
|
48
52
|
} });
|
|
49
53
|
export {
|
|
50
|
-
|
|
54
|
+
F as useCustomInterfaceAppearance
|
|
51
55
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-a18ac2d3] .in-button-v2__wrapper{line-height:0}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-dced5582]{height:100%;top:75px}.guido-editor__wrapper[data-v-cc1f9260],.guido-editor__container[data-v-cc1f9260]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-cc1f9260]{height:calc(100vh - 75px)}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-d3c52b44] .vueperslides__bullets,[data-v-a408dcea] .vueperslides__bullets{pointer-events:none!important}[data-v-a408dcea] .vueperslides__parallax-wrapper{height:110px!important}
|
|
1
|
+
[data-v-a18ac2d3] .in-button-v2__wrapper{line-height:0}[data-v-b5997368] .in-segments-wrapper .in-tooltip-wrapper__box{text-align:left}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-dced5582]{height:100%;top:75px}.guido-editor__wrapper[data-v-cc1f9260],.guido-editor__container[data-v-cc1f9260]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-cc1f9260]{height:calc(100vh - 75px)}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-d3c52b44] .vueperslides__bullets,[data-v-a408dcea] .vueperslides__bullets{pointer-events:none!important}[data-v-a408dcea] .vueperslides__parallax-wrapper{height:110px!important}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const r = `.alert-message-wrapper {
|
|
2
2
|
box-shadow: none;
|
|
3
3
|
border: 1px solid var(--guido-color-gray-300);
|
|
4
4
|
color: var(--guido-color-gray-600);
|
|
@@ -16,6 +16,36 @@ const n = `.alert-message-wrapper {
|
|
|
16
16
|
color: var(--guido-color-border-onpage-message-info);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.alert-message-wrapper.warn {
|
|
20
|
+
background: var(--guido-color-background-onpage-message-warn);
|
|
21
|
+
border-color: var(--guido-color-border-onpage-message-warn);
|
|
22
|
+
color: inherit;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.alert-message-wrapper.warn ue-icon-component.icon {
|
|
26
|
+
color: var(--guido-color-border-onpage-message-warn);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.alert-message-wrapper.success {
|
|
30
|
+
background: var(--guido-color-background-onpage-message-success);
|
|
31
|
+
border-color: var(--guido-color-border-onpage-message-success);
|
|
32
|
+
color: inherit;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.alert-message-wrapper.success ue-icon-component.icon {
|
|
36
|
+
color: var(--guido-color-border-onpage-message-success);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.alert-message-wrapper.error {
|
|
40
|
+
background: var(--guido-color-background-onpage-message-error);
|
|
41
|
+
border-color: var(--guido-color-border-onpage-message-error);
|
|
42
|
+
color: inherit;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.alert-message-wrapper.error ue-icon-component.icon {
|
|
46
|
+
color: var(--guido-color-border-onpage-message-error);
|
|
47
|
+
}
|
|
48
|
+
|
|
19
49
|
.alert-message-wrapper ue-button {
|
|
20
50
|
padding: 0;
|
|
21
51
|
}
|
|
@@ -35,5 +65,5 @@ const n = `.alert-message-wrapper {
|
|
|
35
65
|
}
|
|
36
66
|
`;
|
|
37
67
|
export {
|
|
38
|
-
|
|
68
|
+
r as default
|
|
39
69
|
};
|
|
@@ -60,8 +60,28 @@ const o = `.control-shadow-wrapper:has(.button) {
|
|
|
60
60
|
color: var(--guido-color-primary-500);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.
|
|
64
|
-
|
|
63
|
+
.primary > .button {
|
|
64
|
+
border: none;
|
|
65
|
+
background-color: var(--guido-color-neutral-200);
|
|
66
|
+
color: var(--guido-color-neutral-800);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.primary > .button .icon-button {
|
|
70
|
+
color: var(--guido-color-neutral-800);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.primary > .button:hover:not(:disabled,.disabled) {
|
|
74
|
+
background-color: var(--guido-color-neutral-100);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.danger > .button {
|
|
78
|
+
background-color: var(--guido-color-danger-500);
|
|
79
|
+
color: var(--guido-color-white);
|
|
80
|
+
border: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.danger > .button:hover:not(:disabled,.disabled) {
|
|
84
|
+
background-color: var(--guido-color-danger-300);
|
|
65
85
|
}
|
|
66
86
|
|
|
67
87
|
ue-check-button.checked:not(.flat-white) input:checked + label {
|
|
@@ -100,6 +120,16 @@ ue-color {
|
|
|
100
120
|
ue-color .base-input {
|
|
101
121
|
width: 100%;
|
|
102
122
|
}
|
|
123
|
+
|
|
124
|
+
ue-select-text-input .select-text-input-toggle {
|
|
125
|
+
top: 0;
|
|
126
|
+
right: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
ue-select-text-input .select-text-input-toggle .button {
|
|
130
|
+
justify-content: center;
|
|
131
|
+
background-color: transparent !important;
|
|
132
|
+
}
|
|
103
133
|
`;
|
|
104
134
|
export {
|
|
105
135
|
o as default
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
};
|
|
@@ -2,6 +2,10 @@ const n = `ue-wide-panel {
|
|
|
2
2
|
width: 425px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
+
ue-main-editor-container[panel-position=SETTINGS_BLOCKS] ue-wide-panel {
|
|
6
|
+
right: calc(100% - calc(var(--ue-spacing-step, 5px) * 3) - 425px);
|
|
7
|
+
}
|
|
8
|
+
|
|
5
9
|
ue-main-tabs-panel-component .fixed-panel-header {
|
|
6
10
|
display: none;
|
|
7
11
|
}
|
|
@@ -17,7 +21,7 @@ ue-description a {
|
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
.stacked-panel {
|
|
20
|
-
overflow:
|
|
24
|
+
overflow: auto;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
27
|
.stacked-panel-title {
|
|
@@ -12,6 +12,12 @@ const n = `.esd-x,
|
|
|
12
12
|
.ue-preview-control-wrapper ue-icon-component:not([disabled=true]):not(.stripo-static-icon):hover {
|
|
13
13
|
background: none;
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
.ue-email-wrapper-rounded,
|
|
17
|
+
.ue-email-wrapper-rounded-top {
|
|
18
|
+
border-radius: 0;
|
|
19
|
+
box-shadow: none;
|
|
20
|
+
}
|
|
15
21
|
`;
|
|
16
22
|
export {
|
|
17
23
|
n as default
|
|
@@ -12,10 +12,20 @@ const o = `:host {
|
|
|
12
12
|
--guido-color-neutral-800: #222938;
|
|
13
13
|
--guido-color-neutral-200: #DCDFE6;
|
|
14
14
|
--guido-color-neutral-100: #EFF2F4;
|
|
15
|
+
--guido-color-danger-300: #e84342;
|
|
15
16
|
--guido-color-danger-500: #DC2A2A;
|
|
16
17
|
--guido-box-shadow: 0 4px 12px 0 rgba(44,53,70,0.15);
|
|
17
18
|
--guido-color-background-onpage-message-info: #D3EEF8;
|
|
18
19
|
--guido-color-border-onpage-message-info: #258DDE;
|
|
20
|
+
--guido-color-background-onpage-message-warn: #FCEFE5;
|
|
21
|
+
--guido-color-border-onpage-message-warn: #D37400;
|
|
22
|
+
--guido-color-background-onpage-message-success: #E9F9EB;
|
|
23
|
+
--guido-color-border-onpage-message-success: #128745;
|
|
24
|
+
--guido-color-background-onpage-message-error: #FCECEC;
|
|
25
|
+
--guido-color-border-onpage-message-error: var(--guido-color-danger-500);
|
|
26
|
+
--guido-color-background-toaster-success: #128745;
|
|
27
|
+
--guido-color-background-toaster-error: var(--guido-color-danger-500);
|
|
28
|
+
--guido-color-background-toaster-warn: #D37400;
|
|
19
29
|
}
|
|
20
30
|
`;
|
|
21
31
|
export {
|
|
@@ -8,11 +8,19 @@ export declare const useDynamicContentStore: import("pinia").StoreDefinition<"dy
|
|
|
8
8
|
value: string;
|
|
9
9
|
text: string;
|
|
10
10
|
fallback?: string | undefined;
|
|
11
|
+
format?: {
|
|
12
|
+
key: string;
|
|
13
|
+
value: string;
|
|
14
|
+
} | undefined;
|
|
11
15
|
};
|
|
12
16
|
selectedDynamicContentList: {
|
|
13
17
|
value: string;
|
|
14
18
|
text: string;
|
|
15
19
|
fallback?: string | undefined;
|
|
20
|
+
format?: {
|
|
21
|
+
key: string;
|
|
22
|
+
value: string;
|
|
23
|
+
} | undefined;
|
|
16
24
|
}[];
|
|
17
25
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
18
26
|
selectedDynamicContent: DynamicContent;
|
|
@@ -21,6 +29,10 @@ export declare const useDynamicContentStore: import("pinia").StoreDefinition<"dy
|
|
|
21
29
|
text: string;
|
|
22
30
|
value: string;
|
|
23
31
|
fallback: string | undefined;
|
|
32
|
+
format: {
|
|
33
|
+
key: string;
|
|
34
|
+
value: string;
|
|
35
|
+
} | undefined;
|
|
24
36
|
}[];
|
|
25
37
|
}, {
|
|
26
38
|
setSelectedDynamicContent(dynamicContent: DynamicContent): void;
|
|
@@ -6,15 +6,16 @@ const s = a("dynamicContent", {
|
|
|
6
6
|
selectedDynamicContentList: []
|
|
7
7
|
}),
|
|
8
8
|
actions: {
|
|
9
|
-
setSelectedDynamicContent(
|
|
10
|
-
this.selectedDynamicContent =
|
|
9
|
+
setSelectedDynamicContent(t) {
|
|
10
|
+
this.selectedDynamicContent = t, this.selectedDynamicContentList.push(t);
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
getters: {
|
|
14
|
-
getSelectedDynamicContentList: (
|
|
15
|
-
text:
|
|
16
|
-
value:
|
|
17
|
-
fallback:
|
|
14
|
+
getSelectedDynamicContentList: (t) => n(t.selectedDynamicContentList).map((e) => ({
|
|
15
|
+
text: e.text,
|
|
16
|
+
value: e.value,
|
|
17
|
+
fallback: e.fallback,
|
|
18
|
+
format: e.format
|
|
18
19
|
})) || []
|
|
19
20
|
}
|
|
20
21
|
});
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = (l) => l.map((a) => a.format ? {
|
|
2
|
+
label: `${a.text} | ${a.format.key}=${a.format.value}`,
|
|
3
|
+
value: `{{${a.value}|${a.format.key}=${a.format.value}}}`
|
|
4
|
+
} : {
|
|
2
5
|
label: a.fallback ? `${a.text} | ${a.fallback}` : a.text,
|
|
3
6
|
value: a.fallback ? `{{${a.value}|${a.fallback}}}` : `{{${a.value}}}`
|
|
4
|
-
})
|
|
5
|
-
var
|
|
6
|
-
return ((
|
|
7
|
+
}), r = () => {
|
|
8
|
+
var l;
|
|
9
|
+
return ((l = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : l.getAttribute("content")) ?? "";
|
|
7
10
|
};
|
|
8
11
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
e as dynamicContentToMergeTags,
|
|
13
|
+
r as getCsrfToken
|
|
11
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "1.0.2-beta.
|
|
3
|
+
"version": "1.0.2-beta.080ccee",
|
|
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",
|