efficient-web-builder 73.2.0 → 74.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.
Files changed (114) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/editor/components/CustomHtmlCodeWindow.d.ts +11 -0
  3. package/dist/editor/components/CustomHtmlCodeWindow.js +20 -0
  4. package/dist/editor/components/PreviewPartAnchors.d.ts +2 -1
  5. package/dist/editor/components/PreviewPartAnchors.js +1 -1
  6. package/dist/editor/components/SectionThemePicker.d.ts +3 -2
  7. package/dist/editor/components/SectionThemePicker.js +1 -1
  8. package/dist/editor/components/SiteTextStylesField.d.ts +2 -1
  9. package/dist/editor/components/SiteTextStylesField.js +1 -1
  10. package/dist/editor/components/StandaloneSectionEditor.js +1 -1
  11. package/dist/editor/components/StorefrontEditor.js +1 -1
  12. package/dist/editor/components/WebsiteSettingsPanel.d.ts +2 -0
  13. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  14. package/dist/editor/components/storefront-editor.css +111 -0
  15. package/dist/editor/lib/document/blocks/general/CustomHTML/fields.d.ts +6 -0
  16. package/dist/editor/lib/document/blocks/general/CustomHTML/fields.js +1 -0
  17. package/dist/editor/lib/document/blocks/general/index.js +1 -1
  18. package/dist/editor/lib/document/controls.d.ts +2 -0
  19. package/dist/editor/lib/document/controls.js +1 -1
  20. package/dist/editor/lib/document/custom-html-preview.d.ts +12 -0
  21. package/dist/editor/lib/document/custom-html-preview.js +1 -0
  22. package/dist/editor/lib/document/own-pad-fields.d.ts +7 -1
  23. package/dist/editor/lib/document/own-pad-fields.js +1 -1
  24. package/dist/format/lib/animation/hover.js +1 -1
  25. package/dist/format/lib/animation/loop.js +1 -1
  26. package/dist/format/lib/content/accordion-row-style.js +1 -1
  27. package/dist/format/lib/content/borders.d.ts +2 -1
  28. package/dist/format/lib/content/borders.js +1 -1
  29. package/dist/format/lib/content/box-layout.js +1 -1
  30. package/dist/format/lib/content/button-icon.js +1 -1
  31. package/dist/format/lib/content/card-place.js +1 -1
  32. package/dist/format/lib/content/chat-launcher.js +1 -1
  33. package/dist/format/lib/content/container-direction.js +1 -1
  34. package/dist/format/lib/content/footprint.js +1 -1
  35. package/dist/format/lib/content/image-fit.js +1 -1
  36. package/dist/format/lib/content/image-text-rows.js +1 -1
  37. package/dist/format/lib/content/list-number.js +1 -1
  38. package/dist/format/lib/content/list-position.js +1 -1
  39. package/dist/format/lib/content/text-tag.js +1 -1
  40. package/dist/format/lib/document/blocks/block-types.d.ts +1 -0
  41. package/dist/format/lib/document/blocks/general/text-part-shapes.json +0 -6
  42. package/dist/format/lib/document/box-footer.js +1 -1
  43. package/dist/format/lib/document/custom-html-place.d.ts +19 -0
  44. package/dist/format/lib/document/custom-html-place.js +7 -0
  45. package/dist/format/lib/document/left-view.js +1 -1
  46. package/dist/format/lib/document/mockup-variant-fields.js +1 -1
  47. package/dist/format/lib/document/part-inks.d.ts +1 -0
  48. package/dist/format/lib/document/part-inks.js +1 -1
  49. package/dist/format/lib/document/passes/types.d.ts +4 -2
  50. package/dist/format/lib/editor-words-catalogue.d.ts +19 -0
  51. package/dist/format/lib/editor-words-catalogue.js +4 -4
  52. package/dist/format/lib/hero-arrows.js +1 -1
  53. package/dist/format/lib/hero-group-placement.js +1 -1
  54. package/dist/format/lib/hero-media-layout.js +1 -1
  55. package/dist/format/lib/hero-phone-stack.js +1 -1
  56. package/dist/format/lib/hero-video.js +1 -1
  57. package/dist/format/lib/reel.js +1 -1
  58. package/dist/format/lib/sections/divider-style.js +1 -1
  59. package/dist/format/lib/sections/hero-overlay.js +1 -1
  60. package/dist/format/lib/sections/intro-bleed-layout.js +1 -1
  61. package/dist/format/lib/sections/logo-look.js +1 -1
  62. package/dist/format/lib/sections/product-card-style.js +1 -1
  63. package/dist/format/lib/sections/section-eyebrow-look.js +1 -1
  64. package/dist/format/lib/sections/section-head-placement.js +1 -1
  65. package/dist/format/lib/sections/section-head-style.js +1 -1
  66. package/dist/format/lib/sections/section-number-style.js +1 -1
  67. package/dist/format/lib/sections/strip-shape.d.ts +1 -0
  68. package/dist/format/lib/sections/strip-shape.js +1 -1
  69. package/dist/format/lib/sections/ticker-style.js +1 -1
  70. package/dist/format/lib/text-style-face.d.ts +6 -0
  71. package/dist/format/lib/text-style-face.js +2 -1
  72. package/dist/format/lib/theme.d.ts +2 -1
  73. package/dist/format/lib/theme.js +3 -3
  74. package/dist/render/components/BoxTabs.js +1 -1
  75. package/dist/render/components/Breadcrumb.d.ts +4 -1
  76. package/dist/render/components/Breadcrumb.js +1 -1
  77. package/dist/render/components/PhoneMenuTools.d.ts +3 -1
  78. package/dist/render/components/PhoneMenuTools.js +1 -1
  79. package/dist/render/components/PublishedPartStylesContext.d.ts +2 -1
  80. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  81. package/dist/render/components/SpecStrip.d.ts +4 -1
  82. package/dist/render/components/SpecStrip.js +1 -1
  83. package/dist/render/lib/content/section-padding.d.ts +24 -14
  84. package/dist/render/lib/content/section-padding.js +1 -1
  85. package/dist/render/lib/document/blocks/general/Breadcrumb/render.js +1 -1
  86. package/dist/render/lib/document/blocks/general/CustomHTML/render.js +1 -1
  87. package/dist/render/lib/document/blocks/general/LocationMap/render.js +1 -1
  88. package/dist/render/lib/document/blocks/general/SpecStrip/render.js +1 -1
  89. package/dist/render/lib/document/blocks/general/section-head-looks.js +1 -1
  90. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +1 -0
  91. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  92. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  93. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  94. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  95. package/dist/render/lib/document/blocks/general/section-to-box-rows-strip.js +1 -1
  96. package/dist/render/lib/document/custom-css.d.ts +4 -0
  97. package/dist/render/lib/document/custom-css.js +3 -2
  98. package/dist/render/lib/document/header-clearance.js +1 -1
  99. package/dist/render/lib/document/header-ink.js +1 -1
  100. package/dist/render/lib/document/part-styles.d.ts +7 -4
  101. package/dist/render/lib/document/part-styles.js +2 -2
  102. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  103. package/dist/render/lib/document/passes/section-padding.d.ts +2 -1
  104. package/dist/render/lib/document/passes/section-padding.js +1 -1
  105. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  106. package/dist/routine-index.json +1 -1
  107. package/dist/value-index.json +1 -1
  108. package/package.json +27 -6
  109. package/dist/format/lib/document/blocks/general/CustomHTML/fields.d.ts +0 -2
  110. package/dist/format/lib/document/blocks/general/CustomHTML/fields.js +0 -1
  111. package/dist/format/lib/parse-option.d.ts +0 -3
  112. package/dist/format/lib/parse-option.js +0 -1
  113. package/dist/format/lib/source-rules/one-option-parser.d.ts +0 -12
  114. package/dist/format/lib/source-rules/one-option-parser.js +0 -12
