umwd-components 0.1.750 → 0.1.752
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/cjs/src/components/e-commerce/products/ProductCard.js +1 -1
- package/dist/cjs/src/components/e-commerce/products/SingleProduct.js +1 -1
- package/dist/cjs/src/data/loaders/e-commerce/getSingleCategory.js +1 -1
- package/dist/cjs/src/index.js +1 -1
- package/dist/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/src/components/e-commerce/products/ProductCard.js +1 -1
- package/dist/esm/src/components/e-commerce/products/SingleProduct.js +15 -14
- package/dist/esm/src/data/loaders/e-commerce/getSingleCategory.js +19 -1
- package/dist/esm/src/index.js +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/types/components/e-commerce/products/SingleProduct.d.ts +2 -2
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/types/e-commerce/product/types.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SxProps, Theme } from "@mui/material/styles";
|
|
2
|
-
import {
|
|
2
|
+
import { ExtendedSlugProduct } from "../../../types/e-commerce/product/types";
|
|
3
3
|
interface SingleProductProps {
|
|
4
|
-
product:
|
|
4
|
+
product: ExtendedSlugProduct;
|
|
5
5
|
sx?: SxProps<Theme>;
|
|
6
6
|
}
|
|
7
7
|
declare function SingleProduct({ product, sx }: SingleProductProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -100,6 +100,7 @@ export { InvoicePDFViewer as InvoicePDFViewer } from "./components/e-commerce/in
|
|
|
100
100
|
export { getCustomerProfile as getCustomerProfile, getSingleOrderByUuid as getSingleOrderByUuid, } from "./data/loaders/e-commerce-loaders";
|
|
101
101
|
export { getAllOpos as getAllOpos } from "./data/loaders/e-commerce/getAllOpos";
|
|
102
102
|
export { getSingleCategory as getSingleCategory } from "./data/loaders/e-commerce/getSingleCategory";
|
|
103
|
+
export { getSingleCategoryBySlug as getSingleCategoryBySlug } from "./data/loaders/e-commerce/getSingleCategory";
|
|
103
104
|
export { getTableProducts as getTableProducts } from "./data/loaders/e-commerce/getTableProducts";
|
|
104
105
|
export { getAllCategoryNames as getAllCategoryNames } from "./data/loaders/e-commerce/getAllCategoryNames";
|
|
105
106
|
export { getPaginatedCategories as getPaginatedCategories } from "./data/loaders/e-commerce/getPaginatedCategories";
|
|
@@ -37,6 +37,17 @@ export interface ExtendedProduct extends Product {
|
|
|
37
37
|
stock: number;
|
|
38
38
|
vendors: any[];
|
|
39
39
|
}
|
|
40
|
+
export interface ExtendedSlugProduct extends Product {
|
|
41
|
+
gallery: {
|
|
42
|
+
data: MediaItemProps[];
|
|
43
|
+
};
|
|
44
|
+
categories: {
|
|
45
|
+
data: any[];
|
|
46
|
+
};
|
|
47
|
+
dimensions: DimensionsProps;
|
|
48
|
+
stock: number;
|
|
49
|
+
vendors: any[];
|
|
50
|
+
}
|
|
40
51
|
export type ProductStock = {
|
|
41
52
|
documentId: string;
|
|
42
53
|
title: string;
|