@graphcommerce/framer-scroller 8.0.3-canary.0 → 8.0.3-canary.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/components/ScrollerThumbnails.tsx +13 -11
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.0.3-canary.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2211](https://github.com/graphcommerce-org/graphcommerce/pull/2211) [`2fc62cd`](https://github.com/graphcommerce-org/graphcommerce/commit/2fc62cd550c8831071c51c1088a94da584a0790b) - Do not show the a product thumbnails when there is only a single image.
|
|
8
|
+
([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
9
|
+
|
|
10
|
+
## 8.0.3-canary.1
|
|
11
|
+
|
|
3
12
|
## 8.0.3-canary.0
|
|
4
13
|
|
|
5
14
|
## 8.0.2
|
|
@@ -14,17 +14,19 @@ const componentName = 'ScrollerThumbnails'
|
|
|
14
14
|
export function ScrollerThumbnails(props: ThumbnailsProps) {
|
|
15
15
|
const { images, sx = [], ...buttonProps } = props
|
|
16
16
|
return (
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
images.length > 1 && (
|
|
18
|
+
<ThumbnailContainer sx={sx}>
|
|
19
|
+
{images.map((item, i) => (
|
|
20
|
+
<ScrollerThumbnail
|
|
21
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
22
|
+
key={`${i}-image`}
|
|
23
|
+
idx={i}
|
|
24
|
+
image={item}
|
|
25
|
+
{...buttonProps}
|
|
26
|
+
/>
|
|
27
|
+
))}
|
|
28
|
+
</ThumbnailContainer>
|
|
29
|
+
)
|
|
28
30
|
)
|
|
29
31
|
}
|
|
30
32
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/framer-scroller",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "8.0.3-canary.
|
|
5
|
+
"version": "8.0.3-canary.2",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "tsc -W"
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"popmotion": "11.0.5"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@graphcommerce/eslint-config-pwa": "^8.0.3-canary.
|
|
22
|
-
"@graphcommerce/framer-utils": "^8.0.3-canary.
|
|
23
|
-
"@graphcommerce/image": "^8.0.3-canary.
|
|
24
|
-
"@graphcommerce/prettier-config-pwa": "^8.0.3-canary.
|
|
25
|
-
"@graphcommerce/typescript-config-pwa": "^8.0.3-canary.
|
|
21
|
+
"@graphcommerce/eslint-config-pwa": "^8.0.3-canary.2",
|
|
22
|
+
"@graphcommerce/framer-utils": "^8.0.3-canary.2",
|
|
23
|
+
"@graphcommerce/image": "^8.0.3-canary.2",
|
|
24
|
+
"@graphcommerce/prettier-config-pwa": "^8.0.3-canary.2",
|
|
25
|
+
"@graphcommerce/typescript-config-pwa": "^8.0.3-canary.2",
|
|
26
26
|
"@lingui/core": "^4.2.1",
|
|
27
27
|
"@lingui/react": "^4.2.1",
|
|
28
28
|
"@mui/material": "^5.10.16",
|