@depict-ai/ui 2.0.7 → 2.0.8

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
@@ -67,7 +67,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
67
67
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
68
68
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
69
69
  /*! Depict.ai search and product listing SDK */
70
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.7";
70
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.8";
71
71
 
72
72
  /** @jsxImportSource solid-js */
73
73
 
@@ -124,7 +124,7 @@ const $5401a6698b0c0658$export$6daf8749b65a1b77 = cols_at_size => {
124
124
  return $5401a6698b0c0658$var$transform_elements(sorted_cols_at_size);
125
125
  };
126
126
  function $8edd3cf30d1fd8b4$export$a2cc176055f8f08() {
127
- const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
127
+ const text = "Please try setting `columnsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
128
128
  return (0, $52FdA$solidjsweb.isServer) ? {
129
129
  t: "<!-- ".concat(text, " -->")
130
130
  } : document.createComment(text);
@@ -640,7 +640,14 @@ function $d05611ff6b8c8357$export$23fca46f3143581f(component, error_message) {
640
640
  return component_in_error_boundary(elements => {
641
641
  const have_multiple = Array.isArray(elements);
642
642
  if (have_multiple ? !(elements !== null && elements !== void 0 && elements.length) : !elements) return;
643
- (0, $52FdA$depictaiutilishared.observer).onremoved(have_multiple ? elements[0] : elements, dispose);
643
+ (0, $52FdA$depictaiutilishared.observer).onremoved(have_multiple ? elements[0] : elements, _ref => {
644
+ let {
645
+ element: element
646
+ } = _ref;
647
+ if (document.documentElement.contains(element)) return; // If element has instantly been re-inserted, don't dispose
648
+ // See https://depictaiworkspace.slack.com/archives/C050GHEPBTR/p1695809102791259?thread_ts=1695106805.459729&cid=C050GHEPBTR
649
+ dispose();
650
+ });
644
651
  });
645
652
  });else
646
653
  // we're already in a root so cleanups are handled
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.7";
10
+ export const version = "2.0.8";
11
11
  /**
12
12
  * Returns accessor with the size of the provided element, including padding and border (I think)
13
13
  */
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.7";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.8";
12
12
 
13
13
  /** @jsxImportSource solid-js */
14
14
 
@@ -65,7 +65,7 @@ const $a9c7ba6087881ac2$export$6daf8749b65a1b77 = cols_at_size => {
65
65
  return $a9c7ba6087881ac2$var$transform_elements(sorted_cols_at_size);
66
66
  };
67
67
  function $ca55612a53dbbdd2$export$a2cc176055f8f08() {
68
- const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
68
+ const text = "Please try setting `columnsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
69
69
  return (0, $8tj43$isServer) ? {
70
70
  t: "<!-- ".concat(text, " -->")
71
71
  } : document.createComment(text);
@@ -581,7 +581,14 @@ function $83e8cf2c0b87a58a$export$23fca46f3143581f(component, error_message) {
581
581
  return component_in_error_boundary(elements => {
582
582
  const have_multiple = Array.isArray(elements);
583
583
  if (have_multiple ? !(elements !== null && elements !== void 0 && elements.length) : !elements) return;
584
- (0, $8tj43$observer).onremoved(have_multiple ? elements[0] : elements, dispose);
584
+ (0, $8tj43$observer).onremoved(have_multiple ? elements[0] : elements, _ref => {
585
+ let {
586
+ element: element
587
+ } = _ref;
588
+ if (document.documentElement.contains(element)) return; // If element has instantly been re-inserted, don't dispose
589
+ // See https://depictaiworkspace.slack.com/archives/C050GHEPBTR/p1695809102791259?thread_ts=1695106805.459729&cid=C050GHEPBTR
590
+ dispose();
591
+ });
585
592
  });
586
593
  });else
587
594
  // we're already in a root so cleanups are handled
package/latest/index.cjs CHANGED
@@ -61,7 +61,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
61
61
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
62
62
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
63
63
  /*! Depict.ai search and product listing SDK */
64
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.7";
64
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.8";
65
65
 
66
66
  /** @jsxImportSource solid-js */
67
67
 
@@ -113,7 +113,7 @@ const $4e04be41243c3d80$export$6daf8749b65a1b77 = cols_at_size => {
113
113
  return $4e04be41243c3d80$var$transform_elements(sorted_cols_at_size);
114
114
  };
115
115
  function $fc23d7668ae0011d$export$a2cc176055f8f08() {
116
- const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
116
+ const text = "Please try setting `columnsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
117
117
  return (0, $gVhhF$solidjsweb.isServer) ? {
118
118
  t: `<!-- ${text} -->`
119
119
  } : document.createComment(text);
@@ -600,7 +600,13 @@ function $95837413165cc2df$export$23fca46f3143581f(component, error_message) {
600
600
  return component_in_error_boundary(elements => {
601
601
  const have_multiple = Array.isArray(elements);
602
602
  if (have_multiple ? !elements?.length : !elements) return;
603
- (0, $gVhhF$depictaiutilishared.observer).onremoved(have_multiple ? elements[0] : elements, dispose);
603
+ (0, $gVhhF$depictaiutilishared.observer).onremoved(have_multiple ? elements[0] : elements, ({
604
+ element: element
605
+ }) => {
606
+ if (document.documentElement.contains(element)) return; // If element has instantly been re-inserted, don't dispose
607
+ // See https://depictaiworkspace.slack.com/archives/C050GHEPBTR/p1695809102791259?thread_ts=1695106805.459729&cid=C050GHEPBTR
608
+ dispose();
609
+ });
604
610
  });
605
611
  });else
