@useinsider/guido 3.18.0-beta.19e1253 → 3.18.0-beta.206bb3f

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 (59) hide show
  1. package/dist/@types/config/schemas.js +15 -13
  2. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +13 -15
  3. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +41 -43
  4. package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
  5. package/dist/components/organisms/header/AutoSaveStatus.vue2.js +27 -0
  6. package/dist/components/organisms/header/EditorActions.vue.js +13 -13
  7. package/dist/components/organisms/header/EditorActions.vue2.js +34 -50
  8. package/dist/components/organisms/header/EditorActionsMenu.vue.js +20 -0
  9. package/dist/components/organisms/header/EditorActionsMenu.vue2.js +43 -0
  10. package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
  11. package/dist/components/organisms/header/LeftSlot.vue2.js +28 -23
  12. package/dist/components/organisms/header/MiddleSlot.vue.js +4 -4
  13. package/dist/components/organisms/header/MiddleSlot.vue2.js +8 -7
  14. package/dist/components/organisms/header/RightSlot.vue.js +7 -6
  15. package/dist/components/organisms/header/RightSlot.vue2.js +17 -15
  16. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue.js +18 -0
  17. package/dist/components/organisms/header/accessibility/AccessibilityToolbar.vue2.js +37 -0
  18. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue.js +24 -0
  19. package/dist/components/organisms/header/accessibility/ColorVisionSelect.vue2.js +48 -0
  20. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue.js +18 -0
  21. package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +81 -0
  22. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +43 -34
  23. package/dist/composables/useAccessibilityApi.js +31 -0
  24. package/dist/composables/useCustomInterfaceAppearance.js +31 -28
  25. package/dist/config/i18n/en/labels.json.js +28 -4
  26. package/dist/config/i18n/en/tooltips.json.js +2 -1
  27. package/dist/enums/extensions/recommendationBlock.js +11 -12
  28. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +20 -19
  29. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +70 -98
  30. package/dist/guido.css +1 -1
  31. package/dist/node_modules/@vueuse/core/index.js +102 -0
  32. package/dist/node_modules/@vueuse/shared/index.js +40 -28
  33. package/dist/package.json.js +1 -1
  34. package/dist/sprite.svg +6 -0
  35. package/dist/src/@types/config/schemas.d.ts +4 -0
  36. package/dist/src/components/organisms/header/EditorActionsMenu.vue.d.ts +2 -0
  37. package/dist/src/components/organisms/header/accessibility/AccessibilityToolbar.vue.d.ts +2 -0
  38. package/dist/src/components/organisms/header/accessibility/ColorVisionSelect.vue.d.ts +2 -0
  39. package/dist/src/components/organisms/onboarding/EditorTabBarOnboarding.vue.d.ts +2 -0
  40. package/dist/src/composables/useAccessibilityApi.d.ts +15 -0
  41. package/dist/src/composables/useActionsApi.d.ts +2 -2
  42. package/dist/src/composables/useConfig.d.ts +2 -0
  43. package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -1
  44. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -18
  45. package/dist/src/stores/config.d.ts +18 -0
  46. package/dist/src/stores/editor.d.ts +76 -0
  47. package/dist/src/stores/onboarding.d.ts +377 -0
  48. package/dist/src/stores/version-history.d.ts +1 -1
  49. package/dist/src/utils/timeUtil.d.ts +10 -0
  50. package/dist/static/styles/components/accessibility.css.js +140 -0
  51. package/dist/static/styles/components/recommendation-strategy.css.js +4 -1
  52. package/dist/static/styles/variables.css.js +1 -0
  53. package/dist/stores/editor.js +4 -1
  54. package/dist/stores/onboarding.js +16 -11
  55. package/dist/utils/timeUtil.js +7 -17
  56. package/package.json +2 -2
  57. package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
  58. package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
  59. /package/dist/src/components/organisms/header/{AutoSaveToggle.vue.d.ts → AutoSaveStatus.vue.d.ts} +0 -0
@@ -2,60 +2,63 @@ import S from "../static/assets/icons/line-change.svg.js";
2
2
  import i from "../static/assets/icons/line-delete.svg.js";
3
3
  import n from "../static/assets/icons/line-plus.svg.js";
4
4
  import p from "../static/styles/base.css.js";
