@depict-ai/react-ui 0.0.64 → 0.0.66
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 +14 -15
- package/dist/main.js +13 -26
- package/dist/module.js +14 -27
- 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 +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SDKColsAtSize, SDKGridSpacing } from "@depict-ai/ui/dist";
|
|
2
|
-
import { Display } from "
|
|
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
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { CategoryTitle, embedded_num_products } from "@depict-ai/ui";
|
|
6
|
+
export const version = "0.0.66";
|
|
7
7
|
interface PLPConfig<T extends Display> {
|
|
8
8
|
/**
|
|
9
9
|
* The product card to use for rendering products.
|
|
@@ -170,7 +170,7 @@ export function DepictProvider(props: PropsWithChildren<DepictConfig>): import("
|
|
|
170
170
|
* @returns {JSX.Element}
|
|
171
171
|
*/
|
|
172
172
|
export const DepictAligner: import("react").ForwardRefExoticComponent<import("react").RefAttributes<unknown>>;
|
|
173
|
-
interface SearchPageConfig<T extends
|
|
173
|
+
interface SearchPageConfig<T extends Display> extends PLPConfig<T> {
|
|
174
174
|
/**
|
|
175
175
|
* Whether to show the search input field in the search page.
|
|
176
176
|
* @default true
|
|
@@ -217,8 +217,8 @@ interface SearchPageConfig<T extends _Display1> extends PLPConfig<T> {
|
|
|
217
217
|
*
|
|
218
218
|
* ```
|
|
219
219
|
*/
|
|
220
|
-
export function DepictSearchPage<T extends
|
|
221
|
-
interface CategoryPageConfig<T extends
|
|
220
|
+
export function DepictSearchPage<T extends Display>(props: SearchPageConfig<T>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
221
|
+
interface CategoryPageConfig<T extends Display> extends PLPConfig<T> {
|
|
222
222
|
/**
|
|
223
223
|
* The category id to show.
|
|
224
224
|
*/
|
|
@@ -242,7 +242,7 @@ interface CategoryPageConfig<T extends _Display1> extends PLPConfig<T> {
|
|
|
242
242
|
* <DepictCategoryPage categoryId="jeans" productCard={MyCustomCategoryProductCard} categoryTitlePlugin={CategoryTitle} />
|
|
243
243
|
* ```
|
|
244
244
|
*/
|
|
245
|
-
categoryTitlePlugin?:
|
|
245
|
+
categoryTitlePlugin?: typeof CategoryTitle | typeof embedded_num_products;
|
|
246
246
|
}
|
|
247
247
|
/**
|
|
248
248
|
* DepictCategoryPage is a component that renders a category page.
|
|
@@ -283,7 +283,7 @@ interface CategoryPageConfig<T extends _Display1> extends PLPConfig<T> {
|
|
|
283
283
|
* }
|
|
284
284
|
* ```
|
|
285
285
|
*/
|
|
286
|
-
export function DepictCategoryPage<T extends
|
|
286
|
+
export function DepictCategoryPage<T extends Display>(props: CategoryPageConfig<T>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
287
287
|
/**
|
|
288
288
|
* BreadCrumbs is the "trail" in the header of a category page.
|
|
289
289
|
*/
|
|
@@ -346,7 +346,7 @@ interface UseSearchModalParams {
|
|
|
346
346
|
|
|
347
347
|
const { open } = useDepictSearchModal({
|
|
348
348
|
location: "aligned",
|
|
349
|
-
|
|
349
|
+
alignerRef: ref,
|
|
350
350
|
});
|
|
351
351
|
|
|
352
352
|
return (
|
|
@@ -417,7 +417,7 @@ interface UseDepictSearchFieldReturn {
|
|
|
417
417
|
* import { useDepictSearchField } from "@depict-ai/react-ui";
|
|
418
418
|
*
|
|
419
419
|
* const App = () => {
|
|
420
|
-
* const { DepictSearchField } =
|
|
420
|
+
* const { DepictSearchField } = useDepictSearchField();
|
|
421
421
|
*
|
|
422
422
|
* return (
|
|
423
423
|
* <div>
|
|
@@ -430,17 +430,17 @@ interface UseDepictSearchFieldReturn {
|
|
|
430
430
|
* Render a search field that opens a modal aligned another DOM element:
|
|
431
431
|
* ```tsx
|
|
432
432
|
* import React from "react";
|
|
433
|
-
* import { useDepictSearchField } from "@depict-ai/react-ui";
|
|
433
|
+
* import { DepictAligner, useDepictSearchField } from "@depict-ai/react-ui";
|
|
434
434
|
*
|
|
435
435
|
* const App = () => {
|
|
436
|
-
* const
|
|
437
|
-
* const { DepictSearchField } =
|
|
436
|
+
* const ref = useRef(null);
|
|
437
|
+
* const { DepictSearchField } = useDepictSearchField({
|
|
438
438
|
* alignerRef: ref
|
|
439
439
|
* });
|
|
440
440
|
*
|
|
441
441
|
* return (
|
|
442
442
|
* <div>
|
|
443
|
-
* <
|
|
443
|
+
* <DepictAligner ref={ref} />
|
|
444
444
|
* <DepictSearchField />
|
|
445
445
|
* </div>
|
|
446
446
|
* );
|
|
@@ -449,7 +449,6 @@ interface UseDepictSearchFieldReturn {
|
|
|
449
449
|
* @returns {JSX.Element}
|
|
450
450
|
*/
|
|
451
451
|
export const useDepictSearchField: (props: SearchFieldProps) => UseDepictSearchFieldReturn;
|
|
452
|
-
export const version = "0.0.64";
|
|
453
452
|
/**
|
|
454
453
|
* Helper function to navigate to a new page depending on the navigation library used.
|
|
455
454
|
*/
|
package/dist/main.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const process = { env: {} }; // In case that the code using this wasn't built with "node emulation", just make process.env accesses become undefined.
|
|
1
2
|
var $4GYXz$depictaiutilishared = require("@depict-ai/utilishared");
|
|
2
3
|
var $4GYXz$depictaiui = require("@depict-ai/ui");
|
|
3
4
|
var $4GYXz$solidjs = require("solid-js");
|
|
@@ -28,6 +29,10 @@ $parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a6
|
|
|
28
29
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
29
30
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
30
31
|
|
|
32
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.66";
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
31
36
|
|
|
32
37
|
|
|
33
38
|
|
|
@@ -137,7 +142,7 @@ function $b4d0d98857ed9934$export$e5139bbbb9a05035(component, is_set = (0, $0b7c
|
|
|
137
142
|
});
|
|
138
143
|
};
|
|
139
144
|
}
|
|
140
|
-
async function $b4d0d98857ed9934$export$79c79419c1ef0081({ display: display ,
|
|
145
|
+
async function $b4d0d98857ed9934$export$79c79419c1ef0081({ display: display , component_portals: component_portals , set_portals: set_portals , react_template: react_template }) {
|
|
141
146
|
const solid_container = document.createElement("div");
|
|
142
147
|
const react_has_rendered = new Promise((r)=>{
|
|
143
148
|
const m_o = new MutationObserver(()=>{
|
|
@@ -148,9 +153,8 @@ async function $b4d0d98857ed9934$export$79c79419c1ef0081({ display: display , in
|
|
|
148
153
|
childList: true
|
|
149
154
|
});
|
|
150
155
|
});
|
|
151
|
-
const is_placeholder = info.rendering_options.type === "placeholder";
|
|
152
156
|
const reactProductCard = (0, $4GYXz$reactjsxruntime.jsx)(react_template, {
|
|
153
|
-
display:
|
|
157
|
+
display: display
|
|
154
158
|
});
|
|
155
159
|
const portal = $4GYXz$reactdom.createPortal(reactProductCard, solid_container);
|
|
156
160
|
component_portals.add(portal);
|
|
@@ -290,9 +294,8 @@ function $7ad7a3d0011b7b1b$var$SolidSearchPage(props, set_portals) {
|
|
|
290
294
|
// Todo: Do we need this?
|
|
291
295
|
get_product_id: ()=>"",
|
|
292
296
|
depict_search: depict_search,
|
|
293
|
-
product_card_template: (display
|
|
297
|
+
product_card_template: (display)=>(0, $b4d0d98857ed9934$export$79c79419c1ef0081)({
|
|
294
298
|
display: display,
|
|
295
|
-
info: info,
|
|
296
299
|
react_template: props.productCard,
|
|
297
300
|
component_portals: component_portals,
|
|
298
301
|
set_portals: set_portals
|
|
@@ -340,9 +343,8 @@ function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
|
|
|
340
343
|
category_title: props.categoryTitlePlugin || (0, $4GYXz$depictaiui.CategoryTitle),
|
|
341
344
|
show_breadcrumbs: props.showBreadcrumbs === undefined ? true : props.showBreadcrumbs,
|
|
342
345
|
show_quicklinks: props.showQuicklinks === undefined ? true : props.showQuicklinks,
|
|
343
|
-
product_card_template: (display
|
|
346
|
+
product_card_template: (display)=>(0, $b4d0d98857ed9934$export$79c79419c1ef0081)({
|
|
344
347
|
display: display,
|
|
345
|
-
info: info,
|
|
346
348
|
react_template: props.productCard,
|
|
347
349
|
component_portals: component_portals,
|
|
348
350
|
set_portals: set_portals
|
|
@@ -356,7 +358,7 @@ function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
|
|
|
356
358
|
|
|
357
359
|
|
|
358
360
|
function $d88e98b11c182b8e$export$5646050d516e06bc() {
|
|
359
|
-
return (0, $b4d0d98857ed9934$export$f6e64e17bd69eeef)((0, $b4d0d98857ed9934$export$e5139bbbb9a05035)($d88e98b11c182b8e$var$vanilla_breadcrumbs),
|
|
361
|
+
return (0, $b4d0d98857ed9934$export$f6e64e17bd69eeef)((0, $b4d0d98857ed9934$export$e5139bbbb9a05035)($d88e98b11c182b8e$var$vanilla_breadcrumbs), undefined);
|
|
360
362
|
}
|
|
361
363
|
function $d88e98b11c182b8e$var$vanilla_breadcrumbs() {
|
|
362
364
|
const depict_category = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).category;
|
|
@@ -410,7 +412,6 @@ const $7c8b440edc188ad5$export$89c6019e4baa40b1 = ({ width: width , height: heig
|
|
|
410
412
|
|
|
411
413
|
|
|
412
414
|
|
|
413
|
-
|
|
414
415
|
const $ef7db890e488d4f4$export$d69d8daa20eae175 = (createOpenModalParams)=>{
|
|
415
416
|
const { globalState: globalState , location: location , alignerRef: alignerRef } = createOpenModalParams;
|
|
416
417
|
const openModal = ()=>{
|
|
@@ -423,17 +424,8 @@ const $ef7db890e488d4f4$export$d69d8daa20eae175 = (createOpenModalParams)=>{
|
|
|
423
424
|
globalState.search.modal_open = true;
|
|
424
425
|
return;
|
|
425
426
|
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
const resize_observer = new ResizeObserver((0, $4GYXz$depictaiutilishared.catchify)(()=>{
|
|
429
|
-
const styles = (0, $4GYXz$depictaiui.styles_to_valid_css_string)({
|
|
430
|
-
".depict.plp .depict-search-modal .query-input": {
|
|
431
|
-
"height": `${headerAligner?.clientHeight}px`
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
style_element.replaceChildren(styles);
|
|
435
|
-
}));
|
|
436
|
-
resize_observer.observe(headerAligner);
|
|
427
|
+
if (!headerAligner) return;
|
|
428
|
+
const { cleanup: cleanup } = (0, $ef7db890e488d4f4$import$5090e60c224b3b76$bec48a3a3ca6bc09)(headerAligner);
|
|
437
429
|
let dispose_aligner;
|
|
438
430
|
/**
|
|
439
431
|
* Setting position to fixed is important to make the modal work with align_field.
|
|
@@ -442,8 +434,7 @@ const $ef7db890e488d4f4$export$d69d8daa20eae175 = (createOpenModalParams)=>{
|
|
|
442
434
|
});
|
|
443
435
|
(0, $4GYXz$solidjs.createRoot)((dispose)=>{
|
|
444
436
|
dispose_aligner = ()=>{
|
|
445
|
-
|
|
446
|
-
style_element.remove();
|
|
437
|
+
cleanup();
|
|
447
438
|
dispose();
|
|
448
439
|
};
|
|
449
440
|
(0, $4GYXz$depictaiui.align_field)(style_props_, headerAligner, undefined, false, "top");
|
|
@@ -497,10 +488,6 @@ const $ca5840628781f899$export$45080d603eda647c = (props)=>{
|
|
|
497
488
|
|
|
498
489
|
|
|
499
490
|
|
|
500
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.64";
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
491
|
|
|
505
492
|
const $e387bd534de10acd$export$804fac5697cfbe35 = (router)=>(href)=>{
|
|
506
493
|
const shallow = (0, $b4d0d98857ed9934$export$92a8f8b3c630fa0d)(location);
|
package/dist/module.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
const process = { env: {} }; // In case that the code using this wasn't built with "node emulation", just make process.env accesses become undefined.
|
|
1
2
|
import {dlog as $TZSbU$dlog, catchify as $TZSbU$catchify, observer as $TZSbU$observer, history_replacer as $TZSbU$history_replacer, queueMacroTask as $TZSbU$queueMacroTask, href_change_ipns as $TZSbU$href_change_ipns, ContainedPlaceholderImage as $TZSbU$ContainedPlaceholderImage, Placeholder as $TZSbU$Placeholder} from "@depict-ai/utilishared";
|
|
2
|
-
import {add_to_version_info as $TZSbU$add_to_version_info, CategoryTitle as $43099132aad1ceb6$re_export$CategoryTitle, embedded_num_products as $43099132aad1ceb6$re_export$EmbeddedNumProducts, 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,
|
|
3
|
+
import {add_to_version_info as $TZSbU$add_to_version_info, CategoryTitle as $43099132aad1ceb6$re_export$CategoryTitle, embedded_num_products as $43099132aad1ceb6$re_export$EmbeddedNumProducts, 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, align_field as $TZSbU$align_field, SearchField as $TZSbU$SearchField} from "@depict-ai/ui";
|
|
3
4
|
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
5
|
import {createElement as $TZSbU$createElement, Fragment as $TZSbU$Fragment, useState as $TZSbU$useState, useRef as $TZSbU$useRef, useEffect as $TZSbU$useEffect, forwardRef as $TZSbU$forwardRef} from "react";
|
|
5
6
|
import {en as $TZSbU$en} from "@depict-ai/ui/locales";
|
|
@@ -10,6 +11,10 @@ import {createPortal as $TZSbU$createPortal} from "react-dom";
|
|
|
10
11
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
11
12
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
12
13
|
|
|
14
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.66";
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
13
18
|
|
|
14
19
|
|
|
15
20
|
|
|
@@ -119,7 +124,7 @@ function $c83ba9ab79386687$export$e5139bbbb9a05035(component, is_set = (0, $4285
|
|
|
119
124
|
});
|
|
120
125
|
};
|
|
121
126
|
}
|
|
122
|
-
async function $c83ba9ab79386687$export$79c79419c1ef0081({ display: display ,
|
|
127
|
+
async function $c83ba9ab79386687$export$79c79419c1ef0081({ display: display , component_portals: component_portals , set_portals: set_portals , react_template: react_template }) {
|
|
123
128
|
const solid_container = document.createElement("div");
|
|
124
129
|
const react_has_rendered = new Promise((r)=>{
|
|
125
130
|
const m_o = new MutationObserver(()=>{
|
|
@@ -130,9 +135,8 @@ async function $c83ba9ab79386687$export$79c79419c1ef0081({ display: display , in
|
|
|
130
135
|
childList: true
|
|
131
136
|
});
|
|
132
137
|
});
|
|
133
|
-
const is_placeholder = info.rendering_options.type === "placeholder";
|
|
134
138
|
const reactProductCard = (0, $TZSbU$jsx)(react_template, {
|
|
135
|
-
display:
|
|
139
|
+
display: display
|
|
136
140
|
});
|
|
137
141
|
const portal = $TZSbU$createPortal(reactProductCard, solid_container);
|
|
138
142
|
component_portals.add(portal);
|
|
@@ -272,9 +276,8 @@ function $4a678f0c87b12e78$var$SolidSearchPage(props, set_portals) {
|
|
|
272
276
|
// Todo: Do we need this?
|
|
273
277
|
get_product_id: ()=>"",
|
|
274
278
|
depict_search: depict_search,
|
|
275
|
-
product_card_template: (display
|
|
279
|
+
product_card_template: (display)=>(0, $c83ba9ab79386687$export$79c79419c1ef0081)({
|
|
276
280
|
display: display,
|
|
277
|
-
info: info,
|
|
278
281
|
react_template: props.productCard,
|
|
279
282
|
component_portals: component_portals,
|
|
280
283
|
set_portals: set_portals
|
|
@@ -322,9 +325,8 @@ function $48d7f568740a317d$var$SolidCategoryPage(props, set_portals) {
|
|
|
322
325
|
category_title: props.categoryTitlePlugin || (0, $43099132aad1ceb6$re_export$CategoryTitle),
|
|
323
326
|
show_breadcrumbs: props.showBreadcrumbs === undefined ? true : props.showBreadcrumbs,
|
|
324
327
|
show_quicklinks: props.showQuicklinks === undefined ? true : props.showQuicklinks,
|
|
325
|
-
product_card_template: (display
|
|
328
|
+
product_card_template: (display)=>(0, $c83ba9ab79386687$export$79c79419c1ef0081)({
|
|
326
329
|
display: display,
|
|
327
|
-
info: info,
|
|
328
330
|
react_template: props.productCard,
|
|
329
331
|
component_portals: component_portals,
|
|
330
332
|
set_portals: set_portals
|
|
@@ -338,7 +340,7 @@ function $48d7f568740a317d$var$SolidCategoryPage(props, set_portals) {
|
|
|
338
340
|
|
|
339
341
|
|
|
340
342
|
function $f866f7ed9f751af4$export$5646050d516e06bc() {
|
|
341
|
-
return (0, $c83ba9ab79386687$export$f6e64e17bd69eeef)((0, $c83ba9ab79386687$export$e5139bbbb9a05035)($f866f7ed9f751af4$var$vanilla_breadcrumbs),
|
|
343
|
+
return (0, $c83ba9ab79386687$export$f6e64e17bd69eeef)((0, $c83ba9ab79386687$export$e5139bbbb9a05035)($f866f7ed9f751af4$var$vanilla_breadcrumbs), undefined);
|
|
342
344
|
}
|
|
343
345
|
function $f866f7ed9f751af4$var$vanilla_breadcrumbs() {
|
|
344
346
|
const depict_category = (0, $42858f023ef23dab$export$8e769ad4338a911e).category;
|
|
@@ -392,7 +394,6 @@ const $cbd250061abf11cb$export$89c6019e4baa40b1 = ({ width: width , height: heig
|
|
|
392
394
|
|
|
393
395
|
|
|
394
396
|
|
|
395
|
-
|
|
396
397
|
const $5e26376d86621891$export$d69d8daa20eae175 = (createOpenModalParams)=>{
|
|
397
398
|
const { globalState: globalState , location: location , alignerRef: alignerRef } = createOpenModalParams;
|
|
398
399
|
const openModal = ()=>{
|
|
@@ -405,17 +406,8 @@ const $5e26376d86621891$export$d69d8daa20eae175 = (createOpenModalParams)=>{
|
|
|
405
406
|
globalState.search.modal_open = true;
|
|
406
407
|
return;
|
|
407
408
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
const resize_observer = new ResizeObserver((0, $TZSbU$catchify)(()=>{
|
|
411
|
-
const styles = (0, $TZSbU$styles_to_valid_css_string)({
|
|
412
|
-
".depict.plp .depict-search-modal .query-input": {
|
|
413
|
-
"height": `${headerAligner?.clientHeight}px`
|
|
414
|
-
}
|
|
415
|
-
});
|
|
416
|
-
style_element.replaceChildren(styles);
|
|
417
|
-
}));
|
|
418
|
-
resize_observer.observe(headerAligner);
|
|
409
|
+
if (!headerAligner) return;
|
|
410
|
+
const { cleanup: cleanup } = (0, $5e26376d86621891$import$5090e60c224b3b76$bec48a3a3ca6bc09)(headerAligner);
|
|
419
411
|
let dispose_aligner;
|
|
420
412
|
/**
|
|
421
413
|
* Setting position to fixed is important to make the modal work with align_field.
|
|
@@ -424,8 +416,7 @@ const $5e26376d86621891$export$d69d8daa20eae175 = (createOpenModalParams)=>{
|
|
|
424
416
|
});
|
|
425
417
|
(0, $TZSbU$createRoot)((dispose)=>{
|
|
426
418
|
dispose_aligner = ()=>{
|
|
427
|
-
|
|
428
|
-
style_element.remove();
|
|
419
|
+
cleanup();
|
|
429
420
|
dispose();
|
|
430
421
|
};
|
|
431
422
|
(0, $TZSbU$align_field)(style_props_, headerAligner, undefined, false, "top");
|
|
@@ -479,10 +470,6 @@ const $e3ccaca62718bae4$export$45080d603eda647c = (props)=>{
|
|
|
479
470
|
|
|
480
471
|
|
|
481
472
|
|
|
482
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.64";
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
473
|
|
|
487
474
|
const $a92aa2beb560b8af$export$804fac5697cfbe35 = (router)=>(href)=>{
|
|
488
475
|
const shallow = (0, $c83ba9ab79386687$export$92a8f8b3c630fa0d)(location);
|
package/dist-server/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface UseDepictSearchFieldReturn {
|
|
|
9
9
|
*/
|
|
10
10
|
DepictSearchField: () => ReactElement;
|
|
11
11
|
}
|
|
12
|
-
export const version = "0.0.
|
|
12
|
+
export const version = "0.0.66";
|
|
13
13
|
export function DepictProvider(props: any): any;
|
|
14
14
|
export function DepictSearchPage(): any;
|
|
15
15
|
export function DepictCategoryPage(): any;
|
package/dist-server/main.js
CHANGED
|
@@ -19,7 +19,7 @@ $parcel$export(module.exports, "useDepictSearchModal", () => $41e7e5d85b5e0d49$e
|
|
|
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.66";
|
|
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.66",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"clear-dist": "rm -r -f ./dist",
|
|
15
|
-
"build": "node ./build-scripts/pre_build.js && yarn build-server && parcel build --no-source-maps && yarn ignore-optional && cp -a src/styles/plp-styling/. dist/styles/",
|
|
15
|
+
"build": "node ./build-scripts/pre_build.js && yarn build-server && parcel build --no-source-maps && yarn ignore-optional && cp -a src/styles/plp-styling/. dist/styles/ && node ./build-scripts/post_build.js",
|
|
16
16
|
"build-server": "yarn clear-dist && parcel build --no-source-maps ./src-server/index.ts && cp -r ./dist/ ./dist-server && yarn clear-dist",
|
|
17
17
|
"ignore-optional": "node build-scripts/ignore-optional.js",
|
|
18
18
|
"print-included-package-files": "yarn pack --dry-run",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"/locales"
|
|
91
91
|
],
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@depict-ai/ui": "^0.0.
|
|
94
|
-
"@depict-ai/utilishared": "^0.0.
|
|
93
|
+
"@depict-ai/ui": "^0.0.43",
|
|
94
|
+
"@depict-ai/utilishared": "^0.0.41",
|
|
95
95
|
"solid-js": "^1.6.2"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@babel/preset-typescript": "latest",
|
|
105
105
|
"@babel/runtime": "latest",
|
|
106
106
|
"@babel/runtime-corejs3": "latest",
|
|
107
|
-
"@depict-ai/plp-styling": "^0.0.
|
|
107
|
+
"@depict-ai/plp-styling": "^0.0.6",
|
|
108
108
|
"@jest/globals": "^29.3.1",
|
|
109
109
|
"@parcel/babel-preset-env": "latest",
|
|
110
110
|
"@parcel/resolver-default": "^2.8.0",
|