efficient-storefront-blocks 0.130.0 → 0.130.2

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,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.130.2 — 2026-11-25 — The site header's bottom line follows its Border thickness setting
4
+
5
+ **For hosts:** no peer change. The storefront re-vendors `src/` with
6
+ `node scripts/sync-storefront-blocks.mjs`, then runs `just check`.
7
+
8
+ - **The site header's bottom line follows "Border thickness"** (SG#03510): the
9
+ Header settings' `border_thickness` (0–20 px) now sets the width of the
10
+ header's bottom border on the live site and in the editor preview, where it
11
+ was always a 1px hairline. 0 removes the line; a payload without the key
12
+ still draws 1px. Its colour (transparent at the top, the line colour once
13
+ solid) is unchanged. The Box header is unchanged.
14
+
15
+ ## 0.130.1 — 2026-11-25 — No empty band under an own-box heading on product-page card and tyre sections
16
+
17
+ **For hosts:** no breaking change, no peer change. The storefront re-vendors
18
+ `src/` with `node scripts/sync-storefront-blocks.mjs`.
19
+
20
+ - **With its words in a Box of their own** (`headPlacement: "own-box"`), the
21
+ card band of Related Products and of a bound Product Grid keeps no room
22
+ above the cards; the room below stays. It drew 120 px (phone 80) above the
23
+ cards, under the heading's own Box, so the page showed an empty band about
24
+ 144 px tall.
25
+ - **The tyre band does the same** (Compatible Tyres, and a tyre answer of
26
+ Related Products or a bound Product Grid).
27
+ - Both now read the product page's one 120/80 band pair, the one the Spec
28
+ Table and the Fitment Table read. A section that draws its own head keeps
29
+ 120 px above and below, byte for byte.
30
+
3
31
  ## 0.130.0 — 2026-11-25 — The 360° view reads WebP sprite sheets
4
32
 
5
33
  **For hosts:** breaking for a host that builds a `SpinSet` by hand: it now
@@ -5,4 +5,6 @@ export type { PreviewHeaderSettings };
5
5
  export declare function loadHeaderSettings(token: string, siteId?: string | null, force?: boolean): Promise<AdminHeaderSettings>;
6
6
  export declare function primeHeaderSettings(s: AdminHeaderSettings, siteId?: string | null): void;
7
7
  export declare function clearHeaderSettingsCache(siteId?: string | null): void;
8
- export declare function toPreviewHeaderSettings(s: AdminHeaderSettings): PreviewHeaderSettings & HeaderCall;
8
+ export declare function toPreviewHeaderSettings(s: AdminHeaderSettings): PreviewHeaderSettings & HeaderCall & {
9
+ borderThickness?: number | null;
10
+ };
@@ -1 +1 @@
1
- import{storefrontAdmin as a}from"../../render/lib/api/index.js";import{absolutizeApiUrl as u}from"efficient-web-builder/render/lib/media";const t=new Map,i=e=>e??"";function p(e,r,l=!1){const n=i(r);l&&t.delete(n);let o=t.get(n);return o||(o=a.getHeaderSettings(e,r??void 0),t.set(n,o),o.catch(()=>{t.get(n)===o&&t.delete(n)})),o}function g(e,r){t.set(i(r),Promise.resolve(e))}function s(e){t.delete(i(e))}function m(e){return{logoUrl:u(e.effective_logo_url),reverseLogo:e.reverse_logo,logoPosition:e.logo_position,logoSize:e.logo_size,logoSizePx:e.logo_size_px,logoSizeUnit:e.logo_size_unit??null,menuItems:e.menu_items??[],menuSplit:e.menu_split??3,menuPosition:e.menu_position,menuRow:e.menu_row,menuGapPx:e.menu_gap_px??null,menuGapUnit:e.menu_gap_unit??null,searchEnabled:e.search_enabled,searchPosition:e.search_position,searchRow:e.search_row,countrySelectorEnabled:e.country_selector_enabled,countrySelectorShowAs:e.country_selector_show_as,countryUrls:e.country_urls??{},accountEnabled:e.account_enabled??!0,cartEnabled:e.cart_enabled??!0,utilStyle:e.util_style,navTextCase:e.nav_text_case,lightReverseText:e.light_reverse_text,topTextColor:e.top_text_color,transparentTop:e.transparent_top,surface:e.surface,theme:e.theme,width:e.width,heightPx:e.height_px,sticky:e.sticky,callButton:e.call_button??!1}}export{s as clearHeaderSettingsCache,p as loadHeaderSettings,g as primeHeaderSettings,m as toPreviewHeaderSettings};
1
+ import{storefrontAdmin as a}from"../../render/lib/api/index.js";import{absolutizeApiUrl as c}from"efficient-web-builder/render/lib/media";const t=new Map,i=e=>e??"";function s(e,r,l=!1){const n=i(r);l&&t.delete(n);let o=t.get(n);return o||(o=a.getHeaderSettings(e,r??void 0),t.set(n,o),o.catch(()=>{t.get(n)===o&&t.delete(n)})),o}function p(e,r){t.set(i(r),Promise.resolve(e))}function g(e){t.delete(i(e))}function m(e){return{logoUrl:c(e.effective_logo_url),reverseLogo:e.reverse_logo,logoPosition:e.logo_position,logoSize:e.logo_size,logoSizePx:e.logo_size_px,logoSizeUnit:e.logo_size_unit??null,menuItems:e.menu_items??[],menuSplit:e.menu_split??3,menuPosition:e.menu_position,menuRow:e.menu_row,menuGapPx:e.menu_gap_px??null,menuGapUnit:e.menu_gap_unit??null,searchEnabled:e.search_enabled,searchPosition:e.search_position,searchRow:e.search_row,countrySelectorEnabled:e.country_selector_enabled,countrySelectorShowAs:e.country_selector_show_as,countryUrls:e.country_urls??{},accountEnabled:e.account_enabled??!0,cartEnabled:e.cart_enabled??!0,utilStyle:e.util_style,navTextCase:e.nav_text_case,lightReverseText:e.light_reverse_text,topTextColor:e.top_text_color,transparentTop:e.transparent_top,surface:e.surface,theme:e.theme,width:e.width,heightPx:e.height_px,borderThickness:e.border_thickness,sticky:e.sticky,callButton:e.call_button??!1}}export{g as clearHeaderSettingsCache,s as loadHeaderSettings,p as primeHeaderSettings,m as toPreviewHeaderSettings};