5
- import s from "../static/styles/components/alert-message.css.js";
6
- import C from "../static/styles/components/amp-block.css.js";
7
- import a from "../static/styles/components/base-input.css.js";
8
- import f from "../static/styles/components/button-group.css.js";
9
- import c from "../static/styles/components/button.css.js";
10
- import u from "../static/styles/components/combobox.css.js";
11
- import l from "../static/styles/components/counter.css.js";
12
- import d from "../static/styles/components/dropdown-menu.css.js";
13
- import h from "../static/styles/components/loader.css.js";
14
- import g from "../static/styles/components/narrow-panel.css.js";
5
+ import s from "../static/styles/components/accessibility.css.js";
6
+ import C from "../static/styles/components/alert-message.css.js";
7
+ import c from "../static/styles/components/amp-block.css.js";
8
+ import f from "../static/styles/components/base-input.css.js";
9
+ import a from "../static/styles/components/button-group.css.js";
10
+ import u from "../static/styles/components/button.css.js";
11
+ import l from "../static/styles/components/combobox.css.js";
12
+ import d from "../static/styles/components/counter.css.js";
13
+ import h from "../static/styles/components/dropdown-menu.css.js";
14
+ import g from "../static/styles/components/loader.css.js";
15
+ import y from "../static/styles/components/narrow-panel.css.js";
15
16
  import I from "../static/styles/components/popup.css.js";
16
- import w from "../static/styles/components/recommendation-strategy.css.js";
17
- import y from "../static/styles/components/switcher.css.js";
18
- import b from "../static/styles/components/tabs.css.js";
19
- import B from "../static/styles/components/tools.css.js";
20
- import $ from "../static/styles/components/version-history.css.js";
17
+ import b from "../static/styles/components/recommendation-strategy.css.js";
18
+ import w from "../static/styles/components/switcher.css.js";
19
+ import B from "../static/styles/components/tabs.css.js";
20
+ import $ from "../static/styles/components/tools.css.js";
21
+ import A from "../static/styles/components/version-history.css.js";
21
22
  import P from "../static/styles/components/wide-panel.css.js";
22
23
  import x from "../static/styles/variables.css.js";
23
24
  function r(t, o) {
24
25
  return `--guido-icon-${t}: url("data:image/svg+xml,${encodeURIComponent(o.trim())}");`;
25
26
  }
