@depict-ai/react-ui 2.1.6 → 2.1.7
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 +14 -1
- package/ES10/index.d.ts +2 -2
- package/ES10/index.js +15 -2
- package/latest/index.cjs +13 -1
- package/latest/index.d.ts +2 -2
- package/latest/index.js +14 -2
- package/package.json +3 -3
- package/server/ES10/index.cjs +17 -3
- package/server/ES10/index.d.ts +2 -2
- package/server/ES10/index.js +18 -4
- package/server/latest/index.cjs +16 -3
- package/server/latest/index.d.ts +2 -2
- package/server/latest/index.js +17 -4
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.7";
|
|
42
42
|
const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
43
43
|
usedLocale: $2kiy7$solidjs.createSignal((0, $2kiy7$depictaiuilocales.defaultLocale)),
|
|
44
44
|
search_instances: new Map(),
|
|
@@ -810,7 +810,19 @@ const $07e1b96355935829$export$89c6019e4baa40b1 = raw_react_props => {
|
|
|
810
810
|
}
|
|
811
811
|
});
|
|
812
812
|
};
|
|
813
|
+
|
|
814
|
+
// Triggered by synsam trying to put null here and typescript somehow not complaining
|
|
815
|
+
|
|
816
|
+
function $6e5ce22b65512b0a$export$4daadad26e48a2c7(props) {
|
|
817
|
+
var _props$recommendation;
|
|
818
|
+
const us = "RecommendationSlider/RecommendationGrid:";
|
|
819
|
+
if (typeof (props === null || props === void 0 ? void 0 : (_props$recommendation = props.recommendations) === null || _props$recommendation === void 0 ? void 0 : _props$recommendation.then) !== "function") {
|
|
820
|
+
$2kiy7$depictaiutilishared.dwarn(us, "Got", props.recommendations, "which is not thenable");
|
|
821
|
+
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
822
|
+
}
|
|
823
|
+
}
|
|
813
824
|
function $745b83c12baac3c0$export$82cfdc85a4d15688(props) {
|
|
825
|
+
$6e5ce22b65512b0a$export$4daadad26e48a2c7(props);
|
|
814
826
|
return $e7ba61a7074c02d3$export$f6e64e17bd69eeef({
|
|
815
827
|
solid_component: $745b83c12baac3c0$export$5abb40edfde2a843,
|
|
816
828
|
props: props
|
|
@@ -887,6 +899,7 @@ function $27d583018ba6e604$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
887
899
|
});
|
|
888
900
|
}
|
|
889
901
|
function $8f89f8a832210d6b$export$b0a773486c1c2312(props) {
|
|
902
|
+
$6e5ce22b65512b0a$export$4daadad26e48a2c7(props);
|
|
890
903
|
return $e7ba61a7074c02d3$export$f6e64e17bd69eeef({
|
|
891
904
|
solid_component: (0, $27d583018ba6e604$export$bd8acc07a8bae229),
|
|
892
905
|
props: props,
|
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.7";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -607,7 +607,7 @@ export function useFetchRecommendations<T extends Display>(): UseFetchRecommenda
|
|
|
607
607
|
* Helper function to navigate to a new page depending on the navigation library used.
|
|
608
608
|
*/
|
|
609
609
|
export const Navigation: {
|
|
610
|
-
nextRouterNavigation: (router: import("next/router").NextRouter) => import("ui/components/DepictProvider").NavigateFunction;
|
|
610
|
+
nextRouterNavigation: (router: import("next/router").NextRouter) => import("src/ui/components/DepictProvider").NavigateFunction;
|
|
611
611
|
};
|
|
612
612
|
export { CategoryTitle, embedded_num_products as EmbeddedNumProducts } from "@depict-ai/ui";
|
|
613
613
|
export type { PageURLCreator, DisplayTransformers } from "@depict-ai/ui";
|
package/ES10/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { add_to_version_info as $jb2Oo$add_to_version_info, catchify as $jb2Oo$catchify, queueMacroTask as $jb2Oo$queueMacroTask, instant_exec_on_suspect_history_change as $jb2Oo$instant_exec_on_suspect_history_change, derror as $jb2Oo$derror } from "@depict-ai/utilishared/ES10";
|
|
1
|
+
import { add_to_version_info as $jb2Oo$add_to_version_info, catchify as $jb2Oo$catchify, queueMacroTask as $jb2Oo$queueMacroTask, instant_exec_on_suspect_history_change as $jb2Oo$instant_exec_on_suspect_history_change, derror as $jb2Oo$derror, dwarn as $jb2Oo$dwarn } from "@depict-ai/utilishared/ES10";
|
|
2
2
|
import { CategoryTitle as $383b6fd56bf151bd$re_export$CategoryTitle, embedded_num_products as $383b6fd56bf151bd$re_export$EmbeddedNumProducts, DepictAPI as $jb2Oo$DepictAPI, DepictSearch as $jb2Oo$DepictSearch, DepictCategory as $jb2Oo$DepictCategory, get_search_query_updating_blocked_signal as $jb2Oo$get_search_query_updating_blocked_signal, SearchPage as $jb2Oo$SearchPage, defaultColsAtSize as $jb2Oo$defaultColsAtSize, defaultGridSpacing as $jb2Oo$defaultGridSpacing, ProductCardError as $jb2Oo$ProductCardError, CategoryPage as $jb2Oo$CategoryPage, defaultCategoryTitlePlugin as $jb2Oo$defaultCategoryTitlePlugin, BreadCrumbs as $jb2Oo$BreadCrumbs, QuickLinks as $jb2Oo$QuickLinks, ImagePlaceholder as $jb2Oo$ImagePlaceholder, TextPlaceholder as $jb2Oo$TextPlaceholder, RecommendationSlider as $jb2Oo$RecommendationSlider, RecommendationGrid as $jb2Oo$RecommendationGrid, open_modal_with_alignment as $jb2Oo$open_modal_with_alignment, SearchField as $jb2Oo$SearchField, fetchDepictRecommendations as $jb2Oo$fetchDepictRecommendations } from "@depict-ai/ui/ES10";
|
|
3
3
|
import { untrack as $jb2Oo$untrack, createRoot as $jb2Oo$createRoot, createEffect as $jb2Oo$createEffect, createMemo as $jb2Oo$createMemo, createComponent as $jb2Oo$createComponent, Show as $jb2Oo$Show, createSignal as $jb2Oo$createSignal, createComputed as $jb2Oo$createComputed, onCleanup as $jb2Oo$onCleanup, getOwner as $jb2Oo$getOwner, runWithOwner as $jb2Oo$runWithOwner, on as $jb2Oo$on, mapArray as $jb2Oo$mapArray } from "solid-js";
|
|
4
4
|
import { createElement as $jb2Oo$createElement, Fragment as $jb2Oo$Fragment, useEffect as $jb2Oo$useEffect, useState as $jb2Oo$useState, useRef as $jb2Oo$useRef, forwardRef as $jb2Oo$forwardRef, Component as $jb2Oo$Component, useCallback as $jb2Oo$useCallback } from "react";
|
|
@@ -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.7";
|
|
18
18
|
const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
19
19
|
usedLocale: $jb2Oo$createSignal((0, $jb2Oo$defaultLocale)),
|
|
20
20
|
search_instances: new Map(),
|
|
@@ -786,7 +786,19 @@ const $2c7738b65cbcac1c$export$89c6019e4baa40b1 = raw_react_props => {
|
|
|
786
786
|
}
|
|
787
787
|
});
|
|
788
788
|
};
|
|
789
|
+
|
|
790
|
+
// Triggered by synsam trying to put null here and typescript somehow not complaining
|
|
791
|
+
|
|
792
|
+
function $758339150fbfe9d5$export$4daadad26e48a2c7(props) {
|
|
793
|
+
var _props$recommendation;
|
|
794
|
+
const us = "RecommendationSlider/RecommendationGrid:";
|
|
795
|
+
if (typeof (props === null || props === void 0 ? void 0 : (_props$recommendation = props.recommendations) === null || _props$recommendation === void 0 ? void 0 : _props$recommendation.then) !== "function") {
|
|
796
|
+
$jb2Oo$dwarn(us, "Got", props.recommendations, "which is not thenable");
|
|
797
|
+
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
798
|
+
}
|
|
799
|
+
}
|
|
789
800
|
function $c02e9fd51f31a1bd$export$82cfdc85a4d15688(props) {
|
|
801
|
+
$758339150fbfe9d5$export$4daadad26e48a2c7(props);
|
|
790
802
|
return $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef({
|
|
791
803
|
solid_component: $c02e9fd51f31a1bd$export$5abb40edfde2a843,
|
|
792
804
|
props: props
|
|
@@ -863,6 +875,7 @@ function $48b0916cc674770c$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
863
875
|
});
|
|
864
876
|
}
|
|
865
877
|
function $31abef71c0a2d3fc$export$b0a773486c1c2312(props) {
|
|
878
|
+
$758339150fbfe9d5$export$4daadad26e48a2c7(props);
|
|
866
879
|
return $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef({
|
|
867
880
|
solid_component: (0, $48b0916cc674770c$export$bd8acc07a8bae229),
|
|
868
881
|
props: props,
|
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.7";
|
|
42
42
|
const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
43
43
|
usedLocale: $2IzJs$solidjs.createSignal((0, $2IzJs$depictaiuilocales.defaultLocale)),
|
|
44
44
|
search_instances: new Map(),
|
|
@@ -779,7 +779,18 @@ const $7c8b440edc188ad5$export$89c6019e4baa40b1 = raw_react_props => {
|
|
|
779
779
|
}
|
|
780
780
|
});
|
|
781
781
|
};
|
|
782
|
+
|
|
783
|
+
// Triggered by synsam trying to put null here and typescript somehow not complaining
|
|
784
|
+
|
|
785
|
+
function $67657ea54664baa8$export$4daadad26e48a2c7(props) {
|
|
786
|
+
const us = "RecommendationSlider/RecommendationGrid:";
|
|
787
|
+
if (typeof props?.recommendations?.then !== "function") {
|
|
788
|
+
$2IzJs$depictaiutilishared.dwarn(us, "Got", props.recommendations, "which is not thenable");
|
|
789
|
+
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
790
|
+
}
|
|
791
|
+
}
|
|
782
792
|
function $8ffd7da37fdd46be$export$82cfdc85a4d15688(props) {
|
|
793
|
+
$67657ea54664baa8$export$4daadad26e48a2c7(props);
|
|
783
794
|
return $b4d0d98857ed9934$export$f6e64e17bd69eeef({
|
|
784
795
|
solid_component: $8ffd7da37fdd46be$export$5abb40edfde2a843,
|
|
785
796
|
props: props
|
|
@@ -853,6 +864,7 @@ function $0aaa03f81d756b85$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
853
864
|
});
|
|
854
865
|
}
|
|
855
866
|
function $48732d1a919ddb4c$export$b0a773486c1c2312(props) {
|
|
867
|
+
$67657ea54664baa8$export$4daadad26e48a2c7(props);
|
|
856
868
|
return $b4d0d98857ed9934$export$f6e64e17bd69eeef({
|
|
857
869
|
solid_component: (0, $0aaa03f81d756b85$export$bd8acc07a8bae229),
|
|
858
870
|
props: props,
|
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.7";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -607,7 +607,7 @@ export function useFetchRecommendations<T extends Display>(): UseFetchRecommenda
|
|
|
607
607
|
* Helper function to navigate to a new page depending on the navigation library used.
|
|
608
608
|
*/
|
|
609
609
|
export const Navigation: {
|
|
610
|
-
nextRouterNavigation: (router: import("next/router").NextRouter) => import("ui/components/DepictProvider").NavigateFunction;
|
|
610
|
+
nextRouterNavigation: (router: import("next/router").NextRouter) => import("src/ui/components/DepictProvider").NavigateFunction;
|
|
611
611
|
};
|
|
612
612
|
export { CategoryTitle, embedded_num_products as EmbeddedNumProducts } from "@depict-ai/ui";
|
|
613
613
|
export type { PageURLCreator, DisplayTransformers } from "@depict-ai/ui";
|
package/latest/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { add_to_version_info as $2GFvs$add_to_version_info, catchify as $2GFvs$catchify, queueMacroTask as $2GFvs$queueMacroTask, instant_exec_on_suspect_history_change as $2GFvs$instant_exec_on_suspect_history_change, derror as $2GFvs$derror } from "@depict-ai/utilishared/latest";
|
|
1
|
+
import { add_to_version_info as $2GFvs$add_to_version_info, catchify as $2GFvs$catchify, queueMacroTask as $2GFvs$queueMacroTask, instant_exec_on_suspect_history_change as $2GFvs$instant_exec_on_suspect_history_change, derror as $2GFvs$derror, dwarn as $2GFvs$dwarn } from "@depict-ai/utilishared/latest";
|
|
2
2
|
import { CategoryTitle as $43099132aad1ceb6$re_export$CategoryTitle, embedded_num_products as $43099132aad1ceb6$re_export$EmbeddedNumProducts, DepictAPI as $2GFvs$DepictAPI, DepictSearch as $2GFvs$DepictSearch, DepictCategory as $2GFvs$DepictCategory, get_search_query_updating_blocked_signal as $2GFvs$get_search_query_updating_blocked_signal, SearchPage as $2GFvs$SearchPage, defaultColsAtSize as $2GFvs$defaultColsAtSize, defaultGridSpacing as $2GFvs$defaultGridSpacing, ProductCardError as $2GFvs$ProductCardError, CategoryPage as $2GFvs$CategoryPage, defaultCategoryTitlePlugin as $2GFvs$defaultCategoryTitlePlugin, BreadCrumbs as $2GFvs$BreadCrumbs, QuickLinks as $2GFvs$QuickLinks, ImagePlaceholder as $2GFvs$ImagePlaceholder, TextPlaceholder as $2GFvs$TextPlaceholder, RecommendationSlider as $2GFvs$RecommendationSlider, RecommendationGrid as $2GFvs$RecommendationGrid, open_modal_with_alignment as $2GFvs$open_modal_with_alignment, SearchField as $2GFvs$SearchField, fetchDepictRecommendations as $2GFvs$fetchDepictRecommendations } from "@depict-ai/ui/latest";
|
|
3
3
|
import { untrack as $2GFvs$untrack, createRoot as $2GFvs$createRoot, createEffect as $2GFvs$createEffect, createMemo as $2GFvs$createMemo, createComponent as $2GFvs$createComponent, Show as $2GFvs$Show, createSignal as $2GFvs$createSignal, createComputed as $2GFvs$createComputed, onCleanup as $2GFvs$onCleanup, getOwner as $2GFvs$getOwner, runWithOwner as $2GFvs$runWithOwner, on as $2GFvs$on, mapArray as $2GFvs$mapArray } from "solid-js";
|
|
4
4
|
import { createElement as $2GFvs$createElement, Fragment as $2GFvs$Fragment, useEffect as $2GFvs$useEffect, useState as $2GFvs$useState, useRef as $2GFvs$useRef, forwardRef as $2GFvs$forwardRef, Component as $2GFvs$Component, useCallback as $2GFvs$useCallback } from "react";
|
|
@@ -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.7";
|
|
18
18
|
const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
19
19
|
usedLocale: $2GFvs$createSignal((0, $2GFvs$defaultLocale)),
|
|
20
20
|
search_instances: new Map(),
|
|
@@ -755,7 +755,18 @@ const $cbd250061abf11cb$export$89c6019e4baa40b1 = raw_react_props => {
|
|
|
755
755
|
}
|
|
756
756
|
});
|
|
757
757
|
};
|
|
758
|
+
|
|
759
|
+
// Triggered by synsam trying to put null here and typescript somehow not complaining
|
|
760
|
+
|
|
761
|
+
function $ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props) {
|
|
762
|
+
const us = "RecommendationSlider/RecommendationGrid:";
|
|
763
|
+
if (typeof props?.recommendations?.then !== "function") {
|
|
764
|
+
$2GFvs$dwarn(us, "Got", props.recommendations, "which is not thenable");
|
|
765
|
+
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
766
|
+
}
|
|
767
|
+
}
|
|
758
768
|
function $4fd5dc0e231a60d9$export$82cfdc85a4d15688(props) {
|
|
769
|
+
$ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props);
|
|
759
770
|
return $c83ba9ab79386687$export$f6e64e17bd69eeef({
|
|
760
771
|
solid_component: $4fd5dc0e231a60d9$export$5abb40edfde2a843,
|
|
761
772
|
props: props
|
|
@@ -829,6 +840,7 @@ function $8bee51f55543fe0c$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
829
840
|
});
|
|
830
841
|
}
|
|
831
842
|
function $73b783bfc241b2d9$export$b0a773486c1c2312(props) {
|
|
843
|
+
$ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props);
|
|
832
844
|
return $c83ba9ab79386687$export$f6e64e17bd69eeef({
|
|
833
845
|
solid_component: (0, $8bee51f55543fe0c$export$bd8acc07a8bae229),
|
|
834
846
|
props: props,
|
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.7",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -137,8 +137,8 @@
|
|
|
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.
|
|
141
|
-
"@depict-ai/utilishared": "^1.0.
|
|
140
|
+
"@depict-ai/ui": "^2.1.12",
|
|
141
|
+
"@depict-ai/utilishared": "^1.0.48",
|
|
142
142
|
"solid-js": "^1.8.1"
|
|
143
143
|
},
|
|
144
144
|
"peerDependencies": {
|
package/server/ES10/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ var $aNCHr$reactdomserver = require("react-dom/server");
|
|
|
5
5
|
var $aNCHr$solidjs = require("solid-js");
|
|
6
6
|
var $aNCHr$reactjsxruntime = require("react/jsx-runtime");
|
|
7
7
|
var $aNCHr$reactdom = require("react-dom");
|
|
8
|
+
var $aNCHr$depictaiutilishared = require("@depict-ai/utilishared/ES10");
|
|
8
9
|
require("../../multi_import_deduplicator.cjs").register_es_version("react-ui", "ES10");
|
|
9
10
|
function $parcel$export(e, n, v, s) {
|
|
10
11
|
Object.defineProperty(e, n, {
|
|
@@ -39,7 +40,7 @@ function $f144be06c518d0ac$export$4b564d7f5a1b1d43(_ref) {
|
|
|
39
40
|
} = _ref;
|
|
40
41
|
const wrapper_element_ref = $aNCHr$react.useRef();
|
|
41
42
|
// The worst thing that can happen by multiple generateHydrationScript's is that events dispatched before the hydration are duplicated in solid's shared context which leads to them being deduplicated again here https://github.com/ryansolid/dom-expressions/blob/21fdba5bcab25986a2b93003aaace100b2231cdc/packages/dom-expressions/src/client.js#L280
|
|
42
|
-
const rendered_html = $aNCHr$solidjsweb.renderToString(() => solid_component(props, () => {}))
|
|
43
|
+
const rendered_html = $aNCHr$solidjsweb.generateHydrationScript() + $aNCHr$solidjsweb.renderToString(() => solid_component(props, () => {}));
|
|
43
44
|
return $aNCHr$react.createElement((0, $aNCHr$react.Fragment), null, $aNCHr$react.createElement(wrapper_type, {
|
|
44
45
|
ref: wrapper_element_ref,
|
|
45
46
|
style: wrapper_style,
|
|
@@ -170,7 +171,18 @@ function $27d583018ba6e604$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
170
171
|
}
|
|
171
172
|
});
|
|
172
173
|
}
|
|
173
|
-
|
|
174
|
+
|
|
175
|
+
// Triggered by synsam trying to put null here and typescript somehow not complaining
|
|
176
|
+
|
|
177
|
+
function $6e5ce22b65512b0a$export$4daadad26e48a2c7(props) {
|
|
178
|
+
var _props$recommendation;
|
|
179
|
+
const us = "RecommendationSlider/RecommendationGrid:";
|
|
180
|
+
if (typeof (props === null || props === void 0 ? void 0 : (_props$recommendation = props.recommendations) === null || _props$recommendation === void 0 ? void 0 : _props$recommendation.then) !== "function") {
|
|
181
|
+
$aNCHr$depictaiutilishared.dwarn(us, "Got", props.recommendations, "which is not thenable");
|
|
182
|
+
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.1.7";
|
|
174
186
|
function $202459d454907b31$export$9fac37a9c21c2f3b(props) {
|
|
175
187
|
return props.children;
|
|
176
188
|
}
|
|
@@ -194,7 +206,8 @@ function $202459d454907b31$export$466cdc317043f6cb() {
|
|
|
194
206
|
children: []
|
|
195
207
|
});
|
|
196
208
|
}
|
|
197
|
-
function $202459d454907b31$export$82cfdc85a4d15688() {
|
|
209
|
+
function $202459d454907b31$export$82cfdc85a4d15688(props) {
|
|
210
|
+
$6e5ce22b65512b0a$export$4daadad26e48a2c7(props);
|
|
198
211
|
return $aNCHr$react.createElement("div", {
|
|
199
212
|
children: []
|
|
200
213
|
});
|
|
@@ -219,6 +232,7 @@ function $202459d454907b31$export$3f37af283f8fb843(raw_react_props) {
|
|
|
219
232
|
});
|
|
220
233
|
}
|
|
221
234
|
function $202459d454907b31$export$b0a773486c1c2312(props) {
|
|
235
|
+
$6e5ce22b65512b0a$export$4daadad26e48a2c7(props);
|
|
222
236
|
return $f144be06c518d0ac$export$4b564d7f5a1b1d43({
|
|
223
237
|
solid_component: (0, $27d583018ba6e604$export$bd8acc07a8bae229),
|
|
224
238
|
props: props,
|
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.7";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -607,7 +607,7 @@ export function useFetchRecommendations<T extends Display>(): UseFetchRecommenda
|
|
|
607
607
|
* Helper function to navigate to a new page depending on the navigation library used.
|
|
608
608
|
*/
|
|
609
609
|
export const Navigation: {
|
|
610
|
-
nextRouterNavigation: (router: import("next/router").NextRouter) => import("ui/components/DepictProvider").NavigateFunction;
|
|
610
|
+
nextRouterNavigation: (router: import("next/router").NextRouter) => import("src/ui/components/DepictProvider").NavigateFunction;
|
|
611
611
|
};
|
|
612
612
|
export { CategoryTitle, embedded_num_products as EmbeddedNumProducts } from "@depict-ai/ui";
|
|
613
613
|
export type { PageURLCreator, DisplayTransformers } from "@depict-ai/ui";
|
package/server/ES10/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createElement as $7h5e1$createElement, useRef as $7h5e1$useRef, Fragment as $7h5e1$Fragment, useEffect as $7h5e1$useEffect, useState as $7h5e1$useState, Component as $7h5e1$Component } from "react";
|
|
2
2
|
import { ImagePlaceholder as $7h5e1$ImagePlaceholder, TextPlaceholder as $7h5e1$TextPlaceholder, RecommendationGrid as $7h5e1$RecommendationGrid, defaultColsAtSize as $7h5e1$defaultColsAtSize, defaultGridSpacing as $7h5e1$defaultGridSpacing, ProductCardError as $7h5e1$ProductCardError } from "@depict-ai/ui/ES10";
|
|
3
|
-
import {
|
|
3
|
+
import { generateHydrationScript as $7h5e1$generateHydrationScript, renderToString as $7h5e1$renderToString, isServer as $7h5e1$isServer } from "solid-js/web";
|
|
4
4
|
import { renderToString as $7h5e1$renderToString1 } from "react-dom/server";
|
|
5
5
|
import { getOwner as $7h5e1$getOwner, untrack as $7h5e1$untrack, runWithOwner as $7h5e1$runWithOwner, createEffect as $7h5e1$createEffect, on as $7h5e1$on, onCleanup as $7h5e1$onCleanup } from "solid-js";
|
|
6
6
|
import { jsx as $7h5e1$jsx } from "react/jsx-runtime";
|
|
7
7
|
import { createPortal as $7h5e1$createPortal } from "react-dom";
|
|
8
|
+
import { dwarn as $7h5e1$dwarn } from "@depict-ai/utilishared/ES10";
|
|
8
9
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
10
|
register_es_version("react-ui", "ES10");
|
|
10
11
|
function $e8e755ef02e716bf$export$4b564d7f5a1b1d43(_ref) {
|
|
@@ -16,7 +17,7 @@ function $e8e755ef02e716bf$export$4b564d7f5a1b1d43(_ref) {
|
|
|
16
17
|
} = _ref;
|
|
17
18
|
const wrapper_element_ref = $7h5e1$useRef();
|
|
18
19
|
// The worst thing that can happen by multiple generateHydrationScript's is that events dispatched before the hydration are duplicated in solid's shared context which leads to them being deduplicated again here https://github.com/ryansolid/dom-expressions/blob/21fdba5bcab25986a2b93003aaace100b2231cdc/packages/dom-expressions/src/client.js#L280
|
|
19
|
-
const rendered_html = $7h5e1$renderToString(() => solid_component(props, () => {}))
|
|
20
|
+
const rendered_html = $7h5e1$generateHydrationScript() + $7h5e1$renderToString(() => solid_component(props, () => {}));
|
|
20
21
|
return $7h5e1$createElement((0, $7h5e1$Fragment), null, $7h5e1$createElement(wrapper_type, {
|
|
21
22
|
ref: wrapper_element_ref,
|
|
22
23
|
style: wrapper_style,
|
|
@@ -147,7 +148,18 @@ function $48b0916cc674770c$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
147
148
|
}
|
|
148
149
|
});
|
|
149
150
|
}
|
|
150
|
-
|
|
151
|
+
|
|
152
|
+
// Triggered by synsam trying to put null here and typescript somehow not complaining
|
|
153
|
+
|
|
154
|
+
function $758339150fbfe9d5$export$4daadad26e48a2c7(props) {
|
|
155
|
+
var _props$recommendation;
|
|
156
|
+
const us = "RecommendationSlider/RecommendationGrid:";
|
|
157
|
+
if (typeof (props === null || props === void 0 ? void 0 : (_props$recommendation = props.recommendations) === null || _props$recommendation === void 0 ? void 0 : _props$recommendation.then) !== "function") {
|
|
158
|
+
$7h5e1$dwarn(us, "Got", props.recommendations, "which is not thenable");
|
|
159
|
+
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "2.1.7";
|
|
151
163
|
function $5c4add0a8fe94894$export$9fac37a9c21c2f3b(props) {
|
|
152
164
|
return props.children;
|
|
153
165
|
}
|
|
@@ -171,7 +183,8 @@ function $5c4add0a8fe94894$export$466cdc317043f6cb() {
|
|
|
171
183
|
children: []
|
|
172
184
|
});
|
|
173
185
|
}
|
|
174
|
-
function $5c4add0a8fe94894$export$82cfdc85a4d15688() {
|
|
186
|
+
function $5c4add0a8fe94894$export$82cfdc85a4d15688(props) {
|
|
187
|
+
$758339150fbfe9d5$export$4daadad26e48a2c7(props);
|
|
175
188
|
return $7h5e1$createElement("div", {
|
|
176
189
|
children: []
|
|
177
190
|
});
|
|
@@ -196,6 +209,7 @@ function $5c4add0a8fe94894$export$3f37af283f8fb843(raw_react_props) {
|
|
|
196
209
|
});
|
|
197
210
|
}
|
|
198
211
|
function $5c4add0a8fe94894$export$b0a773486c1c2312(props) {
|
|
212
|
+
$758339150fbfe9d5$export$4daadad26e48a2c7(props);
|
|
199
213
|
return $e8e755ef02e716bf$export$4b564d7f5a1b1d43({
|
|
200
214
|
solid_component: (0, $48b0916cc674770c$export$bd8acc07a8bae229),
|
|
201
215
|
props: props,
|
package/server/latest/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ var $7QqFM$reactdomserver = require("react-dom/server");
|
|
|
5
5
|
var $7QqFM$solidjs = require("solid-js");
|
|
6
6
|
var $7QqFM$reactjsxruntime = require("react/jsx-runtime");
|
|
7
7
|
var $7QqFM$reactdom = require("react-dom");
|
|
8
|
+
var $7QqFM$depictaiutilishared = require("@depict-ai/utilishared/latest");
|
|
8
9
|
require("../../multi_import_deduplicator.cjs").register_es_version("react-ui", "latest");
|
|
9
10
|
function $parcel$export(e, n, v, s) {
|
|
10
11
|
Object.defineProperty(e, n, {
|
|
@@ -38,7 +39,7 @@ function $35dfe83eec81954c$export$4b564d7f5a1b1d43({
|
|
|
38
39
|
}) {
|
|
39
40
|
const wrapper_element_ref = $7QqFM$react.useRef();
|
|
40
41
|
// The worst thing that can happen by multiple generateHydrationScript's is that events dispatched before the hydration are duplicated in solid's shared context which leads to them being deduplicated again here https://github.com/ryansolid/dom-expressions/blob/21fdba5bcab25986a2b93003aaace100b2231cdc/packages/dom-expressions/src/client.js#L280
|
|
41
|
-
const rendered_html = $7QqFM$solidjsweb.renderToString(() => solid_component(props, () => {}))
|
|
42
|
+
const rendered_html = $7QqFM$solidjsweb.generateHydrationScript() + $7QqFM$solidjsweb.renderToString(() => solid_component(props, () => {}));
|
|
42
43
|
return $7QqFM$react.createElement((0, $7QqFM$react.Fragment), null, $7QqFM$react.createElement(wrapper_type, {
|
|
43
44
|
ref: wrapper_element_ref,
|
|
44
45
|
style: wrapper_style,
|
|
@@ -163,7 +164,17 @@ function $0aaa03f81d756b85$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
163
164
|
}
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
|
-
|
|
167
|
+
|
|
168
|
+
// Triggered by synsam trying to put null here and typescript somehow not complaining
|
|
169
|
+
|
|
170
|
+
function $67657ea54664baa8$export$4daadad26e48a2c7(props) {
|
|
171
|
+
const us = "RecommendationSlider/RecommendationGrid:";
|
|
172
|
+
if (typeof props?.recommendations?.then !== "function") {
|
|
173
|
+
$7QqFM$depictaiutilishared.dwarn(us, "Got", props.recommendations, "which is not thenable");
|
|
174
|
+
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "2.1.7";
|
|
167
178
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
|
168
179
|
return props.children;
|
|
169
180
|
}
|
|
@@ -187,7 +198,8 @@ function $41e7e5d85b5e0d49$export$466cdc317043f6cb() {
|
|
|
187
198
|
children: []
|
|
188
199
|
});
|
|
189
200
|
}
|
|
190
|
-
function $41e7e5d85b5e0d49$export$82cfdc85a4d15688() {
|
|
201
|
+
function $41e7e5d85b5e0d49$export$82cfdc85a4d15688(props) {
|
|
202
|
+
$67657ea54664baa8$export$4daadad26e48a2c7(props);
|
|
191
203
|
return $7QqFM$react.createElement("div", {
|
|
192
204
|
children: []
|
|
193
205
|
});
|
|
@@ -212,6 +224,7 @@ function $41e7e5d85b5e0d49$export$3f37af283f8fb843(raw_react_props) {
|
|
|
212
224
|
});
|
|
213
225
|
}
|
|
214
226
|
function $41e7e5d85b5e0d49$export$b0a773486c1c2312(props) {
|
|
227
|
+
$67657ea54664baa8$export$4daadad26e48a2c7(props);
|
|
215
228
|
return $35dfe83eec81954c$export$4b564d7f5a1b1d43({
|
|
216
229
|
solid_component: (0, $0aaa03f81d756b85$export$bd8acc07a8bae229),
|
|
217
230
|
props: props,
|
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.7";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -607,7 +607,7 @@ export function useFetchRecommendations<T extends Display>(): UseFetchRecommenda
|
|
|
607
607
|
* Helper function to navigate to a new page depending on the navigation library used.
|
|
608
608
|
*/
|
|
609
609
|
export const Navigation: {
|
|
610
|
-
nextRouterNavigation: (router: import("next/router").NextRouter) => import("ui/components/DepictProvider").NavigateFunction;
|
|
610
|
+
nextRouterNavigation: (router: import("next/router").NextRouter) => import("src/ui/components/DepictProvider").NavigateFunction;
|
|
611
611
|
};
|
|
612
612
|
export { CategoryTitle, embedded_num_products as EmbeddedNumProducts } from "@depict-ai/ui";
|
|
613
613
|
export type { PageURLCreator, DisplayTransformers } from "@depict-ai/ui";
|
package/server/latest/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createElement as $eOXet$createElement, useRef as $eOXet$useRef, Fragment as $eOXet$Fragment, useEffect as $eOXet$useEffect, useState as $eOXet$useState, Component as $eOXet$Component } from "react";
|
|
2
2
|
import { ImagePlaceholder as $eOXet$ImagePlaceholder, TextPlaceholder as $eOXet$TextPlaceholder, RecommendationGrid as $eOXet$RecommendationGrid, defaultColsAtSize as $eOXet$defaultColsAtSize, defaultGridSpacing as $eOXet$defaultGridSpacing, ProductCardError as $eOXet$ProductCardError } from "@depict-ai/ui/latest";
|
|
3
|
-
import {
|
|
3
|
+
import { generateHydrationScript as $eOXet$generateHydrationScript, renderToString as $eOXet$renderToString, isServer as $eOXet$isServer } from "solid-js/web";
|
|
4
4
|
import { renderToString as $eOXet$renderToString1 } from "react-dom/server";
|
|
5
5
|
import { getOwner as $eOXet$getOwner, untrack as $eOXet$untrack, runWithOwner as $eOXet$runWithOwner, createEffect as $eOXet$createEffect, on as $eOXet$on, onCleanup as $eOXet$onCleanup } from "solid-js";
|
|
6
6
|
import { jsx as $eOXet$jsx } from "react/jsx-runtime";
|
|
7
7
|
import { createPortal as $eOXet$createPortal } from "react-dom";
|
|
8
|
+
import { dwarn as $eOXet$dwarn } from "@depict-ai/utilishared/latest";
|
|
8
9
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
10
|
register_es_version("react-ui", "latest");
|
|
10
11
|
function $4568c09979447ab1$export$4b564d7f5a1b1d43({
|
|
@@ -15,7 +16,7 @@ function $4568c09979447ab1$export$4b564d7f5a1b1d43({
|
|
|
15
16
|
}) {
|
|
16
17
|
const wrapper_element_ref = $eOXet$useRef();
|
|
17
18
|
// The worst thing that can happen by multiple generateHydrationScript's is that events dispatched before the hydration are duplicated in solid's shared context which leads to them being deduplicated again here https://github.com/ryansolid/dom-expressions/blob/21fdba5bcab25986a2b93003aaace100b2231cdc/packages/dom-expressions/src/client.js#L280
|
|
18
|
-
const rendered_html = $eOXet$renderToString(() => solid_component(props, () => {}))
|
|
19
|
+
const rendered_html = $eOXet$generateHydrationScript() + $eOXet$renderToString(() => solid_component(props, () => {}));
|
|
19
20
|
return $eOXet$createElement((0, $eOXet$Fragment), null, $eOXet$createElement(wrapper_type, {
|
|
20
21
|
ref: wrapper_element_ref,
|
|
21
22
|
style: wrapper_style,
|
|
@@ -140,7 +141,17 @@ function $8bee51f55543fe0c$export$bd8acc07a8bae229(props, set_portals) {
|
|
|
140
141
|
}
|
|
141
142
|
});
|
|
142
143
|
}
|
|
143
|
-
|
|
144
|
+
|
|
145
|
+
// Triggered by synsam trying to put null here and typescript somehow not complaining
|
|
146
|
+
|
|
147
|
+
function $ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props) {
|
|
148
|
+
const us = "RecommendationSlider/RecommendationGrid:";
|
|
149
|
+
if (typeof props?.recommendations?.then !== "function") {
|
|
150
|
+
$eOXet$dwarn(us, "Got", props.recommendations, "which is not thenable");
|
|
151
|
+
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "2.1.7";
|
|
144
155
|
function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
|
|
145
156
|
return props.children;
|
|
146
157
|
}
|
|
@@ -164,7 +175,8 @@ function $2b1fdeb83610500f$export$466cdc317043f6cb() {
|
|
|
164
175
|
children: []
|
|
165
176
|
});
|
|
166
177
|
}
|
|
167
|
-
function $2b1fdeb83610500f$export$82cfdc85a4d15688() {
|
|
178
|
+
function $2b1fdeb83610500f$export$82cfdc85a4d15688(props) {
|
|
179
|
+
$ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props);
|
|
168
180
|
return $eOXet$createElement("div", {
|
|
169
181
|
children: []
|
|
170
182
|
});
|
|
@@ -189,6 +201,7 @@ function $2b1fdeb83610500f$export$3f37af283f8fb843(raw_react_props) {
|
|
|
189
201
|
});
|
|
190
202
|
}
|
|
191
203
|
function $2b1fdeb83610500f$export$b0a773486c1c2312(props) {
|
|
204
|
+
$ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props);
|
|
192
205
|
return $4568c09979447ab1$export$4b564d7f5a1b1d43({
|
|
193
206
|
solid_component: (0, $8bee51f55543fe0c$export$bd8acc07a8bae229),
|
|
194
207
|
props: props,
|