@dropins/storefront-wishlist 1.0.2-beta1 → 2.0.0-beta1

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.
Files changed (53) hide show
  1. package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +1 -1
  2. package/api/index.d.ts +0 -1
  3. package/api/initialize/initialize.d.ts +3 -3
  4. package/api.js +4 -3
  5. package/api.js.map +1 -0
  6. package/chunks/Heart.js +1 -0
  7. package/chunks/Heart.js.map +1 -0
  8. package/chunks/HeartFilled.js +1 -0
  9. package/chunks/HeartFilled.js.map +1 -0
  10. package/chunks/Trash.js +1 -0
  11. package/chunks/Trash.js.map +1 -0
  12. package/chunks/WishlistAlert.js +1 -0
  13. package/chunks/WishlistAlert.js.map +1 -0
  14. package/chunks/WishlistItem.js +2 -1
  15. package/chunks/WishlistItem.js.map +1 -0
  16. package/chunks/mergeWishlists.js +21 -198
  17. package/chunks/mergeWishlists.js.map +1 -0
  18. package/chunks/removeProductsFromWishlist.js +3 -2
  19. package/chunks/removeProductsFromWishlist.js.map +1 -0
  20. package/components/ProductItem/ProductItem.d.ts +2 -7
  21. package/components/index.d.ts +0 -1
  22. package/containers/Wishlist/Wishlist.d.ts +4 -2
  23. package/containers/Wishlist.js +3 -2
  24. package/containers/Wishlist.js.map +1 -0
  25. package/containers/WishlistAlert.js +1 -0
  26. package/containers/WishlistAlert.js.map +1 -0
  27. package/containers/WishlistItem/WishlistItem.d.ts +5 -3
  28. package/containers/WishlistItem.js +2 -1
  29. package/containers/WishlistItem.js.map +1 -0
  30. package/containers/WishlistToggle/WishlistToggle.d.ts +1 -1
  31. package/containers/WishlistToggle.js +2 -1
  32. package/containers/WishlistToggle.js.map +1 -0
  33. package/data/models/product.d.ts +59 -42
  34. package/data/models/store-config.d.ts +0 -5
  35. package/data/models/wishlist.d.ts +6 -8
  36. package/data/transforms/__fixtures__/productData.d.ts +147 -3
  37. package/data/transforms/__fixtures__/wishlistData.d.ts +2 -4
  38. package/data/transforms/index.d.ts +0 -1
  39. package/lib/persisted-data.d.ts +1 -4
  40. package/package.json +1 -1
  41. package/render/render.d.ts +1 -1
  42. package/render.js +2 -1
  43. package/render.js.map +1 -0
  44. package/api/getProductBySku/getProductBySku.d.ts +0 -6
  45. package/api/getProductBySku/graphql/getProductBySku.graphql.d.ts +0 -18
  46. package/api/getProductBySku/graphql/index.d.ts +0 -18
  47. package/api/getProductBySku/index.d.ts +0 -18
  48. package/api/graphql/PriceRangeFragment.graphql.d.ts +0 -18
  49. package/api/graphql/ProductFragment.graphql.d.ts +0 -18
  50. package/components/ImageCarousel/ImageCarousel.d.ts +0 -17
  51. package/components/TaxDetails/TaxDetails.d.ts +0 -9
  52. package/components/TaxDetails/index.d.ts +0 -19
  53. package/data/transforms/transform-product.d.ts +0 -4
@@ -1,7 +1,151 @@
1
1
  import { Product } from '../../models/product';
2
2
 
3
- declare const product: Product;
4
- declare const productOutOfStock: Product;
3
+ declare const simpleProduct: Product;
5
4
  declare const configurableProduct: Product;
