@useinsider/guido 3.1.1-beta.4fc983e → 3.1.1-beta.57fcdc6
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/config/compiler/unsubscribeCompilerRules.js +37 -37
- package/dist/extensions/Blocks/Recommendation/block.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +79 -81
- package/dist/extensions/Blocks/Recommendation/utils/tagName.js +6 -6
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +17 -16
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +218 -324
- package/dist/package.json.js +1 -1
- package/dist/src/@types/generic.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +3 -3
- package/dist/static/styles/components/button.css.js +7 -13
- package/dist/static/styles/components/narrow-panel.css.js +0 -52
- package/dist/utils/templatePreparation.js +16 -14
- package/dist/utils/tooltipUtils.js +5 -4
- package/package.json +4 -4
package/dist/package.json.js
CHANGED
|
@@ -15,7 +15,7 @@ export interface NodeWithGetStyle {
|
|
|
15
15
|
}
|
|
16
16
|
/** Interface for nodes with parent method */
|
|
17
17
|
export interface NodeWithParent {
|
|
18
|
-
parent: () => ImmutableHtmlNode |
|
|
18
|
+
parent: () => ImmutableHtmlNode | null;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Type guard to check if a node has getStyle method
|
|
@@ -38,13 +38,13 @@ export declare function isTdNode(node: unknown): node is ImmutableHtmlNode & Nod
|
|
|
38
38
|
* @param property - The CSS property name
|
|
39
39
|
* @returns The style value or null if not accessible
|
|
40
40
|
*/
|
|
41
|
-
export declare function safeGetStyle(node: ImmutableHtmlNode | null
|
|
41
|
+
export declare function safeGetStyle(node: ImmutableHtmlNode | null, property: string): string | null | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Safely retrieves the parent element of a node
|
|
44
44
|
* @param node - The node to get the parent from
|
|
45
45
|
* @returns The parent node or null if not accessible
|
|
46
46
|
*/
|
|
47
|
-
export declare function safeGetParent(node: ImmutableHtmlNode | null
|
|
47
|
+
export declare function safeGetParent(node: ImmutableHtmlNode | null): ImmutableHtmlNode | null;
|
|
48
48
|
/**
|
|
49
49
|
* Safely retrieves the tag name from a node.
|
|
50
50
|
* Handles both standard DOM tagName property and Stripo's getTagName() method.
|
|
@@ -99,12 +99,18 @@ ue-check-button.checked:not(.flat-white) input:checked + label .icon-button {
|
|
|
99
99
|
color: var(--guido-color-primary-500);
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
ue-select.full-width .button {
|
|
103
|
+
border: none !important;
|
|
104
|
+
background-color: var(--guido-color-neutral-200) !important;
|
|
105
|
+
color: var(--guido-color-neutral-800) !important;
|
|
106
|
+
}
|
|
107
|
+
|
|
102
108
|
ue-select.full-width .button .icon-button {
|
|
103
109
|
color: var(--guido-color-gray-600) !important;
|
|
104
110
|
}
|
|
105
111
|
|
|
106
112
|
ue-select.full-width .button:hover:not(:disabled,.disabled) {
|
|
107
|
-
background-color: var(--guido-color-
|
|
113
|
+
background-color: var(--guido-color-neutral-100) !important;
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
ue-color {
|
|
@@ -124,18 +130,6 @@ ue-select-text-input .select-text-input-toggle .button {
|
|
|
124
130
|
justify-content: center;
|
|
125
131
|
background-color: transparent !important;
|
|
126
132
|
}
|
|
127
|
-
|
|
128
|
-
.control-shadow-wrapper,
|
|
129
|
-
ue-button:not(.no-shadow,.flat-white),
|
|
130
|
-
ue-toggle:not(.no-shadow,.flat-white),
|
|
131
|
-
:is(ue-popover-toggler,ue-toggle-icon-picker,ue-emoji-toggle),
|
|
132
|
-
.button-group,
|
|
133
|
-
ue-counter:not(.no-shadow),
|
|
134
|
-
:is(ue-select,ue-mergetags,ue-font-family-select):not(.no-shadow),
|
|
135
|
-
ue-check-button:not(.no-shadow,.flat-white) {
|
|
136
|
-
background: none;
|
|
137
|
-
padding: 0;
|
|
138
|
-
}
|
|
139
133
|
`;
|
|
140
134
|
export {
|
|
141
135
|
o as default
|
|
@@ -28,58 +28,6 @@ ue-stripe-thumb:hover:not(.disabled),
|
|
|
28
28
|
border-color: var(--guido-color-primary-500);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
/* Module search — initial */
|
|
32
|
-
.module-search-container {
|
|
33
|
-
background-color: var(--guido-color-gray-0);
|
|
34
|
-
border: 1px solid var(--guido-color-gray-300);
|
|
35
|
-
border-radius: 4px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.module-search-container .service-element {
|
|
39
|
-
background-color: unset;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.module-filter-toggle {
|
|
43
|
-
top: -1px !important;
|
|
44
|
-
right: -1px !important;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.module-filter-toggle > .button,
|
|
48
|
-
.module-search-container:hover .module-filter-toggle > .button {
|
|
49
|
-
border: none;
|
|
50
|
-
background: transparent;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* Module search — hover */
|
|
54
|
-
.module-search-container:has(.module-search-chip-input:hover) {
|
|
55
|
-
border-color: var(--guido-color-primary-500);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.module-search-container .module-search-chip-input .service-element:hover {
|
|
59
|
-
background-color: var(--guido-color-gray-0);
|
|
60
|
-
border-radius: 4px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.module-search-container .module-filter-toggle:hover > .button {
|
|
64
|
-
background-color: var(--guido-color-gray-1);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* Module search — selected (.on) */
|
|
68
|
-
.module-search-container:has(.module-search-chip-input.on),
|
|
69
|
-
.module-search-container:has(.module-search-chip-input.on):hover {
|
|
70
|
-
border-color: var(--guido-color-primary-500);
|
|
71
|
-
box-shadow: 0 0 0 3px var(--guido-color-primary-200) !important;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.module-search-container .module-search-chip-input.on .input-section {
|
|
75
|
-
background-color: unset;
|
|
76
|
-
box-shadow: unset;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.module-categories-list .menu-item {
|
|
80
|
-
padding: 8px 20px !important;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
31
|
.modules-layout-wrapper {
|
|
84
32
|
padding: 0 16px 16px;
|
|
85
33
|
grid-row-gap: 16px;
|
|
@@ -3,22 +3,24 @@ import { useHtmlCompiler as C } from "../composables/useHtmlCompiler.js";
|
|
|
3
3
|
import { useRecommendationExtensionStore as T } from "../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
4
4
|
import { useDynamicContentStore as x } from "../stores/dynamic-content.js";
|
|
5
5
|
import { useUnsubscribeStore as y } from "../stores/unsubscribe.js";
|
|
6
|
-
const
|
|
7
|
-
const o = x(),
|
|
6
|
+
const w = () => {
|
|
7
|
+
const o = x(), e = y(), { getCompiledEmail: i, getTemplateData: s, editorSave: n } = f(), { compileHtml: a } = C();
|
|
8
8
|
return {
|
|
9
9
|
prepareTemplateDetails: async () => {
|
|
10
|
-
const { html:
|
|
10
|
+
const { html: m, ampHtml: r = "", ampErrors: c = [] } = await i({
|
|
11
11
|
minimize: !0,
|
|
12
12
|
resetDataSavedFlag: !1
|
|
13
|
-
}), { html: l, css: p, syncModulesIds: u = [] } = await
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
}), { html: l, css: p, syncModulesIds: u = [] } = await s();
|
|
14
|
+
e.selectedUnsubscribePages.length && await e.fetchTemplates();
|
|
15
|
+
const { compiledHtml: d, stats: t, appliedRules: g } = a(m), S = o.getSelectedDynamicContentList, b = T();
|
|
16
|
+
return n(), console.debug("HTML Compilation Stats:", {
|
|
17
|
+
originalSize: t.originalSize,
|
|
18
|
+
compiledSize: t.compiledSize,
|
|
19
|
+
reduction: `${t.reductionPercentage.toFixed(2)}%`,
|
|
20
|
+
appliedRules: g,
|
|
21
|
+
executionTime: `${t.executionTime.toFixed(2)}ms`
|
|
20
22
|
}), {
|
|
21
|
-
dynamicContentList:
|
|
23
|
+
dynamicContentList: S,
|
|
22
24
|
compiledHtml: d,
|
|
23
25
|
rawHtml: l,
|
|
24
26
|
css: p,
|
|
@@ -30,13 +32,13 @@ const E = () => {
|
|
|
30
32
|
configs: {}
|
|
31
33
|
},
|
|
32
34
|
unsubscribe: {
|
|
33
|
-
status:
|
|
34
|
-
config:
|
|
35
|
+
status: e.unsubscribePagesStatus,
|
|
36
|
+
config: e.selectedUnsubscribePages
|
|
35
37
|
}
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
};
|
|
39
41
|
};
|
|
40
42
|
export {
|
|
41
|
-
|
|
43
|
+
w as useTemplatePreparation
|
|
42
44
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
id:
|
|
1
|
+
const e = (s, t = {}) => ({
|
|
2
|
+
id: s,
|
|
3
3
|
dynamicPosition: t.dynamicPosition ?? !1,
|
|
4
4
|
staticPosition: t.staticPosition ?? "bottom center",
|
|
5
5
|
iconStatus: t.iconStatus ?? !1,
|
|
6
|
-
offset: t.offset
|
|
6
|
+
offset: t.offset,
|
|
7
|
+
preventXss: t.preventXss
|
|
7
8
|
});
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
e as getTooltipOptions
|
|
10
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.1.1-beta.
|
|
3
|
+
"version": "3.1.1-beta.57fcdc6",
|
|
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",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"author": "",
|
|
33
33
|
"license": "ISC",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@stripoinc/ui-editor-extensions": "3.
|
|
36
|
-
"@useinsider/design-system-vue": "
|
|
35
|
+
"@stripoinc/ui-editor-extensions": "3.5.0",
|
|
36
|
+
"@useinsider/design-system-vue": "0.14.28",
|
|
37
37
|
"@vueuse/core": "11.3.0",
|
|
38
38
|
"lodash-es": "4.17.21",
|
|
39
39
|
"pinia": "2.3.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"guido": {
|
|
88
88
|
"stripo": {
|
|
89
|
-
"version": "2.
|
|
89
|
+
"version": "2.54.0"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|