efficient-web-builder 69.5.0 → 70.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/editor/components/AddPageWindow.d.ts +7 -0
  3. package/dist/editor/components/AddPageWindow.js +1 -0
  4. package/dist/editor/components/PageStarterCard.d.ts +9 -0
  5. package/dist/editor/components/PageStarterCard.js +1 -0
  6. package/dist/editor/components/PagesPanel.js +1 -1
  7. package/dist/editor/components/SiteFields.js +1 -1
  8. package/dist/editor/components/StorefrontEditor.js +1 -1
  9. package/dist/editor/components/storefront-editor.css +71 -0
  10. package/dist/editor/lib/document/blocks/general/ButtonBlock/fields.js +1 -1
  11. package/dist/editor/lib/document/blocks/general/Flex/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/general/ProcessSteps/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/general/Prose/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/general/Timeline/fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/general/TimelineTrack/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
  17. package/dist/editor/lib/document/box-footer-rows.js +1 -1
  18. package/dist/editor/lib/document/field-groups.js +1 -1
  19. package/dist/editor/lib/document/host-config.d.ts +2 -0
  20. package/dist/editor/lib/document/host-config.js +1 -0
  21. package/dist/editor/lib/document/overrides.d.ts +1 -0
  22. package/dist/editor/lib/document/overrides.js +1 -1
  23. package/dist/editor/lib/document/page-root.d.ts +12 -0
  24. package/dist/editor/lib/document/page-root.js +2 -2
  25. package/dist/editor/lib/host-document-bridge.js +1 -1
  26. package/dist/format/lib/build/module-specifiers.d.ts +11 -0
  27. package/dist/format/lib/build/module-specifiers.js +1 -1
  28. package/dist/format/lib/content/box-background.d.ts +1 -7
  29. package/dist/format/lib/content/box-background.js +1 -1
  30. package/dist/format/lib/content/box-darken-styles.d.ts +7 -0
  31. package/dist/format/lib/content/box-darken-styles.js +1 -0
  32. package/dist/format/lib/content/card-row-keys.d.ts +10 -0
  33. package/dist/format/lib/content/card-row-keys.js +1 -1
  34. package/dist/format/lib/content/card-template.d.ts +1 -11
  35. package/dist/format/lib/content/card-template.js +1 -1
  36. package/dist/format/lib/content/count-numbers.js +1 -1
  37. package/dist/format/lib/content/site-gutter.js +1 -1
  38. package/dist/format/lib/document/blocks/general/CardList/meta.js +1 -1
  39. package/dist/format/lib/document/blocks/general/Cards/meta.js +1 -1
  40. package/dist/format/lib/document/blocks/general/FAQ/meta.js +1 -1
  41. package/dist/format/lib/document/blocks/general/Flex/meta.js +1 -1
  42. package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
  43. package/dist/format/lib/document/blocks/general/Grid/meta.js +1 -1
  44. package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
  45. package/dist/format/lib/document/blocks/general/HeroGroup/meta.d.ts +1 -1
  46. package/dist/format/lib/document/blocks/general/HeroGroup/meta.js +1 -1
  47. package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
  48. package/dist/format/lib/document/blocks/general/HeroSlide/meta.js +1 -1
  49. package/dist/format/lib/document/blocks/general/Logos/meta.js +1 -1
  50. package/dist/format/lib/document/blocks/general/OrderSummary/meta.js +1 -1
  51. package/dist/format/lib/document/blocks/general/PostCard/meta.js +1 -1
  52. package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.d.ts +1 -1
  53. package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.js +1 -1
  54. package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
  55. package/dist/format/lib/document/blocks/general/ProcessSteps/row-seed.js +1 -1
  56. package/dist/format/lib/document/blocks/general/slots.d.ts +93 -0
  57. package/dist/format/lib/document/blocks/general/slots.js +1 -0
  58. package/dist/format/lib/document/box-footer.js +1 -1
  59. package/dist/format/lib/document/node-lists.d.ts +4 -0
  60. package/dist/format/lib/document/node-lists.js +1 -1
  61. package/dist/format/lib/document/passes/document-position.js +1 -1
  62. package/dist/format/lib/editor-words-catalogue.d.ts +9 -0
  63. package/dist/format/lib/editor-words-catalogue.js +3 -3
  64. package/dist/format/lib/editor-words-kept.js +1 -1
  65. package/dist/format/lib/page-starters.d.ts +14 -0
  66. package/dist/format/lib/page-starters.js +1 -0
  67. package/dist/format/lib/source-rules/panel-one-arrow.js +1 -1
  68. package/dist/format/lib/source-rules/support/panel-select-cascade.d.ts +1 -1
  69. package/dist/format/lib/source-rules/support/panel-select-cascade.js +1 -1
  70. package/dist/format/lib/web-backend.d.ts +9 -0
  71. package/dist/render/lib/content/page-contents.js +1 -1
  72. package/dist/render/lib/document/slot-counts.js +1 -1
  73. package/package.json +6 -6
  74. package/dist/format/lib/document/panel-bands.d.ts +0 -15
  75. package/dist/format/lib/document/panel-bands.js +0 -1
