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.
@@ -1,7 +1,7 @@
1
1
  import { SxProps, Theme } from "@mui/material/styles";
2
- import { ExtendedProduct } from "../../../types/e-commerce/product/types";
2
+ import { ExtendedSlugProduct } from "../../../types/e-commerce/product/types";
3
3
  interface SingleProductProps {
4
- product: ExtendedProduct;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.750",
3
+ "version": "0.1.752",
4
4
  "description": "UMWD Component library",
5
5
  "main": "./dist/cjs/src/index.js",
6
6
  "module": "./dist/esm/src/index.js",