6
- export { product, productOutOfStock, configurableProduct };
5
+ declare const configuredProduct: Product;
6
+ declare const simpleProductDataCS: {
7
+ name: string;
8
+ sku: string;
9
+ isBundle: boolean;
10
+ addToCartAllowed: boolean;
11
+ inStock: boolean;
12
+ shortDescription: string;
13
+ metaDescription: string;
14
+ metaKeyword: string;
15
+ metaTitle: string;
16
+ description: string;
17
+ images: {
18
+ url: string;
19
+ label: string;
20
+ roles: string[];
21
+ }[];
22
+ prices: {
23
+ regular: {
24
+ amount: number;
25
+ currency: string;
26
+ variant: string;
27
+ };
28
+ final: {
29
+ amount: number;
30
+ currency: string;
31
+ variant: string;
32
+ };
33
+ visible: boolean;
34
+ };
35
+ attributes: {
36
+ id: string;
37
+ label: string;
38
+ value: string;
39
+ }[];
40
+ url: string;
41
+ urlKey: string;
42
+ externalId: string;
43
+ productType: string;
44
+ };
45
+ declare const configurableProductDataCS: {
46
+ name: string;
47
+ sku: string;
48
+ isBundle: boolean;
49
+ addToCartAllowed: boolean;
50
+ inStock: boolean;
51
+ shortDescription: string;
52
+ metaDescription: string;
53
+ metaKeyword: string;
54
+ metaTitle: string;
55
+ description: string;
56
+ images: {
57
+ url: string;
58
+ label: string;
59
+ roles: string[];
60
+ }[];
61
+ prices: {
62
+ final: {
63
+ minimumAmount: number;
64
+ maximumAmount: number;
65
+ currency: string;
66
+ };
67
+ visible: boolean;
68
+ };
69
+ attributes: {
70
+ id: string;
71
+ label: string;
72
+ value: string;
73
+ }[];
74
+ options: {
75
+ id: string;
76
+ type: string;
77
+ typename: string;
78
+ label: string;
79
+ required: boolean;
80
+ multiple: null;
81
+ items: {
82
+ id: string;
83
+ inStock: boolean;
84
+ label: string;
85
+ selected: boolean;
86
+ value: string;
87
+ }[];
88
+ }[];
89
+ url: string;
90
+ urlKey: string;
91
+ externalId: string;
92
+ productType: string;
93
+ };
94
+ declare const configuredProductDataCS: {
95
+ name: string;
96
+ sku: string;
97
+ isBundle: boolean;
98
+ addToCartAllowed: boolean;
99
+ inStock: boolean;
100
+ shortDescription: string;
101
+ metaDescription: string;
102
+ metaKeyword: string;
103
+ metaTitle: string;
104
+ description: string;
105
+ images: {
106
+ url: string;
107
+ label: string;
108
+ roles: string[];
109
+ }[];
110
+ prices: {
111
+ regular: {
112
+ amount: number;
113
+ currency: string;
114
+ variant: string;
115
+ };
116
+ final: {
117
+ amount: number;
118
+ currency: string;
119
+ variant: string;
120
+ };
121
+ visible: boolean;
122
+ };
123
+ attributes: {
124
+ id: string;
125
+ label: string;
126
+ value: string;
127
+ }[];
128
+ options: {
129
+ id: string;
130
+ type: string;
131
+ typename: string;
132
+ label: string;
133
+ required: boolean;
134
+ multiple: null;
135
+ items: {
136
+ id: string;
137
+ inStock: boolean;
138
+ label: string;
139
+ selected: boolean;
140
+ value: string;
141
+ }[];
142
+ }[];
143
+ optionUIDs: string[];
144
+ url: string;
145
+ urlKey: string;
146
+ externalId: string;
147
+ variantSku: string;
148
+ productType: string;
149
+ };
150
+ export { simpleProduct, configurableProduct, configuredProduct, simpleProductDataCS, configurableProductDataCS, configuredProductDataCS, };
7
151
  //# sourceMappingURL=productData.d.ts.map
@@ -1,8 +1,6 @@
1
1
  import { Wishlist } from '../../models/wishlist';
2
2
 
3
3
  export declare const wishlist: Wishlist;
4
- export declare const wishlistWithProductWithOptions: Wishlist;
5
- export declare const wishlistWithProductOutOfStock: Wishlist;
6
- export declare const wishlistWithProductWithoutDiscount: Wishlist;
7
- export declare const wishlistWithProductWithoutTaxes: Wishlist;
4
+ export declare const wishlistWithConfigurableProduct: Wishlist;
5
+ export declare const wishlistWithConfiguredProduct: Wishlist;
8
6
  //# sourceMappingURL=wishlistData.d.ts.map
