efficient-web-builder 50.0.0 → 52.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 (154) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +1 -1
  3. package/dist/editor/components/BlogPostSource.js +1 -1
  4. package/dist/editor/components/HeroPartPanel.js +1 -1
  5. package/dist/editor/components/MediaUploadField.js +1 -1
  6. package/dist/editor/components/PartTextBox.js +1 -1
  7. package/dist/editor/components/PreviewPartStyleContext.d.ts +2 -2
  8. package/dist/editor/components/SectionEditor.js +1 -1
  9. package/dist/editor/components/SiteTextStylesField.d.ts +2 -1
  10. package/dist/editor/components/SiteTextStylesField.js +1 -1
  11. package/dist/editor/components/ThemeCard.js +1 -1
  12. package/dist/editor/components/WebsiteScreenParts.js +1 -1
  13. package/dist/editor/components/WebsiteSettingsPanel.js +1 -1
  14. package/dist/editor/components/storefront-editor.css +13 -45
  15. package/dist/editor/components/usePartMotion.d.ts +1 -1
  16. package/dist/editor/components/usePartTypingDeps.d.ts +2 -0
  17. package/dist/editor/components/usePartTypingDeps.js +1 -0
  18. package/dist/editor/lib/animation/entrance-fields.js +1 -1
  19. package/dist/editor/lib/animation/fields.d.ts +1 -1
  20. package/dist/editor/lib/animation/fields.js +1 -1
  21. package/dist/editor/lib/animation/hover-fields.d.ts +7 -1
  22. package/dist/editor/lib/animation/hover-fields.js +1 -1
  23. package/dist/editor/lib/document/ColourControl.d.ts +11 -8
  24. package/dist/editor/lib/document/ColourControl.js +1 -1
  25. package/dist/editor/lib/document/blocks/general/Cards/fields.js +1 -1
  26. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  27. package/dist/editor/lib/document/blocks/general/Hero/fields.js +1 -1
  28. package/dist/editor/lib/document/blocks/general/HeroSlide/fields.js +1 -1
  29. package/dist/editor/lib/document/blocks/general/ImageBlock/fields.js +1 -1
  30. package/dist/editor/lib/document/blocks/general/PostCard/fields.js +1 -1
  31. package/dist/editor/lib/document/blocks/general/Series/fields.js +1 -1
  32. package/dist/editor/lib/document/blocks/general/StatsParagraph/fields.js +1 -1
  33. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  34. package/dist/editor/lib/document/blocks/hero-shared-fields.d.ts +2 -0
  35. package/dist/editor/lib/document/blocks/hero-shared-fields.js +1 -1
  36. package/dist/editor/lib/document/canvas-typing.d.ts +1 -0
  37. package/dist/editor/lib/document/canvas-typing.js +1 -1
  38. package/dist/editor/lib/document/card-copy-rows.d.ts +12 -0
  39. package/dist/editor/lib/document/card-copy-rows.js +1 -0
  40. package/dist/editor/lib/document/controls.d.ts +15 -4
  41. package/dist/editor/lib/document/controls.js +1 -1
  42. package/dist/editor/lib/document/darken-fields.d.ts +4 -0
  43. package/dist/editor/lib/document/darken-fields.js +1 -0
  44. package/dist/editor/lib/document/overrides.js +1 -1
  45. package/dist/editor/lib/document/passes/inspector.js +1 -1
  46. package/dist/format/components/stored-pick-row.d.ts +8 -0
  47. package/dist/format/components/stored-pick-row.js +1 -0
  48. package/dist/format/lib/animation/hover.d.ts +32 -1
  49. package/dist/format/lib/animation/hover.js +1 -1
  50. package/dist/format/lib/content/borders.d.ts +4 -2
  51. package/dist/format/lib/content/borders.js +1 -1
  52. package/dist/format/lib/content/box-layout.d.ts +11 -0
  53. package/dist/format/lib/content/box-layout.js +1 -1
  54. package/dist/format/lib/content/box-shape.d.ts +2 -1
  55. package/dist/format/lib/content/box-shape.js +1 -1
  56. package/dist/format/lib/content/button-icon.d.ts +1 -1
  57. package/dist/format/lib/content/button-icon.js +1 -1
  58. package/dist/format/lib/content/card-state.d.ts +8 -0
  59. package/dist/format/lib/content/card-state.js +1 -0
  60. package/dist/format/lib/content/card-template.d.ts +6 -0
  61. package/dist/format/lib/content/card-template.js +1 -1
  62. package/dist/format/lib/content/image-treatment.d.ts +23 -4
  63. package/dist/format/lib/content/image-treatment.js +1 -1
  64. package/dist/format/lib/content/section-background.d.ts +10 -3
  65. package/dist/format/lib/content/section-background.js +1 -1
  66. package/dist/format/lib/content/section-min-height.d.ts +17 -1
  67. package/dist/format/lib/content/section-min-height.js +1 -1
  68. package/dist/format/lib/content/section-sticky.d.ts +9 -0
  69. package/dist/format/lib/content/section-sticky.js +1 -1
  70. package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
  71. package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
  72. package/dist/format/lib/document/box-footer.js +1 -1
  73. package/dist/format/lib/document/card-template-layers.d.ts +1 -1
  74. package/dist/format/lib/document/card-template-layers.js +1 -1
  75. package/dist/format/lib/document/easel-row-words.d.ts +1 -0
  76. package/dist/format/lib/document/easel-row-words.js +1 -1
  77. package/dist/format/lib/document/part-inks.d.ts +5 -10
  78. package/dist/format/lib/document/part-inks.js +1 -1
  79. package/dist/format/lib/document/passes/card-template-on-insert.d.ts +2 -0
  80. package/dist/format/lib/document/passes/card-template-on-insert.js +1 -0
  81. package/dist/format/lib/document/passes/types.d.ts +7 -0
  82. package/dist/format/lib/document/section-catalog.js +2 -2
  83. package/dist/format/lib/document/show-when-attach.d.ts +2 -1
  84. package/dist/format/lib/document/show-when-attach.js +1 -1
  85. package/dist/format/lib/editor-words-catalogue.d.ts +9 -5
  86. package/dist/format/lib/editor-words-catalogue.js +4 -4
  87. package/dist/format/lib/sections/hero-overlay.js +1 -1
  88. package/dist/format/lib/sections/hero-single-to-hero.js +1 -1
  89. package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.d.ts +4 -0
  90. package/dist/format/lib/source-rules/panel-rows-use-the-shared-row.js +37 -20
  91. package/dist/format/lib/source-rules/support/part-slider-call-sites.d.ts +0 -1
  92. package/dist/format/lib/source-rules/support/part-slider-call-sites.js +6 -6
  93. package/dist/format/lib/text-styles/site-text-colours.d.ts +11 -0
  94. package/dist/format/lib/text-styles/site-text-colours.js +1 -0
  95. package/dist/format/lib/theme.d.ts +1 -0
  96. package/dist/format/lib/theme.js +3 -3
  97. package/dist/format/lib/word-styles.d.ts +0 -1
  98. package/dist/format/lib/word-styles.js +1 -1
  99. package/dist/render/components/ButtonBlock.d.ts +2 -1
  100. package/dist/render/components/ButtonBlock.js +1 -1
  101. package/dist/render/components/CardRowContext.d.ts +5 -2
  102. package/dist/render/components/CardRowContext.js +1 -1
  103. package/dist/render/components/ContactLocations.d.ts +3 -1
  104. package/dist/render/components/ContactLocations.js +2 -2
  105. package/dist/render/components/Flex.d.ts +6 -1
  106. package/dist/render/components/Flex.js +1 -1
  107. package/dist/render/components/HeroPictures.d.ts +10 -0
  108. package/dist/render/components/HeroPictures.js +1 -1
  109. package/dist/render/components/HeroSingle.js +1 -1
  110. package/dist/render/components/HeroSlide.js +1 -1
  111. package/dist/render/components/ImageBlock.d.ts +6 -1
  112. package/dist/render/components/ImageBlock.js +1 -1
  113. package/dist/render/components/Manifesto.d.ts +3 -1
  114. package/dist/render/components/Manifesto.js +1 -1
  115. package/dist/render/components/PhotoHoverSheet.d.ts +4 -0
  116. package/dist/render/components/PhotoHoverSheet.js +1 -0
  117. package/dist/render/components/PictureWash.d.ts +6 -0
  118. package/dist/render/components/PictureWash.js +1 -0
  119. package/dist/render/components/Placeholder.js +1 -1
  120. package/dist/render/components/PostCard.js +1 -1
  121. package/dist/render/components/Split.d.ts +3 -1
  122. package/dist/render/components/Split.js +1 -1
  123. package/dist/render/components/Text.d.ts +2 -2
  124. package/dist/render/components/Text.js +1 -1
  125. package/dist/render/components/goldPhrases.js +2 -2
  126. package/dist/render/lib/animation/part-motion.js +2 -2
  127. package/dist/render/lib/content/block-size.d.ts +1 -0
  128. package/dist/render/lib/content/block-size.js +1 -1
  129. package/dist/render/lib/content/box-shared-columns.js +1 -1
  130. package/dist/render/lib/document/blocks/general/Cards/render.js +1 -1
  131. package/dist/render/lib/document/blocks/general/ContactLocations/render.js +1 -1
  132. package/dist/render/lib/document/blocks/general/Flex/render.js +1 -1
  133. package/dist/render/lib/document/blocks/general/ImageBlock/render.js +1 -1
  134. package/dist/render/lib/document/blocks/general/Manifesto/render.js +1 -1
  135. package/dist/render/lib/document/blocks/general/Split/render.js +1 -1
  136. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.d.ts +2 -0
  137. package/dist/render/lib/document/blocks/general/section-to-box-row-parts.js +1 -1
  138. package/dist/render/lib/document/blocks/general/section-to-box-rows-cards.js +1 -1
  139. package/dist/render/lib/document/blocks/general/section-to-box-rows-locations.js +1 -1
  140. package/dist/render/lib/document/blocks/general/section-to-box-rows-stats.js +1 -1
  141. package/dist/render/lib/document/blocks/general/section-to-box-rows-timeline.js +2 -2
  142. package/dist/render/lib/document/part-styles.js +2 -2
  143. package/dist/render/lib/document/passes/block-size.js +1 -1
  144. package/dist/render/lib/document/passes/borders.js +1 -1
  145. package/dist/render/lib/document/passes/index.js +1 -1
  146. package/dist/render/lib/document/passes/section-animation.js +1 -1
  147. package/dist/render/lib/document/passes/section-height.js +1 -1
  148. package/dist/render/lib/document/passes/section-sticky.js +1 -1
  149. package/dist/render/lib/document/show-when.d.ts +1 -1
  150. package/dist/render/lib/document/show-when.js +1 -1
  151. package/dist/render/lib/text-styles/site-text-styles.js +2 -2
  152. package/package.json +4 -4
  153. package/dist/editor/components/PartInkControl.d.ts +0 -7
  154. package/dist/editor/components/PartInkControl.js +0 -1
@@ -1,6 +1,6 @@
1
- import type { ReactElement, ReactNode } from "react";
1
+ import { type ReactElement, type ReactNode } from "react";
2
2
  import { type ColorPreset } from "efficient-shell/ui";
