@plasmicpkgs/commerce-swell 0.0.194 → 0.0.196
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/cart/use-cart.d.ts
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { SWRHook } from '@plasmicpkgs/commerce';
|
|
2
2
|
import type { CartType } from '@plasmicpkgs/commerce';
|
|
3
|
-
declare const _default
|
|
4
|
-
swrOptions?: Partial<import("swr/dist/types").PublicConfiguration<CartType.Cart | null | undefined, import("@plasmicpkgs/commerce").CommerceError, import("@plasmicpkgs/commerce").HookFetcher<CartType.Cart | null | undefined, {
|
|
5
|
-
cartId?: string | undefined;
|
|
6
|
-
}, any>>> | undefined;
|
|
7
|
-
} | undefined) => import("swr").SWRResponse<CartType.Cart | null | undefined, import("@plasmicpkgs/commerce").CommerceError> & {
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
} & {
|
|
10
|
-
isEmpty: boolean;
|
|
11
|
-
};
|
|
3
|
+
declare const _default;
|
|
12
4
|
export default _default;
|
|
13
5
|
declare type GetCartHook = CartType.GetCartHook;
|
|
14
6
|
export declare const handler: SWRHook<GetCartHook>;
|
|
@@ -2,10 +2,6 @@ import { GetProductHook, SWRHook } from '@plasmicpkgs/commerce';
|
|
|
2
2
|
export declare type GetProductInput = {
|
|
3
3
|
id?: string;
|
|
4
4
|
};
|
|
5
|
-
declare const _default
|
|
6
|
-
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;
|
|
7
|
-
}) | undefined) => import("swr").SWRResponse<import("@plasmicpkgs/commerce").Product | null, import("@plasmicpkgs/commerce").CommerceError> & {
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
};
|
|
5
|
+
declare const _default;
|
|
10
6
|
export default _default;
|
|
11
7
|
export declare const handler: SWRHook<GetProductHook>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { SiteTypes, SWRHook } from "@plasmicpkgs/commerce";
|
|
2
|
-
declare const _default
|
|
3
|
-
swrOptions?: Partial<import("swr/dist/types").PublicConfiguration<SiteTypes.Brand[] | null, import("@plasmicpkgs/commerce").CommerceError, import("@plasmicpkgs/commerce").HookFetcher<SiteTypes.Brand[] | null, {}, any>>> | undefined;
|
|
4
|
-
} | undefined) => import("swr").SWRResponse<SiteTypes.Brand[] | null, import("@plasmicpkgs/commerce").CommerceError> & {
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
} & {
|
|
7
|
-
isEmpty: boolean;
|
|
8
|
-
};
|
|
2
|
+
declare const _default;
|
|
9
3
|
export default _default;
|
|
10
4
|
declare type GetBrandsHook = SiteTypes.GetBrandsHook;
|
|
11
5
|
export declare const handler: SWRHook<GetBrandsHook>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { SiteTypes, SWRHook } from "@plasmicpkgs/commerce";
|
|
2
|
-
declare const _default
|
|
3
|
-
swrOptions?: Partial<import("swr/dist/types").PublicConfiguration<SiteTypes.Category[], import("@plasmicpkgs/commerce").CommerceError, import("@plasmicpkgs/commerce").HookFetcher<SiteTypes.Category[], SiteTypes.GetCategoriesBody, any>>> | undefined;
|
|
4
|
-
}) | undefined) => import("swr").SWRResponse<SiteTypes.Category[], import("@plasmicpkgs/commerce").CommerceError> & {
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
} & {
|
|
7
|
-
isEmpty: boolean;
|
|
8
|
-
};
|
|
2
|
+
declare const _default;
|
|
9
3
|
export default _default;
|
|
10
4
|
declare type GetCategoriesHook = SiteTypes.GetCategoriesHook;
|
|
11
5
|
export declare const handler: SWRHook<GetCategoriesHook>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/commerce-swell",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.196",
|
|
4
4
|
"description": "Plasmic registration calls for swell commerce provider",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsdx build",
|
|
13
13
|
"start": "tsdx watch",
|
|
14
|
-
"test": "yarn --cwd=../../.. test --passWithNoTests",
|
|
14
|
+
"test": "TEST_CWD=`pwd` yarn --cwd=../../.. test --passWithNoTests",
|
|
15
15
|
"lint": "tsdx lint",
|
|
16
16
|
"prepublishOnly": "npm run build",
|
|
17
17
|
"size": "size-limit",
|
|
18
18
|
"analyze": "size-limit --why"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@plasmicapp/host": "1.0.
|
|
21
|
+
"@plasmicapp/host": "1.0.189",
|
|
22
22
|
"@size-limit/preset-small-lib": "^4.11.0",
|
|
23
23
|
"@types/debounce": "^1.2.3",
|
|
24
24
|
"@types/js-cookie": "^3.0.1",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"react": ">=16.8.0"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@plasmicpkgs/commerce": "0.0.
|
|
36
|
+
"@plasmicpkgs/commerce": "0.0.187",
|
|
37
37
|
"@types/react": "^18.0.27",
|
|
38
38
|
"debounce": "^1.2.1",
|
|
39
39
|
"js-cookie": "^3.0.5",
|
|
40
40
|
"swell-js": "^3.13.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "d610e0b0246d0f56d641248b95b7b10f235e68c5"
|
|
43
43
|
}
|