@plasmicpkgs/commerce-shopify 0.0.5 → 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.
@@ -8,19 +8,6 @@ export declare type SearchProductsInput = {
8
8
  locale?: string;
9
9
  count?: number;
10
10
  };
11
- declare const _default: (input?: (import("@plasmicpkgs/commerce").SearchProductsBody & {
12
- swrOptions?: Partial<import("swr/dist/types").PublicConfiguration<{
13
- products: import("@plasmicpkgs/commerce").Product[];
14
- found: boolean;
15
- }, import("@plasmicpkgs/commerce").CommerceError, import("@plasmicpkgs/commerce").HookFetcher<{
16
- products: import("@plasmicpkgs/commerce").Product[];
17
- found: boolean;
18
- }, import("@plasmicpkgs/commerce").SearchProductsBody, any>>> | undefined;
19
- }) | undefined) => import("swr").SWRResponse<{
20
- products: import("@plasmicpkgs/commerce").Product[];
21
- found: boolean;
22
- }, import("@plasmicpkgs/commerce").CommerceError> & {
23
- isLoading: boolean;
24
- };
11
+ declare const _default;
25
12
  export default _default;
26
13
  export declare const handler: SWRHook<SearchProductsHook>;
@@ -1,11 +1,5 @@
1
1
  import { SWRHook } from '@plasmicpkgs/commerce';
2
2
  import { GetBrandsHook } from "../types/site";
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
- };
3
+ declare const _default;
10
4
  export default _default;
11
5
  export declare const handler: SWRHook<GetBrandsHook>;
@@ -1,11 +1,5 @@
1
1
  import { SWRHook } from '@plasmicpkgs/commerce';
2
2
  import { GetCategoriesHook } from "../types/site";
3
- declare const _default: (input?: {
4
- swrOptions?: Partial<import("swr/dist/types").PublicConfiguration<import("@plasmicpkgs/commerce/dist/types/site").Category[] | null, import("@plasmicpkgs/commerce").CommerceError, import("@plasmicpkgs/commerce").HookFetcher<import("@plasmicpkgs/commerce/dist/types/site").Category[] | null, {}, any>>> | undefined;
5
- } | undefined) => import("swr").SWRResponse<import("@plasmicpkgs/commerce/dist/types/site").Category[] | null, import("@plasmicpkgs/commerce").CommerceError> & {
6
- isLoading: boolean;
7
- } & {
8
- isEmpty: boolean;
9
- };
3
+ declare const _default;
10
4
  export default _default;
11
5
  export declare const handler: SWRHook<GetCategoriesHook>;
@@ -1,3 +1,3 @@
1
- export declare const productConnectionFragment = "\n fragment productConnection on ProductConnection {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n id\n title\n vendor\n handle\n priceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n options {\n id\n name\n values\n }\n variants(first: 250) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n id\n title\n sku\n availableForSale\n requiresShipping\n selectedOptions {\n name\n value\n }\n priceV2 {\n amount\n currencyCode\n }\n compareAtPriceV2 {\n amount\n currencyCode\n }\n }\n }\n }\n images(first: 250) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n originalSrc\n altText\n width\n height\n }\n }\n }\n }\n }\n }\n";
1
+ export declare const productConnectionFragment = "\n fragment productConnection on ProductConnection {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n id\n title\n vendor\n handle\n description\n descriptionHtml\n priceRange {\n minVariantPrice {\n amount\n currencyCode\n }\n }\n options {\n id\n name\n values\n }\n variants(first: 250) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n id\n title\n sku\n availableForSale\n requiresShipping\n selectedOptions {\n name\n value\n }\n priceV2 {\n amount\n currencyCode\n }\n compareAtPriceV2 {\n amount\n currencyCode\n }\n }\n }\n }\n images(first: 250) {\n pageInfo {\n hasNextPage\n hasPreviousPage\n }\n edges {\n node {\n originalSrc\n altText\n width\n height\n }\n }\n }\n }\n }\n }\n";
2
2
  declare const getAllProductsQuery: string;
3
3
  export default getAllProductsQuery;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/commerce-shopify",
3
- "version": "0.0.5",
3
+ "version": "0.0.8",
4
4
  "description": "Plasmic registration calls for shopify commerce provider",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,8 +34,10 @@
34
34
  "react": ">=16.8.0"
35
35
  },
36
36
  "dependencies": {
37
- "@plasmicpkgs/commerce": "^0.0.5",
37
+ "@plasmicpkgs/commerce": "0.0.6",
38
38
  "@types/react": "^17.0.40",
39
- "lodash": "^4.17.21"
40
- }
39
+ "lodash": "^4.17.21",
40
+ "lodash-es": "^4.17.21"
41
+ },
42
+ "gitHead": "f73c954b181396cce9310f47a9c8def5ba317b86"
41
43
  }