@depict-ai/ui 0.0.23 → 0.0.25
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 -3
- package/dist/main.js +2 -3
- package/dist/module.js +2 -3
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,7 @@ import { ProductListingRequest } from "@depict-ai/types/api/ProductListingReques
|
|
|
8
8
|
import { ProductListingResponse, BaseCategoryDisplay } from "@depict-ai/types/api/ProductListingResponse";
|
|
9
9
|
import { Accessor, JSX, Setter, Signal } from "solid-js";
|
|
10
10
|
import { JSX as _JSX1 } from "solid-js/types/jsx";
|
|
11
|
-
|
|
12
|
-
export const version = "0.0.23";
|
|
11
|
+
export const version = "0.0.25";
|
|
13
12
|
/**
|
|
14
13
|
* PLP internationalisation shared between search and category listing
|
|
15
14
|
*/
|
|
@@ -272,7 +271,7 @@ export function SearchPage({ depict_search, include_input_field, grid_spacing, c
|
|
|
272
271
|
};
|
|
273
272
|
grid_spacing: SDKGridSpacing;
|
|
274
273
|
cols_at_size: SDKColsAtSize;
|
|
275
|
-
product_card_template: (display: Display, info:
|
|
274
|
+
product_card_template: (display: Display, info: InfoForProcessing) => Promise<Node_Array> | Node_Array;
|
|
276
275
|
get_product_id: (url?: string) => string | Promise<string>;
|
|
277
276
|
extra_depict_options?: {
|
|
278
277
|
pre_processors?: RR_PreProcessor[];
|
package/dist/main.js
CHANGED
|
@@ -31,7 +31,7 @@ $parcel$export(module.exports, "solid_format_price", () => $5fc9fc23df1591db$exp
|
|
|
31
31
|
$parcel$export(module.exports, "PageReplacer", () => $37e96a5ebc768cc7$export$3ccaa27d81dd8556);
|
|
32
32
|
$parcel$export(module.exports, "version", () => $ae93561d5649a847$export$83d89fbfd8236492);
|
|
33
33
|
/*! Depict.ai search and product listing SDK */
|
|
34
|
-
const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.
|
|
34
|
+
const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.25";
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -4797,14 +4797,13 @@ class $b5bcdaaacb8b81f2$export$f34314aa9505732e {
|
|
|
4797
4797
|
return;
|
|
4798
4798
|
try {
|
|
4799
4799
|
on_navigation(d.page_url, e, d);
|
|
4800
|
+
e.preventDefault();
|
|
4800
4801
|
} catch (e1) {
|
|
4801
4802
|
queueMicrotask(()=>{
|
|
4802
4803
|
// make sure to throw into the global scope if on_navigation throws
|
|
4803
4804
|
throw e1;
|
|
4804
4805
|
});
|
|
4805
|
-
return;
|
|
4806
4806
|
}
|
|
4807
|
-
e.preventDefault();
|
|
4808
4807
|
});
|
|
4809
4808
|
$b5bcdaaacb8b81f2$var$privately_shared_properties.set(this, {
|
|
4810
4809
|
state_: state_,
|
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.25";
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -4769,14 +4769,13 @@ class $a45c51e5e7aeb7f1$export$f34314aa9505732e {
|
|
|
4769
4769
|
return;
|
|
4770
4770
|
try {
|
|
4771
4771
|
on_navigation(d.page_url, e, d);
|
|
4772
|
+
e.preventDefault();
|
|
4772
4773
|
} catch (e1) {
|
|
4773
4774
|
queueMicrotask(()=>{
|
|
4774
4775
|
// make sure to throw into the global scope if on_navigation throws
|
|
4775
4776
|
throw e1;
|
|
4776
4777
|
});
|
|
4777
|
-
return;
|
|
4778
4778
|
}
|
|
4779
|
-
e.preventDefault();
|
|
4780
4779
|
});
|
|
4781
4780
|
$a45c51e5e7aeb7f1$var$privately_shared_properties.set(this, {
|
|
4782
4781
|
state_: state_,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": [
|
|
6
6
|
"src/index.ts",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
},
|
|
53
53
|
"exports": {
|
|
54
54
|
".": {
|
|
55
|
-
"import": "./module.js",
|
|
56
|
-
"require": "./main.js",
|
|
55
|
+
"import": "./dist/module.js",
|
|
56
|
+
"require": "./dist/main.js",
|
|
57
57
|
"types": "./dist/index.d.ts",
|
|
58
|
-
"default": "./module.js"
|
|
58
|
+
"default": "./dist/module.js"
|
|
59
59
|
},
|
|
60
|
-
"./locales
|
|
60
|
+
"./locales": {
|
|
61
61
|
"types": "./locales/index.d.ts",
|
|
62
62
|
"import": "./locales/index.js",
|
|
63
63
|
"require": "./locales/require.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@depict-ai/utilishared": "^0.0.
|
|
68
|
+
"@depict-ai/utilishared": "^0.0.23",
|
|
69
69
|
"solid-js": "^1.6.2"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|