efficient-web-builder 67.1.0 → 67.3.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 (115) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/editor/components/StorefrontEditor.js +1 -1
  3. package/dist/editor/components/storefront-editor.css +131 -0
  4. package/dist/editor/components/useSectionToBoxPass.d.ts +4 -0
  5. package/dist/editor/components/useSectionToBoxPass.js +1 -1
  6. package/dist/editor/lib/animation/fields.js +1 -1
  7. package/dist/editor/lib/animation/hover-fields.d.ts +8 -0
  8. package/dist/editor/lib/animation/hover-fields.js +1 -1
  9. package/dist/editor/lib/document/add-palette.js +1 -1
  10. package/dist/editor/lib/document/add-target.js +1 -1
  11. package/dist/editor/lib/document/block-offer.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/shared-fields.js +1 -1
  14. package/dist/editor/lib/document/box-fields.d.ts +1 -1
  15. package/dist/editor/lib/document/card-display-chips.d.ts +1 -0
  16. package/dist/editor/lib/document/card-display-chips.js +1 -1
  17. package/dist/editor/lib/document/controls.js +1 -1
  18. package/dist/editor/lib/document/field-groups.js +1 -1
  19. package/dist/editor/lib/document/heading-outline.js +1 -1
  20. package/dist/editor/lib/document/page-root.js +2 -2
  21. package/dist/editor/lib/document/slot-new-children.js +1 -1
  22. package/dist/editor/lib/host-document-bridge.js +1 -1
  23. package/dist/editor/lib/sections/city-presets.js +1 -1
  24. package/dist/editor/lib/sections/new-section-node.js +1 -1
  25. package/dist/editor/lib/sections/section-dry-run.js +2 -2
  26. package/dist/editor/lib/sections/text-layouts.js +1 -1
  27. package/dist/format/lib/animation/hover.d.ts +3 -0
  28. package/dist/format/lib/animation/hover.js +1 -1
  29. package/dist/format/lib/content/box-layout.js +1 -1
  30. package/dist/format/lib/content/box-shape.d.ts +1 -1
  31. package/dist/format/lib/content/container-gap.d.ts +2 -2
  32. package/dist/format/lib/content/container-gap.js +1 -1
  33. package/dist/format/lib/content/css-length.d.ts +17 -1
  34. package/dist/format/lib/content/css-length.js +1 -1
  35. package/dist/format/lib/content/hover-media.d.ts +6 -1
  36. package/dist/format/lib/content/hover-media.js +1 -1
  37. package/dist/format/lib/content/image-treatment.d.ts +3 -0
  38. package/dist/format/lib/content/image-treatment.js +1 -1
  39. package/dist/format/lib/content/mirror-cards.js +1 -1
  40. package/dist/format/lib/content/page-width.d.ts +3 -3
  41. package/dist/format/lib/content/page-width.js +1 -1
  42. package/dist/format/lib/content/section-width.js +1 -1
  43. package/dist/format/lib/document/box-footer.js +1 -1
  44. package/dist/format/lib/document/container-blocks.js +1 -1
  45. package/dist/format/lib/document/media-drop.js +1 -1
  46. package/dist/format/lib/document/part-inks.js +1 -1
  47. package/dist/format/lib/document/part-records.js +1 -1
  48. package/dist/format/lib/document/passes/catalogue-labels.js +1 -1
  49. package/dist/format/lib/document/passes/media-values.js +1 -1
  50. package/dist/format/lib/document/row-hand.js +1 -1
  51. package/dist/format/lib/document/section-catalog.js +3 -3
  52. package/dist/format/lib/document/source-bound-parts.js +1 -1
  53. package/dist/format/lib/document/templateFields.js +1 -1
  54. package/dist/format/lib/document/theme-slots.js +1 -1
  55. package/dist/format/lib/editor-words-catalogue.d.ts +4 -0
  56. package/dist/format/lib/editor-words-catalogue.js +3 -3
  57. package/dist/format/lib/editor-words.js +1 -1
  58. package/dist/format/lib/logo/logo-size.d.ts +5 -0
  59. package/dist/format/lib/logo/logo-size.js +1 -1
  60. package/dist/format/lib/own-entry.d.ts +2 -0
  61. package/dist/format/lib/own-entry.js +1 -0
  62. package/dist/format/lib/preview-header-settings.d.ts +3 -0
  63. package/dist/format/lib/sections/active-press-context.js +1 -1
  64. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  65. package/dist/format/lib/sections/section-eyebrow-look.js +1 -1
  66. package/dist/format/lib/sections/section-head-placement.js +1 -1
  67. package/dist/format/lib/sections/section-presets.d.ts +2 -0
  68. package/dist/format/lib/sections/section-presets.js +1 -1
  69. package/dist/format/lib/sections/section-text-kinds.js +1 -1
  70. package/dist/format/lib/sections/section-text-regions.js +1 -1
  71. package/dist/format/lib/site-theme-row.d.ts +6 -0
  72. package/dist/format/lib/source-rules/editor-words.js +3 -3
  73. package/dist/format/lib/source-rules/import-time-work.js +4 -4
  74. package/dist/format/lib/source-rules/no-hard-coded-option-rows.d.ts +1 -1
  75. package/dist/format/lib/source-rules/no-hard-coded-option-rows.js +1 -1
  76. package/dist/format/lib/source-rules/own-key-reads.d.ts +26 -0
  77. package/dist/format/lib/source-rules/own-key-reads.js +7 -0
  78. package/dist/format/lib/source-rules/site-square-by-default.js +1 -1
  79. package/dist/format/lib/theme.d.ts +1 -1
  80. package/dist/format/lib/theme.js +4 -4
  81. package/dist/render/components/CardRowContext.d.ts +3 -1
  82. package/dist/render/components/CardRowContext.js +1 -1
  83. package/dist/render/components/Flex.d.ts +2 -1
  84. package/dist/render/components/Flex.js +1 -1
  85. package/dist/render/components/HoverMediaLayer.d.ts +16 -1
  86. package/dist/render/components/HoverMediaLayer.js +1 -1
  87. package/dist/render/components/ImageBlock.d.ts +1 -1
  88. package/dist/render/components/ImageBlock.js +1 -1
  89. package/dist/render/components/Logo.d.ts +2 -1
  90. package/dist/render/components/Logo.js +1 -1
  91. package/dist/render/components/PictureHoverMove.d.ts +1 -0
  92. package/dist/render/components/PictureHoverMove.js +1 -1
  93. package/dist/render/components/PreviewHeaderContext.d.ts +4 -1
  94. package/dist/render/components/PreviewHeaderContext.js +1 -1
  95. package/dist/render/lib/content/block-size.d.ts +6 -0
  96. package/dist/render/lib/content/block-size.js +1 -1
  97. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  98. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  99. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  100. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +6 -1
  101. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  102. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  103. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  104. package/dist/render/lib/document/head-core-boxes.js +1 -1
  105. package/dist/render/lib/document/migrate-legacy.js +1 -1
  106. package/dist/render/lib/document/part-styles.js +2 -2
  107. package/dist/render/lib/document/passes/block-size.js +1 -1
  108. package/dist/render/lib/document/passes/section-animation.js +1 -1
  109. package/dist/render/lib/document/passes/section-padding.js +1 -1
  110. package/dist/render/lib/document/passes/section-width.js +1 -1
  111. package/dist/render/lib/document/slot-counts.js +1 -1
  112. package/dist/render/lib/document/slot-specs.js +1 -1
  113. package/dist/render/lib/sections/section-to-box.d.ts +2 -0
  114. package/dist/render/lib/sections/section-to-box.js +1 -1
  115. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const m=["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:"GalleryB",label:"Gallery",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"}]},{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:"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:"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"}]},{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"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function y(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const l="2027-02-05",s={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
1
+ import{ownEntry as s}from"../own-entry.js";const b=["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:"GalleryB",label:"Gallery",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"}]},{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:"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:"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"}]},{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"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function g(){return Object.fromEntries(o.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}const d="2027-02-05",n={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
2
2
 
3
3
  WHAT REPLACES IT: Tab Bar, a Box pinned under the header that stays above the sections after it, with a line below, holding the Menu block (One row, Menu style Tabs, Current page). Set the Menu's content to Blog categories: the blog's own categories, most posts first, each with its count in its cell (the host seeds the count card, Count on). Its converter row (\`section-to-box-rows-tabbar\` \`categoryBar\`, OFF) draws that bar for a stored page that moves later.
4
4
 
@@ -28,7 +28,7 @@ WHAT REPLACES IT: a Cards section with Card style set to Label only. Every cell
28
28
 
29
29
  WHAT A MERCHANT LOSES on a NEW Label only section: nothing this section had. It GAINS the Cards head split (its head can move into a box of its own), which Key Features never had: that head draws the shared \`simple\` head, eyebrow ABOVE the heading, where Key Features drew it beside.
30
30
 
31
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${l}). Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`},DeliveryOptions:{label:"Delivery Options",note:"Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).\n\nWHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's `delivery-options` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.\n\nWHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.\n\nNO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (`scripts/test-section-to-box.tsx` §5).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.\n\nDELETE DATE 2026-12-18: the retired component in efficient-storefront-blocks (`components/DeliveryOptions`, `DeliveryOptionsSource`, `blocks/commerce/DeliveryOptions`) goes then, in a storefront-blocks follow-up. 0 stored DeliveryOptions nodes on the 34 US pages, draft or published (read only, 2026-11-08), and no converter row is coming."},Series:{label:"Recurring Columns",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
31
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${d}). Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`},DeliveryOptions:{label:"Delivery Options",note:"Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).\n\nWHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's `delivery-options` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.\n\nWHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.\n\nNO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (`scripts/test-section-to-box.tsx` §5).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.\n\nDELETE DATE 2026-12-18: the retired component in efficient-storefront-blocks (`components/DeliveryOptions`, `DeliveryOptionsSource`, `blocks/commerce/DeliveryOptions`) goes then, in a storefront-blocks follow-up. 0 stored DeliveryOptions nodes on the 34 US pages, draft or published (read only, 2026-11-08), and no converter row is coming."},Series:{label:"Recurring Columns",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids — Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
32
32
 
33
33
  WHAT REPLACES IT: Cards drawn from its card template. A column's number is Number, its "Right Top Text" Corner note, its title Card title, its words Card body, its count and label one Count, and the one \`viewLabel\` a plain Text typed once in the template, so every card shows it; the background is the Box's. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
34
34
 
@@ -70,4 +70,4 @@ WHAT A MERCHANT LOSES: the label as a section of its own, with its fixed head ("
70
70
 
71
71
  NO CONVERTER ROW: 0 EU Tyre Labels are stored on the US and AU sites (inovit_us and inovit_au, \`layout\` and \`published_layout\`; read only, 2026-11-10). Old sites stay as they are (owner, 2026-11-06).
72
72
 
73
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks EuTyreLabels). A stored EU Tyre Label still renders through it and can still be edited, its width, heading level, settings groups and cover included; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"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."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items · Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. ⛔ A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},d=Object.fromEntries(Object.entries(s).map(([e,t])=>[e,t.note])),b=["Grid","Spacer","TyreFitment"],g=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(d)])),c=Object.fromEntries(Object.entries(s).map(([e,t])=>[e,t.label])),T={...c,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},h={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",CategoryBar:"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",EuTyreLabel:"commerce",PaymentBadges:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},a={...h,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))},w={DocTabs:{set:"service",reason:"the Tab Bar press holds the Menu block, whose only source is a Console menu; a stored bar's typed tabs need nothing, so the Tab Bar stays general"}};function E(e){return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0}function r(e){return Object.keys(a).filter(t=>a[t]===e).sort()}const S=r("general"),f=r("commerce"),O=r("service"),p="Flex",n="Box",v=`${n}es`;function u(e){return e==="section"?"Blank section":n}function A(e,t,i){return e===p?u(t):i}export{g as ALL_SECTION_TYPES,m as BLOCK_SETS,n as BOX_LABEL,v as BOX_LABEL_PLURAL,f as COMMERCE_BLOCKS,S as GENERAL_BLOCKS,l as KEY_FEATURES_DELETE_BY,p as LEVEL_NAMED_TYPE,w as PRESS_NEEDS_SET,b as RETIRED_NESTABLE_SECTIONS,d as RETIRED_SECTIONS,c as RETIRED_SECTION_LABELS,o as SECTION_CATALOG,T as SECTION_LABELS,O as SERVICE_BLOCKS,h as UNLISTED_BLOCK_SETS,E as blockSetOf,r as blocksInSet,y as buildBlockCategories,A as labelAtLevel,u as labelForFlex};
73
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks EuTyreLabels). A stored EU Tyre Label still renders through it and can still be edited, its width, heading level, settings groups and cover included; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"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."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items · Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. ⛔ A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},c=Object.fromEntries(Object.entries(n).map(([e,t])=>[e,t.note])),T=["Grid","Spacer","TyreFitment"],w=Array.from(new Set([...o.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(c)])),h=Object.fromEntries(Object.entries(n).map(([e,t])=>[e,t.label])),E={...h,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},p={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",CategoryBar:"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",EuTyreLabel:"commerce",PaymentBadges:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},a={...p,...Object.fromEntries(o.flatMap(e=>e.sections.map(t=>[t.type,t.set])))},S={DocTabs:{set:"service",reason:"the Tab Bar press holds the Menu block, whose only source is a Console menu; a stored bar's typed tabs need nothing, so the Tab Bar stays general"}};function f(e){return s(a,e)}function r(e){return Object.keys(a).filter(t=>s(a,t)===e).sort()}const O=r("general"),v=r("commerce"),A=r("service"),u="Flex",i="Box",C=`${i}es`;function m(e){return e==="section"?"Blank section":i}function k(e,t,l){return e===u?m(t):l}export{w as ALL_SECTION_TYPES,b as BLOCK_SETS,i as BOX_LABEL,C as BOX_LABEL_PLURAL,v as COMMERCE_BLOCKS,O as GENERAL_BLOCKS,d as KEY_FEATURES_DELETE_BY,u as LEVEL_NAMED_TYPE,S as PRESS_NEEDS_SET,T as RETIRED_NESTABLE_SECTIONS,c as RETIRED_SECTIONS,h as RETIRED_SECTION_LABELS,o as SECTION_CATALOG,E as SECTION_LABELS,A as SERVICE_BLOCKS,p as UNLISTED_BLOCK_SETS,f as blockSetOf,r as blocksInSet,g as buildBlockCategories,k as labelAtLevel,m as labelForFlex};
@@ -1 +1 @@
1
- import{CUSTOM_FIELD_VALUES as n}from"./neutralization-contracts.js";import{HYDRATED_LISTS as u,SNAPSHOT_OBJECTS as c}from"./snapshot-contracts.js";import{nonEmptyString as s}from"../non-empty-string.js";function O(){const o=new Set([...Object.keys(c),...Object.keys(u)]);for(const[t,e]of Object.entries(n))for(const r of Object.values(e))r.verb==="snapshot"&&o.add(t);return[...o].sort()}function p(o){const t=new Set([...Object.keys(c[o]??{}),...u[o]??[]]);for(const[e,r]of Object.entries(n[o]??{}))r.verb==="snapshot"&&t.add(e);return[...t].sort()}const d={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},m={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},b="Open",g={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function a(o){const e=o?.source?.slug;return s(e)}function l(o){return d[o]??null}function y(o,t){const e=l(o);return e&&p(o).includes(t)?e:null}function E(o){const e=o?.menu?.id;return s(e)}export{d as PART_SOURCES,g as SOURCE_ACTIONS,b as SOURCE_ACTION_LABEL,m as SOURCE_LINES,p as hydratedPropsOf,y as partSourceNoteFor,l as partSourceOf,O as sourceBoundBlocks,E as sourceMenuIdOf,a as sourceSlugOf};
1
+ import{CUSTOM_FIELD_VALUES as u}from"./neutralization-contracts.js";import{HYDRATED_LISTS as c,SNAPSHOT_OBJECTS as s}from"./snapshot-contracts.js";import{nonEmptyString as p}from"../non-empty-string.js";import{ownEntry as r}from"../own-entry.js";function b(){const o=new Set([...Object.keys(s),...Object.keys(c)]);for(const[t,e]of Object.entries(u))for(const n of Object.values(e))n.verb==="snapshot"&&o.add(t);return[...o].sort()}function d(o){const t=new Set([...Object.keys(r(s,o)??{}),...r(c,o)??[]]);for(const[e,n]of Object.entries(r(u,o)??{}))n.verb==="snapshot"&&t.add(e);return[...t].sort()}const l={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},g={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},a="Open",y={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function E(o){const e=o?.source?.slug;return p(e)}function f(o){return r(l,o)??null}function C(o,t){const e=f(o);return e&&d(o).includes(t)?e:null}function x(o){const e=o?.menu?.id;return p(e)}export{l as PART_SOURCES,y as SOURCE_ACTIONS,a as SOURCE_ACTION_LABEL,g as SOURCE_LINES,d as hydratedPropsOf,C as partSourceNoteFor,f as partSourceOf,b as sourceBoundBlocks,x as sourceMenuIdOf,E as sourceSlugOf};
@@ -1 +1 @@
1
- import{isMediaValueObject as d,mapAtMediaPath as m}from"../media-value.js";import f from"./media-manifest.json";const i=f.mediaFields,c=f.snapshotObjects,a=f.hydratedLists;function y(r){return typeof r=="string"||d(r)?"":Array.isArray(r)?[]:r&&typeof r=="object"?null:r}function p(r,e){if(Array.isArray(r))return r.map(t=>p(t,e));if(!r||typeof r!="object")return r;const n=r,o={};for(const t of e)t in n&&(o[t]=n[t]);return o}function A(r,e){let n=e;for(const t of i[r]??[])n=m(n,t,y);const o=c[r];if(o)for(const[t,s]of Object.entries(o))t in n&&(n={...n,[t]:p(n[t],s.keep)});for(const t of a[r]??[])Array.isArray(n[t])&&(n={...n,[t]:[]});return n}function h(r,e){return typeof e!="function"?e:n=>e(A(r,n))}function j(r,e){if(!e)return r;const n=r,o={};for(const[t,s]of Object.entries(n.components)){const u=(i[t]?.length??0)>0||c[t]||a[t];o[t]=u&&s.render?{...s,render:h(t,s.render)}:s}return{...n,components:o}}export{j as withTemplateMediaPlaceholders};
1
+ import{isMediaValueObject as m,mapAtMediaPath as y}from"../media-value.js";import s from"./media-manifest.json";import{ownEntry as i}from"../own-entry.js";const c=s.mediaFields,a=s.snapshotObjects,p=s.hydratedLists;function A(r){return typeof r=="string"||m(r)?"":Array.isArray(r)?[]:r&&typeof r=="object"?null:r}function u(r,o){if(Array.isArray(r))return r.map(t=>u(t,o));if(!r||typeof r!="object")return r;const n=r,e={};for(const t of o)t in n&&(e[t]=n[t]);return e}function h(r,o){let n=o;for(const t of i(c,r)??[])n=y(n,t,A);const e=i(a,r);if(e)for(const[t,f]of Object.entries(e))t in n&&(n={...n,[t]:u(n[t],f.keep)});for(const t of i(p,r)??[])Array.isArray(n[t])&&(n={...n,[t]:[]});return n}function b(r,o){return typeof o!="function"?o:n=>o(h(r,n))}function M(r,o){if(!o)return r;const n=r,e={};for(const[t,f]of Object.entries(n.components)){const d=(i(c,t)?.length??0)>0||i(a,t)||i(p,t);e[t]=d&&f.render?{...f,render:b(t,f.render)}:f}return{...n,components:e}}export{M as withTemplateMediaPlaceholders};
@@ -1 +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};
1
+ import{parseHexColor as m}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 k}from"../content/ink.js";import{COLOUR_TOKEN as a}from"../word-styles.js";import{normalizeTheme as h}from"../theme.js";import{ownEntry as T}from"../own-entry.js";const l=e=>{const r=k.find(t=>t.role===e);return r?`var(${r.token})`:""},x=e=>l(e)?`var(--theme-${e})`:"",b={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:x("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 T(b,e)}const g="#9ca3af";function w(e,r,t){const n=i(e);return n?{hex:m(r[n.key]??"")??"",words:n.words(t)}:null}function v(e,r){return p.flatMap(t=>{const n=w(t,e,r);return n&&i(t)?.ink?[{name:t,label:n.words,value:n.hex||g}]:[]})}const y=["main","text","background"];function M(e){const r=new Set,t=[];return h(e).themes.forEach((n,f)=>{for(const d of y){const s=i(d),u=s?n[s.key]:void 0,c=typeof u=="string"&&u?m(u):null;!s||!c||r.has(c)||(r.add(c),t.push({value:c,label:s.words(f+1)}))}}),t}export{g as UNREAD_INK,v as fillThemeColors,w as slotFill,M as themePresets,i as themeSlotOf};
@@ -119,6 +119,7 @@ export declare const WEB_BUILDER_WORDS: {
119
119
  readonly "Alt text": "Alt text";
120
120
  readonly Alternating: "Alternating";
121
121
  readonly "Alternating (zig-zag)": "Alternating (zig-zag)";
122
+ readonly Always: "Always";
122
123
  readonly Amount: "Amount";
123
124
  readonly "An editorial aside beside a rail-marked timeline of dated entries.": "An editorial aside beside a rail-marked timeline of dated entries.";
124
125
  readonly "An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.": "An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.";
@@ -833,6 +834,7 @@ export declare const WEB_BUILDER_WORDS: {
833
834
  readonly "On 1 page": "On 1 page";
834
835
  readonly "On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.": "On Tablet, this hero uses the Desktop vh. Set vh in the Desktop view.";
835
836
  readonly "On a phone": "On a phone";
837
+ readonly "On card hover": "On card hover";
836
838
  readonly "On every blog post.": "On every blog post.";
837
839
  readonly "On every page": "On every page";
838
840
  readonly "On every page \u00B7 old style": "On every page · old style";
@@ -1379,11 +1381,13 @@ export declare const WEB_BUILDER_WORDS: {
1379
1381
  readonly "What this does when a shopper points at it, or taps it on a phone.": "What this does when a shopper points at it, or taps it on a phone.";
1380
1382
  readonly "What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.": "What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.";
1381
1383
  readonly "What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.": "What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.";
1384
+ readonly "What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.": "What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.";
1382
1385
  readonly "What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.": "What this picture does when a shopper points at the card. Show next image fades to the card's next photo. Black and white shows it in grey until then. A phone shows the first photo in colour.";
1383
1386
  readonly "What we count.": "What we count.";
1384
1387
  readonly WhatsApp: "WhatsApp";
1385
1388
  readonly "When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.": "When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.";
1386
1389
  readonly "When the text does not fit": "When the text does not fit";
1390
+ readonly "When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.": "When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.";
1387
1391
  readonly "Where this content is edited.": "Where this content is edited.";
1388
1392
  readonly "Whether this page sits on the site's content column, or runs edge to edge.": "Whether this page sits on the site's content column, or runs edge to edge.";
1389
1393
  readonly "Which of the product's pictures the card shows.": "Which of the product's pictures the card shows.";