26
- const A = `:host {
27
+ const R = `:host {
27
28
  ${r("line-change", S)}
28
29
  ${r("line-delete", i)}
29
30
  ${r("line-plus", n)}
30
- }`, R = [
31
+ }`, V = [
31
32
  x,
32
33
  // Must be on top
33
- A,
34
+ R,
34
35
  p,
35
36
  // Must be on top
36
- s,
37
37
  C,
38
- a,
39
- f,
40
38
  c,
39
+ f,
40
+ a,
41
41
  u,
42
42
  l,
43
43
  d,
44
44
  h,
45
45
  g,
46
- I,
47
46
  y,
48
- b,
47
+ I,
48
+ w,
49
49
  B,
50
50
  $,
51
+ A,
51
52
  P,
52
- w
53
- // Last: overrides button.css / wide-panel.css defaults
53
+ b,
54
+ // Overrides button.css / wide-panel.css defaults
55
+ s
56
+ // Last: overrides button.css / tabs.css / tools.css defaults
54
57
  ].join(`
55
58
 
56
- `), Y = () => ({ importCss: () => {
59
+ `), _ = () => ({ importCss: () => {
57
60
  const o = new CSSStyleSheet();
58
- o.replaceSync(R);
61
+ o.replaceSync(V);
59
62
  const e = document.querySelector("ui-editor");
60
63
  if (!e)
61
64
  return;
@@ -63,5 +66,5 @@ const A = `:host {
63
66
  m && (m.adoptedStyleSheets = [o]);
64
67
  } });
65
68
  export {
66
- Y as useCustomInterfaceAppearance
69
+ _ as useCustomInterfaceAppearance
67
70
  };
@@ -1,19 +1,43 @@
1
- const e = "Items", o = "Default", t = "Custom", s = {
1
+ const e = "Items", o = "Default", i = "Custom", t = {
2
2
  "Global Styles & Layout": "Global Styles and Layout",
3
3
  "Structures & Modules": "Structures and Modules",
4
4
  "Recommendation Block": "Recommendation Block",
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": "{boldStart}Autosaved{boldEnd} at {time}, Today",
24
+ "email-editor.autosaved-at-date": "{boldStart}Autosaved{boldEnd} at {date}",
25
+ "email-editor.export-html": "Export HTML",
26
+ "email-editor.onboarding-kebab-title": "Discover Preferences and Actions",
27
+ "email-editor.onboarding-kebab-description": "You can now access your Preferences and Actions easily such as Autosave, Export HTML, Version History, Accessibility Test and Save As Template.",
28
+ "email-editor.onboarding-autosave-title": "Autosave Your Design",
29
+ "email-editor.onboarding-autosave-description": "You can save your design automatically by enabling Autosave without losing your work.",
30
+ "email-editor.onboarding-accessibility-title": "Test Accessibility of Your Design",
31
+ "email-editor.onboarding-accessibility-description": "You can test the accessibility of your design to see the Failed, Passed items and update the Failed ones accordingly.",
8
32
  "Pixel Tracking Opt-in": "Pixel Tracking Opt-in",
9
33
  "OPT-IN SELECTION": "OPT-IN SELECTION",
10
34
  "UNSUBSCRIBE GROUPS": "UNSUBSCRIBE GROUPS",
11
35
  Default: o,
12
- Custom: t
36
+ Custom: i
13
37
  };
14
38
  export {
15
- t as Custom,
39
+ i as Custom,
16
40
  o as Default,
17
41
  e as Items,
18
- s as default
42
+ t as default
19
43
  };
@@ -76,7 +76,8 @@ const e = {
76
76
  "The data source link is unavailable. Please, make sure there is an access to the data source.": "Enter an accessible Data Source Link to contiue.",
77
77
  "The file should not exceed the maximum resolution of {maxImageResolution}px.": "Upload files up to 1024x512 pixels to continue.",
78
78
  "The option is disabled because was overridden in the Code editor": "The option is disabled because it was overridden in the Code Editor.",
79
- "Dropdown with a list of available data services, preliminarily created in the Data section → Services tab of the Account.": "Service for Data Collection lets you enter a form submission URL for the recipients to submit."
79
+ "Dropdown with a list of available data services, preliminarily created in the Data section → Services tab of the Account.": "Service for Data Collection lets you enter a form submission URL for the recipients to submit.",
80
+ 'Read more about the issue on <a target="_blank" rel="noopener noreferrer" href="{url}">ACT Rules Community Group forum</a>': 'Read more about the issue on <a target="_blank" rel="noopener noreferrer" href="{url}">ACT Rules Community Group forum.</a>'
80
81
  };
81
82
  export {
82
83
  e as default
@@ -1,12 +1,11 @@
1
1
  import { useTranslations as r } from "../../composables/useTranslations.js";
2
- const c = {
2
+ const l = {
3
3
  RECOMMENDATION_API_URL: "https://recommendationv2.api.useinsider.com",
4
4
  // Relative path → same-origin as the embedding inone dashboard.
5
5
  PRODUCT_ATTRIBUTES_PATH: "/product-attributes/get-attributes",
6
6
  RECOMMENDATION_STRATEGIES_PATH: "/api/recommendation-strategies",
7
- RECOMMENDATION_STRATEGIES_PANEL_PATH: "/discovery/recommendation-strategies",
8
- RECOMMENDATION_STRATEGY_CREATE_PATH: "/discovery/recommendation-strategies/create"
9
- }, l = {
7
+ RECOMMENDATION_STRATEGIES_PANEL_PATH: "/discovery/recommendation-strategies"
8
+ }, c = {
10
9
  CLIENT_ID: "clientId"
11
10
  }, d = () => {
12
11
  const e = r();
@@ -91,13 +90,13 @@ const c = {
91
90
  { text: "contains", value: "~" },
92
91
  { text: "does not contain", value: "!~" },
93
92
  { text: "any of", value: a }
94
- ], o = [
93
+ ], n = [
95
94
  { text: "is exactly", value: "=" },
96
95
  { text: "is not exactly", value: "!==" },
97
96
  { text: "contains", value: "~" },
98
97
  { text: "does not contain", value: "!~" },
99
98
  { text: "any of", value: a }
100
- ], n = [
99
+ ], o = [
101
100
  { text: "is equal to", value: "=" },
102
101
  { text: "is greater than", value: ">" },
103
102
  { text: "is less than", value: "<" }
@@ -117,11 +116,11 @@ const c = {
117
116
  case "Date":
118
117
  return s;
119
118
  case "Number":
120
- return n;
119
+ return o;
121
120
  case "String":
122
121
  return t;
123
122
  case "Strings":
124
- return o;
123
+ return n;
125
124
  default:
126
125
  return t;
127
126
  }
@@ -129,16 +128,16 @@ const c = {
129
128
  export {
130
129
  a as OP_ANY_OF,
131
130
  m as PriceAttributes,
132
- l as QUERY_PARAMS,
133
- c as URLS,
131
+ c as QUERY_PARAMS,
132
+ l as URLS,
134
133
  h as currencyDecimalCounts,
135
134
  p as currencyLocationMaps,
136
135
  v as currencyOperators,
137
136
  x as getOperatorOptions,
138
137
  d as getRecommendationFeedSourceMaps,
139
- o as operatorOptionsForArrayOfStrings,
138
+ n as operatorOptionsForArrayOfStrings,
140
139
  i as operatorOptionsForBooleans,
141
140
  s as operatorOptionsForDates,
142
- n as operatorOptionsForNumbers,
141
+ o as operatorOptionsForNumbers,
143
142
  t as operatorOptionsForStrings
144
143
  };
@@ -1,21 +1,21 @@
1
1
  var d = Object.defineProperty;
2
2
  var y = (r, s, t) => s in r ? d(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t;
3
- var i = (r, s, t) => y(r, typeof s != "symbol" ? s + "" : s, t);
4
- import { ACADEMY_LINKS as h } from "../../../../../enums/academy.js";
5
- import { CommonControl as m } from "../../../common-control.js";
6
- import { useRecommendationExtensionStore as p } from "../../store/recommendation.js";
7
- const u = "recommendation-strategy-control";
8
- class f extends m {
3
+ var o = (r, s, t) => y(r, typeof s != "symbol" ? s + "" : s, t);
4
+ import { ACADEMY_LINKS as m } from "../../../../../enums/academy.js";
5
+ import { CommonControl as h } from "../../../common-control.js";
6
+ import { useRecommendationExtensionStore as u } from "../../store/recommendation.js";
7
+ const p = "recommendation-strategy-control";
8
+ class f extends h {
9
9
  constructor() {
10
10
  super(...arguments);
11
- i(this, "store", p());
12
- i(this, "storeUnsubscription", () => {
11
+ o(this, "store", u());
12
+ o(this, "storeUnsubscription", () => {
13
13
  });
14
- i(this, "listeners", []);
15
- i(this, "lastPaintedState", null);
14
+ o(this, "listeners", []);
15
+ o(this, "lastPaintedState", null);
16
16
  }
17
17
  getId() {
18
- return u;
18
+ return p;
19
19
  }
20
20
  getTemplate() {
21
21
  const t = this.api.translate(
@@ -31,7 +31,7 @@ class f extends m {
31
31
  ${t}
32
32
  ${e}
33
33
  <a
34
- href="${h.EMAIL_RECOMMENDATION_BLOCK}"
34
+ href="${m.EMAIL_RECOMMENDATION_BLOCK}"
35
35
  target="_blank"
36
36
  rel="noopener noreferrer">${a}</a>.
37
37
  </p>
@@ -48,7 +48,8 @@ class f extends m {
48
48
  name: "createStrategy",
49
49
  label: this.api.translate("Create New Strategy"),
50
50
  id: "guido__btn-create-strategy",
51
- className: "strategy-control-cta primary"
51
+ className: "strategy-control-cta primary",
52
+ disabled: !0
52
53
  })
53
54
  ], "strategy-control-cta-row")}
54
55
  </div>
@@ -100,10 +101,10 @@ class f extends m {
100
101
  if (!t)
101
102
  return;
102
103
  const e = (a, n) => {
103
- const o = t.querySelector(a);
104
- o && (o.addEventListener("click", n), this.listeners.push({ element: o, handler: n }));
104
+ const i = t.querySelector(a);
105
+ i && (i.addEventListener("click", n), this.listeners.push({ element: i, handler: n }));
105
106
  };
106
- e("#guido__btn-assign-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-create-strategy", () => this.store.openStrategyCreation()), e("#guido__btn-change-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-remove-strategy", () => this.store.openRemoveStrategyModal());
107
+ e("#guido__btn-assign-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-change-strategy", () => this.store.openAssignStrategyDrawer()), e("#guido__btn-remove-strategy", () => this.store.openRemoveStrategyModal());
107
108
  }
108
109
  _renderState() {
109
110
  var l;
@@ -113,11 +114,11 @@ class f extends m {
113
114
  const n = this.getContainer();
114
115
  if (!n)
115
116
  return;
116
- const o = n.querySelector("[data-strategy-empty-state]"), c = n.querySelector("[data-strategy-assigned-state]"), g = n.querySelector("[data-strategy-name]");
117
- !o || !c || (o.style.display = t ? "none" : "", c.style.display = t ? "" : "none", g && t && (g.textContent = e || `#${t}`), this.lastPaintedState = a);
117
+ const i = n.querySelector("[data-strategy-empty-state]"), c = n.querySelector("[data-strategy-assigned-state]"), g = n.querySelector("[data-strategy-name]");
118
+ !i || !c || (i.style.display = t ? "none" : "", c.style.display = t ? "" : "none", g && t && (g.textContent = e || `#${t}`), this.lastPaintedState = a);
118
119
  }
119
120
  }
120
121
  export {
121
- u as STRATEGY_CONTROL_ID,
122
+ p as STRATEGY_CONTROL_ID,
122
123
  f as StrategyControl
123
124
  };