@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.
- package/dist/@types/config/schemas.js +15 -13
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +13 -15
- package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +41 -43
- package/dist/components/organisms/header/AutoSaveStatus.vue.js +17 -0
- package/dist/components/organisms/header/AutoSaveStatus.vue2.js +27 -0
- package/dist/components/organisms/header/EditorActions.vue.js +13 -13
- 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 +43 -0
- package/dist/components/organisms/header/LeftSlot.vue.js +5 -5
- package/dist/components/organisms/header/LeftSlot.vue2.js +28 -23
- 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 +7 -6
- package/dist/components/organisms/header/RightSlot.vue2.js +17 -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/onboarding/EditorTabBarOnboarding.vue.js +18 -0
- package/dist/components/organisms/onboarding/EditorTabBarOnboarding.vue2.js +81 -0
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +43 -34
- package/dist/composables/useAccessibilityApi.js +31 -0
- package/dist/composables/useCustomInterfaceAppearance.js +31 -28
- package/dist/config/i18n/en/labels.json.js +28 -4
- package/dist/config/i18n/en/tooltips.json.js +2 -1
- package/dist/enums/extensions/recommendationBlock.js +11 -12
- package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +20 -19
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +70 -98
- 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/package.json.js +1 -1
- package/dist/sprite.svg +6 -0
- 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/components/organisms/onboarding/EditorTabBarOnboarding.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/enums/extensions/recommendationBlock.d.ts +0 -1
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -18
- package/dist/src/stores/config.d.ts +18 -0
- package/dist/src/stores/editor.d.ts +76 -0
- package/dist/src/stores/onboarding.d.ts +377 -0
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/timeUtil.d.ts +10 -0
- package/dist/static/styles/components/accessibility.css.js +140 -0
- package/dist/static/styles/components/recommendation-strategy.css.js +4 -1
- package/dist/static/styles/variables.css.js +1 -0
- package/dist/stores/editor.js +4 -1
- package/dist/stores/onboarding.js +16 -11
- package/dist/utils/timeUtil.js +7 -17
- package/package.json +2 -2
- package/dist/components/organisms/header/AutoSaveToggle.vue.js +0 -22
- package/dist/components/organisms/header/AutoSaveToggle.vue2.js +0 -19
- /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/
|
|
6
|
-
import C from "../static/styles/components/
|
|
7
|
-
import
|
|
8
|
-
import f from "../static/styles/components/
|
|
9
|
-
import
|
|
10
|
-
import u from "../static/styles/components/
|
|
11
|
-
import l from "../static/styles/components/
|
|
12
|
-
import d from "../static/styles/components/
|
|
13
|
-
import h from "../static/styles/components/
|
|
14
|
-
import g from "../static/styles/components/
|
|
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
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
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
|
|
27
|
+
const R = `:host {
|
|
27
28
|
${r("line-change", S)}
|
|
28
29
|
${r("line-delete", i)}
|
|
29
30
|
${r("line-plus", n)}
|
|
30
|
-
}`,
|
|
31
|
+
}`, V = [
|
|
31
32
|
x,
|
|
32
33
|
// Must be on top
|
|
33
|
-
|
|
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
|
-
|
|
47
|
+
I,
|
|
48
|
+
w,
|
|
49
49
|
B,
|
|
50
50
|
$,
|
|
51
|
+
A,
|
|
51
52
|
P,
|
|
52
|
-
|
|
53
|
-
//
|
|
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
|
-
`),
|
|
59
|
+
`), _ = () => ({ importCss: () => {
|
|
57
60
|
const o = new CSSStyleSheet();
|
|
58
|
-
o.replaceSync(
|
|
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
|
-
|
|
69
|
+
_ as useCustomInterfaceAppearance
|
|
67
70
|
};
|
|
@@ -1,19 +1,43 @@
|
|
|
1
|
-
const e = "Items", o = "Default",
|
|
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:
|
|
36
|
+
Custom: i
|
|
13
37
|
};
|
|
14
38
|
export {
|
|
15
|
-
|
|
39
|
+
i as Custom,
|
|
16
40
|
o as Default,
|
|
17
41
|
e as Items,
|
|
18
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
|
119
|
+
return o;
|
|
121
120
|
case "String":
|
|
122
121
|
return t;
|
|
123
122
|
case "Strings":
|
|
124
|
-
return
|
|
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
|
-
|
|
133
|
-
|
|
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
|
-
|
|
138
|
+
n as operatorOptionsForArrayOfStrings,
|
|
140
139
|
i as operatorOptionsForBooleans,
|
|
141
140
|
s as operatorOptionsForDates,
|
|
142
|
-
|
|
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
|
|
4
|
-
import { ACADEMY_LINKS as
|
|
5
|
-
import { CommonControl as
|
|
6
|
-
import { useRecommendationExtensionStore as
|
|
7
|
-
const
|
|
8
|
-
class f extends
|
|
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
|
-
|
|
12
|
-
|
|
11
|
+
o(this, "store", u());
|
|
12
|
+
o(this, "storeUnsubscription", () => {
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
o(this, "listeners", []);
|
|
15
|
+
o(this, "lastPaintedState", null);
|
|
16
16
|
}
|
|
17
17
|
getId() {
|
|
18
|
-
return
|
|
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="${
|
|
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
|
|
104
|
-
|
|
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-
|
|
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
|
|
117
|
-
!
|
|
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
|
-
|
|
122
|
+
p as STRATEGY_CONTROL_ID,
|
|
122
123
|
f as StrategyControl
|
|
123
124
|
};
|