@useinsider/guido 3.16.0-beta.ff4f1bd → 3.16.1-beta.626490d

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 (73) hide show
  1. package/README.md +0 -1
  2. package/dist/@types/config/schemas.js +6 -12
  3. package/dist/components/Guido.vue.js +6 -6
  4. package/dist/components/Guido.vue2.js +30 -31
  5. package/dist/composables/useRecommendation.js +36 -43
  6. package/dist/config/migrator/recommendationMigrator.js +4 -6
  7. package/dist/enums/extensions/recommendationBlock.js +23 -25
  8. package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +11 -13
  9. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +90 -112
  10. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +53 -188
  11. package/dist/guido.css +1 -1
  12. package/dist/services/recommendationApi.js +28 -77
  13. package/dist/src/@types/config/schemas.d.ts +0 -12
  14. package/dist/src/components/wrappers/WpModal.vue.d.ts +1 -1
  15. package/dist/src/composables/useConfig.d.ts +0 -2
  16. package/dist/src/composables/useRecommendation.d.ts +0 -1
  17. package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -2
  18. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +3 -6
  19. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +10 -199
  20. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +0 -6
  21. package/dist/src/services/recommendationApi.d.ts +1 -4
  22. package/dist/src/stores/config.d.ts +0 -18
  23. package/dist/utils/templatePreparation.js +34 -37
  24. package/package.json +1 -2
  25. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +0 -18
  26. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +0 -61
  27. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +0 -106
  28. package/dist/node_modules/@useinsider/design-system-organisms/dist/index-5JHlb8rM.js +0 -524
  29. package/dist/node_modules/@useinsider/design-system-organisms/dist/index.js +0 -8450
  30. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InAccordion.js +0 -174
  31. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBasicTextInput.js +0 -381
  32. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBox.js +0 -236
  33. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBulkActions.js +0 -70
  34. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButton.js +0 -350
  35. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButtonV2.js +0 -371
  36. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCheckBox.js +0 -152
  37. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InChips.js +0 -141
  38. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCustomDropDown.js +0 -1047
  39. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDataTableV2.js +0 -96050
  40. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDatePicker.js +0 -2042
  41. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDrawer.js +0 -166
  42. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDropDown.js +0 -1098
  43. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InIcons.js +0 -55
  44. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InInfoBox.js +0 -265
  45. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLinks.js +0 -184
  46. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLoading.js +0 -50
  47. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InModals.js +0 -453
  48. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InNoData.js +0 -145
  49. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InOnPageMessage.js +0 -176
  50. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InProgress.js +0 -266
  51. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InRadioButton.js +0 -114
  52. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSegments.js +0 -200
  53. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSelect.js +0 -451
  54. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSkeleton.js +0 -49
  55. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InStatusText.js +0 -119
  56. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTabs.js +0 -4309
  57. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTagsText.js +0 -129
  58. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTextInput.js +0 -503
  59. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToasts.js +0 -253
  60. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToggle.js +0 -107
  61. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltip.js +0 -134
  62. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltipV2.js +0 -464
  63. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_commonjsHelpers.BItOPCY9.js +0 -28
  64. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_plugin-vue2_normalizer.WQT2Fc8L.js +0 -23
  65. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/clickOutside.qP9M0QCm.js +0 -29
  66. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/helpers.CgHNyjAJ.js +0 -109
  67. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/index.Bw_06igr.js +0 -2339
  68. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/localLocalesMixin.DYMhydo2.js +0 -16
  69. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/useLocalLocales.Ckuhy7d-.js +0 -17
  70. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/vue-property-decorator.BtlM7Epa.js +0 -188
  71. package/dist/src/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.d.ts +0 -3
  72. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +0 -26
  73. package/dist/src/mock/api/recommendation-strategies.d.ts +0 -41
