vviinn-widgets 2.168.1 → 2.169.0

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 (118) hide show
  1. package/dist/cjs/Rectangle-Dki6rXFf.js +46 -0
  2. package/dist/{esm/Rectangle-Blhy9XN1.js → cjs/i18next-DkN_8H9H.js} +3 -40
  3. package/dist/cjs/{index-D_wGgGZa.js → index-AUxw6MQx.js} +2 -2
  4. package/dist/cjs/index-BsogJ3k2.js +4485 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/{package-DeG1AEbB.js → package-CNMlw--z.js} +1 -1
  7. package/dist/cjs/{resources-fyqfpLC2.js → resources-f2jpvf1Z.js} +29 -1
  8. package/dist/cjs/{search.store-BLHPjH2B.js → search.store-unvHCRNj.js} +8 -4477
  9. package/dist/cjs/vviinn-button_2.cjs.entry.js +4 -11
  10. package/dist/cjs/vviinn-camera_12.cjs.entry.js +80 -54
  11. package/dist/cjs/vviinn-carousel_10.cjs.entry.js +38 -37
  12. package/dist/cjs/vviinn-detected-object_7.cjs.entry.js +35 -9
  13. package/dist/cjs/vviinn-selected-filters.cjs.entry.js +10 -9
  14. package/dist/cjs/vviinn-text-search.cjs.entry.js +60 -53
  15. package/dist/cjs/vviinn-vps-button.cjs.entry.js +54 -14
  16. package/dist/cjs/vviinn-widgets.cjs.js +1 -1
  17. package/dist/collection/components/vviinn-button/vviinn-button.js +4 -2
  18. package/dist/collection/components/vviinn-camera/vviinn-camera.js +4 -3
  19. package/dist/collection/components/vviinn-icons/icons/MicIcon.js +1 -1
  20. package/dist/collection/components/vviinn-icons/icons/MinusIcon.js +1 -1
  21. package/dist/collection/components/vviinn-icons/icons/PlusIcon.js +1 -1
  22. package/dist/collection/components/vviinn-icons/icons/RoundCameraIcon.js +1 -1
  23. package/dist/collection/components/vviinn-icons/icons/SearchModalCameraIcon.js +1 -1
  24. package/dist/collection/components/vviinn-icons/icons/SearchModalFullSearchIcon.js +1 -1
  25. package/dist/collection/components/vviinn-icons/icons/SearchModalImageSearchIcon.js +1 -1
  26. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +8 -2
  27. package/dist/collection/components/vviinn-modal/vviinn-modal.js +31 -3
  28. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +15 -1
  29. package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +48 -42
  30. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +1 -9
  31. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +1 -1
  32. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +53 -12
  33. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +3 -3
  34. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +18 -12
  35. package/dist/collection/locale/resources.js +29 -1
  36. package/dist/esm/Rectangle-zsZBqb9v.js +40 -0
  37. package/dist/{cjs/Rectangle-oExct0ft.js → esm/i18next-C7V-mvcq.js} +1 -47
  38. package/dist/esm/index-CBMaqIhH.js +4476 -0
  39. package/dist/esm/{index-DHDA4hJT.js → index-D7ZGZWQq.js} +2 -2
  40. package/dist/esm/loader.js +1 -1
  41. package/dist/esm/{package-CJeeTzkr.js → package-DmYpISMZ.js} +1 -1
  42. package/dist/esm/{resources-DcA7Zxs5.js → resources-CcTt40Au.js} +29 -1
  43. package/dist/esm/{search.store-yqygS_Os.js → search.store-BCkVD1sH.js} +3 -4468
  44. package/dist/esm/vviinn-button_2.entry.js +4 -11
  45. package/dist/esm/vviinn-camera_12.entry.js +52 -26
  46. package/dist/esm/vviinn-carousel_10.entry.js +7 -6
  47. package/dist/esm/vviinn-detected-object_7.entry.js +33 -7
  48. package/dist/esm/vviinn-selected-filters.entry.js +5 -4
  49. package/dist/esm/vviinn-text-search.entry.js +54 -47
  50. package/dist/esm/vviinn-vps-button.entry.js +54 -14
  51. package/dist/esm/vviinn-widgets.js +1 -1
  52. package/dist/types/components/vviinn-button/vviinn-button.d.ts +3 -1
  53. package/dist/types/components/vviinn-camera/vviinn-camera.d.ts +1 -1
  54. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +1 -1
  55. package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +4 -1
  56. package/dist/types/components/vviinn-privacy-badge/vviinn-privacy-badge.d.ts +1 -0
  57. package/dist/types/components/vviinn-text-search/vviinn-text-search.d.ts +1 -0
  58. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +0 -1
  59. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +8 -5
  60. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +1 -0
  61. package/dist/types/components.d.ts +21 -5
  62. package/dist/vviinn-widgets/p-05293176.entry.js +1 -0
  63. package/dist/vviinn-widgets/p-15d1cb11.entry.js +1 -0
  64. package/dist/vviinn-widgets/p-2120dd4d.entry.js +10 -0
  65. package/dist/vviinn-widgets/p-862194c4.entry.js +1 -0
  66. package/dist/vviinn-widgets/p-9df79002.entry.js +1 -0
  67. package/dist/vviinn-widgets/{p-Blhy9XN1.js → p-C7V-mvcq.js} +1 -1
  68. package/dist/vviinn-widgets/p-CFljBA0y.js +1 -0
  69. package/dist/vviinn-widgets/p-CZ7_-mGa.js +1 -0
  70. package/dist/vviinn-widgets/p-CcTt40Au.js +1 -0
  71. package/dist/vviinn-widgets/p-DROBJwmr.js +1 -0
  72. package/dist/vviinn-widgets/{p-CJeeTzkr.js → p-DmYpISMZ.js} +1 -1
  73. package/dist/vviinn-widgets/p-ad792f5b.entry.js +1 -0
  74. package/dist/vviinn-widgets/p-c7391d2f.entry.js +1 -0
  75. package/dist/vviinn-widgets/p-zsZBqb9v.js +1 -0
  76. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  77. package/package.json +1 -1
  78. package/www/build/p-05293176.entry.js +1 -0
  79. package/www/build/p-15d1cb11.entry.js +1 -0
  80. package/www/build/p-2120dd4d.entry.js +10 -0
  81. package/www/build/{p-a2741931.js → p-52bb7bd4.js} +1 -1
  82. package/www/build/p-862194c4.entry.js +1 -0
  83. package/www/build/p-9df79002.entry.js +1 -0
  84. package/www/build/{p-Blhy9XN1.js → p-C7V-mvcq.js} +1 -1
  85. package/www/build/p-CFljBA0y.js +1 -0
  86. package/www/build/p-CZ7_-mGa.js +1 -0
  87. package/www/build/p-CcTt40Au.js +1 -0
  88. package/www/build/p-DROBJwmr.js +1 -0
  89. package/www/build/{p-CJeeTzkr.js → p-DmYpISMZ.js} +1 -1
  90. package/www/build/p-ad792f5b.entry.js +1 -0
  91. package/www/build/p-c7391d2f.entry.js +1 -0
  92. package/www/build/p-zsZBqb9v.js +1 -0
  93. package/www/build/vviinn-widgets.esm.js +1 -1
  94. package/www/index.html +1 -1
  95. package/dist/cjs/index-B7VfQ5vd.js +0 -13
  96. package/dist/esm/index-CGjTkEbG.js +0 -9
  97. package/dist/vviinn-widgets/p-165690ca.entry.js +0 -1
  98. package/dist/vviinn-widgets/p-2fe44cd6.entry.js +0 -1
  99. package/dist/vviinn-widgets/p-366df345.entry.js +0 -1
  100. package/dist/vviinn-widgets/p-6e0b7760.entry.js +0 -1
  101. package/dist/vviinn-widgets/p-B4krhe3H.js +0 -1
  102. package/dist/vviinn-widgets/p-CGjTkEbG.js +0 -1
  103. package/dist/vviinn-widgets/p-DcA7Zxs5.js +0 -1
  104. package/dist/vviinn-widgets/p-HTOQ7YPT.js +0 -1
  105. package/dist/vviinn-widgets/p-d2908040.entry.js +0 -10
  106. package/dist/vviinn-widgets/p-dec628aa.entry.js +0 -1
  107. package/dist/vviinn-widgets/p-fdff6519.entry.js +0 -1
  108. package/www/build/p-165690ca.entry.js +0 -1
  109. package/www/build/p-2fe44cd6.entry.js +0 -1
  110. package/www/build/p-366df345.entry.js +0 -1
  111. package/www/build/p-6e0b7760.entry.js +0 -1
  112. package/www/build/p-B4krhe3H.js +0 -1
  113. package/www/build/p-CGjTkEbG.js +0 -1
  114. package/www/build/p-DcA7Zxs5.js +0 -1
  115. package/www/build/p-HTOQ7YPT.js +0 -1
  116. package/www/build/p-d2908040.entry.js +0 -10
  117. package/www/build/p-dec628aa.entry.js +0 -1
  118. package/www/build/p-fdff6519.entry.js +0 -1
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ const fromImage = (image) => {
4
+ return {
5
+ left: 0,
6
+ top: 0,
7
+ width: image.width,
8
+ height: image.height,
9
+ };
10
+ };
11
+ const scaleWithSized = (s) => (r) => {
12
+ return {
13
+ left: r.left * s.width,
14
+ top: r.top * s.height,
15
+ width: r.width * s.width,
16
+ height: r.height * s.height,
17
+ };
18
+ };
19
+ const divideOnSized = (s) => (r) => {
20
+ return {
21
+ left: r.left / s.width,
22
+ top: r.top / s.height,
23
+ width: r.width / s.width,
24
+ height: r.height / s.height,
25
+ };
26
+ };
27
+ const center = (r) => {
28
+ return {
29
+ left: r.left + r.width * 0.5,
30
+ top: r.top + r.height * 0.5,
31
+ };
32
+ };
33
+ const isClickedInRectBound = (event, rect) => {
34
+ const { clientX, clientY } = event;
35
+ const inLeftBound = clientX >= rect.left;
36
+ const inRightBound = clientX <= rect.right;
37
+ const inTopBound = clientY >= rect.top;
38
+ const inBottomBound = clientY <= rect.bottom;
39
+ return inLeftBound && inRightBound && inTopBound && inBottomBound;
40
+ };
41
+
42
+ exports.center = center;
43
+ exports.divideOnSized = divideOnSized;
44
+ exports.fromImage = fromImage;
45
+ exports.isClickedInRectBound = isClickedInRectBound;
46
+ exports.scaleWithSized = scaleWithSized;
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  const isString = obj => typeof obj === 'string';
2
4
  const defer = () => {
3
5
  let res;
@@ -2364,43 +2366,4 @@ class I18n extends EventEmitter {
2364
2366
  const instance = I18n.createInstance();
2365
2367
  instance.createInstance = I18n.createInstance;
2366
2368
 
2367
- const fromImage = (image) => {
2368
- return {
2369
- left: 0,
2370
- top: 0,
2371
- width: image.width,
2372
- height: image.height,
2373
- };
2374
- };
2375
- const scaleWithSized = (s) => (r) => {
2376
- return {
2377
- left: r.left * s.width,
2378
- top: r.top * s.height,
2379
- width: r.width * s.width,
2380
- height: r.height * s.height,
2381
- };
2382
- };
2383
- const divideOnSized = (s) => (r) => {
2384
- return {
2385
- left: r.left / s.width,
2386
- top: r.top / s.height,
2387
- width: r.width / s.width,
2388
- height: r.height / s.height,
2389
- };
2390
- };
2391
- const center = (r) => {
2392
- return {
2393
- left: r.left + r.width * 0.5,
2394
- top: r.top + r.height * 0.5,
2395
- };
2396
- };
2397
- const isClickedInRectBound = (event, rect) => {
2398
- const { clientX, clientY } = event;
2399
- const inLeftBound = clientX >= rect.left;
2400
- const inRightBound = clientX <= rect.right;
2401
- const inTopBound = clientY >= rect.top;
2402
- const inBottomBound = clientY <= rect.bottom;
2403
- return inLeftBound && inRightBound && inTopBound && inBottomBound;
2404
- };
2405
-
2406
- export { isClickedInRectBound as a, center as c, divideOnSized as d, fromImage as f, instance as i, scaleWithSized as s };
2369
+ exports.instance = instance;
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-A2FtmPS7.js');
4
- var search_store = require('./search.store-BLHPjH2B.js');
4
+ var search_store = require('./search.store-unvHCRNj.js');
5
5
 
6
- const PlusIcon = () => (index.h("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "plus-icon" },
6
+ const PlusIcon = () => (index.h("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "plus-icon", "aria-hidden": "true" },
7
7
  index.h("path", { d: "M14.6667 17.3333H8.00001C7.62223 17.3333 7.30556 17.2056 7.05001 16.95C6.79445 16.6944 6.66667 16.3778 6.66667 16C6.66667 15.6222 6.79445 15.3056 7.05001 15.05C7.30556 14.7944 7.62223 14.6667 8.00001 14.6667H14.6667V8.00001C14.6667 7.62223 14.7944 7.30556 15.05 7.05001C15.3056 6.79445 15.6222 6.66667 16 6.66667C16.3778 6.66667 16.6944 6.79445 16.95 7.05001C17.2056 7.30556 17.3333 7.62223 17.3333 8.00001V14.6667H24C24.3778 14.6667 24.6944 14.7944 24.95 15.05C25.2056 15.3056 25.3333 15.6222 25.3333 16C25.3333 16.3778 25.2056 16.6944 24.95 16.95C24.6944 17.2056 24.3778 17.3333 24 17.3333H17.3333V24C17.3333 24.3778 17.2056 24.6944 16.95 24.95C16.6944 25.2056 16.3778 25.3333 16 25.3333C15.6222 25.3333 15.3056 25.2056 15.05 24.95C14.7944 24.6944 14.6667 24.3778 14.6667 24V17.3333Z", fill: "currentColor" })));
8
8
 
9
9
  const CAROUSEL_CONTENT_WIDTH_CSS_VAR = "--vviinn-carousel-content-width";