@useinsider/guido 2.1.0-beta.ee1b589 → 2.1.0-beta.fc639f8

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,6 +1,6 @@
1
1
  import { useToaster as w } from "./useToaster.js";
2
2
  const v = () => {
3
- const { handleError: n } = w(), m = (t = {}) => new Promise((e, a) => {
3
+ const { handleError: l } = w(), r = (t = {}) => new Promise((e, a) => {
4
4
  const o = { ...{
5
5
  minimize: !0,
6
6
  utmEntity: {
@@ -21,9 +21,9 @@ const v = () => {
21
21
  resetDataSavedFlag: !1,
22
22
  disableLineHeightsReplace: !0
23
23
  }, ...t }, s = {
24
- callback: (l, r, d, c, u) => {
25
- l ? a(l) : e({
26
- html: r,
24
+ callback: (n, p, d, c, u) => {
25
+ n ? a(n) : e({
26
+ html: p,
27
27
  ampHtml: d,
28
28
  ampErrors: c,
29
29
  displayConditions: u
@@ -34,15 +34,15 @@ const v = () => {
34
34
  window.StripoEditorApi.actionsApi.compileEmail(s);
35
35
  });
36
36
  return {
37
- getCompiledEmail: m,
37
+ getCompiledEmail: r,
38
38
  getTemplateData: () => new Promise((t) => {
39
- const e = ({ html: a, css: i, width: o, height: p, utmParams: s, syncModulesIds: l }) => t({
39
+ const e = ({ html: a, css: i, width: o, height: m, utmParams: s, syncModulesIds: n }) => t({
40
40
  html: a,
41
41
  css: i,
42
42
  width: o,
43
- height: p,
43
+ height: m,
44
44
  utmParams: s,
45
- syncModulesIds: l
45
+ syncModulesIds: n
46
46
  });
47
47
  window.StripoEditorApi.actionsApi.getTemplateData(e);
48
48
  }),
@@ -56,7 +56,7 @@ const v = () => {
56
56
  displayConditions: a,
57
57
  ampHtml: i = "",
58
58
  ampErrors: o = []
59
- } = await m({ minimize: !1, resetDataSavedFlag: !1, ...t });
59
+ } = await r({ minimize: !1, resetDataSavedFlag: !1, ...t });
60
60
  return {
61
61
  html: e,
62
62
  ampHtml: i,
@@ -64,7 +64,7 @@ const v = () => {
64
64
  displayConditions: a
65
65
  };
66
66
  } catch (e) {
67
- return n(e, "Error loading preview"), {
67
+ return l(e, "Error loading preview"), {
68
68
  html: "",
69
69
  ampHtml: "",
70
70
  ampErrors: [],
@@ -80,19 +80,17 @@ const v = () => {
80
80
  }
81
81
  try {
82
82
  window.StripoEditorApi.actionsApi.updateTimerInClonedTemplate((i, o) => {
83
- i ? (n(i, "Failed to update timer in cloned template"), t(null)) : t(o || null);
83
+ i ? (l(i, "Failed to update timer in cloned template"), t(null)) : t(o || null);
84
84
  });
85
85
  } catch (i) {
86
- n(i, "Failed to call updateTimerInClonedTemplate"), t(null);
86
+ l(i, "Failed to call updateTimerInClonedTemplate"), t(null);
87
87
  }
88
88
  }),
89
89
  updateHtmlAndCss: (t, e) => {
90
90
  window.StripoEditorApi.actionsApi.updateHtmlAndCss(t, e);
91
91
  },
92
92
  editorSave: () => {
93
- window.StripoEditorApi.actionsApi.save((t) => {
94
- t && n(t, "Failed to save template");
95
- });
93
+ window.StripoEditorApi.actionsApi.save();
96
94
  }
97
95
  };
98
96
  };
@@ -4,6 +4,7 @@ const n = `ue-notifications-container {
4
4
  bottom: 32px;
5
5
  top: unset;
6
6
  width: unset;
7
+ position: fixed;
7
8
  }
8
9
 
9
10
  ue-notifications-container ue-message + ue-message {
@@ -1,4 +1,4 @@
1
- const r = `.patch-session-container {
1
+ const o = `.patch-session-container {
2
2
  row-gap: 16px;
3
3
  }
4
4
 
@@ -24,13 +24,7 @@ ue-vh-patch.selected .patch-wrapper {
24
24
  background-color: var(--guido-color-primary-100);
25
25
  box-shadow: 0 0 0 1px var(--guido-color-primary-500);
26
26
  }
27
- .change-history-panel-wrapper .control-panel-header {
28
- padding: 16px 0 16px 16px;
29
- }
30
-
31
- .change-history-panel-wrapper .header-control-panel-label {
32
- grid-area: 1 / 1 / 2 / 12;
33
- }`;
27
+ `;
34
28
  export {
35
- r as default
29
+ o as default
36
30
  };
@@ -60,6 +60,7 @@ ue-control-panel,
60
60
 
61
61
  .control-panel-header {
62
62
  grid-template-columns: repeat(12, 1fr);
63
+ padding: 16px 0px 16px 16px;
63
64
  }
64
65
 
65
66
  .control-panel-header > * {
@@ -93,9 +94,7 @@ ue-control-panel,
93
94
  .container.droppable-header-container ue-button:last-child {
94
95
  margin-right: 0;
95
96
  }
96
- .container.droppable-header-container {
97
- margin-top: 13px;
98
- }
97
+
99
98
  .secondary-control-group {
100
99
  gap: 16px;
101
100
  }
@@ -134,6 +133,21 @@ ue-label.accent-dot:after {
134
133
  font-size: 13px;
135
134
  }
136
135
 
136
+ .e2e-container-video-size {
137
+ grid-template-columns: 1fr !important;
138
+ }
139
+
140
+ .e2e-container-video-size .control-shadow-wrapper:not(ue-button) {
141
+ display: flex;
142
+ width: 100%;
143
+ justify-content: flex-end;
144
+ background-color: transparent !important;
145
+ }
146
+
147
+ .e2e-container-video-size .control-shadow-wrapper input {
148
+ background-color: var(--guido-color-gray-0);
149
+ }
150
+
137
151
  .e2e-size,
138
152
  .e2e-timer-size {
139
153
  grid-auto-flow: row;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "2.1.0-beta.ee1b589",
3
+ "version": "2.1.0-beta.fc639f8",
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",