diff --git a/blocks/product-details/product-details.js b/blocks/product-details/product-details.js index 97651f346d..f7662db33d 100644 --- a/blocks/product-details/product-details.js +++ b/blocks/product-details/product-details.js @@ -219,7 +219,6 @@ export default async function decorate(block) { desktop: false, }, gap: 'small', - zoomType: 'zoom', }, slots: { Actions: (ctx) => { @@ -252,6 +251,7 @@ export default async function decorate(block) { }); }, }, + zoomType: 'zoom', useACDL: true, })(block); } catch (e) { diff --git a/package-lock.json b/package-lock.json index 584a480ddd..d4987299e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "dependencies": { "@adobe/magento-storefront-event-collector": "^1.8.0", "@adobe/magento-storefront-events-sdk": "^1.8.0", - "@dropins/storefront-pdp": "^0.4.0-beta1", + "@dropins/storefront-pdp": "0.4.0-beta2", "@dropins/tools": "^0.25.0" }, "devDependencies": { @@ -898,9 +898,9 @@ } }, "node_modules/@dropins/storefront-pdp": { - "version": "0.4.0-beta1", - "resolved": "https://registry.npmjs.org/@dropins/storefront-pdp/-/storefront-pdp-0.4.0-beta1.tgz", - "integrity": "sha512-i3kdpaIaXyFbRgJPB8qise9ULRbKN5rxG1oOdNPf5DtaFdxwYDaFvORk2hBP28wjJXZWw3n0rBeKQAUh/LWb8w==" + "version": "0.4.0-beta2", + "resolved": "https://registry.npmjs.org/@dropins/storefront-pdp/-/storefront-pdp-0.4.0-beta2.tgz", + "integrity": "sha512-hz1NdcwhICVp+7J6CS/ykgQ7LiAU/Ouno4zm0hgq9fDhsudie3CbyLggBp50FMWLcszHLdhey2l66q0LEhDEtQ==" }, "node_modules/@dropins/tools": { "version": "0.25.0", diff --git a/package.json b/package.json index c507b28826..b267f10531 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "dependencies": { "@adobe/magento-storefront-event-collector": "^1.8.0", "@adobe/magento-storefront-events-sdk": "^1.8.0", - "@dropins/storefront-pdp": "^0.4.0-beta1", + "@dropins/storefront-pdp": "0.4.0-beta2", "@dropins/tools": "^0.25.0" } } diff --git a/scripts/__dropins__/storefront-pdp/api/fetch-graphql/fetch-graphql.d.ts b/scripts/__dropins__/storefront-pdp/api/fetch-graphql/fetch-graphql.d.ts index c1cc3ef7c6..b20f64921e 100644 --- a/scripts/__dropins__/storefront-pdp/api/fetch-graphql/fetch-graphql.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/fetch-graphql/fetch-graphql.d.ts @@ -1,3 +1,18 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export declare const setEndpoint: (endpoint: string) => void, setFetchGraphQlHeader: (key: string, value: string | null) => void, removeFetchGraphQlHeader: (key: string) => void, setFetchGraphQlHeaders: (header: import('@adobe/fetch-graphql').Header) => void, fetchGraphQl: (query: string, options?: import('@adobe/fetch-graphql').FetchOptions | undefined) => Promise<{ errors?: import('@adobe/fetch-graphql').FetchQueryError | undefined; data: T; diff --git a/scripts/__dropins__/storefront-pdp/api/fetch-graphql/index.d.ts b/scripts/__dropins__/storefront-pdp/api/fetch-graphql/index.d.ts index ea5ac123d4..89ebf4772f 100644 --- a/scripts/__dropins__/storefront-pdp/api/fetch-graphql/index.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/fetch-graphql/index.d.ts @@ -1,2 +1,17 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export * from './fetch-graphql'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/api/getProductData/graphql/getProductData.graphql.d.ts b/scripts/__dropins__/storefront-pdp/api/getProductData/graphql/getProductData.graphql.d.ts index 5d759279bd..970065abc0 100644 --- a/scripts/__dropins__/storefront-pdp/api/getProductData/graphql/getProductData.graphql.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/getProductData/graphql/getProductData.graphql.d.ts @@ -1,2 +1,17 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export declare const GET_PRODUCT_DATA: string; //# sourceMappingURL=getProductData.graphql.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/api/getProductData/index.d.ts b/scripts/__dropins__/storefront-pdp/api/getProductData/index.d.ts index 1e7443b95f..10b13f0efb 100644 --- a/scripts/__dropins__/storefront-pdp/api/getProductData/index.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/getProductData/index.d.ts @@ -1,2 +1,17 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export * from './getProductData'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/graphql/RefineProductQuery.graphql.d.ts b/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/graphql/RefineProductQuery.graphql.d.ts index 048f9bffb2..7fd151f9af 100644 --- a/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/graphql/RefineProductQuery.graphql.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/graphql/RefineProductQuery.graphql.d.ts @@ -1,2 +1,17 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export declare const REFINE_PRODUCT_QUERY: string; //# sourceMappingURL=RefineProductQuery.graphql.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/index.d.ts b/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/index.d.ts index 81dd71d506..1c85c49e19 100644 --- a/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/index.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/index.d.ts @@ -1,2 +1,17 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export * from './getRefinedProduct'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/api/graphql/ProductFragment.graphql.d.ts b/scripts/__dropins__/storefront-pdp/api/graphql/ProductFragment.graphql.d.ts index 6bccece164..d672860813 100644 --- a/scripts/__dropins__/storefront-pdp/api/graphql/ProductFragment.graphql.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/graphql/ProductFragment.graphql.d.ts @@ -1,2 +1,17 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export declare const ProductFragment: string; //# sourceMappingURL=ProductFragment.graphql.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/api/graphql/ProductOptionFragment.graphql.d.ts b/scripts/__dropins__/storefront-pdp/api/graphql/ProductOptionFragment.graphql.d.ts index 8aabe1fa93..44a66b8f71 100644 --- a/scripts/__dropins__/storefront-pdp/api/graphql/ProductOptionFragment.graphql.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/graphql/ProductOptionFragment.graphql.d.ts @@ -1,2 +1,17 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export declare const ProductOptionFragment = "\nfragment ProductOptionFragment on ProductViewOption {\n id\n title\n required\n multi\n values {\n id\n title\n inStock\n __typename\n ... on ProductViewOptionValueProduct {\n title\n quantity\n isDefault\n product {\n sku\n shortDescription\n metaDescription\n metaKeyword\n metaTitle\n name\n price {\n final {\n amount {\n value\n currency\n }\n }\n regular {\n amount {\n value\n currency\n }\n }\n roles\n }\n }\n }\n ... on ProductViewOptionValueSwatch {\n id\n title\n type\n value\n inStock\n }\n }\n }\n"; //# sourceMappingURL=ProductOptionFragment.graphql.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/api/index.d.ts b/scripts/__dropins__/storefront-pdp/api/index.d.ts index 374c320538..f3e6257bbf 100644 --- a/scripts/__dropins__/storefront-pdp/api/index.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/index.d.ts @@ -1,3 +1,18 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export * from './initialize'; export * from './fetch-graphql'; export * from './getProductData'; diff --git a/scripts/__dropins__/storefront-pdp/api/initialize/index.d.ts b/scripts/__dropins__/storefront-pdp/api/initialize/index.d.ts index 66c241dc2d..1ab10aa2fb 100644 --- a/scripts/__dropins__/storefront-pdp/api/initialize/index.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/initialize/index.d.ts @@ -1,2 +1,17 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export * from './initialize'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/components/Carousel/index.d.ts b/scripts/__dropins__/storefront-pdp/components/Carousel/index.d.ts index 0d674beb6a..b8caa98dfb 100644 --- a/scripts/__dropins__/storefront-pdp/components/Carousel/index.d.ts +++ b/scripts/__dropins__/storefront-pdp/components/Carousel/index.d.ts @@ -1,3 +1,18 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export * from './Carousel'; export { Carousel as default } from './Carousel'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/components/GalleryGrid/index.d.ts b/scripts/__dropins__/storefront-pdp/components/GalleryGrid/index.d.ts index 4129d6f6e5..235f864347 100644 --- a/scripts/__dropins__/storefront-pdp/components/GalleryGrid/index.d.ts +++ b/scripts/__dropins__/storefront-pdp/components/GalleryGrid/index.d.ts @@ -1,3 +1,18 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export * from './GalleryGrid'; export { GalleryGrid as default } from './GalleryGrid'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/components/Overlay/index.d.ts b/scripts/__dropins__/storefront-pdp/components/Overlay/index.d.ts index a397ae0107..f315b9cca9 100644 --- a/scripts/__dropins__/storefront-pdp/components/Overlay/index.d.ts +++ b/scripts/__dropins__/storefront-pdp/components/Overlay/index.d.ts @@ -1,3 +1,18 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export * from './Overlay'; export { Overlay as default } from './Overlay'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/components/PriceRange/index.d.ts b/scripts/__dropins__/storefront-pdp/components/PriceRange/index.d.ts index 67cf4a2492..58d6c774e7 100644 --- a/scripts/__dropins__/storefront-pdp/components/PriceRange/index.d.ts +++ b/scripts/__dropins__/storefront-pdp/components/PriceRange/index.d.ts @@ -1,3 +1,18 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export * from './PriceRange'; export { PriceRange as default } from './PriceRange'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/components/Product/Product.d.ts b/scripts/__dropins__/storefront-pdp/components/Product/Product.d.ts index 5c75ac13cf..d04e7ed0f6 100644 --- a/scripts/__dropins__/storefront-pdp/components/Product/Product.d.ts +++ b/scripts/__dropins__/storefront-pdp/components/Product/Product.d.ts @@ -24,6 +24,7 @@ export interface ProductProps extends Omit, 'titl quantity?: VNode; carouselConfig?: ProductCarouselConfig; zoomType?: 'zoom' | 'overlay'; + closeButton?: boolean; } export declare const Product: FunctionComponent; export {}; diff --git a/scripts/__dropins__/storefront-pdp/components/Product/index.d.ts b/scripts/__dropins__/storefront-pdp/components/Product/index.d.ts index 22d0aa6db9..1f8ee77a3b 100644 --- a/scripts/__dropins__/storefront-pdp/components/Product/index.d.ts +++ b/scripts/__dropins__/storefront-pdp/components/Product/index.d.ts @@ -1,3 +1,18 @@ +/** + * ADOBE CONFIDENTIAL + * __________________ + * Copyright 2023 Adobe + * All Rights Reserved. + * __________________ + * NOTICE: All information contained herein is, and remains + * the property of Adobe and its suppliers, if any. The intellectual + * and technical concepts contained herein are proprietary to Adobe + * and its suppliers and are protected by all applicable intellectual + * property laws, including trade secret and copyright laws. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Adobe. + */ export * from './Product'; export { Product as default } from './Product'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/scripts/__dropins__/storefront-pdp/components/Swatches/Swatches.d.ts b/scripts/__dropins__/storefront-pdp/components/Swatches/Swatches.d.ts index 148438f53b..fb5fd5efef 100644 --- a/scripts/__dropins__/storefront-pdp/components/Swatches/Swatches.d.ts +++ b/scripts/__dropins__/storefront-pdp/components/Swatches/Swatches.d.ts @@ -24,14 +24,7 @@ type Selection = { }; }; export interface SwatchesProps extends HTMLAttributes { - options: Array<{ - id: string; - type: (typeof supportedTypes)[number]; - label: string; - required?: boolean; - multiple?: boolean; - items: OptionValue[]; - }>; + options: Array