@useinsider/guido 3.19.0-beta.c604f7d → 3.19.0-beta.c8d2be8
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 +20 -21
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +47 -54
- package/dist/components/organisms/AutoSaveController.vue2.js +8 -10
- 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 +13 -13
- package/dist/components/organisms/header/EditorActions.vue2.js +52 -36
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +17 -9
- package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
- package/dist/components/organisms/header/LeftSlot.vue2.js +23 -32
- 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 +8 -9
- package/dist/components/organisms/header/RightSlot.vue2.js +18 -13
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +12 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +38 -56
- package/dist/composables/useCustomInterfaceAppearance.js +41 -42
- package/dist/composables/useHttp.js +55 -44
- package/dist/config/i18n/en/labels.json.js +4 -36
- package/dist/config/i18n/en/tooltips.json.js +1 -2
- package/dist/guido.css +1 -1
- package/dist/sprite.svg +0 -6
- package/dist/src/@types/config/schemas.d.ts +0 -2
- package/dist/src/components/organisms/AutoSaveController.vue.d.ts +1 -3
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +3 -1
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +3 -1
- package/dist/src/composables/useActionsApi.d.ts +2 -2
- package/dist/src/composables/useConfig.d.ts +0 -2
- package/dist/src/stores/config.d.ts +0 -20
- package/dist/src/stores/editor.d.ts +0 -109
- package/dist/src/stores/onboarding.d.ts +21 -952
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/timeUtil.d.ts +0 -5
- package/dist/static/styles/variables.css.js +0 -2
- package/dist/stores/editor.js +4 -7
- package/dist/stores/onboarding.js +21 -43
- 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 -25
- package/dist/components/organisms/header/EditorActionsMenu.vue.js +0 -20
- package/dist/components/organisms/header/EditorActionsMenu.vue2.js +0 -98
- 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 -22
- package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +0 -48
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +0 -19
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +0 -90
- package/dist/composables/useAccessibilityApi.js +0 -35
- package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +0 -2
- 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/static/styles/components/accessibility.css.js +0 -234
- /package/dist/src/components/organisms/header/{AutoSaveStatus.vue.d.ts → AutoSaveToggle.vue.d.ts} +0 -0
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { InContainer as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as n, ref as m } from "vue";
|
|
2
|
+
import { InContainer as a } from "@useinsider/design-system-vue";
|
|
3
|
+
import f from "./LeftSlot.vue.js";
|
|
4
|
+
import p from "./MiddleSlot.vue.js";
|
|
5
|
+
import i from "./RightSlot.vue.js";
|
|
6
|
+
const c = /* @__PURE__ */ n({
|
|
7
7
|
__name: "HeaderWrapper",
|
|
8
|
-
setup(
|
|
9
|
-
|
|
8
|
+
setup(l, { expose: r }) {
|
|
9
|
+
const e = m(null);
|
|
10
|
+
return r({
|
|
11
|
+
// Stryker disable next-line OptionalChaining: RightSlot is always rendered (no
|
|
12
|
+
// v-if), so rightSlotRef.value is never null and `?.` cannot short-circuit.
|
|
13
|
+
handleSave: (t) => {
|
|
14
|
+
var o;
|
|
15
|
+
return (o = e.value) == null ? void 0 : o.handleSave(t);
|
|
16
|
+
}
|
|
17
|
+
}), { __sfc: !0, rightSlotRef: e, InContainer: a, LeftSlot: f, MiddleSlot: p, RightSlot: i };
|
|
10
18
|
}
|
|
11
19
|
});
|
|
12
20
|
export {
|
|
13
|
-
|
|
21
|
+
c as default
|
|
14
22
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import o from "./LeftSlot.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
3
|
+
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var n = function() {
|
|
5
5
|
var e = this, s = e._self._c, t = e._self._setupProxy;
|
|
6
6
|
return s("div", { staticClass: "d-f a-i-c" }, [s(t.InButtonV2, { attrs: { id: "guido__back-button", "left-icon": "line-arrow-left", styling: "ghost", type: "secondary", "disabled-status": t.isBackButtonDisabled, "label-text": t.backButtonLabel, "skeleton-sizing": { width: 150, height: 26 }, "skeleton-status": t.editorStore.loadingStatus }, on: { click: t.handleBackClick } })], 1);
|
|
7
|
-
}, i = [], r = /* @__PURE__ */
|
|
7
|
+
}, i = [], r = /* @__PURE__ */ a(
|
|
8
8
|
o,
|
|
9
|
-
|
|
9
|
+
n,
|
|
10
10
|
i,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"73199fa4"
|
|
14
14
|
);
|
|
15
15
|
const f = r.exports;
|
|
16
16
|
export {
|
|
@@ -1,45 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useTranslations as A } from "../../../composables/useTranslations.js";
|
|
1
|
+
import { defineComponent as l, computed as p, ref as d } from "vue";
|
|
2
|
+
import { useConfig as k } from "../../../composables/useConfig.js";
|
|
3
|
+
import { useBack as B } from "../../../composables/useGuidoActions.js";
|
|
4
|
+
import { usePreviewMode as b } from "../../../composables/usePreviewMode.js";
|
|
5
|
+
import { useTranslations as v } from "../../../composables/useTranslations.js";
|
|
7
6
|
import { useVersionHistoryApi as _ } from "../../../composables/useVersionHistoryApi.js";
|
|
8
|
-
import { useEditorStore as
|
|
9
|
-
import { InButtonV2 as
|
|
10
|
-
import { useDebounceFn as
|
|
11
|
-
const
|
|
7
|
+
import { useEditorStore as V } from "../../../stores/editor.js";
|
|
8
|
+
import { InButtonV2 as w } from "@useinsider/design-system-vue";
|
|
9
|
+
import { useDebounceFn as y } from "../../../node_modules/@vueuse/shared/index.js";
|
|
10
|
+
const D = /* @__PURE__ */ l({
|
|
12
11
|
__name: "LeftSlot",
|
|
13
|
-
setup(
|
|
14
|
-
const e =
|
|
15
|
-
var
|
|
16
|
-
return e.isVersionHistoryOpen || e.isPreviewModeOpen
|
|
17
|
-
}),
|
|
12
|
+
setup(C) {
|
|
13
|
+
const e = V(), i = B(), { closeVersionHistory: n } = _(), { closePreviewMode: s } = b(), o = v(), { config: t } = k(), f = p(() => {
|
|
14
|
+
var u, m;
|
|
15
|
+
return e.isVersionHistoryOpen || e.isPreviewModeOpen ? o("email-editor.back-to-editor") : (m = (u = t.value) == null ? void 0 : u.ui) != null && m.backButtonLabel ? t.value.ui.backButtonLabel : o("email-editor.back-to-design");
|
|
16
|
+
}), r = d(!1), c = () => {
|
|
18
17
|
if (e.isVersionHistoryOpen) {
|
|
19
|
-
r();
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
if (e.isPreviewModeOpen) {
|
|
23
18
|
n();
|
|
24
19
|
return;
|
|
25
20
|
}
|
|
26
|
-
if (e.
|
|
27
|
-
|
|
21
|
+
if (e.isPreviewModeOpen) {
|
|
22
|
+
s();
|
|
28
23
|
return;
|
|
29
24
|
}
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
a();
|
|
34
|
-
} finally {
|
|
35
|
-
i.value = !1;
|
|
36
|
-
}
|
|
25
|
+
i();
|
|
26
|
+
}, a = y(() => {
|
|
27
|
+
c(), r.value = !1;
|
|
37
28
|
}, 500);
|
|
38
|
-
return { __sfc: !0, editorStore: e, handleBack:
|
|
39
|
-
|
|
40
|
-
}, InButtonV2:
|
|
29
|
+
return { __sfc: !0, editorStore: e, handleBack: i, closeVersionHistory: n, closePreviewMode: s, trans: o, config: t, backButtonLabel: f, isBackButtonDisabled: r, executeBackAction: c, debouncedBackAction: a, handleBackClick: () => {
|
|
30
|
+
r.value = !0, a();
|
|
31
|
+
}, InButtonV2: w };
|
|
41
32
|
}
|
|
42
33
|
});
|
|
43
34
|
export {
|
|
44
|
-
|
|
35
|
+
D as default
|
|
45
36
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import r from "./MiddleSlot.vue2.js";
|
|
2
2
|
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var t = function() {
|
|
4
|
-
var o = this,
|
|
5
|
-
return
|
|
4
|
+
var o = this, e = o._self._c, i = o._self._setupProxy;
|
|
5
|
+
return e("div", { staticClass: "d-f a-i-c" }, [i.editorStore.isVersionHistoryOpen ? e("div", { staticClass: "d-f" }, [e(i.VersionHistory), e(i.VersionHistoryViewOptions)], 1) : i.editorStore.isPreviewModeOpen ? e("div", { staticClass: "d-f" }, [e(i.EmailSizeIndicator), e(i.AmpToggle)], 1) : o._e(), e(i.EditorToolbar, { directives: [{ name: "show", rawName: "v-show", value: i.editorStore.isEditorToolbarVisible, expression: "editorStore.isEditorToolbarVisible" }] })], 1);
|
|
6
6
|
}, a = [], n = /* @__PURE__ */ s(
|
|
7
7
|
r,
|
|
8
8
|
t,
|
|
@@ -11,7 +11,7 @@ var t = function() {
|
|
|
11
11
|
null,
|
|
12
12
|
null
|
|
13
13
|
);
|
|
14
|
-
const
|
|
14
|
+
const c = n.exports;
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
c as default
|
|
17
17
|
};
|
|
@@ -2,16 +2,15 @@ import { defineComponent as o } from "vue";
|
|
|
2
2
|
import r from "../email-preview/amp/AmpToggle.vue.js";
|
|
3
3
|
import t from "../email-preview/desktop-preview/EmailSizeIndicator.vue.js";
|
|
4
4
|
import { useEditorStore as i } from "../../../stores/editor.js";
|
|
5
|
-
import e from "./
|
|
6
|
-
import m from "./
|
|
7
|
-
import p from "./version-history/
|
|
8
|
-
|
|
9
|
-
const y = /* @__PURE__ */ o({
|
|
5
|
+
import e from "./EditorToolbar.vue.js";
|
|
6
|
+
import m from "./version-history/VersionHistory.vue.js";
|
|
7
|
+
import p from "./version-history/ViewOptions.vue.js";
|
|
8
|
+
const S = /* @__PURE__ */ o({
|
|
10
9
|
__name: "MiddleSlot",
|
|
11
|
-
setup(
|
|
12
|
-
return { __sfc: !0, editorStore: i(), AmpToggle: r, EmailSizeIndicator: t,
|
|
10
|
+
setup(s) {
|
|
11
|
+
return { __sfc: !0, editorStore: i(), AmpToggle: r, EmailSizeIndicator: t, EditorToolbar: e, VersionHistory: m, VersionHistoryViewOptions: p };
|
|
13
12
|
}
|
|
14
13
|
});
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
S as default
|
|
17
16
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
/* empty css */
|
|
1
|
+
import s from "./RightSlot.vue2.js";
|
|
3
2
|
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
3
|
var r = function() {
|
|
5
|
-
var
|
|
6
|
-
return
|
|
7
|
-
}, a = [],
|
|
8
|
-
|
|
4
|
+
var i = this, e = i._self._c, t = i._self._setupProxy;
|
|
5
|
+
return e("div", { staticClass: "d-f a-i-c" }, [t.editorStore.isVersionHistoryOpen ? i._e() : e(t.AutoSaveToggle), t.isLiquidEnabled && !t.editorStore.isVersionHistoryOpen ? e(t.InChips, { staticClass: "mr-1", attrs: { id: "guido__liquid-tag-chip", styles: "stroke", type: "default", value: "liquid-tags", "close-button": !1, "disabled-status": t.editorStore.loadingStatus, interactive: !1, text: t.trans("email-editor.liquid-tags-enabled") } }) : i._e(), t.editorStore.isVersionHistoryOpen ? e(t.RestoreButton) : e(t.EditorActions, { ref: "editorActionsRef" })], 1);
|
|
6
|
+
}, a = [], n = /* @__PURE__ */ o(
|
|
7
|
+
s,
|
|
9
8
|
r,
|
|
10
9
|
a,
|
|
11
10
|
!1,
|
|
12
11
|
null,
|
|
13
|
-
|
|
12
|
+
null
|
|
14
13
|
);
|
|
15
|
-
const
|
|
14
|
+
const u = n.exports;
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
u as default
|
|
18
17
|
};
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useConfig as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import { useEditorStore as
|
|
5
|
-
import { InChips as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as a, ref as f, computed as p } from "vue";
|
|
2
|
+
import { useConfig as u } from "../../../composables/useConfig.js";
|
|
3
|
+
import { useTranslations as d } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useEditorStore as l } from "../../../stores/editor.js";
|
|
5
|
+
import { InChips as c } from "@useinsider/design-system-vue";
|
|
6
|
+
import _ from "./AutoSaveToggle.vue.js";
|
|
7
|
+
import S from "./EditorActions.vue.js";
|
|
8
|
+
import g from "./version-history/RestoreButton.vue.js";
|
|
9
|
+
const T = /* @__PURE__ */ a({
|
|
10
10
|
__name: "RightSlot",
|
|
11
|
-
setup(
|
|
12
|
-
const { isFeatureEnabled: o } =
|
|
13
|
-
return {
|
|
11
|
+
setup(h, { expose: r }) {
|
|
12
|
+
const { isFeatureEnabled: o } = u(), i = d(), n = l(), t = f(null), s = p(() => o("liquidSyntax"));
|
|
13
|
+
return r({
|
|
14
|
+
handleSave: (m) => {
|
|
15
|
+
var e;
|
|
16
|
+
return (e = t.value) == null ? void 0 : e.handleSave(m);
|
|
17
|
+
}
|
|
18
|
+
}), { __sfc: !0, isFeatureEnabled: o, trans: i, editorStore: n, editorActionsRef: t, isLiquidEnabled: s, InChips: c, AutoSaveToggle: _, EditorActions: S, RestoreButton: g };
|
|
14
19
|
}
|
|
15
20
|
});
|
|
16
21
|
export {
|
|
17
|
-
|
|
22
|
+
T as default
|
|
18
23
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var n = this,
|
|
5
|
-
return
|
|
6
|
-
return
|
|
7
|
-
return
|
|
1
|
+
import t from "./OnboardingWrapper.vue2.js";
|
|
2
|
+
import i from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var s = function() {
|
|
4
|
+
var n = this, e = n._self._c, r = n._self._setupProxy;
|
|
5
|
+
return e("div", n._l(r.visibleOnboardings, function(o) {
|
|
6
|
+
return e(o.component, { key: o.type, tag: "component", on: { "onboarding-finished": function(p) {
|
|
7
|
+
return r.emit("onboarding-finished");
|
|
8
8
|
} } });
|
|
9
9
|
}), 1);
|
|
10
|
-
},
|
|
11
|
-
|
|
10
|
+
}, _ = [], a = /* @__PURE__ */ i(
|
|
11
|
+
t,
|
|
12
|
+
s,
|
|
12
13
|
_,
|
|
13
|
-
i,
|
|
14
14
|
!1,
|
|
15
15
|
null,
|
|
16
16
|
null
|
|
17
17
|
);
|
|
18
|
-
const
|
|
18
|
+
const d = a.exports;
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
d as default
|
|
21
21
|
};
|
|
@@ -1,68 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
import { usePreviewStore as N } from "../../../stores/preview.js";
|
|
16
|
-
const Z = /* @__PURE__ */ y({
|
|
1
|
+
import { defineComponent as f, computed as e, onMounted as O, watch as t } from "vue";
|
|
2
|
+
import y from "./AMPOnboarding.vue.js";
|
|
3
|
+
import u from "./GenericOnboarding.vue.js";
|
|
4
|
+
import v from "./ItemsOnboarding.vue.js";
|
|
5
|
+
import S from "./NewVersionPopup.vue.js";
|
|
6
|
+
import l from "./RecommendationLegacyStrategyOnboarding.vue.js";
|
|
7
|
+
import h from "./RecommendationStrategyOnboarding.vue.js";
|
|
8
|
+
import w from "./TextBlockOnboarding.vue.js";
|
|
9
|
+
import P from "./VersionHistoryOnboarding.vue.js";
|
|
10
|
+
import { usePartner as _ } from "../../../composables/usePartner.js";
|
|
11
|
+
import { useEditorStore as A } from "../../../stores/editor.js";
|
|
12
|
+
import { useOnboardingStore as H } from "../../../stores/onboarding.js";
|
|
13
|
+
import { usePreviewStore as M } from "../../../stores/preview.js";
|
|
14
|
+
const U = /* @__PURE__ */ f({
|
|
17
15
|
__name: "OnboardingWrapper",
|
|
18
16
|
emits: ["onboarding-finished"],
|
|
19
|
-
setup(
|
|
20
|
-
const o =
|
|
21
|
-
{ type: "newVersionPopup", component:
|
|
22
|
-
{ type: "genericOnboarding", component:
|
|
23
|
-
{ type: "textBlockOnboarding", component:
|
|
24
|
-
{ type: "versionHistoryOnboarding", component:
|
|
25
|
-
{ type: "ampOnboarding", component:
|
|
26
|
-
{ type: "itemsOnboarding", component:
|
|
27
|
-
{ type: "
|
|
28
|
-
{ type: "
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
S(async () => {
|
|
17
|
+
setup(x, { emit: g }) {
|
|
18
|
+
const o = H(), r = A(), a = M(), { isTestPartner: s } = _(), m = e(() => r.isStripoInitialized), p = e(() => s()), d = [
|
|
19
|
+
{ type: "newVersionPopup", component: S },
|
|
20
|
+
{ type: "genericOnboarding", component: u },
|
|
21
|
+
{ type: "textBlockOnboarding", component: w },
|
|
22
|
+
{ type: "versionHistoryOnboarding", component: P },
|
|
23
|
+
{ type: "ampOnboarding", component: y },
|
|
24
|
+
{ type: "itemsOnboarding", component: v },
|
|
25
|
+
{ type: "recommendationStrategyOnboarding", component: h },
|
|
26
|
+
{ type: "recommendationLegacyStrategyOnboarding", component: l }
|
|
27
|
+
], c = (n) => p.value || !m.value ? !1 : n === "newVersionPopup" ? o.shouldShowOnboarding(n) : o.isActive(n), b = e(() => d.filter((n) => c(n.type)));
|
|
28
|
+
return O(async () => {
|
|
32
29
|
await o.fetchUserModalState();
|
|
33
|
-
}),
|
|
34
|
-
() =>
|
|
35
|
-
(n,
|
|
36
|
-
n && !
|
|
30
|
+
}), t(
|
|
31
|
+
() => r.isVersionHistoryOpen,
|
|
32
|
+
(n, i) => {
|
|
33
|
+
n && !i && o.shouldShowOnboarding("versionHistoryOnboarding") && o.start("versionHistoryOnboarding"), !n && i && o.isActive("versionHistoryOnboarding") && o.close("versionHistoryOnboarding");
|
|
37
34
|
}
|
|
38
|
-
),
|
|
39
|
-
() =>
|
|
40
|
-
(n,
|
|
41
|
-
|
|
35
|
+
), t(
|
|
36
|
+
() => a.emailFormat,
|
|
37
|
+
(n, i) => {
|
|
38
|
+
i !== "AMP" && n === "AMP" && o.shouldShowOnboarding("ampOnboarding") && o.start("ampOnboarding");
|
|
42
39
|
}
|
|
43
|
-
),
|
|
44
|
-
() =>
|
|
40
|
+
), t(
|
|
41
|
+
() => r.isPreviewModeOpen,
|
|
45
42
|
(n) => {
|
|
46
43
|
!n && o.isActive("ampOnboarding") && o.close("ampOnboarding");
|
|
47
44
|
}
|
|
48
|
-
);
|
|
49
|
-
const d = h(!1), v = (n) => {
|
|
50
|
-
n === "newVersionPopup" && (d.value = !0), p("onboarding-finished");
|
|
51
|
-
}, m = r(() => i.isNormalMode && !i.isPreviewModeOpen), u = r(() => a.value && o.isFetched && g("accessibilityTesting") && !s.value && m.value && !(o.shouldShowOnboarding("newVersionPopup") && !d.value) && !o.isOnboardingActive() && !o.closedThisSession.includes("editorTabBarOnboarding") && o.shouldShowOnboarding("editorTabBarOnboarding"));
|
|
52
|
-
return e(
|
|
53
|
-
u,
|
|
54
|
-
(n) => {
|
|
55
|
-
n && o.start("editorTabBarOnboarding");
|
|
56
|
-
},
|
|
57
|
-
{ immediate: !0 }
|
|
58
|
-
), e(
|
|
59
|
-
m,
|
|
60
|
-
(n) => {
|
|
61
|
-
!n && o.isActive("editorTabBarOnboarding") && o.closeForSession("editorTabBarOnboarding");
|
|
62
|
-
}
|
|
63
|
-
), { __sfc: !0, emit: p, onboardingStore: o, editorStore: i, previewStore: c, isTestPartner: b, isFeatureEnabled: g, isStripoReady: a, isTestPartnerActive: s, onboardingConfigs: O, shouldShow: f, visibleOnboardings: l, isNewVersionPopupClosed: d, handleFinished: v, isTourAnchored: m, canStartTabBarTour: u };
|
|
45
|
+
), { __sfc: !0, emit: g, onboardingStore: o, editorStore: r, previewStore: a, isTestPartner: s, isStripoReady: m, isTestPartnerActive: p, onboardingConfigs: d, shouldShow: c, visibleOnboardings: b };
|
|
64
46
|
}
|
|
65
47
|
});
|
|
66
48
|
export {
|
|
67
|
-
|
|
49
|
+
U as default
|
|
68
50
|
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import p from "../static/assets/icons/filled-arrow-rising.svg.js";
|
|
2
2
|
import s from "../static/assets/icons/line-change.svg.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import a from "../static/assets/icons/line-delete.svg.js";
|
|
4
|
+
import f from "../static/assets/icons/line-info.svg.js";
|
|
5
5
|
import c from "../static/assets/icons/line-plus.svg.js";
|
|
6
6
|
import l from "../static/styles/base.css.js";
|
|
7
|
-
import C from "../static/styles/components/
|
|
8
|
-
import d from "../static/styles/components/
|
|
9
|
-
import u from "../static/styles/components/
|
|
10
|
-
import h from "../static/styles/components/
|
|
11
|
-
import I from "../static/styles/components/button
|
|
12
|
-
import g from "../static/styles/components/
|
|
13
|
-
import w from "../static/styles/components/
|
|
14
|
-
import y from "../static/styles/components/
|
|
15
|
-
import A from "../static/styles/components/
|
|
16
|
-
import $ from "../static/styles/components/
|
|
17
|
-
import b from "../static/styles/components/
|
|
18
|
-
import B from "../static/styles/components/
|
|
19
|
-
import D from "../static/styles/components/
|
|
20
|
-
import R from "../static/styles/components/
|
|
21
|
-
import P from "../static/styles/components/
|
|
22
|
-
import T from "../static/styles/components/
|
|
23
|
-
import x from "../static/styles/components/
|
|
24
|
-
import M from "../static/styles/components/
|
|
25
|
-
import O from "../static/styles/
|
|
26
|
-
import V from "../static/styles/variables.css.js";
|
|
7
|
+
import C from "../static/styles/components/alert-message.css.js";
|
|
8
|
+
import d from "../static/styles/components/amp-block.css.js";
|
|
9
|
+
import u from "../static/styles/components/base-input.css.js";
|
|
10
|
+
import h from "../static/styles/components/button-group.css.js";
|
|
11
|
+
import I from "../static/styles/components/button.css.js";
|
|
12
|
+
import g from "../static/styles/components/combobox.css.js";
|
|
13
|
+
import w from "../static/styles/components/counter.css.js";
|
|
14
|
+
import y from "../static/styles/components/dropdown-menu.css.js";
|
|
15
|
+
import A from "../static/styles/components/loader.css.js";
|
|
16
|
+
import $ from "../static/styles/components/narrow-panel.css.js";
|
|
17
|
+
import b from "../static/styles/components/popup.css.js";
|
|
18
|
+
import B from "../static/styles/components/recommendation-strategy.css.js";
|
|
19
|
+
import D from "../static/styles/components/skeleton.css.js";
|
|
20
|
+
import R from "../static/styles/components/switcher.css.js";
|
|
21
|
+
import P from "../static/styles/components/tabs.css.js";
|
|
22
|
+
import T from "../static/styles/components/tools.css.js";
|
|
23
|
+
import x from "../static/styles/components/version-history.css.js";
|
|
24
|
+
import M from "../static/styles/components/wide-panel.css.js";
|
|
25
|
+
import O from "../static/styles/variables.css.js";
|
|
27
26
|
function o(i, r) {
|
|
28
27
|
return `--guido-icon-${i}: url("data:image/svg+xml,${encodeURIComponent(r.trim())}");`;
|
|
29
28
|
}
|
|
30
|
-
const
|
|
29
|
+
const V = `:host {
|
|
31
30
|
${o("line-change", s)}
|
|
32
|
-
${o("line-delete",
|
|
31
|
+
${o("line-delete", a)}
|
|
33
32
|
${o("filled-arrow-rising", p)}
|
|
34
|
-
${o("line-info",
|
|
33
|
+
${o("line-info", f)}
|
|
35
34
|
${o("line-plus", c)}
|
|
36
|
-
}`,
|
|
37
|
-
|
|
35
|
+
}`, W = [
|
|
36
|
+
O,
|
|
38
37
|
// Must be on top
|
|
39
|
-
|
|
38
|
+
V,
|
|
40
39
|
l,
|
|
41
40
|
// Must be on top
|
|
41
|
+
C,
|
|
42
42
|
d,
|
|
43
43
|
u,
|
|
44
44
|
h,
|
|
@@ -49,34 +49,33 @@ const W = `:host {
|
|
|
49
49
|
A,
|
|
50
50
|
$,
|
|
51
51
|
b,
|
|
52
|
-
|
|
52
|
+
D,
|
|
53
53
|
R,
|
|
54
54
|
P,
|
|
55
55
|
T,
|
|
56
56
|
x,
|
|
57
57
|
M,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
C
|
|
58
|
+
B
|
|
59
|
+
// Last: overrides button.css / wide-panel.css defaults
|
|
61
60
|
].join(`
|
|
62
61
|
|
|
63
|
-
`),
|
|
62
|
+
`), _ = 3e4;
|
|
64
63
|
let e = null;
|
|
65
|
-
function
|
|
66
|
-
return e || (e = new CSSStyleSheet(), e.replaceSync(
|
|
64
|
+
function k() {
|
|
65
|
+
return e || (e = new CSSStyleSheet(), e.replaceSync(W)), e;
|
|
67
66
|
}
|
|
68
|
-
const
|
|
69
|
-
const r =
|
|
70
|
-
var
|
|
71
|
-
const t = (
|
|
67
|
+
const po = () => ({ importCss: () => {
|
|
68
|
+
const r = k(), S = Date.now() + _, n = () => {
|
|
69
|
+
var m;
|
|
70
|
+
const t = (m = document.querySelector("ui-editor")) == null ? void 0 : m.shadowRoot;
|
|
72
71
|
if (t) {
|
|
73
72
|
t.adoptedStyleSheets.includes(r) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, r]);
|
|
74
73
|
return;
|
|
75
74
|
}
|
|
76
|
-
Date.now() < S && requestAnimationFrame(
|
|
75
|
+
Date.now() < S && requestAnimationFrame(n);
|
|
77
76
|
};
|
|
78
|
-
|
|
77
|
+
n();
|
|
79
78
|
} });
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
po as useCustomInterfaceAppearance
|
|
82
81
|
};
|