@depict-ai/ui 2.1.10 → 2.1.11

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
@@ -76,7 +76,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
76
76
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
77
77
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
78
78
  /*! Depict.ai search and product listing SDK */
79
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.10";
79
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.11";
80
80
  const $a68b73fd7ba0853f$var$fallback_operator = "in";
81
81
  const $a68b73fd7ba0853f$var$fallback_token = "";
82
82
  const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
@@ -342,12 +342,12 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
342
342
  if (listingContext) listingContext[$858fdcf73148519f$var$onIdleFunctionsSymbol] = newStack;
343
343
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
344
344
  const start = performance.now();
345
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
345
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
346
346
  for (const fn of newStack) {
347
347
  newStack.delete(fn);
348
348
  fn();
349
349
  const timeTaken = performance.now() - start;
350
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
350
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
351
351
  // There's still work to be done but no time, so schedule another idle callback
352
352
  processStackWhenIdle();
353
353
  return;
@@ -356,8 +356,8 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
356
356
  // Stack is empty
357
357
  if (listingContext) delete listingContext[$858fdcf73148519f$var$onIdleFunctionsSymbol];
358
358
  }, {
359
- timeout: 5000
360
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
359
+ timeout: 15000
360
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
361
361
  );
362
362
 
363
363
  processStackWhenIdle();
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 { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
10
- export const version = "2.1.10";
10
+ export const version = "2.1.11";
11
11
  /**
12
12
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
13
13
  */
package/ES10/index.js CHANGED
@@ -9,7 +9,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
9
9
  /*! Depict.ai search and product listing SDK */
10
10
  import { register_es_version } from "../multi_import_deduplicator.mjs";
11
11
  register_es_version("ui", "ES10");
12
- const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.10";
12
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.11";
13
13
  const $2855bffe06ef7a03$var$fallback_operator = "in";
14
14
  const $2855bffe06ef7a03$var$fallback_token = "";
15
15
  const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
@@ -275,12 +275,12 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
275
275
  if (listingContext) listingContext[$56047603f9d212b6$var$onIdleFunctionsSymbol] = newStack;
276
276
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
277
277
  const start = performance.now();
278
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
278
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
279
279
  for (const fn of newStack) {
280
280
  newStack.delete(fn);
281
281
  fn();
282
282
  const timeTaken = performance.now() - start;
283
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
283
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
284
284
  // There's still work to be done but no time, so schedule another idle callback
285
285
  processStackWhenIdle();
286
286
  return;
@@ -289,8 +289,8 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
289
289
  // Stack is empty
290
290
  if (listingContext) delete listingContext[$56047603f9d212b6$var$onIdleFunctionsSymbol];
291
291
  }, {
292
- timeout: 5000
293
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
292
+ timeout: 15000
293
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
294
294
  );
295
295
 
296
296
  processStackWhenIdle();
package/latest/index.cjs CHANGED
@@ -70,7 +70,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
70
70
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
71
71
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
72
72
  /*! Depict.ai search and product listing SDK */
73
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.10";
73
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.11";
74
74
  const $1ab22f2cd39b3061$var$fallback_operator = "in";
75
75
  const $1ab22f2cd39b3061$var$fallback_token = "";
76
76
  const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
@@ -328,12 +328,12 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
328
328
  if (listingContext) listingContext[$19950faaac026e09$var$onIdleFunctionsSymbol] = newStack;
329
329
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
330
330
  const start = performance.now();
331
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
331
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
332
332
  for (const fn of newStack) {
333
333
  newStack.delete(fn);
334
334
  fn();
335
335
  const timeTaken = performance.now() - start;
336
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
336
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
337
337
  // There's still work to be done but no time, so schedule another idle callback
338
338
  processStackWhenIdle();
339
339
  return;
@@ -342,8 +342,8 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
342
342
  // Stack is empty
343
343
  if (listingContext) delete listingContext[$19950faaac026e09$var$onIdleFunctionsSymbol];
344
344
  }, {
345
- timeout: 5000
346
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
345
+ timeout: 15000
346
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
347
347
  );
348
348
 
349
349
  processStackWhenIdle();
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 { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
10
- export const version = "2.1.10";
10
+ export const version = "2.1.11";
11
11
  /**
12
12
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
13
13
  */
package/latest/index.js CHANGED
@@ -6,7 +6,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
6
6
  /*! Depict.ai search and product listing SDK */
7
7
  import { register_es_version } from "../multi_import_deduplicator.mjs";
8
8
  register_es_version("ui", "latest");
9
- const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.10";
9
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.11";
10
10
  const $4147651646da990a$var$fallback_operator = "in";
11
11
  const $4147651646da990a$var$fallback_token = "";
12
12
  const $4147651646da990a$var$legacy_filter_prefix = "filter_";
@@ -264,12 +264,12 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
264
264
  if (listingContext) listingContext[$e8ffe11ed01df0fe$var$onIdleFunctionsSymbol] = newStack;
265
265
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
266
266
  const start = performance.now();
267
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
267
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
268
268
  for (const fn of newStack) {
269
269
  newStack.delete(fn);
270
270
  fn();
271
271
  const timeTaken = performance.now() - start;
272
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
272
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
273
273
  // There's still work to be done but no time, so schedule another idle callback
274
274
  processStackWhenIdle();
275
275
  return;
@@ -278,8 +278,8 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
278
278
  // Stack is empty
279
279
  if (listingContext) delete listingContext[$e8ffe11ed01df0fe$var$onIdleFunctionsSymbol];
280
280
  }, {
281
- timeout: 5000
282
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
281
+ timeout: 15000
282
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
283
283
  );
284
284
 
285
285
  processStackWhenIdle();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "2.1.10",
3
+ "version": "2.1.11",
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",
@@ -76,7 +76,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
76
76
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
77
77
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
78
78
  /*! Depict.ai search and product listing SDK */
79
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.10";
79
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.1.11";
80
80
  const $a68b73fd7ba0853f$var$fallback_operator = "in";
81
81
  const $a68b73fd7ba0853f$var$fallback_token = "";
82
82
  const $a68b73fd7ba0853f$var$legacy_filter_prefix = "filter_";
@@ -338,12 +338,12 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
338
338
  if (listingContext) listingContext[$858fdcf73148519f$var$onIdleFunctionsSymbol] = newStack;
339
339
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
340
340
  const start = performance.now();
341
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
341
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
342
342
  for (const fn of newStack) {
343
343
  newStack.delete(fn);
344
344
  fn();
345
345
  const timeTaken = performance.now() - start;
346
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
346
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
347
347
  // There's still work to be done but no time, so schedule another idle callback
348
348
  processStackWhenIdle();
349
349
  return;
@@ -352,8 +352,8 @@ function $858fdcf73148519f$export$6e5611bc7e57e477(props) {
352
352
  // Stack is empty
353
353
  if (listingContext) delete listingContext[$858fdcf73148519f$var$onIdleFunctionsSymbol];
354
354
  }, {
355
- timeout: 5000
356
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
355
+ timeout: 15000
356
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
357
357
  );
358
358
 
359
359
  processStackWhenIdle();
@@ -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 { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
10
- export const version = "2.1.10";
10
+ export const version = "2.1.11";
11
11
  /**
12
12
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
13
13
  */
@@ -9,7 +9,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
9
9
  /*! Depict.ai search and product listing SDK */
10
10
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
11
11
  register_es_version("ui", "ES10");
12
- const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.10";
12
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "2.1.11";
13
13
  const $2855bffe06ef7a03$var$fallback_operator = "in";
14
14
  const $2855bffe06ef7a03$var$fallback_token = "";
15
15
  const $2855bffe06ef7a03$var$legacy_filter_prefix = "filter_";
@@ -271,12 +271,12 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
271
271
  if (listingContext) listingContext[$56047603f9d212b6$var$onIdleFunctionsSymbol] = newStack;
272
272
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
273
273
  const start = performance.now();
274
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
274
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
275
275
  for (const fn of newStack) {
276
276
  newStack.delete(fn);
277
277
  fn();
278
278
  const timeTaken = performance.now() - start;
279
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
279
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
280
280
  // There's still work to be done but no time, so schedule another idle callback
281
281
  processStackWhenIdle();
282
282
  return;
@@ -285,8 +285,8 @@ function $56047603f9d212b6$export$6e5611bc7e57e477(props) {
285
285
  // Stack is empty
286
286
  if (listingContext) delete listingContext[$56047603f9d212b6$var$onIdleFunctionsSymbol];
287
287
  }, {
288
- timeout: 5000
289
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
288
+ timeout: 15000
289
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
290
290
  );
291
291
 
292
292
  processStackWhenIdle();
@@ -70,7 +70,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
70
70
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
71
71
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
72
72
  /*! Depict.ai search and product listing SDK */
73
- const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.10";
73
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "2.1.11";
74
74
  const $1ab22f2cd39b3061$var$fallback_operator = "in";
75
75
  const $1ab22f2cd39b3061$var$fallback_token = "";
76
76
  const $1ab22f2cd39b3061$var$legacy_filter_prefix = "filter_";
@@ -324,12 +324,12 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
324
324
  if (listingContext) listingContext[$19950faaac026e09$var$onIdleFunctionsSymbol] = newStack;
325
325
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
326
326
  const start = performance.now();
327
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
327
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
328
328
  for (const fn of newStack) {
329
329
  newStack.delete(fn);
330
330
  fn();
331
331
  const timeTaken = performance.now() - start;
332
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
332
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
333
333
  // There's still work to be done but no time, so schedule another idle callback
334
334
  processStackWhenIdle();
335
335
  return;
@@ -338,8 +338,8 @@ function $19950faaac026e09$export$6e5611bc7e57e477(props) {
338
338
  // Stack is empty
339
339
  if (listingContext) delete listingContext[$19950faaac026e09$var$onIdleFunctionsSymbol];
340
340
  }, {
341
- timeout: 5000
342
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
341
+ timeout: 15000
342
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
343
343
  );
344
344
 
345
345
  processStackWhenIdle();
@@ -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 { ProductListingRequestV2 } from "@depict-ai/types/api/ProductListingRequestV2";
10
- export const version = "2.1.10";
10
+ export const version = "2.1.11";
11
11
  /**
12
12
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
13
13
  */
@@ -6,7 +6,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
6
6
  /*! Depict.ai search and product listing SDK */
7
7
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
8
8
  register_es_version("ui", "latest");
9
- const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.10";
9
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.1.11";
10
10
  const $4147651646da990a$var$fallback_operator = "in";
11
11
  const $4147651646da990a$var$fallback_token = "";
12
12
  const $4147651646da990a$var$legacy_filter_prefix = "filter_";
@@ -260,12 +260,12 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
260
260
  if (listingContext) listingContext[$e8ffe11ed01df0fe$var$onIdleFunctionsSymbol] = newStack;
261
261
  const processStackWhenIdle = () => requestIdleCallback(deadline => {
262
262
  const start = performance.now();
263
- const quarterDeadlineTime = deadline.timeRemaining() / 4; // observers coming after this take up 2-6x the time so don't use all of it
263
+ const thirdDeadlineTime = deadline.timeRemaining() / 3; // observers coming after this take up 2-3x the time so don't use all of it
264
264
  for (const fn of newStack) {
265
265
  newStack.delete(fn);
266
266
  fn();
267
267
  const timeTaken = performance.now() - start;
268
- if ((!deadline.timeRemaining() || timeTaken > quarterDeadlineTime) && newStack.size) {
268
+ if ((!deadline.timeRemaining() || timeTaken > thirdDeadlineTime) && newStack.size) {
269
269
  // There's still work to be done but no time, so schedule another idle callback
270
270
  processStackWhenIdle();
271
271
  return;
@@ -274,8 +274,8 @@ function $e8ffe11ed01df0fe$export$6e5611bc7e57e477(props) {
274
274
  // Stack is empty
275
275
  if (listingContext) delete listingContext[$e8ffe11ed01df0fe$var$onIdleFunctionsSymbol];
276
276
  }, {
277
- timeout: 5000
278
- } // long timeout (I had 15s), better to not have images than to freeze the browser. But also we don't want to confuse user why no images are loading
277
+ timeout: 15000
278
+ } // long timeout, better to not have images than to freeze the browser. But also we don't want to confuse user why no iamges are loading
279
279
  );
280
280
 
281
281
  processStackWhenIdle();