@depict-ai/ui 4.0.12 → 4.0.13
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 +6 -4
- package/ES10/index.d.ts +5 -1
- package/ES10/index.js +6 -4
- package/latest/index.cjs +5 -4
- package/latest/index.d.ts +5 -1
- package/latest/index.js +5 -4
- package/package.json +1 -1
- package/server/ES10/index.cjs +6 -4
- package/server/ES10/index.d.ts +5 -1
- package/server/ES10/index.js +6 -4
- package/server/latest/index.cjs +5 -4
- package/server/latest/index.d.ts +5 -1
- package/server/latest/index.js +5 -4
package/ES10/index.cjs
CHANGED
|
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
|
|
|
94
94
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
95
95
|
$parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
|
|
96
96
|
/*! Depict.ai search and product listing SDK */
|
|
97
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.
|
|
97
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.13";
|
|
98
98
|
function $a28000bc10de28ad$export$e417c49320921907(dependency, fetcher) {
|
|
99
99
|
const [promiseOfCurrentFetcherRun, setPromiseOfCurrentFetcherRun] = $52FdA$solidjs.createSignal();
|
|
100
100
|
const deparallelizedFetcher = $52FdA$depictaiutilishared.deparallelize_no_drop(async dependencyValue => {
|
|
@@ -14777,6 +14777,7 @@ const $a24cfef36ef12dc5$export$d86a33413558014e = openModalParams => {
|
|
|
14777
14777
|
search: search,
|
|
14778
14778
|
makesNewSearch = true
|
|
14779
14779
|
} = openModalParams;
|
|
14780
|
+
let cleanup;
|
|
14780
14781
|
openModalParams.location || (openModalParams.location = "centered");
|
|
14781
14782
|
if (openModalParams.location === "aligned" && !openModalParams.element) throw new Error("No active search header aligner on the page!");
|
|
14782
14783
|
if (openModalParams.location !== "aligned") {
|
|
@@ -14794,9 +14795,9 @@ const $a24cfef36ef12dc5$export$d86a33413558014e = openModalParams => {
|
|
|
14794
14795
|
}];
|
|
14795
14796
|
return;
|
|
14796
14797
|
}
|
|
14797
|
-
|
|
14798
|
+
if (!openModalParams.ignoreFieldSize_) ({
|
|
14798
14799
|
cleanup: cleanup
|
|
14799
|
-
} = $98bd00c15a2e3159$export$828dcdd425fd3231(openModalParams.element);
|
|
14800
|
+
} = $98bd00c15a2e3159$export$828dcdd425fd3231(openModalParams.element));
|
|
14800
14801
|
let dispose_aligner;
|
|
14801
14802
|
/**
|
|
14802
14803
|
* Setting position to fixed is important to make the modal work with align_field.
|
|
@@ -14809,7 +14810,8 @@ const $a24cfef36ef12dc5$export$d86a33413558014e = openModalParams => {
|
|
|
14809
14810
|
};
|
|
14810
14811
|
$52FdA$solidjs.createRoot(dispose => {
|
|
14811
14812
|
dispose_aligner = () => {
|
|
14812
|
-
|
|
14813
|
+
var _cleanup;
|
|
14814
|
+
(_cleanup = cleanup) === null || _cleanup === void 0 || _cleanup();
|
|
14813
14815
|
dispose();
|
|
14814
14816
|
};
|
|
14815
14817
|
$d6ed4dbb6507996d$export$b3ad617e9036868(alignmentSignals_, openModalParams.element, (0, $d6ed4dbb6507996d$export$3f238c96c45e6cc6));
|
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.
|
|
13
|
+
export const version = "4.0.13";
|
|
14
14
|
export type ModalAlignmentSignals = {
|
|
15
15
|
body_: Signal<JSX.CSSProperties>;
|
|
16
16
|
field_: Signal<JSX.CSSProperties>;
|
|
@@ -1323,6 +1323,10 @@ type CenteredLocation = {
|
|
|
1323
1323
|
type AlignedLocation = {
|
|
1324
1324
|
location: "aligned";
|
|
1325
1325
|
element: HTMLElement;
|
|
1326
|
+
/**
|
|
1327
|
+
* If true, the height of the search field in the modal won't be set to the height of the element we're aligning to
|
|
1328
|
+
*/
|
|
1329
|
+
ignoreFieldSize_?: boolean;
|
|
1326
1330
|
};
|
|
1327
1331
|
/**
|
|
1328
1332
|
* How the modal should be opened.
|
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.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.13";
|
|
14
14
|
function $a604a8ffa4e4c03f$export$e417c49320921907(dependency, fetcher) {
|
|
15
15
|
const [promiseOfCurrentFetcherRun, setPromiseOfCurrentFetcherRun] = $8tj43$createSignal();
|
|
16
16
|
const deparallelizedFetcher = $8tj43$deparallelize_no_drop(async dependencyValue => {
|
|
@@ -14693,6 +14693,7 @@ const $169c13c0531d91d2$export$d86a33413558014e = openModalParams => {
|
|
|
14693
14693
|
search: search,
|
|
14694
14694
|
makesNewSearch = true
|
|
14695
14695
|
} = openModalParams;
|
|
14696
|
+
let cleanup;
|
|
14696
14697
|
openModalParams.location || (openModalParams.location = "centered");
|
|
14697
14698
|
if (openModalParams.location === "aligned" && !openModalParams.element) throw new Error("No active search header aligner on the page!");
|
|
14698
14699
|
if (openModalParams.location !== "aligned") {
|
|
@@ -14710,9 +14711,9 @@ const $169c13c0531d91d2$export$d86a33413558014e = openModalParams => {
|
|
|
14710
14711
|
}];
|
|
14711
14712
|
return;
|
|
14712
14713
|
}
|
|
14713
|
-
|
|
14714
|
+
if (!openModalParams.ignoreFieldSize_) ({
|
|
14714
14715
|
cleanup: cleanup
|
|
14715
|
-
} = $37e8c97bb6876197$export$828dcdd425fd3231(openModalParams.element);
|
|
14716
|
+
} = $37e8c97bb6876197$export$828dcdd425fd3231(openModalParams.element));
|
|
14716
14717
|
let dispose_aligner;
|
|
14717
14718
|
/**
|
|
14718
14719
|
* Setting position to fixed is important to make the modal work with align_field.
|
|
@@ -14725,7 +14726,8 @@ const $169c13c0531d91d2$export$d86a33413558014e = openModalParams => {
|
|
|
14725
14726
|
};
|
|
14726
14727
|
$8tj43$createRoot(dispose => {
|
|
14727
14728
|
dispose_aligner = () => {
|
|
14728
|
-
|
|
14729
|
+
var _cleanup;
|
|
14730
|
+
(_cleanup = cleanup) === null || _cleanup === void 0 || _cleanup();
|
|
14729
14731
|
dispose();
|
|
14730
14732
|
};
|
|
14731
14733
|
$1308a7816c3d4f2d$export$b3ad617e9036868(alignmentSignals_, openModalParams.element, (0, $1308a7816c3d4f2d$export$3f238c96c45e6cc6));
|
package/latest/index.cjs
CHANGED
|
@@ -88,7 +88,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
|
|
|
88
88
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
89
89
|
$parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
|
|
90
90
|
/*! Depict.ai search and product listing SDK */
|
|
91
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.
|
|
91
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.13";
|
|
92
92
|
function $53df95e470b2f8d2$export$e417c49320921907(dependency, fetcher) {
|
|
93
93
|
const [promiseOfCurrentFetcherRun, setPromiseOfCurrentFetcherRun] = $gVhhF$solidjs.createSignal();
|
|
94
94
|
const deparallelizedFetcher = $gVhhF$depictaiutilishared.deparallelize_no_drop(async dependencyValue => {
|
|
@@ -13835,6 +13835,7 @@ const $9c143d25df1fc2a2$export$d86a33413558014e = openModalParams => {
|
|
|
13835
13835
|
search: search,
|
|
13836
13836
|
makesNewSearch = true
|
|
13837
13837
|
} = openModalParams;
|
|
13838
|
+
let cleanup;
|
|
13838
13839
|
openModalParams.location ||= "centered";
|
|
13839
13840
|
if (openModalParams.location === "aligned" && !openModalParams.element) throw new Error("No active search header aligner on the page!");
|
|
13840
13841
|
if (openModalParams.location !== "aligned") {
|
|
@@ -13852,9 +13853,9 @@ const $9c143d25df1fc2a2$export$d86a33413558014e = openModalParams => {
|
|
|
13852
13853
|
}];
|
|
13853
13854
|
return;
|
|
13854
13855
|
}
|
|
13855
|
-
|
|
13856
|
+
if (!openModalParams.ignoreFieldSize_) ({
|
|
13856
13857
|
cleanup: cleanup
|
|
13857
|
-
} = $d8e94ea381ab57fa$export$828dcdd425fd3231(openModalParams.element);
|
|
13858
|
+
} = $d8e94ea381ab57fa$export$828dcdd425fd3231(openModalParams.element));
|
|
13858
13859
|
let dispose_aligner;
|
|
13859
13860
|
/**
|
|
13860
13861
|
* Setting position to fixed is important to make the modal work with align_field.
|
|
@@ -13867,7 +13868,7 @@ const $9c143d25df1fc2a2$export$d86a33413558014e = openModalParams => {
|
|
|
13867
13868
|
};
|
|
13868
13869
|
$gVhhF$solidjs.createRoot(dispose => {
|
|
13869
13870
|
dispose_aligner = () => {
|
|
13870
|
-
cleanup();
|
|
13871
|
+
cleanup?.();
|
|
13871
13872
|
dispose();
|
|
13872
13873
|
};
|
|
13873
13874
|
$fd463ff0edb29915$export$b3ad617e9036868(alignmentSignals_, openModalParams.element, (0, $fd463ff0edb29915$export$3f238c96c45e6cc6));
|
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.
|
|
13
|
+
export const version = "4.0.13";
|
|
14
14
|
export type ModalAlignmentSignals = {
|
|
15
15
|
body_: Signal<JSX.CSSProperties>;
|
|
16
16
|
field_: Signal<JSX.CSSProperties>;
|
|
@@ -1323,6 +1323,10 @@ type CenteredLocation = {
|
|
|
1323
1323
|
type AlignedLocation = {
|
|
1324
1324
|
location: "aligned";
|
|
1325
1325
|
element: HTMLElement;
|
|
1326
|
+
/**
|
|
1327
|
+
* If true, the height of the search field in the modal won't be set to the height of the element we're aligning to
|
|
1328
|
+
*/
|
|
1329
|
+
ignoreFieldSize_?: boolean;
|
|
1326
1330
|
};
|
|
1327
1331
|
/**
|
|
1328
1332
|
* How the modal should be opened.
|
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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.13";
|
|
11
11
|
function $136f1d4d6c7ba6ac$export$e417c49320921907(dependency, fetcher) {
|
|
12
12
|
const [promiseOfCurrentFetcherRun, setPromiseOfCurrentFetcherRun] = $9HbP8$createSignal();
|
|
13
13
|
const deparallelizedFetcher = $9HbP8$deparallelize_no_drop(async dependencyValue => {
|
|
@@ -13754,6 +13754,7 @@ const $6891c018a834cfdd$export$d86a33413558014e = openModalParams => {
|
|
|
13754
13754
|
search: search,
|
|
13755
13755
|
makesNewSearch = true
|
|
13756
13756
|
} = openModalParams;
|
|
13757
|
+
let cleanup;
|
|
13757
13758
|
openModalParams.location ||= "centered";
|
|
13758
13759
|
if (openModalParams.location === "aligned" && !openModalParams.element) throw new Error("No active search header aligner on the page!");
|
|
13759
13760
|
if (openModalParams.location !== "aligned") {
|
|
@@ -13771,9 +13772,9 @@ const $6891c018a834cfdd$export$d86a33413558014e = openModalParams => {
|
|
|
13771
13772
|
}];
|
|
13772
13773
|
return;
|
|
13773
13774
|
}
|
|
13774
|
-
|
|
13775
|
+
if (!openModalParams.ignoreFieldSize_) ({
|
|
13775
13776
|
cleanup: cleanup
|
|
13776
|
-
} = $4ca91518c9a35379$export$828dcdd425fd3231(openModalParams.element);
|
|
13777
|
+
} = $4ca91518c9a35379$export$828dcdd425fd3231(openModalParams.element));
|
|
13777
13778
|
let dispose_aligner;
|
|
13778
13779
|
/**
|
|
13779
13780
|
* Setting position to fixed is important to make the modal work with align_field.
|
|
@@ -13786,7 +13787,7 @@ const $6891c018a834cfdd$export$d86a33413558014e = openModalParams => {
|
|
|
13786
13787
|
};
|
|
13787
13788
|
$9HbP8$createRoot(dispose => {
|
|
13788
13789
|
dispose_aligner = () => {
|
|
13789
|
-
cleanup();
|
|
13790
|
+
cleanup?.();
|
|
13790
13791
|
dispose();
|
|
13791
13792
|
};
|
|
13792
13793
|
$b6d5529b253681aa$export$b3ad617e9036868(alignmentSignals_, openModalParams.element, (0, $b6d5529b253681aa$export$3f238c96c45e6cc6));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.13",
|
|
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
|
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
|
|
|
94
94
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
95
95
|
$parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
|
|
96
96
|
/*! Depict.ai search and product listing SDK */
|
|
97
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.
|
|
97
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.0.13";
|
|
98
98
|
function $a28000bc10de28ad$export$e417c49320921907(dependency, fetcher) {
|
|
99
99
|
const [promiseOfCurrentFetcherRun, setPromiseOfCurrentFetcherRun] = $3hooq$solidjs.createSignal();
|
|
100
100
|
const deparallelizedFetcher = $3hooq$depictaiutilishared.deparallelize_no_drop(async dependencyValue => {
|
|
@@ -12298,6 +12298,7 @@ const $a24cfef36ef12dc5$export$d86a33413558014e = openModalParams => {
|
|
|
12298
12298
|
search: search,
|
|
12299
12299
|
makesNewSearch = true
|
|
12300
12300
|
} = openModalParams;
|
|
12301
|
+
let cleanup;
|
|
12301
12302
|
openModalParams.location || (openModalParams.location = "centered");
|
|
12302
12303
|
if (openModalParams.location === "aligned" && !openModalParams.element) throw new Error("No active search header aligner on the page!");
|
|
12303
12304
|
if (openModalParams.location !== "aligned") {
|
|
@@ -12315,9 +12316,9 @@ const $a24cfef36ef12dc5$export$d86a33413558014e = openModalParams => {
|
|
|
12315
12316
|
}];
|
|
12316
12317
|
return;
|
|
12317
12318
|
}
|
|
12318
|
-
|
|
12319
|
+
if (!openModalParams.ignoreFieldSize_) ({
|
|
12319
12320
|
cleanup: cleanup
|
|
12320
|
-
} = $98bd00c15a2e3159$export$828dcdd425fd3231(openModalParams.element);
|
|
12321
|
+
} = $98bd00c15a2e3159$export$828dcdd425fd3231(openModalParams.element));
|
|
12321
12322
|
let dispose_aligner;
|
|
12322
12323
|
/**
|
|
12323
12324
|
* Setting position to fixed is important to make the modal work with align_field.
|
|
@@ -12330,7 +12331,8 @@ const $a24cfef36ef12dc5$export$d86a33413558014e = openModalParams => {
|
|
|
12330
12331
|
};
|
|
12331
12332
|
$3hooq$solidjs.createRoot(dispose => {
|
|
12332
12333
|
dispose_aligner = () => {
|
|
12333
|
-
|
|
12334
|
+
var _cleanup;
|
|
12335
|
+
(_cleanup = cleanup) === null || _cleanup === void 0 || _cleanup();
|
|
12334
12336
|
dispose();
|
|
12335
12337
|
};
|
|
12336
12338
|
$d6ed4dbb6507996d$export$b3ad617e9036868(alignmentSignals_, openModalParams.element, (0, $d6ed4dbb6507996d$export$3f238c96c45e6cc6));
|
package/server/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.
|
|
13
|
+
export const version = "4.0.13";
|
|
14
14
|
export type ModalAlignmentSignals = {
|
|
15
15
|
body_: Signal<JSX.CSSProperties>;
|
|
16
16
|
field_: Signal<JSX.CSSProperties>;
|
|
@@ -1323,6 +1323,10 @@ type CenteredLocation = {
|
|
|
1323
1323
|
type AlignedLocation = {
|
|
1324
1324
|
location: "aligned";
|
|
1325
1325
|
element: HTMLElement;
|
|
1326
|
+
/**
|
|
1327
|
+
* If true, the height of the search field in the modal won't be set to the height of the element we're aligning to
|
|
1328
|
+
*/
|
|
1329
|
+
ignoreFieldSize_?: boolean;
|
|
1326
1330
|
};
|
|
1327
1331
|
/**
|
|
1328
1332
|
* How the modal should be opened.
|
package/server/ES10/index.js
CHANGED
|
@@ -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.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.0.13";
|
|
14
14
|
function $a604a8ffa4e4c03f$export$e417c49320921907(dependency, fetcher) {
|
|
15
15
|
const [promiseOfCurrentFetcherRun, setPromiseOfCurrentFetcherRun] = $b8hua$createSignal();
|
|
16
16
|
const deparallelizedFetcher = $b8hua$deparallelize_no_drop(async dependencyValue => {
|
|
@@ -12214,6 +12214,7 @@ const $169c13c0531d91d2$export$d86a33413558014e = openModalParams => {
|
|
|
12214
12214
|
search: search,
|
|
12215
12215
|
makesNewSearch = true
|
|
12216
12216
|
} = openModalParams;
|
|
12217
|
+
let cleanup;
|
|
12217
12218
|
openModalParams.location || (openModalParams.location = "centered");
|
|
12218
12219
|
if (openModalParams.location === "aligned" && !openModalParams.element) throw new Error("No active search header aligner on the page!");
|
|
12219
12220
|
if (openModalParams.location !== "aligned") {
|
|
@@ -12231,9 +12232,9 @@ const $169c13c0531d91d2$export$d86a33413558014e = openModalParams => {
|
|
|
12231
12232
|
}];
|
|
12232
12233
|
return;
|
|
12233
12234
|
}
|
|
12234
|
-
|
|
12235
|
+
if (!openModalParams.ignoreFieldSize_) ({
|
|
12235
12236
|
cleanup: cleanup
|
|
12236
|
-
} = $37e8c97bb6876197$export$828dcdd425fd3231(openModalParams.element);
|
|
12237
|
+
} = $37e8c97bb6876197$export$828dcdd425fd3231(openModalParams.element));
|
|
12237
12238
|
let dispose_aligner;
|
|
12238
12239
|
/**
|
|
12239
12240
|
* Setting position to fixed is important to make the modal work with align_field.
|
|
@@ -12246,7 +12247,8 @@ const $169c13c0531d91d2$export$d86a33413558014e = openModalParams => {
|
|
|
12246
12247
|
};
|
|
12247
12248
|
$b8hua$createRoot(dispose => {
|
|
12248
12249
|
dispose_aligner = () => {
|
|
12249
|
-
|
|
12250
|
+
var _cleanup;
|
|
12251
|
+
(_cleanup = cleanup) === null || _cleanup === void 0 || _cleanup();
|
|
12250
12252
|
dispose();
|
|
12251
12253
|
};
|
|
12252
12254
|
$1308a7816c3d4f2d$export$b3ad617e9036868(alignmentSignals_, openModalParams.element, (0, $1308a7816c3d4f2d$export$3f238c96c45e6cc6));
|
package/server/latest/index.cjs
CHANGED
|
@@ -88,7 +88,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
|
|
|
88
88
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
89
89
|
$parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
|
|
90
90
|
/*! Depict.ai search and product listing SDK */
|
|
91
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.
|
|
91
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.0.13";
|
|
92
92
|
function $53df95e470b2f8d2$export$e417c49320921907(dependency, fetcher) {
|
|
93
93
|
const [promiseOfCurrentFetcherRun, setPromiseOfCurrentFetcherRun] = $5vyXB$solidjs.createSignal();
|
|
94
94
|
const deparallelizedFetcher = $5vyXB$depictaiutilishared.deparallelize_no_drop(async dependencyValue => {
|
|
@@ -11428,6 +11428,7 @@ const $9c143d25df1fc2a2$export$d86a33413558014e = openModalParams => {
|
|
|
11428
11428
|
search: search,
|
|
11429
11429
|
makesNewSearch = true
|
|
11430
11430
|
} = openModalParams;
|
|
11431
|
+
let cleanup;
|
|
11431
11432
|
openModalParams.location ||= "centered";
|
|
11432
11433
|
if (openModalParams.location === "aligned" && !openModalParams.element) throw new Error("No active search header aligner on the page!");
|
|
11433
11434
|
if (openModalParams.location !== "aligned") {
|
|
@@ -11445,9 +11446,9 @@ const $9c143d25df1fc2a2$export$d86a33413558014e = openModalParams => {
|
|
|
11445
11446
|
}];
|
|
11446
11447
|
return;
|
|
11447
11448
|
}
|
|
11448
|
-
|
|
11449
|
+
if (!openModalParams.ignoreFieldSize_) ({
|
|
11449
11450
|
cleanup: cleanup
|
|
11450
|
-
} = $d8e94ea381ab57fa$export$828dcdd425fd3231(openModalParams.element);
|
|
11451
|
+
} = $d8e94ea381ab57fa$export$828dcdd425fd3231(openModalParams.element));
|
|
11451
11452
|
let dispose_aligner;
|
|
11452
11453
|
/**
|
|
11453
11454
|
* Setting position to fixed is important to make the modal work with align_field.
|
|
@@ -11460,7 +11461,7 @@ const $9c143d25df1fc2a2$export$d86a33413558014e = openModalParams => {
|
|
|
11460
11461
|
};
|
|
11461
11462
|
$5vyXB$solidjs.createRoot(dispose => {
|
|
11462
11463
|
dispose_aligner = () => {
|
|
11463
|
-
cleanup();
|
|
11464
|
+
cleanup?.();
|
|
11464
11465
|
dispose();
|
|
11465
11466
|
};
|
|
11466
11467
|
$fd463ff0edb29915$export$b3ad617e9036868(alignmentSignals_, openModalParams.element, (0, $fd463ff0edb29915$export$3f238c96c45e6cc6));
|
package/server/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.
|
|
13
|
+
export const version = "4.0.13";
|
|
14
14
|
export type ModalAlignmentSignals = {
|
|
15
15
|
body_: Signal<JSX.CSSProperties>;
|
|
16
16
|
field_: Signal<JSX.CSSProperties>;
|
|
@@ -1323,6 +1323,10 @@ type CenteredLocation = {
|
|
|
1323
1323
|
type AlignedLocation = {
|
|
1324
1324
|
location: "aligned";
|
|
1325
1325
|
element: HTMLElement;
|
|
1326
|
+
/**
|
|
1327
|
+
* If true, the height of the search field in the modal won't be set to the height of the element we're aligning to
|
|
1328
|
+
*/
|
|
1329
|
+
ignoreFieldSize_?: boolean;
|
|
1326
1330
|
};
|
|
1327
1331
|
/**
|
|
1328
1332
|
* How the modal should be opened.
|
package/server/latest/index.js
CHANGED
|
@@ -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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.0.13";
|
|
11
11
|
function $136f1d4d6c7ba6ac$export$e417c49320921907(dependency, fetcher) {
|
|
12
12
|
const [promiseOfCurrentFetcherRun, setPromiseOfCurrentFetcherRun] = $i7OB2$createSignal();
|
|
13
13
|
const deparallelizedFetcher = $i7OB2$deparallelize_no_drop(async dependencyValue => {
|
|
@@ -11347,6 +11347,7 @@ const $6891c018a834cfdd$export$d86a33413558014e = openModalParams => {
|
|
|
11347
11347
|
search: search,
|
|
11348
11348
|
makesNewSearch = true
|
|
11349
11349
|
} = openModalParams;
|
|
11350
|
+
let cleanup;
|
|
11350
11351
|
openModalParams.location ||= "centered";
|
|
11351
11352
|
if (openModalParams.location === "aligned" && !openModalParams.element) throw new Error("No active search header aligner on the page!");
|
|
11352
11353
|
if (openModalParams.location !== "aligned") {
|
|
@@ -11364,9 +11365,9 @@ const $6891c018a834cfdd$export$d86a33413558014e = openModalParams => {
|
|
|
11364
11365
|
}];
|
|
11365
11366
|
return;
|
|
11366
11367
|
}
|
|
11367
|
-
|
|
11368
|
+
if (!openModalParams.ignoreFieldSize_) ({
|
|
11368
11369
|
cleanup: cleanup
|
|
11369
|
-
} = $4ca91518c9a35379$export$828dcdd425fd3231(openModalParams.element);
|
|
11370
|
+
} = $4ca91518c9a35379$export$828dcdd425fd3231(openModalParams.element));
|
|
11370
11371
|
let dispose_aligner;
|
|
11371
11372
|
/**
|
|
11372
11373
|
* Setting position to fixed is important to make the modal work with align_field.
|
|
@@ -11379,7 +11380,7 @@ const $6891c018a834cfdd$export$d86a33413558014e = openModalParams => {
|
|
|
11379
11380
|
};
|
|
11380
11381
|
$i7OB2$createRoot(dispose => {
|
|
11381
11382
|
dispose_aligner = () => {
|
|
11382
|
-
cleanup();
|
|
11383
|
+
cleanup?.();
|
|
11383
11384
|
dispose();
|
|
11384
11385
|
};
|
|
11385
11386
|
$b6d5529b253681aa$export$b3ad617e9036868(alignmentSignals_, openModalParams.element, (0, $b6d5529b253681aa$export$3f238c96c45e6cc6));
|