@@ -16,5 +16,4 @@
16
16
  *******************************************************************/
17
17
  export * from './transform-store-config';
18
18
  export * from './transform-wishlist';
19
- export * from './transform-product';
20
19
  //# sourceMappingURL=index.d.ts.map
@@ -3,8 +3,5 @@ import { Wishlist } from '../data/models';
3
3
  export declare function setPersistedWishlistData(data: Wishlist | null): void;
4
4
  export declare function getPersistedWishlistData(guest?: boolean): Wishlist | {};
5
5
  export declare function clearPersistedLocalStorage(): void;
6
- export declare function getWishlistItemFromStorage(productSku: string, optionUIDs?: string[], enteredOptions?: {
7
- uid: string;
8
- value: string;
9
- }[]): any;
6
+ export declare function getWishlistItemFromStorage(productSku: string, optionUIDs?: string[]): any;
10
7
  //# sourceMappingURL=persisted-data.d.ts.map
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name": "@dropins/storefront-wishlist", "version": "1.0.2-beta1", "@dropins/tools": "~1.0.0", "license": "SEE LICENSE IN LICENSE.md"}
1
+ {"name": "@dropins/storefront-wishlist", "version": "2.0.0-beta1", "@dropins/tools": "1.4.0-beta3", "license": "SEE LICENSE IN LICENSE.md"}
@@ -1,4 +1,4 @@
1
- import { Render } from '../../@adobe-commerce/elsie/src/lib';
1
+ import { Render } from '@dropins/tools/types/elsie/src/lib';
2
2
 
3
3
  export declare const render: Render;
4
4
  //# sourceMappingURL=render.d.ts.map
package/render.js CHANGED
@@ -1,4 +1,5 @@
1
1
  /*! Copyright 2025 Adobe
2
2
  All Rights Reserved. */