@@ -1,16 +0,0 @@
1
- import { i as l } from "./helpers.CgHNyjAJ.js";
2
- const e = {
3
- computed: {
4
- localeKey() {
5
- var s;
6
- return ((s = this.$InDsLocales) == null ? void 0 : s.locale) || "us";
7
- },
8
- localLocales() {
9
- var s;
10
- return l(this.$InDsLocales) ? {} : ((s = this.$InDsLocales[this.localeKey]) == null ? void 0 : s[this.$options.name]) || {};
11
- }
12
- }
13
- };
14
- export {
15
- e as l
16
- };
@@ -1,17 +0,0 @@
1
- import { getCurrentInstance as t, computed as c } from "vue";
2
- import { i } from "./helpers.CgHNyjAJ.js";
3
- function v(e) {
4
- const l = t(), o = l == null ? void 0 : l.proxy;
5
- return {
6
- localLocales: c(() => {
7
- var n, r, u;
8
- if (i(o == null ? void 0 : o.$InDsLocales))
9
- return {};
10
- const s = ((n = o == null ? void 0 : o.$InDsLocales) == null ? void 0 : n.locale) || "us";
11
- return ((u = (r = o == null ? void 0 : o.$InDsLocales) == null ? void 0 : r[s]) == null ? void 0 : u[e]) || {};
12
- })
13
- };
14
- }
15
- export {
16
- v as u
17
- };
@@ -1,188 +0,0 @@
1
- import y from "vue";
2
- function f(t) {
3
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? f = function(e) {
4
- return typeof e;
5
- } : f = function(e) {
6
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
7
- }, f(t);
8
- }
9
- function v(t, e, r) {
10
- return e in t ? Object.defineProperty(t, e, {
11
- value: r,
12
- enumerable: !0,
13
- configurable: !0,
14
- writable: !0
15
- }) : t[e] = r, t;
16
- }
17
- function b(t) {
18
- return m(t) || g(t) || O();
19
- }
20
- function m(t) {
21
- if (Array.isArray(t)) {
22
- for (var e = 0, r = new Array(t.length); e < t.length; e++) r[e] = t[e];
23
- return r;
24
- }
25
- }
26
- function g(t) {
27
- if (Symbol.iterator in Object(t) || Object.prototype.toString.call(t) === "[object Arguments]") return Array.from(t);
28
- }
29
- function O() {
30
- throw new TypeError("Invalid attempt to spread non-iterable instance");
31
- }
32
- function _() {
33
- return typeof Reflect < "u" && Reflect.defineMetadata && Reflect.getOwnMetadataKeys;
34
- }
35
- function h(t, e) {
36
- p(t, e), Object.getOwnPropertyNames(e.prototype).forEach(function(r) {
37
- p(t.prototype, e.prototype, r);
38
- }), Object.getOwnPropertyNames(e).forEach(function(r) {
39
- p(t, e, r);
40
- });
41
- }
42
- function p(t, e, r) {
43
- var n = r ? Reflect.getOwnMetadataKeys(e, r) : Reflect.getOwnMetadataKeys(e);
44
- n.forEach(function(o) {
45
- var a = r ? Reflect.getOwnMetadata(o, e, r) : Reflect.getOwnMetadata(o, e);
46
- r ? Reflect.defineMetadata(o, a, t, r) : Reflect.defineMetadata(o, a, t);
47
- });
48
- }
49
- var w = {
50
- __proto__: []
51
- }, j = w instanceof Array;
52
- function P(t) {
53
- return function(e, r, n) {
54
- var o = typeof e == "function" ? e : e.constructor;
55
- o.__decorators__ || (o.__decorators__ = []), typeof n != "number" && (n = void 0), o.__decorators__.push(function(a) {
56
- return t(a, r, n);
57
- });
58
- };
59
- }
60
- function R(t) {
61
- var e = f(t);
62
- return t == null || e !== "object" && e !== "function";
63
- }
64
- function M(t, e) {
65
- var r = e.prototype._init;
66
- e.prototype._init = function() {
67
- var a = this, i = Object.getOwnPropertyNames(t);
68
- if (t.$options.props)
69
- for (var c in t.$options.props)
70
- t.hasOwnProperty(c) || i.push(c);
71
- i.forEach(function(u) {
72
- Object.defineProperty(a, u, {
73
- get: function() {
74
- return t[u];
75
- },
76
- set: function(l) {
77
- t[u] = l;
78
- },
79
- configurable: !0
80
- });
81
- });
82
- };
83
- var n = new e();
84
- e.prototype._init = r;
85
- var o = {};
86
- return Object.keys(n).forEach(function(a) {
87
- n[a] !== void 0 && (o[a] = n[a]);
88
- }), o;
89
- }
90
- var s = [
91
- "data",
92
- "beforeCreate",
93
- "created",
94
- "beforeMount",
95
- "mounted",
96
- "beforeDestroy",
97
- "destroyed",
98
- "beforeUpdate",
99
- "updated",
100
- "activated",
101
- "deactivated",
102
- "render",
103
- "errorCaptured",
104
- "serverPrefetch"
105
- // 2.6
106
- ];
107
- function d(t) {
108
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
109
- e.name = e.name || t._componentTag || t.name;
110
- var r = t.prototype;
111
- Object.getOwnPropertyNames(r).forEach(function(c) {
112
- if (c !== "constructor") {
113
- if (s.indexOf(c) > -1) {
114
- e[c] = r[c];
115
- return;
116
- }
117
- var u = Object.getOwnPropertyDescriptor(r, c);
118
- u.value !== void 0 ? typeof u.value == "function" ? (e.methods || (e.methods = {}))[c] = u.value : (e.mixins || (e.mixins = [])).push({
119
- data: function() {
120
- return v({}, c, u.value);
121
- }
122
- }) : (u.get || u.set) && ((e.computed || (e.computed = {}))[c] = {
123
- get: u.get,
124
- set: u.set
125
- });
126
- }
127
- }), (e.mixins || (e.mixins = [])).push({
128
- data: function() {
129
- return M(this, t);
130
- }
131
- });
132
- var n = t.__decorators__;
133
- n && (n.forEach(function(c) {
134
- return c(e);
135
- }), delete t.__decorators__);
136
- var o = Object.getPrototypeOf(t.prototype), a = o instanceof y ? o.constructor : y, i = a.extend(e);
137
- return A(i, t, a), _() && h(i, t), i;
138
- }
139
- var E = {
140
- prototype: !0,
141
- arguments: !0,
142
- callee: !0,
143
- caller: !0
144
- };
145
- function A(t, e, r) {
146
- Object.getOwnPropertyNames(e).forEach(function(n) {
147
- if (!E[n]) {
148
- var o = Object.getOwnPropertyDescriptor(t, n);
149
- if (!(o && !o.configurable)) {
150
- var a = Object.getOwnPropertyDescriptor(e, n);
151
- if (!j) {
152
- if (n === "cid")
153
- return;
154
- var i = Object.getOwnPropertyDescriptor(r, n);
155
- if (!R(a.value) && i && i.value === a.value)
156
- return;
157
- }
158
- Object.defineProperty(t, n, a);
159
- }
160
- }
161
- });
162
- }
163
- function x(t) {
164
- return typeof t == "function" ? d(t) : function(e) {
165
- return d(e, t);
166
- };
167
- }
168
- x.registerHooks = function(t) {
169
- s.push.apply(s, b(t));
170
- };
171
- var S = typeof Reflect < "u" && typeof Reflect.getMetadata < "u";
172
- function D(t, e, r) {
173
- if (S && !Array.isArray(t) && typeof t != "function" && typeof t.type > "u") {
174
- var n = Reflect.getMetadata("design:type", e, r);
175
- n !== Object && (t.type = n);
176
- }
177
- }
178
- function C(t) {
179
- return t === void 0 && (t = {}), function(e, r) {
180
- D(t, e, r), P(function(n, o) {
181
- (n.props || (n.props = {}))[o] = t;
182
- })(e, r);
183
- };
184
- }
185
- export {
186
- x as C,
187
- C as P
188
- };
@@ -1,3 +0,0 @@
1
- import '@useinsider/design-system-organisms/style';
2
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
- export default _default;
@@ -1,26 +0,0 @@
1
- /**
2
- * Recommendation Strategy Control (SD-149105)
3
- *
4
- * Rendered INSTEAD of the algorithm/product-count/filters/shuffle controls when
5
- * `features.reusableRecommendationStrategy` is on. Thin by design: the heavy UI
6
- * (strategy listing, detail) lives in AssignStrategyDrawer.vue; this control
7
- * only shows the empty/assigned state and opens the drawer.
8
- */
9
- import { CommonControl } from '../../../common-control';
10
- export declare const STRATEGY_CONTROL_ID = "recommendation-strategy-control";
11
- export declare class StrategyControl extends CommonControl {
12
- private store;
13
- private storeUnsubscription;
14
- private listeners;
15
- getId(): string;
16
- getTemplate(): string;
17
- onRender(): void;
18
- onDestroy(): void;
19
- private _setupButtonListeners;
20
- /**
21
- * Toggles empty vs assigned state from the store's current block config.
22
- * Display name comes from the listing; falls back to the raw id while the
23
- * listing loads (or when the strategy is no longer listed).
24
- */
25
- private _renderState;
26
- }
@@ -1,41 +0,0 @@
1
- export declare const MOCK_RRS_STRATEGIES: ({
2
- strategy_id: number;
3
- name: string;
4
- status: string;
5
- suitable_channels: string;
6
- suitable_page_types: string;
7
- algorithm: string;
8
- size: number;
9
- filters: string;
10
- shuffle: number;
11
- attribute_affinity: number;
12
- exclude_view: number;
13
- exclude_purchase: number;
14
- created_at: string;
15
- updated_at: string;
16
- last_updated_by: string;
17
- mixed_strategies?: undefined;
18
- exclude_view_duration?: undefined;
19
- exclude_view_duration_type?: undefined;
20
- } | {
21
- strategy_id: number;
22
- name: string;
23
- status: string;
24
- suitable_channels: string;
25
- suitable_page_types: string;
26
- algorithm: string;
27
- mixed_strategies: string;
28
- size: number;
29
- filters: string;
30
- shuffle: number;
31
- attribute_affinity: number;
32
- exclude_view: number;
33
- exclude_view_duration: number;
34
- exclude_view_duration_type: string;
35
- exclude_purchase: number;
36
- created_at: string;
37
- updated_at: string;
38
- last_updated_by: string;
39
- })[];
40
- declare const _default: import("msw").HttpHandler[];
41
- export default _default;