@useinsider/guido 3.13.0-beta.a6f0620 → 3.13.0-beta.af13dc8

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.
Files changed (51) hide show
  1. package/dist/@types/config/schemas.js +11 -9
  2. package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
  3. package/dist/components/organisms/header/AutoSaveStatus.vue2.js +21 -0
  4. package/dist/components/organisms/header/EditorActions.vue.js +11 -11
  5. package/dist/components/organisms/header/EditorActions.vue2.js +34 -50
  6. package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
  7. package/dist/components/organisms/header/EditorActionsMenu.vue2.js +39 -0
  8. package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
  9. package/dist/components/organisms/header/LeftSlot.vue2.js +28 -23
  10. package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
  11. package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
  12. package/dist/components/organisms/header/RightSlot.vue.js +6 -6
  13. package/dist/components/organisms/header/RightSlot.vue2.js +17 -15
  14. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
  15. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
  16. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +24 -0
  17. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
  18. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +18 -0
  19. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +74 -0
  20. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +43 -34
  21. package/dist/composables/useAccessibilityApi.js +31 -0
  22. package/dist/composables/useEmailTemplateApplier.js +32 -46
  23. package/dist/config/i18n/en/labels.json.js +23 -0
  24. package/dist/guido.css +1 -1
  25. package/dist/node_modules/@vueuse/core/index.js +102 -0
  26. package/dist/node_modules/@vueuse/shared/index.js +40 -28
  27. package/dist/sprite.svg +7 -0
  28. package/dist/src/@types/config/schemas.d.ts +4 -0
  29. package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
  30. package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
  31. package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
  32. package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
  33. package/dist/src/composables/useAccessibilityApi.d.ts +15 -0
  34. package/dist/src/composables/useActionsApi.d.ts +2 -2
  35. package/dist/src/composables/useConfig.d.ts +2 -0
  36. package/dist/src/stores/config.d.ts +18 -0
  37. package/dist/src/stores/dynamic-content.d.ts +0 -17
  38. package/dist/src/stores/editor.d.ts +105 -0
  39. package/dist/src/stores/onboarding.d.ts +377 -0
  40. package/dist/src/stores/version-history.d.ts +1 -1
  41. package/dist/src/utils/timeUtil.d.ts +10 -0
  42. package/dist/stores/dynamic-content.js +2 -21
  43. package/dist/stores/editor.js +5 -1
  44. package/dist/stores/onboarding.js +18 -13
  45. package/dist/utils/timeUtil.js +6 -17
  46. package/package.json +1 -1
  47. package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
  48. package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
  49. package/dist/src/utils/registerUsedDynamicContent.d.ts +0 -13
  50. package/dist/utils/registerUsedDynamicContent.js +0 -23
  51. /package/dist/src/components/organisms/header/{AutoSaveToggle.vue.d.ts → AutoSaveStatus.vue.d.ts} +0 -0
