@depict-ai/react-ui 2.1.0 → 2.1.2
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 +5 -4
- package/ES10/index.d.ts +4 -4
- package/ES10/index.js +5 -4
- package/latest/index.cjs +5 -4
- package/latest/index.d.ts +4 -4
- package/latest/index.js +5 -4
- package/package.json +3 -3
- package/server/ES10/index.cjs +1 -1
- package/server/ES10/index.d.ts +4 -4
- package/server/ES10/index.js +1 -1
- package/server/latest/index.cjs +1 -1
- package/server/latest/index.d.ts +4 -4
- package/server/latest/index.js +1 -1
package/ES10/index.cjs
CHANGED
|
@@ -38,7 +38,7 @@ $parcel$export(module.exports, "version", () => $efbdd2dab4314170$export$83d89fb
|
|
|
38
38
|
$parcel$export(module.exports, "Navigation", () => $0d3a2413fdeb34b9$export$b8a61e5c71402559);
|
|
39
39
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
40
40
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
41
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.1.
|
|
41
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.1.2";
|
|
42
42
|
const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
43
43
|
usedLocale: $2kiy7$solidjs.createSignal((0, $2kiy7$depictaiuilocales.defaultLocale)),
|
|
44
44
|
search_instances: new Map(),
|
|
@@ -560,7 +560,8 @@ async function $3441d987b5ea85cb$export$32024253978abdc7(_ref) {
|
|
|
560
560
|
await react_has_ran_hooks; // After React has created elements it still takes some time to actually connect the refs and run the hooks. We don't want to replace placeholders before then.
|
|
561
561
|
return [solid_container];
|
|
562
562
|
}
|
|
563
|
-
function $
|
|
563
|
+
function $5e001d14635c1518$export$84601d922bd37be1(blocks, component_portals, set_portals) {
|
|
564
|
+
// This will re-render everything if a block moves around but the alternative is that we re-render every time any state that has been used in the content blocks changes which is worse
|
|
564
565
|
return $2kiy7$solidjs.mapArray(blocks, block => {
|
|
565
566
|
if (!block) return block;
|
|
566
567
|
return {
|
|
@@ -630,7 +631,7 @@ function $735104b46c50160f$var$SolidSearchPage(props, set_portals) {
|
|
|
630
631
|
return $2kiy7$solidjs.createMemo(() => {
|
|
631
632
|
const stateKey = $2kiy7$solidjs.untrack(() => props.stateKey);
|
|
632
633
|
if ($735104b46c50160f$var$rendered_components_with_state_key.has(stateKey)) throw new Error("You have multiple SearchPage components with the same stateKey: ".concat(stateKey, ". Each SearchPage component must have a unique stateKey."));
|
|
633
|
-
const transformed_content_blocks = $
|
|
634
|
+
const transformed_content_blocks = $5e001d14635c1518$export$84601d922bd37be1(() => props.contentBlocksByRow, component_portals, set_portals);
|
|
634
635
|
$735104b46c50160f$var$rendered_components_with_state_key.add(stateKey);
|
|
635
636
|
$2kiy7$solidjs.onCleanup(() => $735104b46c50160f$var$rendered_components_with_state_key.delete(stateKey));
|
|
636
637
|
return $2kiy7$depictaiui.SearchPage({
|
|
@@ -718,7 +719,7 @@ function $15691268d8df90a9$var$SolidCategoryPage(props, set_portals) {
|
|
|
718
719
|
if ($15691268d8df90a9$var$rendered_components_with_state_key.has(stateKey)) throw new Error("You have multiple CategoryPage components with the same stateKey: ".concat(stateKey, ". Each CategoryPage component must have a unique stateKey."));
|
|
719
720
|
$15691268d8df90a9$var$rendered_components_with_state_key.add(stateKey);
|
|
720
721
|
$2kiy7$solidjs.onCleanup(() => $15691268d8df90a9$var$rendered_components_with_state_key.delete(stateKey));
|
|
721
|
-
const transformed_content_blocks = $
|
|
722
|
+
const transformed_content_blocks = $5e001d14635c1518$export$84601d922bd37be1(() => props.contentBlocksByRow, component_portals, set_portals);
|
|
722
723
|
return $2kiy7$depictaiui.CategoryPage({
|
|
723
724
|
depict_category: depict_category(),
|
|
724
725
|
get cols_at_size() {
|
package/ES10/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, ReactNode, FC, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/ES10";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/ES10";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/ES10";
|
|
6
|
-
export const version = "2.1.
|
|
6
|
+
export const version = "2.1.2";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -176,14 +176,14 @@ export type DepictProductCard<T extends Display> = (props: DepictProductCardProp
|
|
|
176
176
|
* The interface for a content block.
|
|
177
177
|
* Please make sure that you don't have content blocks overlap as that will cause undefined behavior.
|
|
178
178
|
* The height of the content block will be the height of the tallest item in a row, so if there are no products in a row the content block needs to "bring its own height".
|
|
179
|
-
* If you need to load any data in the content block, please make sure to return a placeholder while you're doing so, to avoid layout shifts and ensure scroll restoration works correctly.
|
|
179
|
+
* If you need to load any data in the content block, please make sure to return a placeholder while you're doing so (see `ImagePlaceholder`), to avoid layout shifts and ensure scroll restoration works correctly.
|
|
180
180
|
*
|
|
181
181
|
* - `spanColumns`: How many columns the block should span. This will be capped to the number of columns available.
|
|
182
182
|
* - `spanRows`: How many rows the block should span.
|
|
183
183
|
* - `position`: Where the block should be positioned. Can be `left`, `center` or `right`.
|
|
184
184
|
* - `content`: The content to render in the block - please provide a React component.
|
|
185
185
|
*/
|
|
186
|
-
type ReactContentBlock = {
|
|
186
|
+
export type ReactContentBlock = {
|
|
187
187
|
spanColumns: number;
|
|
188
188
|
spanRows: number;
|
|
189
189
|
position: "left" | "center" | "right";
|
|
@@ -199,7 +199,7 @@ type ReactContentBlock = {
|
|
|
199
199
|
* blocks[3] = block2;
|
|
200
200
|
* ```
|
|
201
201
|
*/
|
|
202
|
-
type ReactContentBlocksByRow = (undefined | ReactContentBlock)[];
|
|
202
|
+
export type ReactContentBlocksByRow = (undefined | ReactContentBlock)[];
|
|
203
203
|
interface SearchPageConfig<T extends Display> extends BaseSearchPageConfig, PLPConfig<T> {
|
|
204
204
|
/**
|
|
205
205
|
* When using multiple search instances on the same page, you need to set a unique stateKey for each one. We recommend using an incrementing number, such as "1", "2", "3", etc. To associate a modal with a SearchPage keyed component, set the same stateKey on both. If no stateKey is provided, the "default" instance will be used.
|
package/ES10/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { renderToString as $jb2Oo$renderToString } from "react-dom/server";
|
|
|
14
14
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
15
15
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
16
16
|
register_es_version("react-ui", "ES10");
|
|
17
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "2.1.
|
|
17
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "2.1.2";
|
|
18
18
|
const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
19
19
|
usedLocale: $jb2Oo$createSignal((0, $jb2Oo$defaultLocale)),
|
|
20
20
|
search_instances: new Map(),
|
|
@@ -536,7 +536,8 @@ async function $cce08f18e2476cbf$export$32024253978abdc7(_ref) {
|
|
|
536
536
|
await react_has_ran_hooks; // After React has created elements it still takes some time to actually connect the refs and run the hooks. We don't want to replace placeholders before then.
|
|
537
537
|
return [solid_container];
|
|
538
538
|
}
|
|
539
|
-
function $
|
|
539
|
+
function $0565aab3357d32e9$export$84601d922bd37be1(blocks, component_portals, set_portals) {
|
|
540
|
+
// This will re-render everything if a block moves around but the alternative is that we re-render every time any state that has been used in the content blocks changes which is worse
|
|
540
541
|
return $jb2Oo$mapArray(blocks, block => {
|
|
541
542
|
if (!block) return block;
|
|
542
543
|
return {
|
|
@@ -606,7 +607,7 @@ function $d059770e7af9e2dc$var$SolidSearchPage(props, set_portals) {
|
|
|
606
607
|
return $jb2Oo$createMemo(() => {
|
|
607
608
|
const stateKey = $jb2Oo$untrack(() => props.stateKey);
|
|
608
609
|
if ($d059770e7af9e2dc$var$rendered_components_with_state_key.has(stateKey)) throw new Error("You have multiple SearchPage components with the same stateKey: ".concat(stateKey, ". Each SearchPage component must have a unique stateKey."));
|
|
609
|
-
const transformed_content_blocks = $
|
|
610
|
+
const transformed_content_blocks = $0565aab3357d32e9$export$84601d922bd37be1(() => props.contentBlocksByRow, component_portals, set_portals);
|
|
610
611
|
$d059770e7af9e2dc$var$rendered_components_with_state_key.add(stateKey);
|
|
611
612
|
$jb2Oo$onCleanup(() => $d059770e7af9e2dc$var$rendered_components_with_state_key.delete(stateKey));
|
|
612
613
|
return $jb2Oo$SearchPage({
|
|
@@ -694,7 +695,7 @@ function $e86a296a07b17ad5$var$SolidCategoryPage(props, set_portals) {
|
|
|
694
695
|
if ($e86a296a07b17ad5$var$rendered_components_with_state_key.has(stateKey)) throw new Error("You have multiple CategoryPage components with the same stateKey: ".concat(stateKey, ". Each CategoryPage component must have a unique stateKey."));
|
|
695
696
|
$e86a296a07b17ad5$var$rendered_components_with_state_key.add(stateKey);
|
|
696
697
|
$jb2Oo$onCleanup(() => $e86a296a07b17ad5$var$rendered_components_with_state_key.delete(stateKey));
|
|
697
|
-
const transformed_content_blocks = $
|
|
698
|
+
const transformed_content_blocks = $0565aab3357d32e9$export$84601d922bd37be1(() => props.contentBlocksByRow, component_portals, set_portals);
|
|
698
699
|
return $jb2Oo$CategoryPage({
|
|
699
700
|
depict_category: depict_category(),
|
|
700
701
|
get cols_at_size() {
|
package/latest/index.cjs
CHANGED
|
@@ -38,7 +38,7 @@ $parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fb
|
|
|
38
38
|
$parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a61e5c71402559);
|
|
39
39
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
40
40
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
41
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "2.1.
|
|
41
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "2.1.2";
|
|
42
42
|
const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
43
43
|
usedLocale: $2IzJs$solidjs.createSignal((0, $2IzJs$depictaiuilocales.defaultLocale)),
|
|
44
44
|
search_instances: new Map(),
|
|
@@ -537,7 +537,8 @@ async function $6081519c185fcf70$export$32024253978abdc7({
|
|
|
537
537
|
await react_has_ran_hooks; // After React has created elements it still takes some time to actually connect the refs and run the hooks. We don't want to replace placeholders before then.
|
|
538
538
|
return [solid_container];
|
|
539
539
|
}
|
|
540
|
-
function $
|
|
540
|
+
function $7ba951bfed42cf93$export$84601d922bd37be1(blocks, component_portals, set_portals) {
|
|
541
|
+
// This will re-render everything if a block moves around but the alternative is that we re-render every time any state that has been used in the content blocks changes which is worse
|
|
541
542
|
return $2IzJs$solidjs.mapArray(blocks, block => {
|
|
542
543
|
if (!block) return block;
|
|
543
544
|
return {
|
|
@@ -606,7 +607,7 @@ function $7ad7a3d0011b7b1b$var$SolidSearchPage(props, set_portals) {
|
|
|
606
607
|
return $2IzJs$solidjs.createMemo(() => {
|
|
607
608
|
const stateKey = $2IzJs$solidjs.untrack(() => props.stateKey);
|
|
608
609
|
if ($7ad7a3d0011b7b1b$var$rendered_components_with_state_key.has(stateKey)) throw new Error(`You have multiple SearchPage components with the same stateKey: ${stateKey}. Each SearchPage component must have a unique stateKey.`);
|
|
609
|
-
const transformed_content_blocks = $
|
|
610
|
+
const transformed_content_blocks = $7ba951bfed42cf93$export$84601d922bd37be1(() => props.contentBlocksByRow, component_portals, set_portals);
|
|
610
611
|
$7ad7a3d0011b7b1b$var$rendered_components_with_state_key.add(stateKey);
|
|
611
612
|
$2IzJs$solidjs.onCleanup(() => $7ad7a3d0011b7b1b$var$rendered_components_with_state_key.delete(stateKey));
|
|
612
613
|
return $2IzJs$depictaiui.SearchPage({
|
|
@@ -690,7 +691,7 @@ function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
|
|
|
690
691
|
if ($5aa5fcb9f8a2bebc$var$rendered_components_with_state_key.has(stateKey)) throw new Error(`You have multiple CategoryPage components with the same stateKey: ${stateKey}. Each CategoryPage component must have a unique stateKey.`);
|
|
691
692
|
$5aa5fcb9f8a2bebc$var$rendered_components_with_state_key.add(stateKey);
|
|
692
693
|
$2IzJs$solidjs.onCleanup(() => $5aa5fcb9f8a2bebc$var$rendered_components_with_state_key.delete(stateKey));
|
|
693
|
-
const transformed_content_blocks = $
|
|
694
|
+
const transformed_content_blocks = $7ba951bfed42cf93$export$84601d922bd37be1(() => props.contentBlocksByRow, component_portals, set_portals);
|
|
694
695
|
return $2IzJs$depictaiui.CategoryPage({
|
|
695
696
|
depict_category: depict_category(),
|
|
696
697
|
get cols_at_size() {
|
package/latest/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, ReactNode, FC, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/latest";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/latest";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/latest";
|
|
6
|
-
export const version = "2.1.
|
|
6
|
+
export const version = "2.1.2";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -176,14 +176,14 @@ export type DepictProductCard<T extends Display> = (props: DepictProductCardProp
|
|
|
176
176
|
* The interface for a content block.
|
|
177
177
|
* Please make sure that you don't have content blocks overlap as that will cause undefined behavior.
|
|
178
178
|
* The height of the content block will be the height of the tallest item in a row, so if there are no products in a row the content block needs to "bring its own height".
|
|
179
|
-
* If you need to load any data in the content block, please make sure to return a placeholder while you're doing so, to avoid layout shifts and ensure scroll restoration works correctly.
|
|
179
|
+
* If you need to load any data in the content block, please make sure to return a placeholder while you're doing so (see `ImagePlaceholder`), to avoid layout shifts and ensure scroll restoration works correctly.
|
|
180
180
|
*
|
|
181
181
|
* - `spanColumns`: How many columns the block should span. This will be capped to the number of columns available.
|
|
182
182
|
* - `spanRows`: How many rows the block should span.
|
|
183
183
|
* - `position`: Where the block should be positioned. Can be `left`, `center` or `right`.
|
|
184
184
|
* - `content`: The content to render in the block - please provide a React component.
|
|
185
185
|
*/
|
|
186
|
-
type ReactContentBlock = {
|
|
186
|
+
export type ReactContentBlock = {
|
|
187
187
|
spanColumns: number;
|
|
188
188
|
spanRows: number;
|
|
189
189
|
position: "left" | "center" | "right";
|
|
@@ -199,7 +199,7 @@ type ReactContentBlock = {
|
|
|
199
199
|
* blocks[3] = block2;
|
|
200
200
|
* ```
|
|
201
201
|
*/
|
|
202
|
-
type ReactContentBlocksByRow = (undefined | ReactContentBlock)[];
|
|
202
|
+
export type ReactContentBlocksByRow = (undefined | ReactContentBlock)[];
|
|
203
203
|
interface SearchPageConfig<T extends Display> extends BaseSearchPageConfig, PLPConfig<T> {
|
|
204
204
|
/**
|
|
205
205
|
* When using multiple search instances on the same page, you need to set a unique stateKey for each one. We recommend using an incrementing number, such as "1", "2", "3", etc. To associate a modal with a SearchPage keyed component, set the same stateKey on both. If no stateKey is provided, the "default" instance will be used.
|
package/latest/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { renderToString as $2GFvs$renderToString } from "react-dom/server";
|
|
|
14
14
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
15
15
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
16
16
|
register_es_version("react-ui", "latest");
|
|
17
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "2.1.
|
|
17
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "2.1.2";
|
|
18
18
|
const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
19
19
|
usedLocale: $2GFvs$createSignal((0, $2GFvs$defaultLocale)),
|
|
20
20
|
search_instances: new Map(),
|
|
@@ -513,7 +513,8 @@ async function $bcf84a32dc612a43$export$32024253978abdc7({
|
|
|
513
513
|
await react_has_ran_hooks; // After React has created elements it still takes some time to actually connect the refs and run the hooks. We don't want to replace placeholders before then.
|
|
514
514
|
return [solid_container];
|
|
515
515
|
}
|
|
516
|
-
function $
|
|
516
|
+
function $e16fbb8ed9e9036a$export$84601d922bd37be1(blocks, component_portals, set_portals) {
|
|
517
|
+
// This will re-render everything if a block moves around but the alternative is that we re-render every time any state that has been used in the content blocks changes which is worse
|
|
517
518
|
return $2GFvs$mapArray(blocks, block => {
|
|
518
519
|
if (!block) return block;
|
|
519
520
|
return {
|
|
@@ -582,7 +583,7 @@ function $4a678f0c87b12e78$var$SolidSearchPage(props, set_portals) {
|
|
|
582
583
|
return $2GFvs$createMemo(() => {
|
|
583
584
|
const stateKey = $2GFvs$untrack(() => props.stateKey);
|
|
584
585
|
if ($4a678f0c87b12e78$var$rendered_components_with_state_key.has(stateKey)) throw new Error(`You have multiple SearchPage components with the same stateKey: ${stateKey}. Each SearchPage component must have a unique stateKey.`);
|
|
585
|
-
const transformed_content_blocks = $
|
|
586
|
+
const transformed_content_blocks = $e16fbb8ed9e9036a$export$84601d922bd37be1(() => props.contentBlocksByRow, component_portals, set_portals);
|
|
586
587
|
$4a678f0c87b12e78$var$rendered_components_with_state_key.add(stateKey);
|
|
587
588
|
$2GFvs$onCleanup(() => $4a678f0c87b12e78$var$rendered_components_with_state_key.delete(stateKey));
|
|
588
589
|
return $2GFvs$SearchPage({
|
|
@@ -666,7 +667,7 @@ function $48d7f568740a317d$var$SolidCategoryPage(props, set_portals) {
|
|
|
666
667
|
if ($48d7f568740a317d$var$rendered_components_with_state_key.has(stateKey)) throw new Error(`You have multiple CategoryPage components with the same stateKey: ${stateKey}. Each CategoryPage component must have a unique stateKey.`);
|
|
667
668
|
$48d7f568740a317d$var$rendered_components_with_state_key.add(stateKey);
|
|
668
669
|
$2GFvs$onCleanup(() => $48d7f568740a317d$var$rendered_components_with_state_key.delete(stateKey));
|
|
669
|
-
const transformed_content_blocks = $
|
|
670
|
+
const transformed_content_blocks = $e16fbb8ed9e9036a$export$84601d922bd37be1(() => props.contentBlocksByRow, component_portals, set_portals);
|
|
670
671
|
return $2GFvs$CategoryPage({
|
|
671
672
|
depict_category: depict_category(),
|
|
672
673
|
get cols_at_size() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/react-ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"@babel/runtime-corejs3": "latest",
|
|
138
138
|
"@depict-ai/dpc": "^1.0.42",
|
|
139
139
|
"@depict-ai/plp-styling": "^1.2.6",
|
|
140
|
-
"@depict-ai/ui": "^2.1.
|
|
140
|
+
"@depict-ai/ui": "^2.1.1",
|
|
141
141
|
"@depict-ai/utilishared": "^1.0.47",
|
|
142
142
|
"solid-js": "^1.8.1"
|
|
143
143
|
},
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"@types/node": "^18.11.11",
|
|
159
159
|
"@types/react": "^18.0.26",
|
|
160
160
|
"@types/react-dom": "^18.0.10",
|
|
161
|
-
"babel-preset-solid": "
|
|
161
|
+
"babel-preset-solid": "^1.8.2",
|
|
162
162
|
"jest": "^29.3.1",
|
|
163
163
|
"jest-environment-jsdom": "^29.3.1",
|
|
164
164
|
"jest-haste-map": "^29.3.1",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -170,7 +170,7 @@ function $27d583018ba6e604$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.1.
|
|
173
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.1.2";
|
|
174
174
|
function $202459d454907b31$export$9fac37a9c21c2f3b(props) {
|
|
175
175
|
return props.children;
|
|
176
176
|
}
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, ReactNode, FC, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/ES10";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/ES10";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/ES10";
|
|
6
|
-
export const version = "2.1.
|
|
6
|
+
export const version = "2.1.2";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -176,14 +176,14 @@ export type DepictProductCard<T extends Display> = (props: DepictProductCardProp
|
|
|
176
176
|
* The interface for a content block.
|
|
177
177
|
* Please make sure that you don't have content blocks overlap as that will cause undefined behavior.
|
|
178
178
|
* The height of the content block will be the height of the tallest item in a row, so if there are no products in a row the content block needs to "bring its own height".
|
|
179
|
-
* If you need to load any data in the content block, please make sure to return a placeholder while you're doing so, to avoid layout shifts and ensure scroll restoration works correctly.
|
|
179
|
+
* If you need to load any data in the content block, please make sure to return a placeholder while you're doing so (see `ImagePlaceholder`), to avoid layout shifts and ensure scroll restoration works correctly.
|
|
180
180
|
*
|
|
181
181
|
* - `spanColumns`: How many columns the block should span. This will be capped to the number of columns available.
|
|
182
182
|
* - `spanRows`: How many rows the block should span.
|
|
183
183
|
* - `position`: Where the block should be positioned. Can be `left`, `center` or `right`.
|
|
184
184
|
* - `content`: The content to render in the block - please provide a React component.
|
|
185
185
|
*/
|
|
186
|
-
type ReactContentBlock = {
|
|
186
|
+
export type ReactContentBlock = {
|
|
187
187
|
spanColumns: number;
|
|
188
188
|
spanRows: number;
|
|
189
189
|
position: "left" | "center" | "right";
|
|
@@ -199,7 +199,7 @@ type ReactContentBlock = {
|
|
|
199
199
|
* blocks[3] = block2;
|
|
200
200
|
* ```
|
|
201
201
|
*/
|
|
202
|
-
type ReactContentBlocksByRow = (undefined | ReactContentBlock)[];
|
|
202
|
+
export type ReactContentBlocksByRow = (undefined | ReactContentBlock)[];
|
|
203
203
|
interface SearchPageConfig<T extends Display> extends BaseSearchPageConfig, PLPConfig<T> {
|
|
204
204
|
/**
|
|
205
205
|
* When using multiple search instances on the same page, you need to set a unique stateKey for each one. We recommend using an incrementing number, such as "1", "2", "3", etc. To associate a modal with a SearchPage keyed component, set the same stateKey on both. If no stateKey is provided, the "default" instance will be used.
|
package/server/ES10/index.js
CHANGED
|
@@ -147,7 +147,7 @@ function $48b0916cc674770c$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "2.1.
|
|
150
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "2.1.2";
|
|
151
151
|
function $5c4add0a8fe94894$export$9fac37a9c21c2f3b(props) {
|
|
152
152
|
return props.children;
|
|
153
153
|
}
|
package/server/latest/index.cjs
CHANGED
|
@@ -163,7 +163,7 @@ function $0aaa03f81d756b85$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "2.1.
|
|
166
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "2.1.2";
|
|
167
167
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
|
168
168
|
return props.children;
|
|
169
169
|
}
|
package/server/latest/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, ReactNode, FC, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/latest";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/latest";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/latest";
|
|
6
|
-
export const version = "2.1.
|
|
6
|
+
export const version = "2.1.2";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -176,14 +176,14 @@ export type DepictProductCard<T extends Display> = (props: DepictProductCardProp
|
|
|
176
176
|
* The interface for a content block.
|
|
177
177
|
* Please make sure that you don't have content blocks overlap as that will cause undefined behavior.
|
|
178
178
|
* The height of the content block will be the height of the tallest item in a row, so if there are no products in a row the content block needs to "bring its own height".
|
|
179
|
-
* If you need to load any data in the content block, please make sure to return a placeholder while you're doing so, to avoid layout shifts and ensure scroll restoration works correctly.
|
|
179
|
+
* If you need to load any data in the content block, please make sure to return a placeholder while you're doing so (see `ImagePlaceholder`), to avoid layout shifts and ensure scroll restoration works correctly.
|
|
180
180
|
*
|
|
181
181
|
* - `spanColumns`: How many columns the block should span. This will be capped to the number of columns available.
|
|
182
182
|
* - `spanRows`: How many rows the block should span.
|
|
183
183
|
* - `position`: Where the block should be positioned. Can be `left`, `center` or `right`.
|
|
184
184
|
* - `content`: The content to render in the block - please provide a React component.
|
|
185
185
|
*/
|
|
186
|
-
type ReactContentBlock = {
|
|
186
|
+
export type ReactContentBlock = {
|
|
187
187
|
spanColumns: number;
|
|
188
188
|
spanRows: number;
|
|
189
189
|
position: "left" | "center" | "right";
|
|
@@ -199,7 +199,7 @@ type ReactContentBlock = {
|
|
|
199
199
|
* blocks[3] = block2;
|
|
200
200
|
* ```
|
|
201
201
|
*/
|
|
202
|
-
type ReactContentBlocksByRow = (undefined | ReactContentBlock)[];
|
|
202
|
+
export type ReactContentBlocksByRow = (undefined | ReactContentBlock)[];
|
|
203
203
|
interface SearchPageConfig<T extends Display> extends BaseSearchPageConfig, PLPConfig<T> {
|
|
204
204
|
/**
|
|
205
205
|
* When using multiple search instances on the same page, you need to set a unique stateKey for each one. We recommend using an incrementing number, such as "1", "2", "3", etc. To associate a modal with a SearchPage keyed component, set the same stateKey on both. If no stateKey is provided, the "default" instance will be used.
|
package/server/latest/index.js
CHANGED
|
@@ -140,7 +140,7 @@ function $8bee51f55543fe0c$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "2.1.
|
|
143
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "2.1.2";
|
|
144
144
|
function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
|
|
145
145
|
return props.children;
|
|
146
146
|
}
|