3
- (function(r,e){try{if(typeof document<"u"){const t=document.createElement("style"),n=e.styleId;for(const i in e.attributes)t.setAttribute(i,e.attributes[i]);t.setAttribute("data-dropin",n),t.appendChild(document.createTextNode(r));const a=document.querySelector('style[data-dropin="sdk"]');if(a)a.after(t);else{const i=document.querySelector('link[rel="stylesheet"], style');i?i.before(t):document.head.append(t)}}}catch(t){console.error("dropin-styles (injectCodeFunction)",t)}})(".wishlist-empty-wishlist{container-type:inline-size;container-name:wishlist}.wishlist-empty-wishlist__wrapper .dropin-card--secondary{display:grid;grid-auto-rows:min-content;justify-content:center;text-align:center;border:unset}.wishlist-empty-wishlist .dropin-illustrated-message__heading{font:var(--type-headline-1-font)}.wishlist-empty-wishlist .dropin-illustrated-message__message{font:var(--type-body-1-default-font)}@container wishlist (width < 737px){.wishlist-empty-wishlist__wrapper .dropin-card{border:unset;border-style:hidden}}.wishlist-wishlist{container-type:inline-size;container-name:wishlist-grid;max-width:inherit}.wishlist-wishlist__content{display:grid;gap:var(--spacing-medium);margin:auto;padding:var(--spacing-medium) 0}.wishlist-wishlist__heading{color:var(--color-neutral-800);display:grid;font:var(--type-headline-1-font);letter-spacing:var(--type-headline-1-letter-spacing);padding:var(--spacing-small) 0;row-gap:var(--spacing-xsmall)}.wishlist-wishlist__heading-text{font-size:inherit;font-weight:inherit;margin:0;line-height:inherit}.wishlist-wishlist__heading-count{color:#6d6d6d;margin-left:var(--spacing-xxsmall);letter-spacing:normal;font:var(--type-details-caption-2-font)}.wishlist-wishlist__content.wishlist-wishlist__content--empty{border:var(--shape-border-width-2) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-2);grid-template-columns:repeat(1,1fr);padding:var(--spacing-xxbig);margin:var(--spacing-xxbig) auto}@media only screen and (max-width: 480px){.wishlist-wishlist__content,.dropin-skeleton{grid-template-columns:repeat(1,1fr)}.dropin-skeleton-row:nth-child(n+2){display:none}}@media only screen and (min-width: 480px) and (max-width: 600px){.wishlist-wishlist__content,.dropin-skeleton{grid-template-columns:repeat(2,1fr)}.dropin-skeleton-row:nth-child(n+3){display:none}}@media only screen and (min-width: 600px){.wishlist-wishlist__content,.dropin-skeleton{grid-template-columns:repeat(2,1fr)}.dropin-skeleton-row:nth-child(n+3){display:none}}@media only screen and (min-width: 768px){.wishlist-wishlist__content,.dropin-skeleton{grid-template-columns:repeat(3,1fr)}.dropin-skeleton-row:nth-child(n){display:block}}.wishlist-product-item{background-color:var(--color-neutral-50);margin-bottom:var(--spacing-small)}.wishlist-product-item__content{display:flex;flex-direction:column;gap:var(--spacing-small)}.wishlist-product-item__content .wishlist-product-item-image{background:var(--color-neutral-200);height:100%;padding:0;width:100%}.wishlist-product-item__content .wishlist-product-item__title{color:var(--color-neutral-800);font:var(--type-body-2-strong-font);letter-spacing:var(--type-body-2-strong-letter-spacing);margin:0;position:relative}.wishlist-product-item-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:85%}a.wishlist-product-item-name:active,a.wishlist-product-item-name:hover,a.wishlist-product-item-name{color:var(--color-neutral-800);cursor:pointer;font:var(--type-body-2-strong-font);letter-spacing:var(--type-body-2-strong-letter-spacing)}.wishlist-product-item__content .wishlist-product-item-button__remove{position:absolute;right:0;top:-10px}.wishlist-product-item__content .wishlist-product-item-options{font:var(--type-body-2-default-font)}.wishlist-product-item__content .wishlist-product-item-option__attribute{text-transform:capitalize}.wishlist-product-item__content .wishlist-product-item-option__label{font:var(--type-body-2-strong-font)}.wishlist-product-item__content .wishlist-product-item-price{display:inline;font:var(--type-body-2-default-font)}.strikeout{text-decoration:line-through}.wishlist-product-item__content .wishlist-product-item-discounted-price{display:inline;margin-left:var(--spacing-xsmall);color:var(--color-alert-800)}.wishlist-product-item-move-to-cart{display:grid;grid-area:product-add-to-cart;justify-content:end}.wishlist-product-item-tax{color:var(--color-neutral-500)}.wishlist-product-item-tax span{margin-right:var(--spacing-xsmall)}.image-carousel{display:flex;flex-direction:column;gap:var(--spacing-medium);padding:var(--spacing-medium)}.image-carousel .image-carousel-image{object-fit:contain;padding:var(--spacing-xxsmall) 0;width:100%}.image-switcher-area{margin-top:var(--spacing-small);text-align:center;width:100%}.image-switcher-area .image-switcher{cursor:pointer;border-radius:50%;display:inline-flex;height:var(--spacing-xsmall);margin:0 var(--spacing-xxsmall);width:var(--spacing-xsmall)}.image-switcher-area .image-switcher-active{background-color:var(--color-neutral-900);border:var(--shape-border-width-1) solid var(--color-brand-700)}.image-switcher-area .image-switcher-inactive{background-color:var(--color-neutral-600);border:var(--shape-border-width-1) solid var(--color-neutral-600)}@media only screen and (max-width: 480px){.image-carousel{gap:var(--spacing-xxsmall)}.image-carousel .image-carousel-image{height:250px}}@media only screen and (min-width: 480px) and (max-width: 600px){.image-carousel{gap:var(--spacing-xsmall)}.image-carousel .image-carousel-image{height:300px}}@media only screen and (min-width: 600px){.image-carousel{gap:var(--spacing-xsmall)}.image-carousel .image-carousel-image{height:300px}}@media only screen and (min-width: 768px){.image-carousel{gap:var(--spacing-small)}.image-carousel .image-carousel-image{height:350px}}@media only screen and (min-width: 1024px){.image-carousel{gap:var(--spacing-medium)}.image-carousel .image-carousel-image{height:400px}}.wishlist-login__sign-in{grid-column-start:2;color:var(--color-neutral-800);font:var(--type-body-1-default-font);letter-spacing:var(--type-body-2-default-letter-spacing);margin-top:var(--spacing-xxsmall);text-align:center}a.wishlist-login__link{font:var(--type-body-1-strong-font);letter-spacing:var(--type-body-2-strong-letter-spacing);margin-left:var(--spacing-xxsmall);text-decoration:underline;text-decoration-thickness:auto;text-underline-offset:auto;color:var(--color-neutral-800)}a.wishlist-login__link:hover{color:var(--color-neutral-800);text-decoration:underline;text-decoration-thickness:auto;text-underline-offset:auto}",{styleId:"Wishlist"});
3
+ (function(r,e){try{if(typeof document<"u"){const t=document.createElement("style"),n=e.styleId;for(const i in e.attributes)t.setAttribute(i,e.attributes[i]);t.setAttribute("data-dropin",n),t.appendChild(document.createTextNode(r));const a=document.querySelector('style[data-dropin="sdk"]');if(a)a.after(t);else{const i=document.querySelector('link[rel="stylesheet"], style');i?i.before(t):document.head.append(t)}}}catch(t){console.error("dropin-styles (injectCodeFunction)",t)}})(".wishlist-empty-wishlist{container-type:inline-size;container-name:wishlist}.wishlist-empty-wishlist__wrapper .dropin-card--secondary{display:grid;grid-auto-rows:min-content;justify-content:center;text-align:center;border:unset}.wishlist-empty-wishlist .dropin-illustrated-message__heading{font:var(--type-headline-1-font)}.wishlist-empty-wishlist .dropin-illustrated-message__message{font:var(--type-body-1-default-font)}@container wishlist (width < 737px){.wishlist-empty-wishlist__wrapper .dropin-card{border:unset;border-style:hidden}}.wishlist-wishlist{container-type:inline-size;container-name:wishlist-grid;max-width:inherit}.wishlist-wishlist__content{display:grid;gap:var(--spacing-medium);margin:auto;padding:var(--spacing-medium) 0}.wishlist-wishlist__heading{color:var(--color-neutral-800);display:grid;font:var(--type-headline-1-font);letter-spacing:var(--type-headline-1-letter-spacing);padding:var(--spacing-small) 0;row-gap:var(--spacing-xsmall)}.wishlist-wishlist__heading-text{font-size:inherit;font-weight:inherit;margin:0;line-height:inherit}.wishlist-wishlist__heading-count{color:#6d6d6d;margin-left:var(--spacing-xxsmall);letter-spacing:normal;font:var(--type-details-caption-2-font)}.wishlist-wishlist__content.wishlist-wishlist__content--empty{border:var(--shape-border-width-2) solid var(--color-neutral-400);border-radius:var(--shape-border-radius-2);grid-template-columns:repeat(1,1fr);padding:var(--spacing-xxbig);margin:var(--spacing-xxbig) auto}@media only screen and (max-width: 480px){.wishlist-wishlist__content,.dropin-skeleton{grid-template-columns:repeat(1,1fr)}.dropin-skeleton-row:nth-child(n+2){display:none}}@media only screen and (min-width: 480px) and (max-width: 600px){.wishlist-wishlist__content,.dropin-skeleton{grid-template-columns:repeat(2,1fr)}.dropin-skeleton-row:nth-child(n+3){display:none}}@media only screen and (min-width: 600px){.wishlist-wishlist__content,.dropin-skeleton{grid-template-columns:repeat(2,1fr)}.dropin-skeleton-row:nth-child(n+3){display:none}}@media only screen and (min-width: 768px){.wishlist-wishlist__content,.dropin-skeleton{grid-template-columns:repeat(3,1fr)}.dropin-skeleton-row:nth-child(n){display:block}}.wishlist-product-item{background-color:var(--color-neutral-50);margin-bottom:var(--spacing-small)}.wishlist-product-item__content{display:flex;flex-direction:column;gap:var(--spacing-small)}.wishlist-product-item__content .wishlist-product-item-image{background:var(--color-neutral-200);height:100%;padding:0;position:relative;width:100%}.wishlist-product-item__content .wishlist-product-item__title{color:var(--color-neutral-800);font:var(--type-body-2-strong-font);letter-spacing:var(--type-body-2-strong-letter-spacing);margin:0;position:relative}.wishlist-product-item-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:85%}a.wishlist-product-item-name:active,a.wishlist-product-item-name:hover,a.wishlist-product-item-name{color:var(--color-neutral-800);cursor:pointer;font:var(--type-body-2-strong-font);letter-spacing:var(--type-body-2-strong-letter-spacing)}.wishlist-product-item__content .wishlist-product-item-button__remove{position:absolute;right:0;top:-10px}.wishlist-product-item__content .wishlist-product-item-options{font:var(--type-body-2-default-font)}.wishlist-product-item__content .wishlist-product-item-option__attribute{text-transform:capitalize}.wishlist-product-item__content .wishlist-product-item-option__label{font:var(--type-body-2-strong-font)}.wishlist-product-item__content .wishlist-product-item-price{display:inline;font:var(--type-body-2-default-font)}.strikethrough{text-decoration:line-through}.wishlist-product-item__content .wishlist-product-item-discounted-price{display:inline;margin-left:var(--spacing-xsmall);color:var(--color-alert-800)}.wishlist-product-item-move-to-cart{display:grid;grid-area:product-add-to-cart;justify-content:end}.wishlist-product-item-tax{color:var(--color-neutral-500)}.wishlist-product-item-tax span{margin-right:var(--spacing-xsmall)}.image-carousel{display:flex;flex-direction:column;gap:var(--spacing-medium);padding:var(--spacing-medium)}.image-carousel .image-carousel-image{object-fit:contain;padding:var(--spacing-xxsmall) 0;width:100%}.image-switcher-area{bottom:var(--spacing-xxsmall);left:0;margin-top:var(--spacing-small);position:absolute;text-align:center;width:100%}.image-switcher-area .image-switcher{cursor:pointer;border-radius:50%;display:inline-flex;height:var(--spacing-xsmall);margin:0 var(--spacing-xxsmall);width:var(--spacing-xsmall)}.image-switcher-area .image-switcher-active{background-color:var(--color-neutral-900);border:var(--shape-border-width-1) solid var(--color-brand-700)}.image-switcher-area .image-switcher-inactive{background-color:var(--color-neutral-600);border:var(--shape-border-width-1) solid var(--color-neutral-600)}@media only screen and (max-width: 480px){.image-carousel{gap:var(--spacing-xxsmall)}.image-carousel .image-carousel-image{height:250px}}@media only screen and (min-width: 480px) and (max-width: 600px){.image-carousel{gap:var(--spacing-xsmall)}.image-carousel .image-carousel-image{height:300px}}@media only screen and (min-width: 600px){.image-carousel{gap:var(--spacing-xsmall)}.image-carousel .image-carousel-image{height:300px}}@media only screen and (min-width: 768px){.image-carousel{gap:var(--spacing-small)}.image-carousel .image-carousel-image{height:350px}}@media only screen and (min-width: 1024px){.image-carousel{gap:var(--spacing-medium)}.image-carousel .image-carousel-image{height:400px}}.wishlist-login__sign-in{grid-column-start:2;color:var(--color-neutral-800);font:var(--type-body-1-default-font);letter-spacing:var(--type-body-2-default-letter-spacing);margin-top:var(--spacing-xxsmall);text-align:center}a.wishlist-login__link{font:var(--type-body-1-strong-font);letter-spacing:var(--type-body-2-strong-letter-spacing);margin-left:var(--spacing-xxsmall);text-decoration:underline;text-decoration-thickness:auto;text-underline-offset:auto;color:var(--color-neutral-800)}a.wishlist-login__link:hover{color:var(--color-neutral-800);text-decoration:underline;text-decoration-thickness:auto;text-underline-offset:auto}",{styleId:"Wishlist"});
4
4
  import{jsx as t}from"@dropins/tools/preact-jsx-runtime.js";import{Render as d}from"@dropins/tools/lib.js";import{useState as a,useEffect as n}from"@dropins/tools/preact-hooks.js";import{UIProvider as m}from"@dropins/tools/components.js";import{events as h}from"@dropins/tools/event-bus.js";const c={EmptyWishlist:{heading:"Your wishlist is empty",message:"Add items by clicking on the heart icon.",cta:"Start shopping"},Wishlist:{heading:"Wishlist {count}",loading:"Loading...",ariaLabelAddToWishlist:"add {PRODUCT_NAME} to wishlist",ariaLabelRemoveFromWishlist:"remove {PRODUCT_NAME} from wishlist"},Alert:{addProduct:{heading:"Added to wishlist",message:"{product} has been added to your wishlist"},removeProduct:{heading:"Removed from wishlist",message:"{product} has been removed from your wishlist"},moveToCart:{heading:"Moved to cart",message:"{product} has been moved to your cart"},addError:{heading:"Error",message:"Failed to add product to wishlist"},removeError:{heading:"Error",message:"Failed to remove {product} from wishlist"},viewWishlist:"View wishlist"},Login:{sync:" to sync your saved items across all your devices.",logIn:"Log in"}},l={CartActionButton:"Move To Cart",TrashActionButton:"Remove this product from wishlist",CustomizeActionButton:"Customize"},u={Wishlist:c,ProductItem:l},g={default:u},v=({children:e})=>{const[s,i]=a("en_US");return n(()=>{const o=h.on("locale",r=>{i(r)},{eager:!0});return()=>{o==null||o.off()}},[]),t(m,{lang:s,langDefinitions:g,children:e})},P=new d(t(v,{}));export{P as render};
