efficient-web-builder 47.2.0 → 48.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/editor/components/HeroPartPanel.js +1 -1
  3. package/dist/editor/components/HoverEffectField.d.ts +1 -0
  4. package/dist/editor/components/HoverEffectField.js +1 -1
  5. package/dist/editor/components/MediaUploadField.d.ts +9 -0
  6. package/dist/editor/components/MediaUploadField.js +1 -1
  7. package/dist/editor/components/PartSettingsPanel.d.ts +2 -1
  8. package/dist/editor/components/PartSettingsPanel.js +1 -1
  9. package/dist/editor/components/PreviewPartAnchors.d.ts +3 -1
  10. package/dist/editor/components/PreviewPartAnchors.js +1 -1
  11. package/dist/editor/components/SameInEveryViewNote.d.ts +1 -0
  12. package/dist/editor/components/SameInEveryViewNote.js +1 -0
  13. package/dist/editor/components/SaveAsTemplateButton.d.ts +5 -0
  14. package/dist/editor/components/SaveAsTemplateButton.js +1 -0
  15. package/dist/editor/components/SectionIcon.js +1 -1
  16. package/dist/editor/components/SiteFields.d.ts +4 -1
  17. package/dist/editor/components/SiteFields.js +1 -1
  18. package/dist/editor/components/SiteRestoreNotice.js +1 -1
  19. package/dist/editor/components/SiteTextStylesField.js +1 -1
  20. package/dist/editor/components/TickerSettingsPanel.js +1 -1
  21. package/dist/editor/components/VersionHistoryDrawer.js +1 -1
  22. package/dist/editor/components/WebsitePreviewButton.d.ts +2 -1
  23. package/dist/editor/components/WebsitePreviewButton.js +1 -1
  24. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  25. package/dist/editor/components/usePartMotion.d.ts +10 -0
  26. package/dist/editor/components/usePartMotion.js +1 -0
  27. package/dist/editor/components/useSocialSettings.d.ts +2 -2
  28. package/dist/editor/lib/animation/AnimationDurationRow.js +1 -1
  29. package/dist/editor/lib/animation/fields.d.ts +1 -1
  30. package/dist/editor/lib/animation/fields.js +1 -1
  31. package/dist/editor/lib/animation/hover-fields.d.ts +1 -0
  32. package/dist/editor/lib/animation/hover-fields.js +1 -0
  33. package/dist/editor/lib/document/add-target.d.ts +2 -1
  34. package/dist/editor/lib/document/add-target.js +1 -1
  35. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  36. package/dist/editor/lib/document/blocks/general/Contents/fields.d.ts +2 -0
  37. package/dist/editor/lib/document/blocks/general/Contents/fields.js +1 -0
  38. package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
  39. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  40. package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
  41. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  42. package/dist/editor/lib/document/blocks/general/index.js +1 -1
  43. package/dist/editor/lib/document/build-config.js +1 -1
  44. package/dist/editor/lib/document/canvas-typing.d.ts +1 -0
  45. package/dist/editor/lib/document/canvas-typing.js +1 -1
  46. package/dist/editor/lib/document/card-display-chips.js +1 -1
  47. package/dist/editor/lib/document/controls.d.ts +7 -3
  48. package/dist/editor/lib/document/controls.js +1 -1
  49. package/dist/editor/lib/document/field-groups.js +1 -1
  50. package/dist/editor/lib/document/geocode-resolve.d.ts +1 -0
  51. package/dist/editor/lib/document/geocode-resolve.js +1 -1
  52. package/dist/editor/lib/document/overrides.js +1 -1
  53. package/dist/editor/lib/document/page-root.js +2 -2
  54. package/dist/editor/lib/document/part-motion-canvas.d.ts +9 -0
  55. package/dist/editor/lib/document/part-motion-canvas.js +1 -0
  56. package/dist/format/lib/animation/hover.d.ts +5 -0
  57. package/dist/format/lib/animation/hover.js +1 -0
  58. package/dist/format/lib/content/anchor-name.d.ts +2 -0
  59. package/dist/format/lib/content/anchor-name.js +1 -0
  60. package/dist/format/lib/content/box-layout.d.ts +8 -0
  61. package/dist/format/lib/content/box-layout.js +1 -1
  62. package/dist/format/lib/content/box-link.js +1 -1
  63. package/dist/format/lib/content/box-separator.js +1 -1
  64. package/dist/format/lib/content/card-template.d.ts +8 -0
  65. package/dist/format/lib/content/card-template.js +1 -1
  66. package/dist/format/lib/content/container-gap.d.ts +2 -1
  67. package/dist/format/lib/content/container-gap.js +1 -1
  68. package/dist/format/lib/content/list-number.d.ts +1 -0
  69. package/dist/format/lib/content/list-number.js +1 -0
  70. package/dist/format/lib/content/section-min-height.d.ts +3 -2
  71. package/dist/format/lib/content/section-min-height.js +1 -1
  72. package/dist/format/lib/content/section-sticky.js +1 -1
  73. package/dist/format/lib/content/sticky-aside.d.ts +2 -0
  74. package/dist/format/lib/content/sticky-aside.js +1 -0
  75. package/dist/format/lib/document/blocks/general/Contents/meta.d.ts +5 -0
  76. package/dist/format/lib/document/blocks/general/Contents/meta.js +1 -0
  77. package/dist/format/lib/document/blocks/general/metas.d.ts +1 -0
  78. package/dist/format/lib/document/blocks/general/metas.js +1 -1
  79. package/dist/format/lib/document/blocks/general/text-part-shapes.json +10 -0
  80. package/dist/format/lib/document/container-blocks.js +1 -1
  81. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  82. package/dist/format/lib/document/easel-row-words.js +1 -1
  83. package/dist/format/lib/document/general-order.d.ts +1 -1
  84. package/dist/format/lib/document/general-order.js +1 -1
  85. package/dist/format/lib/document/panel-tabs.d.ts +8 -0
  86. package/dist/format/lib/document/panel-tabs.js +1 -0
  87. package/dist/format/lib/document/part-records.d.ts +6 -0
  88. package/dist/format/lib/document/part-records.js +1 -0
  89. package/dist/format/lib/document/passes/registry-context.d.ts +1 -1
  90. package/dist/format/lib/document/passes/registry-context.js +1 -1
  91. package/dist/format/lib/document/passes/types.d.ts +2 -0
  92. package/dist/format/lib/document/section-groups.d.ts +1 -1
  93. package/dist/format/lib/editor-words-catalogue.d.ts +6 -0
  94. package/dist/format/lib/editor-words-catalogue.js +3 -3
  95. package/dist/format/lib/hero-ticker.d.ts +1 -0
  96. package/dist/format/lib/hero-ticker.js +1 -1
  97. package/dist/format/lib/links/page-link-rules.js +1 -1
  98. package/dist/format/lib/sections/contents-text-regions.d.ts +3 -0
  99. package/dist/format/lib/sections/contents-text-regions.js +1 -0
  100. package/dist/format/lib/sections/section-text-regions.js +1 -1
  101. package/dist/format/lib/sections/strip-shape.js +1 -1
  102. package/dist/render/components/CardRowContext.d.ts +3 -1
  103. package/dist/render/components/CardRowContext.js +1 -1
  104. package/dist/render/components/ContentsList.d.ts +14 -0
  105. package/dist/render/components/ContentsList.js +1 -0
  106. package/dist/render/components/DocBody.d.ts +18 -0
  107. package/dist/render/components/DocBody.js +5 -5
  108. package/dist/render/components/FAQ.js +1 -1
  109. package/dist/render/components/Flex.d.ts +3 -1
  110. package/dist/render/components/Flex.js +1 -1
  111. package/dist/render/components/Grid.d.ts +2 -1
  112. package/dist/render/components/Grid.js +1 -1
  113. package/dist/render/components/HeroGroup.d.ts +2 -1
  114. package/dist/render/components/HeroGroup.js +1 -1
  115. package/dist/render/components/HeroSection.d.ts +2 -1
  116. package/dist/render/components/HeroSection.js +1 -1
  117. package/dist/render/components/HeroSingle.d.ts +2 -1
  118. package/dist/render/components/HeroSingle.js +1 -1
  119. package/dist/render/components/PageContentsContext.d.ts +14 -0
  120. package/dist/render/components/PageContentsContext.js +1 -0
  121. package/dist/render/components/PartStyledKind.js +1 -1
  122. package/dist/render/components/PartStyledText.js +1 -1
  123. package/dist/render/components/PublishedPartStylesContext.d.ts +4 -1
  124. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  125. package/dist/render/components/Reel.js +1 -1
  126. package/dist/render/components/SectionAnimation.d.ts +10 -3
  127. package/dist/render/components/SectionAnimation.js +1 -1
  128. package/dist/render/components/Text.d.ts +2 -1
  129. package/dist/render/components/Text.js +1 -1
  130. package/dist/render/components/Timeline.js +1 -1
  131. package/dist/render/components/goldPhrases.d.ts +1 -1
  132. package/dist/render/components/goldPhrases.js +2 -2
  133. package/dist/render/lib/animation/entrance.d.ts +1 -0
  134. package/dist/render/lib/animation/entrance.js +1 -1
  135. package/dist/render/lib/animation/part-motion.d.ts +25 -0
  136. package/dist/render/lib/animation/part-motion.js +2 -0
  137. package/dist/render/lib/content/button-look.js +1 -1
  138. package/dist/render/lib/content/page-contents.d.ts +17 -0
  139. package/dist/render/lib/content/page-contents.js +1 -0
  140. package/dist/render/lib/document/blocks/general/Contents/render.d.ts +2 -0
  141. package/dist/render/lib/document/blocks/general/Contents/render.js +1 -0
  142. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  143. package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
  144. package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
  145. package/dist/render/lib/document/blocks/general/HeroGroup/render.js +1 -1
  146. package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
  147. package/dist/render/lib/document/blocks/general/Text/render.js +1 -1
  148. package/dist/render/lib/document/blocks/general/renders.d.ts +1 -0
  149. package/dist/render/lib/document/blocks/general/renders.js +1 -1
  150. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -0
  151. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  152. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  153. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.d.ts +2 -0
  154. package/dist/render/lib/document/blocks/general/section-to-box-rows-docbody.js +2 -0
  155. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  156. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.d.ts +2 -0
  157. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -0
  158. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  159. package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
  160. package/dist/render/lib/document/page-render.js +1 -1
  161. package/dist/render/lib/document/part-styles.d.ts +10 -1
  162. package/dist/render/lib/document/part-styles.js +2 -2
  163. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  164. package/dist/render/lib/document/passes/section-anchor.d.ts +1 -0
  165. package/dist/render/lib/document/passes/section-anchor.js +1 -1
  166. package/dist/render/lib/document/passes/section-padding.js +1 -1
  167. package/dist/render/lib/sections/section-to-box.d.ts +1 -0
  168. package/dist/render/lib/sections/section-to-box.js +1 -1
  169. package/dist/render/lib/text-styles/site-text-styles.d.ts +16 -4
  170. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  171. package/package.json +3 -3
  172. package/dist/editor/lib/document/selected-host.d.ts +0 -2
  173. package/dist/editor/lib/document/selected-host.js +0 -1