@@ -1 +1 @@
1
- import{hasMapCoords as T,mapCoordOfText as s}from"../map-styles.js";import{groupColsClass as O,groupColumns as u}from"../locations-grid.js";import{parseOption as e}from"../parse-option.js";import{parseListPosition as _}from"./list-position.js";import{HEAD_IN_LIST_COLUMN as c,parseSectionHeadPlacement as L}from"../sections/section-head-placement.js";const S=/^https?:\/\//i;function M(t){const o=(t.href??"").trim(),n=(t.linkLabel??"").trim();return{role:t.role??"",city:t.city??"",country:t.country??"",address:t.address??"",hq:t.hq==="true",lat:s(t.lat),lng:s(t.lng),...o&&n&&S.test(o)?{href:o,linkLabel:n}:{}}}function U(t){const o=n=>typeof n=="string"?n:"";return{badge:t.hq?"HQ":"",role:o(t.role),city:o(t.city),country:o(t.country),address:o(t.address),phone:o(t.phone),...t.href&&t.linkLabel?{href:t.href,linkLabel:t.linkLabel}:{}}}function f(t){return[t.city,t.country,t.address,t.role].map(o=>typeof o=="string"?o.replace(/[=*]/g,"").trim():"").filter(Boolean).join(" ")}const k={sectionNumber:"",heading:"",tagline:"",mapTheme:"auto"};function D(t){const o=[];return t.forEach((n,a)=>{T(n.lat,n.lng)&&o.push({key:String(a),label:n.city||n.role||"Office",lat:n.lat,lng:n.lng,glyph:"",tone:"",...n.hq?{badge:"HQ"}:{}})}),o}const x=["both","map","list"],B="shows",i="both";function h(t){return e(x,i,t.shows)}function m(t){return h(t)===i?_(t.listPosition):"below"}const d=["fixed","full"],I="mapHeight",p="fixed",q="full",l=t=>m(t)!=="below";function G(t){return l(t)?e(d,p,t[I]):p}function W(t){return l(t)&&L(t.headPlacement)===c}const P=[1,2,3,4],r="auto",N=2,g=1,C=[r,...P.map(String)];function j(t){const o=e(C,r,t.listColumns);return o===r?o:Number(o)}const H="max-view-desktop:grid-cols-2",E="max-[700px]:grid-cols-1";function K(t,o){const n=t===r?u(o):t;return[O(n),[n>N?H:"",n>g?E:""].filter(Boolean).join(" ")].join(" ")}export{k as FOOTPRINT_DEFAULTS,P as FOOTPRINT_LIST_COLUMNS,r as FOOTPRINT_LIST_COLUMNS_DEFAULT,g as FOOTPRINT_LIST_COLUMNS_PHONE,N as FOOTPRINT_LIST_COLUMNS_TABLET_MAX,d as FOOTPRINT_MAP_HEIGHTS,p as FOOTPRINT_MAP_HEIGHT_DEFAULT,q as FOOTPRINT_MAP_HEIGHT_FULL,I as FOOTPRINT_MAP_HEIGHT_KEY,x as FOOTPRINT_SHOWS,i as FOOTPRINT_SHOWS_DEFAULT,B as FOOTPRINT_SHOWS_KEY,U as footprintCardRow,W as footprintHeadInList,K as footprintListColsClass,j as footprintListColumns,m as footprintListPosition,G as footprintMapHeight,M as footprintOfficeOfRow,D as footprintPins,f as footprintSearchText,h as footprintShows};
1
+ import{hasMapCoords as T,mapCoordOfText as s}from"../map-styles.js";import{groupColsClass as O,groupColumns as u}from"../locations-grid.js";import{parseOption as e}from"efficient-shell/format";import{parseListPosition as _}from"./list-position.js";import{HEAD_IN_LIST_COLUMN as c,parseSectionHeadPlacement as L}from"../sections/section-head-placement.js";const S=/^https?:\/\//i;function M(t){const o=(t.href??"").trim(),n=(t.linkLabel??"").trim();return{role:t.role??"",city:t.city??"",country:t.country??"",address:t.address??"",hq:t.hq==="true",lat:s(t.lat),lng:s(t.lng),...o&&n&&S.test(o)?{href:o,linkLabel:n}:{}}}function U(t){const o=n=>typeof n=="string"?n:"";return{badge:t.hq?"HQ":"",role:o(t.role),city:o(t.city),country:o(t.country),address:o(t.address),phone:o(t.phone),...t.href&&t.linkLabel?{href:t.href,linkLabel:t.linkLabel}:{}}}function f(t){return[t.city,t.country,t.address,t.role].map(o=>typeof o=="string"?o.replace(/[=*]/g,"").trim():"").filter(Boolean).join(" ")}const k={sectionNumber:"",heading:"",tagline:"",mapTheme:"auto"};function D(t){const o=[];return t.forEach((n,a)=>{T(n.lat,n.lng)&&o.push({key:String(a),label:n.city||n.role||"Office",lat:n.lat,lng:n.lng,glyph:"",tone:"",...n.hq?{badge:"HQ"}:{}})}),o}const x=["both","map","list"],B="shows",i="both";function h(t){return e(x,i,t.shows)}function m(t){return h(t)===i?_(t.listPosition):"below"}const d=["fixed","full"],I="mapHeight",p="fixed",q="full",l=t=>m(t)!=="below";function G(t){return l(t)?e(d,p,t[I]):p}function W(t){return l(t)&&L(t.headPlacement)===c}const P=[1,2,3,4],r="auto",N=2,g=1,C=[r,...P.map(String)];function j(t){const o=e(C,r,t.listColumns);return o===r?o:Number(o)}const H="max-view-desktop:grid-cols-2",E="max-[700px]:grid-cols-1";function K(t,o){const n=t===r?u(o):t;return[O(n),[n>N?H:"",n>g?E:""].filter(Boolean).join(" ")].join(" ")}export{k as FOOTPRINT_DEFAULTS,P as FOOTPRINT_LIST_COLUMNS,r as FOOTPRINT_LIST_COLUMNS_DEFAULT,g as FOOTPRINT_LIST_COLUMNS_PHONE,N as FOOTPRINT_LIST_COLUMNS_TABLET_MAX,d as FOOTPRINT_MAP_HEIGHTS,p as FOOTPRINT_MAP_HEIGHT_DEFAULT,q as FOOTPRINT_MAP_HEIGHT_FULL,I as FOOTPRINT_MAP_HEIGHT_KEY,x as FOOTPRINT_SHOWS,i as FOOTPRINT_SHOWS_DEFAULT,B as FOOTPRINT_SHOWS_KEY,U as footprintCardRow,W as footprintHeadInList,K as footprintListColsClass,j as footprintListColumns,m as footprintListPosition,G as footprintMapHeight,M as footprintOfficeOfRow,D as footprintPins,f as footprintSearchText,h as footprintShows};
@@ -1 +1 @@
1
- import{parseOption as e}from"../parse-option.js";const n=["cover","contain"],r={cover:"Cover",contain:"Contain"},c="Image fit";function a(t,o){return e(n,o,t)}function p(){return n.map(t=>({label:r[t],value:t}))}function s(t){return t==="contain"?"object-contain":"object-cover"}function I(t,o){return t!=="auto"&&o==="cover"}export{n as IMAGE_FITS,r as IMAGE_FIT_LABEL,c as IMAGE_FIT_ROW_LABEL,s as imageFitClass,p as imageFitOptions,I as imageIsCropped,a as parseImageFit};
1
+ import{parseOption as e}from"efficient-shell/format";const n=["cover","contain"],r={cover:"Cover",contain:"Contain"},c="Image fit";function a(t,o){return e(n,o,t)}function p(){return n.map(t=>({label:r[t],value:t}))}function s(t){return t==="contain"?"object-contain":"object-cover"}function I(t,o){return t!=="auto"&&o==="cover"}export{n as IMAGE_FITS,r as IMAGE_FIT_LABEL,c as IMAGE_FIT_ROW_LABEL,s as imageFitClass,p as imageFitOptions,I as imageIsCropped,a as parseImageFit};
@@ -1 +1 @@
1
- import{parseOption as r}from"../parse-option.js";const o=["columns","rows-left","rows-right"],n=["half","third"],u=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],c=[{value:"half",label:"Half"},{value:"third",label:"One third"}],f=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function a(e){return r(o,"columns",e)}const i={"rows-left":"even","rows-right":"odd"},s={half:"equal",third:"bigRight"};function m(e){const t=a(e?.arrangement);if(t==="columns")return null;const l=r(n,"half",e?.imageWidth);return{mirror:i[t],row:{share:s[l],phoneReverse:e?.phoneOrder==="words"}}}export{u as ARRANGEMENT_OPTIONS,c as IMAGE_WIDTH_OPTIONS,f as PHONE_ORDER_OPTIONS,a as arrangementOf,m as imageTextRowsHand};
1
+ import{parseOption as r}from"efficient-shell/format";const o=["columns","rows-left","rows-right"],n=["half","third"],u=[{value:"columns",label:"Columns"},{value:"rows-left",label:"Left",hint:"Image left"},{value:"rows-right",label:"Right",hint:"Image right"}],c=[{value:"half",label:"Half"},{value:"third",label:"One third"}],f=[{value:"picture",label:"Picture first"},{value:"words",label:"Words first"}];function a(e){return r(o,"columns",e)}const i={"rows-left":"even","rows-right":"odd"},s={half:"equal",third:"bigRight"};function m(e){const t=a(e?.arrangement);if(t==="columns")return null;const l=r(n,"half",e?.imageWidth);return{mirror:i[t],row:{share:s[l],phoneReverse:e?.phoneOrder==="words"}}}export{u as ARRANGEMENT_OPTIONS,c as IMAGE_WIDTH_OPTIONS,f as PHONE_ORDER_OPTIONS,a as arrangementOf,m as imageTextRowsHand};
@@ -1 +1 @@
1
- import{parseOption as r}from"../parse-option.js";const e=t=>String(t+1).padStart(2,"0"),i=[{label:"01 ·",value:"two-digit"},{label:"1.",value:"plain"}],p="two-digit",l=t=>r(i,p,t),n=(t,o)=>t==="plain"?`${o+1}.`:e(o);export{i as LIST_NUMBER_FORMS,p as LIST_NUMBER_FORM_DEFAULT,e as listNumber,n as listNumberIn,l as readListNumberForm};
1
+ import{parseOption as r}from"efficient-shell/format";const e=t=>String(t+1).padStart(2,"0"),i=[{label:"01 ·",value:"two-digit"},{label:"1.",value:"plain"}],p="two-digit",l=t=>r(i,p,t),n=(t,o)=>t==="plain"?`${o+1}.`:e(o);export{i as LIST_NUMBER_FORMS,p as LIST_NUMBER_FORM_DEFAULT,e as listNumber,n as listNumberIn,l as readListNumberForm};
@@ -1 +1 @@
1
- import{parseOption as o}from"../parse-option.js";const e=["below","left","right"];function r(t){return o(e,"below",t)}function n(t){return r(t)!=="below"}export{n as listBesideMap,r as parseListPosition};
1
+ import{parseOption as o}from"efficient-shell/format";const e=["below","left","right"];function r(t){return o(e,"below",t)}function n(t){return r(t)!=="below"}export{n as listBesideMap,r as parseListPosition};
@@ -1 +1 @@
1
- import{parseOption as n}from"../parse-option.js";const r=["p","h1","h2","h3","h4","h5","h6"];function o(t){return n(r,"p",t)}function h(t){const e=o(t);return e==="p"?null:Number(e.slice(1))}export{r as TEXT_TAGS,h as headingLevelOfTag,o as textTagOf};
1
+ import{parseOption as n}from"efficient-shell/format";const r=["p","h1","h2","h3","h4","h5","h6"];function o(t){return n(r,"p",t)}function h(t){const e=o(t);return e==="p"?null:Number(e.slice(1))}export{r as TEXT_TAGS,h as headingLevelOfTag,o as textTagOf};
@@ -15,6 +15,7 @@ export type BlockRender = Pick<Block, "label" | "defaultProps" | "render" | "inl
15
15
  bottom: number;
