@plasmicpkgs/commerce 0.0.14 → 0.0.17
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/commerce.cjs.development.js +75 -19
- package/dist/commerce.cjs.development.js.map +1 -1
- package/dist/commerce.cjs.production.min.js +1 -1
- package/dist/commerce.cjs.production.min.js.map +1 -1
- package/dist/commerce.esm.js +70 -20
- package/dist/commerce.esm.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/registerCategoryMedia.d.ts +1 -0
- package/dist/registerProductMedia.d.ts +1 -0
- package/dist/types/site.d.ts +3 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -19,12 +19,14 @@ export * from "./registerCart";
|
|
|
19
19
|
export * from "./registerCategoryCollection";
|
|
20
20
|
export * from "./registerCategoryField";
|
|
21
21
|
export * from "./registerCategoryLink";
|
|
22
|
+
export * from "./registerCategoryMedia";
|
|
22
23
|
export * from "./registerProductBox";
|
|
23
24
|
export * from "./registerProductCollection";
|
|
24
25
|
export * from "./registerProductLink";
|
|
25
26
|
export * from "./registerProductMedia";
|
|
26
27
|
export * from "./registerProductPrice";
|
|
27
28
|
export * from "./registerProductQuantity";
|
|
29
|
+
export * from "./registerProductSlider";
|
|
28
30
|
export * from "./registerProductTextField";
|
|
29
31
|
export * from "./registerProductVariantPicker";
|
|
30
32
|
export * from "./site/use-brands";
|
|
@@ -3,6 +3,7 @@ import { Registerable } from "./registerable";
|
|
|
3
3
|
interface CategoryMediaProps {
|
|
4
4
|
className: string;
|
|
5
5
|
mediaIndex?: number;
|
|
6
|
+
mediaSize?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const categoryMediaMeta: ComponentMeta<CategoryMediaProps>;
|
|
8
9
|
export declare function CategoryMedia(props: CategoryMediaProps): JSX.Element;
|
|
@@ -3,6 +3,7 @@ import { Registerable } from "./registerable";
|
|
|
3
3
|
interface ProductMediaProps {
|
|
4
4
|
className: string;
|
|
5
5
|
mediaIndex?: number;
|
|
6
|
+
mediaSize?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const productMediaMeta: ComponentMeta<ProductMediaProps>;
|
|
8
9
|
export declare function ProductMedia(props: ProductMediaProps): JSX.Element;
|
package/dist/types/site.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export declare type Category = {
|
|
|
9
9
|
path: string;
|
|
10
10
|
isEmpty?: boolean;
|
|
11
11
|
images?: CategoryImage[];
|
|
12
|
+
depth?: number;
|
|
13
|
+
children?: string[];
|
|
14
|
+
parentId?: string;
|
|
12
15
|
};
|
|
13
16
|
export declare type Brand = {
|
|
14
17
|
name: string;
|
|
@@ -31,7 +34,6 @@ export declare type GetSiteInfoOperation<T extends SiteTypes = SiteTypes> = {
|
|
|
31
34
|
};
|
|
32
35
|
};
|
|
33
36
|
export declare type GetCategoriesBody = {
|
|
34
|
-
topologicalSort?: boolean;
|
|
35
37
|
addIsEmptyField?: boolean;
|
|
36
38
|
categoryId?: string;
|
|
37
39
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/commerce",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Plasmic registration calls for commerce components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"react-hook-form": "^7.28.0",
|
|
40
40
|
"swr": "^1.2.2"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "a667c1eedb1f894e516e8329be70e19fa2d373f7"
|
|
43
43
|
}
|