@@ -32,6 +32,7 @@ export declare const GAP_ZONE_CLASS = "sf-gap-zone";
32
32
  export declare const GAP_LENGTH_VAR = "--sf-gap-len";
33
33
  export declare function hasOwnContainerGap(container: GapContainer, value: unknown): boolean;
34
34
  export declare const GAP_PHONE_LENGTH_VAR = "--sf-gap-len-phone";
35
+ export declare const GAP_TABLET_LENGTH_VAR = "--sf-gap-len-tablet";
35
36
  export declare const CONTAINER_GAP_PHONE: {
36
37
  readonly min: 0;
37
38
  readonly max: 64;
@@ -41,7 +42,7 @@ export declare function hasOwnPhoneGap(value: unknown): value is number;
41
42
  export declare function halfDesktopGap(px: number): number;
42
43
  export declare function followsSitePhoneGap(container: GapContainer, desktop: unknown, sitePhone: unknown): sitePhone is number;
43
44
  export declare function resolvePhoneContainerGap(container: GapContainer, phone: unknown, desktop: unknown, siteGap?: number | null, sitePhone?: number | null): number;
44
- export declare function containerGapProps(container: GapContainer, value: unknown, axis: GapAxis, phone?: unknown): {
45
+ export declare function containerGapProps(container: GapContainer, value: unknown, axis: GapAxis, phone?: unknown, tablet?: unknown): {
45
46
  className: string;
46
47
  style: CSSProperties;
47
48
  };
@@ -1 +1 @@
1
- const k="sf.gapContainer",r={min:-32,max:64,step:2},_={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},f={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},N=new Set(["Events","GalleryB"]);function u(n,t,o){if(typeof t=="number"&&Number.isFinite(t)&&t>=r.min)return t;if(typeof t=="string"){const e=_[n]?.[t];if(typeof e=="number")return e}return typeof o=="number"&&Number.isFinite(o)?o:f[n]}const g="sf-gap-overlap",O="--sf-gap-overlap",x="--sf-block-gap",b="--sf-block-gap-rem",i={min:0,max:r.max,step:r.step};function a(n){if(typeof n!="number"||!Number.isFinite(n))return null;const t=Math.min(Math.max(Math.round(n),i.min),i.max);return t-t%i.step}function y(n){const t=a(n);return t===null?{}:{[x]:`${t}px`,[b]:`${t/16}rem`}}const C="--sf-block-gap-phone",R="--sf-block-gap-phone-rem",L="--sf-block-gap-on-phone",S="max-[720px]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function B(n){const t=a(n);return t===null?{}:{[C]:`${t}px`,[R]:`${t/16}rem`}}function V(n){return a(n)===null?"":S}const m="sf-gap-zone",A="--sf-gap-len";function G(n,t){return typeof t=="number"&&Number.isFinite(t)&&t>=r.min?!0:typeof t=="string"&&typeof _[n]?.[t]=="number"}const P="--sf-gap-len-phone",h={min:0,max:r.max,step:r.step};function c(n){return typeof n=="number"&&Number.isFinite(n)&&n>=h.min}function I(n){return n/2}function T(n,t,o){return c(o)&&!G(n,t)}function d(n,t,o,e,p){return c(t)?t:T(n,o,p)?p:I(u(n,o,e))}const $={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function F(n,t,o,e){const p=c(e)?{[P]:`${e}px`}:{};if(!G(n,t)){const l=`${f[n]}px`,E=N.has(n)?`var(--sf-card-gap, ${l})`:l;return{className:` ${m}`,style:{[A]:`var(${x}, ${E})`,[P]:`var(${L})`,...p}}}const s=u(n,t);return s>=0?{className:` ${m}`,style:{[A]:`${s}px`,...p}}:{className:` ${g} ${$[o]}`,style:{gap:"0px",[O]:`${-s/2}px`}}}export{N as CARD_GRID_CONTAINERS,r as CONTAINER_GAP,f as CONTAINER_GAP_BUILT_IN,_ as CONTAINER_GAP_LEGACY,h as CONTAINER_GAP_PHONE,k as GAP_FIELD_CONTAINER,A as GAP_LENGTH_VAR,g as GAP_OVERLAP_CLASS,O as GAP_OVERLAP_VAR,P as GAP_PHONE_LENGTH_VAR,m as GAP_ZONE_CLASS,i as SITE_BLOCK_GAP,L as SITE_BLOCK_GAP_ON_PHONE_VAR,S as SITE_BLOCK_GAP_PHONE_CLASS,R as SITE_BLOCK_GAP_PHONE_REM_VAR,C as SITE_BLOCK_GAP_PHONE_VAR,b as SITE_BLOCK_GAP_REM_VAR,x as SITE_BLOCK_GAP_VAR,F as containerGapProps,T as followsSitePhoneGap,I as halfDesktopGap,G as hasOwnContainerGap,c as hasOwnPhoneGap,a as normalizeSiteBlockGap,u as resolveContainerGap,d as resolvePhoneContainerGap,V as siteBlockGapPhoneClass,B as siteBlockGapPhoneTokens,y as siteBlockGapTokens};
1
+ const y="sf.gapContainer",r={min:-32,max:64,step:2},f={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},u={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},g=new Set(["Events","GalleryB"]);function x(t,n,o){if(typeof n=="number"&&Number.isFinite(n)&&n>=r.min)return n;if(typeof n=="string"){const e=f[t]?.[n];if(typeof e=="number")return e}return typeof o=="number"&&Number.isFinite(o)?o:u[t]}const O="sf-gap-overlap",b="--sf-gap-overlap",A="--sf-block-gap",C="--sf-block-gap-rem",l={min:0,max:r.max,step:r.step};function _(t){if(typeof t!="number"||!Number.isFinite(t))return null;const n=Math.min(Math.max(Math.round(t),l.min),l.max);return n-n%l.step}function V(t){const n=_(t);return n===null?{}:{[A]:`${n}px`,[C]:`${n/16}rem`}}const L="--sf-block-gap-phone",R="--sf-block-gap-phone-rem",T="--sf-block-gap-on-phone",S="max-[720px]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function H(t){const n=_(t);return n===null?{}:{[L]:`${n}px`,[R]:`${n/16}rem`}}function d(t){return _(t)===null?"":S}const G="sf-gap-zone",m="--sf-gap-len";function E(t,n){return typeof n=="number"&&Number.isFinite(n)&&n>=r.min?!0:typeof n=="string"&&typeof f[t]?.[n]=="number"}const P="--sf-gap-len-phone",I="--sf-gap-len-tablet",h={min:0,max:r.max,step:r.step};function s(t){return typeof t=="number"&&Number.isFinite(t)&&t>=h.min}function $(t){return t/2}function B(t,n,o){return s(o)&&!E(t,n)}function F(t,n,o,e,p){return s(n)?n:B(t,o,p)?p:$(x(t,o,e))}const k={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function K(t,n,o,e,p){const a={...s(e)?{[P]:`${e}px`}:null,...s(p)?{[I]:`${p}px`}:null};if(!E(t,n)){const c=`${u[t]}px`,N=g.has(t)?`var(--sf-card-gap, ${c})`:c;return{className:` ${G}`,style:{[m]:`var(${A}, ${N})`,[P]:`var(${T})`,...a}}}const i=x(t,n);return i>=0?{className:` ${G}`,style:{[m]:`${i}px`,...a}}:{className:` ${O} ${k[o]}`,style:{gap:"0px",[b]:`${-i/2}px`}}}export{g as CARD_GRID_CONTAINERS,r as CONTAINER_GAP,u as CONTAINER_GAP_BUILT_IN,f as CONTAINER_GAP_LEGACY,h as CONTAINER_GAP_PHONE,y as GAP_FIELD_CONTAINER,m as GAP_LENGTH_VAR,O as GAP_OVERLAP_CLASS,b as GAP_OVERLAP_VAR,P as GAP_PHONE_LENGTH_VAR,I as GAP_TABLET_LENGTH_VAR,G as GAP_ZONE_CLASS,l as SITE_BLOCK_GAP,T as SITE_BLOCK_GAP_ON_PHONE_VAR,S as SITE_BLOCK_GAP_PHONE_CLASS,R as SITE_BLOCK_GAP_PHONE_REM_VAR,L as SITE_BLOCK_GAP_PHONE_VAR,C as SITE_BLOCK_GAP_REM_VAR,A as SITE_BLOCK_GAP_VAR,K as containerGapProps,B as followsSitePhoneGap,$ as halfDesktopGap,E as hasOwnContainerGap,s as hasOwnPhoneGap,_ as normalizeSiteBlockGap,x as resolveContainerGap,F as resolvePhoneContainerGap,d as siteBlockGapPhoneClass,H as siteBlockGapPhoneTokens,V as siteBlockGapTokens};
@@ -0,0 +1 @@
1
+ export declare const listNumber: (index: number) => string;
@@ -0,0 +1 @@
1
+ const r=t=>String(t+1).padStart(2,"0");export{r as listNumber};
@@ -19,6 +19,7 @@ export declare const SECTION_SCREEN_PCT: {
19
19
  readonly fallback: 100;
20
20
  };
21
21
  export declare const SECTION_MIN_HEIGHT_CLASS = "sf-section-minh";
22
+ export declare const SECTION_GRID_COLUMN_CLASS = "grid-cols-[minmax(0,1fr)]";
22
23
  export declare const SECTION_MIN_HEIGHT_VARS: {
23
24
  readonly base: "--sf-section-minh";
24
25
  readonly small: "--sf-section-minh-s";
@@ -58,7 +59,7 @@ export declare function sectionMinHeightAttrs(props: SectionMinHeightProps & Sec
58
59
  style: CSSProperties;
59
60
  } | null;
60
61
  export declare function sectionFillsHeight(props: Record<string, unknown>): boolean;
61
- export declare const SECTION_FILL_PASS_CLASS = "grid";
62
+ export declare const SECTION_FILL_PASS_CLASS = "grid grid-cols-[minmax(0,1fr)]";
62
63
  export declare const SECTION_FILL_CLASS = "h-full";
63
- export declare const SECTION_FILL_PASS_PHONE_CLASS = "max-[720px]:grid";
64
+ export declare const SECTION_FILL_PASS_PHONE_CLASS = "max-[720px]:grid grid-cols-[minmax(0,1fr)]";
64
65
  export declare function sectionFillPassClass(props: Record<string, unknown>): string;
@@ -1 +1 @@
1
- const _=["auto","fixed","screen"],I=["px","%"],m="svh",M="vh",f="var(--sf-header-h, 88px)",E={min:40,max:2e3,step:10,fallback:600},g={min:10,max:200,step:5,fallback:100},S="sf-section-minh",r={base:"--sf-section-minh",small:"--sf-section-minh-s"},l=e=>typeof e=="string"&&_.includes(e),x=e=>typeof e=="string"&&I.includes(e);function h(e){const t=l(e.sectionHeightMode)?e.sectionHeightMode:"auto",n=t==="screen"?"%":x(e.sectionHeightUnit)?e.sectionHeightUnit:"px",o=t==="screen"?g.fallback:E.fallback,i=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:o;return{mode:t,value:i,unit:n}}function H(e){const{mode:t,value:n,unit:o}=h(e);if(t==="auto")return;if(t==="fixed"&&o==="px")return[`${n}px`,null];const i=n/100,s=c=>t==="screen"?`(100${c} - ${f})`:`100${c}`;return[`calc(${s("vh")} * ${i})`,`calc(${s("svh")} * ${i})`]}function a(e){const t=H(e);if(!t)return;const[n,o]=t;return{display:"grid",[r.base]:n,...o?{[r.small]:o}:{}}}const L=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),p="Height",T="sf-section-minh-phone",u={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function N(e){return l(e.sectionHeightModePhone)}function A(e){return h({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function d(e){const t=a(e),n=N(e)?H({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})??(t?["auto",null]:void 0):void 0;if(!t&&!n)return null;const o=[S],i={...t??{}};return n&&(o.push(T),i[u.base]=n[0],n[1]&&(i[u.small]=n[1])),{className:o.join(" "),style:i}}function C(e){return d(e)!==null}const O="grid",U="h-full",P="max-[720px]:grid";function V(e){return C(e)?a(e)?O:P:""}export{f as HEADER_HEIGHT_VAR,U as SECTION_FILL_CLASS,O as SECTION_FILL_PASS_CLASS,P as SECTION_FILL_PASS_PHONE_CLASS,_ as SECTION_HEIGHT_MODES,I as SECTION_HEIGHT_UNITS,E as SECTION_MIN_HEIGHT,S as SECTION_MIN_HEIGHT_CLASS,L as SECTION_MIN_HEIGHT_EXCLUDED,p as SECTION_MIN_HEIGHT_GROUP_LABEL,T as SECTION_MIN_HEIGHT_PHONE_CLASS,u as SECTION_MIN_HEIGHT_PHONE_VARS,r as SECTION_MIN_HEIGHT_VARS,g as SECTION_SCREEN_PCT,m as VIEWPORT_UNIT,M as VIEWPORT_UNIT_FALLBACK,N as hasPhoneHeight,A as resolvePhoneHeight,h as resolveSectionMinHeight,V as sectionFillPassClass,C as sectionFillsHeight,d as sectionMinHeightAttrs,H as sectionMinHeightLengths,a as sectionMinHeightStyle};
1
+ const I=["auto","fixed","screen"],f=["px","%"],M="svh",P="vh",E="var(--sf-header-h, 88px)",S={min:40,max:2e3,step:10,fallback:600},g={min:10,max:200,step:5,fallback:100},x="sf-section-minh",s="grid-cols-[minmax(0,1fr)]",l={base:"--sf-section-minh",small:"--sf-section-minh-s"},h=e=>typeof e=="string"&&I.includes(e),T=e=>typeof e=="string"&&f.includes(e);function H(e){const t=h(e.sectionHeightMode)?e.sectionHeightMode:"auto",n=t==="screen"?"%":T(e.sectionHeightUnit)?e.sectionHeightUnit:"px",o=t==="screen"?g.fallback:S.fallback,i=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:o;return{mode:t,value:i,unit:n}}function a(e){const{mode:t,value:n,unit:o}=H(e);if(t==="auto")return;if(t==="fixed"&&o==="px")return[`${n}px`,null];const i=n/100,c=r=>t==="screen"?`(100${r} - ${E})`:`100${r}`;return[`calc(${c("vh")} * ${i})`,`calc(${c("svh")} * ${i})`]}function _(e){const t=a(e);if(!t)return;const[n,o]=t;return{display:"grid",[l.base]:n,...o?{[l.small]:o}:{}}}const p=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),A="Height",N="sf-section-minh-phone",u={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function d(e){return h(e.sectionHeightModePhone)}function U(e){return H({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function C(e){const t=_(e),n=d(e)?a({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})??(t?["auto",null]:void 0):void 0;if(!t&&!n)return null;const o=[x,s],i={...t??{}};return n&&(o.push(N),i[u.base]=n[0],n[1]&&(i[u.small]=n[1])),{className:o.join(" "),style:i}}function O(e){return C(e)!==null}const m=`grid ${s}`,V="h-full",L=`max-[720px]:grid ${s}`;function b(e){return O(e)?_(e)?m:L:""}export{E as HEADER_HEIGHT_VAR,V as SECTION_FILL_CLASS,m as SECTION_FILL_PASS_CLASS,L as SECTION_FILL_PASS_PHONE_CLASS,s as SECTION_GRID_COLUMN_CLASS,I as SECTION_HEIGHT_MODES,f as SECTION_HEIGHT_UNITS,S as SECTION_MIN_HEIGHT,x as SECTION_MIN_HEIGHT_CLASS,p as SECTION_MIN_HEIGHT_EXCLUDED,A as SECTION_MIN_HEIGHT_GROUP_LABEL,N as SECTION_MIN_HEIGHT_PHONE_CLASS,u as SECTION_MIN_HEIGHT_PHONE_VARS,l as SECTION_MIN_HEIGHT_VARS,g as SECTION_SCREEN_PCT,M as VIEWPORT_UNIT,P as VIEWPORT_UNIT_FALLBACK,d as hasPhoneHeight,U as resolvePhoneHeight,H as resolveSectionMinHeight,b as sectionFillPassClass,O as sectionFillsHeight,C as sectionMinHeightAttrs,a as sectionMinHeightLengths,_ as sectionMinHeightStyle};
@@ -1 +1 @@
1
- import{finiteNumber as r}from"../finite-number.js";const _="Stick to top",s={min:0,max:200,step:4,fallback:0},a="sf-section-stick",u="sf-scroll-over",k="sf-section-stick-phone-on",f="sf-section-stick-phone-off",c={desktop:"--sf-stick-distance",phone:"--sf-stick-distance-phone"},x=new Set(["CategoryBar","DocTabs","IntroBleed"]);function i(o){const t=r(o)??s.fallback;return Math.min(s.max,Math.max(s.min,Math.round(t)))}function h(o){return typeof o.stickTopPhone=="boolean"}function C(o){const t=o.stickTop===!0,n=i(o.stickTopDistance),e=h(o),p=e?o.stickTopPhone===!0:t,S=e?i(o.stickTopDistancePhone):n;return{desktop:t,desktopDistance:n,phone:p,phoneDistance:S,ownPhone:e}}function I(o){const t=C(o);if(!t.desktop&&!t.phone)return null;const n=[a],e={};return t.desktop&&(e[c.desktop]=`${t.desktopDistance}px`),(t.ownPhone||t.phone!==t.desktop)&&(n.push(t.phone?k:f),t.phone&&(e[c.phone]=`${t.phoneDistance}px`)),t.desktop||n.push("sf-section-stick-desktop-off"),{className:n.join(" "),style:e}}export{u as SCROLL_OVER_CLASS,a as SECTION_STICK_CLASS,s as SECTION_STICK_DISTANCE,x as SECTION_STICK_EXCLUDED,_ as SECTION_STICK_LABEL,f as SECTION_STICK_PHONE_OFF_CLASS,k as SECTION_STICK_PHONE_ON_CLASS,c as SECTION_STICK_VARS,h as hasPhoneStick,C as resolveSectionStick,I as sectionStickAttrs};
1
+ import{finiteNumber as r}from"../finite-number.js";const _="Stick to top",s={min:0,max:200,step:4,fallback:0},a="sf-section-stick",u="sf-scroll-over",k="sf-section-stick-phone-on",f="sf-section-stick-phone-off",c={desktop:"--sf-stick-distance",phone:"--sf-stick-distance-phone"},x=new Set(["CategoryBar","DocTabs","IntroBleed","Contents"]);function i(o){const t=r(o)??s.fallback;return Math.min(s.max,Math.max(s.min,Math.round(t)))}function h(o){return typeof o.stickTopPhone=="boolean"}function C(o){const t=o.stickTop===!0,n=i(o.stickTopDistance),e=h(o),p=e?o.stickTopPhone===!0:t,S=e?i(o.stickTopDistancePhone):n;return{desktop:t,desktopDistance:n,phone:p,phoneDistance:S,ownPhone:e}}function I(o){const t=C(o);if(!t.desktop&&!t.phone)return null;const n=[a],e={};return t.desktop&&(e[c.desktop]=`${t.desktopDistance}px`),(t.ownPhone||t.phone!==t.desktop)&&(n.push(t.phone?k:f),t.phone&&(e[c.phone]=`${t.phoneDistance}px`)),t.desktop||n.push("sf-section-stick-desktop-off"),{className:n.join(" "),style:e}}export{u as SCROLL_OVER_CLASS,a as SECTION_STICK_CLASS,s as SECTION_STICK_DISTANCE,x as SECTION_STICK_EXCLUDED,_ as SECTION_STICK_LABEL,f as SECTION_STICK_PHONE_OFF_CLASS,k as SECTION_STICK_PHONE_ON_CLASS,c as SECTION_STICK_VARS,h as hasPhoneStick,C as resolveSectionStick,I as sectionStickAttrs};
@@ -0,0 +1,2 @@
1
+ export declare const STICKY_ASIDE_TOP = 120;
2
+ export declare const STICKY_ASIDE_CLASS = "sticky top-[120px]";
@@ -0,0 +1 @@
1
+ const t=120,S="sticky top-[120px]";export{S as STICKY_ASIDE_CLASS,t as STICKY_ASIDE_TOP};
@@ -0,0 +1,5 @@
1
+ import type { BlockMeta } from "../../block-types.js";
2
+ export declare const CONTENTS_PH: {
3
+ readonly title: "On this page";
4
+ };
5
+ export declare const ContentsMeta: BlockMeta;
@@ -0,0 +1 @@
1
+ const t={title:"On this page"},e={label:"Contents",defaultProps:{title:t.title,sticky:!0}};export{t as CONTENTS_PH,e as ContentsMeta};
@@ -10,6 +10,7 @@ export declare const GENERAL_METAS: {
10
10
  ContactLocations: BlockMeta;
11
11
  CustomHTML: BlockMeta;
12
12
  Divider: BlockMeta;
13
+ Contents: BlockMeta;
13
14
  DocBody: BlockMeta;
14
15
  DocMasthead: BlockMeta;
15
16
  DocMetaCards: BlockMeta;
@@ -1 +1 @@
1
- import{GENERAL_REGISTRATION_ORDER as e}from"../../general-order.js";import{BannerMeta as a}from"./Banner/meta.js";import{BreadcrumbMeta as m}from"./Breadcrumb/meta.js";import{ButtonBlockMeta as i}from"./ButtonBlock/meta.js";import{CardsMeta as p}from"./Cards/meta.js";import{CategoryBarMeta as M}from"./CategoryBar/meta.js";import{ChartMeta as f}from"./Chart/meta.js";import{ContactLocationsMeta as n}from"./ContactLocations/meta.js";import{CountdownMeta as s}from"./Countdown/meta.js";import{CustomHTMLMeta as c}from"./CustomHTML/meta.js";import{DividerMeta as d}from"./Divider/meta.js";import{DocBodyMeta as S}from"./DocBody/meta.js";import{DocMastheadMeta as l}from"./DocMasthead/meta.js";import{DocMetaCardsMeta as u}from"./DocMetaCards/meta.js";import{DocTabsMeta as T}from"./DocTabs/meta.js";import{EyebrowMeta as g}from"./Eyebrow/meta.js";import{FAQMeta as B}from"./FAQ/meta.js";import{FeaturedCoverMeta as C}from"./FeaturedCover/meta.js";import{FlexMeta as H}from"./Flex/meta.js";import{FootprintMeta as P}from"./Footprint/meta.js";import{GridMeta as L}from"./Grid/meta.js";import{HeadingMeta as y}from"./Heading/meta.js";import{HeroGroupMeta as h}from"./HeroGroup/meta.js";import{HeroMeta as k}from"./Hero/meta.js";import{HeroSingleMeta as E}from"./HeroSingle/meta.js";import{HeroSlideMeta as A}from"./HeroSlide/meta.js";import{ImageBlockMeta as D}from"./ImageBlock/meta.js";import{IntegrationsMeta as F}from"./Integrations/meta.js";import{IntroBleedMeta as R}from"./IntroBleed/meta.js";import{KeyFeaturesMeta as I}from"./KeyFeatures/meta.js";import{LocationMapMeta as x}from"./LocationMap/meta.js";import{LogoBlockMeta as G}from"./LogoBlock/meta.js";import{LogosMeta as b}from"./Logos/meta.js";import{LongReadMeta as _}from"./LongRead/meta.js";import{ManifestoMeta as v}from"./Manifesto/meta.js";import{MastheadMeta as w}from"./Masthead/meta.js";import{MockupMeta as O}from"./Mockup/meta.js";import{OrderSummaryMeta as N}from"./OrderSummary/meta.js";import{ParagraphsAMeta as K}from"./ParagraphsA/meta.js";import{PaymentBadgesMeta as Q}from"./PaymentBadges/meta.js";import{PostCardMeta as W}from"./PostCard/meta.js";import{ProcessStepsMeta as X}from"./ProcessSteps/meta.js";import{ProseMeta as j}from"./Prose/meta.js";import{SectionHeaderMeta as q}from"./SectionHeader/meta.js";import{SeriesMeta as z}from"./Series/meta.js";import{SpacerMeta as J}from"./Spacer/meta.js";import{SpecStripMeta as U}from"./SpecStrip/meta.js";import{SplitMeta as V}from"./Split/meta.js";import{StatsMeta as Y}from"./Stats/meta.js";import{StatsParagraphMeta as Z}from"./StatsParagraph/meta.js";import{TestimonialsMeta as $}from"./Testimonials/meta.js";import{TextMeta as oo}from"./Text/meta.js";import{TickerMeta as to}from"./Ticker/meta.js";import{TimelineMeta as ro}from"./Timeline/meta.js";import{TimelineTrackMeta as eo}from"./TimelineTrack/meta.js";import{TitleWithButtonsMeta as ao}from"./TitleWithButtons/meta.js";import mo from"./text-part-shapes.json";const io={Banner:a,Breadcrumb:m,ButtonBlock:i,Cards:p,CategoryBar:M,Chart:f,ContactLocations:n,CustomHTML:c,Divider:d,DocBody:S,DocMasthead:l,DocMetaCards:u,DocTabs:T,Eyebrow:g,FAQ:B,FeaturedCover:C,Flex:H,Footprint:P,Grid:L,Heading:y,Hero:k,HeroGroup:h,HeroSingle:E,HeroSlide:A,ImageBlock:D,Integrations:F,IntroBleed:R,Countdown:s,KeyFeatures:I,LocationMap:x,LogoBlock:G,Logos:b,LongRead:_,Manifesto:v,Masthead:w,Mockup:O,OrderSummary:N,ParagraphsA:K,PaymentBadges:Q,PostCard:W,ProcessSteps:X,Prose:j,SectionHeader:q,Series:z,Spacer:J,SpecStrip:U,Split:V,Stats:Y,StatsParagraph:Z,Testimonials:$,Text:oo,Ticker:to,Timeline:ro,TimelineTrack:eo,TitleWithButtons:ao},po=mo;function ct(){const t={};for(const o of e){const r=po[o];t[o]={...io[o],...r?{textParts:r}:null}}return t}export{io as GENERAL_METAS,ct as generalRenderMetas};
1
+ import{GENERAL_REGISTRATION_ORDER as e}from"../../general-order.js";import{BannerMeta as a}from"./Banner/meta.js";import{BreadcrumbMeta as m}from"./Breadcrumb/meta.js";import{ButtonBlockMeta as i}from"./ButtonBlock/meta.js";import{CardsMeta as p}from"./Cards/meta.js";import{CategoryBarMeta as M}from"./CategoryBar/meta.js";import{ChartMeta as f}from"./Chart/meta.js";import{ContactLocationsMeta as n}from"./ContactLocations/meta.js";import{CountdownMeta as s}from"./Countdown/meta.js";import{CustomHTMLMeta as c}from"./CustomHTML/meta.js";import{DividerMeta as d}from"./Divider/meta.js";import{ContentsMeta as S}from"./Contents/meta.js";import{DocBodyMeta as l}from"./DocBody/meta.js";import{DocMastheadMeta as u}from"./DocMasthead/meta.js";import{DocMetaCardsMeta as T}from"./DocMetaCards/meta.js";import{DocTabsMeta as g}from"./DocTabs/meta.js";import{EyebrowMeta as B}from"./Eyebrow/meta.js";import{FAQMeta as C}from"./FAQ/meta.js";import{FeaturedCoverMeta as H}from"./FeaturedCover/meta.js";import{FlexMeta as P}from"./Flex/meta.js";import{FootprintMeta as L}from"./Footprint/meta.js";import{GridMeta as y}from"./Grid/meta.js";import{HeadingMeta as h}from"./Heading/meta.js";import{HeroGroupMeta as k}from"./HeroGroup/meta.js";import{HeroMeta as E}from"./Hero/meta.js";import{HeroSingleMeta as A}from"./HeroSingle/meta.js";import{HeroSlideMeta as D}from"./HeroSlide/meta.js";import{ImageBlockMeta as F}from"./ImageBlock/meta.js";import{IntegrationsMeta as R}from"./Integrations/meta.js";import{IntroBleedMeta as I}from"./IntroBleed/meta.js";import{KeyFeaturesMeta as x}from"./KeyFeatures/meta.js";import{LocationMapMeta as G}from"./LocationMap/meta.js";import{LogoBlockMeta as b}from"./LogoBlock/meta.js";import{LogosMeta as _}from"./Logos/meta.js";import{LongReadMeta as v}from"./LongRead/meta.js";import{ManifestoMeta as w}from"./Manifesto/meta.js";import{MastheadMeta as O}from"./Masthead/meta.js";import{MockupMeta as N}from"./Mockup/meta.js";import{OrderSummaryMeta as K}from"./OrderSummary/meta.js";import{ParagraphsAMeta as Q}from"./ParagraphsA/meta.js";import{PaymentBadgesMeta as W}from"./PaymentBadges/meta.js";import{PostCardMeta as X}from"./PostCard/meta.js";import{ProcessStepsMeta as j}from"./ProcessSteps/meta.js";import{ProseMeta as q}from"./Prose/meta.js";import{SectionHeaderMeta as z}from"./SectionHeader/meta.js";import{SeriesMeta as J}from"./Series/meta.js";import{SpacerMeta as U}from"./Spacer/meta.js";import{SpecStripMeta as V}from"./SpecStrip/meta.js";import{SplitMeta as Y}from"./Split/meta.js";import{StatsMeta as Z}from"./Stats/meta.js";import{StatsParagraphMeta as $}from"./StatsParagraph/meta.js";import{TestimonialsMeta as oo}from"./Testimonials/meta.js";import{TextMeta as to}from"./Text/meta.js";import{TickerMeta as ro}from"./Ticker/meta.js";import{TimelineMeta as eo}from"./Timeline/meta.js";import{TimelineTrackMeta as ao}from"./TimelineTrack/meta.js";import{TitleWithButtonsMeta as mo}from"./TitleWithButtons/meta.js";import io from"./text-part-shapes.json";const po={Banner:a,Breadcrumb:m,ButtonBlock:i,Cards:p,CategoryBar:M,Chart:f,ContactLocations:n,CustomHTML:c,Divider:d,Contents:S,DocBody:l,DocMasthead:u,DocMetaCards:T,DocTabs:g,Eyebrow:B,FAQ:C,FeaturedCover:H,Flex:P,Footprint:L,Grid:y,Heading:h,Hero:E,HeroGroup:k,HeroSingle:A,HeroSlide:D,ImageBlock:F,Integrations:R,IntroBleed:I,Countdown:s,KeyFeatures:x,LocationMap:G,LogoBlock:b,Logos:_,LongRead:v,Manifesto:w,Masthead:O,Mockup:N,OrderSummary:K,ParagraphsA:Q,PaymentBadges:W,PostCard:X,ProcessSteps:j,Prose:q,SectionHeader:z,Series:J,Spacer:U,SpecStrip:V,Split:Y,Stats:Z,StatsParagraph:$,Testimonials:oo,Text:to,Ticker:ro,Timeline:eo,TimelineTrack:ao,TitleWithButtons:mo},Mo=io;function St(){const t={};for(const o of e){const r=Mo[o];t[o]={...po[o],...r?{textParts:r}:null}}return t}export{po as GENERAL_METAS,St as generalRenderMetas};
@@ -228,6 +228,16 @@
228
228
  "label": "HTML"
229
229
  }
230
230
  },
231
+ "Contents": {
232
+ "title": {
233
+ "type": "custom",
234
+ "__text": {
235
+ "control": "text",
236
+ "label": "Heading",
237
+ "placeholder": "On this page"
238
+ }
239
+ }
240
+ },
231
241
  "DocBody": {
232
242
  "tocTitle": {
233
243
  "type": "custom",
@@ -1 +1 @@
1
- import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",T="Flex",s="Text & media",y="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"}],i=[...c,{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats"},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),E=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:y})),a=[...i,...E],l=[...c,{type:"HeroGroup",label:n}],B=l.map(e=>e.type),O=1,u=l.filter(e=>e.type!=="HeroGroup");function _(e){return e<O?l:u}const b={Flex:{slot:o,choices:()=>a},Grid:{slot:o,choices:()=>a},HeroGroup:{slot:o,choices:_}};function S(e,r=0){const t=b[e];return t?{slot:t.slot,choices:t.choices(r)}:null}export{T as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,a as CONTAINER_BLOCK_CHOICES,B as HERO_GROUP_BLOCK_TYPES,O as HERO_GROUP_NEST_DEPTH,S as containerBlocksFor};
1
+ import{BOX_LABEL as n,SECTION_CATALOG as p}from"./section-catalog.js";const o="content",T="Flex",s="Text & media",y="Layout & structure",c=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"}],i=[...c,{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats"},{type:"MenuBlock",label:"Menu"},{type:"Contents",label:"Contents"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:s})),E=(p.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:y})),a=[...i,...E],l=[...c,{type:"HeroGroup",label:n}],B=l.map(e=>e.type),O=1,C=l.filter(e=>e.type!=="HeroGroup");function b(e){return e<O?l:C}const u={Flex:{slot:o,choices:()=>a},Grid:{slot:o,choices:()=>a},HeroGroup:{slot:o,choices:b}};function S(e,r=0){const t=u[e];return t?{slot:t.slot,choices:t.choices(r)}:null}export{T as BOX_TYPE,o as CONTAINER_BLOCKS_SLOT,a as CONTAINER_BLOCK_CHOICES,B as HERO_GROUP_BLOCK_TYPES,O as HERO_GROUP_NEST_DEPTH,S as containerBlocksFor};
@@ -4,4 +4,5 @@ export declare const EASEL_ROW_WORDS: {
4
4
  readonly wrap: "Wrap";
5
5
  readonly shrink: "Shrink to fit";
6
6
  readonly line: "One line";
7
+ readonly onTablet: "{value} on tablet";
7
8
  };
