vviinn-widgets 2.4.2 → 2.4.3

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 (93) hide show
  1. package/dist/cjs/Handler-d1a8a86a.js +329 -0
  2. package/dist/cjs/{app-globals-d999d944.js → app-globals-474864e0.js} +1 -1
  3. package/dist/cjs/cropper-handler.cjs.entry.js +27 -0
  4. package/dist/cjs/{customized-slots-90e8e849.js → customized-slots-0aa6c3d6.js} +1 -1
  5. package/dist/cjs/{cropper-handler_27.cjs.entry.js → highlight-box_22.cjs.entry.js} +85 -469
  6. package/dist/cjs/{index-c0d08aca.js → imageSearch.store-076370bf.js} +10575 -14822
  7. package/dist/cjs/index-34d20028.js +3222 -0
  8. package/dist/cjs/{index-e8cf5dc5.js → index-61403ab1.js} +1 -1
  9. package/dist/cjs/{index-53400160.js → index-a87f1a44.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +3 -3
  11. package/dist/cjs/{vviinn-carousel_2.cjs.entry.js → vviinn-carousel_3.cjs.entry.js} +212 -25
  12. package/dist/cjs/vviinn-error.cjs.entry.js +19 -0
  13. package/dist/cjs/vviinn-preloader.cjs.entry.js +26 -0
  14. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +2 -2
  15. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +2 -2
  16. package/dist/cjs/vviinn-vps-button.cjs.entry.js +3 -3
  17. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +162 -0
  18. package/dist/cjs/vviinn-widgets.cjs.js +3 -3
  19. package/dist/collection/components/image-search/search-filters/search-filters.js +1 -1
  20. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +3 -0
  21. package/dist/collection/openApi/index.js +1 -1
  22. package/dist/esm/Handler-639a4cb3.js +308 -0
  23. package/dist/esm/{app-globals-f91c6f94.js → app-globals-3888cd41.js} +1 -1
  24. package/dist/esm/cropper-handler.entry.js +23 -0
  25. package/dist/esm/{customized-slots-7be7f3b8.js → customized-slots-863113e2.js} +1 -1
  26. package/dist/esm/{cropper-handler_27.entry.js → highlight-box_22.entry.js} +21 -400
  27. package/dist/esm/{index-840ec915.js → imageSearch.store-b516d12e.js} +10749 -14986
  28. package/dist/esm/index-2f8fb0fe.js +3213 -0
  29. package/dist/esm/{index-00c7b7c2.js → index-36978848.js} +2 -2
  30. package/dist/esm/{index-d7147986.js → index-56c062df.js} +1 -1
  31. package/dist/esm/loader.js +3 -3
  32. package/dist/esm/{vviinn-carousel_2.entry.js → vviinn-carousel_3.entry.js} +190 -4
  33. package/dist/esm/vviinn-error.entry.js +15 -0
  34. package/dist/esm/vviinn-preloader.entry.js +22 -0
  35. package/dist/esm/vviinn-recommendations-sidebar.entry.js +2 -2
  36. package/dist/esm/vviinn-vpr-button.entry.js +2 -2
  37. package/dist/esm/vviinn-vps-button.entry.js +3 -3
  38. package/dist/esm/vviinn-vps-widget.entry.js +158 -0
  39. package/dist/esm/vviinn-widgets.js +3 -3
  40. package/dist/types/components/image-search/search-filters/search-filters.d.ts +1 -1
  41. package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +1 -1
  42. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +2 -1
  43. package/dist/types/components.d.ts +1 -1
  44. package/dist/types/openApi/index.d.ts +2 -2
  45. package/dist/types/tracking/event.d.ts +1 -1
  46. package/dist/types/tracking/index.d.ts +8 -8
  47. package/dist/types/tracking/models.d.ts +1 -1
  48. package/dist/vviinn-widgets/{p-2d4cb17f.entry.js → p-0a9cee09.entry.js} +1 -1
  49. package/dist/vviinn-widgets/p-28678772.js +1 -0
  50. package/dist/vviinn-widgets/{p-07d8ba79.entry.js → p-2e6ecda7.entry.js} +1 -1
  51. package/dist/vviinn-widgets/{p-dc2da207.js → p-47183c9a.js} +1 -1
  52. package/dist/vviinn-widgets/p-535611cd.entry.js +1 -0
  53. package/dist/vviinn-widgets/p-606ff863.js +1 -0
  54. package/dist/vviinn-widgets/p-9cc6f0dd.entry.js +1 -0
  55. package/{www/build/p-ce96f232.js → dist/vviinn-widgets/p-ac0a2989.js} +1 -1
  56. package/dist/vviinn-widgets/p-ad29e9c5.entry.js +1 -0
  57. package/{www/build/p-a66512b2.js → dist/vviinn-widgets/p-b4caf042.js} +1 -1
  58. package/dist/vviinn-widgets/p-b547a6d0.entry.js +1 -0
  59. package/dist/vviinn-widgets/{p-7d5af04d.js → p-c853cba8.js} +1 -1
  60. package/dist/vviinn-widgets/p-d2097302.entry.js +1 -0
  61. package/dist/vviinn-widgets/p-d8d49616.entry.js +1 -0
  62. package/dist/vviinn-widgets/p-f582db5c.js +1 -0
  63. package/dist/vviinn-widgets/{p-9c7297c8.entry.js → p-f9410382.entry.js} +1 -1
  64. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  65. package/package.json +3 -3
  66. package/www/build/{p-2d4cb17f.entry.js → p-0a9cee09.entry.js} +1 -1
  67. package/www/build/p-28678772.js +1 -0
  68. package/www/build/{p-07d8ba79.entry.js → p-2e6ecda7.entry.js} +1 -1
  69. package/www/build/{p-dc2da207.js → p-47183c9a.js} +1 -1
  70. package/www/build/p-535611cd.entry.js +1 -0
  71. package/www/build/p-606ff863.js +1 -0
  72. package/www/build/p-7c313f33.js +125 -0
  73. package/www/build/p-9cc6f0dd.entry.js +1 -0
  74. package/{dist/vviinn-widgets/p-ce96f232.js → www/build/p-ac0a2989.js} +1 -1
  75. package/www/build/p-ad29e9c5.entry.js +1 -0
  76. package/{dist/vviinn-widgets/p-a66512b2.js → www/build/p-b4caf042.js} +1 -1
  77. package/www/build/p-b547a6d0.entry.js +1 -0
  78. package/www/build/{p-7d5af04d.js → p-c853cba8.js} +1 -1
  79. package/www/build/p-d2097302.entry.js +1 -0
  80. package/www/build/p-d8d49616.entry.js +1 -0
  81. package/www/build/p-e0153ae2.css +6 -0
  82. package/www/build/p-f582db5c.js +1 -0
  83. package/www/build/{p-9c7297c8.entry.js → p-f9410382.entry.js} +1 -1
  84. package/www/build/vviinn-widgets.esm.js +1 -1
  85. package/www/index.html +1 -1
  86. package/dist/vviinn-widgets/p-196479f9.js +0 -1
  87. package/dist/vviinn-widgets/p-ae524f97.entry.js +0 -1
  88. package/dist/vviinn-widgets/p-fce4183d.entry.js +0 -1
  89. package/www/build/p-196479f9.js +0 -1
  90. package/www/build/p-32bb0615.js +0 -1
  91. package/www/build/p-a67898be.css +0 -1
  92. package/www/build/p-ae524f97.entry.js +0 -1
  93. package/www/build/p-fce4183d.entry.js +0 -1
@@ -0,0 +1,329 @@
1
+ 'use strict';
2
+
3
+ // -------------------------------------------------------------------------------------
4
+ /**
5
+ * @since 2.0.0
6
+ */
7
+ function identity(a) {
8
+ return a;
9
+ }
10
+ function flow(ab, bc, cd, de, ef, fg, gh, hi, ij) {
11
+ switch (arguments.length) {
12
+ case 1:
13
+ return ab;
14
+ case 2:
15
+ return function () {
16
+ return bc(ab.apply(this, arguments));
17
+ };
18
+ case 3:
19
+ return function () {
20
+ return cd(bc(ab.apply(this, arguments)));
21
+ };
22
+ case 4:
23
+ return function () {
24
+ return de(cd(bc(ab.apply(this, arguments))));
25
+ };
26
+ case 5:
27
+ return function () {
28
+ return ef(de(cd(bc(ab.apply(this, arguments)))));
29
+ };
30
+ case 6:
31
+ return function () {
32
+ return fg(ef(de(cd(bc(ab.apply(this, arguments))))));
33
+ };
34
+ case 7:
35
+ return function () {
36
+ return gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))));
37
+ };
38
+ case 8:
39
+ return function () {
40
+ return hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments))))))));
41
+ };
42
+ case 9:
43
+ return function () {
44
+ return ij(hi(gh(fg(ef(de(cd(bc(ab.apply(this, arguments)))))))));
45
+ };
46
+ }
47
+ return;
48
+ }
49
+ /**
50
+ * @since 2.0.0
51
+ */
52
+ function tuple() {
53
+ var t = [];
54
+ for (var _i = 0; _i < arguments.length; _i++) {
55
+ t[_i] = arguments[_i];
56
+ }
57
+ return t;
58
+ }
59
+ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
60
+ switch (arguments.length) {
61
+ case 1:
62
+ return a;
63
+ case 2:
64
+ return ab(a);
65
+ case 3:
66
+ return bc(ab(a));
67
+ case 4:
68
+ return cd(bc(ab(a)));
69
+ case 5:
70
+ return de(cd(bc(ab(a))));
71
+ case 6:
72
+ return ef(de(cd(bc(ab(a)))));
73
+ case 7:
74
+ return fg(ef(de(cd(bc(ab(a))))));
75
+ case 8:
76
+ return gh(fg(ef(de(cd(bc(ab(a)))))));
77
+ case 9:
78
+ return hi(gh(fg(ef(de(cd(bc(ab(a))))))));
79
+ default:
80
+ var ret = arguments[0];
81
+ for (var i = 1; i < arguments.length; i++) {
82
+ ret = arguments[i](ret);
83
+ }
84
+ return ret;
85
+ }
86
+ }
87
+
88
+ // -------------------------------------------------------------------------------------
89
+ // Option
90
+ // -------------------------------------------------------------------------------------
91
+ /** @internal */
92
+ var isNone = function (fa) { return fa._tag === 'None'; };
93
+ /** @internal */
94
+ var isSome = function (fa) { return fa._tag === 'Some'; };
95
+ /** @internal */
96
+ var none = { _tag: 'None' };
97
+ /** @internal */
98
+ var some = function (a) { return ({ _tag: 'Some', value: a }); };
99
+ // -------------------------------------------------------------------------------------
100
+ // Either
101
+ // -------------------------------------------------------------------------------------
102
+ /** @internal */
103
+ var isLeft = function (ma) { return ma._tag === 'Left'; };
104
+ /** @internal */
105
+ var left = function (e) { return ({ _tag: 'Left', left: e }); };
106
+ /** @internal */
107
+ var right = function (a) { return ({ _tag: 'Right', right: a }); };
108
+ // -------------------------------------------------------------------------------------
109
+ // Record
110
+ // -------------------------------------------------------------------------------------
111
+ /** @internal */
112
+ var has = Object.prototype.hasOwnProperty;
113
+
114
+ /**
115
+ * If a type `A` can form a `Semigroup` it has an **associative** binary operation.
116
+ *
117
+ * ```ts
118
+ * interface Semigroup<A> {
119
+ * readonly concat: (x: A, y: A) => A
120
+ * }
121
+ * ```
122
+ *
123
+ * Associativity means the following equality must hold for any choice of `x`, `y`, and `z`.
124
+ *
125
+ * ```ts
126
+ * concat(x, concat(y, z)) = concat(concat(x, y), z)
127
+ * ```
128
+ *
129
+ * A common example of a semigroup is the type `string` with the operation `+`.
130
+ *
131
+ * ```ts
132
+ * import { Semigroup } from 'fp-ts/Semigroup'
133
+ *
134
+ * const semigroupString: Semigroup<string> = {
135
+ * concat: (x, y) => x + y
136
+ * }
137
+ *
138
+ * const x = 'x'
139
+ * const y = 'y'
140
+ * const z = 'z'
141
+ *
142
+ * semigroupString.concat(x, y) // 'xy'
143
+ *
144
+ * semigroupString.concat(x, semigroupString.concat(y, z)) // 'xyz'
145
+ *
146
+ * semigroupString.concat(semigroupString.concat(x, y), z) // 'xyz'
147
+ * ```
148
+ *
149
+ * *Adapted from https://typelevel.org/cats*
150
+ *
151
+ * @since 2.0.0
152
+ */
153
+ /**
154
+ * Given a struct of semigroups returns a semigroup for the struct.
155
+ *
156
+ * @example
157
+ * import { struct } from 'fp-ts/Semigroup'
158
+ * import * as N from 'fp-ts/number'
159
+ *
160
+ * interface Point {
161
+ * readonly x: number
162
+ * readonly y: number
163
+ * }
164
+ *
165
+ * const S = struct<Point>({
166
+ * x: N.SemigroupSum,
167
+ * y: N.SemigroupSum
168
+ * })
169
+ *
170
+ * assert.deepStrictEqual(S.concat({ x: 1, y: 2 }, { x: 3, y: 4 }), { x: 4, y: 6 })
171
+ *
172
+ * @category combinators
173
+ * @since 2.10.0
174
+ */
175
+ var struct = function (semigroups) { return ({
176
+ concat: function (first, second) {
177
+ var r = {};
178
+ for (var k in semigroups) {
179
+ if (has.call(semigroups, k)) {
180
+ r[k] = semigroups[k].concat(first[k], second[k]);
181
+ }
182
+ }
183
+ return r;
184
+ }
185
+ }); };
186
+ // -------------------------------------------------------------------------------------
187
+ // instances
188
+ // -------------------------------------------------------------------------------------
189
+ /**
190
+ * Always return the first argument.
191
+ *
192
+ * @example
193
+ * import * as S from 'fp-ts/Semigroup'
194
+ *
195
+ * assert.deepStrictEqual(S.first<number>().concat(1, 2), 1)
196
+ *
197
+ * @category instances
198
+ * @since 2.10.0
199
+ */
200
+ var first = function () { return ({ concat: identity }); };
201
+ /**
202
+ * Always return the last argument.
203
+ *
204
+ * @example
205
+ * import * as S from 'fp-ts/Semigroup'
206
+ *
207
+ * assert.deepStrictEqual(S.last<number>().concat(1, 2), 2)
208
+ *
209
+ * @category instances
210
+ * @since 2.10.0
211
+ */
212
+ var last = function () { return ({ concat: function (_, y) { return y; } }); };
213
+ /**
214
+ * Use [`SemigroupSum`](./number.ts.html#SemigroupSum) instead.
215
+ *
216
+ * @category instances
217
+ * @since 2.0.0
218
+ * @deprecated
219
+ */
220
+ var semigroupSum = {
221
+ concat: function (x, y) { return x + y; }
222
+ };
223
+
224
+ const semigroupDiff = {
225
+ concat: (x, y) => x - y,
226
+ };
227
+
228
+ const fromRectangle$1 = ({ x, y }) => {
229
+ return {
230
+ x,
231
+ y,
232
+ };
233
+ };
234
+ const fromMouseEvent = ({ clientX, clientY }) => {
235
+ return {
236
+ x: clientX,
237
+ y: clientY,
238
+ };
239
+ };
240
+ const pointDiffSemigroup = struct({
241
+ x: semigroupDiff,
242
+ y: semigroupDiff,
243
+ });
244
+ const pointSumSemigroup = struct({
245
+ x: semigroupSum,
246
+ y: semigroupSum,
247
+ });
248
+
249
+ exports.HandlerDirection = void 0;
250
+ (function (HandlerDirection) {
251
+ HandlerDirection[HandlerDirection["East"] = 0] = "East";
252
+ HandlerDirection[HandlerDirection["North"] = 1] = "North";
253
+ HandlerDirection[HandlerDirection["NorthEast"] = 2] = "NorthEast";
254
+ HandlerDirection[HandlerDirection["NorthWest"] = 3] = "NorthWest";
255
+ HandlerDirection[HandlerDirection["South"] = 4] = "South";
256
+ HandlerDirection[HandlerDirection["SouthEast"] = 5] = "SouthEast";
257
+ HandlerDirection[HandlerDirection["SouthWest"] = 6] = "SouthWest";
258
+ HandlerDirection[HandlerDirection["West"] = 7] = "West";
259
+ })(exports.HandlerDirection || (exports.HandlerDirection = {}));
260
+ const getCursorValue = (direction) => {
261
+ switch (direction) {
262
+ case exports.HandlerDirection.East:
263
+ return "e-resize";
264
+ case exports.HandlerDirection.North:
265
+ return "n-resize";
266
+ case exports.HandlerDirection.NorthEast:
267
+ return "ne-resize";
268
+ case exports.HandlerDirection.NorthWest:
269
+ return "nw-resize";
270
+ case exports.HandlerDirection.South:
271
+ return "s-resize";
272
+ case exports.HandlerDirection.SouthEast:
273
+ return "se-resize";
274
+ case exports.HandlerDirection.SouthWest:
275
+ return "sw-resize";
276
+ case exports.HandlerDirection.West:
277
+ return "w-resize";
278
+ default:
279
+ return "pointer";
280
+ }
281
+ };
282
+ const fromRectangle = (r) => [
283
+ {
284
+ position: fromRectangle$1(r),
285
+ direction: exports.HandlerDirection.NorthWest,
286
+ },
287
+ {
288
+ position: pointSumSemigroup.concat(fromRectangle$1(r), {
289
+ x: r.width,
290
+ y: 0,
291
+ }),
292
+ direction: exports.HandlerDirection.NorthEast,
293
+ },
294
+ {
295
+ position: pointSumSemigroup.concat(fromRectangle$1(r), {
296
+ x: 0,
297
+ y: r.height,
298
+ }),
299
+ direction: exports.HandlerDirection.SouthWest,
300
+ },
301
+ {
302
+ position: pointSumSemigroup.concat(fromRectangle$1(r), {
303
+ x: r.width,
304
+ y: r.height,
305
+ }),
306
+ direction: exports.HandlerDirection.SouthEast,
307
+ },
308
+ ];
309
+
310
+ exports.first = first;
311
+ exports.flow = flow;
312
+ exports.fromMouseEvent = fromMouseEvent;
313
+ exports.fromRectangle = fromRectangle$1;
314
+ exports.fromRectangle$1 = fromRectangle;
315
+ exports.getCursorValue = getCursorValue;
316
+ exports.identity = identity;
317
+ exports.isLeft = isLeft;
318
+ exports.isNone = isNone;
319
+ exports.isSome = isSome;
320
+ exports.last = last;
321
+ exports.left = left;
322
+ exports.none = none;
323
+ exports.pipe = pipe;
324
+ exports.pointDiffSemigroup = pointDiffSemigroup;
325
+ exports.pointSumSemigroup = pointSumSemigroup;
326
+ exports.right = right;
327
+ exports.some = some;
328
+ exports.struct = struct;
329
+ exports.tuple = tuple;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-e8cf5dc5.js');
3
+ const index = require('./index-61403ab1.js');
4
4
 
