efficient-storefront-blocks 0.92.0 → 0.94.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.
Files changed (85) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/chunks/{EditorPreviewCheckout-VHPWPS3N.js → EditorPreviewCheckout-OPDSFBJH.js} +1 -1
  3. package/dist/chunks/{SiteEditorProvider-C4HT4BT4.js → SiteEditorProvider-ZP6NAWYT.js} +1 -1
  4. package/dist/chunks/{chunk-RAOSZKA3.js → chunk-ATCBSW73.js} +1 -1
  5. package/dist/chunks/{chunk-7L5DVQZ4.js → chunk-CEFKTE5A.js} +1 -1
  6. package/dist/chunks/chunk-JKJ76CRT.js +388 -0
  7. package/dist/chunks/chunk-JTDOMQMQ.js +1 -0
  8. package/dist/chunks/{fitment-data-URJZ24LU.js → fitment-data-IPAMN5IH.js} +1 -1
  9. package/dist/editor/components/GalleryPicturesSource.d.ts +4 -16
  10. package/dist/editor/components/GalleryPicturesSource.js +1 -1
  11. package/dist/editor/components/GalleryProductBinding.js +1 -1
  12. package/dist/editor/components/GalleryShowcaseSource.js +1 -1
  13. package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/commerce/ProductPicture/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
  16. package/dist/editor/lib/storefront-document.js +1 -1
  17. package/dist/editor/lib/storefront-editor-words-kept.js +1 -1
  18. package/dist/editor/lib/storefront-editor-words.d.ts +4 -7
  19. package/dist/editor/lib/storefront-editor-words.js +1 -1
  20. package/dist/index.js +74 -80
  21. package/dist/links.js +1 -1
  22. package/dist/render/app/globals.css +42 -3
  23. package/dist/render/built-with.json +1 -1
  24. package/dist/render/components/DefaultProductHero.d.ts +12 -0
  25. package/dist/render/components/DefaultProductHero.js +1 -0
  26. package/dist/render/components/GridCardTemplate.d.ts +10 -6
  27. package/dist/render/components/GridCardTemplate.js +1 -1
  28. package/dist/render/components/ProductGridSection.js +1 -1
  29. package/dist/render/components/ProductHeroPanel.d.ts +2 -1
  30. package/dist/render/components/ProductHeroPanel.js +1 -1
  31. package/dist/render/components/PublishedFooter.js +1 -1
  32. package/dist/render/components/PublishedHeader.js +1 -1
  33. package/dist/render/components/card-pieces/CardBuyButton.js +1 -1
  34. package/dist/render/components/card-pieces/CardName.js +1 -1
  35. package/dist/render/components/card-pieces/CardProductPicture.d.ts +3 -0
  36. package/dist/render/components/card-pieces/CardProductPicture.js +1 -1
  37. package/dist/render/components/card-pieces/CardSizes.d.ts +10 -2
  38. package/dist/render/components/card-pieces/CardSizes.js +1 -1
  39. package/dist/render/components/card-pieces/CardSpecs.d.ts +2 -0
  40. package/dist/render/components/card-pieces/CardSpecs.js +1 -1
  41. package/dist/render/components/card-pieces/ProductCardState.d.ts +14 -4
  42. package/dist/render/components/card-pieces/ProductCardState.js +1 -1
  43. package/dist/render/components/catalog/ShopperChips.js +1 -1
  44. package/dist/render/components/pdp-dynamic/DynamicGalleryGrid.js +1 -1
  45. package/dist/render/components/useProductCatalog.d.ts +1 -0
  46. package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +1 -1
  47. package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
  48. package/dist/render/lib/api/types.d.ts +1 -0
  49. package/dist/render/lib/content/hero-option-seed.d.ts +28 -0
  50. package/dist/render/lib/content/hero-option-seed.js +1 -0
  51. package/dist/render/lib/content/product-card-seed.d.ts +12 -0
  52. package/dist/render/lib/content/product-card-seed.js +1 -1
  53. package/dist/render/lib/document/blocks/commerce/ProductEyebrow/render.js +1 -1
  54. package/dist/render/lib/document/blocks/commerce/ProductHero/meta.d.ts +4 -0
  55. package/dist/render/lib/document/blocks/commerce/ProductHero/meta.js +1 -1
  56. package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
  57. package/dist/render/lib/document/blocks/commerce/ProductPicture/render.js +1 -1
  58. package/dist/render/lib/document/blocks/commerce/ProductSpecs/render.js +1 -1
  59. package/dist/render/lib/document/blocks/service/SiteHeader/render.js +1 -1
  60. package/dist/render/lib/document/card-templates.js +1 -1
  61. package/dist/render/lib/document/published-header-bar.d.ts +10 -0
  62. package/dist/render/lib/document/published-header-bar.js +1 -0
  63. package/dist/render/lib/document/section-to-box-rows-service.js +1 -1
  64. package/dist/render/lib/logo/surface-is-light.js +1 -1
  65. package/dist/render/lib/sections/card-tone.d.ts +9 -0
  66. package/dist/render/lib/sections/card-tone.js +1 -0
  67. package/dist/render/lib/sections/filter-option-rows.d.ts +14 -0
  68. package/dist/render/lib/sections/filter-option-rows.js +1 -1
  69. package/dist/render/lib/sections/product-pictures.d.ts +3 -0
  70. package/dist/render/lib/sections/product-pictures.js +1 -1
  71. package/dist/render/lib/wheels/plp-hydrate.d.ts +4 -1
  72. package/dist/render/lib/wheels/plp-hydrate.js +1 -1
  73. package/dist/words.d.ts +19 -7
  74. package/dist/words.js +5 -5
  75. package/package.json +4 -4
  76. package/dist/chunks/chunk-PW7BA4ZJ.js +0 -1
  77. package/dist/chunks/chunk-S2WLJ6H2.js +0 -388
  78. package/dist/render/components/TyrePlpCard.d.ts +0 -20
  79. package/dist/render/components/TyrePlpCard.js +0 -1
  80. package/dist/render/components/TyreSummaryCard.d.ts +0 -12
  81. package/dist/render/components/TyreSummaryCard.js +0 -1
  82. package/dist/render/lib/document/published-chrome-data.d.ts +0 -2
  83. package/dist/render/lib/document/published-chrome-data.js +0 -1
  84. /package/dist/chunks/{chunk-S2WLJ6H2.js.LEGAL.txt → chunk-JKJ76CRT.js.LEGAL.txt} +0 -0
  85. /package/dist/chunks/{chunk-JB6ISWYA.js → chunk-LRLOANKA.js} +0 -0
