efficient-web-builder 70.0.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.
- package/CHANGELOG.md +22 -1
- package/dist/editor/components/AddPageWindow.d.ts +7 -0
- package/dist/editor/components/AddPageWindow.js +1 -0
- package/dist/editor/components/PageStarterCard.d.ts +9 -0
- package/dist/editor/components/PageStarterCard.js +1 -0
- package/dist/editor/components/PagesPanel.js +1 -1
- package/dist/editor/components/StorefrontEditor.js +1 -1
- package/dist/editor/components/storefront-editor.css +71 -0
- package/dist/editor/lib/document/blocks/general/index.d.ts +2 -2
- package/dist/editor/lib/document/box-fields.d.ts +1 -1
- package/dist/editor/lib/document/field-groups.js +1 -1
- package/dist/editor/lib/document/host-config.d.ts +2 -0
- package/dist/editor/lib/document/host-config.js +1 -0
- package/dist/editor/lib/document/overrides.d.ts +1 -0
- package/dist/editor/lib/document/overrides.js +1 -1
- package/dist/editor/lib/document/page-root.d.ts +12 -0
- package/dist/editor/lib/document/page-root.js +2 -2
- package/dist/format/lib/content/box-shape.d.ts +1 -1
- package/dist/format/lib/content/card-row-keys.d.ts +1 -1
- package/dist/format/lib/content/section-sticky.d.ts +3 -3
- package/dist/format/lib/document/blocks/general/CardList/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Cards/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/FAQ/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Flex/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Footprint/meta.js +2 -2
- package/dist/format/lib/document/blocks/general/Grid/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Hero/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/HeroGroup/meta.d.ts +1 -1
- package/dist/format/lib/document/blocks/general/HeroGroup/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/HeroSingle/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/HeroSlide/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/Logos/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/OrderSummary/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.d.ts +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/column-seed.js +1 -1
- package/dist/format/lib/document/blocks/general/ProcessSteps/meta.js +1 -1
- package/dist/format/lib/document/blocks/general/slots.d.ts +93 -0
- package/dist/format/lib/document/blocks/general/slots.js +1 -0
- package/dist/format/lib/document/node-lists.js +1 -1
- package/dist/format/lib/editor-words-catalogue.d.ts +9 -0
- package/dist/format/lib/editor-words-catalogue.js +3 -3
- package/dist/format/lib/editor-words-kept.js +1 -1
- package/dist/format/lib/page-starters.d.ts +14 -0
- package/dist/format/lib/page-starters.js +1 -0
- package/dist/format/lib/web-backend.d.ts +9 -0
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{FOOTPRINT_DEFAULTS as
|
|
2
|
-
*${
|
|
1
|
+
import{FOOTPRINT_DEFAULTS as t}from"../../../../content/footprint.js";import{PH as o}from"../../placeholders.js";import{GENERAL_SLOTS as e}from"../slots.js";const s={sectionNumber:o.sectionNumber,heading:`${o.heading}
|
|
2
|
+
*${o.accent}*`,tagline:o.body},i=e.Footprint,p={label:"Locations Map",fields:i,defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:t.mapTheme,padTop:120,padBottom:120,search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};export{s as FOOTPRINT_PH,p as FootprintMeta,i as FootprintSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=
|
|
1
|
+
import{GENERAL_SLOTS as o}from"../slots.js";const t=o.Grid,e={label:"Grid",fields:t,defaultProps:{columns:"3",content:[]}};export{e as GridMeta,t as GridSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=
|
|
1
|
+
import{GENERAL_SLOTS as e}from"../slots.js";const t=e.Hero,r={label:"Hero",drawsPictures:!0,fields:t,defaultProps:{alignment:"left",textureOpacity:40,autoplay:!1,autoplayInterval:6}};export{r as HeroMeta,t as HeroSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{HERO_GROUP_BLOCK_TYPES as
|
|
1
|
+
import{HERO_GROUP_BLOCK_TYPES as r}from"../../../container-blocks.js";import{BOX_LABEL as e}from"../../../section-catalog.js";import{HERO_GROUP_PLACEMENT_DEFAULT as t}from"../../../../hero-group-placement.js";import{GENERAL_SLOTS as o}from"../slots.js";const n={...o.HeroGroup,content:{...o.HeroGroup.content,allow:r}},u={label:e,inline:!0,fields:n,defaultProps:{placement:t,nudgeX:0,nudgeY:0,content:[]}};export{u as HeroGroupMeta,n as HeroGroupSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FOCAL_DEFAULT as
|
|
1
|
+
import{FOCAL_DEFAULT as r}from"efficient-shell/format";import{DEFAULT_OVERLAY_POSITION as e}from"../../../../sections/hero-overlay.js";import{DEFAULT_TINT as o}from"../../../../content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as t,HERO_FOCUS as i}from"../../../../hero-media-layout.js";import{GENERAL_SLOTS as l}from"../slots.js";const m=l.HeroSingle,T={label:"Hero Single",drawsPictures:!0,fields:m,defaultProps:{mediaType:t.HeroSingle,[i.image]:r,tintColor:o,tintOpacity:0,overlay:100,overlayColor:o,overlayPosition:e}};export{T as HeroSingleMeta,m as HeroSingleSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FOCAL_DEFAULT as
|
|
1
|
+
import{FOCAL_DEFAULT as e}from"efficient-shell/format";import{DEFAULT_TINT as o}from"../../../../content/tint.js";import{HERO_ABSENT_MEDIA_TYPE as r,HERO_FOCUS as i}from"../../../../hero-media-layout.js";import{GENERAL_SLOTS as t}from"../slots.js";const l=t.HeroSlide,E={label:"Hero Slide",fields:l,defaultProps:{mediaType:r.HeroSlide,videoSpeed:100,[i.image]:e,tintColor:o,overlay:0}};export{E as HeroSlideMeta,l as HeroSlideSlots};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{say as o}from"../../../../editor-words.js";const
|
|
1
|
+
import{say as o}from"../../../../editor-words.js";import{GENERAL_SLOTS as t}from"../slots.js";const a={heading:"Trusted by *teams worldwide*"},l=()=>[{src:"",alt:o("Logo one")},{src:"",alt:o("Logo two")},{src:"",alt:o("Logo three")},{src:"",alt:o("Logo four")},{src:"",alt:o("Logo five")}],s=t.Logos,c={label:"Logos",drawsPictures:!0,fields:s,defaultProps:{items:[],contained:!0}};export{a as LOGOS_PH,c as LogosMeta,s as LogosSlots,l as logosScaffoldItems};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{GENERAL_SLOTS as t}from"../slots.js";const o={title:"Order summary",note:"A short reassurance note under the total."},e=t.OrderSummary,a={label:"Order Table",fields:e,defaultProps:{eyebrow:"",title:"",rows:[],subRows:[],totalLabel:"",totalAmount:"",note:"",contained:!0}};export{o as ORDER_SUMMARY_PH,a as OrderSummaryMeta,e as OrderSummarySlots};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BlockSeed } from "../../../seed-parts.js";
|
|
2
|
-
export
|
|
2
|
+
export { PROCESS_COLUMNS_SLOT } from "../slots.js";
|
|
3
3
|
export declare const PROCESS_STEPS_SEED_COUNT = 3;
|
|
4
4
|
export declare const processColumnSeed: () => BlockSeed;
|
|
5
5
|
export declare const processColumnSeeds: () => BlockSeed[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as e}from"../../../container-blocks.js";import{headingTextSeed as t}from"../../../text-seeds.js";
|
|
1
|
+
import{BOX_TYPE as o,CONTAINER_BLOCKS_SLOT as e}from"../../../container-blocks.js";import{headingTextSeed as t}from"../../../text-seeds.js";import{PROCESS_COLUMNS_SLOT as O}from"../slots.js";const p=3,r=()=>({type:o,props:{direction:"column"},slots:{[e]:[{type:"ImageBlock"},{type:o,props:{direction:"column"},slots:{[e]:[{type:"Text",props:t()},{type:"Text"}]}}]}}),m=()=>Array.from({length:p},r);export{O as PROCESS_COLUMNS_SLOT,p as PROCESS_STEPS_SEED_COUNT,r as processColumnSeed,m as processColumnSeeds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PH as t}from"../../placeholders.js";import{
|
|
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};
|
|
@@ -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{isNodeList as f,slotsOf as
|
|
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};
|
|
@@ -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";
|