@depict-ai/ui 0.0.74 → 0.0.75
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 +6 -6
- package/dist/main.js +5 -3
- package/dist/module.js +5 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,11 @@ import { SearchSuggestionsResponse, CategorySuggestion } from "@depict-ai/types/
|
|
|
7
7
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
8
8
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
9
9
|
import { ProductListingResponse } from "@depict-ai/types/api/ProductListingResponse";
|
|
10
|
-
export const version = "0.0.
|
|
10
|
+
export const version = "0.0.75";
|
|
11
|
+
export type OnNavigation = ((options: {
|
|
12
|
+
is_replace: boolean;
|
|
13
|
+
new_url: URL;
|
|
14
|
+
}) => void) | "hard_navigation";
|
|
11
15
|
type ExclusiveId = {
|
|
12
16
|
categoryId: string;
|
|
13
17
|
productId?: undefined;
|
|
@@ -200,10 +204,6 @@ export class ProductCardError extends SDKError {
|
|
|
200
204
|
* @returns A cleanup function to manually re-enable scrolling.
|
|
201
205
|
*/
|
|
202
206
|
export function disable_scrolling(): () => void;
|
|
203
|
-
type OnNavigation = ((options: {
|
|
204
|
-
is_replace: boolean;
|
|
205
|
-
new_url: URL;
|
|
206
|
-
}) => void) | "hard_navigation";
|
|
207
207
|
export const CategoryTitle: ({ category_title_, product_count_, }: {
|
|
208
208
|
category_title_: Accessor<string | undefined>;
|
|
209
209
|
product_count_: JSX.Element;
|
|
@@ -312,7 +312,7 @@ type ConstructorOptions<T extends Display> = {
|
|
|
312
312
|
bottom_distance_under_modal_?: Accessor<number | undefined>;
|
|
313
313
|
render_instant_card?: InstantCard<T>;
|
|
314
314
|
};
|
|
315
|
-
type OpenModalArguments = [
|
|
315
|
+
export type OpenModalArguments = [
|
|
316
316
|
options_for_modal?: {
|
|
317
317
|
style_props_?: Signal<JSX.CSSProperties>;
|
|
318
318
|
closing_animation_?: () => Promise<any>;
|
package/dist/main.js
CHANGED
|
@@ -35,7 +35,7 @@ $parcel$export(module.exports, "solid_format_price", () => $5fc9fc23df1591db$exp
|
|
|
35
35
|
$parcel$export(module.exports, "connect_search_field_height_to_aligner_height", () => $246e3e89a097f014$export$828dcdd425fd3231);
|
|
36
36
|
$parcel$export(module.exports, "PageReplacer", () => $37e96a5ebc768cc7$export$3ccaa27d81dd8556);
|
|
37
37
|
$parcel$export(module.exports, "version", () => $ae93561d5649a847$export$83d89fbfd8236492);
|
|
38
|
-
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.
|
|
38
|
+
/*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.75";
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -5725,11 +5725,13 @@ const $67892c03cd3dfa66$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$46MJV$solid
|
|
|
5725
5725
|
function $67892c03cd3dfa66$export$d757d54550ebfb3d({ category_suggestion_: category_suggestion_ , router_: router_ }) {
|
|
5726
5726
|
return (()=>{
|
|
5727
5727
|
const _el$ = $67892c03cd3dfa66$var$_tmpl$2.cloneNode(true), _el$2 = _el$.firstChild;
|
|
5728
|
-
(0, $46MJV$solidjsweb.addEventListener)(_el$, "click", (0, $46MJV$depictaiutilishared.catchify)((e)=>
|
|
5728
|
+
(0, $46MJV$solidjsweb.addEventListener)(_el$, "click", (0, $46MJV$depictaiutilishared.catchify)((e)=>{
|
|
5729
|
+
router_.navigate_.go_to_({
|
|
5729
5730
|
new_url_: category_suggestion_().page_url,
|
|
5730
5731
|
is_replace_: false,
|
|
5731
5732
|
event_: e
|
|
5732
|
-
})
|
|
5733
|
+
});
|
|
5734
|
+
}), true);
|
|
5733
5735
|
(0, $46MJV$solidjsweb.insert)(_el$2, ()=>category_suggestion_().title);
|
|
5734
5736
|
(0, $46MJV$solidjsweb.insert)(_el$, (0, $46MJV$solidjsweb.createComponent)((0, $46MJV$solidjs.Show), {
|
|
5735
5737
|
get when () {
|
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, createReaction as $g9l4l$createReaction, on as $g9l4l$on, ErrorBoundary as $g9l4l$ErrorBoundary, Index as $g9l4l$Index, For as $g9l4l$For} from "solid-js";
|
|
4
4
|
import {compressToBase64 as $g9l4l$compressToBase64, decompressFromBase64 as $g9l4l$decompressFromBase64} from "lz-string";
|
|
5
5
|
|
|
6
|
-
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.
|
|
6
|
+
/*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.75";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -5693,11 +5693,13 @@ const $7a7079d66c12b788$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$g9l4l$templ
|
|
|
5693
5693
|
function $7a7079d66c12b788$export$d757d54550ebfb3d({ category_suggestion_: category_suggestion_ , router_: router_ }) {
|
|
5694
5694
|
return (()=>{
|
|
5695
5695
|
const _el$ = $7a7079d66c12b788$var$_tmpl$2.cloneNode(true), _el$2 = _el$.firstChild;
|
|
5696
|
-
(0, $g9l4l$addEventListener)(_el$, "click", (0, $g9l4l$catchify)((e)=>
|
|
5696
|
+
(0, $g9l4l$addEventListener)(_el$, "click", (0, $g9l4l$catchify)((e)=>{
|
|
5697
|
+
router_.navigate_.go_to_({
|
|
5697
5698
|
new_url_: category_suggestion_().page_url,
|
|
5698
5699
|
is_replace_: false,
|
|
5699
5700
|
event_: e
|
|
5700
|
-
})
|
|
5701
|
+
});
|
|
5702
|
+
}), true);
|
|
5701
5703
|
(0, $g9l4l$insert)(_el$2, ()=>category_suggestion_().title);
|
|
5702
5704
|
(0, $g9l4l$insert)(_el$, (0, $g9l4l$createComponent)((0, $g9l4l$Show), {
|
|
5703
5705
|
get when () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
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
|
"source": [
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"ts-jest": "^29.0.3"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@depict-ai/plp-styling": "^0.0.
|
|
89
|
-
"@depict-ai/types": "^0.0.
|
|
90
|
-
"@depict-ai/utilishared": "^0.0.
|
|
88
|
+
"@depict-ai/plp-styling": "^0.0.37",
|
|
89
|
+
"@depict-ai/types": "^0.0.27",
|
|
90
|
+
"@depict-ai/utilishared": "^0.0.79",
|
|
91
91
|
"lz-string": "^1.4.4",
|
|
92
92
|
"solid-js": "^1.6.2"
|
|
93
93
|
},
|