@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.
@@ -1,4 +1,4 @@
1
- const o = { stripo: { version: "2.59.0" } }, s = {
1
+ const o = { stripo: { version: "2.54.0" } }, s = {
2
2
  guido: o
3
3
  };
4
4
  export {
@@ -44,6 +44,7 @@ export interface TooltipOptions {
44
44
  x: number;
45
45
  y: number;
46
46
  };
47
+ preventXss?: boolean;
47
48
  }
48
49
  export type TextValueObject = {
49
50
  text: string;
@@ -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 | undefined;
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 | undefined, property: string): string | null | undefined;
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 | undefined): 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-gray-0) !important;
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 E = () => {
7
- const o = x(), t = y(), { getCompiledEmail: i, getTemplateData: n, editorSave: s } = f(), { compileHtml: m } = C();
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: a, ampHtml: r = "", ampErrors: c = [] } = await i({
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 n(), { compiledHtml: d, stats: e, appliedRules: S } = m(a), g = o.getSelectedDynamicContentList, b = T();
14
- return s(), console.debug("HTML Compilation Stats:", {
15
- originalSize: e.originalSize,
16
- compiledSize: e.compiledSize,
17
- reduction: `${e.reductionPercentage.toFixed(2)}%`,
18
- appliedRules: S,
19
- executionTime: `${e.executionTime.toFixed(2)}ms`
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: g,
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: t.unsubscribePagesStatus,
34
- config: t.selectedUnsubscribePages
35
+ status: e.unsubscribePagesStatus,
36
+ config: e.selectedUnsubscribePages
35
37
  }
36
38
  };
37
39
  }
38
40
  };
39
41
  };
40
42
  export {
41
- E as useTemplatePreparation
43
+ w as useTemplatePreparation
42
44
  };
@@ -1,10 +1,11 @@
1
- const o = (i, t = {}) => ({
2
- id: i,
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
- o as getTooltipOptions
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.4fc983e",
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.7.0",
36
- "@useinsider/design-system-vue": "1.1.0-beta.73ec2fa",
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.59.0"
89
+ "version": "2.54.0"
90
90
  }
91
91
  }
92
92
  }