@depict-ai/ui 4.0.17 → 4.0.18

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
@@ -95,7 +95,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
95
95
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
96
96
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
97
97
  /*! Depict.ai search and product listing SDK */
98
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.17";
98
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.18";
99
99
 
100
100
  /**
101
101
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -10534,7 +10534,8 @@ function $685149df41127abd$export$9bf11afa910f536e(_ref) {
10534
10534
  background = el;
10535
10535
  (0, $52FdA$depictaiutilishared.observer).wait_for_element(el).then($52FdA$depictaiutilishared.catchify(() => {
10536
10536
  set_background_style("transition", "all 200ms ease-in");
10537
- set_background_style("opacity", "1");
10537
+ // For some reason this needs a requestAnimationFrame but the other modal-opening animations don't
10538
+ requestAnimationFrame($52FdA$depictaiutilishared.catchify(() => set_background_style("opacity", "1")));
10538
10539
  }));
10539
10540
  }, _el$2);
10540
10541
  $52FdA$solidjsweb.addEventListener(_el$2, "click", dismiss_modal_, true);
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.17";
13
+ export const version = "4.0.18";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
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.17";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.18";
14
14
 
15
15
  /**
16
16
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -10449,7 +10449,8 @@ function $082c4ed3e22f8d71$export$9bf11afa910f536e(_ref) {
10449
10449
  background = el;
10450
10450
  (0, $8tj43$observer).wait_for_element(el).then($8tj43$catchify(() => {
10451
10451
  set_background_style("transition", "all 200ms ease-in");
10452
- set_background_style("opacity", "1");
10452
+ // For some reason this needs a requestAnimationFrame but the other modal-opening animations don't
10453
+ requestAnimationFrame($8tj43$catchify(() => set_background_style("opacity", "1")));
10453
10454
  }));
10454
10455
  }, _el$2);
10455
10456
  $8tj43$addEventListener(_el$2, "click", dismiss_modal_, true);
package/latest/index.cjs CHANGED
@@ -89,7 +89,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
89
89
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
90
90
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
91
91
  /*! Depict.ai search and product listing SDK */
92
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.17";
92
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.18";
93
93
 
94
94
  /**
95
95
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -9945,7 +9945,8 @@ function $1872ceb56ede7a52$export$9bf11afa910f536e({
9945
9945
  background = el;
9946
9946
  (0, $gVhhF$depictaiutilishared.observer).wait_for_element(el).then($gVhhF$depictaiutilishared.catchify(() => {
9947
9947
  set_background_style("transition", "all 200ms ease-in");
9948
- set_background_style("opacity", "1");
9948
+ // For some reason this needs a requestAnimationFrame but the other modal-opening animations don't
9949
+ requestAnimationFrame($gVhhF$depictaiutilishared.catchify(() => set_background_style("opacity", "1")));
9949
9950
  }));
9950
9951
  }, _el$2);
9951
9952
  $gVhhF$solidjsweb.addEventListener(_el$2, "click", dismiss_modal_, true);
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.17";
13
+ export const version = "4.0.18";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
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.17";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.18";
11
11
 
12
12
  /**
13
13
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -9863,7 +9863,8 @@ function $757dac7f7c6c5241$export$9bf11afa910f536e({
9863
9863
  background = el;
9864
9864
  (0, $9HbP8$observer).wait_for_element(el).then($9HbP8$catchify(() => {
9865
9865
  set_background_style("transition", "all 200ms ease-in");
9866
- set_background_style("opacity", "1");
9866
+ // For some reason this needs a requestAnimationFrame but the other modal-opening animations don't
9867
+ requestAnimationFrame($9HbP8$catchify(() => set_background_style("opacity", "1")));
9867
9868
  }));
9868
9869
  }, _el$2);
9869
9870
  $9HbP8$addEventListener(_el$2, "click", dismiss_modal_, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
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",
@@ -95,7 +95,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
95
95
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
96
96
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
97
97
  /*! Depict.ai search and product listing SDK */
98
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.17";
98
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.18";
99
99
 
100
100
  /**
101
101
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -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.17";
13
+ export const version = "4.0.18";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
@@ -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.17";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.18";
14
14
 
15
15
  /**
16
16
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -89,7 +89,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
89
89
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
90
90
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
91
91
  /*! Depict.ai search and product listing SDK */
92
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.17";
92
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.18";
93
93
 
94
94
  /**
95
95
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
@@ -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.17";
13
+ export const version = "4.0.18";
14
14
  /**
15
15
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
16
16
  */
@@ -1211,7 +1211,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1211
1211
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
1212
1212
  content_blocks_by_row?: ContentBlocksByRow;
1213
1213
  layout?: PossibleLayout;
1214
- }): import("@depict-ai/utilishared/latest").Node_Array;
1214
+ }): import("@depict-ai/utilishared").Node_Array;
1215
1215
  export function BreadCrumbs<T extends Display>({
1216
1216
  depict_category
1217
1217
  }: {
@@ -1351,7 +1351,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1351
1351
  * Open the modal with support for alignment.
1352
1352
  * @returns {void}
1353
1353
  */
1354
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1354
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1355
1355
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1356
1356
  export interface PageReplacer {
1357
1357
  readonly render_: () => Node_Array;
@@ -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.17";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.18";
11
11
 
12
12
  /**
13
13
  * Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal