efficient-web-builder 57.1.0 → 59.0.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 (244) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/editor/components/SectionIcon.js +1 -1
  3. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  4. package/dist/editor/components/storefront-editor.css +30 -0
  5. package/dist/editor/lib/animation/hover-fields.js +1 -1
  6. package/dist/editor/lib/document/ColourControl.js +1 -1
  7. package/dist/editor/lib/document/blocks/general/CardList/fields.js +1 -1
  8. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  9. package/dist/editor/lib/document/blocks/general/Chart/fields.js +1 -1
  10. package/dist/editor/lib/document/blocks/general/Contents/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/Countdown/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/general/FAQ/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/ListSearch/fields.d.ts +2 -0
  16. package/dist/editor/lib/document/blocks/general/ListSearch/fields.js +1 -0
  17. package/dist/editor/lib/document/blocks/general/Mockup/fields.js +2 -2
  18. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  19. package/dist/editor/lib/document/blocks/general/index.js +1 -1
  20. package/dist/editor/lib/document/box-fields.d.ts +1 -0
  21. package/dist/editor/lib/document/box-fields.js +1 -1
  22. package/dist/editor/lib/document/card-display-chips.d.ts +7 -5
  23. package/dist/editor/lib/document/card-display-chips.js +1 -1
  24. package/dist/editor/lib/document/card-row-fields.d.ts +2 -1
  25. package/dist/editor/lib/document/card-row-fields.js +1 -1
  26. package/dist/editor/lib/document/controls.d.ts +13 -1
  27. package/dist/editor/lib/document/controls.js +1 -1
  28. package/dist/editor/lib/sections/text-layouts.js +1 -1
  29. package/dist/format/lib/animation/hover.js +1 -1
  30. package/dist/format/lib/content/accordion-row-style.d.ts +10 -0
  31. package/dist/format/lib/content/accordion-row-style.js +1 -0
  32. package/dist/format/lib/content/box-angle.d.ts +9 -0
  33. package/dist/format/lib/content/box-angle.js +1 -0
  34. package/dist/format/lib/content/box-background.d.ts +3 -0
  35. package/dist/format/lib/content/box-background.js +1 -1
  36. package/dist/format/lib/content/box-layout.d.ts +3 -0
  37. package/dist/format/lib/content/box-layout.js +1 -1
  38. package/dist/format/lib/content/card-columns.d.ts +1 -0
  39. package/dist/format/lib/content/card-columns.js +1 -0
  40. package/dist/format/lib/content/card-place.d.ts +4 -0
  41. package/dist/format/lib/content/card-place.js +1 -1
  42. package/dist/format/lib/content/card-state.d.ts +17 -0
  43. package/dist/format/lib/content/card-state.js +1 -1
  44. package/dist/format/lib/content/card-template.d.ts +3 -0
  45. package/dist/format/lib/content/card-template.js +1 -1
  46. package/dist/format/lib/content/copies-in-box.d.ts +2 -0
  47. package/dist/format/lib/content/copies-in-box.js +1 -0
  48. package/dist/format/lib/content/gallery-layout.d.ts +13 -1
  49. package/dist/format/lib/content/gallery-layout.js +1 -1
  50. package/dist/format/lib/content/list-query.d.ts +7 -0
  51. package/dist/format/lib/content/list-query.js +1 -0
  52. package/dist/format/lib/content/page-background.js +1 -1
  53. package/dist/format/lib/content/part-display.js +1 -1
  54. package/dist/format/lib/content/section-background.js +1 -1
  55. package/dist/format/lib/content/view-hide-class.d.ts +11 -0
  56. package/dist/format/lib/content/view-hide-class.js +1 -0
  57. package/dist/format/lib/document/blocks/general/Chart/meta.d.ts +1 -0
  58. package/dist/format/lib/document/blocks/general/Chart/meta.js +1 -1
  59. package/dist/format/lib/document/blocks/general/Countdown/meta.d.ts +1 -0
  60. package/dist/format/lib/document/blocks/general/Countdown/meta.js +1 -1
  61. package/dist/format/lib/document/blocks/general/FAQ/card-seed.d.ts +7 -0
  62. package/dist/format/lib/document/blocks/general/FAQ/card-seed.js +1 -0
  63. package/dist/format/lib/document/blocks/general/FAQ/meta.d.ts +6 -0
  64. package/dist/format/lib/document/blocks/general/FAQ/meta.js +1 -1
  65. package/dist/format/lib/document/blocks/general/ListSearch/meta.d.ts +6 -0
  66. package/dist/format/lib/document/blocks/general/ListSearch/meta.js +1 -0
  67. package/dist/format/lib/document/blocks/general/Mockup/meta.d.ts +1 -0
  68. package/dist/format/lib/document/blocks/general/Mockup/meta.js +1 -1
  69. package/dist/format/lib/document/blocks/general/PaymentBadges/meta.d.ts +6 -0
  70. package/dist/format/lib/document/blocks/general/PaymentBadges/meta.js +1 -1
  71. package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
  72. package/dist/format/lib/document/blocks/general/metas.js +1 -1
  73. package/dist/format/lib/document/blocks/general/text-part-shapes.json +28 -0
  74. package/dist/format/lib/document/box-footer.js +1 -1
  75. package/dist/format/lib/document/card-row-keys.d.ts +14 -0
  76. package/dist/format/lib/document/card-row-keys.js +1 -0
  77. package/dist/format/lib/document/cards-template-on-read.d.ts +1 -1
  78. package/dist/format/lib/document/cards-template-on-read.js +1 -1
  79. package/dist/format/lib/document/container-blocks.js +1 -1
  80. package/dist/format/lib/document/general-order.d.ts +1 -1
  81. package/dist/format/lib/document/general-order.js +1 -1
  82. package/dist/format/lib/document/list-search-scopes.d.ts +4 -0
  83. package/dist/format/lib/document/list-search-scopes.js +1 -0
  84. package/dist/format/lib/document/neutralization-contracts.js +1 -1
  85. package/dist/format/lib/document/part-inks.d.ts +6 -2
  86. package/dist/format/lib/document/part-inks.js +1 -1
  87. package/dist/format/lib/document/section-catalog.js +2 -2
  88. package/dist/format/lib/document/theme-slots.d.ts +20 -0
  89. package/dist/format/lib/document/theme-slots.js +1 -0
  90. package/dist/format/lib/editor-words-catalogue.d.ts +10 -0
  91. package/dist/format/lib/editor-words-catalogue.js +4 -4
  92. package/dist/format/lib/editor-words-kept.js +1 -1
  93. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  94. package/dist/format/lib/theme.d.ts +1 -0
  95. package/dist/format/lib/theme.js +4 -4
  96. package/dist/render/components/BoxAccordionRow.d.ts +3 -1
  97. package/dist/render/components/BoxAccordionRow.js +1 -1
  98. package/dist/render/components/BoxTabPaneContext.d.ts +5 -0
  99. package/dist/render/components/BoxTabPaneContext.js +1 -1
  100. package/dist/render/components/CardRowContext.d.ts +3 -1
  101. package/dist/render/components/CardRowContext.js +1 -1
  102. package/dist/render/components/Cards.d.ts +2 -1
  103. package/dist/render/components/Cards.js +1 -1
  104. package/dist/render/components/CategoryBar.d.ts +1 -1
  105. package/dist/render/components/CategoryBar.js +1 -1
  106. package/dist/render/components/ChartSection.d.ts +2 -1
  107. package/dist/render/components/ChartSection.js +1 -1
  108. package/dist/render/components/ContactLocations.js +2 -2
  109. package/dist/render/components/ContentsList.d.ts +3 -3
  110. package/dist/render/components/ContentsList.js +1 -1
  111. package/dist/render/components/Countdown.d.ts +2 -1
  112. package/dist/render/components/Countdown.js +1 -1
  113. package/dist/render/components/Divider.d.ts +1 -2
  114. package/dist/render/components/Divider.js +1 -1
  115. package/dist/render/components/DocBody.js +5 -5
  116. package/dist/render/components/DocMasthead.js +1 -1
  117. package/dist/render/components/DocMetaCards.js +1 -1
  118. package/dist/render/components/DocTabs.js +1 -1
  119. package/dist/render/components/Eyebrow.d.ts +2 -1
  120. package/dist/render/components/Eyebrow.js +1 -1
  121. package/dist/render/components/FAQ.d.ts +6 -1
  122. package/dist/render/components/FAQ.js +1 -1
  123. package/dist/render/components/FeaturedCover.d.ts +2 -1
  124. package/dist/render/components/FeaturedCover.js +1 -1
  125. package/dist/render/components/Flex.d.ts +3 -1
  126. package/dist/render/components/Flex.js +1 -1
  127. package/dist/render/components/Footprint.js +1 -1
  128. package/dist/render/components/HeroGroup.d.ts +1 -1
  129. package/dist/render/components/HeroGroup.js +1 -1
  130. package/dist/render/components/HeroPictures.js +1 -1
  131. package/dist/render/components/HeroSection.js +1 -1
  132. package/dist/render/components/HeroSingle.js +1 -1
  133. package/dist/render/components/HeroSlide.d.ts +1 -1
  134. package/dist/render/components/HeroSlide.js +1 -1
  135. package/dist/render/components/InBoxContext.d.ts +1 -1
  136. package/dist/render/components/InBoxContext.js +1 -1
  137. package/dist/render/components/IntegrationsSection.js +1 -1
  138. package/dist/render/components/IntroBleed.js +1 -1
  139. package/dist/render/components/JoinBox.js +1 -1
  140. package/dist/render/components/KeyFeatures.js +1 -1
  141. package/dist/render/components/ListSearchBox.d.ts +7 -0
  142. package/dist/render/components/ListSearchBox.js +1 -0
  143. package/dist/render/components/LocationMap.d.ts +2 -1
  144. package/dist/render/components/LocationMap.js +1 -1
  145. package/dist/render/components/Logo.d.ts +3 -1
  146. package/dist/render/components/Logo.js +1 -1
  147. package/dist/render/components/LogoBlock.js +1 -1
  148. package/dist/render/components/LongRead.js +1 -1
  149. package/dist/render/components/Manifesto.js +1 -1
  150. package/dist/render/components/Masthead.js +1 -1
  151. package/dist/render/components/MockupSection.d.ts +2 -1
  152. package/dist/render/components/MockupSection.js +1 -1
  153. package/dist/render/components/ParagraphsA.d.ts +2 -1
  154. package/dist/render/components/ParagraphsA.js +1 -1
  155. package/dist/render/components/PostCard.d.ts +2 -1
  156. package/dist/render/components/PostCard.js +1 -1
  157. package/dist/render/components/ProcessSteps.js +1 -1
  158. package/dist/render/components/Prose.js +1 -1
  159. package/dist/render/components/SectionAnimation.d.ts +3 -2
  160. package/dist/render/components/SectionAnimation.js +1 -1
  161. package/dist/render/components/SectionEyebrow.d.ts +2 -1
  162. package/dist/render/components/SectionEyebrow.js +1 -1
  163. package/dist/render/components/Series.js +1 -1
  164. package/dist/render/components/SiteGutterFrame.d.ts +2 -2
  165. package/dist/render/components/SiteGutterFrame.js +1 -1
  166. package/dist/render/components/Spacer.js +1 -1
  167. package/dist/render/components/SpecStrip.js +1 -1
  168. package/dist/render/components/StatsParagraph.js +1 -1
  169. package/dist/render/components/Testimonials.js +1 -1
  170. package/dist/render/components/TickerSection.js +1 -1
  171. package/dist/render/components/Timeline.js +1 -1
  172. package/dist/render/components/TimelineTrack.js +1 -1
  173. package/dist/render/components/TitleWithButtons.js +1 -1
  174. package/dist/render/components/ViewHideRoot.d.ts +23 -0
  175. package/dist/render/components/ViewHideRoot.js +1 -0
  176. package/dist/render/lib/content/block-size.d.ts +0 -2
  177. package/dist/render/lib/content/block-size.js +1 -1
  178. package/dist/render/lib/content/page-contents.js +1 -1
  179. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  180. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  181. package/dist/render/lib/document/blocks/general/Chart/render.js +1 -1
  182. package/dist/render/lib/document/blocks/general/Contents/render.js +1 -1
  183. package/dist/render/lib/document/blocks/general/Countdown/render.js +1 -1
  184. package/dist/render/lib/document/blocks/general/CustomHTML/render.js +1 -1
  185. package/dist/render/lib/document/blocks/general/Divider/render.js +1 -1
  186. package/dist/render/lib/document/blocks/general/Eyebrow/render.js +1 -1
  187. package/dist/render/lib/document/blocks/general/FAQ/render.js +1 -1
  188. package/dist/render/lib/document/blocks/general/FeaturedCover/render.js +1 -1
  189. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  190. package/dist/render/lib/document/blocks/general/ListSearch/render.d.ts +2 -0
  191. package/dist/render/lib/document/blocks/general/ListSearch/render.js +1 -0
  192. package/dist/render/lib/document/blocks/general/LocationMap/render.js +1 -1
  193. package/dist/render/lib/document/blocks/general/Mockup/render.js +2 -2
  194. package/dist/render/lib/document/blocks/general/OrderSummary/card-seed.d.ts +2 -0
  195. package/dist/render/lib/document/blocks/general/OrderSummary/card-seed.js +1 -0
  196. package/dist/render/lib/document/blocks/general/ParagraphsA/render.js +1 -1
  197. package/dist/render/lib/document/blocks/general/PaymentBadges/render.js +1 -1
  198. package/dist/render/lib/document/blocks/general/PostCard/render.js +1 -1
  199. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  200. package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
  201. package/dist/render/lib/document/blocks/general/renders.js +1 -1
  202. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -1
  203. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  204. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.d.ts +3 -0
  205. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  206. package/dist/render/lib/document/blocks/general/section-to-box-rows-checkout.d.ts +2 -0
  207. package/dist/render/lib/document/blocks/general/section-to-box-rows-checkout.js +1 -0
  208. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -2
  209. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +12 -0
  210. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  211. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  212. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.d.ts +1 -0
  213. package/dist/render/lib/document/blocks/general/section-to-box-rows-logos.js +1 -1
  214. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.d.ts +2 -0
  215. package/dist/render/lib/document/blocks/general/section-to-box-rows-promo.js +1 -0
  216. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.d.ts +2 -0
  217. package/dist/render/lib/document/blocks/general/section-to-box-rows-proof.js +1 -0
  218. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  219. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  220. package/dist/render/lib/document/head-core-boxes.js +1 -1
  221. package/dist/render/lib/document/page-render.js +1 -1
  222. package/dist/render/lib/document/passes/block-size.js +1 -1
  223. package/dist/render/lib/document/passes/borders.js +1 -1
  224. package/dist/render/lib/document/passes/box-join.js +1 -1
  225. package/dist/render/lib/document/passes/cell-width.js +1 -1
  226. package/dist/render/lib/document/passes/corners.js +1 -1
  227. package/dist/render/lib/document/passes/head-core.js +1 -1
  228. package/dist/render/lib/document/passes/hidden-nodes.d.ts +2 -0
  229. package/dist/render/lib/document/passes/hidden-nodes.js +1 -0
  230. package/dist/render/lib/document/passes/index.js +1 -1
  231. package/dist/render/lib/document/passes/section-anchor.js +1 -1
  232. package/dist/render/lib/document/passes/section-animation.js +1 -1
  233. package/dist/render/lib/document/passes/section-height.js +1 -1
  234. package/dist/render/lib/document/passes/section-padding.js +1 -1
  235. package/dist/render/lib/document/passes/section-sticky.js +1 -1
  236. package/dist/render/lib/document/passes/section-theme.js +1 -1
  237. package/dist/render/lib/document/passes/section-width.js +1 -1
  238. package/dist/render/lib/document/slot-counts.js +1 -1
  239. package/dist/render/lib/sections/section-to-box.js +1 -1
  240. package/package.json +3 -3
  241. package/dist/editor/lib/document/theme-swatches.d.ts +0 -3
  242. package/dist/editor/lib/document/theme-swatches.js +0 -1
  243. package/dist/format/lib/document/passes/hidden-nodes.d.ts +0 -2
  244. package/dist/format/lib/document/passes/hidden-nodes.js +0 -1
