@useinsider/guido 3.11.0-beta.04c9b87 → 3.11.0-beta.181af4d
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/dist/@types/config/schemas.js +16 -14
- package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue2.js +21 -0
- package/dist/components/organisms/header/EditorActions.vue.js +11 -11
- package/dist/components/organisms/header/EditorActions.vue2.js +34 -50
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +39 -0
- package/dist/components/organisms/header/HeaderWrapper.vue.js +3 -3
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +2 -0
- package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
- package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
- package/dist/components/organisms/header/RightSlot.vue.js +8 -8
- package/dist/components/organisms/header/RightSlot.vue2.js +15 -15
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +24 -0
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +1 -1
- package/dist/composables/useAccessibilityApi.js +31 -0
- package/dist/config/i18n/en/labels.json.js +17 -0
- package/dist/guido.css +1 -1
- package/dist/node_modules/@vueuse/core/index.js +102 -0
- package/dist/node_modules/@vueuse/shared/index.js +40 -28
- package/dist/src/@types/config/schemas.d.ts +4 -0
- package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
- package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
- package/dist/src/composables/useAccessibilityApi.d.ts +15 -0
- package/dist/src/composables/useActionsApi.d.ts +2 -2
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/stores/config.d.ts +18 -0
- package/dist/src/stores/editor.d.ts +105 -0
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/timeUtil.d.ts +10 -0
- package/dist/stores/editor.js +5 -1
- package/dist/utils/timeUtil.js +6 -17
- package/package.json +5 -1
- package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
- package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
- package/dist/src/composables/useHtmlValidator.test.d.ts +0 -1
- package/dist/src/config/compiler/utils/recommendationIgnoreUtils.test.d.ts +0 -1
- /package/dist/src/components/organisms/header/{AutoSaveToggle.vue.d.ts → AutoSaveStatus.vue.d.ts} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useEditorStore as r } from "../stores/editor.js";
|
|
2
|
+
const A = () => {
|
|
3
|
+
const e = r(), i = () => window.StripoEditorApi.accessibilityApi, s = () => {
|
|
4
|
+
i().openAccessibilityTestingMode(), e.isAccessibilityTestingOpen = !0;
|
|
5
|
+
}, o = () => {
|
|
6
|
+
i().closeAccessibilityTestingMode(), e.isAccessibilityTestingOpen = !1, e.imagesHidden = !1, e.colorVisionDeficiency = "";
|
|
7
|
+
}, g = () => e.isAccessibilityTestingOpen ? o() : s(), l = () => i().isAccessibilityTestingModeOpen(), t = () => {
|
|
8
|
+
i().showImages(), e.imagesHidden = !1;
|
|
9
|
+
}, c = () => {
|
|
10
|
+
i().hideImages(), e.imagesHidden = !0;
|
|
11
|
+
};
|
|
12
|
+
return {
|
|
13
|
+
openAccessibilityTestingMode: s,
|
|
14
|
+
closeAccessibilityTestingMode: o,
|
|
15
|
+
toggleAccessibilityTestingMode: g,
|
|
16
|
+
isAccessibilityTestingModeOpen: l,
|
|
17
|
+
showImages: t,
|
|
18
|
+
hideImages: c,
|
|
19
|
+
toggleImages: () => e.imagesHidden ? t() : c(),
|
|
20
|
+
setColorVisionDeficiency: (n) => {
|
|
21
|
+
i().setColorVisionDeficiency(n), e.colorVisionDeficiency = n;
|
|
22
|
+
},
|
|
23
|
+
getColorVisionDeficiency: () => i().getColorVisionDeficiency(),
|
|
24
|
+
switchToDesktopPreview: () => i().switchToDesktopPreview(),
|
|
25
|
+
switchToMobilePreview: () => i().switchToMobilePreview(),
|
|
26
|
+
toggleCodeEditor: () => i().emitToggleCodeEditor()
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
A as useAccessibilityApi
|
|
31
|
+
};
|
|
@@ -5,6 +5,23 @@ const e = "Items", o = {
|
|
|
5
5
|
Items: e,
|
|
6
6
|
"This block is switched from the Old Version to the New Version. We recommend you check the Recommendation block and test your message to ensure it works properly.": "This block is switched from the Old Version to the New Version. We recommend you check the Recommendation block and test your message to ensure it works properly.",
|
|
7
7
|
"This block is switched from the Old Version to the New Version. We recommend you check the Items block and test your message to ensure it works properly.": "This block is switched from the Old Version to the New Version. We recommend you check the Items block and test your message to ensure it works properly.",
|
|
8
|
+
"email-editor.a11y-hide-images": "Hide images",
|
|
9
|
+
"email-editor.a11y-show-images": "Show images",
|
|
10
|
+
"email-editor.cvd-none": "No Color Deficiency",
|
|
11
|
+
"email-editor.cvd-protanopia": "Protanopia",
|
|
12
|
+
"email-editor.cvd-protanopia-description": "Causes red-green confusion and makes reds appear darker.",
|
|
13
|
+
"email-editor.cvd-deuteranopia": "Deuteranopia",
|
|
14
|
+
"email-editor.cvd-deuteranopia-description": "Causes red-green confusion.",
|
|
15
|
+
"email-editor.cvd-tritanopia": "Tritanopia",
|
|
16
|
+
"email-editor.cvd-tritanopia-description": "Causes blue-yellow confusion.",
|
|
17
|
+
"email-editor.cvd-achromatopsia": "Achromatopsia",
|
|
18
|
+
"email-editor.cvd-achromatopsia-description": "Causes complete color blindness.",
|
|
19
|
+
"email-editor.more-actions": "More actions",
|
|
20
|
+
"email-editor.preferences": "Preferences",
|
|
21
|
+
"email-editor.actions": "Actions",
|
|
22
|
+
"email-editor.accessibility-test": "Accessibility Test",
|
|
23
|
+
"email-editor.autosaved-at-today": "Autosaved at {time}, Today",
|
|
24
|
+
"email-editor.autosaved-at-date": "Autosaved at {date}",
|
|
8
25
|
"Pixel Tracking Opt-in": "Pixel Tracking Opt-in",
|
|
9
26
|
"OPT-IN SELECTION": "OPT-IN SELECTION",
|
|
10
27
|
"UNSUBSCRIBE GROUPS": "UNSUBSCRIBE GROUPS"
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .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-
|
|
1
|
+
.gap-16[data-v-5553d071],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-73199fa4] .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}.color-vision-select__trigger[data-v-383f6378]{height:32px;padding:0 8px;border:none;border-radius:6px;background-color:#f1f3fe;cursor:pointer}.color-vision-select__trigger[data-v-383f6378]:disabled{cursor:not-allowed;opacity:.6}.color-vision-select__label[data-v-383f6378]{white-space:nowrap}.color-vision-select__menu[data-v-383f6378]{top:calc(100% + 4px);left:0;z-index:20;width:320px;padding:8px;border-radius:8px;background-color:#fff;box-shadow:0 4px 16px #0000001f}.color-vision-select__option[data-v-383f6378]{width:100%;padding:8px;border:none;border-radius:6px;background-color:transparent;text-align:left;cursor:pointer}.color-vision-select__option[data-v-383f6378]:hover,.color-vision-select__option_selected[data-v-383f6378]{background-color:#f1f3fe}.color-vision-select__option-description[data-v-383f6378]{margin-top:2px}.accessibility-toolbar[data-v-e222d603]{gap:8px}.accessibility-toolbar__divider[data-v-e222d603]{width:1px;height:24px;background-color:#e5e7f0}.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-fad98586]{gap:8px}.version-history__toolbar[data-v-fad98586]{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-menu__panel[data-v-287a74e3]{top:calc(100% + 4px);right:0;z-index:20;width:222px;padding:8px;border-radius:8px;background-color:#fff;box-shadow:0 4px 16px #0000001f}.editor-actions-menu__section[data-v-287a74e3]{padding:8px 8px 4px;text-transform:uppercase;letter-spacing:.4px}.editor-actions-menu__row[data-v-287a74e3]{width:100%;padding:8px;border:none;border-radius:6px;background-color:transparent;text-align:left;cursor:pointer}.editor-actions-menu__row[data-v-287a74e3]:not(.editor-actions-menu__row_static):hover{background-color:#f1f3fe}.editor-actions-menu__row_static[data-v-287a74e3]{cursor:default}.editor-actions-menu__row[data-v-287a74e3]:disabled{cursor:not-allowed;opacity:.6}.editor-actions-menu__divider[data-v-287a74e3]{height:1px;margin:4px 0;background-color:#e5e7f0}.editor-actions[data-v-d51fb931]{gap:4px}.header-wrapper[data-v-d11dd577]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-50dac6de]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-50dac6de]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-50dac6de]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-91a26acd]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-91a26acd]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-91a26acd]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-91a26acd]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-91a26acd]{object-fit:cover;transform:scale(1)}[data-v-b9a93c6e] .guido__verion-history-view-option-selection-desktop svg,[data-v-b9a93c6e] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-b9a93c6e] .in-segments-wrapper__button_selected,[data-v-b9a93c6e] .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-06afaecb]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-06afaecb]{min-height:504px}.iframe-wrapper[data-v-cbafc185]{width:258px}.iframe-scaled[data-v-cbafc185]{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-7419ae06] .vueperslides__bullets,[data-v-796d193b] .vueperslides__bullets{pointer-events:none!important}[data-v-796d193b] .vueperslides__parallax-wrapper{height:110px!important}[data-v-cadfc82d] .vueperslides__bullets{pointer-events:none!important}[data-v-cadfc82d] .vueperslides__parallax-wrapper{height:110px!important}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { noop as b, isIOS as F, isClient as O, toValue as h, isObject as T, tryOnScopeDispose as C } from "../shared/index.js";
|
|
2
|
+
import { createFilterWrapper as x, debounceFilter as D, useDebounceFn as j } from "../shared/index.js";
|
|
3
|
+
import "../../vue-demi/lib/index.js";
|
|
4
|
+
import { watch as I } from "vue";
|
|
5
|
+
const P = O ? window : void 0;
|
|
6
|
+
function p(n) {
|
|
7
|
+
var i;
|
|
8
|
+
const o = h(n);
|
|
9
|
+
return (i = o == null ? void 0 : o.$el) != null ? i : o;
|
|
10
|
+
}
|
|
11
|
+
function k(...n) {
|
|
12
|
+
let i, o, r, d;
|
|
13
|
+
if (typeof n[0] == "string" || Array.isArray(n[0]) ? ([o, r, d] = n, i = P) : [i, o, r, d] = n, !i)
|
|
14
|
+
return b;
|
|
15
|
+
Array.isArray(o) || (o = [o]), Array.isArray(r) || (r = [r]);
|
|
16
|
+
const m = [], y = () => {
|
|
17
|
+
m.forEach((c) => c()), m.length = 0;
|
|
18
|
+
}, a = (c, l, u, f) => (c.addEventListener(l, u, f), () => c.removeEventListener(l, u, f)), E = I(
|
|
19
|
+
() => [p(i), h(d)],
|
|
20
|
+
([c, l]) => {
|
|
21
|
+
if (y(), !c)
|
|
22
|
+
return;
|
|
23
|
+
const u = T(l) ? { ...l } : l;
|
|
24
|
+
m.push(
|
|
25
|
+
...o.flatMap((f) => r.map((w) => a(c, f, w, u)))
|
|
26
|
+
);
|
|
27
|
+
},
|
|
28
|
+
{ immediate: !0, flush: "post" }
|
|
29
|
+
), A = () => {
|
|
30
|
+
E(), y();
|
|
31
|
+
};
|
|
32
|
+
return C(A), A;
|
|
33
|
+
}
|
|
34
|
+
let L = !1;
|
|
35
|
+
function $(n, i, o = {}) {
|
|
36
|
+
const { window: r = P, ignore: d = [], capture: m = !0, detectIframe: y = !1 } = o;
|
|
37
|
+
if (!r)
|
|
38
|
+
return b;
|
|
39
|
+
F && !L && (L = !0, Array.from(r.document.body.children).forEach((e) => e.addEventListener("click", b)), r.document.documentElement.addEventListener("click", b));
|
|
40
|
+
let a = !0;
|
|
41
|
+
const E = (e) => h(d).some((t) => {
|
|
42
|
+
if (typeof t == "string")
|
|
43
|
+
return Array.from(r.document.querySelectorAll(t)).some((s) => s === e.target || e.composedPath().includes(s));
|
|
44
|
+
{
|
|
45
|
+
const s = p(t);
|
|
46
|
+
return s && (e.target === s || e.composedPath().includes(s));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
function A(e) {
|
|
50
|
+
const t = h(e);
|
|
51
|
+
return t && t.$.subTree.shapeFlag === 16;
|
|
52
|
+
}
|
|
53
|
+
function c(e, t) {
|
|
54
|
+
const s = h(e), v = s.$.subTree && s.$.subTree.children;
|
|
55
|
+
return v == null || !Array.isArray(v) ? !1 : v.some((g) => g.el === t.target || t.composedPath().includes(g.el));
|
|
56
|
+
}
|
|
57
|
+
const l = (e) => {
|
|
58
|
+
const t = p(n);
|
|
59
|
+
if (e.target != null && !(!(t instanceof Element) && A(n) && c(n, e)) && !(!t || t === e.target || e.composedPath().includes(t))) {
|
|
60
|
+
if (e.detail === 0 && (a = !E(e)), !a) {
|
|
61
|
+
a = !0;
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
i(e);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
let u = !1;
|
|
68
|
+
const f = [
|
|
69
|
+
k(r, "click", (e) => {
|
|
70
|
+
u || (u = !0, setTimeout(() => {
|
|
71
|
+
u = !1;
|
|
72
|
+
}, 0), l(e));
|
|
73
|
+
}, { passive: !0, capture: m }),
|
|
74
|
+
k(r, "pointerdown", (e) => {
|
|
75
|
+
const t = p(n);
|
|
76
|
+
a = !E(e) && !!(t && !e.composedPath().includes(t));
|
|
77
|
+
}, { passive: !0 }),
|
|
78
|
+
y && k(r, "blur", (e) => {
|
|
79
|
+
setTimeout(() => {
|
|
80
|
+
var t;
|
|
81
|
+
const s = p(n);
|
|
82
|
+
((t = r.document.activeElement) == null ? void 0 : t.tagName) === "IFRAME" && !(s != null && s.contains(r.document.activeElement)) && i(e);
|
|
83
|
+
}, 0);
|
|
84
|
+
})
|
|
85
|
+
].filter(Boolean);
|
|
86
|
+
return () => f.forEach((e) => e());
|
|
87
|
+
}
|
|
88
|
+
export {
|
|
89
|
+
x as createFilterWrapper,
|
|
90
|
+
D as debounceFilter,
|
|
91
|
+
P as defaultWindow,
|
|
92
|
+
O as isClient,
|
|
93
|
+
F as isIOS,
|
|
94
|
+
T as isObject,
|
|
95
|
+
b as noop,
|
|
96
|
+
$ as onClickOutside,
|
|
97
|
+
h as toValue,
|
|
98
|
+
C as tryOnScopeDispose,
|
|
99
|
+
p as unrefElement,
|
|
100
|
+
j as useDebounceFn,
|
|
101
|
+
k as useEventListener
|
|
102
|
+
};
|
|
@@ -1,45 +1,57 @@
|
|
|
1
1
|
import "../../vue-demi/lib/index.js";
|
|
2
|
-
import { unref as p } from "vue";
|
|
3
|
-
function
|
|
2
|
+
import { unref as p, getCurrentScope as w, onScopeDispose as m } from "vue";
|
|
3
|
+
function T(t) {
|
|
4
|
+
return w() ? (m(t), !0) : !1;
|
|
5
|
+
}
|
|
6
|
+
function a(t) {
|
|
4
7
|
return typeof t == "function" ? t() : p(t);
|
|
5
8
|
}
|
|
9
|
+
const g = typeof window < "u" && typeof document < "u";
|
|
6
10
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7
|
-
const
|
|
8
|
-
};
|
|
9
|
-
function h(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
const b = Object.prototype.toString, j = (t) => b.call(t) === "[object Object]", f = () => {
|
|
12
|
+
}, x = /* @__PURE__ */ h();
|
|
13
|
+
function h() {
|
|
14
|
+
var t, n;
|
|
15
|
+
return g && ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((n = window == null ? void 0 : window.navigator) == null ? void 0 : n.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
16
|
+
}
|
|
17
|
+
function v(t, n) {
|
|
18
|
+
function o(...e) {
|
|
19
|
+
return new Promise((r, i) => {
|
|
20
|
+
Promise.resolve(t(() => n.apply(this, e), { fn: n, thisArg: this, args: e })).then(r).catch(i);
|
|
13
21
|
});
|
|
14
22
|
}
|
|
15
|
-
return
|
|
23
|
+
return o;
|
|
16
24
|
}
|
|
17
|
-
function
|
|
18
|
-
let
|
|
19
|
-
const
|
|
20
|
-
clearTimeout(u),
|
|
25
|
+
function S(t, n = {}) {
|
|
26
|
+
let o, e, r = f;
|
|
27
|
+
const i = (u) => {
|
|
28
|
+
clearTimeout(u), r(), r = f;
|
|
21
29
|
};
|
|
22
30
|
return (u) => {
|
|
23
|
-
const
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
e &&
|
|
29
|
-
},
|
|
31
|
+
const s = a(t), c = a(n.maxWait);
|
|
32
|
+
return o && i(o), s <= 0 || c !== void 0 && c <= 0 ? (e && (i(e), e = null), Promise.resolve(u())) : new Promise((l, d) => {
|
|
33
|
+
r = n.rejectOnCancel ? d : l, c && !e && (e = setTimeout(() => {
|
|
34
|
+
o && i(o), e = null, l(u());
|
|
35
|
+
}, c)), o = setTimeout(() => {
|
|
36
|
+
e && i(e), e = null, l(u());
|
|
37
|
+
}, s);
|
|
30
38
|
});
|
|
31
39
|
};
|
|
32
40
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
35
|
-
|
|
41
|
+
function A(t, n = 200, o = {}) {
|
|
42
|
+
return v(
|
|
43
|
+
S(n, o),
|
|
36
44
|
t
|
|
37
45
|
);
|
|
38
46
|
}
|
|
39
47
|
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
v as createFilterWrapper,
|
|
49
|
+
S as debounceFilter,
|
|
50
|
+
g as isClient,
|
|
51
|
+
x as isIOS,
|
|
52
|
+
j as isObject,
|
|
53
|
+
f as noop,
|
|
54
|
+
a as toValue,
|
|
55
|
+
T as tryOnScopeDispose,
|
|
56
|
+
A as useDebounceFn
|
|
45
57
|
};
|
|
@@ -354,6 +354,8 @@ export declare const FeaturesSchema: v.ObjectSchema<{
|
|
|
354
354
|
readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
355
355
|
/** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
|
|
356
356
|
readonly autosave: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
357
|
+
/** Enable the Stripo Accessibility Checker control in the editor toolbar. */
|
|
358
|
+
readonly accessibilityTesting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
357
359
|
}, undefined>;
|
|
358
360
|
/**
|
|
359
361
|
* Default block types available in Stripo
|
|
@@ -734,6 +736,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
734
736
|
readonly liquidSyntax: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
735
737
|
/** Enable autosave (3-min interval + tab-hide). User toggles on/off from the header. */
|
|
736
738
|
readonly autosave: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
739
|
+
/** Enable the Stripo Accessibility Checker control in the editor toolbar. */
|
|
740
|
+
readonly accessibilityTesting: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
737
741
|
}, undefined>, {}>;
|
|
738
742
|
/** Block configuration */
|
|
739
743
|
readonly blocks: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ColorVisionDeficiency } from '@@/Types/api/accessibility-api';
|
|
2
|
+
export declare const useAccessibilityApi: () => {
|
|
3
|
+
openAccessibilityTestingMode: () => void;
|
|
4
|
+
closeAccessibilityTestingMode: () => void;
|
|
5
|
+
toggleAccessibilityTestingMode: () => void;
|
|
6
|
+
isAccessibilityTestingModeOpen: () => boolean;
|
|
7
|
+
showImages: () => void;
|
|
8
|
+
hideImages: () => void;
|
|
9
|
+
toggleImages: () => void;
|
|
10
|
+
setColorVisionDeficiency: (type: ColorVisionDeficiency) => void;
|
|
11
|
+
getColorVisionDeficiency: () => ColorVisionDeficiency;
|
|
12
|
+
switchToDesktopPreview: () => void;
|
|
13
|
+
switchToMobilePreview: () => void;
|
|
14
|
+
toggleCodeEditor: () => void;
|
|
15
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CompileEmailOptions } from '@@/Types/actions-api';
|
|
2
|
-
import { GetCompiledEmailOptions, CompiledEmailResult, TemplateData } from '@@/Types/actions-api';
|
|
1
|
+
import type { CompileEmailOptions } from '@@/Types/api/actions-api';
|
|
2
|
+
import { GetCompiledEmailOptions, CompiledEmailResult, TemplateData } from '@@/Types/api/actions-api';
|
|
3
3
|
export declare const useActionsApi: () => {
|
|
4
4
|
getCompiledEmail: (options?: GetCompiledEmailOptions) => Promise<CompiledEmailResult>;
|
|
5
5
|
getTemplateData: () => Promise<TemplateData>;
|
|
@@ -93,6 +93,7 @@ export declare const useConfig: () => {
|
|
|
93
93
|
modulesDisabled: boolean;
|
|
94
94
|
liquidSyntax: boolean;
|
|
95
95
|
autosave: boolean;
|
|
96
|
+
accessibilityTesting: boolean;
|
|
96
97
|
};
|
|
97
98
|
blocks: {
|
|
98
99
|
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")[];
|
|
@@ -221,6 +222,7 @@ export declare const useConfig: () => {
|
|
|
221
222
|
modulesDisabled: boolean;
|
|
222
223
|
liquidSyntax: boolean;
|
|
223
224
|
autosave: boolean;
|
|
225
|
+
accessibilityTesting: boolean;
|
|
224
226
|
} | null>;
|
|
225
227
|
blocks: import("vue").ComputedRef<{
|
|
226
228
|
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")[];
|
|
@@ -98,6 +98,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
98
98
|
modulesDisabled: boolean;
|
|
99
99
|
liquidSyntax: boolean;
|
|
100
100
|
autosave: boolean;
|
|
101
|
+
accessibilityTesting: boolean;
|
|
101
102
|
};
|
|
102
103
|
blocks: {
|
|
103
104
|
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")[];
|
|
@@ -232,6 +233,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
232
233
|
modulesDisabled: boolean;
|
|
233
234
|
liquidSyntax: boolean;
|
|
234
235
|
autosave: boolean;
|
|
236
|
+
accessibilityTesting: boolean;
|
|
235
237
|
};
|
|
236
238
|
blocks: {
|
|
237
239
|
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")[];
|
|
@@ -366,6 +368,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
366
368
|
modulesDisabled: boolean;
|
|
367
369
|
liquidSyntax: boolean;
|
|
368
370
|
autosave: boolean;
|
|
371
|
+
accessibilityTesting: boolean;
|
|
369
372
|
};
|
|
370
373
|
blocks: {
|
|
371
374
|
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")[];
|
|
@@ -500,6 +503,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
500
503
|
modulesDisabled: boolean;
|
|
501
504
|
liquidSyntax: boolean;
|
|
502
505
|
autosave: boolean;
|
|
506
|
+
accessibilityTesting: boolean;
|
|
503
507
|
};
|
|
504
508
|
blocks: {
|
|
505
509
|
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")[];
|
|
@@ -634,6 +638,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
634
638
|
modulesDisabled: boolean;
|
|
635
639
|
liquidSyntax: boolean;
|
|
636
640
|
autosave: boolean;
|
|
641
|
+
accessibilityTesting: boolean;
|
|
637
642
|
};
|
|
638
643
|
blocks: {
|
|
639
644
|
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")[];
|
|
@@ -768,6 +773,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
768
773
|
modulesDisabled: boolean;
|
|
769
774
|
liquidSyntax: boolean;
|
|
770
775
|
autosave: boolean;
|
|
776
|
+
accessibilityTesting: boolean;
|
|
771
777
|
};
|
|
772
778
|
blocks: {
|
|
773
779
|
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")[];
|
|
@@ -902,6 +908,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
902
908
|
modulesDisabled: boolean;
|
|
903
909
|
liquidSyntax: boolean;
|
|
904
910
|
autosave: boolean;
|
|
911
|
+
accessibilityTesting: boolean;
|
|
905
912
|
};
|
|
906
913
|
blocks: {
|
|
907
914
|
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")[];
|
|
@@ -1036,6 +1043,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1036
1043
|
modulesDisabled: boolean;
|
|
1037
1044
|
liquidSyntax: boolean;
|
|
1038
1045
|
autosave: boolean;
|
|
1046
|
+
accessibilityTesting: boolean;
|
|
1039
1047
|
};
|
|
1040
1048
|
blocks: {
|
|
1041
1049
|
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")[];
|
|
@@ -1170,6 +1178,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1170
1178
|
modulesDisabled: boolean;
|
|
1171
1179
|
liquidSyntax: boolean;
|
|
1172
1180
|
autosave: boolean;
|
|
1181
|
+
accessibilityTesting: boolean;
|
|
1173
1182
|
};
|
|
1174
1183
|
blocks: {
|
|
1175
1184
|
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")[];
|
|
@@ -1304,6 +1313,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1304
1313
|
modulesDisabled: boolean;
|
|
1305
1314
|
liquidSyntax: boolean;
|
|
1306
1315
|
autosave: boolean;
|
|
1316
|
+
accessibilityTesting: boolean;
|
|
1307
1317
|
};
|
|
1308
1318
|
blocks: {
|
|
1309
1319
|
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")[];
|
|
@@ -1438,6 +1448,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1438
1448
|
modulesDisabled: boolean;
|
|
1439
1449
|
liquidSyntax: boolean;
|
|
1440
1450
|
autosave: boolean;
|
|
1451
|
+
accessibilityTesting: boolean;
|
|
1441
1452
|
};
|
|
1442
1453
|
blocks: {
|
|
1443
1454
|
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")[];
|
|
@@ -1572,6 +1583,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1572
1583
|
modulesDisabled: boolean;
|
|
1573
1584
|
liquidSyntax: boolean;
|
|
1574
1585
|
autosave: boolean;
|
|
1586
|
+
accessibilityTesting: boolean;
|
|
1575
1587
|
};
|
|
1576
1588
|
blocks: {
|
|
1577
1589
|
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")[];
|
|
@@ -1706,6 +1718,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1706
1718
|
modulesDisabled: boolean;
|
|
1707
1719
|
liquidSyntax: boolean;
|
|
1708
1720
|
autosave: boolean;
|
|
1721
|
+
accessibilityTesting: boolean;
|
|
1709
1722
|
};
|
|
1710
1723
|
blocks: {
|
|
1711
1724
|
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")[];
|
|
@@ -1840,6 +1853,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1840
1853
|
modulesDisabled: boolean;
|
|
1841
1854
|
liquidSyntax: boolean;
|
|
1842
1855
|
autosave: boolean;
|
|
1856
|
+
accessibilityTesting: boolean;
|
|
1843
1857
|
};
|
|
1844
1858
|
blocks: {
|
|
1845
1859
|
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")[];
|
|
@@ -1974,6 +1988,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
1974
1988
|
modulesDisabled: boolean;
|
|
1975
1989
|
liquidSyntax: boolean;
|
|
1976
1990
|
autosave: boolean;
|
|
1991
|
+
accessibilityTesting: boolean;
|
|
1977
1992
|
};
|
|
1978
1993
|
blocks: {
|
|
1979
1994
|
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")[];
|
|
@@ -2108,6 +2123,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2108
2123
|
modulesDisabled: boolean;
|
|
2109
2124
|
liquidSyntax: boolean;
|
|
2110
2125
|
autosave: boolean;
|
|
2126
|
+
accessibilityTesting: boolean;
|
|
2111
2127
|
};
|
|
2112
2128
|
blocks: {
|
|
2113
2129
|
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")[];
|
|
@@ -2242,6 +2258,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2242
2258
|
modulesDisabled: boolean;
|
|
2243
2259
|
liquidSyntax: boolean;
|
|
2244
2260
|
autosave: boolean;
|
|
2261
|
+
accessibilityTesting: boolean;
|
|
2245
2262
|
};
|
|
2246
2263
|
blocks: {
|
|
2247
2264
|
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")[];
|
|
@@ -2376,6 +2393,7 @@ export declare const useConfigStore: import("pinia").StoreDefinition<"guido-conf
|
|
|
2376
2393
|
modulesDisabled: boolean;
|
|
2377
2394
|
liquidSyntax: boolean;
|
|
2378
2395
|
autosave: boolean;
|
|
2396
|
+
accessibilityTesting: boolean;
|
|
2379
2397
|
};
|
|
2380
2398
|
blocks: {
|
|
2381
2399
|
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")[];
|