@zenky/storefront-vue 0.10.7 → 0.10.9
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 +10 -0
- package/README.md +4 -18
- package/dist/cart/index.d.ts +167 -160
- package/dist/cart/index.js +7 -7
- package/dist/catalog/index.d.ts +18 -21
- package/dist/catalog/index.js +2 -2
- package/dist/{chunk-RO25KNM5.js → chunk-2Y6QTHXI.js} +2 -2
- package/dist/chunk-2Y6QTHXI.js.map +1 -0
- package/dist/{chunk-5YD4AIY2.js → chunk-46FNHMWC.js} +4 -4
- package/dist/chunk-46FNHMWC.js.map +1 -0
- package/dist/{chunk-Z3IW4ODZ.js → chunk-6QCFHSLX.js} +2 -2
- package/dist/chunk-6QCFHSLX.js.map +1 -0
- package/dist/{chunk-2SMSLZ6G.js → chunk-AVES4WJZ.js} +15 -11
- package/dist/chunk-AVES4WJZ.js.map +1 -0
- package/dist/{chunk-4IFPVEO7.js → chunk-BUNI6MGH.js} +3 -3
- package/dist/chunk-BUNI6MGH.js.map +1 -0
- package/dist/{chunk-PTMSPB34.js → chunk-FXKG5TFQ.js} +3 -3
- package/dist/chunk-FXKG5TFQ.js.map +1 -0
- package/dist/{chunk-MOG6UMFM.js → chunk-GILJFP55.js} +2 -2
- package/dist/chunk-GILJFP55.js.map +1 -0
- package/dist/{chunk-2CI4RW7V.js → chunk-GLQXTMVW.js} +2 -2
- package/dist/{chunk-2CI4RW7V.js.map → chunk-GLQXTMVW.js.map} +1 -1
- package/dist/{chunk-MZ66ARDL.js → chunk-GXDTRTUT.js} +2 -2
- package/dist/chunk-GXDTRTUT.js.map +1 -0
- package/dist/{chunk-E3G7NGCH.js → chunk-KFCO46RB.js} +2 -2
- package/dist/{chunk-E3G7NGCH.js.map → chunk-KFCO46RB.js.map} +1 -1
- package/dist/{chunk-VFMVQR6Y.js → chunk-QZ3S3NN3.js} +5 -3
- package/dist/chunk-QZ3S3NN3.js.map +1 -0
- package/dist/{chunk-B3UU7HF5.js → chunk-RF4ML3Q3.js} +47 -7
- package/dist/chunk-RF4ML3Q3.js.map +1 -0
- package/dist/{chunk-NG7RUIWW.js → chunk-RK5CGOM7.js} +2 -2
- package/dist/chunk-RK5CGOM7.js.map +1 -0
- package/dist/{chunk-Z247QRDJ.js → chunk-XULHV6SS.js} +3 -3
- package/dist/chunk-XULHV6SS.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +14 -14
- package/dist/money/index.d.ts +8 -8
- package/dist/money/index.js +1 -1
- package/dist/order/index.d.ts +3 -3
- package/dist/order/index.js.map +1 -1
- package/dist/pagination/index.d.ts +29 -37
- package/dist/pagination/index.js.map +1 -1
- package/dist/ports/index.d.ts +23 -22
- package/dist/ports/index.js +1 -1
- package/dist/products/index.d.ts +20 -9
- package/dist/products/index.js +3 -3
- package/dist/promotions/index.d.ts +5 -5
- package/dist/promotions/index.js +3 -3
- package/dist/seo/index.d.ts +14 -12
- package/dist/seo/index.js +5 -5
- package/dist/seo/index.js.map +1 -1
- package/dist/snippets/index.js +1 -1
- package/dist/stores/index.d.ts +4 -5
- package/dist/stores/index.js +4 -4
- package/dist/theme/index.d.ts +3 -3
- package/dist/theme/index.js +1 -1
- package/dist/utils/index.d.ts +16 -16
- package/dist/utils/index.js +1 -1
- package/docs/architecture.md +84 -0
- package/docs/consumer-setup.md +13 -54
- package/docs/ports.md +12 -13
- package/package.json +1 -1
- package/dist/chunk-2SMSLZ6G.js.map +0 -1
- package/dist/chunk-4IFPVEO7.js.map +0 -1
- package/dist/chunk-5YD4AIY2.js.map +0 -1
- package/dist/chunk-B3UU7HF5.js.map +0 -1
- package/dist/chunk-MOG6UMFM.js.map +0 -1
- package/dist/chunk-MZ66ARDL.js.map +0 -1
- package/dist/chunk-NG7RUIWW.js.map +0 -1
- package/dist/chunk-PTMSPB34.js.map +0 -1
- package/dist/chunk-RO25KNM5.js.map +0 -1
- package/dist/chunk-VFMVQR6Y.js.map +0 -1
- package/dist/chunk-Z247QRDJ.js.map +0 -1
- package/dist/chunk-Z3IW4ODZ.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,16 @@ All notable changes to this project are documented in this file. The format foll
|
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
|
+
- `useProductList` — fetches a page of products for a category or collection, with the
|
|
12
|
+
include list that keeps per-stock pricing working (`variants.prices`). Three call sites
|
|
13
|
+
in the consuming app built this fetch by hand and had drifted apart; one of them was
|
|
14
|
+
missing `variants.prices` and silently showed every product's store-wide price instead
|
|
15
|
+
of the price of the stock the customer was actually browsing.
|
|
16
|
+
|
|
17
|
+
## 0.10.7 - 2026-08-02
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
11
21
|
- `useProductDetail` — catalog-first lookup plus the API fallback for a single product,
|
|
12
22
|
with the include list it actually needs (`variants.options`, so the variant picker does
|
|
13
23
|
not collapse to the first variant; `images`, so a product reached only through the
|
package/README.md
CHANGED
|
@@ -119,7 +119,7 @@ Pinia falls back to its module-level active instance. Under concurrent SSR that
|
|
|
119
119
|
belongs to whichever request touched it last, so the lookup succeeds with another user's
|
|
120
120
|
state instead of failing.
|
|
121
121
|
|
|
122
|
-
Two cases behave differently
|
|
122
|
+
Two cases behave differently:
|
|
123
123
|
|
|
124
124
|
- **Inside a store action — safe.** Pinia activates the action's own instance for the
|
|
125
125
|
duration of the call, so resolving another store there returns the right one.
|
|
@@ -163,7 +163,9 @@ import {
|
|
|
163
163
|
|
|
164
164
|
The full public contract, adapter examples, SSR lifecycle, and security boundary are in
|
|
165
165
|
[Runtime Ports](docs/ports.md). For a step-by-step consumer integration and upgrade
|
|
166
|
-
checklist, see [Consumer Setup](docs/consumer-setup.md).
|
|
166
|
+
checklist, see [Consumer Setup](docs/consumer-setup.md). For a map of what lives in each
|
|
167
|
+
domain folder and how to decide whether new logic belongs here or in the consumer app,
|
|
168
|
+
see [Architecture](docs/architecture.md).
|
|
167
169
|
|
|
168
170
|
## Subpath Imports
|
|
169
171
|
|
|
@@ -248,22 +250,6 @@ npm run check:runtime # import all entries in SSR + reject Node-only output
|
|
|
248
250
|
npm run check:size # enforce gzip bundle budgets
|
|
249
251
|
```
|
|
250
252
|
|
|
251
|
-
### Local linking with yalc
|
|
252
|
-
|
|
253
|
-
To iterate on an unreleased change without cutting a version, link the package into a
|
|
254
|
-
consumer app with [yalc](https://github.com/wclr/yalc):
|
|
255
|
-
|
|
256
|
-
```bash
|
|
257
|
-
# in this package, after a build:
|
|
258
|
-
npx yalc publish
|
|
259
|
-
|
|
260
|
-
# in the consumer app:
|
|
261
|
-
npx yalc add @zenky/storefront-vue
|
|
262
|
-
|
|
263
|
-
# after each change here:
|
|
264
|
-
npm run build && npx yalc push
|
|
265
|
-
```
|
|
266
|
-
|
|
267
253
|
## Package Scripts
|
|
268
254
|
|
|
269
255
|
- `build` — bundle the multi-entry ESM package with tsup.
|