efficient-storefront-blocks 0.127.0 → 0.128.1

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 (63) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-KYIRVDW4.js → CustomHtmlCodeWindow-MSEPX5HA.js} +1 -1
  3. package/dist/chunks/{EditorPreviewCheckout-ZKCDEXJB.js → EditorPreviewCheckout-GQZSREXK.js} +1 -1
  4. package/dist/chunks/SiteEditorProvider-U4Y5HLNK.js +1 -0
  5. package/dist/chunks/{chunk-LFKRQYYH.js → chunk-4HYAKN2G.js} +1 -1
  6. package/dist/chunks/{chunk-KNFNQXH3.js → chunk-4TGKSUNO.js} +1 -1
  7. package/dist/chunks/{chunk-5LNWW4W3.js → chunk-AJHYWZA6.js} +1 -1
  8. package/dist/chunks/{chunk-WFSVFVZX.js → chunk-AZNXYX4W.js} +1 -1
  9. package/dist/chunks/{chunk-FP652PBZ.js → chunk-B22AOLEU.js} +1 -1
  10. package/dist/chunks/{chunk-INU4IUCT.js → chunk-EHNNMX2W.js} +2 -2
  11. package/dist/chunks/{chunk-IEGDV4YL.js → chunk-UJNY3ZUO.js} +1 -1
  12. package/dist/chunks/chunk-YZZMDZT2.js +9 -0
  13. package/dist/chunks/{fitment-data-GPEMPASJ.js → fitment-data-JRGRP6YG.js} +1 -1
  14. package/dist/chunks/{section-css-style-UICZZ7D5.js → section-css-style-GHS565I6.js} +1 -1
  15. package/dist/editor/lib/document/blocks/commerce/ProductPicture/fields.js +1 -1
  16. package/dist/editor/lib/storefront-editor-words.d.ts +1 -4
  17. package/dist/editor/lib/storefront-editor-words.js +1 -1
  18. package/dist/editor.css +1 -1
  19. package/dist/index.js +31 -29
  20. package/dist/render/app/globals.css +1 -1
  21. package/dist/render/built-with.json +1 -1
  22. package/dist/render/components/GridCardTemplate.d.ts +1 -3
  23. package/dist/render/components/GridCardTemplate.js +1 -1
  24. package/dist/render/components/ProductCard.js +1 -1
  25. package/dist/render/components/ProductCardEyebrow.d.ts +0 -1
  26. package/dist/render/components/ProductCardEyebrow.js +1 -1
  27. package/dist/render/components/ProductGridSection.js +1 -1
  28. package/dist/render/components/WheelCardFrame.d.ts +2 -4
  29. package/dist/render/components/WheelCardFrame.js +1 -1
  30. package/dist/render/components/card-pieces/CardPicture.d.ts +1 -12
  31. package/dist/render/components/card-pieces/CardPicture.js +1 -1
  32. package/dist/render/components/card-pieces/CardPrice.d.ts +0 -1
  33. package/dist/render/components/card-pieces/CardPrice.js +1 -1
  34. package/dist/render/components/card-pieces/CardProductBadge.js +1 -1
  35. package/dist/render/components/card-pieces/CardProductPicture.d.ts +0 -1
  36. package/dist/render/components/card-pieces/CardProductPicture.js +1 -1
  37. package/dist/render/components/card-pieces/CardSurfaceFrame.d.ts +1 -2
  38. package/dist/render/components/card-pieces/CardSurfaceFrame.js +1 -1
  39. package/dist/render/components/card-pieces/ProductCardState.d.ts +0 -1
  40. package/dist/render/components/card-pieces/ProductCardState.js +1 -1
  41. package/dist/render/components/card-pieces/useHeldCardPicture.d.ts +1 -3
  42. package/dist/render/components/card-pieces/useHeldCardPicture.js +1 -1
  43. package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
  44. package/dist/render/lib/document/blocks/commerce/ProductPicture/render.js +1 -1
  45. package/dist/render/lib/document/blocks/commerce/ProductPrice/render.js +1 -1
  46. package/dist/render/lib/sections/fill-row.d.ts +1 -9
  47. package/dist/render/lib/sections/fill-row.js +1 -1
  48. package/dist/render/lib/wheels/set-mode.d.ts +0 -15
  49. package/dist/render/lib/wheels/set-mode.js +1 -1
  50. package/dist/routine-index.json +1 -1
  51. package/dist/value-index.json +1 -1
  52. package/dist/words.d.ts +6 -4
  53. package/dist/words.js +4 -4
  54. package/package.json +2 -2
  55. package/dist/chunks/SiteEditorProvider-WQG3BNYV.js +0 -1
  56. package/dist/chunks/chunk-N64MDCTX.js +0 -9
  57. package/dist/render/lib/sections/grid-no-hole.d.ts +0 -17
  58. package/dist/render/lib/sections/grid-no-hole.js +0 -1
  59. /package/dist/chunks/{chunk-VRXNUWWF.js → chunk-AUQKCN7Q.js} +0 -0
  60. /package/dist/chunks/{chunk-FP652PBZ.js.LEGAL.txt → chunk-B22AOLEU.js.LEGAL.txt} +0 -0
  61. /package/dist/chunks/{chunk-INU4IUCT.js.LEGAL.txt → chunk-EHNNMX2W.js.LEGAL.txt} +0 -0
  62. /package/dist/chunks/{chunk-XSDGCHJH.js → chunk-PN7RMJTO.js} +0 -0
  63. /package/dist/chunks/{chunk-DIX2FLX7.js → chunk-POFTB7WN.js} +0 -0
