@graphcommerce/image 7.0.0-canary.21 → 7.0.1-canary.0

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 CHANGED
@@ -1,6 +1,176 @@
1
1
  # Change Log
2
2
 
3
- ## 7.0.0-canary.21
3
+ ## 7.0.1-canary.0
4
+
5
+ ## 7.0.0
6
+
7
+ ### Patch Changes
8
+
9
+ - [#1944](https://github.com/graphcommerce-org/graphcommerce/pull/1944) [`5ce61c3d5`](https://github.com/graphcommerce-org/graphcommerce/commit/5ce61c3d545b67ed2c19668a5a505a91d6ec02c7) - When an image's width isn't known or is 0 it would always load an image ([@paales](https://github.com/paales))
10
+
11
+ ## 6.2.0-canary.98
12
+
13
+ ## 6.2.0-canary.97
14
+
15
+ ## 6.2.0-canary.96
16
+
17
+ ## 6.2.0-canary.95
18
+
19
+ ## 6.2.0-canary.94
20
+
21
+ ## 6.2.0-canary.93
22
+
23
+ ## 6.2.0-canary.92
24
+
25
+ ## 6.2.0-canary.91
26
+
27
+ ## 6.2.0-canary.90
28
+
29
+ ## 6.2.0-canary.89
30
+
31
+ ## 6.2.0-canary.88
32
+
33
+ ## 6.2.0-canary.87
34
+
35
+ ## 6.2.0-canary.86
36
+
37
+ ## 6.2.0-canary.85
38
+
39
+ ## 6.2.0-canary.84
40
+
41
+ ## 6.2.0-canary.83
42
+
43
+ ## 6.2.0-canary.82
44
+
45
+ ## 6.2.0-canary.81
46
+
47
+ ## 6.2.0-canary.80
48
+
49
+ ## 6.2.0-canary.79
50
+
51
+ ### Patch Changes
52
+
53
+ - [#2013](https://github.com/graphcommerce-org/graphcommerce/pull/2013) [`c57bdf8a4`](https://github.com/graphcommerce-org/graphcommerce/commit/c57bdf8a4ce936c3eedc4dfada3a464a113ac68a) - Updated @mui and framer-motion packages to latest versions ([@paales](https://github.com/paales))
54
+
55
+ ## 6.2.0-canary.78
56
+
57
+ ## 6.2.0-canary.77
58
+
59
+ ## 6.2.0-canary.76
60
+
61
+ ## 6.2.0-canary.75
62
+
63
+ ## 6.2.0-canary.74
64
+
65
+ ## 6.2.0-canary.73
66
+
67
+ ## 6.2.0-canary.72
68
+
69
+ ## 6.2.0-canary.71
70
+
71
+ ## 6.2.0-canary.70
72
+
73
+ ## 6.2.0-canary.69
74
+
75
+ ## 6.2.0-canary.68
76
+
77
+ ## 6.2.0-canary.67
78
+
79
+ ## 6.2.0-canary.66
80
+
81
+ ## 6.2.0-canary.65
82
+
83
+ ## 6.2.0-canary.64
84
+
85
+ ## 6.2.0-canary.63
86
+
87
+ ## 6.2.0-canary.62
88
+
89
+ ## 6.2.0-canary.61
90
+
91
+ ## 6.2.0-canary.60
92
+
93
+ ## 6.2.0-canary.59
94
+
95
+ ## 6.2.0-canary.58
96
+
97
+ ## 6.2.0-canary.57
98
+
99
+ ## 6.2.0-canary.56
100
+
101
+ ## 6.2.0-canary.55
102
+
103
+ ## 6.2.0-canary.54
104
+
105
+ ## 6.2.0-canary.53
106
+
107
+ ## 6.2.0-canary.52
108
+
109
+ ## 6.2.0-canary.51
110
+
111
+ ## 6.2.0-canary.50
112
+
113
+ ## 6.2.0-canary.49
114
+
115
+ ## 6.2.0-canary.48
116
+
117
+ ## 6.2.0-canary.47
118
+
119
+ ## 6.2.0-canary.46
120
+
121
+ ## 6.2.0-canary.45
122
+
123
+ ## 6.2.0-canary.44
124
+
125
+ ## 6.2.0-canary.43
126
+
127
+ ## 6.2.0-canary.42
128
+
129
+ ## 6.2.0-canary.41
130
+
131
+ ## 6.2.0-canary.40
132
+
133
+ ## 6.2.0-canary.39
134
+
135
+ ## 6.2.0-canary.38
136
+
137
+ ## 6.2.0-canary.37
138
+
139
+ ## 6.2.0-canary.36
140
+
141
+ ## 6.2.0-canary.35
142
+
143
+ ## 6.2.0-canary.34
144
+
145
+ ## 6.2.0-canary.33
146
+
147
+ ## 6.2.0-canary.32
148
+
149
+ ## 6.2.0-canary.31
150
+
151
+ ## 6.2.0-canary.30
152
+
153
+ ## 6.2.0-canary.29
154
+
155
+ ## 6.2.0-canary.28
156
+
157
+ ## 6.2.0-canary.27
158
+
159
+ ## 6.2.0-canary.26
160
+
161
+ ## 6.2.0-canary.25
162
+
163
+ ### Patch Changes
164
+
165
+ - [#1944](https://github.com/graphcommerce-org/graphcommerce/pull/1944) [`5ce61c3d5`](https://github.com/graphcommerce-org/graphcommerce/commit/5ce61c3d545b67ed2c19668a5a505a91d6ec02c7) - When an image's width isn't known or is 0 it would always load an image ([@paales](https://github.com/paales))
166
+
167
+ ## 6.2.0-canary.24
168
+
169
+ ## 6.2.0-canary.23
170
+
171
+ ## 6.2.0-canary.22
172
+
173
+ ## 6.2.0-canary.21
4
174
 
5
175
  ## 6.2.0-canary.20
6
176
 
@@ -37,7 +37,7 @@ type ImageConfig = ImageConfigComplete & { allSizes: number[] }
37
37
  const DEFAULT_SIZES: SizesRecord = { 0: '100vw', 1200: '50vw' }
38
38
 
39
39
  const VALID_LOADING_VALUES = ['lazy', 'eager', undefined] as const
40
- type LoadingValue = typeof VALID_LOADING_VALUES[number]
40
+ type LoadingValue = (typeof VALID_LOADING_VALUES)[number]
41
41
 
42
42
  const loaders = new Map<LoaderValue, (props: DefaultImageLoaderProps) => string>([
43
43
  ['imgix', imgixLoader],
@@ -147,14 +147,14 @@ function generateSrcSet(props: GenImgAttrsData): string {
147
147
  const { src, layout, width, quality = 52, sizes, loader, scale, config } = props
148
148
  const { widths, kind } = getWidths(config, width, layout, sizes)
149
149
 
150
- return widths
150
+ return `${widths
151
151
  .map(
152
152
  (w, i) =>
153
153
  `${loader({ src, quality, width: w })} ${
154
154
  kind === 'w' ? Math.round(w * scale) : i + 1
155
155
  }${kind}`,
156
156
  )
157
- .join(', ')
157
+ .join(', ')}, data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7 1w`
158
158
  }
159
159
 
160
160
  function defaultImageLoader(loaderProps: ImageLoaderProps) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/image",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "7.0.0-canary.21",
5
+ "version": "7.0.1-canary.0",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "dev": "tsc -W"
@@ -15,12 +15,12 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "@graphcommerce/framer-utils": "7.0.0-canary.21"
18
+ "@graphcommerce/framer-utils": "7.0.1-canary.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@graphcommerce/eslint-config-pwa": "7.0.0-canary.21",
22
- "@graphcommerce/prettier-config-pwa": "7.0.0-canary.21",
23
- "@graphcommerce/typescript-config-pwa": "7.0.0-canary.21"
21
+ "@graphcommerce/eslint-config-pwa": "7.0.1-canary.0",
22
+ "@graphcommerce/prettier-config-pwa": "7.0.1-canary.0",
23
+ "@graphcommerce/typescript-config-pwa": "7.0.1-canary.0"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@mui/material": "^5.10.16",