@useinsider/guido 3.17.0-beta.3e9d6e7 → 3.17.0-beta.3ff6ea0

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 (111) 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 +61 -63
  5. package/dist/composables/useCustomInterfaceAppearance.js +16 -19
  6. package/dist/composables/useRecommendation.js +34 -41
  7. package/dist/composables/useStripo.js +14 -14
  8. package/dist/config/migrator/index.js +9 -8
  9. package/dist/config/migrator/recommendation/compositionMapper.js +20 -20
  10. package/dist/config/migrator/recommendation/extractors.js +29 -24
  11. package/dist/config/migrator/recommendation/htmlBuilder.js +116 -130
  12. package/dist/config/migrator/recommendationMigrator.js +16 -15
  13. package/dist/config/migrator/recommendationTitleMigrator.js +119 -0
  14. package/dist/enums/date.js +3 -4
  15. package/dist/enums/extensions/recommendationBlock.js +23 -25
  16. package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +1 -1
  17. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
  18. package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +20 -21
  19. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +34 -28
  20. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +306 -238
  21. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +95 -122
  22. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +1 -0
  23. package/dist/extensions/Blocks/Recommendation/controls/title/index.js +44 -0
  24. package/dist/extensions/Blocks/Recommendation/extension.js +31 -29
  25. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +23 -4
  26. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +53 -199
  27. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +3 -3
  28. package/dist/extensions/Blocks/Recommendation/templates/titleRows.js +33 -0
  29. package/dist/extensions/Blocks/Recommendation/templates/utils.js +85 -107
  30. package/dist/extensions/Blocks/common-control.js +19 -22
  31. package/dist/guido.css +1 -1
  32. package/dist/services/recommendationApi.js +28 -77
  33. package/dist/src/@types/config/schemas.d.ts +0 -12
  34. package/dist/src/composables/useConfig.d.ts +0 -2
  35. package/dist/src/composables/useRecommendation.d.ts +0 -1
  36. package/dist/src/config/migrator/recommendation/extractors.d.ts +8 -0
  37. package/dist/src/config/migrator/recommendationTitleMigrator.d.ts +5 -0
  38. package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -2
  39. package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +2 -1
  40. package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +7 -0
  41. package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +1 -0
  42. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
  43. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +10 -0
  44. package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +10 -0
  45. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +1 -0
  46. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +3 -12
  47. package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +1 -0
  48. package/dist/src/extensions/Blocks/Recommendation/controls/title/index.d.ts +86 -0
  49. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +10 -210
  50. package/dist/src/extensions/Blocks/Recommendation/templates/titleRows.d.ts +13 -0
  51. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +0 -6
  52. package/dist/src/extensions/Blocks/common-control.d.ts +1 -4
  53. package/dist/src/services/recommendationApi.d.ts +1 -4
  54. package/dist/src/stores/config.d.ts +0 -18
  55. package/dist/static/styles/customEditorStyle.css.js +3 -1
  56. package/dist/utils/dateUtil.js +10 -23
  57. package/dist/utils/templatePreparation.js +34 -37
  58. package/package.json +1 -2
  59. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.js +0 -18
  60. package/dist/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue2.js +0 -67
  61. package/dist/components/organisms/extensions/recommendation/StrategyInfoBox.vue.js +0 -20
  62. package/dist/components/organisms/extensions/recommendation/StrategyInfoBox.vue2.js +0 -55
  63. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +0 -132
  64. package/dist/node_modules/@useinsider/design-system-organisms/dist/index-Dc9AygoZ.js +0 -526
  65. package/dist/node_modules/@useinsider/design-system-organisms/dist/index.js +0 -9345
  66. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InAccordion.js +0 -174
  67. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBasicTextInput.js +0 -381
  68. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBox.js +0 -236
  69. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InBulkActions.js +0 -70
  70. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButton.js +0 -350
  71. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InButtonV2.js +0 -371
  72. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCheckBox.js +0 -152
  73. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InChips.js +0 -141
  74. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InCustomDropDown.js +0 -1047
  75. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDataTableV2.js +0 -96050
  76. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDatePicker.js +0 -2042
  77. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDrawer.js +0 -166
  78. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InDropDown.js +0 -1098
  79. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InIcons.js +0 -55
  80. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InInfoBox.js +0 -265
  81. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLinks.js +0 -184
  82. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InLoading.js +0 -50
  83. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InModals.js +0 -453
  84. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InNoData.js +0 -145
  85. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InOnPageMessage.js +0 -176
  86. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InProgress.js +0 -266
  87. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InRadioButton.js +0 -114
  88. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSegments.js +0 -200
  89. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSelect.js +0 -451
  90. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InSkeleton.js +0 -49
  91. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InStatusText.js +0 -119
  92. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTabs.js +0 -4309
  93. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTagsText.js +0 -129
  94. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTextInput.js +0 -503
  95. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToasts.js +0 -253
  96. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InToggle.js +0 -107
  97. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltip.js +0 -134
  98. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/InTooltipV2.js +0 -464
  99. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_commonjsHelpers.BItOPCY9.js +0 -28
  100. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/_plugin-vue2_normalizer.WQT2Fc8L.js +0 -23
  101. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/clickOutside.qP9M0QCm.js +0 -29
  102. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/helpers.CgHNyjAJ.js +0 -109
  103. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/index.Bw_06igr.js +0 -2339
  104. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/localLocalesMixin.DYMhydo2.js +0 -16
  105. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/useLocalLocales.Ckuhy7d-.js +0 -17
  106. package/dist/node_modules/@useinsider/design-system-organisms/node_modules/@useinsider/design-system-vue/dist/chunks/vue-property-decorator.BtlM7Epa.js +0 -188
  107. package/dist/src/components/organisms/extensions/recommendation/AssignStrategyDrawer.vue.d.ts +0 -3
  108. package/dist/src/components/organisms/extensions/recommendation/StrategyInfoBox.vue.d.ts +0 -24
  109. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +0 -37
  110. package/dist/src/mock/api/recommendation-strategies.d.ts +0 -43
  111. package/dist/static/styles/components/recommendation-strategy.css.js +0 -171