@@ -1 +1 @@
1
- const t={fillColor:"Fill color",textFit:"When the text does not fit",wrap:"Wrap",shrink:"Shrink to fit",line:"One line"};export{t as EASEL_ROW_WORDS};
1
+ const t={fillColor:"Fill color",textFit:"When the text does not fit",wrap:"Wrap",shrink:"Shrink to fit",line:"One line",onTablet:"{value} on tablet"};export{t as EASEL_ROW_WORDS};
@@ -1,3 +1,3 @@
1
1
  import type { Config } from "efficient-easel/blocks";
2
- export declare const GENERAL_REGISTRATION_ORDER: readonly ["Heading", "Text", "Eyebrow", "ImageBlock", "LogoBlock", "ButtonBlock", "Spacer", "Divider", "Grid", "Flex", "Breadcrumb", "Masthead", "CategoryBar", "FeaturedCover", "LongRead", "Series", "Banner", "ParagraphsA", "StatsParagraph", "Timeline", "Footprint", "TimelineTrack", "TitleWithButtons", "Stats", "Integrations", "Mockup", "Chart", "KeyFeatures", "Testimonials", "Prose", "Cards", "Logos", "Ticker", "Countdown", "ContactLocations", "LocationMap", "HeroSingle", "Hero", "HeroSlide", "HeroGroup", "PostCard", "DocMetaCards", "DocTabs", "DocMasthead", "DocBody", "FAQ", "SpecStrip", "Manifesto", "SectionHeader", "IntroBleed", "Split", "ProcessSteps", "OrderSummary", "PaymentBadges", "CustomHTML"];
2
+ export declare const GENERAL_REGISTRATION_ORDER: readonly ["Heading", "Text", "Eyebrow", "ImageBlock", "LogoBlock", "ButtonBlock", "Spacer", "Divider", "Grid", "Flex", "Breadcrumb", "Masthead", "CategoryBar", "FeaturedCover", "LongRead", "Series", "Banner", "ParagraphsA", "StatsParagraph", "Timeline", "Footprint", "TimelineTrack", "TitleWithButtons", "Stats", "Integrations", "Mockup", "Chart", "KeyFeatures", "Testimonials", "Prose", "Cards", "Logos", "Ticker", "Countdown", "ContactLocations", "LocationMap", "HeroSingle", "Hero", "HeroSlide", "HeroGroup", "PostCard", "DocMetaCards", "DocTabs", "DocMasthead", "DocBody", "Contents", "FAQ", "SpecStrip", "Manifesto", "SectionHeader", "IntroBleed", "Split", "ProcessSteps", "OrderSummary", "PaymentBadges", "CustomHTML"];
3
3
  export declare function generalCategories(): Config["categories"];
@@ -1 +1 @@
1
- import{blockSetOf as n,buildBlockCategories as s}from"./section-catalog.js";const c=["Heading","Text","Eyebrow","ImageBlock","LogoBlock","ButtonBlock","Spacer","Divider","Grid","Flex","Breadcrumb","Masthead","CategoryBar","FeaturedCover","LongRead","Series","Banner","ParagraphsA","StatsParagraph","Timeline","Footprint","TimelineTrack","TitleWithButtons","Stats","Integrations","Mockup","Chart","KeyFeatures","Testimonials","Prose","Cards","Logos","Ticker","Countdown","ContactLocations","LocationMap","HeroSingle","Hero","HeroSlide","HeroGroup","PostCard","DocMetaCards","DocTabs","DocMasthead","DocBody","FAQ","SpecStrip","Manifesto","SectionHeader","IntroBleed","Split","ProcessSteps","OrderSummary","PaymentBadges","CustomHTML"];function d(){const e={};for(const[o,t]of Object.entries(s())){const r=t.components.filter(a=>n(a)==="general");(r.length>0||o==="structure")&&(e[o]={...t,components:r})}return e}export{c as GENERAL_REGISTRATION_ORDER,d as generalCategories};
1
+ import{blockSetOf as n,buildBlockCategories as s}from"./section-catalog.js";const c=["Heading","Text","Eyebrow","ImageBlock","LogoBlock","ButtonBlock","Spacer","Divider","Grid","Flex","Breadcrumb","Masthead","CategoryBar","FeaturedCover","LongRead","Series","Banner","ParagraphsA","StatsParagraph","Timeline","Footprint","TimelineTrack","TitleWithButtons","Stats","Integrations","Mockup","Chart","KeyFeatures","Testimonials","Prose","Cards","Logos","Ticker","Countdown","ContactLocations","LocationMap","HeroSingle","Hero","HeroSlide","HeroGroup","PostCard","DocMetaCards","DocTabs","DocMasthead","DocBody","Contents","FAQ","SpecStrip","Manifesto","SectionHeader","IntroBleed","Split","ProcessSteps","OrderSummary","PaymentBadges","CustomHTML"];function d(){const e={};for(const[o,t]of Object.entries(s())){const r=t.components.filter(a=>n(a)==="general");(r.length>0||o==="structure")&&(e[o]={...t,components:r})}return e}export{c as GENERAL_REGISTRATION_ORDER,d as generalCategories};
@@ -0,0 +1,8 @@
1
+ import type { SettingsBucket } from "efficient-easel/fields";
2
+ export declare function panelTab({ allTabs, remembered, inherited, buckets, hasText, }: {
3
+ allTabs: boolean;
4
+ remembered: SettingsBucket | undefined;
5
+ inherited: SettingsBucket | undefined;
6
+ buckets: readonly SettingsBucket[];
7
+ hasText: boolean;
8
+ }): SettingsBucket;
@@ -0,0 +1 @@
1
+ function r({allTabs:i,remembered:n,inherited:u,buckets:f,hasText:l}){return n&&(i||f.includes(n))?n:u&&f.includes(u)?u:l?"Design":f[0]??"Design"}export{r as panelTab};
@@ -0,0 +1,6 @@
1
+ type Props = Readonly<Record<string, unknown>>;
2
+ export declare function plainRecord(value: unknown): Record<string, unknown> | null;
3
+ export declare function readPartRecords(props: Props | undefined, prop: string): Record<string, unknown>;
4
+ export declare function readPartRecord(props: Props | undefined, prop: string, part: string): Record<string, unknown>;
5
+ export declare function propsWithPartRecord(props: Props, prop: string, part: string, record: Record<string, unknown> | null): Record<string, unknown>;
6
+ export {};
@@ -0,0 +1 @@
1
+ function i(t){return!t||typeof t!="object"||Array.isArray(t)?null:t}function a(t,r){return i(t?.[r])??{}}function d(t,r,e){const n=a(t,r);return Object.hasOwn(n,e)?i(n[e])??{}:{}}function b(t,r,e,n){const{[e]:u,...o}=a(t,r),c=n?{...o,[e]:n}:o,{[r]:f,...s}=t;return Object.keys(c).length?{...s,[r]:c}:s}export{i as plainRecord,b as propsWithPartRecord,d as readPartRecord,a as readPartRecords};
@@ -1,2 +1,2 @@
1
1
  import type { BlockPassContext } from "./types.js";
2
- export declare function registryPassContext(registered: Iterable<string>, structure: readonly string[]): BlockPassContext;
2
+ export declare function registryPassContext(registered: Iterable<string>, structure: readonly string[], hostSections?: Iterable<string>): BlockPassContext;
@@ -1 +1 @@
1
- import{SECTION_GROUP_TYPES as c}from"../section-groups.js";import{nestableContentSections as i}from"../nestable-content-sections.js";import{ALL_SECTION_TYPES as _,RETIRED_NESTABLE_SECTIONS as N}from"../section-catalog.js";function f(e,n){const s=new Set(e),o=_.filter(t=>s.has(t)),E=o.filter(t=>t!=="Header"&&t!=="Footer"&&!c.includes(t)),S=new Set([...n,...N,...i()]),r=o.filter(t=>!S.has(t)),T=new Set(o);return{isSection:t=>T.has(t),isHostBlock:()=>!1,sectionGroupAllow:E,contentSectionKeys:r}}export{f as registryPassContext};
1
+ import{SECTION_GROUP_TYPES as c}from"../section-groups.js";import{nestableContentSections as _}from"../nestable-content-sections.js";import{ALL_SECTION_TYPES as N,RETIRED_NESTABLE_SECTIONS as O}from"../section-catalog.js";import{isCardTemplateBlock as C}from"../../content/card-template.js";function p(e,n,s=[]){const E=new Set(e),o=N.filter(t=>E.has(t)),r=o.filter(t=>t!=="Header"&&t!=="Footer"&&!c.includes(t)),S=new Set([...n,...O,..._()]),i=o.filter(t=>!S.has(t)),T=new Set([...o,...s]);return{isSection:t=>T.has(t)&&!C(t),isHostBlock:()=>!1,sectionGroupAllow:r,contentSectionKeys:i}}export{p as registryPassContext};
@@ -27,6 +27,7 @@ export type PassInspector = {
27
27
  sidesPaddingFields: (opts?: {
28
28
  keys?: Partial<Record<"top" | "right" | "bottom" | "left", string>>;
29
29
  phone?: boolean;
30
+ tablet?: boolean;
30
31
  group?: boolean;
31
32
  }) => FieldMap;
32
33
  sectionShapeFields: () => FieldMap;
@@ -57,6 +58,7 @@ export type PassInspector = {
57
58
  PartAnchors: ComponentType<{
58
59
  needles: ReturnType<typeof import("../../../../render/lib/document/text-parts.js").partNeedles>;
59
60
  styles: ReturnType<typeof import("../../../../render/lib/document/part-styles.js").readPartStyles>;
61
+ motions?: ReturnType<typeof import("../../../../render/lib/animation/part-motion.js").readPartMotions>;
60
62
  type?: string;
61
63
  children: ReactNode;
62
64
  }>;
@@ -10,7 +10,7 @@ type Node = {
10
10
  };
11
11
  export declare const sectionGroupZone: (groupId: string) => string;
12
12
  export declare function buildSectionGroup(type: SectionGroupType, id: string, sections?: Node[]): {
13
- type: "SiteFooter" | "SiteHeader";
13
+ type: "SiteHeader" | "SiteFooter";
14
14
  props: {
15
15
  id: string;
16
16
  sections: Node[];
@@ -559,6 +559,7 @@ export declare const WEB_BUILDER_WORDS: {
559
559
  readonly "Hold video": "Hold video";
560
560
  readonly Home: "Home";
561
561
  readonly "Hours, minutes and seconds to a set date and time, then one line.": "Hours, minutes and seconds to a set date and time, then one line.";
562
+ readonly Hover: "Hover";
562
563
  readonly "Hover effect": "Hover effect";
563
564
  readonly Icon: "Icon";
564
565
  readonly "Icon after text": "Icon after text";
@@ -686,6 +687,7 @@ export declare const WEB_BUILDER_WORDS: {
686
687
  readonly "Long-form document body with an 'On this page' contents list.": "Long-form document body with an 'On this page' contents list.";
687
688
  readonly Longitude: "Longitude";
688
689
  readonly Look: "Look";
690
+ readonly "Lookup busy \u2014 try again in a moment.": "Lookup busy — try again in a moment.";
689
691
  readonly Loop: "Loop";
690
692
  readonly Main: "Main";
691
693
  readonly "Main Pages": "Main Pages";
@@ -1130,6 +1132,7 @@ export declare const WEB_BUILDER_WORDS: {
1130
1132
  readonly "Theme {n} background": "Theme {n} background";
1131
1133
  readonly "Theme {n} main color": "Theme {n} main color";
1132
1134
  readonly "Theme {n} text color": "Theme {n} text color";
1135
+ readonly "These settings apply to every view.": "These settings apply to every view.";
1133
1136
  readonly "They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.": "They are saved in Version history as “Draft before restore”, so you can get them back.";
1134
1137
  readonly Thickness: "Thickness";
1135
1138
  readonly "Third item": "Third item";
@@ -1225,6 +1228,7 @@ export declare const WEB_BUILDER_WORDS: {
1225
1228
  readonly "We accept": "We accept";
1226
1229
  readonly WeChat: "WeChat";
1227
1230
  readonly "What people *say.*": "What people *say.*";
1231
+ readonly "What this does when a shopper points at it, or taps it on a phone.": "What this does when a shopper points at it, or taps it on a phone.";
1228
1232
  readonly WhatsApp: "WhatsApp";
1229
1233
  readonly "When a link lands on this Box's anchor, the Box gets an accent outline and its first block turns accent.": "When a link lands on this Box's anchor, the Box gets an accent outline and its first block turns accent.";
1230
1234
  readonly "When the text does not fit": "When the text does not fit";
@@ -1254,6 +1258,7 @@ export declare const WEB_BUILDER_WORDS: {
1254
1258
  readonly "Your first question goes here?": "Your first question goes here?";
1255
1259
  readonly "Your fourth question goes here?": "Your fourth question goes here?";
1256
1260
  readonly "Your last changes did not save, so nothing was restored. Try again.": "Your last changes did not save, so nothing was restored. Try again.";
1261
+ readonly "Your last changes did not save, so the template was not made. Try again.": "Your last changes did not save, so the template was not made. Try again.";
1257
1262
  readonly "Your live website does not change until you press Publish.": "Your live website does not change until you press Publish.";
1258
1263
  readonly "Your locations as a city gallery plus address and map cards.": "Your locations as a city gallery plus address and map cards.";
1259
1264
  readonly "Your review": "Your review";
@@ -1323,6 +1328,7 @@ export declare const WEB_BUILDER_WORDS: {
1323
1328
  readonly "{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.": "{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.";
1324
1329
  readonly "{value} from {from}": "{value} from {from}";
1325
1330
  readonly "{value} on desktop": "{value} on desktop";
1331
+ readonly "{value} on tablet": "{value} on tablet";
1326
1332
  readonly "{what} settings belong to a website.": "{what} settings belong to a website.";
1327
1333
  readonly "\u2014 Articles in total": "— Articles in total";
1328
1334
  readonly "\u2014 Label": "— Label";