@@ -1,17 +0,0 @@
1
- import { type GridBand } from "./fill-row.js";
2
- export declare const SET_CARD_SINGLE_BELOW: 800;
3
- export declare function packsFull(spans: readonly number[], columns: number): boolean;
4
- export declare function cardsWithoutHole(spans: readonly number[], columns: number, limit: number | undefined, topUp?: boolean): number;
5
- export interface NoHoleBand {
6
- band: GridBand;
7
- cards: number;
8
- tracks: number;
9
- cardTracks?: boolean;
10
- }
11
- export declare function noHoleBands(gridClass: string, spans: readonly number[], limit: number | undefined, topUp?: boolean): NoHoleBand[];
12
- export declare function showsASetCard(spans: readonly number[], limit: number | undefined): boolean;
13
- export declare const ONE_WHEEL_MARK = "[data-set-picture=one]";
14
- export declare const pairScope: (cls: string) => string;
15
- export declare const oneWheelScope: (cls: string) => string;
16
- export declare function hiddenCardsRule(cls: string, from: number): string;
17
- export declare function noHoleCss(cls: string, bands: readonly NoHoleBand[], cards: number): string;
@@ -1 +0,0 @@
1
- import{gridBands as l,gridColumnsOf as d,gridTracks as p,hasCardTracks as x,inBand as m}from"./fill-row.js";import{VIEW_LINE_PX as w}from"efficient-web-builder/format/lib/content/view-lines";const k=w["view-wide"];function M(t,e){const n=[],s=(o,r,a)=>{for(let c=r;c<r+a;c++)if(n[o][c])return!1;return!0};for(const o of t){const r=Math.max(1,Math.min(e,o));for(let a=0;;a++){n[a]??=Array(e).fill(!1);let c=0;for(;c+r<=e&&!s(a,c,r);)c++;if(!(c+r>e)){for(let i=c;i<c+r;i++)n[a][i]=!0;break}}}return n.every(o=>o.every(Boolean))}const f=(t,e)=>t.reduce((n,s)=>n+Math.max(1,Math.min(e,s)),0),u=(t,e)=>M(t,Math.min(e,Math.max(1,f(t,e))));function $(t,e,n,s=!0){const o=Math.min(t.length,n&&n>0?n:t.length);if(o===0||u(t.slice(0,o),e))return o;if(s){for(let r=o+1;r<=t.length;r++)if(u(t.slice(0,r),e))return r}for(let r=o-1;r>=1;r--)if(u(t.slice(0,r),e))return r;return o}const E=(t,e)=>e.max!==void 0&&e.max<=k?t.map(()=>1):t;function C(t,e,n,s=!0){const o=x(t);return l(d(t)).map(r=>{const a=E(e,r),c=$(a,r.columns,n,s),i=f(a.slice(0,c),r.columns);return{band:r,cards:c,tracks:Math.min(r.columns,Math.max(1,i)),...o?{cardTracks:o}:{}}})}function I(t,e){return t.slice(0,e&&e>0?e:t.length).some(n=>n>1)}const h="[data-set-picture=one]",S=t=>`${t}:where(:not(:has(${h})))`,T=t=>`${t}:where(:has(${h}))`;function g(t,e){return`.${t} > *:nth-child(n+${e}){display:none!important}`}function W(t,e,n){const s=[`.${t}{grid-auto-flow:row dense}`];for(const{band:o,cards:r,tracks:a,cardTracks:c}of e){const i=[];r<n&&i.push(g(t,r+1)),a<o.columns&&i.push(`.${t}.${t}{${p(a,c)}}`),s.push(m(o,i))}return s.join("")}export{h as ONE_WHEEL_MARK,k as SET_CARD_SINGLE_BELOW,$ as cardsWithoutHole,g as hiddenCardsRule,C as noHoleBands,W as noHoleCss,T as oneWheelScope,M as packsFull,S as pairScope,I as showsASetCard};