@scayle/storefront-nuxt 7.36.3

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 (135) hide show
  1. package/CHANGELOG.md +598 -0
  2. package/LICENSE +21 -0
  3. package/README.md +67 -0
  4. package/dist/index.d.mts +13 -0
  5. package/dist/index.d.ts +13 -0
  6. package/dist/index.mjs +2 -0
  7. package/dist/module.cjs +5 -0
  8. package/dist/module.d.mts +8 -0
  9. package/dist/module.d.ts +8 -0
  10. package/dist/module.json +8 -0
  11. package/dist/module.mjs +173 -0
  12. package/dist/rpc.d.mts +12 -0
  13. package/dist/rpc.d.ts +12 -0
  14. package/dist/rpc.mjs +18 -0
  15. package/dist/runtime/api/cacheAuth.d.ts +12 -0
  16. package/dist/runtime/api/cacheAuth.mjs +40 -0
  17. package/dist/runtime/api/purgeAll.d.ts +2 -0
  18. package/dist/runtime/api/purgeAll.mjs +14 -0
  19. package/dist/runtime/api/purgeTags.d.ts +2 -0
  20. package/dist/runtime/api/purgeTags.mjs +19 -0
  21. package/dist/runtime/api/rpcHandler.d.ts +2 -0
  22. package/dist/runtime/api/rpcHandler.mjs +15 -0
  23. package/dist/runtime/api/up.d.ts +4 -0
  24. package/dist/runtime/api/up.mjs +4 -0
  25. package/dist/runtime/composables/core/useAvailableShops.d.ts +2 -0
  26. package/dist/runtime/composables/core/useAvailableShops.mjs +4 -0
  27. package/dist/runtime/composables/core/useCurrentShop.d.ts +3 -0
  28. package/dist/runtime/composables/core/useCurrentShop.mjs +8 -0
  29. package/dist/runtime/composables/core/useEventListener.d.ts +2 -0
  30. package/dist/runtime/composables/core/useEventListener.mjs +2 -0
  31. package/dist/runtime/composables/core/useLog.d.ts +1 -0
  32. package/dist/runtime/composables/core/useLog.mjs +8 -0
  33. package/dist/runtime/composables/core/useRpc.d.ts +17 -0
  34. package/dist/runtime/composables/core/useRpc.mjs +56 -0
  35. package/dist/runtime/composables/core/useSession.d.ts +21 -0
  36. package/dist/runtime/composables/core/useSession.mjs +21 -0
  37. package/dist/runtime/composables/core/useUser.d.ts +16 -0
  38. package/dist/runtime/composables/core/useUser.mjs +68 -0
  39. package/dist/runtime/composables/storefront/useBasket.d.ts +54 -0
  40. package/dist/runtime/composables/storefront/useBasket.mjs +165 -0
  41. package/dist/runtime/composables/storefront/useBrand.d.ts +16 -0
  42. package/dist/runtime/composables/storefront/useBrand.mjs +20 -0
  43. package/dist/runtime/composables/storefront/useBrands.d.ts +16 -0
  44. package/dist/runtime/composables/storefront/useBrands.mjs +20 -0
  45. package/dist/runtime/composables/storefront/useCategories.d.ts +20 -0
  46. package/dist/runtime/composables/storefront/useCategories.mjs +30 -0
  47. package/dist/runtime/composables/storefront/useCurrentPromotions.d.ts +16 -0
  48. package/dist/runtime/composables/storefront/useCurrentPromotions.mjs +20 -0
  49. package/dist/runtime/composables/storefront/useFacet.d.ts +48 -0
  50. package/dist/runtime/composables/storefront/useFacet.mjs +193 -0
  51. package/dist/runtime/composables/storefront/useFilters.d.ts +16 -0
  52. package/dist/runtime/composables/storefront/useFilters.mjs +20 -0
  53. package/dist/runtime/composables/storefront/useNavigationTree.d.ts +16 -0
  54. package/dist/runtime/composables/storefront/useNavigationTree.mjs +20 -0
  55. package/dist/runtime/composables/storefront/useNavigationTrees.d.ts +16 -0
  56. package/dist/runtime/composables/storefront/useNavigationTrees.mjs +20 -0
  57. package/dist/runtime/composables/storefront/useOrder.d.ts +89 -0
  58. package/dist/runtime/composables/storefront/useOrder.mjs +17 -0
  59. package/dist/runtime/composables/storefront/useOrderConfirmation.d.ts +89 -0
  60. package/dist/runtime/composables/storefront/useOrderConfirmation.mjs +17 -0
  61. package/dist/runtime/composables/storefront/useProduct.d.ts +16 -0
  62. package/dist/runtime/composables/storefront/useProduct.mjs +20 -0
  63. package/dist/runtime/composables/storefront/useProducts.d.ts +20 -0
  64. package/dist/runtime/composables/storefront/useProducts.mjs +20 -0
  65. package/dist/runtime/composables/storefront/useProductsByIds.d.ts +16 -0
  66. package/dist/runtime/composables/storefront/useProductsByIds.mjs +20 -0
  67. package/dist/runtime/composables/storefront/useProductsCount.d.ts +16 -0
  68. package/dist/runtime/composables/storefront/useProductsCount.mjs +20 -0
  69. package/dist/runtime/composables/storefront/usePromotions.d.ts +16 -0
  70. package/dist/runtime/composables/storefront/usePromotions.mjs +20 -0
  71. package/dist/runtime/composables/storefront/usePromotionsByIds.d.ts +16 -0
  72. package/dist/runtime/composables/storefront/usePromotionsByIds.mjs +20 -0
  73. package/dist/runtime/composables/storefront/useQueryFilterState.d.ts +12 -0
  74. package/dist/runtime/composables/storefront/useQueryFilterState.mjs +66 -0
  75. package/dist/runtime/composables/storefront/useSearch.d.ts +13 -0
  76. package/dist/runtime/composables/storefront/useSearch.mjs +49 -0
  77. package/dist/runtime/composables/storefront/useShopConfiguration.d.ts +13 -0
  78. package/dist/runtime/composables/storefront/useShopConfiguration.mjs +19 -0
  79. package/dist/runtime/composables/storefront/useUserAddresses.d.ts +13 -0
  80. package/dist/runtime/composables/storefront/useUserAddresses.mjs +19 -0
  81. package/dist/runtime/composables/storefront/useVariant.d.ts +16 -0
  82. package/dist/runtime/composables/storefront/useVariant.mjs +20 -0
  83. package/dist/runtime/composables/storefront/useWishlist.d.ts +48 -0
  84. package/dist/runtime/composables/storefront/useWishlist.mjs +119 -0
  85. package/dist/runtime/composables/useCoreLog.d.ts +1 -0
  86. package/dist/runtime/composables/useCoreLog.mjs +4 -0
  87. package/dist/runtime/context.d.ts +12 -0
  88. package/dist/runtime/context.mjs +98 -0
  89. package/dist/runtime/createLog.d.ts +3 -0
  90. package/dist/runtime/createLog.mjs +39 -0
  91. package/dist/runtime/error/handler.d.ts +14 -0
  92. package/dist/runtime/error/handler.mjs +53 -0
  93. package/dist/runtime/handler.d.ts +8 -0
  94. package/dist/runtime/handler.mjs +26 -0
  95. package/dist/runtime/log.d.ts +38 -0
  96. package/dist/runtime/log.mjs +68 -0
  97. package/dist/runtime/plugin/log.client.d.ts +8 -0
  98. package/dist/runtime/plugin/log.client.mjs +24 -0
  99. package/dist/runtime/plugin/log.server.d.ts +2 -0
  100. package/dist/runtime/plugin/log.server.mjs +11 -0
  101. package/dist/runtime/plugin/shop.d.ts +8 -0
  102. package/dist/runtime/plugin/shop.mjs +17 -0
  103. package/dist/runtime/rpc/rpcCall.d.ts +9 -0
  104. package/dist/runtime/rpc/rpcCall.mjs +16 -0
  105. package/dist/runtime/server/middleware/bootstrap.d.ts +12 -0
  106. package/dist/runtime/server/middleware/bootstrap.mjs +188 -0
  107. package/dist/runtime/server/middleware/bootstrap.test.d.ts +6 -0
  108. package/dist/runtime/server/middleware/bootstrap.test.mjs +277 -0
  109. package/dist/runtime/server/middleware/bootstrap.utils.d.ts +7 -0
  110. package/dist/runtime/server/middleware/bootstrap.utils.mjs +59 -0
  111. package/dist/runtime/server/middleware/cache.d.ts +12 -0
  112. package/dist/runtime/server/middleware/cache.mjs +44 -0
  113. package/dist/runtime/server/middleware/oauth.d.ts +3 -0
  114. package/dist/runtime/server/middleware/oauth.mjs +123 -0
  115. package/dist/runtime/server/middleware/redirects.d.ts +2 -0
  116. package/dist/runtime/server/middleware/redirects.mjs +86 -0
  117. package/dist/runtime/server/middleware/redirects.test.d.ts +1 -0
  118. package/dist/runtime/server/middleware/redirects.test.mjs +66 -0
  119. package/dist/runtime/server/middleware/redirects.utils.d.ts +18 -0
  120. package/dist/runtime/server/middleware/redirects.utils.mjs +28 -0
  121. package/dist/runtime/utils/error.d.ts +5 -0
  122. package/dist/runtime/utils/error.mjs +7 -0
  123. package/dist/runtime/utils/price.d.ts +11 -0
  124. package/dist/runtime/utils/price.mjs +32 -0
  125. package/dist/runtime/utils/price.test.d.ts +1 -0
  126. package/dist/runtime/utils/price.test.mjs +83 -0
  127. package/dist/runtime/utils/route.d.ts +2 -0
  128. package/dist/runtime/utils/route.mjs +3 -0
  129. package/dist/runtime/utils/route.test.d.ts +1 -0
  130. package/dist/runtime/utils/route.test.mjs +15 -0
  131. package/dist/shared/storefront-nuxt.9548700f.d.mts +161 -0
  132. package/dist/shared/storefront-nuxt.9548700f.d.ts +161 -0
  133. package/dist/types.d.mts +15 -0
  134. package/dist/types.d.ts +15 -0
  135. package/package.json +103 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,598 @@
