@depict-ai/ui 2.0.25 → 2.0.26

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
@@ -75,7 +75,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
75
75
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
76
76
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
77
77
  /*! Depict.ai search and product listing SDK */
78
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.25";
78
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.26";
79
79
  const $a68b73fd7ba0853f$var$fallback_operator = "in";
80
80
  const $a68b73fd7ba0853f$var$fallback_token = "";
81
81
  const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
@@ -4157,11 +4157,14 @@ function $cfcd56242923775d$var$proxy_push_state(function_name, thing) {
4157
4157
  thing[function_name] = new Proxy(thing[function_name], {
4158
4158
  apply(target, this_arg, arg_list) {
4159
4159
  try {
4160
- if (typeof arg_list[0] == "object") {
4160
+ const old_state = history.state;
4161
+ if (typeof old_state == "object" && old_state !== null) {
4162
+ var _arg_list$;
4163
+ // This effectively disallows the user from passing in a string, number, null or undefined
4164
+ const intended_new_value_as_obj = typeof arg_list[0] === "object" ? (_arg_list$ = arg_list[0]) !== null && _arg_list$ !== void 0 ? _arg_list$ : {} : {};
4161
4165
  const cloned_object = {
4162
- ...arg_list[0]
4166
+ ...intended_new_value_as_obj
4163
4167
  };
4164
- const old_state = history.state;
4165
4168
  for (const key in old_state) {
4166
4169
  if (!$cfcd56242923775d$var$starts_with_any_prefix(key)) continue;
4167
4170
  if (!(key in cloned_object)) cloned_object[key] = old_state[key];
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.25";
10
+ export const version = "2.0.26";
11
11
  export type SDKGridSpacing = string | {
12
12
  horizontal: string;
13
13
  vertical: string;
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.25";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.26";
12
12
  const $2855bffe06ef7a03$var$fallback_operator = "in";
13
13
  const $2855bffe06ef7a03$var$fallback_token = "";
14
14
  const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
@@ -4090,11 +4090,14 @@ function $68e6625c8d51f847$var$proxy_push_state(function_name, thing) {
4090
4090
  thing[function_name] = new Proxy(thing[function_name], {
4091
4091
  apply(target, this_arg, arg_list) {
4092
4092
  try {
4093
- if (typeof arg_list[0] == "object") {
4093
+ const old_state = history.state;
4094
+ if (typeof old_state == "object" && old_state !== null) {
4095
+ var _arg_list$;
4096
+ // This effectively disallows the user from passing in a string, number, null or undefined
4097
+ const intended_new_value_as_obj = typeof arg_list[0] === "object" ? (_arg_list$ = arg_list[0]) !== null && _arg_list$ !== void 0 ? _arg_list$ : {} : {};
4094
4098
  const cloned_object = {
4095
- ...arg_list[0]
4099
+ ...intended_new_value_as_obj
4096
4100
  };
4097
- const old_state = history.state;
4098
4101
  for (const key in old_state) {
4099
4102
  if (!$68e6625c8d51f847$var$starts_with_any_prefix(key)) continue;
4100
4103
  if (!(key in cloned_object)) cloned_object[key] = old_state[key];
package/latest/index.cjs CHANGED
@@ -69,7 +69,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
69
69
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
70
70
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
71
71
  /*! Depict.ai search and product listing SDK */
72
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.25";
72
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.26";
73
73
  const $1ab22f2cd39b3061$var$fallback_operator = "in";
74
74
  const $1ab22f2cd39b3061$var$fallback_token = "";
75
75
  const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
@@ -3908,11 +3908,13 @@ function $d84fe647b84b5dc5$var$proxy_push_state(function_name, thing) {
3908
3908
  thing[function_name] = new Proxy(thing[function_name], {
3909
3909
  apply(target, this_arg, arg_list) {
3910
3910
  try {
3911
- if (typeof arg_list[0] == "object") {
3911
+ const old_state = history.state;
3912
+ if (typeof old_state == "object" && old_state !== null) {
3913
+ // This effectively disallows the user from passing in a string, number, null or undefined
3914
+ const intended_new_value_as_obj = typeof arg_list[0] === "object" ? arg_list[0] ?? {} : {};
3912
3915
  const cloned_object = {
3913
- ...arg_list[0]
3916
+ ...intended_new_value_as_obj
3914
3917
  };
3915
- const old_state = history.state;
3916
3918
  for (const key in old_state) {
3917
3919
  if (!$d84fe647b84b5dc5$var$starts_with_any_prefix(key)) continue;
3918
3920
  if (!(key in cloned_object)) cloned_object[key] = old_state[key];
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.25";
10
+ export const version = "2.0.26";
11
11
  export type SDKGridSpacing = string | {
12
12
  horizontal: string;
13
13
  vertical: string;
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.25";
8
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.26";
9
9
  const $4147651646da990a$var$fallback_operator = "in";
10
10
  const $4147651646da990a$var$fallback_token = "";
11
11
  const $4147651646da990a$var$legacy_filter_prefix = "filter_";
@@ -3844,11 +3844,13 @@ function $90980bd87c9960f9$var$proxy_push_state(function_name, thing) {
3844
3844
  thing[function_name] = new Proxy(thing[function_name], {
3845
3845
  apply(target, this_arg, arg_list) {
3846
3846
  try {
3847
- if (typeof arg_list[0] == "object") {
3847
+ const old_state = history.state;
3848
+ if (typeof old_state == "object" && old_state !== null) {
3849
+ // This effectively disallows the user from passing in a string, number, null or undefined
3850
+ const intended_new_value_as_obj = typeof arg_list[0] === "object" ? arg_list[0] ?? {} : {};
3848
3851
  const cloned_object = {
3849
- ...arg_list[0]
3852
+ ...intended_new_value_as_obj
3850
3853
  };
3851
- const old_state = history.state;
3852
3854
  for (const key in old_state) {
3853
3855
  if (!$90980bd87c9960f9$var$starts_with_any_prefix(key)) continue;
3854
3856
  if (!(key in cloned_object)) cloned_object[key] = old_state[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "2.0.25",
3
+ "version": "2.0.26",
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",
@@ -75,7 +75,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
75
75
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
76
76
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
77
77
  /*! Depict.ai search and product listing SDK */
78
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.25";
78
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.26";
79
79
  const $a68b73fd7ba0853f$var$fallback_operator = "in";
80
80
  const $a68b73fd7ba0853f$var$fallback_token = "";
81
81
  const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
@@ -3282,11 +3282,14 @@ function $cfcd56242923775d$var$proxy_push_state(function_name, thing) {
3282
3282
  thing[function_name] = new Proxy(thing[function_name], {
3283
3283
  apply(target, this_arg, arg_list) {
3284
3284
  try {
3285
- if (typeof arg_list[0] == "object") {
3285
+ const old_state = history.state;
3286
+ if (typeof old_state == "object" && old_state !== null) {
3287
+ var _arg_list$;
3288
+ // This effectively disallows the user from passing in a string, number, null or undefined
3289
+ const intended_new_value_as_obj = typeof arg_list[0] === "object" ? (_arg_list$ = arg_list[0]) !== null && _arg_list$ !== void 0 ? _arg_list$ : {} : {};
3286
3290
  const cloned_object = {
3287
- ...arg_list[0]
3291
+ ...intended_new_value_as_obj
3288
3292
  };
3289
- const old_state = history.state;
3290
3293
  for (const key in old_state) {
3291
3294
  if (!$cfcd56242923775d$var$starts_with_any_prefix(key)) continue;
3292
3295
  if (!(key in cloned_object)) cloned_object[key] = old_state[key];
@@ -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.25";
10
+ export const version = "2.0.26";
11
11
  export type SDKGridSpacing = string | {
12
12
  horizontal: string;
13
13
  vertical: string;
@@ -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.25";
11
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.26";
12
12
  const $2855bffe06ef7a03$var$fallback_operator = "in";
13
13
  const $2855bffe06ef7a03$var$fallback_token = "";
14
14
  const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
@@ -3215,11 +3215,14 @@ function $68e6625c8d51f847$var$proxy_push_state(function_name, thing) {
3215
3215
  thing[function_name] = new Proxy(thing[function_name], {
3216
3216
  apply(target, this_arg, arg_list) {
3217
3217
  try {
3218
- if (typeof arg_list[0] == "object") {
3218
+ const old_state = history.state;
3219
+ if (typeof old_state == "object" && old_state !== null) {
3220
+ var _arg_list$;
3221
+ // This effectively disallows the user from passing in a string, number, null or undefined
3222
+ const intended_new_value_as_obj = typeof arg_list[0] === "object" ? (_arg_list$ = arg_list[0]) !== null && _arg_list$ !== void 0 ? _arg_list$ : {} : {};
3219
3223
  const cloned_object = {
3220
- ...arg_list[0]
3224
+ ...intended_new_value_as_obj
3221
3225
  };
3222
- const old_state = history.state;
3223
3226
  for (const key in old_state) {
3224
3227
  if (!$68e6625c8d51f847$var$starts_with_any_prefix(key)) continue;
3225
3228
  if (!(key in cloned_object)) cloned_object[key] = old_state[key];
@@ -69,7 +69,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
69
69
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
70
70
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
71
71
  /*! Depict.ai search and product listing SDK */
72
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.25";
72
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.26";
73
73
  const $1ab22f2cd39b3061$var$fallback_operator = "in";
74
74
  const $1ab22f2cd39b3061$var$fallback_token = "";
75
75
  const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
@@ -3070,11 +3070,13 @@ function $d84fe647b84b5dc5$var$proxy_push_state(function_name, thing) {
3070
3070
  thing[function_name] = new Proxy(thing[function_name], {
3071
3071
  apply(target, this_arg, arg_list) {
3072
3072
  try {
3073
- if (typeof arg_list[0] == "object") {
3073
+ const old_state = history.state;
3074
+ if (typeof old_state == "object" && old_state !== null) {
3075
+ // This effectively disallows the user from passing in a string, number, null or undefined
3076
+ const intended_new_value_as_obj = typeof arg_list[0] === "object" ? arg_list[0] ?? {} : {};
3074
3077
  const cloned_object = {
3075
- ...arg_list[0]
3078
+ ...intended_new_value_as_obj
3076
3079
  };
3077
- const old_state = history.state;
3078
3080
  for (const key in old_state) {
3079
3081
  if (!$d84fe647b84b5dc5$var$starts_with_any_prefix(key)) continue;
3080
3082
  if (!(key in cloned_object)) cloned_object[key] = old_state[key];
@@ -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.25";
10
+ export const version = "2.0.26";
11
11
  export type SDKGridSpacing = string | {
12
12
  horizontal: string;
13
13
  vertical: string;
@@ -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.25";
8
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.26";
9
9
  const $4147651646da990a$var$fallback_operator = "in";
10
10
  const $4147651646da990a$var$fallback_token = "";
11
11
  const $4147651646da990a$var$legacy_filter_prefix = "filter_";
@@ -3006,11 +3006,13 @@ function $90980bd87c9960f9$var$proxy_push_state(function_name, thing) {
3006
3006
  thing[function_name] = new Proxy(thing[function_name], {
3007
3007
  apply(target, this_arg, arg_list) {
3008
3008
  try {
3009
- if (typeof arg_list[0] == "object") {
3009
+ const old_state = history.state;
3010
+ if (typeof old_state == "object" && old_state !== null) {
3011
+ // This effectively disallows the user from passing in a string, number, null or undefined
3012
+ const intended_new_value_as_obj = typeof arg_list[0] === "object" ? arg_list[0] ?? {} : {};
3010
3013
  const cloned_object = {
3011
- ...arg_list[0]
3014
+ ...intended_new_value_as_obj
3012
3015
  };
3013
- const old_state = history.state;
3014
3016
  for (const key in old_state) {
3015
3017
  if (!$90980bd87c9960f9$var$starts_with_any_prefix(key)) continue;
3016
3018
  if (!(key in cloned_object)) cloned_object[key] = old_state[key];