@depict-ai/ui 4.7.4 → 4.7.6
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 +9 -3
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +10 -4
- package/latest/index.cjs +6 -2
- package/latest/index.d.ts +1 -1
- package/latest/index.js +7 -3
- package/package.json +1 -1
- package/server/ES10/index.cjs +9 -3
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +10 -4
- package/server/latest/index.cjs +6 -2
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +7 -3
package/ES10/index.cjs
CHANGED
|
@@ -104,7 +104,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
104
104
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
105
105
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
106
106
|
/*! Depict.ai search and product listing SDK */
|
|
107
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.
|
|
107
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.6";
|
|
108
108
|
function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
|
|
109
109
|
const {
|
|
110
110
|
collapse: collapse,
|
|
@@ -13774,6 +13774,9 @@ function $a60bc7692ce52705$export$44f738469d5570cf(_ref) {
|
|
|
13774
13774
|
$52FdA$solidjs.onCleanup(() => {
|
|
13775
13775
|
addedToBody.remove();
|
|
13776
13776
|
fakeField.replaceWith(actualField_);
|
|
13777
|
+
setPollAlignment_(true);
|
|
13778
|
+
// Trigger a new alignment to make sure we are using the dimensions from the field being back in the DOM now, fixes https://depictaiworkspace.slack.com/archives/C06LVKNPLP5/p1710862260203749
|
|
13779
|
+
$52FdA$depictaiutilisharedlatest.queueMacroTask(() => setPollAlignment_(false));
|
|
13777
13780
|
});
|
|
13778
13781
|
$7a8e55af4ef13fae$export$181cceed5c91919e(() => {
|
|
13779
13782
|
setInnerWidthReactive(innerWidth);
|
|
@@ -13977,6 +13980,10 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
13977
13980
|
filterModalParent_: filterModalParent_
|
|
13978
13981
|
});
|
|
13979
13982
|
const results_filters = $52FdA$solidjs.createSignal();
|
|
13983
|
+
const shouldActuallyShowInputField = $52FdA$solidjs.createMemo(() => {
|
|
13984
|
+
var _include_input_field_;
|
|
13985
|
+
return (_include_input_field_ = include_input_field_ === null || include_input_field_ === void 0 ? void 0 : include_input_field_()) !== null && _include_input_field_ !== void 0 ? _include_input_field_ : true;
|
|
13986
|
+
}); // default to showing input field
|
|
13980
13987
|
const owner = $52FdA$solidjs.getOwner();
|
|
13981
13988
|
$52FdA$solidjs.onCleanup($52FdA$depictaiutilishared.javascript_media_query("(max-width:600px)", async _ref2 => {
|
|
13982
13989
|
let {
|
|
@@ -14022,8 +14029,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
14022
14029
|
// Hours were wasted in https://github.com/depict-org/depict/pull/137/commits/ff6563a8deb7ba09e181a7a34831fb66997fa8aa and following commits
|
|
14023
14030
|
// Reason it doesn't work is due to the complex alignment switching when the search field gets removed, and even after solving that: that opening a modal with unspecified alignment aligns it to the search field on the search page
|
|
14024
14031
|
add_input_field: {
|
|
14025
|
-
|
|
14026
|
-
const input_field_accessor_value = (_include_input_field_ = include_input_field_ === null || include_input_field_ === void 0 ? void 0 : include_input_field_()) !== null && _include_input_field_ !== void 0 ? _include_input_field_ : true; // default to showing input field
|
|
14032
|
+
const input_field_accessor_value = shouldActuallyShowInputField();
|
|
14027
14033
|
if (!input_field_accessor_value) break add_input_field;
|
|
14028
14034
|
let input_element;
|
|
14029
14035
|
let div_with_field_class;
|
package/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.7.
|
|
14
|
+
export const version = "4.7.6";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
package/ES10/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { add_to_version_info as $8tj43$add_to_version_info, useExpandingContaine
|
|
|
2
2
|
import { createComponent as $8tj43$createComponent, insert as $8tj43$insert, template as $8tj43$template, getNextElement as $8tj43$getNextElement, mergeProps as $8tj43$mergeProps, effect as $8tj43$effect, className as $8tj43$className, isServer as $8tj43$isServer, spread as $8tj43$spread, runHydrationEvents as $8tj43$runHydrationEvents, addEventListener as $8tj43$addEventListener, memo as $8tj43$memo, delegateEvents as $8tj43$delegateEvents, getNextMarker as $8tj43$getNextMarker, classList as $8tj43$classList, setAttribute as $8tj43$setAttribute, style as $8tj43$style, use as $8tj43$use, setProperty as $8tj43$setProperty, Dynamic as $8tj43$Dynamic } from "solid-js/web";
|
|
3
3
|
import { createSignal as $8tj43$createSignal, createMemo as $8tj43$createMemo, createResource as $8tj43$createResource, createEffect as $8tj43$createEffect, Show as $8tj43$Show, mergeProps as $8tj43$mergeProps1, Suspense as $8tj43$Suspense, untrack as $8tj43$untrack, createRenderEffect as $8tj43$createRenderEffect, Index as $8tj43$Index, createRoot as $8tj43$createRoot, onCleanup as $8tj43$onCleanup, For as $8tj43$For, getOwner as $8tj43$getOwner, runWithOwner as $8tj43$runWithOwner, createContext as $8tj43$createContext, useContext as $8tj43$useContext, createUniqueId as $8tj43$createUniqueId, createComputed as $8tj43$createComputed, ErrorBoundary as $8tj43$ErrorBoundary, splitProps as $8tj43$splitProps, on as $8tj43$on, batch as $8tj43$batch, createSelector as $8tj43$createSelector, children as $8tj43$children, createReaction as $8tj43$createReaction, mapArray as $8tj43$mapArray } from "solid-js";
|
|
4
4
|
import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
import { ListenableSet as $8tj43$ListenableSet, catchify as $8tj43$catchify1, use_href_accessor as $8tj43$use_href_accessor1, report as $8tj43$report1 } from "@depict-ai/utilishared/ES10";
|
|
5
|
+
import { ListenableSet as $8tj43$ListenableSet, catchify as $8tj43$catchify1, use_href_accessor as $8tj43$use_href_accessor1, queueMacroTask as $8tj43$queueMacroTask1, report as $8tj43$report1 } from "@depict-ai/utilishared/ES10";
|
|
6
6
|
import $8tj43$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
7
7
|
import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
8
8
|
import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from "solid-js/store";
|
|
@@ -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.7.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.6";
|
|
14
14
|
function $8e8b179489080711$export$5bad61ecde080b1f() {
|
|
15
15
|
const {
|
|
16
16
|
collapse: collapse,
|
|
@@ -13680,6 +13680,9 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
|
|
|
13680
13680
|
$8tj43$onCleanup(() => {
|
|
13681
13681
|
addedToBody.remove();
|
|
13682
13682
|
fakeField.replaceWith(actualField_);
|
|
13683
|
+
setPollAlignment_(true);
|
|
13684
|
+
// Trigger a new alignment to make sure we are using the dimensions from the field being back in the DOM now, fixes https://depictaiworkspace.slack.com/archives/C06LVKNPLP5/p1710862260203749
|
|
13685
|
+
$8tj43$queueMacroTask1(() => setPollAlignment_(false));
|
|
13683
13686
|
});
|
|
13684
13687
|
$96d57a48e7bce64f$export$181cceed5c91919e(() => {
|
|
13685
13688
|
setInnerWidthReactive(innerWidth);
|
|
@@ -13883,6 +13886,10 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13883
13886
|
filterModalParent_: filterModalParent_
|
|
13884
13887
|
});
|
|
13885
13888
|
const results_filters = $8tj43$createSignal();
|
|
13889
|
+
const shouldActuallyShowInputField = $8tj43$createMemo(() => {
|
|
13890
|
+
var _include_input_field_;
|
|
13891
|
+
return (_include_input_field_ = include_input_field_ === null || include_input_field_ === void 0 ? void 0 : include_input_field_()) !== null && _include_input_field_ !== void 0 ? _include_input_field_ : true;
|
|
13892
|
+
}); // default to showing input field
|
|
13886
13893
|
const owner = $8tj43$getOwner();
|
|
13887
13894
|
$8tj43$onCleanup($8tj43$javascript_media_query("(max-width:600px)", async _ref2 => {
|
|
13888
13895
|
let {
|
|
@@ -13928,8 +13935,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13928
13935
|
// Hours were wasted in https://github.com/depict-org/depict/pull/137/commits/ff6563a8deb7ba09e181a7a34831fb66997fa8aa and following commits
|
|
13929
13936
|
// Reason it doesn't work is due to the complex alignment switching when the search field gets removed, and even after solving that: that opening a modal with unspecified alignment aligns it to the search field on the search page
|
|
13930
13937
|
add_input_field: {
|
|
13931
|
-
|
|
13932
|
-
const input_field_accessor_value = (_include_input_field_ = include_input_field_ === null || include_input_field_ === void 0 ? void 0 : include_input_field_()) !== null && _include_input_field_ !== void 0 ? _include_input_field_ : true; // default to showing input field
|
|
13938
|
+
const input_field_accessor_value = shouldActuallyShowInputField();
|
|
13933
13939
|
if (!input_field_accessor_value) break add_input_field;
|
|
13934
13940
|
let input_element;
|
|
13935
13941
|
let div_with_field_class;
|
package/latest/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
98
98
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
99
99
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
100
100
|
/*! Depict.ai search and product listing SDK */
|
|
101
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.
|
|
101
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.6";
|
|
102
102
|
function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
|
|
103
103
|
const {
|
|
104
104
|
collapse: collapse,
|
|
@@ -12971,6 +12971,9 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
12971
12971
|
$gVhhF$solidjs.onCleanup(() => {
|
|
12972
12972
|
addedToBody.remove();
|
|
12973
12973
|
fakeField.replaceWith(actualField_);
|
|
12974
|
+
setPollAlignment_(true);
|
|
12975
|
+
// Trigger a new alignment to make sure we are using the dimensions from the field being back in the DOM now, fixes https://depictaiworkspace.slack.com/archives/C06LVKNPLP5/p1710862260203749
|
|
12976
|
+
$gVhhF$depictaiutilisharedlatest.queueMacroTask(() => setPollAlignment_(false));
|
|
12974
12977
|
});
|
|
12975
12978
|
$331c7a65de274e6c$export$181cceed5c91919e(() => {
|
|
12976
12979
|
setInnerWidthReactive(innerWidth);
|
|
@@ -13158,6 +13161,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13158
13161
|
filterModalParent_: filterModalParent_
|
|
13159
13162
|
});
|
|
13160
13163
|
const results_filters = $gVhhF$solidjs.createSignal();
|
|
13164
|
+
const shouldActuallyShowInputField = $gVhhF$solidjs.createMemo(() => include_input_field_?.() ?? true); // default to showing input field
|
|
13161
13165
|
const owner = $gVhhF$solidjs.getOwner();
|
|
13162
13166
|
$gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query("(max-width:600px)", async ({
|
|
13163
13167
|
matches: matches
|
|
@@ -13202,7 +13206,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13202
13206
|
// Hours were wasted in https://github.com/depict-org/depict/pull/137/commits/ff6563a8deb7ba09e181a7a34831fb66997fa8aa and following commits
|
|
13203
13207
|
// Reason it doesn't work is due to the complex alignment switching when the search field gets removed, and even after solving that: that opening a modal with unspecified alignment aligns it to the search field on the search page
|
|
13204
13208
|
add_input_field: {
|
|
13205
|
-
const input_field_accessor_value =
|
|
13209
|
+
const input_field_accessor_value = shouldActuallyShowInputField();
|
|
13206
13210
|
if (!input_field_accessor_value) break add_input_field;
|
|
13207
13211
|
let input_element;
|
|
13208
13212
|
let div_with_field_class;
|
package/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.7.
|
|
14
|
+
export const version = "4.7.6";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
package/latest/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { add_to_version_info as $9HbP8$add_to_version_info, useExpandingContainer as $9HbP8$useExpandingContainer, fetch_retry as $9HbP8$fetch_retry, base_url as $9HbP8$base_url, dwarn as $9HbP8$dwarn, slider_fractional_factory as $9HbP8$slider_fractional_factory, dlog as $9HbP8$dlog, camelCasifyObject as $9HbP8$camelCasifyObject, make_random_classname as $9HbP8$make_random_classname, n_col_styling_with_dist as $9HbP8$n_col_styling_with_dist, catchify as $9HbP8$catchify, layout_get_visible_recs_without_partial_rows as $9HbP8$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $9HbP8$layout_get_total_rec_amount_for_row, layout_media_query_header as $9HbP8$layout_media_query_header, report as $9HbP8$report, slider_fading_factory as $9HbP8$slider_fading_factory, Amazing_Slider as $9HbP8$Amazing_Slider, slider_snap_css as $9HbP8$slider_snap_css, observer as $9HbP8$observer, javascript_media_query as $9HbP8$javascript_media_query, queueMacroTask as $9HbP8$queueMacroTask, findMostFrequentItem as $9HbP8$findMostFrequentItem, standard_price_format as $9HbP8$standard_price_format, instant_exec_on_suspect_history_change as $9HbP8$instant_exec_on_suspect_history_change, deparallelize_no_drop as $9HbP8$deparallelize_no_drop, ContainedImage as $9HbP8$ContainedImage, buildThresholdList as $9HbP8$buildThresholdList, make_asyncIterable_exiter as $9HbP8$make_asyncIterable_exiter, href_change_ipns as $9HbP8$href_change_ipns, base64_encode_unicode as $9HbP8$base64_encode_unicode, base64_decode_unicode as $9HbP8$base64_decode_unicode, use_href_accessor as $9HbP8$use_href_accessor, get_session_id as $9HbP8$get_session_id, add_version_query_params as $9HbP8$add_version_query_params, hex_to_rgb as $9HbP8$hex_to_rgb, relative_luminance_from_rgb as $9HbP8$relative_luminance_from_rgb, snakeCasifyObject as $9HbP8$snakeCasifyObject, sort_obj as $9HbP8$sort_obj, make_url_with_query_params as $9HbP8$make_url_with_query_params, insert_surfaces as $9HbP8$insert_surfaces, is_debug as $9HbP8$is_debug } from "@depict-ai/utilishared/latest";
|
|
2
2
|
import { createComponent as $9HbP8$createComponent, insert as $9HbP8$insert, template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, mergeProps as $9HbP8$mergeProps, effect as $9HbP8$effect, className as $9HbP8$className, isServer as $9HbP8$isServer, spread as $9HbP8$spread, runHydrationEvents as $9HbP8$runHydrationEvents, addEventListener as $9HbP8$addEventListener, memo as $9HbP8$memo, delegateEvents as $9HbP8$delegateEvents, getNextMarker as $9HbP8$getNextMarker, classList as $9HbP8$classList, setAttribute as $9HbP8$setAttribute, style as $9HbP8$style, use as $9HbP8$use, setProperty as $9HbP8$setProperty, Dynamic as $9HbP8$Dynamic } from "solid-js/web";
|
|
3
3
|
import { createSignal as $9HbP8$createSignal, createMemo as $9HbP8$createMemo, createResource as $9HbP8$createResource, createEffect as $9HbP8$createEffect, Show as $9HbP8$Show, mergeProps as $9HbP8$mergeProps1, Suspense as $9HbP8$Suspense, untrack as $9HbP8$untrack, createRenderEffect as $9HbP8$createRenderEffect, Index as $9HbP8$Index, createRoot as $9HbP8$createRoot, onCleanup as $9HbP8$onCleanup, For as $9HbP8$For, getOwner as $9HbP8$getOwner, runWithOwner as $9HbP8$runWithOwner, createContext as $9HbP8$createContext, useContext as $9HbP8$useContext, createUniqueId as $9HbP8$createUniqueId, createComputed as $9HbP8$createComputed, ErrorBoundary as $9HbP8$ErrorBoundary, splitProps as $9HbP8$splitProps, on as $9HbP8$on, batch as $9HbP8$batch, createSelector as $9HbP8$createSelector, children as $9HbP8$children, createReaction as $9HbP8$createReaction, mapArray as $9HbP8$mapArray } from "solid-js";
|
|
4
|
-
import { ListenableSet as $9HbP8$ListenableSet, catchify as $9HbP8$catchify1, use_href_accessor as $9HbP8$use_href_accessor1, report as $9HbP8$report1 } from "@depict-ai/utilishared/latest";
|
|
4
|
+
import { ListenableSet as $9HbP8$ListenableSet, catchify as $9HbP8$catchify1, use_href_accessor as $9HbP8$use_href_accessor1, queueMacroTask as $9HbP8$queueMacroTask1, report as $9HbP8$report1 } from "@depict-ai/utilishared/latest";
|
|
5
5
|
import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from "solid-js/store";
|
|
6
6
|
|
|
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.7.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.6";
|
|
11
11
|
function $24e27fab9c821b86$export$5bad61ecde080b1f(...params) {
|
|
12
12
|
const {
|
|
13
13
|
collapse: collapse,
|
|
@@ -12880,6 +12880,9 @@ function $0e562a5b247b1fc2$export$44f738469d5570cf({
|
|
|
12880
12880
|
$9HbP8$onCleanup(() => {
|
|
12881
12881
|
addedToBody.remove();
|
|
12882
12882
|
fakeField.replaceWith(actualField_);
|
|
12883
|
+
setPollAlignment_(true);
|
|
12884
|
+
// Trigger a new alignment to make sure we are using the dimensions from the field being back in the DOM now, fixes https://depictaiworkspace.slack.com/archives/C06LVKNPLP5/p1710862260203749
|
|
12885
|
+
$9HbP8$queueMacroTask1(() => setPollAlignment_(false));
|
|
12883
12886
|
});
|
|
12884
12887
|
$d68658730065de95$export$181cceed5c91919e(() => {
|
|
12885
12888
|
setInnerWidthReactive(innerWidth);
|
|
@@ -13067,6 +13070,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
13067
13070
|
filterModalParent_: filterModalParent_
|
|
13068
13071
|
});
|
|
13069
13072
|
const results_filters = $9HbP8$createSignal();
|
|
13073
|
+
const shouldActuallyShowInputField = $9HbP8$createMemo(() => include_input_field_?.() ?? true); // default to showing input field
|
|
13070
13074
|
const owner = $9HbP8$getOwner();
|
|
13071
13075
|
$9HbP8$onCleanup($9HbP8$javascript_media_query("(max-width:600px)", async ({
|
|
13072
13076
|
matches: matches
|
|
@@ -13111,7 +13115,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
13111
13115
|
// Hours were wasted in https://github.com/depict-org/depict/pull/137/commits/ff6563a8deb7ba09e181a7a34831fb66997fa8aa and following commits
|
|
13112
13116
|
// Reason it doesn't work is due to the complex alignment switching when the search field gets removed, and even after solving that: that opening a modal with unspecified alignment aligns it to the search field on the search page
|
|
13113
13117
|
add_input_field: {
|
|
13114
|
-
const input_field_accessor_value =
|
|
13118
|
+
const input_field_accessor_value = shouldActuallyShowInputField();
|
|
13115
13119
|
if (!input_field_accessor_value) break add_input_field;
|
|
13116
13120
|
let input_element;
|
|
13117
13121
|
let div_with_field_class;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.6",
|
|
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",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -104,7 +104,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
104
104
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
105
105
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
106
106
|
/*! Depict.ai search and product listing SDK */
|
|
107
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.
|
|
107
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.6";
|
|
108
108
|
function $d6d51b09cb2116a6$export$5bad61ecde080b1f() {
|
|
109
109
|
const {
|
|
110
110
|
collapse: collapse,
|
|
@@ -11317,6 +11317,9 @@ function $a60bc7692ce52705$export$44f738469d5570cf(_ref) {
|
|
|
11317
11317
|
$3hooq$solidjs.onCleanup(() => {
|
|
11318
11318
|
addedToBody.remove();
|
|
11319
11319
|
fakeField.replaceWith(actualField_);
|
|
11320
|
+
setPollAlignment_(true);
|
|
11321
|
+
// Trigger a new alignment to make sure we are using the dimensions from the field being back in the DOM now, fixes https://depictaiworkspace.slack.com/archives/C06LVKNPLP5/p1710862260203749
|
|
11322
|
+
$3hooq$depictaiutilisharedlatest.queueMacroTask(() => setPollAlignment_(false));
|
|
11320
11323
|
});
|
|
11321
11324
|
$7a8e55af4ef13fae$export$181cceed5c91919e(() => {
|
|
11322
11325
|
setInnerWidthReactive(innerWidth);
|
|
@@ -11520,6 +11523,10 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11520
11523
|
filterModalParent_: filterModalParent_
|
|
11521
11524
|
});
|
|
11522
11525
|
const results_filters = $3hooq$solidjs.createSignal();
|
|
11526
|
+
const shouldActuallyShowInputField = $3hooq$solidjs.createMemo(() => {
|
|
11527
|
+
var _include_input_field_;
|
|
11528
|
+
return (_include_input_field_ = include_input_field_ === null || include_input_field_ === void 0 ? void 0 : include_input_field_()) !== null && _include_input_field_ !== void 0 ? _include_input_field_ : true;
|
|
11529
|
+
}); // default to showing input field
|
|
11523
11530
|
const owner = $3hooq$solidjs.getOwner();
|
|
11524
11531
|
$3hooq$solidjs.onCleanup($3hooq$depictaiutilishared.javascript_media_query("(max-width:600px)", async _ref2 => {
|
|
11525
11532
|
let {
|
|
@@ -11556,8 +11563,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11556
11563
|
// Hours were wasted in https://github.com/depict-org/depict/pull/137/commits/ff6563a8deb7ba09e181a7a34831fb66997fa8aa and following commits
|
|
11557
11564
|
// Reason it doesn't work is due to the complex alignment switching when the search field gets removed, and even after solving that: that opening a modal with unspecified alignment aligns it to the search field on the search page
|
|
11558
11565
|
add_input_field: {
|
|
11559
|
-
|
|
11560
|
-
const input_field_accessor_value = (_include_input_field_ = include_input_field_ === null || include_input_field_ === void 0 ? void 0 : include_input_field_()) !== null && _include_input_field_ !== void 0 ? _include_input_field_ : true; // default to showing input field
|
|
11566
|
+
const input_field_accessor_value = shouldActuallyShowInputField();
|
|
11561
11567
|
if (!input_field_accessor_value) break add_input_field;
|
|
11562
11568
|
let input_element;
|
|
11563
11569
|
let div_with_field_class;
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.7.
|
|
14
|
+
export const version = "4.7.6";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
package/server/ES10/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { add_to_version_info as $b8hua$add_to_version_info, useExpandingContaine
|
|
|
2
2
|
import { createComponent as $b8hua$createComponent, insert as $b8hua$insert, ssr as $b8hua$ssr, ssrHydrationKey as $b8hua$ssrHydrationKey, escape as $b8hua$escape, ssrStyle as $b8hua$ssrStyle, mergeProps as $b8hua$mergeProps, isServer as $b8hua$isServer, ssrElement as $b8hua$ssrElement, ssrClassList as $b8hua$ssrClassList, ssrAttribute as $b8hua$ssrAttribute, spread as $b8hua$spread, Dynamic as $b8hua$Dynamic } from "solid-js/web";
|
|
3
3
|
import { createSignal as $b8hua$createSignal, createMemo as $b8hua$createMemo, createResource as $b8hua$createResource, createEffect as $b8hua$createEffect, Show as $b8hua$Show, mergeProps as $b8hua$mergeProps1, Suspense as $b8hua$Suspense, untrack as $b8hua$untrack, createRenderEffect as $b8hua$createRenderEffect, Index as $b8hua$Index, createRoot as $b8hua$createRoot, onCleanup as $b8hua$onCleanup, For as $b8hua$For, getOwner as $b8hua$getOwner, runWithOwner as $b8hua$runWithOwner, createContext as $b8hua$createContext, useContext as $b8hua$useContext, createUniqueId as $b8hua$createUniqueId, createComputed as $b8hua$createComputed, ErrorBoundary as $b8hua$ErrorBoundary, splitProps as $b8hua$splitProps, on as $b8hua$on, batch as $b8hua$batch, createSelector as $b8hua$createSelector, children as $b8hua$children, createReaction as $b8hua$createReaction, mapArray as $b8hua$mapArray } from "solid-js";
|
|
4
4
|
import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
5
|
-
import { ListenableSet as $b8hua$ListenableSet, catchify as $b8hua$catchify1, use_href_accessor as $b8hua$use_href_accessor1, report as $b8hua$report1 } from "@depict-ai/utilishared/ES10";
|
|
5
|
+
import { ListenableSet as $b8hua$ListenableSet, catchify as $b8hua$catchify1, use_href_accessor as $b8hua$use_href_accessor1, queueMacroTask as $b8hua$queueMacroTask1, report as $b8hua$report1 } from "@depict-ai/utilishared/ES10";
|
|
6
6
|
import $b8hua$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
7
7
|
import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
8
8
|
import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from "solid-js/store";
|
|
@@ -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.7.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.6";
|
|
14
14
|
function $8e8b179489080711$export$5bad61ecde080b1f() {
|
|
15
15
|
const {
|
|
16
16
|
collapse: collapse,
|
|
@@ -11223,6 +11223,9 @@ function $937791b86d3d1509$export$44f738469d5570cf(_ref) {
|
|
|
11223
11223
|
$b8hua$onCleanup(() => {
|
|
11224
11224
|
addedToBody.remove();
|
|
11225
11225
|
fakeField.replaceWith(actualField_);
|
|
11226
|
+
setPollAlignment_(true);
|
|
11227
|
+
// Trigger a new alignment to make sure we are using the dimensions from the field being back in the DOM now, fixes https://depictaiworkspace.slack.com/archives/C06LVKNPLP5/p1710862260203749
|
|
11228
|
+
$b8hua$queueMacroTask1(() => setPollAlignment_(false));
|
|
11226
11229
|
});
|
|
11227
11230
|
$96d57a48e7bce64f$export$181cceed5c91919e(() => {
|
|
11228
11231
|
setInnerWidthReactive(innerWidth);
|
|
@@ -11426,6 +11429,10 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11426
11429
|
filterModalParent_: filterModalParent_
|
|
11427
11430
|
});
|
|
11428
11431
|
const results_filters = $b8hua$createSignal();
|
|
11432
|
+
const shouldActuallyShowInputField = $b8hua$createMemo(() => {
|
|
11433
|
+
var _include_input_field_;
|
|
11434
|
+
return (_include_input_field_ = include_input_field_ === null || include_input_field_ === void 0 ? void 0 : include_input_field_()) !== null && _include_input_field_ !== void 0 ? _include_input_field_ : true;
|
|
11435
|
+
}); // default to showing input field
|
|
11429
11436
|
const owner = $b8hua$getOwner();
|
|
11430
11437
|
$b8hua$onCleanup($b8hua$javascript_media_query("(max-width:600px)", async _ref2 => {
|
|
11431
11438
|
let {
|
|
@@ -11462,8 +11469,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11462
11469
|
// Hours were wasted in https://github.com/depict-org/depict/pull/137/commits/ff6563a8deb7ba09e181a7a34831fb66997fa8aa and following commits
|
|
11463
11470
|
// Reason it doesn't work is due to the complex alignment switching when the search field gets removed, and even after solving that: that opening a modal with unspecified alignment aligns it to the search field on the search page
|
|
11464
11471
|
add_input_field: {
|
|
11465
|
-
|
|
11466
|
-
const input_field_accessor_value = (_include_input_field_ = include_input_field_ === null || include_input_field_ === void 0 ? void 0 : include_input_field_()) !== null && _include_input_field_ !== void 0 ? _include_input_field_ : true; // default to showing input field
|
|
11472
|
+
const input_field_accessor_value = shouldActuallyShowInputField();
|
|
11467
11473
|
if (!input_field_accessor_value) break add_input_field;
|
|
11468
11474
|
let input_element;
|
|
11469
11475
|
let div_with_field_class;
|
package/server/latest/index.cjs
CHANGED
|
@@ -98,7 +98,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
98
98
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
99
99
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
100
100
|
/*! Depict.ai search and product listing SDK */
|
|
101
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.
|
|
101
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.6";
|
|
102
102
|
function $4b455f60dadde8b8$export$5bad61ecde080b1f(...params) {
|
|
103
103
|
const {
|
|
104
104
|
collapse: collapse,
|
|
@@ -10585,6 +10585,9 @@ function $5cbaffcb5602e671$export$44f738469d5570cf({
|
|
|
10585
10585
|
$5vyXB$solidjs.onCleanup(() => {
|
|
10586
10586
|
addedToBody.remove();
|
|
10587
10587
|
fakeField.replaceWith(actualField_);
|
|
10588
|
+
setPollAlignment_(true);
|
|
10589
|
+
// Trigger a new alignment to make sure we are using the dimensions from the field being back in the DOM now, fixes https://depictaiworkspace.slack.com/archives/C06LVKNPLP5/p1710862260203749
|
|
10590
|
+
$5vyXB$depictaiutilisharedlatest.queueMacroTask(() => setPollAlignment_(false));
|
|
10588
10591
|
});
|
|
10589
10592
|
$331c7a65de274e6c$export$181cceed5c91919e(() => {
|
|
10590
10593
|
setInnerWidthReactive(innerWidth);
|
|
@@ -10772,6 +10775,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10772
10775
|
filterModalParent_: filterModalParent_
|
|
10773
10776
|
});
|
|
10774
10777
|
const results_filters = $5vyXB$solidjs.createSignal();
|
|
10778
|
+
const shouldActuallyShowInputField = $5vyXB$solidjs.createMemo(() => include_input_field_?.() ?? true); // default to showing input field
|
|
10775
10779
|
const owner = $5vyXB$solidjs.getOwner();
|
|
10776
10780
|
$5vyXB$solidjs.onCleanup($5vyXB$depictaiutilishared.javascript_media_query("(max-width:600px)", async ({
|
|
10777
10781
|
matches: matches
|
|
@@ -10807,7 +10811,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10807
10811
|
// Hours were wasted in https://github.com/depict-org/depict/pull/137/commits/ff6563a8deb7ba09e181a7a34831fb66997fa8aa and following commits
|
|
10808
10812
|
// Reason it doesn't work is due to the complex alignment switching when the search field gets removed, and even after solving that: that opening a modal with unspecified alignment aligns it to the search field on the search page
|
|
10809
10813
|
add_input_field: {
|
|
10810
|
-
const input_field_accessor_value =
|
|
10814
|
+
const input_field_accessor_value = shouldActuallyShowInputField();
|
|
10811
10815
|
if (!input_field_accessor_value) break add_input_field;
|
|
10812
10816
|
let input_element;
|
|
10813
10817
|
let div_with_field_class;
|
package/server/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.7.
|
|
14
|
+
export const version = "4.7.6";
|
|
15
15
|
/**
|
|
16
16
|
* Just like `useExpandingContainer` except that the children can be reactive solid-js signals, basically solid's JSX.Element instead of our JSX.Element
|
|
17
17
|
*/
|
package/server/latest/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { add_to_version_info as $i7OB2$add_to_version_info, useExpandingContainer as $i7OB2$useExpandingContainer, fetch_retry as $i7OB2$fetch_retry, base_url as $i7OB2$base_url, dwarn as $i7OB2$dwarn, slider_fractional_factory as $i7OB2$slider_fractional_factory, dlog as $i7OB2$dlog, camelCasifyObject as $i7OB2$camelCasifyObject, make_random_classname as $i7OB2$make_random_classname, n_col_styling_with_dist as $i7OB2$n_col_styling_with_dist, catchify as $i7OB2$catchify, layout_get_visible_recs_without_partial_rows as $i7OB2$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $i7OB2$layout_get_total_rec_amount_for_row, layout_media_query_header as $i7OB2$layout_media_query_header, report as $i7OB2$report, slider_fading_factory as $i7OB2$slider_fading_factory, Amazing_Slider as $i7OB2$Amazing_Slider, slider_snap_css as $i7OB2$slider_snap_css, observer as $i7OB2$observer, javascript_media_query as $i7OB2$javascript_media_query, queueMacroTask as $i7OB2$queueMacroTask, findMostFrequentItem as $i7OB2$findMostFrequentItem, standard_price_format as $i7OB2$standard_price_format, instant_exec_on_suspect_history_change as $i7OB2$instant_exec_on_suspect_history_change, deparallelize_no_drop as $i7OB2$deparallelize_no_drop, ContainedImage as $i7OB2$ContainedImage, make_asyncIterable_exiter as $i7OB2$make_asyncIterable_exiter, href_change_ipns as $i7OB2$href_change_ipns, base64_encode_unicode as $i7OB2$base64_encode_unicode, base64_decode_unicode as $i7OB2$base64_decode_unicode, use_href_accessor as $i7OB2$use_href_accessor, get_session_id as $i7OB2$get_session_id, add_version_query_params as $i7OB2$add_version_query_params, hex_to_rgb as $i7OB2$hex_to_rgb, relative_luminance_from_rgb as $i7OB2$relative_luminance_from_rgb, snakeCasifyObject as $i7OB2$snakeCasifyObject, sort_obj as $i7OB2$sort_obj, make_url_with_query_params as $i7OB2$make_url_with_query_params, insert_surfaces as $i7OB2$insert_surfaces } from "@depict-ai/utilishared/latest";
|
|
2
2
|
import { createComponent as $i7OB2$createComponent, insert as $i7OB2$insert, ssr as $i7OB2$ssr, ssrHydrationKey as $i7OB2$ssrHydrationKey, escape as $i7OB2$escape, ssrStyle as $i7OB2$ssrStyle, mergeProps as $i7OB2$mergeProps, isServer as $i7OB2$isServer, ssrElement as $i7OB2$ssrElement, ssrClassList as $i7OB2$ssrClassList, ssrAttribute as $i7OB2$ssrAttribute, spread as $i7OB2$spread, Dynamic as $i7OB2$Dynamic } from "solid-js/web";
|
|
3
3
|
import { createSignal as $i7OB2$createSignal, createMemo as $i7OB2$createMemo, createResource as $i7OB2$createResource, createEffect as $i7OB2$createEffect, Show as $i7OB2$Show, mergeProps as $i7OB2$mergeProps1, Suspense as $i7OB2$Suspense, untrack as $i7OB2$untrack, createRenderEffect as $i7OB2$createRenderEffect, Index as $i7OB2$Index, createRoot as $i7OB2$createRoot, onCleanup as $i7OB2$onCleanup, For as $i7OB2$For, getOwner as $i7OB2$getOwner, runWithOwner as $i7OB2$runWithOwner, createContext as $i7OB2$createContext, useContext as $i7OB2$useContext, createUniqueId as $i7OB2$createUniqueId, createComputed as $i7OB2$createComputed, ErrorBoundary as $i7OB2$ErrorBoundary, splitProps as $i7OB2$splitProps, on as $i7OB2$on, batch as $i7OB2$batch, createSelector as $i7OB2$createSelector, children as $i7OB2$children, createReaction as $i7OB2$createReaction, mapArray as $i7OB2$mapArray } from "solid-js";
|
|
4
|
-
import { ListenableSet as $i7OB2$ListenableSet, catchify as $i7OB2$catchify1, use_href_accessor as $i7OB2$use_href_accessor1, report as $i7OB2$report1 } from "@depict-ai/utilishared/latest";
|
|
4
|
+
import { ListenableSet as $i7OB2$ListenableSet, catchify as $i7OB2$catchify1, use_href_accessor as $i7OB2$use_href_accessor1, queueMacroTask as $i7OB2$queueMacroTask1, report as $i7OB2$report1 } from "@depict-ai/utilishared/latest";
|
|
5
5
|
import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from "solid-js/store";
|
|
6
6
|
|
|
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.7.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.6";
|
|
11
11
|
function $24e27fab9c821b86$export$5bad61ecde080b1f(...params) {
|
|
12
12
|
const {
|
|
13
13
|
collapse: collapse,
|
|
@@ -10494,6 +10494,9 @@ function $0e562a5b247b1fc2$export$44f738469d5570cf({
|
|
|
10494
10494
|
$i7OB2$onCleanup(() => {
|
|
10495
10495
|
addedToBody.remove();
|
|
10496
10496
|
fakeField.replaceWith(actualField_);
|
|
10497
|
+
setPollAlignment_(true);
|
|
10498
|
+
// Trigger a new alignment to make sure we are using the dimensions from the field being back in the DOM now, fixes https://depictaiworkspace.slack.com/archives/C06LVKNPLP5/p1710862260203749
|
|
10499
|
+
$i7OB2$queueMacroTask1(() => setPollAlignment_(false));
|
|
10497
10500
|
});
|
|
10498
10501
|
$d68658730065de95$export$181cceed5c91919e(() => {
|
|
10499
10502
|
setInnerWidthReactive(innerWidth);
|
|
@@ -10681,6 +10684,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10681
10684
|
filterModalParent_: filterModalParent_
|
|
10682
10685
|
});
|
|
10683
10686
|
const results_filters = $i7OB2$createSignal();
|
|
10687
|
+
const shouldActuallyShowInputField = $i7OB2$createMemo(() => include_input_field_?.() ?? true); // default to showing input field
|
|
10684
10688
|
const owner = $i7OB2$getOwner();
|
|
10685
10689
|
$i7OB2$onCleanup($i7OB2$javascript_media_query("(max-width:600px)", async ({
|
|
10686
10690
|
matches: matches
|
|
@@ -10716,7 +10720,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10716
10720
|
// Hours were wasted in https://github.com/depict-org/depict/pull/137/commits/ff6563a8deb7ba09e181a7a34831fb66997fa8aa and following commits
|
|
10717
10721
|
// Reason it doesn't work is due to the complex alignment switching when the search field gets removed, and even after solving that: that opening a modal with unspecified alignment aligns it to the search field on the search page
|
|
10718
10722
|
add_input_field: {
|
|
10719
|
-
const input_field_accessor_value =
|
|
10723
|
+
const input_field_accessor_value = shouldActuallyShowInputField();
|
|
10720
10724
|
if (!input_field_accessor_value) break add_input_field;
|
|
10721
10725
|
let input_element;
|
|
10722
10726
|
let div_with_field_class;
|