@depict-ai/react-ui 0.0.100 → 0.0.101
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/dist/index.d.ts +1 -1
- package/dist/main.js +11 -5
- package/dist/module.js +12 -6
- package/dist-server/index.d.ts +1 -1
- package/dist-server/main.js +1 -1
- package/dist-server/module.js +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BaseProductListingConfig, BaseProviderConfig, BaseSearchProviderConfig,
|
|
|
2
2
|
import { Display } from "@depict-ai/utilishared";
|
|
3
3
|
import React, { ReactNode, PropsWithChildren, ReactElement } from "react";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales";
|
|
5
|
-
export const version = "0.0.
|
|
5
|
+
export const version = "0.0.101";
|
|
6
6
|
interface PLPConfig<T extends Display> extends BaseProductListingConfig {
|
|
7
7
|
/**
|
|
8
8
|
* The product card to use for rendering products.
|
package/dist/main.js
CHANGED
|
@@ -27,7 +27,7 @@ $parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fb
|
|
|
27
27
|
$parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a61e5c71402559);
|
|
28
28
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
29
29
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
30
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.
|
|
30
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.101";
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -106,12 +106,16 @@ const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
let $b4d0d98857ed9934$var$run_on_href_change;
|
|
109
|
+
let $b4d0d98857ed9934$var$old_href = location.href;
|
|
109
110
|
function $b4d0d98857ed9934$export$74f3924c5027fe1d(cb) {
|
|
110
111
|
$b4d0d98857ed9934$var$run_on_href_change = cb;
|
|
111
112
|
}
|
|
112
|
-
(
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
(0, $4GYXz$depictaiutilishared.instant_exec_on_suspect_history_change).add((0, $4GYXz$depictaiutilishared.catchify)(()=>{
|
|
114
|
+
const { href: href } = location;
|
|
115
|
+
if (!$b4d0d98857ed9934$var$run_on_href_change || $b4d0d98857ed9934$var$old_href === href) return;
|
|
116
|
+
$b4d0d98857ed9934$var$run_on_href_change?.(href);
|
|
117
|
+
$b4d0d98857ed9934$var$old_href = href;
|
|
118
|
+
}));
|
|
115
119
|
const $b4d0d98857ed9934$export$775e6b3892b5ad52 = (url)=>url.pathname == (0, $4GYXz$solidjs.untrack)((0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).search_page_path_[0]); // might have changed therefore get it from globalState
|
|
116
120
|
const $b4d0d98857ed9934$export$92a8f8b3c630fa0d = (url)=>{
|
|
117
121
|
return $b4d0d98857ed9934$export$775e6b3892b5ad52(url) || url.pathname === (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).category_path;
|
|
@@ -132,6 +136,7 @@ function $b4d0d98857ed9934$export$f6e64e17bd69eeef(solid_component, props, wrapp
|
|
|
132
136
|
}
|
|
133
137
|
function $b4d0d98857ed9934$export$e5139bbbb9a05035(component, is_set = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).required_state_set_[0]) {
|
|
134
138
|
return (...args)=>{
|
|
139
|
+
// @ts-ignore
|
|
135
140
|
return (0, $4GYXz$solidjs.createComponent)((0, $4GYXz$solidjs.Show), {
|
|
136
141
|
get when () {
|
|
137
142
|
return is_set();
|
|
@@ -338,7 +343,8 @@ function $7ad7a3d0011b7b1b$var$SolidSearchPage(props, set_portals) {
|
|
|
338
343
|
|
|
339
344
|
let $5aa5fcb9f8a2bebc$var$render_cb;
|
|
340
345
|
function $5aa5fcb9f8a2bebc$export$f7d2f673fc2f091d(props) {
|
|
341
|
-
return (0, $b4d0d98857ed9934$export$f6e64e17bd69eeef)(
|
|
346
|
+
return (0, $b4d0d98857ed9934$export$f6e64e17bd69eeef)(// @ts-ignore
|
|
347
|
+
(0, $b4d0d98857ed9934$export$e5139bbbb9a05035)($5aa5fcb9f8a2bebc$var$SolidCategoryPage), props, "div", {}, (props)=>$5aa5fcb9f8a2bebc$var$render_cb?.(props));
|
|
342
348
|
}
|
|
343
349
|
function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
|
|
344
350
|
const depict_category = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).category;
|
package/dist/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {add_to_version_info as $TZSbU$add_to_version_info, get_user_id as $TZSbU$get_user_id, set_user_id_fn as $TZSbU$set_user_id_fn, catchify as $TZSbU$catchify, observer as $TZSbU$observer, history_replacer as $TZSbU$history_replacer, queueMacroTask as $TZSbU$queueMacroTask,
|
|
1
|
+
import {add_to_version_info as $TZSbU$add_to_version_info, get_user_id as $TZSbU$get_user_id, set_user_id_fn as $TZSbU$set_user_id_fn, catchify as $TZSbU$catchify, observer as $TZSbU$observer, history_replacer as $TZSbU$history_replacer, queueMacroTask as $TZSbU$queueMacroTask, instant_exec_on_suspect_history_change as $TZSbU$instant_exec_on_suspect_history_change, ContainedPlaceholderImage as $TZSbU$ContainedPlaceholderImage, Placeholder as $TZSbU$Placeholder} from "@depict-ai/utilishared";
|
|
2
2
|
import {CategoryTitle as $43099132aad1ceb6$re_export$CategoryTitle, embedded_num_products as $43099132aad1ceb6$re_export$EmbeddedNumProducts, DepictAPI as $TZSbU$DepictAPI, DepictSearch as $TZSbU$DepictSearch, DepictCategory as $TZSbU$DepictCategory, get_search_query_updating_blocked_signal as $TZSbU$get_search_query_updating_blocked_signal, SearchPage as $TZSbU$SearchPage, CategoryPage as $TZSbU$CategoryPage, BreadCrumbs as $TZSbU$BreadCrumbs, QuickLinks as $TZSbU$QuickLinks, open_modal_with_alignment as $TZSbU$open_modal_with_alignment, SearchField as $TZSbU$SearchField} from "@depict-ai/ui";
|
|
3
3
|
import {createRoot as $TZSbU$createRoot, untrack as $TZSbU$untrack, createSignal as $TZSbU$createSignal, createComponent as $TZSbU$createComponent, Show as $TZSbU$Show, onCleanup as $TZSbU$onCleanup, createComputed as $TZSbU$createComputed} from "solid-js";
|
|
4
4
|
import {useEffect as $TZSbU$useEffect, createElement as $TZSbU$createElement, Fragment as $TZSbU$Fragment, useState as $TZSbU$useState, useRef as $TZSbU$useRef, forwardRef as $TZSbU$forwardRef} from "react";
|
|
@@ -9,7 +9,7 @@ import {createPortal as $TZSbU$createPortal} from "react-dom";
|
|
|
9
9
|
|
|
10
10
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
11
11
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
12
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.
|
|
12
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.101";
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -88,12 +88,16 @@ const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
let $c83ba9ab79386687$var$run_on_href_change;
|
|
91
|
+
let $c83ba9ab79386687$var$old_href = location.href;
|
|
91
92
|
function $c83ba9ab79386687$export$74f3924c5027fe1d(cb) {
|
|
92
93
|
$c83ba9ab79386687$var$run_on_href_change = cb;
|
|
93
94
|
}
|
|
94
|
-
(
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
(0, $TZSbU$instant_exec_on_suspect_history_change).add((0, $TZSbU$catchify)(()=>{
|
|
96
|
+
const { href: href } = location;
|
|
97
|
+
if (!$c83ba9ab79386687$var$run_on_href_change || $c83ba9ab79386687$var$old_href === href) return;
|
|
98
|
+
$c83ba9ab79386687$var$run_on_href_change?.(href);
|
|
99
|
+
$c83ba9ab79386687$var$old_href = href;
|
|
100
|
+
}));
|
|
97
101
|
const $c83ba9ab79386687$export$775e6b3892b5ad52 = (url)=>url.pathname == (0, $TZSbU$untrack)((0, $42858f023ef23dab$export$8e769ad4338a911e).search_page_path_[0]); // might have changed therefore get it from globalState
|
|
98
102
|
const $c83ba9ab79386687$export$92a8f8b3c630fa0d = (url)=>{
|
|
99
103
|
return $c83ba9ab79386687$export$775e6b3892b5ad52(url) || url.pathname === (0, $42858f023ef23dab$export$8e769ad4338a911e).category_path;
|
|
@@ -114,6 +118,7 @@ function $c83ba9ab79386687$export$f6e64e17bd69eeef(solid_component, props, wrapp
|
|
|
114
118
|
}
|
|
115
119
|
function $c83ba9ab79386687$export$e5139bbbb9a05035(component, is_set = (0, $42858f023ef23dab$export$8e769ad4338a911e).required_state_set_[0]) {
|
|
116
120
|
return (...args)=>{
|
|
121
|
+
// @ts-ignore
|
|
117
122
|
return (0, $TZSbU$createComponent)((0, $TZSbU$Show), {
|
|
118
123
|
get when () {
|
|
119
124
|
return is_set();
|
|
@@ -320,7 +325,8 @@ function $4a678f0c87b12e78$var$SolidSearchPage(props, set_portals) {
|
|
|
320
325
|
|
|
321
326
|
let $48d7f568740a317d$var$render_cb;
|
|
322
327
|
function $48d7f568740a317d$export$f7d2f673fc2f091d(props) {
|
|
323
|
-
return (0, $c83ba9ab79386687$export$f6e64e17bd69eeef)(
|
|
328
|
+
return (0, $c83ba9ab79386687$export$f6e64e17bd69eeef)(// @ts-ignore
|
|
329
|
+
(0, $c83ba9ab79386687$export$e5139bbbb9a05035)($48d7f568740a317d$var$SolidCategoryPage), props, "div", {}, (props)=>$48d7f568740a317d$var$render_cb?.(props));
|
|
324
330
|
}
|
|
325
331
|
function $48d7f568740a317d$var$SolidCategoryPage(props, set_portals) {
|
|
326
332
|
const depict_category = (0, $42858f023ef23dab$export$8e769ad4338a911e).category;
|
package/dist-server/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface UseSearchFieldReturn {
|
|
|
9
9
|
*/
|
|
10
10
|
SearchField: () => ReactElement;
|
|
11
11
|
}
|
|
12
|
-
export const version = "0.0.
|
|
12
|
+
export const version = "0.0.101";
|
|
13
13
|
export function DepictProvider(props: any): any;
|
|
14
14
|
export function SearchPage(): any;
|
|
15
15
|
export function CategoryPage(): any;
|
package/dist-server/main.js
CHANGED
|
@@ -19,7 +19,7 @@ $parcel$export(module.exports, "useSearchModal", () => $41e7e5d85b5e0d49$export$
|
|
|
19
19
|
$parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fbfd8236492);
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.
|
|
22
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.101";
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
package/dist-server/module.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/react-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.101",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"/locales"
|
|
97
97
|
],
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@depict-ai/plp-styling": "^0.0.
|
|
100
|
-
"@depict-ai/ui": "^0.0.
|
|
101
|
-
"@depict-ai/utilishared": "^0.0.
|
|
102
|
-
"solid-js": "^1.
|
|
99
|
+
"@depict-ai/plp-styling": "^0.0.42",
|
|
100
|
+
"@depict-ai/ui": "^0.0.80",
|
|
101
|
+
"@depict-ai/utilishared": "^0.0.84",
|
|
102
|
+
"solid-js": "^1.7.3"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
105
|
"react": ">= 16.14.0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"@babel/preset-typescript": "latest",
|
|
112
112
|
"@babel/runtime": "latest",
|
|
113
113
|
"@babel/runtime-corejs3": "latest",
|
|
114
|
-
"@depict-ai/plp-styling": "^0.0.
|
|
114
|
+
"@depict-ai/plp-styling": "^0.0.42",
|
|
115
115
|
"@jest/globals": "^29.3.1",
|
|
116
116
|
"@parcel/babel-preset-env": "latest",
|
|
117
117
|
"@parcel/resolver-default": "^2.8.0",
|