@depict-ai/ui 2.0.0 → 2.0.1
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 +12 -3
- package/ES10/index.d.ts +2 -1
- package/ES10/index.js +12 -3
- package/latest/index.cjs +12 -3
- package/latest/index.d.ts +2 -1
- package/latest/index.js +12 -3
- package/package.json +2 -2
- package/server/ES10/index.cjs +12 -3
- package/server/ES10/index.d.ts +2 -1
- package/server/ES10/index.js +12 -3
- package/server/latest/index.cjs +12 -3
- package/server/latest/index.d.ts +2 -1
- package/server/latest/index.js +12 -3
package/ES10/index.cjs
CHANGED
|
@@ -66,7 +66,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
66
66
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
67
67
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
68
68
|
/*! Depict.ai search and product listing SDK */
|
|
69
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.
|
|
69
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.1";
|
|
70
70
|
const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
|
|
71
71
|
const cols_at_size = [];
|
|
72
72
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -762,9 +762,18 @@ function $41227f10ad680afd$export$9756467d34d91cdb(props) {
|
|
|
762
762
|
return $d05611ff6b8c8357$export$23fca46f3143581f(() => {
|
|
763
763
|
const rows_object_ = $52FdA$solidjs.createMemo(() => {
|
|
764
764
|
var _view_more_button$row;
|
|
765
|
-
const
|
|
766
|
-
|
|
765
|
+
const {
|
|
766
|
+
view_more_button: view_more_button,
|
|
767
|
+
max_rows: max_rows
|
|
768
|
+
} = props;
|
|
769
|
+
if (!view_more_button) {
|
|
770
|
+
if (max_rows) return {
|
|
771
|
+
max_rows: max_rows
|
|
772
|
+
};
|
|
773
|
+
return "all";
|
|
774
|
+
}
|
|
767
775
|
return {
|
|
776
|
+
max_rows: max_rows,
|
|
768
777
|
start_rows: view_more_button.start_rows,
|
|
769
778
|
rows_per_click: (_view_more_button$row = view_more_button.rows_per_click) !== null && _view_more_button$row !== void 0 ? _view_more_button$row : 2,
|
|
770
779
|
button: (() => {
|
package/ES10/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
|
-
export const version = "2.0.
|
|
10
|
+
export const version = "2.0.1";
|
|
11
11
|
export type SDKGridSpacing = string | {
|
|
12
12
|
horizontal: string;
|
|
13
13
|
vertical: string;
|
|
@@ -117,6 +117,7 @@ type RecommendationGridBaseProps<T extends Display> = {
|
|
|
117
117
|
start_rows?: number;
|
|
118
118
|
rows_per_click?: number;
|
|
119
119
|
};
|
|
120
|
+
max_rows?: number;
|
|
120
121
|
};
|
|
121
122
|
/**
|
|
122
123
|
* Render a grid with provided recommendations. displayTransformers will not be applied for this since you yourself provide the displays. Options are reactive.
|
package/ES10/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
|
|
|
8
8
|
/*! Depict.ai search and product listing SDK */
|
|
9
9
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
10
10
|
register_es_version("ui", "ES10");
|
|
11
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.
|
|
11
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.1";
|
|
12
12
|
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
13
13
|
const cols_at_size = [];
|
|
14
14
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -704,9 +704,18 @@ function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
|
|
|
704
704
|
return $83e8cf2c0b87a58a$export$23fca46f3143581f(() => {
|
|
705
705
|
const rows_object_ = $8tj43$createMemo(() => {
|
|
706
706
|
var _view_more_button$row;
|
|
707
|
-
const
|
|
708
|
-
|
|
707
|
+
const {
|
|
708
|
+
view_more_button: view_more_button,
|
|
709
|
+
max_rows: max_rows
|
|
710
|
+
} = props;
|
|
711
|
+
if (!view_more_button) {
|
|
712
|
+
if (max_rows) return {
|
|
713
|
+
max_rows: max_rows
|
|
714
|
+
};
|
|
715
|
+
return "all";
|
|
716
|
+
}
|
|
709
717
|
return {
|
|
718
|
+
max_rows: max_rows,
|
|
710
719
|
start_rows: view_more_button.start_rows,
|
|
711
720
|
rows_per_click: (_view_more_button$row = view_more_button.rows_per_click) !== null && _view_more_button$row !== void 0 ? _view_more_button$row : 2,
|
|
712
721
|
button: (() => {
|
package/latest/index.cjs
CHANGED
|
@@ -60,7 +60,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
60
60
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
61
61
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
62
62
|
/*! Depict.ai search and product listing SDK */
|
|
63
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.
|
|
63
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.1";
|
|
64
64
|
const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
|
|
65
65
|
const cols_at_size = [];
|
|
66
66
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -705,9 +705,18 @@ const $1f8dbf7e28b3eff2$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b
|
|
|
705
705
|
function $1f8dbf7e28b3eff2$export$9756467d34d91cdb(props) {
|
|
706
706
|
return $95837413165cc2df$export$23fca46f3143581f(() => {
|
|
707
707
|
const rows_object_ = $gVhhF$solidjs.createMemo(() => {
|
|
708
|
-
const
|
|
709
|
-
|
|
708
|
+
const {
|
|
709
|
+
view_more_button: view_more_button,
|
|
710
|
+
max_rows: max_rows
|
|
711
|
+
} = props;
|
|
712
|
+
if (!view_more_button) {
|
|
713
|
+
if (max_rows) return {
|
|
714
|
+
max_rows: max_rows
|
|
715
|
+
};
|
|
716
|
+
return "all";
|
|
717
|
+
}
|
|
710
718
|
return {
|
|
719
|
+
max_rows: max_rows,
|
|
711
720
|
start_rows: view_more_button.start_rows,
|
|
712
721
|
rows_per_click: view_more_button.rows_per_click ?? 2,
|
|
713
722
|
button: (() => {
|
package/latest/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
|
-
export const version = "2.0.
|
|
10
|
+
export const version = "2.0.1";
|
|
11
11
|
export type SDKGridSpacing = string | {
|
|
12
12
|
horizontal: string;
|
|
13
13
|
vertical: string;
|
|
@@ -117,6 +117,7 @@ type RecommendationGridBaseProps<T extends Display> = {
|
|
|
117
117
|
start_rows?: number;
|
|
118
118
|
rows_per_click?: number;
|
|
119
119
|
};
|
|
120
|
+
max_rows?: number;
|
|
120
121
|
};
|
|
121
122
|
/**
|
|
122
123
|
* Render a grid with provided recommendations. displayTransformers will not be applied for this since you yourself provide the displays. Options are reactive.
|
package/latest/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createMemo as $9HbP8$createMemo, createResource as $9HbP8$createResourc
|
|
|
5
5
|
/*! Depict.ai search and product listing SDK */
|
|
6
6
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
7
7
|
register_es_version("ui", "latest");
|
|
8
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.
|
|
8
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.1";
|
|
9
9
|
const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
10
10
|
const cols_at_size = [];
|
|
11
11
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -650,9 +650,18 @@ const $9ea5383493360761$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class
|
|
|
650
650
|
function $9ea5383493360761$export$9756467d34d91cdb(props) {
|
|
651
651
|
return $16b52438165aafe2$export$23fca46f3143581f(() => {
|
|
652
652
|
const rows_object_ = $9HbP8$createMemo(() => {
|
|
653
|
-
const
|
|
654
|
-
|
|
653
|
+
const {
|
|
654
|
+
view_more_button: view_more_button,
|
|
655
|
+
max_rows: max_rows
|
|
656
|
+
} = props;
|
|
657
|
+
if (!view_more_button) {
|
|
658
|
+
if (max_rows) return {
|
|
659
|
+
max_rows: max_rows
|
|
660
|
+
};
|
|
661
|
+
return "all";
|
|
662
|
+
}
|
|
655
663
|
return {
|
|
664
|
+
max_rows: max_rows,
|
|
656
665
|
start_rows: view_more_button.start_rows,
|
|
657
666
|
rows_per_click: view_more_button.rows_per_click ?? 2,
|
|
658
667
|
button: (() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
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",
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
237
237
|
"@babel/runtime": "latest",
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
|
-
"@depict-ai/plp-styling": "^1.2.
|
|
239
|
+
"@depict-ai/plp-styling": "^1.2.1",
|
|
240
240
|
"@depict-ai/types": "^1.0.39",
|
|
241
241
|
"@depict-ai/utilishared": "^1.0.41",
|
|
242
242
|
"solid-js": "^1.7.3"
|
package/server/ES10/index.cjs
CHANGED
|
@@ -66,7 +66,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
66
66
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
67
67
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
68
68
|
/*! Depict.ai search and product listing SDK */
|
|
69
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.
|
|
69
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "2.0.1";
|
|
70
70
|
const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
|
|
71
71
|
const cols_at_size = [];
|
|
72
72
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -692,9 +692,18 @@ function $41227f10ad680afd$export$9756467d34d91cdb(props) {
|
|
|
692
692
|
return $d05611ff6b8c8357$export$23fca46f3143581f(() => {
|
|
693
693
|
const rows_object_ = $3hooq$solidjs.createMemo(() => {
|
|
694
694
|
var _view_more_button$row;
|
|
695
|
-
const
|
|
696
|
-
|
|
695
|
+
const {
|
|
696
|
+
view_more_button: view_more_button,
|
|
697
|
+
max_rows: max_rows
|
|
698
|
+
} = props;
|
|
699
|
+
if (!view_more_button) {
|
|
700
|
+
if (max_rows) return {
|
|
701
|
+
max_rows: max_rows
|
|
702
|
+
};
|
|
703
|
+
return "all";
|
|
704
|
+
}
|
|
697
705
|
return {
|
|
706
|
+
max_rows: max_rows,
|
|
698
707
|
start_rows: view_more_button.start_rows,
|
|
699
708
|
rows_per_click: (_view_more_button$row = view_more_button.rows_per_click) !== null && _view_more_button$row !== void 0 ? _view_more_button$row : 2,
|
|
700
709
|
button: $3hooq$solidjsweb.ssr($41227f10ad680afd$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(view_more_button.text))
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
|
-
export const version = "2.0.
|
|
10
|
+
export const version = "2.0.1";
|
|
11
11
|
export type SDKGridSpacing = string | {
|
|
12
12
|
horizontal: string;
|
|
13
13
|
vertical: string;
|
|
@@ -117,6 +117,7 @@ type RecommendationGridBaseProps<T extends Display> = {
|
|
|
117
117
|
start_rows?: number;
|
|
118
118
|
rows_per_click?: number;
|
|
119
119
|
};
|
|
120
|
+
max_rows?: number;
|
|
120
121
|
};
|
|
121
122
|
/**
|
|
122
123
|
* Render a grid with provided recommendations. displayTransformers will not be applied for this since you yourself provide the displays. Options are reactive.
|
package/server/ES10/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import $b8hua$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/def
|
|
|
8
8
|
/*! Depict.ai search and product listing SDK */
|
|
9
9
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
10
10
|
register_es_version("ui", "ES10");
|
|
11
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.
|
|
11
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "2.0.1";
|
|
12
12
|
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
13
13
|
const cols_at_size = [];
|
|
14
14
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -634,9 +634,18 @@ function $b432b11321ad4c97$export$9756467d34d91cdb(props) {
|
|
|
634
634
|
return $83e8cf2c0b87a58a$export$23fca46f3143581f(() => {
|
|
635
635
|
const rows_object_ = $b8hua$createMemo(() => {
|
|
636
636
|
var _view_more_button$row;
|
|
637
|
-
const
|
|
638
|
-
|
|
637
|
+
const {
|
|
638
|
+
view_more_button: view_more_button,
|
|
639
|
+
max_rows: max_rows
|
|
640
|
+
} = props;
|
|
641
|
+
if (!view_more_button) {
|
|
642
|
+
if (max_rows) return {
|
|
643
|
+
max_rows: max_rows
|
|
644
|
+
};
|
|
645
|
+
return "all";
|
|
646
|
+
}
|
|
639
647
|
return {
|
|
648
|
+
max_rows: max_rows,
|
|
640
649
|
start_rows: view_more_button.start_rows,
|
|
641
650
|
rows_per_click: (_view_more_button$row = view_more_button.rows_per_click) !== null && _view_more_button$row !== void 0 ? _view_more_button$row : 2,
|
|
642
651
|
button: $b8hua$ssr($b432b11321ad4c97$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$escape(view_more_button.text))
|
package/server/latest/index.cjs
CHANGED
|
@@ -60,7 +60,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
|
|
|
60
60
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
61
61
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
62
62
|
/*! Depict.ai search and product listing SDK */
|
|
63
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.
|
|
63
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "2.0.1";
|
|
64
64
|
const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
|
|
65
65
|
const cols_at_size = [];
|
|
66
66
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -644,9 +644,18 @@ const $1f8dbf7e28b3eff2$var$_tmpl$ = ["<button", ' class="show-more major" type=
|
|
|
644
644
|
function $1f8dbf7e28b3eff2$export$9756467d34d91cdb(props) {
|
|
645
645
|
return $95837413165cc2df$export$23fca46f3143581f(() => {
|
|
646
646
|
const rows_object_ = $5vyXB$solidjs.createMemo(() => {
|
|
647
|
-
const
|
|
648
|
-
|
|
647
|
+
const {
|
|
648
|
+
view_more_button: view_more_button,
|
|
649
|
+
max_rows: max_rows
|
|
650
|
+
} = props;
|
|
651
|
+
if (!view_more_button) {
|
|
652
|
+
if (max_rows) return {
|
|
653
|
+
max_rows: max_rows
|
|
654
|
+
};
|
|
655
|
+
return "all";
|
|
656
|
+
}
|
|
649
657
|
return {
|
|
658
|
+
max_rows: max_rows,
|
|
650
659
|
start_rows: view_more_button.start_rows,
|
|
651
660
|
rows_per_click: view_more_button.rows_per_click ?? 2,
|
|
652
661
|
button: $5vyXB$solidjsweb.ssr($1f8dbf7e28b3eff2$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(view_more_button.text))
|
package/server/latest/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
|
-
export const version = "2.0.
|
|
10
|
+
export const version = "2.0.1";
|
|
11
11
|
export type SDKGridSpacing = string | {
|
|
12
12
|
horizontal: string;
|
|
13
13
|
vertical: string;
|
|
@@ -117,6 +117,7 @@ type RecommendationGridBaseProps<T extends Display> = {
|
|
|
117
117
|
start_rows?: number;
|
|
118
118
|
rows_per_click?: number;
|
|
119
119
|
};
|
|
120
|
+
max_rows?: number;
|
|
120
121
|
};
|
|
121
122
|
/**
|
|
122
123
|
* Render a grid with provided recommendations. displayTransformers will not be applied for this since you yourself provide the displays. Options are reactive.
|
package/server/latest/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createMemo as $i7OB2$createMemo, createResource as $i7OB2$createResourc
|
|
|
5
5
|
/*! Depict.ai search and product listing SDK */
|
|
6
6
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
7
7
|
register_es_version("ui", "latest");
|
|
8
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.
|
|
8
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.1";
|
|
9
9
|
const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
10
10
|
const cols_at_size = [];
|
|
11
11
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -589,9 +589,18 @@ const $9ea5383493360761$var$_tmpl$ = ["<button", ' class="show-more major" type=
|
|
|
589
589
|
function $9ea5383493360761$export$9756467d34d91cdb(props) {
|
|
590
590
|
return $16b52438165aafe2$export$23fca46f3143581f(() => {
|
|
591
591
|
const rows_object_ = $i7OB2$createMemo(() => {
|
|
592
|
-
const
|
|
593
|
-
|
|
592
|
+
const {
|
|
593
|
+
view_more_button: view_more_button,
|
|
594
|
+
max_rows: max_rows
|
|
595
|
+
} = props;
|
|
596
|
+
if (!view_more_button) {
|
|
597
|
+
if (max_rows) return {
|
|
598
|
+
max_rows: max_rows
|
|
599
|
+
};
|
|
600
|
+
return "all";
|
|
601
|
+
}
|
|
594
602
|
return {
|
|
603
|
+
max_rows: max_rows,
|
|
595
604
|
start_rows: view_more_button.start_rows,
|
|
596
605
|
rows_per_click: view_more_button.rows_per_click ?? 2,
|
|
597
606
|
button: $i7OB2$ssr($9ea5383493360761$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$escape(view_more_button.text))
|