@@ -0,0 +1 @@
1
+ import{newId as y}from"efficient-easel/data";import{declaredBlockSource as g,sourceChoices as w}from"../content/block-sources.js";import{cardKeyOf as C,cardRow as b}from"../content/card-template.js";import{say as x}from"../editor-words.js";function j(t,{rows:r="items",label:n="title"}={}){const o=g(t);return o?w(o).map(c=>({label:c.label,value:c.key})):(Array.isArray(t[r])?t[r]:[]).map((c,i)=>({label:typeof c?.[n]=="string"&&c[n].trim()||x("Card {n}",{n:i+1}),value:C(b(c),i)}))}const h=new WeakMap;function v(t,r){let n=h.get(t);n||h.set(t,n=new Map);const o=JSON.stringify(r);let a=n.get(o);return a||n.set(o,a={...t,options:[...t.options,...r]}),a}function B(t,r="card"){return Object.defineProperty({...t},"key",{get:()=>y(r),enumerable:!0})}function P(t,r="items"){if(!Array.isArray(t[r])||g(t))return t;const n=t[r],o=typeof t.highlightedCard=="string"?t.highlightedCard.trim():"",a=e=>e&&typeof e=="object"&&typeof e.key=="string"?e.key:"",c=!!o&&!n.some(e=>a(e)===o),i=new Set;let s=t.highlightedCard,l=!1;const k=n.map((e,m)=>{if(!e||typeof e!="object")return e;const f=a(e);if(f&&!i.has(f))return i.add(f),e;const u=!f&&c&&o===String(m+1);if(f||u){const d=y("card");return i.add(d),l=!0,u&&(s=d),{...e,key:d}}return e});return l?{...t,[r]:k,highlightedCard:s}:t}export{j as cardPicks,B as newCard,v as pickRow,P as withOwnCardKeys};
@@ -1,4 +1,4 @@
1
1
  type Props = Record<string, unknown>;
2
2
  export declare function withCardsTemplate(type: string | undefined, props: Props): Props;
3
- export declare function cardsFieldsFollowContent(props: Props): Props;
3
+ export declare function cardsFieldsFollowContent(props: Props, offers?: (field: string) => boolean): Props;
4
4
  export {};
@@ -1 +1 @@
1
- import{declaredBlockSource as u}from"../content/block-sources.js";import{nonEmptyString as C}from"../non-empty-string.js";import{CARD_ROW_FIELD_PROP as s}from"../content/card-template.js";import{CONTAINER_BLOCKS_SLOT as y}from"./container-blocks.js";import{SERVED_CARD_FIELDS as a,TYPED_CARD_FIELDS as c,cardsTemplateNodes as E}from"./blocks/general/Cards/card-seed.js";function O(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return D(t);const r=C(t.id)??"Cards",o=u(t)?a:c;return{...t,template:E((m,n)=>n==="0"?`${r}~card`:`${r}~card.${n.slice(2)}`,o)}}const A=e=>{const[t,r]=e?[c,a]:[a,c];return new Map([[t.title,r.title],[t.body,r.body]])};function _(e,t){let r=null;return e.forEach((o,m)=>{const n=o?.props;if(!n)return;let i=n;const l=n[s];o.type==="Text"&&typeof l=="string"&&t.has(l)&&(i={...i,[s]:t.get(l)});const f=n[y];if(Array.isArray(f)){const d=_(f,t);d!==f&&(i={...i,[y]:d})}i!==n&&(r??=[...e],r[m]={...o,props:i})}),r??e}function D(e){if(!Array.isArray(e.template))return e;const t=_(e.template,A(!!u(e)));return t===e.template?e:{...e,template:t}}export{D as cardsFieldsFollowContent,O as withCardsTemplate};
1
+ import{declaredBlockSource as d}from"../content/block-sources.js";import{nonEmptyString as C}from"../non-empty-string.js";import{CARD_ROW_FIELD_PROP as s}from"../content/card-template.js";import{CONTAINER_BLOCKS_SLOT as y}from"./container-blocks.js";import{SERVED_CARD_FIELDS as m,TYPED_CARD_FIELDS as f,cardsTemplateNodes as E}from"./blocks/general/Cards/card-seed.js";function L(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return D(t);const r=C(t.id)??"Cards",i=d(t)?m:f;return{...t,template:E((l,n)=>n==="0"?`${r}~card`:`${r}~card.${n.slice(2)}`,i)}}const A=e=>{const[t,r]=e?[f,m]:[m,f];return new Map([[t.title,r.title],[t.body,r.body]])};function _(e,t){let r=null;return e.forEach((i,l)=>{const n=i?.props;if(!n)return;let o=n;const a=n[s];i.type==="Text"&&typeof a=="string"&&t.has(a)&&(o={...o,[s]:t.get(a)});const c=n[y];if(Array.isArray(c)){const u=_(c,t);u!==c&&(o={...o,[y]:u})}o!==n&&(r??=[...e],r[l]={...i,props:o})}),r??e}function D(e,t){if(!Array.isArray(e.template))return e;const r=A(!!d(e)),i=t?new Map([...r].filter(([n,o])=>t(o)&&!t(n))):r;if(!i.size)return e;const l=_(e.template,i);return l===e.template?e:{...e,template:l}}export{D as cardsFieldsFollowContent,L as withCardsTemplate};
@@ -1 +1 @@
1
- import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",T="Flex",s="Text & media",y="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],i=[...c,{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),E=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:y})),a=[...i,...E],l=[...c,{type:"HeroGroup",label:n}],B=l.map(e=>e.type),O=1,u=l.filter(e=>e.type!=="HeroGroup");function C(e){return e<O?l:u}const b={Flex:{slot:o,choices:()=>a},Grid:{slot:o,choices:()=>a},HeroGroup:{slot:o,choices:C}};function S(e,r=0){const t=b[e];return t?{slot:t.slot,choices:t.choices(r)}:null}export{T as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,a as CONTAINER_BLOCK_CHOICES,B as HERO_GROUP_BLOCK_TYPES,O as HERO_GROUP_NEST_DEPTH,S as containerBlocksFor};
1
+ import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",L="Flex",s="Text & media",y="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],i=[...c,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),E=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:y})),a=[...i,...E],l=[...c,{type:"HeroGroup",label:n}],S=l.map(e=>e.type),O=1,b=l.filter(e=>e.type!=="HeroGroup");function u(e){return e<O?l:b}const C={Flex:{slot:o,choices:()=>a},Grid:{slot:o,choices:()=>a},HeroGroup:{slot:o,choices:u}};function T(e,r=0){const t=C[e];return t?{slot:t.slot,choices:t.choices(r)}:null}export{L as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,a as CONTAINER_BLOCK_CHOICES,S as HERO_GROUP_BLOCK_TYPES,O as HERO_GROUP_NEST_DEPTH,T as containerBlocksFor};
@@ -1,3 +1,3 @@
1
1
  import type { Config } from "efficient-easel/blocks";
2
- export declare const GENERAL_REGISTRATION_ORDER: readonly ["Heading", "Text", "Eyebrow", "ImageBlock", "LogoBlock", "ButtonBlock", "Spacer", "Divider", "Grid", "Flex", "Breadcrumb", "Masthead", "CategoryBar", "FeaturedCover", "LongRead", "Series", "Banner", "ParagraphsA", "StatsParagraph", "Timeline", "Footprint", "TimelineTrack", "TitleWithButtons", "Stats", "Integrations", "Mockup", "Chart", "KeyFeatures", "Testimonials", "Prose", "Cards", "Logos", "Ticker", "Countdown", "ContactLocations", "LocationMap", "HeroSingle", "Hero", "HeroSlide", "HeroGroup", "PostCard", "DocMetaCards", "DocTabs", "DocMasthead", "DocBody", "Contents", "FAQ", "SpecStrip", "Manifesto", "SectionHeader", "IntroBleed", "Split", "ProcessSteps", "OrderSummary", "PaymentBadges", "CustomHTML", "CardList"];
2
+ export declare const GENERAL_REGISTRATION_ORDER: readonly ["Heading", "Text", "Eyebrow", "ImageBlock", "LogoBlock", "ButtonBlock", "Spacer", "Divider", "Grid", "Flex", "Breadcrumb", "Masthead", "CategoryBar", "FeaturedCover", "LongRead", "Series", "Banner", "ParagraphsA", "StatsParagraph", "Timeline", "Footprint", "TimelineTrack", "TitleWithButtons", "Stats", "Integrations", "Mockup", "Chart", "KeyFeatures", "Testimonials", "Prose", "Cards", "Logos", "Ticker", "Countdown", "ContactLocations", "LocationMap", "HeroSingle", "Hero", "HeroSlide", "HeroGroup", "PostCard", "DocMetaCards", "DocTabs", "DocMasthead", "DocBody", "Contents", "ListSearch", "FAQ", "SpecStrip", "Manifesto", "SectionHeader", "IntroBleed", "Split", "ProcessSteps", "OrderSummary", "PaymentBadges", "CustomHTML", "CardList"];
3
3
  export declare function generalCategories(): Config["categories"];
@@ -1 +1 @@
1
- import{blockSetOf as n,buildBlockCategories as s}from"./section-catalog.js";const c=["Heading","Text","Eyebrow","ImageBlock","LogoBlock","ButtonBlock","Spacer","Divider","Grid","Flex","Breadcrumb","Masthead","CategoryBar","FeaturedCover","LongRead","Series","Banner","ParagraphsA","StatsParagraph","Timeline","Footprint","TimelineTrack","TitleWithButtons","Stats","Integrations","Mockup","Chart","KeyFeatures","Testimonials","Prose","Cards","Logos","Ticker","Countdown","ContactLocations","LocationMap","HeroSingle","Hero","HeroSlide","HeroGroup","PostCard","DocMetaCards","DocTabs","DocMasthead","DocBody","Contents","FAQ","SpecStrip","Manifesto","SectionHeader","IntroBleed","Split","ProcessSteps","OrderSummary","PaymentBadges","CustomHTML","CardList"];function d(){const e={};for(const[o,t]of Object.entries(s())){const r=t.components.filter(a=>n(a)==="general");(r.length>0||o==="structure")&&(e[o]={...t,components:r})}return e}export{c as GENERAL_REGISTRATION_ORDER,d as generalCategories};
1
+ import{blockSetOf as n,buildBlockCategories as s}from"./section-catalog.js";const c=["Heading","Text","Eyebrow","ImageBlock","LogoBlock","ButtonBlock","Spacer","Divider","Grid","Flex","Breadcrumb","Masthead","CategoryBar","FeaturedCover","LongRead","Series","Banner","ParagraphsA","StatsParagraph","Timeline","Footprint","TimelineTrack","TitleWithButtons","Stats","Integrations","Mockup","Chart","KeyFeatures","Testimonials","Prose","Cards","Logos","Ticker","Countdown","ContactLocations","LocationMap","HeroSingle","Hero","HeroSlide","HeroGroup","PostCard","DocMetaCards","DocTabs","DocMasthead","DocBody","Contents","ListSearch","FAQ","SpecStrip","Manifesto","SectionHeader","IntroBleed","Split","ProcessSteps","OrderSummary","PaymentBadges","CustomHTML","CardList"];function d(){const e={};for(const[o,t]of Object.entries(s())){const r=t.components.filter(a=>n(a)==="general");(r.length>0||o==="structure")&&(e[o]={...t,components:r})}return e}export{c as GENERAL_REGISTRATION_ORDER,d as generalCategories};
@@ -0,0 +1,4 @@
1
+ export declare const LIST_SEARCH_TYPE = "ListSearch";
2
+ export declare const LIST_TYPES: readonly string[];
3
+ export declare const LIST_KEY_PROP = "listKey";
4
+ export declare function markListSearchScopes<T>(data: T): T;
@@ -0,0 +1 @@
1
+ import{isNodeList as i}from"efficient-easel/data";const l="Flex",p="ListSearch",a=["FAQ"],S="listKey";function u(t){const s={...t.props??{}},o={...t,props:s},e={searches:[],lists:[]};t.type===p&&e.searches.push(o),a.includes(String(t.type))&&e.lists.push(o);for(const[n,r]of Object.entries(s))i(r)&&(s[n]=r.map(h=>{const c=u(h);return e.searches.push(...c.found.searches),e.lists.push(...c.found.lists),c.node}));if(t.type===l&&e.searches.length>0&&e.lists.length>0){const n=String(s.id??"");if(n){for(const r of[...e.searches,...e.lists])r.props[S]=n;return{node:o,found:{searches:[],lists:[]}}}}return{node:o,found:e}}const f=t=>i(t)&&t.some(s=>s.type===p||Object.values(s.props??{}).some(f));function d(t){const s=t;return!s||!Array.isArray(s.content)||!f(s.content)?t:{...s,content:s.content.map(o=>u(o).node)}}export{S as LIST_KEY_PROP,p as LIST_SEARCH_TYPE,a as LIST_TYPES,d as markListSearchScopes};
@@ -1 +1 @@
1
- import{SNAPSHOT_OBJECTS as s,HYDRATED_LISTS as l}from"./snapshot-contracts.js";const b={heading:"Main heading",body:"Add supporting copy.",eyebrow:"Label",button:"Button label",alt:"Image description",caption:"Image caption",address:null,phone:null,email:null,legal:null,generic:"Label"},r=[{semantic:"alt",name:/(^|[a-z])alt$|^imageLabel$|Alt$/i,label:/\balt text\b/i},{semantic:"caption",name:/caption/i,label:/\bcaption\b/i},{semantic:"email",name:/email/i,label:/\be-?mail\b/i},{semantic:"phone",name:/phone|tel$|mobile/i,label:/\bphone\b|\btelephone\b/i},{semantic:"address",name:/address|street|postcode|suburb|^hours$|^timezone$/i,label:/\baddress\b|\bopening hours\b/i},{semantic:"legal",name:/consent|finePrint|legal|disclaimer|copyright|abn|acn/i,label:/\bconsent\b|\bfine print\b|\blegal\b|\bdisclaimer\b/i},{semantic:"button",name:/^cta|Cta|button|Button|submitText|linkText|readLabel|viewLabel|archiveText|subscribedText/i,label:/\bbutton\b|\bcta\b|\blink text\b/i},{semantic:"eyebrow",name:/eyebrow|kicker|badge|^tag$|^num$|Number$|^label$|Label$|^meta|Meta$|^value$/i,label:/\beyebrow\b|\bkicker\b|\bbadge\b|\blabel\b|\bnumber\b|\btag\b/i},{semantic:"heading",name:/heading|Heading|^title|Title$|titleTop|titleBottom|^name$|question/i,label:/\bheading\b|\btitle\b/i},{semantic:"body",name:/body|description|^desc$|^intro|^lead|^dek$|^deck$|blurb|^copy$|quote|tagline|answer|^note$|footnote|^text$/i,label:/\bbody\b|\bdescription\b|\bblurb\b|\bintro\b|\bparagraph\b/i}];function g(e,a="",n=!1){for(const t of r)if(t.name?.test(e))return t.semantic;for(const t of r)if(t.label?.test(a))return t.semantic;return n?"body":"generic"}const c=["anchor"],d=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function E(e){return c.includes(e)||d.test(e)}const T={Reviews:["designCode"],ReviewForm:["designCode"],Form:["formSlug"]},v={HeroSingle:[{path:"eyebrow",semantic:"eyebrow",shape:"hidable"},{path:"titleTop",semantic:"heading",shape:"hidable"}],Hero:[{path:"tickerItems",semantic:"eyebrow",shape:"textList"}],ContactLocations:[{path:"sectionNumber",semantic:"eyebrow"},{path:"heading",semantic:"heading"},{path:"tagline",semantic:"body"},{path:"galleryKicker",semantic:"eyebrow"},{path:"galleryHint",semantic:"body"},{path:"locations[].groupName",semantic:"eyebrow"},{path:"locations[].name",semantic:"heading",neutral:"City name"},{path:"locations[].address",semantic:"address"},{path:"locations[].phone",semantic:"phone"},{path:"locations[].email",semantic:"email"},{path:"locations[].state",semantic:"address"},{path:"locations[].country",semantic:"address"},{path:"locations[].region",semantic:"address"},{path:"locations[].hours",semantic:"address"},{path:"locations[].timezone",semantic:"address"}]},p={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};p.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};const S=["previewProduct"],y=Object.fromEntries(Object.entries(s).map(([e,a])=>[e,Object.keys(a)])),_=Object.fromEntries(Object.entries(l).map(([e,a])=>[e,[...a]])),m=["email","phone","address"],u={email:"Email address",phone:"Phone number",address:"Address"},h=[{rule:"email address",re:/[\w.+-]+@[\w-]+\.[\w.]+/},{rule:"url or domain",re:/https?:\/\/|\bwww\.|\.(?:com|net|org|au|co|io)\b/i},{rule:"phone number",re:/(?:\+\d[\d\s-]{7,}|\b0\d[\d\s-]{7,})/},{rule:"street address",re:/\b\d+[a-z]?\s+[A-Z][a-z]+\s+(?:St|Street|Rd|Road|Ave|Avenue|Hwy|Highway|Dr|Drive)\b/}];function $(e,a){const n=(a??"").trim();if(n){const t=h.find(({re:i})=>i.test(n));if(!t)return{ok:!0,neutral:n,source:"declared"};const o=m.includes(e)?u[e]:void 0;return o?{ok:!0,neutral:o,source:"safe-substitute"}:{ok:!1,reason:`declared placeholder ${JSON.stringify(n)} looks like a ${t.rule}. A placeholder is copied verbatim into every platform template — make it generic.`}}return{ok:!0,neutral:b[e],source:"fallback"}}export{v as CUSTOM_FIELD_TEXT,p as CUSTOM_FIELD_VALUES,_ as HYDRATED_PROPS_FROM_MEDIA_CONTRACT,d as LINK_TEXT_PROP_RE,h as PLACEHOLDER_FORBIDDEN,T as REFERENCE_TEXT_FIELDS,S as ROOT_REFERENCE_PROPS,u as SAFE_SEMANTIC_PLACEHOLDER,m as SEMANTICS_WITH_UNSAFE_PLACEHOLDERS,b as SEMANTIC_FALLBACKS,y as SNAPSHOT_PROPS_FROM_MEDIA_CONTRACT,c as STRUCTURAL_TEXT_PROPS,g as classifyTextSemantic,E as isStructuralTextProp,$ as resolveNeutralValue};
1
+ import{SNAPSHOT_OBJECTS as s,HYDRATED_LISTS as l}from"./snapshot-contracts.js";const b={heading:"Main heading",body:"Add supporting copy.",eyebrow:"Label",button:"Button label",alt:"Image description",caption:"Image caption",address:null,phone:null,email:null,legal:null,generic:"Label"},o=[{semantic:"alt",name:/(^|[a-z])alt$|^imageLabel$|Alt$/i,label:/\balt text\b/i},{semantic:"caption",name:/caption/i,label:/\bcaption\b/i},{semantic:"email",name:/email/i,label:/\be-?mail\b/i},{semantic:"phone",name:/phone|tel$|mobile/i,label:/\bphone\b|\btelephone\b/i},{semantic:"address",name:/address|street|postcode|suburb|^hours$|^timezone$/i,label:/\baddress\b|\bopening hours\b/i},{semantic:"legal",name:/consent|finePrint|legal|disclaimer|copyright|abn|acn/i,label:/\bconsent\b|\bfine print\b|\blegal\b|\bdisclaimer\b/i},{semantic:"button",name:/^cta|Cta|button|Button|submitText|linkText|readLabel|viewLabel|archiveText|subscribedText/i,label:/\bbutton\b|\bcta\b|\blink text\b/i},{semantic:"eyebrow",name:/eyebrow|kicker|badge|^tag$|^num$|Number$|^label$|Label$|^meta|Meta$|^value$/i,label:/\beyebrow\b|\bkicker\b|\bbadge\b|\blabel\b|\bnumber\b|\btag\b/i},{semantic:"heading",name:/heading|Heading|^title|Title$|titleTop|titleBottom|^name$|question/i,label:/\bheading\b|\btitle\b/i},{semantic:"body",name:/body|description|^desc$|^intro|^lead|^dek$|^deck$|blurb|^copy$|quote|tagline|answer|^note$|footnote|^text$/i,label:/\bbody\b|\bdescription\b|\bblurb\b|\bintro\b|\bparagraph\b/i}];function g(e,a="",i=!1){for(const t of o)if(t.name?.test(e))return t.semantic;for(const t of o)if(t.label?.test(a))return t.semantic;return i?"body":"generic"}const c=["anchor"],d=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function E(e){return c.includes(e)||d.test(e)}const T={Reviews:["designCode"],ReviewForm:["designCode"],Form:["formSlug"]},y={HeroSingle:[{path:"eyebrow",semantic:"eyebrow",shape:"hidable"},{path:"titleTop",semantic:"heading",shape:"hidable"}],CardList:[{path:"items[].title",semantic:"heading"},{path:"items[].body",semantic:"body"}],Hero:[{path:"tickerItems",semantic:"eyebrow",shape:"textList"}],ContactLocations:[{path:"sectionNumber",semantic:"eyebrow"},{path:"heading",semantic:"heading"},{path:"tagline",semantic:"body"},{path:"galleryKicker",semantic:"eyebrow"},{path:"galleryHint",semantic:"body"},{path:"locations[].groupName",semantic:"eyebrow"},{path:"locations[].name",semantic:"heading",neutral:"City name"},{path:"locations[].address",semantic:"address"},{path:"locations[].phone",semantic:"phone"},{path:"locations[].email",semantic:"email"},{path:"locations[].state",semantic:"address"},{path:"locations[].country",semantic:"address"},{path:"locations[].region",semantic:"address"},{path:"locations[].hours",semantic:"address"},{path:"locations[].timezone",semantic:"address"}]},p={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};p.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};const v=["previewProduct"],S=Object.fromEntries(Object.entries(s).map(([e,a])=>[e,Object.keys(a)])),_=Object.fromEntries(Object.entries(l).map(([e,a])=>[e,[...a]])),m=["email","phone","address"],u={email:"Email address",phone:"Phone number",address:"Address"},h=[{rule:"email address",re:/[\w.+-]+@[\w-]+\.[\w.]+/},{rule:"url or domain",re:/https?:\/\/|\bwww\.|\.(?:com|net|org|au|co|io)\b/i},{rule:"phone number",re:/(?:\+\d[\d\s-]{7,}|\b0\d[\d\s-]{7,})/},{rule:"street address",re:/\b\d+[a-z]?\s+[A-Z][a-z]+\s+(?:St|Street|Rd|Road|Ave|Avenue|Hwy|Highway|Dr|Drive)\b/}];function $(e,a){const i=(a??"").trim();if(i){const t=h.find(({re:r})=>r.test(i));if(!t)return{ok:!0,neutral:i,source:"declared"};const n=m.includes(e)?u[e]:void 0;return n?{ok:!0,neutral:n,source:"safe-substitute"}:{ok:!1,reason:`declared placeholder ${JSON.stringify(i)} looks like a ${t.rule}. A placeholder is copied verbatim into every platform template — make it generic.`}}return{ok:!0,neutral:b[e],source:"fallback"}}export{y as CUSTOM_FIELD_TEXT,p as CUSTOM_FIELD_VALUES,_ as HYDRATED_PROPS_FROM_MEDIA_CONTRACT,d as LINK_TEXT_PROP_RE,h as PLACEHOLDER_FORBIDDEN,T as REFERENCE_TEXT_FIELDS,v as ROOT_REFERENCE_PROPS,u as SAFE_SEMANTIC_PLACEHOLDER,m as SEMANTICS_WITH_UNSAFE_PLACEHOLDERS,b as SEMANTIC_FALLBACKS,S as SNAPSHOT_PROPS_FROM_MEDIA_CONTRACT,c as STRUCTURAL_TEXT_PROPS,g as classifyTextSemantic,E as isStructuralTextProp,$ as resolveNeutralValue};
@@ -1,6 +1,10 @@
1
1
  import type { CopyThemeColor } from "efficient-easel/copy";
