@depict-ai/ui 2.0.19 → 2.0.21

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/ES10/index.cjs CHANGED
@@ -72,7 +72,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
72
72
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
73
73
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
74
74
  /*! Depict.ai search and product listing SDK */
75
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.19";
75
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.21";
76
76
  const $d067f3a30f047b41$var$ListingContext = /*@__PURE__*/$52FdA$solidjs.createContext();
77
77
  function $d067f3a30f047b41$export$e68cff63f76bd15b(props) {
78
78
  const our_object = {};
@@ -535,22 +535,28 @@ function $76012c4468a53d1f$export$43f0fb951fcb0c54(_ref) {
535
535
  }
536
536
  });
537
537
  }
538
- // Source: https://dmitripavlutin.com/how-to-compare-objects-in-javascript/
539
- function $76012c4468a53d1f$var$deep_equal(object1, object2) {
540
- const keys1 = Object.keys(object1);
541
- const keys2 = Object.keys(object2);
542
- if (keys1.length !== keys2.length) return false;
543
- for (const key of keys1) {
544
- if ($76012c4468a53d1f$var$result_ids.includes(key)) continue; // ignore result ids that change per response
545
- const val1 = object1[key];
546
- const val2 = object2[key];
547
- const areObjects = $76012c4468a53d1f$var$is_object(val1) && $76012c4468a53d1f$var$is_object(val2);
548
- if (areObjects && !$76012c4468a53d1f$var$deep_equal(val1, val2) || !areObjects && val1 !== val2) return false;
538
+ // source: https://medium.com/@pancemarko/deep-equality-in-javascript-determining-if-two-objects-are-equal-bf98cf47e934
539
+ function $76012c4468a53d1f$var$deep_equal(obj1, obj2) {
540
+ if (obj1 === obj2) return true;
541
+ if (Array.isArray(obj1) && Array.isArray(obj2)) {
542
+ if (obj1.length !== obj2.length) return false;
543
+ return obj1.every((elem, index) => {
544
+ return $76012c4468a53d1f$var$deep_equal(elem, obj2[index]);
545
+ });
549
546
  }
550
- return true;
551
- }
552
- function $76012c4468a53d1f$var$is_object(object) {
553
- return object != null && typeof object === "object";
547
+ if (typeof obj1 === "object" && typeof obj2 === "object" && obj1 !== null && obj2 !== null) {
548
+ if (Array.isArray(obj1) || Array.isArray(obj2)) return false;
549
+ const keys1 = Object.keys(obj1);
550
+ const keys2 = Object.keys(obj2);
551
+ if (keys1.length !== keys2.length || !keys1.every(key => keys2.includes(key))) return false;
552
+ for (const key in obj1) {
553
+ if ($76012c4468a53d1f$var$result_ids.includes(key)) continue; // ignore keys changing with every request
554
+ const isEqual = $76012c4468a53d1f$var$deep_equal(obj1[key], obj2[key]);
555
+ if (!isEqual) return false;
556
+ }
557
+ return true;
558
+ }
559
+ return false;
554
560
  }
555
561
 
556
562
  // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
@@ -3502,7 +3508,11 @@ function $164d474fea221d77$var$ActualFilterBody(props) {
3502
3508
  return $52FdA$solidjsweb.createComponent((0, $4cfe8400ed3f92c4$export$6c6d7a51fa9aa15d), {
3503
3509
  is_open_: is_open,
3504
3510
  get details_() {
3505
- return $52FdA$solidjsweb.getNextElement($164d474fea221d77$var$_tmpl$5);
3511
+ return (() => {
3512
+ const _el$15 = $52FdA$solidjsweb.getNextElement($164d474fea221d77$var$_tmpl$5);
3513
+ $52FdA$solidjsweb.setAttribute(_el$15, "data-group-title", section_);
3514
+ return _el$15;
3515
+ })();
3506
3516
  },
3507
3517
  get summary_() {
3508
3518
  return (() => {
package/ES10/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
7
7
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
8
8
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "2.0.19";
10
+ export const version = "2.0.21";
11
11
  /**
12
12
  * Provider to wrap every listing (group of products) in
13
13
  * Used for example for deduplicating ResizeObservers for responsive images
package/ES10/index.js CHANGED
@@ -8,7 +8,7 @@ import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
8
8
  /*! Depict.ai search and product listing SDK */
9
9
  import { register_es_version } from "../multi_import_deduplicator.mjs";
10
10
  register_es_version("ui", "ES10");
11
- const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.19";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.21";
12
12
  const $5441862cd2f5e111$var$ListingContext = /*@__PURE__*/$8tj43$createContext();
13
13
  function $5441862cd2f5e111$export$e68cff63f76bd15b(props) {
14
14
  const our_object = {};
@@ -471,22 +471,28 @@ function $2d7bad8684bc7f44$export$43f0fb951fcb0c54(_ref) {
471
471
  }
472
472
  });
473
473
  }
474
- // Source: https://dmitripavlutin.com/how-to-compare-objects-in-javascript/
475
- function $2d7bad8684bc7f44$var$deep_equal(object1, object2) {
476
- const keys1 = Object.keys(object1);
477
- const keys2 = Object.keys(object2);
478
- if (keys1.length !== keys2.length) return false;
479
- for (const key of keys1) {
480
- if ($2d7bad8684bc7f44$var$result_ids.includes(key)) continue; // ignore result ids that change per response
481
- const val1 = object1[key];
482
- const val2 = object2[key];
483
- const areObjects = $2d7bad8684bc7f44$var$is_object(val1) && $2d7bad8684bc7f44$var$is_object(val2);
484
- if (areObjects && !$2d7bad8684bc7f44$var$deep_equal(val1, val2) || !areObjects && val1 !== val2) return false;
474
+ // source: https://medium.com/@pancemarko/deep-equality-in-javascript-determining-if-two-objects-are-equal-bf98cf47e934
475
+ function $2d7bad8684bc7f44$var$deep_equal(obj1, obj2) {
476
+ if (obj1 === obj2) return true;
477
+ if (Array.isArray(obj1) && Array.isArray(obj2)) {
478
+ if (obj1.length !== obj2.length) return false;
479
+ return obj1.every((elem, index) => {
480
+ return $2d7bad8684bc7f44$var$deep_equal(elem, obj2[index]);
481
+ });
485
482
  }
486
- return true;
487
- }
488
- function $2d7bad8684bc7f44$var$is_object(object) {
489
- return object != null && typeof object === "object";
483
+ if (typeof obj1 === "object" && typeof obj2 === "object" && obj1 !== null && obj2 !== null) {
484
+ if (Array.isArray(obj1) || Array.isArray(obj2)) return false;
485
+ const keys1 = Object.keys(obj1);
486
+ const keys2 = Object.keys(obj2);
487
+ if (keys1.length !== keys2.length || !keys1.every(key => keys2.includes(key))) return false;
488
+ for (const key in obj1) {
489
+ if ($2d7bad8684bc7f44$var$result_ids.includes(key)) continue; // ignore keys changing with every request
490
+ const isEqual = $2d7bad8684bc7f44$var$deep_equal(obj1[key], obj2[key]);
491
+ if (!isEqual) return false;
492
+ }
493
+ return true;
494
+ }
495
+ return false;
490
496
  }
491
497
 
492
498
  // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
@@ -3438,7 +3444,11 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
3438
3444
  return $8tj43$createComponent((0, $ad371564683947ab$export$6c6d7a51fa9aa15d), {
3439
3445
  is_open_: is_open,
3440
3446
  get details_() {
3441
- return $8tj43$getNextElement($f6b0500577e1b210$var$_tmpl$5);
3447
+ return (() => {
3448
+ const _el$15 = $8tj43$getNextElement($f6b0500577e1b210$var$_tmpl$5);
3449
+ $8tj43$setAttribute(_el$15, "data-group-title", section_);
3450
+ return _el$15;
3451
+ })();
3442
3452
  },
3443
3453
  get summary_() {
3444
3454
  return (() => {
package/latest/index.cjs CHANGED
@@ -66,7 +66,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
66
66
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
67
67
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
68
68
  /*! Depict.ai search and product listing SDK */
69
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.19";
69
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.21";
70
70
  const $84798aaa863a4909$var$ListingContext = /*@__PURE__*/$gVhhF$solidjs.createContext();
71
71
  function $84798aaa863a4909$export$e68cff63f76bd15b(props) {
72
72
  const our_object = {};
@@ -504,22 +504,28 @@ function $a73063cc642f3e5f$export$43f0fb951fcb0c54({
504
504
  }
505
505
  });
506
506
  }
507
- // Source: https://dmitripavlutin.com/how-to-compare-objects-in-javascript/
508
- function $a73063cc642f3e5f$var$deep_equal(object1, object2) {
509
- const keys1 = Object.keys(object1);
510
- const keys2 = Object.keys(object2);
511
- if (keys1.length !== keys2.length) return false;
512
- for (const key of keys1) {
513
- if ($a73063cc642f3e5f$var$result_ids.includes(key)) continue; // ignore result ids that change per response
514
- const val1 = object1[key];
515
- const val2 = object2[key];
516
- const areObjects = $a73063cc642f3e5f$var$is_object(val1) && $a73063cc642f3e5f$var$is_object(val2);
517
- if (areObjects && !$a73063cc642f3e5f$var$deep_equal(val1, val2) || !areObjects && val1 !== val2) return false;
507
+ // source: https://medium.com/@pancemarko/deep-equality-in-javascript-determining-if-two-objects-are-equal-bf98cf47e934
508
+ function $a73063cc642f3e5f$var$deep_equal(obj1, obj2) {
509
+ if (obj1 === obj2) return true;
510
+ if (Array.isArray(obj1) && Array.isArray(obj2)) {
511
+ if (obj1.length !== obj2.length) return false;
512
+ return obj1.every((elem, index) => {
513
+ return $a73063cc642f3e5f$var$deep_equal(elem, obj2[index]);
514
+ });
518
515
  }
519
- return true;
520
- }
521
- function $a73063cc642f3e5f$var$is_object(object) {
522
- return object != null && typeof object === "object";
516
+ if (typeof obj1 === "object" && typeof obj2 === "object" && obj1 !== null && obj2 !== null) {
517
+ if (Array.isArray(obj1) || Array.isArray(obj2)) return false;
518
+ const keys1 = Object.keys(obj1);
519
+ const keys2 = Object.keys(obj2);
520
+ if (keys1.length !== keys2.length || !keys1.every(key => keys2.includes(key))) return false;
521
+ for (const key in obj1) {
522
+ if ($a73063cc642f3e5f$var$result_ids.includes(key)) continue; // ignore keys changing with every request
523
+ const isEqual = $a73063cc642f3e5f$var$deep_equal(obj1[key], obj2[key]);
524
+ if (!isEqual) return false;
525
+ }
526
+ return true;
527
+ }
528
+ return false;
523
529
  }
524
530
 
525
531
  // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
@@ -3287,7 +3293,11 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
3287
3293
  return $gVhhF$solidjsweb.createComponent((0, $a69e505a12a77874$export$6c6d7a51fa9aa15d), {
3288
3294
  is_open_: is_open,
3289
3295
  get details_() {
3290
- return $gVhhF$solidjsweb.getNextElement($aff9a96d30ed3563$var$_tmpl$5);
3296
+ return (() => {
3297
+ const _el$15 = $gVhhF$solidjsweb.getNextElement($aff9a96d30ed3563$var$_tmpl$5);
3298
+ $gVhhF$solidjsweb.setAttribute(_el$15, "data-group-title", section_);
3299
+ return _el$15;
3300
+ })();
3291
3301
  },
3292
3302
  get summary_() {
3293
3303
  return (() => {
package/latest/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
7
7
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
8
8
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "2.0.19";
10
+ export const version = "2.0.21";
11
11
  /**
12
12
  * Provider to wrap every listing (group of products) in
13
13
  * Used for example for deduplicating ResizeObservers for responsive images
package/latest/index.js CHANGED
@@ -5,7 +5,7 @@ import { createSignal as $9HbP8$createSignal, getOwner as $9HbP8$getOwner, creat
5
5
  /*! Depict.ai search and product listing SDK */
6
6
  import { register_es_version } from "../multi_import_deduplicator.mjs";
7
7
  register_es_version("ui", "latest");
8
- const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.19";
8
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.21";
9
9
  const $011607bdf658f807$var$ListingContext = /*@__PURE__*/$9HbP8$createContext();
10
10
  function $011607bdf658f807$export$e68cff63f76bd15b(props) {
11
11
  const our_object = {};
@@ -443,22 +443,28 @@ function $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
443
443
  }
444
444
  });
445
445
  }
446
- // Source: https://dmitripavlutin.com/how-to-compare-objects-in-javascript/
447
- function $29ec7cddbe1d3484$var$deep_equal(object1, object2) {
448
- const keys1 = Object.keys(object1);
449
- const keys2 = Object.keys(object2);
450
- if (keys1.length !== keys2.length) return false;
451
- for (const key of keys1) {
452
- if ($29ec7cddbe1d3484$var$result_ids.includes(key)) continue; // ignore result ids that change per response
453
- const val1 = object1[key];
454
- const val2 = object2[key];
455
- const areObjects = $29ec7cddbe1d3484$var$is_object(val1) && $29ec7cddbe1d3484$var$is_object(val2);
456
- if (areObjects && !$29ec7cddbe1d3484$var$deep_equal(val1, val2) || !areObjects && val1 !== val2) return false;
446
+ // source: https://medium.com/@pancemarko/deep-equality-in-javascript-determining-if-two-objects-are-equal-bf98cf47e934
447
+ function $29ec7cddbe1d3484$var$deep_equal(obj1, obj2) {
448
+ if (obj1 === obj2) return true;
449
+ if (Array.isArray(obj1) && Array.isArray(obj2)) {
450
+ if (obj1.length !== obj2.length) return false;
451
+ return obj1.every((elem, index) => {
452
+ return $29ec7cddbe1d3484$var$deep_equal(elem, obj2[index]);
453
+ });
457
454
  }
458
- return true;
459
- }
460
- function $29ec7cddbe1d3484$var$is_object(object) {
461
- return object != null && typeof object === "object";
455
+ if (typeof obj1 === "object" && typeof obj2 === "object" && obj1 !== null && obj2 !== null) {
456
+ if (Array.isArray(obj1) || Array.isArray(obj2)) return false;
457
+ const keys1 = Object.keys(obj1);
458
+ const keys2 = Object.keys(obj2);
459
+ if (keys1.length !== keys2.length || !keys1.every(key => keys2.includes(key))) return false;
460
+ for (const key in obj1) {
461
+ if ($29ec7cddbe1d3484$var$result_ids.includes(key)) continue; // ignore keys changing with every request
462
+ const isEqual = $29ec7cddbe1d3484$var$deep_equal(obj1[key], obj2[key]);
463
+ if (!isEqual) return false;
464
+ }
465
+ return true;
466
+ }
467
+ return false;
462
468
  }
463
469
 
464
470
  // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
@@ -3226,7 +3232,11 @@ function $fab07f52c9861732$var$ActualFilterBody(props) {
3226
3232
  return $9HbP8$createComponent((0, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d), {
3227
3233
  is_open_: is_open,
3228
3234
  get details_() {
3229
- return $9HbP8$getNextElement($fab07f52c9861732$var$_tmpl$5);
3235
+ return (() => {
3236
+ const _el$15 = $9HbP8$getNextElement($fab07f52c9861732$var$_tmpl$5);
3237
+ $9HbP8$setAttribute(_el$15, "data-group-title", section_);
3238
+ return _el$15;
3239
+ })();
3230
3240
  },
3231
3241
  get summary_() {
3232
3242
  return (() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "2.0.19",
3
+ "version": "2.0.21",
4
4
  "description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
5
5
  "packageManager": "yarn@3.2.2",
6
6
  "sass": "styles.scss",
@@ -72,7 +72,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
72
72
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
73
73
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
74
74
  /*! Depict.ai search and product listing SDK */
75
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.19";
75
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.21";
76
76
  const $d067f3a30f047b41$var$ListingContext = /*@__PURE__*/$3hooq$solidjs.createContext();
77
77
  function $d067f3a30f047b41$export$e68cff63f76bd15b(props) {
78
78
  const our_object = {};
@@ -504,22 +504,28 @@ function $76012c4468a53d1f$export$43f0fb951fcb0c54(_ref) {
504
504
  }
505
505
  });
506
506
  }
507
- // Source: https://dmitripavlutin.com/how-to-compare-objects-in-javascript/
508
- function $76012c4468a53d1f$var$deep_equal(object1, object2) {
509
- const keys1 = Object.keys(object1);
510
- const keys2 = Object.keys(object2);
511
- if (keys1.length !== keys2.length) return false;
512
- for (const key of keys1) {
513
- if ($76012c4468a53d1f$var$result_ids.includes(key)) continue; // ignore result ids that change per response
514
- const val1 = object1[key];
515
- const val2 = object2[key];
516
- const areObjects = $76012c4468a53d1f$var$is_object(val1) && $76012c4468a53d1f$var$is_object(val2);
517
- if (areObjects && !$76012c4468a53d1f$var$deep_equal(val1, val2) || !areObjects && val1 !== val2) return false;
507
+ // source: https://medium.com/@pancemarko/deep-equality-in-javascript-determining-if-two-objects-are-equal-bf98cf47e934
508
+ function $76012c4468a53d1f$var$deep_equal(obj1, obj2) {
509
+ if (obj1 === obj2) return true;
510
+ if (Array.isArray(obj1) && Array.isArray(obj2)) {
511
+ if (obj1.length !== obj2.length) return false;
512
+ return obj1.every((elem, index) => {
513
+ return $76012c4468a53d1f$var$deep_equal(elem, obj2[index]);
514
+ });
518
515
  }
519
- return true;
520
- }
521
- function $76012c4468a53d1f$var$is_object(object) {
522
- return object != null && typeof object === "object";
516
+ if (typeof obj1 === "object" && typeof obj2 === "object" && obj1 !== null && obj2 !== null) {
517
+ if (Array.isArray(obj1) || Array.isArray(obj2)) return false;
518
+ const keys1 = Object.keys(obj1);
519
+ const keys2 = Object.keys(obj2);
520
+ if (keys1.length !== keys2.length || !keys1.every(key => keys2.includes(key))) return false;
521
+ for (const key in obj1) {
522
+ if ($76012c4468a53d1f$var$result_ids.includes(key)) continue; // ignore keys changing with every request
523
+ const isEqual = $76012c4468a53d1f$var$deep_equal(obj1[key], obj2[key]);
524
+ if (!isEqual) return false;
525
+ }
526
+ return true;
527
+ }
528
+ return false;
523
529
  }
524
530
 
525
531
  // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
@@ -2620,7 +2626,7 @@ const $164d474fea221d77$var$_tmpl$ = ["<div", ' class="filter-collapsible">', "<
2620
2626
  $164d474fea221d77$var$_tmpl$2 = ["<button", ' class="clear-group"><!--#-->', "<!--/--><span>", "</span></button>"],
2621
2627
  $164d474fea221d77$var$_tmpl$3 = ["<div", ' class="view-more-clear"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
2622
2628
  $164d474fea221d77$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><div class="filter-part">', "</div><!--#-->", "<!--/--></div>"],
2623
- $164d474fea221d77$var$_tmpl$5 = ["<details", ' class="filter-collapsible"></details>'],
2629
+ $164d474fea221d77$var$_tmpl$5 = ["<details", ' class="filter-collapsible"', "></details>"],
2624
2630
  $164d474fea221d77$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span>', '</span><div class="selected-w-sign"><!--#-->', "<!--/--><!--#-->", "<!--/--></div></div></summary>"],
2625
2631
  $164d474fea221d77$var$_tmpl$7 = ["<div", ' class="ungrouped">', "</div>"],
2626
2632
  $164d474fea221d77$var$_tmpl$8 = ["<button", ' class="clear-all-filters major">', "</button>"];
@@ -2695,7 +2701,7 @@ function $164d474fea221d77$var$ActualFilterBody(props) {
2695
2701
  return $3hooq$solidjsweb.createComponent((0, $4cfe8400ed3f92c4$export$6c6d7a51fa9aa15d), {
2696
2702
  is_open_: is_open,
2697
2703
  get details_() {
2698
- return $3hooq$solidjsweb.ssr($164d474fea221d77$var$_tmpl$5, $3hooq$solidjsweb.ssrHydrationKey());
2704
+ return $3hooq$solidjsweb.ssr($164d474fea221d77$var$_tmpl$5, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("data-group-title", $3hooq$solidjsweb.escape(section_, true), false));
2699
2705
  },
2700
2706
  get summary_() {
2701
2707
  return $3hooq$solidjsweb.ssr($164d474fea221d77$var$_tmpl$6, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(section_), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
7
7
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
8
8
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "2.0.19";
10
+ export const version = "2.0.21";
11
11
  /**
12
12
  * Provider to wrap every listing (group of products) in
13
13
  * Used for example for deduplicating ResizeObservers for responsive images
@@ -8,7 +8,7 @@ import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
8
8
  /*! Depict.ai search and product listing SDK */
9
9
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
10
10
  register_es_version("ui", "ES10");
11
- const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.19";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.21";
12
12
  const $5441862cd2f5e111$var$ListingContext = /*@__PURE__*/$b8hua$createContext();
13
13
  function $5441862cd2f5e111$export$e68cff63f76bd15b(props) {
14
14
  const our_object = {};
@@ -440,22 +440,28 @@ function $2d7bad8684bc7f44$export$43f0fb951fcb0c54(_ref) {
440
440
  }
441
441
  });
442
442
  }
443
- // Source: https://dmitripavlutin.com/how-to-compare-objects-in-javascript/
444
- function $2d7bad8684bc7f44$var$deep_equal(object1, object2) {
445
- const keys1 = Object.keys(object1);
446
- const keys2 = Object.keys(object2);
447
- if (keys1.length !== keys2.length) return false;
448
- for (const key of keys1) {
449
- if ($2d7bad8684bc7f44$var$result_ids.includes(key)) continue; // ignore result ids that change per response
450
- const val1 = object1[key];
451
- const val2 = object2[key];
452
- const areObjects = $2d7bad8684bc7f44$var$is_object(val1) && $2d7bad8684bc7f44$var$is_object(val2);
453
- if (areObjects && !$2d7bad8684bc7f44$var$deep_equal(val1, val2) || !areObjects && val1 !== val2) return false;
443
+ // source: https://medium.com/@pancemarko/deep-equality-in-javascript-determining-if-two-objects-are-equal-bf98cf47e934
444
+ function $2d7bad8684bc7f44$var$deep_equal(obj1, obj2) {
445
+ if (obj1 === obj2) return true;
446
+ if (Array.isArray(obj1) && Array.isArray(obj2)) {
447
+ if (obj1.length !== obj2.length) return false;
448
+ return obj1.every((elem, index) => {
449
+ return $2d7bad8684bc7f44$var$deep_equal(elem, obj2[index]);
450
+ });
454
451
  }
455
- return true;
456
- }
457
- function $2d7bad8684bc7f44$var$is_object(object) {
458
- return object != null && typeof object === "object";
452
+ if (typeof obj1 === "object" && typeof obj2 === "object" && obj1 !== null && obj2 !== null) {
453
+ if (Array.isArray(obj1) || Array.isArray(obj2)) return false;
454
+ const keys1 = Object.keys(obj1);
455
+ const keys2 = Object.keys(obj2);
456
+ if (keys1.length !== keys2.length || !keys1.every(key => keys2.includes(key))) return false;
457
+ for (const key in obj1) {
458
+ if ($2d7bad8684bc7f44$var$result_ids.includes(key)) continue; // ignore keys changing with every request
459
+ const isEqual = $2d7bad8684bc7f44$var$deep_equal(obj1[key], obj2[key]);
460
+ if (!isEqual) return false;
461
+ }
462
+ return true;
463
+ }
464
+ return false;
459
465
  }
460
466
 
461
467
  // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
@@ -2556,7 +2562,7 @@ const $f6b0500577e1b210$var$_tmpl$ = ["<div", ' class="filter-collapsible">', "<
2556
2562
  $f6b0500577e1b210$var$_tmpl$2 = ["<button", ' class="clear-group"><!--#-->', "<!--/--><span>", "</span></button>"],
2557
2563
  $f6b0500577e1b210$var$_tmpl$3 = ["<div", ' class="view-more-clear"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
2558
2564
  $f6b0500577e1b210$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><div class="filter-part">', "</div><!--#-->", "<!--/--></div>"],
2559
- $f6b0500577e1b210$var$_tmpl$5 = ["<details", ' class="filter-collapsible"></details>'],
2565
+ $f6b0500577e1b210$var$_tmpl$5 = ["<details", ' class="filter-collapsible"', "></details>"],
2560
2566
  $f6b0500577e1b210$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span>', '</span><div class="selected-w-sign"><!--#-->', "<!--/--><!--#-->", "<!--/--></div></div></summary>"],
2561
2567
  $f6b0500577e1b210$var$_tmpl$7 = ["<div", ' class="ungrouped">', "</div>"],
2562
2568
  $f6b0500577e1b210$var$_tmpl$8 = ["<button", ' class="clear-all-filters major">', "</button>"];
@@ -2631,7 +2637,7 @@ function $f6b0500577e1b210$var$ActualFilterBody(props) {
2631
2637
  return $b8hua$createComponent((0, $ad371564683947ab$export$6c6d7a51fa9aa15d), {
2632
2638
  is_open_: is_open,
2633
2639
  get details_() {
2634
- return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$5, $b8hua$ssrHydrationKey());
2640
+ return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$5, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("data-group-title", $b8hua$escape(section_, true), false));
2635
2641
  },
2636
2642
  get summary_() {
2637
2643
  return $b8hua$ssr($f6b0500577e1b210$var$_tmpl$6, $b8hua$ssrHydrationKey(), $b8hua$escape(section_), $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
@@ -66,7 +66,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
66
66
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
67
67
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
68
68
  /*! Depict.ai search and product listing SDK */
69
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.19";
69
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.21";
70
70
  const $84798aaa863a4909$var$ListingContext = /*@__PURE__*/$5vyXB$solidjs.createContext();
71
71
  function $84798aaa863a4909$export$e68cff63f76bd15b(props) {
72
72
  const our_object = {};
@@ -473,22 +473,28 @@ function $a73063cc642f3e5f$export$43f0fb951fcb0c54({
473
473
  }
474
474
  });
475
475
  }
476
- // Source: https://dmitripavlutin.com/how-to-compare-objects-in-javascript/
477
- function $a73063cc642f3e5f$var$deep_equal(object1, object2) {
478
- const keys1 = Object.keys(object1);
479
- const keys2 = Object.keys(object2);
480
- if (keys1.length !== keys2.length) return false;
481
- for (const key of keys1) {
482
- if ($a73063cc642f3e5f$var$result_ids.includes(key)) continue; // ignore result ids that change per response
483
- const val1 = object1[key];
484
- const val2 = object2[key];
485
- const areObjects = $a73063cc642f3e5f$var$is_object(val1) && $a73063cc642f3e5f$var$is_object(val2);
486
- if (areObjects && !$a73063cc642f3e5f$var$deep_equal(val1, val2) || !areObjects && val1 !== val2) return false;
476
+ // source: https://medium.com/@pancemarko/deep-equality-in-javascript-determining-if-two-objects-are-equal-bf98cf47e934
477
+ function $a73063cc642f3e5f$var$deep_equal(obj1, obj2) {
478
+ if (obj1 === obj2) return true;
479
+ if (Array.isArray(obj1) && Array.isArray(obj2)) {
480
+ if (obj1.length !== obj2.length) return false;
481
+ return obj1.every((elem, index) => {
482
+ return $a73063cc642f3e5f$var$deep_equal(elem, obj2[index]);
483
+ });
487
484
  }
488
- return true;
489
- }
490
- function $a73063cc642f3e5f$var$is_object(object) {
491
- return object != null && typeof object === "object";
485
+ if (typeof obj1 === "object" && typeof obj2 === "object" && obj1 !== null && obj2 !== null) {
486
+ if (Array.isArray(obj1) || Array.isArray(obj2)) return false;
487
+ const keys1 = Object.keys(obj1);
488
+ const keys2 = Object.keys(obj2);
489
+ if (keys1.length !== keys2.length || !keys1.every(key => keys2.includes(key))) return false;
490
+ for (const key in obj1) {
491
+ if ($a73063cc642f3e5f$var$result_ids.includes(key)) continue; // ignore keys changing with every request
492
+ const isEqual = $a73063cc642f3e5f$var$deep_equal(obj1[key], obj2[key]);
493
+ if (!isEqual) return false;
494
+ }
495
+ return true;
496
+ }
497
+ return false;
492
498
  }
493
499
 
494
500
  // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
@@ -2449,7 +2455,7 @@ const $aff9a96d30ed3563$var$_tmpl$ = ["<div", ' class="filter-collapsible">', "<
2449
2455
  $aff9a96d30ed3563$var$_tmpl$2 = ["<button", ' class="clear-group"><!--#-->', "<!--/--><span>", "</span></button>"],
2450
2456
  $aff9a96d30ed3563$var$_tmpl$3 = ["<div", ' class="view-more-clear"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
2451
2457
  $aff9a96d30ed3563$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><div class="filter-part">', "</div><!--#-->", "<!--/--></div>"],
2452
- $aff9a96d30ed3563$var$_tmpl$5 = ["<details", ' class="filter-collapsible"></details>'],
2458
+ $aff9a96d30ed3563$var$_tmpl$5 = ["<details", ' class="filter-collapsible"', "></details>"],
2453
2459
  $aff9a96d30ed3563$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span>', '</span><div class="selected-w-sign"><!--#-->', "<!--/--><!--#-->", "<!--/--></div></div></summary>"],
2454
2460
  $aff9a96d30ed3563$var$_tmpl$7 = ["<div", ' class="ungrouped">', "</div>"],
2455
2461
  $aff9a96d30ed3563$var$_tmpl$8 = ["<button", ' class="clear-all-filters major">', "</button>"];
@@ -2514,7 +2520,7 @@ function $aff9a96d30ed3563$var$ActualFilterBody(props) {
2514
2520
  return $5vyXB$solidjsweb.createComponent((0, $a69e505a12a77874$export$6c6d7a51fa9aa15d), {
2515
2521
  is_open_: is_open,
2516
2522
  get details_() {
2517
- return $5vyXB$solidjsweb.ssr($aff9a96d30ed3563$var$_tmpl$5, $5vyXB$solidjsweb.ssrHydrationKey());
2523
+ return $5vyXB$solidjsweb.ssr($aff9a96d30ed3563$var$_tmpl$5, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("data-group-title", $5vyXB$solidjsweb.escape(section_, true), false));
2518
2524
  },
2519
2525
  get summary_() {
2520
2526
  return $5vyXB$solidjsweb.ssr($aff9a96d30ed3563$var$_tmpl$6, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(section_), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
7
7
  import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
8
8
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
- export const version = "2.0.19";
10
+ export const version = "2.0.21";
11
11
  /**
12
12
  * Provider to wrap every listing (group of products) in
13
13
  * Used for example for deduplicating ResizeObservers for responsive images
@@ -5,7 +5,7 @@ import { createSignal as $i7OB2$createSignal, getOwner as $i7OB2$getOwner, creat
5
5
  /*! Depict.ai search and product listing SDK */
6
6
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
7
7
  register_es_version("ui", "latest");
8
- const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.19";
8
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.21";
9
9
  const $011607bdf658f807$var$ListingContext = /*@__PURE__*/$i7OB2$createContext();
10
10
  function $011607bdf658f807$export$e68cff63f76bd15b(props) {
11
11
  const our_object = {};
@@ -412,22 +412,28 @@ function $29ec7cddbe1d3484$export$43f0fb951fcb0c54({
412
412
  }
413
413
  });
414
414
  }
415
- // Source: https://dmitripavlutin.com/how-to-compare-objects-in-javascript/
416
- function $29ec7cddbe1d3484$var$deep_equal(object1, object2) {
417
- const keys1 = Object.keys(object1);
418
- const keys2 = Object.keys(object2);
419
- if (keys1.length !== keys2.length) return false;
420
- for (const key of keys1) {
421
- if ($29ec7cddbe1d3484$var$result_ids.includes(key)) continue; // ignore result ids that change per response
422
- const val1 = object1[key];
423
- const val2 = object2[key];
424
- const areObjects = $29ec7cddbe1d3484$var$is_object(val1) && $29ec7cddbe1d3484$var$is_object(val2);
425
- if (areObjects && !$29ec7cddbe1d3484$var$deep_equal(val1, val2) || !areObjects && val1 !== val2) return false;
415
+ // source: https://medium.com/@pancemarko/deep-equality-in-javascript-determining-if-two-objects-are-equal-bf98cf47e934
416
+ function $29ec7cddbe1d3484$var$deep_equal(obj1, obj2) {
417
+ if (obj1 === obj2) return true;
418
+ if (Array.isArray(obj1) && Array.isArray(obj2)) {
419
+ if (obj1.length !== obj2.length) return false;
420
+ return obj1.every((elem, index) => {
421
+ return $29ec7cddbe1d3484$var$deep_equal(elem, obj2[index]);
422
+ });
426
423
  }
427
- return true;
428
- }
429
- function $29ec7cddbe1d3484$var$is_object(object) {
430
- return object != null && typeof object === "object";
424
+ if (typeof obj1 === "object" && typeof obj2 === "object" && obj1 !== null && obj2 !== null) {
425
+ if (Array.isArray(obj1) || Array.isArray(obj2)) return false;
426
+ const keys1 = Object.keys(obj1);
427
+ const keys2 = Object.keys(obj2);
428
+ if (keys1.length !== keys2.length || !keys1.every(key => keys2.includes(key))) return false;
429
+ for (const key in obj1) {
430
+ if ($29ec7cddbe1d3484$var$result_ids.includes(key)) continue; // ignore keys changing with every request
431
+ const isEqual = $29ec7cddbe1d3484$var$deep_equal(obj1[key], obj2[key]);
432
+ if (!isEqual) return false;
433
+ }
434
+ return true;
435
+ }
436
+ return false;
431
437
  }
432
438
 
433
439
  // Errors caused by SDK consuming code interfacing with the SDK, not the SDK itself or other Depict packages
@@ -2388,7 +2394,7 @@ const $fab07f52c9861732$var$_tmpl$ = ["<div", ' class="filter-collapsible">', "<
2388
2394
  $fab07f52c9861732$var$_tmpl$2 = ["<button", ' class="clear-group"><!--#-->', "<!--/--><span>", "</span></button>"],
2389
2395
  $fab07f52c9861732$var$_tmpl$3 = ["<div", ' class="view-more-clear"><!--#-->', "<!--/--><!--#-->", "<!--/--></div>"],
2390
2396
  $fab07f52c9861732$var$_tmpl$4 = ["<div", ' class="filter-collapsible-body"><div class="filter-part">', "</div><!--#-->", "<!--/--></div>"],
2391
- $fab07f52c9861732$var$_tmpl$5 = ["<details", ' class="filter-collapsible"></details>'],
2397
+ $fab07f52c9861732$var$_tmpl$5 = ["<details", ' class="filter-collapsible"', "></details>"],
2392
2398
  $fab07f52c9861732$var$_tmpl$6 = ["<summary", ' class="filter-group-summary"><div class="summary"><span>', '</span><div class="selected-w-sign"><!--#-->', "<!--/--><!--#-->", "<!--/--></div></div></summary>"],
2393
2399
  $fab07f52c9861732$var$_tmpl$7 = ["<div", ' class="ungrouped">', "</div>"],
2394
2400
  $fab07f52c9861732$var$_tmpl$8 = ["<button", ' class="clear-all-filters major">', "</button>"];
@@ -2453,7 +2459,7 @@ function $fab07f52c9861732$var$ActualFilterBody(props) {
2453
2459
  return $i7OB2$createComponent((0, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d), {
2454
2460
  is_open_: is_open,
2455
2461
  get details_() {
2456
- return $i7OB2$ssr($fab07f52c9861732$var$_tmpl$5, $i7OB2$ssrHydrationKey());
2462
+ return $i7OB2$ssr($fab07f52c9861732$var$_tmpl$5, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("data-group-title", $i7OB2$escape(section_, true), false));
2457
2463
  },
2458
2464
  get summary_() {
2459
2465
  return $i7OB2$ssr($fab07f52c9861732$var$_tmpl$6, $i7OB2$ssrHydrationKey(), $i7OB2$escape(section_), $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {