efficient-web-builder 47.2.0 → 48.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 (114) hide show
  1. package/CHANGELOG.md +33 -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/SiteFields.d.ts +4 -1
  16. package/dist/editor/components/SiteFields.js +1 -1
  17. package/dist/editor/components/SiteRestoreNotice.js +1 -1
  18. package/dist/editor/components/SiteTextStylesField.js +1 -1
  19. package/dist/editor/components/TickerSettingsPanel.js +1 -1
  20. package/dist/editor/components/VersionHistoryDrawer.js +1 -1
  21. package/dist/editor/components/WebsitePreviewButton.d.ts +2 -1
  22. package/dist/editor/components/WebsitePreviewButton.js +1 -1
  23. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  24. package/dist/editor/components/usePartMotion.d.ts +10 -0
  25. package/dist/editor/components/usePartMotion.js +1 -0
  26. package/dist/editor/components/useSocialSettings.d.ts +2 -2
  27. package/dist/editor/lib/animation/AnimationDurationRow.js +1 -1
  28. package/dist/editor/lib/animation/fields.d.ts +1 -1
  29. package/dist/editor/lib/animation/fields.js +1 -1
  30. package/dist/editor/lib/animation/hover-fields.d.ts +1 -0
  31. package/dist/editor/lib/animation/hover-fields.js +1 -0
  32. package/dist/editor/lib/document/add-target.d.ts +2 -1
  33. package/dist/editor/lib/document/add-target.js +1 -1
  34. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  35. package/dist/editor/lib/document/blocks/general/Divider/fields.js +1 -1
  36. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  37. package/dist/editor/lib/document/blocks/general/HeroGroup/fields.js +1 -1
  38. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  39. package/dist/editor/lib/document/build-config.js +1 -1
  40. package/dist/editor/lib/document/card-display-chips.js +1 -1
  41. package/dist/editor/lib/document/controls.d.ts +7 -3
  42. package/dist/editor/lib/document/controls.js +1 -1
  43. package/dist/editor/lib/document/field-groups.js +1 -1
  44. package/dist/editor/lib/document/geocode-resolve.d.ts +1 -0
  45. package/dist/editor/lib/document/geocode-resolve.js +1 -1
  46. package/dist/editor/lib/document/part-motion-canvas.d.ts +10 -0
  47. package/dist/editor/lib/document/part-motion-canvas.js +2 -0
  48. package/dist/format/lib/animation/hover.d.ts +5 -0
  49. package/dist/format/lib/animation/hover.js +1 -0
  50. package/dist/format/lib/content/box-layout.d.ts +8 -0
  51. package/dist/format/lib/content/box-layout.js +1 -1
  52. package/dist/format/lib/content/box-separator.js +1 -1
  53. package/dist/format/lib/content/card-template.d.ts +8 -0
  54. package/dist/format/lib/content/card-template.js +1 -1
  55. package/dist/format/lib/content/container-gap.d.ts +2 -1
  56. package/dist/format/lib/content/container-gap.js +1 -1
  57. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  58. package/dist/format/lib/document/easel-row-words.js +1 -1
  59. package/dist/format/lib/document/panel-tabs.d.ts +8 -0
  60. package/dist/format/lib/document/panel-tabs.js +1 -0
  61. package/dist/format/lib/document/part-records.d.ts +6 -0
  62. package/dist/format/lib/document/part-records.js +1 -0
  63. package/dist/format/lib/document/passes/registry-context.d.ts +1 -1
  64. package/dist/format/lib/document/passes/registry-context.js +1 -1
  65. package/dist/format/lib/document/passes/types.d.ts +2 -0
  66. package/dist/format/lib/document/section-groups.d.ts +1 -1
  67. package/dist/format/lib/editor-words-catalogue.d.ts +6 -0
  68. package/dist/format/lib/editor-words-catalogue.js +3 -3
  69. package/dist/format/lib/hero-ticker.d.ts +1 -0
  70. package/dist/format/lib/hero-ticker.js +1 -1
  71. package/dist/format/lib/sections/strip-shape.js +1 -1
  72. package/dist/render/components/CardRowContext.d.ts +3 -1
  73. package/dist/render/components/CardRowContext.js +1 -1
  74. package/dist/render/components/Flex.d.ts +3 -1
  75. package/dist/render/components/Flex.js +1 -1
  76. package/dist/render/components/Grid.d.ts +2 -1
  77. package/dist/render/components/Grid.js +1 -1
  78. package/dist/render/components/HeroGroup.d.ts +2 -1
  79. package/dist/render/components/HeroGroup.js +1 -1
  80. package/dist/render/components/HeroSection.d.ts +2 -1
  81. package/dist/render/components/HeroSection.js +1 -1
  82. package/dist/render/components/HeroSingle.d.ts +2 -1
  83. package/dist/render/components/HeroSingle.js +1 -1
  84. package/dist/render/components/PartStyledKind.js +1 -1
  85. package/dist/render/components/PartStyledText.js +1 -1
  86. package/dist/render/components/PublishedPartStylesContext.d.ts +4 -1
  87. package/dist/render/components/PublishedPartStylesContext.js +1 -1
  88. package/dist/render/components/SectionAnimation.d.ts +8 -2
  89. package/dist/render/components/SectionAnimation.js +1 -1
  90. package/dist/render/lib/animation/part-motion.d.ts +21 -0
  91. package/dist/render/lib/animation/part-motion.js +1 -0
  92. package/dist/render/lib/content/button-look.js +1 -1
  93. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  94. package/dist/render/lib/document/blocks/general/Grid/render.js +1 -1
  95. package/dist/render/lib/document/blocks/general/Hero/render.js +1 -1
  96. package/dist/render/lib/document/blocks/general/HeroGroup/render.js +1 -1
  97. package/dist/render/lib/document/blocks/general/HeroSingle/render.js +1 -1
  98. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +3 -0
  99. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  100. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  101. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  102. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.d.ts +2 -0
  103. package/dist/render/lib/document/blocks/general/section-to-box-rows-pageheader.js +1 -0
  104. package/dist/render/lib/document/blocks/general/section-to-box-rows.js +1 -1
  105. package/dist/render/lib/document/hero-media-parts.d.ts +2 -2
  106. package/dist/render/lib/document/part-styles.d.ts +10 -1
  107. package/dist/render/lib/document/part-styles.js +2 -2
  108. package/dist/render/lib/document/passes/clickable-parts.js +1 -1
  109. package/dist/render/lib/document/passes/section-padding.js +1 -1
  110. package/dist/render/lib/text-styles/site-text-styles.d.ts +16 -4
  111. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  112. package/package.json +3 -3
  113. package/dist/editor/lib/document/selected-host.d.ts +0 -2
  114. package/dist/editor/lib/document/selected-host.js +0 -1
@@ -0,0 +1,10 @@
1
+ import { type SeenEntrance } from "../../../render/components/SectionAnimation.js";
2
+ import { type PartMotion } from "../../../render/lib/animation/part-motion.js";
3
+ export declare const PART_LIFT_ATTR = "data-sf-part-lift";
4
+ export type SeenPartEntrances = Map<string, SeenEntrance>;
5
+ type StampedPart = {
6
+ element: HTMLElement;
7
+ partKey: string;
8
+ };
9
+ export declare function paintPartMotion(stamped: readonly StampedPart[], motionOf: (partKey: string) => PartMotion | undefined, phone: boolean, seen: SeenPartEntrances): () => void;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import{ENTRANCE_ATTR as T,playEntrance as w}from"efficient-shell/format";import{entranceReplay as m}from"../../../render/components/SectionAnimation.js";import{entranceOf as d}from"../../../render/lib/animation/entrance.js";import{drawPartEntrance as A,firstOnPage as E,partMotionDrawn as b}from"../../../render/lib/animation/part-motion.js";import{partLiftRules as x}from"../../../render/lib/document/part-styles.js";const h="data-sf-part-lift",y="sf-part-lift-canvas";function R(n){if(n.getElementById(y))return;const o=n.createElement("style");o.id=y,o.textContent=x(`[${h}]`).join(`
2
+ `),n.head.appendChild(o)}const _="data-sf-part-host";function g(n){const o=n.ownerDocument.defaultView;let r=n;for(;r&&!r.hasAttribute(_);){const i=o?.getComputedStyle(r).display??"";if(i!=="inline"&&i!=="contents")return r;r=r.parentElement}return null}function K(n,o,r,i){const c=[],f=new Map;for(const{partKey:t}of n){if(f.has(t))continue;const s=o(t)??{},p=d(s,"desktop"),a=d(s,"phone"),e=i.get(t),u=e?m.next(e,p,a,r):null;i.set(t,u?u.seen:m.seed(p,a)),f.set(t,u?.play??!1)}const l=new Map;for(const t of n){const s=g(t.element);s&&l.set(s,[...l.get(s)??[],t])}for(const[t,s]of l){const p=e=>b(o(e.partKey)??{}),a=E(s.filter(e=>p(e).entrance));if(a){const e=o(a.partKey)??{};c.push(A(t,d(e,r?"phone":"desktop"))),f.get(a.partKey)&&t.hasAttribute(T)&&w(t)}s.some(e=>p(e).hover==="lift")&&(R(t.ownerDocument),t.setAttribute(h,""),c.push(()=>t.removeAttribute(h)))}return()=>c.forEach(t=>t())}export{h as PART_LIFT_ATTR,K as paintPartMotion};
@@ -0,0 +1,5 @@
1
+ import { type HoverEffect } from "../theme.js";
2
+ export declare const HOVER_KEY = "hover";
3
+ export type PartHover = Extract<HoverEffect, "none" | "lift">;
4
+ export declare const PART_HOVER_KINDS: readonly PartHover[];
5
+ export declare function hoverOf(record: Readonly<Record<string, unknown>>): PartHover;
@@ -0,0 +1 @@
1
+ import{HOVER_EFFECTS as n}from"../theme.js";const t="hover",r=n.filter(o=>o==="none"||o==="lift");function c(o){const e=o[t];return r.includes(e)?e:"none"}export{t as HOVER_KEY,r as PART_HOVER_KINDS,c as hoverOf};
@@ -53,6 +53,14 @@ export declare const BOX_SHARE_PHONE_DEFAULT = "equal";
53
53
  export declare const BOX_COLUMNS_MIN = 1;
54
54
  export declare const BOX_COLUMNS_MAX = 6;
55
55
  export declare function boxColumnsClass(columns: unknown): string;
56
+ export declare function boxTabletColumnsClass(columnsTablet: unknown): string;
57
+ export declare function boxRowTabletColumnsClass(box: {
58
+ direction?: unknown;
59
+ separator?: unknown;
60
+ loop?: unknown;
61
+ line?: unknown;
62
+ columnsTablet?: unknown;
63
+ }): string;
56
64
  export declare function boxRowColumnsClass(box: {
57
65
  direction?: unknown;
58
66
  separator?: unknown;
@@ -1 +1 @@
1
- import{isStripBox as x}from"./box-separator.js";const A={sectionPaddingTop:0,sectionPaddingBottom:0},i={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},p={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function N(e,t){const s=typeof e=="string"&&e in i?i[e]:"",o=typeof t=="string"&&t in p?p[t]:"";return[s,o].filter(Boolean).join(" ")}function B(e){return e===!0||e==="wrap"?"flex-wrap":""}const E="Block widths",c=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Big left",value:"bigLeft",weights:[2,1]},{label:"Big right",value:"bigRight",weights:[1,2]},{label:"Bigger left",value:"biggerLeft",weights:[3,1]},{label:"Bigger right",value:"biggerRight",weights:[1,3]},{label:"2 : 3",value:"twoThree",weights:[2,3]}],n="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",_={equal:n,bigLeft:`${n} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${n} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${n} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${n} [&>*:last-child]:min-[800px]:grow-[3]`,twoThree:`${n} [&>*:first-child]:min-[800px]:grow-[2] [&>*:last-child]:min-[800px]:grow-[3]`};function g(e){return typeof e=="string"?_[e]??"":""}const m="[&>*]:min-[800px]:basis-[content]";function v(e){return g(e)===""?m:""}const P="Columns",R=1,d=3,l={2:"max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},X=c.filter(e=>e.value==="content"||e.value==="equal"),H="equal",T=1,I=6,a="min-[800px]:flex-wrap [&>*]:min-[800px]:min-w-0 [&>*]:min-[800px]:grow-0!",f={1:`${a} [&>*]:min-[800px]:basis-[calc(100%/1)]!`,2:`${a} [&>*]:min-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${a} [&>*]:min-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${a} [&>*]:min-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${a} [&>*]:min-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${a} [&>*]:min-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function u(e){return typeof e=="number"?f[e]??"":""}function $(e){return e.direction!=="row"||x(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":u(e.columns)}const b="max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:grow-0 [&>*]:max-[800px]:basis-[content]",O={2:"max-[800px]:flex-nowrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-[800px]:flex-nowrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},S="max-[800px]:flex-nowrap [&>*]:max-[800px]:grow-0 [&>*]:max-[800px]:basis-[content]";function w(e){return e===!1||e==="nowrap"}function W(e,t,s){const o=l[Number(e)];if(!o)return"max-[800px]:flex-col";const r=w(s);return L(e,t)?r?S:b:r?O[Number(e)]:o}function L(e,t){return Number(e)in l&&t==="content"}const y="Block spacing",F=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],h="sf-box-gap-only";function M(e){return e==="gap"?h:""}export{y as BOX_BLOCK_SPACING_LABEL,F as BOX_BLOCK_SPACING_POINTS,I as BOX_COLUMNS_MAX,T as BOX_COLUMNS_MIN,h as BOX_GAP_ONLY_CLASS,P as BOX_PHONE_ROW_LABEL,d as BOX_PHONE_ROW_MAX,R as BOX_PHONE_ROW_MIN,E as BOX_SHARE_LABEL,H as BOX_SHARE_PHONE_DEFAULT,X as BOX_SHARE_PHONE_POINTS,c as BOX_SHARE_POINTS,A as NESTED_BOX_PADDING,M as boxBlockSpacingClass,u as boxColumnsClass,v as boxFitContentClass,N as boxLayoutClasses,W as boxPhoneRowClasses,L as boxPhoneRowFits,w as boxPhoneRowOneLine,$ as boxRowColumnsClass,g as boxShareClasses,B as boxWrapClass};
1
+ import{isStripBox as r}from"./box-separator.js";const A={sectionPaddingTop:0,sectionPaddingBottom:0},l={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},s={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function B(n,a){const p=typeof n=="string"&&n in l?l[n]:"",t=typeof a=="string"&&a in s?s[a]:"";return[p,t].filter(Boolean).join(" ")}function N(n){return n===!0||n==="wrap"?"flex-wrap":""}const E="Block widths",c=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Big left",value:"bigLeft",weights:[2,1]},{label:"Big right",value:"bigRight",weights:[1,2]},{label:"Bigger left",value:"biggerLeft",weights:[3,1]},{label:"Bigger right",value:"biggerRight",weights:[1,3]},{label:"2 : 3",value:"twoThree",weights:[2,3]}],e="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",m={equal:e,bigLeft:`${e} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${e} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${e} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${e} [&>*:last-child]:min-[800px]:grow-[3]`,twoThree:`${e} [&>*:first-child]:min-[800px]:grow-[2] [&>*:last-child]:min-[800px]:grow-[3]`};function _(n){return typeof n=="string"?m[n]??"":""}const f="[&>*]:min-[800px]:basis-[content]";function P(n){return _(n)===""?f:""}const R="Columns",T=1,X=3,o={2:"max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},H=c.filter(n=>n.value==="content"||n.value==="equal"),I="equal",$=1,y=6,x="min-[800px]:flex-wrap [&>*]:min-[800px]:min-w-0 [&>*]:min-[800px]:grow-0!",g={1:`${x} [&>*]:min-[800px]:basis-[calc(100%/1)]!`,2:`${x} [&>*]:min-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${x} [&>*]:min-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${x} [&>*]:min-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${x} [&>*]:min-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${x} [&>*]:min-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function h(n){return typeof n=="number"?g[n]??"":""}const w={1:"min-[720px]:max-[1100px]:flex-row! min-[720px]:max-[1100px]:flex-wrap! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:min-w-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:grow-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:basis-[calc(100%/1)]!",2:"min-[720px]:max-[1100px]:flex-row! min-[720px]:max-[1100px]:flex-wrap! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:min-w-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:grow-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"min-[720px]:max-[1100px]:flex-row! min-[720px]:max-[1100px]:flex-wrap! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:min-w-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:grow-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"min-[720px]:max-[1100px]:flex-row! min-[720px]:max-[1100px]:flex-wrap! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:min-w-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:grow-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"min-[720px]:max-[1100px]:flex-row! min-[720px]:max-[1100px]:flex-wrap! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:min-w-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:grow-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"min-[720px]:max-[1100px]:flex-row! min-[720px]:max-[1100px]:flex-wrap! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:min-w-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:grow-0! [&>*:nth-child(n)]:min-[720px]:max-[1100px]:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function u(n){return typeof n=="number"?w[n]??"":""}function W(n){return n.direction!=="row"||r(n.direction,n.separator)||n.loop==="scroll"||n.line===!0?"":u(n.columnsTablet)}function M(n){return n.direction!=="row"||r(n.direction,n.separator)||n.loop==="scroll"||n.line===!0?"":h(n.columns)}const b="max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:grow-0 [&>*]:max-[800px]:basis-[content]",O={2:"max-[800px]:flex-nowrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-[800px]:flex-nowrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},S="max-[800px]:flex-nowrap [&>*]:max-[800px]:grow-0 [&>*]:max-[800px]:basis-[content]";function C(n){return n===!1||n==="nowrap"}function F(n,a,p){const t=o[Number(n)];if(!t)return"max-[800px]:flex-col";const i=C(p);return d(n,a)?i?S:b:i?O[Number(n)]:t}function d(n,a){return Number(n)in o&&a==="content"}const U="Block spacing",G=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],L="sf-box-gap-only";function q(n){return n==="gap"?L:""}export{U as BOX_BLOCK_SPACING_LABEL,G as BOX_BLOCK_SPACING_POINTS,y as BOX_COLUMNS_MAX,$ as BOX_COLUMNS_MIN,L as BOX_GAP_ONLY_CLASS,R as BOX_PHONE_ROW_LABEL,X as BOX_PHONE_ROW_MAX,T as BOX_PHONE_ROW_MIN,E as BOX_SHARE_LABEL,I as BOX_SHARE_PHONE_DEFAULT,H as BOX_SHARE_PHONE_POINTS,c as BOX_SHARE_POINTS,A as NESTED_BOX_PADDING,q as boxBlockSpacingClass,h as boxColumnsClass,P as boxFitContentClass,B as boxLayoutClasses,F as boxPhoneRowClasses,d as boxPhoneRowFits,C as boxPhoneRowOneLine,M as boxRowColumnsClass,W as boxRowTabletColumnsClass,_ as boxShareClasses,u as boxTabletColumnsClass,N as boxWrapClass};
@@ -1 +1 @@
1
- import{parseTickerSeparator as a,SEPARATOR_GLYPH as l,separatorScaleClass as f,TICKER_SEPARATOR_OPTIONS as c}from"../sections/ticker-style.js";const d=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function i(h){return c.some(e=>e.value===h)?a(h):void 0}const n="overflow-hidden [&>*]:shrink-0 [&>*]:max-[800px]:basis-[content] [&>*+*]:relative [&>*+*_:is(p,h1,h2,h3,h4,h5,h6):first-child]:before:absolute [&>*+*_:is(p,h1,h2,h3,h4,h5,h6):first-child]:before:top-1/2 [&>*+*_:is(p,h1,h2,h3,h4,h5,h6):first-child]:before:left-[calc(var(--sf-gap-len,0px)/-2)] [&>*+*_:is(p,h1,h2,h3,h4,h5,h6):first-child]:max-[800px]:before:left-[calc(var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))/-2)] [&>*+*_:is(p,h1,h2,h3,h4,h5,h6):first-child]:before:-translate-x-1/2 [&>*+*_:is(p,h1,h2,h3,h4,h5,h6):first-child]:before:-translate-y-1/2 [&>*+*_:is(p,h1,h2,h3,h4,h5,h6):first-child]:before:leading-none [&>*+*_:is(p,h1,h2,h3,h4,h5,h6):first-child]:before:text-accent [&>*+*_:is(p,h1,h2,h3,h4,h5,h6):first-child]:before:text-[length:var(--sf-sep-size,1em)] [&>*+*_:is(p,h1,h2,h3,h4,h5,h6):first-child]:before:content-[var(--sf-sep-mark)]";function t(h,e){return h==="row"&&i(e)!==void 0}function x(h,e){return t(h,e)?n:""}const p="[&>*:last-child]:relative [&>*:last-child_:is(p,h1,h2,h3,h4,h5,h6):first-child]:after:absolute [&>*:last-child_:is(p,h1,h2,h3,h4,h5,h6):first-child]:after:top-1/2 [&>*:last-child_:is(p,h1,h2,h3,h4,h5,h6):first-child]:after:right-[calc(var(--sf-gap-len,0px)/-2)] [&>*:last-child_:is(p,h1,h2,h3,h4,h5,h6):first-child]:max-[800px]:after:right-[calc(var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))/-2)] [&>*:last-child_:is(p,h1,h2,h3,h4,h5,h6):first-child]:after:translate-x-1/2 [&>*:last-child_:is(p,h1,h2,h3,h4,h5,h6):first-child]:after:-translate-y-1/2 [&>*:last-child_:is(p,h1,h2,h3,h4,h5,h6):first-child]:after:leading-none [&>*:last-child_:is(p,h1,h2,h3,h4,h5,h6):first-child]:after:text-accent [&>*:last-child_:is(p,h1,h2,h3,h4,h5,h6):first-child]:after:text-[length:var(--sf-sep-size,1em)] [&>*:last-child_:is(p,h1,h2,h3,h4,h5,h6):first-child]:after:content-[var(--sf-sep-mark)]";function _(h,e){return t(h,e)?p:""}function S(h,e){if(!t(h,e))return{};const s=i(e),r=/^text-\[(.+)\]$/.exec(f("small",s))?.[1];return{"--sf-sep-mark":JSON.stringify(l[s]),...r?{"--sf-sep-size":r}:{}}}export{d as BOX_SEPARATOR_POINTS,x as boxSeparatorClasses,i as boxSeparatorOf,_ as boxSeparatorSeamClass,S as boxSeparatorStyle,t as isStripBox};
1
+ import{parseTickerSeparator as r,SEPARATOR_GLYPH as n,separatorScaleClass as c,TICKER_SEPARATOR_OPTIONS as f}from"../sections/ticker-style.js";const d=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function o(h){return f.some(t=>t.value===h)?r(h):void 0}const a="overflow-hidden [&>*]:shrink-0 [&>*]:max-[800px]:basis-[content] [&>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>*_:is(.sf-button-block>div)]:font-mono [&>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-[800px]:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)]";function s(h,t){return h==="row"&&o(t)!==void 0}function v(h,t){return s(h,t)?a:""}const p="[&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:inline-flex [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:items-center [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:align-top [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:h-[calc(1lh/var(--sf-sep-k,1))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:ml-[var(--sf-gap-len,0px)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-[800px]:after:ml-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-accent [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-[var(--sf-sep-mark)]";function u(h,t){return s(h,t)?p:""}function k(h,t){if(!s(h,t))return{};const i=o(t),e=/^text-\[([\d.]+)em\]$/.exec(c("small",i))?.[1],l=n[i];return{"--sf-sep-mark":l===""?"none":JSON.stringify(l),...e?{"--sf-sep-k":e}:{}}}export{d as BOX_SEPARATOR_POINTS,v as boxSeparatorClasses,o as boxSeparatorOf,u as boxSeparatorSeamClass,k as boxSeparatorStyle,s as isStripBox};
@@ -18,8 +18,16 @@ export interface CardRowFieldSpec {
18
18
  export interface CardTemplateSpec {
19
19
  block: string;
20
20
  fields: readonly CardRowFieldSpec[];
21
+ blocks?: readonly CardTemplateBlock[];
22
+ }
23
+ export interface CardTemplateBlock {
24
+ type: string;
25
+ label: string;
21
26
  }
22
27
  export declare function registerCardTemplates(specs: readonly CardTemplateSpec[]): void;
28
+ export declare function cardTemplatesNameBlocks(): boolean;
29
+ export declare function cardTemplateBlocks(type: string): readonly CardTemplateBlock[];
30
+ export declare function isCardTemplateBlock(type: string): boolean;
23
31
  export declare function hasCardTemplate(type: unknown): boolean;
24
32
  export declare function cardTemplateFields(type: string, kind?: CardRowFieldKind): readonly CardRowFieldSpec[];
25
33
  export declare function cardTemplateField(type: string | undefined, key: string): CardRowFieldSpec | null;
@@ -1 +1 @@
1
- import{isNodeList as k}from"efficient-easel/data";const w="template",L="Card template",y=["Text","ImageBlock","ButtonBlock","Flex"],i="rowField",A="rowLinkField";function B(){return{type:"slot",allow:[...y]}}const O=[{block:"OrderSummary",fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]}],d=Symbol.for("efficient.card-templates");function f(){const t=globalThis;let e=t[d];return e||(e=new Map(O.map(n=>[n.block,n])),t[d]=e),e}function g(t){for(const e of t){if(typeof e.block!="string"||!e.block)throw new Error("A card template names no block.");f().set(e.block,{block:e.block,fields:e.fields.map(n=>({...n}))})}}function R(t){return typeof t=="string"&&f().has(t)}function C(t,e){const n=f().get(t)?.fields??[];return e?n.filter(o=>(o.kind??"text")===e):n}function P(t,e){return t?f().get(t)?.fields.find(n=>n.key===e)??null:null}function p(t,e=i){const n=t?.[e];return typeof n=="string"?n.trim():""}function F(t){const e={};if(t&&typeof t=="object"&&!Array.isArray(t))for(const[n,o]of Object.entries(t))typeof o=="string"&&(e[n]=o);return e}const m={Text:{text:i},ImageBlock:{src:i},ButtonBlock:{label:i,href:A}};function D(t,e,n){const o=m[t]?.[n];return!!(o&&p(e,o))}function _(t,e){return!e||!t?null:t[e]??""}function h(t,e,n){if(!n)return e;let o=null;for(const[l,s]of Object.entries(m[t]??{})){const r=_(n,p(e,s));r!==null&&(o??={...e},o[l]=r)}return o??e}function x(t,e){const n=t?.data?.content;if(!Array.isArray(n)||typeof e!="string")return;const o=(s,r)=>{for(const c of s){if(c?.props?.id===e)return r;for(const[T,u]of Object.entries(c?.props??{})){if(!k(u))continue;const b=T===w&&R(c.type)?{owner:c,direct:!0}:r&&{owner:r.owner,direct:!1},a=o(u,b);if(a!==void 0)return a}}},l=o(n,null);return l===void 0?null:l}function S(t,e){const n=x(t,e);return n&&n.owner}function I(t,e){const n=x(t,e);return n&&(n.direct?n.owner:null)}export{i as CARD_ROW_FIELD_PROP,A as CARD_ROW_LINK_PROP,y as CARD_TEMPLATE_BLOCKS,L as CARD_TEMPLATE_LABEL,w as CARD_TEMPLATE_SLOT,F as cardRow,I as cardTemplateCardOwner,P as cardTemplateField,C as cardTemplateFields,S as cardTemplateOwner,B as cardTemplateSlot,R as hasCardTemplate,p as namedRowField,g as registerCardTemplates,D as rowBound,_ as rowFieldText,h as rowFilledProps};
1
+ import{isNodeList as y}from"efficient-easel/data";const T="template",R="Card template",w=["Text","ImageBlock","ButtonBlock","Flex"],i="rowField",A="rowLinkField";function _(){return{type:"slot",allow:[...w]}}const B=[{block:"OrderSummary",fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]}],p=Symbol.for("efficient.card-templates");function n(){const t=globalThis;let e=t[p];return e||(e=new Map(B.map(o=>[o.block,o])),t[p]=e),e}function L(t){for(const e of t){if(typeof e.block!="string"||!e.block)throw new Error("A card template names no block.");const o=[];for(const r of e.blocks??[]){if(typeof r?.type!="string"||!r.type)throw new Error(`The card template of ${e.block} names an empty block.`);o.some(l=>l.type===r.type)||o.push({type:r.type,label:r.label||r.type})}n().set(e.block,{block:e.block,fields:e.fields.map(r=>({...r})),blocks:o})}}function h(){for(const t of n().values())if(t.blocks?.length)return!0;return!1}function C(t){return n().get(t)?.blocks??[]}function P(t){for(const e of n().values())if(e.blocks?.some(o=>o.type===t))return!0;return!1}function O(t){return typeof t=="string"&&n().has(t)}function F(t,e){const o=n().get(t)?.fields??[];return e?o.filter(r=>(r.kind??"text")===e):o}function D(t,e){return t?n().get(t)?.fields.find(o=>o.key===e)??null:null}function d(t,e=i){const o=t?.[e];return typeof o=="string"?o.trim():""}function S(t){const e={};if(t&&typeof t=="object"&&!Array.isArray(t))for(const[o,r]of Object.entries(t))typeof r=="string"&&(e[o]=r);return e}const m={Text:{text:i},ImageBlock:{src:i},ButtonBlock:{label:i,href:A}};function I(t,e,o){const r=m[t]?.[o];return!!(r&&d(e,r))}function g(t,e){return!e||!t?null:t[e]??""}function M(t,e,o){if(!o)return e;let r=null;for(const[l,f]of Object.entries(m[t]??{})){const c=g(o,d(e,f));c!==null&&(r??={...e},r[l]=c)}return r??e}function b(t,e){const o=t?.data?.content;if(!Array.isArray(o)||typeof e!="string")return;const r=(f,c)=>{for(const s of f){if(s?.props?.id===e)return c;for(const[k,u]of Object.entries(s?.props??{})){if(!y(u))continue;const x=k===T&&O(s.type)?{owner:s,direct:!0}:c&&{owner:c.owner,direct:!1},a=r(u,x);if(a!==void 0)return a}}},l=r(o,null);return l===void 0?null:l}function j(t,e){const o=b(t,e);return o&&o.owner}function N(t,e){const o=b(t,e);return o&&(o.direct?o.owner:null)}export{i as CARD_ROW_FIELD_PROP,A as CARD_ROW_LINK_PROP,w as CARD_TEMPLATE_BLOCKS,R as CARD_TEMPLATE_LABEL,T as CARD_TEMPLATE_SLOT,S as cardRow,C as cardTemplateBlocks,N as cardTemplateCardOwner,D as cardTemplateField,F as cardTemplateFields,j as cardTemplateOwner,_ as cardTemplateSlot,h as cardTemplatesNameBlocks,O as hasCardTemplate,P as isCardTemplateBlock,d as namedRowField,L as registerCardTemplates,I as rowBound,g as rowFieldText,M as rowFilledProps};
@@ -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};
@@ -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};
@@ -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";