3
- export declare function ColourControl({ value, onChange, label, id, caption, inherited, ariaLabel, }: {
3
+ export declare function ColourControl({ value, onChange, label, id, caption, inherited, ariaLabel, choices, }: {
4
4
  value: string;
5
5
  onChange: (next: string) => void;
6
6
  label: string;
@@ -8,13 +8,15 @@ export declare function ColourControl({ value, onChange, label, id, caption, inh
8
8
  caption?: string;
9
9
  inherited?: string;
10
10
  ariaLabel?: string;
11
+ choices?: readonly ColourChoice[];
11
12
  }): import("react").JSX.Element;
12
- export declare function useThemePresets(): ColorPreset[];
13
- export declare function AnyColourSwatch({ value, onChange, label, }: {
14
- value: string;
15
- onChange: (next: string) => void;
13
+ export interface ColourChoice {
16
14
  label: string;
17
- }): import("react").JSX.Element;
15
+ color: string;
16
+ selected: boolean;
17
+ onPick: () => void;
18
+ }
19
+ export declare function useThemePresets(): ColorPreset[];
18
20
  export declare function ColourRow({ label, icon, changed, hint, onReset, resetTo, children, ...control }: Parameters<typeof ColourControl>[0] & {
19
21
  icon?: ReactNode;
20
22
  changed?: boolean;
@@ -23,7 +25,7 @@ export declare function ColourRow({ label, icon, changed, hint, onReset, resetTo
23
25
  resetTo?: string;
24
26
  children?: ReactNode;
25
27
  }): import("react").JSX.Element;
26
- export declare function InheritedColourRow({ label, icon, value, inherited, resetTo, onChange, onReset, hint, }: {
28
+ export declare function InheritedColourRow({ label, icon, value, inherited, resetTo, onChange, onReset, hint, choices, }: {
27
29
  label: string;
28
30
  icon?: ReactElement;
29
31
  value: string;
@@ -32,4 +34,5 @@ export declare function InheritedColourRow({ label, icon, value, inherited, rese
32
34
  onChange: (hex: string) => void;
33
35
  onReset: () => void;
34
36
  hint?: ReactNode;
37
+ choices?: readonly ColourChoice[];
35
38
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- "use client";import{jsx as s,jsxs as h}from"react/jsx-runtime";import{ColorPicker as p,HexInput as x}from"efficient-shell/ui";import{SettingsDefaultReset as C,SettingsField as g}from"efficient-easel/panel";import{typedHex as u}from"efficient-easel/pick";import{usePreviewHeader as w}from"../../../render/components/PreviewHeaderContext.js";import{editorEaselWords as S,say as c}from"../../../format/lib/editor-words.js";import{themeSwatches as b}from"./theme-swatches.js";import{SITE_STYLE_UNSET_LABEL as E}from"../../../format/components/SiteStyleUnset.js";function N({value:e,onChange:o,label:n,id:r,caption:t,inherited:l,ariaLabel:a}){return s(_,{value:e,onChange:o,label:c(a??n),id:r,caption:t,inherited:l})}function T(){const{theme:e}=w();return b(e).map(o=>({value:o.value,label:o.name}))}function _({value:e,onChange:o,label:n,id:r,caption:t,inherited:l}){const a=T(),i=e?null:u(l??""),d=t!==void 0&&(!e||u(t)!==u(e))?t:null,f=m=>{m!==e&&o(m)};return h("div",{className:"sf-colour",children:[s(p,{id:r,value:e,onChange:f,label:n,presets:a,fallback:i??void 0,size:"md",align:"start"}),d!==null?s("span",{className:"sf-colour-caption",children:d}):s("span",{className:"sf-colour-hexwrap",children:s(x,{value:e||i||"",onChange:f,label:c("{label} hex code",{label:n}),placeholder:e||i?void 0:c(E),className:i?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function L({value:e,onChange:o,label:n}){return s(p,{value:e,onChange:r=>{r&&r!==e&&o(r)},label:c(n),size:"sm",align:"end"})}function j({label:e,icon:o,changed:n,hint:r,onReset:t,resetTo:l,children:a,...i}){return h(g,{label:e,icon:o,htmlFor:i.id,changed:n,hint:r,action:t?s(C,{words:S()?.panel,label:e,changed:!!n,detail:l,onReset:t}):void 0,children:[N({...i,label:e}),a]})}function A({label:e,icon:o,value:n,inherited:r,resetTo:t,onChange:l,onReset:a,hint:i}){const d=!!n;return s(j,{label:e,icon:o,value:n,inherited:d?void 0:r,onChange:l,changed:d,onReset:a,resetTo:t,hint:i})}export{L as AnyColourSwatch,N as ColourControl,j as ColourRow,A as InheritedColourRow,T as useThemePresets};
1
+ "use client";import{jsx as r,jsxs as h}from"react/jsx-runtime";import{useRef as C}from"react";import{ColorPicker as w,ColorPickerPanel as x,ColorSwatch as b,HexInput as S,Popover as N,Tooltip as P,colorFill as k,colorSwatchClasses as T,useShellStrings as E}from"efficient-shell/ui";import{SettingsDefaultReset as R,SettingsField as _}from"efficient-easel/panel";import{typedHex as p}from"efficient-easel/pick";import{usePreviewHeader as j}from"../../../render/components/PreviewHeaderContext.js";import{editorEaselWords as v,say as g}from"../../../format/lib/editor-words.js";import{themeSwatches as F}from"./theme-swatches.js";import{SITE_STYLE_UNSET_LABEL as I}from"../../../format/components/SiteStyleUnset.js";function L({value:e,onChange:n,label:o,id:a,caption:s,inherited:c,ariaLabel:t,choices:l}){return r(z,{value:e,onChange:n,label:g(t??o),id:a,caption:s,inherited:c,choices:l})}function y(){const{theme:e}=j();return F(e).map(n=>({value:n.value,label:n.name}))}function z({value:e,onChange:n,label:o,id:a,caption:s,inherited:c,choices:t}){const l=y(),i=e?null:p(c??""),d=s!==void 0&&(!e||p(s)!==p(e))?s:null,f=m=>{m!==e&&n(m)};return h("div",{className:"sf-colour",children:[t?r(B,{id:a,value:e,onChange:n,label:o,presets:l,follows:i,choices:t}):r(w,{id:a,value:e,onChange:f,label:o,presets:l,fallback:i??void 0,size:"md",align:"start"}),d!==null?r("span",{className:"sf-colour-caption",children:d}):r("span",{className:"sf-colour-hexwrap",children:r(S,{value:e||i||"",onChange:f,label:g("{label} hex code",{label:o}),placeholder:e||i?void 0:g(I),className:i?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function B({value:e,onChange:n,label:o,id:a,presets:s,follows:c,choices:t}){const l=E().color,i=e||c||"",d=t.findIndex(u=>u.selected),f=d>=0,m=C(d);return f&&(m.current=d),r(N,{id:a,trigger:r("span",{"aria-hidden":"true",className:"absolute inset-0",style:k(i)}),triggerLabel:l.swatch(o,i.toUpperCase()||l.none),triggerClassName:T({size:"md"}),"aria-label":l.panel(o),align:"start",children:h("div",{className:"sf-colour-window",children:[r("div",{role:"group","aria-label":o,className:"sf-colour-choices",children:t.map(u=>r(P,{content:u.label,children:r(b,{color:u.color,"aria-label":u.label,selected:u.selected,onClick:()=>{u.selected||u.onPick()}})},u.label))}),r(x,{value:f?"":e,onChange:n,label:o,presets:s,fallback:(f?i:c)??void 0},m.current)]})})}function H({label:e,icon:n,changed:o,hint:a,onReset:s,resetTo:c,children:t,...l}){return h(_,{label:e,icon:n,htmlFor:l.id,changed:o,hint:a,action:s?r(R,{words:v()?.panel,label:e,changed:!!o,detail:c,onReset:s}):void 0,children:[L({...l,label:e}),t]})}function M({label:e,icon:n,value:o,inherited:a,resetTo:s,onChange:c,onReset:t,hint:l,choices:i}){const d=!!o;return r(H,{label:e,icon:n,value:o,inherited:d?void 0:a,onChange:c,changed:d,onReset:t,resetTo:s,hint:l,choices:i})}export{L as ColourControl,H as ColourRow,M as InheritedColourRow,y as useThemePresets};
@@ -1 +1 @@
1
- import{jsx as c}from"react/jsx-runtime";import{AccentIcon as v,ColumnsIcon as x,StylesIcon as f}from"efficient-easel/icons";import{copyText as b,plainText as C,plainTextarea as B,text as w,textarea as M,withOffPage as S}from"../../../controls.js";import{group as p}from"efficient-easel/screen/lib/document/box-fields";import{select as y,slider as A}from"../../../box-fields.js";import{SPLITTABLE_SECTIONS as H,headFieldsForPlacement as N}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_EYEBROW_LOOK_OPTIONS as D,eyebrowLookFor as k}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{BLOCK_SOURCE_EDIT_PROP as K,blockSourceEditField as W,blockSourceField as J,blockSourceFields as U}from"../../../block-source-fields.js";import{declaredBlockSource as E,sourceChoices as Y}from"../../../../../../format/lib/content/block-sources.js";import{cardKeyOf as q,cardRow as z,cardTemplateFields as O}from"../../../../../../format/lib/content/card-template.js";import{isNodeList as G,newId as I}from"efficient-easel/data";import{say as Q}from"../../../../../../format/lib/editor-words.js";import{withCardsTemplate as V}from"../../../../../../format/lib/document/cards-template-on-read.js";import{CARDS_PH as F,CardsSlots as X}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const Z=e=>G(e.template)&&e.template.length>0;function $(e){const r=E(e);return r?Y(r).map(t=>({label:t.label,value:t.key})):(Array.isArray(e.items)?e.items:[]).map((t,l)=>({label:typeof t?.title=="string"&&t.title.trim()||Q("Card {n}",{n:l+1}),value:q(z(t),l)}))}const ee=e=>Object.defineProperty({...e},"key",{get:()=>I("card"),enumerable:!0});function te(e,r){const o=Z(r)&&r.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([t,l])=>t==="highlightedCard"?o?[[t,re(l,$(r))]]:[]:t==="highlightBadge"?o?[[t,l]]:[]:t==="items"&&o&&l?[[t,ae(l)]]:[[t,l]]))}const L=new WeakMap;function re(e,r){let o=L.get(e);o||L.set(e,o=new Map);const t=JSON.stringify(r);let l=o.get(t);return l||o.set(t,l={...e,options:[...e.options,...r]}),l}const T=e=>e.kind==="link"?S(C(e.label)):e.multiline?B(e.label):b(e.label),oe=Object.fromEntries(O("Cards").filter(e=>!e.everySource).map(e=>[e.key,T(e)])),le=Object.fromEntries(O("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,T(e)])),_=new WeakMap;function ae(e){let r=_.get(e);return r||_.set(e,r={...e,arrayFields:oe}),r}const we={fields:{_gSource:p("Source"),dataSource:J("Card content","Manual"),[K]:W(),_gContent:p("Content"),eyebrow:w("Eyebrow",F.eyebrow),eyebrowLook:y("Eyebrow style",c(f,{}),[...D],k("Cards")),title:M("Heading",F.title),items:{type:"array",label:"Cards",arrayFields:le,defaultItemProps:ee({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...X,highlightedCard:y("Highlighted card",c(v,{}),[{label:"None",value:""}],""),highlightBadge:w("Highlight badge","Most popular"),_gStyle:p("Style"),cardStyle:y("Card style",c(f,{}),[{label:"Cards",value:"cards"},{label:"Label only",value:"label-only"}],"cards"),columns:A("Columns",c(x,{}),2,4,1,3)},resolveData:e=>{const r=V("Cards",e.props),o=r===e.props?e:{...e,props:r},t=o.props;if(!Array.isArray(t.items)||E(t))return o;const l=t.items,s=typeof t.highlightedCard=="string"?t.highlightedCard.trim():"",i=a=>a&&typeof a=="object"&&typeof a.key=="string"?a.key:"",P=!!s&&!l.some(a=>i(a)===s),d=new Set;let u=t.highlightedCard,h=!1;const R=l.map((a,j)=>{if(!a||typeof a!="object")return a;const n=i(a);if(n&&!d.has(n))return d.add(n),a;const g=!n&&P&&s===String(j+1);if(n||g){const m=I("card");return d.add(m),h=!0,g&&(u=m),{...a,key:m}}return a});return h?{...o,props:{...t,items:R,highlightedCard:u}}:o},resolveFields:(e,{fields:r})=>{const o=N(U("Cards",r,e.props,{hides:["items"]}),e.props.headPlacement,H.Cards.headRows),t=e.props,l=te(o,t);if(t.cardStyle!=="label-only")return l;const s=o.items,i=o.eyebrowLook;return{...l,...s?{items:{...s,arrayFields:{title:b("Feature label"),href:S(C("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:k("KeyFeatures")}}:{}}}};export{we as CardsFields};
1
+ import{jsx as c}from"react/jsx-runtime";import{AccentIcon as v,ColumnsIcon as x,StylesIcon as f}from"efficient-easel/icons";import{copyText as b,plainText as C,plainTextarea as B,text as w,textarea as M,withOffPage as S}from"../../../controls.js";import{group as p}from"efficient-easel/screen/lib/document/box-fields";import{select as y,slider as A}from"../../../box-fields.js";import{SPLITTABLE_SECTIONS as H,headFieldsForPlacement as N}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_EYEBROW_LOOK_OPTIONS as D,eyebrowLookFor as k}from"../../../../../../format/lib/sections/section-eyebrow-look.js";import{BLOCK_SOURCE_EDIT_PROP as K,blockSourceEditField as W,blockSourceField as J,blockSourceFields as U}from"../../../block-source-fields.js";import{declaredBlockSource as E,sourceChoices as Y}from"../../../../../../format/lib/content/block-sources.js";import{cardKeyOf as q,cardRow as z,cardTemplateFields as O}from"../../../../../../format/lib/content/card-template.js";import{isNodeList as G,newId as F}from"efficient-easel/data";import{say as Q}from"../../../../../../format/lib/editor-words.js";import{cardsFieldsFollowContent as V}from"../../../../../../format/lib/document/cards-template-on-read.js";import{CARDS_PH as I,CardsSlots as X}from"../../../../../../format/lib/document/blocks/general/Cards/meta.js";const Z=e=>G(e.template)&&e.template.length>0;function $(e){const r=E(e);return r?Y(r).map(t=>({label:t.label,value:t.key})):(Array.isArray(e.items)?e.items:[]).map((t,l)=>({label:typeof t?.title=="string"&&t.title.trim()||Q("Card {n}",{n:l+1}),value:q(z(t),l)}))}const ee=e=>Object.defineProperty({...e},"key",{get:()=>F("card"),enumerable:!0});function te(e,r){const o=Z(r)&&r.cardStyle!=="label-only"&&!!e.highlightedCard;return Object.fromEntries(Object.entries(e).flatMap(([t,l])=>t==="highlightedCard"?o?[[t,re(l,$(r))]]:[]:t==="highlightBadge"?o?[[t,l]]:[]:t==="items"&&o&&l?[[t,se(l)]]:[[t,l]]))}const L=new WeakMap;function re(e,r){let o=L.get(e);o||L.set(e,o=new Map);const t=JSON.stringify(r);let l=o.get(t);return l||o.set(t,l={...e,options:[...e.options,...r]}),l}const _=e=>e.kind==="link"?S(C(e.label)):e.multiline?B(e.label):b(e.label),oe=Object.fromEntries(O("Cards").filter(e=>!e.everySource).map(e=>[e.key,_(e)])),le=Object.fromEntries(O("Cards").filter(e=>e.key==="title"||e.key==="body").map(e=>[e.key,_(e)])),T=new WeakMap;function se(e){let r=T.get(e);return r||T.set(e,r={...e,arrayFields:oe}),r}const we={fields:{_gSource:p("Source"),dataSource:J("Card content","Manual"),[K]:W(),_gContent:p("Content"),eyebrow:w("Eyebrow",I.eyebrow),eyebrowLook:y("Eyebrow style",c(f,{}),[...D],k("Cards")),title:M("Heading",I.title),items:{type:"array",label:"Cards",arrayFields:le,defaultItemProps:ee({title:"",body:""}),getItemSummary:e=>e?.title||e?.body||"Card"},...X,highlightedCard:y("Highlighted card",c(v,{}),[{label:"None",value:""}],""),highlightBadge:w("Highlight badge","Most popular"),_gStyle:p("Style"),cardStyle:y("Card style",c(f,{}),[{label:"Cards",value:"cards"},{label:"Label only",value:"label-only"}],"cards"),columns:A("Columns",c(x,{}),2,4,1,3)},resolveData:e=>{const r=V(e.props),o=r===e.props?e:{...e,props:r},t=o.props;if(!Array.isArray(t.items)||E(t))return o;const l=t.items,a=typeof t.highlightedCard=="string"?t.highlightedCard.trim():"",i=s=>s&&typeof s=="object"&&typeof s.key=="string"?s.key:"",P=!!a&&!l.some(s=>i(s)===a),d=new Set;let u=t.highlightedCard,h=!1;const R=l.map((s,j)=>{if(!s||typeof s!="object")return s;const n=i(s);if(n&&!d.has(n))return d.add(n),s;const g=!n&&P&&a===String(j+1);if(n||g){const m=F("card");return d.add(m),h=!0,g&&(u=m),{...s,key:m}}return s});return h?{...o,props:{...t,items:R,highlightedCard:u}}:o},resolveFields:(e,{fields:r})=>{const o=N(U("Cards",r,e.props,{hides:["items"]}),e.props.headPlacement,H.Cards.headRows),t=e.props,l=te(o,t);if(t.cardStyle!=="label-only")return l;const a=o.items,i=o.eyebrowLook;return{...l,...a?{items:{...a,arrayFields:{title:b("Feature label"),href:S(C("Link"))}}}:{},...i?{eyebrowLook:{...i,fallback:k("KeyFeatures")}}:{}}}};export{we as CardsFields};
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import{phoneKey as t,tabletKey as h}from"efficient-easel/draw";import{BOX_CARD_PAD as d,BOX_DARKEN as s,BOX_DARKEN_STYLES as u,isBackgroundBox as X}from"../../../../../../format/lib/content/box-background.js";import{BOX_TAB_SHAPES as K,REEL_SHAPE_LABELS as j}from"../../../../../../format/lib/reel.js";import{deviceField as a}from"efficient-easel/screen/lib/document/device-fields";import{ClockIcon as v,CropIcon as f,LineBetweenIcon as G,LineSolidIcon as Y,OpacityIcon as J,ShadowIcon as z,StylesIcon as O,TableIcon as g,TargetIcon as V}from"efficient-easel/icons";import{boxBlockSpacingField as q,boxFillField as Q,boxColumnsFields as Z,boxShareField as $,boxSharePhoneField as ee,containerDirectionField as oe,containerGapRows as te,linkField as ne,plainText as ae,swapPadding as A,toggle as c,upload as R,withPanelOnly as ie}from"../../../controls.js";import{BOX_SHAPE_OPTIONS as b,boxShapeOf as le}from"../../../../../../format/lib/content/box-shape.js";import{BOX_COLUMNS_MAX as re,BOX_COLUMNS_MIN as se,boxPhoneRowOneLine as pe}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as E}from"../../../../../../format/lib/content/box-separator.js";import{group as i,phoneTwinFields as C}from"efficient-easel/screen/lib/document/box-fields";import{boxAlignField as de,boxJustifyField as ce,boxWrapField as N,placementField as Se,select as l,sidesPaddingFields as D,slider as me}from"../../../box-fields.js";import{withRowRules as _e}from"../../../../../../render/lib/document/show-when.js";import{separatorField as he}from"../../../separator-field.js";import{LOOP_SCROLLS as ue}from"../../../../../../format/lib/animation/index.js";import{FlexSlots as fe}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{CARD_BOX_FACTS as Oe,ON_A_CARD as ge,cardDisplayField as Ae}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Re,mirrorCardsField as be}from"../../../mirror-cards-field.js";import{SHARED_COLUMNS_KEY as r,SHARED_COLUMNS_LABEL as L,SHARED_COLUMNS_OFF as x,sharedColumnsDrawn as F,sharedColumnsFits as H,SHARED_COLUMNS_PHONE_POINTS as Ee,SHARED_COLUMNS_POINTS as Ce}from"../../../../../../render/lib/content/box-shared-columns.js";const Ne={field:"bgImage",set:!0},I={field:"phoneRow",in:[2,3]},De={field:"direction",is:"tabs"},Le={field:"line",in:[!0,!1]},xe={field:"anchor",set:!0},T=["fixed","screen"],Fe={not:{any:[{field:"sectionHeightMode",in:T},{field:"sectionHeightModePhone",in:T}]}},He={context:"parent.line",is:!0},m={field:"direction",is:"row",default:"row"},p={not:ue},k={all:[m,p,{not:{field:"separator",in:E.map(e=>e.value)}},{not:{field:"line",is:!0}}]},Ie={all:[p,{not:{all:[m,{field:"separator",in:E.map(e=>e.value)}]}}]},w={not:{all:[k,{field:"columns",in:Array.from({length:re},(e,n)=>n+se)}]}},Te="sharedColumnsFits",B="sharedColumnsMisfit",P="sharedColumnsDraws",y="sharedColumnsPhoneDraws",ke={[Te]:e=>H(e.props??{}),[B]:e=>!H(e.props??{}),[P]:e=>F(e.props??{}).desktop,[y]:e=>F(e.props??{}).phone};function M(e){return{all:[{not:{context:B,is:!0}},{any:[ge,{field:e,set:!0}]}]}}const _={not:{context:P,is:!0}},S={not:{context:y,is:!0}},we={any:[_,S]};function Be(e){return{...e,render:n=>e.render({...n,value:pe(n.value)?"nowrap":"wrap"})}}const to={fields:_e({_gContent:i("Content"),content:fe.content,_gCardDisplay:i("Display"),cardDisplay:Ae(),_gLayout:i("Layout"),direction:oe("Flex"),tabShape:l("Tab shape",o(O,{}),K.map(e=>({label:j[e],value:e})),"tabs"),mirrorCards:be(),label:ie(ae("Tab name")),...te("Flex"),justify:ce(),align:de(),...C("wrap",N(),void 0,{phoneRow:Be(N())}),boxShape:a("desktop",l("Box shape",o(f,{}),[...b],"auto")),[t("boxShape")]:C("boxShape",l("Box shape",o(f,{}),[...b],"auto",{phoneRest:e=>le(e)}))[t("boxShape")],separator:he(o(G,{size:18}),"none"),share:a("desktop",$()),[t("share")]:ee(),[r]:a("desktop",l(L,o(g,{}),[...Ce],x)),[t(r)]:a("mobile",l(L,o(g,{}),[...Ee],x)),...Z(),blockSpacing:q(),line:c("Line",!1,o(Y,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,o(v,{}),"Still to come: a hollow dot, and the gold line stops before it."),_gShadow:i("Shadow"),shadow:c("Shadow",!1,o(z,{})),fillColor:Q(),_gBackground:i("Background image"),bgImage:a("desktop",R("Image","image/*")),bgImagePhone:a("mobile",R("Image","image/*")),darken:me("Darken",o(J,{}),s.min,s.max,s.step,s.fallback,s.unit),darkenStyle:l("Darken style",o(O,{}),u,u[0].value),placement:Se("Content position"),_gLink:i("Link"),link:ne("Link to"),jumpHighlight:c("Highlight when a link jumps here",!1,o(V,{}),"When a link lands on this Box's anchor, the Box gets an accent outline and its first block turns accent.")},[[["darken","darkenStyle","placement"],Ne],[[t("share")],{all:[I,S]}],[[r],M(r)],[[t(r)],M(t(r))],[[t("wrap")],{all:[I,p,S]}],[["phoneRow"],S],[["tabShape"],De],[["separator"],m],[["columns",h("columns")],k],[[h("gap")],Ie],[["justify"],{all:[p,we]}],[["wrap"],{all:[p,w,_]}],[["share"],{all:[w,_]}],[["line"],Le],[["upcoming"],He],[["jumpHighlight"],xe],[["boxShape",t("boxShape")],Fe]]),resolveFields:(e,{fields:n})=>{const U=e.props;if(X(U.bgImage)){const W=D({fallback:{top:d.desktop,bottom:d.desktop,left:d.side,right:d.side},tablet:!0});return A(n,W)}return e.props.padV2!==!0?A(n,D({fallback:{top:24,bottom:24},tablet:!0})):n},showWhenFacts:{...Oe,...Re,...ke}};export{to as FlexFields};
1
+ import{jsx as e}from"react/jsx-runtime";import{phoneKey as n,tabletKey as i}from"efficient-easel/draw";import{BOX_CARD_PAD as d,isBackgroundBox as W}from"../../../../../../format/lib/content/box-background.js";import{darkenFields as X}from"../../../darken-fields.js";import{BOX_TAB_SHAPES as j,REEL_SHAPE_LABELS as K}from"../../../../../../format/lib/reel.js";import{deviceField as r}from"efficient-easel/screen/lib/document/device-fields";import{ClockIcon as v,CropIcon as g,LineBetweenIcon as G,LineSolidIcon as Y,ShadowIcon as J,StylesIcon as V,TableIcon as A,TargetIcon as z}from"efficient-easel/icons";import{boxBlockSpacingField as q,boxFillField as Q,boxColumnsFields as Z,boxShareField as $,boxSharePhoneField as oo,boxShareTabletField as eo,containerDirectionField as to,containerGapRows as no,linkField as io,plainText as ao,swapPadding as O,toggle as c,upload as R,withPanelOnly as lo}from"../../../controls.js";import{BOX_SHAPE_OPTIONS as E,boxShapeOf as ro}from"../../../../../../format/lib/content/box-shape.js";import{BOX_COLUMNS_MAX as b,BOX_COLUMNS_MIN as C,boxPhoneRowOneLine as so}from"../../../../../../format/lib/content/box-layout.js";import{BOX_SEPARATOR_POINTS as F}from"../../../../../../format/lib/content/box-separator.js";import{VIEW_KEY_ACCESS as po,group as a,phoneTwinFields as L}from"efficient-easel/screen/lib/document/box-fields";import{boxAlignField as co,boxJustifyField as mo,boxWrapField as N,placementField as So,select as s,sidesPaddingFields as H}from"../../../box-fields.js";import{withRowRules as _o}from"../../../../../../render/lib/document/show-when.js";import{separatorField as ho}from"../../../separator-field.js";import{LOOP_SCROLLS as fo}from"../../../../../../format/lib/animation/index.js";import{FlexSlots as uo}from"../../../../../../format/lib/document/blocks/general/Flex/meta.js";import{CARD_BOX_FACTS as go,ON_A_CARD as Ao,cardDisplayField as Oo}from"../../../card-display-chips.js";import{MIRROR_CARDS_FACTS as Ro,mirrorCardsField as Eo}from"../../../mirror-cards-field.js";import{SHARED_COLUMNS_KEY as l,SHARED_COLUMNS_LABEL as T,SHARED_COLUMNS_OFF as D,sharedColumnsDrawn as x,sharedColumnsFits as I,SHARED_COLUMNS_PHONE_POINTS as bo,SHARED_COLUMNS_POINTS as Co}from"../../../../../../render/lib/content/box-shared-columns.js";const Fo={field:"bgImage",set:!0},w={field:"phoneRow",in:[2,3]},Lo={field:"direction",is:"tabs"},No={field:"line",in:[!0,!1]},Ho={field:"anchor",set:!0},h=["fixed","screen"],To={not:{any:[{field:"sectionHeightMode",in:h},{field:"sectionHeightModeTablet",in:h},{field:"sectionHeightModePhone",in:h}]}},Do={context:"parent.line",is:!0},f={field:"direction",is:"row",default:"row"},p={not:fo},u={all:[f,p,{not:{field:"separator",in:F.map(o=>o.value)}},{not:{field:"line",is:!0}}]},xo={all:[u,...["columns",i("columns")].map(o=>({not:{field:o,in:Array.from({length:b},(t,_)=>_+C)}}))]},Io={all:[p,{not:{all:[f,{field:"separator",in:F.map(o=>o.value)}]}}]},k={not:{all:[u,{field:"columns",in:Array.from({length:b},(o,t)=>t+C)}]}},wo="sharedColumnsFits",P="sharedColumnsMisfit",B="sharedColumnsDraws",M="sharedColumnsPhoneDraws",ko={[wo]:o=>I(o.props??{}),[P]:o=>!I(o.props??{}),[B]:o=>x(o.props??{}).desktop,[M]:o=>x(o.props??{}).phone};function y(o){return{all:[{not:{context:P,is:!0}},{any:[Ao,{field:o,set:!0}]}]}}const m={not:{context:B,is:!0}},S={not:{context:M,is:!0}},Po={any:[m,S]};function Bo(o){return{...o,render:t=>o.render({...t,value:so(t.value)?"nowrap":"wrap"})}}const ie={fields:_o({_gContent:a("Content"),content:uo.content,_gCardDisplay:a("Display"),cardDisplay:Oo(),_gLayout:a("Layout"),direction:to("Flex"),tabShape:s("Tab shape",e(V,{}),j.map(o=>({label:K[o],value:o})),"tabs"),mirrorCards:Eo(),label:lo(ao("Tab name")),...no("Flex"),justify:mo(),align:co(),...L("wrap",N(),void 0,{phoneRow:Bo(N())}),...L("boxShape",s("Box shape",e(g,{}),[...E],"auto"),po,{phoneRow:s("Box shape",e(g,{}),[...E],"auto",{phoneRest:o=>ro(o)})}),separator:ho(e(G,{size:18}),"none"),share:r("desktop",$()),[i("share")]:eo(),[n("share")]:oo(),[l]:r("desktop",s(T,e(A,{}),[...Co],D)),[n(l)]:r("mobile",s(T,e(A,{}),[...bo],D)),...Z(),blockSpacing:q(),line:c("Line",!1,e(Y,{}),"A line across the blocks, with a dot on each."),upcoming:c("Upcoming",!1,e(v,{}),"Still to come: a hollow dot, and the gold line stops before it."),_gShadow:a("Shadow"),shadow:c("Shadow",!1,e(J,{})),fillColor:Q(),_gBackground:a("Background image"),bgImage:r("desktop",R("Image","image/*")),bgImagePhone:r("mobile",R("Image","image/*")),...X(),placement:So("Content position"),_gLink:a("Link"),link:io("Link to"),jumpHighlight:c("Highlight when a link jumps here",!1,e(z,{}),"When a link lands on this Box's anchor, the Box gets an accent outline and its first block turns accent.")},[[["darken","darkenStyle","placement"],Fo],[[n("share")],{all:[w,S]}],[[l],y(l)],[[n(l)],y(n(l))],[[n("wrap")],{all:[w,p,S]}],[["phoneRow"],S],[["tabShape"],Lo],[["separator"],f],[["columns",i("columns")],u],[[i("gap")],Io],[["justify"],{all:[p,Po]}],[["wrap"],{all:[p,k,m]}],[["share"],{all:[k,m]}],[[i("share")],{all:[xo,m]}],[["line"],No],[["upcoming"],Do],[["jumpHighlight"],Ho],[["boxShape",i("boxShape"),n("boxShape")],To]]),resolveFields:(o,{fields:t})=>{const _=o.props;if(W(_.bgImage)){const U=H({fallback:{top:d.desktop,bottom:d.desktop,left:d.side,right:d.side},tablet:!0});return O(t,U)}return o.props.padV2!==!0?O(t,H({fallback:{top:24,bottom:24},tablet:!0})):t},showWhenFacts:{...go,...Ro,...ko}};export{ie as FlexFields};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{REEL_PLACEMENT_DEFAULT as m,REEL_SHAPE_DEFAULT as d,HERO_REEL_SHAPES as A,REEL_SHAPE_LABELS as R,REEL_SHOWN_DEFAULT as P}from"../../../../../../format/lib/reel.js";import{DEFAULT_TINT as O}from"../../../../../../format/lib/content/tint.js";import{HERO_TEXTURE_SHOWN_DEFAULT as L}from"../../../../../../format/lib/hero-texture.js";import{HERO_ARROW_SHAPE_DEFAULT as u,HERO_ARROW_SHAPE_LABELS as H,HERO_ARROW_SHAPES as h,HERO_ARROWS_PLACEMENT_DEFAULT as w,HERO_ARROWS_SHOWN_DEFAULT as I}from"../../../../../../format/lib/hero-arrows.js";import{ClockIcon as T,EyeIcon as t,OpacityIcon as k,PhoneIcon as s,PlayIcon as D,SlideArrowsBareIcon as f,SlideArrowsRoundIcon as g,SlideArrowsSquareIcon as U,SlidePickerBarIcon as F,SlidePickerCardsIcon as y,SlidePickerDotsIcon as N,SlidePickerNumbersIcon as b,SlidePickerSquaresIcon as W,SquareIcon as E}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as x}from"efficient-shell/icons/efficient-looks";const C=x,B={cards:e(y,{}),dots:e(N,{}),numbers:e(b,{}),bar:e(F,{}),squares:e(W,{})},q={outline:e(g,{}),solid:e(C,{}),square:e(U,{}),bare:e(f,{})};import{colorInput as M,toggle as i}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{alignmentField as j,iconPickerRow as c,placementField as n,segmented as p,slider as _}from"../../../box-fields.js";import{deviceField as l,deviceNote as Y}from"efficient-easel/screen/lib/document/device-fields";import{HERO_PHONE_SIDEWAYS_DEFAULT as v,HERO_PHONE_SIDEWAYS_LABEL as K,HERO_PHONE_UPDOWN_DEFAULT as X,HERO_PHONE_UPDOWN_LABEL as z,phoneSidewaysPoints as G,phoneUpDownPoints as J}from"../../../../../../format/lib/hero-phone-stack.js";import{heightField as S}from"../../shared-fields.js";import{HeroSlots as a}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const pe={fields:{_dDevice:Y(),_gContent:o("Content"),slides:a.slides,strip:a.strip,_gStyle:o("Style"),alignment:j(),_gTexture:o("Texture"),showTexture:i("Show texture",L,e(t,{})),textureColor:M("Texture color",O),textureOpacity:_("Texture opacity",e(k,{}),0,100,1,40,"%"),_gLayout:o("Layout"),heightDesktop:S("desktop"),heightMobile:S("mobile"),_gAutoplay:o("Auto-slide"),autoplay:i("Auto-advance slides",!1,e(D,{})),autoplayInterval:_("Still time per slide",e(T,{}),2,15,1,6,"s"),_gPicker:o("Slide picker"),showPicker:i("Show slide picker",P,e(t,{})),pickerShape:c("Slide picker shape",e(E,{}),A.map(r=>({label:R[r],value:r,picture:B[r]})),d),pickerPlacement:n("Slide picker placement",{fallback:m}),_gArrows:o("Arrows"),showArrows:i("Show arrows",I,e(t,{})),arrowsShape:c("Arrows shape",e(E,{}),h.map(r=>({label:H[r],value:r,picture:q[r]})),u),arrowsPlacement:n("Arrows placement",{fallback:w}),_gPhone:l("mobile",o("On a phone")),phoneUpDown:l("mobile",p(z,e(s,{}),J(),X)),phoneSideways:l("mobile",p(K,e(s,{}),G(),v))}};export{pe as HeroFields};
1
+ import{jsx as e}from"react/jsx-runtime";import{REEL_PLACEMENT_DEFAULT as m,REEL_SHAPE_DEFAULT as d,HERO_REEL_SHAPES as A,REEL_SHAPE_LABELS as R,REEL_SHOWN_DEFAULT as O}from"../../../../../../format/lib/reel.js";import{HERO_TEXTURE_SHOWN_DEFAULT as P}from"../../../../../../format/lib/hero-texture.js";import{HERO_ARROW_SHAPE_DEFAULT as H,HERO_ARROW_SHAPE_LABELS as L,HERO_ARROW_SHAPES as u,HERO_ARROWS_PLACEMENT_DEFAULT as h,HERO_ARROWS_SHOWN_DEFAULT as w}from"../../../../../../format/lib/hero-arrows.js";import{ClockIcon as I,EyeIcon as t,OpacityIcon as T,PhoneIcon as s,PlayIcon as k,SlideArrowsBareIcon as f,SlideArrowsRoundIcon as D,SlideArrowsSquareIcon as g,SlidePickerBarIcon as U,SlidePickerCardsIcon as y,SlidePickerDotsIcon as F,SlidePickerNumbersIcon as W,SlidePickerSquaresIcon as b,SquareIcon as E}from"efficient-easel/icons";import{SlideArrowsRoundSolidIcon as N}from"efficient-shell/icons/efficient-looks";const C=N,x={cards:e(y,{}),dots:e(F,{}),numbers:e(W,{}),bar:e(U,{}),squares:e(b,{})},B={outline:e(D,{}),solid:e(C,{}),square:e(g,{}),bare:e(f,{})};import{toggle as i}from"../../../controls.js";import{HERO_TEXTURE_COLOR_ROW as q}from"../../hero-shared-fields.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{alignmentField as M,iconPickerRow as _,placementField as n,segmented as c,slider as p}from"../../../box-fields.js";import{deviceField as l,deviceNote as j}from"efficient-easel/screen/lib/document/device-fields";import{HERO_PHONE_SIDEWAYS_DEFAULT as X,HERO_PHONE_SIDEWAYS_LABEL as Y,HERO_PHONE_UPDOWN_DEFAULT as v,HERO_PHONE_UPDOWN_LABEL as K,phoneSidewaysPoints as z,phoneUpDownPoints as G}from"../../../../../../format/lib/hero-phone-stack.js";import{heightField as S}from"../../shared-fields.js";import{HeroSlots as a}from"../../../../../../format/lib/document/blocks/general/Hero/meta.js";const ne={fields:{_dDevice:j(),_gContent:o("Content"),slides:a.slides,strip:a.strip,_gStyle:o("Style"),alignment:M(),_gTexture:o("Texture"),showTexture:i("Show texture",P,e(t,{})),textureColor:q,textureOpacity:p("Texture opacity",e(T,{}),0,100,1,40,"%"),_gLayout:o("Layout"),heightDesktop:S("desktop"),heightMobile:S("mobile"),_gAutoplay:o("Auto-slide"),autoplay:i("Auto-advance slides",!1,e(k,{})),autoplayInterval:p("Still time per slide",e(I,{}),2,15,1,6,"s"),_gPicker:o("Slide picker"),showPicker:i("Show slide picker",O,e(t,{})),pickerShape:_("Slide picker shape",e(E,{}),A.map(r=>({label:R[r],value:r,picture:x[r]})),d),pickerPlacement:n("Slide picker placement",{fallback:m}),_gArrows:o("Arrows"),showArrows:i("Show arrows",w,e(t,{})),arrowsShape:_("Arrows shape",e(E,{}),u.map(r=>({label:L[r],value:r,picture:B[r]})),H),arrowsPlacement:n("Arrows placement",{fallback:h}),_gPhone:l("mobile",o("On a phone")),phoneUpDown:l("mobile",c(K,e(s,{}),G(),v)),phoneSideways:l("mobile",c(Y,e(s,{}),z(),X))}};export{ne as HeroFields};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{BlockVideoIcon as c,ClockIcon as p,ImageIcon as g,MediaIcon as s,OpacityIcon as u,PlayIcon as v}from"efficient-easel/icons";import{colorInput as f,focusKeptField as i,loadingShowsField as I,MEDIA_TYPE_OPTIONS as y,plainText as _,text as S,upload as a,withIdentifier as O,withPanelOnly as m}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{segmented as E,slider as t}from"../../../box-fields.js";import{LOADING_SHOWS_IMAGE as F,VIDEO_PLAYBACK_DEFAULT as P,VIDEO_SOURCE_DEFAULT as l}from"../../../../../../format/lib/hero-video.js";import{HERO_SLIDE_OVERLAY_ROWS as n,HERO_VIDEO_ROWS as d}from"../../hero-shared-fields.js";import{PH as T}from"../../../../../../format/lib/document/blocks/placeholders.js";import{slotNoticeField as b}from"../../shared-fields.js";import{forMediaType as L,heroMediaFields as D,VIDEO_FILE_LABEL as h,VIDEO_FILE_PROMPT as k}from"../../../../../../render/lib/document/hero-media-parts.js";import{DEFAULT_TINT as A}from"../../../../../../format/lib/content/tint.js";import{HeroSlideSlots as C}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";const r=L("video","video"),G={fields:D({_gContent:o("Content"),name:m(O(_("Slide name",T.slideName))),process:m(S("Reel label","Label")),groupNotice:b("HeroSlide"),groups:C.groups,_gMedia:o("Media"),mediaType:E("Type",e(s,{}),y,"video"),videoSource:d.videoSource,mediaVideo:a(h,"video/*",k,{frame:"videoFrame"}),youtubeUrl:d.youtubeUrl,videoPlayback:d.videoPlayback,videoSpeed:t("Playback speed",e(v,{}),25,100,5,100,"%"),loadingShows:I("Show while loading",e(p,{}),{frame:e(c,{}),image:e(g,{})}),videoFrame:i(),mediaImage:a("Background image","image/*","Upload a background image",{focus:"imageFocal"}),imageFocal:i(),imageFocalPhone:i(),poster:a("Image","image/*","Choose an image"),_gTint:o("Image tint"),tintColor:f("Tint color",A),overlay:t("Overlay",e(u,{}),0,100,5,0,"%"),_gOverlay:o("Overlay"),overlayColor:n.overlayColor,overlayPosition:n.overlayPosition},{onlyFor:{image:["mediaImage","imageFocal","imageFocalPhone","_gTint","tintColor","overlay"],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:"video",rules:{mediaVideo:{all:[r,{field:"videoSource",is:"upload",default:l}]},youtubeUrl:{all:[r,{field:"videoSource",is:"youtube",default:l}]},videoSpeed:{all:[r,{field:"videoSource",is:"upload",default:l},{field:"videoPlayback",is:"background",default:P}]},poster:{all:[{field:"mediaType",is:"video",default:"video"},F]}}})};export{G as HeroSlideFields};
1
+ import{jsx as e}from"react/jsx-runtime";import{BlockVideoIcon as c,ClockIcon as p,ImageIcon as g,MediaIcon as s,OpacityIcon as u,PlayIcon as v}from"efficient-easel/icons";import{colorInput as f,focusKeptField as i,loadingShowsField as I,MEDIA_TYPE_OPTIONS as y,plainText as _,text as S,upload as a,withIdentifier as O,withPanelOnly as m}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{segmented as E,slider as t}from"../../../box-fields.js";import{LOADING_SHOWS_IMAGE as F,VIDEO_PLAYBACK_DEFAULT as P,VIDEO_SOURCE_DEFAULT as l}from"../../../../../../format/lib/hero-video.js";import{HERO_SLIDE_OVERLAY_ROWS as n,HERO_VIDEO_ROWS as d}from"../../hero-shared-fields.js";import{PH as T}from"../../../../../../format/lib/document/blocks/placeholders.js";import{slotNoticeField as b}from"../../shared-fields.js";import{forMediaType as L,heroMediaFields as D,VIDEO_FILE_LABEL as h,VIDEO_FILE_PROMPT as k}from"../../../../../../render/lib/document/hero-media-parts.js";import{DEFAULT_TINT as A}from"../../../../../../format/lib/content/tint.js";import{HeroSlideSlots as C}from"../../../../../../format/lib/document/blocks/general/HeroSlide/meta.js";const r=L("video","video"),G={fields:D({_gContent:o("Content"),name:m(O(_("Slide name",T.slideName))),process:m(S("Reel label","Label")),groupNotice:b("HeroSlide"),groups:C.groups,_gMedia:o("Media"),mediaType:E("Type",e(s,{}),y,"video"),videoSource:d.videoSource,mediaVideo:a(h,"video/*",k,{frame:"videoFrame"}),youtubeUrl:d.youtubeUrl,videoPlayback:d.videoPlayback,videoSpeed:t("Playback speed",e(v,{}),25,100,5,100,"%"),loadingShows:I("Show while loading",e(p,{}),{frame:e(c,{}),image:e(g,{})}),videoFrame:i(),mediaImage:a("Background image","image/*","Upload a background image",{focus:"imageFocal"}),imageFocal:i(),imageFocalPhone:i(),poster:a("Image","image/*","Choose an image"),_gTint:o("Image tint"),tintColor:f("Tint color",A),overlay:t("Tint",e(u,{}),0,100,5,0,"%"),_gOverlay:o("Overlay"),overlayColor:n.overlayColor,overlayPosition:n.overlayPosition},{onlyFor:{image:["mediaImage","imageFocal","imageFocalPhone","_gTint","tintColor","overlay"],video:["videoSource","videoPlayback","loadingShows","videoFrame"]},fallback:"video",rules:{mediaVideo:{all:[r,{field:"videoSource",is:"upload",default:l}]},youtubeUrl:{all:[r,{field:"videoSource",is:"youtube",default:l}]},videoSpeed:{all:[r,{field:"videoSource",is:"upload",default:l},{field:"videoPlayback",is:"background",default:P}]},poster:{all:[{field:"mediaType",is:"video",default:"video"},F]}}})};export{G as HeroSlideFields};
@@ -1 +1 @@
1
- import{jsx as i}from"react/jsx-runtime";import{IMAGE_FIT_ROW_LABEL as r,imageFitOptions as t,imageIsCropped as s,parseImageFit as m}from"../../../../../../format/lib/content/image-fit.js";import{ImageIcon as c}from"efficient-easel/icons";import{focusKeptField as a,imageCornersField as p,linkField as f,plainText as d,cornerSidesField as g,upload as n,withPanelOnly as F}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{select as u}from"../../../box-fields.js";import{photographyToggle as h}from"../../shared-fields.js";import{CARD_ROW_FACTS as I,cardRowField as _,cardRowFields as v}from"../../../card-row-fields.js";const O={fields:{_gImage:o("Image"),src:n("Image","image/*",void 0,{focus:"focal",focusWhen:e=>s(e.aspect,m(e.fit,"cover"))}),alt:F(d("Alt text")),rowField:_("Shows","image"),aspect:{type:"select",label:"Aspect ratio",options:[{label:"Auto",value:"auto"},{label:"21 : 9",value:"21/9"},{label:"16 : 9",value:"16/9"},{label:"4 : 3",value:"4/3"},{label:"1 : 1",value:"1/1"}]},fit:u(r,i(c,{}),t(),"cover"),focal:a(),focalPhone:a(),href:f("Link"),_gStyle:o("Style"),grayscale:h(),_gShape:o("Shape"),corners:p(),cornerSides:g()},resolveFields:(e,l)=>v(l.fields,e,l),showWhenFacts:I};export{O as ImageBlockFields};
1
+ import{jsx as i}from"react/jsx-runtime";import{IMAGE_FIT_ROW_LABEL as t,imageFitOptions as a,imageIsCropped as m,parseImageFit as s}from"../../../../../../format/lib/content/image-fit.js";import{ImageIcon as c}from"efficient-easel/icons";import{focusKeptField as r,imageCornersField as f,linkField as p,plainText as d,cornerSidesField as g,upload as n,withPanelOnly as F}from"../../../controls.js";import{group as l}from"efficient-easel/screen/lib/document/box-fields";import{select as u}from"../../../box-fields.js";import{photographyToggle as h}from"../../shared-fields.js";import{CARD_ROW_FACTS as I,cardRowField as _,cardRowFields as v}from"../../../card-row-fields.js";import{offerNextPicture as S}from"../../../../animation/hover-fields.js";import{darkenFields as A}from"../../../darken-fields.js";const L={fields:{_gImage:l("Image"),src:n("Image","image/*",void 0,{focus:"focal",focusWhen:e=>m(e.aspect,s(e.fit,"cover"))}),alt:F(d("Alt text")),rowField:_("Shows","image"),aspect:{type:"select",label:"Aspect ratio",options:[{label:"Auto",value:"auto"},{label:"21 : 9",value:"21/9"},{label:"16 : 9",value:"16/9"},{label:"4 : 3",value:"4/3"},{label:"1 : 1",value:"1/1"}]},fit:u(t,i(c,{}),a(),"cover"),focal:r(),focalPhone:r(),href:p("Link"),_gStyle:l("Style"),grayscale:h(),...A(),_gShape:l("Shape"),corners:f(),cornerSides:g()},resolveFields:(e,o)=>S(v(o.fields,e,o),e,o),showWhenFacts:I};export{L as ImageBlockFields};
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{BOX_DARKEN as t,BOX_DARKEN_STYLES as i}from"../../../../../../format/lib/content/box-background.js";import{POST_CARD_HEIGHT as o,POST_CARD_LAYOUT_FALLBACK as s,POST_CARD_LAYOUTS as p}from"../../../../../../format/lib/post-card-layout.js";import O from"../../../../../components/BlogPostSource.js";import{HeightIcon as _,ImageIcon as d,LayoutIcon as g,OpacityIcon as f,StylesIcon as C}from"efficient-easel/icons";import{NOT_BOUND_TO_POST as T,linkField as u,sourceField as S,text as a,textarea as m,toggle as R,upload as x}from"../../../controls.js";import{group as y}from"efficient-easel/screen/lib/document/box-fields";import{placementField as D,select as n,slider as l}from"../../../box-fields.js";import{withRowRules as h}from"../../../../../../render/lib/document/show-when.js";import{POSTCARD_PH as r}from"../../../../../../format/lib/document/blocks/general/PostCard/meta.js";const c={field:"layout",is:"cover"},k={not:c},A=["placement","darken","darkenStyle","minHeight","_gTint"],E=["showCover"],L=["image","title","excerpt","href"],V={fields:h({source:S(O),image:x("Cover image","image/*"),title:m("Heading",r.title),excerpt:m("Excerpt",r.excerpt),href:u("Link"),category:a("Category",r.category),date:a("Date",r.date),readLabel:a("Read time",r.readLabel),layout:n("Card layout",e(g,{}),p,s),showCover:R("Show cover image",!0,e(d,{})),placement:D("Text position"),minHeight:l("Card height",e(_,{}),o.min,o.max,o.step,o.fallback,o.unit),_gTint:y("Image tint"),darken:l("Darken",e(f,{}),t.min,t.max,t.step,t.fallback,t.unit),darkenStyle:n("Darken style",e(C,{}),i,i[0].value)},[[A,c],[E,k],[L,T]])};export{V as PostCardFields};
1
+ import{jsx as o}from"react/jsx-runtime";import{darkenFields as m}from"../../../darken-fields.js";import{POST_CARD_HEIGHT as e,POST_CARD_LAYOUT_FALLBACK as l,POST_CARD_LAYOUTS as n}from"../../../../../../format/lib/post-card-layout.js";import c from"../../../../../components/BlogPostSource.js";import{HeightIcon as s,ImageIcon as p,LayoutIcon as d}from"efficient-easel/icons";import{NOT_BOUND_TO_POST as g,linkField as O,sourceField as _,text as r,textarea as i,toggle as C,upload as f}from"../../../controls.js";import{group as T}from"efficient-easel/screen/lib/document/box-fields";import{placementField as u,select as h,slider as x}from"../../../box-fields.js";import{withRowRules as R}from"../../../../../../render/lib/document/show-when.js";import{POSTCARD_PH as t}from"../../../../../../format/lib/document/blocks/general/PostCard/meta.js";const a={field:"layout",is:"cover"},S={not:a},L=["placement","darken","darkenStyle","minHeight","_gTint"],y=["showCover"],A=["image","title","excerpt","href"],B={fields:R({source:_(c),image:f("Cover image","image/*"),title:i("Heading",t.title),excerpt:i("Excerpt",t.excerpt),href:O("Link"),category:r("Category",t.category),date:r("Date",t.date),readLabel:r("Read time",t.readLabel),layout:h("Card layout",o(d,{}),n,l),showCover:C("Show cover image",!0,o(p,{})),placement:u("Text position"),minHeight:x("Card height",o(s,{}),e.min,e.max,e.step,e.fallback,e.unit),_gTint:T("Image tint"),...m()},[[L,a],[y,S],[A,g]])};export{B as PostCardFields};
@@ -1 +1 @@
1
- import{backgroundField as s,copyText as r,plainTextarea as o,text as d,textarea as i}from"../../../controls.js";import{group as a}from"efficient-easel/screen/lib/document/box-fields";import{SPLITTABLE_SECTIONS as m,headFieldsForPlacement as n}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_BG_BUILT_IN as u}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{SERIES_PH as t}from"../../../../../../format/lib/document/blocks/general/Series/meta.js";const h={fields:{_gHead:a("Section header"),headNum:d("Number",t.headNum),headTitle:i("Heading",t.headTitle),headDesc:i("Body",t.headDesc),_gCards:a("Cards"),cards:{type:"array",label:"Cards",arrayFields:{num:r("Number"),since:r("Right Top Text"),title:o("Title"),desc:o("Body"),entries:r("Entries count"),entriesLabel:r("Button Right Text")},getItemSummary:e=>e?.title||(e?.num?`Column ${e.num}`:"Column")},_gViewLabel:a("Card link"),viewLabel:d("Card button",t.viewLabel),_gStyle:a("Style"),background:s("Background color",u.Series)},resolveFields:(e,{fields:l})=>n(l,e.props.headPlacement,m.Series.headRows)};export{h as SeriesFields};
1
+ import{backgroundField as s,copyText as r,plainTextarea as o,text as d,textarea as i}from"../../../controls.js";import{group as t}from"efficient-easel/screen/lib/document/box-fields";import{SPLITTABLE_SECTIONS as m,headFieldsForPlacement as n}from"../../../../../../format/lib/sections/section-head-placement.js";import{SECTION_BG_BUILT_IN as u}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{SERIES_PH as a}from"../../../../../../format/lib/document/blocks/general/Series/meta.js";const h={fields:{_gHead:t("Section header"),headNum:d("Number",a.headNum),headTitle:i("Heading",a.headTitle),headDesc:i("Body",a.headDesc),_gCards:t("Cards"),cards:{type:"array",label:"Cards",arrayFields:{num:r("Number"),since:r("Right Top Text"),title:o("Title"),desc:o("Body"),entries:r("Entries count"),entriesLabel:r("Button Right Text")},getItemSummary:e=>e?.title||(e?.num?`Column ${e.num}`:"Column")},_gViewLabel:t("Card link"),viewLabel:d("Card button",a.viewLabel),_gStyle:t("Style"),background:s("Background color",u.Series,!0)},resolveFields:(e,{fields:l})=>n(l,e.props.headPlacement,m.Series.headRows)};export{h as SeriesFields};
@@ -1 +1 @@
1
- import{jsx as s}from"react/jsx-runtime";import{AccentIcon as i}from"efficient-easel/icons";import{backgroundField as p,plainText as e,plainTextarea as m,text as f,textarea as t,toggle as d}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{SPLITTABLE_SECTIONS as n,headFieldsForPlacement as u}from"../../../../../../format/lib/sections/section-head-placement.js";import{innerSpacingFields as S}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as g}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{STATS_PARAGRAPH_PH as r}from"../../../../../../format/lib/document/blocks/general/StatsParagraph/meta.js";const A={fields:{_gContent:o("Content"),eyebrow:f("Eyebrow",r.eyebrow),title:t("Heading",r.title),desc:t("Body",r.desc),stats:{type:"array",label:"Stats",arrayFields:{value:e("Number"),prefix:e("Prefix"),suffix:e("Unit"),supSuffix:e("Superscript"),emphasizeAll:d("Whole number Theme Color",!1,s(i,{})),label:e("Label"),sub:m("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:a=>a.label||a.value||"Stat"},_gStyle:o("Style"),background:p("Background color",g.StatsParagraph),...S("StatsParagraph")},resolveFields:(a,{fields:l})=>u(l,a.props.headPlacement,n.StatsParagraph.headRows)};export{A as StatsParagraphFields};
1
+ import{jsx as s}from"react/jsx-runtime";import{AccentIcon as i}from"efficient-easel/icons";import{backgroundField as p,plainText as e,plainTextarea as m,text as f,textarea as t,toggle as u}from"../../../controls.js";import{group as o}from"efficient-easel/screen/lib/document/box-fields";import{SPLITTABLE_SECTIONS as d,headFieldsForPlacement as n}from"../../../../../../format/lib/sections/section-head-placement.js";import{innerSpacingFields as S}from"../../shared-fields.js";import{SECTION_BG_BUILT_IN as g}from"../../../../../../format/lib/document/blocks/general/section-bg-built-in.js";import{STATS_PARAGRAPH_PH as r}from"../../../../../../format/lib/document/blocks/general/StatsParagraph/meta.js";const A={fields:{_gContent:o("Content"),eyebrow:f("Eyebrow",r.eyebrow),title:t("Heading",r.title),desc:t("Body",r.desc),stats:{type:"array",label:"Stats",arrayFields:{value:e("Number"),prefix:e("Prefix"),suffix:e("Unit"),supSuffix:e("Superscript"),emphasizeAll:u("Whole number Theme Color",!1,s(i,{})),label:e("Label"),sub:m("Body")},defaultItemProps:{value:"",prefix:"",suffix:"",supSuffix:"",emphasizeAll:!1,label:"",sub:""},getItemSummary:a=>a.label||a.value||"Stat"},_gStyle:o("Style"),background:p("Background color",g.StatsParagraph,!0),...S("StatsParagraph")},resolveFields:(a,{fields:l})=>n(l,a.props.headPlacement,d.StatsParagraph.headRows)};export{A as StatsParagraphFields};
@@ -1,2 +1,2 @@
1
- export declare const assembleGeneralBlocks: () => Record<"Grid" | "HeroGroup" | "HeroSlide" | "Text" | "Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "StatsParagraph" | "Chart" | "Mockup" | "Testimonials" | "Logos" | "Banner" | "TitleWithButtons" | "Countdown" | "Masthead" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocMasthead" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "Heading" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ButtonBlock" | "PostCard" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
2
- export declare const generalBlocks: Record<"Grid" | "HeroGroup" | "HeroSlide" | "Text" | "Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "StatsParagraph" | "Chart" | "Mockup" | "Testimonials" | "Logos" | "Banner" | "TitleWithButtons" | "Countdown" | "Masthead" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocMasthead" | "DocBody" | "FAQ" | "ContactLocations" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Manifesto" | "Split" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "Heading" | "Eyebrow" | "ImageBlock" | "LogoBlock" | "LocationMap" | "Contents" | "ButtonBlock" | "PostCard" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
1
+ export declare const assembleGeneralBlocks: () => Record<"ImageBlock" | "Manifesto" | "Split" | "ContactLocations" | "Grid" | "HeroGroup" | "HeroSlide" | "Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "StatsParagraph" | "Chart" | "Mockup" | "Testimonials" | "Logos" | "Banner" | "TitleWithButtons" | "Countdown" | "Masthead" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocMasthead" | "DocBody" | "FAQ" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "Heading" | "Text" | "Eyebrow" | "LogoBlock" | "LocationMap" | "Contents" | "ButtonBlock" | "PostCard" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
2
+ export declare const generalBlocks: Record<"ImageBlock" | "Manifesto" | "Split" | "ContactLocations" | "Grid" | "HeroGroup" | "HeroSlide" | "Hero" | "HeroSingle" | "IntroBleed" | "ProcessSteps" | "OrderSummary" | "PaymentBadges" | "Footprint" | "Prose" | "ParagraphsA" | "Cards" | "Stats" | "StatsParagraph" | "Chart" | "Mockup" | "Testimonials" | "Logos" | "Banner" | "TitleWithButtons" | "Countdown" | "Masthead" | "FeaturedCover" | "LongRead" | "Breadcrumb" | "CategoryBar" | "DocTabs" | "DocMasthead" | "DocBody" | "FAQ" | "SectionHeader" | "Flex" | "Divider" | "CustomHTML" | "Ticker" | "SpecStrip" | "TimelineTrack" | "Timeline" | "Spacer" | "KeyFeatures" | "Series" | "DocMetaCards" | "Heading" | "Text" | "Eyebrow" | "LogoBlock" | "LocationMap" | "Contents" | "ButtonBlock" | "PostCard" | "Integrations", import("efficient-easel/blocks").ComponentConfig<any, any, Omit<import("efficient-easel/blocks").ComponentData<any, string, Record<string, import("efficient-easel/blocks").DefaultComponentProps>>, "type">>>;
@@ -4,6 +4,8 @@ export declare const HERO_OVERLAY_ROWS: {
4
4
  overlayPosition: CustomField<string>;
5
5
  };
6
6
  export declare function textureColorOfSlide(appState: unknown, slideId: unknown): string | undefined;
7
+ export declare function textureColorHint(slides: unknown): string | undefined;
8
+ export declare const HERO_TEXTURE_COLOR_ROW: CustomField<string>;
7
9
  export declare const HERO_SLIDE_OVERLAY_ROWS: {
8
10
  overlayColor: CustomField<string>;
9
11
  overlayPosition: CustomField<string>;
@@ -1 +1 @@
1
- import{jsx as r,Fragment as v}from"react/jsx-runtime";import{PlacementIcon as i,PlayIcon as P,UploadIcon as f}from"efficient-easel/icons";import{useEasel as A}from"efficient-easel/easel";import{colorInput as I,edgePad as s,plainText as L,useSelectedSibling as c}from"../controls.js";import{InheritedColourRow as C}from"../ColourControl.js";import{segmented as O}from"../box-fields.js";import{DEFAULT_TINT as R}from"../../../../format/lib/content/tint.js";import{say as d}from"../../../../format/lib/editor-words.js";import{nonEmptyString as m}from"../../../../format/lib/non-empty-string.js";import{findParentNode as T}from"../../../../format/lib/document/passes/document-position.js";import{DEFAULT_OVERLAY_POSITION as p,OVERLAY_POSITION_OPTIONS as u,slideOverlayState as n}from"../../../../format/lib/sections/hero-overlay.js";import{VIDEO_PLAYBACK_DEFAULT as h,VIDEO_PLAYBACK_LABELS as D,VIDEO_PLAYBACKS as w,VIDEO_SOURCE_DEFAULT as x,VIDEO_SOURCE_LABELS as V,VIDEO_SOURCES as b}from"../../../../format/lib/hero-video.js";const Z={overlayColor:I("Overlay color",R),overlayPosition:s("Overlay position",u,p,"A corner would need a diagonal ramp, which this overlay does not draw.",r(i,{}))},y="Texture",E=o=>s("Overlay position",u,o,"A corner would need a diagonal ramp, which this overlay does not draw.",r(i,{}),void 0,y);function g(){try{const{appState:o,selectedItem:e}=A(t=>t);return U(o,e?.props?.id)}catch{return}}function U(o,e){return m(T(o,e)?.props?.textureColor)}function F({value:o,onChange:e}){const[t]=c("overlayPosition"),S=g(),l=m(o)??"",_=n({overlayColor:l,overlayPosition:t},S),a=n({overlayPosition:t});return r(C,{label:d("Overlay color"),value:l,inherited:_.color,resetTo:a.own?a.color:d(y),onChange:e,onReset:()=>e("")})}const Y=E(p),N=E("");function W(o){const[e]=c("overlayColor"),t=n({overlayColor:e,overlayPosition:o.value}).own?Y:N;return r(v,{children:t.render(o)})}const $={overlayColor:{type:"custom",render:({value:o,onChange:e})=>r(F,{value:o,onChange:e})},overlayPosition:{type:"custom",render:({value:o,onChange:e})=>r(W,{value:o,onChange:e})}},oo={videoSource:O("Source",r(f,{}),b.map(o=>({label:V[o],value:o})),x),youtubeUrl:L("YouTube link","https://youtu.be/…"),videoPlayback:O("Playback",r(P,{}),w.map(o=>({label:D[o],value:o})),h)};export{Z as HERO_OVERLAY_ROWS,$ as HERO_SLIDE_OVERLAY_ROWS,oo as HERO_VIDEO_ROWS,U as textureColorOfSlide};
1
+ import{jsx as r,Fragment as S}from"react/jsx-runtime";import{PlacementIcon as c,PlayIcon as f,UploadIcon as C}from"efficient-easel/icons";import{useEasel as R}from"efficient-easel/easel";import{colorInput as A,edgePad as u,plainText as L,useSelectedSibling as a}from"../controls.js";import{ColourRow as P,InheritedColourRow as I}from"../ColourControl.js";import{segmented as d}from"../box-fields.js";import{DEFAULT_TINT as O}from"../../../../format/lib/content/tint.js";import{say as n}from"../../../../format/lib/editor-words.js";import{nonEmptyString as i}from"../../../../format/lib/non-empty-string.js";import{findParentNode as T}from"../../../../format/lib/document/passes/document-position.js";import{DEFAULT_OVERLAY_POSITION as p,OVERLAY_POSITION_OPTIONS as m,slideOverlayState as y}from"../../../../format/lib/sections/hero-overlay.js";import{VIDEO_PLAYBACK_DEFAULT as h,VIDEO_PLAYBACK_LABELS as w,VIDEO_PLAYBACKS as x,VIDEO_SOURCE_DEFAULT as g,VIDEO_SOURCE_LABELS as D,VIDEO_SOURCES as U}from"../../../../format/lib/hero-video.js";const oo={overlayColor:A("Overlay color",O),overlayPosition:u("Overlay position",m,p,"A corner would need a diagonal ramp, which this overlay does not draw.",r(c,{}))},E="Texture",_=o=>u("Overlay position",m,o,"A corner would need a diagonal ramp, which this overlay does not draw.",r(c,{}),void 0,E);function V(){try{const{appState:o,selectedItem:e}=R(t=>t);return b(o,e?.props?.id)}catch{return}}function b(o,e){return i(T(o,e)?.props?.textureColor)}function F({value:o,onChange:e}){const[t]=a("overlayPosition"),l=V(),s=i(o)??"",v=y({overlayColor:s,overlayPosition:t},l);return r(I,{label:n("Overlay color"),value:s,inherited:v.color,resetTo:n(E),onChange:e,onReset:()=>e("")})}const Y=_(p),W=_("");function N(o){const[e]=a("overlayColor"),t=y({overlayColor:e,overlayPosition:o.value}).own?Y:W;return r(S,{children:t.render(o)})}function B(o){if(!Array.isArray(o))return;const e=o.flatMap((t,l)=>i(t?.props?.overlayColor)?[l+1]:[]);if(e.length!==0)return e.length===1?n("Slide {n}: own Overlay color.",{n:e[0]}):n("Slides {n}: own Overlay color.",{n:e.join(", ")})}function H({value:o,onChange:e}){const[t]=a("slides");return r(P,{label:n("Texture color"),value:o||O,onChange:e,hint:B(t)})}const eo={type:"custom",render:({value:o,onChange:e})=>r(H,{value:o,onChange:e})},ro={overlayColor:{type:"custom",render:({value:o,onChange:e})=>r(F,{value:o,onChange:e})},overlayPosition:{type:"custom",render:({value:o,onChange:e})=>r(N,{value:o,onChange:e})}},to={videoSource:d("Source",r(C,{}),U.map(o=>({label:D[o],value:o})),g),youtubeUrl:L("YouTube link","https://youtu.be/…"),videoPlayback:d("Playback",r(f,{}),x.map(o=>({label:w[o],value:o})),h)};export{oo as HERO_OVERLAY_ROWS,ro as HERO_SLIDE_OVERLAY_ROWS,eo as HERO_TEXTURE_COLOR_ROW,to as HERO_VIDEO_ROWS,B as textureColorHint,b as textureColorOfSlide};
@@ -24,6 +24,7 @@ export type PartTyping = {
24
24
  };
25
25
  export declare function partTypingTarget(partId: string, deps: PartTypingDeps): PartTyping | null;
26
26
  export declare function partElement(last: Pick<HTMLElement, "isConnected" | "getAttribute"> | null, doc: Pick<Document, "querySelector"> | null, partId: string): HTMLElement | null;
27
+ export declare function cssString(value: string): string;
27
28
  export declare function keysOnCanvas(doc: Pick<Document, "activeElement">): boolean;
28
29
  export declare function canvasTypingPart(): string | null;
29
30
  export declare function setCanvasTypingPart(partId: string | null): void;
@@ -1 +1 @@
1
- import{useSyncExternalStore as g}from"react";import{rowBound as P}from"../../../format/lib/content/card-template.js";import{linkedCount as O}from"../../../format/lib/content/count-numbers.js";import{SHOP_MARKUP as R}from"../../../format/lib/markup.js";import{readHidable as S,textFieldOffPage as k}from"./controls.js";import{decodePartId as v}from"efficient-easel/draw";import{canTypeOnCanvas as K,PART_ATTR as y}from"../../../render/lib/document/text-parts.js";import{partRowField as C}from"./part-row-field.js";import{decodePartKey as b,partRowValue as A}from"../../../render/lib/document/part-rows.js";import{isMultilineKind as E,typeInPlaceKind as _}from"../../../render/lib/document/part-text.js";import{commitPartText as w}from"./part-typing.js";import{consentWordsOf as F}from"../../../format/lib/content/consent-banner.js";import{KICKER_NUMBER_ATTR as I}from"../../../render/lib/content/page-contents.js";const B=`[${I}]`,L=["bold","italic","underline","strike","link","sup","sub"],M=["bullet","number"];function $(e,t){return e?[...L,...t?M:[]]:[]}function T(e,t){const r=v(e);if(!r?.propKey)return null;const{nodeId:u,propKey:s}=r,o=t.getItemById(u),c=t.getSelectorForId(u);if(!o||!c)return null;const{key:n,row:i}=b(s),a=t.components[o.type]?.fields?.[n],d=i?C(a,i):a,m=_(d);if(!m)return null;const l=o.props??{};if(F(l)!==null||!i&&P(o.type,l,n)||o.type==="Text"&&n==="text"&&O(l)||i&&!(Array.isArray(l[n])&&i.index<l[n].length))return null;const x=i?A(l[n],i):l[n];return{node:o,selector:c,propKey:s,kind:m,stored:x,offPage:k(d)}}function ee(e,t){const r=T(e,t);if(!r)return null;const{text:u,hidden:s}=S(r.stored);if(!K({offPage:r.offPage,hidden:!!s}))return null;const o=E(r.kind);return{partId:e,value:u,rules:R,multiline:o,skip:B,offered:$(r.kind!=="plainText",o),write:c=>{const n=T(e,t);n&&w({node:n.node,propKey:n.propKey,kind:n.kind,zone:n.selector.zone,index:n.selector.index},c,t.replace)}}}function te(e,t,r){return e?.isConnected&&e.getAttribute(y)===r?e:t?.querySelector(`[${y}="${h(r)}"]`)??null}function h(e){return e.replace(/["\\]/g,"\\$&")}function ne(e){const t=e.activeElement;return t?t.tagName==="IFRAME"||!!t.closest(".es-canvas"):!1}let f=null;const p=new Set;function N(){return f}function re(e){if(e!==f){f=e;for(const t of p)t()}}function W(e){return p.add(e),()=>{p.delete(e)}}function oe(){return g(W,N,()=>null)}export{N as canvasTypingPart,ne as keysOnCanvas,te as partElement,$ as partTextTools,ee as partTypingTarget,re as setCanvasTypingPart,W as subscribeCanvasTypingPart,oe as useCanvasTypingPart};
1
+ import{useSyncExternalStore as g}from"react";import{rowBound as P}from"../../../format/lib/content/card-template.js";import{linkedCount as O}from"../../../format/lib/content/count-numbers.js";import{SHOP_MARKUP as R}from"../../../format/lib/markup.js";import{readHidable as S,textFieldOffPage as k}from"./controls.js";import{decodePartId as v}from"efficient-easel/draw";import{canTypeOnCanvas as K,PART_ATTR as y}from"../../../render/lib/document/text-parts.js";import{partRowField as C}from"./part-row-field.js";import{decodePartKey as b,partRowValue as A}from"../../../render/lib/document/part-rows.js";import{isMultilineKind as E,typeInPlaceKind as _}from"../../../render/lib/document/part-text.js";import{commitPartText as w}from"./part-typing.js";import{consentWordsOf as F}from"../../../format/lib/content/consent-banner.js";import{KICKER_NUMBER_ATTR as I}from"../../../render/lib/content/page-contents.js";const B=`[${I}]`,L=["bold","italic","underline","strike","link","sup","sub"],M=["bullet","number"];function $(e,t){return e?[...L,...t?M:[]]:[]}function T(e,t){const r=v(e);if(!r?.propKey)return null;const{nodeId:u,propKey:s}=r,o=t.getItemById(u),c=t.getSelectorForId(u);if(!o||!c)return null;const{key:n,row:i}=b(s),a=t.components[o.type]?.fields?.[n],d=i?C(a,i):a,m=_(d);if(!m)return null;const l=o.props??{};if(F(l)!==null||!i&&P(o.type,l,n)||o.type==="Text"&&n==="text"&&O(l)||i&&!(Array.isArray(l[n])&&i.index<l[n].length))return null;const x=i?A(l[n],i):l[n];return{node:o,selector:c,propKey:s,kind:m,stored:x,offPage:k(d)}}function ee(e,t){const r=T(e,t);if(!r)return null;const{text:u,hidden:s}=S(r.stored);if(!K({offPage:r.offPage,hidden:!!s}))return null;const o=E(r.kind);return{partId:e,value:u,rules:R,multiline:o,skip:B,offered:$(r.kind!=="plainText",o),write:c=>{const n=T(e,t);n&&w({node:n.node,propKey:n.propKey,kind:n.kind,zone:n.selector.zone,index:n.selector.index},c,t.replace)}}}function te(e,t,r){return e?.isConnected&&e.getAttribute(y)===r?e:t?.querySelector(`[${y}="${h(r)}"]`)??null}function h(e){return e.replace(/["\\]/g,"\\$&")}function ne(e){const t=e.activeElement;return t?t.tagName==="IFRAME"||!!t.closest(".es-canvas"):!1}let f=null;const p=new Set;function N(){return f}function re(e){if(e!==f){f=e;for(const t of p)t()}}function W(e){return p.add(e),()=>{p.delete(e)}}function oe(){return g(W,N,()=>null)}export{N as canvasTypingPart,h as cssString,ne as keysOnCanvas,te as partElement,$ as partTextTools,ee as partTypingTarget,re as setCanvasTypingPart,W as subscribeCanvasTypingPart,oe as useCanvasTypingPart};
@@ -0,0 +1,12 @@
1
+ import type { CanvasCopyPlace, CanvasCopyText } from "efficient-easel/easel";
2
+ import type { CopyItemRequest } from "efficient-easel/screen";
3
+ import { type PartTyping, type PartTypingDeps } from "./canvas-typing.js";
4
+ type CopyAt = Omit<CanvasCopyPlace, "count"> & {
5
+ count?: number;
6
+ };
7
+ export declare function copyRowPart(copy: CopyAt, deps: PartTypingDeps): string | null;
8
+ export declare function copyRowTarget(copy: CopyAt, deps: PartTypingDeps): PartTyping | null;
9
+ export declare function copyRowValue(copy: CopyAt, deps: PartTypingDeps): string | undefined;
10
+ export declare function writeCopyText(edit: CanvasCopyText, deps: PartTypingDeps): boolean;
11
+ export declare function copyItemWrite(request: CopyItemRequest, deps: PartTypingDeps): boolean;
12
+ export {};
@@ -0,0 +1 @@
1
+ import{encodePartId as u}from"efficient-easel/draw";import{insertAt as d,moveTo as p,removeAt as m}from"efficient-easel/fields";import{declaredBlockSource as w}from"../../../format/lib/content/block-sources.js";import{cardTemplateTypedRows as x,rowFieldOf as y}from"../../../format/lib/content/card-template.js";import{partTypingTarget as I}from"./canvas-typing.js";import{encodePartKey as g}from"../../../format/lib/document/part-key.js";function c(e,t){if(e.outer)return null;const r=t.getItemById(e.ownerId);if(!r)return null;const o=x(r.type);return!o||w(r.props)?null:{node:r,rows:o}}function A(e,t){const r=c(e,t),o=t.getItemById(e.nodeId);if(!r||!o)return null;const l=y(o.type,o.props,e.key);if(!l)return null;const n=r.node.props[r.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:u(e.ownerId,g(r.rows,{index:e.index,rowKey:l}))}function f(e,t){const r=A(e,t);return r?I(r,t):null}function R(e,t){return f(e,t)?.value}function B(e,t){const r=f(e,t);return r?(r.write(e.text),!0):!1}function E(e,t){const r=c(e,t),o=r&&t.getSelectorForId(e.ownerId);if(!r||!o)return!1;const l=r.node.props,n=l[r.rows],i=e.index;if(!Array.isArray(n)||i<0||i>=n.length)return!1;let s;switch(e.action){case"addAfter":{const a=t.components[r.node.type]?.fields?.[r.rows];s=d(n,i+1,{...a?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{const a=e.action==="moveEarlier"?i-1:i+1;if(a<0||a>=n.length)return!1;s=p(n,i,a);break}case"delete":s=m(n,i);break;default:return!1}return t.replace(o.zone,o.index,{...r.node,props:{...l,[r.rows]:s}}),!0}export{E as copyItemWrite,A as copyRowPart,f as copyRowTarget,R as copyRowValue,B as writeCopyText};
@@ -8,6 +8,7 @@ import { type ShowWhenRule } from "../../../render/lib/document/show-when.js";
8
8
  import { type SettingsBorderValue } from "efficient-easel/panel";
9
9
  import { type AlignmentPoint, FOCAL_DEFAULT } from "efficient-shell/ui";
10
10
  import type { GeocodeState } from "../../../format/lib/content/contact.js";
11
+ import { type SectionHeightMode, type SectionHeightUnit } from "../../../format/lib/content/section-min-height.js";
11
12
  import { type DirectionContainer } from "../../../format/lib/content/container-direction.js";
12
13
  import { BOX_SHARE_POINTS } from "../../../format/lib/content/box-layout.js";
13
14
  import { GAP_FIELD_CONTAINER, type GapContainer } from "../../../format/lib/content/container-gap.js";
@@ -138,20 +139,21 @@ export declare function Swatches({ swatches, current, onPick, names, }: {
138
139
  onPick: (next: string) => void;
139
140
  names?: Readonly<Record<string, string>>;
140
141
  }): import("react").JSX.Element;
141
- export declare function backgroundField(label: string, builtIn: SectionBackground): CustomField<SectionBackground>;
142
+ export declare function backgroundField(label: string, builtIn: SectionBackground, followsBand?: boolean): CustomField<SectionBackground>;
142
143
  export declare function cardImageBackgroundField(label: string, builtIn: string): CustomField<unknown>;
143
144
  export declare function sectionThemeFields(readValue?: (v: unknown) => unknown, followLabel?: string): Record<string, CustomField<unknown>>;
144
- export declare function Slider({ min, max, step, value, onChange, suffix, readout, notch, ariaLabel, disabled, }: {
145
+ export declare function Slider({ min, max, step, value, onChange, suffix, readout, notch, ariaLabel, disabled, placeholder, }: {
145
146
  min: number;
146
147
  max: number;
147
148
  step: number;
148
- value: number;
149
+ value: number | null;
149
150
  onChange: (next: number) => void;
150
151
  suffix?: string;
151
152
  readout?: boolean;
152
153
  notch?: number;
153
154
  ariaLabel?: string;
154
155
  disabled?: boolean;
156
+ placeholder?: number;
155
157
  }): import("react").JSX.Element;
156
158
  export declare function pxField(label: string, opts: {
157
159
  min: number;
@@ -185,7 +187,8 @@ export declare function useSelectedPatch(): (patch: FieldsPatch) => void;
185
187
  export declare function cornerSidesField(): CustomField<string[] | null>;
186
188
  export declare function sectionCornersField(): CustomField<number | null>;
187
189
  export declare function sectionShapeFields(): Record<string, unknown>;
188
- export declare function sectionBorderField(tier: "desktop" | "mobile"): CustomField<SettingsBorderValue | undefined>;
190
+ export declare function sectionBorderField(tier: "desktop" | "tablet" | "mobile"): CustomField<SettingsBorderValue | undefined>;
191
+ type PanelView = "desktop" | "tablet" | "phone";
189
192
  export declare function buttonWordsEntryField(partKey: string): CustomField<undefined>;
190
193
  export declare function cardCornersField(): CustomField<number | null>;
191
194
  export declare function templateField<V>(inner: CustomField<V>): CustomField<V>;
@@ -193,6 +196,7 @@ export declare function cardShapeFields(): Record<string, unknown>;
193
196
  export declare function boxShareField(points?: readonly (typeof BOX_SHARE_POINTS)[number][], fallback?: string): CustomField<string>;
194
197
  export declare function boxBlockSpacingField(): SelectField;
195
198
  export declare function boxSharePhoneField(): CustomField<string>;
199
+ export declare function boxShareTabletField(): import("efficient-easel/screen/lib/document/box-fields").BoxField<string>;
196
200
  export declare function boxPhoneRowField(): import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
197
201
  export declare function boxColumnsFields(): {
198
202
  phoneRow: import("efficient-easel/screen/lib/document/box-fields").BoxField<number>;
@@ -234,7 +238,14 @@ export declare function swapPadding(fields: Record<string, unknown>, padding: Re
234
238
  export declare const WIDTH_LABEL = "Width";
235
239
  export declare function widthField(defaultMode: WidthMode, modes?: readonly WidthMode[], inheritable?: boolean): Record<string, CustomField<undefined> | CustomField<string> | CustomField<number>>;
236
240
  export declare function heightFields(): Record<string, CustomField<undefined> | CustomField<string> | CustomField<number>>;
241
+ export declare function heightFollowedBy(view: PanelView, props: Record<string, unknown>): {
242
+ mode: SectionHeightMode;
243
+ value: number;
244
+ unit: SectionHeightUnit;
245
+ } | null;
246
+ export declare function followedHeightPatch(view: PanelView, props: Record<string, unknown>, base: "sectionHeightValue" | "sectionHeightUnit", next: unknown): Record<string, unknown> | null;
237
247
  export declare function stickFields(): Record<string, CustomField<undefined> | CustomField<boolean> | CustomField<number>>;
248
+ export declare function followedStickPatch(view: PanelView, props: Record<string, unknown>, next: unknown): Record<string, unknown> | null;
238
249
  export declare function anchorFields(): Record<string, CustomField<undefined> | CustomField<HidableValue>>;
239
250
  export declare function dateTime(label: string, icon?: ReactNode, hint?: string): CustomField<string>;
240
251
  export declare function date(label: string, icon?: ReactNode, hint?: string): CustomField<string>;