606
612
  // we're already in a root so cleanups are handled
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.7";
10
+ export const version = "2.0.8";
11
11
  /**
12
12
  * Returns accessor with the size of the provided element, including padding and border (I think)
13
13
  */
package/latest/index.js CHANGED
@@ -5,7 +5,7 @@ import { template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, i
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.7";
8
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.8";
9
9
 
10
10
  /** @jsxImportSource solid-js */
11
11
 
@@ -57,7 +57,7 @@ const $b5cccc8ee7d24677$export$6daf8749b65a1b77 = cols_at_size => {
57
57
  return $b5cccc8ee7d24677$var$transform_elements(sorted_cols_at_size);
58
58
  };
59
59
  function $a458486f22b22f63$export$a2cc176055f8f08() {
60
- const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
60
+ const text = "Please try setting `columnsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
61
61
  return (0, $9HbP8$isServer) ? {
62
62
  t: `<!-- ${text} -->`
63
63
  } : document.createComment(text);
@@ -544,7 +544,13 @@ function $16b52438165aafe2$export$23fca46f3143581f(component, error_message) {
544
544
  return component_in_error_boundary(elements => {
545
545
  const have_multiple = Array.isArray(elements);
546
546
  if (have_multiple ? !elements?.length : !elements) return;
547
- (0, $9HbP8$observer).onremoved(have_multiple ? elements[0] : elements, dispose);
547
+ (0, $9HbP8$observer).onremoved(have_multiple ? elements[0] : elements, ({
548
+ element: element
549
+ }) => {
550
+ if (document.documentElement.contains(element)) return; // If element has instantly been re-inserted, don't dispose
551
+ // See https://depictaiworkspace.slack.com/archives/C050GHEPBTR/p1695809102791259?thread_ts=1695106805.459729&cid=C050GHEPBTR
552
+ dispose();
553
+ });
548
554
  });
549
555
  });else
550
556
  // we're already in a root so cleanups are handled
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
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",
@@ -67,7 +67,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
67
67
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
68
68
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
69
69
  /*! Depict.ai search and product listing SDK */
70
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.7";
70
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.8";
71
71
 
72
72
  /** @jsxImportSource solid-js */
73
73
 
@@ -124,7 +124,7 @@ const $5401a6698b0c0658$export$6daf8749b65a1b77 = cols_at_size => {
124
124
  return $5401a6698b0c0658$var$transform_elements(sorted_cols_at_size);
125
125
  };
126
126
  function $8edd3cf30d1fd8b4$export$a2cc176055f8f08() {
127
- const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
127
+ const text = "Please try setting `columnsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
128
128
  return (0, $3hooq$solidjsweb.isServer) ? {
129
129
  t: "<!-- ".concat(text, " -->")
130
130
  } : document.createComment(text);
@@ -581,7 +581,14 @@ function $d05611ff6b8c8357$export$23fca46f3143581f(component, error_message) {
581
581
  return component_in_error_boundary(elements => {
582
582
  const have_multiple = Array.isArray(elements);
583
583
  if (have_multiple ? !(elements !== null && elements !== void 0 && elements.length) : !elements) return;
584
- (0, $3hooq$depictaiutilishared.observer).onremoved(have_multiple ? elements[0] : elements, dispose);
584
+ (0, $3hooq$depictaiutilishared.observer).onremoved(have_multiple ? elements[0] : elements, _ref => {
585
+ let {
586
+ element: element
587
+ } = _ref;
588
+ if (document.documentElement.contains(element)) return; // If element has instantly been re-inserted, don't dispose
589
+ // See https://depictaiworkspace.slack.com/archives/C050GHEPBTR/p1695809102791259?thread_ts=1695106805.459729&cid=C050GHEPBTR
590
+ dispose();
591
+ });
585
592
  });
586
593
  });else
587
594
  // we're already in a root so cleanups are handled
@@ -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.7";
10
+ export const version = "2.0.8";
11
11
  /**
12
12
  * Returns accessor with the size of the provided element, including padding and border (I think)
13
13
  */
@@ -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.7";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.8";
12
12
 
13
13
  /** @jsxImportSource solid-js */
14
14
 
@@ -65,7 +65,7 @@ const $a9c7ba6087881ac2$export$6daf8749b65a1b77 = cols_at_size => {
65
65
  return $a9c7ba6087881ac2$var$transform_elements(sorted_cols_at_size);
66
66
  };
67
67
  function $ca55612a53dbbdd2$export$a2cc176055f8f08() {
68
- const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
68
+ const text = "Please try setting `columnsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
69
69
  return (0, $b8hua$isServer) ? {
70
70
  t: "<!-- ".concat(text, " -->")
71
71
  } : document.createComment(text);
@@ -522,7 +522,14 @@ function $83e8cf2c0b87a58a$export$23fca46f3143581f(component, error_message) {
522
522
  return component_in_error_boundary(elements => {
523
523
  const have_multiple = Array.isArray(elements);
524
524
  if (have_multiple ? !(elements !== null && elements !== void 0 && elements.length) : !elements) return;
525
- (0, $b8hua$observer).onremoved(have_multiple ? elements[0] : elements, dispose);
525
+ (0, $b8hua$observer).onremoved(have_multiple ? elements[0] : elements, _ref => {
526
+ let {
527
+ element: element
528
+ } = _ref;
529
+ if (document.documentElement.contains(element)) return; // If element has instantly been re-inserted, don't dispose
530
+ // See https://depictaiworkspace.slack.com/archives/C050GHEPBTR/p1695809102791259?thread_ts=1695106805.459729&cid=C050GHEPBTR
531
+ dispose();
532
+ });
526
533
  });
527
534
  });else
528
535
  // we're already in a root so cleanups are handled
@@ -61,7 +61,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
61
61
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
62
62
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
63
63
  /*! Depict.ai search and product listing SDK */
64
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.7";
64
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.8";
65
65
 
66
66
  /** @jsxImportSource solid-js */
67
67
 
@@ -113,7 +113,7 @@ const $4e04be41243c3d80$export$6daf8749b65a1b77 = cols_at_size => {
113
113
  return $4e04be41243c3d80$var$transform_elements(sorted_cols_at_size);
114
114
  };
115
115
  function $fc23d7668ae0011d$export$a2cc176055f8f08() {
116
- const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
116
+ const text = "Please try setting `columnsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
117
117
  return (0, $5vyXB$solidjsweb.isServer) ? {
118
118
  t: `<!-- ${text} -->`
119
119
  } : document.createComment(text);
@@ -550,7 +550,13 @@ function $95837413165cc2df$export$23fca46f3143581f(component, error_message) {
550
550
  return component_in_error_boundary(elements => {
551
551
  const have_multiple = Array.isArray(elements);
552
552
  if (have_multiple ? !elements?.length : !elements) return;
553
- (0, $5vyXB$depictaiutilishared.observer).onremoved(have_multiple ? elements[0] : elements, dispose);
553
+ (0, $5vyXB$depictaiutilishared.observer).onremoved(have_multiple ? elements[0] : elements, ({
554
+ element: element
555
+ }) => {
556
+ if (document.documentElement.contains(element)) return; // If element has instantly been re-inserted, don't dispose
557
+ // See https://depictaiworkspace.slack.com/archives/C050GHEPBTR/p1695809102791259?thread_ts=1695106805.459729&cid=C050GHEPBTR
558
+ dispose();
559
+ });
554
560
  });
555
561
  });else
556
562
  // we're already in a root so cleanups are handled
@@ -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.7";
10
+ export const version = "2.0.8";
11
11
  /**
12
12
  * Returns accessor with the size of the provided element, including padding and border (I think)
13
13
  */
@@ -5,7 +5,7 @@ import { ssr as $i7OB2$ssr, ssrHydrationKey as $i7OB2$ssrHydrationKey, escape as
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.7";
8
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.8";
9
9
 
10
10
  /** @jsxImportSource solid-js */
11
11
 
@@ -57,7 +57,7 @@ const $b5cccc8ee7d24677$export$6daf8749b65a1b77 = cols_at_size => {
57
57
  return $b5cccc8ee7d24677$var$transform_elements(sorted_cols_at_size);
58
58
  };
59
59
  function $a458486f22b22f63$export$a2cc176055f8f08() {
60
- const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
60
+ const text = "Please try setting `columnsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
61
61
  return (0, $i7OB2$isServer) ? {
62
62
  t: `<!-- ${text} -->`
63
63
  } : document.createComment(text);
@@ -494,7 +494,13 @@ function $16b52438165aafe2$export$23fca46f3143581f(component, error_message) {
494
494
  return component_in_error_boundary(elements => {
495
495
  const have_multiple = Array.isArray(elements);
496
496
  if (have_multiple ? !elements?.length : !elements) return;
497
- (0, $i7OB2$observer).onremoved(have_multiple ? elements[0] : elements, dispose);
497
+ (0, $i7OB2$observer).onremoved(have_multiple ? elements[0] : elements, ({
498
+ element: element
499
+ }) => {
500
+ if (document.documentElement.contains(element)) return; // If element has instantly been re-inserted, don't dispose
501
+ // See https://depictaiworkspace.slack.com/archives/C050GHEPBTR/p1695809102791259?thread_ts=1695106805.459729&cid=C050GHEPBTR
502
+ dispose();
503
+ });
498
504
  });
499
505
  });else
500
506
  // we're already in a root so cleanups are handled