@useinsider/guido 3.1.1-beta.e00a22b → 3.1.1-beta.e2f9e0a

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,42 +1,42 @@
1
- import { useActionsApi as F } from "./useActionsApi.js";
2
- import { useBlocksConfig as D } from "./useBlocksConfig.js";
3
- import { useConfig as I } from "./useConfig.js";
4
- import { useCustomInterfaceAppearance as P } from "./useCustomInterfaceAppearance.js";
5
- import { useStripoEventHandler as U } from "./useStripoEventHandler.js";
6
- import { useToaster as R } from "./useToaster.js";
7
- import { localePatch as q } from "../config/i18n/index.js";
8
- import { displayConditions as x } from "../enums/displayConditions.js";
9
- import { useStripoApi as H } from "../services/stripoApi.js";
10
- import O from "../static/styles/customEditorStyle.css.js";
11
- import { useEditorStore as C } from "../stores/editor.js";
12
- import { dynamicContentToMergeTags as L } from "../utils/genericUtil.js";
13
- import $ from "../package.json.js";
14
- const ie = (E, c) => {
15
- const { features: l, template: h, isFeatureEnabled: u } = I(), { handleError: m } = R(), { getToken: b, getCustomFonts: w, getSyncModulesStatus: k } = H(), { handleEvent: T } = U(), { getStripoBlocksConfig: V } = D(), _ = async (i, n = [], r = !1) => {
16
- var g, y, S;
17
- const e = C(), { html: p, css: a } = i, { baseBlocks: o, extensions: d } = await V(), f = ((g = l.value) == null ? void 0 : g.displayConditions) ?? !0, v = ((y = l.value) == null ? void 0 : y.modulesDisabled) ?? !1, M = ((S = h.value) == null ? void 0 : S.forceRecreate) ?? !1;
1
+ import { useActionsApi as A } from "./useActionsApi.js";
2
+ import { useBlocksConfig as F } from "./useBlocksConfig.js";
3
+ import { useConfig as D } from "./useConfig.js";
4
+ import { useCustomInterfaceAppearance as I } from "./useCustomInterfaceAppearance.js";
5
+ import { useStripoEventHandler as P } from "./useStripoEventHandler.js";
6
+ import { useToaster as U } from "./useToaster.js";
7
+ import { localePatch as R } from "../config/i18n/index.js";
8
+ import { displayConditions as H } from "../enums/displayConditions.js";
9
+ import { useStripoApi as O } from "../services/stripoApi.js";
10
+ import q from "../static/styles/customEditorStyle.css.js";
11
+ import { useEditorStore as S } from "../stores/editor.js";
12
+ import { dynamicContentToMergeTags as x } from "../utils/genericUtil.js";
13
+ import L from "../package.json.js";
14
+ const oe = (C, c) => {
15
+ const { features: l, template: E } = D(), { handleError: u } = U(), { getToken: h, getCustomFonts: w, getSyncModulesStatus: b } = O(), { handleEvent: k } = P(), { getStripoBlocksConfig: T } = F(), V = async (i, n = [], r = !1) => {
16
+ var f, g, y;
17
+ const e = S(), { html: m, css: a } = i, { baseBlocks: o, extensions: d } = await T(), p = ((f = l.value) == null ? void 0 : f.displayConditions) ?? !0, B = ((g = l.value) == null ? void 0 : g.modulesDisabled) ?? !1, v = ((y = E.value) == null ? void 0 : y.forceRecreate) ?? !1;
18
18
  window.UIEditor.initEditor(
19
19
  document.querySelector("#guido-editor"),
20
20
  {
21
- metadata: E,
22
- html: p,
21
+ metadata: C,
22
+ html: m,
23
23
  css: a,
24
- forceRecreate: M,
24
+ forceRecreate: v,
25
25
  locale: "en",
26
26
  undoButtonSelector: "#guido__undo-button",
27
27
  redoButtonSelector: "#guido__redo-button",
28
28
  mobileViewButtonSelector: ".guido__view-option-selection-mobile",
29
29
  desktopViewButtonSelector: ".guido__view-option-selection-desktop",
30
30
  codeEditorButtonSelector: "#guido__code-button",
31
- customAppearanceMergetags: !u("liquidSyntax"),
31
+ customAppearanceMergetags: !0,
32
32
  customAppearanceMergetagsBorderColor: "#f1f3fe",
33
33
  customAppearanceMergetagsBackgroundColor: "#f1f3fe",
34
- customViewStyles: O,
35
- conditionsEnabled: f,
36
- customConditionsEnabled: f,
37
- conditionCategories: x,
34
+ customViewStyles: q,
35
+ conditionsEnabled: p,
36
+ customConditionsEnabled: p,
37
+ conditionCategories: H,
38
38
  enableXSSSecurity: !0,
39
- modulesDisabled: v,
39
+ modulesDisabled: B,
40
40
  syncModulesEnabled: r,
41
41
  messageSettingsEnabled: !0,
42
42
  displayGmailAnnotations: !0,
@@ -52,28 +52,25 @@ const ie = (E, c) => {
52
52
  },
53
53
  mergeTags: [
54
54
  {
55
- entries: L(
56
- c.preselectedDynamicContentList,
57
- u("liquidSyntax")
58
- )
55
+ entries: x(c.preselectedDynamicContentList)
59
56
  }
60
57
  ],
61
58
  async onTokenRefreshRequest(t) {
62
59
  try {
63
- const s = await b();
60
+ const s = await h();
64
61
  t(s);
65
62
  } catch (s) {
66
- m(s, "Failed to refresh token");
63
+ u(s, "Failed to refresh token");
67
64
  }
68
65
  },
69
66
  onTemplateLoaded() {
70
67
  try {
71
- const { importCss: t } = P(), { activateCustomViewStyles: s, updateTimerInClonedTemplate: A } = F();
72
- t(), s(), A(), c.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
68
+ const { importCss: t } = I(), { activateCustomViewStyles: s, updateTimerInClonedTemplate: M } = A();
69
+ t(), s(), M(), c.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
73
70
  e.hasChanges = !1;
74
71
  }, 1e3);
75
72
  } catch (t) {
76
- m(t, "Failed to load custom interface appearance");
73
+ u(t, "Failed to load custom interface appearance");
77
74
  }
78
75
  },
79
76
  onCodeEditorVisibilityChanged(t) {
@@ -88,23 +85,23 @@ const ie = (E, c) => {
88
85
  onDataChanged() {
89
86
  e.hasChanges = !0;
90
87
  },
91
- onEvent: T,
88
+ onEvent: k,
92
89
  ignoreClickOutsideSelectors: [
93
90
  "#guido-dynamic-content-modal",
94
91
  ".in-on-board-wrapper",
95
92
  ".in-drawer__container"
96
93
  ],
97
94
  extensions: d,
98
- localePatch: q
95
+ localePatch: R
99
96
  }
100
97
  );
101
- }, B = (i) => new Promise((n, r) => {
98
+ }, _ = (i) => new Promise((n, r) => {
102
99
  var d;
103
100
  if (document.getElementById("UiEditorScript")) {
104
101
  i(), n();
105
102
  return;
106
103
  }
107
- const e = $.guido, a = `https://email-static.useinsider.com/guido/${(d = e == null ? void 0 : e.stripo) == null ? void 0 : d.version}/UIEditor.js`, o = document.createElement("script");
104
+ const e = L.guido, a = `https://email-static.useinsider.com/guido/${(d = e == null ? void 0 : e.stripo) == null ? void 0 : d.version}/UIEditor.js`, o = document.createElement("script");
108
105
  o.id = "UiEditorScript", o.type = "module", o.src = a, o.onload = () => {
109
106
  i(), n();
110
107
  }, o.onerror = () => {
@@ -112,15 +109,15 @@ const ie = (E, c) => {
112
109
  }, document.body.appendChild(o);
113
110
  });
114
111
  return { initPlugin: async (i) => {
115
- await B(async () => {
116
- const n = C(), [r, e] = await Promise.all([
112
+ await _(async () => {
113
+ const n = S(), [r, e] = await Promise.all([
117
114
  w(),
118
- k()
115
+ b()
119
116
  ]);
120
- n.syncModulesEnabled = e, await _(i, r, e);
117
+ n.syncModulesEnabled = e, await V(i, r, e);
121
118
  });
122
119
  } };
123
120
  };
124
121
  export {
125
- ie as useStripo
122
+ oe as useStripo
126
123
  };
@@ -1,40 +1,29 @@
1
- import { useConfig as n } from "../../../composables/useConfig.js";
2
- import { BlockType as e } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
3
- import { COUPON_BLOCK_ID as t } from "./block.js";
4
- const c = "{@COUPON_CODE}", s = "{{ins_coupon_code}}";
5
- function l() {
6
- const { isFeatureEnabled: o } = n();
7
- return o("liquidSyntax") ? s : c;
8
- }
9
- function i(o) {
10
- return `
11
- <${e.BLOCK_TEXT}
1
+ import { BlockType as o } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
+ import { COUPON_BLOCK_ID as e } from "./block.js";
3
+ const t = `
4
+ <${o.BLOCK_TEXT}
12
5
  class="coupon-block ins-coupon-code coupon-block-v2 es-p10"
13
6
  align="center"
14
- esd-extension-block-id="${t}">
7
+ esd-extension-block-id="${e}">
15
8
  <p
16
9
  path="1"
17
10
  contenteditable="false"
18
11
  style="font-size: 16px; color: #333333;">
19
- <strong path="1,0">${o}</strong>
12
+ <strong path="1,0">{@COUPON_CODE}</strong>
20
13
  </p>
21
- </${e.BLOCK_TEXT}>
22
- `;
23
- }
24
- const u = `
14
+ </${o.BLOCK_TEXT}>
15
+ `, l = `
25
16
  <td
26
17
  class="coupon-block coupon-block-v2 ins-coupon-code esd-block-text esd-extension-block"
27
- esd-extension-block-id="${t}"
18
+ esd-extension-block-id="${e}"
28
19
  >
29
20
  <p class="ins-title" contenteditable="false">{@COUPON_CODE}</p>
30
21
  </td>
31
22
  `;
32
- function d() {
33
- return i(l());
23
+ function s() {
24
+ return t;
34
25
  }
35
26
  export {
36
- c as COUPON_PLACEHOLDER_DEFAULT,
37
- s as COUPON_PLACEHOLDER_LIQUID,
38
- u as default,
39
- d as getDefaultTemplate
27
+ l as default,
28
+ s as getDefaultTemplate
40
29
  };
@@ -1,17 +1,16 @@
1
1
  var c = Object.defineProperty;
2
2
  var g = (o, s, t) => s in o ? c(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
3
3
  var r = (o, s, t) => g(o, typeof s != "symbol" ? s + "" : s, t);
4
- import { useConfig as d } from "../../composables/useConfig.js";
5
- import { mergeTagToDynamicContent as m, dynamicContentToMergeTags as u } from "../../utils/genericUtil.js";
6
- import { UIElement as h, UIElementType as a, UEAttr as T, UIElementTagRegistry as y } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
7
- import { ExternalMergeTagsLibrary as C } from "./dynamic-content-modal.js";
8
- const l = "external-dynamic-content-ui-element", L = "button-add-dynamic-content";
9
- class w extends y {
4
+ import { mergeTagToDynamicContent as d, dynamicContentToMergeTags as m } from "../../utils/genericUtil.js";
5
+ import { UIElement as u, UIElementType as a, UEAttr as h, UIElementTagRegistry as T } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
6
+ import { ExternalMergeTagsLibrary as y } from "./dynamic-content-modal.js";
7
+ const l = "external-dynamic-content-ui-element", C = "button-add-dynamic-content";
8
+ class p extends T {
10
9
  registerUiElements(s) {
11
10
  s[a.MERGETAGS] = l;
12
11
  }
13
12
  }
14
- class f extends h {
13
+ class b extends u {
15
14
  constructor() {
16
15
  super(...arguments);
17
16
  r(this, "mergeTagsButton", null);
@@ -44,7 +43,7 @@ class f extends h {
44
43
  onAttributeUpdated(t, e) {
45
44
  if (t !== "mergeTag" || !(e != null && e.value))
46
45
  return;
47
- const n = m(e), i = this._getLastClickedPosition();
46
+ const n = d(e), i = this._getLastClickedPosition();
48
47
  this.lastClickedElement = null, this.lastClickedFrame = null, this._openDynamicContentLibrary(n, i);
49
48
  }
50
49
  openMergeTagLibrary() {
@@ -56,14 +55,10 @@ class f extends h {
56
55
  * Dispatches event with dynamic content data and position
57
56
  */
58
57
  _openDynamicContentLibrary(t, e) {
59
- this.mergeTagsLibrary || (this.mergeTagsLibrary = new C()), this.mergeTagsLibrary.openMergeTagsLibrary(
58
+ this.mergeTagsLibrary || (this.mergeTagsLibrary = new y()), this.mergeTagsLibrary.openMergeTagsLibrary(
60
59
  t,
61
60
  (n) => {
62
- if (n.text && n.value) {
63
- const { isFeatureEnabled: i } = d();
64
- this.api.triggerValueChange(u([n], i("liquidSyntax"))[0]);
65
- } else
66
- this.api.triggerValueChange(null);
61
+ n.text && n.value ? this.api.triggerValueChange(m([n])[0]) : this.api.triggerValueChange(null);
67
62
  },
68
63
  e
69
64
  );
@@ -147,7 +142,7 @@ class f extends h {
147
142
  <${a.BUTTON}
148
143
  id="guido__btn-add-dynamic-content"
149
144
  class="btn btn-primary"
150
- ${T.BUTTON.name}="${L}">
145
+ ${h.BUTTON.name}="${C}">
151
146
  <${a.ICON} src="plus" class="icon icon-button color-primary">
152
147
  </${a.ICON}>
153
148
  ${this.api.translate("Add Dynamic Content")}
@@ -156,6 +151,6 @@ class f extends h {
156
151
  }
157
152
  }
158
153
  export {
159
- w as DynamicContentTagRegistry,
160
- f as DynamicContentUiElementExtension
154
+ p as DynamicContentTagRegistry,
155
+ b as DynamicContentUiElementExtension
161
156
  };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- .gap-16[data-v-3b53a736],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-cd76c125] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.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}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-64c52560]{gap:8px}.version-history__toolbar[data-v-64c52560]{gap:4px}.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}.editor-actions[data-v-98f3d29b]{gap:4px}.header-wrapper[data-v-5c02dcc7]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-a26d7792]{position:relative;width:100%;height:calc(100vh - 128px)}.guido-editor__container[data-v-a26d7792]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-a26d7792]{height:calc(100vh - 75px)}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-df672485]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-df672485]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-df672485]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-df672485]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-df672485]{object-fit:cover;transform:scale(1)}[data-v-43c617a7] .guido__verion-history-view-option-selection-desktop svg,[data-v-43c617a7] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-43c617a7] .in-segments-wrapper__button_selected,[data-v-43c617a7] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-988f8da6]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-988f8da6]{min-height:504px}.iframe-wrapper[data-v-e0424e99]{width:258px}.iframe-scaled[data-v-e0424e99]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-29b9af29] .vueperslides__bullets,[data-v-dd1a237a] .vueperslides__bullets{pointer-events:none!important}[data-v-dd1a237a] .vueperslides__parallax-wrapper{height:110px!important}[data-v-d073b1dc] .vueperslides__bullets{pointer-events:none!important}[data-v-d073b1dc] .vueperslides__parallax-wrapper{height:110px!important}
1
+ .gap-16[data-v-3b53a736],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-cd76c125] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.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}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-64c52560]{gap:8px}.version-history__toolbar[data-v-64c52560]{gap:4px}.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}.editor-actions[data-v-acff76a8]{gap:4px}.header-wrapper[data-v-5c02dcc7]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-25780af6]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-25780af6]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-25780af6]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-df672485]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-df672485]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-df672485]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-df672485]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-df672485]{object-fit:cover;transform:scale(1)}[data-v-43c617a7] .guido__verion-history-view-option-selection-desktop svg,[data-v-43c617a7] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-43c617a7] .in-segments-wrapper__button_selected,[data-v-43c617a7] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-988f8da6]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-988f8da6]{min-height:504px}.iframe-wrapper[data-v-e0424e99]{width:258px}.iframe-scaled[data-v-e0424e99]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-29b9af29] .vueperslides__bullets,[data-v-dd1a237a] .vueperslides__bullets{pointer-events:none!important}[data-v-dd1a237a] .vueperslides__parallax-wrapper{height:110px!important}[data-v-d073b1dc] .vueperslides__bullets{pointer-events:none!important}[data-v-d073b1dc] .vueperslides__parallax-wrapper{height:110px!important}
@@ -176,8 +176,6 @@ export declare const FeaturesSchema: v.ObjectSchema<{
176
176
  readonly unsubscribe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
177
177
  /** Disable modules panel in the editor */
178
178
  readonly modulesDisabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
179
- /** Enable Liquid template syntax */
180
- readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
181
179
  }, undefined>;
182
180
  /**
183
181
  * Default block types available in Stripo
@@ -499,8 +497,6 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
499
497
  readonly unsubscribe: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
500
498
  /** Disable modules panel in the editor */
501
499
  readonly modulesDisabled: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
502
- /** Enable Liquid template syntax */
503
- readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
504
500
  }, undefined>, {}>;
505
501
  /** Block configuration */
506
502
  readonly blocks: v.OptionalSchema<v.ObjectSchema<{
@@ -61,7 +61,6 @@ export declare const useConfig: () => {
61
61
  displayConditions: boolean;
62
62
  unsubscribe: boolean;
63
63
  modulesDisabled: boolean;
64
- liquidSyntax: boolean;
65
64
  };
66
65
  blocks: {
67
66
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -158,7 +157,6 @@ export declare const useConfig: () => {
158
157
  displayConditions: boolean;
159
158
  unsubscribe: boolean;
160
159
  modulesDisabled: boolean;
161
- liquidSyntax: boolean;
162
160
  } | null>;
163
161
  blocks: import("vue").ComputedRef<{
164
162
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1,5 +1,3 @@
1
- export declare const COUPON_PLACEHOLDER_DEFAULT = "{@COUPON_CODE}";
2
- export declare const COUPON_PLACEHOLDER_LIQUID = "{{ins_coupon_code}}";
3
1
  declare const migrationTemplate = "\n <td\n class=\"coupon-block coupon-block-v2 ins-coupon-code esd-block-text esd-extension-block\"\n esd-extension-block-id=\"coupon-block\"\n >\n <p class=\"ins-title\" contenteditable=\"false\">{@COUPON_CODE}</p>\n </td>\n";
4
2
  export declare function getDefaultTemplate(): string;
5
3
  export default migrationTemplate;
@@ -66,7 +66,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
66
66
  displayConditions: boolean;
67
67
  unsubscribe: boolean;
68
68
  modulesDisabled: boolean;
69
- liquidSyntax: boolean;
70
69
  };
71
70
  blocks: {
72
71
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -169,7 +168,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
169
168
  displayConditions: boolean;
170
169
  unsubscribe: boolean;
171
170
  modulesDisabled: boolean;
172
- liquidSyntax: boolean;
173
171
  };
174
172
  blocks: {
175
173
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -272,7 +270,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
272
270
  displayConditions: boolean;
273
271
  unsubscribe: boolean;
274
272
  modulesDisabled: boolean;
275
- liquidSyntax: boolean;
276
273
  };
277
274
  blocks: {
278
275
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -375,7 +372,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
375
372
  displayConditions: boolean;
376
373
  unsubscribe: boolean;
377
374
  modulesDisabled: boolean;
378
- liquidSyntax: boolean;
379
375
  };
380
376
  blocks: {
381
377
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -478,7 +474,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
478
474
  displayConditions: boolean;
479
475
  unsubscribe: boolean;
480
476
  modulesDisabled: boolean;
481
- liquidSyntax: boolean;
482
477
  };
483
478
  blocks: {
484
479
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -581,7 +576,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
581
576
  displayConditions: boolean;
582
577
  unsubscribe: boolean;
583
578
  modulesDisabled: boolean;
584
- liquidSyntax: boolean;
585
579
  };
586
580
  blocks: {
587
581
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -684,7 +678,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
684
678
  displayConditions: boolean;
685
679
  unsubscribe: boolean;
686
680
  modulesDisabled: boolean;
687
- liquidSyntax: boolean;
688
681
  };
689
682
  blocks: {
690
683
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -787,7 +780,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
787
780
  displayConditions: boolean;
788
781
  unsubscribe: boolean;
789
782
  modulesDisabled: boolean;
790
- liquidSyntax: boolean;
791
783
  };
792
784
  blocks: {
793
785
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -890,7 +882,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
890
882
  displayConditions: boolean;
891
883
  unsubscribe: boolean;
892
884
  modulesDisabled: boolean;
893
- liquidSyntax: boolean;
894
885
  };
895
886
  blocks: {
896
887
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -993,7 +984,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
993
984
  displayConditions: boolean;
994
985
  unsubscribe: boolean;
995
986
  modulesDisabled: boolean;
996
- liquidSyntax: boolean;
997
987
  };
998
988
  blocks: {
999
989
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1096,7 +1086,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1096
1086
  displayConditions: boolean;
1097
1087
  unsubscribe: boolean;
1098
1088
  modulesDisabled: boolean;
1099
- liquidSyntax: boolean;
1100
1089
  };
1101
1090
  blocks: {
1102
1091
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1199,7 +1188,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1199
1188
  displayConditions: boolean;
1200
1189
  unsubscribe: boolean;
1201
1190
  modulesDisabled: boolean;
1202
- liquidSyntax: boolean;
1203
1191
  };
1204
1192
  blocks: {
1205
1193
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1302,7 +1290,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1302
1290
  displayConditions: boolean;
1303
1291
  unsubscribe: boolean;
1304
1292
  modulesDisabled: boolean;
1305
- liquidSyntax: boolean;
1306
1293
  };
1307
1294
  blocks: {
1308
1295
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1405,7 +1392,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1405
1392
  displayConditions: boolean;
1406
1393
  unsubscribe: boolean;
1407
1394
  modulesDisabled: boolean;
1408
- liquidSyntax: boolean;
1409
1395
  };
1410
1396
  blocks: {
1411
1397
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1508,7 +1494,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1508
1494
  displayConditions: boolean;
1509
1495
  unsubscribe: boolean;
1510
1496
  modulesDisabled: boolean;
1511
- liquidSyntax: boolean;
1512
1497
  };
1513
1498
  blocks: {
1514
1499
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1611,7 +1596,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1611
1596
  displayConditions: boolean;
1612
1597
  unsubscribe: boolean;
1613
1598
  modulesDisabled: boolean;
1614
- liquidSyntax: boolean;
1615
1599
  };
1616
1600
  blocks: {
1617
1601
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1714,7 +1698,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1714
1698
  displayConditions: boolean;
1715
1699
  unsubscribe: boolean;
1716
1700
  modulesDisabled: boolean;
1717
- liquidSyntax: boolean;
1718
1701
  };
1719
1702
  blocks: {
1720
1703
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1817,7 +1800,6 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
1817
1800
  displayConditions: boolean;
1818
1801
  unsubscribe: boolean;
1819
1802
  modulesDisabled: boolean;
1820
- liquidSyntax: boolean;
1821
1803
  };
1822
1804
  blocks: {
1823
1805
  excludeDefaults: ("amp-accordion" | "amp-carousel" | "amp-form-controls" | "banner-block" | "button-block" | "html-block" | "image-block" | "menu-block" | "social-block" | "spacer-block" | "text-block" | "timer-block" | "video-block")[];
@@ -1,6 +1,6 @@
1
1
  import type { DynamicContent, MergeTag } from '@@/Types/generic';
2
2
  export declare const mergeTagToDynamicContent: (mergeTag: MergeTag) => DynamicContent;
3
- export declare const dynamicContentToMergeTags: (dynamicContentList: DynamicContent[], liquidSyntax?: boolean) => MergeTag[];
3
+ export declare const dynamicContentToMergeTags: (dynamicContentList: DynamicContent[]) => MergeTag[];
4
4
  export declare const getCsrfToken: () => string;
5
5
  /**
6
6
  * URL Parameter utilities
@@ -1,11 +1,16 @@
1
- const t = `.amp-input-list,
1
+ const n = `.amp-input-list,
2
2
  .button,
3
3
  .base-input,
4
4
  ue-stripe-thumb,
5
5
  .ue-stripe-thumb {
6
6
  transition: all .5s ease;
7
7
  }
8
+
9
+ :host {
10
+ height: 100% !important;
11
+ min-height: 0 !important;
12
+ }
8
13
  `;
9
14
  export {
10
- t as default
15
+ n as default
11
16
  };
@@ -1,47 +1,25 @@
1
- const s = (e) => {
2
- const a = e.value.match(/\{\{([^}]+)\}\}/)[1].split("|").map((l) => l.trim()), [n] = a, c = {
3
- text: e.label,
4
- value: n || ""
1
+ const f = (t) => {
2
+ const n = t.value.match(/\{\{([^}]+)\}\}/)[1].split("|").map((l) => l.trim()), [r] = n, e = {
3
+ text: t.label,
4
+ value: r || ""
5
5
  };
6
- if (a.length >= 2) {
7
- const [, l, r] = a;
8
- if (l.startsWith("default:")) {
9
- let t = l.slice(8).trim();
10
- t.startsWith('"') && t.endsWith('"') && (t = t.slice(1, -1)), c.fallback = t;
11
- } else {
12
- const t = l.includes("=") ? { key: l.split("=")[0].trim(), value: l.split("=")[1].trim() } : null;
13
- t ? c.format = t : r || (c.fallback = l), r && (c.fallback = r);
14
- }
6
+ if (n.length >= 2) {
7
+ const [, l, o] = n, c = l.includes("=") ? { key: l.split("=")[0].trim(), value: l.split("=")[1].trim() } : null;
8
+ c ? e.format = c : o || (e.fallback = l), o && (e.fallback = o);
15
9
  }
16
- return c;
17
- }, u = (e, f = !1) => e.map((a) => {
18
- if (a.format)
19
- return {
20
- label: `${a.text} | ${a.format.key}=${a.format.value}`,
21
- value: `{{${a.value}|${a.format.key}=${a.format.value}}}`
22
- };
23
- if (f) {
24
- if (!a.fallback)
25
- return {
26
- label: a.text,
27
- value: `{{ ${a.value} }}`
28
- };
29
- const c = !Number.isNaN(Number(a.fallback)) && a.fallback.trim() !== "" ? a.fallback : `"${a.fallback}"`;
30
- return {
31
- label: `${a.text} | ${a.fallback}`,
32
- value: `{{ ${a.value} | default: ${c} }}`
33
- };
34
- }
35
- return {
36
- label: a.fallback ? `${a.text} | ${a.fallback}` : a.text,
37
- value: a.fallback ? `{{${a.value}|${a.fallback}}}` : `{{${a.value}}}`
38
- };
39
- }), o = () => {
40
- var e;
41
- return ((e = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : e.getAttribute("content")) ?? "";
10
+ return e;
11
+ }, s = (t) => t.map((a) => a.format ? {
12
+ label: `${a.text} | ${a.format.key}=${a.format.value}`,
13
+ value: `{{${a.value}|${a.format.key}=${a.format.value}}}`
14
+ } : {
15
+ label: a.fallback ? `${a.text} | ${a.fallback}` : a.text,
16
+ value: a.fallback ? `{{${a.value}|${a.fallback}}}` : `{{${a.value}}}`
17
+ }), u = () => {
18
+ var t;
19
+ return ((t = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : t.getAttribute("content")) ?? "";
42
20
  };
43
21
  export {
44
- u as dynamicContentToMergeTags,
45
- o as getCsrfToken,
46
- s as mergeTagToDynamicContent
22
+ s as dynamicContentToMergeTags,
23
+ u as getCsrfToken,
24
+ f as mergeTagToDynamicContent
47
25
  };