@plasmicpkgs/commerce 0.0.7 → 0.0.8

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.
@@ -2,16 +2,19 @@ import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
2
  import { Registerable } from "./registerable";
3
3
  import React from "react";
4
4
  import { Brand, Category } from "./types/site";
5
+ import { CommerceExtraFeatures } from "./utils/types";
5
6
  interface ProductCollectionProps {
6
7
  className?: string;
7
8
  children?: React.ReactNode;
8
9
  count?: number;
9
10
  category?: string;
11
+ includeSubCategories?: boolean;
10
12
  brand?: string;
11
13
  noLayout?: boolean;
12
14
  setControlContextData?: (data: {
13
15
  categories: Category[];
14
16
  brands: Brand[];
17
+ features?: CommerceExtraFeatures;
15
18
  }) => void;
16
19
  }
17
20
  export declare const productCollectionMeta: ComponentMeta<ProductCollectionProps>;
@@ -1,3 +1,4 @@
1
+ import { Category } from "./site";
1
2
  export declare type ProductImage = {
2
3
  url: string;
3
4
  alt?: string;
@@ -48,6 +49,8 @@ export declare type SearchProductsBody = {
48
49
  sort?: string;
49
50
  locale?: string;
50
51
  count?: number;
52
+ includeSubCategories?: boolean;
53
+ categories?: Category[];
51
54
  };
52
55
  export declare type GetProductBody = {
53
56
  id?: string;
@@ -92,4 +92,6 @@ export declare type MutationHookContext<H extends MutationSchemaBase> = {
92
92
  }) => H['data'] | Promise<H['data']>;
93
93
  };
94
94
  export declare type SwrOptions<Data, Input = null, Result = any> = SWRConfiguration<Data, CommerceError, HookFetcher<Data, Input, Result>>;
95
- export declare const x: () => number;
95
+ export declare type CommerceExtraFeatures = {
96
+ includeSubCategories?: boolean;
97
+ };
@@ -0,0 +1 @@
1
+ export declare const useCommerceExtraFeatures: () => import("./types").CommerceExtraFeatures | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/commerce",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Plasmic registration calls for commerce components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "analyze": "size-limit --why"
19
19
  },
20
20
  "devDependencies": {
21
- "@plasmicapp/host": "1.0.21",
21
+ "@plasmicapp/host": "^1.0.38",
22
22
  "@size-limit/preset-small-lib": "^4.11.0",
23
23
  "@types/js-cookie": "^3.0.1",
24
24
  "@types/node": "^14.0.26",
@@ -39,5 +39,5 @@
39
39
  "react-hook-form": "^7.28.0",
40
40
  "swr": "^1.2.2"
41
41
  },
42
- "gitHead": "ea0c85f1b7d88855d71907270cb3922527d34bd9"
42
+ "gitHead": "85308892b93b18d913f32ead0a92f7999741f245"
43
43
  }