2
- import { type ColorSlot } from "efficient-shell/markup";
2
+ import { type ColorSlot, type FillColorSlot } from "efficient-shell/markup";
3
+ export declare function inkTokenOf(slot: string): string;
4
+ export declare function fillSlotNamed(value: unknown): FillColorSlot | null;
3
5
  export declare function partColourName(value: string): string;
4
6
  export declare function partInkCss(value: string | undefined): string;
5
- export declare function partThemeColors(read?: Partial<Record<ColorSlot, string>> | null): CopyThemeColor[];
7
+ export declare function partThemeColors(read?: Partial<Record<FillColorSlot, string>> | null, slots?: readonly string[]): CopyThemeColor[];
8
+ export declare function fillInkCss(name: string): string;
9
+ export declare function fillSlotOfInk(css: string | undefined): FillColorSlot | null;
6
10
  export declare function readInks(element: HTMLElement): Partial<Record<ColorSlot, string>>;
@@ -1 +1 @@
1
- import{parseHexColor as m}from"efficient-shell/format";import{COLOR_SLOTS as u,colorRole as S}from"efficient-shell/markup";import{say as g}from"../editor-words.js";import{COLOUR_TOKEN as i}from"../word-styles.js";const l={main:i.accent,text:i.text,background:"var(--bg)",muted:i.labels},C={main:"Main",text:"Text",background:"Background",muted:"Muted"},f={accent:"main",labels:"muted"};function N(t){return Object.hasOwn(f,t)?f[t]:t}function h(t){if(!t)return"";if(t.startsWith("#"))return m(t)===t.toLowerCase()?t:"";const o=S(N(t));return o?.kind==="slot"?l[o.slot]:""}const O="#9ca3af";function k(t){return u.map(o=>({name:o,label:g(C[o]),value:t?.[o]||O}))}function y(t){const o={},r=t.ownerDocument,e=r?.defaultView;if(!r||!e)return o;const d=e.getComputedStyle(t),n=r.createElement("canvas").getContext("2d");for(const a of u){const x=l[a].replace(/^var\((--[\w-]+)\)$/,"$1"),s=d.getPropertyValue(x).trim();if(!s)continue;let c=p(s);!c&&n&&(n.fillStyle="#000000",n.fillStyle=s,c=p(String(n.fillStyle))),c&&(o[a]=c)}return o}function p(t){const o=t.trim().toLowerCase();if(o.startsWith("#"))return m(o);const r=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return r?`#${r.slice(1,4).map(e=>Math.min(255,Number(e)).toString(16).padStart(2,"0")).join("")}`:null}export{N as partColourName,h as partInkCss,k as partThemeColors,y as readInks};
1
+ import{parseHexColor as u}from"efficient-shell/format";import{COLOR_SLOTS as a,FILL_COLOR_SLOTS as O,colorRole as w,fillColorRole as m}from"efficient-shell/markup";import{themeSlotOf as p,UNREAD_INK as L}from"./theme-slots.js";function e(t){return p(t)?.ink??""}function I(t){if(typeof t!="string")return null;const o=m(t.trim());return o?.kind==="slot"&&e(o.slot)?o.slot:null}const d={accent:"main",labels:"muted"};function S(t){return Object.hasOwn(d,t)?d[t]:t}function N(t){if(!t)return"";if(t.startsWith("#"))return u(t)===t.toLowerCase()?t:"";const o=w(S(t));return o?.kind==="slot"?e(o.slot):""}function b(t,o=a){return o.flatMap(n=>{const r=p(n);return r?.ink?[{name:n,label:r.label(),value:t?.[n]||L}]:[]})}function _(t){const o=m(S(t));return o?.kind==="slot"?e(o.slot):""}function R(t){const o=t?.trim();return o?O.find(n=>e(n)===o)??null:null}function T(t){const o={},n=t.ownerDocument,r=n?.defaultView;if(!n||!r)return o;const x=r.getComputedStyle(t),l=n.createElement("canvas").getContext("2d");for(const c of a){const f=e(c);if(!f)continue;const C=f.replace(/^var\((--[\w-]+)\)$/,"$1"),s=x.getPropertyValue(C).trim();if(!s)continue;let i=k(s);!i&&l&&(l.fillStyle="#000000",l.fillStyle=s,i=k(String(l.fillStyle))),i&&(o[c]=i)}return o}function k(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{_ as fillInkCss,I as fillSlotNamed,R as fillSlotOfInk,e as inkTokenOf,S as partColourName,N as partInkCss,b as partThemeColors,T as readInks};
@@ -1,4 +1,4 @@
1
- const h=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"}]}];function p(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i={Masthead:`Owner, 2026-10-10 (the page headers become ONE Layouts row): Issue Header and Document Header are one Page Header. Retired from the Add menu with no second preset (reviewer, 2026-11-06).
1
+ const h=["general","commerce","service"],o=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"}]}];function p(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const i={Masthead:`Owner, 2026-10-10 (the page headers become ONE Layouts row): Issue Header and Document Header are one Page Header. Retired from the Add menu with no second preset (reviewer, 2026-11-06).
2
2
 
3
3
  WHAT REPLACES IT: Page Header, a Box of Text blocks: a Header Box (the eyebrow, the title, a Details Box of one Text per line) over a Deck Box. Every Issue Header field is plain words with no data source, so the merchant makes the issue shape from Text blocks in that Box: the issue lines are Details lines, the lead is the Deck, and the "In this issue" panel is a Box of Texts beside it. Its converter row (\`section-to-box-rows-pageheader\` \`masthead\`, OFF) stays for a stored page that moves later.
4
4
 
@@ -62,4 +62,4 @@ WHAT A MERCHANT LOSES: the tyre-only head copy ("Will it fit your car?"); a pres
62
62
 
63
63
  NO CONVERTER ROW: 0 TyreFitment nodes on the US sites, draft or published (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
64
64
 
65
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`},u=["Grid","Spacer","TyreFitment"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function g(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function s(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=s("general"),T=s("commerce"),w=s("service"),d="Flex",a="Box",E=`${a}es`;function c(e){return e==="section"?"Blank section":a}function S(e,t,n){return e===d?c(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,a as BOX_LABEL,E as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,b as GENERAL_BLOCKS,d as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,w as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,s as blocksInSet,p as buildBlockCategories,S as labelAtLevel,c as labelForFlex};
65
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`,PaymentBadges:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},u=["Grid","Spacer","TyreFitment"],m=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(i)])),y=Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label]))),l={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",PaymentBadges:"general",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},r={...l,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function g(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0}function a(e){return Object.keys(r).filter(t=>r[t]===e).sort()}const b=a("general"),T=a("commerce"),w=a("service"),d="Flex",s="Box",E=`${s}es`;function c(e){return e==="section"?"Blank section":s}function S(e,t,n){return e===d?c(t):n}export{m as ALL_SECTION_TYPES,h as BLOCK_SETS,s as BOX_LABEL,E as BOX_LABEL_PLURAL,T as COMMERCE_BLOCKS,b as GENERAL_BLOCKS,d as LEVEL_NAMED_TYPE,u as RETIRED_NESTABLE_SECTIONS,i as RETIRED_SECTIONS,o as SECTION_CATALOG,y as SECTION_LABELS,w as SERVICE_BLOCKS,l as UNLISTED_BLOCK_SETS,g as blockSetOf,a as blocksInSet,p as buildBlockCategories,S as labelAtLevel,c as labelForFlex};
@@ -0,0 +1,20 @@
1
+ import type { CopyThemeColor } from "efficient-easel/copy";
2
+ import { normalizeThemeColors, type ThemeValue } from "../theme.js";
3
+ export interface ThemeSlot {
4
+ ink: string;
5
+ page: string;
6
+ key: keyof ReturnType<typeof normalizeThemeColors>;
7
+ label: () => string;
8
+ words: (n: number) => string;
9
+ }
10
+ export declare function themeSlotOf(slot: string): ThemeSlot | undefined;
11
+ export declare const UNREAD_INK = "#9ca3af";
12
+ export declare function slotFill(slot: string, colors: ReturnType<typeof normalizeThemeColors>, n: number): {
13
+ hex: string;
14
+ words: string;
15
+ } | null;
16
+ export declare function fillThemeColors(colors: ReturnType<typeof normalizeThemeColors>, n: number): CopyThemeColor[];
17
+ export declare function themePresets(value?: ThemeValue | null): {
18
+ value: string;
19
+ label: string;
20
+ }[];
@@ -0,0 +1 @@
1
+ import{parseHexColor as f}from"efficient-shell/format";import{FILL_COLOR_SLOTS as p}from"efficient-shell/markup";import{say as o}from"../editor-words.js";import{SECTION_PALETTE as h}from"../content/ink.js";import{COLOUR_TOKEN as a}from"../word-styles.js";import{normalizeTheme as T}from"../theme.js";const l=e=>{const n=h.find(t=>t.role===e);return n?`var(${n.token})`:""},b=e=>l(e)?`var(--theme-${e})`:"",m={main:{ink:a.accent,page:a.accent,key:"accent",label:()=>o("Main"),words:e=>o("Theme {n} main color",{n:e})},text:{ink:a.text,page:a.text,key:"text",label:()=>o("Text"),words:e=>o("Theme {n} text color",{n:e})},background:{ink:l("bg"),page:b("bg"),key:"background",label:()=>o("Background"),words:e=>o("Theme {n} background",{n:e})},muted:{ink:a.labels,page:a.labels,key:"muted",label:()=>o("Muted"),words:e=>o("Theme {n} muted color",{n:e})},surface:{ink:l("surface"),page:l("surface"),key:"surface",label:()=>o("Surface"),words:e=>o("Theme {n} surface color",{n:e})}};function i(e){return Object.hasOwn(m,e)?m[e]:void 0}const x="#9ca3af";function g(e,n,t){const r=i(e);return r?{hex:f(n[r.key]??"")??"",words:r.words(t)}:null}function C(e,n){return p.flatMap(t=>{const r=g(t,e,n);return r&&i(t)?.ink?[{name:t,label:r.words,value:r.hex||x}]:[]})}const w=["main","text","background"];function I(e){const n=new Set,t=[];return T(e).themes.forEach((r,d)=>{for(const k of w){const c=i(k),u=c?r[c.key]:void 0,s=typeof u=="string"&&u?f(u):null;!c||!s||n.has(s)||(n.add(s),t.push({value:s,label:c.words(d+1)}))}}),t}export{x as UNREAD_INK,C as fillThemeColors,g as slotFill,I as themePresets,i as themeSlotOf};
@@ -690,6 +690,7 @@ export declare const WEB_BUILDER_WORDS: {
690
690
  readonly Links: "Links";
691
691
  readonly "Links to": "Links to";
692
692
  readonly List: "List";
693
+ readonly "List search": "List search";
693
694
  readonly Live: "Live";
694
695
  readonly "Live chat": "Live chat";
695
696
  readonly "Live chat settings belong to a website.": "Live chat settings belong to a website.";
@@ -778,6 +779,7 @@ export declare const WEB_BUILDER_WORDS: {
778
779
  readonly "No pages match your search": "No pages match your search";
779
780
  readonly "No pages yet. Add one with + above.": "No pages yet. Add one with + above.";
780
781
  readonly "No place found. Try another postcode.": "No place found. Try another postcode.";
782
+ readonly "No question matches your search.": "No question matches your search.";
781
783
  readonly "No section anchors yet": "No section anchors yet";
782
784
  readonly "No style": "No style";
783
785
  readonly "No versions yet. Every Publish from now on keeps one.": "No versions yet. Every Publish from now on keeps one.";
@@ -799,6 +801,7 @@ export declare const WEB_BUILDER_WORDS: {
799
801
  readonly Nudge: "Nudge";
800
802
  readonly Number: "Number";
801
803
  readonly "Number style": "Number style";
804
+ readonly Numbered: "Numbered";
802
805
  readonly Numbers: "Numbers";
803
806
  readonly "N\u00B001, N\u00B002": "N°01, N°02";
804
807
  readonly "Odd cards": "Odd cards";
@@ -969,6 +972,7 @@ export declare const WEB_BUILDER_WORDS: {
969
972
  readonly "Rounds the picture. The card's own corner is in Styles.": "Rounds the picture. The card's own corner is in Styles.";
970
973
  readonly Row: "Row";
971
974
  readonly "Row columns": "Row columns";
975
+ readonly "Row style": "Row style";
972
976
  readonly Rows: "Rows";
973
977
  readonly "Rows, first image on the left": "Rows, first image on the left";
974
978
  readonly "Rows, first image on the right": "Rows, first image on the right";
@@ -984,6 +988,7 @@ export declare const WEB_BUILDER_WORDS: {
984
988
  readonly Search: "Search";
985
989
  readonly "Search all pages": "Search all pages";
986
990
  readonly "Search all pages\u2026": "Search all pages…";
991
+ readonly "Search questions": "Search questions";
987
992
  readonly Season: "Season";
988
993
  readonly "Second item": "Second item";
989
994
  readonly "Second section": "Second section";
@@ -1134,6 +1139,7 @@ export declare const WEB_BUILDER_WORDS: {
1134
1139
  readonly "Success heading": "Success heading";
1135
1140
  readonly "Success message": "Success message";
1136
1141
  readonly Superscript: "Superscript";
1142
+ readonly Surface: "Surface";
1137
1143
  readonly "Switch now": "Switch now";
1138
1144
  readonly "Switch to Box footer": "Switch to Box footer";
1139
1145
  readonly "Synced from the blog post.": "Synced from the blog post.";
@@ -1208,6 +1214,8 @@ export declare const WEB_BUILDER_WORDS: {
1208
1214
  readonly "Theme {n}": "Theme {n}";
1209
1215
  readonly "Theme {n} background": "Theme {n} background";
1210
1216
  readonly "Theme {n} main color": "Theme {n} main color";
1217
+ readonly "Theme {n} muted color": "Theme {n} muted color";
1218
+ readonly "Theme {n} surface color": "Theme {n} surface color";
1211
1219
  readonly "Theme {n} text color": "Theme {n} text color";
1212
1220
  readonly "These settings apply to every view.": "These settings apply to every view.";
1213
1221
  readonly "They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.": "They are saved in Version history as “Draft before restore”, so you can get them back.";
@@ -1263,10 +1271,12 @@ export declare const WEB_BUILDER_WORDS: {
1263
1271
  readonly "Triangle \u25BC": "Triangle ▼";
1264
1272
  readonly "Trusted by *teams worldwide*": "Trusted by *teams worldwide*";
1265
1273
  readonly "Try again": "Try again";
1274
+ readonly "Turns the box. 0\u00B0 is straight.": "Turns the box. 0° is straight.";
1266
1275
  readonly "Two across": "Two across";
1267
1276
  readonly "Two image galleries with tabs and filters.": "Two image galleries with tabs and filters.";
1268
1277
  readonly "Two tall": "Two tall";
1269
1278
  readonly "Two, then threes": "Two, then threes";
1279
+ readonly "Two, then threes \u00B7 photo": "Two, then threes · photo";
1270
1280
  readonly Type: "Type";
1271
1281
  readonly "Type a postcode or address": "Type a postcode or address";
1272
1282
  readonly "Typed by hand": "Typed by hand";