@@ -1 +1 @@
1
- import{PH as t}from"../../placeholders.js";import{cardTemplateSlot as e}from"../../../../content/card-template.js";import{PROCESS_COLUMNS_SLOT as o}from"./column-seed.js";const m={num:t.sectionNumber,title:t.headingAccent,description:t.body,cta:t.viewAll},s={[o]:{type:"slot"},template:e()},c={label:"Image & Text Columns",drawsPictures:!0,fields:s,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};export{m as PROCESS_PH,c as ProcessStepsMeta,s as ProcessStepsSlots};
1
+ import{PH as t}from"../../placeholders.js";import{GENERAL_SLOTS as e}from"../slots.js";const c={num:t.sectionNumber,title:t.headingAccent,description:t.body,cta:t.viewAll},o=e.ProcessSteps,p={label:"Image & Text Columns",drawsPictures:!0,fields:o,defaultProps:{num:"",title:"",description:"",columns:3,padTop:120,padBottom:120}};export{c as PROCESS_PH,p as ProcessStepsMeta,o as ProcessStepsSlots};
@@ -1 +1 @@
1
- import{CARD_LIST_TYPE as c,CARD_ROW_FIELD_PROP as m}from"../../../../content/card-row-keys.js";import{BOX_TYPE as r,CONTAINER_BLOCKS_SLOT as s}from"../../../container-blocks.js";import{DIM as l,INNER_BOX as a,TEXT as g,labelStyle as d,seedNodes as P,token as T,slotSeedIds as _}from"../../../seed-parts.js";import{rowFieldTextSeed as p}from"../Cards/card-seed.js";import{withCardListTemplate as f}from"../CardList/item-seed.js";import{isNodeList as E}from"efficient-easel/data";const b="ProcessSteps",u={eyebrow:"eyebrow",title:"title",copy:"copy",image:"image",tag:"tag",specs:"specs"},e=u,w=()=>({type:r,props:{...a,name:"Row",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[s]:[{type:r,props:{...a,name:"Picture",direction:"column",gap:12},slots:{[s]:[{type:"ImageBlock",props:{[m]:e.image,aspect:"1/1",fit:"contain"}},p(e.tag,{...l,tag:"p"},d(11))]}},{type:r,props:{...a,name:"Words",direction:"column",gap:16},slots:{[s]:[p(e.eyebrow,{...g,tag:"p"},{...d(13),color:"accent"}),p(e.title,{...g,tag:"h2"},{textStyle:"heading-2",...T("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),p(e.copy,{...l,tag:"p"},{textStyle:"body-1",...T("body",15),lineHeight:1.6}),{type:c,props:{[m]:e.specs}}]}}]}});function y(i){return i.map(o=>{let t=o.props;for(const[S,n]of Object.entries(t))E(n)&&(t={...t,[S]:y(n)});return o.type===c?{...o,props:f(t)}:{...o,props:t}})}function B(i){return y(P([w()],_(i,"row")))}export{u as IMAGE_TEXT_ROW_FIELDS,b as PROCESS_STEPS_TYPE,w as imageTextRowSeed,B as imageTextRowTemplate};
1
+ import{CARD_LIST_TYPE as c,CARD_ROW_FIELD_PROP as m}from"../../../../content/card-row-keys.js";import{BOX_TYPE as r,CONTAINER_BLOCKS_SLOT as s}from"../../../container-blocks.js";import{DIM as g,INNER_BOX as a,TEXT as l,labelStyle as d,seedNodes as S,token as y,slotSeedIds as P}from"../../../seed-parts.js";import{rowFieldTextSeed as p}from"../Cards/card-seed.js";import{withCardListTemplate as _}from"../CardList/item-seed.js";import{nodeListKeys as E}from"../../../node-lists.js";const L="ProcessSteps",f={eyebrow:"eyebrow",title:"title",copy:"copy",image:"image",tag:"tag",specs:"specs"},e=f,w=()=>({type:r,props:{...a,name:"Row",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[s]:[{type:r,props:{...a,name:"Picture",direction:"column",gap:12},slots:{[s]:[{type:"ImageBlock",props:{[m]:e.image,aspect:"1/1",fit:"contain"}},p(e.tag,{...g,tag:"p"},d(11))]}},{type:r,props:{...a,name:"Words",direction:"column",gap:16},slots:{[s]:[p(e.eyebrow,{...l,tag:"p"},{...d(13),color:"accent"}),p(e.title,{...l,tag:"h2"},{textStyle:"heading-2",...y("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),p(e.copy,{...g,tag:"p"},{textStyle:"body-1",...y("body",15),lineHeight:1.6}),{type:c,props:{[m]:e.specs}}]}}]}});function T(i){return i.map(t=>{let o=t.props;for(const n of E(t))o={...o,[n]:T(o[n])};return t.type===c?{...t,props:_(o)}:{...t,props:o}})}function b(i){return T(S([w()],P(i,"row")))}export{f as IMAGE_TEXT_ROW_FIELDS,L as PROCESS_STEPS_TYPE,w as imageTextRowSeed,b as imageTextRowTemplate};
@@ -0,0 +1,93 @@
1
+ export declare const PROCESS_COLUMNS_SLOT = "boxes";
2
+ export declare const GENERAL_SLOTS: {
3
+ CardList: {
4
+ template: {
5
+ type: "slot";
6
+ allow: string[];
7
+ };
8
+ };
9
+ Cards: {
10
+ template: {
11
+ type: "slot";
12
+ allow: string[];
13
+ };
14
+ };
15
+ FAQ: {
16
+ template: {
17
+ type: "slot";
18
+ allow: string[];
19
+ };
20
+ };
21
+ Flex: {
22
+ rowTitle: {
23
+ type: "slot";
24
+ allow: string[];
25
+ };
26
+ content: {
27
+ type: "slot";
28
+ };
29
+ };
30
+ Footprint: {
31
+ template: {
32
+ type: "slot";
33
+ allow: string[];
34
+ };
35
+ };
36
+ Grid: {
37
+ content: {
38
+ type: "slot";
39
+ };
40
+ };
41
+ Hero: {
42
+ slides: {
43
+ type: "slot";
44
+ ownPictures: true;
45
+ };
46
+ strip: {
47
+ type: "slot";
48
+ allow: string[];
49
+ };
50
+ };
51
+ HeroGroup: {
52
+ content: {
53
+ type: "slot";
54
+ };
55
+ };
56
+ HeroSingle: {
57
+ boxes: {
58
+ type: "slot";
59
+ allow: string[];
60
+ };
61
+ };
62
+ HeroSlide: {
63
+ groups: {
64
+ type: "slot";
65
+ allow: string[];
66
+ };
67
+ };
68
+ Logos: {
69
+ logos: {
70
+ type: "slot";
71
+ allow: string[];
72
+ };
73
+ template: {
74
+ type: "slot";
75
+ allow: string[];
76
+ };
77
+ };
78
+ OrderSummary: {
79
+ template: {
80
+ type: "slot";
81
+ allow: string[];
82
+ };
83
+ };
84
+ ProcessSteps: {
85
+ boxes: {
86
+ type: "slot";
87
+ };
88
+ template: {
89
+ type: "slot";
90
+ allow: string[];
91
+ };
92
+ };
93
+ };
@@ -0,0 +1 @@
1
+ import{cardListItemSlot as o,cardTemplateSlot as t}from"../../../content/card-row-keys.js";const e="boxes",p={CardList:{template:o()},Cards:{template:t()},FAQ:{template:t()},Flex:{rowTitle:{type:"slot",allow:["Text"]},content:{type:"slot"}},Footprint:{template:t()},Grid:{content:{type:"slot"}},Hero:{slides:{type:"slot",ownPictures:!0},strip:{type:"slot",allow:["Flex"]}},HeroGroup:{content:{type:"slot"}},HeroSingle:{boxes:{type:"slot",allow:["HeroGroup"]}},HeroSlide:{groups:{type:"slot",allow:["HeroGroup"]}},Logos:{logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},OrderSummary:{template:t()},ProcessSteps:{[e]:{type:"slot"},template:t()}};export{p as GENERAL_SLOTS,e as PROCESS_COLUMNS_SLOT};
@@ -1 +1 @@
1
- import{FOOTER_LOGO_PX as _}from"../logo/logo-size.js";import{resolveContainerGap as y}from"../content/container-gap.js";import{NESTED_BOX_PADDING as m}from"../content/box-layout.js";import{finiteNumber as u}from"../finite-number.js";import{isNodeList as P}from"efficient-easel/data";import{hiddenKeyOf as L}from"efficient-easel/screen/lib/content/view-hide";import{templateOnInsert as x}from"../content/card-template.js";import{buildSectionGroup as w,SITE_FOOTER_TYPE as A}from"./section-groups.js";import{hasOwnEntry as S,ownEntry as h}from"../own-entry.js";const d="Flex",I={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},b={FooterPayment:"PaymentLogosBlock"},B=o=>{const{id:e,...s}=o;return s},E=o=>typeof o=="string"?o:"",g={sm:12,md:13,lg:15},j={sm:{mark:16,words:g.sm},md:{mark:20,words:g.md}},N="md",T=1.5,G={size:13,lineHeight:T,width:280},R=14,D=40,k=o=>o==="center"||o==="right"?o:"left";function M(o){const e={},s=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[t,i]of s){const c=u(o[t]);c&&(e[i]=c)}return e}function X(o,e,s){const t=s(o,B(e));if(Array.isArray(e.template))return{...t,props:{...t.props,template:O(e.template,String(t.props.id))}};if(e.template!==void 0)return t;const i=x(o,t.props);return i===t.props?t:{...t,props:i}}function O(o,e,s={at:0}){return o.map(t=>{const i={...t.props,id:`${e}~t${s.at++}`};for(const[c,r]of Object.entries(i))P(r)&&(i[c]=O(r,e,s));return{...t,props:i}})}function F(o,e,s){const t=o.props??{},i=s?.(o,e);if(i)return i;const c=h(I,o.type)??h(b,o.type);if(c)return[X(c,t,e)];switch(o.type){case"FooterLogo":{const r=k(t.align),n=e("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(_*((u(t.widthPct)??100)/100)),href:"/",align:r,...M(t)}),p=E(t.tagline).trim();return p?[n,e("Text",{text:p,tone:"dim",align:r,_partStyles:{text:{...G}}})]:[n]}case"FooterText":{const r=typeof t.size=="string"&&S(g,t.size)?t.size:N;return[e("Text",{text:E(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:g[r],lineHeight:T}}})]}case"FooterDivider":{const r=u(t.thickness),n=u(t.lengthPct);return[e("Divider",{...r!==void 0?{thickness:r}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{[L("mobile")]:!0}:{}})]}case"FooterGroup":{const r=Array.isArray(t.blocks)?t.blocks:[];return[e(d,{direction:t.direction==="horizontal"?"row":"column",gap:y("FooterGroup",t.gap),align:t.align==="center"||t.align==="end"||t.align==="stretch"?t.align:"start",...m,content:r.flatMap(n=>F(n,e,s))})]}default:return[]}}function q(o,e,s,t){const i=o&&Array.isArray(o.props?.blocks)?o.props.blocks:[],c=l=>e(d,{direction:"row",wrap:!0,share:"equal",gap:D,content:l}),r=[];let n=[];for(const l of i){const a=F(l,e,t);if(l.type==="FooterDivider"){n.length&&r.push(c(n)),n=[],r.push(...a);continue}a.length<=1?n.push(...a):n.push(e(d,{direction:"column",gap:R,align:"stretch",...m,content:a}))}(n.length||!r.length)&&r.push(c(n));const p=e(d,{direction:"column",content:[e("LegalLineBlock")]}),f=w(A,s,[...r,p]);return{...f,props:{...f.props,...o?.props?.width==="full"?{fullWidth:!0}:{}}}}export{j as FOOTER_MARK_SIZES,g as FOOTER_TEXT_PX,q as boxFooterFromFooter,F as pageBlocksFromFooterBlock};
1
+ import{FOOTER_LOGO_PX as _}from"../logo/logo-size.js";import{resolveContainerGap as y}from"../content/container-gap.js";import{NESTED_BOX_PADDING as m}from"../content/box-layout.js";import{finiteNumber as u}from"../finite-number.js";import{nodeListKeys as P}from"./node-lists.js";import{hiddenKeyOf as L}from"efficient-easel/screen/lib/content/view-hide";import{templateOnInsert as x}from"../content/card-template.js";import{buildSectionGroup as w,SITE_FOOTER_TYPE as A}from"./section-groups.js";import{hasOwnEntry as S,ownEntry as h}from"../own-entry.js";const d="Flex",I={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},B={FooterPayment:"PaymentLogosBlock"},b=o=>{const{id:e,...s}=o;return s},E=o=>typeof o=="string"?o:"",g={sm:12,md:13,lg:15},q={sm:{mark:16,words:g.sm},md:{mark:20,words:g.md}},G="md",T=1.5,N={size:13,lineHeight:T,width:280},R=14,D=40,k=o=>o==="center"||o==="right"?o:"left";function M(o){const e={},s=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(const[t,i]of s){const c=u(o[t]);c&&(e[i]=c)}return e}function X(o,e,s){const t=s(o,b(e));if(Array.isArray(e.template))return{...t,props:{...t.props,template:F(e.template,String(t.props.id))}};if(e.template!==void 0)return t;const i=x(o,t.props);return i===t.props?t:{...t,props:i}}function F(o,e,s={at:0}){return o.map(t=>{const i={...t.props,id:`${e}~t${s.at++}`};for(const c of P(t))i[c]=F(i[c],e,s);return{...t,props:i}})}function O(o,e,s){const t=o.props??{},i=s?.(o,e);if(i)return i;const c=h(I,o.type)??h(B,o.type);if(c)return[X(c,t,e)];switch(o.type){case"FooterLogo":{const r=k(t.align),n=e("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(_*((u(t.widthPct)??100)/100)),href:"/",align:r,...M(t)}),p=E(t.tagline).trim();return p?[n,e("Text",{text:p,tone:"dim",align:r,_partStyles:{text:{...N}}})]:[n]}case"FooterText":{const r=typeof t.size=="string"&&S(g,t.size)?t.size:G;return[e("Text",{text:E(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:g[r],lineHeight:T}}})]}case"FooterDivider":{const r=u(t.thickness),n=u(t.lengthPct);return[e("Divider",{...r!==void 0?{thickness:r}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{[L("mobile")]:!0}:{}})]}case"FooterGroup":{const r=Array.isArray(t.blocks)?t.blocks:[];return[e(d,{direction:t.direction==="horizontal"?"row":"column",gap:y("FooterGroup",t.gap),align:t.align==="center"||t.align==="end"||t.align==="stretch"?t.align:"start",...m,content:r.flatMap(n=>O(n,e,s))})]}default:return[]}}function V(o,e,s,t){const i=o&&Array.isArray(o.props?.blocks)?o.props.blocks:[],c=l=>e(d,{direction:"row",wrap:!0,share:"equal",gap:D,content:l}),r=[];let n=[];for(const l of i){const a=O(l,e,t);if(l.type==="FooterDivider"){n.length&&r.push(c(n)),n=[],r.push(...a);continue}a.length<=1?n.push(...a):n.push(e(d,{direction:"column",gap:R,align:"stretch",...m,content:a}))}(n.length||!r.length)&&r.push(c(n));const p=e(d,{direction:"column",content:[e("LegalLineBlock")]}),f=w(A,s,[...r,p]);return{...f,props:{...f.props,...o?.props?.width==="full"?{fullWidth:!0}:{}}}}export{q as FOOTER_MARK_SIZES,g as FOOTER_TEXT_PX,V as boxFooterFromFooter,O as pageBlocksFromFooterBlock};
@@ -1,8 +1,12 @@
1
+ import type { BlockMeta } from "./blocks/block-types.js";
1
2
  type Props = Record<string, unknown>;
2
3
  export type ListNode = {
3
4
  type?: unknown;
4
5
  props?: Props;
5
6
  };
7
+ export declare function registerDeclaredSlots(metas: Readonly<Record<string, Pick<BlockMeta, "fields">>>): void;
8
+ export declare function nodeListKeys(node: ListNode): string[];
9
+ export declare function nodeListsOf<N extends ListNode = ListNode>(node: ListNode): N[][];
6
10
  export declare function mapEachNode<N>(list: readonly N[], fn: (node: N, index: number) => N): N[];
7
11
  export declare function mapNodeLists<N extends ListNode>(node: N, fn: (list: ListNode[], key: string) => ListNode[]): N;
8
12
  export declare function mapPageContent<T>(data: T, fn: (content: ListNode[]) => ListNode[]): T;
@@ -1 +1 @@
1
- import{isNodeList as p}from"efficient-easel/data";function l(n,r){let t=null;return n.forEach((e,o)=>{const c=r(e,o);c!==e&&((t??=n.slice())[o]=c)}),t??n}function a(n,r){let t=null;for(const[e,o]of Object.entries(n.props??{})){if(!p(o))continue;const c=r(o,e);c!==o&&((t??={...n.props})[e]=c)}return t?{...n,props:t}:n}function f(n,r){const t=n;if(!t||!Array.isArray(t.content))return n;const e=r(t.content);return e===t.content?n:{...t,content:e}}function m(n,r){const t=f(n,r),e=n?.zones;if(!e||typeof e!="object")return t;let o=null;for(const[c,s]of Object.entries(e)){if(!Array.isArray(s))continue;const i=r(s);i!==s&&((o??={...e})[c]=i)}return o?{...t,zones:o}:t}export{l as mapEachNode,a as mapNodeLists,f as mapPageContent,m as mapPageLists};
1
+ import{isNodeList as f,slotsOf as m,storedKeyOrder as y}from"efficient-easel/data";import{GENERAL_SLOTS as d}from"./blocks/general/slots.js";const l={};let O=null;function u(){const e=Object.fromEntries(Object.entries(d).map(([o,t])=>[o,{fields:t}]));return O??={components:{...e,...l}}}function E(e){const o=u().components;for(const[t,n]of Object.entries(e)){const r=Object.prototype.hasOwnProperty.call(o,t)?o[t]:void 0;if(r&&r.fields!==n.fields)throw new Error(`lib/document/node-lists: "${t}" already declares its slots`);l[t]=n,o[t]=n}}function a(e){const o=e.props??{},t=typeof e.type=="string"?e.type:"",n=u(),s=t!==""&&Object.prototype.hasOwnProperty.call(n.components,t)?m({type:t,props:o},n).map(c=>c.slot).filter(c=>!c.includes(".")):[],p=s.filter(c=>f(o[c])),i=y(Object.keys(o).filter(c=>!s.includes(c)&&f(o[c])));return[...p,...i]}function L(e){const o=e.props??{};return a(e).map(t=>o[t])}function g(e,o){let t=null;return e.forEach((n,r)=>{const s=o(n,r);s!==n&&((t??=e.slice())[r]=s)}),t??e}function h(e,o){let t=null;for(const n of a(e)){const r=e.props[n],s=o(r,n);s!==r&&((t??={...e.props})[n]=s)}return t?{...e,props:t}:e}function x(e,o){const t=e;if(!t||!Array.isArray(t.content))return e;const n=o(t.content);return n===t.content?e:{...t,content:n}}function w(e,o){const t=x(e,o),n=e?.zones;if(!n||typeof n!="object")return t;let r=null;for(const[s,p]of Object.entries(n)){if(!Array.isArray(p))continue;const i=o(p);i!==p&&((r??={...n})[s]=i)}return r?{...t,zones:r}:t}export{g as mapEachNode,h as mapNodeLists,x as mapPageContent,w as mapPageLists,a as nodeListKeys,L as nodeListsOf,E as registerDeclaredSlots};
@@ -1 +1 @@
1
- import{isNodeList as u}from"efficient-easel/data";function a(e,t){const n=e.props?.id,o=t.appState?.data?.content;return!Array.isArray(o)||typeof n!="string"?!0:!o.some(r=>r?.props?.id===n)}const l={not:{context:"heldByANode",is:!0}};function y(e,t){return"parent"in t?t.parent!=null:!!f(t.appState,e.props?.id)}function f(e,t){const n=e?.data?.content;if(!Array.isArray(n)||typeof t!="string")return;const o=(r,p)=>{for(const i of r){if(i?.props?.id===t)return p;for(const d of Object.values(i?.props??{}))if(u(d)){const s=o(d,i);if(s!==void 0)return s}}};return o(n,null)}export{l as NOT_HELD_BY_A_NODE,f as findParentNode,y as heldByANode,a as isNestedNode};
1
+ import{nodeListsOf as u}from"../node-lists.js";function a(n,t){const o=n.props?.id,e=t.appState?.data?.content;return!Array.isArray(e)||typeof o!="string"?!0:!e.some(r=>r?.props?.id===o)}const l={not:{context:"heldByANode",is:!0}};function y(n,t){return"parent"in t?t.parent!=null:!!p(t.appState,n.props?.id)}function p(n,t){const o=n?.data?.content;if(!Array.isArray(o)||typeof t!="string")return;const e=(r,s)=>{for(const i of r){if(i?.props?.id===t)return s;for(const f of u(i??{})){const d=e(f,i);if(d!==void 0)return d}}};return e(o,null)}export{l as NOT_HELD_BY_A_NODE,p as findParentNode,y as heldByANode,a as isNestedNode};
@@ -114,9 +114,11 @@ export declare const WEB_BUILDER_WORDS: {
114
114
  readonly "Add your answer here. Keep it clear and concise so it stays easy to scan.": "Add your answer here. Keep it clear and concise so it stays easy to scan.";
115
115
  readonly "Add your first question": "Add your first question";
116
116
  readonly "Add your numbers.": "Add your numbers.";
117
+ readonly "Add \u201C{name}\u201D": "Add “{name}”";
117
118
  readonly Address: "Address";
118
119
  readonly After: "After";
119
120
  readonly All: "All";
121
+ readonly "All pages": "All pages";
120
122
  readonly "Alt text": "Alt text";
121
123
  readonly Alternating: "Alternating";
122
124
  readonly "Alternating (zig-zag)": "Alternating (zig-zag)";
@@ -187,6 +189,7 @@ export declare const WEB_BUILDER_WORDS: {
187
189
  readonly "Big stat": "Big stat";
188
190
  readonly "Black and white": "Black and white";
189
191
  readonly "Black and white logos": "Black and white logos";
192
+ readonly "Blank page": "Blank page";
190
193
  readonly Block: "Block";
191
194
  readonly "Block gap": "Block gap";
192
195
  readonly "Block spacing": "Block spacing";
@@ -282,6 +285,7 @@ export declare const WEB_BUILDER_WORDS: {
282
285
  readonly "Chip label": "Chip label";
283
286
  readonly Chips: "Chips";
284
287
  readonly "Choose a page": "Choose a page";
288
+ readonly "Choose a page and change the text, images and more.": "Choose a page and change the text, images and more.";
285
289
  readonly "Choose a popup": "Choose a popup";
286
290
  readonly "Choose a post": "Choose a post";
287
291
  readonly "Choose a product": "Choose a product";
@@ -338,6 +342,7 @@ export declare const WEB_BUILDER_WORDS: {
338
342
  readonly "Couldn\u2019t delete the page \u2014 please retry.": "Couldn’t delete the page — please retry.";
339
343
  readonly "Couldn\u2019t duplicate the section \u2014 please retry": "Couldn’t duplicate the section — please retry";
340
344
  readonly "Couldn\u2019t load pages": "Couldn’t load pages";
345
+ readonly "Couldn\u2019t load the pages \u2014 please retry.": "Couldn’t load the pages — please retry.";
341
346
  readonly "Couldn\u2019t open this section.": "Couldn’t open this section.";
342
347
  readonly "Couldn\u2019t reach {place}.": "Couldn’t reach {place}.";
343
348
  readonly Count: "Count";
@@ -535,6 +540,7 @@ export declare const WEB_BUILDER_WORDS: {
535
540
  readonly "Frequently *asked.*": "Frequently *asked.*";
536
541
  readonly From: "From";
537
542
  readonly "From the bottom": "From the bottom";
543
+ readonly "From your template": "From your template";
538
544
  readonly Full: "Full";
539
545
  readonly "Full width": "Full width";
540
546
  readonly "Full-bleed intro image the next section scrolls over.": "Full-bleed intro image the next section scrolls over.";
@@ -804,6 +810,7 @@ export declare const WEB_BUILDER_WORDS: {
804
810
  readonly "No match (gray \u2715)": "No match (gray ✕)";
805
811
  readonly "No other pages": "No other pages";
806
812
  readonly "No pages match your search": "No pages match your search";
813
+ readonly "No pages to start from": "No pages to start from";
807
814
  readonly "No pages yet. Add one with + above.": "No pages yet. Add one with + above.";
808
815
  readonly "No place found. Try another postcode.": "No place found. Try another postcode.";
809
816
  readonly "No question matches your search.": "No question matches your search.";
@@ -891,6 +898,7 @@ export declare const WEB_BUILDER_WORDS: {
891
898
  readonly "Page settings for \u201C{name}\u201D": "Page settings for “{name}”";
892
899
  readonly "Page width": "Page width";
893
900
  readonly Pages: "Pages";
901
+ readonly "Pages for your site": "Pages for your site";
894
902
  readonly "Panel heading": "Panel heading";
895
903
  readonly "Panels & cards": "Panels & cards";
896
904
  readonly "Panels and cards": "Panels and cards";
@@ -1150,6 +1158,7 @@ export declare const WEB_BUILDER_WORDS: {
1150
1158
  readonly Stacked: "Stacked";
1151
1159
  readonly "Stacks below": "Stacks below";
1152
1160
  readonly Standard: "Standard";
1161
+ readonly "Start with a blank page, then add sections.": "Start with a blank page, then add sections.";
1153
1162
  readonly "Starts open": "Starts open";
1154
1163
  readonly Stat: "Stat";
1155
1164
  readonly "Stat & note": "Stat & note";