5
+ //# sourceMappingURL=render.js.map
package/render.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.js","sources":["/@dropins/storefront-wishlist/src/render/Provider.tsx","/@dropins/storefront-wishlist/src/render/render.tsx"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { FunctionComponent } from 'preact';\nimport { useState, useEffect } from 'preact/hooks';\nimport { UIProvider } from '@adobe-commerce/elsie/components';\nimport { Lang } from '@adobe-commerce/elsie/i18n';\nimport { events } from '@adobe-commerce/event-bus';\n\nimport en_US from '../i18n/en_US.json';\n\n// Langs\nconst langDefinitions = {\n default: en_US,\n};\n\ninterface CartProviderProps {\n children?: any;\n}\n\nexport const Provider: FunctionComponent<CartProviderProps> = ({\n children,\n}) => {\n const [lang, setLang] = useState<Lang>('en_US');\n\n // Events\n useEffect(() => {\n const localeEvent = events.on(\n 'locale',\n (locale: string) => {\n setLang(locale as Lang);\n },\n { eager: true }\n );\n return () => {\n localeEvent?.off();\n };\n }, []);\n\n return (\n <UIProvider lang={lang} langDefinitions={langDefinitions}>\n {children}\n </UIProvider>\n );\n};\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport { Render } from '@adobe-commerce/elsie/lib';\nimport { Provider } from './Provider';\n\nexport const render = new Render(<Provider />);\n"],"names":["langDefinitions","en_US","Provider","children","lang","setLang","useState","useEffect","localeEvent","events","locale","jsx","UIProvider","render","Render"],"mappings":"2xCA0BMA,EAAkB,CACtB,QAASC,CACX,EAMaC,EAAiD,CAAC,CAC7D,SAAAC,CACF,IAAM,CACJ,KAAM,CAACC,EAAMC,CAAO,EAAIC,EAAe,OAAO,EAG9C,OAAAC,EAAU,IAAM,CACd,MAAMC,EAAcC,EAAO,GACzB,SACCC,GAAmB,CAClBL,EAAQK,CAAc,CACxB,EACA,CAAE,MAAO,EAAK,CAChB,EACA,MAAO,IAAM,CACXF,GAAA,MAAAA,EAAa,KACf,CACF,EAAG,EAAE,EAGFG,EAAAC,EAAA,CAAW,KAAAR,EAAY,gBAAAJ,EACrB,SAAAG,CACH,CAAA,CAEJ,ECtCaU,EAAS,IAAIC,EAAOH,EAACT,IAAS,CAAE"}
@@ -1,6 +0,0 @@
1
- import { Product } from '../../data/models';
2
-
3
- export declare const getProductBySku: (sku: string, selectedOptions?: {
4
- uid: string;
5
- }[]) => Promise<void | Product | null>;
6
- //# sourceMappingURL=getProductBySku.d.ts.map
@@ -1,18 +0,0 @@
1
- /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2025 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
17
- export declare const GET_PRODUCT_BY_SKU: string;
18
- //# sourceMappingURL=getProductBySku.graphql.d.ts.map
@@ -1,18 +0,0 @@
1
- /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2025 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
17
- export * from './getProductBySku.graphql';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,18 +0,0 @@
1
- /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2025 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
17
- export * from './getProductBySku';
18
- //# sourceMappingURL=index.d.ts.map
@@ -1,18 +0,0 @@
1
- /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2025 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
17
- export declare const PRICE_RANGE_FRAGMENT = "\n fragment PRICE_RANGE_FRAGMENT on PriceRange {\n minimum_price {\n regular_price {\n value\n currency\n }\n final_price {\n value\n currency\n }\n discount {\n percent_off\n amount_off\n }\n fixed_product_taxes {\n amount {\n currency\n value\n }\n label\n } \n }\n maximum_price {\n regular_price {\n value\n currency\n }\n final_price {\n value\n currency\n }\n discount {\n percent_off\n amount_off\n }\n fixed_product_taxes {\n amount {\n currency\n value\n }\n label\n } \n }\n }\n";
18
- //# sourceMappingURL=PriceRangeFragment.graphql.d.ts.map
@@ -1,18 +0,0 @@
1
- /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2025 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
17
- export declare const PRODUCT_FRAGMENT: string;
18
- //# sourceMappingURL=ProductFragment.graphql.d.ts.map
@@ -1,17 +0,0 @@
1
- import { FunctionComponent, JSX } from 'preact';
2
- import { HTMLAttributes } from 'preact/compat';
3
- import { ImageNodeRenderProps } from '../../../@adobe-commerce/elsie/src/components';
4
-
5
- export interface ImageCarouselProps extends HTMLAttributes<HTMLDivElement> {
6
- className?: string;
7
- children?: any;
8
- images: {
9
- src: string;
10
- alt: string | undefined;
11
- }[];
12
- imageNode?: (props: {
13
- defaultImageProps: ImageNodeRenderProps;
14
- }) => JSX.Element;
15
- }
16
- export declare const ImageCarousel: FunctionComponent<ImageCarouselProps>;
17
- //# sourceMappingURL=ImageCarousel.d.ts.map
@@ -1,9 +0,0 @@
1
- import { FunctionComponent } from 'preact';
2
- import { PriceDetails } from '../../data/models';
3
-
4
- export interface TaxDetailsProps {
5
- taxes: PriceDetails['fixedProductTaxes'];
6
- displayMode: string;
7
- }
8
- export declare const TaxDetails: FunctionComponent<TaxDetailsProps>;
9
- //# sourceMappingURL=TaxDetails.d.ts.map
@@ -1,19 +0,0 @@
1
- /********************************************************************
2
- * ADOBE CONFIDENTIAL
3
- * __________________
4
- *
5
- * Copyright 2025 Adobe
6
- * All Rights Reserved.
7
- *
8
- * NOTICE: All information contained herein is, and remains
9
- * the property of Adobe and its suppliers, if any. The intellectual
10
- * and technical concepts contained herein are proprietary to Adobe
11
- * and its suppliers and are protected by all applicable intellectual
12
- * property laws, including trade secret and copyright laws.
13
- * Dissemination of this information or reproduction of this material
14
- * is strictly forbidden unless prior written permission is obtained
15
- * from Adobe.
16
- *******************************************************************/
17
- export * from '.';
18
- export { TaxDetails } from './TaxDetails';
19
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +0,0 @@
1
- import { Product, ConfigurableOption } from '../models';
2
-
3
- export declare function transformProduct(data: any, selectedOptions?: ConfigurableOption[]): Product | null;
4
- //# sourceMappingURL=transform-product.d.ts.map