@depict-ai/ui 4.8.15 → 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 +2 -1
- package/ES10/index.d.ts +19 -4
- package/ES10/index.js +2 -1
- package/latest/index.cjs +2 -1
- package/latest/index.d.ts +19 -4
- package/latest/index.js +2 -1
- package/package.json +2 -2
- package/server/ES10/index.cjs +2 -1
- package/server/ES10/index.d.ts +19 -4
- package/server/ES10/index.js +2 -1
- package/server/latest/index.cjs +2 -1
- package/server/latest/index.d.ts +19 -4
- package/server/latest/index.js +2 -1
package/ES10/index.cjs
CHANGED
|
@@ -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 = {};
|
package/ES10/index.d.ts
CHANGED
|
@@ -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
|
@@ -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 = {};
|
package/latest/index.cjs
CHANGED
|
@@ -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 = {};
|
package/latest/index.d.ts
CHANGED
|
@@ -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
|
@@ -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 = {};
|
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",
|
|
@@ -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": "^4.4.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.4.16",
|
|
240
240
|
"@depict-ai/types": "^5.4.4",
|
|
241
241
|
"@depict-ai/utilishared": "^2.4.5",
|
|
242
242
|
"solid-js": "^1.8.16"
|
package/server/ES10/index.cjs
CHANGED
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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 = {};
|