@useinsider/guido 1.0.2-beta.4dd4c2c → 1.0.2-beta.4e8474b
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 +43 -1
- package/dist/@types/events.d.ts +6 -0
- package/dist/@types/generic.d.ts +5 -0
- package/dist/components/Guido.vue.d.ts +3 -0
- package/dist/components/Guido.vue.js +10 -10
- package/dist/components/Guido.vue2.js +80 -63
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +3 -2
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +14 -15
- package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +3 -1
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +15 -9
- package/dist/components/organisms/header/RightSlot.vue.d.ts +3 -1
- package/dist/components/organisms/header/RightSlot.vue.js +5 -3
- package/dist/components/organisms/header/RightSlot.vue2.js +25 -27
- package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/ViewOptions.vue2.js +5 -5
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +13 -13
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +21 -23
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +14 -14
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +26 -28
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +1 -1
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +11 -9
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +37 -14
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +13 -13
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +38 -28
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +14 -14
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +21 -23
- package/dist/components/wrappers/WpDrawer.vue.d.ts +1 -1
- package/dist/components/wrappers/WpModal.vue.d.ts +1 -1
- package/dist/composables/useCustomInterfaceAppearance.js +22 -18
- package/dist/composables/useHtmlCompiler.js +17 -9
- package/dist/composables/useHtmlValidator.d.ts +3 -0
- package/dist/composables/useHtmlValidator.js +120 -0
- package/dist/composables/usePartner.d.ts +1 -0
- package/dist/composables/usePartner.js +16 -9
- package/dist/composables/usePreviewMode.js +14 -15
- package/dist/composables/useRecommendation.d.ts +19 -0
- package/dist/composables/useRecommendation.js +27 -0
- package/dist/composables/useSave.d.ts +4 -0
- package/dist/composables/useSave.js +15 -0
- package/dist/composables/useStripo.js +32 -31
- package/dist/composables/useStripoEventHandler.js +8 -8
- package/dist/composables/useToaster.js +17 -17
- package/dist/config/compiler/outlookCompilerRules.d.ts +2 -0
- package/dist/config/compiler/outlookCompilerRules.js +36 -0
- package/dist/config/compiler/recommendationCompilerRules.d.ts +2 -0
- package/dist/config/compiler/recommendationCompilerRules.js +83 -0
- package/dist/config/compiler/socialCompilerRules.d.ts +2 -0
- package/dist/config/compiler/socialCompilerRules.js +21 -0
- package/dist/config/compiler/unsubscribeCompilerRules.d.ts +2 -0
- package/dist/config/compiler/unsubscribeCompilerRules.js +64 -0
- package/dist/enums/defaults.d.ts +6 -1
- package/dist/enums/defaults.js +47 -10
- package/dist/enums/html-validator.d.ts +6 -0
- package/dist/enums/html-validator.js +7 -0
- package/dist/enums/recommendation.d.ts +54 -0
- package/dist/enums/recommendation.js +56 -0
- package/dist/enums/unsubscribe.d.ts +15 -0
- package/dist/enums/unsubscribe.js +17 -0
- package/dist/guido.css +1 -1
- package/dist/mock/api/validator.d.ts +2 -0
- package/dist/services/onboardingApi.d.ts +4 -0
- package/dist/services/onboardingApi.js +23 -0
- 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 +13 -0
- package/dist/static/styles/customEditorStyle.css.js +24 -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/stores/onboarding.d.ts +98 -1028
- package/dist/stores/onboarding.js +54 -67
- package/dist/stores/preview.js +6 -14
- package/dist/stores/recommendation.d.ts +10 -0
- package/dist/stores/recommendation.js +9 -0
- package/dist/stores/unsubscribe.d.ts +8 -0
- package/dist/stores/unsubscribe.js +9 -0
- package/dist/utils/genericUtil.js +9 -6
- package/dist/utils/templatePreparation.js +21 -14
- package/package.json +4 -2
- package/dist/composables/useOnboardingApi.d.ts +0 -4
- package/dist/composables/useOnboardingApi.js +0 -23
|
@@ -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,15 +2,28 @@ 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
|
}
|
|
8
12
|
|
|
13
|
+
/* Remove with this writing task DT-28355 */
|
|
14
|
+
ue-description a {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
9
18
|
.label {
|
|
10
19
|
font-size: 13px;
|
|
11
20
|
color: var(--guido-color-gray-800);
|
|
12
21
|
}
|
|
13
22
|
|
|
23
|
+
.stacked-panel {
|
|
24
|
+
overflow: auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
14
27
|
.stacked-panel-title {
|
|
15
28
|
padding: 16px;
|
|
16
29
|
font-size: 16px;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const n = `.esd-x,
|
|
2
|
+
.esd-merge-tag {
|
|
3
|
+
color: #0a2ecc !important;
|
|
4
|
+
box-shadow: none !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.esd-merge-tag {
|
|
8
|
+
border: 1px solid #b5c1f1;
|
|
9
|
+
border-radius: 4px !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ue-preview-control-wrapper ue-icon-component:not([disabled=true]):not(.stripo-static-icon):hover {
|
|
13
|
+
background: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ue-email-wrapper-rounded,
|
|
17
|
+
.ue-email-wrapper-rounded-top {
|
|
18
|
+
border-radius: 0;
|
|
19
|
+
box-shadow: none;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
export {
|
|
23
|
+
n as default
|
|
24
|
+
};
|
|
@@ -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
|
});
|