@depict-ai/react-ui 3.0.13 → 3.0.14
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 +8 -3
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +8 -3
- package/latest/index.cjs +5 -3
- package/latest/index.d.ts +1 -1
- package/latest/index.js +5 -3
- package/package.json +2 -2
- package/server/ES10/index.cjs +1 -1
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +1 -1
- package/server/latest/index.cjs +1 -1
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +1 -1
package/ES10/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ $parcel$export(module.exports, "version", () => $efbdd2dab4314170$export$83d89fb
|
|
|
39
39
|
$parcel$export(module.exports, "Navigation", () => $0d3a2413fdeb34b9$export$b8a61e5c71402559);
|
|
40
40
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
41
41
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
42
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.
|
|
42
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.14";
|
|
43
43
|
const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
44
44
|
usedLocale: $2kiy7$solidjs.createSignal((0, $2kiy7$depictaiuilocales.defaultLocale)),
|
|
45
45
|
search_instances: new Map(),
|
|
@@ -127,7 +127,10 @@ function $e7ba61a7074c02d3$export$f6e64e17bd69eeef(_ref) {
|
|
|
127
127
|
function $e7ba61a7074c02d3$export$e5139bbbb9a05035(component, is_set) {
|
|
128
128
|
return function () {
|
|
129
129
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
130
|
-
const default_is_set = $2kiy7$solidjs.createMemo(() =>
|
|
130
|
+
const default_is_set = $2kiy7$solidjs.createMemo(() => {
|
|
131
|
+
var _globalState$usedLoca;
|
|
132
|
+
return !!((0, $ef516b1f92253963$export$8e769ad4338a911e).merchant[0]() && (0, $ef516b1f92253963$export$8e769ad4338a911e).market[0]() && (_globalState$usedLoca = (0, $ef516b1f92253963$export$8e769ad4338a911e).usedLocale[0]()) !== null && _globalState$usedLoca !== void 0 && _globalState$usedLoca.backend_locale_);
|
|
133
|
+
}); // Apparently Show re-renders kids otherwise even if the falsiness of the condition doesn't change
|
|
131
134
|
const should_show = $2kiy7$solidjs.createMemo(prev => {
|
|
132
135
|
if (!prev && (0, $ef516b1f92253963$export$8e769ad4338a911e).provider_is_updating[0]())
|
|
133
136
|
// Why `!prev`? See https://gitlab.com/depict-ai/depict.ai/-/merge_requests/7854#note_1495776987
|
|
@@ -722,7 +725,7 @@ function $15691268d8df90a9$var$SolidCategoryPage(props, set_portals) {
|
|
|
722
725
|
listingQuery: listingQuery
|
|
723
726
|
} = props;
|
|
724
727
|
depict_category().listing_query = listingQuery;
|
|
725
|
-
if (listingQuery) {
|
|
728
|
+
if (listingQuery !== null && listingQuery !== void 0 && listingQuery.id && listingQuery !== null && listingQuery !== void 0 && listingQuery.type) {
|
|
726
729
|
set_category_state_set(true);
|
|
727
730
|
(0, $ef516b1f92253963$export$8e769ad4338a911e).known_category_paths.add(location.pathname);
|
|
728
731
|
}
|
|
@@ -751,6 +754,8 @@ function $15691268d8df90a9$var$SolidCategoryPage(props, set_portals) {
|
|
|
751
754
|
return props.showQuicklinks;
|
|
752
755
|
},
|
|
753
756
|
get content_blocks_by_row() {
|
|
757
|
+
// Having content blocks and a slider at the same time is not supported, so we have to actually forward undefined if none are specified
|
|
758
|
+
if (!props.contentBlocksByRow) return undefined;
|
|
754
759
|
return transformed_content_blocks();
|
|
755
760
|
},
|
|
756
761
|
get layout() {
|
package/ES10/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, 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 = "3.0.
|
|
6
|
+
export const version = "3.0.14";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
package/ES10/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { renderToString as $jb2Oo$renderToString } from "react-dom/server";
|
|
|
15
15
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
16
16
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
17
17
|
register_es_version("react-ui", "ES10");
|
|
18
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.
|
|
18
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.14";
|
|
19
19
|
const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
20
20
|
usedLocale: $jb2Oo$createSignal((0, $jb2Oo$defaultLocale)),
|
|
21
21
|
search_instances: new Map(),
|
|
@@ -103,7 +103,10 @@ function $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef(_ref) {
|
|
|
103
103
|
function $0dd9d9a9c7da4c1d$export$e5139bbbb9a05035(component, is_set) {
|
|
104
104
|
return function () {
|
|
105
105
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
106
|
-
const default_is_set = $jb2Oo$createMemo(() =>
|
|
106
|
+
const default_is_set = $jb2Oo$createMemo(() => {
|
|
107
|
+
var _globalState$usedLoca;
|
|
108
|
+
return !!((0, $8c691d7f86317052$export$8e769ad4338a911e).merchant[0]() && (0, $8c691d7f86317052$export$8e769ad4338a911e).market[0]() && (_globalState$usedLoca = (0, $8c691d7f86317052$export$8e769ad4338a911e).usedLocale[0]()) !== null && _globalState$usedLoca !== void 0 && _globalState$usedLoca.backend_locale_);
|
|
109
|
+
}); // Apparently Show re-renders kids otherwise even if the falsiness of the condition doesn't change
|
|
107
110
|
const should_show = $jb2Oo$createMemo(prev => {
|
|
108
111
|
if (!prev && (0, $8c691d7f86317052$export$8e769ad4338a911e).provider_is_updating[0]())
|
|
109
112
|
// Why `!prev`? See https://gitlab.com/depict-ai/depict.ai/-/merge_requests/7854#note_1495776987
|
|
@@ -698,7 +701,7 @@ function $e86a296a07b17ad5$var$SolidCategoryPage(props, set_portals) {
|
|
|
698
701
|
listingQuery: listingQuery
|
|
699
702
|
} = props;
|
|
700
703
|
depict_category().listing_query = listingQuery;
|
|
701
|
-
if (listingQuery) {
|
|
704
|
+
if (listingQuery !== null && listingQuery !== void 0 && listingQuery.id && listingQuery !== null && listingQuery !== void 0 && listingQuery.type) {
|
|
702
705
|
set_category_state_set(true);
|
|
703
706
|
(0, $8c691d7f86317052$export$8e769ad4338a911e).known_category_paths.add(location.pathname);
|
|
704
707
|
}
|
|
@@ -727,6 +730,8 @@ function $e86a296a07b17ad5$var$SolidCategoryPage(props, set_portals) {
|
|
|
727
730
|
return props.showQuicklinks;
|
|
728
731
|
},
|
|
729
732
|
get content_blocks_by_row() {
|
|
733
|
+
// Having content blocks and a slider at the same time is not supported, so we have to actually forward undefined if none are specified
|
|
734
|
+
if (!props.contentBlocksByRow) return undefined;
|
|
730
735
|
return transformed_content_blocks();
|
|
731
736
|
},
|
|
732
737
|
get layout() {
|
package/latest/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ $parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fb
|
|
|
39
39
|
$parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a61e5c71402559);
|
|
40
40
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
41
41
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
42
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.
|
|
42
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.14";
|
|
43
43
|
const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
44
44
|
usedLocale: $2IzJs$solidjs.createSignal((0, $2IzJs$depictaiuilocales.defaultLocale)),
|
|
45
45
|
search_instances: new Map(),
|
|
@@ -118,7 +118,7 @@ function $b4d0d98857ed9934$export$f6e64e17bd69eeef({
|
|
|
118
118
|
}
|
|
119
119
|
function $b4d0d98857ed9934$export$e5139bbbb9a05035(component, is_set) {
|
|
120
120
|
return (...args) => {
|
|
121
|
-
const default_is_set = $2IzJs$solidjs.createMemo(() => !!((0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).merchant[0]() && (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).market[0]())); // Apparently Show re-renders kids otherwise even if the falsiness of the condition doesn't change
|
|
121
|
+
const default_is_set = $2IzJs$solidjs.createMemo(() => !!((0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).merchant[0]() && (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).market[0]() && (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).usedLocale[0]()?.backend_locale_)); // Apparently Show re-renders kids otherwise even if the falsiness of the condition doesn't change
|
|
122
122
|
const should_show = $2IzJs$solidjs.createMemo(prev => {
|
|
123
123
|
if (!prev && (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).provider_is_updating[0]())
|
|
124
124
|
// Why `!prev`? See https://gitlab.com/depict-ai/depict.ai/-/merge_requests/7854#note_1495776987
|
|
@@ -689,7 +689,7 @@ function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
|
|
|
689
689
|
listingQuery: listingQuery
|
|
690
690
|
} = props;
|
|
691
691
|
depict_category().listing_query = listingQuery;
|
|
692
|
-
if (listingQuery) {
|
|
692
|
+
if (listingQuery?.id && listingQuery?.type) {
|
|
693
693
|
set_category_state_set(true);
|
|
694
694
|
(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).known_category_paths.add(location.pathname);
|
|
695
695
|
}
|
|
@@ -716,6 +716,8 @@ function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
|
|
|
716
716
|
return props.showQuicklinks;
|
|
717
717
|
},
|
|
718
718
|
get content_blocks_by_row() {
|
|
719
|
+
// Having content blocks and a slider at the same time is not supported, so we have to actually forward undefined if none are specified
|
|
720
|
+
if (!props.contentBlocksByRow) return undefined;
|
|
719
721
|
return transformed_content_blocks();
|
|
720
722
|
},
|
|
721
723
|
get layout() {
|
package/latest/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, 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 = "3.0.
|
|
6
|
+
export const version = "3.0.14";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
package/latest/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { renderToString as $2GFvs$renderToString } from "react-dom/server";
|
|
|
15
15
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
16
16
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
17
17
|
register_es_version("react-ui", "latest");
|
|
18
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.
|
|
18
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.14";
|
|
19
19
|
const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
20
20
|
usedLocale: $2GFvs$createSignal((0, $2GFvs$defaultLocale)),
|
|
21
21
|
search_instances: new Map(),
|
|
@@ -94,7 +94,7 @@ function $c83ba9ab79386687$export$f6e64e17bd69eeef({
|
|
|
94
94
|
}
|
|
95
95
|
function $c83ba9ab79386687$export$e5139bbbb9a05035(component, is_set) {
|
|
96
96
|
return (...args) => {
|
|
97
|
-
const default_is_set = $2GFvs$createMemo(() => !!((0, $42858f023ef23dab$export$8e769ad4338a911e).merchant[0]() && (0, $42858f023ef23dab$export$8e769ad4338a911e).market[0]())); // Apparently Show re-renders kids otherwise even if the falsiness of the condition doesn't change
|
|
97
|
+
const default_is_set = $2GFvs$createMemo(() => !!((0, $42858f023ef23dab$export$8e769ad4338a911e).merchant[0]() && (0, $42858f023ef23dab$export$8e769ad4338a911e).market[0]() && (0, $42858f023ef23dab$export$8e769ad4338a911e).usedLocale[0]()?.backend_locale_)); // Apparently Show re-renders kids otherwise even if the falsiness of the condition doesn't change
|
|
98
98
|
const should_show = $2GFvs$createMemo(prev => {
|
|
99
99
|
if (!prev && (0, $42858f023ef23dab$export$8e769ad4338a911e).provider_is_updating[0]())
|
|
100
100
|
// Why `!prev`? See https://gitlab.com/depict-ai/depict.ai/-/merge_requests/7854#note_1495776987
|
|
@@ -665,7 +665,7 @@ function $48d7f568740a317d$var$SolidCategoryPage(props, set_portals) {
|
|
|
665
665
|
listingQuery: listingQuery
|
|
666
666
|
} = props;
|
|
667
667
|
depict_category().listing_query = listingQuery;
|
|
668
|
-
if (listingQuery) {
|
|
668
|
+
if (listingQuery?.id && listingQuery?.type) {
|
|
669
669
|
set_category_state_set(true);
|
|
670
670
|
(0, $42858f023ef23dab$export$8e769ad4338a911e).known_category_paths.add(location.pathname);
|
|
671
671
|
}
|
|
@@ -692,6 +692,8 @@ function $48d7f568740a317d$var$SolidCategoryPage(props, set_portals) {
|
|
|
692
692
|
return props.showQuicklinks;
|
|
693
693
|
},
|
|
694
694
|
get content_blocks_by_row() {
|
|
695
|
+
// Having content blocks and a slider at the same time is not supported, so we have to actually forward undefined if none are specified
|
|
696
|
+
if (!props.contentBlocksByRow) return undefined;
|
|
695
697
|
return transformed_content_blocks();
|
|
696
698
|
},
|
|
697
699
|
get layout() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/react-ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
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": "^2.0.3",
|
|
139
139
|
"@depict-ai/plp-styling": "^2.0.3",
|
|
140
|
-
"@depict-ai/ui": "^3.0.
|
|
140
|
+
"@depict-ai/ui": "^3.0.15",
|
|
141
141
|
"@depict-ai/utilishared": "^2.0.6",
|
|
142
142
|
"solid-js": "^1.8.1"
|
|
143
143
|
},
|
package/server/ES10/index.cjs
CHANGED
|
@@ -233,7 +233,7 @@ function $3b36cc844440a979$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.
|
|
236
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.14";
|
|
237
237
|
function $202459d454907b31$export$9fac37a9c21c2f3b(props) {
|
|
238
238
|
return props.children;
|
|
239
239
|
}
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, 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 = "3.0.
|
|
6
|
+
export const version = "3.0.14";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
package/server/ES10/index.js
CHANGED
|
@@ -210,7 +210,7 @@ function $cd68097a7ee08669$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.
|
|
213
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.14";
|
|
214
214
|
function $5c4add0a8fe94894$export$9fac37a9c21c2f3b(props) {
|
|
215
215
|
return props.children;
|
|
216
216
|
}
|
package/server/latest/index.cjs
CHANGED
|
@@ -224,7 +224,7 @@ function $c6b960f2a07285c8$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.
|
|
227
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.14";
|
|
228
228
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
|
229
229
|
return props.children;
|
|
230
230
|
}
|
package/server/latest/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, 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 = "3.0.
|
|
6
|
+
export const version = "3.0.14";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
package/server/latest/index.js
CHANGED
|
@@ -201,7 +201,7 @@ function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.
|
|
204
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.14";
|
|
205
205
|
function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
|
|
206
206
|
return props.children;
|
|
207
207
|
}
|