@depict-ai/ui 4.0.27 → 4.0.28

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
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
98
98
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
99
99
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
100
100
  /*! Depict.ai search and product listing SDK */
101
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.27";
101
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.28";
102
102
  const $cfcd56242923775d$export$3064e1e8c6513da3 = new Set();
103
103
  let $cfcd56242923775d$var$has_ran = false;
104
104
  function $cfcd56242923775d$export$5162a71f252e6122() {
@@ -12445,6 +12445,9 @@ class $9cbefc32b9dab36d$export$f34314aa9505732e {
12445
12445
  return $parcel$interopDefault($52FdA$babelruntimehelpersclassPrivateFieldGet)(this, $9cbefc32b9dab36d$var$_localization_signal)[0]();
12446
12446
  }
12447
12447
  set localization(locale_obj) {
12448
+ if (typeof locale_obj === "string")
12449
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
12450
+ throw new Error("locale must be an object, see the TypeScript definitions");
12448
12451
  $parcel$interopDefault($52FdA$babelruntimehelpersclassPrivateFieldGet)(this, $9cbefc32b9dab36d$var$_localization_signal)[1](locale_obj);
12449
12452
  }
12450
12453
  get listing_query() {
@@ -14619,6 +14622,9 @@ class $ddd39c5f36f49703$export$ac6237957a15b3f0 {
14619
14622
  return $parcel$interopDefault($52FdA$babelruntimehelpersclassPrivateFieldGet)(this, $ddd39c5f36f49703$var$_locale_signal)[0]();
14620
14623
  }
14621
14624
  set localization(locale_obj) {
14625
+ if (typeof locale_obj === "string")
14626
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
14627
+ throw new Error("locale must be an object, see the TypeScript definitions");
14622
14628
  $parcel$interopDefault($52FdA$babelruntimehelpersclassPrivateFieldGet)(this, $ddd39c5f36f49703$var$_locale_signal)[1](locale_obj);
14623
14629
  }
14624
14630
  get modal_open() {
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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.27";
13
+ export const version = "4.0.28";
14
14
  export const prefixes_to_preserve_in_history_dot_state: Set<string>;
15
15
  /**
16
16
  * Prevent, usually SPAs, from deleting our stuff from history.state when they call history.pushState with a new object they have constructed. This will only run once no matter how often it's called.
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.0.27";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.28";
14
14
  const $68e6625c8d51f847$export$3064e1e8c6513da3 = new Set();
15
15
  let $68e6625c8d51f847$var$has_ran = false;
16
16
  function $68e6625c8d51f847$export$5162a71f252e6122() {
@@ -12357,6 +12357,9 @@ class $f5f54892fd0c7d9f$export$f34314aa9505732e {
12357
12357
  return $8tj43$babelruntimehelpersclassPrivateFieldGet(this, $f5f54892fd0c7d9f$var$_localization_signal)[0]();
12358
12358
  }
12359
12359
  set localization(locale_obj) {
12360
+ if (typeof locale_obj === "string")
12361
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
12362
+ throw new Error("locale must be an object, see the TypeScript definitions");
12360
12363
  $8tj43$babelruntimehelpersclassPrivateFieldGet(this, $f5f54892fd0c7d9f$var$_localization_signal)[1](locale_obj);
12361
12364
  }
12362
12365
  get listing_query() {
@@ -14531,6 +14534,9 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
14531
14534
  return $8tj43$babelruntimehelpersclassPrivateFieldGet(this, $eb064bc3350276c1$var$_locale_signal)[0]();
14532
14535
  }
14533
14536
  set localization(locale_obj) {
14537
+ if (typeof locale_obj === "string")
14538
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
14539
+ throw new Error("locale must be an object, see the TypeScript definitions");
14534
14540
  $8tj43$babelruntimehelpersclassPrivateFieldGet(this, $eb064bc3350276c1$var$_locale_signal)[1](locale_obj);
14535
14541
  }
14536
14542
  get modal_open() {
package/latest/index.cjs CHANGED
@@ -92,7 +92,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
92
92
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
93
93
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
94
94
  /*! Depict.ai search and product listing SDK */
95
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.27";
95
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.28";
96
96
  const $d84fe647b84b5dc5$export$3064e1e8c6513da3 = new Set();
97
97
  let $d84fe647b84b5dc5$var$has_ran = false;
98
98
  function $d84fe647b84b5dc5$export$5162a71f252e6122() {
@@ -11724,6 +11724,9 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
11724
11724
  return this.#localization_signal[0]();
11725
11725
  }
11726
11726
  set localization(locale_obj) {
11727
+ if (typeof locale_obj === "string")
11728
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
11729
+ throw new Error("locale must be an object, see the TypeScript definitions");
11727
11730
  this.#localization_signal[1](locale_obj);
11728
11731
  }
11729
11732
  get listing_query() {
@@ -13703,6 +13706,9 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
13703
13706
  return this.#locale_signal[0]();
13704
13707
  }
13705
13708
  set localization(locale_obj) {
13709
+ if (typeof locale_obj === "string")
13710
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
13711
+ throw new Error("locale must be an object, see the TypeScript definitions");
13706
13712
  this.#locale_signal[1](locale_obj);
13707
13713
  }
13708
13714
  get modal_open() {
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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.27";
13
+ export const version = "4.0.28";
14
14
  export const prefixes_to_preserve_in_history_dot_state: Set<string>;
15
15
  /**
16
16
  * Prevent, usually SPAs, from deleting our stuff from history.state when they call history.pushState with a new object they have constructed. This will only run once no matter how often it's called.
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.0.27";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.28";
11
11
  const $90980bd87c9960f9$export$3064e1e8c6513da3 = new Set();
12
12
  let $90980bd87c9960f9$var$has_ran = false;
13
13
  function $90980bd87c9960f9$export$5162a71f252e6122() {
@@ -11639,6 +11639,9 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
11639
11639
  return this.#localization_signal[0]();
11640
11640
  }
11641
11641
  set localization(locale_obj) {
11642
+ if (typeof locale_obj === "string")
11643
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
11644
+ throw new Error("locale must be an object, see the TypeScript definitions");
11642
11645
  this.#localization_signal[1](locale_obj);
11643
11646
  }
11644
11647
  get listing_query() {
@@ -13618,6 +13621,9 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
13618
13621
  return this.#locale_signal[0]();
13619
13622
  }
13620
13623
  set localization(locale_obj) {
13624
+ if (typeof locale_obj === "string")
13625
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
13626
+ throw new Error("locale must be an object, see the TypeScript definitions");
13621
13627
  this.#locale_signal[1](locale_obj);
13622
13628
  }
13623
13629
  get modal_open() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.0.27",
3
+ "version": "4.0.28",
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",
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
98
98
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
99
99
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
100
100
  /*! Depict.ai search and product listing SDK */
101
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.27";
101
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.28";
102
102
  const $cfcd56242923775d$export$3064e1e8c6513da3 = new Set();
103
103
  let $cfcd56242923775d$var$has_ran = false;
104
104
  function $cfcd56242923775d$export$5162a71f252e6122() {
@@ -10137,6 +10137,9 @@ class $9cbefc32b9dab36d$export$f34314aa9505732e {
10137
10137
  return $parcel$interopDefault($3hooq$babelruntimehelpersclassPrivateFieldGet)(this, $9cbefc32b9dab36d$var$_localization_signal)[0]();
10138
10138
  }
10139
10139
  set localization(locale_obj) {
10140
+ if (typeof locale_obj === "string")
10141
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
10142
+ throw new Error("locale must be an object, see the TypeScript definitions");
10140
10143
  $parcel$interopDefault($3hooq$babelruntimehelpersclassPrivateFieldGet)(this, $9cbefc32b9dab36d$var$_localization_signal)[1](locale_obj);
10141
10144
  }
10142
10145
  get listing_query() {
@@ -12151,6 +12154,9 @@ class $ddd39c5f36f49703$export$ac6237957a15b3f0 {
12151
12154
  return $parcel$interopDefault($3hooq$babelruntimehelpersclassPrivateFieldGet)(this, $ddd39c5f36f49703$var$_locale_signal)[0]();
12152
12155
  }
12153
12156
  set localization(locale_obj) {
12157
+ if (typeof locale_obj === "string")
12158
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
12159
+ throw new Error("locale must be an object, see the TypeScript definitions");
12154
12160
  $parcel$interopDefault($3hooq$babelruntimehelpersclassPrivateFieldGet)(this, $ddd39c5f36f49703$var$_locale_signal)[1](locale_obj);
12155
12161
  }
12156
12162
  get modal_open() {
@@ -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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.27";
13
+ export const version = "4.0.28";
14
14
  export const prefixes_to_preserve_in_history_dot_state: Set<string>;
15
15
  /**
16
16
  * Prevent, usually SPAs, from deleting our stuff from history.state when they call history.pushState with a new object they have constructed. This will only run once no matter how often it's called.
@@ -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.0.27";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.28";
14
14
  const $68e6625c8d51f847$export$3064e1e8c6513da3 = new Set();
15
15
  let $68e6625c8d51f847$var$has_ran = false;
16
16
  function $68e6625c8d51f847$export$5162a71f252e6122() {
@@ -10049,6 +10049,9 @@ class $f5f54892fd0c7d9f$export$f34314aa9505732e {
10049
10049
  return $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $f5f54892fd0c7d9f$var$_localization_signal)[0]();
10050
10050
  }
10051
10051
  set localization(locale_obj) {
10052
+ if (typeof locale_obj === "string")
10053
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
10054
+ throw new Error("locale must be an object, see the TypeScript definitions");
10052
10055
  $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $f5f54892fd0c7d9f$var$_localization_signal)[1](locale_obj);
10053
10056
  }
10054
10057
  get listing_query() {
@@ -12063,6 +12066,9 @@ class $eb064bc3350276c1$export$ac6237957a15b3f0 {
12063
12066
  return $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $eb064bc3350276c1$var$_locale_signal)[0]();
12064
12067
  }
12065
12068
  set localization(locale_obj) {
12069
+ if (typeof locale_obj === "string")
12070
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
12071
+ throw new Error("locale must be an object, see the TypeScript definitions");
12066
12072
  $b8hua$babelruntimehelpersclassPrivateFieldGet(this, $eb064bc3350276c1$var$_locale_signal)[1](locale_obj);
12067
12073
  }
12068
12074
  get modal_open() {
@@ -92,7 +92,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
92
92
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
93
93
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
94
94
  /*! Depict.ai search and product listing SDK */
95
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.27";
95
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.28";
96
96
  const $d84fe647b84b5dc5$export$3064e1e8c6513da3 = new Set();
97
97
  let $d84fe647b84b5dc5$var$has_ran = false;
98
98
  function $d84fe647b84b5dc5$export$5162a71f252e6122() {
@@ -9486,6 +9486,9 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
9486
9486
  return this.#localization_signal[0]();
9487
9487
  }
9488
9488
  set localization(locale_obj) {
9489
+ if (typeof locale_obj === "string")
9490
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
9491
+ throw new Error("locale must be an object, see the TypeScript definitions");
9489
9492
  this.#localization_signal[1](locale_obj);
9490
9493
  }
9491
9494
  get listing_query() {
@@ -11307,6 +11310,9 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
11307
11310
  return this.#locale_signal[0]();
11308
11311
  }
11309
11312
  set localization(locale_obj) {
11313
+ if (typeof locale_obj === "string")
11314
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
11315
+ throw new Error("locale must be an object, see the TypeScript definitions");
11310
11316
  this.#locale_signal[1](locale_obj);
11311
11317
  }
11312
11318
  get modal_open() {
@@ -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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.0.27";
13
+ export const version = "4.0.28";
14
14
  export const prefixes_to_preserve_in_history_dot_state: Set<string>;
15
15
  /**
16
16
  * Prevent, usually SPAs, from deleting our stuff from history.state when they call history.pushState with a new object they have constructed. This will only run once no matter how often it's called.
@@ -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.0.27";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.28";
11
11
  const $90980bd87c9960f9$export$3064e1e8c6513da3 = new Set();
12
12
  let $90980bd87c9960f9$var$has_ran = false;
13
13
  function $90980bd87c9960f9$export$5162a71f252e6122() {
@@ -9401,6 +9401,9 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
9401
9401
  return this.#localization_signal[0]();
9402
9402
  }
9403
9403
  set localization(locale_obj) {
9404
+ if (typeof locale_obj === "string")
9405
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
9406
+ throw new Error("locale must be an object, see the TypeScript definitions");
9404
9407
  this.#localization_signal[1](locale_obj);
9405
9408
  }
9406
9409
  get listing_query() {
@@ -11222,6 +11225,9 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
11222
11225
  return this.#locale_signal[0]();
11223
11226
  }
11224
11227
  set localization(locale_obj) {
11228
+ if (typeof locale_obj === "string")
11229
+ // Prevent people not using typescript from accidentally passing a string instead of an object, see https://depictaiworkspace.slack.com/archives/C04RF3KTK0A/p1707211551951239
11230
+ throw new Error("locale must be an object, see the TypeScript definitions");
11225
11231
  this.#locale_signal[1](locale_obj);
11226
11232
  }
11227
11233
  get modal_open() {