@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.
- package/dist/commerce.cjs.development.js +22 -21
- 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 +22 -21
- package/dist/commerce.esm.js.map +1 -1
- package/dist/registerCart.d.ts +1 -0
- package/dist/registerCategoryField.d.ts +1 -0
- package/dist/registerCategoryMedia.d.ts +1 -0
- package/dist/registerProductMedia.d.ts +1 -0
- package/dist/registerProductPrice.d.ts +1 -0
- package/dist/registerProductTextField.d.ts +1 -0
- package/dist/registerProductVariantPicker.d.ts +1 -0
- package/dist/utils/use-data.d.ts +4 -4
- package/package.json +4 -3
package/dist/registerCart.d.ts
CHANGED
package/dist/utils/use-data.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SWRResponse } from
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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[
|
|
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.
|
|
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.
|
|
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": "
|
|
43
|
+
"gitHead": "e57163897e6ebf84ce69bab6a43a77d66316dd64"
|
|
43
44
|
}
|