@@ -1,20 +0,0 @@
1
- import { type FieldUsageAnswer } from "../lib/content/field-usage.js";
2
- export interface TyrePlpCardProps {
3
- brand?: string | null;
4
- brandLogo?: string | null;
5
- brandPlate?: boolean;
6
- kindLabel?: string | null;
7
- showBrand?: boolean;
8
- fieldUsage?: readonly FieldUsageAnswer[];
9
- cardImage?: number | null;
10
- name: string;
11
- slug?: string | null;
12
- sizes: string[];
13
- fitSize?: string | null;
14
- rimDiameters: number[];
15
- prices?: Record<string, number | null>;
16
- image?: string | null;
17
- currency: string;
18
- editing?: boolean;
19
- }
20
- export default function TyrePlpCard({ brand, brandLogo, brandPlate, kindLabel, showBrand, name, slug, sizes, fitSize, rimDiameters, prices, image, currency, editing, fieldUsage, cardImage, }: TyrePlpCardProps): import("react").JSX.Element;
@@ -1 +0,0 @@
1
- "use client";import{jsx as r}from"react/jsx-runtime";import w from"./BrandPlate.js";import C from"./card-pieces/CardBuyButton.js";import P from"./card-pieces/CardFinishSwatches.js";import b from"./card-pieces/CardPrice.js";import S from"./card-pieces/CardSizes.js";import{TyreCardStateProvider as k,useProductCardState as x}from"./card-pieces/ProductCardState.js";import{productCardEyebrow as z}from"./ProductCardEyebrow.js";import B from"./TyreImage.js";import T from"./WheelCardFrame.js";import{cardImageShapeTokens as L}from"efficient-web-builder/format/lib/content/card-image-shape";import{keepForCard as E,NO_FIELD_ANSWERS as F}from"../lib/content/field-usage.js";import{tyreModelLine as I}from"../lib/tyres/tyre-brand-name.js";import{formatSizeRange as j}from"../lib/wheels/size-range.js";function _(t){const e=L(t);return Object.keys(e).length>0?e:void 0}function v({brand:t,brandLogo:e,brandPlate:s=!0,kindLabel:d=null,showBrand:l=!0,name:i,slug:u,sizes:p,fitSize:o=null,rimDiameters:a,prices:c,image:f,currency:n,editing:y=!1,fieldUsage:h=F,cardImage:m}){return r(k,{tyre:{brand:t,brandLogo:e,name:i,slug:u,sizes:p,fitSize:o,rimDiameters:a,prices:c,image:f},currency:n,editing:y,children:r(N,{brandPlate:s,kindLabel:d,showBrand:l,fieldUsage:h,cardImage:m})})}function N({brandPlate:t,kindLabel:e,showBrand:s,fieldUsage:d,cardImage:l}){const i=x();if(i.kind!=="tyre")throw new Error("TyrePlpCard drew outside its own tyre state.");const{tyre:u,pagePath:p,arm:o}=i,{brand:a,brandLogo:c,name:f,sizes:n,rimDiameters:y,image:h}=u,m=E(d),g=[n.length>0?`${n.length} ${n.length===1?"size":"sizes"}`:null,m("rim_diameter")?j(y):null].filter(Boolean).join(" · ");return r(T,{href:p,identityLink:!0,containerProps:{style:_(l),onPointerEnter:o,onTouchStart:o,onFocusCapture:o},image:r(B,{image:h,className:"h-full w-full",sizes:"(max-width: 640px) 90vw, (max-width: 1024px) 45vw, 280px",showBackground:!1}),plate:t?r(w,{brand:a,logo:c}):null,eyebrow:z(e,s&&m("brand")&&a||null),name:I(a??"",f),spec:g,price:r(b,{}),swatches:r(P,{}),sizes:r(S,{}),buy:r(C,{})})}export{v as default};
@@ -1,12 +0,0 @@
1
- import type { TyreProductSummary } from "../lib/api/index.js";
2
- import type { FieldUsageAnswer } from "../lib/content/field-usage.js";
3
- export default function TyreSummaryCard({ item, currency, kindLabel, showBrand, fitSize, editing, fieldUsage, cardImage, }: {
4
- item: TyreProductSummary;
5
- currency: string;
6
- fitSize?: string | null;
7
- kindLabel?: string | null;
8
- showBrand?: boolean;
9
- editing?: boolean;
10
- fieldUsage?: readonly FieldUsageAnswer[];
11
- cardImage?: number | null;
12
- }): import("react").JSX.Element;
@@ -1 +0,0 @@
1
- "use client";import{jsx as o}from"react/jsx-runtime";import u from"./TyrePlpCard.js";function g({item:r,currency:e,kindLabel:a=null,showBrand:s=!0,fitSize:n=null,editing:d=!1,fieldUsage:i,cardImage:l}){return o(u,{brand:r.brand,brandLogo:r.brandLogo,kindLabel:a,showBrand:s,name:r.name,slug:r.slug,sizes:r.sizes,fitSize:n,rimDiameters:r.rimDiameters,prices:r.prices,image:r.coverImage,currency:e,editing:d,fieldUsage:i,cardImage:l})}export{g as default};
@@ -1,2 +0,0 @@
1
- import type { Data } from "efficient-easel/blocks";
2
- export declare function publishedChromeData(data: Data): Data;
@@ -1 +0,0 @@
1
- import{migrateRenamedProps as o}from"efficient-web-builder/format/lib/document/renamed-props";import{dropEmptySourcedBoxes as m}from"efficient-web-builder/render/lib/document/head-core-boxes";import{markWallLabels as e}from"efficient-web-builder/render/lib/document/wall-labels";function i(r){return e(m(o(r)))}export{i as publishedChromeData};