@@ -1,22 +0,0 @@
1
- import o from "./AutoSaveToggle.vue2.js";
2
- /* empty css */
3
- import i from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var n = function() {
5
- var e = this, a = e._self._c, t = e._self._setupProxy;
6
- return t.isFeatureEnabled("autosave") ? a("div", { staticClass: "d-f a-i-c mr-3 auto-save-toggle", on: { mouseenter: function(s) {
7
- t.isHovered = !0;
8
- }, mouseleave: function(s) {
9
- t.isHovered = !1;
10
- } } }, [a(t.InToggle, { attrs: { id: "guido__autosave-toggle", name: "guido-autosave-toggle", checked: t.autosaveStore.isOn, disable: t.editorStore.loadingStatus }, on: { click: t.toggle } }), a("span", { staticClass: "ml-2 auto-save-toggle__label t-c-55" }, [e._v(" " + e._s(t.trans("email-editor.auto-save")) + " ")]), t.autosaveStore.status === t.AUTOSAVE_STATUS.SAVING ? a("span", { staticClass: "ml-2 d-f a-i-c f-s-1" }, [a(t.InLoading, { attrs: { "color-class": "i-c-53", size: "16" } }), a("span", { staticClass: "ml-1 t-c-53" }, [e._v(" " + e._s(t.trans("newsletter.saving")) + " ")])], 1) : t.lastSavedLabel ? a("span", { staticClass: "ml-2 f-s-1 t-c-53" }, [e._v(" " + e._s(t.lastSavedLabel) + " ")]) : e._e(), t.isHovered ? a(t.InInfoBox, { staticClass: "auto-save-toggle__info-box", attrs: { id: "guido__autosave-info-box", size: "small", variant: "information", "description-text": t.trans("email-editor.auto-save-description"), "title-text": t.trans("email-editor.auto-save-title") } }) : e._e()], 1) : e._e();
11
- }, l = [], r = /* @__PURE__ */ i(
12
- o,
13
- n,
14
- l,
15
- !1,
16
- null,
17
- "2c964af4"
18
- );
19
- const d = r.exports;
20
- export {
21
- d as default
22
- };
@@ -1,19 +0,0 @@
1
- import { defineComponent as i, ref as f, computed as u } from "vue";
2
- import { useConfig as l } from "../../../composables/useConfig.js";
3
- import { useTranslations as p } from "../../../composables/useTranslations.js";
4
- import { useAutosaveStore as c, AUTOSAVE_STATUS as t } from "../../../stores/autosave.js";
5
- import { useEditorStore as S } from "../../../stores/editor.js";
6
- import { formatLocalTime as d } from "../../../utils/timeUtil.js";
7
- import { InToggle as g, InLoading as _, InInfoBox as A } from "@useinsider/design-system-vue";
8
- const U = /* @__PURE__ */ i({
9
- __name: "AutoSaveToggle",
10
- setup(v) {
11
- const { isFeatureEnabled: e } = l(), r = S(), o = c(), s = p(), n = f(!1), a = u(() => o.status !== t.SAVED || !o.lastSavedAt ? "" : d(o.lastSavedAt));
12
- return { __sfc: !0, isFeatureEnabled: e, editorStore: r, autosaveStore: o, trans: s, isHovered: n, lastSavedLabel: a, toggle: (m) => {
13
- o.isOn = m;
14
- }, AUTOSAVE_STATUS: t, InInfoBox: A, InLoading: _, InToggle: g };
15
- }
16
- });
17
- export {
18
- U as default
19
- };
@@ -1,13 +0,0 @@
1
- import type { DynamicContent } from '@@/Types/generic';
2
- export declare const extractUsedDynamicContent: (html: string, flattenedCatalog: DynamicContent[] | undefined | null) => DynamicContent[];
3
- /**
4
- * Dev-diagnostic sibling of `extractUsedDynamicContent`: the clean token names
5
- * used in `html` that had NO catalog match (so were intentionally NOT
6
- * registered). Wired into useEmailTemplateApplier's dev-gated `console.debug`
7
- * so a developer can spot a neo↔guido personalization-vocabulary mismatch
8
- * (see T-C2 report §8: neo may emit Atrium-schema keys the guido catalog
9
- * doesn't recognize) in one look, without changing what actually gets
10
- * registered. Same empty/undefined/null-catalog handling as
11
- * `extractUsedDynamicContent` — never throws.
12
- */
13
- export declare const getUnmatchedDynamicContentTokens: (html: string, flattenedCatalog: DynamicContent[] | undefined | null) => string[];
@@ -1,23 +0,0 @@
1
- import { DATA_ATTRIBUTE_REGEX as T } from "../enums/html-validator.js";
2
- const d = /{{([a-zA-Z0-9_.\s]*)}}/gm, h = (n, e) => {
3
- if (!e || e.length === 0)
4
- return { matched: [], unmatchedTokens: [] };
5
- const s = n.replace(T, "$1").match(d);
6
- if (!s)
7
- return { matched: [], unmatchedTokens: [] };
8
- const u = new Map(
9
- e.map((c) => [c.value.trim().toLowerCase(), c])
10
- ), a = /* @__PURE__ */ new Set(), o = [], m = [];
11
- return s.forEach((c) => {
12
- const t = c.slice(2, -2).trim().toLowerCase();
13
- if (t === "" || a.has(t))
14
- return;
15
- a.add(t);
16
- const r = u.get(t);
17
- r ? o.push(r) : m.push(t);
18
- }), { matched: o, unmatchedTokens: m };
19
- }, E = (n, e) => h(n, e).matched, k = (n, e) => h(n, e).unmatchedTokens;
20
- export {
21
- E as extractUsedDynamicContent,
22
- k as getUnmatchedDynamicContentTokens
23
- };