@useinsider/guido 1.0.3-beta.b438648 → 1.0.3-beta.b702168
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 +0 -1
- package/dist/components/Guido.vue.js +9 -11
- package/dist/components/Guido.vue2.js +13 -13
- package/dist/components/organisms/header/HeaderWrapper.vue.js +8 -10
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +13 -14
- package/dist/components/organisms/header/RightSlot.vue.js +7 -9
- package/dist/components/organisms/header/RightSlot.vue2.js +23 -24
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +1 -1
- package/dist/config/migrator/index.js +6 -7
- package/dist/extensions/Blocks/Recommendation/block.js +3 -6
- package/dist/extensions/Blocks/Recommendation/control.js +40 -69
- package/dist/extensions/Blocks/Recommendation/extension.js +7 -42
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +22 -107
- package/dist/extensions/Blocks/Recommendation/template.js +200 -0
- package/dist/extensions/Blocks/common-control.js +43 -125
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +100 -307
- package/dist/src/components/Guido.vue.d.ts +0 -1
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -3
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -1
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -6
- package/dist/src/extensions/Blocks/Recommendation/template.d.ts +6 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +0 -21
- package/dist/static/styles/customEditorStyle.css.js +0 -5
- package/package.json +2 -2
- package/dist/config/migrator/recommendationMigrator.js +0 -293
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -103
- package/dist/extensions/Blocks/Recommendation/constants.js +0 -5
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -160
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -152
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -180
- package/dist/src/config/migrator/recommendationMigrator.d.ts +0 -1
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -28
- package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +0 -51
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/migrationTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -44
package/README.md
CHANGED
|
@@ -165,7 +165,6 @@ export default {
|
|
|
165
165
|
| `on-change` | void | It Fires once for managing leave modal etc. |
|
|
166
166
|
| `ready` | void | Fired when the editor is ready and template is loaded |
|
|
167
167
|
| `onboarding-finished` | void | Fired when the onboarding popup is dismissed or completed, allowing parent applications to track onboarding state |
|
|
168
|
-
| `test-email:click` | - | Fired when user clicks the test email button in the header |
|
|
169
168
|
|
|
170
169
|
### Guido Exposed Methods
|
|
171
170
|
```typescript
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "./Guido.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import a from "../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef",
|
|
7
|
-
return e.emit("test-email:click");
|
|
8
|
-
} } }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : i._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.FilterSelectionDrawer), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? i._e() : r(e.OnboardingWrapper, { on: { "onboarding-finished": function(o) {
|
|
4
|
+
var t = function() {
|
|
5
|
+
var o = this, r = o._self._c, e = o._self._setupProxy;
|
|
6
|
+
return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.FilterSelectionDrawer), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? o._e() : r(e.OnboardingWrapper, { on: { "onboarding-finished": function(_) {
|
|
9
7
|
return e.emit("onboarding:finished");
|
|
10
8
|
} } }), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
|
|
11
|
-
},
|
|
9
|
+
}, n = [], s = /* @__PURE__ */ a(
|
|
10
|
+
i,
|
|
12
11
|
t,
|
|
13
12
|
n,
|
|
14
|
-
s,
|
|
15
13
|
!1,
|
|
16
14
|
null,
|
|
17
|
-
"
|
|
15
|
+
"3c910a93"
|
|
18
16
|
);
|
|
19
|
-
const
|
|
17
|
+
const v = s.exports;
|
|
20
18
|
export {
|
|
21
|
-
|
|
19
|
+
v as default
|
|
22
20
|
};
|
|
@@ -14,8 +14,8 @@ import { useStripoApi as oe } from "../services/stripoApi.js";
|
|
|
14
14
|
import { useConfigStore as te } from "../stores/config.js";
|
|
15
15
|
import { useDynamicContentStore as ne } from "../stores/dynamic-content.js";
|
|
16
16
|
import { useEditorStore as re } from "../stores/editor.js";
|
|
17
|
-
import { usePreviewStore as
|
|
18
|
-
import { useUnsubscribeStore as
|
|
17
|
+
import { usePreviewStore as ae } from "../stores/preview.js";
|
|
18
|
+
import { useUnsubscribeStore as ie } from "../stores/unsubscribe.js";
|
|
19
19
|
import se from "../node_modules/lodash-es/merge.js";
|
|
20
20
|
const Ge = /* @__PURE__ */ R({
|
|
21
21
|
__name: "Guido",
|
|
@@ -31,15 +31,15 @@ const Ge = /* @__PURE__ */ R({
|
|
|
31
31
|
guidoConfig: null,
|
|
32
32
|
templateConfig: null
|
|
33
33
|
},
|
|
34
|
-
emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished"
|
|
35
|
-
setup(_, { expose:
|
|
36
|
-
const
|
|
34
|
+
emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready", "onboarding:finished"],
|
|
35
|
+
setup(_, { expose: L, emit: t }) {
|
|
36
|
+
const u = _, k = I(
|
|
37
37
|
() => import("./organisms/email-preview/PreviewContainer.vue.js")
|
|
38
38
|
), A = I(
|
|
39
39
|
() => import("./organisms/onboarding/OnboardingWrapper.vue.js")
|
|
40
|
-
),
|
|
40
|
+
), l = x(), a = ne(), p = ie(), g = te(), i = re(), N = ae(), n = U(() => i.hasChanges), { getPartnerName: f, getProductType: y, isTestPartner: F } = O(), v = () => {
|
|
41
41
|
var e;
|
|
42
|
-
return (e =
|
|
42
|
+
return (e = l.value) == null ? void 0 : e.handleSave(!0);
|
|
43
43
|
}, {
|
|
44
44
|
templateId: s,
|
|
45
45
|
userId: b,
|
|
@@ -51,8 +51,8 @@ const Ge = /* @__PURE__ */ R({
|
|
|
51
51
|
productType: d = y(),
|
|
52
52
|
messageType: S = J,
|
|
53
53
|
username: w = q
|
|
54
|
-
} =
|
|
55
|
-
|
|
54
|
+
} = u, m = (o == null ? void 0 : o.preselectedDynamicContentList) || [];
|
|
55
|
+
i.templateId = s, window.GuidoConfig = se(Q, C), window.GuidoConfig.partner = {
|
|
56
56
|
partnerName: c,
|
|
57
57
|
productType: d,
|
|
58
58
|
messageType: S
|
|
@@ -83,7 +83,7 @@ const Ge = /* @__PURE__ */ R({
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
const E = (e) => {
|
|
86
|
-
console.debug("dynamic-content:close", e),
|
|
86
|
+
console.debug("dynamic-content:close", e), a.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
|
|
87
87
|
}, P = () => {
|
|
88
88
|
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
89
89
|
};
|
|
@@ -99,7 +99,7 @@ const Ge = /* @__PURE__ */ R({
|
|
|
99
99
|
forceRecreate: !0
|
|
100
100
|
// TODO: It should be false for old templates. We will communicate with Stripo
|
|
101
101
|
};
|
|
102
|
-
e.html || (e = await T(), e.html = await W(e.html)), await D(e),
|
|
102
|
+
e.html || (e = await T(), e.html = await W(e.html)), await D(e), a.selectedDynamicContentList = m;
|
|
103
103
|
} catch (e) {
|
|
104
104
|
console.error("Failed to initialize Stripo editor:", e);
|
|
105
105
|
}
|
|
@@ -113,14 +113,14 @@ const Ge = /* @__PURE__ */ R({
|
|
|
113
113
|
} catch {
|
|
114
114
|
console.debug("Failed to remove Stripo editor: No editor found");
|
|
115
115
|
}
|
|
116
|
-
}),
|
|
116
|
+
}), L({
|
|
117
117
|
dynamicContent: {
|
|
118
118
|
insert: E,
|
|
119
119
|
close: P
|
|
120
120
|
},
|
|
121
121
|
hasChanges: n,
|
|
122
122
|
saveSilent: v
|
|
123
|
-
}), { __sfc: !0, PreviewContainer:
|
|
123
|
+
}), { __sfc: !0, PreviewContainer: k, OnboardingWrapper: A, headerWrapperRef: l, dynamicContentStore: a, unsubscribeStore: p, props: u, configStore: g, editorStore: i, previewStore: N, hasChanges: n, getPartnerName: f, getProductType: y, isTestPartner: F, saveSilent: v, templateId: s, userId: b, guidoConfig: C, templateConfig: o, html: r, css: h, partnerName: c, productType: d, messageType: S, username: w, preselectedDynamicContentList: m, emit: t, initPlugin: D, getDefaultTemplate: T, noHeader: H, insertDynamicContent: E, closeDynamicContent: P, Toaster: V, FilterSelectionDrawer: X, HeaderWrapper: Y, LoadingWrapper: Z, SaveAsTemplateDrawer: $, UnsubscribeWrapper: ee };
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
export {
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import o from "./HeaderWrapper.vue2.js";
|
|
2
|
-
import
|
|
3
|
-
var
|
|
2
|
+
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var n = function() {
|
|
4
4
|
var t = this, r = t._self._c, e = t._self._setupProxy;
|
|
5
|
-
return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot, { ref: "rightSlotRef",
|
|
6
|
-
|
|
7
|
-
} } })], 1)]);
|
|
8
|
-
}, i = [], a = /* @__PURE__ */ n(
|
|
5
|
+
return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.LeftSlot), r(e.MiddleSlot), r(e.RightSlot, { ref: "rightSlotRef" })], 1)]);
|
|
6
|
+
}, a = [], _ = /* @__PURE__ */ s(
|
|
9
7
|
o,
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
n,
|
|
9
|
+
a,
|
|
12
10
|
!1,
|
|
13
11
|
null,
|
|
14
12
|
null
|
|
15
13
|
);
|
|
16
|
-
const
|
|
14
|
+
const c = _.exports;
|
|
17
15
|
export {
|
|
18
|
-
|
|
16
|
+
c as default
|
|
19
17
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, ref as m } from "vue";
|
|
2
2
|
import { InContainer as a } from "@useinsider/design-system-vue";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
3
|
+
import f from "./LeftSlot.vue.js";
|
|
4
|
+
import p from "./MiddleSlot.vue.js";
|
|
5
|
+
import i from "./RightSlot.vue.js";
|
|
6
|
+
const c = /* @__PURE__ */ n({
|
|
7
7
|
__name: "HeaderWrapper",
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return (t = e.value) == null ? void 0 : t.handleSave(m);
|
|
8
|
+
setup(l, { expose: r }) {
|
|
9
|
+
const e = m(null);
|
|
10
|
+
return r({
|
|
11
|
+
handleSave: (t) => {
|
|
12
|
+
var o;
|
|
13
|
+
return (o = e.value) == null ? void 0 : o.handleSave(t);
|
|
15
14
|
}
|
|
16
|
-
}), { __sfc: !0, rightSlotRef: e,
|
|
15
|
+
}), { __sfc: !0, rightSlotRef: e, InContainer: a, LeftSlot: f, MiddleSlot: p, RightSlot: i };
|
|
17
16
|
}
|
|
18
17
|
});
|
|
19
18
|
export {
|
|
20
|
-
|
|
19
|
+
c as default
|
|
21
20
|
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import n from "./RightSlot.vue2.js";
|
|
2
|
+
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var l = function() {
|
|
4
4
|
var s, i;
|
|
5
5
|
var o = this, e = o._self._c, t = o._self._setupProxy;
|
|
6
|
-
return e("div", { staticClass: "d-f" }, [(s = t.config.features) != null && s.versionHistory ? e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "loading-status": t.isExporting, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.handleExport } }), (i = t.config.features) != null && i.saveAsTemplate ? e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button"), "tooltip-text": t.trans("newsletter.test-email") }, on: { click: function(
|
|
7
|
-
return t.emit("test-email:click");
|
|
8
|
-
} } }), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "loading-status": t.isSaving }, on: { click: function(n) {
|
|
6
|
+
return e("div", { staticClass: "d-f" }, [(s = t.config.features) != null && s.versionHistory ? e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "loading-status": t.isExporting, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.handleExport } }), (i = t.config.features) != null && i.saveAsTemplate ? e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button"), "tooltip-text": t.trans("newsletter.test-email") } }), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "loading-status": t.isSaving }, on: { click: function(p) {
|
|
9
7
|
return t.handleSave(!1);
|
|
10
8
|
} } })], 1);
|
|
11
|
-
},
|
|
12
|
-
|
|
9
|
+
}, r = [], d = /* @__PURE__ */ a(
|
|
10
|
+
n,
|
|
11
|
+
l,
|
|
13
12
|
r,
|
|
14
|
-
u,
|
|
15
13
|
!1,
|
|
16
14
|
null,
|
|
17
15
|
null
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useConfig as
|
|
3
|
-
import { useExport as
|
|
4
|
-
import { useSave as
|
|
5
|
-
import { useTranslations as
|
|
6
|
-
import { useVersionHistoryApi as
|
|
7
|
-
import { useEditorStore as
|
|
8
|
-
import { getTooltipOptions as
|
|
9
|
-
import { InButtonV2 as
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as g, ref as l, computed as H } from "vue";
|
|
2
|
+
import { useConfig as _ } from "../../../composables/useConfig.js";
|
|
3
|
+
import { useExport as h } from "../../../composables/useExport.js";
|
|
4
|
+
import { useSave as V } from "../../../composables/useSave.js";
|
|
5
|
+
import { useTranslations as x } from "../../../composables/useTranslations.js";
|
|
6
|
+
import { useVersionHistoryApi as w } from "../../../composables/useVersionHistoryApi.js";
|
|
7
|
+
import { useEditorStore as T } from "../../../stores/editor.js";
|
|
8
|
+
import { getTooltipOptions as E } from "../../../utils/tooltipUtils.js";
|
|
9
|
+
import { InButtonV2 as O } from "@useinsider/design-system-vue";
|
|
10
|
+
const z = /* @__PURE__ */ g({
|
|
11
11
|
__name: "RightSlot",
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
if (t.isVersionHistoryOpen) {
|
|
12
|
+
setup(A, { expose: m }) {
|
|
13
|
+
const { config: u } = _(), { exportHtml: r } = h(), { save: n } = V(), { openVersionHistory: i, closeVersionHistory: a } = w(), o = T(), t = x(), e = l(!1), s = l(!1), c = () => {
|
|
14
|
+
if (o.isVersionHistoryOpen) {
|
|
16
15
|
a();
|
|
17
16
|
return;
|
|
18
17
|
}
|
|
19
18
|
i();
|
|
20
|
-
},
|
|
19
|
+
}, f = async () => {
|
|
21
20
|
e.value = !0, await r(), e.value = !1;
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
s.value = !0,
|
|
26
|
-
const
|
|
27
|
-
return s.value = !1,
|
|
21
|
+
}, v = () => {
|
|
22
|
+
o.isSaveAsTemplateDrawerOpen = !0;
|
|
23
|
+
}, d = H(() => o.isVersionHistoryOpen ? t("newsletter.close-version-history") : t("newsletter.version-history")), p = async (y) => {
|
|
24
|
+
s.value = !0, o.loadingStatus = !0;
|
|
25
|
+
const S = await n(y);
|
|
26
|
+
return s.value = !1, o.loadingStatus = !1, S;
|
|
28
27
|
};
|
|
29
28
|
return m({
|
|
30
|
-
handleSave:
|
|
31
|
-
}), { __sfc: !0, config: u, exportHtml: r, save: n, openVersionHistory: i, closeVersionHistory: a, editorStore:
|
|
29
|
+
handleSave: p
|
|
30
|
+
}), { __sfc: !0, config: u, exportHtml: r, save: n, openVersionHistory: i, closeVersionHistory: a, editorStore: o, trans: t, isExporting: e, isSaving: s, handleVersionHistory: c, handleExport: f, handleSaveAs: v, versionHistoryTooltipText: d, handleSave: p, getTooltipOptions: E, InButtonV2: O };
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
z as default
|
|
36
35
|
};
|
|
@@ -11,7 +11,7 @@ const I = /* @__PURE__ */ g({
|
|
|
11
11
|
emits: ["onboarding-finished"],
|
|
12
12
|
setup(w, { emit: a }) {
|
|
13
13
|
const e = h(), t = _(), s = b(!0), { config: p } = D(), i = o(() => p.migrationDate), n = o(() => C(i.value || 0)), d = o(() => L(
|
|
14
|
-
i.value
|
|
14
|
+
i.value * 1e3
|
|
15
15
|
)), m = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-title") : e("email-editor.onboarding-title")), c = o(() => n.value ? e("email-editor.onboarding-popup-sunsetted-description", {
|
|
16
16
|
sunsetDate: d.value,
|
|
17
17
|
academyLink: l
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { migrateCheckbox as
|
|
2
|
-
import { migrateCouponBlock as
|
|
1
|
+
import { migrateCheckbox as o } from "./checkboxMigrator.js";
|
|
2
|
+
import { migrateCouponBlock as m } from "./couponBlockMigrator.js";
|
|
3
3
|
import { migrateRadioButton as i } from "./radioButtonMigrator.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const s = async (t) => {
|
|
4
|
+
import { migrateUnsubscribe as e } from "./unsubscribeMigrator.js";
|
|
5
|
+
const c = async (t) => {
|
|
7
6
|
let r = t;
|
|
8
|
-
return r =
|
|
7
|
+
return r = o(r), r = i(r), r = await e(r), r = m(r), r;
|
|
9
8
|
};
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
c as migrate
|
|
12
11
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Block as e, BlockCompositionType as t } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { getDefaultTemplate as o } from "./
|
|
2
|
+
import { getDefaultTemplate as o } from "./template.js";
|
|
3
3
|
const n = "recommendation-block";
|
|
4
|
-
class
|
|
5
|
-
constructor() {
|
|
6
|
-
super();
|
|
7
|
-
}
|
|
4
|
+
class c extends e {
|
|
8
5
|
getId() {
|
|
9
6
|
return n;
|
|
10
7
|
}
|
|
@@ -26,5 +23,5 @@ class m extends e {
|
|
|
26
23
|
}
|
|
27
24
|
export {
|
|
28
25
|
n as BLOCK_ID,
|
|
29
|
-
|
|
26
|
+
c as RecommendationBlock
|
|
30
27
|
};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
var _ = Object.defineProperty;
|
|
2
|
-
var R = (
|
|
3
|
-
var r = (
|
|
4
|
-
import { currencyDecimalCounts as
|
|
5
|
-
import { UEAttr as
|
|
6
|
-
import { CommonControl as
|
|
7
|
-
import { useRecommendationExtensionStore as
|
|
8
|
-
|
|
9
|
-
import { DEFAULT_CARD_COMPOSITION as C, getDefaultProducts as E } from "./templates/templateUtils.js";
|
|
10
|
-
import { useDebounceFn as U } from "../../../node_modules/@vueuse/shared/index.js";
|
|
11
|
-
const L = "ui-elements-recommendation-block", t = {
|
|
2
|
+
var R = (o, n, e) => n in o ? _(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
|
|
3
|
+
var r = (o, n, e) => R(o, typeof n != "symbol" ? n + "" : n, e);
|
|
4
|
+
import { currencyDecimalCounts as c, currencyOperators as a, currencyLocationMaps as l } from "../../../enums/extensions/recommendationBlock.js";
|
|
5
|
+
import { UEAttr as d } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
6
|
+
import { CommonControl as m } from "../common-control.js";
|
|
7
|
+
import { useRecommendationExtensionStore as S } from "./store/recommendation.js";
|
|
8
|
+
const g = "ui-elements-recommendation-block", t = {
|
|
12
9
|
ALGORITHM: "strategy",
|
|
13
10
|
PRODUCT_IDS: "productIds",
|
|
14
11
|
LOCALE: "language",
|
|
@@ -24,21 +21,18 @@ const L = "ui-elements-recommendation-block", t = {
|
|
|
24
21
|
SHUFFLE_PRODUCTS: "shuffleProducts",
|
|
25
22
|
RESPONSIVE: "unresponsive"
|
|
26
23
|
};
|
|
27
|
-
class
|
|
24
|
+
class p extends m {
|
|
28
25
|
constructor() {
|
|
29
26
|
super(...arguments);
|
|
30
|
-
r(this, "store",
|
|
27
|
+
r(this, "store", S());
|
|
31
28
|
r(this, "storeUnsubscription", () => {
|
|
32
29
|
});
|
|
33
30
|
r(this, "addFilterListener", () => {
|
|
34
31
|
});
|
|
35
32
|
r(this, "addFilterButton", null);
|
|
36
|
-
r(this, "_debouncedRegenerateProductRows", U(() => {
|
|
37
|
-
this._regenerateProductRows();
|
|
38
|
-
}, 500));
|
|
39
33
|
}
|
|
40
34
|
getId() {
|
|
41
|
-
return
|
|
35
|
+
return g;
|
|
42
36
|
}
|
|
43
37
|
getTemplate() {
|
|
44
38
|
return `
|
|
@@ -84,22 +78,22 @@ class b extends g {
|
|
|
84
78
|
});
|
|
85
79
|
}
|
|
86
80
|
_initializeSelectItems() {
|
|
87
|
-
const { store: e } = this,
|
|
88
|
-
[t.ALGORITHM]:
|
|
81
|
+
const { store: e } = this, s = e.getActivePredictiveAlgorithms, i = e.getLanguages, C = {
|
|
82
|
+
[t.ALGORITHM]: s,
|
|
89
83
|
[t.LOCALE]: i,
|
|
90
84
|
[t.CURRENCY]: e.currencyList,
|
|
91
|
-
[t.CURRENCY_LOCATION]:
|
|
85
|
+
[t.CURRENCY_LOCATION]: l,
|
|
92
86
|
[t.CURRENCY_SYMBOL]: e.getCurrencySymbolList,
|
|
93
|
-
[t.CURRENCY_THOUSAND_SEPARATOR]:
|
|
94
|
-
[t.CURRENCY_DECIMAL_SEPARATOR]:
|
|
95
|
-
[t.CURRENCY_DECIMAL_COUNT]:
|
|
87
|
+
[t.CURRENCY_THOUSAND_SEPARATOR]: a,
|
|
88
|
+
[t.CURRENCY_DECIMAL_SEPARATOR]: a,
|
|
89
|
+
[t.CURRENCY_DECIMAL_COUNT]: c,
|
|
96
90
|
[t.PRODUCT_COUNT]: Number(e.recommendationConfigs.size),
|
|
97
91
|
[t.PRODUCT_IN_ROW]: e.recommendationConfigs.cardsInRow,
|
|
98
92
|
[t.SHUFFLE_PRODUCTS]: e.recommendationConfigs.shuffleProducts,
|
|
99
93
|
[t.RESPONSIVE]: !e.recommendationConfigs.unresponsive
|
|
100
94
|
};
|
|
101
|
-
Object.entries(
|
|
102
|
-
this.api.setUIEAttribute(u,
|
|
95
|
+
Object.entries(C).forEach(([u, h]) => {
|
|
96
|
+
this.api.setUIEAttribute(u, d.SELECTPICKER.items, h);
|
|
103
97
|
});
|
|
104
98
|
}
|
|
105
99
|
_getAlgorithms() {
|
|
@@ -145,7 +139,7 @@ class b extends g {
|
|
|
145
139
|
this._GuSelect({
|
|
146
140
|
name: t.CURRENCY_LOCATION,
|
|
147
141
|
placeholder: "Select Currency Location",
|
|
148
|
-
options:
|
|
142
|
+
options: l
|
|
149
143
|
}),
|
|
150
144
|
this._GuLabel({ text: "Currency Symbol" }),
|
|
151
145
|
this._GuSelect({
|
|
@@ -157,19 +151,19 @@ class b extends g {
|
|
|
157
151
|
this._GuSelect({
|
|
158
152
|
name: t.CURRENCY_THOUSAND_SEPARATOR,
|
|
159
153
|
placeholder: "Select Thousand Separator",
|
|
160
|
-
options:
|
|
154
|
+
options: a
|
|
161
155
|
}),
|
|
162
156
|
this._GuLabel({ text: "Decimal Separator" }),
|
|
163
157
|
this._GuSelect({
|
|
164
158
|
name: t.CURRENCY_DECIMAL_SEPARATOR,
|
|
165
159
|
placeholder: "Select Decimal Separator",
|
|
166
|
-
options:
|
|
160
|
+
options: a
|
|
167
161
|
}),
|
|
168
162
|
this._GuLabel({ text: "Decimal Count" }),
|
|
169
163
|
this._GuSelect({
|
|
170
164
|
name: t.CURRENCY_DECIMAL_COUNT,
|
|
171
165
|
placeholder: "Select Decimal Count",
|
|
172
|
-
options:
|
|
166
|
+
options: c
|
|
173
167
|
})
|
|
174
168
|
])}
|
|
175
169
|
`;
|
|
@@ -223,62 +217,39 @@ class b extends g {
|
|
|
223
217
|
filterSelectionDrawerStatus: !0
|
|
224
218
|
});
|
|
225
219
|
}
|
|
226
|
-
_onDataChange(e,
|
|
227
|
-
this.currentNode &&
|
|
220
|
+
_onDataChange(e, s) {
|
|
221
|
+
this.currentNode && this.store.$patch({
|
|
228
222
|
recommendationConfigs: {
|
|
229
|
-
[e]:
|
|
223
|
+
[e]: s
|
|
230
224
|
}
|
|
231
|
-
})
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Get the current card composition from block data attribute or use default
|
|
235
|
-
*/
|
|
236
|
-
_getCardComposition() {
|
|
237
|
-
if (!this.currentNode)
|
|
238
|
-
return C;
|
|
239
|
-
const e = this.currentNode.querySelector(".ins-recommendation-v3-block-v2");
|
|
240
|
-
if (!e || !("getAttribute" in e))
|
|
241
|
-
return C;
|
|
242
|
-
const o = e.getAttribute("data-card-composition");
|
|
243
|
-
return o ? o.split(",").filter(Boolean) : C;
|
|
244
|
-
}
|
|
245
|
-
_regenerateProductRows() {
|
|
246
|
-
if (!this.currentNode || !("querySelector" in this.currentNode))
|
|
247
|
-
return;
|
|
248
|
-
const e = this.currentNode.querySelector(".ins-recommendation-product-container");
|
|
249
|
-
if (!e) {
|
|
250
|
-
console.error("Could not find container table for product rows");
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
const o = this.store.recommendationProducts.length > 0 ? this.store.recommendationProducts : E(), { cardsInRow: i } = this.store.recommendationConfigs, a = this._getCardComposition(), u = p(o, i, a);
|
|
254
|
-
this.api.getDocumentModifier().modifyHtml(e).setInnerHtml(u).apply(new S("Updated product"));
|
|
225
|
+
});
|
|
255
226
|
}
|
|
256
|
-
_onCurrencyConfigChange(e,
|
|
227
|
+
_onCurrencyConfigChange(e, s) {
|
|
257
228
|
this.currentNode && this.store.$patch({
|
|
258
229
|
recommendationConfigs: {
|
|
259
230
|
currencySettings: {
|
|
260
|
-
[e]:
|
|
231
|
+
[e]: s
|
|
261
232
|
}
|
|
262
233
|
}
|
|
263
234
|
});
|
|
264
235
|
}
|
|
265
236
|
_onCurrencyChange(e) {
|
|
266
|
-
const [,
|
|
237
|
+
const [, s] = e.split(".");
|
|
267
238
|
this.store.$patch({
|
|
268
239
|
recommendationConfigs: {
|
|
269
240
|
currencySettings: {
|
|
270
|
-
name:
|
|
271
|
-
value:
|
|
241
|
+
name: s,
|
|
242
|
+
value: s
|
|
272
243
|
}
|
|
273
244
|
}
|
|
274
245
|
});
|
|
275
246
|
}
|
|
276
247
|
_setProductIdsVisibility() {
|
|
277
|
-
const { recommendationConfigs: e } = this.store,
|
|
278
|
-
this.api.setVisibility(t.PRODUCT_IDS,
|
|
248
|
+
const { recommendationConfigs: e } = this.store, s = e.strategy === "manualMerchandising";
|
|
249
|
+
this.api.setVisibility(t.PRODUCT_IDS, s), this.api.setVisibility(`${t.PRODUCT_IDS}_label`, s);
|
|
279
250
|
}
|
|
280
251
|
_listenToFormUpdates() {
|
|
281
|
-
var
|
|
252
|
+
var s;
|
|
282
253
|
this.api.onValueChanged(t.ALGORITHM, (i) => {
|
|
283
254
|
this._onDataChange(t.ALGORITHM, i), this._setProductIdsVisibility();
|
|
284
255
|
}), this.api.onValueChanged(t.PRODUCT_IDS, (i) => this._onDataChange(t.PRODUCT_IDS, i.split(",") || [])), this.api.onValueChanged(t.LOCALE, (i) => this._onDataChange(t.LOCALE, i)), this.api.onValueChanged(t.CURRENCY, (i) => this._onCurrencyChange(i)), [
|
|
@@ -288,19 +259,19 @@ class b extends g {
|
|
|
288
259
|
t.CURRENCY_DECIMAL_SEPARATOR,
|
|
289
260
|
t.CURRENCY_DECIMAL_COUNT
|
|
290
261
|
].forEach((i) => {
|
|
291
|
-
this.api.onValueChanged(i, (
|
|
292
|
-
}), this.api.onValueChanged(t.PRODUCT_COUNT, (i) => this._onDataChange(t.PRODUCT_COUNT, i.toString())), this.api.onValueChanged(t.PRODUCT_IN_ROW, (i) => this._onDataChange(t.PRODUCT_IN_ROW, i)), this.api.onValueChanged(t.SHUFFLE_PRODUCTS, (i) => this._onDataChange(t.SHUFFLE_PRODUCTS, i)), this.api.onValueChanged(t.RESPONSIVE, (i) => this._onDataChange(t.RESPONSIVE, i)), this.addFilterListener = this._onFilterSelectClick.bind(this), this.addFilterButton = this.getContainer().querySelector("#guido__btn-add-filter"), (
|
|
262
|
+
this.api.onValueChanged(i, (C) => this._onCurrencyConfigChange(i, C));
|
|
263
|
+
}), this.api.onValueChanged(t.PRODUCT_COUNT, (i) => this._onDataChange(t.PRODUCT_COUNT, i.toString())), this.api.onValueChanged(t.PRODUCT_IN_ROW, (i) => this._onDataChange(t.PRODUCT_IN_ROW, i)), this.api.onValueChanged(t.SHUFFLE_PRODUCTS, (i) => this._onDataChange(t.SHUFFLE_PRODUCTS, i)), this.api.onValueChanged(t.RESPONSIVE, (i) => this._onDataChange(t.RESPONSIVE, i)), this.addFilterListener = this._onFilterSelectClick.bind(this), this.addFilterButton = this.getContainer().querySelector("#guido__btn-add-filter"), (s = this.addFilterButton) == null || s.addEventListener("click", this.addFilterListener);
|
|
293
264
|
}
|
|
294
265
|
_listenStateUpdates() {
|
|
295
266
|
this.storeUnsubscription = this.store.$subscribe((e) => {
|
|
296
267
|
if ("payload" in e) {
|
|
297
|
-
const
|
|
298
|
-
|
|
268
|
+
const s = e.payload.recommendationConfigs;
|
|
269
|
+
s && (this.api.updateValues(s), this.store.fetchRecommendationProducts());
|
|
299
270
|
}
|
|
300
271
|
});
|
|
301
272
|
}
|
|
302
273
|
}
|
|
303
274
|
export {
|
|
304
|
-
|
|
305
|
-
|
|
275
|
+
g as CONTROL_BLOCK_ID,
|
|
276
|
+
p as RecommendationBlockControl
|
|
306
277
|
};
|
|
@@ -1,45 +1,10 @@
|
|
|
1
1
|
import { ExtensionBuilder as o } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
-
import { RecommendationBlock as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import { ButtonColorControl as i } from "./controls/button/color.js";
|
|
9
|
-
import { ButtonFitToContentControl as C } from "./controls/button/fitToContent.js";
|
|
10
|
-
import { ButtonFontFamilyControl as a } from "./controls/button/fontFamily.js";
|
|
11
|
-
import { ButtonMarginsControl as e } from "./controls/button/margins.js";
|
|
12
|
-
import { ButtonPaddingsControl as p } from "./controls/button/paddings.js";
|
|
13
|
-
import { ButtonTextControl as f } from "./controls/button/text.js";
|
|
14
|
-
import { ButtonTextSizeControl as c } from "./controls/button/textSize.js";
|
|
15
|
-
import { ButtonTextStyleAndFontColorControl as s } from "./controls/button/textStyleAndFontColor.js";
|
|
16
|
-
import { ImageMarginsControl as g } from "./controls/image/margins.js";
|
|
17
|
-
import { ImageSizeControl as B } from "./controls/image/size.js";
|
|
18
|
-
import { NameAlignControl as P } from "./controls/name/align.js";
|
|
19
|
-
import { NameBackgroundControl as u } from "./controls/name/background.js";
|
|
20
|
-
import { NameColorControl as y } from "./controls/name/color.js";
|
|
21
|
-
import { NameFontFamilyControl as S } from "./controls/name/fontFamily.js";
|
|
22
|
-
import { NamePaddingsControl as F } from "./controls/name/paddings.js";
|
|
23
|
-
import { NameSizeControl as R } from "./controls/name/size.js";
|
|
24
|
-
import { NameStyleControl as N } from "./controls/name/style.js";
|
|
25
|
-
import { OldPriceAlignControl as O } from "./controls/oldPrice/align.js";
|
|
26
|
-
import { OldPriceBackgroundControl as k } from "./controls/oldPrice/background.js";
|
|
27
|
-
import { OldPriceColorControl as x } from "./controls/oldPrice/color.js";
|
|
28
|
-
import { OldPriceFontFamilyControl as z } from "./controls/oldPrice/fontFamily.js";
|
|
29
|
-
import { OldPricePaddingsControl as A } from "./controls/oldPrice/paddings.js";
|
|
30
|
-
import { OldPriceSizeControl as I } from "./controls/oldPrice/size.js";
|
|
31
|
-
import { OldPriceStyleControl as T } from "./controls/oldPrice/style.js";
|
|
32
|
-
import { PriceAlignControl as w } from "./controls/price/align.js";
|
|
33
|
-
import { PriceBackgroundControl as h } from "./controls/price/background.js";
|
|
34
|
-
import { PriceColorControl as E } from "./controls/price/color.js";
|
|
35
|
-
import { PriceFontFamilyControl as M } from "./controls/price/fontFamily.js";
|
|
36
|
-
import { PricePaddingsControl as b } from "./controls/price/paddings.js";
|
|
37
|
-
import { PriceSizeControl as j } from "./controls/price/size.js";
|
|
38
|
-
import { PriceStyleControl as q } from "./controls/price/style.js";
|
|
39
|
-
import { RecommendationIconsRegistry as v } from "./iconsRegistry.js";
|
|
40
|
-
import D from "./recommendation.css.js";
|
|
41
|
-
import { SettingsPanel as G } from "./settingsPanel.js";
|
|
42
|
-
const Io = new o().addBlock(r).withSettingsPanelRegistry(G).addControl(n).addControl(d).addControl(l).addControl(m).addControl(i).addControl(C).addControl(a).addControl(e).addControl(p).addControl(f).addControl(c).addControl(s).addControl(g).addControl(B).addControl(P).addControl(u).addControl(y).addControl(S).addControl(F).addControl(R).addControl(N).addControl(O).addControl(k).addControl(x).addControl(z).addControl(A).addControl(I).addControl(T).addControl(w).addControl(h).addControl(E).addControl(M).addControl(b).addControl(j).addControl(q).addControl(t).addStyles(D).withIconsRegistry(v).build();
|
|
2
|
+
import { RecommendationBlock as t } from "./block.js";
|
|
3
|
+
import { RecommendationBlockControl as e } from "./control.js";
|
|
4
|
+
import { RecommendationIconsRegistry as n } from "./iconsRegistry.js";
|
|
5
|
+
import i from "./recommendation.css.js";
|
|
6
|
+
import { SettingsPanel as m } from "./settingsPanel.js";
|
|
7
|
+
const f = new o().addBlock(t).withSettingsPanelRegistry(m).addControl(e).addStyles(i).withIconsRegistry(n).build();
|
|
43
8
|
export {
|
|
44
|
-
|
|
9
|
+
f as default
|
|
45
10
|
};
|