@useinsider/guido 3.16.0-beta.20cd2fe → 3.16.0-beta.8645953
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 +23 -25
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +78 -76
- package/dist/components/organisms/AutoSaveController.vue2.js +9 -8
- package/dist/components/organisms/header/AutoSaveToggle.vue.js +22 -0
- package/dist/components/organisms/header/AutoSaveToggle.vue2.js +19 -0
- package/dist/components/organisms/header/EditorActions.vue.js +11 -11
- package/dist/components/organisms/header/EditorActions.vue2.js +81 -34
- package/dist/components/organisms/header/LeftSlot.vue.js +1 -1
- package/dist/components/organisms/header/LeftSlot.vue2.js +42 -25
- package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
- package/dist/components/organisms/header/MiddleSlot.vue2.js +7 -8
- package/dist/components/organisms/header/RightSlot.vue.js +6 -6
- package/dist/components/organisms/header/RightSlot.vue2.js +15 -17
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +34 -43
- package/dist/components/organisms/validation/ValidationErrorDrawer.vue.js +20 -0
- package/dist/components/organisms/validation/ValidationErrorDrawer.vue2.js +61 -0
- package/dist/components/wrappers/WpDrawer.vue.js +9 -7
- package/dist/components/wrappers/WpDrawer.vue2.js +1 -1
- package/dist/composables/useHtmlValidator.js +1 -0
- package/dist/composables/useSave.js +84 -41
- package/dist/composables/useSaveValidation.js +276 -0
- package/dist/composables/useSaveValidationRollout.js +9 -0
- package/dist/composables/validators/useCouponBlockValidator.js +24 -21
- package/dist/composables/validators/useUnsubscribeBlockValidator.js +34 -27
- package/dist/config/i18n/en/labels.json.js +4 -28
- package/dist/enums/save-validation.js +4 -0
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +31 -24
- package/dist/guido.css +1 -1
- package/dist/node_modules/@vueuse/shared/index.js +28 -40
- package/dist/src/@types/config/schemas.d.ts +0 -4
- package/dist/src/@types/save-validation.d.ts +19 -0
- package/dist/src/components/Guido.vue.d.ts +17 -1
- package/dist/src/components/organisms/header/EditorActions.vue.d.ts +17 -1
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +17 -1
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +17 -1
- package/dist/src/components/wrappers/WpDrawer.vue.d.ts +4 -3
- package/dist/src/composables/useActionsApi.d.ts +2 -2
- package/dist/src/composables/useConfig.d.ts +0 -2
- package/dist/src/composables/useHtmlValidator.d.ts +14 -0
- package/dist/src/composables/useSave.d.ts +6 -1
- package/dist/src/composables/useSaveValidation.d.ts +6 -0
- package/dist/src/composables/useSaveValidationRollout.d.ts +3 -0
- package/dist/src/composables/validators/useCouponBlockValidator.d.ts +3 -0
- package/dist/src/composables/validators/useUnsubscribeBlockValidator.d.ts +10 -0
- package/dist/src/enums/save-validation.d.ts +27 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +5 -0
- package/dist/src/stores/config.d.ts +5 -18
- package/dist/src/stores/editor.d.ts +0 -107
- package/dist/src/stores/onboarding.d.ts +0 -377
- package/dist/src/stores/save-validation.d.ts +22 -0
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/templatePreparation.d.ts +30 -0
- package/dist/src/utils/timeUtil.d.ts +0 -10
- package/dist/stores/config.js +13 -6
- package/dist/stores/editor.js +1 -5
- package/dist/stores/onboarding.js +11 -16
- package/dist/stores/save-validation.js +30 -0
- package/dist/utils/templatePreparation.js +28 -25
- package/dist/utils/timeUtil.js +17 -6
- package/package.json +1 -1
- package/dist/components/organisms/header/AutoSaveStatus.vue.js +0 -17
- package/dist/components/organisms/header/AutoSaveStatus.vue2.js +0 -21
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +0 -20
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +0 -39
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +0 -18
- package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +0 -37
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +0 -24
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +0 -48
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +0 -18
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +0 -74
- package/dist/composables/useAccessibilityApi.js +0 -31
- package/dist/node_modules/@vueuse/core/index.js +0 -102
- package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +0 -2
- package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +0 -2
- package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +0 -2
- package/dist/src/composables/useAccessibilityApi.d.ts +0 -15
- /package/dist/src/components/organisms/header/{AutoSaveStatus.vue.d.ts → AutoSaveToggle.vue.d.ts} +0 -0
- /package/dist/src/components/organisms/{header/EditorActionsMenu.vue.d.ts → validation/ValidationErrorDrawer.vue.d.ts} +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { useOnboardingApi as s } from "../services/onboardingApi.js";
|
|
2
2
|
import { defineStore as e } from "pinia";
|
|
3
|
-
const
|
|
3
|
+
const t = () => ({
|
|
4
4
|
cardIndex: 0,
|
|
5
5
|
isActive: !1,
|
|
6
6
|
config: []
|
|
7
7
|
}), a = () => ({
|
|
8
8
|
onboardings: {
|
|
9
|
-
newVersionPopup:
|
|
10
|
-
genericOnboarding:
|
|
11
|
-
textBlockOnboarding:
|
|
12
|
-
versionHistoryOnboarding:
|
|
13
|
-
ampOnboarding:
|
|
14
|
-
itemsOnboarding:
|
|
15
|
-
editorTabBarOnboarding: r()
|
|
9
|
+
newVersionPopup: t(),
|
|
10
|
+
genericOnboarding: t(),
|
|
11
|
+
textBlockOnboarding: t(),
|
|
12
|
+
versionHistoryOnboarding: t(),
|
|
13
|
+
ampOnboarding: t(),
|
|
14
|
+
itemsOnboarding: t()
|
|
16
15
|
},
|
|
17
16
|
userModalState: {},
|
|
18
17
|
isFetched: !1
|
|
@@ -45,10 +44,6 @@ const r = () => ({
|
|
|
45
44
|
const { itemsOnboarding: i } = n.onboardings;
|
|
46
45
|
return i.config[i.cardIndex];
|
|
47
46
|
},
|
|
48
|
-
getEditorTabBarCurrentCard: (n) => {
|
|
49
|
-
const { editorTabBarOnboarding: i } = n.onboardings;
|
|
50
|
-
return i.config[i.cardIndex];
|
|
51
|
-
},
|
|
52
47
|
shouldShowOnboarding: (n) => (i) => {
|
|
53
48
|
const o = n.userModalState.Guido;
|
|
54
49
|
return i === "newVersionPopup" && (o != null && o.genericOnboarding) ? !1 : o ? !o[i] : !0;
|
|
@@ -77,8 +72,8 @@ const r = () => ({
|
|
|
77
72
|
this.onboardings[n].cardIndex > 0 && this.onboardings[n].cardIndex--;
|
|
78
73
|
},
|
|
79
74
|
updateCardPosition(n, i, o) {
|
|
80
|
-
const
|
|
81
|
-
|
|
75
|
+
const r = this.onboardings[n].config[i];
|
|
76
|
+
r && (r.top = o.top, r.position = o.position);
|
|
82
77
|
},
|
|
83
78
|
setConfig(n, i) {
|
|
84
79
|
this.onboardings[n].config = i ?? [], this.onboardings[n].cardIndex >= this.onboardings[n].config.length && (this.onboardings[n].cardIndex = 0);
|
|
@@ -106,8 +101,8 @@ const r = () => ({
|
|
|
106
101
|
}
|
|
107
102
|
},
|
|
108
103
|
async setUserModalState(n, i, o) {
|
|
109
|
-
const { setUserModalState:
|
|
110
|
-
await
|
|
104
|
+
const { setUserModalState: r } = s();
|
|
105
|
+
await r(n, i, o), this.isFetched = !1, await this.fetchUserModalState();
|
|
111
106
|
}
|
|
112
107
|
}
|
|
113
108
|
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineStore as n } from "pinia";
|
|
2
|
+
function i(e) {
|
|
3
|
+
const t = /* @__PURE__ */ new Set();
|
|
4
|
+
return e.filter((r) => {
|
|
5
|
+
const s = JSON.stringify([r.message, r.detail ?? ""]);
|
|
6
|
+
return t.has(s) ? !1 : (t.add(s), !0);
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
const o = n("guidoSaveValidation", {
|
|
10
|
+
state: () => ({
|
|
11
|
+
errors: [],
|
|
12
|
+
isDrawerOpen: !1,
|
|
13
|
+
intent: null
|
|
14
|
+
}),
|
|
15
|
+
getters: {
|
|
16
|
+
errorCount: (e) => e.errors.length
|
|
17
|
+
},
|
|
18
|
+
actions: {
|
|
19
|
+
open(e, t) {
|
|
20
|
+
this.errors = i(e), this.intent = t, this.isDrawerOpen = !0;
|
|
21
|
+
},
|
|
22
|
+
// Errors are retained so rows don't blank during the ~300ms close animation.
|
|
23
|
+
close() {
|
|
24
|
+
this.isDrawerOpen = !1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
o as useSaveValidationStore
|
|
30
|
+
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
1
|
+
import { useActionsApi as R } from "../composables/useActionsApi.js";
|
|
2
2
|
import { useConfig as U } from "../composables/useConfig.js";
|
|
3
3
|
import { useHtmlCompiler as x } from "../composables/useHtmlCompiler.js";
|
|
4
4
|
import { DEFAULT_CURRENCY as d, DEFAULT_NODE_CONFIG as s } from "../extensions/Blocks/Recommendation/constants/defaultConfig.js";
|
|
5
|
-
import { useRecommendationExtensionStore as
|
|
5
|
+
import { useRecommendationExtensionStore as T } from "../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
6
6
|
import { mapLegacyStrategy as L } from "../extensions/Blocks/Recommendation/utils/legacyStrategyMap.js";
|
|
7
7
|
import { DATA_ATTRIBUTES as A } from "../extensions/Blocks/Unsubscribe/utils/constants.js";
|
|
8
|
-
import { parsePageList as
|
|
9
|
-
import { useDynamicContentStore as
|
|
10
|
-
import { useEditorStore as
|
|
11
|
-
import { useUnsubscribeStore as
|
|
12
|
-
import { assignTrackingIds as
|
|
13
|
-
function
|
|
8
|
+
import { parsePageList as N } from "../extensions/Blocks/Unsubscribe/utils/utils.js";
|
|
9
|
+
import { useDynamicContentStore as z } from "../stores/dynamic-content.js";
|
|
10
|
+
import { useEditorStore as _ } from "../stores/editor.js";
|
|
11
|
+
import { useUnsubscribeStore as v } from "../stores/unsubscribe.js";
|
|
12
|
+
import { assignTrackingIds as O } from "./linkTrackingIds.js";
|
|
13
|
+
function M(m) {
|
|
14
14
|
const n = new DOMParser().parseFromString(m, "text/html").querySelectorAll(`[${A.PAGE_LIST}]`), t = [];
|
|
15
15
|
return n.forEach((i) => {
|
|
16
16
|
const o = i.getAttribute(A.PAGE_LIST);
|
|
17
|
-
o && t.push(...
|
|
17
|
+
o && t.push(...N(o));
|
|
18
18
|
}), [...new Set(t)];
|
|
19
19
|
}
|
|
20
|
-
async function
|
|
20
|
+
async function C(m) {
|
|
21
21
|
const a = new DOMParser().parseFromString(m, "text/html").querySelectorAll(".recommendation-block-v2");
|
|
22
22
|
if (a.length === 0)
|
|
23
23
|
return;
|
|
24
|
-
const n =
|
|
24
|
+
const n = T();
|
|
25
25
|
a.forEach((t) => {
|
|
26
26
|
var r, l, g, f, c;
|
|
27
27
|
const i = t.getAttribute("recommendation-id"), o = i ? Number(i) : NaN;
|
|
@@ -68,39 +68,39 @@ async function M(m) {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
const Z = () => {
|
|
71
|
-
const m =
|
|
71
|
+
const m = z(), u = _(), a = v(), { getCompiledEmail: n, getTemplateData: t, updateHtmlAndCss: i } = R(), { compileHtml: o, compileAmpHtml: p } = x(), { isFeatureEnabled: e } = U();
|
|
72
72
|
return {
|
|
73
73
|
prepareTemplateDetails: async () => {
|
|
74
74
|
let { html: r, css: l, syncModulesIds: g = [] } = await t();
|
|
75
75
|
if (e("linkTrackingIds"))
|
|
76
76
|
try {
|
|
77
|
-
const { html: y, changed:
|
|
78
|
-
u.trackIdSessionFloor =
|
|
77
|
+
const { html: y, changed: I, nextSeq: k } = O(r, u.trackIdSessionFloor);
|
|
78
|
+
u.trackIdSessionFloor = k, I && (r = y, await i(y, l));
|
|
79
79
|
} catch (y) {
|
|
80
80
|
console.error("Tracking-id step failed, saving anyway:", y);
|
|
81
81
|
}
|
|
82
|
-
const { html: f, ampHtml: c = "", ampErrors:
|
|
82
|
+
const { html: f, ampHtml: c = "", ampErrors: w = [] } = await n({
|
|
83
83
|
minimize: !0,
|
|
84
84
|
resetDataSavedFlag: !1
|
|
85
85
|
});
|
|
86
|
-
a.selectedUnsubscribePages.length && await a.fetchTemplates(), await
|
|
87
|
-
const { compiledHtml:
|
|
86
|
+
a.selectedUnsubscribePages.length && await a.fetchTemplates(), await C(r);
|
|
87
|
+
const { compiledHtml: D, stats: S, appliedRules: E } = o(f), P = c && p(c).compiledHtml, F = m.getSelectedDynamicContentList, H = T(), b = M(r);
|
|
88
88
|
return console.debug("HTML Compilation Stats:", {
|
|
89
89
|
originalSize: S.originalSize,
|
|
90
90
|
compiledSize: S.compiledSize,
|
|
91
91
|
reduction: `${S.reductionPercentage.toFixed(2)}%`,
|
|
92
|
-
appliedRules:
|
|
92
|
+
appliedRules: E,
|
|
93
93
|
executionTime: `${S.executionTime.toFixed(2)}ms`
|
|
94
94
|
}), {
|
|
95
|
-
dynamicContentList:
|
|
96
|
-
compiledHtml:
|
|
95
|
+
dynamicContentList: F,
|
|
96
|
+
compiledHtml: D,
|
|
97
97
|
rawHtml: r,
|
|
98
98
|
css: l,
|
|
99
|
-
ampHtml:
|
|
100
|
-
ampErrors:
|
|
99
|
+
ampHtml: P,
|
|
100
|
+
ampErrors: w,
|
|
101
101
|
modules: g.map(Number),
|
|
102
102
|
recommendation: {
|
|
103
|
-
campaignUrls:
|
|
103
|
+
campaignUrls: H.recommendationCampaignUrls,
|
|
104
104
|
configs: {}
|
|
105
105
|
},
|
|
106
106
|
unsubscribe: {
|
|
@@ -108,10 +108,13 @@ const Z = () => {
|
|
|
108
108
|
config: b
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
}
|
|
111
|
+
},
|
|
112
|
+
// Exposed so the back/test validate-only path can seed the reco store the
|
|
113
|
+
// same way a full save does (required-field findings depend on it).
|
|
114
|
+
hydrateRecommendationStore: C
|
|
112
115
|
};
|
|
113
116
|
};
|
|
114
117
|
export {
|
|
115
|
-
|
|
118
|
+
M as getHtmlReferencedUnsubscribePages,
|
|
116
119
|
Z as useTemplatePreparation
|
|
117
120
|
};
|
package/dist/utils/timeUtil.js
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const r = (t) => {
|
|
2
|
+
const e = -t.getTimezoneOffset(), o = e >= 0 ? "+" : "-", n = Math.abs(e), s = Math.floor(n / 60), i = n % 60;
|
|
3
|
+
return i === 0 ? `UTC${o}${s}` : `UTC${o}${s}:${String(i).padStart(2, "0")}`;
|
|
4
|
+
}, a = () => {
|
|
5
|
+
var e;
|
|
6
|
+
const { timeZone: t } = new Intl.DateTimeFormat().resolvedOptions();
|
|
7
|
+
return ((e = t.split("/").pop()) == null ? void 0 : e.replace(/_/g, " ")) ?? t;
|
|
8
|
+
}, c = (t, e = !1) => {
|
|
9
|
+
const o = t.toLocaleTimeString([], {
|
|
10
|
+
hour: "2-digit",
|
|
11
|
+
hour12: !1,
|
|
12
|
+
minute: "2-digit",
|
|
13
|
+
second: "2-digit"
|
|
14
|
+
});
|
|
15
|
+
return e ? `${o} (${r(t)} ${a()})` : o;
|
|
16
|
+
};
|
|
6
17
|
export {
|
|
7
|
-
|
|
18
|
+
c as formatLocalTime
|
|
8
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.16.0-beta.
|
|
3
|
+
"version": "3.16.0-beta.8645953",
|
|
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",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import e from "./AutoSaveStatus.vue2.js";
|
|
2
|
-
import r from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var n = function() {
|
|
4
|
-
var s = this, t = s._self._c, a = s._self._setupProxy;
|
|
5
|
-
return a.isFeatureEnabled("autosave") ? t("div", { staticClass: "d-f a-i-c mr-3 auto-save-status" }, [a.autosaveStore.status === a.AUTOSAVE_STATUS.SAVING ? t("span", { staticClass: "d-f a-i-c f-s-1" }, [t(a.InLoading, { attrs: { "color-class": "i-c-53", size: "16" } }), t("span", { staticClass: "ml-1 t-c-53" }, [s._v(s._s(a.trans("newsletter.saving")))])], 1) : a.savedLabel ? t("span", { staticClass: "f-s-1 t-c-53" }, [s._v(s._s(a.savedLabel))]) : s._e()]) : s._e();
|
|
6
|
-
}, _ = [], o = /* @__PURE__ */ r(
|
|
7
|
-
e,
|
|
8
|
-
n,
|
|
9
|
-
_,
|
|
10
|
-
!1,
|
|
11
|
-
null,
|
|
12
|
-
null
|
|
13
|
-
);
|
|
14
|
-
const u = o.exports;
|
|
15
|
-
export {
|
|
16
|
-
u as default
|
|
17
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, computed as u } from "vue";
|
|
2
|
-
import { useConfig as d } from "../../../composables/useConfig.js";
|
|
3
|
-
import { useTranslations as p } from "../../../composables/useTranslations.js";
|
|
4
|
-
import { useAutosaveStore as f, AUTOSAVE_STATUS as o } from "../../../stores/autosave.js";
|
|
5
|
-
import { autoSaveTimestamp as S } from "../../../utils/timeUtil.js";
|
|
6
|
-
import { InLoading as c } from "@useinsider/design-system-vue";
|
|
7
|
-
const g = /* @__PURE__ */ i({
|
|
8
|
-
__name: "AutoSaveStatus",
|
|
9
|
-
setup(v) {
|
|
10
|
-
const { isFeatureEnabled: a } = d(), t = f(), e = p(), s = u(() => {
|
|
11
|
-
if (t.status !== o.SAVED || !t.lastSavedAt)
|
|
12
|
-
return "";
|
|
13
|
-
const { isToday: r, time: m, date: n } = S(t.lastSavedAt);
|
|
14
|
-
return r ? e("email-editor.autosaved-at-today", { time: m }) : e("email-editor.autosaved-at-date", { date: n });
|
|
15
|
-
});
|
|
16
|
-
return { __sfc: !0, isFeatureEnabled: a, autosaveStore: t, trans: e, savedLabel: s, AUTOSAVE_STATUS: o, InLoading: c };
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
g as default
|
|
21
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import i from "./EditorActionsMenu.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var o = function() {
|
|
5
|
-
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
6
|
-
return s("div", { ref: "root", staticClass: "editor-actions-menu p-r" }, [s(t.InButtonV2, { attrs: { id: "guido__kebab-button", "data-testid": "Editor Actions Menu", "left-icon": "line-more-vertical", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.isOpen, "tooltip-options": t.getTooltipOptions("guido__kebab-button"), "tooltip-text": t.trans("email-editor.more-actions") }, on: { click: function(l) {
|
|
7
|
-
t.isOpen = !t.isOpen;
|
|
8
|
-
} } }), t.isOpen ? s("div", { staticClass: "editor-actions-menu__panel p-a" }, [t.isAutosaveVisible ? [s("p", { staticClass: "editor-actions-menu__section f-s-1 t-c-55" }, [e._v(" " + e._s(t.trans("email-editor.preferences")) + " ")]), s("div", { staticClass: "editor-actions-menu__row editor-actions-menu__row_static d-f a-i-c j-c-s-b" }, [s("span", { staticClass: "f-s-2" }, [e._v(e._s(t.trans("email-editor.auto-save")))]), s(t.InToggle, { attrs: { id: "guido__kebab-autosave-toggle", name: "guido-kebab-autosave-toggle", checked: t.autosaveStore.isOn, disable: t.editorStore.loadingStatus }, on: { click: t.toggleAutosave } })], 1), s("div", { staticClass: "editor-actions-menu__divider" })] : e._e(), s("p", { staticClass: "editor-actions-menu__section f-s-1 t-c-55" }, [e._v(" " + e._s(t.trans("email-editor.actions")) + " ")]), t.isVersionHistoryVisible ? s("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-version-history", type: "button", disabled: t.editorStore.isVersionHistoryButtonDisabled }, on: { click: t.handleVersionHistory } }, [s(t.InIcons, { staticClass: "mr-2", attrs: { name: "line-architect-version-history", size: "16" } }), s("span", { staticClass: "f-s-2" }, [e._v(e._s(t.trans("newsletter.version-history")))])], 1) : e._e(), t.isAccessibilityVisible ? s("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-accessibility", type: "button", disabled: t.editorStore.loadingStatus }, on: { click: t.handleAccessibility } }, [s("svg", { staticClass: "mr-2 editor-actions-menu__icon", attrs: { "aria-hidden": "true", fill: "currentColor", height: "16", viewBox: "0 0 24 24", width: "16" } }, [s("path", { attrs: { d: "M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2Z" } })]), s("span", { staticClass: "f-s-2" }, [e._v(e._s(t.trans("email-editor.accessibility-test")))])]) : e._e(), t.isSaveAsVisible ? s("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-save-as", type: "button", disabled: t.editorStore.isSaveAsButtonDisabled }, on: { click: t.handleSaveAs } }, [s(t.InIcons, { staticClass: "mr-2", attrs: { name: "line-newsletter-save-as-template", size: "16" } }), s("span", { staticClass: "f-s-2" }, [e._v(e._s(t.trans("newsletter.save-templates")))])], 1) : e._e(), s("button", { staticClass: "editor-actions-menu__row d-f a-i-c", attrs: { id: "guido__kebab-export", type: "button", disabled: t.isExporting || t.editorStore.isExportButtonDisabled }, on: { click: t.handleExport } }, [s(t.InIcons, { staticClass: "mr-2", attrs: { name: "line-export", size: "16" } }), s("span", { staticClass: "f-s-2" }, [e._v(e._s(t.trans("email-editor.export-html")))])], 1)], 2) : e._e()], 1);
|
|
9
|
-
}, n = [], r = /* @__PURE__ */ a(
|
|
10
|
-
i,
|
|
11
|
-
o,
|
|
12
|
-
n,
|
|
13
|
-
!1,
|
|
14
|
-
null,
|
|
15
|
-
"cbfbc6ef"
|
|
16
|
-
);
|
|
17
|
-
const b = r.exports;
|
|
18
|
-
export {
|
|
19
|
-
b as default
|
|
20
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent as O, ref as c, computed as t } from "vue";
|
|
2
|
-
import { useAccessibilityApi as x } from "../../../composables/useAccessibilityApi.js";
|
|
3
|
-
import { useConfig as h } from "../../../composables/useConfig.js";
|
|
4
|
-
import { useExport as I } from "../../../composables/useExport.js";
|
|
5
|
-
import { useTranslations as B } from "../../../composables/useTranslations.js";
|
|
6
|
-
import { useVersionHistoryApi as C } from "../../../composables/useVersionHistoryApi.js";
|
|
7
|
-
import { useAutosaveStore as w } from "../../../stores/autosave.js";
|
|
8
|
-
import { useEditorStore as M } from "../../../stores/editor.js";
|
|
9
|
-
import { getTooltipOptions as k } from "../../../utils/tooltipUtils.js";
|
|
10
|
-
import { InToggle as D, InIcons as F, InButtonV2 as j } from "@useinsider/design-system-vue";
|
|
11
|
-
import { onClickOutside as q } from "../../../node_modules/@vueuse/core/index.js";
|
|
12
|
-
const Y = /* @__PURE__ */ O({
|
|
13
|
-
__name: "EditorActionsMenu",
|
|
14
|
-
setup(z) {
|
|
15
|
-
const { config: i, isFeatureEnabled: n } = h(), { exportHtml: l } = I(), { openVersionHistory: p, closeVersionHistory: u } = C(), { toggleAccessibilityTestingMode: m } = x(), r = M(), f = w(), d = B(), v = c(!1), a = c(!1), A = c(null), y = t(() => n("autosave")), g = t(() => {
|
|
16
|
-
var o, e;
|
|
17
|
-
return !!((e = (o = i.value) == null ? void 0 : o.features) != null && e.versionHistory);
|
|
18
|
-
}), V = t(() => n("accessibilityTesting")), b = t(() => {
|
|
19
|
-
var o, e;
|
|
20
|
-
return !!((e = (o = i.value) == null ? void 0 : o.features) != null && e.saveAsTemplate);
|
|
21
|
-
}), s = () => {
|
|
22
|
-
v.value = !1;
|
|
23
|
-
}, H = () => {
|
|
24
|
-
r.isVersionHistoryOpen ? u() : p(), s();
|
|
25
|
-
}, _ = () => {
|
|
26
|
-
m(), s();
|
|
27
|
-
}, S = () => {
|
|
28
|
-
r.isSaveAsTemplateDrawerOpen = !0, s();
|
|
29
|
-
}, T = async () => {
|
|
30
|
-
a.value = !0, await l(), a.value = !1, s();
|
|
31
|
-
}, E = (o) => {
|
|
32
|
-
f.isOn = o;
|
|
33
|
-
};
|
|
34
|
-
return q(A, s), { __sfc: !0, config: i, isFeatureEnabled: n, exportHtml: l, openVersionHistory: p, closeVersionHistory: u, toggleAccessibilityTestingMode: m, editorStore: r, autosaveStore: f, trans: d, isOpen: v, isExporting: a, root: A, isAutosaveVisible: y, isVersionHistoryVisible: g, isAccessibilityVisible: V, isSaveAsVisible: b, close: s, handleVersionHistory: H, handleAccessibility: _, handleSaveAs: S, handleExport: T, toggleAutosave: E, getTooltipOptions: k, InButtonV2: j, InIcons: F, InToggle: D };
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
Y as default
|
|
39
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import o from "./AccessibilityToolbar.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import s from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var a = function() {
|
|
5
|
-
var i = this, e = i._self._c, t = i._self._setupProxy;
|
|
6
|
-
return e("div", { staticClass: "d-f a-i-c accessibility-toolbar" }, [e(t.InButtonV2, { attrs: { id: "guido__a11y-no-images", "data-testid": "Accessibility No Images", "left-icon": "line-image", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.editorStore.imagesHidden, "tooltip-options": t.getTooltipOptions("guido__a11y-no-images"), "tooltip-text": t.imagesTooltip }, on: { click: t.toggleImages } }), e(t.InButtonV2, { attrs: { id: "guido__a11y-code", "data-testid": "Accessibility Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.loadingStatus, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__a11y-code"), "tooltip-text": t.trans("newsletter.html-editor") }, on: { click: t.toggleCodeEditor } }), e("div", { staticClass: "accessibility-toolbar__divider" }), e(t.ColorVisionSelect), e(t.InSegments, { staticClass: "ml-2", attrs: { id: "guido__a11y-view-selection", "with-icon": "", "segment-list": t.segmentList, selected: t.editorStore.editorVisualMode }, on: { click: t.handleView } })], 1);
|
|
7
|
-
}, l = [], d = /* @__PURE__ */ s(
|
|
8
|
-
o,
|
|
9
|
-
a,
|
|
10
|
-
l,
|
|
11
|
-
!1,
|
|
12
|
-
null,
|
|
13
|
-
"e222d603"
|
|
14
|
-
);
|
|
15
|
-
const g = d.exports;
|
|
16
|
-
export {
|
|
17
|
-
g as default
|
|
18
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, computed as n } from "vue";
|
|
2
|
-
import { useAccessibilityApi as c } from "../../../../composables/useAccessibilityApi.js";
|
|
3
|
-
import { useTranslations as g } from "../../../../composables/useTranslations.js";
|
|
4
|
-
import { useEditorStore as u } from "../../../../stores/editor.js";
|
|
5
|
-
import { getTooltipOptions as e } from "../../../../utils/tooltipUtils.js";
|
|
6
|
-
import { InSegments as _, InButtonV2 as f } from "@useinsider/design-system-vue";
|
|
7
|
-
import w from "./ColorVisionSelect.vue.js";
|
|
8
|
-
const A = /* @__PURE__ */ d({
|
|
9
|
-
__name: "AccessibilityToolbar",
|
|
10
|
-
setup(b) {
|
|
11
|
-
const t = u(), o = g(), {
|
|
12
|
-
toggleImages: r,
|
|
13
|
-
toggleCodeEditor: m,
|
|
14
|
-
switchToDesktopPreview: i,
|
|
15
|
-
switchToMobilePreview: s
|
|
16
|
-
} = c(), l = n(() => [
|
|
17
|
-
{
|
|
18
|
-
text: "",
|
|
19
|
-
icon: "line-desktop",
|
|
20
|
-
value: "desktop",
|
|
21
|
-
tooltipText: o("newsletter.desktop"),
|
|
22
|
-
tooltipOptions: e("guido__a11y-view-desktop")
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
text: "",
|
|
26
|
-
icon: "line-menu-mobileapp",
|
|
27
|
-
value: "mobile",
|
|
28
|
-
tooltipText: o("newsletter.mobile"),
|
|
29
|
-
tooltipOptions: e("guido__a11y-view-mobile")
|
|
30
|
-
}
|
|
31
|
-
]), p = n(() => t.imagesHidden ? o("email-editor.a11y-show-images") : o("email-editor.a11y-hide-images"));
|
|
32
|
-
return { __sfc: !0, editorStore: t, trans: o, toggleImages: r, toggleCodeEditor: m, switchToDesktopPreview: i, switchToMobilePreview: s, segmentList: l, imagesTooltip: p, handleView: (a) => a === "mobile" ? s() : i(), getTooltipOptions: e, InButtonV2: f, InSegments: _, ColorVisionSelect: w };
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
export {
|
|
36
|
-
A as default
|
|
37
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import i from "./ColorVisionSelect.vue2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var l = function() {
|
|
5
|
-
var e = this, t = e._self._c, s = e._self._setupProxy;
|
|
6
|
-
return t("div", { ref: "root", staticClass: "color-vision-select p-r" }, [t("button", { staticClass: "color-vision-select__trigger d-f a-i-c", attrs: { id: "guido__a11y-color-vision-trigger", type: "button", disabled: s.editorStore.loadingStatus }, on: { click: function(o) {
|
|
7
|
-
s.isOpen = !s.isOpen;
|
|
8
|
-
} } }, [t(s.InIcons, { staticClass: "mr-2", attrs: { name: "line-show-on", size: "16" } }), t("span", { staticClass: "color-vision-select__label f-s-2" }, [e._v(e._s(s.selectedLabel))]), t(s.InIcons, { staticClass: "ml-2", attrs: { name: "line-chevron-small-down", size: "16" } })], 1), s.isOpen ? t("div", { staticClass: "color-vision-select__menu p-a" }, e._l(s.OPTIONS, function(o) {
|
|
9
|
-
return t("button", { key: o.value || "none", staticClass: "color-vision-select__option d-f f-d-c", class: { "color-vision-select__option_selected": o.value === s.editorStore.colorVisionDeficiency }, attrs: { type: "button" }, on: { click: function(_) {
|
|
10
|
-
return s.select(o.value);
|
|
11
|
-
} } }, [t("span", { staticClass: "color-vision-select__option-label f-s-2" }, [e._v(e._s(s.trans(o.labelKey)))]), o.descriptionKey ? t("span", { staticClass: "color-vision-select__option-description f-s-1 t-c-55" }, [e._v(" " + e._s(s.trans(o.descriptionKey)) + " ")]) : e._e()]);
|
|
12
|
-
}), 0) : e._e()]);
|
|
13
|
-
}, c = [], r = /* @__PURE__ */ n(
|
|
14
|
-
i,
|
|
15
|
-
l,
|
|
16
|
-
c,
|
|
17
|
-
!1,
|
|
18
|
-
null,
|
|
19
|
-
"383f6378"
|
|
20
|
-
);
|
|
21
|
-
const p = r.exports;
|
|
22
|
-
export {
|
|
23
|
-
p as default
|
|
24
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, ref as c, computed as m } from "vue";
|
|
2
|
-
import { useAccessibilityApi as u } from "../../../../composables/useAccessibilityApi.js";
|
|
3
|
-
import { useTranslations as v } from "../../../../composables/useTranslations.js";
|
|
4
|
-
import { useEditorStore as f } from "../../../../stores/editor.js";
|
|
5
|
-
import { InIcons as y } from "@useinsider/design-system-vue";
|
|
6
|
-
import { onClickOutside as K } from "../../../../node_modules/@vueuse/core/index.js";
|
|
7
|
-
const V = /* @__PURE__ */ p({
|
|
8
|
-
__name: "ColorVisionSelect",
|
|
9
|
-
setup(b) {
|
|
10
|
-
const e = [
|
|
11
|
-
{
|
|
12
|
-
value: "",
|
|
13
|
-
labelKey: "email-editor.cvd-none"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
value: "protanopia",
|
|
17
|
-
labelKey: "email-editor.cvd-protanopia",
|
|
18
|
-
descriptionKey: "email-editor.cvd-protanopia-description"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
value: "deuteranopia",
|
|
22
|
-
labelKey: "email-editor.cvd-deuteranopia",
|
|
23
|
-
descriptionKey: "email-editor.cvd-deuteranopia-description"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
value: "tritanopia",
|
|
27
|
-
labelKey: "email-editor.cvd-tritanopia",
|
|
28
|
-
descriptionKey: "email-editor.cvd-tritanopia-description"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
value: "achromatopsia",
|
|
32
|
-
labelKey: "email-editor.cvd-achromatopsia",
|
|
33
|
-
descriptionKey: "email-editor.cvd-achromatopsia-description"
|
|
34
|
-
}
|
|
35
|
-
], t = f(), a = v(), { setColorVisionDeficiency: r } = u(), o = c(!1), n = c(null), s = m(() => {
|
|
36
|
-
const i = e.find((d) => d.value === t.colorVisionDeficiency) ?? e[0];
|
|
37
|
-
return a(i.labelKey);
|
|
38
|
-
}), l = (i) => {
|
|
39
|
-
r(i), o.value = !1;
|
|
40
|
-
};
|
|
41
|
-
return K(n, () => {
|
|
42
|
-
o.value = !1;
|
|
43
|
-
}), { __sfc: !0, OPTIONS: e, editorStore: t, trans: a, setColorVisionDeficiency: r, isOpen: o, root: n, selectedLabel: s, select: l, InIcons: y };
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
V as default
|
|
48
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import b from "./EditorTabBarOnboarding.vue2.js";
|
|
2
|
-
import g from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var l = function() {
|
|
4
|
-
var t, a, n, i, e, s;
|
|
5
|
-
var r = this, d = r._self._c, o = r._self._setupProxy;
|
|
6
|
-
return o.isVisible ? d(o.InOnboard, { key: "guido__tab-bar-onboard", staticClass: "w-21-s p-a z-11", class: (t = o.onboardingStore.getEditorTabBarCurrentCard) == null ? void 0 : t.classes, attrs: { id: "guido__tab-bar-onboard", "is-multiple-page": "", visible: "", "image-source": "", title: "", "bottom-position": (a = o.onboardingStore.getEditorTabBarCurrentCard) == null ? void 0 : a.bottom, "left-position": (n = o.onboardingStore.getEditorTabBarCurrentCard) == null ? void 0 : n.left, "pages-config": o.onboardingStore.onboardings.editorTabBarOnboarding.config, "pointer-position": (i = o.onboardingStore.getEditorTabBarCurrentCard) == null ? void 0 : i.position, "right-position": (e = o.onboardingStore.getEditorTabBarCurrentCard) == null ? void 0 : e.right, "top-position": (s = o.onboardingStore.getEditorTabBarCurrentCard) == null ? void 0 : s.top }, on: { backButtonClick: o.handleBack, close: o.finish, nextButtonClick: o.handleNext } }) : r._e();
|
|
7
|
-
}, _ = [], p = /* @__PURE__ */ g(
|
|
8
|
-
b,
|
|
9
|
-
l,
|
|
10
|
-
_,
|
|
11
|
-
!1,
|
|
12
|
-
null,
|
|
13
|
-
null
|
|
14
|
-
);
|
|
15
|
-
const f = p.exports;
|
|
16
|
-
export {
|
|
17
|
-
f as default
|
|
18
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, computed as d, watch as x } from "vue";
|
|
2
|
-
import { useRibbonOffset as B } from "../../../composables/useRibbonOffset.js";
|
|
3
|
-
import { useTranslations as m } from "../../../composables/useTranslations.js";
|
|
4
|
-
import { useOnboardingStore as k } from "../../../stores/onboarding.js";
|
|
5
|
-
import { InOnboard as T } from "@useinsider/design-system-vue";
|
|
6
|
-
const y = /* @__PURE__ */ p({
|
|
7
|
-
__name: "EditorTabBarOnboarding",
|
|
8
|
-
setup(f) {
|
|
9
|
-
const n = "editorTabBarOnboarding", t = m(), i = k(), { getTopPosition: a } = B(), r = () => i.next(n), c = () => i.previous(n), s = () => void i.close(n), b = d(() => [
|
|
10
|
-
{
|
|
11
|
-
classes: "guido-tab-bar-onboarding",
|
|
12
|
-
right: "150px",
|
|
13
|
-
top: a(56),
|
|
14
|
-
position: "Right Top",
|
|
15
|
-
title: t("email-editor.onboarding-kebab-title"),
|
|
16
|
-
description: t("email-editor.onboarding-kebab-description"),
|
|
17
|
-
imageSource: "",
|
|
18
|
-
backButtonClick: () => {
|
|
19
|
-
},
|
|
20
|
-
nextButtonType: "text",
|
|
21
|
-
nextButtonText: t("action-builder.next"),
|
|
22
|
-
nextButtonClick: r
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
classes: "guido-tab-bar-onboarding",
|
|
26
|
-
right: "320px",
|
|
27
|
-
top: a(56),
|
|
28
|
-
position: "Right Top",
|
|
29
|
-
title: t("email-editor.onboarding-autosave-title"),
|
|
30
|
-
description: t("email-editor.onboarding-autosave-description"),
|
|
31
|
-
imageSource: "",
|
|
32
|
-
backButtonType: "text",
|
|
33
|
-
backButtonText: t("action-builder.back"),
|
|
34
|
-
backButtonClick: c,
|
|
35
|
-
nextButtonType: "text",
|
|
36
|
-
nextButtonText: t("action-builder.next"),
|
|
37
|
-
nextButtonClick: r
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
classes: "guido-tab-bar-onboarding",
|
|
41
|
-
right: "150px",
|
|
42
|
-
top: a(56),
|
|
43
|
-
position: "Right Top",
|
|
44
|
-
title: t("email-editor.onboarding-accessibility-title"),
|
|
45
|
-
description: t("email-editor.onboarding-accessibility-description"),
|
|
46
|
-
imageSource: "",
|
|
47
|
-
backButtonType: "text",
|
|
48
|
-
backButtonText: t("action-builder.back"),
|
|
49
|
-
backButtonClick: c,
|
|
50
|
-
nextButtonType: "text",
|
|
51
|
-
nextButtonText: t("action-builder.ok"),
|
|
52
|
-
nextButtonClick: s
|
|
53
|
-
}
|
|
54
|
-
]), u = d(
|
|
55
|
-
() => i.onboardings.editorTabBarOnboarding.config.length > 0 && i.onboardings.editorTabBarOnboarding.isActive
|
|
56
|
-
), g = () => {
|
|
57
|
-
var o, e;
|
|
58
|
-
(e = (o = i.getEditorTabBarCurrentCard) == null ? void 0 : o.nextButtonClick) == null || e.call(o);
|
|
59
|
-
}, l = () => {
|
|
60
|
-
var o, e;
|
|
61
|
-
(e = (o = i.getEditorTabBarCurrentCard) == null ? void 0 : o.backButtonClick) == null || e.call(o);
|
|
62
|
-
};
|
|
63
|
-
return x(
|
|
64
|
-
() => i.onboardings.editorTabBarOnboarding.isActive,
|
|
65
|
-
(o) => {
|
|
66
|
-
o && i.setConfig(n, b.value);
|
|
67
|
-
},
|
|
68
|
-
{ immediate: !0 }
|
|
69
|
-
), { __sfc: !0, ONBOARDING: n, trans: t, onboardingStore: i, getTopPosition: a, goNext: r, goBack: c, finish: s, onboardingCardsConfig: b, isVisible: u, handleNext: g, handleBack: l, InOnboard: T };
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
export {
|
|
73
|
-
y as default
|
|
74
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
};
|