@depict-ai/ui 0.0.63 → 0.0.65
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 +2 -2
- package/dist/main.js +4 -3
- package/dist/module.js +4 -3
- package/package.json +4 -4
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.65";
|
|
13
13
|
type ExclusiveId = {
|
|
14
14
|
categoryId: string;
|
|
15
15
|
productId?: undefined;
|
|
@@ -160,7 +160,7 @@ export class DepictAPI {
|
|
|
160
160
|
#private;
|
|
161
161
|
constructor(get_metadata?: () => Promise<{
|
|
162
162
|
[k: string]: string;
|
|
163
|
-
}>);
|
|
163
|
+
} | undefined>);
|
|
164
164
|
suggest(input_req: SearchSuggestionsRequest): Promise<SearchSuggestionsResponse & {
|
|
165
165
|
failed?: true;
|
|
166
166
|
}>;
|
package/dist/main.js
CHANGED
|
@@ -34,7 +34,7 @@ $parcel$export(module.exports, "solid_format_price", () => $5fc9fc23df1591db$exp
|
|
|
34
34
|
$parcel$export(module.exports, "connect_search_field_height_to_aligner_height", () => $246e3e89a097f014$export$828dcdd425fd3231);
|
|
35
35
|
$parcel$export(module.exports, "PageReplacer", () => $37e96a5ebc768cc7$export$3ccaa27d81dd8556);
|
|
36
36
|
$parcel$export(module.exports, "version", () => $ae93561d5649a847$export$83d89fbfd8236492);
|
|
37
|
-
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.
|
|
37
|
+
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.65";
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -153,8 +153,9 @@ class $9ce64f69303c371e$export$e015ed2f2950f2e3 {
|
|
|
153
153
|
async #cached_post_request(endpoint1, input_req, fallback_response) {
|
|
154
154
|
const cache_obj = this.#get_cache_obj_for_endpoint(endpoint1);
|
|
155
155
|
const with_ids = $9ce64f69303c371e$var$add_ids_to_request(input_req);
|
|
156
|
-
const
|
|
157
|
-
|
|
156
|
+
const metaData = await this.#get_metadata?.();
|
|
157
|
+
const request = metaData ? Object.assign(with_ids, {
|
|
158
|
+
metadata: metaData
|
|
158
159
|
}) : with_ids;
|
|
159
160
|
const body = JSON.stringify((0, $46MJV$depictaiutilishared.sort_obj)(request));
|
|
160
161
|
const response_from_cache = cache_obj.cache_[body]?.deref?.();
|
package/dist/module.js
CHANGED
|
@@ -2,7 +2,7 @@ import {add_to_version_info as $g9l4l$add_to_version_info, fetch_recs as $g9l4l$
|
|
|
2
2
|
import {template as $g9l4l$template, insert as $g9l4l$insert, effect as $g9l4l$effect, setAttribute as $g9l4l$setAttribute, createComponent as $g9l4l$createComponent, use as $g9l4l$use, addEventListener as $g9l4l$addEventListener, delegateEvents as $g9l4l$delegateEvents, spread as $g9l4l$spread, memo as $g9l4l$memo, style as $g9l4l$style, mergeProps as $g9l4l$mergeProps, classList as $g9l4l$classList, className as $g9l4l$className} from "solid-js/web";
|
|
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
|
-
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.65";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -121,8 +121,9 @@ class $3846bb34098c738f$export$e015ed2f2950f2e3 {
|
|
|
121
121
|
async #cached_post_request(endpoint1, input_req, fallback_response) {
|
|
122
122
|
const cache_obj = this.#get_cache_obj_for_endpoint(endpoint1);
|
|
123
123
|
const with_ids = $3846bb34098c738f$var$add_ids_to_request(input_req);
|
|
124
|
-
const
|
|
125
|
-
|
|
124
|
+
const metaData = await this.#get_metadata?.();
|
|
125
|
+
const request = metaData ? Object.assign(with_ids, {
|
|
126
|
+
metadata: metaData
|
|
126
127
|
}) : with_ids;
|
|
127
128
|
const body = JSON.stringify((0, $g9l4l$sort_obj)(request));
|
|
128
129
|
const response_from_cache = cache_obj.cache_[body]?.deref?.();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": [
|
|
6
6
|
"src/index.ts",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"ts-jest": "^29.0.3"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@depict-ai/plp-styling": "^0.0.
|
|
87
|
-
"@depict-ai/types": "^0.0.
|
|
88
|
-
"@depict-ai/utilishared": "^0.0.
|
|
86
|
+
"@depict-ai/plp-styling": "^0.0.26",
|
|
87
|
+
"@depict-ai/types": "^0.0.17",
|
|
88
|
+
"@depict-ai/utilishared": "^0.0.62",
|
|
89
89
|
"solid-js": "^1.6.2"
|
|
90
90
|
},
|
|
91
91
|
"types": "dist/index.d.ts"
|