@useinsider/guido 1.0.3-beta.3dd93d0 → 1.0.3-beta.3f12f40
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 +32 -3
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/header/RightSlot.vue2.js +13 -13
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +4 -4
- package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +41 -44
- package/dist/composables/useActionsApi.js +1 -1
- package/dist/composables/useHtmlCompiler.js +13 -15
- package/dist/composables/useHtmlValidator.js +35 -36
- package/dist/composables/useStripo.js +25 -29
- package/dist/enums/defaults.js +4 -5
- package/dist/enums/onboarding.js +2 -3
- package/dist/enums/unsubscribe.js +26 -27
- package/dist/extensions/Blocks/Checkbox/control.js +14 -15
- package/dist/extensions/Blocks/Checkbox/template.js +9 -14
- package/dist/extensions/Blocks/Items/block.js +26 -26
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +57 -151
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +25 -25
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +129 -165
- package/dist/extensions/Blocks/Items/enums/controlEnums.js +2 -2
- package/dist/extensions/Blocks/Items/enums/productEnums.js +5 -84
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +2 -9
- package/dist/extensions/Blocks/Items/extension.js +6 -7
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +56 -57
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +56 -67
- package/dist/extensions/Blocks/Items/settingsPanel.js +43 -69
- package/dist/extensions/Blocks/Items/store/items-block.js +4 -8
- package/dist/extensions/Blocks/Items/template.js +62 -147
- package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +26 -35
- package/dist/extensions/Blocks/Items/utils/updateAttributes.js +27 -29
- package/dist/extensions/Blocks/RadioButton/control.js +17 -18
- package/dist/extensions/Blocks/RadioButton/template.js +9 -18
- package/dist/extensions/Blocks/Unsubscribe/block.js +41 -45
- package/dist/guido.css +1 -1
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +12 -13
- package/dist/node_modules/lodash-es/keysIn.js +3 -3
- package/dist/services/stripoApi.js +26 -38
- package/dist/src/enums/defaults.d.ts +0 -1
- package/dist/src/enums/onboarding.d.ts +0 -1
- package/dist/src/extensions/Blocks/Checkbox/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/block.d.ts +0 -14
- package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +7 -20
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +2 -8
- package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +0 -9
- package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +0 -7
- package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +0 -2
- package/dist/src/extensions/Blocks/Items/template.d.ts +1 -9
- package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +0 -6
- package/dist/src/extensions/Blocks/RadioButton/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +4 -3
- package/package.json +10 -5
- package/dist/config/compiler/itemsCompilerRules.js +0 -14
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +0 -92
- package/dist/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/lodash-es/_SetCache.js +0 -13
- package/dist/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/dist/node_modules/lodash-es/_arrayMap.js +0 -8
- package/dist/node_modules/lodash-es/_arrayPush.js +0 -8
- package/dist/node_modules/lodash-es/_arraySome.js +0 -9
- package/dist/node_modules/lodash-es/_baseEach.js +0 -6
- package/dist/node_modules/lodash-es/_baseFlatten.js +0 -13
- package/dist/node_modules/lodash-es/_baseForOwn.js +0 -8
- package/dist/node_modules/lodash-es/_baseGet.js +0 -11
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_baseHasIn.js +0 -6
- package/dist/node_modules/lodash-es/_baseIsEqual.js +0 -8
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
- package/dist/node_modules/lodash-es/_baseIsMatch.js +0 -29
- package/dist/node_modules/lodash-es/_baseIteratee.js +0 -11
- package/dist/node_modules/lodash-es/_baseKeys.js +0 -14
- package/dist/node_modules/lodash-es/_baseMap.js +0 -11
- package/dist/node_modules/lodash-es/_baseMatches.js +0 -12
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
- package/dist/node_modules/lodash-es/_baseProperty.js +0 -8
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +0 -9
- package/dist/node_modules/lodash-es/_baseRange.js +0 -9
- package/dist/node_modules/lodash-es/_baseToString.js +0 -18
- package/dist/node_modules/lodash-es/_baseTrim.js +0 -8
- package/dist/node_modules/lodash-es/_cacheHas.js +0 -6
- package/dist/node_modules/lodash-es/_castPath.js +0 -10
- package/dist/node_modules/lodash-es/_createBaseEach.js +0 -15
- package/dist/node_modules/lodash-es/_createRange.js +0 -11
- package/dist/node_modules/lodash-es/_equalArrays.js +0 -40
- package/dist/node_modules/lodash-es/_equalByTag.js +0 -45
- package/dist/node_modules/lodash-es/_equalObjects.js +0 -36
- package/dist/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/lodash-es/_getMatchData.js +0 -12
- package/dist/node_modules/lodash-es/_getSymbols.js +0 -10
- package/dist/node_modules/lodash-es/_getTag.js +0 -28
- package/dist/node_modules/lodash-es/_hasPath.js +0 -19
- package/dist/node_modules/lodash-es/_isFlattenable.js +0 -10
- package/dist/node_modules/lodash-es/_isKey.js +0 -12
- package/dist/node_modules/lodash-es/_isStrictComparable.js +0 -7
- package/dist/node_modules/lodash-es/_mapToArray.js +0 -9
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
- package/dist/node_modules/lodash-es/_memoizeCapped.js +0 -11
- package/dist/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/lodash-es/_setCacheAdd.js +0 -7
- package/dist/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/dist/node_modules/lodash-es/_setToArray.js +0 -9
- package/dist/node_modules/lodash-es/_stringToPath.js +0 -10
- package/dist/node_modules/lodash-es/_toKey.js +0 -10
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
- package/dist/node_modules/lodash-es/flatMap.js +0 -8
- package/dist/node_modules/lodash-es/get.js +0 -8
- package/dist/node_modules/lodash-es/hasIn.js +0 -8
- package/dist/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/lodash-es/map.js +0 -11
- package/dist/node_modules/lodash-es/property.js +0 -10
- package/dist/node_modules/lodash-es/range.js +0 -5
- package/dist/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/lodash-es/toFinite.js +0 -14
- package/dist/node_modules/lodash-es/toNumber.js +0 -22
- package/dist/node_modules/lodash-es/toString.js +0 -7
- package/dist/src/config/compiler/itemsCompilerRules.d.ts +0 -2
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +0 -15
- package/dist/src/utils/environmentUtil.d.ts +0 -5
- package/dist/src/utils/pairProductVariables.d.ts +0 -7
- package/dist/utils/environmentUtil.js +0 -4
- package/dist/utils/pairProductVariables.js +0 -136
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var u = (n, i, e) =>
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var d = (n, i, e) => i in n ? _(n, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[i] = e;
|
|
3
|
+
var u = (n, i, e) => d(n, typeof i != "symbol" ? i + "" : i, e);
|
|
4
4
|
import { PAGE_TYPES as E } from "../../../enums/unsubscribe.js";
|
|
5
5
|
import { useUnsubscribeStore as c } from "../../../stores/unsubscribe.js";
|
|
6
|
-
import { Block as
|
|
6
|
+
import { Block as S, BlockCompositionType as h, ModificationDescription as b } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
7
7
|
import { getDefaultTemplate as L } from "./template.js";
|
|
8
8
|
import { UNSUBSCRIBE_EVENTS as a, DATA_ATTRIBUTES as o } from "./utils/constants.js";
|
|
9
|
-
import { parsePageList as
|
|
10
|
-
const
|
|
9
|
+
import { parsePageList as m } from "./utils/utils.js";
|
|
10
|
+
const v = "unsubscribe-block", g = 'a[data-unsubscribe-link="true"]', B = ".unsubscribe-block-v2", f = "{{ins-unsubscribe-link}}", C = {
|
|
11
11
|
[E.GLOBAL_UNSUBSCRIBE]: "{{ins-global-unsubscribe-link}}",
|
|
12
12
|
[E.SUBSCRIPTION_PREFERENCE_CENTER]: "{{ins-preferences-unsubscribe-link}}"
|
|
13
13
|
};
|
|
14
|
-
class
|
|
14
|
+
class D extends S {
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
17
17
|
u(this, "selectEventListener", null);
|
|
@@ -19,13 +19,13 @@ class R extends h {
|
|
|
19
19
|
u(this, "currentNode");
|
|
20
20
|
}
|
|
21
21
|
getId() {
|
|
22
|
-
return
|
|
22
|
+
return v;
|
|
23
23
|
}
|
|
24
24
|
getIcon() {
|
|
25
25
|
return "unsubscribe-icon";
|
|
26
26
|
}
|
|
27
27
|
getBlockCompositionType() {
|
|
28
|
-
return
|
|
28
|
+
return h.BLOCK;
|
|
29
29
|
}
|
|
30
30
|
getName() {
|
|
31
31
|
return this.api.translate("Unsubscribe Block");
|
|
@@ -36,8 +36,11 @@ class R extends h {
|
|
|
36
36
|
getTemplate() {
|
|
37
37
|
return L();
|
|
38
38
|
}
|
|
39
|
+
onCreated(e) {
|
|
40
|
+
"getAttribute" in e && e.getAttribute("data-migration") || (this.currentNode = e, this._resetStoreState(), this._setupSelectEventListener(), this._setupCancelEventListener(), this._checkExistingBlocks(), this._openDrawer());
|
|
41
|
+
}
|
|
39
42
|
onSelect(e) {
|
|
40
|
-
this.currentNode = e,
|
|
43
|
+
this.currentNode = e, this._resetStoreState(), this._loadBlockState(e), this._setupSelectEventListener();
|
|
41
44
|
}
|
|
42
45
|
onDelete(e) {
|
|
43
46
|
this._removeEventListeners(), this._removeBlockTemplatesFromStore(e), this._resetStoreState();
|
|
@@ -47,8 +50,8 @@ class R extends h {
|
|
|
47
50
|
}
|
|
48
51
|
_setupSelectEventListener() {
|
|
49
52
|
this._removeSelectEventListener(), this.selectEventListener = (e) => {
|
|
50
|
-
const
|
|
51
|
-
this._updateBlock(t,
|
|
53
|
+
const r = e, { collectionType: t, selectedPages: s } = r.detail;
|
|
54
|
+
this._updateBlock(t, s.join(","));
|
|
52
55
|
}, document.addEventListener(a.SELECT, this.selectEventListener);
|
|
53
56
|
}
|
|
54
57
|
_removeSelectEventListener() {
|
|
@@ -63,45 +66,38 @@ class R extends h {
|
|
|
63
66
|
this.cancelEventListener && (document.removeEventListener(a.CANCEL, this.cancelEventListener), this.cancelEventListener = null);
|
|
64
67
|
}
|
|
65
68
|
_handleCancel() {
|
|
66
|
-
|
|
67
|
-
if (!this.currentNode)
|
|
68
|
-
return;
|
|
69
|
-
this.api.getDocumentModifier().modifyHtml(this.currentNode).delete().apply(new b("Removed unsubscribe block due to cancel"));
|
|
70
|
-
} catch (e) {
|
|
71
|
-
console.warn("[UnsubscribeBlock] Failed to remove unsubscribe block:", e);
|
|
72
|
-
}
|
|
69
|
+
this.currentNode && this.api.getDocumentModifier().modifyHtml(this.currentNode).delete().apply(new b("Removed unsubscribe block due to cancel"));
|
|
73
70
|
}
|
|
74
71
|
_removeEventListeners() {
|
|
75
72
|
this._removeSelectEventListener(), this._removeCancelEventListener();
|
|
76
73
|
}
|
|
77
|
-
_updateBlock(e,
|
|
74
|
+
_updateBlock(e, r) {
|
|
78
75
|
if (!this.currentNode || !("querySelector" in this.currentNode))
|
|
79
76
|
return;
|
|
80
|
-
const t = this.currentNode.querySelector(
|
|
77
|
+
const t = this.currentNode.querySelector(g);
|
|
81
78
|
if (!t)
|
|
82
79
|
return;
|
|
83
|
-
const
|
|
84
|
-
this.api.getDocumentModifier().modifyHtml(t).setAttribute("href",
|
|
80
|
+
const s = this._getMergeTag(e);
|
|
81
|
+
this.api.getDocumentModifier().modifyHtml(t).setAttribute("href", s).apply(new b(`Updated unsubscribe link to ${s}`)), this.api.getDocumentModifier().modifyHtml(this.currentNode).setAttribute(o.PAGE_TYPE, e.toString()).setAttribute(o.PAGE_LIST, r).apply(new b("Updated unsubscribe block metadata"));
|
|
85
82
|
}
|
|
86
83
|
_getMergeTag(e) {
|
|
87
|
-
return
|
|
84
|
+
return C[e] ?? f;
|
|
88
85
|
}
|
|
89
86
|
_openDrawer() {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
87
|
+
try {
|
|
88
|
+
const e = c();
|
|
89
|
+
e.typeSelectionDrawerStatus = !0;
|
|
90
|
+
} catch (e) {
|
|
91
|
+
console.error("[UnsubscribeBlock] Failed to open drawer:", e);
|
|
92
|
+
}
|
|
97
93
|
}
|
|
98
94
|
_checkExistingBlocks() {
|
|
99
95
|
const e = c();
|
|
100
|
-
e.isGlobalUnsubscribeDisabled = !1, e.isSubscriptionPreferencesCenterDisabled = !1, this.api.getDocumentRoot().querySelectorAll(
|
|
96
|
+
e.isGlobalUnsubscribeDisabled = !1, e.isSubscriptionPreferencesCenterDisabled = !1, this.api.getDocumentRoot().querySelectorAll(B).forEach((t) => {
|
|
101
97
|
if ("getAttribute" in t) {
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
104
|
-
const l = Number(
|
|
98
|
+
const s = t.getAttribute(o.PAGE_TYPE);
|
|
99
|
+
if (s) {
|
|
100
|
+
const l = Number(s);
|
|
105
101
|
l === E.GLOBAL_UNSUBSCRIBE ? e.isGlobalUnsubscribeDisabled = !0 : l === E.SUBSCRIPTION_PREFERENCE_CENTER && (e.isSubscriptionPreferencesCenterDisabled = !0);
|
|
106
102
|
}
|
|
107
103
|
}
|
|
@@ -110,11 +106,11 @@ class R extends h {
|
|
|
110
106
|
_loadBlockState(e) {
|
|
111
107
|
if (!("getAttribute" in e))
|
|
112
108
|
return;
|
|
113
|
-
const
|
|
114
|
-
if (!
|
|
109
|
+
const r = e.getAttribute(o.PAGE_TYPE), t = e.getAttribute(o.PAGE_LIST);
|
|
110
|
+
if (!r || !t)
|
|
115
111
|
return;
|
|
116
|
-
const
|
|
117
|
-
|
|
112
|
+
const s = c(), l = Number(r), p = m(t);
|
|
113
|
+
s.setCollectionWithoutAutoSelection(l), s.loadSelectedTemplates(p);
|
|
118
114
|
}
|
|
119
115
|
_resetStoreState() {
|
|
120
116
|
c().$reset();
|
|
@@ -122,14 +118,14 @@ class R extends h {
|
|
|
122
118
|
_removeBlockTemplatesFromStore(e) {
|
|
123
119
|
if (!("getAttribute" in e))
|
|
124
120
|
return;
|
|
125
|
-
const
|
|
126
|
-
if (!
|
|
121
|
+
const r = e.getAttribute(o.PAGE_LIST);
|
|
122
|
+
if (!r)
|
|
127
123
|
return;
|
|
128
|
-
const t = c(),
|
|
129
|
-
t.removeUnsubscribePages(
|
|
124
|
+
const t = c(), s = m(r);
|
|
125
|
+
t.removeUnsubscribePages(s);
|
|
130
126
|
}
|
|
131
127
|
}
|
|
132
128
|
export {
|
|
133
|
-
|
|
134
|
-
|
|
129
|
+
v as UNSUBSCRIBE_BLOCK_ID,
|
|
130
|
+
D as UnsubscribeBlock
|
|
135
131
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gap-16[data-v-6562e38c],.gap-16[data-v-1ccb6d4a]{gap:16px}[data-v-0502bceb] .in-button-v2__wrapper{line-height:0}[data-v-b5997368] .in-segments-wrapper .in-tooltip-wrapper__box{text-align:left}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}.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}.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}.guido-loading__wrapper[data-v-
|
|
1
|
+
.gap-16[data-v-6562e38c],.gap-16[data-v-1ccb6d4a]{gap:16px}[data-v-0502bceb] .in-button-v2__wrapper{line-height:0}[data-v-b5997368] .in-segments-wrapper .in-tooltip-wrapper__box{text-align:left}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}.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}.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}.guido-loading__wrapper[data-v-dced5582]{height:100%;top:75px}.guido-editor__wrapper[data-v-23c413c9],.guido-editor__container[data-v-23c413c9]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-23c413c9]{height:calc(100vh - 75px)}[data-v-70835920] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-a86fc486]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-a86fc486]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-a86fc486]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-a86fc486]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-a86fc486]{object-fit:cover;transform:scale(1)}[data-v-dd57102d] .guido__verion-history-view-option-selection-desktop svg,[data-v-dd57102d] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-dd57102d] .in-segments-wrapper__button_selected,[data-v-dd57102d] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.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}[data-v-d3c52b44] .vueperslides__bullets,[data-v-c8bd3ee6] .vueperslides__bullets{pointer-events:none!important}[data-v-c8bd3ee6] .vueperslides__parallax-wrapper{height:110px!important}[data-v-a408dcea] .vueperslides__bullets{pointer-events:none!important}[data-v-a408dcea] .vueperslides__parallax-wrapper{height:110px!important}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import p from "./_baseTimes.js";
|
|
2
2
|
import g from "./isArguments.js";
|
|
3
3
|
import h from "./isArray.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
(p || O.call(t, r)) && !(n && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
4
|
+
import a from "./isBuffer.js";
|
|
5
|
+
import d from "./_isIndex.js";
|
|
6
|
+
import A from "./isTypedArray.js";
|
|
7
|
+
function c(i, b) {
|
|
8
|
+
var t = h(i), f = !t && g(i), s = !t && !f && a(i), o = !t && !f && !s && A(i), n = t || f || s || o, e = n ? p(i.length, String) : [], m = e.length;
|
|
9
|
+
for (var r in i)
|
|
10
|
+
n && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
12
11
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
13
12
|
s && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return
|
|
13
|
+
o && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
14
|
+
d(r, m)) || e.push(r);
|
|
15
|
+
return e;
|
|
17
16
|
}
|
|
18
17
|
export {
|
|
19
|
-
|
|
18
|
+
c as default
|
|
20
19
|
};
|
|
@@ -1,61 +1,49 @@
|
|
|
1
|
-
import { useHttp as
|
|
2
|
-
import { useToaster as
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const { get: s } = m(), { handleError: n } = p();
|
|
1
|
+
import { useHttp as a } from "../composables/useHttp.js";
|
|
2
|
+
import { useToaster as s } from "../composables/useToaster.js";
|
|
3
|
+
const m = () => {
|
|
4
|
+
const { get: r } = a(), { handleError: o } = s();
|
|
6
5
|
return {
|
|
7
6
|
getToken: async () => {
|
|
8
7
|
try {
|
|
9
|
-
const
|
|
10
|
-
return
|
|
11
|
-
} catch (
|
|
12
|
-
return
|
|
8
|
+
const t = Number(localStorage.getItem("ins-guido-test-instance")), { data: e } = await r(`/stripo/get-user-token?test=${t}`);
|
|
9
|
+
return e.body.token;
|
|
10
|
+
} catch (t) {
|
|
11
|
+
return o(t, "Failed to fetch token"), "";
|
|
13
12
|
}
|
|
14
13
|
},
|
|
15
14
|
getCustomFonts: async () => {
|
|
16
15
|
try {
|
|
17
|
-
const { data:
|
|
18
|
-
return
|
|
19
|
-
...
|
|
16
|
+
const { data: t = [] } = await r("/stripo/get-partner-custom-fonts");
|
|
17
|
+
return t.map((e) => ({
|
|
18
|
+
...e,
|
|
20
19
|
active: !0
|
|
21
20
|
}));
|
|
22
|
-
} catch (
|
|
23
|
-
return
|
|
21
|
+
} catch (t) {
|
|
22
|
+
return o(t, "Failed to fetch custom fonts"), [];
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
25
|
getDefaultTemplate: async () => {
|
|
27
|
-
|
|
28
|
-
const e = {
|
|
26
|
+
const t = {
|
|
29
27
|
html: "",
|
|
30
28
|
css: "",
|
|
31
29
|
forceRecreate: !0
|
|
32
30
|
};
|
|
33
31
|
try {
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
htmlLength: ((a = t == null ? void 0 : t.html) == null ? void 0 : a.length) || 0
|
|
46
|
-
}), !t || typeof t != "object" || !("html" in t) || !("css" in t) ? (console.debug("getDefaultTemplate: Invalid data, returning fallback"), e) : (console.debug("getDefaultTemplate: Returning valid template", {
|
|
47
|
-
htmlLength: t.html.length,
|
|
48
|
-
cssLength: t.css.length
|
|
49
|
-
}), {
|
|
50
|
-
...t,
|
|
51
|
-
forceRecreate: !0
|
|
52
|
-
});
|
|
53
|
-
} catch (c) {
|
|
54
|
-
return console.debug("getDefaultTemplate: Error occurred", c), n(c, "Failed to fetch default template"), e;
|
|
32
|
+
const { data: e } = await r("/stripo/default-template/0");
|
|
33
|
+
try {
|
|
34
|
+
return {
|
|
35
|
+
...JSON.parse(e),
|
|
36
|
+
forceRecreate: !0
|
|
37
|
+
};
|
|
38
|
+
} catch {
|
|
39
|
+
return t;
|
|
40
|
+
}
|
|
41
|
+
} catch (e) {
|
|
42
|
+
return o(e, "Failed to fetch default template"), t;
|
|
55
43
|
}
|
|
56
44
|
}
|
|
57
45
|
};
|
|
58
46
|
};
|
|
59
47
|
export {
|
|
60
|
-
|
|
48
|
+
m as useStripoApi
|
|
61
49
|
};
|
|
@@ -8,6 +8,5 @@ export declare const DefaultProductType = "email";
|
|
|
8
8
|
export declare const DefaultUsername = "Guido User";
|
|
9
9
|
export declare const DefaultMessageType: number;
|
|
10
10
|
export declare const EditorType: number;
|
|
11
|
-
export declare const MAX_DEFAULT_TEMPLATE_ID = 13;
|
|
12
11
|
export declare const ProductIds: Record<string, number>;
|
|
13
12
|
export declare const TEST_PARTNER_LIST: string[];
|
|
@@ -2,5 +2,4 @@ export declare const SERVICE_HOVER_SELECTORS: string[];
|
|
|
2
2
|
export declare const UI_EDITOR_SELECTOR = "ui-editor";
|
|
3
3
|
export declare const CARD_COMPOSITION_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Card Composition\"]";
|
|
4
4
|
export declare const SETTINGS_TAB_SELECTOR = "button[role=\"tab\"][aria-label=\"Settings\"]";
|
|
5
|
-
export declare const RIBBON_SELECTOR = ".in-ribbons-wrapper";
|
|
6
5
|
export declare const ACADEMY_LINK = "https://academy.useinsider.com/docs/email-drag-drop-editor";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const migrationTemplate = "\n <td\n align=\"left\"\n esd-extension-block-id=\"checkbox-block\"\n class=\"
|
|
1
|
+
declare const migrationTemplate = "\n <td \n align=\"left\" \n esd-extension-block-id=\"checkbox-block\" \n class=\"checkbox-block-v2 esd-block-checkbox esd-checkbox-block esd-extension-block es-p20\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"39\" style=\"vertical-align: top\">\n <input type=\"checkbox\">\n </td>\n <td align=\"left\" width=\"816\" style=\"vertical-align: top\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
|
|
2
2
|
/**
|
|
3
3
|
* @returns The template for the default checkbox block
|
|
4
4
|
*/
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import { Block, BlockCompositionType, ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
2
2
|
export declare const BLOCK_ID = "items-block";
|
|
3
|
-
/**
|
|
4
|
-
* Items Block extension for Stripo email editor.
|
|
5
|
-
*
|
|
6
|
-
* Displays personalized product items (cart items, browsed items, or purchased items)
|
|
7
|
-
* in a configurable card layout with horizontal or vertical orientation.
|
|
8
|
-
*
|
|
9
|
-
* Features:
|
|
10
|
-
* - Multiple product data sources (cart, browsed, purchased)
|
|
11
|
-
* - Configurable card composition (image, name, price, quantity, button)
|
|
12
|
-
* - Orientation control (horizontal/vertical)
|
|
13
|
-
* - Price formatting and currency display options
|
|
14
|
-
* - Product name trimming
|
|
15
|
-
* - Onboarding support
|
|
16
|
-
*/
|
|
17
3
|
export declare class ItemsBlock extends Block {
|
|
18
4
|
getId(): string;
|
|
19
5
|
getIcon(): string;
|
|
@@ -1,33 +1,20 @@
|
|
|
1
|
-
import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
2
1
|
import { CommonControl } from '../../common-control';
|
|
3
2
|
export declare const COMPOSITION_CONTROL_BLOCK_ID = "ui-elements-items-card-composition-block";
|
|
4
3
|
export declare class ItemsBlockCardCompositionControl extends CommonControl {
|
|
5
|
-
private store;
|
|
6
|
-
private visibilityState;
|
|
7
4
|
getId(): string;
|
|
8
5
|
getTemplate(): string;
|
|
9
6
|
onRender(): void;
|
|
10
|
-
|
|
7
|
+
onDestroy(): void;
|
|
11
8
|
_getToggleContainer({ name, label }: {
|
|
12
9
|
name: string;
|
|
13
10
|
label: string;
|
|
14
11
|
}): string;
|
|
15
12
|
_initializeToggles(): void;
|
|
16
|
-
_updateTogglesFromState(): void;
|
|
17
|
-
_syncVisibilityFromAttributes(): void;
|
|
18
|
-
/**
|
|
19
|
-
* If itemsType is not BROWSED_ITEMS, show quantity
|
|
20
|
-
* If itemsType is BROWSED_ITEMS, hide quantity
|
|
21
|
-
* and mark it as '0'
|
|
22
|
-
*/
|
|
23
|
-
_handleBrowsedItemsQuantity(): void;
|
|
24
|
-
_applyVisibilityStyles(): void;
|
|
25
|
-
_updateVisibilityAttribute(elementName: string, isVisible: boolean): void;
|
|
26
13
|
_listenToFormUpdates(): void;
|
|
27
|
-
_onProductImageChange(value:
|
|
28
|
-
_onProductNameChange(value:
|
|
29
|
-
_onProductQuantityChange(value:
|
|
30
|
-
_onProductPriceChange(value:
|
|
31
|
-
_onProductOriginalPriceChange(value:
|
|
32
|
-
_onProductButtonChange(value:
|
|
14
|
+
_onProductImageChange(value: string): void;
|
|
15
|
+
_onProductNameChange(value: string): void;
|
|
16
|
+
_onProductQuantityChange(value: string): void;
|
|
17
|
+
_onProductPriceChange(value: string): void;
|
|
18
|
+
_onProductOriginalPriceChange(value: string): void;
|
|
19
|
+
_onProductButtonChange(value: string): void;
|
|
33
20
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ProductType } from '@@/Types/extensions/items';
|
|
2
1
|
import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
3
2
|
import { CommonControl } from '../../common-control';
|
|
4
3
|
export declare const CONTROL_BLOCK_ID = "ui-elements-items-block";
|
|
@@ -13,7 +12,7 @@ export declare class ItemsBlockControl extends CommonControl {
|
|
|
13
12
|
_getOrientation(): string;
|
|
14
13
|
_getItemInCart(): string;
|
|
15
14
|
_onOrientationChange(value: string): void;
|
|
16
|
-
_onItemsTypeChange(value: string): void;
|
|
15
|
+
_onItemsTypeChange(value: string, oldValue: string): void;
|
|
17
16
|
_onItemIdsChange(value: string): void;
|
|
18
17
|
_initializeSelectItems(): void;
|
|
19
18
|
_listenToFormUpdates(): void;
|
|
@@ -31,13 +30,8 @@ export declare class ItemsBlockControl extends CommonControl {
|
|
|
31
30
|
_updatePrice(price: string): void;
|
|
32
31
|
_updateOriginalPrice(originalPrice: string): void;
|
|
33
32
|
_updateQuantity(quantity: string): void;
|
|
34
|
-
|
|
35
|
-
* @todo Optimize template reordering for performance.
|
|
36
|
-
* @description Reorders the template structure based on current orientation and visibility settings.
|
|
37
|
-
*/
|
|
33
|
+
_updateButton(button: string): void;
|
|
38
34
|
_reOrderTemplate(): void;
|
|
39
|
-
_updateDataTypeAttributes(itemsType: ProductType): void;
|
|
40
|
-
_updateDataNumberAttributes(itemId: string): void;
|
|
41
35
|
_reFillTemplate(): void;
|
|
42
36
|
_recalculateTrimming(): void;
|
|
43
37
|
private _getParagraphFromBlock;
|
|
@@ -44,7 +44,6 @@ export declare enum ItemsBlockControlId {
|
|
|
44
44
|
PRICE_FORMATTED_PRICE = "items-block-price-formatted-price-control",
|
|
45
45
|
PRICE_CURRENCY_SYMBOL = "items-block-price-currency-symbol-control",
|
|
46
46
|
PRICE_CURRENCY_LOCATION = "items-block-price-currency-location-control",
|
|
47
|
-
PRICE_ORIENTATION = "items-block-price-orientation-control",
|
|
48
47
|
NAME_ALIGN = "items-block-name-align-control",
|
|
49
48
|
NAME_COLOR = "items-block-name-color-control",
|
|
50
49
|
NAME_SIZE = "items-block-name-size-control",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const templateFirstLine = "<td align=\"center\" class=\"ins-product-td items-block items-block-v2\">";
|
|
2
1
|
export declare const configAttributes: {
|
|
3
2
|
TYPE: string;
|
|
4
3
|
ITEMS_INDEX_SELECT_CONTROL_VALUE: string;
|
|
@@ -8,7 +7,6 @@ export declare const configAttributes: {
|
|
|
8
7
|
PRODUCT_PRICE_FORMATTED: string;
|
|
9
8
|
PRODUCT_PRICE_CURRENCY_SYMBOL: string;
|
|
10
9
|
PRODUCT_PRICE_CURRENCY_LOCATION: string;
|
|
11
|
-
PRODUCT_ORIGINAL_PRICE_CONTROL_ORIENTATION: string;
|
|
12
10
|
PRODUCT_BUTTON_LINK: string;
|
|
13
11
|
PRODUCT_IMAGE_LINK: string;
|
|
14
12
|
PRODUCT_NAME_CONTROL_VALUE: string;
|
|
@@ -18,12 +16,6 @@ export declare const configAttributes: {
|
|
|
18
16
|
NAME_CONTROL_ENABLED: string;
|
|
19
17
|
QUANTITY_CONTROL_ENABLED: string;
|
|
20
18
|
PRICE_CONTROL_OPENED: string;
|
|
21
|
-
PRODUCT_IMAGE_VISIBLE: string;
|
|
22
|
-
PRODUCT_NAME_VISIBLE: string;
|
|
23
|
-
PRODUCT_QUANTITY_VISIBLE: string;
|
|
24
|
-
PRODUCT_PRICE_VISIBLE: string;
|
|
25
|
-
PRODUCT_ORIGINAL_PRICE_VISIBLE: string;
|
|
26
|
-
PRODUCT_BUTTON_VISIBLE: string;
|
|
27
19
|
};
|
|
28
20
|
export declare const productPairs: {
|
|
29
21
|
PAIRS_FOR_EXTENSION: {
|
|
@@ -160,4 +152,3 @@ export declare const productPairs: {
|
|
|
160
152
|
};
|
|
161
153
|
};
|
|
162
154
|
};
|
|
163
|
-
export declare const itemsBlockDynamicVariables: string[];
|
|
@@ -34,13 +34,6 @@ export declare const DefaultConfigValues: {
|
|
|
34
34
|
productNameControlTrim: string;
|
|
35
35
|
productQuantityControlEnabled: string;
|
|
36
36
|
productPriceControlOpened: string;
|
|
37
|
-
productImageVisible: string;
|
|
38
|
-
productNameVisible: string;
|
|
39
|
-
productQuantityVisible: string;
|
|
40
|
-
productPriceVisible: string;
|
|
41
|
-
productOriginalPriceVisible: string;
|
|
42
|
-
productButtonVisible: string;
|
|
43
|
-
productImageWidth: string;
|
|
44
37
|
};
|
|
45
38
|
export declare const ItemInCartOptions: {
|
|
46
39
|
[x: string]: {
|
|
@@ -10,7 +10,6 @@ interface ItemsBlockState {
|
|
|
10
10
|
currencySymbol: string;
|
|
11
11
|
currencyLocation: string;
|
|
12
12
|
formattedPrice: boolean;
|
|
13
|
-
priceOrientation: 'vertical' | 'horizontal';
|
|
14
13
|
templateData: {
|
|
15
14
|
imageSrc: string;
|
|
16
15
|
name: string;
|
|
@@ -31,7 +30,6 @@ export declare const useItemsBlockStore: import("pinia").StoreDefinition<"guidoI
|
|
|
31
30
|
setCurrencySymbol(currencySymbol: string): void;
|
|
32
31
|
setCurrencyLocation(currencyLocation: string): void;
|
|
33
32
|
setFormattedPrice(formattedPrice: boolean): void;
|
|
34
|
-
setPriceOrientation(priceOrientation: "vertical" | "horizontal"): void;
|
|
35
33
|
setTemplateData(templateData: ItemsBlockState["templateData"]): void;
|
|
36
34
|
updateFromAttributes(attributes: {
|
|
37
35
|
itemsType?: string;
|
|
@@ -10,15 +10,7 @@ type TemplateParameters = {
|
|
|
10
10
|
formattedPrice?: boolean;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @param params - Template parameters including orientation, items type, item ID, and formatting options
|
|
15
|
-
* @param params.orientation - Layout orientation ('vertical' or 'horizontal')
|
|
16
|
-
* @param params.itemsType - Product data source type ('CART_ITEMS', 'BROWSED_ITEMS', or 'PURCHASED_ITEMS')
|
|
17
|
-
* @param params.itemId - The merge tag for the item (e.g., '{{Abandoned Cart Item (1) Url}}')
|
|
18
|
-
* @param params.currencySymbol - Currency symbol to display (e.g., 'USD')
|
|
19
|
-
* @param params.currencyLocation - Currency position ('0' for before, '1' for after)
|
|
20
|
-
* @param params.formattedPrice - Whether to use formatted price display
|
|
21
|
-
* @returns HTML template string for the Items Block
|
|
13
|
+
* @returns The template for the default checkbox block
|
|
22
14
|
*/
|
|
23
15
|
export declare function getDefaultTemplate({ orientation, itemsType, itemId, currencySymbol, currencyLocation, formattedPrice, }: TemplateParameters): string;
|
|
24
16
|
export default migrationTemplate;
|
|
@@ -42,9 +42,3 @@ export declare function syncButtonLinkFromAttributes(currentNode: ImmutableHtmlN
|
|
|
42
42
|
* @param currentNode - The current node from the control (usually this.currentNode)
|
|
43
43
|
*/
|
|
44
44
|
export declare function syncImageLinkFromAttributes(currentNode: ImmutableHtmlNode | undefined): void;
|
|
45
|
-
/**
|
|
46
|
-
* Reads price orientation value from esd-config-block attribute and updates the store.
|
|
47
|
-
* This makes the price orientation value mutable by syncing it from the DOM.
|
|
48
|
-
* @param currentNode - The current node from the control (usually this.currentNode)
|
|
49
|
-
*/
|
|
50
|
-
export declare function syncPriceOrientationFromAttributes(currentNode: ImmutableHtmlNode | undefined): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const migrationTemplate = "\n <td\n align=\"left\"\n esd-extension-block-id=\"radio-button-block\"\n esd-handler-name=\"esd-extension-RadioButtonBlock\"\n class=\"
|
|
1
|
+
declare const migrationTemplate = "\n <td \n align=\"left\" \n esd-extension-block-id=\"radio-button-block\" \n esd-handler-name=\"esd-extension-RadioButtonBlock\"\n class=\"radio-button-v2 esd-block-ra esd-radio-button-block esd-extension-block es-p10t es-p10b es-p30r es-p30l\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"70%\" style=\"vertical-align: top;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </tr>\n </tbody>\n </table>\n </td>\n <td align=\"right\" width=\"30%\" style=\"vertical-align: middle;\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioYes\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;>\n </td>\n {-{-YES-}-}\n </tr>\n </table>\n </td>\n <td width=\"50%\">\n <table width=\"100%\">\n <tr>\n <td width=\"24\">\n <input\n type=\"radio\"\n id=\"radioNo\"\n name=\"unsubscribe\"\n data-cke-editable=\"1\"\n style=\"margin: 0px; vertical-align: middle;\">\n </td>\n {-{-NO-}-}\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
|
|
2
2
|
/**
|
|
3
3
|
* @returns The template for the default checkbox block
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
2
2
|
import { Block, BlockCompositionType } from '@stripoinc/ui-editor-extensions';
|
|
3
3
|
export declare const UNSUBSCRIBE_BLOCK_ID = "unsubscribe-block";
|
|
4
4
|
export declare class UnsubscribeBlock extends Block {
|
|
@@ -12,8 +12,9 @@ export declare class UnsubscribeBlock extends Block {
|
|
|
12
12
|
getName(): string;
|
|
13
13
|
getDescription(): string;
|
|
14
14
|
getTemplate(): string;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
onCreated(node: ImmutableHtmlNode): void;
|
|
16
|
+
onSelect(node: ImmutableHtmlNode): undefined;
|
|
17
|
+
onDelete(node: ImmutableHtmlNode): undefined;
|
|
17
18
|
onDestroy(): void;
|
|
18
19
|
private _setupSelectEventListener;
|
|
19
20
|
private _removeSelectEventListener;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "1.0.3-beta.
|
|
3
|
+
"version": "1.0.3-beta.3f12f40",
|
|
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",
|
|
@@ -27,7 +27,14 @@
|
|
|
27
27
|
"test:visual-update": "npx playwright test --update-snapshots --reporter html",
|
|
28
28
|
"prepare": "husky"
|
|
29
29
|
},
|
|
30
|
-
"keywords": [
|
|
30
|
+
"keywords": [
|
|
31
|
+
"vue",
|
|
32
|
+
"typescript",
|
|
33
|
+
"email",
|
|
34
|
+
"editor",
|
|
35
|
+
"stripo",
|
|
36
|
+
"useinsider"
|
|
37
|
+
],
|
|
31
38
|
"author": "",
|
|
32
39
|
"license": "ISC",
|
|
33
40
|
"dependencies": {
|
|
@@ -41,12 +48,10 @@
|
|
|
41
48
|
"vue": "2.7.14"
|
|
42
49
|
},
|
|
43
50
|
"devDependencies": {
|
|
44
|
-
"@commitlint/cli": "20.2.0",
|
|
45
|
-
"@commitlint/config-conventional": "20.2.0",
|
|
46
51
|
"@cspell/eslint-plugin": "8.17.5",
|
|
47
52
|
"@eslint/eslintrc": "3.3.0",
|
|
48
53
|
"@eslint/js": "8.57.1",
|
|
49
|
-
"@playwright/test": "1.
|
|
54
|
+
"@playwright/test": "1.55.0",
|
|
50
55
|
"@stylistic/eslint-plugin": "3.1.0",
|
|
51
56
|
"@stylistic/eslint-plugin-migrate": "3.1.0",
|
|
52
57
|
"@types/eslint": "8.56.12",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { pairProductVariables as r } from "../../utils/pairProductVariables.js";
|
|
2
|
-
const t = [
|
|
3
|
-
{
|
|
4
|
-
id: "pair-product-variables",
|
|
5
|
-
description: "Replace product default values with template variables",
|
|
6
|
-
type: "custom",
|
|
7
|
-
processor: r,
|
|
8
|
-
priority: 60
|
|
9
|
-
// After recommendation rules (priority 50-53)
|
|
10
|
-
}
|
|
11
|
-
];
|
|
12
|
-
export {
|
|
13
|
-
t as itemsCompilerRules
|
|
14
|
-
};
|