@wocart/theme 2.3.0 → 3.1.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
@@ -5,6 +5,48 @@ All notable changes to `@wocart/theme` are recorded here. The package follows
5
5
  major version, and an export is marked `@deprecated` for at least one minor
6
6
  release before a major removes it.
7
7
 
8
+ ## 3.1.0 — 2026-10-31
9
+
10
+ Landing pages are composed pages, each with its own document, and a page can
11
+ leave out the header or the footer.
12
+
13
+ ### Added
14
+
15
+ - `landingSurface(id)`: a landing page's own document is stored as
16
+ `lp:<id>`. `templateSurface(surface)` names the surface it follows: the
17
+ theme's `landing` surface gives every landing page its rules, its sections
18
+ and its starting document. `resolveSurfaceDocument`, `checkPageData`, the
19
+ document operations, `isInsertableOn` and `previewTarget` read an `lp:`
20
+ document by it; `LANDING_TEMPLATE` is its key.
21
+ - `SurfaceSpec.hideableAreas`: the areas a page of that surface may leave
22
+ out. `PageData.hiddenAreas` lists the ones it does; read it with
23
+ `isAreaShown(theme, page, key)`, change it with `setAreaHidden`, and list
24
+ the choices with `hideableAreas(theme, surface)`. The manifest carries it.
25
+
26
+ ### Changed
27
+
28
+ - A theme's `landing` surface renders the `landing` page type, a landing
29
+ page type is composed only by the `landing` surface, and, like a product
30
+ surface, it must always render an order form. A surface key cannot start
31
+ with `lp:` or `area:`.
32
+
33
+ ## 3.0.0 — 2026-10-30
34
+
35
+ A store's images can live on any media host: the image service takes the
36
+ store's media delivery instead of a media domain.
37
+
38
+ ### Changed (breaking)
39
+
40
+ - `mediaImageService(delivery)` takes a function answering the store's
41
+ `MediaDelivery` (`StoreConfig.media`), or a promise of it, instead of a
42
+ media domain; it resizes with the delivery's own resizer (ImageKit or
43
+ Cloudflare) and passes every image through for a `direct` delivery.
44
+ - Peer `@wocart/storefront` `^2.0.0`.
45
+
46
+ ### Changed
47
+
48
+ - The README is short and points to the documentation at docs.wocart.store.
49
+
8
50
  ## 2.3.0 — 2026-10-24
9
51
 
10
52
  ### Added