@gfed-medusa/sf-lib-products 1.3.7 → 1.3.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.
- package/dist/components/image-gallery/index.d.ts +2 -2
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/index.d.ts.map +1 -1
- package/dist/components/product-actions/index.d.ts +2 -2
- package/dist/components/product-actions/index.d.ts.map +1 -1
- package/dist/components/product-onboarding-cta/index.d.ts +2 -2
- package/dist/components/product-price/index.d.ts +2 -2
- package/dist/components/product-tabs/index.d.ts +2 -2
- package/dist/components/product-tabs/index.d.ts.map +1 -1
- package/dist/components/refinement-list/index.d.ts +2 -2
- package/dist/components/refinement-list/index.d.ts.map +1 -1
- package/dist/components/refinement-list/sort-products/index.d.ts +2 -2
- package/dist/components/refinement-list/sort-products/index.d.ts.map +1 -1
- package/dist/components/related-products/index.d.ts +2 -2
- package/dist/components/related-products/index.d.ts.map +1 -1
- package/dist/components/skeleton-product-grid/index.d.ts +2 -2
- package/dist/components/skeleton-product-preview/index.d.ts +2 -2
- package/dist/components/skeleton-related-products/index.d.ts +2 -2
- package/dist/lib/gql/fragments/cart.d.ts +9 -9
- package/dist/lib/gql/fragments/cart.d.ts.map +1 -1
- package/dist/lib/gql/fragments/product.d.ts +14 -14
- package/dist/lib/gql/fragments/product.d.ts.map +1 -1
- package/dist/lib/gql/mutations/cart.d.ts +10 -10
- package/dist/lib/gql/mutations/cart.d.ts.map +1 -1
- package/dist/lib/gql/queries/cart.d.ts +2 -2
- package/dist/lib/gql/queries/product.d.ts +11 -11
- package/dist/lib/gql/queries/product.d.ts.map +1 -1
- package/dist/lib/hooks/use-product-price.js +2 -2
- package/dist/lib/hooks/use-product-price.js.map +1 -1
- package/dist/templates/paginated-products/index.d.ts +2 -2
- package/dist/templates/paginated-products/index.d.ts.map +1 -1
- package/dist/templates/product-actions-wrapper/index.d.ts +2 -2
- package/dist/templates/product-actions-wrapper/index.d.ts.map +1 -1
- package/dist/templates/product-info/index.d.ts +2 -2
- package/dist/templates/store-template/index.d.ts +2 -2
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProductImage } from "../../types/graphql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/image-gallery/index.d.ts
|
|
5
5
|
type ImageGalleryProps = {
|
|
@@ -7,7 +7,7 @@ type ImageGalleryProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const ImageGallery: ({
|
|
9
9
|
images
|
|
10
|
-
}: ImageGalleryProps) =>
|
|
10
|
+
}: ImageGalleryProps) => react_jsx_runtime0.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ImageGallery as default };
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/pagination/index.d.ts
|
|
4
4
|
declare function Pagination({
|
|
@@ -9,7 +9,7 @@ declare function Pagination({
|
|
|
9
9
|
page: number;
|
|
10
10
|
totalPages: number;
|
|
11
11
|
'data-testid'?: string;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime13.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Pagination };
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/pagination/index.tsx"],"sourcesContent":[],"mappings":";;;iBAMgB,UAAA;;;iBAGC;;;;EAHD,aAAU,CAAA,EAAA,MAAA;CACxB,CAAA,EAOD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/pagination/index.tsx"],"sourcesContent":[],"mappings":";;;iBAMgB,UAAA;;;iBAGC;;;;EAHD,aAAU,CAAA,EAAA,MAAA;CACxB,CAAA,EAOD,mBAAA,CAAA,GAAA,CAAA,OAPC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Product } from "../../types/graphql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/product-actions/index.d.ts
|
|
5
5
|
type ProductActionsProps = {
|
|
@@ -13,7 +13,7 @@ declare function ProductActions({
|
|
|
13
13
|
regionId,
|
|
14
14
|
disabled,
|
|
15
15
|
enableMobileActions
|
|
16
|
-
}: ProductActionsProps):
|
|
16
|
+
}: ProductActionsProps): react_jsx_runtime0.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { ProductActionsProps, ProductActions as default };
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/product-actions/index.tsx"],"sourcesContent":[],"mappings":";;;;KAwBY,mBAAA;WACD;;EADC,QAAA,CAAA,EAAA,OAAA;EA2BY,mBAAc,CAAA,EAAA,OAAA;CACpC;AACA,iBAFsB,cAAA,CAEtB;EAAA,OAAA;EAAA,QAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAGC,mBAHD,CAAA,EAGoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/product-actions/index.tsx"],"sourcesContent":[],"mappings":";;;;KAwBY,mBAAA;WACD;;EADC,QAAA,CAAA,EAAA,OAAA;EA2BY,mBAAc,CAAA,EAAA,OAAA;CACpC;AACA,iBAFsB,cAAA,CAEtB;EAAA,OAAA;EAAA,QAAA;EAAA,QAAA;EAAA;AAAA,CAAA,EAGC,mBAHD,CAAA,EAGoB,kBAAA,CAAA,GAAA,CAAA,OAHpB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/product-onboarding-cta/index.d.ts
|
|
4
|
-
declare function ProductOnboardingCta(): Promise<
|
|
4
|
+
declare function ProductOnboardingCta(): Promise<react_jsx_runtime1.JSX.Element | null>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { ProductOnboardingCta as default };
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Product, ProductVariant } from "../../types/graphql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/product-price/index.d.ts
|
|
5
5
|
declare function ProductPrice({
|
|
@@ -10,7 +10,7 @@ declare function ProductPrice({
|
|
|
10
10
|
product: Product;
|
|
11
11
|
variant?: ProductVariant;
|
|
12
12
|
regionId: string;
|
|
13
|
-
}):
|
|
13
|
+
}): react_jsx_runtime2.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { ProductPrice as default };
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Product } from "../../types/graphql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/product-tabs/index.d.ts
|
|
5
5
|
type ProductTabsProps = {
|
|
@@ -7,7 +7,7 @@ type ProductTabsProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const ProductTabs: ({
|
|
9
9
|
product
|
|
10
|
-
}: ProductTabsProps) =>
|
|
10
|
+
}: ProductTabsProps) => react_jsx_runtime3.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ProductTabs as default };
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/product-tabs/index.tsx"],"sourcesContent":[],"mappings":";;;;KAUK,gBAAA;WACM;;AAL+B,cAQpC,WAJe,EAAA,CAAA;EAAA;AACH,CAAP,EAGuB,gBAHhB,EAAA,GAGgC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/product-tabs/index.tsx"],"sourcesContent":[],"mappings":";;;;KAUK,gBAAA;WACM;;AAL+B,cAQpC,WAJe,EAAA,CAAA;EAAA;AACH,CAAP,EAGuB,gBAHhB,EAAA,GAGgC,kBAAA,CAAA,GAAA,CAAA,OAHhC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SortOptions } from "./sort-products/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/refinement-list/index.d.ts
|
|
5
5
|
type RefinementListProps = {
|
|
@@ -10,7 +10,7 @@ type RefinementListProps = {
|
|
|
10
10
|
declare const RefinementList: ({
|
|
11
11
|
sortBy,
|
|
12
12
|
"data-testid": dataTestId
|
|
13
|
-
}: RefinementListProps) =>
|
|
13
|
+
}: RefinementListProps) => react_jsx_runtime4.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { RefinementList as default };
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/refinement-list/index.tsx"],"sourcesContent":[],"mappings":";;;;KAQK,mBAAA;UACK;;EADL,aAAA,CAAA,EAAA,MAAmB;AACH,CAAA;cAKf,cAAkB,EAAA,CAAA;EAAA,MAAA;EAAA,aAAA,EAAA;AAAA,CAAA,EAGrB,mBAHqB,EAAA,GAGF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/refinement-list/index.tsx"],"sourcesContent":[],"mappings":";;;;KAQK,mBAAA;UACK;;EADL,aAAA,CAAA,EAAA,MAAmB;AACH,CAAA;cAKf,cAAkB,EAAA,CAAA;EAAA,MAAA;EAAA,aAAA,EAAA;AAAA,CAAA,EAGrB,mBAHqB,EAAA,GAGF,kBAAA,CAAA,GAAA,CAAA,OAHE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/refinement-list/sort-products/index.d.ts
|
|
4
4
|
type SortOptions = 'price_asc' | 'price_desc' | 'created_at';
|
|
@@ -11,7 +11,7 @@ declare const SortProducts: ({
|
|
|
11
11
|
"data-testid": dataTestId,
|
|
12
12
|
sortBy,
|
|
13
13
|
setQueryParams
|
|
14
|
-
}: SortProductsProps) =>
|
|
14
|
+
}: SortProductsProps) => react_jsx_runtime14.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { SortOptions, SortProducts as default };
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/refinement-list/sort-products/index.tsx"],"sourcesContent":[],"mappings":";;;KAIY,WAAA;KAEP,iBAAA;UACK;EAHE,cAAW,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAIiB,WAJjB,EAAA,GAAA,IAAA;EAElB,aAAA,CAAA,EAAA,MAAiB;AAE6B,CAAA;cAmB7C,YAAgB,EAAA,CAAA;EAAA,aAAA,EAAA,UAAA;EAAA,MAAA;EAAA;AAAA,CAAA,EAInB,iBAJmB,EAAA,GAIF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/refinement-list/sort-products/index.tsx"],"sourcesContent":[],"mappings":";;;KAIY,WAAA;KAEP,iBAAA;UACK;EAHE,cAAW,EAAA,CAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAIiB,WAJjB,EAAA,GAAA,IAAA;EAElB,aAAA,CAAA,EAAA,MAAiB;AAE6B,CAAA;cAmB7C,YAAgB,EAAA,CAAA;EAAA,aAAA,EAAA,UAAA;EAAA,MAAA;EAAA;AAAA,CAAA,EAInB,iBAJmB,EAAA,GAIF,mBAAA,CAAA,GAAA,CAAA,OAJE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Product } from "../../types/graphql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/related-products/index.d.ts
|
|
5
5
|
type RelatedProductsProps = {
|
|
@@ -9,7 +9,7 @@ type RelatedProductsProps = {
|
|
|
9
9
|
declare function RelatedProducts({
|
|
10
10
|
product,
|
|
11
11
|
countryCode
|
|
12
|
-
}: RelatedProductsProps): Promise<
|
|
12
|
+
}: RelatedProductsProps): Promise<react_jsx_runtime5.JSX.Element | null>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { RelatedProducts as default };
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/related-products/index.tsx"],"sourcesContent":[],"mappings":";;;;KAUK,oBAAA;WACM;;AAHc,CAAA;AAOK,iBAAA,eAAA,CAAe;EAAA,OAAA;EAAA;AAAA,CAAA,EAG1C,oBAH0C,CAAA,EAGtB,OAHsB,CAGtB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/components/related-products/index.tsx"],"sourcesContent":[],"mappings":";;;;KAUK,oBAAA;WACM;;AAHc,CAAA;AAOK,iBAAA,eAAA,CAAe;EAAA,OAAA;EAAA;AAAA,CAAA,EAG1C,oBAH0C,CAAA,EAGtB,OAHsB,CAGtB,kBAAA,CAAA,GAAA,CAAA,OAAA,GAHsB,IAAA,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/skeleton-product-grid/index.d.ts
|
|
4
4
|
declare const SkeletonProductGrid: ({
|
|
5
5
|
numberOfProducts
|
|
6
6
|
}: {
|
|
7
7
|
numberOfProducts?: number;
|
|
8
|
-
}) =>
|
|
8
|
+
}) => react_jsx_runtime7.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { SkeletonProductGrid as default };
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/skeleton-product-preview/index.d.ts
|
|
4
|
-
declare const SkeletonProductPreview: () =>
|
|
4
|
+
declare const SkeletonProductPreview: () => react_jsx_runtime6.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { SkeletonProductPreview as default };
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/skeleton-related-products/index.d.ts
|
|
4
|
-
declare const SkeletonRelatedProducts: () =>
|
|
4
|
+
declare const SkeletonRelatedProducts: () => react_jsx_runtime8.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { SkeletonRelatedProducts as default };
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client32 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/fragments/cart.d.ts
|
|
4
|
-
declare const LINE_ITEM_FRAGMENT:
|
|
5
|
-
declare const ADDRESS_FRAGMENT:
|
|
6
|
-
declare const SHIPPING_METHODS_FRAGMENT:
|
|
7
|
-
declare const PAYMENT_COLLECTION_FRAGMENT:
|
|
8
|
-
declare const COUNTRY_FRAGMENT:
|
|
9
|
-
declare const REGION_FRAGMENT:
|
|
10
|
-
declare const PROMOTION_FRAGMENT:
|
|
11
|
-
declare const CART_FRAGMENT:
|
|
4
|
+
declare const LINE_ITEM_FRAGMENT: _apollo_client32.DocumentNode;
|
|
5
|
+
declare const ADDRESS_FRAGMENT: _apollo_client32.DocumentNode;
|
|
6
|
+
declare const SHIPPING_METHODS_FRAGMENT: _apollo_client32.DocumentNode;
|
|
7
|
+
declare const PAYMENT_COLLECTION_FRAGMENT: _apollo_client32.DocumentNode;
|
|
8
|
+
declare const COUNTRY_FRAGMENT: _apollo_client32.DocumentNode;
|
|
9
|
+
declare const REGION_FRAGMENT: _apollo_client32.DocumentNode;
|
|
10
|
+
declare const PROMOTION_FRAGMENT: _apollo_client32.DocumentNode;
|
|
11
|
+
declare const CART_FRAGMENT: _apollo_client32.DocumentNode;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { ADDRESS_FRAGMENT, CART_FRAGMENT, COUNTRY_FRAGMENT, LINE_ITEM_FRAGMENT, PAYMENT_COLLECTION_FRAGMENT, PROMOTION_FRAGMENT, REGION_FRAGMENT, SHIPPING_METHODS_FRAGMENT };
|
|
14
14
|
//# sourceMappingURL=cart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/fragments/cart.ts"],"sourcesContent":[],"mappings":";;;cAIa,oBAiBZ,
|
|
1
|
+
{"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/fragments/cart.ts"],"sourcesContent":[],"mappings":";;;cAIa,oBAiBZ,gBAAA,CAjB8B;cAmBlB,kBAUZ,gBAAA,CAV4B;cAYhB,2BAUZ,gBAAA,CAVqC;AA/BzB,cA2CA,2BA1BZ,EA4CA,gBAAA,CAlBuC,YA1BvC;AAEY,cA4CA,gBAlCZ,EAyCA,gBAAA,CAP4B,YAlC5B;AAEY,cAyCA,eA/BZ,EA0CA,gBAAA,CAX2B,YA/B3B;AAEY,cA0CA,kBAxBZ,EAkCA,gBAAA,CAV8B,YAxB9B;AAEY,cAkCA,aA3BZ,EAsEA,gBAAA,CA3CyB,YA3BzB"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client8 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/fragments/product.d.ts
|
|
4
|
-
declare const PRODUCT_IMAGE_FRAGMENT:
|
|
5
|
-
declare const PRODUCT_TAG_FRAGMENT:
|
|
6
|
-
declare const PRODUCT_OPTION_FRAGMENT:
|
|
7
|
-
declare const PRICE_FRAGMENT:
|
|
8
|
-
declare const PRODUCT_VARIANT_CONTENT_FRAGMENT:
|
|
9
|
-
declare const PRODUCT_VARIANT_PRICING_FRAGMENT:
|
|
10
|
-
declare const PRODUCT_VARIANT_FRAGMENT:
|
|
11
|
-
declare const PRODUCT_CATEGORY_FRAGMENT:
|
|
12
|
-
declare const PRODUCT_COLLECTION_FRAGMENT:
|
|
13
|
-
declare const PRODUCT_CONTENT_FRAGMENT:
|
|
14
|
-
declare const PRODUCT_FRAGMENT:
|
|
15
|
-
declare const COLLECTION_PRODUCTS_FRAGMENT:
|
|
16
|
-
declare const PRODUCT_HIT_FRAGMENT:
|
|
4
|
+
declare const PRODUCT_IMAGE_FRAGMENT: _apollo_client8.DocumentNode;
|
|
5
|
+
declare const PRODUCT_TAG_FRAGMENT: _apollo_client8.DocumentNode;
|
|
6
|
+
declare const PRODUCT_OPTION_FRAGMENT: _apollo_client8.DocumentNode;
|
|
7
|
+
declare const PRICE_FRAGMENT: _apollo_client8.DocumentNode;
|
|
8
|
+
declare const PRODUCT_VARIANT_CONTENT_FRAGMENT: _apollo_client8.DocumentNode;
|
|
9
|
+
declare const PRODUCT_VARIANT_PRICING_FRAGMENT: _apollo_client8.DocumentNode;
|
|
10
|
+
declare const PRODUCT_VARIANT_FRAGMENT: _apollo_client8.DocumentNode;
|
|
11
|
+
declare const PRODUCT_CATEGORY_FRAGMENT: _apollo_client8.DocumentNode;
|
|
12
|
+
declare const PRODUCT_COLLECTION_FRAGMENT: _apollo_client8.DocumentNode;
|
|
13
|
+
declare const PRODUCT_CONTENT_FRAGMENT: _apollo_client8.DocumentNode;
|
|
14
|
+
declare const PRODUCT_FRAGMENT: _apollo_client8.DocumentNode;
|
|
15
|
+
declare const COLLECTION_PRODUCTS_FRAGMENT: _apollo_client8.DocumentNode;
|
|
16
|
+
declare const PRODUCT_HIT_FRAGMENT: _apollo_client8.DocumentNode;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { COLLECTION_PRODUCTS_FRAGMENT, PRICE_FRAGMENT, PRODUCT_CATEGORY_FRAGMENT, PRODUCT_COLLECTION_FRAGMENT, PRODUCT_CONTENT_FRAGMENT, PRODUCT_FRAGMENT, PRODUCT_HIT_FRAGMENT, PRODUCT_IMAGE_FRAGMENT, PRODUCT_OPTION_FRAGMENT, PRODUCT_TAG_FRAGMENT, PRODUCT_VARIANT_CONTENT_FRAGMENT, PRODUCT_VARIANT_FRAGMENT, PRODUCT_VARIANT_PRICING_FRAGMENT };
|
|
19
19
|
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/fragments/product.ts"],"sourcesContent":[],"mappings":";;;cAEa,wBAKZ,
|
|
1
|
+
{"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/fragments/product.ts"],"sourcesContent":[],"mappings":";;;cAEa,wBAKZ,eAAA,CALkC;cAOtB,sBAIZ,eAAA,CAJgC;cAMpB,yBASZ,eAAA,CATmC;AAbvB,cAwBA,cAnBZ,EAyBA,eAAA,CAN0B,YAnB1B;AAEY,cAyBA,gCArBZ,EAkCA,eAAA,CAb4C,YArB5C;AAEY,cAkCA,gCAzBZ,EAsCA,eAAA,CAb4C,YAzB5C;AAEY,cAsCA,wBAhCZ,EAqDA,eAAA,CArBoC,YAhCpC;AAEY,cAqDA,yBAxCZ,EA+CA,eAAA,CAPqC,YAxCrC;AAEY,cA+CA,2BAlCZ,EAwCA,eAAA,CANuC,YAlCvC;AAEY,cAwCA,wBAnBZ,EAwDA,eAAA,CArCoC,YAnBpC;AAEY,cAwDA,gBAjDZ,EAsFA,eAAA,CArC4B,YAjD5B;AAEY,cAsFA,4BAhFZ,EAuGA,eAAA,CAvBwC,YAhFxC;AAEY,cAuGA,oBAlEZ,EA0EA,eAAA,CARgC,YAlEhC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client0 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/mutations/cart.d.ts
|
|
4
|
-
declare const CREATE_CART_MUTATION:
|
|
5
|
-
declare const UPDATE_CART_MUTATION:
|
|
6
|
-
declare const CREATE_LINE_ITEM_MUTATION:
|
|
7
|
-
declare const UPDATE_LINE_ITEM_MUTATION:
|
|
8
|
-
declare const DELETE_LINE_ITEM_MUTATION:
|
|
9
|
-
declare const ADD_SHIPPING_METHOD_MUTATION:
|
|
10
|
-
declare const COMPLETE_CART_MUTATION:
|
|
11
|
-
declare const TRANSFER_CART_MUTATION:
|
|
12
|
-
declare const APPLY_PROMOTIONS_MUTATION:
|
|
4
|
+
declare const CREATE_CART_MUTATION: _apollo_client0.DocumentNode;
|
|
5
|
+
declare const UPDATE_CART_MUTATION: _apollo_client0.DocumentNode;
|
|
6
|
+
declare const CREATE_LINE_ITEM_MUTATION: _apollo_client0.DocumentNode;
|
|
7
|
+
declare const UPDATE_LINE_ITEM_MUTATION: _apollo_client0.DocumentNode;
|
|
8
|
+
declare const DELETE_LINE_ITEM_MUTATION: _apollo_client0.DocumentNode;
|
|
9
|
+
declare const ADD_SHIPPING_METHOD_MUTATION: _apollo_client0.DocumentNode;
|
|
10
|
+
declare const COMPLETE_CART_MUTATION: _apollo_client0.DocumentNode;
|
|
11
|
+
declare const TRANSFER_CART_MUTATION: _apollo_client0.DocumentNode;
|
|
12
|
+
declare const APPLY_PROMOTIONS_MUTATION: _apollo_client0.DocumentNode;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { ADD_SHIPPING_METHOD_MUTATION, APPLY_PROMOTIONS_MUTATION, COMPLETE_CART_MUTATION, CREATE_CART_MUTATION, CREATE_LINE_ITEM_MUTATION, DELETE_LINE_ITEM_MUTATION, TRANSFER_CART_MUTATION, UPDATE_CART_MUTATION, UPDATE_LINE_ITEM_MUTATION };
|
|
15
15
|
//# sourceMappingURL=cart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/mutations/cart.ts"],"sourcesContent":[],"mappings":";;;cAUa,sBAOZ,
|
|
1
|
+
{"version":3,"file":"cart.d.ts","names":[],"sources":["../../../../src/lib/gql/mutations/cart.ts"],"sourcesContent":[],"mappings":";;;cAUa,sBAOZ,eAAA,CAPgC;cASpB,sBAgBZ,eAAA,CAhBgC;cAkBpB,2BAWZ,eAAA,CAXqC;AA3BzB,cAwCA,yBAjCZ,EAgDA,eAAA,CAfqC,YAjCrC;AAEY,cAgDA,yBAhCZ,EAwCA,eAAA,CARqC,YAhCrC;AAEY,cAwCA,4BA7BZ,EA4CA,eAAA,CAfwC,YA7BxC;AAEY,cA4CA,sBA7BZ,EAqFA,eAAA,CAxDkC,YA7BlC;AAEY,cAqFA,sBA7EZ,EAoFA,eAAA,CAPkC,YA7ElC;AAEY,cAoFA,yBArEZ,EA4EA,eAAA,CAPqC,YArErC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client21 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/queries/cart.d.ts
|
|
4
|
-
declare const GET_CART_QUERY:
|
|
4
|
+
declare const GET_CART_QUERY: _apollo_client21.DocumentNode;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { GET_CART_QUERY };
|
|
7
7
|
//# sourceMappingURL=cart.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _apollo_client22 from "@apollo/client";
|
|
2
2
|
|
|
3
3
|
//#region src/lib/gql/queries/product.d.ts
|
|
4
|
-
declare const GET_PRODUCTS_QUERY:
|
|
5
|
-
declare const GET_PRODUCT_QUERY:
|
|
6
|
-
declare const GET_PRODUCT_CONTENT_BY_HANDLE_QUERY:
|
|
7
|
-
declare const GET_PRODUCT_PRICING_QUERY:
|
|
8
|
-
declare const GET_PRODUCT_CATEGORIES_QUERY:
|
|
9
|
-
declare const GET_PRODUCT_CATEGORY_QUERY:
|
|
10
|
-
declare const GET_COLLECTIONS_QUERY:
|
|
11
|
-
declare const GET_COLLECTIONS_SUMMARY_QUERY:
|
|
12
|
-
declare const GET_COLLECTION_QUERY:
|
|
13
|
-
declare const SEARCH_SUGGESTIONS_QUERY:
|
|
4
|
+
declare const GET_PRODUCTS_QUERY: _apollo_client22.DocumentNode;
|
|
5
|
+
declare const GET_PRODUCT_QUERY: _apollo_client22.DocumentNode;
|
|
6
|
+
declare const GET_PRODUCT_CONTENT_BY_HANDLE_QUERY: _apollo_client22.DocumentNode;
|
|
7
|
+
declare const GET_PRODUCT_PRICING_QUERY: _apollo_client22.DocumentNode;
|
|
8
|
+
declare const GET_PRODUCT_CATEGORIES_QUERY: _apollo_client22.DocumentNode;
|
|
9
|
+
declare const GET_PRODUCT_CATEGORY_QUERY: _apollo_client22.DocumentNode;
|
|
10
|
+
declare const GET_COLLECTIONS_QUERY: _apollo_client22.DocumentNode;
|
|
11
|
+
declare const GET_COLLECTIONS_SUMMARY_QUERY: _apollo_client22.DocumentNode;
|
|
12
|
+
declare const GET_COLLECTION_QUERY: _apollo_client22.DocumentNode;
|
|
13
|
+
declare const SEARCH_SUGGESTIONS_QUERY: _apollo_client22.DocumentNode;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { GET_COLLECTIONS_QUERY, GET_COLLECTIONS_SUMMARY_QUERY, GET_COLLECTION_QUERY, GET_PRODUCTS_QUERY, GET_PRODUCT_CATEGORIES_QUERY, GET_PRODUCT_CATEGORY_QUERY, GET_PRODUCT_CONTENT_BY_HANDLE_QUERY, GET_PRODUCT_PRICING_QUERY, GET_PRODUCT_QUERY, SEARCH_SUGGESTIONS_QUERY };
|
|
16
16
|
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/product.ts"],"sourcesContent":[],"mappings":";;;cAYa,oBAgCZ,
|
|
1
|
+
{"version":3,"file":"product.d.ts","names":[],"sources":["../../../../src/lib/gql/queries/product.ts"],"sourcesContent":[],"mappings":";;;cAYa,oBAgCZ,gBAAA,CAhC8B;cAkClB,mBAOZ,gBAAA,CAP6B;cASjB,qCAcZ,gBAAA,CAd+C;AA3CnC,cA2DA,yBA3BZ,EAqCA,gBAAA,CAVqC,YA3BrC;AAEY,cAqCA,4BA9BZ,EA0DA,gBAAA,CA5BwC,YA9BxC;AAEY,cA0DA,0BA5CZ,EA+DA,gBAAA,CAnBsC,YA5CtC;AAEY,cA+DA,qBArDZ,EAgEA,gBAAA,CAXiC,YArDjC;AAEY,cAgEA,6BApCZ,EA8CA,gBAAA,CAVyC,YApCzC;AAEY,cA8CA,oBA3BZ,EAsCA,gBAAA,CAXgC,YA3BhC;AAEY,cAsCA,wBA3BZ,EAoCA,gBAAA,CAToC,YA3BpC"}
|
|
@@ -19,8 +19,8 @@ function useProductPrice(productId, regionId) {
|
|
|
19
19
|
}
|
|
20
20
|
}))?.product ?? null };
|
|
21
21
|
}, {
|
|
22
|
-
revalidateOnFocus:
|
|
23
|
-
revalidateOnReconnect:
|
|
22
|
+
revalidateOnFocus: false,
|
|
23
|
+
revalidateOnReconnect: false
|
|
24
24
|
});
|
|
25
25
|
return {
|
|
26
26
|
product: data?.product ?? null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-product-price.js","names":[],"sources":["../../../src/lib/hooks/use-product-price.ts"],"sourcesContent":["'use client';\n\nimport useSWR from 'swr';\n\nimport { graphqlFetch } from '@gfed-medusa/sf-lib-common/lib/gql/apollo-client';\n\nimport { GET_PRODUCT_PRICING_QUERY } from '@/lib/gql/queries/product';\nimport type { GetProductPricingQuery, GetProductPricingQueryVariables } from '@/types/graphql';\n\nexport function useProductPrice(productId?: string, regionId?: string) {\n const key =\n productId && regionId ? ['product-price', productId, regionId] : null;\n\n const { data, error, isLoading } = useSWR(\n key,\n async () => {\n const res = await graphqlFetch<GetProductPricingQuery, GetProductPricingQueryVariables>({\n query: GET_PRODUCT_PRICING_QUERY,\n variables: {\n id: productId ?? '',\n region_id: regionId,\n },\n });\n\n return { product: res?.product ?? null };\n },\n {\n revalidateOnFocus:
|
|
1
|
+
{"version":3,"file":"use-product-price.js","names":[],"sources":["../../../src/lib/hooks/use-product-price.ts"],"sourcesContent":["'use client';\n\nimport useSWR from 'swr';\n\nimport { graphqlFetch } from '@gfed-medusa/sf-lib-common/lib/gql/apollo-client';\n\nimport { GET_PRODUCT_PRICING_QUERY } from '@/lib/gql/queries/product';\nimport type { GetProductPricingQuery, GetProductPricingQueryVariables } from '@/types/graphql';\n\nexport function useProductPrice(productId?: string, regionId?: string) {\n const key =\n productId && regionId ? ['product-price', productId, regionId] : null;\n\n const { data, error, isLoading } = useSWR(\n key,\n async () => {\n const res = await graphqlFetch<GetProductPricingQuery, GetProductPricingQueryVariables>({\n query: GET_PRODUCT_PRICING_QUERY,\n variables: {\n id: productId ?? '',\n region_id: regionId,\n },\n });\n\n return { product: res?.product ?? null };\n },\n {\n revalidateOnFocus: false,\n revalidateOnReconnect: false,\n }\n );\n\n return {\n product: data?.product ?? null,\n isLoading,\n error,\n };\n}\n"],"mappings":";;;;;;;AASA,SAAgB,gBAAgB,WAAoB,UAAmB;CAIrE,MAAM,EAAE,MAAM,OAAO,cAAc,OAFjC,aAAa,WAAW;EAAC;EAAiB;EAAW;EAAS,GAAG,MAIjE,YAAY;AASV,SAAO,EAAE,UARG,MAAM,aAAsE;GACtF,OAAO;GACP,WAAW;IACT,IAAI,aAAa;IACjB,WAAW;IACZ;GACF,CAAC,GAEqB,WAAW,MAAM;IAE1C;EACE,mBAAmB;EACnB,uBAAuB;EACxB,CACF;AAED,QAAO;EACL,SAAS,MAAM,WAAW;EAC1B;EACA;EACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SortOptions } from "../../components/refinement-list/sort-products/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/templates/paginated-products/index.d.ts
|
|
5
5
|
declare function PaginatedProducts({
|
|
@@ -16,7 +16,7 @@ declare function PaginatedProducts({
|
|
|
16
16
|
categoryId?: string;
|
|
17
17
|
productsIds?: string[];
|
|
18
18
|
countryCode: string;
|
|
19
|
-
}): Promise<
|
|
19
|
+
}): Promise<react_jsx_runtime10.JSX.Element | null>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PaginatedProducts as default };
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/paginated-products/index.tsx"],"sourcesContent":[],"mappings":";;;;iBAkB8B,iBAAA;;;;;;;;WAQnB;;EARmB,YAAA,CAAA,EAAA,MAAiB;EAC7C,UAAA,CAAA,EAAA,MAAA;EACA,WAAA,CAAA,EAAA,MAAA,EAAA;EACA,WAAA,EAAA,MAAA;CACA,CAAA,EAUD,OAVC,CAUD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/paginated-products/index.tsx"],"sourcesContent":[],"mappings":";;;;iBAkB8B,iBAAA;;;;;;;;WAQnB;;EARmB,YAAA,CAAA,EAAA,MAAiB;EAC7C,UAAA,CAAA,EAAA,MAAA;EACA,WAAA,CAAA,EAAA,MAAA,EAAA;EACA,WAAA,EAAA,MAAA;CACA,CAAA,EAUD,OAVC,CAUD,mBAAA,CAAA,GAAA,CAAA,OAAA,GAVC,IAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
2
2
|
import { Region } from "@gfed-medusa/sf-lib-common/types/graphql";
|
|
3
3
|
|
|
4
4
|
//#region src/templates/product-actions-wrapper/index.d.ts
|
|
@@ -11,7 +11,7 @@ declare function ProductActionsWrapper({
|
|
|
11
11
|
}: {
|
|
12
12
|
id: string;
|
|
13
13
|
region: Region;
|
|
14
|
-
}): Promise<
|
|
14
|
+
}): Promise<react_jsx_runtime11.JSX.Element | null>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { ProductActionsWrapper as default };
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/product-actions-wrapper/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAU8B,iBAAA,qBAAA,CAAqB;EAAA,EAAA;EAAA;CAAA,EAAA;EACjD,EAAA,EAAA,MAAA;EACA,MAAA,EAGQ,MAHR;CAGQ,CAAA,EACT,OADS,CACT,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/templates/product-actions-wrapper/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;AAU8B,iBAAA,qBAAA,CAAqB;EAAA,EAAA;EAAA;CAAA,EAAA;EACjD,EAAA,EAAA,MAAA;EACA,MAAA,EAGQ,MAHR;CAGQ,CAAA,EACT,OADS,CACT,mBAAA,CAAA,GAAA,CAAA,OAAA,GADS,IAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Product } from "../../types/graphql.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/templates/product-info/index.d.ts
|
|
5
5
|
type ProductInfoProps = {
|
|
@@ -7,7 +7,7 @@ type ProductInfoProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const ProductInfo: ({
|
|
9
9
|
product
|
|
10
|
-
}: ProductInfoProps) =>
|
|
10
|
+
}: ProductInfoProps) => react_jsx_runtime9.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { ProductInfo as default };
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SortOptions } from "../../components/refinement-list/sort-products/index.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/templates/store-template/index.d.ts
|
|
5
5
|
declare const StoreTemplate: ({
|
|
@@ -10,7 +10,7 @@ declare const StoreTemplate: ({
|
|
|
10
10
|
sortBy?: SortOptions;
|
|
11
11
|
page?: string;
|
|
12
12
|
countryCode: string;
|
|
13
|
-
}) =>
|
|
13
|
+
}) => react_jsx_runtime12.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { StoreTemplate as default };
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gfed-medusa/sf-lib-products",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@apollo/client": "^4.0.9",
|
|
54
|
-
"@gfed-medusa/sf-lib-common": "^3.
|
|
54
|
+
"@gfed-medusa/sf-lib-common": "^3.1.1",
|
|
55
55
|
"@gfed-medusa/sf-lib-ui": "^1.2.1",
|
|
56
56
|
"@headlessui/react": "^2.2.9",
|
|
57
57
|
"@medusajs/icons": "^2.12.1",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"tsdown": "^0.17.2",
|
|
82
82
|
"typescript": "^5",
|
|
83
83
|
"@packages/eslint-config": "0.0.0",
|
|
84
|
+
"@packages/jest-config": "0.0.0",
|
|
84
85
|
"@packages/prettier-config": "0.0.0",
|
|
85
|
-
"@packages/typescript-config": "0.0.0"
|
|
86
|
-
"@packages/jest-config": "0.0.0"
|
|
86
|
+
"@packages/typescript-config": "0.0.0"
|
|
87
87
|
},
|
|
88
88
|
"scripts": {
|
|
89
89
|
"build": "tsdown",
|