@depict-ai/ui 4.3.13 → 4.3.14

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
@@ -100,7 +100,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
100
100
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
101
101
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
102
102
  /*! Depict.ai search and product listing SDK */
103
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.13";
103
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.14";
104
104
  const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
105
105
  const cols_at_size = [];
106
106
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -1420,9 +1420,9 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
1420
1420
  is_replace_: false,
1421
1421
  event_: event_
1422
1422
  });
1423
- if (event_.defaultPrevented)
1424
- // We single-page-navigated in this tab, close the look
1425
- setUserWantsExpanded(false);
1423
+ if (!event_.defaultPrevented)
1424
+ // If the user opened in a new tab, prevent the event from propagating to the parent which would close the look
1425
+ event_.stopImmediatePropagation();
1426
1426
  }
1427
1427
  });
1428
1428
  }
@@ -1783,10 +1783,7 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
1783
1783
  let {
1784
1784
  target: target
1785
1785
  } = _ref2;
1786
- // Don't toggle when clicking on the links
1787
- const selector = "a[href]";
1788
- if (target.matches(selector) || target.closest(selector)) return;
1789
- setUserWantsExpanded(prev => !prev);
1786
+ return setUserWantsExpanded(prev => !prev);
1790
1787
  }), true);
1791
1788
  _el$.classList.toggle("placeholder", !!!display_);
1792
1789
  $52FdA$solidjsweb.runHydrationEvents();
package/ES10/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.3.13";
13
+ export const version = "4.3.14";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
package/ES10/index.js CHANGED
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.13";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.14";
14
14
  const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
15
15
  const cols_at_size = [];
16
16
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -1330,9 +1330,9 @@ function $0c5b1686f971e5e7$export$b73ed90f0ee50dc3(_ref) {
1330
1330
  is_replace_: false,
1331
1331
  event_: event_
1332
1332
  });
1333
- if (event_.defaultPrevented)
1334
- // We single-page-navigated in this tab, close the look
1335
- setUserWantsExpanded(false);
1333
+ if (!event_.defaultPrevented)
1334
+ // If the user opened in a new tab, prevent the event from propagating to the parent which would close the look
1335
+ event_.stopImmediatePropagation();
1336
1336
  }
1337
1337
  });
1338
1338
  }
@@ -1693,10 +1693,7 @@ function $697d8713dc82b9ab$export$44809a8a3e867e30(_ref) {
1693
1693
  let {
1694
1694
  target: target
1695
1695
  } = _ref2;
1696
- // Don't toggle when clicking on the links
1697
- const selector = "a[href]";
1698
- if (target.matches(selector) || target.closest(selector)) return;
1699
- setUserWantsExpanded(prev => !prev);
1696
+ return setUserWantsExpanded(prev => !prev);
1700
1697
  }), true);
1701
1698
  _el$.classList.toggle("placeholder", !!!display_);
1702
1699
  $8tj43$runHydrationEvents();
package/latest/index.cjs CHANGED
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
94
94
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
95
95
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
96
96
  /*! Depict.ai search and product listing SDK */
97
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.13";
97
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.14";
98
98
  const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
99
99
  const cols_at_size = [];
100
100
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -1339,9 +1339,9 @@ function $1ae437d7d388a66e$export$b73ed90f0ee50dc3({
1339
1339
  is_replace_: false,
1340
1340
  event_: event_
1341
1341
  });
1342
- if (event_.defaultPrevented)
1343
- // We single-page-navigated in this tab, close the look
1344
- setUserWantsExpanded(false);
1342
+ if (!event_.defaultPrevented)
1343
+ // If the user opened in a new tab, prevent the event from propagating to the parent which would close the look
1344
+ event_.stopImmediatePropagation();
1345
1345
  }
1346
1346
  });
1347
1347
  }
