@useinsider/guido 1.0.1-beta.61557b9 → 1.0.1-beta.94a30a8

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,18 +1,18 @@
1
1
  import i from "./Guido.vue2.js";
2
2
  /* empty css */
3
3
  import s from "../_virtual/_plugin-vue2_normalizer.js";
4
- var t = function() {
4
+ var a = function() {
5
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), e.previewStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isPreviewModeOpen, expression: "!previewStore.isPreviewModeOpen" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer)], 1);
7
- }, a = [], d = /* @__PURE__ */ s(
6
+ return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": !e.guidoConfig.useHeader } }, [r(e.HeaderWrapper), e.previewStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isPreviewModeOpen, expression: "!previewStore.isPreviewModeOpen" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": !e.guidoConfig.useHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer)], 1);
7
+ }, t = [], d = /* @__PURE__ */ s(
8
8
  i,
9
- t,
10
9
  a,
10
+ t,
11
11
  !1,
12
12
  null,
13
- "cbc48fd7"
13
+ "9fa9554d"
14
14
  );
15
- const c = d.exports;
15
+ const u = d.exports;
16
16
  export {
17
- c as default
17
+ u as default
18
18
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as _, defineAsyncComponent as L, computed as b, onMounted as k, onUnmounted as A } from "vue";
2
- import { provideGuidoActions as H } from "../composables/useGuidoActions.js";
1
+ import { defineComponent as I, defineAsyncComponent as P, computed as _, onMounted as L, onUnmounted as k } from "vue";
2
+ import { provideGuidoActions as A } from "../composables/useGuidoActions.js";
3
3
  import { usePartner as N } from "../composables/usePartner.js";
4
4
  import { useStripo as U } from "../composables/useStripo.js";
5
5
  import { DefaultUsername as x, DefaultMessageType as M, DefaultGuidoConfig as W } from "../enums/defaults.js";
6
6
  import z from "./organisms/base/Toaster.vue.js";
7
7
  import B from "./organisms/header/HeaderWrapper.vue.js";
8
8
  import F from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
9
- import { useStripoApi as K } from "../services/stripoApi.js";
10
- import { useDynamicContentStore as R } from "../stores/dynamic-content.js";
11
- import { useEditorStore as j } from "../stores/editor.js";
12
- import { usePreviewStore as q } from "../stores/preview.js";
13
- import J from "../node_modules/lodash-es/merge.js";
14
- const ie = /* @__PURE__ */ _({
9
+ import { useStripoApi as H } from "../services/stripoApi.js";
10
+ import { useDynamicContentStore as K } from "../stores/dynamic-content.js";
11
+ import { useEditorStore as R } from "../stores/editor.js";
12
+ import { usePreviewStore as j } from "../stores/preview.js";
13
+ import q from "../node_modules/lodash-es/merge.js";
14
+ const se = /* @__PURE__ */ I({
15
15
  __name: "Guido",
16
16
  props: {
17
17
  templateId: null,
@@ -26,10 +26,10 @@ const ie = /* @__PURE__ */ _({
26
26
  guidoConfig: null
27
27
  },
28
28
  emits: ["dynamic-content:open", "back", "save:start", "save:complete"],
29
- setup(E, { expose: T, emit: t }) {
30
- const o = E, G = L(
29
+ setup(b, { expose: E, emit: t }) {
30
+ const o = b, T = P(
31
31
  () => import("./organisms/email-preview/PreviewContainer.vue.js")
32
- ), n = R(), a = j(), c = b(() => a.hasChanges), r = o.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: d } = N(), I = q(), {
32
+ ), n = K(), c = R(), a = _(() => c.hasChanges), r = o.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: d } = N(), G = j(), {
33
33
  templateId: l,
34
34
  userId: u,
35
35
  guidoConfig: p,
@@ -40,7 +40,7 @@ const ie = /* @__PURE__ */ _({
40
40
  messageType: y = M,
41
41
  username: C = x
42
42
  } = o;
43
- window.GuidoConfig = J(W, p), window.GuidoConfig.partner = {
43
+ window.GuidoConfig = q(W, p), window.GuidoConfig.partner = {
44
44
  partnerName: s,
45
45
  productType: i,
46
46
  messageType: y
@@ -52,11 +52,8 @@ const ie = /* @__PURE__ */ _({
52
52
  partnerName: s,
53
53
  productType: i,
54
54
  preselectedDynamicContentList: r
55
- }), { getDefaultTemplate: w } = K(), P = b(() => {
56
- var e;
57
- return !((e = window.GuidoConfig) != null && e.useHeader);
58
- });
59
- H({
55
+ }), { getDefaultTemplate: w } = H();
56
+ A({
60
57
  onBack: () => {
61
58
  console.debug("guido:back"), t("back");
62
59
  },
@@ -72,7 +69,7 @@ const ie = /* @__PURE__ */ _({
72
69
  }, S = () => {
73
70
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
74
71
  };
75
- return k(async () => {
72
+ return L(async () => {
76
73
  console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
77
74
  try {
78
75
  let e = {
@@ -89,17 +86,17 @@ const ie = /* @__PURE__ */ _({
89
86
  const h = e;
90
87
  console.debug("dynamic-content:open", h.detail), t("dynamic-content:open", h.detail);
91
88
  });
92
- }), A(() => {
89
+ }), k(() => {
93
90
  window.UIEditor.removeEditor();
94
- }), T({
91
+ }), E({
95
92
  dynamicContent: {
96
93
  insert: D,
97
94
  close: S
98
95
  },
99
- hasChanges: c
100
- }), { __sfc: !0, PreviewContainer: G, dynamicContentStore: n, props: o, editorStore: a, hasChanges: c, preselectedDynamicContentList: r, getPartnerName: m, getProductType: d, previewStore: I, templateId: l, userId: u, guidoConfig: p, html: f, css: g, partnerName: s, productType: i, messageType: y, username: C, emit: t, initPlugin: v, getDefaultTemplate: w, noHeader: P, insertDynamicContent: D, closeDynamicContent: S, Toaster: z, HeaderWrapper: B, SaveAsTemplateDrawer: F };
96
+ hasChanges: a
97
+ }), { __sfc: !0, PreviewContainer: T, dynamicContentStore: n, props: o, editorStore: c, hasChanges: a, preselectedDynamicContentList: r, getPartnerName: m, getProductType: d, previewStore: G, templateId: l, userId: u, guidoConfig: p, html: f, css: g, partnerName: s, productType: i, messageType: y, username: C, emit: t, initPlugin: v, getDefaultTemplate: w, insertDynamicContent: D, closeDynamicContent: S, Toaster: z, HeaderWrapper: B, SaveAsTemplateDrawer: F };
101
98
  }
102
99
  });
103
100
  export {
104
- ie as default
101
+ se as default
105
102
  };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- .version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-421ffc13] .guido__verion-history-view-option-selection-desktop svg,[data-v-421ffc13] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-421ffc13] .in-segments-wrapper__button_selected,[data-v-421ffc13] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-421ffc13] .in-tooltip-wrapper__icon{cursor:pointer}[data-v-aad05c54] .guido__view-option-selection-desktop svg,[data-v-aad05c54] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-aad05c54] .in-segments-wrapper__button_selected,[data-v-aad05c54] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-aad05c54] .in-tooltip-wrapper__icon{cursor:pointer}.guido-editor__wrapper[data-v-cbc48fd7],.guido-editor__container[data-v-cbc48fd7]{width:100%;height:calc(100vh - 122px)}.guido-editor__no-header[data-v-cbc48fd7]{height:calc(100vh - 75px)}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1
+ .version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-421ffc13] .guido__verion-history-view-option-selection-desktop svg,[data-v-421ffc13] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-421ffc13] .in-segments-wrapper__button_selected,[data-v-421ffc13] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-421ffc13] .in-tooltip-wrapper__icon{cursor:pointer}[data-v-aad05c54] .guido__view-option-selection-desktop svg,[data-v-aad05c54] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-aad05c54] .in-segments-wrapper__button_selected,[data-v-aad05c54] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-aad05c54] .in-tooltip-wrapper__icon{cursor:pointer}.guido-editor__wrapper[data-v-9fa9554d],.guido-editor__container[data-v-9fa9554d]{width:100%;height:calc(100vh - 122px)}.guido-editor__no-header[data-v-9fa9554d]{height:calc(100vh - 75px)}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.0.1-beta.61557b9",
3
+ "version": "1.0.1-beta.94a30a8",
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",