@@ -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,24 +0,0 @@
1
- import type { RrsStrategy } from '@@/Types/recommendation';
2
- /**
3
- * Hover preview for a row of the Assign Strategy dropdown: the four facts that
4
- * decide whether a strategy is the right one, without leaving the list.
5
- *
6
- * Rendered as the design system info box's `slot` rather than through its
7
- * `descriptionText`, which is injected with innerHTML — every value here is
8
- * partner data (strategy name, merchandising ids), so it goes through the
9
- * template instead.
10
- */
11
- type __VLS_Props = {
12
- strategy: RrsStrategy;
13
- };
14
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
15
- export default _default;
16
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
- type __VLS_TypePropsToOption<T> = {
18
- [K in keyof T]-?: {} extends Pick<T, K> ? {
19
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
- } : {
21
- type: import('vue').PropType<T[K]>;
22
- required: true;
23
- };
24
- };
@@ -1,37 +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
- /**
18
- * Change / Remove are icon+text actions in the design, not buttons — and
19
- * `ue-button` cannot pair a caption with an arbitrary icon, so these are
20
- * plain elements. Click wiring is by id, which works on any element.
21
- *
22
- * The icon is a CSS mask, not inline SVG: Stripo re-creates the control's
23
- * markup through Angular, which rebuilds `<svg>` outside the SVG namespace
24
- * (the view-box attribute comes back lowercased) and it never paints.
25
- */
26
- private _strategyAction;
27
- onRender(): void;
28
- onDestroy(): void;
29
- private _teardown;
30
- private _setupButtonListeners;
31
- /**
32
- * Toggles empty vs assigned state from the store's current block config.
33
- * Display name comes from the listing; falls back to the raw id while the
34
- * listing loads (or when the strategy is no longer listed).
35
- */
36
- private _renderState;
37
- }
@@ -1,43 +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
- algorithm_used: string;
9
- size: number;
10
- filters: string;
11
- shuffle: number;
12
- attribute_affinity: number;
13
- exclude_view: number;
14
- exclude_purchase: number;
15
- created_at: string;
16
- updated_at: string;
17
- last_updated_by: string;
18
- mixed_strategies?: undefined;
19
- exclude_view_duration?: undefined;
20
- exclude_view_duration_type?: undefined;
21
- } | {
22
- strategy_id: number;
23
- name: string;
24
- status: string;
25
- suitable_channels: string;
26
- suitable_page_types: string;
27
- algorithm: string;
28
- algorithm_used: string;
29
- mixed_strategies: string;
30
- size: number;
31
- filters: string;
32
- shuffle: number;
33
- attribute_affinity: number;
34
- exclude_view: number;
35
- exclude_view_duration: number;
36
- exclude_view_duration_type: string;
37
- exclude_purchase: number;
38
- created_at: string;
39
- updated_at: string;
40
- last_updated_by: string;
41
- })[];
42
- declare const _default: import("msw").HttpHandler[];
43
- export default _default;
@@ -1,171 +0,0 @@
1
- const n = `/* Recommendation Strategy section of the recommendation block's settings panel
2
- (SD-149105). Scoped to the section's own classes/ids so nothing leaks into
3
- other blocks' controls. Measurements come from the Figma frames
4
- 4880:44449 (empty) and 4826:7513 (assigned). */
5
-
6
- .strategy-control-header {
7
- padding: 16px 16px 0;
8
- }
9
-
10
- .strategy-control-title {
11
- margin: 0;
12
- color: var(--guido-color-gray-800);
13
- font-size: 16px;
14
- font-weight: 600;
15
- line-height: 24px;
16
- }
17
-
18
- .strategy-control-description-row {
19
- padding: 8px 16px 16px;
20
- }
21
-
22
- .strategy-control-description {
23
- margin: 0;
24
- color: var(--guido-color-gray-600);
25
- font-size: 13px;
26
- line-height: 16px;
27
- }
28
-
29
- .strategy-control-description a {
30
- color: var(--guido-color-primary-500);
31
- text-decoration: underline;
32
- }
33
-
34
- /* Assign + Create are two fixed 180px columns, left-aligned — not a stretched
35
- half-and-half. The ancestor is load-bearing: it out-specifies the editor's own
36
- \`.container.two-columns\` grid, which otherwise wins and leaves the CTAs uneven. */
37
- .recommendation-controls-container .container.strategy-control-cta-row {
38
- grid-template-columns: repeat(2, minmax(0, 180px));
39
- justify-content: start;
40
- gap: 16px;
41
- padding: 0 16px 16px;
42
- }
43
-
44
- /* The editor's grid does not stretch its items and the visible pill is the inner
45
- \`.button\`, not the \`ue-button\` host — so both need the width or the two CTAs
46
- come out sized to their own captions. */
47
- .strategy-control-cta {
48
- width: 100%;
49
- }
50
-
51
- .strategy-control-cta > .button {
52
- display: flex;
53
- gap: 8px;
54
- justify-content: center;
55
- width: 100%;
56
- min-height: 40px;
57
- border: none;
58
- border-radius: 4px;
59
- font-size: 15px;
60
- font-weight: 400;
61
- line-height: 24px;
62
- white-space: nowrap;
63
- }
64
-
65
- /* Primary action: tinted fill, brand-coloured label (not a solid blue button). */
66
- .strategy-control-cta.accent > .button {
67
- background-color: var(--guido-color-primary-100);
68
- color: var(--guido-color-primary-500);
69
- }
70
-
71
- .strategy-control-cta.accent > .button:hover:not(:disabled, .disabled) {
72
- background-color: var(--guido-color-primary-100);
73
- }
74
-
75
- /* Secondary action keeps full contrast while disabled — the round trip ships
76
- in a later phase, but the design shows it as a normal grey button. */
77
- .strategy-control-cta.primary > .button:disabled,
78
- .strategy-control-cta.primary > .button.disabled {
79
- opacity: 1;
80
- background-color: var(--guido-color-neutral-200);
81
- color: var(--guido-color-gray-800);
82
- cursor: default;
83
- }
84
-
85
- /* The assigned strategy's name sits in a band that spans the whole panel, so it
86
- carries its own 16px inset instead of inheriting the section's. */
87
- .strategy-control-name-band {
88
- display: flex;
89
- align-items: center;
90
- min-height: 48px;
91
- padding: 0 16px;
92
- background-color: var(--guido-color-gray-0);
93
- }
94
-
95
- .strategy-control-name {
96
- color: var(--guido-color-gray-800);
97
- font-size: 15px;
98
- font-weight: 600;
99
- line-height: 24px;
100
- }
101
-
102
- .strategy-control-actions {
103
- display: flex;
104
- align-items: center;
105
- padding: 16px;
106
- }
107
-
108
- .strategy-control-action {
109
- display: inline-flex;
110
- align-items: center;
111
- padding: 0;
112
- border: none;
113
- background: none;
114
- font-size: 15px;
115
- font-weight: 400;
116
- line-height: 24px;
117
- cursor: pointer;
118
- }
119
-
120
- /* The label carries the gap on both sides, which is also what separates Change
121
- from Remove — matching the design's button wrappers. */
122
- .strategy-control-action > span {
123
- padding: 0 8px;
124
- }
125
-
126
- /* Icons are masks rather than inline SVG — Stripo rebuilds the control markup
127
- through Angular, which recreates <svg> outside the SVG namespace so it never
128
- paints. A mask is a background, so it survives that round trip. */
129
- .strategy-control-action::before,
130
- .strategy-control-cta.accent > .button::before {
131
- content: '';
132
- flex: none;
133
- width: 24px;
134
- height: 24px;
135
- background-color: currentcolor;
136
- mask-repeat: no-repeat;
137
- mask-position: center;
138
- }
139
-
140
- /* The design system's \`line-change\` glyph fills its 24px box; the 20px glyphs
141
- are centred inside the same box, as the design draws them. */
142
- .strategy-control-action--change::before {
143
- mask-size: 24px 24px;
144
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.768 11.694a1.03 1.03 0 0 1-1.465 0 1.051 1.051 0 0 1 0-1.478L17.51 9H9a1 1 0 1 1 0-2h8.509l-1.206-1.216a1.051 1.051 0 0 1 0-1.478 1.03 1.03 0 0 1 1.465 0l2.929 2.955c.404.408.404 1.07 0 1.478l-2.93 2.955zM3.303 15.261a1.051 1.051 0 0 0 0 1.478l2.93 2.955a1.03 1.03 0 0 0 1.464 0 1.051 1.051 0 0 0 0-1.478L6.49 17H15a1 1 0 1 0 0-2H6.491l1.206-1.216a1.051 1.051 0 0 0 0-1.478 1.03 1.03 0 0 0-1.465 0l-2.929 2.955z'/%3E%3C/svg%3E");
145
- }
146
-
147
- .strategy-control-action--remove::before {
148
- mask-size: 20px 20px;
149
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M15.97 7H16.09C16.3342 7.02199 16.5619 7.13294 16.7296 7.31178C16.8974 7.49062 16.9936 7.72487 17 7.97V8.09L16.24 16.36C16.1547 17.3188 15.7266 18.2147 15.0341 18.8833C14.3416 19.552 13.4312 19.9484 12.47 20L12.26 20.01H7.74C6.77775 20.0102 5.84767 19.6635 5.12033 19.0335C4.39298 18.4035 3.91712 17.5324 3.78 16.58L3.76 16.38L3 8.08C2.9803 7.94999 2.9864 7.81738 3.01796 7.68973C3.04951 7.56207 3.1059 7.44189 3.1839 7.33603C3.34143 7.12224 3.57744 6.97978 3.84 6.94C4.10256 6.90022 4.37018 6.96637 4.58397 7.1239C4.68983 7.2019 4.77929 7.29999 4.84724 7.41256C4.91519 7.52514 4.9603 7.64999 4.98 7.78L5 7.9L5.75 16.17C5.78903 16.644 5.99569 17.0886 6.3329 17.4239C6.67011 17.7593 7.1158 17.9636 7.59 18L7.74 18.01H12.26C12.7328 18.0094 13.1901 17.8413 13.5507 17.5356C13.9113 17.2299 14.152 16.8063 14.23 16.34L14.25 16.19L15 7.92C15.022 7.67577 15.1329 7.44813 15.3118 7.28036C15.4906 7.11258 15.7249 7.01637 15.97 7.01V7ZM8 9C8.24568 8.99822 8.48341 9.08695 8.66785 9.24926C8.85229 9.41157 8.97052 9.63609 9 9.88V15C9.00788 15.1313 8.98982 15.2629 8.94684 15.3873C8.90387 15.5116 8.83682 15.6262 8.74953 15.7247C8.66225 15.8231 8.55643 15.9034 8.43812 15.9609C8.31981 16.0185 8.19132 16.0521 8.06 16.06C7.79478 16.0759 7.53411 15.9858 7.33532 15.8095C7.13653 15.6332 7.01591 15.3852 7 15.12V10C7 9.73478 7.10536 9.48043 7.29289 9.29289C7.48043 9.10536 7.73478 9 8 9ZM12 9C12.2457 8.99822 12.4834 9.08695 12.6679 9.24926C12.8523 9.41157 12.9705 9.63609 13 9.88V15C13.0159 15.2652 12.9258 15.5259 12.7495 15.7247C12.5732 15.9235 12.3252 16.0441 12.06 16.06C11.7948 16.0759 11.5341 15.9858 11.3353 15.8095C11.1365 15.6332 11.0159 15.3852 11 15.12V10C11 9.73478 11.1054 9.48043 11.2929 9.29289C11.4804 9.10536 11.7348 9 12 9ZM3 6C2.73478 6.01591 2.47411 5.92582 2.27532 5.74953C2.07653 5.57325 1.95591 5.32522 1.94 5.06C1.92409 4.79478 2.01418 4.53411 2.19047 4.33532C2.36675 4.13653 2.61478 4.01591 2.88 4H6.23L6.66 2.3C6.8129 1.67693 7.16151 1.11929 7.65466 0.708933C8.14781 0.298574 8.75952 0.0571152 9.4 0.02H10.45C11.0881 0.0203866 11.7094 0.224211 12.2237 0.60186C12.7381 0.979509 13.1186 1.51131 13.31 2.12L13.36 2.28L13.79 3.99H17C17.2652 3.97409 17.5259 4.06418 17.7247 4.24047C17.9235 4.41675 18.0441 4.66478 18.06 4.93C18.0759 5.19522 17.9858 5.45589 17.8095 5.65468C17.6332 5.85347 17.3852 5.97409 17.12 5.99H3V6ZM10.44 2.03H9.57C9.36856 2.0306 9.17199 2.09201 9.00605 2.20621C8.8401 2.32041 8.71252 2.48206 8.64 2.67L8.6 2.78L8.3 4H11.72L11.42 2.78C11.3746 2.60092 11.2805 2.4379 11.1481 2.30905C11.0157 2.18019 10.8502 2.09053 10.67 2.05L10.55 2.03H10.45H10.44Z'/%3E%3C/svg%3E");
150
- }
151
-
152
- .strategy-control-cta.accent > .button::before {
153
- mask-size: 20px 20px;
154
- mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C10.2457 3.99823 10.4834 4.08695 10.6679 4.24926C10.8523 4.41157 10.9705 4.63609 11 4.88V9H15C15.2652 8.98409 15.5259 9.07418 15.7247 9.25047C15.9235 9.42675 16.0441 9.67478 16.06 9.94C16.0759 10.2052 15.9858 10.4659 15.8095 10.6647C15.6332 10.8635 15.3852 10.9841 15.12 11H11V15C11.0159 15.2652 10.9258 15.5259 10.7495 15.7247C10.5732 15.9235 10.3252 16.0441 10.06 16.06C9.79478 16.0759 9.53411 15.9858 9.33532 15.8095C9.13653 15.6332 9.01591 15.3852 9 15.12V11H5C4.73478 11.0159 4.47411 10.9258 4.27532 10.7495C4.07653 10.5732 3.95591 10.3252 3.94 10.06C3.92409 9.79478 4.01418 9.53411 4.19047 9.33532C4.36675 9.13653 4.61478 9.01591 4.88 9H9V5C9 4.73478 9.10536 4.48043 9.29289 4.29289C9.48043 4.10536 9.73478 4 10 4Z'/%3E%3C/svg%3E");
155
- }
156
-
157
- .strategy-control-action--change {
158
- color: var(--guido-color-primary-500);
159
- }
160
-
161
- .strategy-control-action--remove {
162
- color: var(--guido-color-danger-500);
163
- }
164
-
165
- .strategy-control-action:hover {
166
- text-decoration: underline;
167
- }
168
- `;
169
- export {
170
- n as default
171
- };