@@ -1694,12 +1694,7 @@ function $ad882bbe664dbd53$export$44809a8a3e867e30({
1694
1694
  var _el$ = $gVhhF$solidjsweb.getNextElement($ad882bbe664dbd53$var$_tmpl$);
1695
1695
  $gVhhF$solidjsweb.addEventListener(_el$, "click", $gVhhF$depictaiutilishared.catchify(({
1696
1696
  target: target
1697
- }) => {
1698
- // Don't toggle when clicking on the links
1699
- const selector = "a[href]";
1700
- if (target.matches(selector) || target.closest(selector)) return;
1701
- setUserWantsExpanded(prev => !prev);
1702
- }), true);
1697
+ }) => setUserWantsExpanded(prev => !prev)), true);
1703
1698
  _el$.classList.toggle("placeholder", !!!display_);
1704
1699
  $gVhhF$solidjsweb.runHydrationEvents();
1705
1700
  return _el$;
package/latest/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.3.13";
13
+ export const version = "4.3.14";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
package/latest/index.js CHANGED
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
7
7
  /*! Depict.ai search and product listing SDK */
8
8
  import { register_es_version } from "../multi_import_deduplicator.mjs";
9
9
  register_es_version("ui", "latest");
10
- const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.13";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.14";
11
11
  const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
12
12
  const cols_at_size = [];
13
13
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -1252,9 +1252,9 @@ function $5a6c386e1bde5665$export$b73ed90f0ee50dc3({
1252
1252
  is_replace_: false,
1253
1253
  event_: event_
1254
1254
  });
1255
- if (event_.defaultPrevented)
1256
- // We single-page-navigated in this tab, close the look
1257
- setUserWantsExpanded(false);
1255
+ if (!event_.defaultPrevented)
1256
+ // If the user opened in a new tab, prevent the event from propagating to the parent which would close the look
1257
+ event_.stopImmediatePropagation();
1258
1258
  }
1259
1259
  });
1260
1260
  }
@@ -1607,12 +1607,7 @@ function $28ee4f7db3cc44b8$export$44809a8a3e867e30({
1607
1607
  var _el$ = $9HbP8$getNextElement($28ee4f7db3cc44b8$var$_tmpl$);
1608
1608
  $9HbP8$addEventListener(_el$, "click", $9HbP8$catchify(({
1609
1609
  target: target
1610
- }) => {
1611
- // Don't toggle when clicking on the links
1612
- const selector = "a[href]";
1613
- if (target.matches(selector) || target.closest(selector)) return;
1614
- setUserWantsExpanded(prev => !prev);
1615
- }), true);
1610
+ }) => setUserWantsExpanded(prev => !prev)), true);
1616
1611
  _el$.classList.toggle("placeholder", !!!display_);
1617
1612
  $9HbP8$runHydrationEvents();
1618
1613
  return _el$;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.3.13",
3
+ "version": "4.3.14",
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",
@@ -100,7 +100,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
100
100
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
101
101
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
102
102
  /*! Depict.ai search and product listing SDK */
103
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.13";
103
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.14";
104
104
  const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
105
105
  const cols_at_size = [];
106
106
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.3.13";
13
+ export const version = "4.3.14";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.13";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.14";
14
14
  const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
15
15
  const cols_at_size = [];
16
16
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
94
94
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
95
95
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
96
96
  /*! Depict.ai search and product listing SDK */
97
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.13";
97
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.14";
98
98
  const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
99
99
  const cols_at_size = [];
100
100
  for (let i = 0; i < sorted_cols_at_size.length; i++) {
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.3.13";
13
+ export const version = "4.3.14";
14
14
  declare const LISTING_ID = "listingId";
15
15
  declare const EXTERNAL_ID = "externalId";
16
16
  type ScrollRestorationData = {
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
7
7
  /*! Depict.ai search and product listing SDK */
8
8
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
9
9
  register_es_version("ui", "latest");
10
- const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.13";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.14";
11
11
  const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
12
12
  const cols_at_size = [];
13
13
  for (let i = 0; i < sorted_cols_at_size.length; i++) {