@plasmicpkgs/commerce 0.0.26 → 0.0.29

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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
3
  import { Registerable } from "./registerable";
3
4
  interface CartProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
3
  import { Registerable } from "./registerable";
3
4
  interface CategoryFieldProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
3
  import { Registerable } from "./registerable";
3
4
  interface CategoryMediaProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
3
  import { Registerable } from "./registerable";
3
4
  interface ProductMediaProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
3
  import { Registerable } from "./registerable";
3
4
  interface ProductPriceProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
3
  import { Registerable } from "./registerable";
3
4
  interface ProductTextFieldProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ComponentMeta } from "@plasmicapp/host/registerComponent";
2
3
  import { Registerable } from "./registerable";
3
4
  interface ProductVariantPickerProps {
@@ -1,12 +1,12 @@
1
- import { SWRResponse } from 'swr';
2
- import type { HookSWRInput, HookFetchInput, HookFetcherOptions, HookFetcherFn, Fetcher, SwrOptions, SWRHookSchemaBase } from './types';
3
- import { CommerceError } from './errors';
1
+ import { SWRResponse } from "swr";
2
+ import { CommerceError } from "./errors";
3
+ import type { Fetcher, HookFetcherFn, HookFetcherOptions, HookFetchInput, HookSWRInput, SWRHookSchemaBase, SwrOptions } from "./types";
4
4
  export declare type ResponseState<Result> = SWRResponse<Result, CommerceError> & {
5
5
  isLoading: boolean;
6
6
  };
7
7
  export declare type UseData = <H extends SWRHookSchemaBase>(options: {
8
8
  fetchOptions: HookFetcherOptions;
9
9
  fetcher: HookFetcherFn<H>;
10
- }, input: HookFetchInput | HookSWRInput, fetcherFn: Fetcher, swrOptions?: SwrOptions<H['data'], H['fetcherInput']>) => ResponseState<H['data']>;
10
+ }, input: HookFetchInput | HookSWRInput, fetcherFn: Fetcher, swrOptions?: SwrOptions<H["data"], H["fetcherInput"]>) => ResponseState<H["data"]>;
11
11
  declare const useData: UseData;
12
12
  export default useData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasmicpkgs/commerce",
3
- "version": "0.0.26",
3
+ "version": "0.0.29",
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.46",
21
+ "@plasmicapp/host": "1.0.48",
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",
@@ -33,11 +33,12 @@
33
33
  "react": ">=16.8.0"
34
34
  },
35
35
  "dependencies": {
36
+ "@plasmicapp/query": "0.1.49",
36
37
  "@types/react": "^17.0.40",
37
38
  "@vercel/fetch": "^6.2.0",
38
39
  "js-cookie": "^3.0.1",
39
40
  "react-hook-form": "^7.28.0",
40
41
  "swr": "^1.2.2"
41
42
  },
42
- "gitHead": "d33fcd88d2061d58085d0a5227d4c66462de4fd0"
43
+ "gitHead": "e57163897e6ebf84ce69bab6a43a77d66316dd64"
43
44
  }