5
5
  /*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation.
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-61403ab1.js');
6
+ const Handler = require('./Handler-d1a8a86a.js');
7
+
8
+ const cropperHandlerCss = ":host{--size:20px;background:transparent;border:4px solid white;box-sizing:content-box;display:block;height:var(--size);touch-action:none;position:absolute;width:var(--size);z-index:4;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.disabled){opacity:0.25}:host(.nw-resize){border-bottom:none;border-right:none;top:0;left:0}:host(.ne-resize){border-left:none;border-bottom:none;right:0;top:0}:host(.sw-resize){border-right:none;border-top:none;left:0;bottom:0}:host(.se-resize){border-left:none;border-top:none;bottom:0;right:0}";
9
+
10
+ let CropperHandler = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.disabled = false;
14
+ }
15
+ render() {
16
+ return (index.h(index.Host, { part: `handle ${Handler.getCursorValue(this.handler.direction)}`, class: {
17
+ disabled: this.disabled,
18
+ [Handler.getCursorValue(this.handler.direction)]: true,
19
+ }, style: {
20
+ "--size": "20px",
21
+ cursor: Handler.getCursorValue(this.handler.direction),
22
+ }, draggable: false }));
23
+ }
24
+ };
25
+ CropperHandler.style = cropperHandlerCss;
26
+
27
+ exports.cropper_handler = CropperHandler;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-e8cf5dc5.js');
3
+ const index = require('./index-61403ab1.js');
4
4
 
5
5
  const defaultSlotsNames = [
6
6
  "vviinn-onboarding-title",