@shopgate/engage 7.32.0-beta.5 → 7.32.0-beta.7

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 (196) hide show
  1. package/account/components/Profile/ProfileAddressCard.d.ts.map +1 -1
  2. package/account/components/Profile/ProfileAddressCard.js +1 -0
  3. package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts +2 -2
  4. package/admin-preview/components/FrontendSettingsPreviewBridge/types.d.ts.map +1 -1
  5. package/back-in-stock/components/Subscriptions/components/Subscription/index.js +2 -5
  6. package/cart/components/CartItem/CartItemProductLayout.js +1 -1
  7. package/cart/components/CartItem/CartItemProductLayoutWide.js +2 -2
  8. package/cart/components/CartItems/CartItems.js +8 -10
  9. package/cart/components/CartItems/CartItemsSubstitution.js +3 -2
  10. package/category/components/CategoryImage/index.js +11 -15
  11. package/components/Card/Card.d.ts +27 -0
  12. package/components/Card/Card.d.ts.map +1 -0
  13. package/components/Card/Card.js +57 -0
  14. package/components/Card/index.d.ts +4 -0
  15. package/components/Card/index.d.ts.map +1 -0
  16. package/components/Card/index.js +2 -0
  17. package/components/Card/spec.d.ts +2 -0
  18. package/components/Card/spec.d.ts.map +1 -0
  19. package/components/Card/spec.js +128 -0
  20. package/components/Card/useCardAppearance.d.ts +11 -0
  21. package/components/Card/useCardAppearance.d.ts.map +1 -0
  22. package/components/Card/useCardAppearance.js +22 -0
  23. package/components/Paper/Paper.d.ts +49 -0
  24. package/components/Paper/Paper.d.ts.map +1 -0
  25. package/components/Paper/Paper.js +64 -0
  26. package/components/Paper/index.d.ts +3 -0
  27. package/components/Paper/index.d.ts.map +1 -0
  28. package/components/Paper/index.js +1 -0
  29. package/components/Paper/spec.d.ts +2 -0
  30. package/components/Paper/spec.d.ts.map +1 -0
  31. package/components/Paper/spec.js +131 -0
  32. package/components/RadioCard/RadioCard.d.ts.map +1 -1
  33. package/components/RadioCard/RadioCard.js +2 -1
  34. package/components/constants.d.ts +6 -0
  35. package/components/constants.d.ts.map +1 -0
  36. package/components/index.d.ts +4 -1
  37. package/components/index.d.ts.map +1 -1
  38. package/components/index.js +3 -2
  39. package/core/helpers/getFullImageSource.d.ts +5 -1
  40. package/core/helpers/getFullImageSource.d.ts.map +1 -1
  41. package/core/helpers/getFullImageSource.js +30 -14
  42. package/core/helpers/i18n.d.ts +4 -0
  43. package/core/helpers/i18n.d.ts.map +1 -1
  44. package/core/helpers/i18n.js +3 -0
  45. package/core/hooks/html/useLoadImage.d.ts +3 -3
  46. package/core/hooks/html/useLoadImage.d.ts.map +1 -1
  47. package/core/hooks/html/useLoadImage.js +2 -2
  48. package/favorites/components/Item/Item.d.ts +1 -1
  49. package/favorites/components/Item/Item.d.ts.map +1 -1
  50. package/favorites/components/Item/Item.js +2 -5
  51. package/favorites/components/List/List.d.ts +1 -1
  52. package/locations/components/StoreList/StoreListProduct.js +2 -3
  53. package/orders/components/OrderHistory/OrderHistoryList.d.ts.map +1 -1
  54. package/orders/components/OrderHistory/OrderHistoryList.js +8 -9
  55. package/orders/components/OrderHistory/OrderHistoryTable.d.ts.map +1 -1
  56. package/orders/components/OrderHistory/OrderHistoryTable.js +4 -0
  57. package/package.json +8 -8
  58. package/page/widgets/ProductSlider/ProductSlider.js +1 -15
  59. package/product/components/Media/FeaturedMedia.js +7 -1
  60. package/product/components/Media/MediaImage.js +24 -23
  61. package/product/components/Media/MediaPlaceholder.js +4 -7
  62. package/product/components/MediaSlider/components/MediaImage/index.js +6 -2
  63. package/product/components/MediaSlider/constants.js +1 -12
  64. package/product/components/ProductCard/index.js +29 -23
  65. package/product/components/ProductGrid/components/Item/components/ItemDetails/index.js +6 -3
  66. package/product/components/ProductGrid/components/Item/components/ItemImage/index.js +2 -5
  67. package/product/components/ProductGrid/components/Item/components/ItemName/index.js +5 -1
  68. package/product/components/ProductGrid/components/Item/components/ItemName/spec.js +19 -1
  69. package/product/components/ProductGrid/components/Item/index.js +9 -1
  70. package/product/components/ProductGrid/hooks.d.ts +0 -7
  71. package/product/components/ProductGrid/hooks.d.ts.map +1 -1
  72. package/product/components/ProductGrid/hooks.js +9 -10
  73. package/product/components/ProductImage/ProductImage.d.ts +42 -0
  74. package/product/components/ProductImage/ProductImage.d.ts.map +1 -0
  75. package/product/components/ProductImage/ProductImage.js +153 -0
  76. package/product/components/ProductImage/ProductImagePlaceholder.d.ts +23 -0
  77. package/product/components/ProductImage/ProductImagePlaceholder.d.ts.map +1 -0
  78. package/product/components/ProductImage/ProductImagePlaceholder.js +9 -14
  79. package/product/components/ProductImage/constants.d.ts +7 -0
  80. package/product/components/ProductImage/constants.d.ts.map +1 -0
  81. package/product/components/ProductImage/constants.js +6 -0
  82. package/product/components/ProductImage/hooks.d.ts +8 -0
  83. package/product/components/ProductImage/hooks.d.ts.map +1 -0
  84. package/product/components/ProductImage/hooks.js +32 -0
  85. package/product/components/ProductImage/index.d.ts +3 -0
  86. package/product/components/ProductImage/index.d.ts.map +1 -0
  87. package/product/components/ProductImage/index.js +1 -201
  88. package/product/components/ProductImage/spec.js +115 -60
  89. package/product/components/ProductList/components/Item/index.js +5 -3
  90. package/product/components/ProductRatingStars/ProductRatingStars.js +2 -4
  91. package/product/components/ProductSlider/constants.d.ts +3 -0
  92. package/product/components/ProductSlider/constants.d.ts.map +1 -0
  93. package/product/components/ProductSlider/constants.js +2 -0
  94. package/product/components/ProductSlider/hooks.d.ts +7 -0
  95. package/product/components/ProductSlider/hooks.d.ts.map +1 -0
  96. package/product/components/ProductSlider/hooks.js +40 -0
  97. package/product/components/ProductSlider/index.js +8 -8
  98. package/product/components/ProductSlider/spec.js +2 -2
  99. package/product/components/Rating/index.js +2 -4
  100. package/product/components/RelationsSlider/RelationsSliderContent.js +3 -2
  101. package/product/components/RelationsSlider/constants.d.ts +3 -0
  102. package/product/components/RelationsSlider/constants.d.ts.map +1 -0
  103. package/product/components/RelationsSlider/constants.js +2 -1
  104. package/product/components/RelationsSlider/hooks.d.ts +6 -0
  105. package/product/components/RelationsSlider/hooks.d.ts.map +1 -0
  106. package/product/components/RelationsSlider/hooks.js +34 -0
  107. package/product/helpers/index.js +29 -11
  108. package/product/hooks/index.js +3 -1
  109. package/product/hooks/useLoadProductImage.js +4 -2
  110. package/product/hooks/useShowEmptyRatingStars.d.ts +7 -0
  111. package/product/hooks/useShowEmptyRatingStars.d.ts.map +1 -0
  112. package/product/hooks/useShowEmptyRatingStars.js +21 -0
  113. package/product/index.js +0 -1
  114. package/settings/action-creators/appSettings.d.ts +3 -3
  115. package/settings/action-creators/appSettings.d.ts.map +1 -1
  116. package/settings/constants/appSettings.d.ts +3 -0
  117. package/settings/constants/appSettings.d.ts.map +1 -1
  118. package/settings/constants/appSettings.js +6 -1
  119. package/settings/constants/imageSettings.d.ts +52 -0
  120. package/settings/constants/imageSettings.d.ts.map +1 -0
  121. package/settings/constants/imageSettings.js +69 -0
  122. package/settings/helpers/index.d.ts +3 -0
  123. package/settings/helpers/index.d.ts.map +1 -0
  124. package/settings/helpers/index.js +1 -0
  125. package/settings/helpers/resolveImageSettings.d.ts +70 -0
  126. package/settings/helpers/resolveImageSettings.d.ts.map +1 -0
  127. package/settings/helpers/resolveImageSettings.js +171 -0
  128. package/settings/helpers/toImageQuality.d.ts +7 -0
  129. package/settings/helpers/toImageQuality.d.ts.map +1 -0
  130. package/settings/helpers/toImageQuality.js +44 -0
  131. package/settings/helpers/toThumborColor.d.ts +15 -0
  132. package/settings/helpers/toThumborColor.d.ts.map +1 -0
  133. package/settings/helpers/toThumborColor.js +51 -0
  134. package/settings/hooks/index.d.ts +2 -0
  135. package/settings/hooks/index.d.ts.map +1 -0
  136. package/settings/hooks/index.js +1 -0
  137. package/settings/hooks/useImageSettings.d.ts +28 -0
  138. package/settings/hooks/useImageSettings.d.ts.map +1 -0
  139. package/settings/hooks/useImageSettings.js +39 -0
  140. package/settings/reducers/appSettings.d.ts.map +1 -1
  141. package/settings/reducers/appSettings.js +79 -11
  142. package/settings/reducers/index.d.ts +3 -3
  143. package/settings/selectors/appSettings.d.ts +71 -1
  144. package/settings/selectors/appSettings.d.ts.map +1 -1
  145. package/settings/selectors/appSettings.js +41 -1
  146. package/settings/types/appSettings.d.ts +192 -9
  147. package/settings/types/appSettings.d.ts.map +1 -1
  148. package/styles/index.d.ts +1 -1
  149. package/styles/index.d.ts.map +1 -1
  150. package/styles/reset/root.js +23 -4
  151. package/styles/reset/typographyCustomProps.d.ts +12 -0
  152. package/styles/reset/typographyCustomProps.d.ts.map +1 -0
  153. package/styles/reset/typographyCustomProps.js +11 -0
  154. package/styles/theme/createTheme/createComponents.types.d.ts +50 -0
  155. package/styles/theme/createTheme/createComponents.types.d.ts.map +1 -1
  156. package/styles/theme/createTheme/createComponents.types.js +50 -0
  157. package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.d.ts.map +1 -1
  158. package/styles/theme/createTheme/createCssVarsForColorSchemeThemes.js +5 -1
  159. package/styles/theme/createTheme/createPalette.types.d.ts +4 -0
  160. package/styles/theme/createTheme/createPalette.types.d.ts.map +1 -1
  161. package/styles/theme/createTheme/createPalette.types.js +5 -1
  162. package/styles/theme/createTheme/createShape.d.ts +4 -0
  163. package/styles/theme/createTheme/createShape.d.ts.map +1 -1
  164. package/styles/theme/createTheme/createShape.js +2 -1
  165. package/styles/theme/createTheme/createThemeFromColorScheme.d.ts.map +1 -1
  166. package/styles/theme/createTheme/createThemeFromColorScheme.js +2 -1
  167. package/styles/theme/createTheme/createTypography.js +1 -0
  168. package/styles/theme/createTheme/helpers/cssVarsParser.d.ts.map +1 -1
  169. package/styles/theme/createTheme/helpers/cssVarsParser.js +10 -3
  170. package/styles/theme/createTheme/shadows.d.ts +11 -1
  171. package/styles/theme/createTheme/shadows.d.ts.map +1 -1
  172. package/styles/theme/createTheme/shadows.js +41 -7
  173. package/styles/theme/createTheme/types.d.ts +5 -1
  174. package/styles/theme/createTheme/types.d.ts.map +1 -1
  175. package/styles/theme/index.d.ts +1 -0
  176. package/styles/theme/index.d.ts.map +1 -1
  177. package/product/collections/index.js +0 -1
  178. package/product/components/EffectivityDates/constants.d.ts +0 -3
  179. package/product/components/EffectivityDates/constants.d.ts.map +0 -1
  180. package/product/components/EffectivityDates/helpers.d.ts +0 -6
  181. package/product/components/EffectivityDates/helpers.d.ts.map +0 -1
  182. package/product/components/Media/helpers.d.ts +0 -2
  183. package/product/components/Media/helpers.d.ts.map +0 -1
  184. package/product/components/ProductImage/connector.js +0 -12
  185. package/product/helpers/index.d.ts +0 -13
  186. package/product/helpers/index.d.ts.map +0 -1
  187. package/product/helpers/redirects.d.ts +0 -2
  188. package/product/helpers/redirects.d.ts.map +0 -1
  189. package/product/selectors/helpers/filterProperties.d.ts +0 -8
  190. package/product/selectors/helpers/filterProperties.d.ts.map +0 -1
  191. package/product/selectors/helpers/index.d.ts +0 -3
  192. package/product/selectors/helpers/index.d.ts.map +0 -1
  193. package/product/selectors/helpers/wrapMemoizedSelector.d.ts +0 -2
  194. package/product/selectors/helpers/wrapMemoizedSelector.d.ts.map +0 -1
  195. package/product/selectors/product.d.ts +0 -112
  196. package/product/selectors/product.d.ts.map +0 -1
