@plasmicpkgs/commerce-saleor 0.0.142 → 0.0.144

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,5 +1,13 @@
1
1
  import { SWRHook } from "@plasmicpkgs/commerce";
2
2
  import { GetCartHook } from "../types/cart";
3
- declare const _default;
3
+ declare const _default: (input?: {
4
+ swrOptions?: Partial<import("swr/dist/types").PublicConfiguration<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined, import("@plasmicpkgs/commerce").CommerceError, import("@plasmicpkgs/commerce").HookFetcher<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined, {
5
+ cartId?: string | undefined;
6
+ }, any>>> | undefined;
7
+ } | undefined) => import("swr").SWRResponse<import("@plasmicpkgs/commerce/dist/types/cart").Cart | null | undefined, import("@plasmicpkgs/commerce").CommerceError> & {
8
+ isLoading: boolean;
9
+ } & {
10
+ isEmpty: boolean;
11
+ };
4
12
  export default _default;
5
13
  export declare const handler: SWRHook<GetCartHook>;
@@ -4,6 +4,10 @@ export declare type GetProductInput = {
4
4
  id?: string;
5
5
  slug?: string;
6
6
  };
7
- declare const _default;
7
+ declare const _default: (input?: (import("@plasmicpkgs/commerce").GetProductBody & {
8
+ swrOptions?: Partial<import("swr/dist/types").PublicConfiguration<import("@plasmicpkgs/commerce").Product | null, import("@plasmicpkgs/commerce").CommerceError, import("@plasmicpkgs/commerce").HookFetcher<import("@plasmicpkgs/commerce").Product | null, import("@plasmicpkgs/commerce").GetProductBody, any>>> | undefined;
9
+ }) | undefined) => import("swr").SWRResponse<import("@plasmicpkgs/commerce").Product | null, import("@plasmicpkgs/commerce").CommerceError> & {
10
+ isLoading: boolean;
11
+ };
8
12
  export default _default;
9
13
  export declare const handler: SWRHook<GetProductHook>;
@@ -1,5 +1,11 @@
1
1
  import { SWRHook } from "@plasmicpkgs/commerce";
2
2
  import { GetBrandsHook } from "../types/site";
3
- declare const _default;
3
+ declare const _default: (input?: {
4
+ swrOptions?: Partial<import("swr/dist/types").PublicConfiguration<import("@plasmicpkgs/commerce/dist/types/site").Brand[] | null, import("@plasmicpkgs/commerce").CommerceError, import("@plasmicpkgs/commerce").HookFetcher<import("@plasmicpkgs/commerce/dist/types/site").Brand[] | null, {}, any>>> | undefined;
5
+ } | undefined) => import("swr").SWRResponse<import("@plasmicpkgs/commerce/dist/types/site").Brand[] | null, import("@plasmicpkgs/commerce").CommerceError> & {
6
+ isLoading: boolean;
7
+ } & {
8
+ isEmpty: boolean;
9
+ };
4
10
  export default _default;
5
11
  export declare const handler: SWRHook<GetBrandsHook>;
@@ -1,5 +1,11 @@
1
1
  import { SWRHook } from "@plasmicpkgs/commerce";
2
2
  import { GetCategoriesHook } from "../types/site";
3
- declare const _default;
3
+ declare const _default: (input?: (import("@plasmicpkgs/commerce/dist/types/site").GetCategoriesBody & {
4
+ swrOptions?: Partial<import("swr/dist/types").PublicConfiguration<import("@plasmicpkgs/commerce/dist/types/site").Category[], import("@plasmicpkgs/commerce").CommerceError, import("@plasmicpkgs/commerce").HookFetcher<import("@plasmicpkgs/commerce/dist/types/site").Category[], import("@plasmicpkgs/commerce/dist/types/site").GetCategoriesBody, any>>> | undefined;
5
+ }) | undefined) => import("swr").SWRResponse<import("@plasmicpkgs/commerce/dist/types/site").Category[], import("@plasmicpkgs/commerce").CommerceError> & {
6
+ isLoading: boolean;
7
+ } & {
8
+ isEmpty: boolean;
9
+ };
4
10
  export default _default;
5
11
  export declare const handler: SWRHook<GetCategoriesHook>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/commerce-saleor",
3
- "version": "0.0.142",
3
+ "version": "0.0.144",
4
4
  "description": "Plasmic registration calls for saleor commerce provider",
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
  "dependencies": {
21
- "@plasmicpkgs/commerce": "0.0.178",
21
+ "@plasmicpkgs/commerce": "0.0.180",
22
22
  "debounce": "^1.2.1",
23
23
  "js-cookie": "^3.0.5"
24
24
  },
@@ -27,7 +27,7 @@
27
27
  "react": ">=16.8.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@plasmicapp/host": "1.0.180",
30
+ "@plasmicapp/host": "1.0.182",
31
31
  "@size-limit/preset-small-lib": "^7.0.8",
32
32
  "@types/debounce": "^1.2.1",
33
33
  "@types/js-cookie": "^3.0.5",
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "e509f855bddb2f2a527bbf0b4fc5fed35e607e5c"
46
+ "gitHead": "14c20ab68d180b65010b1cce060172af9a6826fd"
47
47
  }