From 5f6344fa89d41d726daacaad2c562a2bbf23985c Mon Sep 17 00:00:00 2001 From: Daniela Neagu Date: Thu, 10 Oct 2024 16:46:24 +0300 Subject: [PATCH] [PDP] updated PDP to latest (#93) * updated tools & pdp versions * updated dropins versions --------- Co-authored-by: Mark J. Becker --- package-lock.json | 16 +- package.json | 4 +- .../__mocks__/product-mocks.d.ts | 157 ++++++++++++++++++ .../api/fetch-graphql/fetch-graphql.d.ts | 15 ++ .../api/fetch-graphql/index.d.ts | 15 ++ .../graphql/getProductData.graphql.d.ts | 15 ++ .../api/getProductData/index.d.ts | 15 ++ .../getRefinedProduct/getRefinedProduct.d.ts | 2 +- .../graphql/RefineProductQuery.graphql.d.ts | 15 ++ .../api/getRefinedProduct/index.d.ts | 15 ++ .../api/graphql/ProductFragment.graphql.d.ts | 15 ++ .../ProductOptionFragment.graphql.d.ts | 17 +- .../__dropins__/storefront-pdp/api/index.d.ts | 15 ++ .../storefront-pdp/api/initialize/index.d.ts | 15 ++ .../chunks/getRefinedProduct.js | 23 +-- .../components/Carousel/index.d.ts | 15 ++ .../components/GalleryGrid/index.d.ts | 15 ++ .../components/Overlay/index.d.ts | 15 ++ .../components/PriceRange/index.d.ts | 15 ++ .../components/Product/Product.d.ts | 2 + .../components/Product/index.d.ts | 15 ++ .../components/Swatches/Swatches.d.ts | 10 +- .../components/Swatches/index.d.ts | 15 ++ .../storefront-pdp/components/Zoom/Zoom.d.ts | 9 + .../storefront-pdp/components/Zoom/index.d.ts | 18 ++ .../storefront-pdp/components/index.d.ts | 16 ++ .../containers/ProductDetails.js | 2 +- .../ProductDetails/ProductDetails.d.ts | 4 +- .../containers/ProductDetails/index.d.ts | 15 ++ .../storefront-pdp/containers/index.d.ts | 15 ++ .../data/models/acdl-models.d.ts | 15 ++ .../storefront-pdp/data/models/index.d.ts | 15 ++ .../data/models/product-model.d.ts | 20 ++- .../storefront-pdp/data/transforms/index.d.ts | 15 ++ .../data/transforms/product-transform.d.ts | 2 +- .../storefront-pdp/i18n/en_US.json.d.ts | 7 +- .../__dropins__/storefront-pdp/lib/date.d.ts | 15 ++ .../storefront-pdp/lib/url-params.d.ts | 15 ++ scripts/__dropins__/storefront-pdp/render.js | 4 +- .../storefront-pdp/render/index.d.ts | 15 ++ scripts/__dropins__/tools/chunks/icons/Add.js | 2 +- .../tools/chunks/icons/AddressBook.js | 1 + .../tools/chunks/icons/EmptyBox.js | 1 + scripts/__dropins__/tools/chunks/icons/Eye.js | 1 + .../tools/chunks/icons/EyeClose.js | 1 + .../tools/chunks/image-params-keymap.js | 2 +- .../__dropins__/tools/chunks/initializer.js | 6 +- scripts/__dropins__/tools/chunks/is-number.js | 12 ++ .../__dropins__/tools/chunks/vcomponent.js | 2 - scripts/__dropins__/tools/components.js | 2 +- scripts/__dropins__/tools/event-bus.js | 2 +- scripts/__dropins__/tools/fetch-graphql.js | 2 +- scripts/__dropins__/tools/i18n.js | 2 +- scripts/__dropins__/tools/initializer.js | 4 +- scripts/__dropins__/tools/lib.js | 12 +- scripts/__dropins__/tools/preact-compat.js | 2 +- scripts/__dropins__/tools/preact-hooks.js | 2 +- scripts/__dropins__/tools/preact.js | 2 +- scripts/__dropins__/tools/recaptcha.js | 5 +- scripts/__dropins__/tools/signals.d.ts | 1 + scripts/__dropins__/tools/signals.js | 1 + .../src/components/Accordion/Accordion.d.ts | 1 + .../src/components/CartItem/CartItem.d.ts | 19 ++- .../components/ContentGrid/ContentGrid.d.ts | 9 + .../src/components/ContentGrid/index.d.ts | 19 +++ .../elsie/src/components/Header/Header.d.ts | 11 ++ .../elsie/src/components/Header/index.d.ts | 3 + .../components/InLineAlert/InLineAlert.d.ts | 2 + .../InputPassword/InputPassword.d.ts | 19 +++ .../PasswordStatusIndicator.d.ts | 18 ++ .../PasswordStatusIndicator/index.d.ts | 3 + .../src/components/InputPassword/index.d.ts | 3 + .../src/components/Pagination/Pagination.d.ts | 15 ++ .../src/components/Pagination/index.d.ts | 3 + .../elsie/src/components/Picker/Picker.d.ts | 6 +- .../components/PriceSummary/PriceSummary.d.ts | 49 ------ .../src/components/PriceSummary/index.d.ts | 3 - .../components/RadioButton/RadioButton.d.ts | 1 + .../types/elsie/src/components/Tag/Tag.d.ts | 8 + .../types/elsie/src/components/Tag/index.d.ts | 3 + .../components/ToggleButton/ToggleButton.d.ts | 14 ++ .../src/components/ToggleButton/index.d.ts | 3 + .../src/components/UIProvider/UIProvider.d.ts | 2 + .../types/elsie/src/components/index.d.ts | 8 +- .../types/elsie/src/i18n/en_US.json.d.ts | 28 +++- .../tools/types/elsie/src/i18n/index.d.ts | 78 +++++++++ .../tools/types/elsie/src/icons/index.d.ts | 4 + .../tools/types/elsie/src/lib/index.d.ts | 1 + .../tools/types/elsie/src/lib/is-number.d.ts | 2 + .../tools/types/elsie/src/lib/render.d.ts | 20 ++- .../tools/types/elsie/src/lib/signals.d.ts | 2 + .../tools/types/elsie/src/lib/slot.d.ts | 9 +- .../types/recaptcha/src/configs/index.d.ts | 1 + .../recaptchaBadgeSelector.config.d.ts | 2 + .../src/graphql/recaptchaConfig.graphql.d.ts | 2 +- .../tools/types/recaptcha/src/index.d.ts | 17 +- .../src/lib/_checkRecaptchaBadge.d.ts | 2 + .../src/lib/_convertKeysToCamelCase.d.ts | 6 + .../recaptcha/src/lib/_extendConfig.d.ts | 4 +- .../recaptcha/src/lib/_storageConfig.d.ts | 6 +- .../tools/types/recaptcha/src/lib/index.d.ts | 2 + .../src/services/recaptcha.service.d.ts | 4 +- scripts/commerce.js | 29 ++++ 103 files changed, 1011 insertions(+), 153 deletions(-) create mode 100644 scripts/__dropins__/storefront-pdp/__mocks__/product-mocks.d.ts create mode 100644 scripts/__dropins__/storefront-pdp/components/Zoom/Zoom.d.ts create mode 100644 scripts/__dropins__/storefront-pdp/components/Zoom/index.d.ts create mode 100644 scripts/__dropins__/tools/chunks/icons/AddressBook.js create mode 100644 scripts/__dropins__/tools/chunks/icons/EmptyBox.js create mode 100644 scripts/__dropins__/tools/chunks/icons/Eye.js create mode 100644 scripts/__dropins__/tools/chunks/icons/EyeClose.js create mode 100644 scripts/__dropins__/tools/chunks/is-number.js delete mode 100644 scripts/__dropins__/tools/chunks/vcomponent.js create mode 100644 scripts/__dropins__/tools/signals.d.ts create mode 100644 scripts/__dropins__/tools/signals.js create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/ContentGrid/ContentGrid.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/ContentGrid/index.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/Header/Header.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/Header/index.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/InputPassword/InputPassword.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/InputPassword/PasswordStatusIndicator/PasswordStatusIndicator.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/InputPassword/PasswordStatusIndicator/index.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/InputPassword/index.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/Pagination/Pagination.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/Pagination/index.d.ts delete mode 100644 scripts/__dropins__/tools/types/elsie/src/components/PriceSummary/PriceSummary.d.ts delete mode 100644 scripts/__dropins__/tools/types/elsie/src/components/PriceSummary/index.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/Tag/Tag.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/Tag/index.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/ToggleButton/ToggleButton.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/components/ToggleButton/index.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/lib/is-number.d.ts create mode 100644 scripts/__dropins__/tools/types/elsie/src/lib/signals.d.ts create mode 100644 scripts/__dropins__/tools/types/recaptcha/src/configs/recaptchaBadgeSelector.config.d.ts create mode 100644 scripts/__dropins__/tools/types/recaptcha/src/lib/_checkRecaptchaBadge.d.ts create mode 100644 scripts/__dropins__/tools/types/recaptcha/src/lib/_convertKeysToCamelCase.d.ts diff --git a/package-lock.json b/package-lock.json index 1020531cb9..916ae4d6eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,8 +12,8 @@ "dependencies": { "@adobe/magento-storefront-event-collector": "^1.8.0", "@adobe/magento-storefront-events-sdk": "^1.8.0", - "@dropins/storefront-pdp": "^0.3.0", - "@dropins/tools": "^0.25.0" + "@dropins/storefront-pdp": "0.4.0", + "@dropins/tools": "^0.33.0" }, "devDependencies": { "@adobe/aem-cli": "^16.5.8", @@ -854,14 +854,14 @@ } }, "node_modules/@dropins/storefront-pdp": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@dropins/storefront-pdp/-/storefront-pdp-0.3.0.tgz", - "integrity": "sha512-WoPE8o4CrPMX+gf1AXB39rf6TEDYSrct7Wfs1s5ShyKy/FxzP7B4qftkQsRi5mO9nwHx+brNS2AevEablGzP4Q==" + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@dropins/storefront-pdp/-/storefront-pdp-0.4.0.tgz", + "integrity": "sha512-njTZ6gCbqeMANmabRWo/cnFUthPKix6lgQ04r1N5frFbEXvaKGpiWXsAdRZ+NjhdU8Lvz2zKDR9WwIyx3P2whA==" }, "node_modules/@dropins/tools": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/@dropins/tools/-/tools-0.25.0.tgz", - "integrity": "sha512-HebXmOInpqWlotjfnR13QdAA9KCVlPeSLgDA4EDFNUJbrXAY/LVBbnMJxz0yx7MWPYxDJ81Kza0aE/lb08imHg==" + "version": "0.33.0", + "resolved": "https://registry.npmjs.org/@dropins/tools/-/tools-0.33.0.tgz", + "integrity": "sha512-XJUvEw4uPDd1mBRytHVf5mHb7El4I+xOWW4KBRpg+GtZ9VRESZkwg00fCo12tOl6/fX68zg9bffDjQNsbnCSig==" }, "node_modules/@dual-bundle/import-meta-resolve": { "version": "4.1.0", diff --git a/package.json b/package.json index 6c8c8d64b2..9de9e3d7bb 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.3.0", - "@dropins/tools": "^0.25.0" + "@dropins/storefront-pdp": "0.4.0", + "@dropins/tools": "^0.33.0" } } diff --git a/scripts/__dropins__/storefront-pdp/__mocks__/product-mocks.d.ts b/scripts/__dropins__/storefront-pdp/__mocks__/product-mocks.d.ts new file mode 100644 index 0000000000..0583bef6fb --- /dev/null +++ b/scripts/__dropins__/storefront-pdp/__mocks__/product-mocks.d.ts @@ -0,0 +1,157 @@ +export declare const MOCK_DATA_BUNDLE: { + __typename: string; + id: string; + sku: string; + name: string; + shortDescription: string; + metaDescription: string; + metaKeyword: string; + metaTitle: string; + description: string; + inStock: boolean; + addToCartAllowed: boolean; + url: string; + urlKey: string; + externalId: string; + images: { + url: string; + label: string; + roles: string[]; + }[]; + options: { + id: string; + title: string; + required: boolean; + multi: null; + values: { + id: string; + title: string; + inStock: boolean; + __typename: string; + quantity: number; + isDefault: boolean; + product: { + sku: string; + shortDescription: string; + metaDescription: string; + metaKeyword: string; + metaTitle: string; + name: string; + price: { + final: { + amount: { + value: number; + currency: string; + }; + }; + regular: { + amount: { + value: number; + currency: string; + }; + }; + roles: string[]; + }; + }; + }[]; + }[]; + priceRange: { + maximum: { + final: { + amount: { + value: number; + currency: string; + }; + }; + regular: { + amount: { + value: number; + currency: string; + }; + }; + roles: string[]; + }; + minimum: { + final: { + amount: { + value: number; + currency: string; + }; + }; + regular: { + amount: { + value: number; + currency: string; + }; + }; + roles: string[]; + }; + }; +}; +export declare const MOCK_DATA_BUNDLE_TRANSFORMED: { + name: string; + sku: string; + addToCartAllowed: boolean; + inStock: boolean; + shortDescription: string; + metaDescription: string; + metaKeyword: string; + metaTitle: string; + description: string; + images: { + url: string; + label: string; + width: number; + height: number; + }[]; + prices: { + final: { + amount: number; + currency: string; + }; + regular: { + amount: number; + currency: string; + }; + visible: boolean; + }; + options: { + id: string; + type: "text" | "image" | "color" | "dropdown"; + typename: "ProductViewOptionValueProduct" | "ProductViewOptionValueSwatch" | "ProductViewOptionValueConfiguration"; + label: string; + required: boolean; + multiple: boolean; + items: { + id: string; + inStock: boolean; + label: string; + selected: boolean; + value: string; + product: { + sku: string; + shortDescription: string; + metaDescription: string; + metaKeyword: string; + metaTitle: string; + name: string; + price: { + final: { + amount: { + value: number; + currency: string; + }; + }; + regular: { + amount: { + value: number; + currency: string; + }; + }; + roles: string[]; + }; + }; + }[]; + }[]; +}; +//# sourceMappingURL=product-mocks.d.ts.map \ No newline at end of file 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/getRefinedProduct.d.ts b/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/getRefinedProduct.d.ts index 45e37e356e..5c7ec9a4d7 100644 --- a/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/getRefinedProduct.d.ts +++ b/scripts/__dropins__/storefront-pdp/api/getRefinedProduct/getRefinedProduct.d.ts @@ -1,4 +1,4 @@ import { ProductModel } from '../../data/models'; -export declare const getRefinedProduct: (sku: string, optionUIDs: string[], anchorOptions?: string[]) => Promise; +export declare const getRefinedProduct: (sku: string, optionUIDs: string[], anchorOptions?: string[], isBundle?: boolean) => Promise; //# sourceMappingURL=getRefinedProduct.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..5a73338093 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 @@ -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"; +/** + * 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 __typename\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/chunks/getRefinedProduct.js b/scripts/__dropins__/storefront-pdp/chunks/getRefinedProduct.js index b36d22759f..fb71cf4b8e 100644 --- a/scripts/__dropins__/storefront-pdp/chunks/getRefinedProduct.js +++ b/scripts/__dropins__/storefront-pdp/chunks/getRefinedProduct.js @@ -1,4 +1,4 @@ -import{c as h}from"./initialize.js";import{FetchGraphQL as Q}from"@dropins/tools/fetch-graphql.js";const{setEndpoint:W,setFetchGraphQlHeader:Z,removeFetchGraphQlHeader:R,setFetchGraphQlHeaders:tt,fetchGraphQl:A,getConfig:et}=new Q().getMethods();function D(e){var o,u,n;const r=e?{name:e.name,sku:e.sku,addToCartAllowed:e.addToCartAllowed,inStock:e.inStock,shortDescription:e.shortDescription,metaDescription:e.metaDescription,metaKeyword:e.metaKeyword,metaTitle:e.metaTitle,description:e.description,images:K(e),prices:j(e),attributes:M(e),options:N(e),optionUIDs:e.optionUIDs,url:e.url,urlKey:e.urlKey,externalId:e.externalId,externalParentId:e.externalParentId,variantSku:e.variantSku}:null,t=(n=(u=(o=h.getConfig())==null?void 0:o.models)==null?void 0:u.ProductDetails)==null?void 0:n.transform;return t&&r?t(r):r}function K(e){var r;return(r=e.images)==null?void 0:r.map(t=>(t.url=t.url.replace(/^https?:/,""),t))}function M(e){var r,t;return(t=(r=e.attributes)==null?void 0:r.filter(({roles:o})=>(o==null?void 0:o.indexOf("visible_in_pdp"))!==-1))==null?void 0:t.map(({label:o,value:u,name:n})=>({id:n,label:o,value:u.toString().split(",").join(", ")}))}function N(e){const{options:r,optionUIDs:t}=e;return r==null?void 0:r.map(({id:o,title:u,required:n,multi:c,values:i})=>{var d,f;const l=(d=i==null?void 0:i[0])==null?void 0:d.__typename;let a=i==null?void 0:i[0].type;return((f=i==null?void 0:i[0])==null?void 0:f.__typename)==="ProductViewOptionValueProduct"?a=void 0:a?a=a.replace("COLOR_HEX","color").replace("TEXT","text").replace("IMAGE","image"):a="dropdown",{id:o,type:a,typename:l,label:u,required:n,multiple:c,items:i==null?void 0:i.map(({id:m,title:g,inStock:p,value:P})=>({id:m,label:g,inStock:p,value:(a==null?void 0:a.toLowerCase())==="dropdown"?m:P==null?void 0:P.replace(/^https?:/,""),selected:(t==null?void 0:t.indexOf(m))>-1}))}})}function j(e){var d,f,m,g,p;const{price:r,priceRange:t,__typename:o}=e;function u(){var k;const P=r.regular.amount.value,y=((k=r.final)==null?void 0:k.amount.value)??r.regular.amount.value,w=r.regular.amount.currency==="NONE"?"USD":r==null?void 0:r.regular.amount.currency;return[P,y,y,w]}function n(){var x,_,b,S,E,T,C,O,v,F,V,$;const P=(x=t==null?void 0:t.minimum)==null?void 0:x.final.amount.value,y=(_=t==null?void 0:t.maximum)==null?void 0:_.final.amount.value;let w;((S=(b=t==null?void 0:t.minimum)==null?void 0:b.regular)==null?void 0:S.amount.value)===((T=(E=t==null?void 0:t.maximum)==null?void 0:E.regular)==null?void 0:T.amount.value)&&(w=(O=(C=t==null?void 0:t.minimum)==null?void 0:C.regular)==null?void 0:O.amount.value);const k=((F=(v=t==null?void 0:t.minimum)==null?void 0:v.final)==null?void 0:F.amount.currency)==="NONE"?"USD":($=(V=t==null?void 0:t.minimum)==null?void 0:V.final)==null?void 0:$.amount.currency;return[w,P,y,k]}const[c,i,l,a]=o==="SimpleProductView"?u():n(),s=o==="SimpleProductView"?(d=r==null?void 0:r.roles)==null?void 0:d.includes("visible"):((m=(f=t==null?void 0:t.maximum)==null?void 0:f.roles)==null?void 0:m.includes("visible"))&&((p=(g=t==null?void 0:t.minimum)==null?void 0:g.roles)==null?void 0:p.includes("visible"));return l&&i===l?{regular:{amount:c,currency:a,variant:c&&i!==c?"strikethrough":"default"},final:{amount:l,currency:a,variant:"default"},visible:s}:{final:{minimumAmount:i,maximumAmount:l,currency:a},visible:s}}const U=` +import{c as B}from"./initialize.js";import{FetchGraphQL as et}from"@dropins/tools/fetch-graphql.js";const{setEndpoint:gt,setFetchGraphQlHeader:ht,removeFetchGraphQlHeader:wt,setFetchGraphQlHeaders:xt,fetchGraphQl:q,getConfig:_t}=new et().getMethods();function K(e,r){var i,u,o;const n=e?{name:e.name,sku:e.sku,addToCartAllowed:e.addToCartAllowed,inStock:e.inStock,shortDescription:e.shortDescription,metaDescription:e.metaDescription,metaKeyword:e.metaKeyword,metaTitle:e.metaTitle,description:e.description,images:rt(e),prices:mt(e,!!r),attributes:nt(e),options:ut(e),optionUIDs:at(e),url:e.url,urlKey:e.urlKey,externalId:e.externalId,externalParentId:e.externalParentId,variantSku:e.variantSku}:null,t=(o=(u=(i=B.getConfig())==null?void 0:i.models)==null?void 0:u.ProductDetails)==null?void 0:o.transform;return t&&n?t(n):n}function rt(e){var r;return(r=e.images)==null?void 0:r.map(n=>(n.url=n.url.replace(/^https?:/,""),n))}function nt(e){var r,n;return(n=(r=e.attributes)==null?void 0:r.filter(({roles:t})=>(t==null?void 0:t.indexOf("visible_in_pdp"))!==-1))==null?void 0:n.map(({label:t,value:i,name:u})=>({id:u,label:t,value:i.toString().split(",").join(", ")}))}function ut(e){const{options:r,optionUIDs:n}=e;return r==null?void 0:r.map(({id:t,title:i,required:u,multi:o,values:m})=>{var d,s;const a=(d=m==null?void 0:m[0])==null?void 0:d.__typename;let l=m==null?void 0:m[0].type;const c=((s=m==null?void 0:m[0])==null?void 0:s.__typename)==="ProductViewOptionValueProduct";return l?l=l.replace("COLOR_HEX","color").replace("TEXT","text").replace("IMAGE","image"):l="dropdown",{id:t,type:l,typename:a,label:i,required:u,multiple:o,items:c?it(m,n):ot(m,n,l)}})}function it(e,r){return e==null?void 0:e.map(({id:n,title:t,inStock:i,isDefault:u,product:o})=>({id:n,inStock:i,label:t,selected:(r==null?void 0:r.indexOf(n))>-1||u,value:n,product:o}))}function ot(e,r,n){return e==null?void 0:e.map(({id:t,title:i,inStock:u,value:o})=>({id:t,inStock:u,label:i,selected:(r==null?void 0:r.indexOf(t))>-1,value:(n==null?void 0:n.toLowerCase())==="dropdown"?t:o==null?void 0:o.replace(/^https?:/,"")}))}function mt(e,r){var E,x,H,I,L;const{price:n,priceRange:t,options:i,optionUIDs:u}=e;let{__typename:o}=e;function m(){var g;const P=n.regular.amount.value,f=((g=n.final)==null?void 0:g.amount.value)??n.regular.amount.value,y=n.regular.amount.currency==="NONE"?"USD":n==null?void 0:n.regular.amount.currency;return[P,f,f,y]}function a(){var _,b,S,V,T,C,D,A,F,$,G,M;const P=(_=t==null?void 0:t.minimum)==null?void 0:_.final.amount.value,f=(b=t==null?void 0:t.maximum)==null?void 0:b.final.amount.value;let y;((V=(S=t==null?void 0:t.minimum)==null?void 0:S.regular)==null?void 0:V.amount.value)===((C=(T=t==null?void 0:t.maximum)==null?void 0:T.regular)==null?void 0:C.amount.value)&&(y=(A=(D=t==null?void 0:t.minimum)==null?void 0:D.regular)==null?void 0:A.amount.value);const g=(($=(F=t==null?void 0:t.minimum)==null?void 0:F.final)==null?void 0:$.amount.currency)==="NONE"?"USD":(M=(G=t==null?void 0:t.minimum)==null?void 0:G.final)==null?void 0:M.amount.currency;return[y,P,f,g]}function l(){var S,V,T,C,D,A,F,$,G,M,X,Y;let P=0,f=0;i==null||i.forEach(k=>{var z;const j=k==null?void 0:k.values;if(j&&Array.isArray(j)){const h=j.map(p=>{var Q,N,J,W;return(W=(J=(N=(Q=p==null?void 0:p.product)==null?void 0:Q.price)==null?void 0:N.regular)==null?void 0:J.amount)==null?void 0:W.value}).filter(p=>p!==void 0),v=h.length>0?Math.max(...h):0;P+=v}else P+=0;(z=k==null?void 0:k.values)==null||z.forEach(h=>{var v,p,Q,N;u!=null&&u.includes(h.id)&&(f+=(N=(Q=(p=(v=h==null?void 0:h.product)==null?void 0:v.price)==null?void 0:p.final)==null?void 0:Q.amount)==null?void 0:N.value)})});const y=(S=t==null?void 0:t.minimum)==null?void 0:S.final.amount.value,g=(V=t==null?void 0:t.maximum)==null?void 0:V.final.amount.value;let _;((C=(T=t==null?void 0:t.minimum)==null?void 0:T.regular)==null?void 0:C.amount.value)===((A=(D=t==null?void 0:t.maximum)==null?void 0:D.regular)==null?void 0:A.amount.value)&&(_=($=(F=t==null?void 0:t.minimum)==null?void 0:F.regular)==null?void 0:$.amount.value);const b=((M=(G=t==null?void 0:t.minimum)==null?void 0:G.final)==null?void 0:M.amount.currency)==="NONE"?"USD":(Y=(X=t==null?void 0:t.minimum)==null?void 0:X.final)==null?void 0:Y.amount.currency;return r&&!u?[_,y,g,b]:P===(t==null?void 0:t.maximum.regular.amount.value)?[f,f,f,b]:[_,y,g,b]}const[c,d,s,w]=o==="SimpleProductView"?m():r?l():a(),O=o==="SimpleProductView"?(E=n==null?void 0:n.roles)==null?void 0:E.includes("visible"):((H=(x=t==null?void 0:t.maximum)==null?void 0:x.roles)==null?void 0:H.includes("visible"))&&((L=(I=t==null?void 0:t.minimum)==null?void 0:I.roles)==null?void 0:L.includes("visible"));return s&&d===s?{regular:{amount:c,currency:w,variant:c&&d!==c?"strikethrough":"default"},final:{amount:s,currency:w,variant:"default"},visible:O}:{final:{minimumAmount:d,maximumAmount:s,currency:w},visible:O}}function at(e){var n;let{optionUIDs:r}=e;return(n=e==null?void 0:e.options)==null||n.map(({values:t})=>{var u;((u=t==null?void 0:t[0])==null?void 0:u.__typename)==="ProductViewOptionValueProduct"&&!r&&(r=[],t==null||t.map(({id:o,isDefault:m})=>{m&&(r==null?void 0:r.indexOf(o))===-1&&r.push(o)}))}),r}const lt=` fragment ProductOptionFragment on ProductViewOption { id title @@ -13,6 +13,7 @@ fragment ProductOptionFragment on ProductViewOption { title quantity isDefault + __typename product { sku shortDescription @@ -46,7 +47,7 @@ fragment ProductOptionFragment on ProductViewOption { } } } -`,G=` +`,R=` fragment ProductFragment on ProductView { __typename id @@ -137,16 +138,16 @@ fragment ProductFragment on ProductView { } } -${U} -`,q=` +${lt} +`,tt=` query GET_PRODUCT_DATA($skus: [String]) { products(skus: $skus) { ...ProductFragment } } -${G} -`,rt=async e=>{var u,n,c,i,l;const r=(i=(c=(n=(u=h)==null?void 0:u.getConfig())==null?void 0:n.models)==null?void 0:c.ProductDetails)==null?void 0:i.initialData;if(r)return D(r);const{data:t}=await A(q,{method:"GET",variables:{skus:[e]}}),o=(l=t==null?void 0:t.products)==null?void 0:l[0];return D(o)},H=` +${R} +`;function Z(e){return e.some(r=>(r==null?void 0:r.__typename)==="ProductViewOptionValueProduct")}const bt=async e=>{var u,o,m,a,l,c,d;const r=(a=(m=(o=(u=B)==null?void 0:u.getConfig())==null?void 0:o.models)==null?void 0:m.ProductDetails)==null?void 0:a.initialData;let n=(l=r==null?void 0:r.options)==null?void 0:l.some(s=>Z(s.values));if(r)return K(r,!!n);const{data:t}=await q(tt,{method:"GET",variables:{skus:[e]}}),i=(c=t==null?void 0:t.products)==null?void 0:c[0];return n=(d=i==null?void 0:i.options)==null?void 0:d.some(s=>Z(s.values)),K(i,!!n)},ct=` query REFINE_PRODUCT_QUERY( $optionIds: [String!]! $sku: String! @@ -167,11 +168,11 @@ query REFINE_PRODUCT_QUERY( # %extendedPlaceholder% } -${G} -`;async function I(e,r){const t=L(r),o=B(t,e),u=H.replace("# %extendedPlaceholder%",o),{data:n}=await A(u,{method:"GET",variables:{optionIds:r,sku:e}});return n}const nt=async(e,r,t)=>{var d,f,m,g;const o=await I(e,r);if(!o)return null;let{products:u,refineProduct:n,...c}=o;const i=u==null?void 0:u[0],l=X(Object.values(c),i.options,t);if(t!=null&&t.length&&n===null){r=Y(l,r,t);const p=await I(e,r);n=p==null?void 0:p.refineProduct}const a=D({...n||i,sku:i.sku,name:i.name,externalParentId:i==null?void 0:i.externalId,options:l,optionUIDs:r,variantSku:(n==null?void 0:n.__typename)==="SimpleProductView"?n==null?void 0:n.sku:void 0}),s=(g=(m=(f=(d=h)==null?void 0:d.getConfig())==null?void 0:f.models)==null?void 0:m.ProductDetails)==null?void 0:g.fallbackData;return s?s(i,a):a};function L(e){if(e.length<2)return[e];const r=[];return e.forEach(t=>{const o=[];e.forEach(u=>{t!==u&&o.push(u)}),r.push(o)}),r}function B(e,r){return e.map((t,o)=>` - ProductOption${o}: refineProduct( +${R} +`;async function U(e,r,n){var m;if(n)return{...(m=(await q(tt,{method:"GET",variables:{skus:[e]}})).data)==null?void 0:m.products[0],optionUIDs:r};const t=st(r),i=dt(t,e),u=ct.replace("# %extendedPlaceholder%",i),{data:o}=await q(u,{method:"GET",variables:{optionIds:r,sku:e}});return o}const kt=async(e,r,n,t)=>{var s,w,O,E;let i;if(i=await U(e,r,t),!i)return null;if(t)return K({...i,optionUIDs:r},!0);let{products:u,refineProduct:o,...m}=i;const a=u==null?void 0:u[0],l=ft(Object.values(m),a.options,n);if(n!=null&&n.length&&o===null){r=Pt(l,r,n);const x=await U(e,r);o=x==null?void 0:x.refineProduct}const c=K({...o||a,sku:a.sku,name:a.name,externalParentId:a==null?void 0:a.externalId,options:l,optionUIDs:r,variantSku:(o==null?void 0:o.__typename)==="SimpleProductView"?o==null?void 0:o.sku:void 0}),d=(E=(O=(w=(s=B)==null?void 0:s.getConfig())==null?void 0:w.models)==null?void 0:O.ProductDetails)==null?void 0:E.fallbackData;return d?d(a,c):c};function st(e){if(e.length<2)return[e];const r=[];return e.forEach(n=>{const t=[];e.forEach(i=>{n!==i&&t.push(i)}),r.push(t)}),r}function dt(e,r){return e.map((n,t)=>` + ProductOption${t}: refineProduct( optionIds: [ - ${t.map(u=>`"${u}"`).join(", ")} + ${n.map(i=>`"${i}"`).join(", ")} ] sku: "${r}" ) { @@ -181,4 +182,4 @@ ${G} } } } - `).join("")}function X(e,r,t){const o=Object.values(e).filter(n=>!!n).reduce((n,c)=>c.options?[...n,...c.options]:[...n],[]),u=new Map(r.map(n=>[n.id,n]));return o.forEach(n=>{t!=null&&t.includes(n.id)||u.set(n.id,n)}),[...u.values()]}function Y(e,r,t){const o=[];let u;return e.forEach(n=>{var c,i,l,a;t.includes(n.id)?u=((i=(c=n.values)==null?void 0:c.find(s=>r.includes(s==null?void 0:s.id)))==null?void 0:i.id)||((l=n.values[0])==null?void 0:l.id):u=(a=n.values[0])==null?void 0:a.id,o.push(u)}),o}export{Z as a,tt as b,rt as c,nt as d,A as f,et as g,R as r,W as s}; + `).join("")}function ft(e,r,n){const t=Object.values(e).filter(u=>!!u).reduce((u,o)=>o.options?[...u,...o.options]:[...u],[]),i=new Map(r.map(u=>[u.id,u]));return t.forEach(u=>{n!=null&&n.includes(u.id)||i.set(u.id,u)}),[...i.values()]}function Pt(e,r,n){const t=[];let i;return e.forEach(u=>{var o,m,a,l;n.includes(u.id)?i=((m=(o=u.values)==null?void 0:o.find(c=>r.includes(c==null?void 0:c.id)))==null?void 0:m.id)||((a=u.values[0])==null?void 0:a.id):i=(l=u.values[0])==null?void 0:l.id,t.push(i)}),t}export{ht as a,xt as b,bt as c,kt as d,q as f,_t as g,wt as r,gt as s}; 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 55ff3f49f1..d04e7ed0f6 100644 --- a/scripts/__dropins__/storefront-pdp/components/Product/Product.d.ts +++ b/scripts/__dropins__/storefront-pdp/components/Product/Product.d.ts @@ -23,6 +23,8 @@ export interface ProductProps extends Omit, 'titl actions?: VNode; 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