16
16
  };
17
17
  sitsInBox?: true;
18
+ partSizeCaps?: Readonly<Record<string, true>>;
18
19
  };
19
20
  export type BlockMeta = Omit<BlockRender, "render">;
20
21
  export type BlockFields = Pick<Block, "fields" | "resolveFields" | "resolveData"> & {
@@ -230,12 +230,6 @@
230
230
  }
231
231
  }
232
232
  },
233
- "CustomHTML": {
234
- "html": {
235
- "type": "textarea",
236
- "label": "HTML"
237
- }
238
- },
239
233
  "Contents": {
240
234
  "title": {
241
235
  "type": "custom",
@@ -1 +1 @@
1
- import{FOOTER_LOGO_PX as y}from"../logo/logo-size.js";import{resolveContainerGap as P}from"../content/container-gap.js";import{NESTED_BOX_PADDING as m}from"../content/box-layout.js";import{finiteNumber as a}from"../finite-number.js";import{nodeListKeys as L}from"./node-lists.js";import{hiddenKeyOf as x}from"efficient-easel/screen/lib/content/view-hide";import{templateOnInsert as w}from"../content/card-template.js";import{buildSectionGroup as A,SITE_FOOTER_TYPE as S}from"./section-groups.js";import{hasOwnEntry as I,ownEntry as h}from"../own-entry.js";import{parseOption as E}from"../parse-option.js";const d="Flex",B={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},b={FooterPayment:"PaymentLogosBlock"},G=e=>{const{id:o,...s}=e;return s},T=e=>typeof e=="string"?e:"",f={sm:12,md:13,lg:15},Z={sm:{mark:16,words:f.sm},md:{mark:20,words:f.md}},N="md",O=1.5,R={size:13,lineHeight:O,width:280},D=14,k=40,M=e=>E(["left","center","right"],"left",e);function X(e){const o={},s=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[t,i]of s){const c=a(e[t]);c&&(o[i]=c)}return o}function z(e,o,s){const t=s(e,G(o));if(Array.isArray(o.template))return{...t,props:{...t.props,template:F(o.template,String(t.props.id))}};if(o.template!==void 0)return t;const i=w(e,t.props);return i===t.props?t:{...t,props:i}}function F(e,o,s={at:0}){return e.map(t=>{const i={...t.props,id:`${o}~t${s.at++}`};for(const c of L(t))i[c]=F(i[c],o,s);return{...t,props:i}})}function _(e,o,s){const t=e.props??{},i=s?.(e,o);if(i)return i;const c=h(B,e.type)??h(b,e.type);if(c)return[z(c,t,o)];switch(e.type){case"FooterLogo":{const r=M(t.align),n=o("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(y*((a(t.widthPct)??100)/100)),href:"/",align:r,...X(t)}),p=T(t.tagline).trim();return p?[n,o("Text",{text:p,tone:"dim",align:r,_partStyles:{text:{...R}}})]:[n]}case"FooterText":{const r=typeof t.size=="string"&&I(f,t.size)?t.size:N;return[o("Text",{text:T(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:f[r],lineHeight:O}}})]}case"FooterDivider":{const r=a(t.thickness),n=a(t.lengthPct);return[o("Divider",{...r!==void 0?{thickness:r}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{[x("mobile")]:!0}:{}})]}case"FooterGroup":{const r=Array.isArray(t.blocks)?t.blocks:[];return[o(d,{direction:t.direction==="horizontal"?"row":"column",gap:P("FooterGroup",t.gap),align:E(["start","center","end","stretch"],"start",t.align),...m,content:r.flatMap(n=>_(n,o,s))})]}default:return[]}}function j(e,o,s,t){const i=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],c=l=>o(d,{direction:"row",wrap:!0,share:"equal",gap:k,content:l}),r=[];let n=[];for(const l of i){const u=_(l,o,t);if(l.type==="FooterDivider"){n.length&&r.push(c(n)),n=[],r.push(...u);continue}u.length<=1?n.push(...u):n.push(o(d,{direction:"column",gap:D,align:"stretch",...m,content:u}))}(n.length||!r.length)&&r.push(c(n));const p=o(d,{direction:"column",content:[o("LegalLineBlock")]}),g=A(S,s,[...r,p]);return{...g,props:{...g.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}export{Z as FOOTER_MARK_SIZES,f as FOOTER_TEXT_PX,j as boxFooterFromFooter,_ as pageBlocksFromFooterBlock};
1
+ import{FOOTER_LOGO_PX as y}from"../logo/logo-size.js";import{resolveContainerGap as P}from"../content/container-gap.js";import{NESTED_BOX_PADDING as m}from"../content/box-layout.js";import{finiteNumber as a}from"../finite-number.js";import{nodeListKeys as L}from"./node-lists.js";import{hiddenKeyOf as x}from"efficient-easel/screen/lib/content/view-hide";import{templateOnInsert as w}from"../content/card-template.js";import{buildSectionGroup as A,SITE_FOOTER_TYPE as S}from"./section-groups.js";import{hasOwnEntry as I,ownEntry as h}from"../own-entry.js";import{parseOption as E}from"efficient-shell/format";const d="Flex",B={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},b={FooterPayment:"PaymentLogosBlock"},G=e=>{const{id:o,...s}=e;return s},T=e=>typeof e=="string"?e:"",f={sm:12,md:13,lg:15},Z={sm:{mark:16,words:f.sm},md:{mark:20,words:f.md}},N="md",O=1.5,R={size:13,lineHeight:O,width:280},D=14,k=40,M=e=>E(["left","center","right"],"left",e);function X(e){const o={},s=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[t,i]of s){const c=a(e[t]);c&&(o[i]=c)}return o}function z(e,o,s){const t=s(e,G(o));if(Array.isArray(o.template))return{...t,props:{...t.props,template:F(o.template,String(t.props.id))}};if(o.template!==void 0)return t;const i=w(e,t.props);return i===t.props?t:{...t,props:i}}function F(e,o,s={at:0}){return e.map(t=>{const i={...t.props,id:`${o}~t${s.at++}`};for(const c of L(t))i[c]=F(i[c],o,s);return{...t,props:i}})}function _(e,o,s){const t=e.props??{},i=s?.(e,o);if(i)return i;const c=h(B,e.type)??h(b,e.type);if(c)return[z(c,t,o)];switch(e.type){case"FooterLogo":{const r=M(t.align),n=o("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(y*((a(t.widthPct)??100)/100)),href:"/",align:r,...X(t)}),p=T(t.tagline).trim();return p?[n,o("Text",{text:p,tone:"dim",align:r,_partStyles:{text:{...R}}})]:[n]}case"FooterText":{const r=typeof t.size=="string"&&I(f,t.size)?t.size:N;return[o("Text",{text:T(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:f[r],lineHeight:O}}})]}case"FooterDivider":{const r=a(t.thickness),n=a(t.lengthPct);return[o("Divider",{...r!==void 0?{thickness:r}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{[x("mobile")]:!0}:{}})]}case"FooterGroup":{const r=Array.isArray(t.blocks)?t.blocks:[];return[o(d,{direction:t.direction==="horizontal"?"row":"column",gap:P("FooterGroup",t.gap),align:E(["start","center","end","stretch"],"start",t.align),...m,content:r.flatMap(n=>_(n,o,s))})]}default:return[]}}function j(e,o,s,t){const i=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],c=l=>o(d,{direction:"row",wrap:!0,share:"equal",gap:k,content:l}),r=[];let n=[];for(const l of i){const u=_(l,o,t);if(l.type==="FooterDivider"){n.length&&r.push(c(n)),n=[],r.push(...u);continue}u.length<=1?n.push(...u):n.push(o(d,{direction:"column",gap:D,align:"stretch",...m,content:u}))}(n.length||!r.length)&&r.push(c(n));const p=o(d,{direction:"column",content:[o("LegalLineBlock")]}),g=A(S,s,[...r,p]);return{...g,props:{...g.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}export{Z as FOOTER_MARK_SIZES,f as FOOTER_TEXT_PX,j as boxFooterFromFooter,_ as pageBlocksFromFooterBlock};
@@ -0,0 +1,19 @@
1
+ export type CodePick = {
2
+ kind: "value";
3
+ value: string;
4
+ property: string;
5
+ } | {
6
+ kind: "class";
7
+ className: string;
8
+ } | {
9
+ kind: "block";
10
+ code: string;
11
+ };
12
+ export interface Placed {
13
+ from: number;
14
+ to: number;
15
+ insert: string;
16
+ selectFrom: number;
17
+ selectTo: number;
18
+ }
19
+ export declare function placeInsert(doc: string, from: number, to: number, pick: CodePick): Placed;
@@ -0,0 +1,7 @@
1
+ const I=".my-part";function L(t,n,s,e){const l=m(t,n);if(l)return N(t,n,s,e,l);const r=A(t,n);return r?C(t,n,s,e,r):O(t,n,S(e))}function m(t,n){const s=/<style\b[^>]*>/gi;for(let e=s.exec(t);e;e=s.exec(t)){const l=e.index+e[0].length,r=t.toLowerCase().indexOf("</style",l),i=r<0?t.length:r;if(n>=l&&n<=i)return{start:l,end:i,close:r};s.lastIndex=i}return null}function E(t){return t.replace(/\/\*[\s\S]*?(\*\/|$)/g,n=>" ".repeat(n.length))}function N(t,n,s,e,l){const r=E(t.slice(l.start,l.end)),i=n-l.start,a=r[i-1]===" "&&t.slice(l.start,l.end)[i-1]!==" ";let u=0,o="";for(let f=0;f<i;f++){const $=r[f];$==="{"?(u++,o=$):$==="}"?(u=Math.max(0,u-1),o=$):($===";"||$===":")&&(o=$)}const g=r.slice(r.lastIndexOf(":",i-1)+1,i).trim();if(e.kind==="value"&&u>0&&o===":"&&!a&&(g===""||s>n))return{from:n,to:s,insert:e.value,selectFrom:n,selectTo:n+e.value.length};if(e.kind!=="value"){const f=l.close<0?t.length:t.indexOf(">",l.close)+1;return O(t,f-1,e.kind==="class"?S(e):e.code)}let c=-1;if(u>0)c=T(r,i,u);else{const f=r.slice(i).search(/[{}]/);f>=0&&r[i+f]==="{"&&(c=T(r,i+f+1,1))}const x=c<0?n:l.start+c,h=c<0?-1:F(r,c),v=h<0?I:j(r,h)||I,d=b(t,h<0?x:l.start+h);return O(t,x,`${d}${v} { ${e.property}: ${e.value}; }`,!0)}function T(t,n,s){for(let e=n;e<t.length;e++)if(t[e]==="{")s++;else if(t[e]==="}"&&--s===0)return e;return-1}function F(t,n){let s=0;for(let e=n;e>=0;e--)if(t[e]==="}")s++;else if(t[e]==="{"&&--s===0)return e;return-1}function j(t,n){const s=Math.max(t.lastIndexOf("}",n-1),t.lastIndexOf(";",n-1),t.lastIndexOf("{",n-1))+1;return t.slice(s,n).replace(/\s+/g," ").trim()}function A(t,n){const s=t.lastIndexOf("<",n-1);if(s<0||t.lastIndexOf(">",n-1)>s||/[/!?]/.test(t[s+1]??""))return null;const e=t.indexOf(">",n);return e<0?null:{lt:s,gt:e}}function C(t,n,s,e,l){if(e.kind==="block")return O(t,l.gt,e.code);const r=e.kind==="value"?"style":"class",i=t.slice(l.lt,l.gt),a=new RegExp(`\\s${r}\\s*=\\s*(["'])([\\s\\S]*?)\\1`,"i").exec(i);if(a){const g=l.lt+a.index+a[0].length-1-a[2].length,c=g+a[2].length;if(n>=g&&n<=c){const d=t.slice(g,n);if(e.kind==="value"&&(/:\s*$/.test(d)||s>n&&/:[^;]*$/.test(d)))return y(n,s,e.value);if(e.kind==="class"&&!(/\S$/.test(d)&&/^\S/.test(t.slice(n,c)))){const f=`${/\S$/.test(d)?" ":""}${e.className}${/^\S/.test(t.slice(n,c))?" ":""}`;return y(n,n,f)}}const x=a[2].trimEnd(),h=e.kind==="value"?`${x&&!x.endsWith(";")?";":""}${x?" ":""}${e.property}: ${e.value}`:`${x?" ":""}${e.className}`,v=g+x.length;return y(v,v,h)}const u=t[l.gt-1]==="/"?l.gt-1:l.gt,o=e.kind==="value"?` style="${e.property}: ${e.value}"`:` class="${e.className}"`;return y(u,u,o)}function S(t){return t.kind==="block"?t.code:t.kind==="class"?`<p class="${t.className}">Text</p>`:`<div style="${t.property}: ${t.value}">Text</div>`}function y(t,n,s){return{from:t,to:n,insert:s,selectFrom:t,selectTo:t+s.length}}function b(t,n){const s=t.lastIndexOf(`
2
+ `,n-1)+1;return/^[ \t]*/.exec(t.slice(s))[0]}function O(t,n,s,e=!1){const l=t.lastIndexOf(`
3
+ `,n-1)+1;let r=t.indexOf(`
4
+ `,n);r<0&&(r=t.length);const i=b(t,n),a=e?s:s.split(`
5
+ `).map(o=>o&&i+o).join(`
6
+ `);if(t.slice(l,r).trim()==="")return{from:l,to:r,insert:a,selectFrom:l,selectTo:l+a.length};const u=`
7
+ ${a}`;return{from:r,to:r,insert:u,selectFrom:r+1,selectTo:r+u.length}}export{L as placeInsert};
@@ -1 +1 @@
1
- import{parseOption as o}from"../parse-option.js";const r=["pages","sections","styles"],n="sf-editor-left-view";function s(){if(typeof window>"u")return"pages";try{const e=window.localStorage.getItem(n);return o(r,"pages",e)}catch{return"pages"}}function f(e){if(!(typeof window>"u"))try{window.localStorage.setItem(n,e)}catch{}}function c(e,t){return e==="styles"&&!t?"sections":e}function p(e,t){return e?"sections":t}export{p as leftViewForSelection,s as readLeftView,c as resolveLeftView,f as writeLeftView};
1
+ import{parseOption as o}from"efficient-shell/format";const r=["pages","sections","styles"],n="sf-editor-left-view";function s(){if(typeof window>"u")return"pages";try{const e=window.localStorage.getItem(n);return o(r,"pages",e)}catch{return"pages"}}function f(e){if(!(typeof window>"u"))try{window.localStorage.setItem(n,e)}catch{}}function c(e,t){return e==="styles"&&!t?"sections":e}function p(e,t){return e?"sections":t}export{p as leftViewForSelection,s as readLeftView,c as resolveLeftView,f as writeLeftView};
@@ -1 +1 @@
1
- import{shownForOption as l,withRowRules as o}from"./show-when-attach.js";import{parseOption as s}from"../parse-option.js";const i=[{label:"Product record",hint:"Product record (spec tiles)",value:"spec-card"},{label:"Selector guide",hint:"Selector guide (pills + results)",value:"fitment"},{label:"Portal card",hint:"Portal card (stock + button + orders)",value:"portal"},{label:"Kanban board",hint:"Kanban board (job columns)",value:"kanban"},{label:"Claims panel",hint:"Claims panel (rows + defect bars)",value:"claims"},{label:"Browser shop",hint:"Browser storefront (hero + tiles)",value:"browser"},{label:"Terminal",hint:"Terminal (CLI session)",value:"terminal"}],r=i.map(a=>a.value),e="spec-card",c={badge:["spec-card","fitment","portal","kanban","claims","browser"],cardTitle:["spec-card","fitment","portal","kanban","claims"],cardSubtitle:["spec-card","fitment","portal","kanban","claims"],rows:["spec-card","fitment","portal","kanban","claims"],button:["spec-card","fitment","portal","kanban","claims"],footnote:["spec-card","fitment","portal","kanban","claims"],pills:["fitment"],tiles:["spec-card","portal","kanban","claims"],_gKanban:["kanban"],col1Title:["kanban"],col1Cards:["kanban"],col2Title:["kanban"],col2Cards:["kanban"],col3Title:["kanban"],col3Cards:["kanban"],col4Title:["kanban"],col4Cards:["kanban"],_gClaims:["claims"],barsHeading:["claims"],bars:["claims"],_gTerminal:["terminal"],termLines:["terminal"],_gBrowser:["browser"],urlText:["browser"],heroTitle:["browser"],heroButton:["browser"],products:["browser"]};function m(a){return s(r,e,a)}function d(a){return o(a,Object.entries(c).map(([t,n])=>[[t],l("variant",r,e,n)]))}export{e as MOCKUP_DEFAULT_VARIANT,r as MOCKUP_VARIANTS,c as MOCKUP_VARIANT_FIELDS,i as MOCKUP_VARIANT_OPTIONS,m as mockupVariantOf,d as withMockupVariantRules};
1
+ import{shownForOption as l,withRowRules as o}from"./show-when-attach.js";import{parseOption as s}from"efficient-shell/format";const i=[{label:"Product record",hint:"Product record (spec tiles)",value:"spec-card"},{label:"Selector guide",hint:"Selector guide (pills + results)",value:"fitment"},{label:"Portal card",hint:"Portal card (stock + button + orders)",value:"portal"},{label:"Kanban board",hint:"Kanban board (job columns)",value:"kanban"},{label:"Claims panel",hint:"Claims panel (rows + defect bars)",value:"claims"},{label:"Browser shop",hint:"Browser storefront (hero + tiles)",value:"browser"},{label:"Terminal",hint:"Terminal (CLI session)",value:"terminal"}],r=i.map(a=>a.value),e="spec-card",c={badge:["spec-card","fitment","portal","kanban","claims","browser"],cardTitle:["spec-card","fitment","portal","kanban","claims"],cardSubtitle:["spec-card","fitment","portal","kanban","claims"],rows:["spec-card","fitment","portal","kanban","claims"],button:["spec-card","fitment","portal","kanban","claims"],footnote:["spec-card","fitment","portal","kanban","claims"],pills:["fitment"],tiles:["spec-card","portal","kanban","claims"],_gKanban:["kanban"],col1Title:["kanban"],col1Cards:["kanban"],col2Title:["kanban"],col2Cards:["kanban"],col3Title:["kanban"],col3Cards:["kanban"],col4Title:["kanban"],col4Cards:["kanban"],_gClaims:["claims"],barsHeading:["claims"],bars:["claims"],_gTerminal:["terminal"],termLines:["terminal"],_gBrowser:["browser"],urlText:["browser"],heroTitle:["browser"],heroButton:["browser"],products:["browser"]};function m(a){return s(r,e,a)}function d(a){return o(a,Object.entries(c).map(([t,n])=>[[t],l("variant",r,e,n)]))}export{e as MOCKUP_DEFAULT_VARIANT,r as MOCKUP_VARIANTS,c as MOCKUP_VARIANT_FIELDS,i as MOCKUP_VARIANT_OPTIONS,m as mockupVariantOf,d as withMockupVariantRules};
@@ -8,3 +8,4 @@ export declare function partThemeColors(read?: Partial<Record<FillColorSlot, str
8
8
  export declare function fillInkCss(name: string): string;
9
9
  export declare function fillSlotOfInk(css: string | undefined): FillColorSlot | null;
10
10
  export declare function readInks(element: HTMLElement): Partial<Record<ColorSlot, string>>;
11
+ export declare function toHex(css: string): string | null;
@@ -1 +1 @@
1
- import{parseHexColor as u}from"efficient-shell/format";import{COLOR_SLOTS as a,FILL_COLOR_SLOTS as C,colorRole as O,fillColorRole as m}from"efficient-shell/markup";import{themeSlotOf as p,UNREAD_INK as w}from"./theme-slots.js";import{ownEntry as L}from"../own-entry.js";function e(t){return p(t)?.ink??""}function _(t){if(typeof t!="string")return null;const o=m(t.trim());return o?.kind==="slot"&&e(o.slot)?o.slot:null}const y={accent:"main",labels:"muted"};function d(t){return L(y,t)??t}function b(t){if(!t)return"";if(t.startsWith("#"))return u(t)===t.toLowerCase()?t:"";const o=O(d(t));return o?.kind==="slot"?e(o.slot):""}function R(t,o=a){return o.flatMap(n=>{const r=p(n);return r?.ink?[{name:n,label:r.label(),value:t?.[n]||w}]:[]})}function E(t){const o=m(d(t));return o?.kind==="slot"?e(o.slot):""}function T(t){const o=t?.trim();return o?C.find(n=>e(n)===o)??null:null}function D(t){const o={},n=t.ownerDocument,r=n?.defaultView;if(!n||!r)return o;const k=r.getComputedStyle(t),l=n.createElement("canvas").getContext("2d");for(const c of a){const f=e(c);if(!f)continue;const x=f.replace(/^var\((--[\w-]+)\)$/,"$1"),s=k.getPropertyValue(x).trim();if(!s)continue;let i=S(s);!i&&l&&(l.fillStyle="#000000",l.fillStyle=s,i=S(String(l.fillStyle))),i&&(o[c]=i)}return o}function S(t){const o=t.trim().toLowerCase();if(o.startsWith("#"))return u(o);const n=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return n?`#${n.slice(1,4).map(r=>Math.min(255,Number(r)).toString(16).padStart(2,"0")).join("")}`:null}export{E as fillInkCss,_ as fillSlotNamed,T as fillSlotOfInk,e as inkTokenOf,d as partColourName,b as partInkCss,R as partThemeColors,D as readInks};
1
+ import{parseHexColor as u}from"efficient-shell/format";import{COLOR_SLOTS as a,FILL_COLOR_SLOTS as C,colorRole as O,fillColorRole as m}from"efficient-shell/markup";import{themeSlotOf as p,UNREAD_INK as w}from"./theme-slots.js";import{ownEntry as L}from"../own-entry.js";function e(t){return p(t)?.ink??""}function _(t){if(typeof t!="string")return null;const o=m(t.trim());return o?.kind==="slot"&&e(o.slot)?o.slot:null}const y={accent:"main",labels:"muted"};function d(t){return L(y,t)??t}function b(t){if(!t)return"";if(t.startsWith("#"))return u(t)===t.toLowerCase()?t:"";const o=O(d(t));return o?.kind==="slot"?e(o.slot):""}function R(t,o=a){return o.flatMap(r=>{const n=p(r);return n?.ink?[{name:r,label:n.label(),value:t?.[r]||w}]:[]})}function E(t){const o=m(d(t));return o?.kind==="slot"?e(o.slot):""}function T(t){const o=t?.trim();return o?C.find(r=>e(r)===o)??null:null}function D(t){const o={},r=t.ownerDocument,n=r?.defaultView;if(!r||!n)return o;const x=n.getComputedStyle(t),l=r.createElement("canvas").getContext("2d");for(const c of a){const f=e(c);if(!f)continue;const k=f.replace(/^var\((--[\w-]+)\)$/,"$1"),s=x.getPropertyValue(k).trim();if(!s)continue;let i=S(s);!i&&l&&(l.fillStyle="#000000",l.fillStyle=s,i=S(String(l.fillStyle))),i&&(o[c]=i)}return o}function S(t){const o=t.trim().toLowerCase();if(o.startsWith("#"))return u(o);const r=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return r?`#${r.slice(1,4).map(n=>Math.min(255,Number(n)).toString(16).padStart(2,"0")).join("")}`:null}export{E as fillInkCss,_ as fillSlotNamed,T as fillSlotOfInk,e as inkTokenOf,d as partColourName,b as partInkCss,R as partThemeColors,D as readInks,S as toHex};
@@ -1,5 +1,5 @@
1
1
  import type { ComponentType, ReactNode } from "react";
2
- import type { TextFit } from "efficient-easel/draw";
2
+ import type { TextFit, ViewTier } from "efficient-easel/draw";
3
3
  import type { AnimationTabKind } from "../../../../editor/lib/animation/fields.js";
4
4
  export type PassRenderProps = Record<string, unknown>;
5
5
  export type PassResolveFields = (data: {
@@ -27,6 +27,7 @@ export type PassBlock = {
27
27
  bottom: number;
28
28
  };
29
29
  sitsInBox?: true;
30
+ partSizeCaps?: Readonly<Record<string, true>>;
30
31
  resolveFields?: PassResolveFields;
31
32
  resolveData?: PassResolveData;
32
33
  render: (props: PassRenderProps) => ReactNode;
@@ -45,7 +46,7 @@ export type PassInspector = {
45
46
  unitKey?: string;
46
47
  fallback?: Partial<Record<"top" | "right" | "bottom" | "left", number>>;
47
48
  }) => FieldMap;
48
- ownPaddingFields?: (frameOf: (props: Record<string, unknown>) => number, note: (props: Record<string, unknown>, frame: number) => string | null, label?: string) => FieldMap;
49
+ ownPaddingFields?: (frameOf: (props: Record<string, unknown>) => number | Readonly<Record<ViewTier, number>>, note: (props: Record<string, unknown>, frame: number) => string | null, label?: string) => FieldMap;
49
50
  sectionShapeFields: () => FieldMap;
50
51
  cardShapeFields: () => FieldMap;
51
52
  cellWidthFields: () => FieldMap;
@@ -87,6 +88,7 @@ export type PassInspector = {
87
88
  styles: ReturnType<typeof import("../../../../render/lib/document/part-styles.js").readPartStyles>;
88
89
  motions?: ReturnType<typeof import("../../../../render/lib/animation/part-motion.js").readPartMotions>;
89
90
  type?: string;
91
+ sizeCaps?: Readonly<Record<string, true>>;
90
92
  children: ReactNode;
91
93
  }>;
92
94
  };
@@ -94,6 +94,7 @@ export declare const WEB_BUILDER_WORDS: {
94
94
  readonly "Add a *headline* for this post.": "Add a *headline* for this post.";
95
95
  readonly "Add a *headline* for this story.": "Add a *headline* for this story.";
96
96
  readonly "Add a page": "Add a page";
97
+ readonly "Add a ready-made part": "Add a ready-made part";
97
98
  readonly "Add a sentence or two introducing this document.": "Add a sentence or two introducing this document.";
98
99
  readonly "Add a sentence or two of supporting copy.": "Add a sentence or two of supporting copy.";
99
100
  readonly "Add a short heading.": "Add a short heading.";
@@ -106,6 +107,7 @@ export declare const WEB_BUILDER_WORDS: {
106
107
  readonly "Add new theme": "Add new theme";
107
108
  readonly "Add office coordinates to plot the map": "Add office coordinates to plot the map";
108
109
  readonly "Add page": "Add page";
110
+ readonly "Add part": "Add part";
109
111
  readonly "Add slide": "Add slide";
110
112
  readonly "Add this section's copy here.": "Add this section's copy here.";
111
113
  readonly "Add this section's copy here. A blank line starts a new paragraph.": "Add this section's copy here. A blank line starts a new paragraph.";
@@ -115,6 +117,7 @@ export declare const WEB_BUILDER_WORDS: {
115
117
  readonly "Add your first question": "Add your first question";
116
118
  readonly "Add your numbers.": "Add your numbers.";
117
119
  readonly "Add \u201C{name}\u201D": "Add “{name}”";
120
+ readonly "Added on line": "Added on line";
118
121
  readonly Address: "Address";
119
122
  readonly Advanced: "Advanced";
120
123
  readonly After: "After";
@@ -229,6 +232,7 @@ export declare const WEB_BUILDER_WORDS: {
229
232
  readonly "Browser shop": "Browser shop";
230
233
  readonly "Browser storefront (hero + tiles)": "Browser storefront (hero + tiles)";
231
234
  readonly "Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.": "Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.";
235
+ readonly "Build this section in HTML and CSS. The CSS changes this section only. Scripts do not run.": "Build this section in HTML and CSS. The CSS changes this section only. Scripts do not run.";
232
236
  readonly "Bundle Products": "Bundle Products";
233
237
  readonly Button: "Button";
234
238
  readonly "Button Right Text": "Button Right Text";
@@ -304,11 +308,14 @@ export declare const WEB_BUILDER_WORDS: {
304
308
  readonly "Claims panel (rows + defect bars)": "Claims panel (rows + defect bars)";
305
309
  readonly "Clear colors": "Clear colors";
306
310
  readonly "Clear this site\u2019s colors?": "Clear this site’s colors?";
311
+ readonly "Click a colour, text style or spacing to put a link to it in your code, at the cursor. If you change Styles later, this section changes with it.": "Click a colour, text style or spacing to put a link to it in your code, at the cursor. If you change Styles later, this section changes with it.";
307
312
  readonly "Click to play": "Click to play";
313
+ readonly Code: "Code";
308
314
  readonly Collapse: "Collapse";
309
315
  readonly "Collapse {name}": "Collapse {name}";
310
316
  readonly Collections: "Collections";
311
317
  readonly Color: "Color";
318
+ readonly Colours: "Colours";
312
319
  readonly "Column *title.*": "Column *title.*";
313
320
  readonly "Column 1 cards": "Column 1 cards";
314
321
  readonly "Column 1 title": "Column 1 title";
@@ -444,6 +451,7 @@ export declare const WEB_BUILDER_WORDS: {
444
451
  readonly "Each website created from this template sets its own {what} afterwards.": "Each website created from this template sets its own {what} afterwards.";
445
452
  readonly "Easy to read": "Easy to read";
446
453
  readonly Edit: "Edit";
454
+ readonly "Edit code": "Edit code";
447
455
  readonly "Edit colors": "Edit colors";
448
456
  readonly "Edit colors for {name}": "Edit colors for {name}";
449
457
  readonly "Edit {name}": "Edit {name}";
@@ -471,6 +479,7 @@ export declare const WEB_BUILDER_WORDS: {
471
479
  readonly "Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.": "Every text on the site that follows {style} changes to look like this one. This text’s own changes are cleared, and it keeps following {style}.";
472
480
  readonly "Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.": "Every {part} in this section follows it. The face and the size change; the letter case is the section’s own and stays as it is.";
473
481
  readonly "Everything else on this block comes from the linked post. Unlink it to edit by hand.": "Everything else on this block comes from the linked post. Unlink it to edit by hand.";
482
+ readonly "Everything here is published as written.": "Everything here is published as written.";
474
483
  readonly "Everything is live": "Everything is live";
475
484
  readonly Excerpt: "Excerpt";
476
485
  readonly "Extra large \u2014 64px": "Extra large — 64px";
@@ -533,6 +542,7 @@ export declare const WEB_BUILDER_WORDS: {
533
542
  readonly "Form eyebrow": "Form eyebrow";
534
543
  readonly "Form heading": "Form heading";
535
544
  readonly "Form intro": "Form intro";
545
+ readonly "Format code": "Format code";
536
546
  readonly "Formatting \u2014 click a row first": "Formatting — click a row first";
537
547
  readonly "Formatting \u2014 row {n}": "Formatting — row {n}";
538
548
  readonly Founders: "Founders";
@@ -554,6 +564,7 @@ export declare const WEB_BUILDER_WORDS: {
554
564
  readonly "Full-screen opener with rotating slides.": "Full-screen opener with rotating slides.";
555
565
  readonly Gallery: "Gallery";
556
566
  readonly Gap: "Gap";
567
+ readonly "Gap between blocks": "Gap between blocks";
557
568
  readonly "Gap only": "Gap only";
558
569
  readonly "Give the new template page a name. It starts blank \u2014 add sections once it opens.": "Give the new template page a name. It starts blank — add sections once it opens.";
559
570
  readonly "Gives the other card this card's Corners.": "Gives the other card this card's Corners.";
@@ -646,7 +657,9 @@ export declare const WEB_BUILDER_WORDS: {
646
657
  readonly "In its own box": "In its own box";
647
658
  readonly "In progress (main)": "In progress (main)";
648
659
  readonly "In the card": "In the card";
660
+ readonly "In the header": "In the header";
649
661
  readonly "In the list column": "In the list column";
662
+ readonly "In the menu": "In the menu";
650
663
  readonly "In the product": "In the product";
651
664
  readonly "In this issue": "In this issue";
652
665
  readonly "In this section": "In this section";
@@ -1051,6 +1064,7 @@ export declare const WEB_BUILDER_WORDS: {
1051
1064
  readonly "Screen 16:10": "Screen 16:10";
1052
1065
  readonly "Screen top": "Screen top";
1053
1066
  readonly Screens: "Screens";
1067
+ readonly "Scripts and event attributes are removed for safety.": "Scripts and event attributes are removed for safety.";
1054
1068
  readonly Scroll: "Scroll";
1055
1069
  readonly "Scroll-Over Text": "Scroll-Over Text";
1056
1070
  readonly "Scrolling Bar": "Scrolling Bar";
@@ -1069,6 +1083,7 @@ export declare const WEB_BUILDER_WORDS: {
1069
1083
  readonly "Section above": "Section above";
1070
1084
  readonly "Section band": "Section band";
1071
1085
  readonly "Section below": "Section below";
1086
+ readonly "Section code": "Section code";
1072
1087
  readonly "Section header": "Section header";
1073
1088
  readonly "Section heading": "Section heading";
1074
1089
  readonly "Section heading\n*Highlight line*": "Section heading\n*Highlight line*";
@@ -1119,6 +1134,7 @@ export declare const WEB_BUILDER_WORDS: {
1119
1134
  readonly "Shown beside the heading": "Shown beside the heading";
1120
1135
  readonly "Shown by the section: {name}": "Shown by the section: {name}";
1121
1136
  readonly Shows: "Shows";
1137
+ readonly "Shows the preview in this Theme. It adds no code. The section uses the Theme in its own settings.": "Shows the preview in this Theme. It adds no code. The section uses the Theme in its own settings.";
1122
1138
  readonly "Shows when a visitor points at the button": "Shows when a visitor points at the button";
1123
1139
  readonly Shrink: "Shrink";
1124
1140
  readonly "Shrink to fit": "Shrink to fit";
@@ -1153,6 +1169,7 @@ export declare const WEB_BUILDER_WORDS: {
1153
1169
  readonly "Space above and below": "Space above and below";
1154
1170
  readonly "Space between boxes": "Space between boxes";
1155
1171
  readonly Spacer: "Spacer";
1172
+ readonly Spacing: "Spacing";
1156
1173
  readonly "Spec Strip": "Spec Strip";
1157
1174
  readonly "Spec Table": "Spec Table";
1158
1175
  readonly "Spec label": "Spec label";
@@ -1256,6 +1273,7 @@ export declare const WEB_BUILDER_WORDS: {
1256
1273
  readonly "Text position": "Text position";
1257
1274
  readonly "Text size": "Text size";
1258
1275
  readonly "Text style": "Text style";
1276
+ readonly "Text styles": "Text styles";
1259
1277
  readonly Texts: "Texts";
1260
1278
  readonly Texture: "Texture";
1261
1279
  readonly "Texture color": "Texture color";
@@ -1468,6 +1486,7 @@ export declare const WEB_BUILDER_WORDS: {
1468
1486
  readonly Zoom: "Zoom";
1469
1487
  readonly "Zoom in": "Zoom in";
1470
1488
  readonly "Zoom out": "Zoom out";
1489
+ readonly add: "add";
1471
1490
  readonly "all theme colors": "all theme colors";
1472
1491
  readonly arrangement: "arrangement";
1473
1492
  readonly "body text": "body text";