1
+ # @scayle/storefront-nuxt
2
+
3
+ ## 7.36.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Add license file
8
+ - Updated dependencies
9
+ - @scayle/storefront-core@7.22.1
10
+ - @scayle/h3-session@0.3.4
11
+
12
+ ## 7.36.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Fix SFC_OMIT_MD5 not being respected
17
+
18
+ ## 7.36.1
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+ - @scayle/storefront-core@7.22.0
24
+
25
+ ## 7.36.0
26
+
27
+ ### Minor Changes
28
+
29
+ - Breaking: Remove imageBaseUrl from the config. This property is no longer used in the Nuxt3 package.
30
+
31
+ ## 7.35.0
32
+
33
+ ### Minor Changes
34
+
35
+ - Updated to latest Vue version `v3.3.7`
36
+
37
+ ## 7.34.0
38
+
39
+ ### Minor Changes
40
+
41
+ - Updated to latest Vue version `v3.3.6`
42
+
43
+ ## 7.33.0
44
+
45
+ ### Minor Changes
46
+
47
+ - - Add promotion data to the `addItemToBasket` method
48
+ - - Add `usePromotions`, `useCurrentPromotions` & `usePromotionsByIds` composables
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies
53
+ - @scayle/storefront-core@7.21.0
54
+
55
+ ## 7.32.3
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies
60
+ - @scayle/h3-session@0.3.3
61
+
62
+ ## 7.32.2
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies
67
+ - @scayle/storefront-core@7.20.0
68
+
69
+ ## 7.32.1
70
+
71
+ ### Patch Changes
72
+
73
+ - The `auth` config is optional
74
+ - Updated dependencies
75
+ - @scayle/storefront-core@7.19.1
76
+
77
+ ## 7.32.0
78
+
79
+ ### Minor Changes
80
+
81
+ - Make the `shop` param required in `rpcCall`
82
+
83
+ ## 7.31.0
84
+
85
+ ### Minor Changes
86
+
87
+ - Support setting default `with` params in the module options
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies
92
+ - @scayle/storefront-core@7.19.0
93
+
94
+ ## 7.30.1
95
+
96
+ ### Patch Changes
97
+
98
+ - Add timing to RPC log message
99
+
100
+ ## 7.30.0
101
+
102
+ ### Minor Changes
103
+
104
+ - Pass `withParams` through the private runtime storefront config
105
+
106
+ ## 7.29.1
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies
111
+ - @scayle/storefront-core@7.18.0
112
+
113
+ ## 7.29.0
114
+
115
+ ### Minor Changes
116
+
117
+ - Improve `useFacet` & `useQueryFilterState` computed types and `useRpc` error state type
118
+
119
+ ### Patch Changes
120
+
121
+ - Fix build warning caused by `createError` import
122
+ - Updated dependencies
123
+ - @scayle/storefront-core@7.17.0
124
+
125
+ ## 7.28.0
126
+
127
+ ### Minor Changes
128
+
129
+ - Handle errors and return proper status codes for RPC methods
130
+
131
+ ## 7.27.0
132
+
133
+ ### Minor Changes
134
+
135
+ - Add `cbdExpiration` to the checkout config to support expiring CBD tokens
136
+
137
+ ### Patch Changes
138
+
139
+ - Updated dependencies
140
+ - @scayle/storefront-core@7.16.0
141
+
142
+ ## 7.26.0
143
+
144
+ ### Minor Changes
145
+
146
+ - Breaking: Minimum node version is 20.7.0
147
+ - Import `computed` from `vue` instead of `#imports`
148
+ - Use default withParams config for `useProducts`, `useProduct`, `useProductsByIds`, `useVariant` and `usSearch`
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies
153
+ - @scayle/storefront-core@7.15.1
154
+
155
+ ## 7.25.3
156
+
157
+ ### Patch Changes
158
+
159
+ - Avoid pulling in `redis` package as an accidental dependency
160
+ - Add sideEffects false
161
+ - Updated dependencies
162
+ - @scayle/storefront-core@7.15.0
163
+
164
+ ## 7.25.2
165
+
166
+ ### Patch Changes
167
+
168
+ - Updated dependencies
169
+ - @scayle/storefront-core@7.14.3
170
+
171
+ ## 7.25.1
172
+
173
+ ### Patch Changes
174
+
175
+ - Improve imports of useBasket
176
+
177
+ ## 7.25.0
178
+
179
+ ### Minor Changes
180
+
181
+ - Mark `autoFetch` as optional option for `useRpc`. The default is `true`.
182
+
183
+ ## 7.24.0
184
+
185
+ ### Minor Changes
186
+
187
+ - Always `await` autoFetched `useRpc` during SSR
188
+
189
+ ## 7.23.0
190
+
191
+ ### Minor Changes
192
+
193
+ - Add `lazy` option to `useRpc` options. This will allow fetching data without blocking client side navigation.
194
+
195
+ ## 7.22.4
196
+
197
+ ### Patch Changes
198
+
199
+ - Use unstorage for all redis caches
200
+ - Updated dependencies
201
+ - @scayle/storefront-core@7.14.2
202
+
203
+ ## 7.22.3
204
+
205
+ ### Patch Changes
206
+
207
+ - Updated dependencies
208
+ - @scayle/storefront-core@7.14.1
209
+
210
+ ## 7.22.2
211
+
212
+ ### Patch Changes
213
+
214
+ - Remove useCurrentShop from rpcCall
215
+ - Allow setting apiBasePath on shop config
216
+
217
+ ## 7.22.1
218
+
219
+ ### Patch Changes
220
+
221
+ - Fix redis connection in redirects module
222
+
223
+ ## 7.22.0
224
+
225
+ ### Minor Changes
226
+
227
+ - Change storefront composables signatures to be an options object
228
+
229
+ ## 7.21.0
230
+
231
+ ### Minor Changes
232
+
233
+ - Support apiBasePath option
234
+
235
+ ## 7.20.2
236
+
237
+ ### Patch Changes
238
+
239
+ - Add api/up handler
240
+
241
+ ## 7.20.1
242
+
243
+ ### Patch Changes
244
+
245
+ - Fix issue where errors within `useRpc` could not be serialized.
246
+
247
+ ## 7.20.0
248
+
249
+ ### Minor Changes
250
+
251
+ - `useRpc` and composables that are based on `useRpc` now expose `status` and `error`, to allow error handling.
252
+
253
+ ### Patch Changes
254
+
255
+ - Updated dependencies
256
+ - @scayle/h3-session@0.3.2
257
+
258
+ ## 7.19.0
259
+
260
+ ### Minor Changes
261
+
262
+ - Set OAuth settings when building the context to support runtime OAuth configuration
263
+ - Support enabling/disabling the cache using the runtime config
264
+
265
+ ### Patch Changes
266
+
267
+ - Updated dependencies
268
+ - @scayle/storefront-core@7.14.0
269
+
270
+ ## 7.18.2
271
+
272
+ ### Patch Changes
273
+
274
+ - `runtimeConfig.storefront.stores` now only accepts `ShopConfigIndexed` objects as value to simplify the usage.
275
+ Passing a `ShopConfig[]` array into `runtimeConfig.storefront.stores` can lead to runtime errors.
276
+
277
+ ## 7.18.1
278
+
279
+ ### Patch Changes
280
+
281
+ - Updated dependencies
282
+ - @scayle/storefront-core@7.13.0
283
+
284
+ ## 7.18.0
285
+
286
+ ### Minor Changes
287
+
288
+ - Provide option to pass `shopConfig` either as an array/list (`shopConfig[]`) or as an object (`shopConfigIndexed`) to make them overridable as part of the `runtimeConfig`.
289
+ Internally they are still processed as array/list.
290
+
291
+ ### Patch Changes
292
+
293
+ - Add sub dependencies `isomorphic-dompurify` and `slugify` to `optimizeDeps` list
294
+
295
+ ## 7.17.0
296
+
297
+ ### Minor Changes
298
+
299
+ - Add explicit vue/nuxt specific stuff imports
300
+ - Make `ToCurrencyOptions` of `toCurrency` and `FormatOptions` of `formatPrice` optional. They use the currentShop config as default.
301
+
302
+ ## 7.16.0
303
+
304
+ ### Minor Changes
305
+
306
+ - `runtimeConfig.$storefront` is now just `runtimeConfig.storefront`
307
+
308
+ ## 7.15.1
309
+
310
+ ### Patch Changes
311
+
312
+ - added missing slash for bapi.host default
313
+ - add missing auth section for PublicRuntimeConfig module declaration
314
+ - extend vite config as part of module setup and include storefront and axios (sapi) package for optimizeDeps include list
315
+ - set module nuxt compatibility to nuxt@3.7.0 or higher
316
+ - Updated dependencies
317
+ - @scayle/h3-session@0.3.1
318
+
319
+ ## 7.15.0
320
+
321
+ ### Minor Changes
322
+
323
+ - Replace `lodash` with `radash`
324
+
325
+ ## 7.14.0
326
+
327
+ ### Minor Changes
328
+
329
+ - Add auth options within the module options
330
+
331
+ ### Patch Changes
332
+
333
+ - Support server-side autoFetch for useUser, useWishlist and useBasket
334
+ - Updated dependencies
335
+ - @scayle/storefront-core@7.12.2
336
+
337
+ ## 7.13.0
338
+
339
+ ### Minor Changes
340
+
341
+ - `withParams` are now exposed though `useRuntimeConfig().public` instead of `useRuntimeConfig().$storefront`
342
+
343
+ ### Patch Changes
344
+
345
+ - Remove usages of `event.node.req`
346
+ - Updated dependencies
347
+ - @scayle/h3-session@0.3.0
348
+
349
+ ## 7.12.0
350
+
351
+ ### Minor Changes
352
+
353
+ - Make composables share state across every instance.
354
+
355
+ ### Patch Changes
356
+
357
+ - Updated dependencies
358
+ - @scayle/h3-session@0.2.1
359
+
360
+ ## 7.11.0
361
+
362
+ ### Minor Changes
363
+
364
+ - Support top-level and shop-level definitions for bapi, appKeys, and redis configs
365
+
366
+ ### Patch Changes
367
+
368
+ - Add isEnabled to ShopConfig options
369
+ - Update `rpcCall` to accept a `NuxtApp` instance as its first parameter
370
+
371
+ ## 7.10.0
372
+
373
+ ### Minor Changes
374
+
375
+ - Add useUserAddresses composable
376
+ - Add useNavigationTree and useNavigationTrees composables
377
+ - Add useOrder and useOrderConfirmation composables
378
+
379
+ ### Patch Changes
380
+
381
+ - Updated dependencies
382
+ - @scayle/storefront-core@7.12.1
383
+
384
+ ## 7.9.0
385
+
386
+ ### Minor Changes
387
+
388
+ - Wrap `refreshProductCount` in `useFacet` composable so that have proper where condition typing
389
+
390
+ ### Patch Changes
391
+
392
+ - Prevent nuxt from setting wrong default value to `session.maxAge` in module options
393
+ - Add `refreshProductCount` filter params default
394
+
395
+ ## 7.8.1
396
+
397
+ ### Patch Changes
398
+
399
+ - Make selection of fetch function in `rpcCall` null safe
400
+ - Make `params` parameter within the `useBasket` and `useWishlist` optional
401
+ - Ensure that the accessing `withParams` is null safe within the `useBasket`
402
+ and `useWishlist` composables
403
+
404
+ ## 7.8.0
405
+
406
+ ### Minor Changes
407
+
408
+ - Add sessions module
409
+
410
+ ### Patch Changes
411
+
412
+ - Updated dependencies
413
+ - @scayle/h3-session@0.2.0
414
+
415
+ ## 7.7.0
416
+
417
+ ### Minor Changes
418
+
419
+ - Introduce `withParams` storefront option
420
+
421
+ ## 7.6.1
422
+
423
+ ### Patch Changes
424
+
425
+ - Share context between RPC requests
426
+ - Updated dependencies
427
+ - @scayle/storefront-core@7.12.0
428
+
429
+ ## 7.6.0
430
+
431
+ ### Minor Changes
432
+
433
+ - Adjust `fetching` prop of useRpc to reflect more nuxt2 behavior
434
+ - Move `deserializeFilters` and `serializeFilters` to `@scayle/storefront-core`
435
+ - Extend existing composables return object with `status` and `error`
436
+ - Add `price` utils
437
+ - Add useFacet and useQueryFilterState composable
438
+
439
+ ### Patch Changes
440
+
441
+ - Updated dependencies
442
+ - @scayle/storefront-core@7.11.0
443
+
444
+ ## 7.5.0
445
+
446
+ ### Minor Changes
447
+
448
+ - Add `useBasket`, `useWishlist` and `useEventListener` composables
449
+
450
+ ## 7.4.0
451
+
452
+ ### Minor Changes
453
+
454
+ - Add redirects module
455
+
456
+ ## 7.3.3
457
+
458
+ ### Patch Changes
459
+
460
+ - Updated dependencies
461
+ - @scayle/storefront-core@7.10.2
462
+
463
+ ## 7.3.2
464
+
465
+ ### Patch Changes
466
+
467
+ - Updated dependencies
468
+ - @scayle/storefront-core@7.10.1
469
+
470
+ ## 7.3.1
471
+
472
+ ### Patch Changes
473
+
474
+ - Updated dependencies
475
+ - @scayle/storefront-core@7.10.0
476
+
477
+ ## 7.3.0
478
+
479
+ ### Minor Changes
480
+
481
+ - Add cache module
482
+
483
+ ### Patch Changes
484
+
485
+ - Updated dependencies
486
+ - @scayle/storefront-core@7.9.0
487
+
488
+ ## 7.2.0
489
+
490
+ ### Minor Changes
491
+
492
+ - Support client- and server-side RPC calls
493
+ - Add useCurrentShop and useAvailableShops composables
494
+ - Add useSearch composable
495
+ - Add logging module and useLog composable
496
+ - Add useRpc composable
497
+ - Allow passing AsyncDataOptions to useRpc
498
+ - Add useShopConfiguration composable
499
+ - Add useFilters, useProduct, useProductsCount, useProductsByIds and useVariant composables
500
+ - Add useBrand and useBrands composables
501
+
502
+ ### Patch Changes
503
+
504
+ - Add useProducts composable
505
+ - Add useCategories composable
506
+ - Updated dependencies
507
+ - @scayle/storefront-core@7.8.0
508
+
509
+ ## 7.1.5
510
+
511
+ ### Patch Changes
512
+
513
+ - Updated dependencies
514
+ - @scayle/storefront-core@7.7.1
515
+
516
+ ## 7.1.4
517
+
518
+ ### Patch Changes
519
+
520
+ - Updated dependencies
521
+ - @scayle/storefront-core@7.7.0
522
+
523
+ ## 7.1.3
524
+
525
+ ### Patch Changes
526
+
527
+ - Updated dependencies
528
+ - @scayle/storefront-core@7.6.1
529
+
530
+ ## 7.1.2
531
+
532
+ ### Patch Changes
533
+
534
+ - Updated dependencies
535
+ - @scayle/storefront-core@7.6.0
536
+
537
+ ## 7.1.1
538
+
539
+ ### Patch Changes
540
+
541
+ - Add exports from storefront-core
542
+
543
+ ## 7.1.0
544
+
545
+ ### Minor Changes
546
+
547
+ - - Add possibility to define the session config on application and store level.
548
+ - Add possibility to configure the `domain` attribute of the session cookie
549
+
550
+ ## 7.0.0
551
+
552
+ ### Major Changes
553
+
554
+ - **Changed NPM package names**
555
+
556
+ - **Breaking**: Change package scope and name of `@aboutyou/scayle-sfc-nuxt` to `@scayle/storefront-nuxt2`
557
+ - **Breaking**: Change package scope and name of `@aboutyou/sfc-nuxt3` to `@scayle/storefront-nuxt`
558
+ - **Breaking**: Change package scope and name of `@aboutyou/scayle-sfc-lib` to `@scayle/storefront-core`
559
+ - **Breaking**: Change package scope and name of `@aboutyou/eslint-config-sfc` to `@scayle/eslint-config-storefront`
560
+ - **Breaking**: Change package scope and name of `@aboutyou/prettier-config-sfc` to `@scayle/prettier-config-storefront`
561
+
562
+ _NOTE: Due to the changes of the NPM package scope from `@aboutyou` to `@scayle`,
563
+ it is required to change the consuming projects local `.npmrc` file as follows:_
564
+
565
+ - Before:
566
+
567
+ ```
568
+ @aboutyou:registry=https://gitlab.com/api/v4/packages/npm/
569
+ ```
570
+
571
+ - After:
572
+
573
+ ```
574
+ @aboutyou:registry=https://gitlab.com/api/v4/projects/29746107/packages/npm/
575
+ @scayle:registry=https://gitlab.com/api/v4/projects/29746107/packages/npm/
576
+ ```
577
+
578
+ - **Breaking**: Minimum `node` version raised to `18.15.0`
579
+
580
+ ## 7.0.0-alpha.0
581
+
582
+ ### Major Changes
583
+
584
+ - **Changed NPM package names**
585
+
586
+ - **Breaking**: Change package scope and name of `@aboutyou/scayle-sfc-nuxt` to `@scayle/storefront-nuxt2`
587
+ - **Breaking**: Change package scope and name of `@aboutyou/sfc-nuxt3` to `@scayle/storefront-nuxt`
588
+ - **Breaking**: Change package scope and name of `@aboutyou/scayle-sfc-lib` to `@scayle/storefront-core``
589
+ - **Breaking**: Change package scope and name of `@aboutyou/eslint-config-sfc` to `@scayle/eslint-config-storefront`
590
+ - **Breaking**: Change package scope and name of `@aboutyou/prettier-config-sfc` to `@scayle/prettier-config-storefront`
591
+
592
+ Due to the changes of the NPM package scope from `@aboutyou` to `@scayle`,
593
+ it is required to change the consuming projects local `.npmrc` file as follows:
594
+
595
+ - Before: `@aboutyou:registry=https://gitlab.com/api/v4/packages/npm/`
596
+ - After: `@scayle:registry=https://gitlab.com/api/v4/packages/npm/`
597
+
598
+ - Minimum node version is 18.15.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 SCAYLE GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # Storefront Core Nuxt
2
+
3
+ [![npm version][npm-version-src]][npm-version-href]
4
+ [![npm downloads][npm-downloads-src]][npm-downloads-href]
5
+ [![License][license-src]][license-href]
6
+ [![Nuxt][nuxt-src]][nuxt-href]
7
+
8
+ Nuxt 3 integration for the SCAYLE Commerce Engine and Storefront API
9
+
10
+ ## Quick Setup
11
+
12
+ 1. Add `@scayle/storefront-nuxt` dependency to your project
13
+
14
+ ```bash
15
+ # Using pnpm
16
+ pnpm add -D @scayle/storefront-nuxt
17
+
18
+ # Using yarn
19
+ yarn add --dev @scayle/storefront-nuxt
20
+
21
+ # Using npm
22
+ npm install --save-dev @scayle/storefront-nuxt
23
+ ```
24
+
25
+ 2. Add `@scayle/storefront-nuxt` to the `modules` section of `nuxt.config.ts`
26
+
27
+ ```js
28
+ export default defineNuxtConfig({
29
+ modules: ['@scayle/storefront-nuxt'],
30
+ })
31
+ ```
32
+
33
+ That's it! You can now use Storefront Core Nuxt3 in your Nuxt app ✨
34
+
35
+ ## Development
36
+
37
+ ```bash
38
+ # Install dependencies
39
+ yarn install
40
+
41
+ # Generate type stubs
42
+ yarn dev:prepare
43
+
44
+ # Develop with the playground
45
+ yarn dev
46
+
47
+ # Build the playground
48
+ yarn dev:build
49
+
50
+ # Run ESLint
51
+ yarn lint
52
+
53
+ # Run Vitest
54
+ yarn test
55
+ yarn test:watch
56
+ ```
57
+
58
+ <!-- Badges -->
59
+
60
+ [npm-version-src]: https://img.shields.io/npm/v/@scayle/storefront-nuxt/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
61
+ [npm-version-href]: https://npmjs.com/package/@scayle/storefront-nuxt
62
+ [npm-downloads-src]: https://img.shields.io/npm/dm/@scayle/storefront-nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D
63
+ [npm-downloads-href]: https://npmjs.com/package/@scayle/storefront-nuxt
64
+ [license-src]: https://img.shields.io/npm/l/@scayle/storefront-nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D
65
+ [license-href]: https://npmjs.com/package/@scayle/storefront-nuxt
66
+ [nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
67
+ [nuxt-href]: https://nuxt.com
@@ -0,0 +1,13 @@
1
+ export { e as AdditionalShopConfig, A as AppKeys, d as AuthenticationConfig, B as BapiConfig, b as CacheConfig, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleOptions, O as OauthConfig, P as PublicShopConfig, c as RedirectsConfig, R as RedisConfig, a as SessionConfig, f as ShopConfig, g as ShopConfigIndexed, S as StorageProvider, h as StorefrontConfig } from './shared/storefront-nuxt.9548700f.mjs';
2
+ export { rpcCall } from './rpc.mjs';
3
+ export * from '@scayle/storefront-core';
4
+ import 'nuxt/app';
5
+
6
+ interface RpcMethodsStorefront {
7
+ }
8
+ declare module '@scayle/storefront-core' {
9
+ interface RpcMethodsStorefrontInternal extends RpcMethodsStorefront {
10
+ }
11
+ }
12
+
13
+ export type { RpcMethodsStorefront };
@@ -0,0 +1,13 @@
1
+ export { e as AdditionalShopConfig, A as AppKeys, d as AuthenticationConfig, B as BapiConfig, b as CacheConfig, i as CheckoutEvent, C as CheckoutShopConfig, M as ModuleOptions, O as OauthConfig, P as PublicShopConfig, c as RedirectsConfig, R as RedisConfig, a as SessionConfig, f as ShopConfig, g as ShopConfigIndexed, S as StorageProvider, h as StorefrontConfig } from './shared/storefront-nuxt.9548700f.js';
2
+ export { rpcCall } from './rpc.js';
3
+ export * from '@scayle/storefront-core';
4
+ import 'nuxt/app';
5
+
6
+ interface RpcMethodsStorefront {
7
+ }
8
+ declare module '@scayle/storefront-core' {
9
+ interface RpcMethodsStorefrontInternal extends RpcMethodsStorefront {
10
+ }
11
+ }
12
+
13
+ export type { RpcMethodsStorefront };
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export { rpcCall } from './rpc.mjs';
2
+ export * from '@scayle/storefront-core';
@@ -0,0 +1,5 @@
1
+ module.exports = function(...args) {
2
+ return import('./module.mjs').then(m => m.default.call(this, ...args))
3
+ }
4
+ const _meta = module.exports.meta = require('./module.json')
5
+ module.exports.getMeta = () => Promise.resolve(_meta)