efficient-storefront-blocks 0.78.0 → 0.80.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 +26 -0
- package/dist/chunks/EditorPreviewCheckout-PSONSVRR.js +4 -0
- package/dist/chunks/{SiteEditorProvider-YTZPWUDV.js → SiteEditorProvider-PWHW2UA6.js} +1 -1
- package/dist/chunks/{chunk-4O66UMLS.js → chunk-3Q66B5NU.js} +1 -1
- package/dist/chunks/chunk-6MHGEO3D.js +320 -0
- package/dist/chunks/chunk-MCCDGDRW.js +1 -0
- package/dist/chunks/chunk-X5W6GJLI.js +1 -0
- package/dist/chunks/{fitment-data-VU5A7VKV.js → fitment-data-Q2TJ6FBU.js} +1 -1
- package/dist/contract.js +2 -2
- package/dist/editor/lib/document/blocks/commerce/ProductColour/fields.d.ts +2 -0
- package/dist/editor/lib/document/blocks/commerce/ProductColour/fields.js +1 -0
- package/dist/editor/lib/document/blocks/commerce/ProductPrice/fields.d.ts +2 -0
- package/dist/editor/lib/document/blocks/commerce/ProductPrice/fields.js +1 -0
- package/dist/editor/lib/document/blocks/commerce/ProductSize/fields.d.ts +2 -0
- package/dist/editor/lib/document/blocks/commerce/ProductSize/fields.js +1 -0
- package/dist/editor/lib/document/blocks/commerce/SpecTable/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
- package/dist/editor/lib/document/blocks/commerce/index.js +1 -1
- package/dist/editor/lib/document/blocks/service/ContactCards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterEmailSignup/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/FooterMessaging/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/MessagingCards/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/OpeningHours/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/RateTable/fields.js +1 -1
- package/dist/editor/lib/document/box-header.d.ts +1 -1
- package/dist/editor/lib/document/config.d.ts +1 -0
- package/dist/editor/lib/document/config.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +0 -1
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +28 -34
- package/dist/links.js +1 -1
- package/dist/render/app/globals.css +46 -1
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/EuTyreLabelCard.js +1 -1
- package/dist/render/components/ProductCard.js +1 -1
- package/dist/render/components/SpecTable.d.ts +2 -1
- package/dist/render/components/SpecTable.js +1 -1
- package/dist/render/components/WheelCardFrame.d.ts +3 -15
- package/dist/render/components/WheelCardFrame.js +1 -1
- package/dist/render/components/card-pieces/CardEyebrow.d.ts +6 -0
- package/dist/render/components/card-pieces/CardEyebrow.js +1 -0
- package/dist/render/components/card-pieces/CardName.d.ts +4 -0
- package/dist/render/components/card-pieces/CardName.js +1 -0
- package/dist/render/components/card-pieces/CardPicture.d.ts +18 -0
- package/dist/render/components/card-pieces/CardPicture.js +1 -0
- package/dist/render/components/card-pieces/CardSpecs.d.ts +20 -0
- package/dist/render/components/card-pieces/CardSpecs.js +1 -0
- package/dist/render/components/card-pieces/HostPart.d.ts +6 -0
- package/dist/render/components/card-pieces/HostPart.js +1 -0
- package/dist/render/components/card-pieces/ProductCardState.d.ts +1 -0
- package/dist/render/components/card-pieces/ProductCardState.js +1 -1
- package/dist/render/components/checkout/checkout-state.js +3 -3
- package/dist/render/components/pdp-dynamic/DynamicSpecTable.d.ts +1 -0
- package/dist/render/components/pdp-dynamic/DynamicSpecTable.js +1 -1
- package/dist/render/components/wheels-plp/PlpCard.d.ts +1 -1
- package/dist/render/components/wheels-plp/PlpCard.js +1 -1
- package/dist/render/lib/api/index.d.ts +3 -0
- package/dist/render/lib/api/index.js +1 -1
- package/dist/render/lib/api/types.d.ts +46 -0
- package/dist/render/lib/checkout/pay-first.d.ts +5 -1
- package/dist/render/lib/checkout/pay-first.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductColour/meta.d.ts +2 -0
- package/dist/render/lib/document/blocks/commerce/ProductColour/meta.js +1 -0
- package/dist/render/lib/document/blocks/commerce/ProductColour/render.d.ts +2 -0
- package/dist/render/lib/document/blocks/commerce/ProductColour/render.js +1 -0
- package/dist/render/lib/document/blocks/commerce/ProductPrice/meta.d.ts +2 -0
- package/dist/render/lib/document/blocks/commerce/ProductPrice/meta.js +1 -0
- package/dist/render/lib/document/blocks/commerce/ProductPrice/render.d.ts +2 -0
- package/dist/render/lib/document/blocks/commerce/ProductPrice/render.js +1 -0
- package/dist/render/lib/document/blocks/commerce/ProductSize/meta.d.ts +2 -0
- package/dist/render/lib/document/blocks/commerce/ProductSize/meta.js +1 -0
- package/dist/render/lib/document/blocks/commerce/ProductSize/render.d.ts +2 -0
- package/dist/render/lib/document/blocks/commerce/ProductSize/render.js +1 -0
- package/dist/render/lib/document/blocks/commerce/SpecTable/meta.d.ts +6 -0
- package/dist/render/lib/document/blocks/commerce/SpecTable/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/SpecTable/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/metas.d.ts +3 -0
- package/dist/render/lib/document/blocks/commerce/metas.js +1 -1
- package/dist/render/lib/document/blocks/commerce/renders.d.ts +3 -0
- package/dist/render/lib/document/blocks/commerce/renders.js +1 -1
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/lazy-draws.js +1 -1
- package/dist/render/lib/document/render-config.d.ts +1 -0
- package/dist/render/lib/document/render-config.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-spec.d.ts +1 -0
- package/dist/render/lib/document/section-to-box-rows-spec.js +1 -0
- package/dist/render/lib/tyres/spec-sheet.d.ts +0 -2
- package/dist/render/lib/tyres/spec-sheet.js +1 -1
- package/dist/words.d.ts +12 -1
- package/dist/words.js +4 -4
- package/package.json +9 -4
- package/dist/chunks/EditorPreviewCheckout-IEFQC4T3.js +0 -4
- package/dist/chunks/chunk-LZTJCQ4A.js +0 -311
- package/dist/chunks/chunk-MZPZ4B7Y.js +0 -1
- package/dist/chunks/chunk-WC4XIVX3.js +0 -1
- /package/dist/chunks/{chunk-LZTJCQ4A.js.LEGAL.txt → chunk-6MHGEO3D.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-TI4ZGDSG.js → chunk-JUGY3EKR.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{SECTION_BOX_SLOT as p,SECTION_BOX_TYPE as a,registerSectionToBox as s}from"efficient-web-builder/render/lib/sections/section-to-box";import{headOnlyRow as l}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-rows-head";import{DIM as c,INNER_BOX as m,TEXT as g}from"efficient-web-builder/render/lib/document/blocks/general/section-to-box-row-parts";import{token as T}from"efficient-web-builder/render/lib/document/blocks/general/section-head-looks";import{CARD_ROW_FIELD_PROP as S}from"efficient-web-builder/format/lib/content/card-template";import{phoneKey as t}from"efficient-easel/draw";const o={textStyle:"body-5",...T("label",14),letterSpacing:.05,lineHeight:1.5},e=(n,i,r)=>({type:"Text",props:{...i,[S]:n,_partStyles:{text:r}}}),_={type:a,props:{...m,name:"Row",direction:"row",justify:"between",align:"start",share:"content",phoneRow:2,[t("share")]:"content",[t("wrap")]:!1,gap:24,sectionPaddingTop:16,sectionPaddingBottom:16,sectionPaddingTopPhone:16,sectionPaddingBottomPhone:16},slots:{[p]:[e("label",c,{...o,case:"upper"}),e("value",{...g,align:"right"},{...o,align:"right"})]}},d=l("SpecTable",{slots:{template:[_]}});s({SpecTable:d});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { TyreVariant } from "../api/index.js";
|
|
2
|
-
import { type EuTyreLabel } from "./eu-tyre-label.js";
|
|
3
2
|
import type { SpecSheetRow } from "../wheels/spec-sheet.js";
|
|
4
3
|
export interface TyreSpecSheetSource {
|
|
5
4
|
brand: string;
|
|
6
5
|
variant: TyreVariant | null | undefined;
|
|
7
|
-
euLabel?: EuTyreLabel | null;
|
|
8
6
|
}
|
|
9
7
|
export interface TyreSpecSheet {
|
|
10
8
|
rows: SpecSheetRow[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{parseTyreSize as s}from"./tyre-size.js";const e={size:"size",sectionWidth:"section_width",aspectRatio:"aspect_ratio",rimDiameter:"rim_diameter",construction:"construction",loadIndex:"load_index",speedRating:"speed_rating",maxLoad:"max_load_lbs",maxPressure:"max_psi",treadDepth:"tread_depth",overallDiameter:"overall_diameter",treadPattern:"tread_pattern",tireType:"tire_type",brand:"brand"},p=Object.values(e).filter(o=>o!==e.size);function d(o){const{brand:n,variant:i}=o;if(!i)return[];const t=s(i.size),r=i.specs,a=r;return[[e.size,"Size",i.size],[e.sectionWidth,"Section Width",t?`${t.width} mm`:""],[e.aspectRatio,"Aspect Ratio",t?`${t.profile}`:""],[e.rimDiameter,"Rim Diameter",t?`${t.rim}"`:""],[e.construction,"Construction",r.construction],[e.loadIndex,"Load Index",r.loadIndex],[e.speedRating,"Speed Rating",r.speedRating],[e.maxLoad,"Max Load",a.maxLoad??""],[e.maxPressure,"Max Pressure",a.maxPressure??""],[e.treadDepth,"Tread Depth",a.treadDepth??""],[e.overallDiameter,"Overall Diameter",a.overallDiameter??""],[e.treadPattern,"Tread Pattern",r.treadPattern],[e.tireType,"Type",r.tireType],[e.brand,"Manufacturer",n]]}function m(o){const n=[];for(const[i,t,r]of d(o)){const a=(r??"").trim();a&&n.push({label:t,value:a,fieldKey:i})}return{rows:n}}export{p as TYRE_SPEC_FIELD_KEYS,e as TYRE_SPEC_KEYS,m as buildTyreSpecSheet};
|
package/dist/words.d.ts
CHANGED
|
@@ -317,6 +317,7 @@ export type WebBuilderPhrase =
|
|
|
317
317
|
| "Column 4 title"
|
|
318
318
|
| "Column {n}"
|
|
319
319
|
| "Columns"
|
|
320
|
+
| "Connect to a live number"
|
|
320
321
|
| "Contact / Locations"
|
|
321
322
|
| "Contact Form"
|
|
322
323
|
| "Contact, FAQ & forms"
|
|
@@ -579,6 +580,7 @@ export type WebBuilderPhrase =
|
|
|
579
580
|
| "Hold video"
|
|
580
581
|
| "Home"
|
|
581
582
|
| "Hours, minutes and seconds to a set date and time, then one line."
|
|
583
|
+
| "Hover"
|
|
582
584
|
| "Hover effect"
|
|
583
585
|
| "Icon"
|
|
584
586
|
| "Icon after text"
|
|
@@ -641,6 +643,7 @@ export type WebBuilderPhrase =
|
|
|
641
643
|
| "Label only"
|
|
642
644
|
| "Labels"
|
|
643
645
|
| "Ladder"
|
|
646
|
+
| "Landscape (4:3)"
|
|
644
647
|
| "Large"
|
|
645
648
|
| "Large tabs"
|
|
646
649
|
| "Large text only"
|
|
@@ -682,6 +685,7 @@ export type WebBuilderPhrase =
|
|
|
682
685
|
| "Live"
|
|
683
686
|
| "Live chat"
|
|
684
687
|
| "Live chat settings belong to a website."
|
|
688
|
+
| "Live numbers"
|
|
685
689
|
| "Loading versions"
|
|
686
690
|
| "Loading…"
|
|
687
691
|
| "Location name"
|
|
@@ -705,6 +709,7 @@ export type WebBuilderPhrase =
|
|
|
705
709
|
| "Long-form document body with an 'On this page' contents list."
|
|
706
710
|
| "Longitude"
|
|
707
711
|
| "Look"
|
|
712
|
+
| "Lookup busy — try again in a moment."
|
|
708
713
|
| "Loop"
|
|
709
714
|
| "Main"
|
|
710
715
|
| "Main Pages"
|
|
@@ -795,6 +800,7 @@ export type WebBuilderPhrase =
|
|
|
795
800
|
| "On this page"
|
|
796
801
|
| "On {count} pages"
|
|
797
802
|
| "One"
|
|
803
|
+
| "One line"
|
|
798
804
|
| "One row"
|
|
799
805
|
| "One then four"
|
|
800
806
|
| "Only the size follows a site style. This section sets its own font, weight and letter case."
|
|
@@ -1148,6 +1154,7 @@ export type WebBuilderPhrase =
|
|
|
1148
1154
|
| "Theme {n} background"
|
|
1149
1155
|
| "Theme {n} main color"
|
|
1150
1156
|
| "Theme {n} text color"
|
|
1157
|
+
| "These settings apply to every view."
|
|
1151
1158
|
| "They are saved in Version history as “Draft before restore”, so you can get them back."
|
|
1152
1159
|
| "Thickness"
|
|
1153
1160
|
| "Third item"
|
|
@@ -1160,6 +1167,7 @@ export type WebBuilderPhrase =
|
|
|
1160
1167
|
| "This is the only card in the section."
|
|
1161
1168
|
| "This page"
|
|
1162
1169
|
| "This page has no look of its own to set."
|
|
1170
|
+
| "This page is read-only."
|
|
1163
1171
|
| "This part is no longer here."
|
|
1164
1172
|
| "This part's settings did not open."
|
|
1165
1173
|
| "This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies."
|
|
@@ -1211,6 +1219,7 @@ export type WebBuilderPhrase =
|
|
|
1211
1219
|
| "Ungrouped"
|
|
1212
1220
|
| "Unit"
|
|
1213
1221
|
| "Unit labels"
|
|
1222
|
+
| "Unlink"
|
|
1214
1223
|
| "Up"
|
|
1215
1224
|
| "Up and down"
|
|
1216
1225
|
| "Upcoming"
|
|
@@ -1241,6 +1250,7 @@ export type WebBuilderPhrase =
|
|
|
1241
1250
|
| "We accept"
|
|
1242
1251
|
| "WeChat"
|
|
1243
1252
|
| "What people *say.*"
|
|
1253
|
+
| "What this does when a shopper points at it, or taps it on a phone."
|
|
1244
1254
|
| "WhatsApp"
|
|
1245
1255
|
| "When a link lands on this Box's anchor, the Box gets an accent outline and its first block turns accent."
|
|
1246
1256
|
| "When the text does not fit"
|
|
@@ -1270,6 +1280,7 @@ export type WebBuilderPhrase =
|
|
|
1270
1280
|
| "Your first question goes here?"
|
|
1271
1281
|
| "Your fourth question goes here?"
|
|
1272
1282
|
| "Your last changes did not save, so nothing was restored. Try again."
|
|
1283
|
+
| "Your last changes did not save, so the template was not made. Try again."
|
|
1273
1284
|
| "Your live website does not change until you press Publish."
|
|
1274
1285
|
| "Your locations as a city gallery plus address and map cards."
|
|
1275
1286
|
| "Your review"
|
|
@@ -1339,6 +1350,7 @@ export type WebBuilderPhrase =
|
|
|
1339
1350
|
| "{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest."
|
|
1340
1351
|
| "{value} from {from}"
|
|
1341
1352
|
| "{value} on desktop"
|
|
1353
|
+
| "{value} on tablet"
|
|
1342
1354
|
| "{what} settings belong to a website."
|
|
1343
1355
|
| "— Articles in total"
|
|
1344
1356
|
| "— Label"
|
|
@@ -1635,7 +1647,6 @@ export type StorefrontBlocksPhrase =
|
|
|
1635
1647
|
| "Keeps the logo readable on any header — flips just its black & white parts to contrast the bar behind it (in both light and dark themes). Any other colors are kept as-is."
|
|
1636
1648
|
| "Know your size? Pick it below"
|
|
1637
1649
|
| "L"
|
|
1638
|
-
| "Landscape (4:3)"
|
|
1639
1650
|
| "Last name"
|
|
1640
1651
|
| "Lead time"
|
|
1641
1652
|
| "Leave a *review.*"
|