@daouypkgs/commerce-saleor 0.0.197
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/README.md +1 -0
- package/dist/cart/index.d.ts +4 -0
- package/dist/cart/use-add-item.d.ts +5 -0
- package/dist/cart/use-cart.d.ts +5 -0
- package/dist/cart/use-remove-item.d.ts +15 -0
- package/dist/cart/use-update-item.d.ts +27 -0
- package/dist/commerce-saleor.cjs.development.js +1284 -0
- package/dist/commerce-saleor.cjs.development.js.map +1 -0
- package/dist/commerce-saleor.cjs.production.min.js +2 -0
- package/dist/commerce-saleor.cjs.production.min.js.map +1 -0
- package/dist/commerce-saleor.esm.js +1273 -0
- package/dist/commerce-saleor.esm.js.map +1 -0
- package/dist/const.d.ts +4 -0
- package/dist/fetcher.d.ts +2 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -0
- package/dist/product/use-price.d.ts +2 -0
- package/dist/product/use-product.d.ts +9 -0
- package/dist/product/use-search.d.ts +16 -0
- package/dist/provider.d.ts +68 -0
- package/dist/registerCommerceProvider.d.ts +11 -0
- package/dist/registerable.d.ts +6 -0
- package/dist/saleor.d.ts +5 -0
- package/dist/site/use-brands.d.ts +5 -0
- package/dist/site/use-categories.d.ts +5 -0
- package/dist/types/cart.d.ts +22 -0
- package/dist/types/site.d.ts +7 -0
- package/dist/types.d.ts +24 -0
- package/dist/utils/checkout-attach.d.ts +2 -0
- package/dist/utils/checkout-create.d.ts +3 -0
- package/dist/utils/checkout-to-cart.d.ts +9 -0
- package/dist/utils/customer-token.d.ts +7 -0
- package/dist/utils/fragments/checkout-details.d.ts +1 -0
- package/dist/utils/fragments/index.d.ts +2 -0
- package/dist/utils/fragments/product.d.ts +1 -0
- package/dist/utils/get-categories.d.ts +3 -0
- package/dist/utils/get-checkout-id.d.ts +5 -0
- package/dist/utils/get-search-variables.d.ts +14 -0
- package/dist/utils/get-sort-variables.d.ts +1 -0
- package/dist/utils/get-vendors.d.ts +11 -0
- package/dist/utils/handle-fetch-response.d.ts +5 -0
- package/dist/utils/handle-login.d.ts +5 -0
- package/dist/utils/index.d.ts +13 -0
- package/dist/utils/mutations/account-create.d.ts +1 -0
- package/dist/utils/mutations/checkout-attach.d.ts +1 -0
- package/dist/utils/mutations/checkout-create.d.ts +1 -0
- package/dist/utils/mutations/checkout-line-add.d.ts +1 -0
- package/dist/utils/mutations/checkout-line-remove.d.ts +1 -0
- package/dist/utils/mutations/checkout-line-update.d.ts +1 -0
- package/dist/utils/mutations/index.d.ts +8 -0
- package/dist/utils/mutations/session-create.d.ts +1 -0
- package/dist/utils/mutations/session-destroy.d.ts +1 -0
- package/dist/utils/normalize.d.ts +7 -0
- package/dist/utils/queries/checkout-one.d.ts +1 -0
- package/dist/utils/queries/collection-many.d.ts +1 -0
- package/dist/utils/queries/collection-one.d.ts +1 -0
- package/dist/utils/queries/customer-current.d.ts +1 -0
- package/dist/utils/queries/customer-one.d.ts +1 -0
- package/dist/utils/queries/get-all-product-vendors-query.d.ts +1 -0
- package/dist/utils/queries/get-all-products-paths-query.d.ts +1 -0
- package/dist/utils/queries/index.d.ts +11 -0
- package/dist/utils/queries/page-many.d.ts +1 -0
- package/dist/utils/queries/page-one.d.ts +1 -0
- package/dist/utils/queries/product-many.d.ts +1 -0
- package/dist/utils/queries/product-one-by-id.d.ts +1 -0
- package/dist/utils/queries/product-one-by-slug.d.ts +1 -0
- package/dist/utils/throw-user-errors.d.ts +5 -0
- package/package.json +44 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { CollectionMany } from './collection-many';
|
|
2
|
+
export { ProductOneBySlug } from './product-one-by-slug';
|
|
3
|
+
export { ProductMany } from './product-many';
|
|
4
|
+
export { CollectionOne } from './collection-one';
|
|
5
|
+
export { CheckoutOne } from './checkout-one';
|
|
6
|
+
export { PageMany } from './page-many';
|
|
7
|
+
export { PageOne } from './page-one';
|
|
8
|
+
export { CustomerCurrent } from './customer-current';
|
|
9
|
+
export { CustomerOne } from './customer-one';
|
|
10
|
+
export { getAllProductsPathsQuery } from './get-all-products-paths-query';
|
|
11
|
+
export { getAllProductVendors } from './get-all-product-vendors-query';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PageMany = "\n query PageMany($first: Int = 100) {\n pages(first: $first) {\n edges {\n node {\n id\n title\n slug\n }\n }\n }\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PageOne = "\n query PageOne($id: ID!) {\n page(id: $id) {\n id\n title\n slug\n }\n }\n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ProductMany: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ProductOneById = "\n query ProductOneById($id: ID!, $channel: String = \"default-channel\") {\n product(id: $id, channel: $channel) {\n\n slug\n name\n description\n pricing {\n priceRange {\n start {\n net {\n amount\n }\n }\n }\n }\n variants {\n id\n name\n attributes {\n attribute {\n name\n }\n values {\n name\n }\n }\n pricing {\n price {\n net {\n amount\n currency\n }\n }\n }\n }\n media {\n url\n alt\n }\n }\n }";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ProductOneBySlug = "\n query ProductOneBySlug($slug: String!, $channel: String = \"default-channel\") {\n product(slug: $slug, channel: $channel) {\n id\n slug\n name\n description\n pricing {\n priceRange {\n start {\n net {\n amount\n }\n }\n }\n }\n variants {\n id\n name\n attributes {\n attribute {\n name\n }\n values {\n name\n }\n }\n pricing {\n price {\n net {\n amount\n currency\n }\n }\n }\n }\n media {\n url\n alt\n }\n }\n }\n";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CheckoutError, CheckoutErrorCode, AppError, AccountError, AccountErrorCode } from '../schema';
|
|
2
|
+
export declare type UserErrors = Array<CheckoutError | AccountError | AppError>;
|
|
3
|
+
export declare type UserErrorCode = CheckoutErrorCode | AccountErrorCode | null | undefined;
|
|
4
|
+
export declare const throwUserErrors: (errors?: UserErrors | undefined) => void;
|
|
5
|
+
export default throwUserErrors;
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@daouypkgs/commerce-saleor",
|
|
3
|
+
"version": "0.0.197",
|
|
4
|
+
"description": "Daouy registration calls for saleor commerce provider",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"module": "dist/commerce-saleor.esm.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsdx build",
|
|
13
|
+
"start": "tsdx watch",
|
|
14
|
+
"test": "TEST_CWD=`pwd` yarn --cwd=../../.. test --passWithNoTests",
|
|
15
|
+
"lint": "tsdx lint",
|
|
16
|
+
"prepublishOnly": "npm run build",
|
|
17
|
+
"size": "size-limit",
|
|
18
|
+
"analyze": "size-limit --why"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@daouypkgs/commerce": "^0.0.233",
|
|
22
|
+
"debounce": "^1.2.1",
|
|
23
|
+
"js-cookie": "^3.0.5"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"next": "^12",
|
|
27
|
+
"react": ">=16.8.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@daouy/host": "^1.0.234",
|
|
31
|
+
"@types/debounce": "^1.2.1",
|
|
32
|
+
"@types/js-cookie": "^3.0.5",
|
|
33
|
+
"@types/node": "^17.0.8",
|
|
34
|
+
"@types/react": "^18.0.27",
|
|
35
|
+
"next": "^12.3.7",
|
|
36
|
+
"prettier": "^2.5.1",
|
|
37
|
+
"react": "^18.2.0",
|
|
38
|
+
"react-dom": "^18.2.0",
|
|
39
|
+
"tsdx": "^0.14.1"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
}
|
|
44
|
+
}
|