@@ -0,0 +1,131 @@
1
+ import React from 'react';
2
+ import { render, screen } from '@testing-library/react';
3
+ import '@testing-library/jest-dom';
4
+ import { ThemeProvider, createTheme } from '@shopgate/engage/styles';
5
+ import Paper from "./Paper";
6
+
7
+ // ThemeProvider resolves the active breakpoint via matchMedia, which jsdom doesn't implement.
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ Object.defineProperty(window, 'matchMedia', {
10
+ writable: true,
11
+ value: query => ({
12
+ matches: false,
13
+ media: query,
14
+ addEventListener: jest.fn(),
15
+ removeEventListener: jest.fn()
16
+ })
17
+ });
18
+ const theme = createTheme();
19
+ const renderWithTheme = ui => render(/*#__PURE__*/_jsx(ThemeProvider, {
20
+ theme: theme,
21
+ children: ui
22
+ }));
23
+
24
+ // tss keeps injected rules in the document across tests, so assertions have to be scoped to the
25
+ // element under test — a global sweep would also match rules another test left behind.
26
+ const styleTextFor = element => Array.from(document.styleSheets).flatMap(sheet => {
27
+ try {
28
+ return Array.from(sheet.cssRules);
29
+ } catch {
30
+ return [];
31
+ }
32
+ }).filter(rule => rule instanceof CSSStyleRule && element.matches(rule.selectorText)).map(rule => rule.cssText).join('');
33
+ const renderPaper = ui => {
34
+ renderWithTheme(ui);
35
+ return styleTextFor(screen.getByTestId('paper'));
36
+ };
37
+ describe('<Paper />', () => {
38
+ it('renders children and the engage__paper class next to a caller className', () => {
39
+ renderWithTheme(/*#__PURE__*/_jsx(Paper, {
40
+ className: "custom",
41
+ "data-testid": "paper",
42
+ children: "content"
43
+ }));
44
+ const el = screen.getByTestId('paper');
45
+ expect(el).toHaveTextContent('content');
46
+ expect(el).toHaveClass('engage__paper');
47
+ expect(el).toHaveClass('custom');
48
+ });
49
+ it('renders as the given component', () => {
50
+ renderWithTheme(/*#__PURE__*/_jsx(Paper, {
51
+ component: "section",
52
+ "data-testid": "paper",
53
+ children: "x"
54
+ }));
55
+ expect(screen.getByTestId('paper').tagName).toBe('SECTION');
56
+ });
57
+ it('passes data attributes through to the element', () => {
58
+ renderWithTheme(/*#__PURE__*/_jsx(Paper, {
59
+ "data-testid": "paper",
60
+ "data-foo": "bar",
61
+ children: "x"
62
+ }));
63
+ expect(screen.getByTestId('paper')).toHaveAttribute('data-foo', 'bar');
64
+ });
65
+ it('draws a shadow reading the shadow color variable for the elevation variant', () => {
66
+ const css = renderPaper(/*#__PURE__*/_jsx(Paper, {
67
+ elevation: 4,
68
+ "data-testid": "paper",
69
+ children: "x"
70
+ }));
71
+ expect(css).toContain('var(--sg-palette-shadow)');
72
+ });
73
+ it('sets the shadow color custom property when shadowColor is given', () => {
74
+ const css = renderPaper(/*#__PURE__*/_jsx(Paper, {
75
+ shadowColor: "#7a3cff",
76
+ "data-testid": "paper",
77
+ children: "x"
78
+ }));
79
+ expect(css).toContain('--sg-palette-shadow: #7a3cff');
80
+ });
81
+ it('draws the default border for the outlined variant', () => {
82
+ const css = renderPaper(/*#__PURE__*/_jsx(Paper, {
83
+ variant: "outlined",
84
+ "data-testid": "paper",
85
+ children: "x"
86
+ }));
87
+ expect(css).toContain('var(--sg-components-border-light)');
88
+ });
89
+ it('lets the border prop override the default outlined border', () => {
90
+ const css = renderPaper(/*#__PURE__*/_jsx(Paper, {
91
+ variant: "outlined",
92
+ border: "2px dashed #abc",
93
+ "data-testid": "paper",
94
+ children: "x"
95
+ }));
96
+ expect(css).toContain('2px dashed #abc');
97
+ });
98
+ it('resolves a palette key to its background color', () => {
99
+ const css = renderPaper(/*#__PURE__*/_jsx(Paper, {
100
+ background: "emphasized",
101
+ "data-testid": "paper",
102
+ children: "x"
103
+ }));
104
+ expect(css).toContain('var(--sg-palette-background-emphasized)');
105
+ });
106
+ it('passes an arbitrary background color through', () => {
107
+ const css = renderPaper(/*#__PURE__*/_jsx(Paper, {
108
+ background: "#123456",
109
+ "data-testid": "paper",
110
+ children: "x"
111
+ }));
112
+ expect(css).toContain('#123456');
113
+ });
114
+ it('applies the given border radius', () => {
115
+ const css = renderPaper(/*#__PURE__*/_jsx(Paper, {
116
+ borderRadius: 12,
117
+ "data-testid": "paper",
118
+ children: "x"
119
+ }));
120
+ expect(css).toContain('border-radius: 12px');
121
+ });
122
+ it('drops the border radius when square', () => {
123
+ const css = renderPaper(/*#__PURE__*/_jsx(Paper, {
124
+ square: true,
125
+ borderRadius: 12,
126
+ "data-testid": "paper",
127
+ children: "x"
128
+ }));
129
+ expect(css).toContain('border-radius: 0');
130
+ });
131
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"RadioCard.d.ts","sourceRoot":"","sources":["../../../components/RadioCard/RadioCard.jsx"],"names":[],"mappings":";AAkDA;;;;GAIG;AACH,yKAHW,MAAM,GACJ,GAAG,CAkDf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAtGqB,YAAY;AA0BlC;;;;GAIG;AACH,wDAHW,MAAM,GACJ,GAAG,CAQf"}
1
+ {"version":3,"file":"RadioCard.d.ts","sourceRoot":"","sources":["../../../components/RadioCard/RadioCard.jsx"],"names":[],"mappings":";AAmDA;;;;GAIG;AACH,yKAHW,MAAM,GACJ,GAAG,CAkDf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAvGqB,YAAY;AA2BlC;;;;GAIG;AACH,wDAHW,MAAM,GACJ,GAAG,CAQf"}
@@ -1,12 +1,13 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { makeStyles } from '@shopgate/engage/styles';
4
- import Card from '@shopgate/pwa-ui-shared/Card';
4
+ import Card from "../Card";
5
5
  import { useRadioGroup } from "../RadioGroup";
6
6
  import Radio from "../Radio";
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const useStyles = makeStyles()(theme => ({
9
9
  card: {
10
+ margin: '5px 5px 10px',
10
11
  borderRadius: 4,
11
12
  padding: '8px 8px 8px 4px',
12
13
  display: 'flex',
@@ -0,0 +1,6 @@
1
+ export const PORTAL_PRODUCT_IMAGE: "component.product-image";
2
+ export const PORTAL_PRODUCT_MEDIA: "component.product-media";
3
+ export const PORTAL_PRODUCT_MEDIA_SECTION: "component.product-media-section";
4
+ export const PORTAL_PRODUCT_BADGES: "component.product-badges";
5
+ export const PORTAL_PRODUCT_IMAGE_SLIDER: "component.product-image-slider";
6
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../components/constants.js"],"names":[],"mappings":"AAAA,mCAAoC,yBAAyB,CAAC;AAC9D,mCAAoC,yBAAyB,CAAC;AAC9D,2CAA4C,iCAAiC,CAAC;AAC9E,oCAAqC,0BAA0B,CAAC;AAChE,0CAA2C,gCAAgC,CAAC"}
@@ -52,7 +52,6 @@ export { default as AddToCartButton } from '@shopgate/pwa-ui-shared/AddToCartBut
52
52
  export { default as Availability } from '@shopgate/pwa-ui-shared/Availability';
53
53
  export { default as Button } from '@shopgate/pwa-ui-shared/Button';
54
54
  export { default as ButtonLink } from '@shopgate/pwa-ui-shared/ButtonLink';
55
- export { default as Card } from '@shopgate/pwa-ui-shared/Card';
56
55
  export { default as CardList } from '@shopgate/pwa-ui-shared/CardList';
57
56
  export { default as CartTotalLine } from '@shopgate/pwa-ui-shared/CartTotalLine';
58
57
  export { default as Chip } from '@shopgate/pwa-ui-shared/Chip';
@@ -184,4 +183,8 @@ export { default as SnackBarContainer } from './SnackBarContainer';
184
183
  export { default as ConnectedReactPortal } from './ConnectedReactPortal';
185
184
  export { Typography } from './Typography';
186
185
  export { default as Badge } from './Badge';
186
+ export { default as Paper } from './Paper';
187
+ export type { PaperProps, PaperVariant } from './Paper';
188
+ export { default as Card } from './Card';
189
+ export type { CardProps, CardVariant } from './Card';
187
190
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+CAA+C,CAAC;AACzF,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AAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC"}
@@ -61,7 +61,6 @@ export { default as AddToCartButton } from '@shopgate/pwa-ui-shared/AddToCartBut
61
61
  export { default as Availability } from '@shopgate/pwa-ui-shared/Availability';
62
62
  export { default as Button } from '@shopgate/pwa-ui-shared/Button';
63
63
  export { default as ButtonLink } from '@shopgate/pwa-ui-shared/ButtonLink';
64
- export { default as Card } from '@shopgate/pwa-ui-shared/Card';
65
64
  export { default as CardList } from '@shopgate/pwa-ui-shared/CardList';
66
65
  export { default as CartTotalLine } from '@shopgate/pwa-ui-shared/CartTotalLine';
67
66
  export { default as Chip } from '@shopgate/pwa-ui-shared/Chip';
@@ -200,4 +199,6 @@ export { default as Switch } from "./Switch";
200
199
  export { default as SnackBarContainer } from "./SnackBarContainer";
201
200
  export { default as ConnectedReactPortal } from "./ConnectedReactPortal";
202
201
  export { Typography } from "./Typography";
203
- export { default as Badge } from "./Badge";
202
+ export { default as Badge } from "./Badge";
203
+ export { default as Paper } from "./Paper";
204
+ export { default as Card } from "./Card";
@@ -1,5 +1,9 @@
1
- export function getFullImageSource(src: string, { width, height }?: {
1
+ export function getFullImageSource(src: string | null, { width, height }?: {
2
2
  width: number;
3
3
  height: number;
4
+ }, settings?: {
5
+ quality?: number | undefined;
6
+ fillColor?: string | undefined;
7
+ fillTransparent?: boolean | undefined;
4
8
  }): string;
5
9
  //# sourceMappingURL=getFullImageSource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFullImageSource.d.ts","sourceRoot":"","sources":["../../../core/helpers/getFullImageSource.js"],"names":[],"mappings":"AA+CO,wCANI,MAAM,sBAEd;IAA0B,KAAK,EAAvB,MAAM;IACY,MAAM,EAAxB,MAAM;CACd,GAAU,MAAM,CAgDlB"}
1
+ {"version":3,"file":"getFullImageSource.d.ts","sourceRoot":"","sources":["../../../core/helpers/getFullImageSource.js"],"names":[],"mappings":"AAiEO,wCAVI,MAAM,GAAC,IAAI,sBAEnB;IAA0B,KAAK,EAAvB,MAAM;IACY,MAAM,EAAxB,MAAM;CACd,aACA;IAA0B,OAAO;IACP,SAAS;IACR,eAAe;CAC1C,GAAU,MAAM,CAyDlB"}
@@ -5,9 +5,18 @@ import "core-js/modules/web.url.to-json.js";
5
5
  import "core-js/modules/web.url-search-params.js";
6
6
  import { CONFIGURATION_COLLECTION_CREATE_EXTERNAL_IMAGE_URL } from '@shopgate/engage/core/constants';
7
7
  import { configuration } from '@shopgate/engage/core/collections';
8
- import { getProductImageSettings } from "../../product/helpers";
8
+ import { DEFAULT_IMAGE_FILL_COLOR, DEFAULT_IMAGE_FILL_TRANSPARENT, DEFAULT_IMAGE_QUALITY } from '@shopgate/engage/settings/constants/imageSettings';
9
9
  import { getImageFormat } from "./getImageFormat";
10
10
 
11
+ /**
12
+ * The settings applied when the caller passes none.
13
+ */
14
+ const defaultSettings = {
15
+ quality: DEFAULT_IMAGE_QUALITY,
16
+ fillColor: DEFAULT_IMAGE_FILL_COLOR,
17
+ fillTransparent: DEFAULT_IMAGE_FILL_TRANSPARENT
18
+ };
19
+
11
20
  /**
12
21
  * Regex to detect the "fill" query parameter
13
22
  */
@@ -43,29 +52,38 @@ const buildUrl = (baseUrl, params = {}) => {
43
52
  };
44
53
 
45
54
  /**
46
- * Returns the actual url to the image, by adding url parameters with the dimensions for img-cdn
47
- * @param {string} src Source to the image.
55
+ * Builds the url that requests an image at a given size. A src that no known image source
56
+ * recognizes is returned untouched.
57
+ * @param {string|null} src Source to the image.
48
58
  * @param {Object} dimension Dimension of the requested image.
49
59
  * @param {number} dimension.width Width in pixels.
50
60
  * @param {number} dimension.height Height in pixels.
61
+ * @param {Object} [settings] Image service settings, as resolved by useImageServiceSettings.
62
+ * @param {number} [settings.quality] Compression quality.
63
+ * @param {string} [settings.fillColor] Fill color as a hash free hex, not a CSS color.
64
+ * @param {boolean} [settings.fillTransparent] Whether transparent areas are filled too.
51
65
  * @returns {string}
52
66
  */
53
67
  export const getFullImageSource = (src, {
54
68
  width,
55
69
  height
56
- } = {}) => {
70
+ } = {}, settings = {}) => {
71
+ const {
72
+ quality,
73
+ fillColor,
74
+ fillTransparent
75
+ } = {
76
+ ...defaultSettings,
77
+ ...settings
78
+ };
57
79
  if (src && src.includes('images.shopgate.services')) {
58
- const {
59
- fillColor,
60
- quality
61
- } = getProductImageSettings();
62
80
  const format = getImageFormat();
63
81
  return buildUrl(src, {
64
82
  format,
65
83
  width,
66
84
  height,
67
85
  quality,
68
- fill: fillColor.replace('#', '')
86
+ fill: fillTransparent ? `${fillColor},1` : fillColor
69
87
  });
70
88
  }
71
89
  if (src && src.startsWith('https://img-cdn.shopgate.com') && !src.includes('?')) {
@@ -74,17 +92,14 @@ export const getFullImageSource = (src, {
74
92
  h: height,
75
93
  q: 70,
76
94
  zd: 'resize',
77
- fillc: 'FFFFFF'
95
+ // No transparency flag here - the legacy cdn only understands a plain color.
96
+ fillc: fillColor
78
97
  });
79
98
  }
80
99
 
81
100
  // Check if an extension registered an external image url handler within the config collection.
82
101
  const createUrlFn = configuration.get(CONFIGURATION_COLLECTION_CREATE_EXTERNAL_IMAGE_URL);
83
102
  if (typeof createUrlFn === 'function') {
84
- const {
85
- fillColor,
86
- quality
87
- } = getProductImageSettings();
88
103
  const format = getImageFormat();
89
104
 
90
105
  // Invoke the handler with all relevant parameters.
@@ -92,6 +107,7 @@ export const getFullImageSource = (src, {
92
107
  width,
93
108
  height,
94
109
  fillColor,
110
+ fillTransparent,
95
111
  quality,
96
112
  format
97
113
  });
@@ -40,6 +40,10 @@ export type I18nHelpers = {
40
40
  * - Get locale data by path
41
41
  */
42
42
  getPath: Function;
43
+ /**
44
+ * - Check whether a translation key resolves to a value
45
+ */
46
+ has: Function;
43
47
  /**
44
48
  * - Get locale lang code, eg de-DE
45
49
  */
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../core/helpers/i18n.js"],"names":[],"mappings":"AAyEA;;GAEG;AACH,mBAFU,WAAW,CAEM;AAMpB,oCAFM,MAAM,EAAE,CAQpB"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../core/helpers/i18n.js"],"names":[],"mappings":"AA4EA;;GAEG;AACH,mBAFU,WAAW,CAEM;AAMpB,oCAFM,MAAM,EAAE,CAQpB"}
@@ -13,6 +13,7 @@ import { logger } from '@shopgate/pwa-core/helpers';
13
13
  * @property {Function} number - Number translator
14
14
  * @property {Function} getSupplementalData - Get Supplemental Data
15
15
  * @property {Function} getPath - Get locale data by path
16
+ * @property {Function} has - Check whether a translation key resolves to a value
16
17
  * @property {Function} getLang - Get locale lang code, eg de-DE
17
18
  */
18
19
 
@@ -50,6 +51,7 @@ const I18n = () => {
50
51
  this.number = getNumberFormatter(lang);
51
52
  this.getSupplementalData = () => locales.supplementalData || {};
52
53
  this.getPath = path => get(locales, path);
54
+ this.has = path => this.getPath(path) !== undefined;
53
55
  this.getLang = () => lang;
54
56
  // If component decides to act accordingly this information should be exposed.
55
57
  this.ready = true;
@@ -62,6 +64,7 @@ const I18n = () => {
62
64
  number: notReadyCb,
63
65
  getSupplementalData: notReadyCb,
64
66
  getPath: notReadyCb,
67
+ has: notReadyCb,
65
68
  getLang: notReadyCb,
66
69
  ready: false
67
70
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Load image hook
3
- * @param {string} src .
4
- * @returns {boolean}
3
+ * @param {string|null} src The image to preload. A falsy src is a no-op.
4
+ * @returns {boolean} Whether the image has finished loading.
5
5
  */
6
- export function useLoadImage(src: string): boolean;
6
+ export function useLoadImage(src: string | null): boolean;
7
7
  //# sourceMappingURL=useLoadImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadImage.d.ts","sourceRoot":"","sources":["../../../../core/hooks/html/useLoadImage.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,kCAHW,MAAM,GACJ,OAAO,CAUnB"}
1
+ {"version":3,"file":"useLoadImage.d.ts","sourceRoot":"","sources":["../../../../core/hooks/html/useLoadImage.js"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,kCAHW,MAAM,GAAC,IAAI,GACT,OAAO,CAUnB"}
@@ -3,8 +3,8 @@ import { loadImage } from '@shopgate/pwa-common/helpers/html/handleDOM';
3
3
 
4
4
  /**
5
5
  * Load image hook
6
- * @param {string} src .
7
- * @returns {boolean}
6
+ * @param {string|null} src The image to preload. A falsy src is a no-op.
7
+ * @returns {boolean} Whether the image has finished loading.
8
8
  */
9
9
  export function useLoadImage(src) {
10
10
  const [loaded, setIsLoaded] = useState(false);
@@ -40,11 +40,11 @@ declare const _default: import("react-redux").ConnectedComponent<{
40
40
  quantity: number;
41
41
  };
42
42
  }, {
43
+ product: NonNullable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
43
44
  historyPush: (...args: any[]) => any;
44
45
  quantity?: number | null | undefined;
45
46
  notes?: string | null | undefined;
46
47
  listId: string;
47
- product: NonNullable<PropTypes.InferProps<PropTypes.ValidationMap<any>>>;
48
48
  remove: (...args: any[]) => any;
49
49
  addToCart: (...args: any[]) => any;
50
50
  isBaseProduct?: boolean | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../favorites/components/Item/Item.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;QA2KY,GAAG,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAnKD,YAAY"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../favorites/components/Item/Item.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;QA0KY,GAAG,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAlKD,YAAY"}
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import { connect } from 'react-redux';
4
4
  import { MODAL_VARIANT_SELECT } from '@shopgate/pwa-ui-shared/Dialog/constants';
5
5
  import { ProductImage, ITEM_PATH, PriceInfo, isBaseProduct as isBaseProductSelector, isProductOrderable, hasProductVariants, ProductListEntryProvider } from '@shopgate/engage/product';
6
- import { bin2hex, showModal as showModalAction, historyPush as historyPushAction, getThemeSettings, i18n } from '@shopgate/engage/core';
6
+ import { bin2hex, showModal as showModalAction, historyPush as historyPushAction, i18n } from '@shopgate/engage/core';
7
7
  import { hasNewServices } from '@shopgate/engage/core/helpers';
8
8
  import { Link, TextLink, SurroundPortals, Typography } from '@shopgate/engage/components';
9
9
  import { makeIsRopeProductOrderable, getPreferredLocation, StockInfoLists } from '@shopgate/engage/locations';
@@ -153,9 +153,6 @@ const FavoriteItem = ({
153
153
  classes,
154
154
  cx
155
155
  } = useStyles();
156
- const {
157
- ListImage: gridResolutions
158
- } = getThemeSettings('AppImages') || {};
159
156
  const [isDisabled, setIsDisabled] = useState(!isOrderable && !hasVariants);
160
157
  const currency = product.price?.currency || 'EUR';
161
158
  const defaultPrice = product.price?.unitPrice || 0;
@@ -267,7 +264,7 @@ const FavoriteItem = ({
267
264
  children: /*#__PURE__*/_jsx(ProductImage, {
268
265
  className: cx('engage__favorites__item__image'),
269
266
  src: product.featuredImageBaseUrl,
270
- resolutions: gridResolutions
267
+ context: "list"
271
268
  })
272
269
  }), /*#__PURE__*/_jsxs("div", {
273
270
  className: cx(classes.infoContainer, 'engage__favorites__item__info-container'),
@@ -26,8 +26,8 @@ declare const _default: import("react-redux").ConnectedComponent<{
26
26
  useGetFavoriteIdsPipeline: boolean;
27
27
  };
28
28
  }, {
29
- id: string;
30
29
  name: string;
30
+ id: string;
31
31
  remove: (...args: any[]) => any;
32
32
  addToCart: (...args: any[]) => any;
33
33
  removeItem: (...args: any[]) => any;
@@ -18,10 +18,9 @@ const useStyles = makeStyles()(theme => ({
18
18
  },
19
19
  productImage: {
20
20
  flex: '0 0 auto',
21
- width: '2.5rem',
22
- height: '2.5rem',
21
+ width: 70,
23
22
  background: theme.palette.background.emphasized,
24
- marginRight: theme.spacing(2.5)
23
+ marginRight: theme.spacing(2)
25
24
  },
26
25
  productContent: {
27
26
  flexGrow: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"OrderHistoryList.d.ts","sourceRoot":"","sources":["../../../../orders/components/OrderHistory/OrderHistoryList.jsx"],"names":[],"mappings":"AA6CO,2BAHI,MAAM,GACJ,GAAG,CAkDf;;;;;;;;;;;;AAiBM,mCAHI,MAAM,GACJ,GAAG,CAUf;;;;;;;sBArHqB,YAAY"}
1
+ {"version":3,"file":"OrderHistoryList.d.ts","sourceRoot":"","sources":["../../../../orders/components/OrderHistory/OrderHistoryList.jsx"],"names":[],"mappings":"AA4CO,2BAHI,MAAM,GACJ,GAAG,CAuDf;;;;;;;;;;;;AAiBM,mCAHI,MAAM,GACJ,GAAG,CAUf;;;;;;;sBAzHqB,YAAY"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { I18n, CardList, Link } from '@shopgate/engage/components';
3
+ import { I18n, Card, Link } from '@shopgate/engage/components';
4
4
  import { makeStyles } from '@shopgate/engage/styles';
5
5
  import { i18n } from '@shopgate/engage/core/helpers';
6
6
  import { getTranslatedOrderStatus } from "../../helpers";
@@ -31,10 +31,7 @@ const useStyles = makeStyles()(theme => ({
31
31
  ':last-of-type': {
32
32
  marginBottom: 0
33
33
  },
34
- background: theme.palette.background.surface,
35
- boxSizing: 'border-box',
36
- boxShadow: '0 4px 8px rgba(0,0,0,0.16)',
37
- borderRadius: 10
34
+ boxSizing: 'border-box'
38
35
  }
39
36
  }));
40
37
 
@@ -47,9 +44,10 @@ export const Row = props => {
47
44
  const {
48
45
  classes
49
46
  } = useStyles();
50
- return /*#__PURE__*/_jsx(CardList.Item, {
47
+ return /*#__PURE__*/_jsx(Card, {
51
48
  className: classes.card,
52
49
  onClick: props.openDetails,
50
+ component: "li",
53
51
  children: /*#__PURE__*/_jsxs(Link, {
54
52
  className: classes.cardContent,
55
53
  href: getOrderDetailsRoute(props.orderNumber),
@@ -99,10 +97,11 @@ export const List = ({
99
97
  children
100
98
  }) => {
101
99
  const {
102
- classes
100
+ classes,
101
+ cx
103
102
  } = useStyles();
104
- return /*#__PURE__*/_jsx(CardList, {
105
- className: classes.list,
103
+ return /*#__PURE__*/_jsx("ul", {
104
+ className: cx(classes.list, 'engage__orders__order-history-list'),
106
105
  children: children
107
106
  });
108
107
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OrderHistoryTable.d.ts","sourceRoot":"","sources":["../../../../orders/components/OrderHistory/OrderHistoryTable.jsx"],"names":[],"mappings":"AAmCO,gCAHI,MAAM,GACJ,GAAG,CAkCf;;;;;;;;;;;;AAiBM,oCAHI,MAAM,GACJ,GAAG,CAuBf;;;;;;;sBAxGqB,YAAY"}
1
+ {"version":3,"file":"OrderHistoryTable.d.ts","sourceRoot":"","sources":["../../../../orders/components/OrderHistory/OrderHistoryTable.jsx"],"names":[],"mappings":"AAsCO,gCAHI,MAAM,GACJ,GAAG,CAkCf;;;;;;;;;;;;AAiBM,oCAHI,MAAM,GACJ,GAAG,CAuBf;;;;;;;sBA3GqB,YAAY"}
@@ -6,6 +6,9 @@ import { i18n } from '@shopgate/engage/core/helpers';
6
6
  import { getTranslatedOrderStatus } from "../../helpers";
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const useStyles = makeStyles()(theme => ({
9
+ card: {
10
+ margin: '5px 5px 10px'
11
+ },
9
12
  tableHeader: {
10
13
  '& > th': {
11
14
  padding: theme.spacing(2),
@@ -79,6 +82,7 @@ export const Table = ({
79
82
  classes
80
83
  } = useStyles();
81
84
  return /*#__PURE__*/_jsx(Card, {
85
+ className: classes.card,
82
86
  children: /*#__PURE__*/_jsxs("table", {
83
87
  children: [/*#__PURE__*/_jsx("thead", {
84
88
  children: /*#__PURE__*/_jsxs("tr", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/engage",
3
- "version": "7.32.0-beta.5",
3
+ "version": "7.32.0-beta.7",
4
4
  "description": "Shopgate's ENGAGE library.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
@@ -17,13 +17,13 @@
17
17
  "scripts": {},
18
18
  "dependencies": {
19
19
  "@emotion/react": "^11.14.0",
20
- "@shopgate/native-modules": "1.0.0-beta.32",
21
- "@shopgate/pwa-common": "7.32.0-beta.5",
22
- "@shopgate/pwa-common-commerce": "7.32.0-beta.5",
23
- "@shopgate/pwa-core": "7.32.0-beta.5",
24
- "@shopgate/pwa-ui-ios": "7.32.0-beta.5",
25
- "@shopgate/pwa-ui-material": "7.32.0-beta.5",
26
- "@shopgate/pwa-ui-shared": "7.32.0-beta.5",
20
+ "@shopgate/native-modules": "1.0.0-beta.34",
21
+ "@shopgate/pwa-common": "7.32.0-beta.7",
22
+ "@shopgate/pwa-common-commerce": "7.32.0-beta.7",
23
+ "@shopgate/pwa-core": "7.32.0-beta.7",
24
+ "@shopgate/pwa-ui-ios": "7.32.0-beta.7",
25
+ "@shopgate/pwa-ui-material": "7.32.0-beta.7",
26
+ "@shopgate/pwa-ui-shared": "7.32.0-beta.7",
27
27
  "@stripe/react-stripe-js": "^1.16.5",
28
28
  "@stripe/stripe-js": "^1.44.1",
29
29
  "@virtuous/conductor": "~2.5.0",