@depict-ai/ui 0.0.36 → 0.0.38
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/dist/index.d.ts +5 -3
- package/dist/main.js +17 -3
- package/dist/module.js +17 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestions
|
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
10
|
import { ProductListingResponse, BaseCategoryDisplay } from "@depict-ai/types/api/ProductListingResponse";
|
|
11
11
|
import { JSX as _JSX1 } from "solid-js/types/jsx";
|
|
12
|
-
export const version = "0.0.
|
|
12
|
+
export const version = "0.0.38";
|
|
13
13
|
type ExclusiveId = {
|
|
14
14
|
categoryId: string;
|
|
15
15
|
productId?: undefined;
|
|
@@ -342,11 +342,13 @@ export function SearchPage({ depict_search, include_input_field, grid_spacing, c
|
|
|
342
342
|
recommendations_cols_at_size?: SDKColsAtSize;
|
|
343
343
|
};
|
|
344
344
|
}): Node_Array;
|
|
345
|
-
|
|
345
|
+
interface SearchFieldParams {
|
|
346
346
|
depict_search: DepictSearch;
|
|
347
347
|
modal_dispose_handler?: VoidFunction;
|
|
348
348
|
click_handler?: (this: HTMLDivElement, ev: MouseEvent) => any;
|
|
349
|
-
|
|
349
|
+
aligner_ref?: HTMLElement | null;
|
|
350
|
+
}
|
|
351
|
+
export function SearchField({ depict_search, modal_dispose_handler, click_handler, aligner_ref }: SearchFieldParams): Node_Array;
|
|
350
352
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
351
353
|
export interface PageReplacer {
|
|
352
354
|
readonly render_: (is_prerendering: boolean) => Node_Array;
|
package/dist/main.js
CHANGED
|
@@ -33,7 +33,7 @@ $parcel$export(module.exports, "solid_format_price", () => $5fc9fc23df1591db$exp
|
|
|
33
33
|
$parcel$export(module.exports, "PageReplacer", () => $37e96a5ebc768cc7$export$3ccaa27d81dd8556);
|
|
34
34
|
$parcel$export(module.exports, "version", () => $ae93561d5649a847$export$83d89fbfd8236492);
|
|
35
35
|
/*! Depict.ai search and product listing SDK */
|
|
36
|
-
const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.
|
|
36
|
+
const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.38";
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
@@ -7342,6 +7342,7 @@ function $93779a41dce11249$export$a54ec244c8863715(opts) {
|
|
|
7342
7342
|
|
|
7343
7343
|
|
|
7344
7344
|
|
|
7345
|
+
|
|
7345
7346
|
const $79fbf145b15af988$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solidjsweb.template)(`<div class="depict plp search"></div>`, 2);
|
|
7346
7347
|
/**
|
|
7347
7348
|
* Type for the private properties that are shared between the different exported search SDK wrapper functions. SDK users are not allowed to change/access these, they're an internal implementation detail.
|
|
@@ -7636,7 +7637,7 @@ function $79fbf145b15af988$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7636
7637
|
});
|
|
7637
7638
|
}, "Entire SearchPage failed");
|
|
7638
7639
|
}
|
|
7639
|
-
function $79fbf145b15af988$export$b94867ecbd698f21({ depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler }) {
|
|
7640
|
+
function $79fbf145b15af988$export$b94867ecbd698f21({ depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler , aligner_ref: aligner_ref }) {
|
|
7640
7641
|
const shared_properties = $79fbf145b15af988$var$get_shared_properties(depict_search);
|
|
7641
7642
|
return (0, $f27b0b326e0a87e2$export$23fca46f3143581f)(()=>{
|
|
7642
7643
|
const input = (0, $46MJV$solidjsweb.createComponent)((0, $231c39725f8fde87$export$ff21851bb5d30e15), {
|
|
@@ -7672,7 +7673,20 @@ function $79fbf145b15af988$export$b94867ecbd698f21({ depict_search: depict_searc
|
|
|
7672
7673
|
const style_props_ = (0, $46MJV$solidjs.createSignal)({
|
|
7673
7674
|
position: "fixed"
|
|
7674
7675
|
});
|
|
7675
|
-
(
|
|
7676
|
+
if (aligner_ref) {
|
|
7677
|
+
const style_element = document.createElement("style");
|
|
7678
|
+
document.head.append(style_element);
|
|
7679
|
+
const resize_observer = new ResizeObserver((0, $46MJV$depictaiutilishared.catchify)(()=>{
|
|
7680
|
+
const styles = (0, $d3c94b3b96557917$export$1233ca167bf71f9a)({
|
|
7681
|
+
".depict.plp .depict-search-modal .query-input": {
|
|
7682
|
+
"height": `${aligner_ref?.clientHeight}px`
|
|
7683
|
+
}
|
|
7684
|
+
});
|
|
7685
|
+
style_element.replaceChildren(styles);
|
|
7686
|
+
}));
|
|
7687
|
+
resize_observer.observe(aligner_ref);
|
|
7688
|
+
(0, $67b60b572b7b7059$export$b3ad617e9036868)(style_props_, aligner_ref, undefined, false, "top");
|
|
7689
|
+
} else (0, $67b60b572b7b7059$export$b3ad617e9036868)(style_props_, input);
|
|
7676
7690
|
return [
|
|
7677
7691
|
(()=>{
|
|
7678
7692
|
const _el$ = $79fbf145b15af988$var$_tmpl$.cloneNode(true);
|
package/dist/module.js
CHANGED
|
@@ -3,7 +3,7 @@ import {template as $g9l4l$template, insert as $g9l4l$insert, effect as $g9l4l$e
|
|
|
3
3
|
import {createSignal as $g9l4l$createSignal, onCleanup as $g9l4l$onCleanup, createComputed as $g9l4l$createComputed, createEffect as $g9l4l$createEffect, untrack as $g9l4l$untrack, batch as $g9l4l$batch, createResource as $g9l4l$createResource, createMemo as $g9l4l$createMemo, Show as $g9l4l$Show, createRenderEffect as $g9l4l$createRenderEffect, runWithOwner as $g9l4l$runWithOwner, createRoot as $g9l4l$createRoot, getOwner as $g9l4l$getOwner, on as $g9l4l$on, Index as $g9l4l$Index, For as $g9l4l$For, ErrorBoundary as $g9l4l$ErrorBoundary} from "solid-js";
|
|
4
4
|
|
|
5
5
|
/*! Depict.ai search and product listing SDK */
|
|
6
|
-
const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.
|
|
6
|
+
const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.38";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -7312,6 +7312,7 @@ function $b76e8f62b1f313ef$export$a54ec244c8863715(opts) {
|
|
|
7312
7312
|
|
|
7313
7313
|
|
|
7314
7314
|
|
|
7315
|
+
|
|
7315
7316
|
const $540e930c58500cbe$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$template)(`<div class="depict plp search"></div>`, 2);
|
|
7316
7317
|
/**
|
|
7317
7318
|
* Type for the private properties that are shared between the different exported search SDK wrapper functions. SDK users are not allowed to change/access these, they're an internal implementation detail.
|
|
@@ -7606,7 +7607,7 @@ function $540e930c58500cbe$export$f2dc7e4e4aa11abb({ depict_search: depict_searc
|
|
|
7606
7607
|
});
|
|
7607
7608
|
}, "Entire SearchPage failed");
|
|
7608
7609
|
}
|
|
7609
|
-
function $540e930c58500cbe$export$b94867ecbd698f21({ depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler }) {
|
|
7610
|
+
function $540e930c58500cbe$export$b94867ecbd698f21({ depict_search: depict_search , modal_dispose_handler: modal_dispose_handler , click_handler: click_handler , aligner_ref: aligner_ref }) {
|
|
7610
7611
|
const shared_properties = $540e930c58500cbe$var$get_shared_properties(depict_search);
|
|
7611
7612
|
return (0, $c7f938ac40924f3b$export$23fca46f3143581f)(()=>{
|
|
7612
7613
|
const input = (0, $g9l4l$createComponent)((0, $3a2af5e36c43cf2f$export$ff21851bb5d30e15), {
|
|
@@ -7642,7 +7643,20 @@ function $540e930c58500cbe$export$b94867ecbd698f21({ depict_search: depict_searc
|
|
|
7642
7643
|
const style_props_ = (0, $g9l4l$createSignal)({
|
|
7643
7644
|
position: "fixed"
|
|
7644
7645
|
});
|
|
7645
|
-
(
|
|
7646
|
+
if (aligner_ref) {
|
|
7647
|
+
const style_element = document.createElement("style");
|
|
7648
|
+
document.head.append(style_element);
|
|
7649
|
+
const resize_observer = new ResizeObserver((0, $g9l4l$catchify)(()=>{
|
|
7650
|
+
const styles = (0, $246aa49a8f85c7f3$export$1233ca167bf71f9a)({
|
|
7651
|
+
".depict.plp .depict-search-modal .query-input": {
|
|
7652
|
+
"height": `${aligner_ref?.clientHeight}px`
|
|
7653
|
+
}
|
|
7654
|
+
});
|
|
7655
|
+
style_element.replaceChildren(styles);
|
|
7656
|
+
}));
|
|
7657
|
+
resize_observer.observe(aligner_ref);
|
|
7658
|
+
(0, $079defea521d5e2a$export$b3ad617e9036868)(style_props_, aligner_ref, undefined, false, "top");
|
|
7659
|
+
} else (0, $079defea521d5e2a$export$b3ad617e9036868)(style_props_, input);
|
|
7646
7660
|
return [
|
|
7647
7661
|
(()=>{
|
|
7648
7662
|
const _el$ = $540e930c58500cbe$var$_tmpl$.cloneNode(true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": [
|
|
6
6
|
"src/index.ts",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"ts-jest": "^29.0.3"
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@depict-ai/utilishared": "^0.0.
|
|
85
|
+
"@depict-ai/utilishared": "^0.0.36",
|
|
86
86
|
"solid-js": "^1.6.2"
|
|
87
87
|
},
|
|
88
88
|
"types": "dist/index.d.ts"
|