@graphcommerce/magento-recently-viewed-products 9.0.0-canary.98 → 9.0.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,403 +1,51 @@
|
|
|
1
1
|
# @graphcommerce/magento-recently-viewed-products
|
|
2
2
|
|
|
3
|
-
## 9.0.0
|
|
4
|
-
|
|
5
|
-
## 9.0.0-canary.97
|
|
6
|
-
|
|
7
|
-
## 9.0.0-canary.96
|
|
8
|
-
|
|
9
|
-
## 9.0.0-canary.95
|
|
10
|
-
|
|
11
|
-
## 9.0.0-canary.94
|
|
12
|
-
|
|
13
|
-
## 9.0.0-canary.93
|
|
14
|
-
|
|
15
|
-
## 9.0.0-canary.92
|
|
16
|
-
|
|
17
|
-
## 9.0.0-canary.91
|
|
18
|
-
|
|
19
|
-
## 9.0.0-canary.90
|
|
20
|
-
|
|
21
|
-
## 9.0.0-canary.89
|
|
22
|
-
|
|
23
|
-
## 9.0.0-canary.88
|
|
24
|
-
|
|
25
|
-
## 9.0.0-canary.87
|
|
26
|
-
|
|
27
|
-
## 9.0.0-canary.86
|
|
3
|
+
## 9.0.0
|
|
28
4
|
|
|
29
5
|
### Patch Changes
|
|
30
6
|
|
|
31
7
|
- [#2379](https://github.com/graphcommerce-org/graphcommerce/pull/2379) [`5832c9d`](https://github.com/graphcommerce-org/graphcommerce/commit/5832c9d891e288f47e3b181f4a2f5529847dee2b) - Solved issue where Recently Viewed Products would execute a query even if there were no products to display. ([@paales](https://github.com/paales))
|
|
32
8
|
|
|
33
|
-
## 9.0.0-canary.
|
|
34
|
-
|
|
35
|
-
## 9.0.0-canary.84
|
|
36
|
-
|
|
37
|
-
## 9.0.0-canary.83
|
|
38
|
-
|
|
39
|
-
## 9.0.0-canary.82
|
|
40
|
-
|
|
41
|
-
## 9.0.0-canary.81
|
|
42
|
-
|
|
43
|
-
## 9.0.0-canary.80
|
|
44
|
-
|
|
45
|
-
## 9.0.0-canary.79
|
|
46
|
-
|
|
47
|
-
## 9.0.0-canary.78
|
|
48
|
-
|
|
49
|
-
## 9.0.0-canary.77
|
|
50
|
-
|
|
51
|
-
## 9.0.0-canary.76
|
|
52
|
-
|
|
53
|
-
## 9.0.0-canary.75
|
|
54
|
-
|
|
55
|
-
## 9.0.0-canary.74
|
|
56
|
-
|
|
57
|
-
## 9.0.0-canary.73
|
|
58
|
-
|
|
59
|
-
## 9.0.0-canary.72
|
|
60
|
-
|
|
61
|
-
## 9.0.0-canary.71
|
|
62
|
-
|
|
63
|
-
## 9.0.0-canary.70
|
|
64
|
-
|
|
65
|
-
## 9.0.0-canary.69
|
|
66
|
-
|
|
67
|
-
## 9.0.0-canary.68
|
|
68
|
-
|
|
69
|
-
## 9.0.0-canary.67
|
|
70
|
-
|
|
71
|
-
## 9.0.0-canary.66
|
|
72
|
-
|
|
73
|
-
## 9.0.0-canary.65
|
|
74
|
-
|
|
75
|
-
## 9.0.0-canary.64
|
|
76
|
-
|
|
77
|
-
## 9.0.0-canary.63
|
|
78
|
-
|
|
79
|
-
## 9.0.0-canary.62
|
|
80
|
-
|
|
81
|
-
## 9.0.0-canary.61
|
|
82
|
-
|
|
83
|
-
## 9.0.0-canary.60
|
|
84
|
-
|
|
85
|
-
## 9.0.0-canary.59
|
|
86
|
-
|
|
87
|
-
## 9.0.0-canary.58
|
|
88
|
-
|
|
89
|
-
## 9.0.0-canary.57
|
|
90
|
-
|
|
91
|
-
## 9.0.0-canary.56
|
|
92
|
-
|
|
93
|
-
## 9.0.0-canary.55
|
|
94
|
-
|
|
95
|
-
## 9.0.0-canary.54
|
|
96
|
-
|
|
97
|
-
## 8.1.0-canary.53
|
|
98
|
-
|
|
99
|
-
## 8.1.0-canary.52
|
|
100
|
-
|
|
101
|
-
## 8.1.0-canary.51
|
|
102
|
-
|
|
103
|
-
## 8.1.0-canary.50
|
|
104
|
-
|
|
105
|
-
## 8.1.0-canary.49
|
|
106
|
-
|
|
107
|
-
## 8.1.0-canary.48
|
|
108
|
-
|
|
109
|
-
## 8.1.0-canary.47
|
|
110
|
-
|
|
111
|
-
## 8.1.0-canary.46
|
|
112
|
-
|
|
113
|
-
## 8.1.0-canary.45
|
|
114
|
-
|
|
115
|
-
## 8.1.0-canary.44
|
|
116
|
-
|
|
117
|
-
## 8.1.0-canary.43
|
|
118
|
-
|
|
119
|
-
## 8.1.0-canary.42
|
|
120
|
-
|
|
121
|
-
## 8.1.0-canary.41
|
|
122
|
-
|
|
123
|
-
## 8.1.0-canary.40
|
|
124
|
-
|
|
125
|
-
## 8.1.0-canary.39
|
|
126
|
-
|
|
127
|
-
## 8.1.0-canary.38
|
|
128
|
-
|
|
129
|
-
## 8.1.0-canary.37
|
|
130
|
-
|
|
131
|
-
## 8.1.0-canary.36
|
|
132
|
-
|
|
133
|
-
## 8.1.0-canary.35
|
|
134
|
-
|
|
135
|
-
## 8.1.0-canary.34
|
|
136
|
-
|
|
137
|
-
## 8.1.0-canary.33
|
|
138
|
-
|
|
139
|
-
## 8.1.0-canary.32
|
|
140
|
-
|
|
141
|
-
## 8.1.0-canary.31
|
|
142
|
-
|
|
143
|
-
## 8.1.0-canary.30
|
|
144
|
-
|
|
145
|
-
## 8.1.0-canary.29
|
|
146
|
-
|
|
147
|
-
## 8.1.0-canary.28
|
|
148
|
-
|
|
149
|
-
## 8.1.0-canary.27
|
|
150
|
-
|
|
151
|
-
## 8.1.0-canary.26
|
|
152
|
-
|
|
153
|
-
## 8.1.0-canary.25
|
|
154
|
-
|
|
155
|
-
## 8.1.0-canary.24
|
|
156
|
-
|
|
157
|
-
## 8.1.0-canary.23
|
|
158
|
-
|
|
159
|
-
## 8.1.0-canary.22
|
|
160
|
-
|
|
161
|
-
## 8.1.0-canary.21
|
|
162
|
-
|
|
163
|
-
## 8.1.0-canary.20
|
|
164
|
-
|
|
165
|
-
## 8.1.0-canary.19
|
|
166
|
-
|
|
167
|
-
## 8.1.0-canary.18
|
|
168
|
-
|
|
169
|
-
## 8.1.0-canary.17
|
|
170
|
-
|
|
171
|
-
## 8.1.0-canary.16
|
|
172
|
-
|
|
173
|
-
## 8.1.0-canary.15
|
|
174
|
-
|
|
175
|
-
## 8.1.0-canary.14
|
|
176
|
-
|
|
177
|
-
## 8.1.0-canary.13
|
|
178
|
-
|
|
179
|
-
## 8.1.0-canary.12
|
|
180
|
-
|
|
181
|
-
## 8.1.0-canary.11
|
|
182
|
-
|
|
183
|
-
## 8.1.0-canary.10
|
|
184
|
-
|
|
185
|
-
## 8.1.0-canary.9
|
|
186
|
-
|
|
187
|
-
## 8.1.0-canary.8
|
|
188
|
-
|
|
189
|
-
## 8.1.0-canary.7
|
|
190
|
-
|
|
191
|
-
## 8.1.0-canary.6
|
|
9
|
+
## 9.0.0-canary.118
|
|
192
10
|
|
|
193
|
-
##
|
|
11
|
+
## 9.0.0-canary.117
|
|
194
12
|
|
|
195
|
-
##
|
|
13
|
+
## 9.0.0-canary.116
|
|
196
14
|
|
|
197
|
-
##
|
|
15
|
+
## 9.0.0-canary.115
|
|
198
16
|
|
|
199
|
-
##
|
|
17
|
+
## 9.0.0-canary.114
|
|
200
18
|
|
|
201
|
-
##
|
|
19
|
+
## 9.0.0-canary.113
|
|
202
20
|
|
|
203
|
-
##
|
|
21
|
+
## 9.0.0-canary.112
|
|
204
22
|
|
|
205
|
-
##
|
|
23
|
+
## 9.0.0-canary.111
|
|
206
24
|
|
|
207
|
-
##
|
|
25
|
+
## 9.0.0-canary.110
|
|
208
26
|
|
|
209
|
-
##
|
|
27
|
+
## 9.0.0-canary.109
|
|
210
28
|
|
|
211
|
-
##
|
|
29
|
+
## 9.0.0-canary.108
|
|
212
30
|
|
|
213
|
-
##
|
|
31
|
+
## 9.0.0-canary.107
|
|
214
32
|
|
|
215
|
-
##
|
|
33
|
+
## 9.0.0-canary.106
|
|
216
34
|
|
|
217
|
-
##
|
|
35
|
+
## 9.0.0-canary.105
|
|
218
36
|
|
|
219
|
-
##
|
|
37
|
+
## 9.0.0-canary.104
|
|
220
38
|
|
|
221
|
-
##
|
|
39
|
+
## 9.0.0-canary.103
|
|
222
40
|
|
|
223
|
-
##
|
|
224
|
-
|
|
225
|
-
## 8.0.5-canary.1
|
|
226
|
-
|
|
227
|
-
## 8.0.5-canary.0
|
|
228
|
-
|
|
229
|
-
## 8.0.4
|
|
230
|
-
|
|
231
|
-
## 8.0.4-canary.1
|
|
232
|
-
|
|
233
|
-
## 8.0.4-canary.0
|
|
234
|
-
|
|
235
|
-
## 8.0.3
|
|
236
|
-
|
|
237
|
-
## 8.0.3-canary.6
|
|
238
|
-
|
|
239
|
-
## 8.0.3-canary.5
|
|
240
|
-
|
|
241
|
-
## 8.0.3-canary.4
|
|
242
|
-
|
|
243
|
-
## 8.0.3-canary.3
|
|
244
|
-
|
|
245
|
-
## 8.0.3-canary.2
|
|
246
|
-
|
|
247
|
-
## 8.0.3-canary.1
|
|
248
|
-
|
|
249
|
-
## 8.0.3-canary.0
|
|
250
|
-
|
|
251
|
-
## 8.0.2
|
|
252
|
-
|
|
253
|
-
## 8.0.2-canary.3
|
|
254
|
-
|
|
255
|
-
## 8.0.2-canary.2
|
|
256
|
-
|
|
257
|
-
## 8.0.2-canary.1
|
|
258
|
-
|
|
259
|
-
## 8.0.2-canary.0
|
|
260
|
-
|
|
261
|
-
## 8.0.1
|
|
262
|
-
|
|
263
|
-
## 8.0.1-canary.4
|
|
264
|
-
|
|
265
|
-
## 8.0.1-canary.3
|
|
266
|
-
|
|
267
|
-
## 8.0.1-canary.2
|
|
41
|
+
## 9.0.0-canary.86
|
|
268
42
|
|
|
269
|
-
|
|
43
|
+
### Patch Changes
|
|
270
44
|
|
|
271
|
-
|
|
45
|
+
- [#2379](https://github.com/graphcommerce-org/graphcommerce/pull/2379) [`5832c9d`](https://github.com/graphcommerce-org/graphcommerce/commit/5832c9d891e288f47e3b181f4a2f5529847dee2b) - Solved issue where Recently Viewed Products would execute a query even if there were no products to display. ([@paales](https://github.com/paales))
|
|
272
46
|
|
|
273
47
|
## 8.0.0
|
|
274
48
|
|
|
275
49
|
### Minor Changes
|
|
276
50
|
|
|
277
51
|
- [#2077](https://github.com/graphcommerce-org/graphcommerce/pull/2077) [`e661106`](https://github.com/graphcommerce-org/graphcommerce/commit/e661106d45e51c617533f19b397a812e22b6fc82) - Created a new `<RecentlyViewedProducts/>` component and render it on product pages. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
278
|
-
|
|
279
|
-
## 8.0.0-canary.100
|
|
280
|
-
|
|
281
|
-
## 8.0.0-canary.99
|
|
282
|
-
|
|
283
|
-
## 8.0.0-canary.98
|
|
284
|
-
|
|
285
|
-
## 8.0.0-canary.97
|
|
286
|
-
|
|
287
|
-
## 8.0.0-canary.96
|
|
288
|
-
|
|
289
|
-
## 8.0.0-canary.95
|
|
290
|
-
|
|
291
|
-
## 8.0.0-canary.94
|
|
292
|
-
|
|
293
|
-
## 8.0.0-canary.93
|
|
294
|
-
|
|
295
|
-
## 8.0.0-canary.92
|
|
296
|
-
|
|
297
|
-
## 8.0.0-canary.91
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
|
-
- [#2172](https://github.com/graphcommerce-org/graphcommerce/pull/2172) [`871e07a`](https://github.com/graphcommerce-org/graphcommerce/commit/871e07ac8bbb7e6c392a740a8244f69992b42b76) - Recently viewed products would show skeleton items even after loading succeeded ([@paales](https://github.com/paales))
|
|
302
|
-
|
|
303
|
-
## 8.0.0-canary.90
|
|
304
|
-
|
|
305
|
-
## 8.0.0-canary.89
|
|
306
|
-
|
|
307
|
-
## 8.0.0-canary.88
|
|
308
|
-
|
|
309
|
-
## 8.0.0-canary.87
|
|
310
|
-
|
|
311
|
-
## 8.0.0-canary.86
|
|
312
|
-
|
|
313
|
-
## 8.0.0-canary.85
|
|
314
|
-
|
|
315
|
-
## 8.0.0-canary.84
|
|
316
|
-
|
|
317
|
-
## 8.0.0-canary.83
|
|
318
|
-
|
|
319
|
-
## 8.0.0-canary.82
|
|
320
|
-
|
|
321
|
-
## 8.0.0-canary.81
|
|
322
|
-
|
|
323
|
-
## 8.0.0-canary.80
|
|
324
|
-
|
|
325
|
-
## 8.0.0-canary.79
|
|
326
|
-
|
|
327
|
-
## 8.0.0-canary.78
|
|
328
|
-
|
|
329
|
-
## 8.0.0-canary.77
|
|
330
|
-
|
|
331
|
-
## 8.0.0-canary.76
|
|
332
|
-
|
|
333
|
-
## 8.0.0-canary.75
|
|
334
|
-
|
|
335
|
-
## 8.0.0-canary.74
|
|
336
|
-
|
|
337
|
-
## 8.0.0-canary.73
|
|
338
|
-
|
|
339
|
-
## 8.0.0-canary.72
|
|
340
|
-
|
|
341
|
-
## 8.0.0-canary.71
|
|
342
|
-
|
|
343
|
-
## 8.0.0-canary.70
|
|
344
|
-
|
|
345
|
-
## 8.0.0-canary.69
|
|
346
|
-
|
|
347
|
-
## 7.1.0-canary.68
|
|
348
|
-
|
|
349
|
-
## 7.1.0-canary.67
|
|
350
|
-
|
|
351
|
-
### Patch Changes
|
|
352
|
-
|
|
353
|
-
- [#2108](https://github.com/graphcommerce-org/graphcommerce/pull/2108) [`c4a64d8`](https://github.com/graphcommerce-org/graphcommerce/commit/c4a64d8c5e38232d31f84b68acdf0032af5eeffd) - When multiple variations of a single configurable product were viewed the RecentlyViewedProducts component it would keep showing a loading state. ([@StefanAngenent](https://github.com/StefanAngenent))
|
|
354
|
-
|
|
355
|
-
- [#2108](https://github.com/graphcommerce-org/graphcommerce/pull/2108) [`6f214fb`](https://github.com/graphcommerce-org/graphcommerce/commit/6f214fbfd8ef24cc6dcba72f403bdcb1d8a5ed8a) - Remove marginBottom from ProductScroller by default and let implementor set the margin ([@StefanAngenent](https://github.com/StefanAngenent))
|
|
356
|
-
|
|
357
|
-
## 7.1.0-canary.66
|
|
358
|
-
|
|
359
|
-
## 7.1.0-canary.65
|
|
360
|
-
|
|
361
|
-
## 7.1.0-canary.64
|
|
362
|
-
|
|
363
|
-
## 7.1.0-canary.63
|
|
364
|
-
|
|
365
|
-
## 7.1.0-canary.62
|
|
366
|
-
|
|
367
|
-
## 7.1.0-canary.61
|
|
368
|
-
|
|
369
|
-
## 7.1.0-canary.60
|
|
370
|
-
|
|
371
|
-
## 7.1.0-canary.59
|
|
372
|
-
|
|
373
|
-
## 7.1.0-canary.58
|
|
374
|
-
|
|
375
|
-
## 7.1.0-canary.57
|
|
376
|
-
|
|
377
|
-
## 7.1.0-canary.56
|
|
378
|
-
|
|
379
|
-
## 7.1.0-canary.55
|
|
380
|
-
|
|
381
|
-
## 7.1.0-canary.54
|
|
382
|
-
|
|
383
|
-
## 7.1.0-canary.53
|
|
384
|
-
|
|
385
|
-
## 7.1.0-canary.52
|
|
386
|
-
|
|
387
|
-
## 7.1.0-canary.51
|
|
388
|
-
|
|
389
|
-
## 7.1.0-canary.50
|
|
390
|
-
|
|
391
|
-
## 7.1.0-canary.49
|
|
392
|
-
|
|
393
|
-
## 7.1.0-canary.48
|
|
394
|
-
|
|
395
|
-
## 7.1.0-canary.47
|
|
396
|
-
|
|
397
|
-
## 7.1.0-canary.46
|
|
398
|
-
|
|
399
|
-
## 7.1.0-canary.45
|
|
400
|
-
|
|
401
|
-
### Minor Changes
|
|
402
|
-
|
|
403
|
-
- [#2077](https://github.com/graphcommerce-org/graphcommerce/pull/2077) [`e661106d4`](https://github.com/graphcommerce-org/graphcommerce/commit/e661106d45e51c617533f19b397a812e22b6fc82) - Added recently viewed products hook and render component ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProductScrollerProps } from '@graphcommerce/magento-product'
|
|
2
|
+
import { ProductScroller } from '@graphcommerce/magento-product'
|
|
2
3
|
import { useInView } from 'framer-motion'
|
|
3
4
|
import { useRef } from 'react'
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
useRecentlyViewedProducts,
|
|
7
|
-
useRecentlyViewedSkus,
|
|
8
|
-
} from '../hooks'
|
|
5
|
+
import type { UseRecentlyViewedProductsProps } from '../hooks'
|
|
6
|
+
import { useRecentlyViewedProducts, useRecentlyViewedSkus } from '../hooks'
|
|
9
7
|
|
|
10
8
|
export type RecentlyViewedProductsProps = Omit<UseRecentlyViewedProductsProps, 'skip'> &
|
|
11
9
|
Omit<ProductScrollerProps, 'items'> & { loading?: 'lazy' | 'eager' }
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useQuery } from '@graphcommerce/graphql'
|
|
2
2
|
import { ProductListDocument } from '@graphcommerce/magento-product'
|
|
3
3
|
import { nonNullable } from '@graphcommerce/next-ui'
|
|
4
|
-
import {
|
|
4
|
+
import type { UseRecentlyViewedSkusProps } from './useRecentlyViewedSkus'
|
|
5
|
+
import { useRecentlyViewedSkus } from './useRecentlyViewedSkus'
|
|
5
6
|
|
|
6
7
|
export type UseRecentlyViewedProductsProps = UseRecentlyViewedSkusProps & { skip?: boolean }
|
|
7
8
|
export function useRecentlyViewedProducts(props: UseRecentlyViewedProductsProps) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-recently-viewed-products",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.0
|
|
5
|
+
"version": "9.0.0",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0
|
|
16
|
-
"@graphcommerce/graphql": "^9.0.0
|
|
17
|
-
"@graphcommerce/graphql-mesh": "^9.0.0
|
|
18
|
-
"@graphcommerce/magento-cart": "^9.0.0
|
|
19
|
-
"@graphcommerce/magento-product": "^9.0.0
|
|
20
|
-
"@graphcommerce/magento-product-configurable": "^9.0.0
|
|
21
|
-
"@graphcommerce/next-config": "^9.0.0
|
|
22
|
-
"@graphcommerce/next-ui": "^9.0.0
|
|
23
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0
|
|
24
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0",
|
|
16
|
+
"@graphcommerce/graphql": "^9.0.0",
|
|
17
|
+
"@graphcommerce/graphql-mesh": "^9.0.0",
|
|
18
|
+
"@graphcommerce/magento-cart": "^9.0.0",
|
|
19
|
+
"@graphcommerce/magento-product": "^9.0.0",
|
|
20
|
+
"@graphcommerce/magento-product-configurable": "^9.0.0",
|
|
21
|
+
"@graphcommerce/next-config": "^9.0.0",
|
|
22
|
+
"@graphcommerce/next-ui": "^9.0.0",
|
|
23
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0",
|
|
24
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0",
|
|
25
25
|
"@mui/material": "^5.10.16",
|
|
26
|
-
"framer-motion": "^
|
|
26
|
+
"framer-motion": "^11.0.0",
|
|
27
27
|
"next": "*",
|
|
28
28
|
"react": "^18.2.0",
|
|
29
29
|
"react-dom": "^18.2.0"
|