efficient-web-builder 64.0.0 → 66.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 (216) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/dist/editor/components/AnchorField.js +1 -1
  3. package/dist/editor/components/CardShadowField.js +1 -1
  4. package/dist/editor/components/PagesPanel.js +1 -1
  5. package/dist/editor/components/SectionEditor.js +1 -1
  6. package/dist/editor/components/WebsitePreviewButton.js +1 -1
  7. package/dist/editor/components/storefront-editor.css +16 -24
  8. package/dist/editor/components/usePreviewHref.js +1 -1
  9. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  10. package/dist/editor/lib/animation/scroll-fields.js +1 -1
  11. package/dist/editor/lib/animation/view-rows.d.ts +20 -0
  12. package/dist/editor/lib/animation/view-rows.js +1 -0
  13. package/dist/editor/lib/document/blocks/general/Banner/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/general/FAQ/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  18. package/dist/editor/lib/document/blocks/general/Footprint/fields.d.ts +0 -1
  19. package/dist/editor/lib/document/blocks/general/Footprint/fields.js +1 -1
  20. package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
  21. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  22. package/dist/editor/lib/document/blocks/general/LogoBlock/fields.js +1 -1
  23. package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
  24. package/dist/editor/lib/document/blocks/general/SectionHeader/fields.js +1 -1
  25. package/dist/editor/lib/document/blocks/general/Text/fields.js +1 -1
  26. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  27. package/dist/editor/lib/document/box-fields.d.ts +2 -1
  28. package/dist/editor/lib/document/box-fields.js +1 -1
  29. package/dist/editor/lib/document/card-row-fields.d.ts +3 -0
  30. package/dist/editor/lib/document/card-row-fields.js +1 -1
  31. package/dist/editor/lib/document/controls.d.ts +12 -10
  32. package/dist/editor/lib/document/controls.js +1 -1
  33. package/dist/editor/lib/document/field-groups.d.ts +0 -3
  34. package/dist/editor/lib/document/field-groups.js +1 -1
  35. package/dist/editor/lib/document/part-motion-canvas.d.ts +2 -2
  36. package/dist/editor/lib/document/part-motion-canvas.js +1 -1
  37. package/dist/editor/lib/document/passes/inspector.js +1 -1
  38. package/dist/editor/lib/sections/section-dry-run.d.ts +1 -20
  39. package/dist/editor/lib/sections/section-dry-run.js +2 -2
  40. package/dist/editor/lib/sections/text-layouts.js +1 -1
  41. package/dist/format/lib/animation/entrance-keys.d.ts +8 -0
  42. package/dist/format/lib/animation/entrance-keys.js +1 -0
  43. package/dist/format/lib/animation/scroll.d.ts +5 -6
  44. package/dist/format/lib/animation/scroll.js +1 -1
  45. package/dist/format/lib/animation/views.d.ts +6 -0
  46. package/dist/format/lib/animation/views.js +1 -0
  47. package/dist/format/lib/content/block-sources.d.ts +3 -0
  48. package/dist/format/lib/content/block-sources.js +1 -1
  49. package/dist/format/lib/content/box-background.d.ts +1 -0
  50. package/dist/format/lib/content/box-background.js +1 -1
  51. package/dist/format/lib/content/box-link.d.ts +11 -0
  52. package/dist/format/lib/content/box-link.js +8 -8
  53. package/dist/format/lib/content/box-phone-place.d.ts +0 -2
  54. package/dist/format/lib/content/box-phone-place.js +1 -1
  55. package/dist/format/lib/content/box-side-space.js +1 -1
  56. package/dist/format/lib/content/card-image-shape.d.ts +5 -1
  57. package/dist/format/lib/content/card-image-shape.js +1 -1
  58. package/dist/format/lib/content/card-template.d.ts +1 -0
  59. package/dist/format/lib/content/card-template.js +1 -1
  60. package/dist/format/lib/content/contact.d.ts +0 -1
  61. package/dist/format/lib/content/contact.js +2 -2
  62. package/dist/format/lib/content/css-length.d.ts +1 -0
  63. package/dist/format/lib/content/css-length.js +1 -0
  64. package/dist/format/lib/content/page-width.d.ts +17 -1
  65. package/dist/format/lib/content/page-width.js +1 -1
  66. package/dist/format/lib/content/section-sticky.d.ts +28 -0
  67. package/dist/format/lib/content/section-sticky.js +1 -1
  68. package/dist/format/lib/document/blocks/general/Banner/meta.d.ts +5 -0
  69. package/dist/format/lib/document/blocks/general/Banner/meta.js +1 -1
  70. package/dist/format/lib/document/blocks/general/Footprint/card-seed.d.ts +2 -0
  71. package/dist/format/lib/document/blocks/general/Footprint/card-seed.js +1 -1
  72. package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
  73. package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.d.ts +5 -0
  74. package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.js +1 -0
  75. package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
  76. package/dist/format/lib/document/blocks/general/SectionHeader/meta.d.ts +6 -0
  77. package/dist/format/lib/document/blocks/general/SectionHeader/meta.js +1 -1
  78. package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.d.ts +2 -0
  79. package/dist/format/lib/document/blocks/general/TitleWithButtons/meta.js +2 -2
  80. package/dist/format/lib/document/media-drop.js +1 -1
  81. package/dist/format/lib/document/one-h1.d.ts +2 -0
  82. package/dist/format/lib/document/one-h1.js +1 -1
  83. package/dist/format/lib/document/passes/types.d.ts +2 -0
  84. package/dist/format/lib/document/renamed-props.d.ts +1 -0
  85. package/dist/format/lib/document/renamed-props.js +1 -1
  86. package/dist/format/lib/document/section-catalog.js +10 -2
  87. package/dist/format/lib/document/section-descriptions.js +1 -1
  88. package/dist/format/lib/editor-words-catalogue.d.ts +16 -0
  89. package/dist/format/lib/editor-words-catalogue.js +4 -4
  90. package/dist/format/lib/editor-words-kept.js +1 -1
  91. package/dist/format/lib/fit-words.js +4 -1
  92. package/dist/format/lib/links/page-link-rules.d.ts +0 -1
  93. package/dist/format/lib/links/page-link-rules.js +1 -1
  94. package/dist/format/lib/markup.d.ts +1 -0
  95. package/dist/format/lib/markup.js +2 -2
  96. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  97. package/dist/format/lib/sections/section-presets.js +1 -1
  98. package/dist/format/lib/sections/timeline-year-shape.js +1 -1
  99. package/dist/format/lib/source-rules/editor-words.js +1 -1
  100. package/dist/format/lib/source-rules/motion-vars-from-the-shell.d.ts +6 -0
  101. package/dist/format/lib/source-rules/motion-vars-from-the-shell.js +4 -0
  102. package/dist/format/lib/source-rules/one-length-control.d.ts +18 -0
  103. package/dist/format/lib/source-rules/one-length-control.js +16 -0
  104. package/dist/format/lib/source-rules/support/label-extraction.js +3 -3
  105. package/dist/format/lib/theme.d.ts +0 -1
  106. package/dist/format/lib/theme.js +3 -3
  107. package/dist/format/lib/web-runtime.d.ts +2 -0
  108. package/dist/format/lib/web-runtime.js +1 -1
  109. package/dist/render/components/BlockFrame.d.ts +3 -3
  110. package/dist/render/components/BlockFrame.js +1 -1
  111. package/dist/render/components/Breadcrumb.js +1 -1
  112. package/dist/render/components/Btn.js +1 -1
  113. package/dist/render/components/CardRowContext.d.ts +7 -1
  114. package/dist/render/components/CardRowContext.js +1 -1
  115. package/dist/render/components/CategoryBar.js +1 -1
  116. package/dist/render/components/ContactLocations.js +2 -2
  117. package/dist/render/components/DealerFinder.d.ts +4 -1
  118. package/dist/render/components/DealerFinder.js +1 -1
  119. package/dist/render/components/Divider.js +1 -1
  120. package/dist/render/components/DocMasthead.js +1 -1
  121. package/dist/render/components/DocTabs.js +1 -1
  122. package/dist/render/components/FeaturedCover.js +1 -1
  123. package/dist/render/components/Flex.js +1 -1
  124. package/dist/render/components/Footprint.d.ts +5 -3
  125. package/dist/render/components/Footprint.js +1 -1
  126. package/dist/render/components/Heading.d.ts +0 -1
  127. package/dist/render/components/Heading.js +1 -1
  128. package/dist/render/components/HeroPictures.d.ts +2 -5
  129. package/dist/render/components/HeroPictures.js +1 -1
  130. package/dist/render/components/ImageBlock.js +1 -1
  131. package/dist/render/components/KeyFeatures.js +1 -1
  132. package/dist/render/components/LocationMap.js +1 -1
  133. package/dist/render/components/LogoBlock.js +1 -1
  134. package/dist/render/components/Logos.d.ts +1 -2
  135. package/dist/render/components/Logos.js +1 -1
  136. package/dist/render/components/LongRead.js +1 -1
  137. package/dist/render/components/PictureZoom.js +1 -1
  138. package/dist/render/components/PostCard.js +1 -1
  139. package/dist/render/components/ProcessSteps.d.ts +2 -1
  140. package/dist/render/components/ProcessSteps.js +1 -1
  141. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  142. package/dist/render/components/SectionAnimation.d.ts +8 -16
  143. package/dist/render/components/SectionAnimation.js +1 -1
  144. package/dist/render/components/SectionHeader.js +1 -1
  145. package/dist/render/components/SideListLayout.d.ts +4 -1
  146. package/dist/render/components/SideListLayout.js +1 -1
  147. package/dist/render/components/Split.js +1 -1
  148. package/dist/render/components/Text.d.ts +2 -1
  149. package/dist/render/components/Text.js +1 -1
  150. package/dist/render/components/Timeline.js +1 -1
  151. package/dist/render/components/TimelineRail.d.ts +11 -3
  152. package/dist/render/components/TimelineRail.js +1 -1
  153. package/dist/render/components/TimelineTrack.js +1 -1
  154. package/dist/render/components/TitleWithButtons.js +1 -1
  155. package/dist/render/components/goldPhrases.js +3 -3
  156. package/dist/render/lib/animation/entrance.d.ts +6 -14
  157. package/dist/render/lib/animation/entrance.js +1 -1
  158. package/dist/render/lib/animation/part-motion.js +2 -2
  159. package/dist/render/lib/content/block-size.d.ts +5 -1
  160. package/dist/render/lib/content/block-size.js +1 -1
  161. package/dist/render/lib/content/box-stack-line.d.ts +1 -1
  162. package/dist/render/lib/content/box-stack-line.js +1 -1
  163. package/dist/render/lib/content/button-look.d.ts +2 -0
  164. package/dist/render/lib/content/button-look.js +1 -1
  165. package/dist/render/lib/content/section-edge.js +1 -1
  166. package/dist/render/lib/content/section-padding.d.ts +5 -2
  167. package/dist/render/lib/content/section-padding.js +1 -1
  168. package/dist/render/lib/dealer-source.d.ts +6 -2
  169. package/dist/render/lib/dealer-source.js +1 -1
  170. package/dist/render/lib/document/blocks/general/Banner/render.js +1 -1
  171. package/dist/render/lib/document/blocks/general/CardList/render.js +1 -1
  172. package/dist/render/lib/document/blocks/general/Footprint/render.js +1 -1
  173. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  174. package/dist/render/lib/document/blocks/general/SectionHeader/render.js +1 -1
  175. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  176. package/dist/render/lib/document/blocks/general/TitleWithButtons/render.js +1 -1
  177. package/dist/render/lib/document/blocks/general/section-head-looks.d.ts +2 -0
  178. package/dist/render/lib/document/blocks/general/section-head-looks.js +2 -2
  179. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  180. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  181. package/dist/render/lib/document/blocks/general/section-to-box-rows-editorial.js +1 -1
  182. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.d.ts +2 -2
  183. package/dist/render/lib/document/blocks/general/section-to-box-rows-head.js +1 -1
  184. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  185. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -1
  186. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  187. package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.d.ts +3 -0
  188. package/dist/render/lib/document/blocks/general/section-to-box-rows-tabbar.js +1 -0
  189. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  190. package/dist/render/lib/document/blocks/general/section-to-box-rows.d.ts +3 -0
  191. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  192. package/dist/render/lib/document/card-press-titles.d.ts +10 -0
  193. package/dist/render/lib/document/card-press-titles.js +1 -0
  194. package/dist/render/lib/document/part-styles.d.ts +1 -0
  195. package/dist/render/lib/document/passes/section-animation.js +1 -1
  196. package/dist/render/lib/document/passes/section-height.js +1 -1
  197. package/dist/render/lib/document/passes/section-padding.js +1 -1
  198. package/dist/render/lib/document/passes/section-sticky.js +1 -1
  199. package/dist/render/lib/document/published-passes.js +1 -1
  200. package/dist/render/lib/document/slot-specs.js +1 -1
  201. package/dist/render/lib/sections/section-to-box.d.ts +0 -15
  202. package/dist/render/lib/sections/section-to-box.js +1 -1
  203. package/dist/render/lib/site-runtime.d.ts +4 -1
  204. package/dist/render/lib/site-runtime.js +1 -1
  205. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  206. package/package.json +5 -5
  207. package/dist/editor/components/TemplateFieldRow.d.ts +0 -11
  208. package/dist/editor/components/TemplateFieldRow.js +0 -1
  209. package/dist/editor/lib/document/panel-heading-scope.d.ts +0 -8
  210. package/dist/editor/lib/document/panel-heading-scope.js +0 -1
  211. package/dist/editor/lib/document/template-field.d.ts +0 -13
  212. package/dist/editor/lib/document/template-field.js +0 -1
  213. package/dist/format/lib/canvas-accent.d.ts +0 -1
  214. package/dist/format/lib/canvas-accent.js +0 -1
  215. package/dist/format/lib/source-rules/padding-units-declared.d.ts +0 -2
  216. package/dist/format/lib/source-rules/padding-units-declared.js +0 -6
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{phoneKey as r,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as w,BOX_SWATCH_PROP as No,boxCardProps as Do,boxIsCard as x}from"../../../../../../format/lib/content/box-background.js";import{BOX_IS_CARD_RULE as Io,BOX_IS_NOT_CARD_RULE as Lo,BOX_ROW_IMAGE_PROP as go}from"../../../../../../format/lib/content/box-card-rule.js";import{CARD_ROW_FACTS as bo,cardRowField as T,cardRowFields as Po}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as Fo,cardCopyPlace as Ho}from"../../../../../../format/lib/content/card-template.js";import{HOVER_KEY as y}from"../../../../../../format/lib/animation/hover.js";import{BOX_HIGHLIGHT_ROW as ko}from"../../../../animation/hover-fields.js";import{darkenFields as Wo}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as xo,REEL_SHAPE_LABELS as yo}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as B,CARD_LIST_STYLE_PICTURES as Bo,TAB_SHAPE_PICTURES as Mo}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as A,CARD_STYLE_POINTS as Uo,applyCardStyle as Xo,isCardStyle as Ko}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as Go,ClockIcon as Yo,CropIcon as M,GapIcon as vo,MediaLayoutStackedIcon as jo,LineBetweenIcon as Vo,LineSolidIcon as Jo,ListIcon as zo,NumberedListIcon as U,ShadowIcon as qo,StylesIcon as X,TableIcon as K,TargetIcon as Qo,WrapIcon as G}from"efficient-easel/icons";import{boxBlockSpacingField as Zo,boxFillField as $o,boxColumnsFields as oe,boxShareField as ee,boxSharePhoneField as ne,boxShareTabletField as te,containerDirectionField as re,containerGapRows as ie,linkField as le,plainText as ae,swapPadding as Y,toggle as c,upload as v,withPanelOnly as se}from"../../../controls.js";import{BOX_STACK_LINE as j,BOX_STACK_RANGE as N,STACK_BELOW_PROP as V}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as J,boxShapeOf as de}from"../../../../../../format/lib/content/box-shape.js";import{BOX_ANGLE_PROP as ce}from"../../../../../../format/lib/content/box-angle.js";import{shapeLines as z}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as q}from"../../../shape-picker.js";import{ACCORDION_COLUMN_COUNTS as _e,ACCORDION_PHONE_COLUMN_COUNTS as pe,BOX_COLUMNS_MAX as D,BOX_COLUMNS_MIN as I,boxPhoneRowOneLine as Se,boxWrapWordOf as Q}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as Z}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as $,VIEW_KEY_ACCESS as s,group as f,phoneTwinFields as d}from"efficient-easel/screen/lib/document/box-fields";import{angleRow as Oe,boxAlignField as me,boxJustifyField as fe,boxWrapField as E,iconPickerRow as L,placementField as Re,select as g,sidesPaddingFields as oo,slider as he}from"../../../box-fields.js";import{withRowRules as ue,withShowWhen as Ae}from"../../../../../../render/lib/document/show-when.js";import{separatorField as Ce}from"../../../separator-field.js";import{LOOP_SCROLLS as we}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as Ee,TICKER_JOIN_OPTIONS as Te}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as eo}from"../../../../../../format/lib/document/passes/document-position.js";import{BOX_SIDE_SPACE_PROP as no}from"../../../../../../format/lib/content/box-side-space.js";import{boxSideSpaceField as Ne}from"../../../box-side-space-field.js";import{accordionOnSet as De}from"../../../box-accordion-seed.js";import{ACCORDION_ROW_STYLE_POINTS as Ie,ACCORDION_ROW_STYLE_PROP as b}from"../../../../../../format/lib/content/accordion-row-style.js";import{FlexSlots as to}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as Le,CONTAINER_BLOCKS_SLOT as ge}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as be}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as Pe,ON_A_CARD as ro,cardDisplayField as P}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Fe,MIRROR_CARDS_MIRRORS as He,mirrorCardsField as ke}from"../../../mirror-cards-field.js";import{handedRowOf as io}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as We,showForField as xe,showForFields as ye}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as R,SHARED_COLUMNS_LABEL as lo,SHARED_COLUMNS_OFF as ao,sharedColumnsDrawn as so,sharedColumnsFits as co,SHARED_COLUMNS_PHONE_POINTS as Be,SHARED_COLUMNS_POINTS as Me,sharedRowsDrawn as Ue}from"../../../../../../render/lib/content/box-shared-columns.js";const _o=Io,po={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},Xe={field:"direction",is:"tabs"},Ke={field:"line",in:[!0,!1]},Ge={field:"anchor",set:!0},F=["fixed","screen"],Ye={not:{any:[{field:"sectionHeightMode",in:F},{field:"sectionHeightModeTablet",in:F},{field:"sectionHeightModePhone",in:F}]}},ve={context:"parent.line",is:!0},_={not:{field:"direction",is:"accordion"}},So={field:"direction",is:"accordion"},Oo={any:[_,{not:{field:b,is:"numbered"}},{field:"columns",in:[..._e]},{field:"phoneRow",in:[...pe]}]},mo="notAccordionRow",je={not:{context:mo,is:!0}},Ve={[mo]:(o,e)=>e.parent?.props?.direction!=="accordion"},H={field:"direction",is:"row",default:"row"},p={not:we},S={all:[H,p,{not:{field:"separator",in:Z.map(o=>o.value)}},{not:{field:"line",is:!0}}]},fo={all:[S,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:D},(e,n)=>n+I)}}))]},Je={all:[p,{not:{all:[H,{field:"separator",in:Z.map(o=>o.value)}]}}]},k={not:{all:[S,{field:"columns",in:Array.from({length:D},(o,e)=>e+I)}]}},ze="sharedColumnsFits",Ro="sharedColumnsMisfit",ho="sharedColumnsDraws",uo="sharedColumnsPhoneDraws";function O(o,e){return Do(o.props??{},Ho(e.appState,o.props?.id)?.inCopy!==!1)}const qe={[ze]:(o,e)=>co(O(o,e)),[Ro]:(o,e)=>!co(O(o,e)),[ho]:(o,e)=>so(O(o,e)).desktop,[uo]:(o,e)=>so(O(o,e)).phone};function Ao(o){return{all:[{not:{context:Ro,is:!0}},{any:[ro,{field:o,set:!0}]}]}}const m={not:{context:ho,is:!0}},h={not:{context:uo,is:!0}},Co="sharedRowsDraws",Qe={[Co]:(o,e)=>Ue(O(o,e))&&io(e.appState,o.props?.id)?.row===void 0},C={not:{context:Co,is:!0}},Ze={any:[m,h]},W=Lo,$e={not:{context:He,is:!0}},wo="rowHanded",on={not:{context:wo,is:!0}},en={[wo]:(o,e)=>{const n=io(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},Eo={all:[_,W,m,h,$e]},nn={field:"direction",is:"row"},tn={field:"align",in:["start","center","end"]},rn={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function ln(){const{darken:o,darkenStyle:e}=Wo();return{...d("darken",o,s),...d("darkenStyle",e,s)}}const To={not:{all:[S,{field:i("columns"),in:Array.from({length:D},(o,e)=>e+I)}]}};function an(){const o=c($,!1,t(G,{})),e=n=>{const l=Q(n);return l===void 0?void 0:l==="wrap"};return{...E(),render:n=>o.render({...n,value:e(n.value),follows:e(n.follows)??!1,onChange:l=>n.onChange(l===void 0?void 0:l?"wrap":"nowrap")})}}function sn(){const o=c($,!0,t(G,{})),e=n=>{const l=Q(n);return l===void 0?void 0:l==="wrap"};return{...E(),render:n=>{const l=n.followsView==="tablet";return o.render({...n,value:e(n.value),follows:!Se(void 0,l?n.follows:void 0),followsNoView:!l,onChange:u=>n.onChange(u===void 0?void 0:u?"wrap":"nowrap")})}}}const $n={fields:ue({_gContent:f("Content"),rowTitle:to.rowTitle,content:to.content,_gCardDisplay:f("Display"),cardDisplay:P("desktop"),cardDisplayTablet:P("tablet"),cardDisplayPhone:P("mobile"),showFor:xe(),_gLayout:f("Layout"),direction:re("Flex"),tabShape:L("Tab shape",t(X,{}),xo.map(o=>({label:yo[o],value:o,picture:Mo[o]})),"tabs",{columns:2,cell:B}),mirrorCards:ke(),[V]:a("desktop",he("Stacks below",t(jo,{}),N.min,N.max,N.step,j,"px",{clear:{hint:j},hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[no]:Ne(),startsOpen:a("desktop",c("Starts open",!1,t(Go,{}))),[b]:a("desktop",L("Row style",t(U,{}),Ie.map(o=>({...o,picture:o.value==="numbered"?t(U,{}):t(zo,{})})),"plain",{columns:2})),label:se(ae("Tab name")),...ie("Flex"),...d("justify",fe(),s),...d("align",me(),s),...(()=>{const o=d("wrap",E(),s,{phoneRow:sn()}),e=d("wrap",E(),s,{phoneRow:an()});return{wrap:e.wrap,[i("wrap")]:e[i("wrap")],[r("wrap")]:o[r("wrap")]}})(),[r("order")]:be(),...d("boxShape",q("Box shape",t(M,{}),z(J),"shape","auto"),s,{phoneRow:q("Box shape",t(M,{}),z(J),"shape","auto",{phoneRest:o=>de(o)})}),[ce]:a("desktop",Oe(0,{clear:{hint:0},hint:"Turns the box. 0° is straight."})),separator:Ce(t(Vo,{size:18}),"none"),[A]:a("desktop",L("Card style",t(X,{}),Uo.map(o=>({...o,picture:Bo[o.value]})),"table",{columns:2,cell:B})),share:a("desktop",ee()),[i("share")]:te(),[r("share")]:ne(),[R]:a("desktop",g(lo,t(K,{}),[...Me],ao)),[r(R)]:a("mobile",g(lo,t(K,{}),[...Be],ao)),...oe(),...d("blockSpacing",Zo(),s),line:c("Line",!1,t(Jo,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,t(Yo,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:g("Join",t(vo,{}),Te,Ee),_gShadow:f("Shadow"),...d("shadow",c("Shadow",!1,t(qo,{})),s),...d("fillColor",$o(),s),[No]:T("Fill content","colour"),_gBackground:f("Background image"),bgImage:a("desktop",v("Image","image/*")),bgImagePhone:a("mobile",v("Image","image/*")),[go]:T("Image content","image",{content:!0}),...ln(),placement:Re("Content position"),_gLink:f("Link"),link:le("Link to"),[Fo]:T("Link from","link"),jumpHighlight:c("Highlight when a link jumps here",!1,t(Qo,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],_o],[[r("share")],{all:[po,h]}],[[R],Ao(R)],[[r(R)],Ao(r(R))],[[r("wrap")],{all:[po,p,h,C]}],[[r("order")],{all:[S,h,m]}],[["phoneRow"],h],[[b],So],[["tabShape"],Xe],[["rowTitle","startsOpen"],je],[["align","blockSpacing",i("blockSpacing"),r("blockSpacing")],_],[[i("justify"),r("justify")],{all:[p,Eo,C]}],[[i("align"),r("align")],{all:[nn,tn,Eo]}],[[i("wrap")],{all:[p,k,To,m,_,C]}],[[i("shadow"),r("shadow")],W],[[i("darken"),r("darken"),i("darkenStyle"),r("darkenStyle")],{all:[_o,rn]}],[["separator"],H],[[A],{field:A,set:!0}],[["columns"],{any:[S,So]}],[[i("columns")],S],[[V],{all:[S,W,To,{not:{all:[fo,{field:i("share"),set:!0}]}}]}],[[i("gap")],{all:[Je,Oo]}],[["gap",r("gap")],Oo],[["justify"],{all:[p,Ze,_,C]}],[["wrap"],{all:[p,k,m,_,C]}],[["share"],{all:[k,m,_]}],[[i("share")],{all:[fo,m]}],[["line"],Ke],[["upcoming"],ve],[["jumpHighlight"],Ge],[["boxShape",i("boxShape"),r("boxShape")],Ye],[["direction","share",r("order")],on],[["join"],eo],[[no],eo]]),resolveData:(o,e)=>{const n=o.props,l=n[A];return e.changed?.[A]===!0&&Ko(l)?{...o,props:Xo(n,l,Le,ge)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:De(n)}:o},resolveFields:(o,e)=>cn(ye(_n(o,{...e,fields:Po(e.fields,o,e)}),o.props),O(o,e)),showWhenFacts:{...bo,...Pe,...Fe,...en,...qe,...Qe,...We,...Ve}},dn=Ae(ko,ro);function cn(o,e){const n=o;return!(y in n)||x(e)?o:{...n,[y]:dn}}function _n(...[o,e]){const{fields:n}=e;{if(x(O(o,e))){const u=oo({fallback:{top:w.desktop,bottom:w.desktop,left:w.side,right:w.side},tablet:!0});return Y(n,u)}return o.props.padV2!==!0?Y(n,oo({fallback:{top:24,bottom:24},tablet:!0})):n}}export{$n as FlexFields};
1
+ import{jsx as t}from"react/jsx-runtime";import{phoneKey as r,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as E,BOX_SWATCH_PROP as bo,boxCardProps as Po,boxIsCard as B}from"../../../../../../format/lib/content/box-background.js";import{BOX_IS_CARD_RULE as Fo,BOX_IS_NOT_CARD_RULE as Ho,BOX_ROW_IMAGE_PROP as ko}from"../../../../../../format/lib/content/box-card-rule.js";import{CARD_ROW_FACTS as Wo,cardRowField as y,cardRowFields as xo,cardRowLinkField as Bo,typedLinkField as yo}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as Mo,cardCopyPlace as Uo}from"../../../../../../format/lib/content/card-template.js";import{HOVER_KEY as M}from"../../../../../../format/lib/animation/hover.js";import{BOX_HIGHLIGHT_ROW as Ko}from"../../../../animation/hover-fields.js";import{darkenFields as Xo}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as Go,REEL_SHAPE_LABELS as Yo}from"../../../../../../format/lib/reel.js";import{LAYOUT_CELL as U,CARD_LIST_STYLE_PICTURES as vo,TAB_SHAPE_PICTURES as jo}from"../../../choice-pictures.js";import{CARD_STYLE_KEY as C,CARD_STYLE_POINTS as Vo,applyCardStyle as Jo,isCardStyle as zo}from"../../../../../../render/lib/sections/card-list-style.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ChevronDownIcon as qo,ClockIcon as Qo,CropIcon as K,GapIcon as Zo,MediaLayoutStackedIcon as X,LineBetweenIcon as $o,LineSolidIcon as oe,ListIcon as ee,NumberedListIcon as G,ShadowIcon as ne,StylesIcon as Y,TableIcon as v,TargetIcon as te,WrapIcon as j}from"efficient-easel/icons";import{boxBlockSpacingField as re,boxFillField as ie,boxColumnsFields as le,boxShareField as ae,boxSharePhoneField as se,boxShareTabletField as de,containerDirectionField as ce,containerGapRows as _e,linkField as pe,plainText as Se,swapPadding as V,toggle as c,upload as J,withPanelOnly as Oe}from"../../../controls.js";import{BOX_STACK_LINE as L,BOX_STACK_RANGE as f,STACK_BELOW_PROP as T}from"../../../../../../render/lib/content/box-stack-line.js";import{BOX_SHAPES as z,boxShapeOf as me}from"../../../../../../format/lib/content/box-shape.js";import{BOX_ANGLE_PROP as fe}from"../../../../../../format/lib/content/box-angle.js";import{shapeLines as q}from"../../../../../../format/lib/content/gallery-card-layout.js";import{shapePickerRow as Q}from"../../../shape-picker.js";import{ACCORDION_COLUMN_COUNTS as Re,ACCORDION_PHONE_COLUMN_COUNTS as he,BOX_COLUMNS_MAX as D,BOX_COLUMNS_MIN as I,boxPhoneRowOneLine as ue,boxWrapWordOf as Z}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as $}from"../../../../../../format/lib/content/box-separator.js";import{BOX_WRAP_LABEL as oo,VIEW_KEY_ACCESS as s,group as R,phoneTwinFields as d}from"efficient-easel/screen/lib/document/box-fields";import{angleRow as Ae,boxAlignField as Ce,boxJustifyField as we,boxWrapField as N,iconPickerRow as g,placementField as Ee,select as b,sidesPaddingFields as eo,slider as no}from"../../../box-fields.js";import{withRowRules as Te,withShowWhen as to}from"../../../../../../render/lib/document/show-when.js";import{separatorField as Ne}from"../../../separator-field.js";import{LOOP_SCROLLS as Le}from"../../../../../../format/lib/animation/index.js";import{DEFAULT_TICKER_JOIN as De,TICKER_JOIN_OPTIONS as Ie}from"../../../../../../format/lib/sections/ticker-join.js";import{NOT_HELD_BY_A_NODE as ro}from"../../../../../../format/lib/document/passes/document-position.js";import{BOX_SIDE_SPACE_PROP as io}from"../../../../../../format/lib/content/box-side-space.js";import{boxSideSpaceField as ge}from"../../../box-side-space-field.js";import{accordionOnSet as be}from"../../../box-accordion-seed.js";import{ACCORDION_ROW_STYLE_POINTS as Pe,ACCORDION_ROW_STYLE_PROP as P}from"../../../../../../format/lib/content/accordion-row-style.js";import{FlexSlots as lo}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{BOX_TYPE as Fe,CONTAINER_BLOCKS_SLOT as He}from"../../../../../../format/lib/document/container-blocks.js";import{boxPhoneOrderField as ke}from"../../../box-phone-order-field.js";import{CARD_BOX_FACTS as We,ON_A_CARD as ao,cardDisplayField as F}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as xe,MIRROR_CARDS_MIRRORS as Be,mirrorCardsField as ye}from"../../../mirror-cards-field.js";import{handedRowOf as so}from"../../../../../../format/lib/document/row-hand.js";import{SHOW_FOR_FACTS as Me,showForField as Ue,showForFields as Ke}from"../../../show-for-field.js";import{SHARED_COLUMNS_KEY as h,SHARED_COLUMNS_LABEL as co,SHARED_COLUMNS_OFF as _o,sharedColumnsDrawn as po,sharedColumnsFits as So,SHARED_COLUMNS_PHONE_POINTS as Xe,SHARED_COLUMNS_POINTS as Ge,sharedRowsDrawn as Ye}from"../../../../../../render/lib/content/box-shared-columns.js";const Oo=Fo,mo={all:[{field:"phoneRow",in:[2,3]},{not:{field:"direction",is:"accordion"}}]},ve={field:"direction",is:"tabs"},je={field:"line",in:[!0,!1]},Ve={field:"anchor",set:!0},H=["fixed","screen"],Je={not:{any:[{field:"sectionHeightMode",in:H},{field:"sectionHeightModeTablet",in:H},{field:"sectionHeightModePhone",in:H}]}},ze={context:"parent.line",is:!0},_={not:{field:"direction",is:"accordion"}},fo={field:"direction",is:"accordion"},Ro={any:[_,{not:{field:P,is:"numbered"}},{field:"columns",in:[...Re]},{field:"phoneRow",in:[...he]}]},ho="notAccordionRow",qe={not:{context:ho,is:!0}},Qe={[ho]:(o,e)=>e.parent?.props?.direction!=="accordion"},k={field:"direction",is:"row",default:"row"},p={not:Le},S={all:[k,p,{not:{field:"separator",in:$.map(o=>o.value)}},{not:{field:"line",is:!0}}]},Ze={field:"direction",is:"column"},uo={all:[S,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:D},(e,n)=>n+I)}}))]},$e={all:[p,{not:{all:[k,{field:"separator",in:$.map(o=>o.value)}]}}]},W={not:{all:[S,{field:"columns",in:Array.from({length:D},(o,e)=>e+I)}]}},on="sharedColumnsFits",Ao="sharedColumnsMisfit",Co="sharedColumnsDraws",wo="sharedColumnsPhoneDraws";function O(o,e){return Po(o.props??{},Uo(e.appState,o.props?.id)?.inCopy!==!1)}const en={[on]:(o,e)=>So(O(o,e)),[Ao]:(o,e)=>!So(O(o,e)),[Co]:(o,e)=>po(O(o,e)).desktop,[wo]:(o,e)=>po(O(o,e)).phone};function Eo(o){return{all:[{not:{context:Ao,is:!0}},{any:[ao,{field:o,set:!0}]}]}}const m={not:{context:Co,is:!0}},u={not:{context:wo,is:!0}},To="sharedRowsDraws",nn={[To]:(o,e)=>Ye(O(o,e))&&so(e.appState,o.props?.id)?.row===void 0},w={not:{context:To,is:!0}},tn={any:[m,u]},x=Ho,rn={not:{context:Be,is:!0}},No="rowHanded",ln={not:{context:No,is:!0}},an={[No]:(o,e)=>{const n=so(e.appState,o.props?.id);return n===void 0?void 0:n?.row!==void 0}},Lo={all:[_,x,m,u,rn]},sn={field:"direction",is:"row"},dn={field:"align",in:["start","center","end"]},cn={all:[{field:"darken",set:!0},{not:{field:"darken",in:[0,"0"]}}]};function _n(){const{darken:o,darkenStyle:e}=Xo();return{...d("darken",o,s),...d("darkenStyle",e,s)}}const Do={not:{all:[S,{field:i("columns"),in:Array.from({length:D},(o,e)=>e+I)}]}};function pn(){const o=c(oo,!1,t(j,{})),e=n=>{const l=Z(n);return l===void 0?void 0:l==="wrap"};return{...N(),render:n=>o.render({...n,value:e(n.value),follows:e(n.follows)??!1,onChange:l=>n.onChange(l===void 0?void 0:l?"wrap":"nowrap")})}}function Sn(){const o=c(oo,!0,t(j,{})),e=n=>{const l=Z(n);return l===void 0?void 0:l==="wrap"};return{...N(),render:n=>{const l=n.followsView==="tablet";return o.render({...n,value:e(n.value),follows:!ue(void 0,l?n.follows:void 0),followsNoView:!l,onChange:A=>n.onChange(A===void 0?void 0:A?"wrap":"nowrap")})}}}const Io={hint:L},go={all:[x,{any:[Ze,{all:[S,Do,{not:{all:[uo,{field:i("share"),set:!0}]}}]}]}]},On=to(a("desktop",no("Narrows below",t(X,{}),f.min,f.max,f.step,L,"px",{clear:Io,hint:"Under this screen width the side space narrows and the Phone Padding is used."})),go);function mn(o,e){const n=o;return!(T in n)||e.direction!=="column"?o:{...n,[T]:On}}const lt={fields:Te({_gContent:R("Content"),rowTitle:lo.rowTitle,content:lo.content,_gCardDisplay:R("Display"),cardDisplay:F("desktop"),cardDisplayTablet:F("tablet"),cardDisplayPhone:F("mobile"),showFor:Ue(),_gLayout:R("Layout"),direction:ce("Flex"),tabShape:g("Tab shape",t(Y,{}),Go.map(o=>({label:Yo[o],value:o,picture:jo[o]})),"tabs",{columns:2,cell:U}),mirrorCards:ye(),[T]:a("desktop",no("Stacks below",t(X,{}),f.min,f.max,f.step,L,"px",{clear:Io,hint:"Under this screen width the blocks stand one under another, with the Phone Gap and Padding."})),[io]:ge(),startsOpen:a("desktop",c("Starts open",!1,t(qo,{}))),[P]:a("desktop",g("Row style",t(G,{}),Pe.map(o=>({...o,picture:o.value==="numbered"?t(G,{}):t(ee,{})})),"plain",{columns:2})),label:Oe(Se("Tab name")),..._e("Flex"),...d("justify",we(),s),...d("align",Ce(),s),...(()=>{const o=d("wrap",N(),s,{phoneRow:Sn()}),e=d("wrap",N(),s,{phoneRow:pn()});return{wrap:e.wrap,[i("wrap")]:e[i("wrap")],[r("wrap")]:o[r("wrap")]}})(),[r("order")]:ke(),...d("boxShape",Q("Box shape",t(K,{}),q(z),"shape","auto"),s,{phoneRow:Q("Box shape",t(K,{}),q(z),"shape","auto",{phoneRest:o=>me(o)})}),[fe]:a("desktop",Ae(0,{clear:{hint:0},hint:"Turns the box. 0° is straight."})),separator:Ne(t($o,{size:18}),"none"),[C]:a("desktop",g("Card style",t(Y,{}),Vo.map(o=>({...o,picture:vo[o.value]})),"table",{columns:2,cell:U})),share:a("desktop",ae()),[i("share")]:de(),[r("share")]:se(),[h]:a("desktop",b(co,t(v,{}),[...Ge],_o)),[r(h)]:a("mobile",b(co,t(v,{}),[...Xe],_o)),...le(),...d("blockSpacing",re(),s),line:c("Line",!1,t(oe,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,t(Qo,{}),"Still to come: a hollow dot, and the gold line stops before it."),join:b("Join",t(Zo,{}),Ie,De),_gShadow:R("Shadow"),...d("shadow",c("Shadow",!1,t(ne,{})),s),...d("fillColor",ie(),s),[bo]:y("Fill content","colour"),_gBackground:R("Background image"),bgImage:a("desktop",J("Image","image/*")),bgImagePhone:a("mobile",J("Image","image/*")),[ko]:y("Image content","image",{content:!0}),..._n(),placement:Ee("Content position"),_gLink:R("Link"),link:yo(pe("Link to")),[Mo]:Bo(),jumpHighlight:c("Highlight when a link jumps here",!1,t(te,{}),"When a link lands on this Box's anchor, the Box gets a main color outline and its first block turns the main color.")},[[["darken","darkenStyle","placement"],Oo],[[r("share")],{all:[mo,u]}],[[h],Eo(h)],[[r(h)],Eo(r(h))],[[r("wrap")],{all:[mo,p,u,w]}],[[r("order")],{all:[S,u,m]}],[["phoneRow"],u],[[P],fo],[["tabShape"],ve],[["rowTitle","startsOpen"],qe],[["align","blockSpacing",i("blockSpacing"),r("blockSpacing")],_],[[i("justify"),r("justify")],{all:[p,Lo,w]}],[[i("align"),r("align")],{all:[sn,dn,Lo]}],[[i("wrap")],{all:[p,W,Do,m,_,w]}],[[i("shadow"),r("shadow")],x],[[i("darken"),r("darken"),i("darkenStyle"),r("darkenStyle")],{all:[Oo,cn]}],[["separator"],k],[[C],{field:C,set:!0}],[["columns"],{any:[S,fo]}],[[i("columns")],S],[[T],go],[[i("gap")],{all:[$e,Ro]}],[["gap",r("gap")],Ro],[["justify"],{all:[p,tn,_,w]}],[["wrap"],{all:[p,W,m,_,w]}],[["share"],{all:[W,m,_]}],[[i("share")],{all:[uo,m]}],[["line"],je],[["upcoming"],ze],[["jumpHighlight"],Ve],[["boxShape",i("boxShape"),r("boxShape")],Je],[["direction","share",r("order")],ln],[["join"],ro],[[io],ro]]),resolveData:(o,e)=>{const n=o.props,l=n[C];return e.changed?.[C]===!0&&zo(l)?{...o,props:Jo(n,l,Fe,He)}:n.direction==="accordion"&&(e.trigger==="insert"||e.changed?.direction===!0)?{...o,props:be(n)}:o},resolveFields:(o,e)=>mn(Rn(Ke(hn(o,{...e,fields:xo(e.fields,o,e)}),o.props),O(o,e)),o.props),showWhenFacts:{...Wo,...We,...xe,...an,...en,...nn,...Me,...Qe}},fn=to(Ko,ao);function Rn(o,e){const n=o;return!(M in n)||B(e)?o:{...n,[M]:fn}}function hn(...[o,e]){const{fields:n}=e;{if(B(O(o,e))){const A=eo({fallback:{top:E.desktop,bottom:E.desktop,left:E.side,right:E.side},tablet:!0,siteSide:!0});return V(n,A)}return o.props.padV2!==!0?V(n,eo({fallback:{top:24,bottom:24},tablet:!0,siteSide:!0})):n}}export{lt as FlexFields};
@@ -1,3 +1,2 @@
1
1
  import type { BlockFields } from "../../../../../../format/lib/document/blocks/block-types.js";
2
- export declare function footprintBlockSource(value: unknown): string;
3
2
  export declare const FootprintFields: BlockFields;
@@ -1 +1 @@
1
- import{jsx as n}from"react/jsx-runtime";import{FOOTPRINT_DEFAULTS as C}from"../../../../../../format/lib/content/footprint.js";import{HeadquartersIcon as x,LayoutIcon as D,LocationIcon as N,SearchIcon as A,StoreIcon as B,ThemeIcon as H}from"efficient-easel/icons";import{CoordsField as M,copyText as W,plainText as l,sourceField as U,text as p,textarea as w,toggle as u,withPanelOnly as b}from"../../../controls.js";import{group as f,section as j}from"efficient-easel/screen/lib/document/box-fields";import{segmented as d}from"../../../box-fields.js";import{withShowWhen as c}from"../../../../../../render/lib/document/show-when.js";import{needsGeocodeWork as q,resolveGeocodeRows as z}from"../../../geocode-resolve.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{SPLITTABLE_SECTIONS as G,headFieldsForPlacement as K}from"../../../../../../format/lib/sections/section-head-placement.js";import{innerSpacingFields as Q}from"../../shared-fields.js";import{BLOCK_SOURCE_PROP as v,blockSources as V,blockSourcesRevision as F}from"../../../../../../format/lib/content/block-sources.js";import{FOOTPRINT_PH as m,FootprintSlots as Y}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";import{withFootprintSideTemplate as $}from"../../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";const J={field:"source",is:"typed",default:"typed"},R={field:"source",is:"dealers",default:"typed"},X={field:"listPosition",in:["left","right"],default:"below"},T={any:[R,X]},O={all:[T,{field:"search",is:!0,default:!1}]},h=[{label:"Typed in",value:"typed"},{label:"Dealers",value:"dealers"}],Z=new Set(h.map(e=>e.value)),P=e=>d("Source",n(B,{}),e,"typed");function k(e){const o=typeof e=="string"?e.trim():"";return o&&!Z.has(o)&&/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/.test(o)?o:""}const y=new Map;let L=-1;function ee(e){const o=V("Footprint"),t=e&&!o.some(s=>s.key===e)?e:"";if(!o.length&&!t)return null;L!==F()&&(L=F(),y.clear());let r=y.get(t);return r||(r=P([...h,...o.map(s=>({label:s.label,value:s.key})),...t?[{label:t,value:t}]:[]]),y.set(t,r)),r}const E=new WeakMap;function oe(e,o){const t=ee(o);if(!t)return e;let r=E.get(e);r||E.set(e,r=new Map);let s=r.get(t);return s||(s={...e,source:t},r.set(t,s)),s}const ye={fields:{_gContent:f("Section"),sectionNumber:p("Section number",m.sectionNumber),heading:w("Heading",m.heading),tagline:w("Body",m.tagline),_gOffices:f("Offices"),source:P(h),offices:c({type:"array",label:"Offices",arrayFields:{role:l("Role"),city:l("City"),country:l("Region · country"),address:W("Address"),phone:l("Phone"),group:l("Group"),hq:u("HQ",!1,n(x,{})),geocode:U(M,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",phone:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},J),...Y,mapTheme:d("Map theme",n(H,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],C.mapTheme),_gList:f("List"),listPosition:a("desktop",d("Position",n(D,{}),[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Below",value:"below"}],"below")),search:a("desktop",c(u("Search",!1,n(A,{})),T)),searchHint:a("desktop",c(b(p("Hint","Type a postcode or address")),O)),noMatchText:a("desktop",c(b(p("No match","No place found. Try another postcode.")),O)),showDistance:c(u("Distance",!0,n(N,{})),R),_dLayout:j("Layout"),...Q("Footprint")},resolveData:async(e,o)=>{const t=o?.changed,r=e.props;if(t?.listPosition===!0||t?.source===!0){const i=$(r);i!==r&&(e={...e,props:i})}const s=k(e.props.source);(e.props[v]??"")!==s&&(e={...e,props:{...e.props,[v]:s}});const g=e.props,S=g.offices??[];if(!q(S))return e;const I=await z(S,i=>[i.address,i.city,i.country].map(_=>String(_??"").replace(/\*/g,"").trim()).filter(Boolean).join(", "));return{...e,props:{...g,offices:I}}},resolveFields:(e,{fields:o})=>K(oe(o,k(e.props.source)),e.props.headPlacement,G.Footprint.headRows)};export{ye as FootprintFields,k as footprintBlockSource};
1
+ import{jsx as t}from"react/jsx-runtime";import{FOOTPRINT_DEFAULTS as T}from"../../../../../../format/lib/content/footprint.js";import{HeadquartersIcon as R,LayoutIcon as P,LocationIcon as C,SearchIcon as _,ThemeIcon as w}from"efficient-easel/icons";import{CoordsField as I,copyText as v,plainText as r,sourceField as k,text as n,textarea as g,toggle as a,withPanelOnly as S}from"../../../controls.js";import{group as c,section as A}from"efficient-easel/screen/lib/document/box-fields";import{segmented as y}from"../../../box-fields.js";import{withShowWhen as i}from"../../../../../../render/lib/document/show-when.js";import{needsGeocodeWork as D,resolveGeocodeRows as x}from"../../../geocode-resolve.js";import{deviceField as s}from"efficient-easel/screen/lib/document/device-fields";import{SPLITTABLE_SECTIONS as B,headFieldsForPlacement as H}from"../../../../../../format/lib/sections/section-head-placement.js";import{innerSpacingFields as N}from"../../shared-fields.js";import{BLOCK_SOURCE_PROP as p,DEALERS_SOURCE as U,registerBlockSources as j}from"../../../../../../format/lib/content/block-sources.js";import{blockSourceField as q,blockSourceFields as G}from"../../../block-source-fields.js";import{DEALERS_BLOCK_SOURCE as M}from"../../../../../../render/lib/dealer-source.js";import{FOOTPRINT_PH as f,FootprintSlots as K}from"../../../../../../format/lib/document/blocks/general/Footprint/meta.js";import{withFootprintListTemplate as W}from"../../../../../../format/lib/document/blocks/general/Footprint/card-seed.js";const F={field:p,is:U,default:""},Q={field:"listPosition",in:["left","right"],default:"below"},L={any:[F,Q]},O={all:[L,{field:"search",is:!0,default:!1}]};j([M]);const ce={fields:{_gContent:c("Section"),sectionNumber:n("Section number",f.sectionNumber),heading:g("Heading",f.heading),tagline:g("Body",f.tagline),_gOffices:c("Offices"),[p]:q("Office content","Manual"),offices:{type:"array",label:"Offices",arrayFields:{role:r("Role"),city:r("City"),country:r("Region · country"),address:v("Address"),phone:r("Phone"),group:r("Group"),hq:a("HQ",!1,t(R,{})),geocode:k(I,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",phone:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},...K,mapTheme:y("Map theme",t(w,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],T.mapTheme),_gList:c("List"),listPosition:s("desktop",y("Position",t(P,{}),[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Below",value:"below"}],"below")),search:s("desktop",i(a("Search",!1,t(_,{})),L)),searchHint:s("desktop",i(S(n("Hint","Type a postcode or address")),O)),noMatchText:s("desktop",i(S(n("No match","No place found. Try another postcode.")),O)),showDistance:i(a("Distance",!0,t(C,{})),F),_dLayout:A("Layout"),...N("Footprint")},resolveData:async(e,l)=>{const d=l?.changed,m=e.props;if(d?.listPosition===!0||d?.[p]===!0){const o=W(m);o!==m&&(e={...e,props:o})}const u=e.props,h=u.offices??[];if(!D(h))return e;const b=await x(h,o=>[o.address,o.city,o.country].map(E=>String(E??"").replace(/\*/g,"").trim()).filter(Boolean).join(", "));return{...e,props:{...u,offices:b}}},resolveFields:(e,{fields:l})=>H(G("Footprint",l,e.props,{hides:["offices"]}),e.props.headPlacement,B.Footprint.headRows)};export{ce as FootprintFields};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{HERO_GROUP_NUDGE_LIMIT as n,HERO_GROUP_WIDTH_DEFAULT as u,HERO_GROUP_WIDTH_MAX as p,HERO_GROUP_WIDTH_MIN as l,HERO_GROUP_WIDTH_NESTED_DEFAULT as _,heroGroupNestDepth as f}from"../../../../../../format/lib/hero-group-placement.js";import{WidthIcon as d}from"efficient-easel/icons";import{containerDirectionField as c,containerGapRows as h,heroGroupPlacementPoints as G,plainText as H,withIdentifier as g,withOffPage as R,withPanelOnly as x}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{boxAlignField as F,boxJustifyField as O,boxWrapField as P,placementField as D,positionFields as E,sidesPaddingFields as w,slider as m}from"../../../box-fields.js";import{PH as I}from"../../../../../../format/lib/document/blocks/placeholders.js";import{withRowRules as T}from"../../../../../../render/lib/document/show-when.js";import{HeroGroupSlots as y}from"../../../../../../format/lib/document/blocks/general/HeroGroup/meta.js";const S={fields:T({_gContent:o("Content"),name:x(g(R(H("Box name",I.boxName)))),content:y.content,_gLayout:o("Layout"),placement:D("Placement",{pointsFor:G}),width:m("Width",r(d,{}),l,p,5,u,"%"),direction:c("HeroGroup"),...h("HeroGroup"),justify:O(),align:F(),wrap:P(),_gNudge:o("Nudge"),...E({keys:{x:"nudgeX",y:"nudgeY"},min:-n,max:n,label:null}),...w({tablet:!0})},[[["placement"],{context:"heroGroupDepth",is:0,default:0}]]),resolveFields:(e,{fields:t,appState:s})=>{const a=typeof e.props.id=="string"?e.props.id:"";if(f(s?.data,a)===0)return t;const i={...t};return i.width=m("Width",r(d,{}),l,p,5,_,"%"),i}};export{S as HeroGroupFields};
1
+ import{jsx as r}from"react/jsx-runtime";import{HERO_GROUP_NUDGE_LIMIT as n,HERO_GROUP_WIDTH_DEFAULT as u,HERO_GROUP_WIDTH_MAX as p,HERO_GROUP_WIDTH_MIN as d,HERO_GROUP_WIDTH_NESTED_DEFAULT as _,heroGroupNestDepth as f}from"../../../../../../format/lib/hero-group-placement.js";import{WidthIcon as l}from"efficient-easel/icons";import{containerDirectionField as c,containerGapRows as h,heroGroupPlacementPoints as G,plainText as H,withIdentifier as g,withOffPage as R,withPanelOnly as x}from"../../../controls.js";import{group as e}from"efficient-easel/screen/lib/document/box-fields";import{boxAlignField as F,boxJustifyField as O,boxWrapField as P,placementField as D,positionFields as E,sidesPaddingFields as w,slider as s}from"../../../box-fields.js";import{PH as I}from"../../../../../../format/lib/document/blocks/placeholders.js";import{withRowRules as T}from"../../../../../../render/lib/document/show-when.js";import{HeroGroupSlots as y}from"../../../../../../format/lib/document/blocks/general/HeroGroup/meta.js";const C={fields:T({_gContent:e("Content"),name:x(g(R(H("Box name",I.boxName)))),content:y.content,_gLayout:e("Layout"),placement:D("Placement",{pointsFor:G}),width:s("Width",r(l,{}),d,p,5,u,"%"),direction:c("HeroGroup"),...h("HeroGroup"),justify:O(),align:F(),wrap:P(),_gNudge:e("Nudge"),...E({keys:{x:"nudgeX",y:"nudgeY"},min:-n,max:n,label:null}),...w({tablet:!0,siteSide:!0})},[[["placement"],{context:"heroGroupDepth",is:0,default:0}]]),resolveFields:(o,{fields:t,appState:m})=>{const a=typeof o.props.id=="string"?o.props.id:"";if(f(m?.data,a)===0)return t;const i={...t};return i.width=s("Width",r(l,{}),d,p,5,_,"%"),i}};export{C as HeroGroupFields};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import{IMAGE_FIT_ROW_LABEL as f,imageFitOptions as p}from"../../../../../../format/lib/content/image-fit.js";import{FILL_ROW_OPTION as c,imageFocalPointActsIn as n,imageAspectPhoneRest as d}from"../../../../../../format/lib/content/image-aspect.js";import{phoneKey as g}from"efficient-easel/draw";import{CropIcon as m,ImageIcon as h}from"efficient-easel/icons";import{BOX_SHAPES as l}from"../../../../../../format/lib/content/box-shape.js";import{shapeLines as a}from"../../../../../../format/lib/content/gallery-card-layout.js";import{fillRowCell as F,shapePickerRow as s}from"../../../shape-picker.js";import{focusKeptField as r,imageCornersField as I,linkField as _,plainText as R,cornerSidesField as w,upload as A,withPanelOnly as S}from"../../../controls.js";import{group as t,phoneTwinFields as u}from"efficient-easel/screen/lib/document/box-fields";import{select as O}from"../../../box-fields.js";import{photographyToggle as P}from"../../shared-fields.js";import{CARD_ROW_FACTS as T,cardRowField as x,cardRowFields as y}from"../../../card-row-fields.js";import{offerNextPicture as L}from"../../../../animation/hover-fields.js";import{darkenFields as k}from"../../../darken-fields.js";const z={fields:{_gImage:t("Image"),src:A("Image","image/*",void 0,{focus:"focal",focusWhen:(e,o)=>n(o,e.fit,e.aspect,e[g("aspect")])}),alt:S(R("Alt text")),rowField:x("Shows","image"),...u("aspect",s("Aspect ratio",i(m,{}),a(l),"image","16/9",{more:[F(c)]}),void 0,{phoneRow:s("Aspect ratio",i(m,{}),a(l),"image","16/9",{phoneRest:d})}),fit:O(f,i(h,{}),p(),"cover"),focal:r(),focalTablet:r(),focalPhone:r(),href:_("Link"),_gStyle:t("Style"),grayscale:P(),...k(),_gShape:t("Shape"),corners:I(),cornerSides:w()},resolveFields:(e,o)=>L(y(o.fields,e,o),e,o),showWhenFacts:T};export{z as ImageBlockFields};
1
+ import{jsx as i}from"react/jsx-runtime";import{IMAGE_FIT_ROW_LABEL as s,imageFitOptions as f}from"../../../../../../format/lib/content/image-fit.js";import{FILL_ROW_OPTION as c,imageFocalPointActsIn as n,imageAspectPhoneRest as d}from"../../../../../../format/lib/content/image-aspect.js";import{phoneKey as g}from"efficient-easel/draw";import{CropIcon as m,ImageIcon as F}from"efficient-easel/icons";import{BOX_SHAPES as l}from"../../../../../../format/lib/content/box-shape.js";import{shapeLines as a}from"../../../../../../format/lib/content/gallery-card-layout.js";import{fillRowCell as h,shapePickerRow as p}from"../../../shape-picker.js";import{focusKeptField as r,imageCornersField as R,linkField as _,plainText as I,cornerSidesField as w,upload as A,withPanelOnly as O}from"../../../controls.js";import{group as t,phoneTwinFields as P}from"efficient-easel/screen/lib/document/box-fields";import{select as S}from"../../../box-fields.js";import{photographyToggle as L}from"../../shared-fields.js";import{CARD_ROW_FACTS as u,cardRowField as k,cardRowFields as y,cardRowLinkField as T,typedLinkField as x}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as C}from"../../../../../../format/lib/content/card-template.js";import{offerNextPicture as W}from"../../../../animation/hover-fields.js";import{darkenFields as B}from"../../../darken-fields.js";const V={fields:{_gImage:t("Image"),src:A("Image","image/*",void 0,{focus:"focal",focusWhen:(e,o)=>n(o,e.fit,e.aspect,e[g("aspect")])}),alt:O(I("Alt text")),rowField:k("Shows","image"),[C]:T(),...P("aspect",p("Aspect ratio",i(m,{}),a(l),"image","16/9",{more:[h(c)]}),void 0,{phoneRow:p("Aspect ratio",i(m,{}),a(l),"image","16/9",{phoneRest:d})}),fit:S(s,i(F,{}),f(),"cover"),focal:r(),focalTablet:r(),focalPhone:r(),href:x(_("Link")),_gStyle:t("Style"),grayscale:L(),...B(),_gShape:t("Shape"),corners:R(),cornerSides:w()},resolveFields:(e,o)=>W(y(o.fields,e,o),e,o),showWhenFacts:u};export{V as ImageBlockFields};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import{FOOTER_LOGO_PX as t,HEADER_LOGO_PX_MIN as r,LOGO_BLOCK_PX_MAX as l}from"../../../../../../render/components/Logo.js";import{HeightIcon as m}from"efficient-easel/icons";import{linkField as s,plainText as a,upload as d,withPanelOnly as n}from"../../../controls.js";import{slider as f}from"../../../box-fields.js";import{blockAlignmentFields as p}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as _,group as O}from"efficient-easel/screen/lib/document/box-fields";import{withRowRules as c}from"../../../../../../render/lib/document/show-when.js";import{LOGO_COLOR_FIELDS as h}from"../../../logo-color-fields.js";import{CARD_ROW_FACTS as g,cardRowField as F,cardRowFields as x}from"../../../card-row-fields.js";const k={fields:c({src:d("Logo image","image/*"),alt:n(a("Alt text","Brand name","Read out in place of the picture, and shown if it can’t load.")),href:s("Link"),heightPx:f("Height",i(m,{}),r,l,1,t,"px"),...p("align",{access:_}),...h,_gText:O("Text"),rowField:F("Shows","text")},[[["alt"],{field:"src",set:!0}]]),resolveFields:(e,o)=>x(o.fields,e,o),showWhenFacts:g};export{k as LogoBlockFields};
1
+ import{jsx as e}from"react/jsx-runtime";import{FOOTER_LOGO_PX as t,HEADER_LOGO_PX_MIN as r,LOGO_BLOCK_PX_MAX as l}from"../../../../../../render/components/Logo.js";import{HeightIcon as m}from"efficient-easel/icons";import{linkField as d,plainText as s,upload as a,withPanelOnly as n}from"../../../controls.js";import{slider as _}from"../../../box-fields.js";import{blockAlignmentFields as p}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as f,group as O}from"efficient-easel/screen/lib/document/box-fields";import{withRowRules as c}from"../../../../../../render/lib/document/show-when.js";import{LOGO_COLOR_FIELDS as R}from"../../../logo-color-fields.js";import{CARD_ROW_FACTS as F,cardRowField as L,cardRowFields as h,cardRowLinkField as g,typedLinkField as w}from"../../../card-row-fields.js";import{CARD_ROW_LINK_PROP as x}from"../../../../../../format/lib/content/card-template.js";const W={fields:c({src:a("Logo image","image/*"),alt:n(s("Alt text","Brand name","Read out in place of the picture, and shown if it can’t load.")),href:w(d("Link")),heightPx:_("Height",e(m,{}),r,l,1,t,"px"),...p("align",{access:f}),...R,_gText:O("Text"),rowField:L("Shows","text"),[x]:g()},[[["alt"],{field:"src",set:!0}]]),resolveFields:(i,o)=>h(o.fields,i,o),showWhenFacts:F};export{W as LogoBlockFields};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{ColumnWidthsIcon as f,ColumnsIcon as _,LayoutIcon as P,MediaLayoutStackedIcon as g,PlacementIcon as T}from"efficient-easel/icons";import{deviceField as E}from"efficient-easel/screen/lib/document/device-fields";import{cardImageField as O,text as i,textarea as b}from"../../../controls.js";import{group as a,section as l}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as I,segmented as s,slider as R}from"../../../box-fields.js";import{IMAGE_TEXT_ARRANGEMENT_PICTURES as h,LAYOUT_CELL as C}from"../../../choice-pictures.js";import{BLOCK_SOURCE_EDIT_PROP as L,blockSourceEditField as x,blockSourceField as A,blockSourceFields as w}from"../../../block-source-fields.js";import{declaredBlockSource as n}from"../../../../../../format/lib/content/block-sources.js";import{ARRANGEMENT_OPTIONS as N,IMAGE_WIDTH_OPTIONS as v,PHONE_ORDER_OPTIONS as F}from"../../../../../../format/lib/content/image-text-rows.js";import{imageTextRowTemplate as y}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/row-seed.js";import{SPLITTABLE_SECTIONS as D,headFieldsForPlacement as G}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as H}from"../../../../../../format/lib/document/blocks/placeholders.js";import{innerSpacingFields as W}from"../../shared-fields.js";import{withRowRules as k}from"../../../../../../render/lib/document/show-when.js";import{isNodeList as m}from"efficient-easel/data";import{PROCESS_PH as p,ProcessStepsSlots as c}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/meta.js";const u={field:"arrangement",in:["rows-left","rows-right"]},d="drawsLegacySteps",S={not:{context:d,is:!0}},M={[d]:e=>{const o=e.props??{};return!n(o)&&!m(o.boxes)}},B=e=>e?.data?.root?.props??null,se={fields:k({_gSource:a("Source"),dataSource:A("Item content","Manual"),[L]:x(),_sHeader:l("Header"),_gContent:a("Content"),num:i("Number",p.num),title:i("Heading",p.title),description:b("Body",H.body),boxes:c.boxes,template:c.template,_dDesign:l("Design"),arrangement:I("Arrangement",r(P,{}),N.map(e=>({label:e.label,value:e.value,picture:h[e.value]})),"columns",{columns:3,cell:C}),imageWidth:s("Image width",r(f,{}),v.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:E("mobile",s("Order",r(g,{}),F.map(e=>({label:e.label,value:e.value})),"picture")),columns:R("Columns",r(_,{}),2,4,1,3),cardImage:O(),cardText:s("Text position",r(T,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below"),_dLayout:l("Layout"),...W("ProcessSteps")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],S],[["imageWidth","phoneOrder"],{all:[u,S]}],[["columns"],{not:u}]]),showWhenFacts:M,resolveFields:(e,o)=>w("ProcessSteps",G(o.fields,e.props.headPlacement,D.ProcessSteps.headRows),e.props,{root:B(o.appState)}),resolveData:(e,o)=>{const t=e.props;return o?.changed?.dataSource!==!0||!n(t)||m(t.template)?e:{...e,props:{...t,template:y(String(t.id??"ProcessSteps"))}}}};export{se as ProcessStepsFields};
1
+ import{jsx as r}from"react/jsx-runtime";import{ColumnWidthsIcon as f,ColumnsIcon as _,LayoutIcon as P,MediaLayoutStackedIcon as T,PlacementIcon as g}from"efficient-easel/icons";import{deviceField as E}from"efficient-easel/screen/lib/document/device-fields";import{cardImageFields as O,text as i,textarea as b}from"../../../controls.js";import{group as n,section as s}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as I,segmented as l,slider as R}from"../../../box-fields.js";import{IMAGE_TEXT_ARRANGEMENT_PICTURES as h,LAYOUT_CELL as C}from"../../../choice-pictures.js";import{BLOCK_SOURCE_EDIT_PROP as L,blockSourceEditField as x,blockSourceField as A,blockSourceFields as w}from"../../../block-source-fields.js";import{declaredBlockSource as a}from"../../../../../../format/lib/content/block-sources.js";import{ARRANGEMENT_OPTIONS as N,IMAGE_WIDTH_OPTIONS as v,PHONE_ORDER_OPTIONS as F}from"../../../../../../format/lib/content/image-text-rows.js";import{imageTextRowTemplate as y}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/row-seed.js";import{SPLITTABLE_SECTIONS as D,headFieldsForPlacement as G}from"../../../../../../format/lib/sections/section-head-placement.js";import{PH as H}from"../../../../../../format/lib/document/blocks/placeholders.js";import{innerSpacingFields as W}from"../../shared-fields.js";import{withRowRules as k}from"../../../../../../render/lib/document/show-when.js";import{isNodeList as m}from"efficient-easel/data";import{PROCESS_PH as p,ProcessStepsSlots as c}from"../../../../../../format/lib/document/blocks/general/ProcessSteps/meta.js";const u={field:"arrangement",in:["rows-left","rows-right"]},d="drawsLegacySteps",S={not:{context:d,is:!0}},M={[d]:e=>{const o=e.props??{};return!a(o)&&!m(o.boxes)}},B=e=>e?.data?.root?.props??null,le={fields:k({_gSource:n("Source"),dataSource:A("Item content","Manual"),[L]:x(),_sHeader:s("Header"),_gContent:n("Content"),num:i("Number",p.num),title:i("Heading",p.title),description:b("Body",H.body),boxes:c.boxes,template:c.template,_dDesign:s("Design"),arrangement:I("Arrangement",r(P,{}),N.map(e=>({label:e.label,value:e.value,picture:h[e.value]})),"columns",{columns:3,cell:C}),imageWidth:l("Image width",r(f,{}),v.map(e=>({label:e.label,value:e.value})),"half"),phoneOrder:E("mobile",l("Order",r(T,{}),F.map(e=>({label:e.label,value:e.value})),"picture")),columns:R("Columns",r(_,{}),2,4,1,3),...O(),cardText:l("Text position",r(g,{}),[{label:"Below picture",value:"below"},{label:"On picture",value:"on-image"}],"below"),_dLayout:s("Layout"),...W("ProcessSteps")},[[["cardText"],{not:{field:"boxes",set:!0}}],[["arrangement"],S],[["imageWidth","phoneOrder"],{all:[u,S]}],[["columns"],{not:u}]]),showWhenFacts:M,resolveFields:(e,o)=>w("ProcessSteps",G(o.fields,e.props.headPlacement,D.ProcessSteps.headRows),e.props,{root:B(o.appState)}),resolveData:(e,o)=>{const t=e.props;return o?.changed?.dataSource!==!0||!a(t)||m(t.template)?e:{...e,props:{...t,template:y(String(t.id??"ProcessSteps"))}}}};export{le as ProcessStepsFields};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{HashIcon as n,StylesIcon as t}from"efficient-easel/icons";import{linkField as m,plainText as E,text as i,textarea as r,upload as S,withPanelOnly as _}from"../../../controls.js";import{group as l}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as O,segmented as T,select as p}from"../../../box-fields.js";import{LAYOUT_CELL as L,SECTION_HEAD_PICTURES as a}from"../../../choice-pictures.js";import{DEFAULT_SECTION_NUMBER_STYLE as s,SECTION_NUMBER_STYLE_OPTIONS as c}from"../../../../../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_HEAD_STYLE as g,SECTION_HEAD_STYLE_OPTIONS as N,withHeadStyleRules as I}from"../../../../../../format/lib/sections/section-head-style.js";import{SECTION_EYEBROW_LOOK_OPTIONS as d,DEFAULT_SECTION_EYEBROW_LOOK as u}from"../../../../../../format/lib/sections/section-eyebrow-look.js";const k={fields:I({_gContent:l("Content"),headStyle:O("Style",o(t,{}),N.map(e=>({...e,picture:a[e.value]})),g,{columns:3,cell:L}),num:i("Number","01 / Section"),eyebrowLook:p("Eyebrow style",o(t,{}),[...d],u),numStyle:T("Number style",o(n,{}),[...c],s),title:r("Heading","Section *title*"),description:r("Body","Short supporting line"),linkText:i("Button","View all"),linkHref:m("Link"),_gLogo:l("Logo"),logoSrc:S("Logo image","image/*"),logoAlt:_(E("Logo alt text","Logo description"))})};export{k as SectionHeaderFields};
1
+ import{jsx as e}from"react/jsx-runtime";import{HashIcon as E,StylesIcon as i}from"efficient-easel/icons";import{linkField as n,plainText as _,text as r,textarea as l,upload as S,withPanelOnly as T}from"../../../controls.js";import{group as m}from"efficient-easel/screen/lib/document/box-fields";import{iconPickerRow as O,segmented as p,select as L}from"../../../box-fields.js";import{LAYOUT_CELL as s,SECTION_HEAD_PICTURES as a}from"../../../choice-pictures.js";import{DEFAULT_SECTION_NUMBER_STYLE as N,SECTION_NUMBER_STYLE_OPTIONS as c}from"../../../../../../format/lib/sections/section-number-style.js";import{DEFAULT_SECTION_HEAD_STYLE as g,SECTION_HEAD_STYLE_OPTIONS as I,withHeadStyleRules as d}from"../../../../../../format/lib/sections/section-head-style.js";import{SECTION_EYEBROW_LOOK_OPTIONS as f,DEFAULT_SECTION_EYEBROW_LOOK as u}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{SECTION_HEADER_PH as o}from"../../../../../../format/lib/document/blocks/general/SectionHeader/meta.js";const Y={fields:d({_gContent:m("Content"),headStyle:O("Style",e(i,{}),I.map(t=>({...t,picture:a[t.value]})),g,{columns:3,cell:s}),num:r("Number",o.num),eyebrowLook:L("Eyebrow style",e(i,{}),[...f],u),numStyle:p("Number style",e(E,{}),[...c],N),title:l("Heading",o.title),description:l("Body",o.description),linkText:r("Button",o.linkText),linkHref:n("Link"),_gLogo:m("Logo"),logoSrc:S("Logo image","image/*"),logoAlt:T(_("Logo alt text","Logo description"))})};export{Y as SectionHeaderFields};
@@ -1 +1 @@
1
- import{jsx as r}from"react/jsx-runtime";import{BlockBadgeIcon as n,BorderTopIcon as a,MediaLayoutInsetIcon as p}from"efficient-easel/icons";import{FieldGlyph as m}from"../../../../../components/FieldGlyph.js";import{COUNT_KEY_PROP as s}from"../../../../../../format/lib/content/block-sources.js";import{CARD_PLACE_PROP as d,OUTSIDE_FRAMED_CARD as l,framesItsCards as c}from"../../../../../../format/lib/content/card-place.js";import{cardTemplateOwner as f}from"../../../../../../format/lib/content/card-template.js";import{CARD_ROW_FACTS as h,cardRowField as u,cardRowFields as g}from"../../../card-row-fields.js";import{textarea as w}from"../../../controls.js";import{group as _}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as b}from"efficient-easel/screen/lib/document/style-fields";import{segmented as x,select as R}from"../../../box-fields.js";import{withShowWhen as v}from"../../../../../../format/lib/document/show-when-attach.js";import{PH as F}from"../../../../../../format/lib/document/blocks/placeholders.js";import{toneField as T}from"../../shared-fields.js";import{blockAlignmentFields as C}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as P}from"efficient-easel/screen/lib/document/box-fields";import{consentWordsKept as y,withConsentWordsRow as A}from"../../../consent-words-field.js";import{withLiveNumberRow as H}from"../../../live-number-field.js";function I(e,o){const t=o?.textStyle;if(typeof t!="string"||!t.startsWith("heading-"))return e;const{align:O,alignTablet:S,alignPhone:W,...i}=e;return i}const Z={fields:{text:w("Body",F.body),consentWords:y("text"),[s]:b("text"),...C("align",{access:P}),tone:T(),_gText:_("Text"),rowField:u("Shows","text"),[d]:v(x("Place",r(n,{}),[{label:"In the card",value:"",picture:r(p,{})},{label:"On the top line",value:"top-line",picture:r(a,{})}],""),{not:{context:l,is:!0}}),tag:R("HTML tag",r(m,{noun:"heading"}),[{label:"Paragraph",value:"p"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],"p")},resolveFields:(e,o)=>I(H(A(g(o.fields,e,o),e.props,"text"),e.props),e.props),showWhenFacts:{...h,[l]:(e,o)=>{const t=f(o.appState,e.props?.id);return t===void 0?void 0:!c(t?.type)}}};export{Z as TextFields};
1
+ import{jsx as r}from"react/jsx-runtime";import{BlockBadgeIcon as n,BorderTopIcon as a,MediaLayoutInsetIcon as p}from"efficient-easel/icons";import{FieldGlyph as m}from"../../../../../components/FieldGlyph.js";import{COUNT_KEY_PROP as s}from"../../../../../../format/lib/content/block-sources.js";import{CARD_PLACE_PROP as d,OUTSIDE_FRAMED_CARD as l,framesItsCards as c}from"../../../../../../format/lib/content/card-place.js";import{CARD_ROW_LINK_PROP as f,cardTemplateOwner as h}from"../../../../../../format/lib/content/card-template.js";import{CARD_ROW_FACTS as u,cardRowField as g,cardRowFields as _,cardRowLinkField as w}from"../../../card-row-fields.js";import{textarea as R}from"../../../controls.js";import{group as b}from"efficient-easel/screen/lib/document/box-fields";import{keptByRow as x}from"efficient-easel/screen/lib/document/style-fields";import{segmented as F,select as P}from"../../../box-fields.js";import{withShowWhen as v}from"../../../../../../format/lib/document/show-when-attach.js";import{PH as C}from"../../../../../../format/lib/document/blocks/placeholders.js";import{toneField as T}from"../../shared-fields.js";import{blockAlignmentFields as A}from"../../../box-fields.js";import{VIEW_KEY_ACCESS as O}from"efficient-easel/screen/lib/document/box-fields";import{consentWordsKept as y,withConsentWordsRow as H}from"../../../consent-words-field.js";import{withLiveNumberRow as I}from"../../../live-number-field.js";function W(e,o){const t=o?.textStyle;if(typeof t!="string"||!t.startsWith("heading-"))return e;const{align:S,alignTablet:E,alignPhone:B,...i}=e;return i}const ee={fields:{text:R("Body",C.body),consentWords:y("text"),[s]:x("text"),...A("align",{access:O}),tone:T(),_gText:b("Text"),rowField:g("Shows","text"),[f]:w(),[d]:v(F("Place",r(n,{}),[{label:"In the card",value:"",picture:r(p,{})},{label:"On the top line",value:"top-line",picture:r(a,{})}],""),{not:{context:l,is:!0}}),tag:P("HTML tag",r(m,{noun:"heading"}),[{label:"Paragraph",value:"p"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],"p")},resolveFields:(e,o)=>W(I(H(_(o.fields,e,o),e.props,"text"),e.props),e.props),showWhenFacts:{...u,[l]:(e,o)=>{const t=h(o.appState,e.props?.id);return t===void 0?void 0:!c(t?.type)}}};export{ee as TextFields};
@@ -1,2 +1,2 @@
1
- export declare const assembleGeneralBlocks: () => Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "Chart" | "Mockup" | "Banner" | "TitleWithButtons" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "PostCard" | "HeroSlide" | "HeroGroup" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
2
- export declare const generalBlocks: Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "Chart" | "Mockup" | "Banner" | "TitleWithButtons" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "PostCard" | "HeroSlide" | "HeroGroup" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
1
+ export declare const assembleGeneralBlocks: () => Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Cards" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "PostCard" | "HeroSlide" | "HeroGroup" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
2
+ export declare const generalBlocks: Record<"Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "Footprint" | "Cards" | "Stats" | "Chart" | "Mockup" | "Countdown" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Logos" | "DocMasthead" | "DocTabs" | "Prose" | "ParagraphsA" | "TitleWithButtons" | "Banner" | "CategoryBar" | "Masthead" | "Grid" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "StatsParagraph" | "Testimonials" | "PaymentBadges" | "Heading" | "Text" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ListSearch" | "ButtonBlock" | "CardList" | "PostCard" | "HeroSlide" | "HeroGroup" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
@@ -3,7 +3,7 @@ import { boxFieldBuilders, type BoxFieldSay } from "efficient-easel/screen/lib/d
3
3
  import type { ShowWhenRule } from "efficient-shell/format";
4
4
  type Rows = ReturnType<typeof boxFieldBuilders>;
5
5
  export declare const rowSay: BoxFieldSay;
6
- export declare const PADDING_UNITS: readonly ["px", "%", "vw"];
6
+ export declare const LENGTH_UNITS_TABLE: Readonly<Record<"size" | "spacing" | "gap" | "letterSpacing" | "fontSize" | "border" | "height" | "position" | "radius" | "breakpoint", readonly ("%" | "px" | "vw")[]>>;
7
7
  export declare const slider: Rows["slider"];
8
8
  export declare const select: Rows["select"];
9
9
  export declare const Segmented: Rows["Segmented"];
@@ -21,6 +21,7 @@ export declare const placementField: Rows["placementField"];
21
21
  export declare const PlacementGridView: Rows["PlacementGridView"];
22
22
  export declare const positionFields: Rows["positionFields"];
23
23
  export declare const sidesPaddingFields: Rows["sidesPaddingFields"];
24
+ export declare const lengthUnitFields: Rows["lengthUnitFields"];
24
25
  export declare function angleRow(fallback: number, options?: Parameters<Rows["slider"]>[7]): ReturnType<Rows["slider"]>;
25
26
  export declare function ShellIconWord({ value }: {
26
27
  value: string;
@@ -1 +1 @@
1
- import{createElement as l}from"react";import{SettingsDefaultReset as I,SettingsField as P}from"efficient-easel/panel";import{boxFieldBuilders as R,describedAs as W,iconOf as G,onDesktopWords as E}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_UNITS as O}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as L,Tooltip as C,useShellStrings as D}from"efficient-shell/ui";import{RotateIcon as T}from"efficient-easel/icons";import{ANGLE_RANGE as f}from"../../../format/lib/content/box-angle.js";import{editorEaselWords as V,say as s}from"../../../format/lib/editor-words.js";const h=o=>s(o),_=O,t=R(h,{paddingUnits:_}),U=t.slider,ee=t.select,ne=t.Segmented,oe=t.segmented,te=t.alignmentField,le=t.alignmentFields,ie=t.blockAlignmentField,se=t.blockAlignmentFields,ce=t.boxJustifyField,de=t.boxAlignField,re=t.boxWrapField,ae=t.directionField,pe=t.gapField,fe=t.placementField,me=t.PlacementGridView,ue=t.positionFields,xe=t.sidesPaddingFields;function ge(o,i){return U("Angle",l(T),f.min,f.max,f.step,o,"°",i)}const H={width:"3.5rem",height:"2.75rem"};function J({value:o}){return D().iconNames[o]??o}function B(o,i,e){return l(C,{content:e,className:"sf-pick-tip",children:l("span",{className:"sf-pick"},l("span",{className:"sf-pick-pic"},o),l("span",{className:"sf-pick-cap"},i))})}function Y(o){const i=e=>e.label===void 0?l(J,{value:e.value}):s(e.label);return o.map(e=>({value:e.value,...e.label===void 0?{}:{label:s(e.hint??e.label)},icon:B(e.picture,i(e),e.hint===void 0?i(e):s(e.hint))}))}function Fe(o,i){return l("span",{className:"sf-pick"},l("span",{className:"sf-pick-pic"},o),l("span",{className:"sf-pick-cap sf-pick-cap-closed"},i))}function we(o,i,e,m,c={}){const k=n=>e.some(d=>d.value===n),r=n=>c.resolve?c.resolve(n):k(n)?n:void 0,u=e.map(n=>({value:n.value,...n.label===void 0?{}:{label:n.label},...n.showWhen?{showWhen:n.showWhen}:{}}));return{type:"custom",...W({},{type:"radio",label:o,options:u}),options:u,render:n=>{const{value:d,onChange:x,field:g}=n,F=g?.options,N=Y(e.filter(p=>!F||F.some(y=>y.value===p.value))),w="follows"in n,a=w?r(c.phoneRest?c.phoneRest(n.follows):n.follows)??m:void 0,v=g?.currentValue,A=r(d)??a??r(v)??m,S=d!=null&&d!=="",b=a===void 0?void 0:e.find(p=>p.value===a);return l(P,{label:s(o),icon:G(i),action:w?l(I,{words:V()?.panel,label:s(o),changed:S,detail:b?.label!==void 0?E(h,s(b.label),n.followsView):void 0,disabled:n.readOnly===!0,onReset:()=>x(void 0)}):void 0},l(L,{label:s(o),value:A,options:N,onChange:x,columns:c.columns,cell:c.cell??H,tooltips:!1,disabled:n.readOnly===!0}))}}}export{_ as PADDING_UNITS,me as PlacementGridView,ne as Segmented,J as ShellIconWord,te as alignmentField,le as alignmentFields,ge as angleRow,ie as blockAlignmentField,se as blockAlignmentFields,de as boxAlignField,ce as boxJustifyField,re as boxWrapField,ae as directionField,pe as gapField,we as iconPickerRow,B as pickerCellIcon,Y as pickerCellsOf,Fe as pickerNoneIcon,fe as placementField,ue as positionFields,h as rowSay,oe as segmented,ee as select,xe as sidesPaddingFields,U as slider};
1
+ import{createElement as l}from"react";import{SettingsDefaultReset as E,SettingsField as I}from"efficient-easel/panel";import{boxFieldBuilders as R,describedAs as W,iconOf as G,onDesktopWords as L}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as P}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as O,Tooltip as T,useShellStrings as _}from"efficient-shell/ui";import{RotateIcon as U}from"efficient-easel/icons";import{ANGLE_RANGE as f}from"../../../format/lib/content/box-angle.js";import{editorEaselWords as C,say as s}from"../../../format/lib/editor-words.js";const h=o=>s(o),V=P,t=R(h,{lengthUnits:V}),D=t.slider,ee=t.select,ne=t.Segmented,te=t.segmented,oe=t.alignmentField,le=t.alignmentFields,ie=t.blockAlignmentField,se=t.blockAlignmentFields,ce=t.boxJustifyField,de=t.boxAlignField,re=t.boxWrapField,ae=t.directionField,pe=t.gapField,fe=t.placementField,me=t.PlacementGridView,ue=t.positionFields,ge=t.sidesPaddingFields,xe=t.lengthUnitFields;function Fe(o,i){return D("Angle",l(U),f.min,f.max,f.step,o,"°",i)}const H={width:"3.5rem",height:"2.75rem"};function B({value:o}){return _().iconNames[o]??o}function J(o,i,e){return l(T,{content:e,className:"sf-pick-tip",children:l("span",{className:"sf-pick"},l("span",{className:"sf-pick-pic"},o),l("span",{className:"sf-pick-cap"},i))})}function K(o){const i=e=>e.label===void 0?l(B,{value:e.value}):s(e.label);return o.map(e=>({value:e.value,...e.label===void 0?{}:{label:s(e.hint??e.label)},icon:J(e.picture,i(e),e.hint===void 0?i(e):s(e.hint))}))}function we(o,i){return l("span",{className:"sf-pick"},l("span",{className:"sf-pick-pic"},o),l("span",{className:"sf-pick-cap sf-pick-cap-closed"},i))}function be(o,i,e,m,c={}){const k=n=>e.some(d=>d.value===n),r=n=>c.resolve?c.resolve(n):k(n)?n:void 0,u=e.map(n=>({value:n.value,...n.label===void 0?{}:{label:n.label},...n.showWhen?{showWhen:n.showWhen}:{}}));return{type:"custom",...W({},{type:"radio",label:o,options:u}),options:u,render:n=>{const{value:d,onChange:g,field:x}=n,F=x?.options,N=K(e.filter(p=>!F||F.some(y=>y.value===p.value))),w="follows"in n,a=w?r(c.phoneRest?c.phoneRest(n.follows):n.follows)??m:void 0,v=x?.currentValue,A=r(d)??a??r(v)??m,S=d!=null&&d!=="",b=a===void 0?void 0:e.find(p=>p.value===a);return l(I,{label:s(o),icon:G(i),action:w?l(E,{words:C()?.panel,label:s(o),changed:S,detail:b?.label!==void 0?L(h,s(b.label),n.followsView):void 0,disabled:n.readOnly===!0,onReset:()=>g(void 0)}):void 0},l(O,{label:s(o),value:A,options:N,onChange:g,columns:c.columns,cell:c.cell??H,tooltips:!1,disabled:n.readOnly===!0}))}}}export{V as LENGTH_UNITS_TABLE,me as PlacementGridView,ne as Segmented,B as ShellIconWord,oe as alignmentField,le as alignmentFields,Fe as angleRow,ie as blockAlignmentField,se as blockAlignmentFields,de as boxAlignField,ce as boxJustifyField,re as boxWrapField,ae as directionField,pe as gapField,be as iconPickerRow,xe as lengthUnitFields,J as pickerCellIcon,K as pickerCellsOf,we as pickerNoneIcon,fe as placementField,ue as positionFields,h as rowSay,te as segmented,ee as select,ge as sidesPaddingFields,D as slider};
@@ -8,6 +8,9 @@ export declare const CARD_ROW_FACTS: BlockShowWhenFacts;
8
8
  export declare function cardRowField(label: string, kind: CardRowFieldKind, opts?: {
9
9
  content?: boolean;
10
10
  }): SelectField;
11
+ export declare function cardRowLinkField(): SelectField;
12
+ export declare const TYPED_LINK_SHOWN: ShowWhenRule;
13
+ export declare function typedLinkField<F extends object>(field: F): F;
11
14
  export declare function cardRowItemField(f: CardRowFieldSpec): CustomField<string> | CustomField<import("efficient-easel/draw").HidableValue>;
12
15
  export declare function cardRowFields<Fields extends Record<string, unknown>>(fields: Fields, data: {
13
16
  props?: Record<string, unknown>;
@@ -1 +1 @@
1
- import{jsx as f}from"react/jsx-runtime";import{GroundIcon as F,ListIcon as W}from"efficient-easel/icons";import{FieldGlyph as Y}from"../../components/FieldGlyph.js";import{BOX_IN_COPY as $,BOX_OUTSIDE_COPY as G}from"../../../format/lib/content/box-card-rule.js";import{CARD_LIST_FIELDS as U,CARD_LIST_TYPE as h,cardCopyPlace as I,cardListFieldsOf as X,cardListShows as J,cardTemplateFieldsOf as q,cardTemplateOwner as C,cardTemplateSlotOf as k}from"../../../format/lib/content/card-template.js";import{copyText as z,plainText as H,plainTextarea as Q,ThemeFillRow as V,withOffPage as Z}from"./controls.js";import{recordRowFields as E}from"../../../format/lib/content/record-row.js";import{recordTypesRevision as tt}from"../../../format/lib/content/record-types.js";import{editorRecordType as ot}from"../../../format/lib/document/editor-page-context.js";import{blockSourcesRevision as et,declaredBlockSource as L}from"../../../format/lib/content/block-sources.js";import{select as nt}from"./box-fields.js";import{withShowWhen as rt}from"../../../format/lib/document/show-when-attach.js";function A(t){const e=t?.data?.root,o=ot(e?.props)??"";return o&&E(o,"text").length?o:""}const D="outsideCardTemplate",pt={not:{context:D,is:!0}},ht={[D]:(t,e)=>{const o=C(e.appState,t.props?.id);if(o!==void 0)return o===null&&!A(e.appState)},[G]:(t,e)=>{const o=I(e.appState,t.props?.id);return o===void 0?void 0:!o.inCopy},[$]:(t,e)=>I(e.appState,t.props?.id)?.inCopy};function Ct(t,e,o){const l=e==="colour"||o?.content===!0,a=e==="link"?f(Y,{noun:"link"}):e==="colour"?f(F,{}):f(W,{}),n={...nt(t,a,[l?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:e,...l?{cardRowContent:!0}:null};return rt(n,pt)}function Ot(t){return t.kind==="link"?Z(H(t.label)):t.kind==="colour"?ct(t.label):t.multiline?Q(t.label):z(t.label)}function ct(t){return{type:"custom",render:({value:e,onChange:o})=>f(V,{label:t,icon:f(F,{}),value:e,shown:typeof e=="string"?e:"",onChange:o})}}function it(t){return!!(t&&typeof t=="object"&&"cardRowKind"in t)}const K=new WeakMap;function _t(t,e,o){const l=Object.keys(t).filter(p=>it(t[p]));if(!l.length)return t;const a=e.props??{},n=C(o.appState,a.id),c=typeof n?.type=="string"?n.type:"",O=n?k(o.appState,a.id)??"":"",d=l.map(p=>typeof a[p]=="string"?a[p].trim():""),P=L(n?.props),r=c===h?C(o.appState,n?.props?.id):null,_=r?k(o.appState,n?.props?.id)??void 0:void 0,j=r?J(n?.props,r.type,_):"",v=r?L(r.props):"",M=r?`${String(r.type??"")}\0${v}\0${_??""}`:"",B=c===h&&!r?JSON.stringify(n?.props?.[U]??null):"",S=n?"":A(o.appState),b=[c,O,P,j,M,B,et(),S,tt(),...d].join("\0");let m=K.get(t);m||K.set(t,m=new Map);const g=m.get(b);if(g)return g;const w={...t};return l.forEach((p,u)=>{const i=t[p],y=c===h?X(o.appState,n,i.cardRowKind):c?q(n,i.cardRowKind,O||void 0):E(S,i.cardRowKind);if(!d[u]&&(i.cardRowContent?!c||!y.length:!y.length&&!c&&S)){delete w[p];return}const R=d[u]&&!y.some(s=>s.key===d[u])?d[u]:"",x=i.cardRowKind==="list",N=(s,T)=>x&&T===0&&s.key!==d[u]?"":s.key;w[p]={...i,options:[...x?[]:i.options,...y.map((s,T)=>({label:s.label,value:N(s,T)})),...R?[{label:R,value:R}]:[]]}}),m.set(b,w),w}export{ht as CARD_ROW_FACTS,pt as IN_CARD_TEMPLATE,D as OUTSIDE_CARD_TEMPLATE,Ct as cardRowField,_t as cardRowFields,Ot as cardRowItemField};
1
+ import{jsx as m}from"react/jsx-runtime";import{GroundIcon as L,ListIcon as $}from"efficient-easel/icons";import{FieldGlyph as G}from"../../components/FieldGlyph.js";import{BOX_IN_COPY as U,BOX_OUTSIDE_COPY as X}from"../../../format/lib/content/box-card-rule.js";import{CARD_LIST_FIELDS as H,CARD_LIST_TYPE as _,CARD_ROW_LINK_PROP as J,cardCopyPlace as F,cardListFieldsOf as q,cardListShows as z,cardTemplateFieldsOf as Q,cardTemplateOwner as x,cardTemplateSlotOf as I}from"../../../format/lib/content/card-template.js";import{copyText as V,plainText as Z,plainTextarea as tt,ThemeFillRow as et,withOffPage as ot}from"./controls.js";import{recordRowFields as A}from"../../../format/lib/content/record-row.js";import{recordTypesRevision as nt}from"../../../format/lib/content/record-types.js";import{editorRecordType as rt}from"../../../format/lib/document/editor-page-context.js";import{blockSourcesRevision as pt,declaredBlockSource as D}from"../../../format/lib/content/block-sources.js";import{select as it}from"./box-fields.js";import{withShowWhen as E}from"../../../format/lib/document/show-when-attach.js";function K(t){const o=t?.data?.root,e=rt(o?.props)??"";return e&&A(e,"text").length?e:""}const O="outsideCardTemplate",ct={not:{context:O,is:!0}},Ct={[O]:(t,o)=>{const e=x(o.appState,t.props?.id);if(e!==void 0)return e===null&&!K(o.appState)},[X]:(t,o)=>{const e=F(o.appState,t.props?.id);return e===void 0?void 0:!e.inCopy},[U]:(t,o)=>F(o.appState,t.props?.id)?.inCopy};function lt(t,o,e){const s=o==="colour"||e?.content===!0,a=o==="link"?m(G,{noun:"link"}):o==="colour"?m(L,{}):m($,{}),n={...it(t,a,[s?{label:"Manual",value:""}:{label:"Typed here",value:""}],""),cardRowKind:o,...s?{cardRowContent:!0}:null};return E(n,ct)}function gt(){return lt("Link from","link")}const st={any:[{field:J,set:!1},{context:O,is:!0,default:!0}]};function kt(t){return E(t,st)}function bt(t){return t.kind==="link"?ot(Z(t.label)):t.kind==="colour"?at(t.label):t.multiline?tt(t.label):V(t.label)}function at(t){return{type:"custom",render:({value:o,onChange:e})=>m(et,{label:t,icon:m(L,{}),value:o,shown:typeof o=="string"?o:"",onChange:e})}}function dt(t){return!!(t&&typeof t=="object"&&"cardRowKind"in t)}const P=new WeakMap;function Lt(t,o,e){const s=Object.keys(t).filter(i=>dt(t[i]));if(!s.length)return t;const a=o.props??{},n=x(e.appState,a.id),r=typeof n?.type=="string"?n.type:"",h=n?I(e.appState,a.id)??"":"",d=s.map(i=>typeof a[i]=="string"?a[i].trim():""),N=D(n?.props),p=r===_?x(e.appState,n?.props?.id):null,C=p?I(e.appState,n?.props?.id)??void 0:void 0,j=p?z(n?.props,p.type,C):"",v=p?D(p.props):"",M=p?`${String(p.type??"")}\0${v}\0${C??""}`:"",W=r===_&&!p?JSON.stringify(n?.props?.[H]??null):"",y=n?"":K(e.appState),g=[r,h,N,j,M,W,pt(),y,nt(),...d].join("\0");let w=P.get(t);w||P.set(t,w=new Map);const k=w.get(g);if(k)return k;const R={...t};return s.forEach((i,u)=>{const c=t[i],f=r===_?q(e.appState,n,c.cardRowKind):r?Q(n,c.cardRowKind,h||void 0):A(y,c.cardRowKind),B=c.cardRowKind==="link"&&!!r&&!f.length;if(!d[u]&&(B||(c.cardRowContent?!r||!f.length:!f.length&&!r&&y))){delete R[i];return}const S=d[u]&&!f.some(l=>l.key===d[u])?d[u]:"",b=c.cardRowKind==="list",Y=(l,T)=>b&&T===0&&l.key!==d[u]?"":l.key;R[i]={...c,options:[...b?[]:c.options,...f.map((l,T)=>({label:l.label,value:Y(l,T)})),...S?[{label:S,value:S}]:[]]}}),w.set(g,R),R}export{Ct as CARD_ROW_FACTS,ct as IN_CARD_TEMPLATE,O as OUTSIDE_CARD_TEMPLATE,st as TYPED_LINK_SHOWN,lt as cardRowField,Lt as cardRowFields,bt as cardRowItemField,gt as cardRowLinkField,kt as typedLinkField};
@@ -5,8 +5,8 @@ import { type KnownVideoFrame, type LoadingShows } from "../../../format/lib/her
5
5
  import { readHidable, hidableText, type HidableValue } from "efficient-easel/draw";
6
6
  import { FOLD_FIELD_MARKER, LINK_FIELD_MARKER, MEDIA_FIELD_MARKER, SCAFFOLD_FIELD_MARKER, TEXT_FIELD_MARKER, foldMetaOf, textFieldIdentifier, type EdgeCell, type FoldFieldMeta, type TextFieldMeta, type TextListRendering } from "efficient-easel/draw";
7
7
  import { type ShowWhenRule } from "../../../render/lib/document/show-when.js";
8
- import { type SettingsBorderValue } from "efficient-easel/panel";
9
- import { type AlignmentPoint, FOCAL_DEFAULT } from "efficient-shell/ui";
8
+ import { CARD_IMAGE_RADIUS_ROW } from "../../../format/lib/content/card-image-shape.js";
9
+ import { type AlignmentPoint, FOCAL_DEFAULT, type UnitChoice as ShellUnitChoice } from "efficient-shell/ui";
10
10
  import { type ColourChoice } from "./ColourControl.js";
11
11
  import type { GeocodeState } from "../../../format/lib/content/contact.js";
12
12
  import { SECTION_PIN_SCREENS_KEY } from "../../../format/lib/content/section-sticky.js";
@@ -132,9 +132,6 @@ export declare function PanelBand({ title, children }: {
132
132
  title: string;
133
133
  children: ReactNode;
134
134
  }): import("react").JSX.Element;
135
- export declare function GroupLabel({ label }: {
136
- label: string;
137
- }): import("react").JSX.Element;
138
135
  export declare function Swatches({ swatches, current, onPick, names, }: {
139
136
  swatches: readonly string[];
140
137
  current: string;
@@ -145,7 +142,7 @@ export declare function backgroundField(label: string, builtIn: SectionBackgroun
145
142
  export declare function sectionBandChoices(stored: SectionBackground, builtIn: SectionBackground, colors: ReturnType<typeof normalizeThemeColors>, n: number, band: SectionBandColours, onChange: (next: SectionBackground) => void): ColourChoice[];
146
143
  export declare function cardImageBackgroundField(label: string, builtIn: string): CustomField<unknown>;
147
144
  export declare function sectionThemeFields(readValue?: (v: unknown) => unknown, followLabel?: string): Record<string, CustomField<unknown>>;
148
- export declare function Slider({ min, max, step, value, onChange, suffix, readout, notch, ariaLabel, disabled, placeholder, placeholderWord, onClear, }: {
145
+ export declare function Slider({ min, max, step, value, onChange, suffix, readout, notch, ariaLabel, disabled, placeholder, placeholderWord, onClear, units, }: {
149
146
  min: number;
150
147
  max: number;
151
148
  step: number;
@@ -159,6 +156,7 @@ export declare function Slider({ min, max, step, value, onChange, suffix, readou
159
156
  placeholder?: number;
160
157
  placeholderWord?: string;
161
158
  onClear?: () => void;
159
+ units?: ShellUnitChoice;
162
160
  }): import("react").JSX.Element;
163
161
  export declare function pxField(label: string, opts: {
164
162
  min: number;
@@ -192,11 +190,9 @@ export declare function useSelectedPatch(): (patch: FieldsPatch) => void;
192
190
  export declare function cornerSidesField(): CustomField<string[] | null>;
193
191
  export declare function sectionCornersField(): CustomField<number | null>;
194
192
  export declare function sectionShapeFields(): Record<string, unknown>;
195
- export declare function sectionBorderField(tier: "desktop" | "tablet" | "mobile"): CustomField<SettingsBorderValue | undefined>;
196
193
  type PanelView = "desktop" | "tablet" | "phone";
197
194
  export declare function buttonWordsEntryField(partKey: string): CustomField<undefined>;
198
195
  export declare function cardCornersField(): CustomField<number | null>;
199
- export declare function templateField<V>(inner: CustomField<V>): CustomField<V>;
200
196
  export declare function cardShapeFields(): Record<string, unknown>;
201
197
  export declare function boxShareField(): CustomField<unknown>;
202
198
  export declare function boxBlockSpacingField(): SelectField;
@@ -263,10 +259,16 @@ export declare function heightFollowedBy(view: PanelView, props: Record<string,
263
259
  value: number;
264
260
  unit: SectionHeightUnit;
265
261
  } | null;
262
+ export declare function heightLayersAt(view: PanelView, props: Record<string, unknown>, own: unknown): {
263
+ mode: SectionHeightMode;
264
+ number: boolean;
265
+ unit: boolean;
266
+ };
266
267
  export declare function followedHeightPatch(view: PanelView, props: Record<string, unknown>, base: "sectionHeightValue" | "sectionHeightUnit", next: unknown): Record<string, unknown> | null;
267
268
  export declare function stickFields(opts?: {
268
269
  intro?: boolean;
269
270
  screens?: boolean;
271
+ above?: boolean;
270
272
  }): Record<string, CustomField<undefined> | CustomField<boolean> | CustomField<number>>;
271
273
  type StickNumberKey = "stickTopDistance" | typeof SECTION_PIN_SCREENS_KEY;
272
274
  export declare function followedStickPatch(view: PanelView, props: Record<string, unknown>, next: unknown, base?: StickNumberKey, intro?: boolean): Record<string, unknown> | null;
@@ -275,7 +277,6 @@ export declare function dateTime(label: string, icon?: ReactNode, hint?: string)
275
277
  export declare function date(label: string, icon?: ReactNode, hint?: string): CustomField<string>;
276
278
  export declare function toggle(label: string, fallback: boolean, icon?: ReactNode, hint?: string): CustomField<boolean>;
277
279
  export declare function pageBackgroundField(): CustomField<string>;
278
- export declare function checkbox(label: string, fallback: boolean): CustomField<boolean>;
279
280
  export declare function colorInput(label: string, fallback: string, icon?: ReactElement): CustomField<string>;
280
281
  export declare function ThemeFillRow({ label, icon, id, value, shown, onChange, }: {
281
282
  label: string;
@@ -394,6 +395,7 @@ export declare function DisplayRow({ parts, changed, shown, onPress, onReset, de
394
395
  detail?: string;
395
396
  disabledReason?: string;
396
397
  }): import("react").JSX.Element;
397
- export declare function cardImageField(): CustomField<number | null>;
398
+ export declare function cardImageField(row?: typeof CARD_IMAGE_RADIUS_ROW): CustomField<number | null>;
399
+ export declare function cardImageFields(): Record<string, CustomField<unknown>>;
398
400
  export declare function imageCornersField(): CustomField<number | null>;
399
401
  export declare function galleryLayoutField(): CustomField<string>;