@depict-ai/ui 4.8.14 → 4.8.16
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 +46 -54
- package/ES10/index.d.ts +20 -5
- package/ES10/index.js +46 -54
- package/latest/index.cjs +46 -54
- package/latest/index.d.ts +20 -5
- package/latest/index.js +46 -54
- package/package.json +6 -6
- package/server/ES10/index.cjs +3 -2
- package/server/ES10/index.d.ts +20 -5
- package/server/ES10/index.js +3 -2
- package/server/latest/index.cjs +3 -2
- package/server/latest/index.d.ts +20 -5
- package/server/latest/index.js +3 -2
package/ES10/index.cjs
CHANGED
|
@@ -114,7 +114,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
114
114
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
115
115
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
116
116
|
/*! Depict.ai search and product listing SDK */
|
|
117
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.
|
|
117
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.15";
|
|
118
118
|
function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
119
119
|
const [width, setWidth] = $52FdA$solidjs.createSignal(0);
|
|
120
120
|
const [height, setHeight] = $52FdA$solidjs.createSignal(0);
|
|
@@ -150,7 +150,8 @@ function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
150
150
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
151
151
|
let $cc9aacef898ccc9a$var$extraDisplayTransformers;
|
|
152
152
|
const $cc9aacef898ccc9a$export$b2d94be4f02525b2 = () => $cc9aacef898ccc9a$var$extraDisplayTransformers;
|
|
153
|
-
const $cc9aacef898ccc9a$export$f98b8d5ea7207a1 = displayTransformers => $cc9aacef898ccc9a$var$extraDisplayTransformers = displayTransformers;
|
|
153
|
+
const $cc9aacef898ccc9a$export$f98b8d5ea7207a1 = displayTransformers => $cc9aacef898ccc9a$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
154
|
+
|
|
154
155
|
const $d067f3a30f047b41$var$ListingContext = /*@__PURE__*/$52FdA$solidjs.createContext();
|
|
155
156
|
function $d067f3a30f047b41$export$e68cff63f76bd15b(props) {
|
|
156
157
|
const our_object = {};
|
|
@@ -3007,13 +3008,10 @@ const $82d079b68975fbf7$export$b05c0ae390cf3e06 = _ref => {
|
|
|
3007
3008
|
$52FdA$solidjsweb.insert(_el$, () => variant.title);
|
|
3008
3009
|
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setAttribute(_el$, "title", variant.title));
|
|
3009
3010
|
return _el$;
|
|
3010
|
-
})(), $52FdA$solidjsweb.memo((() => {
|
|
3011
|
-
var
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
$52FdA$solidjsweb.insert(_el$3, () => [brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | "));
|
|
3015
|
-
return _el$3;
|
|
3016
|
-
})();
|
|
3011
|
+
})(), $52FdA$solidjsweb.memo(() => $52FdA$solidjsweb.memo(() => !!(variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline))() && (() => {
|
|
3012
|
+
var _el$3 = $52FdA$solidjsweb.getNextElement($82d079b68975fbf7$var$_tmpl$3);
|
|
3013
|
+
$52FdA$solidjsweb.insert(_el$3, () => [brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | "));
|
|
3014
|
+
return _el$3;
|
|
3017
3015
|
})())];
|
|
3018
3016
|
return (() => {
|
|
3019
3017
|
var _el$4 = $52FdA$solidjsweb.getNextElement($82d079b68975fbf7$var$_tmpl$6),
|
|
@@ -3676,51 +3674,45 @@ function $210882b9ebe2b1d8$export$e872e2339fb04a7f(_ref) {
|
|
|
3676
3674
|
return $52FdA$solidjs.createMemo(() => input_obj().query);
|
|
3677
3675
|
},
|
|
3678
3676
|
searching_for_value_: searching_for_value_
|
|
3679
|
-
})] : [$52FdA$solidjsweb.memo((() => {
|
|
3680
|
-
var
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
return $52FdA$solidjs.createMemo(() => input_obj().title);
|
|
3719
|
-
},
|
|
3720
|
-
searching_for_value_: searching_for_value_
|
|
3721
|
-
});
|
|
3722
|
-
})();
|
|
3723
|
-
})()), (() => {
|
|
3677
|
+
})] : [$52FdA$solidjsweb.memo(() => $52FdA$solidjsweb.memo(() => !!parent_title_if_exists())() ? (() => {
|
|
3678
|
+
var _el$4 = $52FdA$solidjsweb.getNextElement($210882b9ebe2b1d8$var$_tmpl$4),
|
|
3679
|
+
_el$6 = _el$4.firstChild,
|
|
3680
|
+
[_el$7, _co$] = $52FdA$solidjsweb.getNextMarker(_el$6.nextSibling),
|
|
3681
|
+
_el$5 = _el$7.nextSibling;
|
|
3682
|
+
$52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent((0, $23c3f390dee33ff8$export$ba17c5b7e6dda39f), {
|
|
3683
|
+
class_: "category line-clamp",
|
|
3684
|
+
get whole_text_to_display_() {
|
|
3685
|
+
return $52FdA$solidjs.createMemo(() => input_obj().title);
|
|
3686
|
+
},
|
|
3687
|
+
searching_for_value_: searching_for_value_
|
|
3688
|
+
}), _el$7, _co$);
|
|
3689
|
+
$52FdA$solidjsweb.insert(_el$5, parent_title_if_exists);
|
|
3690
|
+
return _el$4;
|
|
3691
|
+
})() : $52FdA$solidjsweb.memo(() => input_obj().type === "content")() ? (() => {
|
|
3692
|
+
var _el$8 = $52FdA$solidjsweb.getNextElement($210882b9ebe2b1d8$var$_tmpl$5),
|
|
3693
|
+
_el$9 = _el$8.firstChild,
|
|
3694
|
+
[_el$10, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$9.nextSibling),
|
|
3695
|
+
_el$11 = _el$10.nextSibling,
|
|
3696
|
+
[_el$12, _co$3] = $52FdA$solidjsweb.getNextMarker(_el$11.nextSibling);
|
|
3697
|
+
$52FdA$solidjsweb.insert(_el$8, $52FdA$solidjsweb.createComponent((0, $3cf7b4db1e203c93$export$605674723bcc715c), {
|
|
3698
|
+
width: "16",
|
|
3699
|
+
height: "16"
|
|
3700
|
+
}), _el$10, _co$2);
|
|
3701
|
+
$52FdA$solidjsweb.insert(_el$8, $52FdA$solidjsweb.createComponent((0, $23c3f390dee33ff8$export$ba17c5b7e6dda39f), {
|
|
3702
|
+
class_: "content line-clamp",
|
|
3703
|
+
get whole_text_to_display_() {
|
|
3704
|
+
return $52FdA$solidjs.createMemo(() => input_obj().title);
|
|
3705
|
+
},
|
|
3706
|
+
searching_for_value_: searching_for_value_
|
|
3707
|
+
}), _el$12, _co$3);
|
|
3708
|
+
return _el$8;
|
|
3709
|
+
})() : $52FdA$solidjsweb.createComponent((0, $23c3f390dee33ff8$export$ba17c5b7e6dda39f), {
|
|
3710
|
+
class_: "category line-clamp",
|
|
3711
|
+
get whole_text_to_display_() {
|
|
3712
|
+
return $52FdA$solidjs.createMemo(() => input_obj().title);
|
|
3713
|
+
},
|
|
3714
|
+
searching_for_value_: searching_for_value_
|
|
3715
|
+
})), (() => {
|
|
3724
3716
|
var _el$3 = $52FdA$solidjsweb.getNextElement($210882b9ebe2b1d8$var$_tmpl$3);
|
|
3725
3717
|
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjs.createMemo(() => {
|
|
3726
3718
|
if (input_obj().type === "content") return i18n_.content_();
|
package/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.8.
|
|
14
|
+
export const version = "4.8.15";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
|
@@ -68,12 +68,27 @@ export type SomethingTakingADisplayTransformers<InputDisplay extends Display, Ou
|
|
|
68
68
|
page_url_creator?: never;
|
|
69
69
|
display_transformers?: never;
|
|
70
70
|
};
|
|
71
|
-
export const getExtraDisplayTransformers: () =>
|
|
71
|
+
export const getExtraDisplayTransformers: () => ExtraDisplayTransformers<any, any> | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* When called from inside the shopify apps product card editor, this registers extra display transformers to be ran alongside Depict's default added ones. The ones for products and content will run after Depicts but the ones for categories will run before Depicts.
|
|
74
74
|
* @param displayTransformers
|
|
75
75
|
*/
|
|
76
|
-
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = ModernDisplayWithPageUrl<InputDisplay>>(displayTransformers:
|
|
76
|
+
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = ModernDisplayWithPageUrl<InputDisplay>>(displayTransformers: ExtraDisplayTransformers<InputDisplay, OutputDisplay>) => ExtraDisplayTransformers<InputDisplay, OutputDisplay>;
|
|
77
|
+
type ExtraDisplayTransformers<InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay | never> = {
|
|
78
|
+
products?: (options: DisplayTransformerAlwaysThereData & {
|
|
79
|
+
displays: InputDisplay[];
|
|
80
|
+
/**
|
|
81
|
+
* If the category display transformer was called due to navigating to a listing using a <CategoryPage> component, currentListing will be set and contain a promise that can be used to get information of said listing.
|
|
82
|
+
*/
|
|
83
|
+
currentListing?: Promise<ProductListing>;
|
|
84
|
+
}) => CanBePromiseWrapped<OutputDisplay>;
|
|
85
|
+
categories?: <T extends ProductListingWithAncestors | ListingSuggestionForTransformer>(options: DisplayTransformerAlwaysThereData & {
|
|
86
|
+
data: T[];
|
|
87
|
+
}) => CanBePromiseWrapped<T[]>;
|
|
88
|
+
contentResults?: (options: DisplayTransformerAlwaysThereData & {
|
|
89
|
+
data: ContentLink[];
|
|
90
|
+
}) => CanBePromiseWrapped<ContentLink[]>;
|
|
91
|
+
};
|
|
77
92
|
/**
|
|
78
93
|
* Provider to wrap every listing (group of products) in
|
|
79
94
|
* Used for example for deduplicating ResizeObservers for responsive images
|
|
@@ -1516,7 +1531,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1516
1531
|
* Open the modal with support for alignment.
|
|
1517
1532
|
* @returns {void}
|
|
1518
1533
|
*/
|
|
1519
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1534
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1520
1535
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1521
1536
|
export interface PageReplacer {
|
|
1522
1537
|
readonly render_: () => Node_Array;
|
|
@@ -1595,5 +1610,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1595
1610
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1596
1611
|
layout?: PossibleLayout;
|
|
1597
1612
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1598
|
-
}): import("@depict-ai/utilishared
|
|
1613
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1599
1614
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.15";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $8tj43$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $8tj43$createSignal(0);
|
|
@@ -46,7 +46,8 @@ function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
46
46
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
47
47
|
let $80c7883e020be192$var$extraDisplayTransformers;
|
|
48
48
|
const $80c7883e020be192$export$b2d94be4f02525b2 = () => $80c7883e020be192$var$extraDisplayTransformers;
|
|
49
|
-
const $80c7883e020be192$export$f98b8d5ea7207a1 = displayTransformers => $80c7883e020be192$var$extraDisplayTransformers = displayTransformers;
|
|
49
|
+
const $80c7883e020be192$export$f98b8d5ea7207a1 = displayTransformers => $80c7883e020be192$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
50
|
+
|
|
50
51
|
const $5441862cd2f5e111$var$ListingContext = /*@__PURE__*/$8tj43$createContext();
|
|
51
52
|
function $5441862cd2f5e111$export$e68cff63f76bd15b(props) {
|
|
52
53
|
const our_object = {};
|
|
@@ -2903,13 +2904,10 @@ const $9a693c7e832d3f18$export$b05c0ae390cf3e06 = _ref => {
|
|
|
2903
2904
|
$8tj43$insert(_el$, () => variant.title);
|
|
2904
2905
|
$8tj43$effect(() => $8tj43$setAttribute(_el$, "title", variant.title));
|
|
2905
2906
|
return _el$;
|
|
2906
|
-
})(), $8tj43$memo((() => {
|
|
2907
|
-
var
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
$8tj43$insert(_el$3, () => [brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | "));
|
|
2911
|
-
return _el$3;
|
|
2912
|
-
})();
|
|
2907
|
+
})(), $8tj43$memo(() => $8tj43$memo(() => !!(variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline))() && (() => {
|
|
2908
|
+
var _el$3 = $8tj43$getNextElement($9a693c7e832d3f18$var$_tmpl$3);
|
|
2909
|
+
$8tj43$insert(_el$3, () => [brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | "));
|
|
2910
|
+
return _el$3;
|
|
2913
2911
|
})())];
|
|
2914
2912
|
return (() => {
|
|
2915
2913
|
var _el$4 = $8tj43$getNextElement($9a693c7e832d3f18$var$_tmpl$6),
|
|
@@ -3572,51 +3570,45 @@ function $b055f9e9aeceeb48$export$e872e2339fb04a7f(_ref) {
|
|
|
3572
3570
|
return $8tj43$createMemo(() => input_obj().query);
|
|
3573
3571
|
},
|
|
3574
3572
|
searching_for_value_: searching_for_value_
|
|
3575
|
-
})] : [$8tj43$memo((() => {
|
|
3576
|
-
var
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
return $8tj43$createMemo(() => input_obj().title);
|
|
3615
|
-
},
|
|
3616
|
-
searching_for_value_: searching_for_value_
|
|
3617
|
-
});
|
|
3618
|
-
})();
|
|
3619
|
-
})()), (() => {
|
|
3573
|
+
})] : [$8tj43$memo(() => $8tj43$memo(() => !!parent_title_if_exists())() ? (() => {
|
|
3574
|
+
var _el$4 = $8tj43$getNextElement($b055f9e9aeceeb48$var$_tmpl$4),
|
|
3575
|
+
_el$6 = _el$4.firstChild,
|
|
3576
|
+
[_el$7, _co$] = $8tj43$getNextMarker(_el$6.nextSibling),
|
|
3577
|
+
_el$5 = _el$7.nextSibling;
|
|
3578
|
+
$8tj43$insert(_el$4, $8tj43$createComponent((0, $02b6641aa50ce528$export$ba17c5b7e6dda39f), {
|
|
3579
|
+
class_: "category line-clamp",
|
|
3580
|
+
get whole_text_to_display_() {
|
|
3581
|
+
return $8tj43$createMemo(() => input_obj().title);
|
|
3582
|
+
},
|
|
3583
|
+
searching_for_value_: searching_for_value_
|
|
3584
|
+
}), _el$7, _co$);
|
|
3585
|
+
$8tj43$insert(_el$5, parent_title_if_exists);
|
|
3586
|
+
return _el$4;
|
|
3587
|
+
})() : $8tj43$memo(() => input_obj().type === "content")() ? (() => {
|
|
3588
|
+
var _el$8 = $8tj43$getNextElement($b055f9e9aeceeb48$var$_tmpl$5),
|
|
3589
|
+
_el$9 = _el$8.firstChild,
|
|
3590
|
+
[_el$10, _co$2] = $8tj43$getNextMarker(_el$9.nextSibling),
|
|
3591
|
+
_el$11 = _el$10.nextSibling,
|
|
3592
|
+
[_el$12, _co$3] = $8tj43$getNextMarker(_el$11.nextSibling);
|
|
3593
|
+
$8tj43$insert(_el$8, $8tj43$createComponent((0, $3c5e15c6ee4227a9$export$605674723bcc715c), {
|
|
3594
|
+
width: "16",
|
|
3595
|
+
height: "16"
|
|
3596
|
+
}), _el$10, _co$2);
|
|
3597
|
+
$8tj43$insert(_el$8, $8tj43$createComponent((0, $02b6641aa50ce528$export$ba17c5b7e6dda39f), {
|
|
3598
|
+
class_: "content line-clamp",
|
|
3599
|
+
get whole_text_to_display_() {
|
|
3600
|
+
return $8tj43$createMemo(() => input_obj().title);
|
|
3601
|
+
},
|
|
3602
|
+
searching_for_value_: searching_for_value_
|
|
3603
|
+
}), _el$12, _co$3);
|
|
3604
|
+
return _el$8;
|
|
3605
|
+
})() : $8tj43$createComponent((0, $02b6641aa50ce528$export$ba17c5b7e6dda39f), {
|
|
3606
|
+
class_: "category line-clamp",
|
|
3607
|
+
get whole_text_to_display_() {
|
|
3608
|
+
return $8tj43$createMemo(() => input_obj().title);
|
|
3609
|
+
},
|
|
3610
|
+
searching_for_value_: searching_for_value_
|
|
3611
|
+
})), (() => {
|
|
3620
3612
|
var _el$3 = $8tj43$getNextElement($b055f9e9aeceeb48$var$_tmpl$3);
|
|
3621
3613
|
$8tj43$insert(_el$3, $8tj43$createMemo(() => {
|
|
3622
3614
|
if (input_obj().type === "content") return i18n_.content_();
|
package/latest/index.cjs
CHANGED
|
@@ -108,7 +108,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
108
108
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
109
109
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
110
110
|
/*! Depict.ai search and product listing SDK */
|
|
111
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.
|
|
111
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.15";
|
|
112
112
|
function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
113
113
|
const [width, setWidth] = $gVhhF$solidjs.createSignal(0);
|
|
114
114
|
const [height, setHeight] = $gVhhF$solidjs.createSignal(0);
|
|
@@ -141,7 +141,8 @@ function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
141
141
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
142
142
|
let $606c221d98ba4d92$var$extraDisplayTransformers;
|
|
143
143
|
const $606c221d98ba4d92$export$b2d94be4f02525b2 = () => $606c221d98ba4d92$var$extraDisplayTransformers;
|
|
144
|
-
const $606c221d98ba4d92$export$f98b8d5ea7207a1 = displayTransformers => $606c221d98ba4d92$var$extraDisplayTransformers = displayTransformers;
|
|
144
|
+
const $606c221d98ba4d92$export$f98b8d5ea7207a1 = displayTransformers => $606c221d98ba4d92$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
145
|
+
|
|
145
146
|
const $84798aaa863a4909$var$ListingContext = /*@__PURE__*/$gVhhF$solidjs.createContext();
|
|
146
147
|
function $84798aaa863a4909$export$e68cff63f76bd15b(props) {
|
|
147
148
|
const our_object = {};
|
|
@@ -2852,13 +2853,10 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
|
|
|
2852
2853
|
$gVhhF$solidjsweb.insert(_el$, () => variant.title);
|
|
2853
2854
|
$gVhhF$solidjsweb.effect(() => $gVhhF$solidjsweb.setAttribute(_el$, "title", variant.title));
|
|
2854
2855
|
return _el$;
|
|
2855
|
-
})(), $gVhhF$solidjsweb.memo((() => {
|
|
2856
|
-
var
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
$gVhhF$solidjsweb.insert(_el$3, () => [brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | "));
|
|
2860
|
-
return _el$3;
|
|
2861
|
-
})();
|
|
2856
|
+
})(), $gVhhF$solidjsweb.memo(() => $gVhhF$solidjsweb.memo(() => !!(variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline))() && (() => {
|
|
2857
|
+
var _el$3 = $gVhhF$solidjsweb.getNextElement($6ae613870d3380fc$var$_tmpl$3);
|
|
2858
|
+
$gVhhF$solidjsweb.insert(_el$3, () => [brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | "));
|
|
2859
|
+
return _el$3;
|
|
2862
2860
|
})())];
|
|
2863
2861
|
return (() => {
|
|
2864
2862
|
var _el$4 = $gVhhF$solidjsweb.getNextElement($6ae613870d3380fc$var$_tmpl$6),
|
|
@@ -3488,51 +3486,45 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
3488
3486
|
return $gVhhF$solidjs.createMemo(() => input_obj().query);
|
|
3489
3487
|
},
|
|
3490
3488
|
searching_for_value_: searching_for_value_
|
|
3491
|
-
})] : [$gVhhF$solidjsweb.memo((() => {
|
|
3492
|
-
var
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
return $gVhhF$solidjs.createMemo(() => input_obj().title);
|
|
3531
|
-
},
|
|
3532
|
-
searching_for_value_: searching_for_value_
|
|
3533
|
-
});
|
|
3534
|
-
})();
|
|
3535
|
-
})()), (() => {
|
|
3489
|
+
})] : [$gVhhF$solidjsweb.memo(() => $gVhhF$solidjsweb.memo(() => !!parent_title_if_exists())() ? (() => {
|
|
3490
|
+
var _el$4 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$4),
|
|
3491
|
+
_el$6 = _el$4.firstChild,
|
|
3492
|
+
[_el$7, _co$] = $gVhhF$solidjsweb.getNextMarker(_el$6.nextSibling),
|
|
3493
|
+
_el$5 = _el$7.nextSibling;
|
|
3494
|
+
$gVhhF$solidjsweb.insert(_el$4, $gVhhF$solidjsweb.createComponent((0, $d023ed916c84e75d$export$ba17c5b7e6dda39f), {
|
|
3495
|
+
class_: "category line-clamp",
|
|
3496
|
+
get whole_text_to_display_() {
|
|
3497
|
+
return $gVhhF$solidjs.createMemo(() => input_obj().title);
|
|
3498
|
+
},
|
|
3499
|
+
searching_for_value_: searching_for_value_
|
|
3500
|
+
}), _el$7, _co$);
|
|
3501
|
+
$gVhhF$solidjsweb.insert(_el$5, parent_title_if_exists);
|
|
3502
|
+
return _el$4;
|
|
3503
|
+
})() : $gVhhF$solidjsweb.memo(() => input_obj().type === "content")() ? (() => {
|
|
3504
|
+
var _el$8 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$5),
|
|
3505
|
+
_el$9 = _el$8.firstChild,
|
|
3506
|
+
[_el$10, _co$2] = $gVhhF$solidjsweb.getNextMarker(_el$9.nextSibling),
|
|
3507
|
+
_el$11 = _el$10.nextSibling,
|
|
3508
|
+
[_el$12, _co$3] = $gVhhF$solidjsweb.getNextMarker(_el$11.nextSibling);
|
|
3509
|
+
$gVhhF$solidjsweb.insert(_el$8, $gVhhF$solidjsweb.createComponent((0, $c0125412b4ea0c93$export$605674723bcc715c), {
|
|
3510
|
+
width: "16",
|
|
3511
|
+
height: "16"
|
|
3512
|
+
}), _el$10, _co$2);
|
|
3513
|
+
$gVhhF$solidjsweb.insert(_el$8, $gVhhF$solidjsweb.createComponent((0, $d023ed916c84e75d$export$ba17c5b7e6dda39f), {
|
|
3514
|
+
class_: "content line-clamp",
|
|
3515
|
+
get whole_text_to_display_() {
|
|
3516
|
+
return $gVhhF$solidjs.createMemo(() => input_obj().title);
|
|
3517
|
+
},
|
|
3518
|
+
searching_for_value_: searching_for_value_
|
|
3519
|
+
}), _el$12, _co$3);
|
|
3520
|
+
return _el$8;
|
|
3521
|
+
})() : $gVhhF$solidjsweb.createComponent((0, $d023ed916c84e75d$export$ba17c5b7e6dda39f), {
|
|
3522
|
+
class_: "category line-clamp",
|
|
3523
|
+
get whole_text_to_display_() {
|
|
3524
|
+
return $gVhhF$solidjs.createMemo(() => input_obj().title);
|
|
3525
|
+
},
|
|
3526
|
+
searching_for_value_: searching_for_value_
|
|
3527
|
+
})), (() => {
|
|
3536
3528
|
var _el$3 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$3);
|
|
3537
3529
|
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjs.createMemo(() => {
|
|
3538
3530
|
if (input_obj().type === "content") return i18n_.content_();
|
package/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.8.
|
|
14
|
+
export const version = "4.8.15";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
|
@@ -68,12 +68,27 @@ export type SomethingTakingADisplayTransformers<InputDisplay extends Display, Ou
|
|
|
68
68
|
page_url_creator?: never;
|
|
69
69
|
display_transformers?: never;
|
|
70
70
|
};
|
|
71
|
-
export const getExtraDisplayTransformers: () =>
|
|
71
|
+
export const getExtraDisplayTransformers: () => ExtraDisplayTransformers<any, any> | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* When called from inside the shopify apps product card editor, this registers extra display transformers to be ran alongside Depict's default added ones. The ones for products and content will run after Depicts but the ones for categories will run before Depicts.
|
|
74
74
|
* @param displayTransformers
|
|
75
75
|
*/
|
|
76
|
-
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = ModernDisplayWithPageUrl<InputDisplay>>(displayTransformers:
|
|
76
|
+
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = ModernDisplayWithPageUrl<InputDisplay>>(displayTransformers: ExtraDisplayTransformers<InputDisplay, OutputDisplay>) => ExtraDisplayTransformers<InputDisplay, OutputDisplay>;
|
|
77
|
+
type ExtraDisplayTransformers<InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay | never> = {
|
|
78
|
+
products?: (options: DisplayTransformerAlwaysThereData & {
|
|
79
|
+
displays: InputDisplay[];
|
|
80
|
+
/**
|
|
81
|
+
* If the category display transformer was called due to navigating to a listing using a <CategoryPage> component, currentListing will be set and contain a promise that can be used to get information of said listing.
|
|
82
|
+
*/
|
|
83
|
+
currentListing?: Promise<ProductListing>;
|
|
84
|
+
}) => CanBePromiseWrapped<OutputDisplay>;
|
|
85
|
+
categories?: <T extends ProductListingWithAncestors | ListingSuggestionForTransformer>(options: DisplayTransformerAlwaysThereData & {
|
|
86
|
+
data: T[];
|
|
87
|
+
}) => CanBePromiseWrapped<T[]>;
|
|
88
|
+
contentResults?: (options: DisplayTransformerAlwaysThereData & {
|
|
89
|
+
data: ContentLink[];
|
|
90
|
+
}) => CanBePromiseWrapped<ContentLink[]>;
|
|
91
|
+
};
|
|
77
92
|
/**
|
|
78
93
|
* Provider to wrap every listing (group of products) in
|
|
79
94
|
* Used for example for deduplicating ResizeObservers for responsive images
|
|
@@ -1516,7 +1531,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1516
1531
|
* Open the modal with support for alignment.
|
|
1517
1532
|
* @returns {void}
|
|
1518
1533
|
*/
|
|
1519
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1534
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1520
1535
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1521
1536
|
export interface PageReplacer {
|
|
1522
1537
|
readonly render_: () => Node_Array;
|
|
@@ -1595,5 +1610,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1595
1610
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1596
1611
|
layout?: PossibleLayout;
|
|
1597
1612
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1598
|
-
}): import("@depict-ai/utilishared
|
|
1613
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1599
1614
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { dlog as $9HbP8$dlog, catchify as $9HbP8$catchify1, ListenableSet as $9H
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.15";
|
|
11
11
|
function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
12
12
|
const [width, setWidth] = $9HbP8$createSignal(0);
|
|
13
13
|
const [height, setHeight] = $9HbP8$createSignal(0);
|
|
@@ -40,7 +40,8 @@ function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
40
40
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
41
41
|
let $a63fa9cb46ed211b$var$extraDisplayTransformers;
|
|
42
42
|
const $a63fa9cb46ed211b$export$b2d94be4f02525b2 = () => $a63fa9cb46ed211b$var$extraDisplayTransformers;
|
|
43
|
-
const $a63fa9cb46ed211b$export$f98b8d5ea7207a1 = displayTransformers => $a63fa9cb46ed211b$var$extraDisplayTransformers = displayTransformers;
|
|
43
|
+
const $a63fa9cb46ed211b$export$f98b8d5ea7207a1 = displayTransformers => $a63fa9cb46ed211b$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
44
|
+
|
|
44
45
|
const $011607bdf658f807$var$ListingContext = /*@__PURE__*/$9HbP8$createContext();
|
|
45
46
|
function $011607bdf658f807$export$e68cff63f76bd15b(props) {
|
|
46
47
|
const our_object = {};
|
|
@@ -2751,13 +2752,10 @@ const $e003be2a50d9e5bc$export$b05c0ae390cf3e06 = ({
|
|
|
2751
2752
|
$9HbP8$insert(_el$, () => variant.title);
|
|
2752
2753
|
$9HbP8$effect(() => $9HbP8$setAttribute(_el$, "title", variant.title));
|
|
2753
2754
|
return _el$;
|
|
2754
|
-
})(), $9HbP8$memo((() => {
|
|
2755
|
-
var
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
$9HbP8$insert(_el$3, () => [brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | "));
|
|
2759
|
-
return _el$3;
|
|
2760
|
-
})();
|
|
2755
|
+
})(), $9HbP8$memo(() => $9HbP8$memo(() => !!(variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline))() && (() => {
|
|
2756
|
+
var _el$3 = $9HbP8$getNextElement($e003be2a50d9e5bc$var$_tmpl$3);
|
|
2757
|
+
$9HbP8$insert(_el$3, () => [brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | "));
|
|
2758
|
+
return _el$3;
|
|
2761
2759
|
})())];
|
|
2762
2760
|
return (() => {
|
|
2763
2761
|
var _el$4 = $9HbP8$getNextElement($e003be2a50d9e5bc$var$_tmpl$6),
|
|
@@ -3387,51 +3385,45 @@ function $ab4b0679fa8bd1dc$export$e872e2339fb04a7f({
|
|
|
3387
3385
|
return $9HbP8$createMemo(() => input_obj().query);
|
|
3388
3386
|
},
|
|
3389
3387
|
searching_for_value_: searching_for_value_
|
|
3390
|
-
})] : [$9HbP8$memo((() => {
|
|
3391
|
-
var
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
return $9HbP8$createMemo(() => input_obj().title);
|
|
3430
|
-
},
|
|
3431
|
-
searching_for_value_: searching_for_value_
|
|
3432
|
-
});
|
|
3433
|
-
})();
|
|
3434
|
-
})()), (() => {
|
|
3388
|
+
})] : [$9HbP8$memo(() => $9HbP8$memo(() => !!parent_title_if_exists())() ? (() => {
|
|
3389
|
+
var _el$4 = $9HbP8$getNextElement($ab4b0679fa8bd1dc$var$_tmpl$4),
|
|
3390
|
+
_el$6 = _el$4.firstChild,
|
|
3391
|
+
[_el$7, _co$] = $9HbP8$getNextMarker(_el$6.nextSibling),
|
|
3392
|
+
_el$5 = _el$7.nextSibling;
|
|
3393
|
+
$9HbP8$insert(_el$4, $9HbP8$createComponent((0, $f3213c0640246d58$export$ba17c5b7e6dda39f), {
|
|
3394
|
+
class_: "category line-clamp",
|
|
3395
|
+
get whole_text_to_display_() {
|
|
3396
|
+
return $9HbP8$createMemo(() => input_obj().title);
|
|
3397
|
+
},
|
|
3398
|
+
searching_for_value_: searching_for_value_
|
|
3399
|
+
}), _el$7, _co$);
|
|
3400
|
+
$9HbP8$insert(_el$5, parent_title_if_exists);
|
|
3401
|
+
return _el$4;
|
|
3402
|
+
})() : $9HbP8$memo(() => input_obj().type === "content")() ? (() => {
|
|
3403
|
+
var _el$8 = $9HbP8$getNextElement($ab4b0679fa8bd1dc$var$_tmpl$5),
|
|
3404
|
+
_el$9 = _el$8.firstChild,
|
|
3405
|
+
[_el$10, _co$2] = $9HbP8$getNextMarker(_el$9.nextSibling),
|
|
3406
|
+
_el$11 = _el$10.nextSibling,
|
|
3407
|
+
[_el$12, _co$3] = $9HbP8$getNextMarker(_el$11.nextSibling);
|
|
3408
|
+
$9HbP8$insert(_el$8, $9HbP8$createComponent((0, $190927650b4840eb$export$605674723bcc715c), {
|
|
3409
|
+
width: "16",
|
|
3410
|
+
height: "16"
|
|
3411
|
+
}), _el$10, _co$2);
|
|
3412
|
+
$9HbP8$insert(_el$8, $9HbP8$createComponent((0, $f3213c0640246d58$export$ba17c5b7e6dda39f), {
|
|
3413
|
+
class_: "content line-clamp",
|
|
3414
|
+
get whole_text_to_display_() {
|
|
3415
|
+
return $9HbP8$createMemo(() => input_obj().title);
|
|
3416
|
+
},
|
|
3417
|
+
searching_for_value_: searching_for_value_
|
|
3418
|
+
}), _el$12, _co$3);
|
|
3419
|
+
return _el$8;
|
|
3420
|
+
})() : $9HbP8$createComponent((0, $f3213c0640246d58$export$ba17c5b7e6dda39f), {
|
|
3421
|
+
class_: "category line-clamp",
|
|
3422
|
+
get whole_text_to_display_() {
|
|
3423
|
+
return $9HbP8$createMemo(() => input_obj().title);
|
|
3424
|
+
},
|
|
3425
|
+
searching_for_value_: searching_for_value_
|
|
3426
|
+
})), (() => {
|
|
3435
3427
|
var _el$3 = $9HbP8$getNextElement($ab4b0679fa8bd1dc$var$_tmpl$3);
|
|
3436
3428
|
$9HbP8$insert(_el$3, $9HbP8$createMemo(() => {
|
|
3437
3429
|
if (input_obj().type === "content") return i18n_.content_();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.16",
|
|
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",
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"@parcel/resolver-default": "^2.10.3",
|
|
227
227
|
"@types/jest": "^29.2.4",
|
|
228
228
|
"@types/node": "^18.11.11",
|
|
229
|
-
"babel-preset-solid": "^1.8.
|
|
229
|
+
"babel-preset-solid": "^1.8.16",
|
|
230
230
|
"jest": "^29.3.1",
|
|
231
231
|
"lodash": "^4.17.21",
|
|
232
232
|
"parcel": "^2.10.3",
|
|
@@ -236,10 +236,10 @@
|
|
|
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": "^4.4.
|
|
240
|
-
"@depict-ai/types": "^5.4.
|
|
241
|
-
"@depict-ai/utilishared": "^2.4.
|
|
242
|
-
"solid-js": "^1.8.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.4.16",
|
|
240
|
+
"@depict-ai/types": "^5.4.4",
|
|
241
|
+
"@depict-ai/utilishared": "^2.4.5",
|
|
242
|
+
"solid-js": "^1.8.16"
|
|
243
243
|
},
|
|
244
244
|
"type": "module",
|
|
245
245
|
"types": "ES10/index.d.ts",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -114,7 +114,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
114
114
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
115
115
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
116
116
|
/*! Depict.ai search and product listing SDK */
|
|
117
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.
|
|
117
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.15";
|
|
118
118
|
function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
119
119
|
const [width, setWidth] = $3hooq$solidjs.createSignal(0);
|
|
120
120
|
const [height, setHeight] = $3hooq$solidjs.createSignal(0);
|
|
@@ -150,7 +150,8 @@ function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
150
150
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
151
151
|
let $cc9aacef898ccc9a$var$extraDisplayTransformers;
|
|
152
152
|
const $cc9aacef898ccc9a$export$b2d94be4f02525b2 = () => $cc9aacef898ccc9a$var$extraDisplayTransformers;
|
|
153
|
-
const $cc9aacef898ccc9a$export$f98b8d5ea7207a1 = displayTransformers => $cc9aacef898ccc9a$var$extraDisplayTransformers = displayTransformers;
|
|
153
|
+
const $cc9aacef898ccc9a$export$f98b8d5ea7207a1 = displayTransformers => $cc9aacef898ccc9a$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
154
|
+
|
|
154
155
|
const $d067f3a30f047b41$var$ListingContext = /*@__PURE__*/$3hooq$solidjs.createContext();
|
|
155
156
|
function $d067f3a30f047b41$export$e68cff63f76bd15b(props) {
|
|
156
157
|
const our_object = {};
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.8.
|
|
14
|
+
export const version = "4.8.15";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
|
@@ -68,12 +68,27 @@ export type SomethingTakingADisplayTransformers<InputDisplay extends Display, Ou
|
|
|
68
68
|
page_url_creator?: never;
|
|
69
69
|
display_transformers?: never;
|
|
70
70
|
};
|
|
71
|
-
export const getExtraDisplayTransformers: () =>
|
|
71
|
+
export const getExtraDisplayTransformers: () => ExtraDisplayTransformers<any, any> | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* When called from inside the shopify apps product card editor, this registers extra display transformers to be ran alongside Depict's default added ones. The ones for products and content will run after Depicts but the ones for categories will run before Depicts.
|
|
74
74
|
* @param displayTransformers
|
|
75
75
|
*/
|
|
76
|
-
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = ModernDisplayWithPageUrl<InputDisplay>>(displayTransformers:
|
|
76
|
+
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = ModernDisplayWithPageUrl<InputDisplay>>(displayTransformers: ExtraDisplayTransformers<InputDisplay, OutputDisplay>) => ExtraDisplayTransformers<InputDisplay, OutputDisplay>;
|
|
77
|
+
type ExtraDisplayTransformers<InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay | never> = {
|
|
78
|
+
products?: (options: DisplayTransformerAlwaysThereData & {
|
|
79
|
+
displays: InputDisplay[];
|
|
80
|
+
/**
|
|
81
|
+
* If the category display transformer was called due to navigating to a listing using a <CategoryPage> component, currentListing will be set and contain a promise that can be used to get information of said listing.
|
|
82
|
+
*/
|
|
83
|
+
currentListing?: Promise<ProductListing>;
|
|
84
|
+
}) => CanBePromiseWrapped<OutputDisplay>;
|
|
85
|
+
categories?: <T extends ProductListingWithAncestors | ListingSuggestionForTransformer>(options: DisplayTransformerAlwaysThereData & {
|
|
86
|
+
data: T[];
|
|
87
|
+
}) => CanBePromiseWrapped<T[]>;
|
|
88
|
+
contentResults?: (options: DisplayTransformerAlwaysThereData & {
|
|
89
|
+
data: ContentLink[];
|
|
90
|
+
}) => CanBePromiseWrapped<ContentLink[]>;
|
|
91
|
+
};
|
|
77
92
|
/**
|
|
78
93
|
* Provider to wrap every listing (group of products) in
|
|
79
94
|
* Used for example for deduplicating ResizeObservers for responsive images
|
|
@@ -1516,7 +1531,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1516
1531
|
* Open the modal with support for alignment.
|
|
1517
1532
|
* @returns {void}
|
|
1518
1533
|
*/
|
|
1519
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1534
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1520
1535
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1521
1536
|
export interface PageReplacer {
|
|
1522
1537
|
readonly render_: () => Node_Array;
|
|
@@ -1595,5 +1610,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1595
1610
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1596
1611
|
layout?: PossibleLayout;
|
|
1597
1612
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1598
|
-
}): import("@depict-ai/utilishared
|
|
1613
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1599
1614
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.15";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $b8hua$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $b8hua$createSignal(0);
|
|
@@ -46,7 +46,8 @@ function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
46
46
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
47
47
|
let $80c7883e020be192$var$extraDisplayTransformers;
|
|
48
48
|
const $80c7883e020be192$export$b2d94be4f02525b2 = () => $80c7883e020be192$var$extraDisplayTransformers;
|
|
49
|
-
const $80c7883e020be192$export$f98b8d5ea7207a1 = displayTransformers => $80c7883e020be192$var$extraDisplayTransformers = displayTransformers;
|
|
49
|
+
const $80c7883e020be192$export$f98b8d5ea7207a1 = displayTransformers => $80c7883e020be192$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
50
|
+
|
|
50
51
|
const $5441862cd2f5e111$var$ListingContext = /*@__PURE__*/$b8hua$createContext();
|
|
51
52
|
function $5441862cd2f5e111$export$e68cff63f76bd15b(props) {
|
|
52
53
|
const our_object = {};
|
package/server/latest/index.cjs
CHANGED
|
@@ -108,7 +108,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
108
108
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
109
109
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
110
110
|
/*! Depict.ai search and product listing SDK */
|
|
111
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.
|
|
111
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.15";
|
|
112
112
|
function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
113
113
|
const [width, setWidth] = $5vyXB$solidjs.createSignal(0);
|
|
114
114
|
const [height, setHeight] = $5vyXB$solidjs.createSignal(0);
|
|
@@ -141,7 +141,8 @@ function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
141
141
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
142
142
|
let $606c221d98ba4d92$var$extraDisplayTransformers;
|
|
143
143
|
const $606c221d98ba4d92$export$b2d94be4f02525b2 = () => $606c221d98ba4d92$var$extraDisplayTransformers;
|
|
144
|
-
const $606c221d98ba4d92$export$f98b8d5ea7207a1 = displayTransformers => $606c221d98ba4d92$var$extraDisplayTransformers = displayTransformers;
|
|
144
|
+
const $606c221d98ba4d92$export$f98b8d5ea7207a1 = displayTransformers => $606c221d98ba4d92$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
145
|
+
|
|
145
146
|
const $84798aaa863a4909$var$ListingContext = /*@__PURE__*/$5vyXB$solidjs.createContext();
|
|
146
147
|
function $84798aaa863a4909$export$e68cff63f76bd15b(props) {
|
|
147
148
|
const our_object = {};
|
package/server/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.8.
|
|
14
|
+
export const version = "4.8.15";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
|
@@ -68,12 +68,27 @@ export type SomethingTakingADisplayTransformers<InputDisplay extends Display, Ou
|
|
|
68
68
|
page_url_creator?: never;
|
|
69
69
|
display_transformers?: never;
|
|
70
70
|
};
|
|
71
|
-
export const getExtraDisplayTransformers: () =>
|
|
71
|
+
export const getExtraDisplayTransformers: () => ExtraDisplayTransformers<any, any> | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* When called from inside the shopify apps product card editor, this registers extra display transformers to be ran alongside Depict's default added ones. The ones for products and content will run after Depicts but the ones for categories will run before Depicts.
|
|
74
74
|
* @param displayTransformers
|
|
75
75
|
*/
|
|
76
|
-
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = ModernDisplayWithPageUrl<InputDisplay>>(displayTransformers:
|
|
76
|
+
export const setExtraDisplayTransformers: <InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay = ModernDisplayWithPageUrl<InputDisplay>>(displayTransformers: ExtraDisplayTransformers<InputDisplay, OutputDisplay>) => ExtraDisplayTransformers<InputDisplay, OutputDisplay>;
|
|
77
|
+
type ExtraDisplayTransformers<InputDisplay extends ModernDisplay, OutputDisplay extends ModernDisplay | never> = {
|
|
78
|
+
products?: (options: DisplayTransformerAlwaysThereData & {
|
|
79
|
+
displays: InputDisplay[];
|
|
80
|
+
/**
|
|
81
|
+
* If the category display transformer was called due to navigating to a listing using a <CategoryPage> component, currentListing will be set and contain a promise that can be used to get information of said listing.
|
|
82
|
+
*/
|
|
83
|
+
currentListing?: Promise<ProductListing>;
|
|
84
|
+
}) => CanBePromiseWrapped<OutputDisplay>;
|
|
85
|
+
categories?: <T extends ProductListingWithAncestors | ListingSuggestionForTransformer>(options: DisplayTransformerAlwaysThereData & {
|
|
86
|
+
data: T[];
|
|
87
|
+
}) => CanBePromiseWrapped<T[]>;
|
|
88
|
+
contentResults?: (options: DisplayTransformerAlwaysThereData & {
|
|
89
|
+
data: ContentLink[];
|
|
90
|
+
}) => CanBePromiseWrapped<ContentLink[]>;
|
|
91
|
+
};
|
|
77
92
|
/**
|
|
78
93
|
* Provider to wrap every listing (group of products) in
|
|
79
94
|
* Used for example for deduplicating ResizeObservers for responsive images
|
|
@@ -1516,7 +1531,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1516
1531
|
* Open the modal with support for alignment.
|
|
1517
1532
|
* @returns {void}
|
|
1518
1533
|
*/
|
|
1519
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1534
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1520
1535
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1521
1536
|
export interface PageReplacer {
|
|
1522
1537
|
readonly render_: () => Node_Array;
|
|
@@ -1595,5 +1610,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1595
1610
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1596
1611
|
layout?: PossibleLayout;
|
|
1597
1612
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1598
|
-
}): import("@depict-ai/utilishared
|
|
1613
|
+
}): import("@depict-ai/utilishared").Node_Array;
|
|
1599
1614
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { dlog as $i7OB2$dlog, catchify as $i7OB2$catchify1, ListenableSet as $i7
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.15";
|
|
11
11
|
function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
12
12
|
const [width, setWidth] = $i7OB2$createSignal(0);
|
|
13
13
|
const [height, setHeight] = $i7OB2$createSignal(0);
|
|
@@ -40,7 +40,8 @@ function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
|
40
40
|
// Them being here is value first too because this can be easily imported in the product card editor
|
|
41
41
|
let $a63fa9cb46ed211b$var$extraDisplayTransformers;
|
|
42
42
|
const $a63fa9cb46ed211b$export$b2d94be4f02525b2 = () => $a63fa9cb46ed211b$var$extraDisplayTransformers;
|
|
43
|
-
const $a63fa9cb46ed211b$export$f98b8d5ea7207a1 = displayTransformers => $a63fa9cb46ed211b$var$extraDisplayTransformers = displayTransformers;
|
|
43
|
+
const $a63fa9cb46ed211b$export$f98b8d5ea7207a1 = displayTransformers => $a63fa9cb46ed211b$var$extraDisplayTransformers = displayTransformers; // These display transformers are "extra" so they don't have to return a page_url, we already do that in the shopify app
|
|
44
|
+
|
|
44
45
|
const $011607bdf658f807$var$ListingContext = /*@__PURE__*/$i7OB2$createContext();
|
|
45
46
|
function $011607bdf658f807$export$e68cff63f76bd15b(props) {
|
|
46
47
|
const our_object = {};
|